/* ============================================================
   SOSHAGESHIN — Military Newspaper Design System v2
   Unified CSS with Light/Dark mode + Growth Features
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@400;700&family=Oswald:wght@400;600;700&family=Share+Tech+Mono&display=swap');

/* ── Dark Theme (default) ── */
:root,
[data-theme="dark"] {
  --bg-dark: #0d0d08;
  --bg-paper: #1a1a0e;
  --bg-section: #1f1e14;
  --bg-card: #26251a;
  --bg-highlight: #2e2c1e;
  --gold: #c9a03f;
  --gold-dim: #8a6e2a;
  --gold-bright: #e8c65a;
  --cream: #f0e8d0;
  --cream-dim: #b8b09a;
  --red-accent: #8b2500;
  --red-bright: #c0392b;
  --green-bright: #27ae60;
  --shadow: rgba(0, 0, 0, 0.3);
  --overlay-bg: rgba(13, 13, 8, 0.92);
  --font-heading: 'Oswald', 'Noto Sans JP', sans-serif;
  --font-body: 'Noto Serif JP', 'Georgia', serif;
  --font-mono: 'Share Tech Mono', 'Courier New', monospace;
  --max-width: 780px;
  --card-radius: 6px;
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── Light Theme ── */
[data-theme="light"] {
  --bg-dark: #f5f0e1;
  --bg-paper: #ebe5d3;
  --bg-section: #e0dac8;
  --bg-card: #fffcf4;
  --bg-highlight: #f0e8d0;
  --gold: #8a6e2a;
  --gold-dim: #aa9050;
  --gold-bright: #6b5218;
  --cream: #1a1a0e;
  --cream-dim: #5a5540;
  --red-accent: #c0392b;
  --red-bright: #e74c3c;
  --green-bright: #1e8449;
  --shadow: rgba(0, 0, 0, 0.08);
  --overlay-bg: rgba(245, 240, 225, 0.95);
}

/* ── Reset ── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 15px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--cream);
  line-height: 1.75;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background 0.4s, color 0.4s;
}

a {
  color: inherit;
  text-decoration: none;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--gold-dim);
  border-radius: 3px;
}

/* ============================================================
   APP BAR (sticky header: hamburger | title | search)
   ============================================================ */
.app-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.8rem;
  height: 52px;
  background: var(--bg-dark);
  border-bottom: 2px solid var(--gold-dim);
  box-shadow: 0 2px 8px var(--shadow);
}

.app-bar__hamburger {
  background: none;
  border: none;
  width: 36px;
  height: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
}

.app-bar__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--cream);
  border-radius: 1px;
  transition: all 0.3s;
}

.app-bar__title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.app-bar__search-btn {
  background: none;
  border: none;
  width: 36px;
  height: 36px;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}

.app-bar__search-btn:hover {
  background: var(--bg-highlight);
}

/* ============================================================
   SLIDE-OUT HAMBURGER MENU
   ============================================================ */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.menu-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.slide-menu {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 280px;
  max-width: 85vw;
  background: var(--bg-paper);
  z-index: 600;
  transform: translateX(-100%);
  transition: transform 0.3s var(--ease-out);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.slide-menu.open {
  transform: translateX(0);
}

.slide-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1rem 0.5rem;
  border-bottom: 1px solid var(--gold-dim);
}

.slide-menu__brand {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.1em;
}

.slide-menu__close {
  background: none;
  border: none;
  color: var(--cream-dim);
  font-size: 1.2rem;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}

.slide-menu__close:hover {
  background: var(--bg-highlight);
  color: var(--cream);
}

.slide-menu__date {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--gold-dim);
  padding: 0.5rem 1rem;
  letter-spacing: 0.1em;
}

.slide-menu__section-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--gold-dim);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.8rem 1rem 0.3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.slide-menu__link {
  display: block;
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
  color: var(--cream);
  transition: background 0.2s;
}

.slide-menu__link:hover {
  background: var(--bg-highlight);
}

.slide-menu__game-list {
  padding: 0.3rem 0;
  max-height: 50vh;
  overflow-y: auto;
}

.slide-menu__game {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  color: var(--cream);
  transition: background 0.2s;
}

.slide-menu__game:hover {
  background: var(--bg-highlight);
}

.slide-menu__game-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.slide-menu__game-icon img {
  width: 24px;
  height: 24px;
  border-radius: 5px;
  object-fit: cover;
}

