/* game_tgn_0046 — BOX OFFICE
   S-COUNTER: neon marquee + horizontal ticket counter + full-width gallery
   Morphs: Marquee Window / Stub Strip / Lantern Grid / Queue Line
   NOT: left rail (g44) · left stall split · g45 float · g42 store top · Control Bay */

:root {
  --g46-night: #0e1016;
  --g46-wood: #2c2218;
  --g46-paper: #efe4cf;
  --g46-sheet: #f6ecda;
  --g46-ink: #1a1714;
  --g46-muted: #6a5f52;
  --g46-lantern: #f0b429;
  --g46-neon: #ff4d6d;
  --g46-teal: #1f9d8a;
  --g46-wood-ink: #f3e8d4;
  --g46-line: rgba(26, 23, 20, 0.14);
  --g46-wood-line: rgba(239, 228, 207, 0.16);
  --g46-bar-h: 52px;
  --g46-counter-h: 56px;
  --g46-mob-h: 54px;
  --g46-pad-x: 20px;
  --g46-font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --g46-star-full: #f0b429;
  --g46-star-empty: #b0a48f;
  --g46-radius: 3px;
  --g46-ph: #ddd2bc;
  --g46-electric: var(--g46-lantern);
  --g46-signal: var(--g46-neon);
  --bg-main: var(--g46-paper);
  --text-main: var(--g46-ink);
  --text-muted: var(--g46-muted);
  --accent: var(--g46-teal);
  --ink-muted: var(--g46-muted);
  --ink-on-light: #44403c;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body.g46-body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--g46-font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--g46-ink);
  background:
    radial-gradient(ellipse 80% 40% at 50% -10%, rgba(240, 180, 41, 0.12), transparent 55%),
    var(--g46-paper);
  -webkit-font-smoothing: antialiased;
  padding-top: var(--g46-bar-h);
  padding-bottom: calc(var(--g46-mob-h) + 12px);
}
@media (min-width: 900px) {
  body.g46-body {
    padding-top: calc(var(--g46-bar-h) + var(--g46-counter-h));
    padding-bottom: 0;
  }
}

a { color: var(--g46-ink); text-decoration: none; }
a:hover { color: var(--g46-teal); }
img { max-width: 100%; height: auto; display: block; }

.g46-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;
}
.g46-page-pad {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px var(--g46-pad-x) 32px;
}
.g46-ad-slot,
.g46-ad-top { margin: 12px 0; }
.g46-pick-section { background: transparent; }

/* ========== Neon Marquee bar ========== */
.g46-marquee-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  height: var(--g46-bar-h);
  padding: 0 14px;
  background: var(--g46-night);
  color: var(--g46-wood-ink);
  border-bottom: 2px solid var(--g46-lantern);
  box-shadow: 0 0 24px rgba(240, 180, 41, 0.18);
  z-index: 50;
}
@media (min-width: 900px) {
  .g46-marquee-bar { padding: 0 24px; }
}
.g46-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  font-size: 0.95rem;
  text-transform: uppercase;
}
.g46-brand:hover { color: var(--g46-lantern); }
.g46-brand img { border-radius: 3px; }

.g46-tool-search {
  display: flex;
  flex: 1;
  min-width: 0;
  max-width: 420px;
  border: 1px solid rgba(240, 180, 41, 0.35);
  border-radius: var(--g46-radius);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.35);
}
.g46-tool-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #fff;
  padding: 8px 10px;
  font: inherit;
  outline: none;
}
.g46-tool-search button {
  border: 0;
  background: var(--g46-lantern);
  color: var(--g46-night);
  font-weight: 800;
  padding: 8px 12px;
  cursor: pointer;
}

