
/* =========================================================
   N2S v31 — Selected concept match
   Reference direction: approved "시안 A"
   Scope: notice + screenshot boards only
   Notes:
   - Real HTML navigation and controls are preserved.
   - No Worker / D1 / R2 / password logic is changed.
   ========================================================= */

body.community-v31 {
  --v31-gold: #d6a85d;
  --v31-gold-hi: #f0cc82;
  --v31-line: rgba(217,171,91,.55);
  --v31-line-soft: rgba(217,171,91,.19);
  --v31-panel: rgba(3,10,17,.94);
  --v31-panel-2: rgba(6,15,25,.94);
}

/* Fill the former dead space while keeping the side banners visible. */
body.community-v31::before,
body.community-v31::after {
  width: clamp(100px, 9.2vw, 150px);
  opacity: .96;
}
body.community-v31 .topbar,
body.community-v31 .footer {
  max-width: 1600px;
}
body.community-v31 .board-main-v19 {
  width: min(1600px, calc(100% - 300px));
  padding-bottom: 60px;
}

/* A faint inner rail visually connects center content to both side banners. */
body.community-v31 .board-main-v19::before,
body.community-v31 .board-main-v19::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 38px;
  width: 1px;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(228,184,103,.62),
    rgba(228,184,103,.12) 15%,
    rgba(228,184,103,.22) 76%,
    transparent 100%);
  box-shadow: 0 0 18px rgba(213,164,81,.10);
}
body.community-v31 .board-main-v19::before { left: -1px; }
body.community-v31 .board-main-v19::after { right: -1px; }

/* ===================== HERO ===================== */
body.community-v31 .board-hero-v19 {
  min-height: 188px;
  margin-bottom: 10px;
  padding: 24px 220px 30px;
  border-radius: 0;
  border-left-color: rgba(219,174,96,.50);
  border-right-color: rgba(219,174,96,.50);
  border-bottom-color: rgba(219,174,96,.58);
  background-image:
    radial-gradient(circle at 50% 26%, rgba(38,74,109,.06), transparent 44%),
    linear-gradient(90deg, rgba(2,7,12,.48), rgba(2,8,15,.18) 36%, rgba(2,8,15,.20) 64%, rgba(2,7,12,.50)),
    linear-gradient(180deg, rgba(2,7,12,.10), rgba(2,7,12,.62)),
    url('../images/boards/hero-scene-v31.webp') !important;
  background-size: cover !important;
  background-position: center 46% !important;
  box-shadow:
    inset 0 -1px 0 rgba(240,200,119,.30),
    inset 0 1px 0 rgba(240,200,119,.12),
    0 16px 44px rgba(0,0,0,.22);
}
body.community-v31 .board-hero-v19::before {
  left: 34px;
  width: 210px;
  font-size: 1.28rem;
  color: rgba(244,232,208,.88);
}
body.community-v31 .board-hero-v19::after {
  right: 34px;
  width: 230px;
  text-align: center;
  font-size: .72rem;
  color: rgba(230,183,101,.88);
}
body.community-v31 .board-hero-v19 > div {
  max-width: 820px;
}
body.community-v31 .board-hero-v19 > div::before {
  font-size: 1.12rem;
  margin-bottom: 4px;
}
body.community-v31 .board-hero-v19 .eyebrow {
  margin-bottom: 5px;
  font-size: .64rem;
  letter-spacing: .36em;
}
body.community-v31 .board-hero-v19 h1 {
  font-size: clamp(2.55rem, 3.55vw, 3.6rem);
  line-height: 1.08;
}
body.community-v31 .board-hero-v19 > div > p:not(.eyebrow) {
  margin-top: 8px;
  font-size: .84rem;
  line-height: 1.5;
}
body.community-v31 .board-count {
  margin-top: 7px;
  font-size: .66rem;
  opacity: .92;
}

/* Disable the previous divider between hero and the next block. */
body.community-v31 .board-hero-v19 + *::before { display: none !important; }

