/* BGF Create Game + Game Detail styles
 * --------------------------------------------------------------
 */

/* ════════════════════════════════════════════════════════════════════
 * GALLERY (shared between create + detail)
 * ════════════════════════════════════════════════════════════════════ */

.gallery-slot {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--bg-2);
  border: 2px dashed var(--ink-3);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 6px;
  font-family: var(--font-pixel); font-size: 9px; letter-spacing: 0.06em;
  color: var(--ink-3);
  cursor: pointer;
  overflow: hidden;
  transition: background 90ms steps(2), border-color 90ms steps(2);
}
.gallery-slot:hover {
  background: var(--surface);
  border-color: var(--ink);
  color: var(--ink);
}
.gallery-slot.filled {
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  cursor: default;
  background: var(--ink);
}
.gallery-slot.filled .screen-wrap {
  position: absolute; inset: 0;
  display: block;
}
.gallery-slot .badge {
  position: absolute; top: 6px; left: 6px;
  background: var(--ink); color: var(--bg);
  font-family: var(--font-pixel); font-size: 7px; letter-spacing: 0.04em;
  padding: 3px 5px;
  border: 1.5px solid var(--ink);
  z-index: 2;
}
.gallery-slot .badge.primary { background: var(--yellow-500); color: var(--ink); }
.gallery-slot .controls {
  position: absolute; top: 6px; right: 6px;
  display: flex; gap: 4px;
  z-index: 3;
  opacity: 0;
  transition: opacity 90ms steps(2);
}
.gallery-slot.filled:hover .controls { opacity: 1; }
.gallery-slot .controls button {
  width: 22px; height: 22px;
  background: var(--surface);
  border: 1.5px solid var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--ink);
}
.gallery-slot .controls button.danger { background: var(--red-500); color: #fff; }
.gallery-slot .controls button.star   { background: var(--yellow-500); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 880px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

.kind-picker {
  position: fixed; inset: 0;
  background: var(--scrim);
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
}
.kind-picker-card {
  width: 720px; max-width: calc(100vw - 40px);
  background: var(--surface);
  border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--ink);
  padding: 20px;
}
.kind-picker-card h3 {
  margin: 0 0 14px; font-family: var(--font-pixel); font-size: 13px;
}
.kind-picker-card .opts {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
@media (max-width: 720px) { .kind-picker-card .opts { grid-template-columns: 1fr 1fr; } }
.kind-opt {
  background: var(--bg-2);
  border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
  padding: 0;
  cursor: pointer;
  transition: transform 90ms steps(2), box-shadow 90ms steps(2);
  display: flex; flex-direction: column;
}
.kind-opt:hover { transform: translate(-2px,-2px); box-shadow: 5px 5px 0 var(--ink); }
.kind-opt .thumb { aspect-ratio: 16/10; border-bottom: 2px solid var(--ink); }
.kind-opt .lbl {
  padding: 8px; font-family: var(--font-pixel); font-size: 9px; letter-spacing: 0.04em;
  color: var(--ink); display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface);
}
.kind-picker-card .close-row {
  display: flex; justify-content: flex-end; margin-top: 14px;
}

/* ════════════════════════════════════════════════════════════════════
 * GAME DETAIL PAGE
 * ════════════════════════════════════════════════════════════════════ */

.cab-shell.game {
  grid-template-columns: 1fr 320px;
  padding: 24px 20px;
  gap: 24px;
}
@media (max-width: 1100px) { .cab-shell.game { grid-template-columns: 1fr; } }

.game-hero {
  background: var(--surface);
  border: 2px solid var(--ink); box-shadow: 5px 5px 0 var(--ink);
  padding: 24px;
  display: flex; gap: 24px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.game-hero .cover {
  flex-shrink: 0;
  width: 140px; height: 180px;
  border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.game-hero .cover .short {
  font-family: var(--font-pixel); font-size: 32px; letter-spacing: 0.02em;
  margin-bottom: 6px;
}
.game-hero .cover .yr {
  font-family: var(--font-mono); font-size: 14px; opacity: 0.85;
}
.game-hero .cover::after {
  content: ""; position: absolute; top: 0; right: 0;
  width: 14px; height: 14px;
  background: var(--ink);
}
/* When the cover has a real image, drop the decorative ink pixel so it
 * doesn't clip the artwork's top-right corner. */
.game-hero .cover:has(> img)::after { content: none; }
.game-hero .info { flex: 1; min-width: 0; }
.game-hero .info .crumbline {
  font-family: var(--font-pixel); font-size: 9px; letter-spacing: 0.08em;
  color: var(--ink-3); margin-bottom: 10px;
  display: inline-flex; gap: 10px; align-items: center; flex-wrap: wrap;
}
.game-hero .info .crumbline .status {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 22px; padding: 4px 10px;
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  font-family: var(--font-pixel); font-size: 10px; line-height: 1;
  letter-spacing: 0.06em; text-align: center;
  background: var(--green-500); color: #fff;
}
.game-hero .info .crumbline .status--approved { background: var(--green-500); color: #fff; }
.game-hero .info .crumbline .status--pending  { background: var(--yellow-300); color: var(--ink); }
.game-hero .info .crumbline .status--rejected { background: var(--red-500); color: #fff; }
.game-hero h1 {
  margin: 0 0 8px;
  font-family: var(--font-pixel); font-size: 28px; letter-spacing: 0.02em;
}
.game-hero .sub {
  font-family: var(--font-mono); font-size: 16px; color: var(--ink-2);
  margin-bottom: 14px;
}
.game-hero p.desc {
  font-family: var(--font-body); font-size: 15px; color: var(--ink);
  line-height: 1.55; max-width: 620px;
  margin: 0 0 16px;
}
.game-hero .stats-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.game-hero .stat-mini {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px;
  background: var(--bg-2);
  border: 2px solid var(--ink);
  font-family: var(--font-body); font-size: 13px; color: var(--ink);
}
.game-hero .stat-mini i { width: 14px; height: 14px; color: var(--accent-deep); }
.game-hero .stat-mini b { font-family: var(--font-pixel); font-size: 10px; letter-spacing: 0.04em; }
.game-hero .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.game-hero .cta {
  padding: 12px 18px;
  background: var(--accent); color: #fff;
  border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
  font-family: var(--font-pixel); font-size: 11px; letter-spacing: 0.06em;
  cursor: pointer; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  transition: transform 90ms steps(2), box-shadow 90ms steps(2);
}
.game-hero .cta:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--ink); }
.game-hero .cta:active { transform: translate(2px,2px); box-shadow: 0 0 0 var(--ink); }
.game-hero .cta.secondary { background: var(--surface); color: var(--ink); }
/* Active toggle state ("В МОИХ ИГРАХ" / "УВЕДОМЛЯЮ О СТОЛАХ"): purple = the
 * design-system "you're in / subscribed" semantic. */
.game-hero .cta.secondary.is-active { background: var(--purple-500); color: #fff; }
.game-hero .cta.secondary.is-active i { color: #fff; }

/* hero gallery — big main image + thumb strip */
.hero-gallery {
  background: var(--surface);
  border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
  padding: 14px;
  margin-bottom: 20px;
}
.hero-gallery .main-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--ink);
  border: 2px solid var(--ink);
  overflow: hidden;
}
.hero-gallery .main-wrap .screen-wrap { position: absolute; inset: 0; }
.hero-gallery .main-wrap .label-strip {
  position: absolute; left: 0; bottom: 0; right: 0;
  padding: 8px 14px;
  background: rgba(26, 24, 20, 0.7);
  color: var(--bg);
  font-family: var(--font-pixel); font-size: 10px; letter-spacing: 0.06em;
  display: flex; align-items: center; justify-content: space-between;
}
.hero-gallery .arr {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px;
  background: var(--surface);
  border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: transform 90ms steps(2);
}
.hero-gallery .arr:hover { transform: translateY(-50%) translate(-1px,-1px); }
.hero-gallery .arr.prev { left: 10px; }
.hero-gallery .arr.next { right: 10px; }
.hero-gallery .thumb-strip {
  display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px;
}
.hero-gallery .thumb {
  flex: 0 0 110px;
  aspect-ratio: 16 / 10;
  background: var(--ink);
  border: 2px solid var(--ink);
  cursor: pointer;
  position: relative;
  transition: transform 90ms steps(2), box-shadow 90ms steps(2);
}
.hero-gallery .thumb .screen-wrap { position: absolute; inset: 0; display: block; }
.hero-gallery .thumb:hover { transform: translate(-1px,-1px); box-shadow: 2px 2px 0 var(--ink); }
.hero-gallery .thumb.on {
  box-shadow: 3px 3px 0 var(--accent);
  transform: translate(-2px,-2px);
}

.game-tabs { display: flex; background: var(--surface); border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); margin-bottom: 18px; overflow-x: auto; }
.game-tabs button {
  padding: 14px 20px; background: var(--surface); border: 0; border-right: 2px solid var(--ink);
  font-family: var(--font-pixel); font-size: 10px; letter-spacing: 0.06em;
  color: var(--ink-2); cursor: pointer; flex-shrink: 0;
}
.game-tabs button:last-child { border-right: 0; }
.game-tabs button.on { background: var(--accent); color: #fff; }
.game-tabs button:hover:not(.on) { background: var(--bg-2); color: var(--ink); }

.tab-pane {
  background: var(--surface);
  border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
  padding: 20px;
  font-family: var(--font-body); font-size: 14px; line-height: 1.6;
}
.tab-pane h4 { font-family: var(--font-pixel); font-size: 11px; letter-spacing: 0.06em; margin: 0 0 10px; }
.tab-pane p { margin: 0 0 12px; }
.tab-pane ul { margin: 0 0 12px; padding-left: 20px; }
.tab-pane ul li { margin-bottom: 6px; }

.tables-mini-list .table-mini {
  display: flex; gap: 12px; align-items: center;
  padding: 12px;
  background: var(--bg-2);
  border: 2px solid var(--ink);
  margin-bottom: 8px;
  cursor: pointer;
  transition: background 90ms steps(2);
  text-decoration: none;
}
.tables-mini-list .table-mini:hover { background: var(--surface); }
.tables-mini-list .table-mini .id {
  font-family: var(--font-mono); font-size: 13px; color: var(--ink-3); width: 60px; flex-shrink: 0;
}
.tables-mini-list .table-mini .meta {
  flex: 1; font-family: var(--font-body); font-size: 13px; color: var(--ink); display: flex; gap: 10px; flex-wrap: wrap;
}
.tables-mini-list .table-mini .seats {
  font-family: var(--font-pixel); font-size: 10px; padding: 4px 8px; background: var(--green-100);
  border: 2px solid var(--ink); color: var(--green-700);
}

/* game detail right rail */
.game-rail .panel-head .added-by {
  font-family: var(--font-mono); font-size: 12px; color: var(--ink-3);
}
.game-rail .creator-card {
  display: flex; gap: 10px; align-items: center;
  padding: 10px;
  background: var(--bg-2); border: 2px solid var(--ink);
  cursor: pointer;
  text-decoration: none;
}
.game-rail .creator-card .av {
  width: 36px; height: 36px;
  background: var(--red-500);
  border: 2px solid var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--font-pixel); font-size: 10px;
  flex-shrink: 0;
}
.game-rail .creator-card .name {
  font-family: var(--font-body); font-size: 13px; font-weight: 700; color: var(--ink);
}
.game-rail .creator-card .meta {
  font-family: var(--font-mono); font-size: 12px; color: var(--ink-2);
}

.similar-list { display: flex; flex-direction: column; gap: 8px; }
.similar-row {
  display: flex; gap: 10px; align-items: center;
  padding: 8px;
  background: var(--bg-2);
  border: 2px solid var(--ink);
  cursor: pointer;
  text-decoration: none;
  transition: background 90ms steps(2);
}
.similar-row:hover { background: var(--surface); }
.similar-row .cv {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--font-pixel); font-size: 10px;
  border: 2px solid var(--ink); flex-shrink: 0;
}
.similar-row .info { flex: 1; min-width: 0; }
.similar-row .name {
  font-family: var(--font-pixel); font-size: 9px; letter-spacing: 0.02em; color: var(--ink); margin-bottom: 3px;
}
.similar-row .meta { font-family: var(--font-mono); font-size: 12px; color: var(--ink-2); }

/* tag pills */
.tag-row {
  display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px;
}
.tag-pill {
  padding: 4px 8px;
  background: var(--purple-100); color: var(--purple-700);
  border: 2px solid var(--ink);
  font-family: var(--font-pixel); font-size: 8px; letter-spacing: 0.04em;
}
.tag-pill.green  { background: var(--green-100); color: var(--green-700); }
.tag-pill.yellow { background: var(--yellow-300); color: var(--yellow-700); }
.tag-pill.red    { background: var(--red-100); color: var(--red-700); }

/* compact rating bars */
.rating-bars { display: flex; flex-direction: column; gap: 6px; }
.rating-bars .b {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 13px; color: var(--ink-2);
}
.rating-bars .b .lbl { width: 80px; }
.rating-bars .b .bar {
  flex: 1; height: 12px;
  background: var(--bg-2); border: 2px solid var(--ink);
  position: relative;
}
.rating-bars .b .fill {
  height: 100%;
  background-image: repeating-linear-gradient(45deg, var(--accent) 0 6px, var(--accent-tint) 6px 12px);
}
.rating-bars .b .num {
  font-family: var(--font-pixel); font-size: 9px; color: var(--ink); width: 24px; text-align: right;
}

/* small secondary action used inside game-rail panel-body */
.game-rail .secondary-btn {
  background: var(--surface); color: var(--ink); border: 2px solid var(--ink);
  padding: 10px 12px;
  font-family: var(--font-pixel); font-size: 9px; letter-spacing: 0.06em;
  cursor: pointer; text-transform: uppercase;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
}
.game-rail .secondary-btn:hover { background: var(--bg-2); }

/* ════════════════════════════════════════════════════════════════════
 * CREATE GAME — mobile (preview becomes a bottom sheet)
 * ════════════════════════════════════════════════════════════════════ */

/* Defaults: hide mobile-only chrome at ≥desktop widths */
.create-mobile-bar { display: none; }
.create-rail .sheet-close { display: none; }
.cab-shell.create .sheet-backdrop { display: none; }

@media (max-width: 880px) {
  /* Shell: tighter padding, single column */
  .cab-shell.create {
    padding: 12px;
    gap: 14px;
    padding-bottom: 88px; /* room for floating bar */
    position: relative;
  }
  .create-main { gap: 14px; }

  /* Header: condense */
  .create-header h1 { font-size: 18px; }
  .create-header p  { font-size: 13px; }
  .create-header .back { font-size: 8px; }

  /* Form sections: tighter inner padding */
  .form-section .head { padding: 10px 14px; gap: 8px; flex-wrap: wrap; }
  .form-section .head .step { width: 24px; height: 24px; font-size: 9px; }
  .form-section .head h2 { font-size: 10px; }
  .form-section .head .hint { font-size: 11px; }
  .form-section .body { padding: 14px; gap: 14px; }

  /* Inputs at 16px to suppress iOS zoom on focus */
  .pix-input, .pix-textarea { font-size: 16px; padding: 10px 12px; }

  /* Stepper: smaller, fits 2 side-by-side */
  .stepper button { width: 36px; height: 36px; font-size: 12px; }
  .stepper .val   { min-width: 56px; font-size: 12px; }

  /* Segmented: stack vertical so both options remain readable */
  .segmented { grid-template-columns: 1fr; }
  .segmented .seg { border-right: 0; border-bottom: 2px solid var(--ink); }
  .segmented .seg:last-child { border-bottom: 0; }
  .segmented .seg .t { font-size: 9px; }
  .segmented .seg .d { font-size: 11px; }

  /* Chips: smaller, more wrappable */
  .chip-pick { padding: 6px 10px; font-size: 8px; }

  /* Cover swatches: smaller grid */
  .form-section .body button[style*="background"][style*="height: 40px"] {
    width: 32px !important; height: 32px !important;
  }

  /* ── Right rail → bottom sheet ────────────────────────────── */
  .create-rail {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 200;
    max-height: 82vh;
    overflow-y: auto;
    background: var(--bg);
    border-top: 2px solid var(--ink);
    box-shadow: 0 -6px 0 var(--ink);
    padding: 18px 14px 24px;
    transform: translateY(105%);
    transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
    order: 0; /* reset desktop order:-1 */
  }
  .create-rail::before {
    content: "";
    position: absolute;
    top: 7px; left: 50%; transform: translateX(-50%);
    width: 44px; height: 4px;
    background: var(--ink-3);
    border-radius: 2px;
  }
  .cab-shell.create.sheet-open .create-rail { transform: translateY(0); }

  /* Sticky preview-card behavior is irrelevant in sheet — kill it */
  .create-rail .preview-card { position: static; top: auto; }

  /* Sheet close (X) */
  .create-rail .sheet-close {
    display: inline-flex;
    position: absolute;
    top: 16px; right: 14px;
    width: 34px; height: 34px;
    align-items: center; justify-content: center;
    background: var(--surface);
    border: 2px solid var(--ink);
    box-shadow: 2px 2px 0 var(--ink);
    cursor: pointer;
    padding: 0;
    z-index: 3;
  }
  .create-rail .sheet-close svg { width: 16px; height: 16px; }
  .create-rail .sheet-close:active { transform: translate(2px,2px); box-shadow: 0 0 0 var(--ink); }

  /* Backdrop */
  .cab-shell.create .sheet-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(26, 24, 32, 0.5);
    z-index: 150;
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  .cab-shell.create.sheet-open .sheet-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  /* ── Floating action bar (mobile only) ────────────────────── */
  .create-mobile-bar {
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 100;
    padding: 10px 12px;
    background: var(--surface);
    border-top: 2px solid var(--ink);
    box-shadow: 0 -3px 0 var(--ink);
    gap: 8px;
    align-items: stretch;
  }
  .create-mobile-bar .status-pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 0 10px;
    background: var(--bg-2);
    border: 2px solid var(--ink);
    font-family: var(--font-pixel); font-size: 10px; letter-spacing: 0.04em;
    color: var(--ink);
    flex-shrink: 0;
  }
  .create-mobile-bar .status-pill.ok   { background: var(--green-100); color: var(--green-700); }
  .create-mobile-bar .status-pill.warn { background: var(--yellow-300); color: var(--ink); }
  .create-mobile-bar .status-pill svg { width: 12px; height: 12px; }

  .create-mobile-bar .preview-toggle,
  .create-mobile-bar .publish-mini {
    flex: 1;
    min-height: 44px;
    padding: 0 10px;
    border: 2px solid var(--ink);
    box-shadow: 3px 3px 0 var(--ink);
    font-family: var(--font-pixel); font-size: 10px; letter-spacing: 0.04em;
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    cursor: pointer;
  }
  .create-mobile-bar .preview-toggle { background: var(--surface); color: var(--ink); }
  .create-mobile-bar .publish-mini   { background: var(--accent); color: #fff; }
  .create-mobile-bar .publish-mini svg { width: 14px; height: 14px; }
  .create-mobile-bar .preview-toggle svg { width: 13px; height: 13px; }
  .create-mobile-bar .publish-mini:disabled {
    background: var(--bg-2); color: var(--ink-3); cursor: not-allowed;
    box-shadow: 2px 2px 0 var(--ink);
  }
  .create-mobile-bar .preview-toggle:active,
  .create-mobile-bar .publish-mini:not(:disabled):active {
    transform: translate(2px,2px); box-shadow: 0 0 0 var(--ink);
  }
}

/* Very narrow — keep things readable */
@media (max-width: 420px) {
  .create-mobile-bar .publish-mini { font-size: 9px; }
  .create-mobile-bar .preview-toggle { font-size: 9px; }
  .create-header h1 { font-size: 16px; }
}

/* ════════════════════════════════════════════════════════════════════
 * GAME DETAIL — mobile (≤880px)
 * Adapts the desktop two-column layout to a single-column phone view:
 * hero stacks (cover above text), gallery thumbs shrink, tabs scroll
 * horizontally, action buttons go full-width.
 * ════════════════════════════════════════════════════════════════════ */
@media (max-width: 880px) {
  .cab-shell.game { padding: 12px; gap: 14px; }

  .game-hero {
    flex-direction: column;
    padding: 16px;
    gap: 16px;
  }
  .game-hero .cover {
    width: 100%;
    height: 160px;
    flex-direction: row;
    justify-content: space-between;
    padding: 0 20px;
  }
  .game-hero .cover .short { font-size: 28px; margin: 0; }
  .game-hero h1 { font-size: 20px; }
  .game-hero .sub { font-size: 13px; margin-bottom: 10px; }
  .game-hero p.desc { font-size: 14px; }
  .game-hero .stat-mini { font-size: 12px; padding: 5px 8px; }
  .game-hero .actions { flex-direction: column; align-items: stretch; }
  .game-hero .actions .cta { width: 100%; justify-content: center; font-size: 10px; padding: 11px 14px; }

  .hero-gallery { padding: 10px; }
  .hero-gallery .main-wrap { aspect-ratio: 16/10; }
  .hero-gallery .arr { width: 32px; height: 32px; }
  .hero-gallery .thumb-strip {
    overflow-x: auto;
    grid-auto-flow: column;
    grid-auto-columns: 28%;
    grid-template-columns: none;
    scroll-snap-type: x mandatory;
    padding-bottom: 4px;
  }
  .hero-gallery .thumb { scroll-snap-align: start; }
  .hero-gallery .main-wrap .label-strip { font-size: 9px; padding: 4px 6px; }

  .game-tabs {
    position: sticky;
    top: 64px;
    z-index: 5;
  }
  .game-tabs button { padding: 12px 14px; font-size: 9px; white-space: nowrap; }

  .tab-pane { padding: 16px; }
  .tab-pane h4 { font-size: 11px; }
  .tab-pane p, .tab-pane li { font-size: 14px; }

  /* Expansions: stack the 3-column expansion row */
  .tab-pane > div[style*="grid-template-columns: 110px"] {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .tab-pane > div[style*="grid-template-columns: 110px"] > div:first-child {
    width: 90px;
    margin: 0 auto;
  }

  /* Hide the desktop-only PDF rules upload section in CreateGamePage —
   * PDF picker is awkward on mobile and the field is optional. Users on
   * desktop can attach it later via game edit (when that lands). */
  .rules-pdf-section { display: none !important; }
}

@media (max-width: 480px) {
  .game-hero .cover { height: 130px; }
  .game-hero .cover .short { font-size: 22px; }
  .game-hero h1 { font-size: 18px; }
  .hero-gallery .thumb-strip { grid-auto-columns: 38%; }
  .game-tabs button { padding: 10px 12px; font-size: 8px; }
}
