body {
  background: var(--pa-bg);
  color: var(--pa-ink);
}

.notice-hero {
  background:
    linear-gradient(135deg, #142246 0%, #10131d 58%, #0b0e16 100%);
  color: #fff;
  padding: 70px 0 64px;
  position: relative;
  overflow: hidden;
}

.notice-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 16% 20%, rgba(0,229,255,.22), transparent 34%),
    radial-gradient(circle at 82% 28%, rgba(124,77,255,.16), transparent 28%),
    radial-gradient(rgba(255,255,255,.075) 1px, transparent 1px);
  background-size: auto, auto, 22px 22px;
  pointer-events: none;
}

.notice-hero::after {
  content: "PLAY ARENA";
  position: absolute;
  right: 7%;
  top: 50%;
  transform: translateY(-50%);
  font-size: clamp(56px, 9vw, 150px);
  font-weight: 900;
  letter-spacing: -5px;
  color: #fff;
  opacity: .045;
  white-space: nowrap;
  pointer-events: none;
}

.notice-hero .wrap {
  position: relative;
  z-index: 1;
  padding-left: 30px;
}

.notice-hero .wrap::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 5px;
  height: calc(100% - 8px);
  background: linear-gradient(180deg, var(--neon-cyan2), var(--neon-cyan));
  box-shadow: 0 0 26px rgba(0,229,255,.5);
}

.notice-eyebrow {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 3px;
  color: var(--pa-amber);
  margin-bottom: 14px;
}

.notice-hero h1 {
  font-size: 46px;
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 12px;
  text-shadow: 0 12px 30px rgba(0,0,0,.28);
}

.notice-hero p {
  font-size: 15px;
  color: rgba(255,255,255,.74);
  line-height: 1.7;
  max-width: 640px;
}

.notice-wrap {
  padding-top: 42px;
  padding-bottom: 80px;
  background: var(--pa-bg);
  color: var(--pa-ink);
}

.notice-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.notice-toolbar-title h2,
.notice-toolbar h2 {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -.4px;
  margin-bottom: 6px;
}

.notice-toolbar-title p,
.notice-toolbar p {
  font-size: 13px;
  color: var(--pa-muted);
}

.notice-toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.notice-search input {
  width: 240px;
  height: 42px;
  border: 1px solid var(--pa-line);
  background: rgba(255,255,255,.03);
  padding: 0 13px;
  font-weight: 800;
  outline: none;
}

.notice-search input:focus {
  border-color: var(--pa-amber);
  box-shadow: 0 0 0 4px rgba(0,229,255,.15);
}

.notice-write-btn {
  height: 42px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg,var(--neon-cyan2),var(--neon-cyan));
  border: 1px solid var(--neon-cyan);
  color: #001318;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 0 20px rgba(0,229,255,.25);
}

.notice-write-btn:hover {
  box-shadow: 0 0 32px rgba(0,229,255,.4);
}

.notice-layout {
  display: grid;
  grid-template-columns: 370px 1fr;
  gap: 22px;
  align-items: start;
}

.notice-list-card,
.notice-view-card {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--pa-line);
  box-shadow: 0 18px 44px rgba(15,17,26,.07);
}

.notice-list-card {
  height: calc(100vh - 240px);
  min-height: 720px;
  max-height: 900px;
  overflow: hidden;
}

.notice-list-head {
  height: 54px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--pa-line);
  background: rgba(255,255,255,.02);
}

.notice-list-head strong {
  font-size: 14px;
  font-weight: 900;
  color: var(--pa-ink);
}

.notice-list-head span {
  font-size: 12px;
  font-weight: 900;
  color: var(--pa-amber);
}

.notice-list {
  height: calc(100% - 54px);
  overflow-y: auto;
  padding: 0;
  scrollbar-gutter: stable;
}

.notice-list::-webkit-scrollbar {
  width: 8px;
}

.notice-list::-webkit-scrollbar-track {
  background: rgba(255,255,255,.04);
}

.notice-list::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.15);
  border-radius: 20px;
}

.notice-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,.25);
}

