/* Mini Box Gaming concept. Mobile first. Brand red and navy, modernized. */
:root {
  --red: #e4002b;
  --red-ink: #9e001c;
  --blue: #0a1fa8;
  --blue-deep: #07156f;
  --ink: #16181d;
  --muted: #3d4454;
  --paper: #f6f3ec;
  --card: #fffcf7;
  --line: #ddd6c8;
  --focus: #0a1fa8;
  --ok: #0e6b3c;
  --ok-bg: #e7f6ec;
  --warn-bg: #fff4d6;
  --warn-ink: #5c2800;
  --shadow: 0 10px 30px rgba(22, 24, 29, 0.08);
  --header: 4.25rem;
  --radius: 14px;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12px 12px, rgba(10, 31, 168, 0.045) 1.5px, transparent 1.6px) 0 0 / 24px 24px,
    var(--paper);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.5;
}

body { overflow-x: clip; }
body.nav-open { overflow: hidden; }
body.cart-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue); }
a:hover { color: var(--blue-deep); }

:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  background: var(--blue);
  color: #fff;
  padding: 0.6rem 0.9rem;
  z-index: 80;
  border-radius: 8px;
}
.skip:focus { top: 0.75rem; }

.wrap {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}
.cards, .tiles, .creator-strip, .tiers, .az, .game-list { max-width: 100%; }

.banner {
  background: var(--blue-deep);
  color: #fff;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0.65rem 1rem;
  font-size: 0.95rem;
}
.banner[hidden] { display: none; }
.banner p { margin: 0; }
.banner a { color: #fff; font-weight: 700; }
.banner button {
  flex: 0 0 auto;
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font: inherit;
  font-weight: 700;
  min-height: 44px;
  cursor: pointer;
}
.banner button:hover { background: #fff; color: var(--blue-deep); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 252, 247, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--blue);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.85rem;
  min-height: var(--header);
}

.logo img { width: 58px; height: auto; }
.logo:focus-visible { border-radius: 8px; }

.nav-toggle,
.cart-btn,
.btn,
.chip,
.icon-btn {
  font-family: inherit;
  cursor: pointer;
}

.nav-toggle {
  margin-left: auto;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 999px;
  min-height: 44px;
  padding: 0.35rem 0.9rem;
  font-weight: 700;
}

.site-nav {
  display: none;
  position: absolute;
  inset: var(--header) 0 auto 0;
  background: var(--card);
  border-bottom: 3px solid var(--red);
  padding: 0.5rem 0.85rem 1rem;
  box-shadow: var(--shadow);
}
.site-nav.is-open { display: grid; }
.site-nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0.2rem 0.35rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.15rem;
  border-bottom: 1px solid var(--line);
}
.site-nav a[aria-current="page"] {
  color: var(--red-ink);
  box-shadow: inset 4px 0 0 var(--red);
  padding-left: 0.7rem;
}

.cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--blue);
  color: #fff;
  border: 0;
  border-radius: 999px;
  min-height: 44px;
  padding: 0.35rem 0.85rem;
  font-weight: 700;
}
.cart-btn:hover { background: var(--blue-deep); }
.cart-count {
  background: #fff;
  color: var(--blue);
  border-radius: 999px;
  min-width: 1.5rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
  padding: 0 0.35rem;
}

main { padding-bottom: 3rem; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.01em;
  line-height: 0.95;
  margin: 0 0 0.45rem;
}
h1 { font-size: clamp(2.6rem, 10vw, 5rem); color: var(--red); }
h2 { font-size: clamp(2rem, 6vw, 3rem); color: var(--red); }
h3 { font-size: 1.55rem; color: var(--ink); font-style: italic; }

.rule {
  width: 4.5rem;
  height: 5px;
  background: var(--blue);
  border: 0;
  margin: 0 0 0.9rem;
}

.lede { font-size: 1.15rem; margin-top: 0; color: var(--ink); }