.slide-menu__game-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.slide-menu__footer {
  margin-top: auto;
  padding: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.slide-menu__theme-btn {
  background: var(--bg-card);
  border: 1px solid var(--gold-dim);
  border-radius: 6px;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  width: 100%;
  transition: all 0.2s;
}

.slide-menu__theme-btn:hover {
  background: var(--bg-highlight);
}

/* ============================================================
   SEARCH OVERLAY
   ============================================================ */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: var(--overlay-bg);
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.search-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.search-overlay__bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.8rem;
  border-bottom: 2px solid var(--gold-dim);
  background: var(--bg-dark);
}

.search-overlay__input {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--gold-dim);
  border-radius: 6px;
  padding: 0.6rem 0.8rem;
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--cream);
  outline: none;
}

.search-overlay__input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(201, 160, 63, 0.2);
}

.search-overlay__input::placeholder {
  color: var(--cream-dim);
}

.search-overlay__close {
  background: none;
  border: none;
  color: var(--cream-dim);
  font-size: 1.3rem;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-overlay__results {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem;
}

.search-overlay__empty {
  text-align: center;
  color: var(--cream-dim);
  padding: 2rem;
  font-size: 0.9rem;
}

.search-result {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 0.8rem;
  border-radius: var(--card-radius);
  transition: background 0.2s;
}

.search-result:hover {
  background: var(--bg-highlight);
}

.search-result__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.search-result__icon img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
}

.search-result__body {
  min-width: 0;
}

.search-result__name {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--cream);
}

.search-result__title {
  font-size: 0.75rem;
  color: var(--cream-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ============================================================
   RECOMMENDATIONS (あなたへのおすすめ)
   ============================================================ */
.recommend-feed {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}

.recommend-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--card-radius);
  overflow: hidden;
  background: transparent;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 6px var(--shadow);
}

.recommend-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px var(--shadow);
}

.recommend-card__cover {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg-section);
  overflow: hidden;
}

.recommend-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recommend-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  background: linear-gradient(135deg, var(--bg-section), var(--bg-highlight));
}

.recommend-card__reason {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(0, 0, 0, 0.7);
  color: var(--gold-bright);
  font-size: 0.6rem;
  font-family: var(--font-mono);
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 0.05em;
}

.recommend-card__info {
  padding: 0.5rem 0.6rem;
}

.recommend-card__game {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.65rem;
  color: var(--cream-dim);
  margin-bottom: 0.2rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recommend-card__game-icon {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  object-fit: cover;
  flex-shrink: 0;
}

.recommend-card__title {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--cream);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.recommend-card__date {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--cream-dim);
  margin-top: 0.15rem;
}

/* ── Keep old masthead for game detail pages ── */
.masthead {
  text-align: center;
  padding: 2rem 1rem 1.5rem;
  border-bottom: 3px double var(--gold);
  position: relative;
}

.masthead__top-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.masthead__classification {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--red-bright);
  border: 1px solid var(--red-bright);
  padding: 2px 12px;
  animation: pulse-border 3s ease-in-out infinite;
}

@keyframes pulse-border {

  0%,
  100% {
    opacity: 0.7;
  }

  50% {
    opacity: 1;
  }
}

.masthead__title {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold);
  text-shadow: 0 0 30px rgba(201, 160, 63, 0.15);
  line-height: 1.1;
}

.masthead__subtitle {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.4em;
  color: var(--cream-dim);
  margin-top: 0.25rem;
}

.masthead__meta {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--gold-dim);
  letter-spacing: 0.1em;
}

.masthead__divider {
  width: 60%;
  margin: 1rem auto 0;
  border: none;
  border-top: 1px solid var(--gold-dim);
  opacity: 0.5;
}

.masthead--compact {
  padding: 1rem;
}

.masthead--compact .masthead__title {
  font-size: 1.6rem;
}

/* ── Theme Toggle (legacy, hidden on index — now in menu) ── */
.theme-toggle {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 200;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--gold-dim);
  background: var(--bg-card);
  color: var(--gold);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  box-shadow: 0 2px 8px var(--shadow);
}

.theme-toggle:hover {
  background: var(--gold);
  color: var(--bg-dark);
  transform: rotate(30deg);
}

/* Hide legacy theme toggle on index page (it's in the hamburger menu now) */
.index-page~.theme-toggle,
body:has(.app-bar)>.theme-toggle {
  display: none;
}

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section__header {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.section__badge {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--bg-dark);
  background: var(--gold);
  padding: 3px 10px;
  font-weight: 700;
  text-transform: uppercase;
  flex-shrink: 0;
}