.notice-loading,
.notice-empty {
  padding: 46px 18px;
  text-align: center;
  color: var(--pa-muted);
  font-size: 13px;
  font-weight: 800;
}

.notice-item {
  position: relative;
  display: block;
  width: 100%;
  min-height: 112px;
  padding: 18px 18px 17px;
  border-bottom: 1px solid var(--pa-line);
  background: rgba(255,255,255,.03);
  cursor: pointer;
  text-align: left;
  transition: background .16s ease;
}

.notice-item:hover {
  background: rgba(0,229,255,.05);
}

.notice-item.active {
  background: rgba(0,229,255,.08);
}

.notice-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: var(--pa-amber);
  box-shadow: 0 0 8px var(--pa-amber);
}

.notice-item-top {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  margin-bottom: 9px;
  flex-wrap: wrap;
}

.notice-category,
.notice-badge,
.notice-view-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  padding: 0 9px;
  background: rgba(0,229,255,.1);
  color: var(--pa-amber);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.notice-badge,
.notice-view-badge.important {
  background: rgba(255,71,87,.08);
  color: #ff6b6b;
}

.notice-new,
.notice-view-badge.new {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  padding: 0 8px;
  background: #ff3b30;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.notice-view-badge.category {
  background: rgba(0,229,255,.1);
  color: var(--pa-amber);
}

.notice-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 41px;
  overflow: hidden;
  color: var(--pa-ink);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.42;
  letter-spacing: -.1px;
  word-break: keep-all;
}

.notice-date {
  display: block;
  margin-top: 9px;
  color: var(--pa-muted);
  font-size: 12px;
  font-weight: 800;
  text-align: left;
}

.notice-view-card {
  min-height: calc(100vh - 240px);
}

.notice-view {
  padding: 30px;
}

.notice-empty-view {
  text-align: center;
  padding: 90px 20px;
  color: var(--pa-muted);
}

.notice-empty-view div {
  font-size: 42px;
  margin-bottom: 12px;
}

.notice-empty-view h3 {
  font-size: 21px;
  font-weight: 900;
  color: var(--pa-ink);
  margin-bottom: 8px;
}

.notice-empty-view p {
  font-size: 13px;
  line-height: 1.6;
}

.notice-view-head {
  border-bottom: 1px solid var(--pa-line);
  padding-bottom: 20px;
  margin-bottom: 22px;
}

.notice-view-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.notice-view-title {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -.6px;
  line-height: 1.35;
  margin-bottom: 10px;
  word-break: keep-all;
}

.notice-view-meta {
  font-size: 12px;
  font-weight: 800;
  color: var(--pa-muted);
}

.notice-view-body {
  font-size: 14px;
  line-height: 1.85;
  color: var(--pa-ink);
  white-space: pre-line;
}

.notice-view-body img {
  max-width: 100%;
  height: auto;
}

.notice-view-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--pa-line);
}

.notice-btn {
  height: 40px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.03);
  border: 1.5px solid var(--pa-line-strong);
  color: var(--pa-ink);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.notice-btn:hover {
  background: linear-gradient(135deg,var(--neon-cyan2),var(--neon-cyan));
  border-color: var(--neon-cyan);
  color: #001318;
}

.notice-btn.danger {
  border-color: #ff6b6b;
  color: #ff6b6b;
  background: rgba(255,255,255,.03);
}

.notice-btn.danger:hover {
  background: #ff6b6b;
  color: #fff;
}

.notice-back-btn {
  display: none;
}

.notice-write-form {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--pa-line);
  padding: 34px;
  box-shadow: 0 14px 34px rgba(15,23,42,.06);
}

.form-row {
  margin-bottom: 22px;
}

.form-row label {
  display: block;
  margin-bottom: 9px;
  font-size: 14px;
  font-weight: 900;
  color: var(--pa-ink);
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  border: 1px solid var(--pa-line);
  background: rgba(255,255,255,.03);
  padding: 14px 15px;
  font-size: 15px;
  color: var(--pa-ink);
  font-family: inherit;
  outline: none;
}