.g46-tool-auth {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.g46-signin {
  display: inline-flex;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--g46-neon);
  border-radius: var(--g46-radius);
}
.g46-signin:hover { color: #fff; filter: brightness(1.06); }
.g46-header-user {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.g46-header-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--g46-wood);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}
.g46-header-avatar img { width: 100%; height: 100%; object-fit: cover; }
.g46-header-name { color: #fff; font-weight: 700; }
.g46-header-out { color: rgba(243, 232, 212, 0.65); font-size: 12px; }

/* ========== Ticket Counter (menu as white stubs, fixed under marquee) ========== */
.g46-counter {
  position: fixed;
  top: var(--g46-bar-h);
  left: 0;
  right: 0;
  z-index: 49;
  flex: 0 0 auto;
  background: var(--g46-wood);
  color: var(--g46-wood-ink);
  border-bottom: 1px solid var(--g46-wood-line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.g46-counter-ledge {
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px var(--g46-pad-x) 12px;
  display: flex;
  align-items: center;
}
.g46-counter-label {
  margin: 0 0 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(243, 232, 212, 0.45);
}
.g46-ticket-rail {
  display: none;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  width: 100%;
}
@media (min-width: 900px) {
  .g46-ticket-rail { display: flex; }
}
.g46-ticket-stub {
  position: relative;
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: auto auto auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 6px;
  row-gap: 2px;
  min-width: 118px;
  padding: 8px 12px 8px 14px;
  background: var(--g46-sheet);
  color: var(--g46-ink);
  border-radius: 2px;
  clip-path: polygon(
    0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%, 0 0
  );
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.2);
}
.g46-ticket-stub:hover {
  color: var(--g46-ink);
  filter: brightness(1.04);
  transform: translateY(-1px);
}
.g46-ticket-stub.is-active {
  background: var(--g46-lantern);
  color: var(--g46-night);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.28);
}
.g46-ticket-stub.is-active .g46-ticket-num {
  color: var(--g46-night);
}
.g46-ticket-perf {
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 6px;
  background: radial-gradient(circle at 0 50%, transparent 3px, var(--g46-wood) 3.5px) 0 0 / 6px 10px repeat-y;
}
.g46-ticket-num {
  grid-column: 1;
  grid-row: 1 / -1;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 11px;
  font-weight: 800;
  color: var(--g46-neon);
  padding-left: 4px;
}
.g46-ticket-name {
  grid-column: 3;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.g46-stall-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--g46-teal);
}
.g46-stall-dot--0 { background: #f0b429; }
.g46-stall-dot--1 { background: #ff4d6d; }
.g46-stall-dot--2 { background: #1f9d8a; }
.g46-stall-dot--3 { background: #7dd3fc; }
.g46-stall-dot--4 { background: #c084fc; }
.g46-stall-dot--5 { background: #fb923c; }
.g46-stall-dot--all { background: #94a3b8; }

/* Mobile: counter hidden; booth drawer carries primary + categories. */
@media (max-width: 899px) {
  .g46-counter { display: none; }
}

/* ========== Booth drawer (mobile) ========== */
/* In-flow under marquee (not fixed) so it never covers gallery/title when resizing. */
.g46-booth-open {
  position: sticky;
  top: calc(var(--g46-bar-h) + 8px);
  z-index: 120;
  align-self: flex-start;
  width: max-content;
  margin: 8px var(--g46-pad-x) 4px;
  padding: 8px 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--g46-night);
  background: var(--g46-lantern);
  border: 0;
  border-radius: var(--g46-radius);
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
@media (min-width: 900px) {
  .g46-booth-open { display: none; }
}
.g46-booth-backdrop {
  position: fixed;
  inset: 0;
  z-index: 140;
  border: 0;
  background: rgba(0, 0, 0, 0.45);
}
@media (min-width: 900px) {
  .g46-booth-backdrop { display: none !important; }
}
.g46-booth-drawer {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: none;
  pointer-events: none;
}
body.g46-booth-is-open .g46-booth-drawer { display: block; }
.g46-booth-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: min(300px, 88vw);
  height: 100%;
  background: var(--g46-wood);
  color: var(--g46-wood-ink);
  padding: 16px;
  overflow-y: auto;
  pointer-events: auto;
  box-shadow: 8px 0 24px rgba(0, 0, 0, 0.25);
}
.g46-booth-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.g46-booth-close {
  border: 0;
  background: transparent;
  color: var(--g46-wood-ink);
  font-size: 28px;
  cursor: pointer;
}
.g46-booth-search {
  display: flex;
  margin-bottom: 14px;
  border: 1px solid var(--g46-wood-line);
  border-radius: var(--g46-radius);
  overflow: hidden;
}
.g46-booth-search input {
  flex: 1;
  border: 0;
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  padding: 9px 10px;
  font: inherit;
}
.g46-booth-search button {
  border: 0;
  background: var(--g46-lantern);
  color: var(--g46-night);
  font-weight: 800;
  padding: 0 12px;
  cursor: pointer;
}
.g46-booth-cats,
.g46-booth-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
}
.g46-booth-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: var(--g46-radius);
  color: var(--g46-wood-ink);
  font-size: 13px;
  font-weight: 600;
}
.g46-booth-link:hover,
.g46-booth-link.is-active {
  background: rgba(240, 180, 41, 0.18);
  color: #fff;
}

/* ========== Mobile bottom nav ========== */
.g46-mobnav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  display: flex;
  height: var(--g46-mob-h);
  background: var(--g46-sheet);
  border-top: 1px solid var(--g46-line);
}
.g46-mobnav .mobile-nav-item {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--g46-muted);
}
.g46-mobnav .mobile-nav-item.active { color: var(--g46-neon); }
@media (min-width: 900px) {
  .g46-mobnav { display: none; }
}

/* ========== Gallery ========== */
.g46-gallery,
.g46-main {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px var(--g46-pad-x) 40px;
  flex: 1 1 auto;
}
@media (min-width: 900px) {
  .g46-gallery,
  .g46-main { padding: 22px 24px 48px; }
}

/* ========== Buttons ========== */
.g46-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  font: inherit;
  font-weight: 700;
  border: 1px solid transparent;
  border-radius: var(--g46-radius);
  cursor: pointer;
  color: var(--g46-ink);
  background: transparent;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.g46-btn-primary {
  background: var(--g46-neon);
  color: #fff;
}
.g46-btn-primary:hover { filter: brightness(1.08); color: #fff; transform: translateY(-1px); }
.g46-btn-outline {
  border-color: var(--g46-line);
  background: var(--g46-sheet);
  color: var(--g46-ink);
}
.g46-btn-outline:hover { border-color: var(--g46-teal); color: var(--g46-teal); }
.g46-btn-play { min-width: 140px; }

/* ========== Window Slip (no-ad home) ========== */
.g46-window-slip {
  margin-bottom: 20px;
  padding: 12px 14px;
  background: var(--g46-sheet);
  border: 1px dashed var(--g46-line);
  border-left: 3px solid var(--g46-lantern);
}
.g46-slip-copy { min-width: 0; }
.g46-slip-slogan {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.g46-slip-desc {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--g46-muted);
}

/* ========== Section chrome ========== */
.g46-section-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--g46-line);
}
.g46-section-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.g46-mod-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--g46-night);
  background: var(--g46-lantern);
  border-radius: 999px;
}
.g46-section-more {
  margin-left: auto;
  font-size: 12px;
  font-weight: 700;
  color: var(--g46-neon);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.g46-section-desc {
  margin: -4px 0 14px;
  font-size: 13px;
  color: var(--g46-muted);
}
.g46-mod { margin-bottom: 28px; }
.g46-chip {
  display: inline-block;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(31, 157, 138, 0.12);
  color: var(--ink-on-light);
  border-radius: 999px;
}

/* ========== List rules ========== */
.article-list .special-card-content,
.article-list .carousel-card-content {
  padding: 12px 14px 16px;
}
.special-card-content,
.card-content { min-width: 0; }

.article-list .game-title,
.article-list .card-title,
.special-card .game-title,
.game-card .card-title,
.g46-marquee-meta .game-title,
.g46-slip-body .game-title,
.g46-stub-body .game-title,
.g46-queue-body .game-title {
  display: block;
  max-width: 100%;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--g46-ink);
  font-weight: 700;
}
.g46-lantern-card .game-title,
.g46-tags-grid.is-lantern .game-title {
  display: block;
  max-width: 100%;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.g46-main .brief-comment-game {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
  font-size: 13px;
  color: var(--g46-muted);
  margin-top: 4px;
  min-width: 0;
}
.g46-main .brief-comment-game * { color: inherit !important; }
@media (min-width: 768px) {
  .g46-main .brief-comment-game { -webkit-line-clamp: 2; }
}

.g46-main .g46-card-tags {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  overflow: hidden;
  margin-top: 6px;
  min-width: 0;
}
@media (min-width: 768px) {
  .g46-main .g46-card-tags {
    flex-wrap: wrap;
    overflow: visible;
  }
}

.game-star {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  margin: 4px 0;
  line-height: 1;
}
.game-star .star-full,
.game-star .star-empty {
  display: inline-block;
  width: 14px;
  height: 14px;
  position: relative;
}
.game-star .star-full::before,
.game-star .star-empty::before {
  content: "★";
  position: absolute;
  inset: 0;
  font-size: 14px;
  line-height: 14px;
}
.game-star .star-full::before { color: var(--g46-star-full); }
.game-star .star-empty::before { color: var(--g46-star-empty); }
.game-star--detail-hero { font-size: 15px; }
.game-star--detail-hero .star-full,
.game-star--detail-hero .star-empty { width: 16px; height: 16px; }
.game-star--detail-hero .star-full::before,
.game-star--detail-hero .star-empty::before { font-size: 16px; line-height: 16px; }

/* ========== Marquee Window ========== */
.g46-marquee { display: flex; flex-direction: column; gap: 14px; }
.g46-marquee-lead {
  display: grid;
  gap: 0;
  background: var(--g46-night);
  border: 4px solid var(--g46-lantern);
  border-radius: 2px;
  overflow: hidden;
  box-shadow:
    0 0 0 2px rgba(14, 16, 22, 0.9),
    0 0 32px rgba(240, 180, 41, 0.28);
}
@media (min-width: 768px) {
  .g46-marquee-lead { grid-template-columns: 1.5fr 1fr; }
}
.g46-marquee-media {
  aspect-ratio: 16 / 10;
  background: var(--g46-ph);
  overflow: hidden;
  position: relative;
}
.g46-marquee-media::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 48px rgba(14, 16, 22, 0.4);
  pointer-events: none;
}
.g46-marquee-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.g46-marquee-meta {
  padding: 16px 18px 18px !important;
  background: var(--g46-sheet);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (max-width: 767px) {
  .g46-gallery,
  .g46-main { padding: 12px 12px 28px; }
  .g46-window-slip { margin-bottom: 8px; padding: 8px 10px; }
  .g46-slip-desc {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
  }
  .g46-section-bar { margin: 0 0 6px; padding-bottom: 4px; }
  .g46-section-desc {
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
  }
  .g46-marquee { gap: 8px; }
  .g46-marquee-media { aspect-ratio: 16 / 9; }
  .g46-marquee-meta { padding: 8px 10px 10px !important; }
  .g46-marquee-meta .brief-comment-game { -webkit-line-clamp: 1; line-clamp: 1; }
  .g46-marquee-meta .g46-card-tags { display: none; }
}

/* Counter tickets under marquee (full remaining list) */
.g46-rail-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}
.g46-slip-rail {
  display: flex;
  flex: 1;
  min-width: 0;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 0 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.g46-slip-rail::-webkit-scrollbar { display: none; }
.g46-rail-btn {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: 1px solid var(--g46-line);
  border-radius: 50%;
  background: var(--g46-sheet);
  color: var(--g46-ink);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.g46-rail-btn:hover:not(:disabled) {
  border-color: var(--g46-lantern);
  color: var(--g46-night);
  background: var(--g46-lantern);
}
.g46-rail-btn:disabled {
  opacity: 0.35;
  cursor: default;
}
@media (max-width: 767px) {
  .g46-rail-btn { display: none; }
  .g46-rail-wrap { gap: 0; }
}
.g46-slip-ticket {
  flex: 0 0 min(200px, 72vw);
  display: flex;
  flex-direction: column;
  background: var(--g46-sheet);
  border: 1px solid var(--g46-line);
  border-radius: var(--g46-radius);
  overflow: hidden;
  scroll-snap-align: start;
  position: relative;
}
.g46-slip-ticket::before {
  content: "";
  position: absolute;
  left: 0; top: 6px; bottom: 6px;
  width: 5px;
  background: radial-gradient(circle at 0 50%, transparent 2.5px, var(--g46-wood) 3px) 0 0 / 5px 9px repeat-y;
}
.g46-slip-ticket:hover { border-color: var(--g46-lantern); }
.g46-slip-thumb {
  aspect-ratio: 3 / 2;
  background: var(--g46-ph);
  overflow: hidden;
}
.g46-slip-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.g46-slip-body { padding: 10px 12px 12px !important; min-width: 0; }

/* ========== Stub Strip ========== */
.g46-stub-list { display: flex; flex-direction: column; gap: 8px; }
.g46-stub-row {
  display: grid;
  grid-template-columns: 48px 96px minmax(0, 1fr);
  align-items: stretch;
  background: var(--g46-sheet);
  border: 1px solid var(--g46-line);
  border-radius: var(--g46-radius);
  overflow: hidden;
}
.g46-stub-row:hover { border-color: var(--g46-neon); }
.g46-stub-num {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--g46-wood);
  color: var(--g46-lantern);
  font-family: ui-monospace, Consolas, monospace;
  font-size: 12px;
  font-weight: 800;
  border-right: 2px dashed rgba(240, 180, 41, 0.5);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 6px 92%, 0 84%, 6px 76%, 0 68%, 6px 60%, 0 52%, 6px 44%, 0 36%, 6px 28%, 0 20%, 6px 12%, 0 4%);
}
.g46-stub-thumb {
  background: var(--g46-ph);
  overflow: hidden;
}
.g46-stub-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 72px;
}
.g46-stub-body {
  padding: 10px 12px !important;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (max-width: 520px) {
  .g46-stub-row { grid-template-columns: 40px 72px minmax(0, 1fr); }
}

/* ========== Lantern Grid ========== */
.g46-lantern {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (min-width: 900px) {
  .g46-lantern { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.g46-lantern-card {
  display: block;
  background: var(--g46-night);
  border: 1px solid var(--g46-line);
  border-radius: var(--g46-radius);
  overflow: hidden;
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.g46-lantern-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  height: 4px;
  background: linear-gradient(90deg, var(--g46-lantern), var(--g46-neon));
  pointer-events: none;
}
.g46-lantern-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(240, 180, 41, 0.18);
}
.g46-lantern-media {
  display: block;
  aspect-ratio: 16 / 10;
  background: var(--g46-ph);
  overflow: hidden;
}
.g46-lantern-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Title + stars on the image (lantern glow strip stays on top). */
.g46-lantern-card .special-card-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 32px 12px 12px !important;
  background: linear-gradient(180deg, transparent 0%, rgba(14, 16, 22, 0.55) 40%, rgba(14, 16, 22, 0.92) 100%);
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.g46-lantern-card .game-star {
  margin: 2px 0 0;
}
.g46-lantern-card .game-star .star-empty::before {
  color: rgba(255, 255, 255, 0.35);
}
.g46-lantern-card .g46-card-tags,
.g46-lantern-card .brief-comment-game {
  display: none;
}

/* ========== Queue Line ========== */
.g46-queue { display: flex; flex-direction: column; gap: 8px; }
.g46-queue-row {
  display: grid;
  grid-template-columns: 52px 72px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  background: var(--g46-sheet);
  border: 1px solid var(--g46-line);
  border-radius: var(--g46-radius);
}
.g46-queue-row:hover { border-color: var(--g46-teal); }
.g46-queue-num {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 13px;
  font-weight: 800;
  color: var(--g46-night);
  background: var(--g46-lantern);
  border-radius: 2px;
}
.g46-queue-thumb {
  width: 72px;
  height: 72px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--g46-ph);
}
.g46-queue-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.g46-queue-body { min-width: 0; padding: 0 !important; }

/* ========== Quick booths ========== */
.g46-booths { margin: 28px 0 8px; }
.g46-booths-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.g46-booth {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--g46-sheet);
  border: 1px solid var(--g46-line);
  border-radius: var(--g46-radius);
  font-size: 13px;
  font-weight: 700;
}
.g46-booth:hover { border-color: var(--g46-lantern); color: var(--g46-ink); }

/* ========== Detail Booth Window ~62/38 ========== */
.g46-detail { padding-bottom: 24px; }
.g46-play-stage {
  display: grid;
  gap: 16px;
  margin: 8px 0 24px;
}
@media (min-width: 900px) {
  .g46-play-stage {
    grid-template-columns: minmax(0, 1.62fr) minmax(240px, 1fr);
    align-items: start;
  }
}
.g46-play-main { min-width: 0; }
.g46-play-side {
  padding: 16px;
  background: var(--g46-sheet);
  border: 1px solid var(--g46-line);
  border-radius: var(--g46-radius);
  position: relative;
  box-shadow: inset 8px 0 0 -4px var(--g46-wood);
}
.g46-play-side::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 8px;
  background: radial-gradient(circle at 0 50%, transparent 3px, var(--g46-wood) 3.5px) 0 0 / 8px 11px repeat-y;
}
.g46-play-side h1 {
  margin: 0 0 8px;
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  line-height: 1.2;
}
.g46-detail-kicker {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--g46-muted);
}
.g46-detail-body { display: flex; flex-direction: column; gap: 18px; }
.g46-detail-block {
  padding: 16px;
  background: var(--g46-sheet);
  border: 1px solid var(--g46-line);
  border-radius: var(--g46-radius);
}
.g46-detail-block h2,
.g46-detail-block h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}
.g46-quote {
  margin: 0;
  font-size: 14px;
  color: var(--g46-muted);
}
.g46-detail-meta { margin-top: 10px; font-size: 13px; }
.g46-meta-row {
  display: flex;
  gap: 8px;
  margin: 4px 0;
  color: var(--g46-muted);
}
.g46-meta-row span { font-weight: 700; color: var(--g46-ink); min-width: 72px; }
.g46-detail-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.g46-crumb { margin: 14px 0; font-size: 13px; color: var(--g46-muted); }
.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.breadcrumb-separator { opacity: 0.5; }
.g46-related { margin: 24px 0; }