.section__title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--gold-bright);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section__title-jp {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--cream-dim);
  margin-left: 0.5rem;
  text-transform: none;
}

/* ============================================================
   INDEX PAGE
   ============================================================ */
.index-page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.index-section {
  margin-top: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(201, 160, 63, 0.15);
}

.index-section__intro {
  font-size: 0.85rem;
  color: var(--cream-dim);
  margin-bottom: 1.5rem;
  font-family: var(--font-mono);
  letter-spacing: 0.03em;
}

.empty-message {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cream-dim);
  text-align: center;
  padding: 1rem;
  opacity: 0.6;
}

/* ── History Strip ── */
.history-strip {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
}

.history-strip::-webkit-scrollbar {
  display: none;
}

.history-chip {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid rgba(201, 160, 63, 0.12);
  border-radius: var(--card-radius);
  padding: 0.5rem 0.75rem;
  min-width: 140px;
  transition: all 0.3s var(--ease-out);
}

.history-chip:hover {
  background: var(--bg-highlight);
  transform: translateY(-2px);
}

.history-chip__game {
  font-size: 0.55rem;
  font-family: var(--font-mono);
  color: var(--gold-dim);
}

.history-chip__title {
  font-size: 0.75rem;
  font-family: var(--font-heading);
  color: var(--cream);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.history-chip__date {
  font-size: 0.55rem;
  font-family: var(--font-mono);
  color: var(--cream-dim);
}

/* ── Game Card ── */
.game-grid {
  display: grid;
  gap: 0.75rem;
}

.game-card-wrap {
  position: relative;
}

.game-card {
  display: grid;
  grid-template-columns: 3.5rem 1fr auto auto;
  gap: 0.75rem;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid rgba(201, 160, 63, 0.12);
  border-left: 4px solid var(--accent, var(--gold-dim));
  border-radius: var(--card-radius);
  padding: 0.9rem 1rem;
  padding-right: 2.5rem;
  transition: all 0.3s var(--ease-out);
  cursor: pointer;
}

.game-card:hover {
  background: var(--bg-highlight);
  transform: translateX(4px);
  box-shadow: 0 4px 20px var(--shadow);
}

.game-card__icon {
  font-size: 2rem;
  text-align: center;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.game-card__icon img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
}

.gallery-card__game-icon {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  vertical-align: middle;
  margin-right: 2px;
}

.game-card__body {
  min-width: 0;
}

.game-card__name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--cream);
  letter-spacing: 0.03em;
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.game-card__genre {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--cream-dim);
  letter-spacing: 0.1em;
  display: block;
  margin-top: 2px;
}

.game-card__status {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  display: block;
  margin-top: 3px;
}

.game-card__status--active {
  color: var(--green-bright);
}

.game-card__latest {
  text-align: right;
}

.game-card__latest-label {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--gold-dim);
  letter-spacing: 0.1em;
  display: block;
}

.game-card__latest-date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--cream);
  letter-spacing: 0.05em;
}

.game-card__arrow {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--gold-dim);
  transition: color 0.3s;
}

.game-card:hover .game-card__arrow {
  color: var(--gold-bright);
}

/* ── NEW Badge ── */
.badge-new {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.1em;
  color: #fff;
  background: var(--red-bright);
  padding: 1px 6px;
  border-radius: 3px;
  animation: badge-pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes badge-pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.6;
  }
}

/* ── Bookmark Button ── */
.bookmark-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 5;
  width: 28px;
  height: 28px;
  border: none;
  background: none;
  color: var(--gold-dim);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  border-radius: 50%;
}

.bookmark-btn:hover {
  color: var(--gold-bright);
  transform: scale(1.2);
}

.bookmark-btn--active {
  color: var(--gold-bright);
  text-shadow: 0 0 8px rgba(201, 160, 63, 0.4);
}

/* ── Tag Filter ── */
.tag-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag-btn {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  color: var(--cream-dim);
  background: var(--bg-card);
  border: 1px solid rgba(201, 160, 63, 0.15);
  padding: 4px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.25s;
}

.tag-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.tag-btn--active {
  background: var(--gold);
  color: var(--bg-dark);
  border-color: var(--gold);
  font-weight: 700;
}