/* ===================== FEATURE STRIP ===================== */
body.community-v31 .community-feature-strip {
  position: relative;
  display: grid;
  grid-template-columns: minmax(250px, .82fr) minmax(480px, 1.58fr) minmax(250px, .82fr);
  min-height: 148px;
  margin: 0 0 10px;
  overflow: hidden;
  border: 1px solid rgba(224,180,99,.62);
  background:
    linear-gradient(180deg, rgba(5,13,22,.98), rgba(3,9,15,.98));
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.018),
    0 16px 42px rgba(0,0,0,.22);
}
body.community-v31 .community-feature-strip::before,
body.community-v31 .community-feature-strip::after {
  content: "✦";
  position: absolute;
  z-index: 4;
  top: -7px;
  color: #d7aa5f;
  font-size: 1.08rem;
  text-shadow: 0 0 10px rgba(215,170,95,.46);
}
body.community-v31 .community-feature-strip::before { left: 8px; }
body.community-v31 .community-feature-strip::after { right: 8px; }

body.community-v31 .community-feature-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 30px;
  background:
    radial-gradient(circle at 100% 50%, rgba(189,125,41,.08), transparent 45%),
    linear-gradient(90deg, rgba(4,11,18,.98), rgba(4,11,18,.88));
}
body.community-v31 .community-feature-kicker {
  margin: 0 0 9px;
  color: #dcb264;
  font: 700 .62rem/1 Georgia, serif;
  letter-spacing: .23em;
}
body.community-v31 .community-feature-copy h2 {
  margin: 0;
  color: #f0ece3;
  font-family: Georgia, "Noto Serif KR", serif;
  font-size: 1.42rem;
  font-weight: 650;
  letter-spacing: -.025em;
}
body.community-v31 .community-feature-copy > p:last-child {
  margin: 9px 0 0;
  color: #9da5ad;
  font-size: .76rem;
  line-height: 1.62;
}
body.community-v31 .community-feature-media {
  min-height: 148px;
  background:
    linear-gradient(90deg, rgba(3,10,17,.62), transparent 14%, transparent 84%, rgba(3,10,17,.62)),
    linear-gradient(180deg, transparent 58%, rgba(2,7,12,.34)),
    url('../images/boards/feature-scene-v31.webp') center / cover no-repeat;
  border-left: 1px solid rgba(217,171,91,.22);
  border-right: 1px solid rgba(217,171,91,.22);
}
body.community-v31 .community-feature-quote {
  display: flex;
  min-width: 0;
  margin: 0;
  padding: 20px 28px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  color: #c2c5c6;
  font-family: Georgia, "Noto Serif KR", serif;
  font-size: .76rem;
  line-height: 1.7;
  background:
    radial-gradient(circle at 0 50%, rgba(187,126,41,.07), transparent 45%),
    rgba(3,9,15,.96);
}
body.community-v31 .community-feature-quote::before {
  content: "“";
  margin-bottom: -7px;
  color: rgba(223,183,112,.42);
  font: 2.1rem/1 Georgia, serif;
}
body.community-v31 .community-feature-quote small {
  display: block;
  margin-top: 9px;
  color: #9b8867;
  font-size: .62rem;
  letter-spacing: .08em;
}