.hero {
  display: grid;
  gap: 1.25rem;
  padding: 1.25rem 0 0.5rem;
}
.hero-copy p { max-width: 38rem; }
.kicker {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 600;
  margin: 0 0 0.4rem;
}
.hero-actions, .row-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 48px;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.1;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-ink); color: #fff; }
.btn-navy { background: var(--blue); color: #fff; }
.btn-navy:hover { background: var(--blue-deep); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn-ghost:hover { background: var(--blue); color: #fff; }
.btn:disabled, .btn[aria-disabled="true"] {
  background: #d9d4cb;
  color: #3d4454;
  border-color: transparent;
  cursor: not-allowed;
}

.hero-frame {
  background: #fff;
  border: 3px solid var(--blue);
  border-radius: 18px;
  padding: 0.6rem;
  box-shadow: 8px 8px 0 var(--red);
}
.hero-frame img { width: 100%; border-radius: 10px; object-fit: cover; max-height: 420px; }

.trust {
  display: grid;
  gap: 0.7rem;
  margin: 1.4rem 0;
}
.trust article {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 5px solid var(--blue);
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
}
.trust h3 { margin-bottom: 0.25rem; }
.trust p { margin: 0; color: var(--muted); }

.section { padding: 1.1rem 0 0.4rem; }
.section-head { margin-bottom: 0.8rem; }
.section-head p { margin: 0; color: var(--muted); max-width: 40rem; }

.tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}
.tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 132px;
  background: #fff;
  border: 3px solid var(--blue);
  border-radius: 16px;
  text-decoration: none;
  color: var(--ink);
  padding: 0.7rem;
  text-align: center;
}
.tile:hover { border-color: var(--red); color: var(--ink); transform: translateY(-2px); }
.tile img { width: 84px; height: 84px; object-fit: contain; }
.tile span { font-weight: 700; }

.cards {
  display: grid;
  gap: 0.8rem;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.card img.cover {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #fff;
}
.card .body { padding: 0.85rem 0.9rem 1rem; display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }
.card h3 { margin: 0; }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { color: var(--blue); }
.price {
  font-family: var(--mono);
  font-weight: 600;
  color: var(--ink);
}
.meta { color: var(--muted); font-size: 0.95rem; margin: 0; }
.stars { color: var(--blue); letter-spacing: 0.08em; font-size: 0.9rem; }

.soon {
  border: 2px dashed var(--blue);
  background: transparent;
  box-shadow: none;
  min-height: 220px;
}
.soon .body { justify-content: flex-end; }
.badge {
  display: inline-flex;
  align-self: flex-start;
  background: var(--warn-bg);
  color: var(--warn-ink);
  font-weight: 700;
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  font-size: 0.85rem;
}
.badge-live { background: var(--ok-bg); color: var(--ok); }

.creator-strip {
  display: grid;
  gap: 0.75rem;
}
.creator-card {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 0.75rem;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}
.creator-card img { width: 112px; height: 100%; object-fit: cover; min-height: 84px; }
.creator-card div { padding: 0.65rem 0.7rem 0.7rem 0; }
.creator-card strong { display: block; }
.creator-card span { color: var(--muted); font-size: 0.92rem; }

.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 0.55rem;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 0.9rem 1rem;
  min-height: 48px;
}
.faq details p { margin: 0; padding: 0 1rem 1rem; color: var(--muted); }

.site-footer {
  background: var(--ink);
  color: #f4f1ea;
  padding: 2rem 0 2.5rem;
  margin-top: 2rem;
}
.site-footer a { color: #fff; }
.foot-grid { display: grid; gap: 1.2rem; }
.woo-note {
  background: #242833;
  border-left: 5px solid var(--red);
  padding: 0.9rem 1rem;
  border-radius: 10px;
  margin: 0;
}
.fine { color: #c8c2b6; font-size: 0.92rem; }
.pay-row { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0; margin: 0.4rem 0 0; list-style: none; }
.pay-row li {
  border: 1px solid #8d93a3;
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  font-size: 0.85rem;
}

.crumbs { color: var(--muted); font-size: 0.92rem; margin: 1rem 0; }
.crumbs a { color: var(--muted); }

.filters { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.4rem 0 0.8rem; }
.chip {
  border: 2px solid var(--blue);
  background: #fff;
  color: var(--blue);
  border-radius: 999px;
  min-height: 44px;
  padding: 0.25rem 0.8rem;
  font-weight: 700;
}
.chip[aria-pressed="true"] { background: var(--blue); color: #fff; }

.search-label { display: block; font-weight: 700; margin-bottom: 0.3rem; }
.search-row { display: flex; gap: 0.5rem; }
.search-row input, .qty input, .field input {
  font: inherit;
  width: 100%;
  min-height: 48px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 0.4rem 0.7rem;
  background: #fff;
  color: var(--ink);
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  padding-top: 0.4rem;
}
.product-layout > * { min-width: 0; }
.product-summary { order: 1; }
.picker { order: 2; }
.gallery { order: 3; }
.gallery { background: #fff; border: 3px solid var(--blue); border-radius: 16px; padding: 0.5rem; }
.gallery-main { width: 100%; max-height: 220px; object-fit: contain; background: #fff; }
.thumbs { display: flex; gap: 0.4rem; overflow-x: auto; padding-top: 0.45rem; }
.thumbs button {
  border: 2px solid transparent;
  padding: 0;
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
  flex: 0 0 auto;
}
.thumbs button[aria-current="true"] { border-color: var(--red); }
.thumbs img { width: 64px; height: 64px; object-fit: cover; }

.unit-price {
  font-family: var(--mono);
  font-size: 2rem;
  font-weight: 600;
  margin: 0.2rem 0;
}
.unit-price small { font-size: 1rem; color: var(--muted); font-family: var(--sans); }

.subhead { font-size: 1.8rem; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.tiers {
  list-style: none;
  display: flex;
  gap: 0.35rem;
  padding: 0 0 0.35rem;
  margin: 0.4rem 0 0.5rem;
  overflow-x: auto;
}
.tiers li {
  flex: 0 0 4.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.35rem 0.3rem;
  text-align: center;
  font-size: 0.78rem;
}
.tiers li.is-current {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.tiers .amt { display: block; font-family: var(--mono); font-weight: 600; font-size: 0.85rem; }
.hint { margin: 0.2rem 0 0.6rem; font-weight: 700; color: var(--blue-deep); }

.az {
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  margin: 0.2rem 0 0.5rem;
}
.az a, .az button {
  flex: 0 0 auto;
  min-width: 36px;
  min-height: 40px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.35rem;
}

.game-tools { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-bottom: 0.4rem; }
.count-live { font-variant-numeric: tabular-nums; font-weight: 700; }

.game-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  max-height: min(62vh, calc(100dvh - 13rem));
  overflow: auto;
}
.letter-h {
  position: sticky;
  top: 0;
  background: #eef1fb;
  color: var(--blue-deep);
  margin: 0;
  padding: 0.3rem 0.8rem;
  font-family: var(--display);
  font-style: italic;
  font-size: 1.2rem;
  z-index: 1;
}
.game {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 4.5rem;
  gap: 0.4rem;
  align-items: center;
  padding: 0.35rem 0.65rem;
  border-top: 1px solid var(--line);
}
.game label.pick {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  min-height: 44px;
  padding: 0.35rem 0;
  cursor: pointer;
}
.game input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.15rem;
  accent-color: var(--blue);
  flex: 0 0 auto;
}
.qty {
  display: flex;
  flex-direction: column;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
}
.qty input {
  width: 4.4rem;
  min-height: 44px;
  text-align: center;
}
.tag {
  display: inline-block;
  margin-left: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--red-ink);
}

body:has(.buybar) { padding-bottom: 7.5rem; }
.buybar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  background: #fff;
  border-top: 3px solid var(--red);
  box-shadow: 0 -8px 24px rgba(22, 24, 29, 0.08);
  padding: 0.7rem 0.85rem calc(0.7rem + env(safe-area-inset-bottom));
  display: grid;
  gap: 0.45rem;
}
.buybar .totals { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.buybar strong { font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.buybar .btn { width: 100%; }

.note {
  background: #eef1fb;
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  color: var(--ink);
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(22, 24, 29, 0.5);
  z-index: 40;
}
.overlay[hidden] { display: none; }

.drawer {
  position: fixed;
  z-index: 50;
  background: var(--card);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  max-height: 100%;
}
.drawer[hidden] { display: none; }
.drawer {
  inset: auto 0 0 0;
  border-radius: 18px 18px 0 0;
  max-height: min(92vh, 760px);
  padding-bottom: env(safe-area-inset-bottom);
}
.drawer header, .drawer footer { padding: 0.85rem 1rem; }
.drawer header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.drawer h2 { font-size: 2rem; margin: 0; }
.drawer .lines { overflow: auto; padding: 0.4rem 1rem 1rem; flex: 1; }
.line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.4rem 0.8rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}
.line p { margin: 0; }
.line .sub { color: var(--muted); font-size: 0.92rem; }
.icon-btn {
  border: 2px solid var(--ink);
  background: #fff;
  border-radius: 999px;
  min-height: 44px;
  min-width: 44px;
  font-weight: 700;
}
.drawer footer { border-top: 3px solid var(--blue); }
.toast {
  position: fixed;
  left: 50%;
  bottom: 5.5rem;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  z-index: 60;
  max-width: calc(100% - 2rem);
}
.toast[hidden] { display: none; }

.empty { padding: 1rem; color: var(--muted); }

.steps { display: grid; gap: 0.7rem; margin: 0; padding: 0; list-style: none; }
.steps li {
  background: var(--card);
  border-radius: 14px;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--line);
}
.steps b {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.8rem;
  color: var(--red);
  display: block;
  line-height: 1;
}

.related { display: flex; gap: 0.6rem; overflow-x: auto; padding-bottom: 0.3rem; }
.related a {
  flex: 0 0 148px;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.related img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.related span { display: block; padding: 0.4rem 0.5rem 0.55rem; font-weight: 700; font-size: 0.9rem; }

@media (min-width: 720px) {
  .tiles { grid-template-columns: repeat(4, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .trust { grid-template-columns: repeat(3, 1fr); }
  .creator-strip { grid-template-columns: 1fr 1fr; }
  .tiers { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); overflow: visible; }
  .tiers li { flex: none; }
  .drawer {
    inset: 0 0 0 auto;
    width: min(420px, 100%);
    border-radius: 0;
    max-height: 100%;
  }
}

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: flex;
    position: static;
    border: 0;
    box-shadow: none;
    background: transparent;
    padding: 0;
    gap: 0.2rem;
    margin-left: 0.5rem;
  }
  .site-nav a {
    border: 0;
    min-height: 44px;
    font-size: 1.05rem;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
  }
  .site-nav a[aria-current="page"] {
    background: #fff;
    box-shadow: inset 0 -3px 0 var(--red);
    padding-left: 0.65rem;
    color: var(--red-ink);
  }
  .cart-btn { margin-left: auto; }
  .hero { grid-template-columns: 1.05fr 0.95fr; align-items: center; padding-top: 2rem; }
  .cards.catalog { grid-template-columns: repeat(3, 1fr); }
  .product-layout {
    grid-template-columns: minmax(260px, 380px) 1fr;
    grid-template-areas: "gallery summary" "gallery picker";
    align-items: start;
  }
  .gallery { grid-area: gallery; position: sticky; top: calc(var(--header) + 0.7rem); }
  .gallery-main { max-height: none; aspect-ratio: 1; }
  .product-summary { grid-area: summary; }
  .product-summary h1 { font-size: clamp(2.5rem, 4vw, 4rem); }
  .picker { grid-area: picker; }
  .game-list { max-height: 520px; }
  body:has(.buybar) { padding-bottom: 0; }
  .buybar {
    position: static;
    border: 3px solid var(--red);
    border-radius: 16px;
    box-shadow: none;
    margin-top: 0.8rem;
    padding: 0.75rem;
  }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1.4fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tile:hover { transform: none; }
}