.tag-chip {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  color: var(--gold);
  border: 1px solid rgba(201, 160, 63, 0.2);
  padding: 1px 6px;
  border-radius: 10px;
  letter-spacing: 0.03em;
}

/* ── Gallery Grid (2-column manga-gallery style) ── */
.dispatch-feed {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.gallery-card {
  display: flex;
  flex-direction: column;
  background: transparent;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s var(--ease-out);
  cursor: pointer;
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--shadow);
}

.gallery-card__cover {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-section);
}

.gallery-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease-out);
}

.gallery-card:hover .gallery-card__cover img {
  transform: scale(1.05);
}

.gallery-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  background: linear-gradient(145deg, var(--bg-section), var(--bg-card));
  opacity: 0.5;
}

.gallery-card__new {
  position: absolute;
  top: 8px;
  left: 8px;
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.1em;
  color: #fff;
  background: var(--red-bright);
  padding: 2px 8px;
  border-radius: 3px;
  font-weight: 700;
  z-index: 2;
  animation: badge-pulse 2s ease-in-out infinite;
}

.gallery-card__likes {
  position: absolute;
  bottom: 8px;
  right: 8px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  padding: 4px 10px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 3px;
  z-index: 2;
}

.gallery-card__heart {
  color: #e74c6f;
  font-size: 0.8rem;
}

.gallery-card__info {
  padding: 0.6rem 0.5rem 0.75rem;
}

.gallery-card__title {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--cream);
  letter-spacing: 0.02em;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gallery-card__meta {
  margin-top: 3px;
}

.gallery-card__game {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--cream-dim);
}

.gallery-card__date {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--gold-dim);
  margin-top: 2px;
}

.gallery-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 5px;
}

/* ── Ranking ── */
.ranking-list {
  display: grid;
  gap: 0.4rem;
}

.ranking-item {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 0.65rem;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid rgba(201, 160, 63, 0.08);
  border-radius: var(--card-radius);
  padding: 0.6rem 0.8rem;
  transition: all 0.3s var(--ease-out);
  cursor: pointer;
}

.ranking-item:hover {
  background: var(--bg-highlight);
  transform: translateX(2px);
}

.ranking-item__rank {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold);
  text-align: center;
}

.ranking-item:first-child .ranking-item__rank {
  color: var(--gold-bright);
  text-shadow: 0 0 10px rgba(232, 198, 90, 0.3);
}

.ranking-item__body {
  min-width: 0;
}

.ranking-item__title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--cream);
}

.ranking-item__game {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--cream-dim);
}

.ranking-item__count {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--gold-dim);
  white-space: nowrap;
}

/* ============================================================
   GAME PAGE
   ============================================================ */
.game-page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.game-hero {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(201, 160, 63, 0.15);
}

.game-hero__icon {
  font-size: 3rem;
}

.game-hero__info {
  flex: 1;
}

.game-hero__name {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: 0.05em;
  line-height: 1.1;
}

.game-hero__name-en {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: var(--gold-dim);
  letter-spacing: 0.15em;
}

.game-hero__meta {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--cream-dim);
  letter-spacing: 0.08em;
  margin-top: 0.25rem;
}

.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--gold-dim);
  padding: 0.75rem 0;
  letter-spacing: 0.05em;
}

.breadcrumb a {
  color: var(--gold);
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--gold-bright);
}

/* Issue List */
.issue-list {
  display: grid;
  gap: 0.5rem;
  margin-top: 1rem;
}

.issue-item {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 0.75rem;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid rgba(201, 160, 63, 0.1);
  border-radius: var(--card-radius);
  padding: 0.7rem 1rem;
  transition: all 0.3s var(--ease-out);
  cursor: pointer;
}

.issue-item:hover {
  background: var(--bg-highlight);
  transform: translateX(3px);
}

.issue-item__date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cream);
}

.issue-item__title {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--cream);
  font-weight: 600;
}

.issue-item__summary {
  font-size: 0.72rem;
  color: var(--cream-dim);
  margin-top: 2px;
}

.issue-item__pages {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--gold-dim);
  white-space: nowrap;
}

/* ============================================================
   VIEWER — INFO HEADER (metadata section above pages)
   ============================================================ */
.viewer-info {
  padding: 1rem 1rem 0.75rem;
  border-bottom: 1px solid rgba(201, 160, 63, 0.15);
}

.viewer-info__topline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.viewer-info__date {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--cream-dim);
}

