:root {
  --bg: #05070b;
  --bg-soft: #090d13;
  --panel: #0b1118;
  --panel-2: #0e151f;
  --line: rgba(220, 178, 92, .28);
  --line-strong: rgba(230, 188, 101, .72);
  --gold: #e4b766;
  --gold-bright: #ffd58a;
  --text: #f7f1e5;
  --muted: #a8acb3;
  --cool: #c4d2e3;
  --shadow: 0 18px 50px rgba(0,0,0,.45);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 10% -10%, rgba(224, 175, 85, .09), transparent 26%),
    radial-gradient(circle at 90% 20%, rgba(64, 93, 128, .12), transparent 24%),
    #05070b;
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
}
body.dialog-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-shell { min-height: 100vh; }
.topbar {
  height: 76px;
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 64px);
  background: rgba(5,7,11,.82);
  border-bottom: 1px solid rgba(228, 183, 102, .18);
  backdrop-filter: blur(16px);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { color: var(--gold-bright); font-size: 1.45rem; filter: drop-shadow(0 0 10px rgba(255,205,111,.4)); }
.brand-copy { display: grid; gap: 1px; }
.brand-copy strong { font-family: Georgia, serif; font-size: 1.45rem; letter-spacing: .06em; }
.brand-copy small { color: var(--muted); font-size: .63rem; letter-spacing: .22em; }
.desktop-nav { display: flex; align-items: center; gap: 30px; }
.desktop-nav a { color: #d8d6d0; font-size: .9rem; transition: .2s ease; }
.desktop-nav a:hover { color: var(--gold-bright); }
.menu-btn { display: none; border: 0; background: transparent; width: 42px; height: 42px; padding: 10px; cursor: pointer; }
.menu-btn span { display: block; height: 2px; background: var(--gold-bright); margin: 5px 0; border-radius: 2px; }
.mobile-menu { position: fixed; z-index: 29; top: 76px; right: 14px; width: min(250px, calc(100vw - 28px)); padding: 10px; border: 1px solid var(--line); border-radius: 16px; background: rgba(9,13,19,.97); box-shadow: var(--shadow); }
.mobile-menu a { display: block; padding: 14px 16px; border-radius: 10px; color: #ece6da; }
.mobile-menu a:hover { background: rgba(228,183,102,.08); }

.hero {
  position: relative;
  height: min(72vh, 760px);
  min-height: 560px;
  overflow: hidden;
  border-bottom: 1px solid rgba(228,183,102,.24);
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 47%; transform: scale(1.02); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4,5,8,.12) 0%, rgba(4,5,8,.08) 40%, rgba(4,6,10,.76) 100%), linear-gradient(90deg, rgba(5,7,11,.28), transparent 32%, transparent 68%, rgba(5,7,11,.28)); }
.hero-script {
  position: absolute;
  z-index: 2;
  color: rgba(244, 244, 244, .95);
  font-size: clamp(1rem, 1.35vw, 1.45rem);
  line-height: 1.34;
  font-weight: 500;
  letter-spacing: -.02em;
  text-shadow: 0 3px 12px rgba(0,0,0,.55);
  font-family: "Nanum Pen Script", "Segoe Print", "Apple Chancery", cursive;
  white-space: nowrap;
  pointer-events: none;
}
.hero-script-left {
  left: clamp(46px, 4vw, 72px);
  top: 50%;
  transform: translateY(-18%);
}
.hero-script-right {
  right: clamp(46px, 4vw, 72px);
  top: 53%;
  text-align: right;
  transform: translateY(-18%);
}
.hero-copy { position: absolute; left: 50%; bottom: clamp(28px, 6vw, 68px); transform: translateX(-50%); width: min(900px, calc(100% - 40px)); text-align: center; text-shadow: 0 2px 18px rgba(0,0,0,.8); }
.hero-kicker { margin: 0 0 10px; font-size: .76rem; letter-spacing: .48em; color: #f0d7a3; }
.hero-line { margin: 0; font-family: Georgia, serif; font-size: clamp(1.9rem, 4vw, 3.6rem); font-weight: 700; letter-spacing: .06em; }
.hero-sub { margin: 10px 0 18px; color: #e5d4b1; font-size: clamp(.95rem, 2vw, 1.2rem); }
.hero-cta { display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px; border: 1px solid var(--line-strong); border-radius: 999px; color: #f2e6cc; background: rgba(7,9,12,.6); backdrop-filter: blur(10px); font-size: .85rem; }

.section { width: min(1240px, calc(100% - 40px)); margin: 0 auto; padding: 78px 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 28px; }
.section-heading.compact { margin-bottom: 22px; }
.eyebrow { margin: 0 0 8px; color: var(--gold); font-size: .7rem; letter-spacing: .32em; font-weight: 700; }
.section-heading h2, .longform-card h2 { margin: 0 0 7px; font-size: clamp(1.65rem, 2.8vw, 2.35rem); letter-spacing: -.03em; }
.section-heading p, .longform-card p { margin: 0; color: var(--muted); line-height: 1.75; }
.more-link { flex: none; color: #d6bd8c; font-size: .86rem; }

.notice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.notice-card { min-width: 0; overflow: hidden; border: 1px solid rgba(159,174,191,.22); border-radius: var(--radius); background: linear-gradient(180deg, #0d131b, #080c11); box-shadow: 0 14px 40px rgba(0,0,0,.28); transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; opacity: 0; transform: translateY(12px); }
.notice-card.is-visible { opacity: 1; transform: translateY(0); transition-delay: var(--delay, 0ms); }
.notice-card:hover { transform: translateY(-4px); border-color: rgba(228,183,102,.5); box-shadow: 0 20px 50px rgba(0,0,0,.38); }
.poster-button { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #0b0d11; cursor: zoom-in; overflow: hidden; }
.poster-button img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top center; transition: transform .35s ease; }
.poster-button:hover img { transform: scale(1.018); }
.new-pill { position: absolute; top: 14px; left: 14px; padding: 6px 10px; border-radius: 999px; background: #d5a44a; color: #16100a; font-size: .65rem; font-weight: 900; letter-spacing: .08em; box-shadow: 0 6px 20px rgba(0,0,0,.35); }
.notice-copy { padding: 20px; }
.notice-badge, .row-badge, .article-badge { display: inline-flex; align-items: center; border: 1px solid rgba(228,183,102,.42); background: rgba(228,183,102,.09); color: #efcf93; border-radius: 999px; padding: 5px 10px; font-size: .72rem; }
.notice-copy h3 { margin: 12px 0 8px; font-size: 1.25rem; }
.notice-copy p { margin: 0; color: var(--muted); line-height: 1.7; font-size: .92rem; min-height: 3.1em; }
.card-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 18px; }
.card-actions a, .text-button { color: #ead9b8; font-size: .82rem; }
.text-button { border: 0; background: none; padding: 0; cursor: pointer; color: #9299a3; }

.notice-list-section { padding-top: 16px; }
.notice-list { overflow: hidden; border: 1px solid rgba(228,183,102,.22); border-radius: var(--radius); background: rgba(10,14,20,.66); }
.notice-row { display: grid; grid-template-columns: 54px 110px minmax(0,1fr) 24px; gap: 12px; align-items: center; min-height: 68px; padding: 0 20px; border-bottom: 1px solid rgba(159,174,191,.13); transition: .18s ease; }
.notice-row:last-child { border-bottom: 0; }
.notice-row:hover { background: rgba(228,183,102,.045); }
.row-index { color: #68707b; font: 700 .8rem/1 monospace; }
.row-badge { justify-content: center; }
.notice-row strong { font-size: .98rem; }
.row-arrow { color: var(--gold); }

.longform-section { padding-top: 16px; }
.longform-card { display: grid; grid-template-columns: 70px minmax(0,1fr); gap: 22px; align-items: start; padding: clamp(24px,4vw,42px); border: 1px solid var(--line); border-radius: var(--radius); background: radial-gradient(circle at 100% 0%, rgba(228,183,102,.08), transparent 28%), linear-gradient(180deg, rgba(14,20,28,.92), rgba(8,11,16,.94)); }
.longform-icon { display: grid; place-items: center; width: 58px; height: 58px; border: 1px solid rgba(228,183,102,.38); border-radius: 16px; color: var(--gold-bright); font-size: 1.35rem; background: rgba(228,183,102,.05); }
.ghost-btn { margin-top: 18px; padding: 11px 15px; border: 1px solid var(--line-strong); border-radius: 10px; color: #f0d7a3; background: transparent; cursor: pointer; }

.footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding: 30px clamp(20px,4vw,64px) 38px; border-top: 1px solid rgba(228,183,102,.2); background: #05070a; color: #8f949c; }
.footer div { display: flex; align-items: baseline; gap: 10px; }
.footer strong { color: #e7c786; font-family: Georgia, serif; font-size: 1.3rem; }
.footer span { font-size: .63rem; letter-spacing: .16em; }
.footer p { margin: 0; color: #d7c096; font-size: .76rem; letter-spacing: .25em; }
.footer small { justify-self: end; text-align: right; line-height: 1.5; }

.poster-dialog { width: min(1100px, calc(100% - 28px)); max-height: calc(100vh - 28px); padding: 0; border: 1px solid rgba(228,183,102,.45); border-radius: 22px; background: #090d13; color: var(--text); box-shadow: 0 28px 90px rgba(0,0,0,.75); }
.poster-dialog::backdrop { background: rgba(1,3,6,.82); backdrop-filter: blur(7px); }
.dialog-close { position: sticky; float: right; top: 12px; right: 12px; z-index: 5; margin: 12px 12px -52px 0; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; background: rgba(5,7,11,.78); color: #fff; font-size: 1.35rem; cursor: pointer; }
.dialog-body { display: grid; grid-template-columns: minmax(0,1.08fr) minmax(300px,.62fr); }
.dialog-body > img { width: 100%; min-height: 100%; object-fit: contain; background: #030506; }
.dialog-meta { padding: 60px 30px 32px; align-self: start; }
.dialog-meta h2 { margin: 14px 0 10px; font-size: 1.7rem; }
.dialog-meta p { color: var(--muted); line-height: 1.75; }
.gold-btn { display: inline-flex; gap: 10px; margin-top: 14px; padding: 12px 15px; border: 1px solid var(--line-strong); border-radius: 10px; color: #f4d79c; }

.detail-topbar { position: relative; }
.back-link { color: #d9c49d; font-size: .86rem; }
.detail-main { width: min(900px, calc(100% - 40px)); margin: 0 auto; padding: 64px 0 90px; }
.article { overflow: hidden; border: 1px solid rgba(228,183,102,.24); border-radius: 26px; background: linear-gradient(180deg, #0d1219, #080b10); box-shadow: var(--shadow); }
.article-head { padding: clamp(26px,5vw,52px); border-bottom: 1px solid rgba(159,174,191,.12); }
.article-head h1 { margin: 16px 0 10px; font-size: clamp(2rem,6vw,3.2rem); letter-spacing: -.04em; }
.article-head p { margin: 0; color: var(--muted); line-height: 1.75; }
.article-poster { margin: 0; background: #030506; }
.article-poster img { width: 100%; height: auto; }
.article-body { padding: clamp(26px,5vw,52px); font-size: 1.02rem; line-height: 1.95; color: #d4d7dc; }
.article-body p { margin: 0 0 1.25em; }
.article-body p:last-child { margin-bottom: 0; }

@media (max-width: 920px) {
  .desktop-nav { display: none; }
  .menu-btn { display: block; }
  .hero { height: 68vh; min-height: 500px; }
  .hero-bg { object-position: 50% 50%; }
  .notice-grid { grid-template-columns: 1fr; }
  .notice-card { display: grid; grid-template-columns: minmax(220px, .88fr) minmax(0, 1.12fr); }
  .poster-button img { height: 100%; aspect-ratio: auto; min-height: 300px; }
  .notice-copy { display: flex; flex-direction: column; justify-content: center; padding: 26px; }
  .card-actions { margin-top: 22px; }
  .dialog-body { grid-template-columns: 1fr; }
  .dialog-body > img { max-height: 72vh; }
  .dialog-meta { padding-top: 28px; }
  .footer { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .footer small { justify-self: center; text-align: center; }
}

@media (max-width: 640px) {
  .topbar { height: 66px; padding: 0 16px; }
  .mobile-menu { top: 66px; }
  .brand-copy strong { font-size: 1.25rem; }
  .brand-copy small { font-size: .58rem; letter-spacing: .05em; }
  .hero { min-height: 420px; height: 52vh; max-height: 520px; }
  .hero-bg { object-position: center 50%; }
  .hero-shade { background: linear-gradient(180deg, rgba(4,5,8,.04) 0%, rgba(4,5,8,.06) 45%, rgba(4,6,10,.86) 100%); }
  .hero-copy { bottom: 18px; width: calc(100% - 28px); }
  .hero-kicker { font-size: .58rem; letter-spacing: .34em; }
  .hero-line { font-size: 1.35rem; }
  .hero-sub { margin: 7px 0 12px; font-size: .86rem; }
  .hero-cta { padding: 9px 13px; font-size: .74rem; }
  .section { width: calc(100% - 24px); padding: 46px 0; }
  .section-heading { align-items: start; margin-bottom: 18px; }
  .section-heading h2, .longform-card h2 { font-size: 1.55rem; }
  .section-heading p, .longform-card p { font-size: .86rem; }
  .more-link { font-size: .76rem; padding-top: 8px; }
  .notice-grid { gap: 14px; }
  .notice-card { display: block; border-radius: 16px; }
  .poster-button img { width: 100%; height: auto; min-height: 0; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; }
  .new-pill { top: 10px; left: 10px; font-size: .66rem; padding: 5px 8px; }
  .notice-copy { display: block; padding: 16px; }
  .notice-copy h3 { font-size: 1.08rem; margin-top: 10px; }
  .notice-copy p { min-height: 0; font-size: .84rem; }
  .card-actions { margin-top: 14px; }
  .text-button { display: none; }
  .notice-row { grid-template-columns: 32px 92px minmax(0,1fr) 16px; gap: 8px; min-height: 62px; padding: 0 12px; }
  .row-index { font-size: .68rem; }
  .row-badge { font-size: .62rem; padding: 4px 7px; }
  .notice-row strong { font-size: .82rem; line-height: 1.35; }
  .longform-card { grid-template-columns: 1fr; gap: 16px; padding: 22px; border-radius: 16px; }
  .longform-icon { width: 48px; height: 48px; border-radius: 13px; }
  .footer { padding: 26px 18px 32px; }
  .footer p { letter-spacing: .14em; }
  .poster-dialog { width: calc(100% - 14px); max-height: calc(100dvh - 14px); border-radius: 16px; }
  .dialog-body > img { max-height: 64vh; }
  .dialog-meta { padding: 22px 18px 24px; }
  .dialog-meta h2 { font-size: 1.35rem; }
  .detail-main { width: calc(100% - 20px); padding: 22px 0 50px; }
  .article { border-radius: 18px; }
  .article-head, .article-body { padding: 22px 18px; }
  .article-head h1 { font-size: 1.7rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .notice-card { opacity: 1; transform: none; }
}

/* v4 identity refinements */
.brand-copy {
  display: grid;
  gap: 2px;
  align-items: start;
}
.brand-copy strong {
  display: block;
  line-height: 1;
}
.brand-copy small {
  display: block;
  margin-top: 1px;
  color: #d8c9ac;
  font-size: .66rem;
  letter-spacing: .08em;
  line-height: 1.05;
}

/* The supplied full-name artwork is intentionally treated like a signature overlay,
   so its original background softly disappears into the hero rather than looking pasted on. */
.hero-fullname {
  display: block;
  width: min(560px, 68vw);
  max-height: 76px;
  object-fit: cover;
  object-position: center 34%;
  margin: 0 auto 9px;
  opacity: .94;
  mix-blend-mode: screen;
  filter: contrast(1.22) brightness(.86) saturate(1.08) drop-shadow(0 3px 14px rgba(0,0,0,.72));
  -webkit-mask-image: radial-gradient(ellipse 77% 88% at 50% 50%, #000 0 48%, rgba(0,0,0,.98) 58%, rgba(0,0,0,.68) 76%, transparent 100%);
  mask-image: radial-gradient(ellipse 77% 88% at 50% 50%, #000 0 48%, rgba(0,0,0,.98) 58%, rgba(0,0,0,.68) 76%, transparent 100%);
}

.hero-kicker { margin-top: 2px; }
.hero-line { margin-top: 2px; }
.hero-sub { margin-top: 8px; }

.footer .producer {
  justify-self: end;
  color: #777c84;
  letter-spacing: .08em;
  font-size: .66rem;
  font-weight: 400;
  text-transform: none;
}

@media (max-width: 920px) {
  .hero-script { display: none; }
}

@media (max-width: 760px) {
  .hero-fullname {
    width: min(460px, 78vw);
    max-height: 58px;
    margin-bottom: 7px;
    -webkit-mask-image: radial-gradient(ellipse 80% 88% at 50% 50%, #000 0 48%, rgba(0,0,0,.96) 60%, rgba(0,0,0,.58) 77%, transparent 100%);
    mask-image: radial-gradient(ellipse 80% 88% at 50% 50%, #000 0 48%, rgba(0,0,0,.96) 60%, rgba(0,0,0,.58) 77%, transparent 100%);
  }
  .footer .producer { justify-self: center; text-align: center; }
}

@media (max-width: 520px) {
  .hero-copy { bottom: 20px; }
  .hero-fullname {
    width: min(390px, 76vw);
    max-height: 48px;
    margin-bottom: 5px;
  }
  .hero-kicker {
    margin-bottom: 8px;
    font-size: .52rem;
    letter-spacing: .31em;
  }
  .hero-line {
    font-size: 1.12rem;
    letter-spacing: .045em;
  }
  .hero-sub {
    margin: 7px 0 12px;
    font-size: .82rem;
  }
  .footer .producer {
    font-size: .52rem;
    letter-spacing: .07em;
  }
}

/* v5 - dedicated notice board */
.desktop-nav a.is-current,
.mobile-menu a.is-current { color: var(--gold-bright); }

.notice-board-callout { padding-top: 16px; padding-bottom: 18px; }
.board-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(24px,4vw,38px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 100% 0%, rgba(228,183,102,.08), transparent 32%),
    linear-gradient(180deg, rgba(14,20,28,.94), rgba(8,11,16,.96));
  transition: border-color .2s ease, transform .2s ease;
}
.board-callout:hover { border-color: rgba(230,188,101,.58); transform: translateY(-2px); }
.board-callout h2 { margin: 0 0 8px; font-size: clamp(1.55rem,2.8vw,2.2rem); }
.board-callout p { margin: 0; color: var(--muted); line-height: 1.7; }
.board-callout-arrow { flex: none; color: #efcf93; font-size: .9rem; }

.board-main { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 70px 0 92px; }
.board-hero { padding: 18px 0 42px; border-bottom: 1px solid rgba(228,183,102,.18); margin-bottom: 26px; }
.board-hero h1 { margin: 0 0 12px; font-size: clamp(2.1rem,6vw,4rem); letter-spacing: -.045em; }
.board-hero > p:not(.eyebrow) { max-width: 720px; margin: 0; color: var(--muted); line-height: 1.75; }
.board-count { display: inline-flex; gap: 4px; margin-top: 18px; padding: 7px 11px; border: 1px solid rgba(228,183,102,.24); border-radius: 999px; color: #c8b58f; font-size: .75rem; }

.board-feed { display: grid; gap: 20px; }
.board-post {
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr);
  min-height: 370px;
  overflow: hidden;
  border: 1px solid rgba(159,174,191,.2);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(13,19,27,.98), rgba(7,10,15,.99));
  box-shadow: 0 14px 40px rgba(0,0,0,.25);
  opacity: 0;
  transform: translateY(12px);
}
.board-post.is-visible { opacity: 1; transform: translateY(0); transition: opacity .35s ease var(--delay,0ms), transform .35s ease var(--delay,0ms), border-color .2s ease; }
.board-post:hover { border-color: rgba(228,183,102,.38); }
.board-poster { position: relative; min-height: 100%; padding: 0; border: 0; background: #030506; overflow: hidden; cursor: zoom-in; }
.board-poster img { width: 100%; height: 100%; min-height: 370px; object-fit: cover; object-position: top center; transition: transform .3s ease; }
.board-poster:hover img { transform: scale(1.015); }
.board-poster span { position: absolute; left: 14px; bottom: 14px; padding: 7px 10px; border: 1px solid rgba(255,255,255,.15); border-radius: 999px; background: rgba(4,6,9,.72); color: #ede5d6; font-size: .68rem; backdrop-filter: blur(7px); }
.board-post-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(24px,4vw,42px); }
.board-post-meta { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.board-post-meta time { color: #737a84; font-size: .75rem; letter-spacing: .06em; }
.board-post-copy h2 { margin: 16px 0 9px; font-size: clamp(1.55rem,3vw,2.25rem); letter-spacing: -.035em; }
.board-summary { margin: 0; color: #c4c8ce; line-height: 1.75; font-size: .98rem; }
.board-text-preview { margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(159,174,191,.12); }
.board-text-preview p { margin: 0; color: #8f959e; line-height: 1.85; font-size: .9rem; }
.board-actions { margin-top: 22px; }
.board-actions .gold-btn { margin-top: 0; }
.board-empty { color: var(--muted); text-align: center; padding: 80px 0; }

.article-meta { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.article-meta time { color: #737a84; font-size: .76rem; letter-spacing: .06em; }

@media (max-width: 760px) {
  .board-callout { align-items: flex-start; flex-direction: column; gap: 18px; }
  .board-main { width: calc(100% - 24px); padding: 38px 0 62px; }
  .board-hero { padding: 10px 4px 28px; margin-bottom: 16px; }
  .board-feed { gap: 14px; }
  .board-post { display: block; min-height: 0; border-radius: 17px; }
  .board-poster { display: block; width: 100%; min-height: 0; }
  .board-poster img { min-height: 0; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; }
  .board-poster span { left: 10px; bottom: 10px; font-size: .62rem; }
  .board-post-copy { padding: 18px 16px 20px; }
  .board-post-copy h2 { margin: 13px 0 7px; font-size: 1.25rem; }
  .board-summary { font-size: .87rem; }
  .board-text-preview { margin-top: 14px; padding-top: 14px; }
  .board-text-preview p { font-size: .82rem; line-height: 1.75; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
  .board-actions { margin-top: 17px; }
  .board-actions .gold-btn { width: 100%; justify-content: space-between; }
  .article-meta { align-items: flex-start; }
}

/* v6 desktop layout — matches the approved PC concept while preserving the approved mobile layout */
.topbar-right { display: flex; align-items: center; gap: 22px; }
.brand-tagline,
.topbar-game {
  color: #d5d1c8;
  font-size: .64rem;
  letter-spacing: .32em;
  white-space: nowrap;
}
.brand-tagline { margin-left: 14px; }
.menu-btn { display: block; }
.hero-backdrop,
.hero-side,
.hero-nav { display: none; }

@media (min-width: 901px) {
  .topbar {
    position: relative;
    height: 54px;
    padding: 0 28px;
    background: rgba(4,7,11,.97);
    border-bottom: 1px solid rgba(228,183,102,.18);
  }
  .brand { gap: 9px; }
  .brand-mark { font-size: 1.05rem; }
  .brand-copy strong { font-size: 1.05rem; letter-spacing: .08em; }
  .topbar-game { font-size: .61rem; }
  .menu-btn { width: 34px; height: 34px; padding: 7px; }
  .menu-btn span { margin: 4px 0; }
  .mobile-menu { top: 62px; right: 24px; }

  .hero {
    height: clamp(330px, 28vw, 430px);
    min-height: 330px;
    max-height: 430px;
    background: #03070c;
    border-bottom: 1px solid rgba(228,183,102,.4);
    isolation: isolate;
  }
  .hero-backdrop {
    display: block;
    position: absolute;
    inset: -22%;
    z-index: -3;
    background: url('../images/n2s-mark.png') center 48% / cover no-repeat;
    filter: blur(28px) brightness(.42) saturate(.82);
    transform: scale(1.08);
    opacity: .88;
  }
  .hero-bg {
    position: absolute;
    z-index: -2;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center 50%;
    transform: none;
    filter: saturate(.93) contrast(1.05) brightness(.9);
  }
  .hero-shade {
    z-index: -1;
    background:
      linear-gradient(90deg, rgba(2,6,10,.86) 0%, rgba(2,6,10,.22) 24%, rgba(2,6,10,.08) 50%, rgba(2,6,10,.22) 76%, rgba(2,6,10,.86) 100%),
      linear-gradient(180deg, rgba(2,5,8,.02) 0%, rgba(2,5,8,.06) 58%, rgba(2,5,8,.44) 100%);
  }
  .hero-copy { display: none; }
  .hero-side {
    position: absolute;
    top: 24px;
    display: grid;
    gap: 8px;
    z-index: 2;
    color: rgba(235,236,239,.82);
    font-size: .6rem;
    letter-spacing: .24em;
    line-height: 1.35;
    text-shadow: 0 2px 14px #000;
  }
  .hero-side strong { color: #f0e9da; font-size: .68rem; font-weight: 500; }
  .hero-side-left { left: 32px; }
  .hero-side-right { right: 32px; text-align: right; }

  .hero-nav {
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 72px;
    border-bottom: 1px solid rgba(228,183,102,.25);
    background: linear-gradient(180deg, #091017, #060a0f);
  }
  .hero-nav a {
    position: relative;
    color: #d9d8d2;
    font-size: .78rem;
    letter-spacing: .06em;
  }
  .hero-nav a.is-active { color: #f0cf8d; }
  .hero-nav a.is-active::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -16px;
    width: 48px;
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, #e7b964, transparent);
    box-shadow: 0 0 8px rgba(231,185,100,.6);
  }

  .section.latest {
    width: min(1480px, calc(100% - 48px));
    padding: 34px 0 40px;
  }
  .latest .section-heading {
    position: relative;
    display: block;
    text-align: center;
    margin-bottom: 22px;
  }
  .latest .section-heading .eyebrow {
    margin-bottom: 7px;
    color: #f0eadf;
    font-family: Georgia, serif;
    font-size: 1rem;
    letter-spacing: .42em;
    font-weight: 500;
  }
  .latest .section-heading h2 { display: none; }
  .latest .section-heading p { font-size: .76rem; color: #9299a3; }
  .latest .more-link {
    position: absolute;
    right: 0;
    top: 12px;
    color: #c9c3b7;
    font-size: .68rem;
    letter-spacing: .18em;
  }
  .latest .more-link::before { content: 'N2S CLAN NOTICE  '; }

  .notice-grid { gap: 18px; }
  .notice-card { border-radius: 16px; }
  .poster-button img { aspect-ratio: 4 / 5; }
  .notice-copy { padding: 16px 18px 18px; }
  .notice-copy h3 { margin: 10px 0 7px; font-size: 1.12rem; }
  .notice-copy p { min-height: 2.9em; font-size: .82rem; line-height: 1.65; }
  .notice-badge { font-size: .64rem; padding: 4px 8px; }
  .card-actions { margin-top: 14px; }

  .notice-board-callout {
    width: min(1480px, calc(100% - 48px));
    padding: 0 0 24px;
  }
  .board-callout {
    border: 0;
    border-top: 1px solid rgba(159,174,191,.14);
    border-bottom: 1px solid rgba(228,183,102,.22);
    border-radius: 0;
    padding: 20px 4px;
    background: transparent;
  }
  .board-callout .eyebrow { display: none; }
  .board-callout h2 { margin: 0 0 5px; font-size: 1.2rem; }
  .board-callout p { font-size: .78rem; }
  .board-callout-arrow { font-size: .68rem; letter-spacing: .14em; }

  /* The desktop concept keeps the home page concise; long notices remain available through the board/detail pages. */
  .longform-section { display: none; }

  .footer {
    grid-template-columns: 1fr auto 1fr;
    padding: 22px 28px 28px;
  }
  .footer strong { font-size: 1rem; }
  .footer span, .footer p { font-size: .54rem; }
  .footer .producer { font-size: .48rem; }
}

@media (max-width: 900px) {
  .brand-tagline,
  .topbar-game,
  .hero-side,
  .hero-nav,
  .hero-backdrop { display: none !important; }
}

/* v7 — desktop hero refinement + stacked N2S identity */
.brand { gap: 10px; }
.brand-copy {
  display: grid;
  align-items: center;
  gap: 2px;
  line-height: 1;
}
.brand-copy strong {
  line-height: 1;
  font-family: Georgia, serif;
}
.brand-copy small {
  display: block;
  color: #c9c4b9;
  font-size: .54rem;
  letter-spacing: .13em;
  line-height: 1.15;
  white-space: nowrap;
}
.brand-tagline { display: none !important; }

@media (min-width: 901px) {
  .topbar { height: 58px; }
  .brand-mark { font-size: 1.05rem; }
  .brand-copy strong { font-size: 1.1rem; letter-spacing: .07em; }
  .brand-copy small { margin-top: 2px; font-size: .56rem; letter-spacing: .11em; }

  .hero {
    height: clamp(390px, 29vw, 500px);
    min-height: 390px;
    max-height: 500px;
    background: #03070b;
  }
  .hero-backdrop { display: none; }
  .hero-bg {
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transform: none;
    filter: none;
    content: url('../images/n2s-hero-desktop.jpg');
  }
  .hero-shade {
    background:
      linear-gradient(90deg, rgba(3,6,10,.34) 0%, rgba(3,6,10,.04) 24%, rgba(3,6,10,0) 50%, rgba(3,6,10,.04) 76%, rgba(3,6,10,.34) 100%),
      linear-gradient(180deg, rgba(2,4,7,.02) 0%, rgba(2,4,7,.00) 56%, rgba(2,5,8,.24) 100%);
  }
  .hero-side { top: 30px; }
  .hero-side-left { left: 32px; }
  .hero-side-right { right: 32px; }

  .footer .producer {
    font-size: .67rem;
    letter-spacing: .07em;
  }
}

@media (max-width: 900px) {
  .brand-copy strong { font-size: 1.22rem; }
  .brand-copy small { font-size: .49rem; letter-spacing: .13em; }
  .footer .producer { font-size: .64rem; }
}

@media (max-width: 520px) {
  .brand-copy small { font-size: .46rem; }
  .footer .producer { font-size: .68rem; }
}

/* v8 — approved full-width desktop hero. Fill the entire header area like the concept mockup. */
@media (min-width: 901px) {
  .topbar {
    height: 82px;
    padding-top: 4px;
    padding-bottom: 2px;
  }

  .brand {
    transform: translateY(5px);
  }

  .brand-copy strong,
  .brand-copy small {
    line-height: 1.05;
  }

  .hero {
    height: clamp(410px, 28vw, 520px);
    min-height: 410px;
    max-height: 520px;
    background: #03070b;
  }

  .hero-bg {
    content: url('../images/n2s-hero-full-desktop-v10.png');
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transform: none;
    filter: none;
  }

  /* The approved hero artwork already contains the left/right identity copy,
     so do not duplicate it with HTML overlays. */
  .hero-side { display: none !important; }
  .hero-backdrop { display: none !important; }

  .hero-shade {
    background:
      radial-gradient(circle at 50% 36%, rgba(4,6,10,.24) 0%, rgba(4,6,10,.16) 26%, rgba(4,6,10,0) 52%),
      linear-gradient(180deg, rgba(2,4,7,.10) 0%, rgba(2,4,7,.06) 38%, rgba(2,5,8,.18) 100%);
  }
}

/* v19 — bulletin board / admin prototype */
.board-main-v19 { width: min(1180px, calc(100% - 40px)); }
.board-hero-v19 { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; }
.board-write-btn {
  flex: none; padding: 11px 22px; border: 1px solid rgba(230,188,101,.7); border-radius: 4px;
  background: #0b0f15; color: #f4dfb4; cursor: pointer; font-weight: 700;
}
.board-write-btn:hover { background: rgba(228,183,102,.1); }
.board-table-shell { border-top: 2px solid rgba(230,188,101,.6); border-bottom: 1px solid rgba(159,174,191,.18); }
.board-table-head {
  display: grid; grid-template-columns: 68px minmax(0,1fr) 120px 110px; align-items: center;
  min-height: 52px; padding: 0 16px; border-bottom: 1px solid rgba(159,174,191,.26);
  color: #b8bdc5; font-size: .76rem; text-align: center;
}
.board-table-head span:nth-child(2) { text-align: left; padding-left: 154px; }
.board-feed-v19 { display: block; }
.board-row-v19 {
  display: grid; grid-template-columns: 68px 132px minmax(0,1fr) 120px 110px; gap: 18px; align-items: center;
  min-height: 138px; padding: 14px 16px; border-bottom: 1px solid rgba(159,174,191,.14); background: rgba(8,12,18,.46);
}
.board-row-v19:last-child { border-bottom: 0; }
.board-row-number { text-align: center; color: #7f8791; font-size: .8rem; }
.board-row-poster { width: 132px; aspect-ratio: 16/10; padding: 0; border: 1px solid rgba(159,174,191,.18); border-radius: 8px; overflow: hidden; background: #030506; cursor: zoom-in; }
.board-row-poster img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.board-row-copy { min-width: 0; }
.board-row-meta { margin-bottom: 8px; }
.board-row-title { display: block; width: fit-content; max-width: 100%; color: #f6f1e7; font-size: 1.08rem; font-weight: 750; line-height: 1.4; }
.board-row-title:hover { color: #f0ca80; }
.board-row-copy > p { margin: 7px 0 0; color: #9098a3; font-size: .84rem; line-height: 1.55; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-row-date { text-align: center; color: #858c95; font-size: .76rem; }
.board-row-admin { display: flex; justify-content: center; gap: 7px; }
.board-row-admin button { border: 0; background: transparent; color: #b8bdc5; padding: 5px 2px; cursor: pointer; font-size: .76rem; }
.board-row-admin button:hover { color: #f0cf8d; }
.board-row-admin .delete-link:hover { color: #f08f8f; }
.board-pagination { display: flex; justify-content: center; align-items: center; gap: 7px; padding: 34px 0 4px; }
.board-pagination button { min-width: 34px; height: 34px; padding: 0 9px; border: 1px solid rgba(159,174,191,.22); background: transparent; color: #aab0b8; cursor: pointer; border-radius: 4px; }
.board-pagination button:hover:not(:disabled), .board-pagination button.is-current { color: #f3d798; border-color: rgba(230,188,101,.62); background: rgba(228,183,102,.08); }
.board-pagination button:disabled { opacity: .28; cursor: default; }

.admin-auth-dialog, .notice-editor-dialog, .delete-dialog { width: min(92vw, 520px); border: 1px solid rgba(230,188,101,.38); border-radius: 18px; padding: 0; color: var(--text); background: #090e15; box-shadow: 0 30px 80px rgba(0,0,0,.68); }
.notice-editor-dialog { width: min(94vw, 760px); }
.admin-auth-dialog::backdrop, .notice-editor-dialog::backdrop, .delete-dialog::backdrop { background: rgba(0,0,0,.76); backdrop-filter: blur(5px); }
.admin-auth-card, .notice-editor, .delete-card { position: relative; padding: 30px; }
.admin-lock { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; margin-bottom: 18px; border: 1px solid rgba(230,188,101,.34); border-radius: 14px; background: rgba(228,183,102,.08); }
.admin-auth-card h2, .delete-card h2 { margin: 6px 0 6px; font-size: 1.7rem; }
.admin-auth-card > p:not(.eyebrow):not(.admin-error), .delete-card > p:not(.eyebrow) { color: #9aa1aa; }
.admin-auth-card input, .notice-editor input, .notice-editor textarea { width: 100%; margin-top: 8px; padding: 12px 13px; border: 1px solid rgba(159,174,191,.25); border-radius: 9px; background: #05090e; color: #f5efe3; outline: none; }
.admin-auth-card input:focus, .notice-editor input:focus, .notice-editor textarea:focus { border-color: rgba(230,188,101,.68); }
.admin-submit { width: 100%; justify-content: center; margin-top: 8px; }
.admin-error { min-height: 22px; margin: 8px 0 0; color: #f09a9a; font-size: .8rem; }
.admin-modal-close { position: absolute; top: 15px; right: 15px; width: 36px; height: 36px; border: 0; border-radius: 999px; background: rgba(255,255,255,.05); color: #d9d9d9; cursor: pointer; font-size: 1.25rem; }
.editor-head { position: relative; padding-right: 42px; }
.editor-head h2 { margin: 5px 0 22px; font-size: 1.8rem; }
.notice-editor label { display: block; margin: 0 0 16px; color: #c5c9ce; font-size: .82rem; }
.notice-editor textarea { resize: vertical; line-height: 1.65; }
.editor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.upload-help { display: block; margin-top: 7px; color: #737b85; font-size: .72rem; }
.editor-poster-preview { width: min(320px,100%); margin: 0 0 20px; overflow: hidden; border: 1px solid rgba(159,174,191,.18); border-radius: 10px; }
.editor-poster-preview img { width: 100%; height: auto; }
.editor-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.danger-btn { padding: 11px 18px; border: 1px solid rgba(235,105,105,.45); border-radius: 10px; background: rgba(185,54,54,.16); color: #ffb5b5; cursor: pointer; }

@media (max-width: 760px) {
  .board-main-v19 { width: calc(100% - 22px); }
  .board-hero-v19 { align-items: stretch; flex-direction: column; gap: 20px; }
  .board-write-btn { align-self: flex-end; padding: 9px 18px; }
  .board-table-head { display: none; }
  .board-table-shell { border-top-width: 1px; }
  .board-row-v19 { grid-template-columns: 68px minmax(0,1fr); gap: 12px 14px; padding: 14px 10px; }
  .board-row-number { grid-row: 1 / span 2; }
  .board-row-poster { width: 100%; max-width: 132px; }
  .board-row-copy { grid-column: 2; }
  .board-row-copy > p { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .board-row-date { grid-column: 2; text-align: left; }
  .board-row-admin { grid-column: 2; justify-content: flex-start; }
  .board-pagination { padding-top: 24px; }
  .editor-grid { grid-template-columns: 1fr; gap: 0; }
  .admin-auth-card, .notice-editor, .delete-card { padding: 24px 18px; }
}

.admin-shared-note { display:block; margin:-2px 0 10px; color:#8f949c; font-size:.72rem; letter-spacing:.02em; }

/* v23 — board pin/search improvements */
.board-table-head {
  grid-template-columns: 68px minmax(0,1fr) 120px 150px;
}
.board-row-v19 {
  grid-template-columns: 68px 132px minmax(0,1fr) 120px 150px;
}
.board-row-v19.is-pinned {
  background: linear-gradient(90deg, rgba(228,183,102,.07), rgba(8,12,18,.5) 22%, rgba(8,12,18,.46));
  box-shadow: inset 3px 0 0 rgba(230,188,101,.65);
}
.board-row-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}
.pinned-indicator {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border: 1px solid rgba(230,188,101,.36);
  border-radius: 999px;
  background: rgba(228,183,102,.08);
  color: #f0cf8d;
  font-size: .68rem;
  white-space: nowrap;
}
.board-row-admin {
  align-items: center;
  flex-wrap: wrap;
}
.board-row-admin .pin-icon-btn {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid rgba(159,174,191,.2);
  border-radius: 7px;
  background: rgba(255,255,255,.025);
  filter: grayscale(.65);
  opacity: .76;
  line-height: 1;
}
.board-row-admin .pin-icon-btn:hover,
.board-row-admin .pin-icon-btn.is-pinned {
  border-color: rgba(230,188,101,.55);
  background: rgba(228,183,102,.09);
  filter: none;
  opacity: 1;
}
.board-search {
  margin: 28px auto 0;
  padding-top: 26px;
  border-top: 1px solid rgba(159,174,191,.14);
}
.board-search-form {
  display: grid;
  grid-template-columns: 140px minmax(0,1fr) 86px auto;
  gap: 8px;
  max-width: 760px;
  margin: 0 auto;
}
.board-search-form select,
.board-search-form input {
  min-width: 0;
  height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(159,174,191,.25);
  border-radius: 6px;
  outline: none;
  background: #070b11;
  color: #ece6db;
}
.board-search-form select:focus,
.board-search-form input:focus {
  border-color: rgba(230,188,101,.62);
}
.board-search-submit,
.board-search-clear {
  height: 42px;
  padding: 0 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
}
.board-search-submit {
  border: 1px solid rgba(230,188,101,.62);
  background: rgba(228,183,102,.10);
  color: #f1d79f;
}
.board-search-clear {
  border: 1px solid rgba(159,174,191,.23);
  background: transparent;
  color: #aeb4bc;
}
.board-search-status {
  min-height: 20px;
  margin: 10px 0 0;
  text-align: center;
  color: #747c86;
  font-size: .75rem;
}

@media (max-width: 760px) {
  .board-row-v19 {
    grid-template-columns: 54px minmax(0,1fr);
  }
  .board-row-number { grid-row: 1 / span 3; }
  .board-row-admin { gap: 10px; }
  .board-row-admin .pin-icon-btn { width: 32px; height: 32px; }
  .board-search { margin-top: 20px; padding-top: 20px; }
  .board-search-form {
    grid-template-columns: 105px minmax(0,1fr);
  }
  .board-search-submit,
  .board-search-clear {
    width: 100%;
  }
}


/* v23.3 - text-only notices */
.optional-label {
  margin-left: 6px;
  color: #8f9aaa;
  font-size: .76rem;
  font-weight: 500;
}
.board-row-no-poster {
  display: grid;
  place-items: center;
  cursor: default;
  background:
    radial-gradient(circle at 50% 40%, rgba(228,183,102,.13), transparent 58%),
    linear-gradient(145deg, #0b1017, #05080c);
}
.board-row-no-poster span {
  color: #cdb17a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: .72rem;
  line-height: 1.45;
  letter-spacing: .16em;
  text-align: center;
}
.text-notice-cover {
  min-height: 310px;
  cursor: default;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 40%, rgba(228,183,102,.18), transparent 42%),
    linear-gradient(145deg, #0b1119, #05080c);
}
.text-notice-mark {
  display: grid;
  gap: 8px;
  text-align: center;
  color: #d9c294;
  letter-spacing: .12em;
}
.text-notice-mark strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  letter-spacing: .06em;
}
.text-notice-mark span {
  font-size: .72rem;
  color: #8f98a5;
}
@media (max-width: 900px) {
  .text-notice-cover { min-height: 210px; }
}


/* v24 - screenshot community board */
.screenshot-board-hero { border-bottom-color: rgba(174,145,92,.2); }
.screenshot-badge { display:inline-flex; align-items:center; padding:5px 9px; border:1px solid rgba(194,165,108,.34); border-radius:999px; color:#d7bd89; background:rgba(194,165,108,.07); font-size:.65rem; letter-spacing:.12em; }
.image-count { margin-left:8px; color:#7f8995; font-size:.68rem; }
.screenshot-row-thumb { width:132px; aspect-ratio:16/10; overflow:hidden; border:1px solid rgba(159,174,191,.18); border-radius:8px; background:#030506; display:block; }
.screenshot-row-thumb img { width:100%; height:100%; object-fit:cover; }
.screenshot-row-thumb.no-image { display:grid; place-items:center; color:#747d89; font-size:.62rem; letter-spacing:.12em; }
.password-guide strong { color:#e7c98f; font-weight:700; }
.screenshot-existing-gallery, .screenshot-selected-preview { margin:0 0 18px; padding:14px; border:1px solid rgba(159,174,191,.16); border-radius:12px; background:#060a10; }
.screenshot-existing-gallery > p { margin:0 0 10px; color:#aab0b9; font-size:.78rem; }
.screenshot-existing-gallery > div, .screenshot-selected-preview { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.screenshot-existing-gallery img, .screenshot-selected-preview img { width:100%; aspect-ratio:16/10; object-fit:cover; border-radius:8px; border:1px solid rgba(159,174,191,.16); }
.screenshot-existing-gallery small { display:block; margin-top:10px; color:#7e8792; line-height:1.5; }
.screenshot-detail-content { padding:clamp(24px,4vw,42px); color:#d1d5db; line-height:1.95; white-space:pre-wrap; border-bottom:1px solid rgba(159,174,191,.12); }
.screenshot-detail-content:empty { display:none; }
.screenshot-detail-gallery { padding:clamp(20px,4vw,42px); display:grid; gap:18px; }
.screenshot-detail-gallery a { display:block; border-radius:14px; overflow:hidden; border:1px solid rgba(159,174,191,.16); background:#030506; }
.screenshot-detail-gallery img { width:100%; height:auto; }
.screenshot-article .article-head { padding-bottom:30px; }
@media (max-width:760px) {
  .screenshot-row { grid-template-columns:68px minmax(0,1fr); }
  .screenshot-row-thumb { width:100%; max-width:132px; }
  .screenshot-existing-gallery > div, .screenshot-selected-preview { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

/* v25 — master & submaster leadership page */
.leaders-main {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 64px 0 92px;
}
.leaders-hero {
  padding: 12px 0 34px;
  border-bottom: 1px solid rgba(228,183,102,.18);
  margin-bottom: 32px;
}
.leaders-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2.1rem, 5vw, 3.8rem);
  letter-spacing: -.045em;
}
.leaders-hero p:not(.eyebrow) {
  max-width: 860px;
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}
.master-feature-card {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  gap: 26px;
  align-items: stretch;
  margin-bottom: 36px;
}
.master-feature-copy,
.master-feature-poster {
  border: 1px solid rgba(228,183,102,.2);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(14,20,28,.96), rgba(7,10,15,.98));
  box-shadow: 0 18px 44px rgba(0,0,0,.28);
}
.master-feature-copy {
  padding: clamp(24px, 3.8vw, 40px);
}
.master-feature-copy h2 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 2.8vw, 2.35rem);
}
.master-feature-copy strong {
  display: block;
  margin-bottom: 14px;
  color: var(--gold-bright);
  font-size: clamp(2rem, 3.8vw, 3.4rem);
  font-family: Georgia, serif;
  letter-spacing: .04em;
}
.master-feature-copy > p {
  margin: 0;
  color: #cfd4dc;
  line-height: 1.85;
}
.master-feature-points {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.master-feature-points li {
  position: relative;
  padding-left: 18px;
  color: #aeb4bd;
  line-height: 1.7;
}
.master-feature-points li::before {
  content: '✦';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold);
}
.master-feature-poster {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  cursor: zoom-in;
}
.master-feature-poster img {
  width: 100%;
  height: 100%;
  min-height: 720px;
  object-fit: cover;
  object-position: top center;
}
.submasters-section {
  padding: 10px 0 0;
}
.leaders-empty-note {
  margin: 0 0 18px;
  color: #9ba2ac;
  line-height: 1.75;
}
.submaster-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.leader-slot {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(228,183,102,.18);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(11,17,24,.96), rgba(7,10,15,.99));
  box-shadow: 0 14px 34px rgba(0,0,0,.24);
}
.leader-slot-filled {
  display: grid;
  grid-template-rows: auto auto;
}
.leader-slot-zoom {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #05070b;
  cursor: zoom-in;
}
.leader-slot-zoom img {
  width: 100%;
  aspect-ratio: 4 / 5.45;
  object-fit: cover;
  object-position: top center;
}
.leader-slot-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 16px 18px;
}
.leader-role-chip {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 5px 10px;
  border: 1px solid rgba(228,183,102,.28);
  border-radius: 999px;
  background: rgba(228,183,102,.08);
  color: #efcf93;
  font-size: .68rem;
  letter-spacing: .08em;
}
.leader-slot-meta strong {
  display: block;
  font-size: 1.04rem;
}
.leader-slot-meta p {
  margin: 8px 0 0;
  color: #99a0aa;
  font-size: .84rem;
  line-height: 1.6;
}
.leader-slot-actions {
  display: flex;
  gap: 10px;
}
.leader-mini-btn,
.danger-line-btn {
  margin-top: 0;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: .8rem;
  cursor: pointer;
}
.danger-line-btn {
  border: 1px solid rgba(216, 106, 106, .38);
  background: rgba(138, 47, 47, .08);
  color: #ffb1b1;
}
.leader-slot-empty {
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 22px;
  border-style: dashed;
  color: #d6c4a0;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.leader-slot-empty:hover {
  transform: translateY(-2px);
  border-color: rgba(228,183,102,.46);
  background: linear-gradient(180deg, rgba(19,26,36,.94), rgba(11,15,21,.98));
}
.leader-empty-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(228,183,102,.38);
  border-radius: 50%;
  color: var(--gold-bright);
  font-size: 1.7rem;
}
.leader-slot-empty strong {
  font-size: 1rem;
}
.leader-slot-empty p {
  margin: 0;
  color: #9ea5af;
  text-align: center;
  line-height: 1.7;
}
.leader-editor-dialog,
.delete-dialog { color: var(--text); }
.leader-editor-dialog::backdrop,
.delete-dialog::backdrop { background: rgba(1,3,6,.82); backdrop-filter: blur(7px); }
.leader-editor-card,
.leader-delete-card {
  width: min(560px, calc(100vw - 24px));
  padding: 26px;
  border: 1px solid rgba(228,183,102,.35);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(10,15,22,.98), rgba(8,11,16,.99));
}
.leader-editor-card label,
.delete-password-label {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  color: #d7dce2;
}
.leader-editor-card input,
.delete-password-label input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(159,174,191,.2);
  border-radius: 12px;
  color: var(--text);
  background: rgba(5,8,12,.9);
}
.leader-editor-hint {
  margin: 8px 0 0;
  color: #9ba2ac;
  line-height: 1.7;
}
.leader-dialog-body > img { background: #030506; }

@media (max-width: 1180px) {
  .submaster-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 920px) {
  .leaders-main { width: calc(100% - 24px); padding: 40px 0 62px; }
  .master-feature-card { grid-template-columns: 1fr; }
  .master-feature-poster img { min-height: 0; height: auto; aspect-ratio: 4 / 5.3; }
  .submaster-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .leaders-hero { margin-bottom: 22px; }
  .leaders-hero h1 { font-size: 1.8rem; }
  .master-feature-copy { padding: 20px; border-radius: 18px; }
  .master-feature-poster { border-radius: 18px; }
  .master-feature-copy strong { font-size: 2.2rem; }
  .submaster-grid { grid-template-columns: 1fr; gap: 14px; }
  .leader-slot-empty { min-height: 260px; }
  .leader-slot-actions { flex-direction: column; }
  .leader-editor-card,
  .leader-delete-card { padding: 20px; border-radius: 18px; }
}

.detail-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

@media (max-width: 640px) {
  .detail-links {
    gap: 8px;
    flex-direction: column;
    align-items: flex-end;
  }
}

/* v25.1 — leadership page compact view / password disclosure cleanup */
@media (min-width: 921px) {
  .leaders-main {
    width: min(1180px, calc(100% - 48px));
    padding: 34px 0 66px;
  }

  .leaders-hero {
    padding: 4px 0 20px;
    margin-bottom: 20px;
  }

  .leaders-hero h1 {
    margin-bottom: 8px;
    font-size: clamp(2rem, 3.3vw, 3rem);
  }

  .leaders-hero p:not(.eyebrow) {
    font-size: .92rem;
    line-height: 1.65;
  }

  .master-feature-card {
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 18px;
    margin-bottom: 22px;
    align-items: stretch;
  }

  .master-feature-poster {
    grid-column: 1;
    grid-row: 1;
    min-height: 0;
    border-radius: 18px;
    background: #05070b;
  }

  .master-feature-poster img {
    width: 100%;
    height: 330px;
    min-height: 0;
    object-fit: contain;
    object-position: center;
    background: #05070b;
  }

  .master-feature-copy {
    grid-column: 2;
    grid-row: 1;
    min-height: 330px;
    padding: 30px 34px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 18px;
  }

  .master-feature-copy h2 {
    margin-bottom: 8px;
    font-size: 1.45rem;
  }

  .master-feature-copy strong {
    margin-bottom: 10px;
    font-size: clamp(2.2rem, 3.2vw, 3rem);
  }

  .master-feature-copy > p {
    max-width: 650px;
    font-size: .95rem;
    line-height: 1.75;
  }

  .master-feature-points {
    display: none !important;
  }

  .submasters-section {
    padding-top: 0;
  }

  .submasters-section .section-heading {
    margin-bottom: 12px;
  }

  .submasters-section .section-heading h2 {
    font-size: 1.6rem;
    margin-bottom: 5px;
  }

  .submasters-section .section-heading p,
  .leaders-empty-note {
    font-size: .82rem;
  }

  .leaders-empty-note {
    margin-bottom: 12px;
  }

  .submaster-grid {
    gap: 14px;
  }

  .leader-slot-empty {
    min-height: 270px;
  }

  .leader-slot-zoom img {
    aspect-ratio: 4 / 5;
  }

  .leader-slot-meta {
    padding: 13px 14px 15px;
  }
}

@media (max-width: 920px) {
  .leaders-main {
    padding-top: 28px;
  }

  .leaders-hero {
    padding-bottom: 22px;
    margin-bottom: 20px;
  }

  .master-feature-card {
    gap: 14px;
    margin-bottom: 24px;
  }

  .master-feature-copy {
    padding: 20px;
  }

  .master-feature-points {
    display: none !important;
  }

  .master-feature-poster img {
    width: 100%;
    max-height: 560px;
    object-fit: contain;
    background: #05070b;
  }
}

@media (max-width: 640px) {
  .leaders-main {
    padding-top: 22px;
  }

  .leaders-hero p:not(.eyebrow) {
    font-size: .84rem;
  }

  .master-feature-copy h2 {
    font-size: 1.25rem;
  }

  .master-feature-copy > p {
    font-size: .88rem;
  }

  .master-feature-poster img {
    max-height: 470px;
  }
}

/* v25.2 — cinematic N2S leadership redesign */
.leaders-page-v252 {
  background:
    radial-gradient(circle at 50% 0%, rgba(232, 176, 74, .08), transparent 24%),
    linear-gradient(180deg, #05070a 0%, #05070b 100%);
}
.leaders-stage {
  position: relative;
  overflow: hidden;
  padding-bottom: 52px;
}
.leaders-stage::before,
.leaders-stage::after {
  content: '';
  position: fixed;
  top: 58px;
  bottom: 0;
  width: min(220px, 14vw);
  z-index: -1;
  opacity: .36;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(2,4,7,.18), rgba(2,4,7,.78)),
    url('../images/leaders/master-bulpae.png') center / cover no-repeat;
  filter: saturate(.78) brightness(.58);
}
.leaders-stage::before { left: 0; background-position: 14% center; -webkit-mask-image: linear-gradient(90deg,#000 0%,rgba(0,0,0,.8) 55%,transparent 100%); mask-image: linear-gradient(90deg,#000 0%,rgba(0,0,0,.8) 55%,transparent 100%); }
.leaders-stage::after { right: 0; background-position: 86% center; -webkit-mask-image: linear-gradient(270deg,#000 0%,rgba(0,0,0,.8) 55%,transparent 100%); mask-image: linear-gradient(270deg,#000 0%,rgba(0,0,0,.8) 55%,transparent 100%); }

.leaders-banner {
  position: relative;
  min-height: 210px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(228,183,102,.2);
  background:
    linear-gradient(180deg, rgba(2,5,8,.26), rgba(4,7,10,.82)),
    url('../images/leaders/master-bulpae.png') center 20% / cover no-repeat;
  isolation: isolate;
}
.leaders-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(3,6,9,.88), rgba(3,6,9,.38) 28%, rgba(3,6,9,.34) 72%, rgba(3,6,9,.88)),
    linear-gradient(180deg, rgba(4,7,10,.22), rgba(4,7,10,.68));
}
.leaders-banner-glow {
  position: absolute;
  width: 360px;
  height: 120px;
  border-radius: 50%;
  background: rgba(227, 170, 65, .14);
  filter: blur(46px);
  top: 44px;
  left: 50%;
  transform: translateX(-50%);
}
.leaders-banner-copy {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 26px 20px 20px;
}
.leaders-banner-copy .eyebrow { margin: 6px 0 7px; color: #f0cf8c; }
.leaders-banner-copy h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4.2vw, 3.65rem);
  letter-spacing: -.035em;
  color: #fff1cf;
  text-shadow: 0 0 22px rgba(225,168,63,.24), 0 4px 18px rgba(0,0,0,.78);
}
.leaders-banner-copy > p:last-of-type {
  margin: 8px 0 0;
  color: #d3d0c8;
  font-size: .92rem;
  letter-spacing: .02em;
}
.ornament-line {
  display: grid;
  grid-template-columns: 92px auto 92px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #dca84a;
}
.ornament-line span { height: 1px; background: linear-gradient(90deg, transparent, rgba(228,183,102,.85)); }
.ornament-line span:last-child { background: linear-gradient(90deg, rgba(228,183,102,.85), transparent); }
.ornament-line b { font-weight: 400; font-size: .75rem; }
.ornament-line-bottom { margin-top: 13px; }
.leaders-banner-side {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  gap: 8px;
  color: rgba(226,186,111,.62);
  letter-spacing: .18em;
  z-index: 1;
}
.leaders-banner-side span { font-family: Georgia, serif; font-size: 2.3rem; font-style: italic; }
.leaders-banner-side small { font-size: .54rem; }
.leaders-banner-side-left { left: clamp(28px, 7vw, 110px); }
.leaders-banner-side-right { right: clamp(28px, 7vw, 110px); text-align: right; }

.leadership-frame {
  position: relative;
  width: min(1120px, calc(100% - 48px));
  margin: 22px auto 0;
  border: 1px solid rgba(222,170,72,.58);
  border-radius: 22px;
  background:
    radial-gradient(circle at 88% 38%, rgba(191,132,39,.08), transparent 25%),
    linear-gradient(180deg, rgba(10,14,19,.98), rgba(6,9,13,.99));
  box-shadow: 0 22px 70px rgba(0,0,0,.38), inset 0 0 0 1px rgba(255,216,141,.025);
}
.leadership-frame::before,
.leadership-frame::after {
  content: '✦';
  position: absolute;
  top: -11px;
  color: #e5b45f;
  font-size: 1rem;
  text-shadow: 0 0 12px rgba(228,183,102,.45);
}
.leadership-frame::before { left: 24px; }
.leadership-frame::after { right: 24px; }
.frame-top-label {
  position: absolute;
  top: -13px;
  left: 44px;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 0 14px;
  background: #070a0e;
  color: #e9c37b;
  font: 600 .72rem/1.8 Georgia, serif;
  letter-spacing: .22em;
}
.frame-crown { color: #ffd17d; }
.master-showcase-inner {
  min-height: 388px;
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 28px;
  padding: 30px;
}
.master-poster-card {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid rgba(231,188,106,.45);
  border-radius: 14px;
  background: #030507;
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: 0 14px 40px rgba(0,0,0,.38);
}
.master-poster-card img {
  width: 100%;
  height: 350px;
  object-fit: contain;
  object-position: center;
  background: #040608;
}
.master-copy-panel {
  position: relative;
  overflow: hidden;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 32px 18px 12px;
}
.master-watermark {
  position: absolute;
  right: 6px;
  top: 18px;
  font: italic 700 clamp(4.8rem, 9vw, 8rem)/1 Georgia, serif;
  color: rgba(228,183,102,.035);
  transform: rotate(-8deg);
  pointer-events: none;
}
.master-kicker {
  margin: 0 0 6px;
  color: #d7aa5a;
  font-family: Georgia, serif;
  font-size: .72rem;
  letter-spacing: .28em;
}
.master-copy-panel h2 {
  margin: 0 0 2px;
  color: #f5ead4;
  font-size: 1.42rem;
  letter-spacing: -.025em;
}
.master-copy-panel > strong {
  margin: 3px 0 12px;
  color: #ffd58a;
  font: 700 clamp(2.45rem, 4vw, 3.55rem)/1.15 Georgia, serif;
  letter-spacing: .04em;
  text-shadow: 0 0 20px rgba(219,162,59,.18);
}
.master-copy-panel > p:not(.master-kicker) {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 12px 0 0;
  color: #c9cdd3;
  line-height: 1.78;
  font-size: .94rem;
}
.master-divider,
.submaster-divider {
  display: grid;
  grid-template-columns: minmax(30px, 190px) auto minmax(30px, 190px);
  gap: 8px;
  align-items: center;
  color: #dca84a;
}
.master-divider span,
.submaster-divider span { height: 1px; background: linear-gradient(90deg, rgba(228,183,102,.75), transparent); }
.master-divider span:first-child,
.submaster-divider span:first-child { background: linear-gradient(90deg, transparent, rgba(228,183,102,.75)); }
.master-divider b,
.submaster-divider b { font-weight: 400; font-size: .7rem; }
.master-quote {
  margin-top: 18px;
  max-width: 580px;
  padding: 11px 16px;
  border: 1px solid rgba(228,183,102,.35);
  border-radius: 10px;
  background: rgba(228,183,102,.04);
  color: #d9c39a;
  font-family: Georgia, serif;
  font-size: .88rem;
  text-align: center;
  letter-spacing: .04em;
}
.master-signature {
  margin-top: 13px;
  color: #8d7b5a;
  font-family: Georgia, serif;
  font-size: .62rem;
  letter-spacing: .32em;
}

.submasters-section-v252 {
  width: min(1120px, calc(100% - 48px));
  margin: 14px auto 0;
  padding: 0;
}
.submaster-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 0 4px 8px;
}
.submaster-heading-row .eyebrow { margin-bottom: 4px; color: #e9c37b; }
.submaster-heading-row h2 { margin: 0; font-size: 1.72rem; }
.submaster-heading-row > p {
  margin: 0 0 3px;
  color: #999fa8;
  font-size: .78rem;
}
.submaster-heading-row > p span { color: #e9c37b; font-weight: 700; }
.submasters-section-v252 .submaster-divider {
  grid-template-columns: minmax(40px,1fr) auto minmax(40px,1fr);
  margin-bottom: 12px;
}
.submasters-section-v252 .leaders-empty-note {
  margin: 0 0 12px;
  color: #8e949c;
  font-size: .76rem;
}
.submaster-grid-v252 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 14px;
}
.leader-card-v252 {
  position: relative;
  min-width: 0;
  min-height: 318px;
  overflow: hidden;
  border: 1px solid rgba(219,169,77,.45);
  border-radius: 15px;
  background:
    linear-gradient(145deg, rgba(228,183,102,.025), transparent 38%),
    #080c11;
  box-shadow: 0 12px 34px rgba(0,0,0,.28);
}
.leader-card-v252::before,
.leader-card-v252::after {
  content: '✦';
  position: absolute;
  z-index: 3;
  color: rgba(229,180,95,.75);
  font-size: .62rem;
}
.leader-card-v252::before { left: 9px; top: 7px; }
.leader-card-v252::after { right: 9px; bottom: 7px; }
.leader-card-filled {
  display: grid;
  grid-template-rows: minmax(0,1fr) auto;
}
.leader-card-image {
  position: relative;
  width: 100%;
  height: 262px;
  padding: 0;
  border: 0;
  background: #030506;
  overflow: hidden;
  cursor: zoom-in;
}
.leader-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform .3s ease, filter .3s ease;
}
.leader-card-image:hover img { transform: scale(1.018); filter: brightness(1.05); }
.leader-card-shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 60%, rgba(2,4,7,.74));
}
.leader-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-height: 66px;
  padding: 10px 12px 11px;
  border-top: 1px solid rgba(228,183,102,.2);
  background: linear-gradient(180deg, rgba(10,14,19,.98), rgba(6,9,13,.99));
}
.leader-card-footer span {
  display: block;
  margin-bottom: 3px;
  color: #9b8763;
  font: 600 .52rem/1 Georgia, serif;
  letter-spacing: .16em;
}
.leader-card-footer strong {
  color: #f1e6d0;
  font-size: .92rem;
}
.leader-card-actions { display: flex; gap: 5px; }
.leader-card-actions button {
  padding: 6px 7px;
  border: 1px solid rgba(159,174,191,.2);
  border-radius: 7px;
  background: rgba(255,255,255,.025);
  color: #b6bbc2;
  font-size: .68rem;
  cursor: pointer;
}
.leader-card-actions .delete-link { color: #d89f9f; border-color: rgba(216,106,106,.24); }
.leader-card-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px;
  border-style: solid;
  color: #d9c39a;
  cursor: pointer;
  background:
    radial-gradient(circle at 50% 42%, rgba(228,183,102,.06), transparent 35%),
    linear-gradient(180deg, #0a0f15, #070a0e);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.leader-card-empty:hover {
  transform: translateY(-3px);
  border-color: rgba(235,193,111,.76);
  box-shadow: 0 16px 38px rgba(0,0,0,.34), 0 0 24px rgba(228,183,102,.04);
}
.empty-card-crown { color: #e7b95f; font-size: 1.25rem; }
.empty-card-mark { color: rgba(223,177,91,.18); font: italic 700 2.25rem/1 Georgia, serif; }
.leader-card-empty strong { color: #e7dcc6; font-size: 1rem; }
.leader-card-empty p { margin: 0; color: #8f969f; font-size: .76rem; }
.empty-card-plus {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-top: 4px;
  border: 1px solid rgba(228,183,102,.36);
  border-radius: 50%;
  color: #e6b966;
  font-size: 1.25rem;
}
.leaders-motto {
  width: min(1120px, calc(100% - 48px));
  margin: 24px auto 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  color: #a78d60;
  font: 500 .64rem/1 Georgia, serif;
  letter-spacing: .32em;
}
.leaders-motto span { height: 1px; background: linear-gradient(90deg, transparent, rgba(228,183,102,.36)); }
.leaders-motto span:last-child { background: linear-gradient(90deg, rgba(228,183,102,.36), transparent); }

.leaders-page-v252 .leader-editor-dialog,
.leaders-page-v252 .delete-dialog {
  border: 1px solid rgba(228,183,102,.42);
  border-radius: 20px;
  padding: 0;
  background: #080c11;
  box-shadow: 0 28px 90px rgba(0,0,0,.68);
}
.leaders-page-v252 .leader-editor-card,
.leaders-page-v252 .leader-delete-card {
  border: 0;
  border-radius: 19px;
  background:
    radial-gradient(circle at 100% 0%, rgba(228,183,102,.07), transparent 26%),
    linear-gradient(180deg, #0c1219, #080c11);
}
.leaders-page-v252 .leader-editor-card::before,
.leaders-page-v252 .leader-delete-card::before {
  content: 'N2S LEADERSHIP';
  display: block;
  margin-bottom: 10px;
  color: #8d7954;
  font: 500 .55rem/1 Georgia, serif;
  letter-spacing: .28em;
}

@media (max-width: 1100px) {
  .leaders-banner-side { display: none; }
  .submaster-grid-v252 { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 900px) {
  .leaders-stage::before,
  .leaders-stage::after { display: none; }
  .leaders-banner { min-height: 180px; }
  .master-showcase-inner { grid-template-columns: 230px minmax(0,1fr); min-height: 330px; padding: 24px; gap: 22px; }
  .master-poster-card img { height: 290px; }
  .master-copy-panel { padding-right: 12px; }
  .master-quote { font-size: .8rem; }
  .submaster-grid-v252 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 640px) {
  .leaders-banner { min-height: 154px; }
  .leaders-banner-copy { padding: 18px 14px 14px; }
  .leaders-banner-copy h1 { font-size: 1.75rem; }
  .leaders-banner-copy > p:last-of-type { font-size: .8rem; }
  .ornament-line { grid-template-columns: 48px auto 48px; }
  .leadership-frame,
  .submasters-section-v252,
  .leaders-motto { width: calc(100% - 24px); }
  .leadership-frame { margin-top: 16px; border-radius: 17px; }
  .frame-top-label { left: 24px; }
  .master-showcase-inner { grid-template-columns: 1fr; padding: 22px 16px 18px; gap: 14px; }
  .master-poster-card { width: min(290px, 100%); margin: 0 auto; }
  .master-poster-card img { height: auto; max-height: 390px; aspect-ratio: 4 / 5; object-fit: contain; }
  .master-copy-panel { padding: 6px 8px 8px; text-align: center; align-items: center; }
  .master-copy-panel > p:not(.master-kicker) { font-size: .86rem; }
  .master-divider { width: min(310px,100%); }
  .master-signature { letter-spacing: .2em; }
  .submaster-heading-row { align-items: flex-start; flex-direction: column; gap: 6px; }
  .submaster-heading-row > p { font-size: .72rem; }
  .submaster-grid-v252 { grid-template-columns: 1fr; }
  .leader-card-v252 { min-height: 0; }
  .leader-card-image { height: auto; }
  .leader-card-image img { height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
  .leader-card-empty { min-height: 250px; }
  .leaders-motto { letter-spacing: .12em; font-size: .56rem; }
}

/* v26 — TESTER page (concept 02) */
.testers-page {
  background:
    radial-gradient(circle at 50% 0%, rgba(145, 14, 18, .16), transparent 28%),
    radial-gradient(circle at 12% 22%, rgba(102, 13, 19, .13), transparent 24%),
    #050608;
}
.testers-page .desktop-nav a.is-current,
.testers-page .mobile-menu a.is-current { color: #ff9f74; }
.tester-topbar {
  border-bottom-color: rgba(214, 72, 54, .24);
}
.testers-page .menu-btn span { background: #f2aa76; }
.tester-stage {
  width: min(1480px, calc(100% - 44px));
  margin: 0 auto;
  padding: 28px 0 72px;
}
.tester-hero {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border: 1px solid rgba(196, 61, 45, .35);
  border-radius: 18px;
  background: #0b090a;
  box-shadow: 0 18px 44px rgba(0,0,0,.38), inset 0 0 60px rgba(101,13,18,.12);
}
.tester-hero::before,
.tester-hero::after {
  content: '';
  position: absolute;
  z-index: 3;
  width: 110px;
  height: 1px;
  top: 34px;
  background: linear-gradient(90deg, transparent, #c95b3d, #efad6c);
  opacity: .8;
}
.tester-hero::before { left: 24px; }
.tester-hero::after { right: 24px; transform: scaleX(-1); }
.tester-hero-bg {
  position: absolute;
  inset: -34% -10% -45% 42%;
  background: url('../images/testers/tester-initial.png') center 36% / cover no-repeat;
  filter: saturate(.95) contrast(1.12) brightness(.68);
  opacity: .6;
  transform: scale(1.04);
}
.tester-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5,6,8,.98) 0%, rgba(6,7,9,.94) 36%, rgba(10,7,8,.62) 61%, rgba(6,6,8,.82) 100%),
    linear-gradient(180deg, rgba(119,11,15,.05), rgba(0,0,0,.42));
}
.tester-hero-inner {
  position: relative;
  z-index: 2;
  min-height: 260px;
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(320px,.7fr);
  gap: 40px;
  align-items: center;
  padding: 44px 48px;
}
.tester-hero-copy .eyebrow { color: #e17955; }
.tester-hero-copy h1 {
  margin: 0;
  color: #f5eee6;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(3.5rem, 7vw, 6.5rem);
  line-height: .95;
  letter-spacing: .035em;
  text-shadow: 0 0 28px rgba(194, 52, 35, .34);
}
.tester-hero-kor {
  margin: 10px 0 12px;
  color: #e5c8b7;
  font-size: 1.05rem;
  letter-spacing: .32em;
}
.tester-hero-desc {
  margin: 0;
  max-width: 620px;
  color: #b9bdc4;
  font-size: .95rem;
  line-height: 1.8;
}
.tester-hero-quote {
  justify-self: end;
  display: grid;
  gap: 9px;
  text-align: right;
  padding-right: 6px;
}
.tester-hero-quote strong {
  color: #ecd8c9;
  font-size: 1rem;
  font-weight: 500;
}
.tester-hero-quote span {
  color: #a56d56;
  font-size: .66rem;
  letter-spacing: .28em;
}
.tester-roster {
  padding: 34px 0 0;
}
.tester-roster-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 0 4px;
}
.tester-roster-heading h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  letter-spacing: -.03em;
}
.tester-roster-heading .eyebrow { color: #d46f50; }
.tester-roster-heading > p {
  margin: 0 0 4px;
  color: #8f959e;
  font-size: .82rem;
  text-align: right;
}
.tester-roster-heading > p strong { color: #dba076; }
.tester-red-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  margin: 16px 0 20px;
  color: #e3714f;
}
.tester-red-divider span {
  height: 1px;
  background: linear-gradient(90deg, rgba(163,53,40,.05), rgba(196,75,52,.55), rgba(216,112,71,.08));
}
.tester-red-divider span:last-child { transform: scaleX(-1); }
.tester-red-divider b { font-size: .7rem; text-shadow: 0 0 12px rgba(229,70,45,.65); }
.tester-empty-note {
  margin: 0 0 16px;
  color: #8b9099;
  font-size: .85rem;
}
.tester-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.tester-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(185, 65, 49, .35);
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 0%, rgba(124, 23, 25, .14), transparent 42%),
    linear-gradient(180deg, #0d1014, #07090c);
  box-shadow: 0 14px 34px rgba(0,0,0,.3), inset 0 0 0 1px rgba(234,126,83,.025);
  position: relative;
}
.tester-card::before,
.tester-card::after {
  content: '✦';
  position: absolute;
  z-index: 3;
  color: rgba(221, 91, 58, .75);
  font-size: .58rem;
  pointer-events: none;
}
.tester-card::before { left: 7px; top: 6px; }
.tester-card::after { right: 7px; bottom: 6px; }
.tester-card-filled {
  display: grid;
  grid-template-rows: auto auto;
}
.tester-card-image {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #050506;
  cursor: zoom-in;
  overflow: hidden;
}
.tester-card-image img {
  width: 100%;
  aspect-ratio: 4 / 5.35;
  object-fit: cover;
  object-position: top center;
  transition: transform .26s ease, filter .26s ease;
}
.tester-card-image:hover img { transform: scale(1.018); filter: brightness(1.04); }
.tester-card-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 72%, rgba(0,0,0,.55));
  pointer-events: none;
}
.tester-card-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  min-height: 74px;
  padding: 13px 13px 15px;
  border-top: 1px solid rgba(182,61,45,.28);
}
.tester-card-footer > div:first-child { min-width: 0; }
.tester-card-footer span {
  display: block;
  margin-bottom: 5px;
  color: #c97459;
  font-size: .58rem;
  letter-spacing: .19em;
}
.tester-card-footer strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #f1e6df;
  font-size: 1rem;
}
.tester-card-actions {
  display: flex;
  gap: 5px;
  flex: none;
}
.tester-card-actions button {
  padding: 6px 7px;
  border: 1px solid rgba(174, 94, 75, .28);
  border-radius: 7px;
  background: rgba(13,16,20,.8);
  color: #aeb3bb;
  cursor: pointer;
  font-size: .67rem;
}
.tester-card-actions .delete-link { color: #dd8070; }
.tester-card-empty {
  min-height: 420px;
  padding: 26px 16px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #d5c3b8;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.tester-card-empty:hover {
  transform: translateY(-3px);
  border-color: rgba(224,99,66,.58);
  box-shadow: 0 18px 42px rgba(0,0,0,.36), 0 0 22px rgba(133, 28, 26, .08);
}
.tester-empty-symbol {
  color: rgba(138, 70, 54, .44);
  font: italic 700 2.2rem/1 Georgia, serif;
  margin-bottom: 18px;
}
.tester-empty-plus {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  border: 1px solid rgba(219,102,72,.42);
  border-radius: 50%;
  color: #ef9769;
  font-size: 1.7rem;
  box-shadow: inset 0 0 18px rgba(161,37,29,.08);
}
.tester-card-empty strong { font-size: 1rem; }
.tester-card-empty p {
  margin: 7px 0 20px;
  color: #8f949c;
  font-size: .8rem;
}
.tester-slot-number {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  text-align: center;
  color: #6e5c56;
  font-size: .58rem;
  letter-spacing: .2em;
}
.tester-motto {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  padding: 28px 2px 4px;
  color: #b67c65;
  font-size: .64rem;
  letter-spacing: .24em;
}
.tester-motto span {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(190,72,51,.45));
}
.tester-motto span:last-child { transform: scaleX(-1); }
.tester-footer { border-top-color: rgba(180,61,47,.24); }
.tester-editor-dialog .eyebrow,
.tester-delete-card .eyebrow { color: #dc7353; }
.tester-editor-card,
.tester-delete-card {
  border-color: rgba(188,68,52,.38);
  background: linear-gradient(180deg, rgba(14,11,13,.99), rgba(8,9,12,.99));
}
.tester-save-btn { border-color: rgba(211,88,60,.5); color: #f0c0a7; }
.tester-dialog-badge {
  display: inline-flex;
  padding: 5px 10px;
  border: 1px solid rgba(204,76,54,.42);
  border-radius: 999px;
  background: rgba(131,29,28,.12);
  color: #ec9a77;
  font-size: .72rem;
  letter-spacing: .12em;
}
.tester-poster-dialog { border-color: rgba(195,72,54,.45); }

/* home tester callout */
.tester-callout .board-callout {
  border-top-color: rgba(180,55,43,.18);
  border-bottom-color: rgba(199,70,51,.3);
}
.tester-callout .board-callout:hover { border-color: rgba(215,91,64,.52); }
.tester-callout .eyebrow,
.tester-callout .board-callout-arrow { color: #d98262; }

@media (max-width: 1180px) {
  .tester-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .tester-stage { width: calc(100% - 24px); padding-top: 18px; }
  .tester-hero-inner { grid-template-columns: 1fr; gap: 18px; padding: 34px 28px; }
  .tester-hero-quote { justify-self: start; text-align: left; }
  .tester-hero-bg { inset: -20% -30% -45% 28%; opacity: .45; }
  .tester-roster-heading { align-items: start; flex-direction: column; gap: 8px; }
  .tester-roster-heading > p { text-align: left; }
  .tester-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .tester-stage { width: calc(100% - 16px); padding-bottom: 48px; }
  .tester-hero { min-height: 220px; border-radius: 14px; }
  .tester-hero-inner { min-height: 220px; padding: 28px 20px; }
  .tester-hero-copy h1 { font-size: 3.2rem; }
  .tester-hero-kor { font-size: .9rem; }
  .tester-hero-desc { font-size: .86rem; }
  .tester-hero-quote strong { font-size: .88rem; }
  .tester-roster { padding-top: 26px; }
  .tester-grid { grid-template-columns: 1fr; gap: 12px; }
  .tester-card-empty { min-height: 260px; }
  .tester-card-image img { aspect-ratio: 4 / 5.15; }
  .tester-motto { font-size: .52rem; letter-spacing: .13em; gap: 8px; }
}

/* =========================================================
   v27 — N2S 운영진 페이지 / 시안 2 섹션 분리형
   ========================================================= */
.staff-page-v27 {
  --staff-gold: #e7b85f;
  --staff-gold-soft: rgba(231,184,95,.38);
  --staff-red: #6d1114;
  --staff-panel: rgba(6,9,13,.94);
  background:
    radial-gradient(circle at 50% 0%, rgba(130,80,26,.12), transparent 30%),
    linear-gradient(180deg, #030508 0%, #05070b 40%, #030507 100%);
}

.staff-stage {
  position: relative;
  overflow: hidden;
  padding-bottom: 28px;
  background:
    radial-gradient(circle at 50% 12%, rgba(214,153,62,.06), transparent 28%),
    linear-gradient(180deg, rgba(2,4,7,.3), rgba(2,4,7,.9));
}

.staff-stage::before,
.staff-stage::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: min(16vw, 230px);
  pointer-events: none;
  opacity: .34;
  background:
    linear-gradient(180deg, transparent 0 10%, rgba(197,120,39,.28) 48%, transparent 88%),
    repeating-linear-gradient(90deg, transparent 0 22px, rgba(231,184,95,.12) 23px 24px, transparent 25px 48px);
  filter: blur(.2px);
}
.staff-stage::before { left: 0; border-right: 1px solid rgba(231,184,95,.12); }
.staff-stage::after { right: 0; transform: scaleX(-1); border-left: 1px solid rgba(231,184,95,.12); }

.staff-hero {
  position: relative;
  min-height: 170px;
  overflow: hidden;
  border-top: 1px solid rgba(231,184,95,.22);
  border-bottom: 1px solid rgba(231,184,95,.38);
  background: #07090d;
}
.staff-hero-bg {
  position: absolute;
  inset: -30% -4% -18%;
  background-image: var(--staff-master-bg, url('../images/leaders/master-bulpae-v27.png'));
  background-size: cover;
  background-position: center 31%;
  filter: blur(7px) brightness(.62) saturate(.78) contrast(1.08);
  transform: scale(1.08);
}
.staff-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 64% 44%, rgba(245,190,78,.18), transparent 26%),
    linear-gradient(90deg, rgba(3,6,9,.92) 0%, rgba(3,6,9,.45) 32%, rgba(3,6,9,.2) 58%, rgba(3,6,9,.78) 100%);
}
.staff-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2,4,7,.2), rgba(2,4,7,.58)),
    linear-gradient(90deg, rgba(2,4,7,.7), transparent 30%, transparent 72%, rgba(2,4,7,.72));
}
.staff-hero-copy {
  position: relative;
  z-index: 2;
  width: min(980px, calc(100% - 48px));
  margin: 0 auto;
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 0 22px;
}
.staff-hero-copy::before,
.staff-hero-copy::after {
  content: '';
  position: absolute;
  left: 0;
  width: 128px;
  height: 1px;
  background: linear-gradient(90deg, var(--staff-gold), transparent);
}
.staff-hero-copy::before { top: 25px; }
.staff-hero-copy::after { bottom: 22px; }
.staff-hero-copy p {
  margin: 0 0 5px;
  color: #d8b772;
  font-family: Georgia, serif;
  font-size: .82rem;
  letter-spacing: .34em;
}
.staff-hero-copy h1 {
  margin: 0;
  font-family: Georgia, "Noto Serif KR", serif;
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  letter-spacing: -.035em;
  line-height: 1;
  color: #f5e9d1;
  text-shadow: 0 4px 18px rgba(0,0,0,.8), 0 0 22px rgba(225,170,78,.2);
}
.staff-hero-copy > span {
  margin-top: 10px;
  color: #e6e1d8;
  font-size: 1rem;
  letter-spacing: .02em;
}
.staff-hero-left,
.staff-hero-right {
  position: absolute;
  z-index: 2;
  top: 32px;
  display: grid;
  gap: 5px;
  color: rgba(231,224,210,.78);
  font-family: Georgia, serif;
  font-size: .62rem;
  letter-spacing: .23em;
  line-height: 1.45;
}
.staff-hero-left { left: clamp(22px, 4vw, 74px); }
.staff-hero-right { right: clamp(22px, 4vw, 74px); text-align: right; }
.staff-hero-left strong,
.staff-hero-right strong { color: #f2eadb; font-weight: 500; }

.staff-shell {
  position: relative;
  z-index: 2;
  width: min(1420px, calc(100% - 48px));
  margin: 0 auto;
  border-left: 1px solid rgba(231,184,95,.36);
  border-right: 1px solid rgba(231,184,95,.36);
  background: linear-gradient(180deg, rgba(4,7,10,.94), rgba(3,5,8,.96));
  box-shadow: 0 30px 90px rgba(0,0,0,.42);
}

.staff-master-section {
  display: grid;
  grid-template-columns: minmax(300px, 390px) minmax(360px, .95fr) minmax(300px, .9fr);
  min-height: 410px;
  border-top: 1px solid rgba(231,184,95,.72);
  border-bottom: 1px solid rgba(231,184,95,.58);
  background:
    linear-gradient(180deg, rgba(9,12,16,.96), rgba(4,7,10,.98));
}
.staff-master-poster {
  position: relative;
  display: block;
  width: 100%;
  padding: 16px;
  border: 0;
  border-right: 1px solid rgba(231,184,95,.22);
  background: linear-gradient(135deg, rgba(231,184,95,.06), transparent 42%);
  cursor: zoom-in;
}
.staff-master-poster::before,
.staff-master-poster::after {
  content: '✦';
  position: absolute;
  z-index: 2;
  color: #eac06d;
  font-size: .72rem;
}
.staff-master-poster::before { top: 6px; left: 7px; }
.staff-master-poster::after { right: 7px; bottom: 6px; transform: rotate(180deg); }
.staff-master-poster img {
  width: 100%;
  height: 100%;
  max-height: 378px;
  object-fit: contain;
  object-position: top center;
  border: 1px solid rgba(231,184,95,.55);
  background: #030507;
  box-shadow: 0 14px 34px rgba(0,0,0,.52), inset 0 0 40px rgba(231,184,95,.04);
}

.staff-master-copy {
  position: relative;
  overflow: hidden;
  padding: 54px 34px 34px;
  border-right: 1px solid rgba(231,184,95,.14);
}
.staff-master-copy::after {
  content: 'N2S';
  position: absolute;
  right: 16px;
  top: -28px;
  color: rgba(231,184,95,.055);
  font-family: Georgia, serif;
  font-size: 8.4rem;
  font-weight: 700;
  letter-spacing: -.08em;
  pointer-events: none;
}
.staff-kicker {
  margin: 0 0 8px;
  color: #d8b772;
  font-family: Georgia, serif;
  font-size: .78rem;
  letter-spacing: .28em;
}
.staff-master-copy h2 {
  margin: 0 0 3px;
  color: #e9e0cf;
  font-family: Georgia, "Noto Serif KR", serif;
  font-size: 1.6rem;
  letter-spacing: -.02em;
}
.staff-master-copy > strong {
  display: block;
  position: relative;
  z-index: 1;
  margin: 0 0 18px;
  color: #ffd886;
  font-family: Georgia, "Noto Serif KR", serif;
  font-size: clamp(2.7rem, 4vw, 4.3rem);
  line-height: 1.05;
  text-shadow: 0 0 20px rgba(232,177,81,.16);
}
.staff-master-copy > p:not(.staff-kicker) {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 520px;
  color: #d1d5da;
  line-height: 1.85;
  font-size: .98rem;
}
.staff-gold-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(320px, 100%);
  margin: 0 0 17px;
  color: #e3b65e;
}
.staff-gold-divider span {
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, rgba(231,184,95,.6), rgba(231,184,95,.08));
}
.staff-gold-divider span:last-child { transform: scaleX(-1); }
.staff-gold-divider b { font-size: .7rem; font-weight: 400; }
.staff-master-quote {
  position: relative;
  z-index: 1;
  margin-top: 20px;
  padding: 13px 18px;
  border: 1px solid rgba(231,184,95,.34);
  background: linear-gradient(90deg, rgba(231,184,95,.055), transparent);
  color: #e6c886;
  font-family: Georgia, "Noto Serif KR", serif;
  font-size: .9rem;
  text-align: center;
}
.staff-master-copy > small {
  display: block;
  margin-top: 16px;
  color: #b59a68;
  font-family: Georgia, serif;
  font-size: .62rem;
  letter-spacing: .34em;
}

.staff-master-art {
  position: relative;
  overflow: hidden;
  min-height: 410px;
  background: #05070a;
}
.staff-master-art-image {
  position: absolute;
  inset: -14% -15% -7% -20%;
  background-image: var(--staff-master-bg, url('../images/leaders/master-bulpae-v27.png'));
  background-size: cover;
  background-position: center 36%;
  filter: brightness(.48) saturate(.58) contrast(1.08);
  transform: scale(1.02);
}
.staff-master-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #05070a 0%, rgba(5,7,10,.48) 30%, rgba(5,7,10,.1) 62%, rgba(5,7,10,.28) 100%),
    linear-gradient(180deg, rgba(5,7,10,.12), rgba(5,7,10,.46));
}
.staff-master-words {
  position: absolute;
  z-index: 2;
  right: 30px;
  top: 54px;
  display: grid;
  gap: 20px;
  color: #c7a96f;
  font-family: Georgia, serif;
  font-size: 1rem;
  letter-spacing: .16em;
  text-align: center;
}

.staff-executive-section {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  min-height: 310px;
  border-bottom: 1px solid rgba(231,184,95,.62);
  background:
    radial-gradient(circle at 18% 50%, rgba(148,34,27,.06), transparent 26%),
    linear-gradient(180deg, rgba(5,8,11,.98), rgba(3,5,8,.99));
}
.staff-executive-intro {
  position: relative;
  padding: 30px 28px 24px;
  border-right: 1px solid rgba(231,184,95,.2);
  background:
    linear-gradient(135deg, rgba(231,184,95,.035), transparent 48%),
    linear-gradient(180deg, rgba(9,12,16,.92), rgba(5,8,11,.98));
}
.staff-executive-intro::before,
.staff-executive-intro::after {
  content: '';
  position: absolute;
  width: 32px;
  height: 32px;
  border-color: rgba(231,184,95,.5);
}
.staff-executive-intro::before { left: 8px; top: 8px; border-left: 1px solid; border-top: 1px solid; }
.staff-executive-intro::after { right: 8px; bottom: 8px; border-right: 1px solid; border-bottom: 1px solid; }
.staff-executive-intro h2 {
  margin: 0;
  color: #f2e5ce;
  font-family: Georgia, "Noto Serif KR", serif;
  font-size: 2rem;
}
.staff-mini-ornament {
  width: 90px;
  margin: 10px 0 12px;
  color: #e0b65f;
  text-align: center;
  border-bottom: 1px solid rgba(231,184,95,.4);
  line-height: 1px;
}
.staff-executive-intro > p:not(.staff-kicker) {
  margin: 0;
  color: #c1c5ca;
  line-height: 1.75;
  font-size: .88rem;
}
.staff-executive-foot {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 22px;
  color: #d5b36f;
  font-family: Georgia, serif;
  font-size: .7rem;
  letter-spacing: .22em;
  text-align: center;
}
.staff-executive-foot small {
  color: #8f8b82;
  font-size: .5rem;
  letter-spacing: .14em;
}

.staff-executive-grid-wrap {
  position: relative;
  padding: 16px 18px 18px;
}
.staff-executive-count {
  position: absolute;
  top: 5px;
  right: 18px;
  color: #807b72;
  font-size: .66rem;
}
.staff-executive-count span { color: #d9b76f; }
.staff-executive-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
  min-height: 276px;
}
.staff-executive-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(231,184,95,.38);
  background:
    linear-gradient(180deg, rgba(11,14,18,.98), rgba(5,8,11,.99));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.015), 0 12px 28px rgba(0,0,0,.24);
}
.staff-executive-card::before,
.staff-executive-card::after {
  content: '✦';
  position: absolute;
  z-index: 3;
  color: #d6a94e;
  font-size: .48rem;
  pointer-events: none;
}
.staff-executive-card::before { left: 6px; top: 5px; }
.staff-executive-card::after { right: 6px; bottom: 5px; transform: rotate(180deg); }
.staff-executive-filled {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}
.staff-executive-image {
  position: relative;
  width: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  background: #030507;
  cursor: zoom-in;
  overflow: hidden;
}
.staff-executive-image img {
  width: 100%;
  height: 100%;
  min-height: 214px;
  max-height: 260px;
  object-fit: cover;
  object-position: top center;
  transition: transform .25s ease;
}
.staff-executive-image:hover img { transform: scale(1.018); }
.staff-card-glow {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 -42px 42px rgba(2,3,5,.35), inset 0 0 22px rgba(224,165,66,.04);
  pointer-events: none;
}
.staff-executive-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 58px;
  padding: 9px 10px 10px;
  border-top: 1px solid rgba(231,184,95,.24);
  background: rgba(5,7,10,.98);
}
.staff-executive-meta span {
  display: block;
  margin-bottom: 4px;
  color: #b99858;
  font-family: Georgia, serif;
  font-size: .5rem;
  letter-spacing: .18em;
}
.staff-executive-meta strong {
  display: block;
  color: #f2e5cf;
  font-size: .92rem;
}
.staff-executive-actions {
  display: flex;
  gap: 5px;
  flex: none;
}
.staff-executive-actions button {
  padding: 6px 8px;
  border: 1px solid rgba(231,184,95,.32);
  border-radius: 4px;
  color: #dec58f;
  background: rgba(231,184,95,.04);
  font-size: .66rem;
  cursor: pointer;
}
.staff-executive-actions .delete-link {
  border-color: rgba(173,47,47,.48);
  color: #f19b9b;
  background: rgba(125,19,25,.12);
}
.staff-executive-empty {
  display: flex;
  min-height: 276px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px;
  cursor: pointer;
  color: #d9bc82;
  transition: border-color .18s ease, transform .18s ease, background .18s ease;
}
.staff-executive-empty:hover {
  transform: translateY(-2px);
  border-color: rgba(231,184,95,.68);
  background: linear-gradient(180deg, rgba(16,20,26,.98), rgba(7,10,14,.99));
}
.staff-empty-crown { color: #dcb65d; font-size: 1.1rem; }
.staff-empty-mark {
  color: rgba(219,181,96,.28);
  font-family: Georgia, serif;
  font-size: 2.2rem;
  font-weight: 700;
  font-style: italic;
  line-height: 1;
}
.staff-empty-plus {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(231,184,95,.52);
  border-radius: 50%;
  color: #f1cf8b;
  font-size: 1.35rem;
}
.staff-executive-empty strong { color: #f1e4cf; font-size: .94rem; }
.staff-executive-empty small {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  color: #77736b;
  font-family: Georgia, serif;
  font-size: .48rem;
  letter-spacing: .18em;
}
.staff-executive-grid-wrap .leaders-empty-note {
  margin: 0;
  padding: 0;
  height: 0;
  overflow: hidden;
}

.staff-bottom-motto {
  position: relative;
  z-index: 2;
  width: min(980px, calc(100% - 48px));
  margin: 18px auto 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  color: #cbaa69;
  font-family: Georgia, serif;
  text-align: center;
}
.staff-bottom-motto span { height: 1px; background: linear-gradient(90deg, transparent, rgba(231,184,95,.6)); }
.staff-bottom-motto span:nth-of-type(2) { transform: scaleX(-1); }
.staff-bottom-motto strong { font-size: .72rem; letter-spacing: .32em; font-weight: 500; }
.staff-bottom-motto small { grid-column: 1 / -1; margin-top: -8px; color: #77736b; font-size: .52rem; letter-spacing: .22em; }

.staff-page-v27 .leader-editor-card,
.staff-page-v27 .leader-delete-card {
  border-color: rgba(231,184,95,.42);
  background:
    radial-gradient(circle at 100% 0%, rgba(124,23,24,.1), transparent 30%),
    linear-gradient(180deg, #0b0f14, #06090d);
}

@media (max-width: 1180px) {
  .staff-master-section { grid-template-columns: 320px minmax(0, 1fr); }
  .staff-master-art { display: none; }
  .staff-master-copy { border-right: 0; }
  .staff-executive-section { grid-template-columns: 230px minmax(0, 1fr); }
  .staff-executive-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .staff-hero-left,
  .staff-hero-right { display: none; }
  .staff-hero-copy { width: calc(100% - 30px); align-items: center; text-align: center; }
  .staff-hero-copy::before,
  .staff-hero-copy::after { left: 50%; transform: translateX(-50%); }
  .staff-shell { width: calc(100% - 24px); }
  .staff-master-section { grid-template-columns: minmax(230px, .72fr) minmax(0, 1fr); }
  .staff-master-poster { padding: 12px; }
  .staff-master-copy { padding: 38px 24px 28px; }
  .staff-executive-section { grid-template-columns: 1fr; }
  .staff-executive-intro { min-height: 180px; border-right: 0; border-bottom: 1px solid rgba(231,184,95,.2); }
  .staff-executive-foot { position: static; margin-top: 20px; }
  .staff-executive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .staff-hero { min-height: 145px; }
  .staff-hero-copy { min-height: 145px; }
  .staff-hero-copy h1 { font-size: 2.45rem; }
  .staff-hero-copy > span { font-size: .82rem; }
  .staff-shell { width: calc(100% - 16px); }
  .staff-master-section { display: block; min-height: 0; }
  .staff-master-poster { padding: 10px; border-right: 0; border-bottom: 1px solid rgba(231,184,95,.2); }
  .staff-master-poster img { max-height: none; height: auto; aspect-ratio: 4 / 5.15; object-fit: cover; object-position: top center; }
  .staff-master-copy { padding: 26px 20px 28px; text-align: center; }
  .staff-master-copy::after { font-size: 5.6rem; right: 8px; }
  .staff-gold-divider { margin-left: auto; margin-right: auto; }
  .staff-master-copy > p:not(.staff-kicker) { font-size: .9rem; }
  .staff-master-quote { font-size: .8rem; }
  .staff-executive-intro { min-height: 0; padding: 24px 20px; text-align: center; }
  .staff-mini-ornament { margin-left: auto; margin-right: auto; }
  .staff-executive-grid-wrap { padding: 12px; }
  .staff-executive-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .staff-executive-card { min-height: 0; }
  .staff-executive-image img { min-height: 0; max-height: none; aspect-ratio: 4 / 5.2; object-fit: cover; object-position: top center; }
  .staff-executive-meta { display: block; padding: 9px; }
  .staff-executive-actions { margin-top: 8px; }
  .staff-executive-actions button { flex: 1; }
  .staff-executive-empty { min-height: 265px; padding: 14px; }
  .staff-bottom-motto { width: calc(100% - 30px); }
}

@media (max-width: 420px) {
  .staff-executive-grid { grid-template-columns: 1fr; }
  .staff-executive-empty { min-height: 220px; }
}

/* =========================================================
   v27.1 STAFF PIXEL-MATCH MODE
   Desktop design follows the approved visual reference as closely as possible.
   Existing functional executor cards remain fully interactive.
   ========================================================= */
@media (min-width: 1200px) {
  body.staff-pixelmatch-v27-1 {
    background: #020304;
  }

  /* Approved desktop header artwork, with real links kept as click targets. */
  .staff-pixelmatch-v27-1 .topbar {
    position: relative;
    height: 61px;
    min-height: 61px;
    padding: 0 4.15%;
    background:
      url('../images/leaders/staff-reference-header-v27-1.png') center top / 100% 61px no-repeat,
      #050608;
    border: 0;
    box-shadow: none;
  }
  .staff-pixelmatch-v27-1 .topbar::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: rgba(225, 180, 86, .34);
    pointer-events: none;
  }
  .staff-pixelmatch-v27-1 .brand,
  .staff-pixelmatch-v27-1 .desktop-nav,
  .staff-pixelmatch-v27-1 .topbar-right {
    position: relative;
    z-index: 3;
  }
  .staff-pixelmatch-v27-1 .brand > *,
  .staff-pixelmatch-v27-1 .desktop-nav a,
  .staff-pixelmatch-v27-1 .topbar-game,
  .staff-pixelmatch-v27-1 .menu-btn span {
    opacity: 0;
  }
  .staff-pixelmatch-v27-1 .brand {
    width: 220px;
    height: 61px;
  }
  .staff-pixelmatch-v27-1 .desktop-nav {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    height: 61px;
    display: flex;
    align-items: stretch;
    gap: 0;
  }
  .staff-pixelmatch-v27-1 .desktop-nav a {
    display: grid;
    place-items: center;
    min-width: 108px;
    height: 61px;
    padding: 0 13px;
  }
  .staff-pixelmatch-v27-1 .topbar-right {
    height: 61px;
  }
  .staff-pixelmatch-v27-1 .topbar-game {
    display: block;
    width: 150px;
  }
  .staff-pixelmatch-v27-1 .menu-btn {
    display: block;
    width: 52px;
    height: 61px;
    padding: 0;
    opacity: .01;
  }

  /* Use the approved mockup as the decorative canvas. */
  .staff-pixelmatch-v27-1 .staff-stage {
    position: relative;
    width: 100%;
    min-height: calc(100vw * 0.5263157895);
    margin: 0;
    padding: 0;
    overflow: visible;
    background:
      url('../images/leaders/staff-reference-body-v27-1.png') center top / 100% auto no-repeat,
      #030405;
  }

  /* Static design copy is already baked into the approved canvas. */
  .staff-pixelmatch-v27-1 .staff-hero {
    display: none;
  }

  .staff-pixelmatch-v27-1 .staff-shell {
    position: absolute;
    z-index: 5;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    pointer-events: none;
  }

  /* Master poster remains clickable while the reference artwork supplies the exact appearance. */
  .staff-pixelmatch-v27-1 .staff-master-section {
    position: absolute;
    left: 7.60%;
    top: 16.14%;
    width: 83.25%;
    height: 42.30%;
    min-height: 0;
    display: block;
    border: 0;
    background: transparent;
    pointer-events: none;
  }
  .staff-pixelmatch-v27-1 .staff-master-poster {
    position: absolute;
    left: 2.72%;
    top: 2.15%;
    width: 29.35%;
    height: 91.90%;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    cursor: zoom-in;
    pointer-events: auto;
    opacity: .01;
  }
  .staff-pixelmatch-v27-1 .staff-master-poster::before,
  .staff-pixelmatch-v27-1 .staff-master-poster::after {
    display: none;
  }
  .staff-pixelmatch-v27-1 .staff-master-poster img {
    width: 100%;
    height: 100%;
    border: 0;
    opacity: 0;
  }
  .staff-pixelmatch-v27-1 .staff-master-copy,
  .staff-pixelmatch-v27-1 .staff-master-art {
    display: none;
  }

  /* The executor intro text/background are part of the canvas; only live cards are overlaid. */
  .staff-pixelmatch-v27-1 .staff-executive-section {
    position: absolute;
    left: 7.60%;
    top: 58.64%;
    width: 83.25%;
    height: 31.60%;
    min-height: 0;
    display: block;
    border: 0;
    background: transparent;
    pointer-events: none;
  }
  .staff-pixelmatch-v27-1 .staff-executive-intro {
    display: none;
  }
  .staff-pixelmatch-v27-1 .staff-executive-grid-wrap {
    position: absolute;
    left: 22.92%;
    right: 2.80%;
    top: 4.70%;
    bottom: 6.00%;
    padding: 0;
    pointer-events: auto;
  }
  .staff-pixelmatch-v27-1 .staff-executive-count,
  .staff-pixelmatch-v27-1 .staff-executive-grid-wrap .leaders-empty-note {
    display: none !important;
  }
  .staff-pixelmatch-v27-1 .staff-executive-grid {
    width: 100%;
    height: 100%;
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-auto-rows: 100%;
    gap: .70vw;
    align-items: stretch;
  }

  .staff-pixelmatch-v27-1 .staff-executive-card {
    height: 100%;
    min-height: 0;
    overflow: hidden;
    border: 1px solid rgba(214, 171, 88, .56);
    border-radius: 0;
    background:
      radial-gradient(circle at 50% 8%, rgba(207, 159, 66, .045), transparent 30%),
      linear-gradient(180deg, #0a0d10 0%, #06080b 100%);
    box-shadow:
      inset 0 0 0 1px rgba(255,255,255,.012),
      inset 0 0 28px rgba(213,164,69,.022),
      0 10px 24px rgba(0,0,0,.28);
  }
  .staff-pixelmatch-v27-1 .staff-executive-card::before,
  .staff-pixelmatch-v27-1 .staff-executive-card::after {
    color: #d8ab53;
    font-size: .42rem;
  }

  .staff-pixelmatch-v27-1 .staff-executive-filled {
    display: grid;
    grid-template-rows: minmax(0, 1fr) clamp(47px, 3.65vw, 61px);
  }
  .staff-pixelmatch-v27-1 .staff-executive-image {
    min-height: 0;
    height: 100%;
    background: #040506;
  }
  .staff-pixelmatch-v27-1 .staff-executive-image img {
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
    object-fit: cover;
    object-position: top center;
  }
  .staff-pixelmatch-v27-1 .staff-executive-meta {
    min-height: 0;
    height: 100%;
    padding: .42vw .55vw .46vw;
    border-top: 1px solid rgba(214,171,88,.4);
    background: #050608;
  }
  .staff-pixelmatch-v27-1 .staff-executive-meta span {
    margin-bottom: 3px;
    font-size: clamp(.38rem, .48vw, .54rem);
    color: #b9975b;
    letter-spacing: .18em;
  }
  .staff-pixelmatch-v27-1 .staff-executive-meta strong {
    font-size: clamp(.72rem, .82vw, .98rem);
    color: #f3e7d2;
  }
  .staff-pixelmatch-v27-1 .staff-executive-actions {
    gap: .35vw;
  }
  .staff-pixelmatch-v27-1 .staff-executive-actions button {
    padding: .34vw .48vw;
    border-radius: 3px;
    font-size: clamp(.52rem, .58vw, .67rem);
    background: rgba(9,11,14,.94);
  }
  .staff-pixelmatch-v27-1 .staff-executive-actions button:first-child {
    border-color: rgba(221,181,91,.58);
    color: #e8ce96;
    box-shadow: inset 0 0 14px rgba(207,154,54,.06);
  }
  .staff-pixelmatch-v27-1 .staff-executive-actions .delete-link {
    border-color: rgba(193,54,56,.78);
    color: #f3b0af;
    background: linear-gradient(180deg, rgba(119,15,22,.26), rgba(59,8,12,.2));
  }

  .staff-pixelmatch-v27-1 .staff-executive-empty {
    min-height: 0;
    height: 100%;
    padding: 12% 8% 9%;
    gap: 4.5%;
    color: #dbc18c;
  }
  .staff-pixelmatch-v27-1 .staff-empty-crown {
    font-size: clamp(.82rem, .9vw, 1.05rem);
  }
  .staff-pixelmatch-v27-1 .staff-empty-mark {
    font-size: clamp(1.55rem, 2vw, 2.25rem);
    color: rgba(212,172,86,.28);
  }
  .staff-pixelmatch-v27-1 .staff-empty-plus {
    width: clamp(34px, 2.45vw, 42px);
    height: clamp(34px, 2.45vw, 42px);
    font-size: clamp(1rem, 1.2vw, 1.4rem);
  }
  .staff-pixelmatch-v27-1 .staff-executive-empty strong {
    font-size: clamp(.76rem, .88vw, 1rem);
  }
  .staff-pixelmatch-v27-1 .staff-executive-empty small {
    bottom: 7%;
    font-size: clamp(.38rem, .46vw, .52rem);
  }

  /* The approved canvas already includes the bottom N2S motto. */
  .staff-pixelmatch-v27-1 .staff-bottom-motto,
  .staff-pixelmatch-v27-1 > .site-shell > .footer,
  .staff-pixelmatch-v27-1 .site-shell > .footer {
    display: none;
  }

  /* Keep dialogs functional and above the decorative canvas. */
  .staff-pixelmatch-v27-1 dialog {
    z-index: 100;
  }
}

/* Tablet/mobile keep the functional responsive layout instead of using a desktop screenshot canvas. */
@media (max-width: 1199px) {
  .staff-pixelmatch-v27-1 .topbar {
    background: rgba(4,7,11,.97);
  }
}

/* =========================================================
   v28 TESTER PIXEL-MATCH + NAVIGATION HITBOX FIX
   - Tester desktop follows the approved concept as a visual blueprint.
   - Staff/tester desktop headers use real DOM text and real link hitboxes.
   - This removes invisible/offset click targets from screenshot-based headers.
   ========================================================= */

@media (min-width: 1200px) {
  /* ---------- REAL, CLICK-SAFE HEADER FOR STAFF + TESTER ---------- */
  .staff-pixelmatch-v27-1 .topbar,
  .tester-pixelmatch-v28 .topbar {
    position: relative !important;
    z-index: 2000 !important;
    height: 61px !important;
    min-height: 61px !important;
    padding: 0 4.15% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: rgba(5, 6, 8, .985) !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(225, 180, 86, .34) !important;
    box-shadow: 0 8px 28px rgba(0,0,0,.26) !important;
    backdrop-filter: none !important;
    overflow: visible !important;
    pointer-events: auto !important;
  }

  .staff-pixelmatch-v27-1 .topbar::after,
  .tester-pixelmatch-v28 .topbar::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(230,184,91,.58), transparent);
    pointer-events: none;
  }

  .staff-pixelmatch-v27-1 .brand,
  .tester-pixelmatch-v28 .brand {
    position: relative !important;
    z-index: 2002 !important;
    width: auto !important;
    height: 61px !important;
    display: flex !important;
    align-items: center !important;
    gap: 9px !important;
    pointer-events: auto !important;
  }
  .staff-pixelmatch-v27-1 .brand > *,
  .tester-pixelmatch-v28 .brand > *,
  .staff-pixelmatch-v27-1 .desktop-nav a,
  .tester-pixelmatch-v28 .desktop-nav a,
  .staff-pixelmatch-v27-1 .topbar-game,
  .tester-pixelmatch-v28 .topbar-game,
  .staff-pixelmatch-v27-1 .menu-btn span,
  .tester-pixelmatch-v28 .menu-btn span {
    opacity: 1 !important;
  }
  .staff-pixelmatch-v27-1 .brand-mark,
  .tester-pixelmatch-v28 .brand-mark {
    color: #e9bc62 !important;
    font-size: 1.08rem !important;
    filter: drop-shadow(0 0 8px rgba(235,183,78,.28));
  }
  .staff-pixelmatch-v27-1 .brand-copy strong,
  .tester-pixelmatch-v28 .brand-copy strong {
    color: #f5f0e5 !important;
    font-size: 1.05rem !important;
    line-height: 1 !important;
  }
  .staff-pixelmatch-v27-1 .brand-copy small,
  .tester-pixelmatch-v28 .brand-copy small {
    color: #cfc3aa !important;
    font-size: .49rem !important;
    letter-spacing: .08em !important;
  }

  .staff-pixelmatch-v27-1 .desktop-nav,
  .tester-pixelmatch-v28 .desktop-nav {
    position: absolute !important;
    z-index: 2003 !important;
    left: 50% !important;
    top: 0 !important;
    transform: translateX(-50%) !important;
    height: 61px !important;
    display: flex !important;
    align-items: stretch !important;
    gap: 2px !important;
    pointer-events: auto !important;
  }
  .staff-pixelmatch-v27-1 .desktop-nav a,
  .tester-pixelmatch-v28 .desktop-nav a {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: auto !important;
    width: auto !important;
    height: 61px !important;
    padding: 0 22px !important;
    color: #e8e5df !important;
    font-size: .76rem !important;
    font-weight: 650 !important;
    letter-spacing: .015em !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    user-select: none !important;
  }
  .staff-pixelmatch-v27-1 .desktop-nav a:hover,
  .tester-pixelmatch-v28 .desktop-nav a:hover {
    color: #f0c86f !important;
    background: rgba(231,184,95,.035) !important;
  }
  .staff-pixelmatch-v27-1 .desktop-nav a.is-current,
  .tester-pixelmatch-v28 .desktop-nav a.is-current {
    color: #f2c66c !important;
  }
  .staff-pixelmatch-v27-1 .desktop-nav a.is-current::after,
  .tester-pixelmatch-v28 .desktop-nav a.is-current::after {
    content: '';
    position: absolute;
    left: 18%;
    right: 18%;
    bottom: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #e5ad43 22%, #ffe29c 50%, #e5ad43 78%, transparent);
    box-shadow: 0 0 9px rgba(229,173,67,.55);
    pointer-events: none;
  }

  .staff-pixelmatch-v27-1 .topbar-right,
  .tester-pixelmatch-v28 .topbar-right {
    position: relative !important;
    z-index: 2002 !important;
    height: 61px !important;
    display: flex !important;
    align-items: center !important;
    gap: 18px !important;
    pointer-events: auto !important;
  }
  .staff-pixelmatch-v27-1 .topbar-game,
  .tester-pixelmatch-v28 .topbar-game {
    width: auto !important;
    color: #e7e1d7 !important;
    font-size: .58rem !important;
    letter-spacing: .32em !important;
    white-space: nowrap !important;
  }
  .staff-pixelmatch-v27-1 .menu-btn,
  .tester-pixelmatch-v28 .menu-btn {
    position: relative !important;
    z-index: 2004 !important;
    display: block !important;
    width: 38px !important;
    height: 38px !important;
    padding: 8px !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
  }
  .staff-pixelmatch-v27-1 .menu-btn span,
  .tester-pixelmatch-v28 .menu-btn span {
    height: 1.5px !important;
    margin: 4px 0 !important;
    background: #e3b85e !important;
  }

  .staff-pixelmatch-v27-1 .mobile-menu,
  .tester-pixelmatch-v28 .mobile-menu {
    z-index: 2100 !important;
    top: 66px !important;
    pointer-events: auto !important;
  }

  /* Remove the old screenshot-header masking technique on the staff page. */
  .staff-pixelmatch-v27-1 .topbar {
    background-image: none !important;
  }

  /* ---------- TESTER APPROVED-DESIGN CANVAS ---------- */
  body.tester-pixelmatch-v28 {
    background: #020202 !important;
  }

  .tester-pixelmatch-v28 .tester-stage {
    position: relative !important;
    z-index: 1 !important;
    width: 100% !important;
    min-height: calc(100vw * 0.5263157895) !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    background:
      url('../images/testers/tester-reference-body-v28.png') center top / 100% auto no-repeat,
      #030304 !important;
  }

  /* All static display copy/ornaments are baked into the approved reference canvas. */
  .tester-pixelmatch-v28 .tester-hero,
  .tester-pixelmatch-v28 .tester-roster-heading,
  .tester-pixelmatch-v28 .tester-red-divider,
  .tester-pixelmatch-v28 .tester-roster > .tester-empty-note,
  .tester-pixelmatch-v28 .tester-motto,
  .tester-pixelmatch-v28 .site-shell > .tester-footer {
    display: none !important;
  }

  .tester-pixelmatch-v28 .tester-roster {
    position: absolute !important;
    z-index: 20 !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    pointer-events: none !important;
  }

  .tester-pixelmatch-v28 .tester-grid {
    position: absolute !important;
    z-index: 25 !important;
    left: 26.76% !important;
    top: 60.45% !important;
    width: 63.13% !important;
    height: 29.15% !important;
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    grid-auto-rows: 100% !important;
    gap: .68vw !important;
    align-items: stretch !important;
    pointer-events: auto !important;
  }

  .tester-pixelmatch-v28 .tester-grid > .board-empty {
    grid-column: 1 / -1;
    align-self: center;
    color: #e6d7bb;
    background: rgba(0,0,0,.72);
    border: 1px solid rgba(220,171,72,.35);
    padding: 18px;
  }

  /* Dynamic filled cards cover the baked placeholder and stay fully functional. */
  .tester-pixelmatch-v28 .tester-card-filled {
    position: relative !important;
    height: 100% !important;
    min-height: 0 !important;
    display: grid !important;
    grid-template-rows: minmax(0, 1fr) clamp(48px, 4.05vw, 66px) !important;
    overflow: hidden !important;
    border: 1px solid rgba(225,178,81,.82) !important;
    border-radius: 0 !important;
    background: linear-gradient(180deg, #090b0e, #050607) !important;
    box-shadow: inset 0 0 0 1px rgba(255,222,143,.045), 0 8px 24px rgba(0,0,0,.38) !important;
  }
  .tester-pixelmatch-v28 .tester-card-filled::before,
  .tester-pixelmatch-v28 .tester-card-filled::after {
    content: '✦' !important;
    position: absolute !important;
    z-index: 8 !important;
    color: #d6a842 !important;
    font-size: .42rem !important;
    pointer-events: none !important;
  }
  .tester-pixelmatch-v28 .tester-card-filled::before { left: 6px !important; top: 6px !important; }
  .tester-pixelmatch-v28 .tester-card-filled::after { right: 6px !important; bottom: 6px !important; }

  .tester-pixelmatch-v28 .tester-card-image {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: #030405 !important;
    cursor: zoom-in !important;
    overflow: hidden !important;
  }
  .tester-pixelmatch-v28 .tester-card-image img {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    object-fit: cover !important;
    object-position: top center !important;
    transition: transform .22s ease, filter .22s ease !important;
  }
  .tester-pixelmatch-v28 .tester-card-image:hover img {
    transform: scale(1.012) !important;
    filter: brightness(1.04) !important;
  }
  .tester-pixelmatch-v28 .tester-card-vignette {
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(180deg, transparent 68%, rgba(2,2,3,.32) 100%) !important;
    pointer-events: none !important;
  }

  .tester-pixelmatch-v28 .tester-card-footer {
    position: relative !important;
    min-height: 0 !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: .4vw !important;
    padding: .40vw .48vw !important;
    border-top: 1px solid rgba(218,168,67,.55) !important;
    background: rgba(5,6,8,.985) !important;
  }
  .tester-pixelmatch-v28 .tester-card-footer > div:first-child {
    min-width: 0 !important;
  }
  .tester-pixelmatch-v28 .tester-card-footer span {
    display: block !important;
    margin-bottom: 2px !important;
    color: #c89c4f !important;
    font-family: Georgia, serif !important;
    font-size: clamp(.36rem, .46vw, .51rem) !important;
    letter-spacing: .18em !important;
    white-space: nowrap !important;
  }
  .tester-pixelmatch-v28 .tester-card-footer strong {
    display: block !important;
    max-width: 7vw !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    color: #f4ead9 !important;
    font-size: clamp(.64rem, .76vw, .9rem) !important;
  }
  .tester-pixelmatch-v28 .tester-card-actions {
    display: flex !important;
    gap: .28vw !important;
    flex: 0 0 auto !important;
  }
  .tester-pixelmatch-v28 .tester-card-actions button {
    padding: .30vw .43vw !important;
    border: 1px solid rgba(222,177,79,.62) !important;
    border-radius: 2px !important;
    background: linear-gradient(180deg, rgba(50,36,10,.72), rgba(22,15,5,.9)) !important;
    color: #f3d68f !important;
    font-size: clamp(.46rem, .54vw, .61rem) !important;
    cursor: pointer !important;
  }
  .tester-pixelmatch-v28 .tester-card-actions .delete-link {
    border-color: rgba(193,47,44,.86) !important;
    background: linear-gradient(180deg, rgba(126,17,20,.72), rgba(49,5,7,.94)) !important;
    color: #ffd0cc !important;
  }

  /* Empty positions use the exact baked design; the transparent real button is the hitbox. */
  .tester-pixelmatch-v28 .tester-card-empty {
    position: relative !important;
    height: 100% !important;
    min-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    opacity: .012 !important;
    cursor: pointer !important;
    pointer-events: auto !important;
  }
  .tester-pixelmatch-v28 .tester-card-empty:hover {
    opacity: .045 !important;
    background: rgba(235,180,72,.08) !important;
    outline: 1px solid rgba(235,180,72,.45) !important;
  }

  .tester-pixelmatch-v28 dialog {
    z-index: 3000 !important;
  }
}

/* On tablet/mobile, keep the existing responsive functional layout and real header. */
@media (max-width: 1199px) {
  .tester-pixelmatch-v28 .topbar,
  .staff-pixelmatch-v27-1 .topbar {
    z-index: 1000 !important;
  }
}

@media (min-width: 1200px) {
  /* If every tester has been deleted, cover the baked first sample card with a true empty slot. */
  .tester-pixelmatch-v28 .tester-grid > .tester-card-empty:first-child {
    opacity: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7% !important;
    border: 1px solid rgba(225,178,81,.82) !important;
    background: linear-gradient(180deg, #090b0e, #050607) !important;
    color: #e9ddc6 !important;
  }
  .tester-pixelmatch-v28 .tester-grid > .tester-card-empty:first-child .tester-empty-symbol {
    color: rgba(210,170,87,.34) !important;
    font: italic 700 clamp(1.6rem,2vw,2.2rem)/1 Georgia, serif !important;
  }
  .tester-pixelmatch-v28 .tester-grid > .tester-card-empty:first-child .tester-empty-plus {
    display: grid !important;
    place-items: center !important;
    width: clamp(34px,2.45vw,42px) !important;
    height: clamp(34px,2.45vw,42px) !important;
    border: 1px solid rgba(223,177,78,.7) !important;
    border-radius: 50% !important;
    color: #f0c668 !important;
    font-size: 1.25rem !important;
  }
  .tester-pixelmatch-v28 .tester-grid > .tester-card-empty:first-child strong {
    font-size: clamp(.76rem,.88vw,1rem) !important;
  }
  .tester-pixelmatch-v28 .tester-grid > .tester-card-empty:first-child p {
    display: none !important;
  }
  .tester-pixelmatch-v28 .tester-grid > .tester-card-empty:first-child .tester-slot-number {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 7% !important;
    text-align: center !important;
    color: #b9aa91 !important;
    font: .52rem/1 Georgia, serif !important;
    letter-spacing: .22em !important;
  }
}

/* =========================================================
   v29 — readable detail layout + authors + anonymous comments
   ========================================================= */

/* Bulletin columns: number / content / date / author / management */
.board-table-head {
  grid-template-columns: 68px minmax(0,1fr) 118px 108px 150px !important;
}
.board-row-v19 {
  grid-template-columns: 68px 132px minmax(0,1fr) 118px 108px 150px !important;
}
.board-row-author {
  min-width: 0;
  text-align: center;
  color: #d4c29d;
  font-size: .78rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.board-title-line {
  display: flex;
  align-items: baseline;
  gap: 7px;
  min-width: 0;
}
.board-title-line .board-row-title { min-width: 0; }
.comment-count {
  flex: 0 0 auto;
  color: #e0b968;
  font-size: .78rem;
  font-weight: 700;
}

.notice-editor select,
.comment-form input,
.comment-form textarea {
  width: 100%;
  margin-top: 8px;
  padding: 12px 13px;
  border: 1px solid rgba(159,174,191,.25);
  border-radius: 9px;
  background: #05090e;
  color: #f5efe3;
  outline: none;
  font: inherit;
}
.notice-editor select:focus,
.comment-form input:focus,
.comment-form textarea:focus { border-color: rgba(230,188,101,.68); }
.editor-grid-3 { grid-template-columns: .9fr .9fr 1.1fr; }

/* Detail pages are deliberately wider and less vertically stretched. */
.detail-main-wide {
  width: min(1180px, calc(100% - 40px)) !important;
  padding: 38px 0 70px !important;
}
.notice-detail-head,
.screenshot-detail-head {
  padding: clamp(22px,3vw,36px) clamp(24px,3.4vw,42px) !important;
}
.notice-detail-head h1,
.screenshot-detail-head h1 {
  margin-top: 14px !important;
  font-size: clamp(1.85rem,4vw,2.8rem) !important;
}
.notice-detail-meta,
.screenshot-detail-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 11px 16px;
}
.article-author {
  color: #858c95;
  font-size: .76rem;
}
.article-author strong {
  color: #d9c49b;
  font-weight: 700;
}

.notice-detail-layout {
  display: grid;
  grid-template-columns: minmax(300px, .78fr) minmax(0, 1.22fr);
  align-items: start;
  min-height: 0;
}
.notice-detail-layout.no-poster { grid-template-columns: 1fr; }
.notice-detail-poster {
  position: sticky;
  top: 18px;
  align-self: start;
  margin: 0;
  padding: 20px;
  border-right: 1px solid rgba(159,174,191,.12);
  background: #030506;
}
.notice-detail-poster img {
  width: 100% !important;
  max-height: min(72vh, 760px);
  object-fit: contain;
  object-position: top center;
  border-radius: 10px;
}
.notice-detail-body {
  padding: clamp(26px,4vw,46px) !important;
  min-height: 280px;
  font-size: 1rem !important;
  line-height: 1.9 !important;
}

/* Screenshot detail: compact gallery instead of one giant vertical image stack. */
.screenshot-detail-content {
  padding: 24px clamp(24px,3.4vw,42px) !important;
  line-height: 1.82 !important;
}
.screenshot-detail-gallery {
  padding: clamp(18px,2.6vw,30px) clamp(24px,3.4vw,42px) clamp(28px,3.5vw,42px) !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px !important;
}
.screenshot-detail-gallery a {
  min-height: 0;
  aspect-ratio: 16 / 10;
  border-radius: 11px !important;
}
.screenshot-detail-gallery img {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  object-position: center;
  transition: transform .2s ease, filter .2s ease;
}
.screenshot-detail-gallery a:hover img { transform: scale(1.012); filter: brightness(1.04); }

/* Anonymous comments */
.comments-panel {
  margin-top: 22px;
  padding: clamp(22px,3.4vw,38px);
  border: 1px solid rgba(228,183,102,.22);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(12,17,24,.97), rgba(7,10,15,.99));
  box-shadow: 0 18px 46px rgba(0,0,0,.24);
}
.comments-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(159,174,191,.12);
}
.comments-heading h2 { margin: 0; font-size: 1.65rem; }
.comments-heading h2 span { color: #e2ba6c; }
.comments-heading > p { margin: 0; color: #7e8792; font-size: .78rem; }
.comment-form {
  padding: 20px 0 24px;
  border-bottom: 1px solid rgba(159,174,191,.12);
}
.comment-form label { display: block; color: #c5c9ce; font-size: .8rem; }
.comment-form textarea { resize: vertical; min-height: 92px; line-height: 1.65; }
.comment-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.comment-form-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.comment-form-actions small { color: #747d88; line-height: 1.55; }
.comment-form-actions .gold-btn { margin-top: 10px; border: 1px solid var(--line-strong); background: rgba(228,183,102,.07); cursor: pointer; }
.comment-list { display: grid; }
.comment-item { padding: 19px 2px; border-bottom: 1px solid rgba(159,174,191,.11); }
.comment-item:last-child { border-bottom: 0; }
.comment-item-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.comment-item-head > div:first-child { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 11px; }
.comment-item-head strong { color: #efe4d1; font-size: .92rem; }
.comment-item-head time { color: #717985; font-size: .7rem; }
.comment-edited { color: #6e7680; font-size: .65rem; }
.comment-actions { display: flex; gap: 8px; }
.comment-actions button {
  border: 0;
  padding: 3px 2px;
  background: transparent;
  color: #a7adb5;
  font-size: .72rem;
  cursor: pointer;
}
.comment-actions button:hover { color: #efcf8d; }
.comment-actions .delete-link:hover { color: #ef9292; }
.comment-item > p { margin: 10px 0 0; color: #c7cbd1; line-height: 1.75; font-size: .9rem; }
.comments-empty { margin: 0; padding: 34px 0 10px; text-align: center; color: #78818c; }

@media (max-width: 900px) {
  .detail-main-wide { width: calc(100% - 24px) !important; padding-top: 24px !important; }
  .notice-detail-layout { grid-template-columns: 1fr; }
  .notice-detail-poster { position: relative; top: 0; border-right: 0; border-bottom: 1px solid rgba(159,174,191,.12); }
  .notice-detail-poster img { max-height: 70vh; }
  .screenshot-detail-gallery { grid-template-columns: 1fr; }
  .screenshot-detail-gallery a { aspect-ratio: auto; }
  .screenshot-detail-gallery img { height: auto !important; max-height: 72vh; object-fit: contain; background: #030506; }
}

@media (max-width: 760px) {
  .board-row-v19,
  .screenshot-row {
    grid-template-columns: 58px minmax(0,1fr) !important;
    gap: 10px 12px !important;
  }
  .board-row-number { grid-row: 1 / span 5 !important; }
  .board-row-poster,
  .screenshot-row-thumb { grid-column: 2; }
  .board-row-copy { grid-column: 2; }
  .board-row-date,
  .board-row-author,
  .board-row-admin { grid-column: 2; text-align: left; justify-content: flex-start; }
  .board-row-date { display: inline-block; }
  .board-row-author { width: fit-content; padding: 3px 8px; border: 1px solid rgba(228,183,102,.18); border-radius: 999px; }
  .editor-grid-3 { grid-template-columns: 1fr; gap: 0; }
  .comment-form-grid { grid-template-columns: 1fr; }
  .comment-form-actions { align-items: stretch; flex-direction: column; }
  .comment-form-actions .gold-btn { width: 100%; justify-content: center; }
  .comments-heading { align-items: flex-start; flex-direction: column; gap: 6px; }
  .comment-item-head { align-items: flex-start; }
}