.form-row textarea {
  min-height: 320px;
  resize: vertical;
  line-height: 1.7;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--pa-amber);
}

.notice-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  color: var(--pa-muted);
  margin-bottom: 20px;
}

.notice-write-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.notice-submit-btn,
.notice-cancel-btn {
  height: 44px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--neon-cyan);
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.notice-submit-btn {
  background: linear-gradient(135deg,var(--neon-cyan2),var(--neon-cyan));
  color: #001318;
}

.notice-cancel-btn {
  background: rgba(255,255,255,.03);
  color: var(--pa-amber);
}

.notice-write-msg {
  min-height: 22px;
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 800;
}

.notice-write-msg.error {
  color: #ff6b6b;
}

.notice-write-msg.success {
  color: var(--pa-amber);
}

@media (max-width: 980px) {
  .notice-layout {
    grid-template-columns: 1fr;
  }

  .notice-list-card {
    height: auto;
    min-height: 0;
    max-height: none;
  }

  .notice-list {
    height: auto;
    max-height: none;
  }

  .notice-view-card {
    min-height: 0;
  }

  .notice-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .notice-toolbar-right {
    width: 100%;
  }

  .notice-search {
    flex: 1;
  }

  .notice-search input {
    width: 100%;
  }

  .notice-hero::after {
    right: 24px;
    font-size: 82px;
  }
}

@media (max-width: 768px) {
  .notice-hero {
    padding: 52px 18px;
  }

  .notice-hero::after {
    content: "NOTICE";
    right: 10px;
    top: 58%;
    font-size: 60px;
    opacity: .04;
  }

  .notice-hero .wrap {
    padding-left: 22px;
  }

  .notice-hero h1 {
    font-size: 34px;
  }

  .notice-wrap {
    padding: 34px 18px 60px;
  }

  .notice-toolbar {
    display: block;
    margin-bottom: 22px;
  }

  .notice-toolbar > div:first-child {
    margin-bottom: 18px;
  }

  .notice-toolbar-right {
    display: block;
    width: 100%;
  }

  .notice-search,
  .notice-search input {
    width: 100%;
  }

  .notice-search input {
    height: 46px;
  }

  .notice-write-btn {
    width: 100%;
    height: 46px;
    margin-top: 10px;
  }

  .notice-layout {
    display: block;
  }

  .notice-list-card {
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
  }

  .notice-list {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .notice-item {
    min-height: auto;
    padding: 17px 16px;
  }

  .notice-title {
    min-height: auto;
    font-size: 15px;
    line-height: 1.45;
  }

  .notice-date {
    margin-top: 8px;
    font-size: 13px;
  }

  .notice-view-card {
    display: none;
    width: 100%;
    min-height: 0;
    margin-top: 0;
    border: 0;
    box-shadow: none;
    background: rgba(255,255,255,.03);
    padding: 0;
  }

  body.notice-detail-mode .notice-list-card {
    display: none;
  }

  body.notice-detail-mode .notice-view-card {
    display: block;
  }

  body.notice-detail-mode .notice-toolbar {
    display: none;
  }

  .notice-view {
    padding: 0;
  }

  .notice-back-btn {
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding: 0 4px;
    border: 0;
    background: none;
    color: var(--pa-amber);
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
    margin-bottom: 18px;
  }

  .notice-view-head {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--pa-line);
  }

  .notice-view-title {
    font-size: 25px;
    line-height: 1.35;
    margin-top: 8px;
  }

  .notice-view-meta {
    font-size: 13px;
    margin-top: 10px;
  }

  .notice-view-body {
    font-size: 16px;
    line-height: 1.9;
    padding: 24px 0;
  }

  .notice-view-actions {
    flex-direction: column;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid var(--pa-line);
  }

  .notice-view-actions .notice-btn {
    width: 100%;
    height: 44px;
  }

  .notice-write-form {
    padding: 24px 18px;
  }

  .notice-write-actions {
    flex-direction: column-reverse;
  }

  .notice-submit-btn,
  .notice-cancel-btn {
    width: 100%;
  }
}