.viewer-info__badge {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  padding: 2px 10px;
  border-radius: 3px;
}

.viewer-info__likes {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #e74c6f;
  font-weight: 700;
}

.viewer-info__title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: 0.03em;
  line-height: 1.2;
  margin-top: 0.5rem;
}

.viewer-info__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.viewer-info__pages {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--cream);
  border: 1px solid var(--cream-dim);
  padding: 4px 14px;
  border-radius: 4px;
}

.viewer-info__bookmark {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--cream-dim);
  background: var(--bg-card);
  border: 1px solid rgba(201, 160, 63, 0.2);
  padding: 5px 14px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.25s;
}

.viewer-info__bookmark:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.viewer-info__bookmark--active {
  border-color: var(--gold);
  color: var(--gold-bright);
  background: rgba(201, 160, 63, 0.08);
}

.viewer-info__table {
  width: 100%;
  margin-top: 0.75rem;
  border-collapse: collapse;
}

.viewer-info__table th {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.05em;
  text-align: left;
  padding: 0.5rem 0.75rem 0.5rem 0;
  width: 65px;
  vertical-align: top;
  border-top: 1px solid rgba(201, 160, 63, 0.08);
}

.viewer-info__table td {
  font-size: 0.78rem;
  color: var(--cream);
  padding: 0.5rem 0;
  border-top: 1px solid rgba(201, 160, 63, 0.08);
  line-height: 1.6;
}

.viewer-info__tagcell {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  align-items: center;
}

/* ============================================================
   VIEWER PAGE
   ============================================================ */
.viewer-page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0;
}

.viewer-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--overlay-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 160, 63, 0.2);
  padding: 0.6rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.viewer-header__left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.viewer-header__back {
  font-size: 1rem;
  color: var(--gold);
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px 8px;
  transition: color 0.2s;
  text-decoration: none;
}

.viewer-header__back:hover {
  color: var(--gold-bright);
}

.viewer-header__title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--cream);
  letter-spacing: 0.05em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.viewer-header__right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.viewer-header__page {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--gold-dim);
  letter-spacing: 0.08em;
}

.viewer-header__dl {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--gold);
  border: 1px solid var(--gold-dim);
  padding: 3px 10px;
  border-radius: 3px;
  cursor: pointer;
  background: none;
  transition: all 0.3s;
  text-decoration: none;
}

.viewer-header__dl:hover {
  background: var(--gold);
  color: var(--bg-dark);
}

/* ── Progress Bar ── */
.viewer-progress {
  position: sticky;
  top: 46px;
  z-index: 99;
  height: 3px;
  background: rgba(201, 160, 63, 0.1);
}

.viewer-progress__bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold-bright));
  width: 0%;
  transition: width 0.15s linear;
}

/* ── Page Container ── */
.viewer-pages {
  padding: 0.5rem 0;
}

.viewer-page-item {
  width: 100%;
  margin-bottom: 4px;
  position: relative;
}

.viewer-page-item img {
  width: 100%;
  display: block;
  background: var(--bg-card);
  min-height: 200px;
}

.viewer-page-item__number {
  position: absolute;
  bottom: 12px;
  right: 12px;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--gold-dim);
  background: rgba(13, 13, 8, 0.7);
  padding: 2px 8px;
  border-radius: 3px;
  opacity: 0;
  transition: opacity 0.3s;
}

.viewer-page-item:hover .viewer-page-item__number {
  opacity: 1;
}

/* Placeholder pages */
.viewer-page-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--bg-card);
  border: 1px solid rgba(201, 160, 63, 0.1);
  margin-bottom: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.viewer-page-placeholder__num {
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--gold-dim);
  opacity: 0.3;
}

.viewer-page-placeholder__label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--gold-dim);
  opacity: 0.5;
  letter-spacing: 0.15em;
  margin-top: 0.5rem;
}