/* ========== Tags ========== */
.g46-tags-head { margin-bottom: 16px; }
.g46-tags-head h1 { margin: 0 0 6px; font-size: 1.4rem; }
.g46-tags-head .tag-h2 {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--g46-muted);
}
.g46-tags-search {
  display: flex;
  gap: 8px;
  max-width: 420px;
  margin-bottom: 12px;
}
.g46-tags-search input {
  flex: 1;
  padding: 9px 12px;
  border: 1px solid var(--g46-line);
  border-radius: var(--g46-radius);
  font: inherit;
}
.g46-tags-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.g46-filter-open { display: inline-flex; }
@media (min-width: 900px) {
  .g46-filter-open { display: none; }
}
.g46-view-toggle {
  display: inline-flex;
  border: 1px solid var(--g46-line);
  border-radius: var(--g46-radius);
  overflow: hidden;
}
.g46-view-btn {
  border: 0;
  background: var(--g46-sheet);
  padding: 8px 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  color: var(--g46-muted);
}
.g46-view-btn.is-active {
  background: var(--g46-night);
  color: var(--g46-lantern);
}
.g46-tags-cats {
  display: none;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
@media (min-width: 900px) {
  .g46-tags-cats { display: flex; }
}
.g46-chip-link {
  padding: 6px 12px;
  background: var(--g46-sheet);
  border: 1px solid var(--g46-line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}
.g46-chip-link:hover,
.g46-chip-link.is-active {
  border-color: var(--g46-lantern);
  color: var(--g46-ink);
}

.g46-tags-grid.is-lantern {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (min-width: 900px) {
  .g46-tags-grid.is-lantern { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.g46-tags-grid.is-lantern .g46-tags-card {
  display: block;
  position: relative;
  background: var(--g46-night);
  border: 1px solid var(--g46-line);
  border-radius: var(--g46-radius);
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.g46-tags-grid.is-lantern .g46-tags-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(240, 180, 41, 0.18);
}
.g46-tags-grid.is-lantern .g46-tags-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  height: 4px;
  background: linear-gradient(90deg, var(--g46-lantern), var(--g46-neon));
  pointer-events: none;
}
.g46-tags-grid.is-lantern .g46-tags-num { display: none; }
.g46-tags-grid.is-lantern .g46-tags-media {
  display: block;
  aspect-ratio: 16 / 10;
  background: var(--g46-ph);
  overflow: hidden;
}
.g46-tags-grid.is-lantern .g46-tags-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.g46-tags-grid.is-lantern .g46-tags-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 32px 12px 12px !important;
  background: linear-gradient(180deg, transparent 0%, rgba(14, 16, 22, 0.55) 40%, rgba(14, 16, 22, 0.92) 100%);
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.g46-tags-grid.is-lantern .game-star {
  margin: 2px 0 0;
}
.g46-tags-grid.is-lantern .game-star .star-empty::before {
  color: rgba(255, 255, 255, 0.35);
}
.g46-tags-grid.is-lantern .g46-card-tags,
.g46-tags-grid.is-lantern .brief-comment-game {
  display: none;
}

.g46-tags-grid.is-queue {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.g46-tags-grid.is-queue .g46-tags-card {
  display: grid;
  grid-template-columns: 48px 72px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  background: var(--g46-sheet);
  border: 1px solid var(--g46-line);
  border-radius: var(--g46-radius);
}
.g46-tags-grid.is-queue .g46-tags-num {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 12px;
  font-weight: 800;
  color: var(--g46-night);
  background: var(--g46-lantern);
  border-radius: 2px;
  min-height: 36px;
}
.g46-tags-grid.is-queue .g46-tags-media {
  width: 72px;
  height: 72px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--g46-ph);
}
.g46-tags-grid.is-queue .g46-tags-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.g46-tags-grid.is-queue .g46-tags-body { padding: 0 !important; }

.g46-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 160;
  border: 0;
  background: rgba(0, 0, 0, 0.45);
}
.g46-tags-drawer {
  position: fixed;
  inset: 0;
  z-index: 170;
  display: none;
  pointer-events: none;
}
body.g46-drawer-open .g46-tags-drawer { display: block; }
.g46-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(320px, 88vw);
  height: 100%;
  background: var(--g46-sheet);
  padding: 16px;
  overflow-y: auto;
  pointer-events: auto;
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.15);
}
.g46-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.g46-drawer-close {
  border: 0;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
  color: var(--g46-ink);
}
.g46-drawer-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.g46-drawer-link {
  display: block;
  padding: 10px 12px;
  border-radius: var(--g46-radius);
  font-weight: 600;
}
.g46-drawer-link:hover { background: rgba(240, 180, 41, 0.15); }

/* ========== Profile ========== */
.g46-tickets-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-bottom: 20px;
  padding: 16px;
  background: var(--g46-night);
  color: var(--g46-wood-ink);
  border-radius: var(--g46-radius);
  border-bottom: 2px solid var(--g46-lantern);
}
.g46-profile-user {
  display: flex;
  align-items: center;
  gap: 12px;
}
.g46-profile-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--g46-wood);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  overflow: hidden;
}
.g46-profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.g46-aside-label {
  margin: 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(243, 232, 212, 0.55);
}
.g46-profile-name { margin: 2px 0; font-size: 1.2rem; color: #fff; }
.g46-profile-email { margin: 0; font-size: 13px; color: rgba(243, 232, 212, 0.7); }
.g46-profile-stats { display: flex; gap: 16px; }
.g46-stat-item { text-align: center; }
.g46-stat-num { display: block; font-size: 1.2rem; font-weight: 800; color: var(--g46-lantern); }
.g46-stat-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.7; }
.g46-profile-nav { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; }
.g46-profile-nav-item {
  border: 1px solid rgba(243, 232, 212, 0.2);
  background: transparent;
  color: var(--g46-wood-ink);
  padding: 8px 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  border-radius: var(--g46-radius);
  cursor: pointer;
}
.g46-profile-nav-item.active {
  background: var(--g46-lantern);
  color: var(--g46-night);
  border-color: var(--g46-lantern);
}
.g46-profile-panel { display: none; margin-bottom: 20px; }
.g46-profile-panel.active { display: block; }
.g46-shelf-block {
  padding: 16px;
  background: var(--g46-sheet);
  border: 1px solid var(--g46-line);
  border-radius: var(--g46-radius);
}
.g46-profile-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.g46-profile-card-title { margin: 2px 0 0; font-size: 1.05rem; }
.g46-shelf-actions { display: flex; align-items: center; gap: 10px; }
.g46-stat-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--g46-muted);
}
.g46-game-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (min-width: 900px) {
  .g46-game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.g46-empty-state,
.game-empty {
  text-align: center;
  padding: 32px 16px;
  color: var(--g46-muted);
}
.g46-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px;
  color: var(--g46-muted);
}
.g46-loading[hidden] {
  display: none !important;
}
.g46-loading-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid var(--g46-line);
  border-top-color: var(--g46-lantern);
  border-radius: 50%;
  animation: g46-spin 0.7s linear infinite;
}
@keyframes g46-spin { to { transform: rotate(360deg); } }