/* ===================== TOOLBAR ===================== */
body.community-v31 .community-board-tools {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  gap: 8px 20px;
  align-items: center;
  margin: 0 0 7px;
  padding: 10px 0 8px;
  border-bottom: 1px solid rgba(218,174,96,.30);
}
body.community-v31 .community-view-labels {
  display: flex;
  align-items: center;
  gap: 6px;
}
body.community-v31 .community-view-labels span {
  height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  border: 1px solid rgba(159,174,191,.16);
  border-radius: 4px;
  color: #808991;
  font-size: .66rem;
  letter-spacing: .05em;
}
body.community-v31 .community-view-labels span.is-active {
  color: #f0d28f;
  border-color: rgba(226,183,101,.60);
  background: linear-gradient(180deg, rgba(207,151,58,.15), rgba(105,70,22,.06));
  box-shadow: inset 0 -2px 0 rgba(239,199,116,.38);
}
body.community-v31 .community-tools-right {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
body.community-v31 .community-search-form,
body.community-v31 .board-search-form.community-search-form {
  display: grid;
  grid-template-columns: 96px minmax(220px, 340px) 42px auto;
  gap: 0;
  max-width: none;
  margin: 0;
}
body.community-v31 .screenshot-quick-search {
  grid-template-columns: minmax(220px, 340px) 42px auto;
}
body.community-v31 .community-search-form select,
body.community-v31 .community-search-form input {
  height: 36px;
  min-width: 0;
  border: 1px solid rgba(159,174,191,.23);
  border-radius: 0;
  background: rgba(3,9,15,.88);
  color: #dfe2e4;
}
body.community-v31 .community-search-form select {
  border-radius: 4px 0 0 4px;
}
body.community-v31 .screenshot-quick-search input {
  border-radius: 4px 0 0 4px;
}
body.community-v31 .community-search-form button {
  height: 36px;
  min-width: 42px;
  padding: 0 11px;
  border: 1px solid rgba(218,174,96,.35);
  border-left: 0;
  border-radius: 0;
  background: rgba(164,112,35,.08);
  color: #d8bd88;
  cursor: pointer;
}
body.community-v31 .community-search-form button:last-child {
  border-radius: 0 4px 4px 0;
}
body.community-v31 .community-search-form button[hidden] { display: none; }
body.community-v31 .community-board-tools .board-write-btn {
  position: static;
  min-width: 112px;
  height: 36px;
  padding: 0 20px;
  border-radius: 4px;
  background: linear-gradient(180deg,#d6a75b,#b67c34);
  color: #0b0b0b;
  font-weight: 800;
  box-shadow: inset 0 1px rgba(255,255,255,.32), 0 5px 18px rgba(0,0,0,.18);
}
body.community-v31 .community-board-tools .board-write-btn:hover {
  background: linear-gradient(180deg,#e0b66e,#c78a3b);
  border-color: #efd18c;
}
body.community-v31 .board-search-status,
body.community-v31 .screenshot-quick-search-status {
  grid-column: 1 / -1;
  min-height: 0;
  margin: 0;
  color: #747e87;
  font-size: .67rem;
  text-align: right;
}

/* ===================== TABLE / ROWS ===================== */
body.community-v31 .board-table-shell {
  border-radius: 2px;
  border-color: rgba(218,174,96,.36);
  background: rgba(3,9,15,.96);
}
body.community-v31 .board-table-head {
  grid-template-columns: 54px minmax(0,1fr) 116px 104px 140px !important;
  min-height: 38px;
  padding: 0 12px;
  color: #979b9e;
  font-size: .65rem;
  background: rgba(2,8,13,.90);
}
body.community-v31 .board-table-head span:nth-child(2) {
  padding-left: 122px;
}
body.community-v31 .board-row-v19 {
  grid-template-columns: 54px 104px minmax(0,1fr) 116px 104px 140px !important;
  gap: 12px;
  min-height: 76px;
  padding: 8px 12px;
  background:
    linear-gradient(90deg, rgba(6,16,26,.86), rgba(4,11,19,.93));
}
body.community-v31 .board-row-v19.is-pinned {
  background:
    linear-gradient(90deg, rgba(101,70,26,.17), rgba(7,17,27,.90) 18%, rgba(4,11,19,.94));
  box-shadow: inset 2px 0 0 rgba(223,177,94,.58);
}
body.community-v31 .board-row-poster,
body.community-v31 .screenshot-row-thumb {
  width: 104px;
  aspect-ratio: 16/9;
  border-radius: 3px;
}
body.community-v31 .board-row-meta {
  margin-bottom: 3px;
  gap: 5px;
}
body.community-v31 .notice-badge,
body.community-v31 .screenshot-badge,
body.community-v31 .pinned-indicator {
  padding: 3px 6px;
  border-radius: 999px;
  font-size: .56rem;
}
body.community-v31 .board-row-title {
  font-size: .92rem;
  line-height: 1.28;
}
body.community-v31 .board-row-copy > p {
  margin-top: 3px;
  font-size: .70rem;
  line-height: 1.35;
}
body.community-v31 .board-row-number,
body.community-v31 .board-row-date,
body.community-v31 .board-row-author,
body.community-v31 .board-row-admin button {
  font-size: .67rem;
}
body.community-v31 .board-row-admin {
  gap: 6px;
}
body.community-v31 .board-row-admin .pin-icon-btn {
  width: 28px;
  height: 28px;
}
body.community-v31 .board-pagination {
  padding: 14px 0 0;
}
body.community-v31 .board-pagination button {
  min-width: 30px;
  height: 30px;
  border-radius: 3px;
}

/* Remove the old bottom search block if any old cached markup appears. */
body.community-v31 .board-search {
  display: none;
}

/* Footer stays clean and low, like the approved concept. */
body.community-v31 .footer {
  min-height: 62px;
  padding: 18px 24px 20px;
  border-top-color: rgba(218,174,96,.38);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1180px) {
  body.community-v31::before,
  body.community-v31::after { opacity: .62; }
  body.community-v31 .board-main-v19 {
    width: min(1120px, calc(100% - 72px));
  }
  body.community-v31 .board-hero-v19 {
    padding-left: 150px;
    padding-right: 150px;
  }
  body.community-v31 .board-hero-v19::before,
  body.community-v31 .board-hero-v19::after {
    width: 135px;
    font-size: .66rem;
  }
  body.community-v31 .board-hero-v19::before {
    font-size: 1rem;
  }
  body.community-v31 .community-feature-strip {
    grid-template-columns: minmax(210px,.8fr) minmax(390px,1.5fr) minmax(200px,.75fr);
  }
}

@media (max-width: 900px) {
  body.community-v31::before,
  body.community-v31::after { display: none; }
  body.community-v31 .board-main-v19 {
    width: calc(100% - 24px);
  }
  body.community-v31 .board-main-v19::before,
  body.community-v31 .board-main-v19::after { display: none; }
  body.community-v31 .board-hero-v19 {
    min-height: 220px;
    padding: 28px 32px 34px;
  }
  body.community-v31 .board-hero-v19::before,
  body.community-v31 .board-hero-v19::after { display: none; }

  body.community-v31 .community-feature-strip {
    grid-template-columns: minmax(210px,.85fr) minmax(0,1.5fr);
  }
  body.community-v31 .community-feature-quote { display: none; }

  body.community-v31 .community-board-tools {
    grid-template-columns: 1fr;
  }
  body.community-v31 .community-tools-right {
    justify-content: stretch;
  }
  body.community-v31 .community-search-form,
  body.community-v31 .board-search-form.community-search-form {
    flex: 1 1 auto;
    grid-template-columns: 90px minmax(0,1fr) 42px auto;
  }
  body.community-v31 .screenshot-quick-search {
    grid-template-columns: minmax(0,1fr) 42px auto;
  }
  body.community-v31 .board-table-head { display: none; }
}

@media (max-width: 760px) {
  body.community-v31 .topbar { height: 60px; }
  body.community-v31 .board-main-v19 { width: calc(100% - 14px); }

  body.community-v31 .board-hero-v19 {
    min-height: 246px;
    padding: 30px 18px 32px;
    border-radius: 0;
  }
  body.community-v31 .board-hero-v19 h1 {
    font-size: clamp(2.05rem, 10vw, 2.85rem);
  }

  body.community-v31 .community-feature-strip {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  body.community-v31 .community-feature-copy {
    padding: 16px 18px 13px;
    text-align: center;
  }
  body.community-v31 .community-feature-copy > p:last-child br { display: none; }
  body.community-v31 .community-feature-media {
    min-height: 142px;
    border-left: 0;
    border-right: 0;
    border-top: 1px solid rgba(217,171,91,.22);
  }
  body.community-v31 .community-feature-quote { display: none; }

  body.community-v31 .community-view-labels span:not(.is-active) { display: none; }
  body.community-v31 .community-tools-right {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 7px;
  }
  body.community-v31 .community-search-form,
  body.community-v31 .board-search-form.community-search-form {
    grid-template-columns: 86px minmax(0,1fr) 40px;
    width: 100%;
  }
  body.community-v31 .screenshot-quick-search {
    grid-template-columns: minmax(0,1fr) 40px;
  }
  body.community-v31 .community-search-form button:last-child[hidden] { display: none; }
  body.community-v31 .community-search-form button:last-child:not([hidden]) {
    grid-column: 1 / -1;
    border-left: 1px solid rgba(218,174,96,.35);
    border-radius: 3px;
    margin-top: 5px;
  }
  body.community-v31 .community-board-tools .board-write-btn {
    min-width: 84px;
    padding: 0 12px;
  }

  /* Let the proven v30 mobile card layout control rows below 760px. */
  body.community-v31 .board-row-v19,
  body.community-v31 .screenshot-row {
    grid-template-columns: 112px minmax(0,1fr) !important;
    gap: 7px 12px !important;
    min-height: 0;
    padding: 10px 9px !important;
  }
  body.community-v31 .board-row-poster,
  body.community-v31 .screenshot-row-thumb {
    width: 112px !important;
    max-width: 112px !important;
  }
}

@media (max-width: 430px) {
  body.community-v31 .community-search-form,
  body.community-v31 .board-search-form.community-search-form {
    grid-template-columns: 78px minmax(0,1fr) 38px;
  }
  body.community-v31 .community-tools-right {
    grid-template-columns: 1fr;
  }
  body.community-v31 .community-board-tools .board-write-btn {
    width: 100%;
  }
  body.community-v31 .board-row-v19,
  body.community-v31 .screenshot-row {
    grid-template-columns: 96px minmax(0,1fr) !important;
    gap: 6px 10px !important;
  }
  body.community-v31 .board-row-poster,
  body.community-v31 .screenshot-row-thumb {
    width: 96px !important;
    max-width: 96px !important;
  }
}


/* =========================================================
   N2S v31.1 — APPROVED DESIGN LOCK
   Exact visual direction: approved priest-side / moon-castle concept.
   The artwork below is cropped from the approved concept so desktop
   proportions, side priests, hero castle and gold detailing stay faithful.
   Existing APIs, D1/R2, passwords and board actions are untouched.
   ========================================================= */
body.community-v31-1 {
  --v311-side-w: clamp(150px, 9.58vw, 190px);
  --v311-center-max: 1460px;
  --v311-gold: #d6aa61;
  --v311-gold-soft: rgba(214,170,97,.38);
  --v311-panel: #04101a;
  background: #02070c;
}

/* Exact side artwork from the approved concept — decorative only. */
body.community-v31-1::before,
body.community-v31-1::after {
  display: block !important;
  position: fixed !important;
  z-index: 1 !important;
  top: 0 !important;
  bottom: auto !important;
  width: var(--v311-side-w) !important;
  height: 100vh !important;
  min-height: 720px;
  opacity: 1 !important;
  pointer-events: none;
  background-repeat: no-repeat !important;
  background-position: top center !important;
  background-size: 100% auto !important;
  filter: none !important;
}
body.community-v31-1::before {
  left: 0 !important;
  background-image: url('../images/boards/side-left-priest-v31-1.webp?v=31.1') !important;
  background-color: #02070b;
}
body.community-v31-1::after {
  right: 0 !important;
  background-image: url('../images/boards/side-right-priest-v31-1.webp?v=31.1') !important;
  background-color: #02070b;
}

/* Center width is deliberately a little narrower so the priest figures breathe. */
body.community-v31-1 .topbar,
body.community-v31-1 .board-main-v19,
body.community-v31-1 .footer {
  width: min(var(--v311-center-max), calc(100% - (var(--v311-side-w) * 2))) !important;
  max-width: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* ===================== TOP BAR ===================== */
body.community-v31-1 .topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  height: 58px !important;
  padding: 0 28px !important;
  display: flex;
  align-items: center;
  gap: 24px;
  background: rgba(2,8,14,.985) !important;
  border: 1px solid rgba(211,164,82,.38) !important;
  border-top: 0 !important;
  box-shadow: 0 9px 28px rgba(0,0,0,.28), inset 0 -1px 0 rgba(241,200,119,.10) !important;
  backdrop-filter: none !important;
}
body.community-v31-1 .brand-v31-1 {
  flex: 0 0 auto;
  width: 195px;
  height: 52px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
body.community-v31-1 .brand-v31-1 img {
  width: 195px;
  height: 52px;
  object-fit: cover;
}
body.community-v31-1 .desktop-nav {
  flex: 1 1 auto;
  justify-content: center;
  gap: clamp(30px, 3.1vw, 54px) !important;
}
body.community-v31-1 .desktop-nav a {
  padding: 20px 2px 18px !important;
  color: #e7e1d6 !important;
  font-size: .82rem !important;
  font-weight: 650;
  letter-spacing: -.01em;
}
body.community-v31-1 .desktop-nav a.is-current {
  color: #f0cd7e !important;
}
body.community-v31-1 .desktop-nav a.is-current::after {
  left: -16px !important;
  right: -16px !important;
  bottom: -1px !important;
  height: 2px !important;
  background: linear-gradient(90deg, transparent, #efd17e 35%, #efd17e 65%, transparent) !important;
  box-shadow: 0 0 13px rgba(244,202,112,.9) !important;
}
body.community-v31-1 .topbar-right-v31-1 {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
}
body.community-v31-1 .top-game-label-v31-1 {
  color: #d9af65;
  font: 700 .61rem/1 Georgia, serif;
  letter-spacing: .34em;
  white-space: nowrap;
}
body.community-v31-1 .menu-btn {
  display: block !important;
  width: 38px !important;
  height: 38px !important;
  padding: 8px !important;
}
body.community-v31-1 .menu-btn span {
  height: 2px !important;
  margin: 5px 0 !important;
  background: #e4b75f !important;
}

/* ===================== MAIN / HERO ===================== */
body.community-v31-1 .board-main-v19 {
  position: relative;
  z-index: 3;
  padding: 0 0 48px !important;
}
body.community-v31-1 .board-main-v19::before,
body.community-v31-1 .board-main-v19::after {
  display: none !important;
}

/* Notice desktop hero uses the approved concept itself for pixel-level fidelity. */
body.community-v31-1.notice-board-v30 .board-hero-v19 {
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 1352 / 240;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: url('../images/boards/hero-notice-v31-1.webp?v=31.1') center / 100% 100% no-repeat !important;
  box-shadow: none !important;
}
body.community-v31-1.notice-board-v30 .board-hero-v19::before,
body.community-v31-1.notice-board-v30 .board-hero-v19::after {
  display: none !important;
}
body.community-v31-1.notice-board-v30 .board-hero-v19 .hero-live-copy {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
body.community-v31-1 .board-count { display: none !important; }

/* Screenshot page keeps live text but shares the same cinematic shell. */
body.community-v31-1.screenshot-board-page .board-hero-v19 {
  min-height: 238px !important;
  margin: 0 !important;
  padding: 34px 170px 38px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background-image:
    linear-gradient(90deg, rgba(2,7,12,.50), rgba(2,7,12,.10) 28%, rgba(2,7,12,.12) 72%, rgba(2,7,12,.50)),
    linear-gradient(180deg, rgba(2,7,12,.06), rgba(2,7,12,.50)),
    url('../images/boards/hero-scene-v31.webp?v=31.1') !important;
  background-position: center !important;
  background-size: cover !important;
  box-shadow: inset 0 -1px 0 rgba(214,170,97,.58) !important;
}
body.community-v31-1.screenshot-board-page .board-hero-v19::before { display:none !important; }
body.community-v31-1.screenshot-board-page .board-hero-v19::after {
  content: "GOOD PLAYERS\A BETTER MEMORIES" !important;
  display:block !important;
  right: 34px !important;
  width: 230px !important;
  color: rgba(230,183,101,.92) !important;
}
body.community-v31-1.screenshot-board-page .board-hero-v19 h1 {
  font-size: clamp(2.65rem, 3.7vw, 3.8rem) !important;
}

/* The FEATURED strip is intentionally removed in v31.1. */
body.community-v31-1 .community-feature-strip { display: none !important; }

/* ===================== BOARD FRAME / TOOLS ===================== */
body.community-v31-1 .community-board-tools {
  margin: 0 !important;
  padding: 18px 16px 12px !important;
  border: 1px solid rgba(216,169,86,.57) !important;
  border-bottom: 0 !important;
  background: linear-gradient(180deg, rgba(3,11,18,.98), rgba(3,10,17,.97)) !important;
  grid-template-columns: minmax(0,1fr) auto !important;
  gap: 10px 22px !important;
}
body.community-v31-1 .community-view-labels {
  min-width: 0;
  display: flex;
  gap: 7px !important;
  overflow-x: auto;
  scrollbar-width: none;
}
body.community-v31-1 .community-view-labels::-webkit-scrollbar { display:none; }
body.community-v31-1 .community-view-labels a,
body.community-v31-1 .community-view-labels span {
  flex: 0 0 auto;
  height: 38px !important;
  min-width: 82px;
  padding: 0 17px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(125,151,172,.22) !important;
  border-radius: 4px !important;
  color: #9aa3ab !important;
  background: rgba(3,9,15,.58);
  font-size: .68rem !important;
  letter-spacing: 0 !important;
}
body.community-v31-1 .community-view-labels a:hover {
  color: #e7c77e !important;
  border-color: rgba(217,174,96,.48) !important;
}
body.community-v31-1 .community-view-labels .is-active {
  color: #f4d690 !important;
  border-color: rgba(232,190,107,.72) !important;
  background: linear-gradient(180deg, rgba(200,145,49,.18), rgba(97,66,23,.08)) !important;
  box-shadow: inset 0 -2px 0 rgba(242,202,116,.50), 0 0 16px rgba(228,178,89,.07) !important;
}
body.community-v31-1 .community-view-labels span[aria-disabled="true"] {
  cursor: default;
}
body.community-v31-1 .community-tools-right {
  gap: 10px !important;
}
body.community-v31-1 .community-search-form,
body.community-v31-1 .board-search-form.community-search-form {
  grid-template-columns: 92px minmax(235px, 320px) 40px auto !important;
}
body.community-v31-1 .screenshot-quick-search {
  grid-template-columns: minmax(260px, 340px) 40px auto !important;
}
body.community-v31-1 .community-search-form select,
body.community-v31-1 .community-search-form input,
body.community-v31-1 .community-search-form button {
  height: 38px !important;
}
body.community-v31-1 .community-board-tools .board-write-btn {
  height: 38px !important;
  min-width: 118px !important;
  border-radius: 4px !important;
  background: linear-gradient(180deg,#e0b666,#bd8136) !important;
  color: #0c0d0e !important;
  font-weight: 900 !important;
}
body.community-v31-1 .board-search-status,
body.community-v31-1 .screenshot-quick-search-status {
  grid-column: 1/-1 !important;
}

/* ===================== TABLE ===================== */
body.community-v31-1 .board-table-shell {
  margin-top: 0 !important;
  border-radius: 0 !important;
  border: 1px solid rgba(216,169,86,.54) !important;
  border-top-color: rgba(216,169,86,.31) !important;
  background: rgba(2,9,15,.98) !important;
  overflow: hidden;
}
body.community-v31-1 .board-table-head {
  min-height: 40px !important;
  padding: 0 18px !important;
  color: #aaa9a3 !important;
  background: rgba(2,8,13,.95) !important;
  border-bottom: 1px solid rgba(217,170,89,.28) !important;
}
body.community-v31-1 .board-table-head span:nth-child(2) { padding-left: 122px !important; }
body.community-v31-1 .board-row-v19 {
  min-height: 76px !important;
  padding: 8px 18px !important;
  border-bottom: 1px solid rgba(214,168,85,.27) !important;
  background: linear-gradient(90deg, rgba(4,14,23,.98), rgba(3,11,18,.985)) !important;
}
body.community-v31-1 .board-row-v19:last-child { border-bottom: 0 !important; }
body.community-v31-1 .board-row-v19.is-pinned {
  background: linear-gradient(90deg, rgba(105,72,24,.19), rgba(4,14,23,.98) 20%, rgba(3,11,18,.985)) !important;
  box-shadow: inset 2px 0 0 rgba(223,177,94,.62) !important;
}
body.community-v31-1 .board-row-poster,
body.community-v31-1 .screenshot-row-thumb {
  width: 112px !important;
  border-radius: 4px !important;
  border-color: rgba(217,170,89,.42) !important;
}
body.community-v31-1 .board-row-title {
  color: #f0ede6 !important;
  font-size: .94rem !important;
}
body.community-v31-1 .board-row-copy > p {
  color: #9ca3a9 !important;
  font-size: .71rem !important;
}
body.community-v31-1 .board-pagination {
  padding: 14px 0 16px !important;
  border-left: 1px solid rgba(216,169,86,.40);
  border-right: 1px solid rgba(216,169,86,.40);
  border-bottom: 1px solid rgba(216,169,86,.40);
  background: rgba(2,8,14,.94);
}
body.community-v31-1 .board-pagination button.is-current,
body.community-v31-1 .board-pagination button[aria-current="page"] {
  border-color: #d9ab5b !important;
  color: #f0d28f !important;
  background: rgba(153,103,34,.16) !important;
}

body.community-v31-1 .footer {
  min-height: 58px !important;
  padding: 16px 26px 18px !important;
  border-top: 1px solid rgba(216,169,86,.62) !important;
  background: rgba(2,8,14,.97) !important;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1180px) {
  body.community-v31-1 { --v311-side-w: 72px; }
  body.community-v31-1 .top-game-label-v31-1 { display:none; }
  body.community-v31-1 .brand-v31-1,
  body.community-v31-1 .brand-v31-1 img { width: 170px; height:auto; }
  body.community-v31-1 .desktop-nav { gap: 24px !important; }
  body.community-v31-1.screenshot-board-page .board-hero-v19 { padding-left:120px !important; padding-right:120px !important; }
}

@media (max-width: 900px) {
  body.community-v31-1::before,
  body.community-v31-1::after { display:none !important; }
  body.community-v31-1 .topbar,
  body.community-v31-1 .board-main-v19,
  body.community-v31-1 .footer { width:100% !important; }
  body.community-v31-1 .topbar { padding:0 16px !important; }
  body.community-v31-1 .desktop-nav { display:none !important; }
  body.community-v31-1 .top-game-label-v31-1 { display:none; }
  body.community-v31-1 .brand-v31-1,
  body.community-v31-1 .brand-v31-1 img { width: 160px; height:auto; }

  /* Mobile uses live text so the hero remains readable at narrow widths. */
  body.community-v31-1.notice-board-v30 .board-hero-v19,
  body.community-v31-1.screenshot-board-page .board-hero-v19 {
    aspect-ratio: auto !important;
    min-height: 250px !important;
    padding: 34px 24px 38px !important;
    background-image:
      linear-gradient(90deg, rgba(2,7,12,.60), rgba(2,7,12,.18) 28%, rgba(2,7,12,.20) 72%, rgba(2,7,12,.62)),
      linear-gradient(180deg, rgba(2,7,12,.08), rgba(2,7,12,.58)),
      url('../images/boards/hero-scene-v31.webp?v=31.1') !important;
    background-size: cover !important;
    background-position: center !important;
    border-bottom: 1px solid rgba(216,169,86,.55) !important;
  }
  body.community-v31-1.notice-board-v30 .board-hero-v19 .hero-live-copy {
    position: relative !important;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    clip: auto !important;
    white-space: normal !important;
  }
  body.community-v31-1 .board-hero-v19::before,
  body.community-v31-1 .board-hero-v19::after { display:none !important; }
  body.community-v31-1 .community-board-tools {
    grid-template-columns: 1fr !important;
    padding: 12px !important;
  }
  body.community-v31-1 .community-view-labels { width:100%; }
  body.community-v31-1 .community-tools-right { justify-content:stretch !important; }
  body.community-v31-1 .community-search-form,
  body.community-v31-1 .board-search-form.community-search-form {
    flex:1 1 auto;
    grid-template-columns: 86px minmax(0,1fr) 40px auto !important;
  }
  body.community-v31-1 .screenshot-quick-search {
    grid-template-columns:minmax(0,1fr) 40px auto !important;
  }
}

@media (max-width: 760px) {
  body.community-v31-1 .topbar { height:60px !important; }
  body.community-v31-1 .brand-v31-1,
  body.community-v31-1 .brand-v31-1 img { width:148px; }
  body.community-v31-1 .board-main-v19 { padding-bottom:24px !important; }
  body.community-v31-1 .board-hero-v19 h1 { font-size:clamp(2rem,10vw,2.8rem) !important; }
  body.community-v31-1 .community-tools-right {
    display:grid !important;
    grid-template-columns:minmax(0,1fr) auto !important;
    gap:7px !important;
  }
  body.community-v31-1 .community-search-form,
  body.community-v31-1 .board-search-form.community-search-form {
    grid-template-columns:82px minmax(0,1fr) 38px !important;
  }
  body.community-v31-1 .screenshot-quick-search {
    grid-template-columns:minmax(0,1fr) 38px !important;
  }
  body.community-v31-1 .board-table-shell { border-left:0 !important; border-right:0 !important; }
  body.community-v31-1 .board-pagination { border-left:0; border-right:0; }
}

@media (max-width: 430px) {
  body.community-v31-1 .brand-v31-1,
  body.community-v31-1 .brand-v31-1 img { width:138px; }
  body.community-v31-1 .community-tools-right { grid-template-columns:1fr !important; }
  body.community-v31-1 .community-board-tools .board-write-btn { width:100% !important; }
}