/* ── Viewer Footer ── */
.viewer-footer {
  padding: 1.5rem 1rem;
  border-top: 1px solid rgba(201, 160, 63, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.viewer-footer__nav {
  display: flex;
  gap: 0.5rem;
}

.viewer-footer__btn {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--gold);
  border: 1px solid var(--gold-dim);
  background: none;
  padding: 6px 16px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}

.viewer-footer__btn:hover {
  background: var(--gold);
  color: var(--bg-dark);
}

/* ── Resume Banner ── */
.resume-banner {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--bg-dark);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 8px 20px;
  border-radius: 20px;
  cursor: pointer;
  box-shadow: 0 4px 16px var(--shadow);
  z-index: 150;
  animation: slide-up 0.4s var(--ease-out);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.resume-banner:hover {
  transform: translateX(-50%) scale(1.05);
}

@keyframes slide-up {
  from {
    transform: translateX(-50%) translateY(100%);
    opacity: 0;
  }

  to {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
}

.resume-banner__dismiss {
  background: none;
  border: none;
  color: var(--bg-dark);
  cursor: pointer;
  font-size: 0.8rem;
  opacity: 0.6;
  padding: 0;
}

/* ── Reactions ── */
.reaction-bar {
  display: flex;
  gap: 0.5rem;
  padding: 1rem;
  justify-content: center;
  border-top: 1px solid rgba(201, 160, 63, 0.1);
}

.reaction-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: var(--bg-card);
  border: 1px solid rgba(201, 160, 63, 0.15);
  color: var(--cream-dim);
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.25s;
}

.reaction-btn:hover {
  border-color: var(--gold);
  transform: scale(1.1);
}

.reaction-btn--active {
  border-color: var(--gold);
  color: var(--gold-bright);
  background: rgba(201, 160, 63, 0.08);
}

.reaction-btn__count {
  font-size: 0.6rem;
}

/* ── Share Bar ── */
.share-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  justify-content: center;
}

.share-bar__label {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--gold-dim);
  letter-spacing: 0.15em;
  margin-right: 0.25rem;
}

.share-bar__btn {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--cream-dim);
  background: var(--bg-card);
  border: 1px solid rgba(201, 160, 63, 0.15);
  padding: 5px 14px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.25s;
}

.share-bar__btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.share-bar__btn--x:hover {
  border-color: #1da1f2;
  color: #1da1f2;
}

.share-bar__btn--line:hover {
  border-color: #06c755;
  color: #06c755;
}

/* ── Summary Section (SEO) ── */
.viewer-summary {
  padding: 1rem;
  border-top: 1px solid rgba(201, 160, 63, 0.1);
  font-size: 0.8rem;
  color: var(--cream-dim);
  line-height: 1.8;
}

.viewer-summary__title {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  color: var(--gold-dim);
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
}

.viewer-summary__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.5rem;
}

/* ── Related Issues ── */
.related-section {
  padding: 1rem;
}

.related-section__title {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  color: var(--gold-dim);
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
}

.related-list {
  display: grid;
  gap: 0.4rem;
}

.related-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-card);
  border: 1px solid rgba(201, 160, 63, 0.08);
  border-radius: var(--card-radius);
  padding: 0.5rem 0.75rem;
  transition: all 0.3s var(--ease-out);
  cursor: pointer;
}

.related-item:hover {
  background: var(--bg-highlight);
}

.related-item__title {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: var(--cream);
  flex: 1;
}

.related-item__game {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--gold-dim);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 2rem;
  border-top: 3px double var(--gold);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--gold-dim);
  letter-spacing: 0.15em;
}

.footer__stamp {
  display: inline-block;
  border: 2px solid var(--red-accent);
  color: var(--red-accent);
  padding: 4px 16px;
  margin-bottom: 0.75rem;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  transform: rotate(-3deg);
  opacity: 0.7;
}

.footer__rss {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 4px 12px;
  border: 1px solid var(--gold-dim);
  border-radius: 3px;
  color: var(--gold-dim);
  font-size: 0.6rem;
  transition: all 0.3s;
}

.footer__rss:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ── Comment Section ── */
.comment-section {
  padding: 1rem;
  border-top: 1px solid rgba(201, 160, 63, 0.1);
}

.comment-section__header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.comment-section__badge {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--gold);
}

.comment-section__count {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--cream-dim);
}

.comment-section__form {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.comment-section__name-input,
.comment-section__text-input {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cream);
  background: var(--bg-section);
  border: 1px solid rgba(201, 160, 63, 0.15);
  border-radius: 6px;
  padding: 8px 12px;
  outline: none;
  transition: border-color 0.2s;
}

.comment-section__name-input::placeholder,
.comment-section__text-input::placeholder {
  color: var(--cream-dim);
  opacity: 0.5;
}

.comment-section__name-input:focus,
.comment-section__text-input:focus {
  border-color: var(--gold);
}

.comment-section__name-input {
  max-width: 200px;
}

.comment-section__row {
  display: flex;
  gap: 0.4rem;
}

