/* Card-show kiosk — "Complete your master set". Built for an iPad on a stand:
   everything is a big tap target, nothing selects or zooms, nothing scrolls
   the page itself (only the active screen scrolls). Same navy + gold as the
   till, louder. */
:root {
  --navy-deep: #07122A;
  --navy: #0F2350;
  --panel: #102650;
  --panel-2: #173166;
  --royal: #27409A;
  --royal-bright: #3B5BD9;
  --gold: #F2C14E;
  --gold-deep: #C8901A;
  --coral: #FF5A4D;
  --green: #3ECF8E;
  --cloud: #EEF2FA;
  --slate: #97A2BA;
  --line: rgba(255,255,255,.12);
  --top: 88px;
  --bar: 96px;
  --font-brand: 'Fredoka', system-ui, sans-serif;
  --font-body: 'Archivo', system-ui, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; margin: 0; overflow: hidden; overscroll-behavior: none; }
body {
  font-family: var(--font-body); color: var(--cloud);
  background: radial-gradient(1200px 700px at 80% -10%, #1C3A86 0%, transparent 60%),
              linear-gradient(180deg, var(--navy-deep), #0B1B40 60%, var(--navy-deep));
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
  touch-action: manipulation;
}
input { -webkit-user-select: text; user-select: text; }
img { -webkit-user-drag: none; }
button { font-family: inherit; cursor: pointer; color: inherit; }
.hidden { display: none !important; }

/* ------------------------------ screens --------------------------------- */
.screen { position: fixed; inset: 0; display: none; }
.screen.scroll {
  top: var(--top); bottom: 0; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 22px 26px calc(var(--bar) + 40px + env(safe-area-inset-bottom));
}
body[data-screen="home"] #s-home,
body[data-screen="sets"] #s-sets,
body[data-screen="cards"] #s-cards,
body[data-screen="search"] #s-search,
body[data-screen="basket"] #s-basket,
body[data-screen="details"] #s-details,
body[data-screen="done"] #s-done { display: block; }
body[data-screen="basket"] #s-basket, body[data-screen="details"] #s-details { padding-bottom: 40px; }

/* ------------------------------- top bar -------------------------------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; height: var(--top); z-index: 20;
  display: flex; align-items: center; gap: 14px;
  padding: env(safe-area-inset-top) 20px 0;
  background: rgba(7,18,42,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
body[data-screen="home"] .topbar, body[data-screen="done"] .topbar { display: none; }
.topbar button {
  height: 60px; border-radius: 16px; border: 1px solid var(--line);
  background: rgba(255,255,255,.07); font-size: 20px; font-weight: 700; padding: 0 22px;
}
.topbar button:active { transform: scale(.97); background: rgba(255,255,255,.14); }
.tb-back { min-width: 120px; }
.tb-title { flex: 0 1 auto; max-width: 34%; min-width: 0; display: flex; flex-direction: column; }
.tb-title small { color: var(--gold); font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.tb-title span { font-family: var(--font-brand); font-size: 30px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* the search bar runs across the top: a big field-shaped button that opens search */
.topbar .tb-search { flex: 1 1 auto; min-width: 0; height: 64px; display: flex; align-items: center; gap: 12px; text-align: left;
  border-radius: 32px !important; border: 2px solid rgba(242,193,78,.55) !important; background: rgba(255,255,255,.09) !important;
  color: #C9D2E8; font-weight: 600; font-size: 22px; padding: 0 26px; white-space: nowrap; overflow: hidden; }
.topbar .tb-search span { font-size: 24px; }
.tb-restart { color: #FFD2CE; border-color: rgba(255,90,77,.4) !important; }
body[data-screen="search"] .tb-search { visibility: hidden; }

/* -------------------------------- home ----------------------------------
   Built to be seen from across a show hall: a drifting aurora, slow light
   rays, twinkling stars, a foil-shimmer title and holographic game tiles.
   Everything animates transform/opacity/background-position only, so an
   iPad keeps it smooth all day. */
.home { overflow: hidden; background: radial-gradient(1100px 800px at 50% 110%, #2B1B6E 0%, transparent 60%); }
.home-glow {
  position: absolute; inset: -25%;
  background: conic-gradient(from 200deg at 50% 50%, rgba(242,193,78,.35), rgba(59,91,217,.45), rgba(123,97,255,.45),
    rgba(255,90,140,.3), rgba(62,207,160,.3), rgba(242,193,78,.35));
  filter: blur(70px); animation: drift 16s linear infinite;
}
.home::before { /* slow-turning light rays behind everything */
  content: ''; position: absolute; left: 50%; top: 42%; width: 240vmax; height: 240vmax; margin: -120vmax 0 0 -120vmax;
  background: repeating-conic-gradient(from 0deg, rgba(255,255,255,.07) 0deg 6deg, transparent 6deg 18deg);
  animation: drift 60s linear infinite; pointer-events: none;
}
@keyframes drift { to { transform: rotate(360deg); } }
.sparkles { position: absolute; inset: 0; pointer-events: none; }
.sparkles i {
  position: absolute; display: block; opacity: 0;
  background: radial-gradient(circle, #fff 0 18%, #FFE89A 30%, transparent 62%);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  animation: twinkle 3.5s ease-in-out infinite;
}
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(.2) rotate(0deg); } 50% { opacity: 1; transform: scale(1) rotate(45deg); } }
.home-inner {
  position: relative; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: calc(14px + env(safe-area-inset-top)) 36px 20px; gap: 14px;
}
.home-brands { display: flex; align-items: center; gap: 56px; }
.home-brands img { height: clamp(110px, 16vh, 150px); width: auto; filter: drop-shadow(0 8px 22px rgba(0,0,0,.55)); animation: bob 4s ease-in-out infinite; }
.home-brands img + img { animation-delay: -2s; }
@keyframes bob { 50% { transform: translateY(-8px); } }
.home-title { margin: 0; font-family: var(--font-brand); font-weight: 700; font-size: clamp(64px, 10vw, 124px); line-height: .9;
  letter-spacing: -.01em; text-shadow: 0 6px 30px rgba(0,0,0,.45); }
.home-title span {
  display: inline-block; position: relative; text-shadow: none;
  background: linear-gradient(100deg, #FFD65A 0%, #FFF6C8 12%, #F2C14E 24%, #FFB23F 36%, #9EE7FF 50%, #C9A7FF 62%, #FFD1F0 72%, #F2C14E 86%, #FFF6C8 100%);
  background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 18px rgba(242,193,78,.55)); animation: foil 6s linear infinite;
}
@keyframes foil { to { background-position: 300% 0; } }
.home-title span::after { /* a white glint that sweeps across the words */
  content: attr(data-text); position: absolute; inset: 0; color: transparent;
  background: linear-gradient(110deg, transparent 40%, rgba(255,255,255,.95) 50%, transparent 60%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; animation: glint 3.2s ease-in-out infinite;
}
@keyframes glint { 0%, 30% { background-position: 150% 0; } 70%, 100% { background-position: -60% 0; } }
.home-sub { margin: 0; font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; color: #E3E9F8; letter-spacing: .02em; }
.home-promise {
  margin: 0; padding: 14px 34px; border-radius: 99px; font-size: clamp(22px, 2.5vw, 30px); font-weight: 800; color: #062A1B;
  background: linear-gradient(90deg, #5BE7A9, #B8F7D8, #5BE7A9); background-size: 200% 100%;
  box-shadow: 0 0 0 4px rgba(91,231,169,.25), 0 10px 40px rgba(62,207,142,.45);
  animation: foil 5s linear infinite, pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 10px rgba(91,231,169,.12), 0 10px 60px rgba(62,207,142,.7); } }
.home-games { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; width: min(1020px, 100%); margin-top: 8px; }
.game-tile {
  position: relative; overflow: hidden; isolation: isolate; border: 0; border-radius: 32px; min-height: 186px; padding: 18px 26px 16px;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 12px; text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,.55); animation: breathe 3.6s ease-in-out infinite;
}
.game-lorcana { animation-delay: -1.8s; }
@keyframes breathe { 50% { transform: scale(1.025); } }
.game-tile:active { transform: scale(.96); animation: none; }
.game-tile::before { /* spinning holographic rim */
  content: ''; position: absolute; z-index: -2; left: 50%; top: 50%; width: 160%; aspect-ratio: 1; margin: -80% 0 0 -80%;
  background: conic-gradient(#FFD65A, #FF7A6E, #C9A7FF, #7B61FF, #9EE7FF, #5BE7A9, #FFD65A);
  animation: drift 4s linear infinite;
}
.game-tile::after { content: ''; position: absolute; z-index: -1; inset: 6px; border-radius: 27px; }
.game-pokemon::after { background: radial-gradient(120% 90% at 50% 0%, #3A63D9 0%, #1B2F86 45%, #0D1646 100%); }
.game-lorcana::after { background: radial-gradient(90% 70% at 50% 38%, #E9E2FF 0%, #8F7BE0 32%, #2E1B78 70%, #0C0A30 100%); }
.gt-sheen { position: absolute; z-index: 0; inset: 6px; border-radius: 27px; pointer-events: none; overflow: hidden; }
.gt-sheen::before {
  content: ''; position: absolute; inset: -20% -60%;
  background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.18) 44%, rgba(255,255,255,.65) 50%, rgba(255,255,255,.18) 56%, transparent 62%);
  transform: translateX(-70%); animation: sheen 3.2s ease-in-out infinite;
}
.game-lorcana .gt-sheen::before { animation-delay: 1.6s; }
@keyframes sheen { 0%, 45% { transform: translateX(-70%); } 80%, 100% { transform: translateX(70%); } }
.gt-logo { position: relative; z-index: 1; height: 100px; max-width: 88%; object-fit: contain;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,.6)) drop-shadow(0 0 16px rgba(255,255,255,.25)); }
.gt-count { position: relative; z-index: 1; font-size: 20px; font-weight: 800; color: #E3E9F8; }
.gt-tap { position: relative; z-index: 1; padding: 10px 26px; border-radius: 99px; font-size: 20px; font-weight: 900; letter-spacing: .04em;
  background: linear-gradient(180deg, var(--gold), var(--gold-deep)); color: #221600; box-shadow: 0 6px 20px rgba(0,0,0,.4);
  animation: tap 1.6s ease-in-out infinite; }
@keyframes tap { 50% { transform: scale(1.08); box-shadow: 0 6px 30px rgba(242,193,78,.7); } }

/* -------------------------------- sets ---------------------------------- */
.sets-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.set-tile {
  position: relative; overflow: hidden; min-height: 200px; border-radius: 24px; border: 1px solid var(--line);
  padding: 18px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 10px;
  background: radial-gradient(120% 80% at 50% 0%, #22407F 0%, var(--panel) 70%);
}
.set-tile:active { transform: scale(.98); border-color: var(--gold); }
.set-tile .st-logo { position: relative; z-index: 1; height: 100px; width: 100%; display: flex; align-items: center; justify-content: center; }
.set-tile .st-logo img { max-height: 100px; max-width: 100%; object-fit: contain; filter: drop-shadow(0 6px 14px rgba(0,0,0,.55)); }
.set-tile .st-logo img.st-lor { max-height: 70px; }
.set-tile .st-name { position: relative; z-index: 1; font-family: var(--font-brand); font-size: 21px; font-weight: 600; line-height: 1.1; }
.set-tile .st-count { position: relative; z-index: 1; font-size: 16px; font-weight: 700; color: var(--gold); }
.set-tile.no-logo .st-logo { display: none; }
.set-tile.no-logo .st-name { font-size: 30px; margin: auto 0; }
.set-tile .st-art { position: absolute; right: -14px; bottom: -30px; width: 110px; opacity: .4; transform: rotate(12deg);
  border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.5); }
.set-tile.lorcana { background: radial-gradient(120% 80% at 50% 0%, #3E2590 0%, #160C3A 70%); }
.empty { text-align: center; color: var(--slate); font-size: 22px; padding: 60px 20px; }

/* ----------------------------- finish toggle ---------------------------- */
.finish-bar {
  position: sticky; top: -22px; z-index: 5; margin: -22px -26px 20px; padding: 16px 26px;
  display: flex; gap: 12px; background: rgba(7,18,42,.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.finish-bar button {
  flex: 1; height: 72px; border-radius: 20px; border: 2px solid var(--line); background: rgba(255,255,255,.05);
  font-size: 22px; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 10px;
}
.finish-bar button small { font-size: 16px; font-weight: 700; opacity: .7; }
.finish-bar button.on { background: linear-gradient(180deg, var(--gold), var(--gold-deep)); color: #221600; border-color: transparent; }
.finish-bar button.on.fx-reverse, .finish-bar button.on.fx-holo, .finish-bar button.on.fx-foil {
  background: linear-gradient(115deg, #9EE7FF, #C9A7FF 35%, #FFD1F0 55%, #FFF1A8 80%, #9EE7FF);
}
.finish-bar button:disabled { opacity: .35; }

/* -------------------------------- cards --------------------------------- */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(205px, 1fr)); gap: 20px; }
.tile {
  position: relative; display: flex; flex-direction: column; border-radius: 20px; overflow: hidden;
  background: var(--panel); border: 2px solid var(--line);
}
.tile.in { border-color: var(--green); box-shadow: 0 0 0 3px rgba(62,207,142,.25); }
.tile-img { position: relative; display: block; width: 100%; aspect-ratio: 63 / 88; border: 0; padding: 10px 10px 0; background: none; }
.tile-img img, .v-card img { width: 100%; height: 100%; object-fit: contain; border-radius: 10px; background: rgba(255,255,255,.04); }
.tile-img .zoom { position: absolute; top: 16px; left: 16px; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(7,18,42,.7); display: grid; place-items: center; font-size: 18px; }
/* a holo shimmer on anything that isn't a plain card, so the finish reads at a glance */
.shine { position: absolute; inset: 10px 10px 0; border-radius: 10px; pointer-events: none; opacity: 0; mix-blend-mode: color-dodge;
  background: linear-gradient(115deg, transparent 20%, rgba(158,231,255,.55) 38%, rgba(255,209,240,.55) 50%, rgba(255,241,168,.5) 62%, transparent 80%);
  background-size: 250% 250%; animation: shimmer 5s ease-in-out infinite; }
.f-RH .shine, .f-PH .shine, .f-PB .shine, .f-MB .shine, .f-H .shine, .f-F .shine { opacity: .55; }
@keyframes shimmer { 0% { background-position: 100% 0; } 50% { background-position: 0 100%; } 100% { background-position: 100% 0; } }
.tile-info { padding: 10px 14px 4px; min-height: 64px; }
.tile-info .nm { font-weight: 800; font-size: 18px; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile-info .meta { font-size: 14px; color: var(--slate); margin-top: 3px; }
.chip { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 99px; background: rgba(255,255,255,.1); color: #D8E0F5; }
.chip.fx { background: linear-gradient(115deg, #9EE7FF, #C9A7FF 45%, #FFD1F0 70%, #FFF1A8); color: #1B1440; }
.tile-buy { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px 12px; margin-top: auto; }
/* in the basket: the stepper takes its own full-width row so − and + stay big */
.tile-buy .stepper { flex: 1 0 100%; justify-content: space-between; }
.tile-buy .price { font-family: var(--font-brand); font-size: 26px; font-weight: 600; color: var(--gold); }
.add { height: 58px; min-width: 96px; border: 0; border-radius: 16px; font-size: 20px; font-weight: 800;
  background: linear-gradient(180deg, #4F74FF, var(--royal)); color: #fff; }
.add:active { transform: scale(.95); }
.stepper { display: flex; align-items: center; gap: 4px; background: rgba(62,207,142,.15); border-radius: 16px; padding: 4px; }
.stepper button { width: 50px; height: 50px; border: 0; border-radius: 12px; background: rgba(255,255,255,.12); font-size: 26px; font-weight: 800; }
.stepper button:disabled { opacity: .3; }
.stepper b { min-width: 30px; text-align: center; font-size: 22px; }
.left { position: absolute; top: 16px; right: 16px; background: var(--coral); color: #fff; font-weight: 800; font-size: 13px;
  padding: 5px 10px; border-radius: 99px; box-shadow: 0 4px 12px rgba(0,0,0,.4); }
.tile.in .left { display: none; }
.incheck { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; background: var(--green);
  color: #052015; font-weight: 900; font-size: 24px; display: none; place-items: center; box-shadow: 0 4px 12px rgba(0,0,0,.4); }
.tile.in .incheck { display: grid; }

/* -------------------------------- search -------------------------------- */
.search-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 18px; }
#search-input { width: 100%; height: 78px; border-radius: 22px; border: 2px solid var(--gold); background: rgba(255,255,255,.07);
  color: var(--cloud); font-size: 28px; padding: 0 26px; font-family: inherit; outline: none; }
.search-scope { display: flex; gap: 10px; }
.search-scope button { height: 54px; padding: 0 24px; border-radius: 27px; border: 2px solid var(--line); background: rgba(255,255,255,.05);
  font-size: 18px; font-weight: 700; }
.search-scope button.on { background: var(--cloud); color: var(--navy-deep); border-color: transparent; }
.search-hint { color: var(--slate); font-size: 20px; margin: 4px 0 18px; }

/* ------------------------------ basket bar ------------------------------ */
.basket-bar {
  position: fixed; left: 20px; right: 20px; bottom: calc(18px + env(safe-area-inset-bottom)); height: 84px; z-index: 30;
  display: none; align-items: center; gap: 18px; padding: 0 12px 0 26px; border: 0; border-radius: 26px; text-align: left;
  background: linear-gradient(90deg, #1A3C8F, #2B52C8); box-shadow: 0 16px 40px rgba(0,0,0,.55), inset 0 0 0 2px rgba(255,255,255,.15);
}
body[data-screen="sets"] .basket-bar, body[data-screen="cards"] .basket-bar, body[data-screen="search"] .basket-bar { display: flex; }
body.empty-basket .basket-bar { opacity: .0; pointer-events: none; transform: translateY(20px); }
.basket-bar { transition: opacity .2s, transform .2s; }
.basket-bar.bump { animation: bump .35s; }
@keyframes bump { 40% { transform: scale(1.04); } }
.bb-icon { font-size: 36px; }
.bb-text { display: flex; flex-direction: column; }
.bb-text b { font-size: 24px; }
.bb-text small { color: #BFF3DA; font-weight: 700; font-size: 15px; }
.bb-total { margin-left: auto; font-family: var(--font-brand); font-size: 34px; font-weight: 600; }
.bb-go { height: 64px; display: flex; align-items: center; padding: 0 26px; border-radius: 18px; font-size: 21px; font-weight: 800;
  background: linear-gradient(180deg, var(--gold), var(--gold-deep)); color: #221600; }

/* ------------------------------ basket page ----------------------------- */
.panel-wrap { max-width: 900px; margin: 0 auto; }
.basket-lines { display: flex; flex-direction: column; gap: 12px; }
.bline { display: grid; grid-template-columns: 76px 1fr auto auto; align-items: center; gap: 18px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 10px 16px 10px 10px; }
.bline img { width: 76px; aspect-ratio: 63/88; object-fit: contain; border-radius: 6px; }
.bline .nm { font-weight: 800; font-size: 20px; }
.bline .meta { color: var(--slate); font-size: 15px; margin-top: 4px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.bline .lp { font-family: var(--font-brand); font-size: 26px; min-width: 90px; text-align: right; }
.basket-total { margin: 20px 0; padding: 18px 22px; border-radius: 18px; background: rgba(255,255,255,.05); border: 1px solid var(--line); }
.basket-total > div { display: flex; justify-content: space-between; font-size: 22px; padding: 6px 0; }
.basket-total .free { color: var(--green); }
.basket-total .grand { font-size: 32px; font-family: var(--font-brand); border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; }
.basket-total .grand b { color: var(--gold); }
.actions { display: flex; gap: 16px; }
.actions .btn { flex: 1; }
.btn { border: 0; border-radius: 20px; font-weight: 800; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; }
.btn-xl { height: 84px; font-size: 25px; padding: 0 28px; }
.btn-gold { background: linear-gradient(180deg, var(--gold), var(--gold-deep)); color: #221600; }
.btn-ghost { background: rgba(255,255,255,.08); border: 2px solid var(--line); }
.btn-red { background: linear-gradient(180deg, #FF7A6E, #E0392C); color: #fff; }
.notice { background: rgba(255,90,77,.15); border: 2px solid rgba(255,90,77,.5); color: #FFD9D5; border-radius: 16px;
  padding: 16px 20px; font-size: 19px; font-weight: 700; margin: 0 0 16px; }

/* ------------------------------ details form ---------------------------- */
.details h2 { font-family: var(--font-brand); font-size: 40px; margin: 6px 0 4px; }
.details .lede { color: #BFF3DA; font-size: 20px; margin: 0 0 22px; font-weight: 700; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.fields label { display: flex; flex-direction: column; gap: 8px; font-weight: 800; font-size: 17px; color: #D4DCF0; }
.fields label em { font-style: normal; font-weight: 600; color: var(--slate); }
.fields .f-wide { grid-column: 1 / -1; }
.fields input { height: 70px; border-radius: 16px; border: 2px solid var(--line); background: rgba(255,255,255,.07); color: var(--cloud);
  font-size: 24px; padding: 0 20px; font-family: inherit; outline: none; }
.fields input:focus { border-color: var(--gold); background: rgba(255,255,255,.1); }
.fields input.bad { border-color: var(--coral); }
.consent { display: flex; align-items: center; gap: 18px; margin: 22px 0 6px; padding: 18px 20px; border-radius: 18px;
  background: rgba(255,255,255,.05); border: 2px solid var(--line); font-size: 20px; font-weight: 700; }
.consent small { display: block; color: var(--slate); font-weight: 600; font-size: 15px; margin-top: 4px; }
.consent input { position: absolute; opacity: 0; pointer-events: none; }
.consent .tick { flex: none; width: 50px; height: 50px; border-radius: 14px; border: 3px solid var(--slate); display: grid; place-items: center; }
.consent input:checked + .tick { background: var(--green); border-color: var(--green); }
.consent input:checked + .tick::after { content: '✓'; color: #052015; font-size: 32px; font-weight: 900; }
.form-error { color: #FFB3AC; font-size: 20px; font-weight: 800; min-height: 1.3em; }
.details-sum { display: flex; justify-content: space-between; font-size: 22px; margin: 4px 0 18px; padding: 16px 20px; border-radius: 16px;
  background: rgba(242,193,78,.1); border: 1px solid rgba(242,193,78,.4); }
.details-sum b { color: var(--gold); font-family: var(--font-brand); font-size: 28px; }

/* --------------------------------- done ---------------------------------
   One job: tell them where to pay and that their name is all they need. */
.done { background: radial-gradient(900px 600px at 50% 25%, rgba(62,207,142,.22), transparent 70%); }
.done-inner { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; text-align: center; padding: 30px; }
.done-tick { width: 100px; height: 100px; border-radius: 50%; background: var(--green); color: #052015; font-size: 58px; font-weight: 900;
  display: grid; place-items: center; box-shadow: 0 0 0 14px rgba(62,207,142,.2); animation: pop .45s cubic-bezier(.2,1.6,.4,1); }
@keyframes pop { from { transform: scale(.3); opacity: 0; } }
.done-pay { margin: 0; font-family: var(--font-brand); font-size: clamp(58px, 8.5vw, 104px); line-height: 1; }
.done-pay span { color: var(--gold); }
.done-say { margin: 10px 0 0; font-size: 28px; font-weight: 700; color: #D6DDF0; }
.done-name { font-family: var(--font-brand); font-size: clamp(44px, 6vw, 72px); font-weight: 600; line-height: 1.1;
  padding: 14px 44px; border-radius: 24px; background: rgba(255,255,255,.08); border: 3px dashed rgba(242,193,78,.6); max-width: 90vw; }
.done-total { margin: 0; font-size: 26px; color: var(--slate); font-weight: 700; }
.done-total b { color: var(--cloud); font-family: var(--font-brand); font-size: 32px; margin-left: 6px; }
.done-inner .btn { min-width: 300px; margin-top: 8px; }
.done-count { color: var(--slate); font-size: 16px; margin: 0; }

/* subscribe (required) + the club brands under it */
.consent-box { margin: 22px 0 6px; padding: 6px; border-radius: 20px; border: 2px solid var(--line); background: rgba(255,255,255,.04); }
.consent-box .consent { margin: 0; border: 0; background: none; }
.consent-box.bad { border-color: var(--coral); background: rgba(255,90,77,.08); animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
.consent-home { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 4px 16px 14px;
  font-weight: 800; font-size: 18px; color: #C9D2E8; flex-wrap: wrap; }
.consent-home img { height: 76px; width: auto; filter: drop-shadow(0 4px 10px rgba(0,0,0,.5)); }
.min-note { margin: -6px 0 18px; padding: 14px 20px; border-radius: 16px; font-size: 20px; font-weight: 800; text-align: center;
  color: #FFE9B0; background: rgba(242,193,78,.12); border: 2px solid rgba(242,193,78,.5); }
/* -------------------------------- overlays ------------------------------ */
.overlay { position: fixed; inset: 0; z-index: 50; }
.viewer { background: rgba(4,10,24,.97); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; gap: 10px; padding: 30px 20px; touch-action: pan-y; }
.v-close { position: absolute; top: calc(18px + env(safe-area-inset-top)); right: 22px; width: 70px; height: 70px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.12); font-size: 30px; z-index: 2; }
.v-nav { flex: none; width: 84px; height: 140px; border-radius: 22px; border: 0; background: rgba(255,255,255,.08); font-size: 64px; line-height: 1; }
.v-nav:disabled { opacity: .15; }
.v-stage { display: flex; align-items: center; gap: 40px; max-width: 1000px; flex: 1; justify-content: center; }
.v-card { position: relative; height: min(76vh, 640px); aspect-ratio: 63/88; flex: none; }
.v-card img { border-radius: 18px; box-shadow: 0 30px 80px rgba(0,0,0,.7); }
.v-card .shine { inset: 0; border-radius: 18px; }
.v-info { max-width: 380px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.v-info h2 { font-family: var(--font-brand); font-size: 44px; margin: 0; line-height: 1.05; }
.v-info p { margin: 0; font-size: 20px; color: var(--slate); }
.v-info .v-price { font-family: var(--font-brand); font-size: 50px; color: var(--gold); margin-top: 8px; }
.v-info .add { height: 80px; min-width: 260px; font-size: 26px; border-radius: 20px; }
.v-info .stepper button { width: 70px; height: 70px; font-size: 34px; }
.v-info .stepper b { font-size: 30px; min-width: 60px; }
.v-pos { font-size: 16px !important; margin-top: 14px !important; }
.v-card.swipe-l { animation: swl .22s; } .v-card.swipe-r { animation: swr .22s; }
@keyframes swl { from { transform: translateX(60px); opacity: .3; } }
@keyframes swr { from { transform: translateX(-60px); opacity: .3; } }
@media (max-width: 900px), (orientation: portrait) {
  .v-stage { flex-direction: column; gap: 18px; }
  .v-card { height: min(56vh, 560px); }
  .v-info { align-items: center; text-align: center; max-width: 560px; }
  .v-nav { width: 64px; height: 110px; font-size: 48px; }
  .home-games { grid-template-columns: 1fr; }
  .game-tile { min-height: 160px; }
}

.modal-wrap { background: rgba(4,10,24,.8); display: grid; place-items: center; padding: 24px; }
.modal { width: min(640px, 100%); background: linear-gradient(180deg, #1A3470, #10244F); border: 1px solid var(--line); border-radius: 30px;
  padding: 36px; text-align: center; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.modal h2 { font-family: var(--font-brand); font-size: 46px; margin: 0 0 10px; }
.modal p { font-size: 24px; color: #D6DDF0; margin: 0 0 28px; }

.toast { position: fixed; left: 50%; top: calc(var(--top) + 18px); transform: translateX(-50%); z-index: 60;
  background: #102A5E; border: 2px solid var(--gold); color: #fff; font-weight: 800; font-size: 20px; padding: 16px 26px; border-radius: 18px;
  box-shadow: 0 16px 40px rgba(0,0,0,.5); max-width: 90vw; text-align: center; }
.offline { position: fixed; left: 50%; bottom: 8px; transform: translateX(-50%); z-index: 70; background: var(--coral); color: #fff;
  padding: 8px 18px; border-radius: 99px; font-weight: 800; }

@media (max-width: 700px) {
  :root { --top: 76px; }
  .topbar button { height: 52px; padding: 0 14px; font-size: 17px; }
  .tb-back { min-width: 0; }
  .tb-search { display: none; }
  .tb-title span { font-size: 22px; }
  .cards-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .fields { grid-template-columns: 1fr; }
  .bb-go { display: none; }
  .done-ticket { grid-template-columns: repeat(2, auto); }
  .actions { flex-direction: column; }
}

/* card-show price: a genuine 20p off regular cards. The label sits right
   beside the price it explains; the normal price is struck through beneath. */
.show-tag { display: inline-block; padding: 4px 9px; border-radius: 8px; background: linear-gradient(90deg, #FF5A4D, #FF8A3D);
  color: #fff; font-family: var(--font-body); font-size: 11px; font-weight: 900; line-height: 1.15; letter-spacing: .02em;
  text-transform: uppercase; box-shadow: 0 3px 10px rgba(255,90,77,.45); }
.normally { display: block; color: var(--slate); font-family: var(--font-body); font-size: 14px; font-weight: 700; }
.normally s { text-decoration-thickness: 2px; text-decoration-color: rgba(255,90,77,.9); }
.price-wrap { display: flex; flex-direction: column; line-height: 1.05; }
/* a discounted tile gives the price its own full-width row, the button goes beneath */
.price-wrap.deal { flex: 1 0 100%; gap: 3px; }
.deal-row { display: flex; align-items: center; gap: 8px; }
.deal-row .price { color: #FF9C6B; }
.price-wrap.deal ~ .add { flex: 1 0 100%; }
.tile .deal-row .show-tag { max-width: 96px; white-space: normal; text-align: center; }
.bline .lp { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.bline .lp .show-tag { font-size: 10px; }
.v-info .v-price { display: flex; flex-direction: column; gap: 6px; }
.v-info .v-price .deal-row { color: #FF9C6B; gap: 14px; }
.v-info .v-price .show-tag { font-size: 15px; padding: 7px 12px; }
.v-info .v-price .normally { font-size: 20px; }
.basket-total .saving b { color: #FF9C6B; }

/* ---------------- what this screen is for: home steps + note -----------------
   People at shows thought this was for paying for cards from the boxes on the
   table. The three steps say what it is from a walk past; the note says what
   to do about the boxes. */
.home-sub b { color: #FFE08A; }
.home-steps { list-style: none; margin: 4px 0 0; padding: 12px 18px; display: flex; align-items: center; gap: 10px;
  border-radius: 22px; background: rgba(7,18,42,.55); border: 2px solid rgba(255,255,255,.14);
  box-shadow: 0 10px 30px rgba(0,0,0,.35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.home-steps li { display: flex; align-items: center; gap: 12px; text-align: left; }
.home-steps .hs-n { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-brand); font-size: 26px; font-weight: 700; color: #221600;
  background: linear-gradient(180deg, var(--gold), var(--gold-deep)); box-shadow: 0 0 0 4px rgba(242,193,78,.2); }
.home-steps .hs-t b { display: block; font-size: 20px; line-height: 1.15; color: #fff; }
.home-steps .hs-t small { display: block; font-size: 14px; color: #BFF3DA; font-weight: 700; margin-top: 2px; }
.home-steps .hs-arrow { font-size: 34px; font-weight: 800; color: var(--gold); opacity: .8; }
.home-note { margin: 2px 0 0; font-size: 17px; font-weight: 600; color: #C9D2E8; max-width: 980px; }
.home-note b { color: #fff; }

/* How it works (once per customer) */
.modal.how { width: min(760px, 100%); text-align: left; }
.modal.how h2 { text-align: center; }
.how-lede { text-align: center; font-size: 22px !important; margin-bottom: 20px !important; }
.how-steps { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.how-steps li { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-radius: 18px;
  background: rgba(255,255,255,.06); border: 1px solid var(--line); animation: how-in .4s ease-out both; }
.how-steps li:nth-child(2) { animation-delay: .12s; }
.how-steps li:nth-child(3) { animation-delay: .24s; }
@keyframes how-in { from { opacity: 0; transform: translateY(14px); } }
.hw-ic { font-size: 40px; flex: none; }
.hw-n { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-brand);
  font-size: 22px; font-weight: 700; color: #221600; background: linear-gradient(180deg, var(--gold), var(--gold-deep)); }
.how-steps b { display: block; font-size: 24px; }
.how-steps small { display: block; font-size: 17px; color: #C9D2E8; margin-top: 3px; line-height: 1.35; }
.how-note { font-size: 17px !important; color: #FFE9B0 !important; text-align: center; margin: 0 0 20px !important; }
.done-post { margin: 0; font-size: 20px; font-weight: 700; color: #BFF3DA; }
@media (orientation: portrait), (max-width: 900px) {
  .home-steps { flex-direction: column; align-items: stretch; }
  .home-steps .hs-arrow { display: none; }
}