/* ========== Auth / legal ========== */
.g46-auth-page,
.g46-legal { max-width: 640px; }
.g46-auth-kicker {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--g46-muted);
}
.g46-legal {
  padding: 20px;
  background: var(--g46-sheet);
  border: 1px solid var(--g46-line);
  border-radius: var(--g46-radius);
}

/* ========== Footer ========== */
.g46-footer {
  margin-top: auto;
  padding: 28px var(--g46-pad-x) 40px;
  border-top: 1px solid var(--g46-line);
  background: rgba(44, 34, 24, 0.06);
}
.g46-footer-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  gap: 20px;
}
@media (min-width: 768px) {
  .g46-footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
.g46-footer-brand { font-size: 1rem; }
.g46-footer-desc {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--g46-muted);
}
.g46-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}
.g46-footer-links a { font-size: 13px; font-weight: 600; }
.footer-social { display: flex; flex-wrap: wrap; gap: 10px; }
.footer-social-link { font-size: 13px; font-weight: 700; color: var(--g46-teal); }
.g46-footer-copy {
  max-width: 1180px;
  margin: 20px auto 0;
  font-size: 12px;
  color: var(--g46-muted);
}

/* Back to top — beat ads.css .back-to-top (loaded after styles.css) */
.back-to-top.g46-back-top,
.g46-back-top {
  position: fixed;
  right: 16px;
  bottom: calc(var(--g46-mob-h) + 16px);
  z-index: 900;
  width: 42px;
  height: 42px;
  padding: 0;
  display: none;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--g46-line);
  border-radius: 50%;
  background: var(--g46-sheet);
  color: var(--g46-teal);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  cursor: pointer;
  font-size: 0;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.back-to-top.g46-back-top::before,