.comment-section__text-input {
  flex: 1;
}

.comment-section__submit {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  background: var(--gold);
  border: none;
  border-radius: 6px;
  padding: 8px 18px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.comment-section__submit:hover {
  background: var(--gold-bright);
  transform: scale(1.03);
}

.comment-section__empty {
  font-size: 0.72rem;
  color: var(--cream-dim);
  text-align: center;
  padding: 1rem 0;
}

.comment-section__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 400px;
  overflow-y: auto;
}

.comment-item {
  background: var(--bg-card);
  border: 1px solid rgba(201, 160, 63, 0.08);
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
}

.comment-item__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.comment-item__name {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold);
}

.comment-item__time {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--cream-dim);
}

.comment-item__text {
  font-size: 0.78rem;
  color: var(--cream);
  line-height: 1.5;
  word-break: break-word;
}

/* ── Related Dispatches ── */
.related-section {
  padding: 1rem;
  border-top: 1px solid rgba(201, 160, 63, 0.1);
}

.related-section__title {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

.related-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.related-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.75rem;
  background: var(--bg-card);
  border: 1px solid rgba(201, 160, 63, 0.08);
  border-radius: 8px;
  transition: all 0.3s var(--ease-out);
}

.related-item:hover {
  background: var(--bg-highlight);
  transform: translateX(3px);
}

.related-item__title {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--cream);
  flex: 1;
}

.related-item__game {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--cream-dim);
  white-space: nowrap;
}

/* ============================================================
   COMMENTS (momon:GA style)
   ============================================================ */
.comment-section {
  margin: 2rem 0;
  padding: 0 1rem;
}

.comment-section__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.comment-section__title-area {
  display: flex;
  flex-direction: column;
}

.comment-section__label {
  font-size: 0.7rem;
  color: var(--cream-dim);
  letter-spacing: 0.1em;
}

.comment-section__title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--accent-red);
  letter-spacing: 0.05em;
}

.comment-section__toggle {
  background: none;
  border: none;
  color: var(--cream-dim);
  font-size: 0.75rem;
  cursor: pointer;
  padding: 0.3rem 0;
  font-family: var(--font-body);
  transition: color 0.2s;
}

.comment-section__toggle:hover {
  color: var(--cream);
}

.comment-section__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.comment-section__empty {
  text-align: center;
  color: var(--cream-dim);
  font-size: 0.85rem;
  padding: 2rem 0;
}

/* Individual comment card */
.comment-item {
  padding: 1rem 0.8rem;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.15);
}

.comment-item:last-child {
  border-bottom: none;
}

.comment-item__header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
}

.comment-item__num {
  color: var(--accent-red);
  font-weight: 700;
  font-size: 0.8rem;
  font-family: var(--font-mono);
}

.comment-item__name {
  color: var(--accent-red);
  font-size: 0.8rem;
  font-weight: 500;
}

.comment-item__time {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.7rem;
  font-family: var(--font-mono);
  margin-left: auto;
}

.comment-item__text {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--cream);
  line-height: 1.5;
  padding: 0.2rem 0 0.4rem;
  word-break: break-word;
}

.comment-item__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.3rem;
}

.comment-item__like-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 0.25rem 0.6rem;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
  line-height: 1;
}

.comment-item__like-btn:hover:not(.liked) {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.comment-item__like-btn.liked {
  background: rgba(var(--accent-red-rgb, 220, 50, 50), 0.15);
  border-color: var(--accent-red);
  cursor: default;
}

.comment-item__like-count {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  font-family: var(--font-mono);
  min-width: 1.5rem;
}

/* Comment form */
.comment-section__form {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
}

.comment-section__form-row {
  margin-bottom: 0.6rem;
}

.comment-section__name-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 0.5rem 0.7rem;
  color: var(--cream);
  font-size: 0.85rem;
  font-family: var(--font-body);
  box-sizing: border-box;
}

.comment-section__text-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 0.5rem 0.7rem;
  color: var(--cream);
  font-size: 0.9rem;
  font-family: var(--font-body);
  resize: vertical;
  min-height: 60px;
  box-sizing: border-box;
}

.comment-section__name-input::placeholder,
.comment-section__text-input::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.comment-section__name-input:focus,
.comment-section__text-input:focus {
  outline: none;
  border-color: var(--accent-red);
  box-shadow: 0 0 0 2px rgba(220, 50, 50, 0.15);
}