.g46-back-top::before {
  content: none;
  display: none;
  animation: none;
  opacity: 0;
  background: none;
  box-shadow: none;
}
.back-to-top.g46-back-top svg,
.g46-back-top svg {
  position: relative;
  z-index: 1;
  display: block;
}
.back-to-top.g46-back-top.show,
.g46-back-top.show {
  display: inline-flex;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.back-to-top.g46-back-top:not(.show),
.g46-back-top:not(.show) {
  display: none;
}
.back-to-top.g46-back-top:hover,
.g46-back-top:hover {
  border-color: var(--g46-lantern);
  color: var(--g46-ink);
  background: var(--g46-sheet);
  box-shadow: none;
  transform: none;
}
.back-to-top.g46-back-top:active,
.g46-back-top:active {
  transform: translateY(0);
  filter: brightness(0.96);
}
@media (min-width: 900px) {
  .back-to-top.g46-back-top,
.g46-back-top {
    bottom: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .back-to-top.g46-back-top,
.g46-back-top {
    transition: opacity 0.15s ease, visibility 0.15s ease;
    transform: none;
  }
  .back-to-top.g46-back-top:hover,
  .g46-back-top:hover,
  .back-to-top.g46-back-top:active,
  .g46-back-top:active {
    transform: none;
  }
}


.pagination-container { margin: 32px 0 12px; }

@media (max-width: 899px) {
  .g46-header-name { display: none; }
}