.comment-section__form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.comment-section__count {
  color: var(--cream-dim);
  font-size: 0.75rem;
}

.comment-section__submit {
  background: var(--accent-red);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.5rem 1.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.2s;
}

.comment-section__submit:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}

.comment-section__submit:active {
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 600px) {
  .masthead__title {
    font-size: 3.6rem;
  }

  .dispatch-feed {
    gap: 1rem;
  }

  .gallery-card__title {
    font-size: 0.9rem;
  }
}

@media (min-width: 768px) {
  .dispatch-feed {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (max-width: 420px) {
  html {
    font-size: 13.5px;
  }

  .masthead__title {
    font-size: 2.2rem;
  }

  .masthead__meta {
    flex-direction: column;
    gap: 0.25rem;
  }

  .game-card {
    grid-template-columns: 2.5rem 1fr auto;
  }

  .game-card__latest {
    display: none;
  }

  .dispatch-feed {
    gap: 0.5rem;
  }

  .gallery-card__cover {
    aspect-ratio: 16 / 9;
  }

  .viewer-header__dl span {
    display: none;
  }
}

/* ============================================================
   APP BAR — scroll show/hide (viewer pages)
   ============================================================ */
.app-bar {
  transition: transform 0.3s var(--ease-out);
}

.app-bar--hidden {
  transform: translateY(-100%);
}

/* ============================================================
   SEARCH POPUP (centered modal card — reference style)
   ============================================================ */
.search-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 900;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.search-popup-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.search-popup {
  background: var(--bg-paper);
  border-radius: 12px;
  padding: 1.5rem;
  width: 90%;
  max-width: 380px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  position: relative;
  transform: translateY(-30px);
  transition: transform 0.3s var(--ease-out);
}

.search-popup-overlay.open .search-popup {
  transform: translateY(0);
}

.search-popup__title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 1rem;
}

.search-popup__bar {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 2px solid var(--gold-dim);
  border-radius: 24px;
  padding: 0.3rem 0.5rem 0.3rem 1rem;
  gap: 0.5rem;
}

.search-popup__input {
  flex: 1;
  background: none;
  border: none;
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--cream);
  outline: none;
  padding: 0.4rem 0;
}

.search-popup__input::placeholder {
  color: var(--cream-dim);
}

.search-popup__icon {
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.3rem;
  flex-shrink: 0;
}

.search-popup__close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-dark);
  border: 2px solid var(--gold-dim);
  color: var(--cream);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
}

.search-popup__close:hover {
  background: var(--gold-dim);
  color: var(--bg-dark);
}

.search-popup__results {
  max-height: 40vh;
  overflow-y: auto;
  margin-top: 0.8rem;
}

.search-popup__empty {
  text-align: center;
  color: var(--cream-dim);
  padding: 1rem;
  font-size: 0.85rem;
}

/* ============================================================
   RELATED ARTICLES — THUMBNAIL GRID
   ============================================================ */
.related-section {
  padding: 1.5rem 0.8rem;
}

.related-section__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}

.related-thumb {
  display: flex;
  flex-direction: column;
  border-radius: var(--card-radius);
  overflow: hidden;
  background: var(--bg-card);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
}

.related-thumb:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.related-thumb__cover {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-section);
}

.related-thumb__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.related-thumb__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.related-thumb__info {
  padding: 0.4rem 0.5rem 0.5rem;
}

.related-thumb__game {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.6rem;
  color: var(--cream-dim);
  margin-bottom: 0.15rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.related-thumb__game-icon {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  object-fit: cover;
  flex-shrink: 0;
}

.related-thumb__title {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--cream);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: hidden;
  line-height: 1.3;
}

/* Viewer header sits below app-bar */
.viewer-header {
  top: 52px;
}

/* ============================================================
   LIKE SECTION (single heart — reference style)
   ============================================================ */
.like-section {
  text-align: center;
  padding: 2.5rem 1rem;
}

.like-section__text {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 1.2rem;
}

.like-section__highlight {
  color: #ff69b4;
}

.like-section__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #fff;
  border: none;
  margin: 0 auto;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s, box-shadow 0.3s;
}

.like-section__btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
}

.like-section__btn--active {
  background: #ffe0ec;
  box-shadow: 0 0 20px rgba(255, 105, 180, 0.4);
}

.like-section__heart {
  font-size: 2rem;
  line-height: 1;
}

.like-section__count {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--cream-dim);
  margin-top: 0.5rem;
}