/* ============================================================
   CLICK A CART — retro casino theme
   Palette: blackout-felt bg, Vegas neon + high-roller gold/red accents
   ============================================================ */
:root {
  --bg:        #0a0806;
  --bg-2:      #14100a;
  --panel:     #1c130c;
  --panel-2:   #26190f;
  --ink:       #f5ecd9;
  --ink-dim:   #b39a6e;

  --cyan:      #22c3ff;
  --magenta:   #ff2e88;
  --yellow:    #ffcc33;
  --green:     #3ddc73;
  --orange:    #ff9f3f;
  --red:       #e0263f;

  --shadow:    #050302;

  --pixel:     'Press Start 2P', monospace;
  --term:      'VT323', monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  margin: 0;
  /* solid fallback; the casino floor gradient lives on the fixed .scene
     layer, which scrolls smoothly on mobile (background-attachment: fixed janks on iOS) */
  background: #0a0806;
  color: var(--ink);
  font-family: var(--term);
  font-size: 20px;
  line-height: 1.5;
  letter-spacing: .5px;
  overflow-x: hidden;
  image-rendering: pixelated;
}

img { image-rendering: pixelated; }
/* the logo is smooth line-art, not pixel blocks — render it crisp & smooth */
img[src$="logo.svg"] { image-rendering: auto; }

h1, h2, h3 { font-family: var(--pixel); line-height: 1.4; }

a { color: var(--cyan); text-decoration: none; }

/* ---------- CRT overlays ---------- */
.crt {
  position: fixed; inset: 0; z-index: 9998; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 62%, rgba(0,0,0,.38) 100%);
}
.scanlines {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0,0,0,0) 0px,
    rgba(0,0,0,0) 2px,
    rgba(0,0,0,.18) 3px,
    rgba(0,0,0,.18) 4px
  );
  opacity: .6;
  animation: flicker 6s infinite steps(60);
}
@keyframes flicker { 0%,97%{opacity:.6} 98%{opacity:.4} 99%{opacity:.7} 100%{opacity:.6} }

/* ---------- Casino floor backdrop ---------- */
.scene {
  position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background-image: linear-gradient(180deg,
    #060403 0%, #12080a 22%, #260b10 40%, #4a0f18 58%, #7a1420 74%, #b8351f 88%, #e0a23f 100%);
}
/* pulsing halo behind the wheel — animates opacity only (GPU-cheap),
   instead of re-rendering drop-shadow filters every frame */
.scene::before {
  content: ""; position: absolute;
  left: 50%; bottom: 8vh;
  width: min(95vw, 820px); aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(255,204,51,.4) 0%, rgba(224,38,63,.25) 45%, transparent 68%);
  animation: glowPulse 7s ease-in-out infinite;
}
@keyframes glowPulse { 0%,100% { opacity: .75; } 50% { opacity: 1; } }
/* soft drifting bokeh — a few big, blurry color blobs for ambient depth
   in the otherwise empty upper half of the backdrop */
.scene::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(120px 120px at 14% 16%, rgba(255,204,51,.14), transparent 70%),
    radial-gradient(100px 100px at 87% 14%, rgba(224,38,63,.14), transparent 70%),
    radial-gradient(130px 130px at 78% 46%, rgba(34,195,255,.10), transparent 70%),
    radial-gradient(90px 90px at 10% 52%, rgba(255,46,136,.10), transparent 70%),
    radial-gradient(110px 110px at 50% 6%, rgba(255,204,51,.10), transparent 70%);
  animation: glowPulse 9s ease-in-out infinite reverse;
}
/* scattered marquee-bulb twinkle across the whole backdrop, not just the hero */
.scene__twinkle {
  position: absolute; inset: 0; opacity: .8;
  background-image:
    radial-gradient(2px 2px at 6% 10%, #ffcc33, transparent),
    radial-gradient(2px 2px at 18% 22%, #fff, transparent),
    radial-gradient(2px 2px at 32% 6%, #e0263f, transparent),
    radial-gradient(2px 2px at 46% 16%, #fff, transparent),
    radial-gradient(2px 2px at 60% 9%, #22c3ff, transparent),
    radial-gradient(2px 2px at 74% 20%, #fff, transparent),
    radial-gradient(2px 2px at 88% 12%, #ff2e88, transparent),
    radial-gradient(2px 2px at 95% 30%, #ffcc33, transparent),
    radial-gradient(2px 2px at 10% 38%, #fff, transparent),
    radial-gradient(2px 2px at 26% 48%, #ffcc33, transparent),
    radial-gradient(2px 2px at 82% 42%, #fff, transparent);
  animation: twinkle 3.4s steps(2) infinite;
}
/* glowing roulette wheel, low on the horizon, alternating red/black pockets
   behind a gold rim — stands in for the old outrun sun */
.scene__sun {
  position: absolute;
  left: 50%; bottom: 6vh;
  width: min(40vw, 340px); aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: repeating-conic-gradient(#e0263f 0deg 9.7deg, #100b09 9.7deg 19.4deg);
  box-shadow: 0 0 0 10px #ffcc33, 0 0 60px 16px rgba(255,204,51,.35);
  filter: drop-shadow(0 0 40px rgba(224,38,63,.4));
  opacity: .55;
}
/* casino floor grid, gold/red neon lines receding to the horizon */
.scene__grid {
  position: absolute; left: 0; right: 0; bottom: 0; height: 30vh;
  background-image:
    repeating-linear-gradient(90deg, rgba(255,204,51,.35) 0 2px, transparent 2px 7vw),
    repeating-linear-gradient(0deg,  rgba(224,38,63,.30) 0 2px, transparent 2px 22px);
  transform: perspective(380px) rotateX(70deg);
  transform-origin: bottom center;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 55%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 55%);
  opacity: .7;
}
/* chip-stack silhouettes flanking the screen — gentle wobble
   (the `rotate` property composes with the mirror transform) */
.palm {
  position: absolute; bottom: -8px;
  width: clamp(150px, 23vw, 320px); height: auto;
  filter: drop-shadow(0 6px 20px rgba(0,0,0,.55));
  opacity: .96;
  transform-origin: 50% 100%;
  animation: palmSway 5.6s ease-in-out infinite alternate;
}
.palm--left  { left: -18px; }
.palm--right { right: -18px; transform: scaleX(-1); animation-duration: 7.1s; }
@keyframes palmSway { from { rotate: -1.3deg; } to { rotate: 1.7deg; } }

@media (max-width: 640px) {
  .scene__sun { bottom: 10vh; width: 56vw; }
  .palm { width: clamp(120px, 38vw, 200px); }
}

/* ---------- Screens / pages ---------- */
.screen[hidden] { display: none !important; }
/* soft fade-up whenever a screen is shown */
.screen { animation: screenIn .32s ease-out; }
@keyframes screenIn { from { opacity: 0; transform: translateY(12px); } }
.screen.start { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; }
body[data-screen="start"] .hud { display: none; }

/* ---------- Cart page (add-to-cart screen) ---------- */
.cartpage { max-width: 760px; margin: 0 auto; padding: 96px 18px 70px; min-height: 100vh; }
.cartpage__head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.cartpage__head .section-title { margin: 0; text-align: left; }
.cartpage__items { list-style: none; margin: 0 0 20px; padding: 4px 18px;
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  border: 4px solid var(--shadow); box-shadow: 0 0 0 4px var(--cyan), 8px 8px 0 4px var(--shadow); }
.cartpage__items:empty { display: none; }
.cartpage__foot { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.cartpage__foot .drawer__total { margin: 0; font-size: 14px; gap: 16px; }
.cartpage__foot .btn { min-width: 220px; text-align: center; }
@media (max-width: 520px) { .cartpage__foot .btn { width: 100%; } }

/* ---------- Checkout form ---------- */
.checkout { margin-top: 6px; padding: 22px 20px 26px;
  background: rgba(20, 13, 8, .82); border: 3px solid var(--shadow);
  box-shadow: 0 0 0 3px rgba(34, 195, 255, .35), 10px 10px 0 3px var(--shadow); }
.checkout[hidden] { display: none; }
.checkout__h { font-size: 12px; color: var(--cyan); margin: 26px 0 14px; text-shadow: 2px 2px 0 var(--shadow); }
.checkout__hint { display: inline-block; font-family: var(--term); font-size: 16px; letter-spacing: .5px;
  text-transform: none; color: var(--yellow); margin-left: 6px; }
.checkout__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 7px; font-family: var(--pixel); font-size: 8px; color: var(--ink-dim); letter-spacing: 1px; }
.field--wide { grid-column: 1 / -1; }
.field input {
  font-family: var(--term); font-size: 19px; color: var(--ink);
  background: #170f08; border: 3px solid var(--shadow); padding: 9px 11px;
}
.field input:focus { outline: 3px solid var(--cyan); outline-offset: 1px; }
.field input.is-invalid { border-color: var(--red); outline: none; box-shadow: 0 0 0 2px var(--red); }
.pwfield { position: relative; display: flex; }
.pwfield input { flex: 1; width: 100%; padding-right: 42px; }
.pwfield__toggle {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  background: transparent; border: none; cursor: pointer; padding: 6px 8px;
  font-size: 17px; line-height: 1; color: var(--ink-dim);
}
.pwfield__toggle:hover, .pwfield__toggle:focus-visible { color: var(--cyan); outline: none; }
.field__hint { font-family: var(--term); font-size: 15px; letter-spacing: .3px;
  text-transform: none; color: var(--ink-dim); }
.field__err { font-family: var(--term); font-size: 16px; letter-spacing: .3px;
  text-transform: none; color: var(--red); min-height: 1em; }
.field__err:empty { display: none; }

/* service-area confirmation */
.areacheck { display: flex; align-items: flex-start; gap: 11px; margin: 18px 0 4px;
  font-family: var(--term); font-size: 18px; line-height: 1.4; color: var(--ink);
  cursor: pointer; }
.areacheck input { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 2px;
  accent-color: var(--green); cursor: pointer; }
.areacheck b { color: var(--yellow); }
#err-area904 { display: block; margin: 2px 0 0 31px; }
#err-area904:empty { display: none; }

.paybtns { display: flex; gap: 14px; flex-wrap: wrap; }
.paybtn { background: var(--panel-2); color: var(--ink);
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--panel-2), 5px 5px 0 6px var(--shadow); }
.paybtn:active { box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--panel-2), 1px 1px 0 6px var(--shadow); }
.paybtn.is-sel { background: var(--green); color: var(--bg);
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--green), 5px 5px 0 6px var(--shadow); }
.pay-note { font-size: 18px; color: var(--yellow); margin: 14px 0 0; min-height: 1.4em; }

.checkout__foot { display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap; margin-top: 26px; }
.checkout__foot .drawer__total { margin: 0; font-size: 14px; gap: 16px; }
.checkout__foot .btn { min-width: 240px; text-align: center; }

.pay-instructions { color: var(--green) !important; font-size: 19px; margin-top: 14px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 560px) {
  .checkout__grid { grid-template-columns: 1fr 1fr; }
  .field--wide { grid-column: 1 / -1; }
  .checkout__foot .btn { width: 100%; }
}

/* ---------- Buttons (chunky pixel) ---------- */
.btn {
  font-family: var(--pixel);
  font-size: 11px;
  color: var(--bg);
  background: var(--yellow);
  border: 0;
  padding: 12px 16px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow:
    0 0 0 3px var(--bg),
    0 0 0 6px var(--yellow),
    6px 6px 0 6px var(--shadow);
  transition: transform .05s ease;
  -webkit-user-select: none; user-select: none;
}
.btn:hover { filter: brightness(1.1); }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--yellow), 2px 2px 0 6px var(--shadow); }
.btn:focus-visible { outline: 3px dashed var(--cyan); outline-offset: 6px; }

.btn--big { font-size: 14px; padding: 16px 22px; background: var(--green);
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--green), 6px 6px 0 6px var(--shadow); }
.btn--big:active { box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--green), 2px 2px 0 6px var(--shadow); }

.btn--ghost { background: transparent; color: var(--cyan);
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--cyan), 6px 6px 0 6px var(--shadow); }
.btn--ghost:active { box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--cyan), 2px 2px 0 6px var(--shadow); }

.btn--cart { background: var(--magenta); font-size: 10px; padding: 10px 14px;
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--magenta), 5px 5px 0 6px var(--shadow); }
.btn--cart:active { box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--magenta), 1px 1px 0 6px var(--shadow); }
.btn--cart.bump { animation: cartBump .35s ease; }
@keyframes cartBump { 30% { transform: scale(1.14) rotate(-3deg); } 65% { transform: scale(.95); } }

.btn--x { background: var(--red); color: var(--ink); font-size: 11px; padding: 8px 12px;
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--red), 4px 4px 0 6px var(--shadow); }

.btn:disabled { filter: grayscale(.7) brightness(.7); cursor: not-allowed; }
.btn:disabled:active { transform: none; }

/* ---------- HUD ---------- */
.hud {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; gap: 16px;
  padding: 10px 18px;
  background: linear-gradient(180deg, #1a0f08, #0a0705);
  border-bottom: 4px solid var(--magenta);
  box-shadow: 0 4px 0 var(--shadow);
  flex-wrap: wrap;
}
.hud__brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.hud__logo { display: block; }
.hud__title { font-family: var(--pixel); font-size: 14px; color: var(--yellow);
  text-shadow: 2px 2px 0 var(--magenta); }
.hud__nav { display: flex; gap: 18px; margin-left: auto; font-family: var(--pixel); font-size: 11px; }
.hud__nav a { color: var(--ink-dim); }
.hud__nav a:hover { color: var(--cyan); text-shadow: 0 0 8px var(--cyan); }
.hud__stats { display: flex; align-items: center; gap: 14px; }
.hud__stat { font-family: var(--pixel); font-size: 11px; color: var(--cyan); white-space: nowrap; }
.hud__stat b { color: var(--ink); }
@media (max-width: 620px) {
  .hud__nav { display: none; }
  .hud { gap: 8px; padding: 10px 12px; flex-wrap: nowrap; justify-content: space-between; }
  .hud__brand { flex: 0 1 auto; min-width: 0; overflow: hidden; }
  .hud__title { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hud__stat { display: none; }                /* hide CB/count/total chips on phones (shown on cart + arcade pages) */
  .hud__stats { flex: 0 0 auto; margin-left: 8px; gap: 8px; }
  .btn--arcade .btn-label, .btn--acct .btn-label, .btn--cart .btn-label { display: none; }   /* icon-only on phones */
  /* all three HUD buttons the exact same size */
  .btn--arcade, .btn--cart, .btn--acct {
    height: 42px; width: 46px; padding: 0; font-size: 16px;
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 0 0 3px var(--bg), 3px 3px 0 3px var(--shadow);
  }
}

/* ---------- HERO ---------- */
.hero { position: relative; padding: 60px 20px 80px; text-align: center; overflow: hidden; }
.hero__stars {
  position: absolute; inset: 0; z-index: 0; opacity: .5;
  background-image:
    radial-gradient(2px 2px at 10% 20%, #fff, transparent),
    radial-gradient(2px 2px at 30% 70%, var(--cyan), transparent),
    radial-gradient(2px 2px at 55% 35%, #fff, transparent),
    radial-gradient(2px 2px at 70% 80%, var(--magenta), transparent),
    radial-gradient(2px 2px at 85% 25%, #fff, transparent),
    radial-gradient(2px 2px at 45% 90%, var(--yellow), transparent),
    radial-gradient(2px 2px at 92% 60%, #fff, transparent);
  animation: twinkle 3s steps(2) infinite;
}
@keyframes twinkle { 50% { opacity: .25; } }
.hero__inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.hero__logo { width: 150px; height: 150px; animation: bob 1.4s steps(2) infinite; filter: drop-shadow(0 4px 8px rgba(5,3,2,.7)); }
@keyframes bob { 50% { transform: translateY(-8px); } }

.hero__title { margin: 18px 0 6px; font-size: clamp(34px, 9vw, 76px);
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero__title-line { color: var(--yellow); text-shadow: 4px 4px 0 var(--magenta), 8px 8px 0 var(--shadow); }
.hero__title-line:nth-child(2) { color: var(--cyan); text-shadow: 4px 4px 0 var(--red), 8px 8px 0 var(--shadow); }

.hero__sub { font-family: var(--pixel); font-size: 12px; color: var(--green); margin: 8px 0 18px; letter-spacing: 2px; }
.hero__blurb { font-size: 22px; color: var(--ink-dim); max-width: 560px; margin: 0 auto 26px; }
.hero__cta { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; }
.hero__coin { font-family: var(--pixel); font-size: 10px; color: var(--cyan); margin-top: 34px; animation: blink 1s steps(2) infinite; }

/* glitch title */
.glitch { position: relative; }
.glitch::before, .glitch::after {
  content: attr(data-text); position: absolute; left: 0; top: 0; width: 100%;
  clip-path: inset(0 0 0 0);
}
.glitch::before { color: var(--cyan); transform: translate(-2px,0); opacity: .0; animation: glitch1 4s steps(2) infinite; }
.glitch::after  { color: var(--magenta); transform: translate(2px,0); opacity: .0; animation: glitch2 5s steps(2) infinite; }
@keyframes glitch1 { 2%,6% { opacity:.7; transform: translate(-3px,1px);} 4% { opacity:0;} }
@keyframes glitch2 { 3%,7% { opacity:.7; transform: translate(3px,-1px);} 5% { opacity:0;} }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; background: var(--magenta); color: var(--bg);
  border-top: 4px solid var(--shadow); border-bottom: 4px solid var(--shadow); padding: 8px 0; }
.marquee__track { display: flex; width: max-content; gap: 40px; font-family: var(--pixel); font-size: 11px;
  animation: scroll-x 22s linear infinite; will-change: transform; }
.marquee__track span { white-space: nowrap; padding-right: 40px; }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ---------- Section headers ---------- */
.section-head { text-align: center; margin: 60px auto 36px; padding: 0 16px; }
.section-title { font-size: clamp(20px, 5vw, 34px); color: var(--cyan);
  text-shadow: 3px 3px 0 var(--shadow), 0 0 22px rgba(34,195,255,.45); margin: 0; }
.section-sub { font-size: 22px; color: var(--ink-dim); margin: 10px 0 0; }

/* ---------- Product grid ---------- */
.shop { max-width: 1120px; margin: 0 auto; padding: 0 18px 40px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 26px; }

.card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 4px solid var(--shadow);
  box-shadow: 0 0 0 4px var(--cyan), 8px 8px 0 4px var(--shadow);
  padding: 18px;
  display: flex; flex-direction: column;
  position: relative;
  transition: transform .18s ease, box-shadow .18s ease;
  animation: cardIn .45s ease-out backwards;
}
.card:nth-child(2) { animation-delay: .09s; }
.card:nth-child(3) { animation-delay: .18s; }
@keyframes cardIn { from { opacity: 0; transform: translateY(18px); } }
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 0 4px var(--cyan), 8px 8px 0 4px var(--shadow), 0 14px 34px rgba(34,195,255,.28);
}
.card:hover .card__art img.brand-logo { transform: scale(1.05); }
.card__art img.brand-logo { transition: transform .25s ease; }
.card__tag { position: absolute; top: -14px; right: 12px; font-family: var(--pixel); font-size: 9px;
  background: var(--yellow); color: var(--bg); padding: 5px 8px; box-shadow: 3px 3px 0 var(--shadow); }
.card__art { background: repeating-conic-gradient(#1a120a 0% 25%, #241a0f 0% 50%) 50% / 24px 24px;
  border: 3px solid var(--shadow); padding: 16px; display: grid; place-items: center; min-height: 150px; }
.card__art svg { width: 120px; height: 120px; filter: drop-shadow(4px 4px 0 var(--shadow)); }
.card__art img.brand-logo { max-width: 100%; max-height: 132px; width: auto; height: auto;
  object-fit: contain; image-rendering: auto; filter: drop-shadow(3px 3px 0 var(--shadow)); }
.card__name { font-size: 13px; margin: 14px 0 4px; color: var(--ink); }
.card__tagline { font-size: 19px; color: var(--ink-dim); margin: 0 0 12px; min-height: 2.4em; }

/* retro stat bars */
.stats { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 6px; }
.stat { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 8px;
  font-family: var(--pixel); font-size: 8px; color: var(--ink-dim); }
.stat__bar { height: 12px; background: #170f08; border: 2px solid var(--shadow); position: relative; }
.stat__fill { display: block; height: 100%; background: var(--green); box-shadow: inset 0 -3px 0 rgba(0,0,0,.3);
  animation: fillIn .7s ease-out backwards; }
.stat:nth-child(2) .stat__fill { animation-delay: .12s; }
.stat:nth-child(3) .stat__fill { animation-delay: .24s; }
@keyframes fillIn { from { width: 0; } }
.stat--spd .stat__fill { background: var(--cyan); }
.stat--cap .stat__fill { background: var(--yellow); }
.stat--arm .stat__fill { background: var(--magenta); }

.card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card__price { font-family: var(--pixel); font-size: 15px; color: var(--yellow); text-shadow: 2px 2px 0 var(--shadow); }
.card__price small { font-size: 9px; color: var(--ink-dim); }
.card__was { font-size: 11px; color: var(--ink-dim); text-shadow: none; text-decoration-color: var(--red); }

/* add-to-cart pop feedback */
.card.added { animation: pop .3s steps(3); }
@keyframes pop { 50% { transform: scale(1.03); } }

/* ---------- How it works ---------- */
.how { max-width: 1000px; margin: 0 auto; padding: 0 18px 50px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step { background: var(--panel); border: 4px solid var(--shadow);
  box-shadow: 0 0 0 4px var(--orange), 7px 7px 0 4px var(--shadow); padding: 22px; text-align: center; }
.step__num { font-family: var(--pixel); font-size: 22px; color: var(--bg); background: var(--orange);
  width: 52px; height: 52px; display: grid; place-items: center; margin: 0 auto 14px; box-shadow: 4px 4px 0 var(--shadow); }
.step h3 { font-size: 12px; color: var(--cyan); margin: 0 0 8px; }
.step p { font-size: 19px; color: var(--ink-dim); margin: 0; }

/* ---------- About ---------- */
.about { max-width: 880px; margin: 0 auto; padding: 30px 18px 60px; }
.about__panel { background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 4px solid var(--shadow); box-shadow: 0 0 0 4px var(--green), 8px 8px 0 4px var(--shadow); padding: 30px; }
.about__panel .section-title { text-align: left; color: var(--green); }
.about__panel p { font-size: 21px; color: var(--ink-dim); }
.about__panel b { color: var(--ink); }
.about__badges { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.badge { font-family: var(--pixel); font-size: 9px; color: var(--bg); background: var(--cyan);
  padding: 8px 10px; box-shadow: 3px 3px 0 var(--shadow); }

/* ---------- Footer ---------- */
.footer { text-align: center; padding: 36px 18px 50px; border-top: 4px solid var(--magenta);
  background: #0a0705; margin-top: 30px; }
.footer p { font-size: 18px; color: var(--ink-dim); margin: 8px 0 0; }
.footer__small { font-size: 15px; color: #7a6a4a; }

/* ---------- Cart drawer ---------- */
.overlay { position: fixed; inset: 0; background: rgba(10,6,4,.7); z-index: 200; backdrop-filter: blur(1px); }
.drawer {
  position: fixed; top: 0; right: 0; z-index: 201; height: 100%;
  width: min(420px, 92vw);
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  border-left: 4px solid var(--cyan); box-shadow: -8px 0 0 var(--shadow);
  display: flex; flex-direction: column;
  transform: translateX(0);
}
.drawer[hidden] { display: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between;
  padding: 18px; border-bottom: 4px solid var(--shadow); }
.drawer__head h2 { font-size: 13px; color: var(--yellow); margin: 0; }
.drawer__items { list-style: none; margin: 0; padding: 14px; overflow-y: auto; flex: 1; }
.drawer__empty { text-align: center; color: var(--ink-dim); padding: 30px 18px; font-size: 20px; }

.line { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center;
  padding: 12px 0; border-bottom: 2px dashed #4a3a20; }
.line__art { width: 48px; height: 48px; background: #1a120a; border: 2px solid var(--shadow); display: grid; place-items: center; }
.line__art svg { width: 36px; height: 36px; }
.line__art img.brand-logo { max-width: 42px; max-height: 42px; object-fit: contain; image-rendering: auto; }
.line__name { font-family: var(--pixel); font-size: 9px; color: var(--ink); }
.line__price { font-size: 18px; color: var(--ink-dim); }
.qty { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.qty button { font-family: var(--pixel); font-size: 10px; width: 26px; height: 26px; cursor: pointer;
  background: var(--panel-2); color: var(--ink); border: 2px solid var(--shadow); }
.qty button:hover { background: var(--magenta); color: var(--bg); }
.qty span { font-family: var(--pixel); font-size: 11px; min-width: 18px; text-align: center; color: var(--yellow); }
.line__rm { font-family: var(--pixel); font-size: 8px; color: var(--red); background: none; border: 0; cursor: pointer; padding: 0; margin-top: 4px; }
.line__rm:hover { text-decoration: underline; }

.drawer__foot { padding: 18px; border-top: 4px solid var(--shadow); }
.drawer__total { display: flex; justify-content: space-between; font-family: var(--pixel);
  font-size: 13px; color: var(--cyan); margin-bottom: 14px; }
.drawer__total b { color: var(--yellow); }
.drawer__foot .btn { width: 100%; text-align: center; }

/* ---------- Receipt modal ---------- */
.modal .modal__box { animation: modalIn .22s ease-out; }
@keyframes modalIn { from { opacity: 0; transform: scale(.93) translateY(10px); } }
.modal { position: fixed; inset: 0; z-index: 300; display: flex; align-items: flex-start; justify-content: center;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  background: rgba(10,6,4,.85); padding: 20px; }
.modal[hidden] { display: none; }
.modal__box { background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 4px solid var(--yellow); box-shadow: 0 0 0 4px var(--shadow), 0 0 40px var(--magenta);
  padding: 36px; text-align: center; max-width: 440px; }
.modal__title { font-size: 20px; color: var(--green); margin: 0 0 10px; }
.modal__big { font-family: var(--pixel); font-size: 26px; color: var(--yellow); margin: 6px 0 16px; text-shadow: 3px 3px 0 var(--shadow); }
.modal__box p { font-size: 20px; color: var(--ink-dim); }
.modal__score { font-family: var(--pixel); font-size: 12px; color: var(--cyan); margin: 16px 0 22px; }
.modal__score b { color: var(--yellow); }

/* ---------- Age gate (21+) — must sit above everything, including the
   scanline overlay, and never let the page show through behind it ---------- */
.agegate { z-index: 10000; background: var(--bg); }
.agegate__logo { font-size: 40px; margin-bottom: 6px; }
.agegate__title { font-size: 17px; color: var(--yellow); margin: 0 0 12px; }
.agegate__sub { font-size: 19px !important; color: var(--ink-dim) !important; margin: 0 0 26px !important; }
.agegate__btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.agegate__btns .btn { width: auto; }
.agegate__blocked { font-size: 20px !important; color: var(--red) !important; margin: 0 !important; }

/* small square close (✕) button — the old .btn--x version carried the
   full chunky pixel-button treatment (triple outline, big padding),
   which read as oversized for a corner dismiss control */
.modal__close { position: absolute; top: -14px; right: -14px;
  width: 32px; height: 32px; padding: 0; display: grid; place-items: center;
  font-family: var(--pixel); font-size: 13px; line-height: 1;
  background: var(--red); color: var(--ink); border: 3px solid var(--shadow);
  cursor: pointer; box-shadow: 2px 2px 0 2px var(--shadow); }
.modal__close:hover { filter: brightness(1.1); }
.modal__close:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 2px var(--shadow); }
.modal__close:focus-visible { outline: 3px dashed var(--cyan); outline-offset: 3px; }

/* ---------- Start sequence overlay ---------- */
.startseq {
  position: fixed; inset: 0; z-index: 10001;
  display: grid; place-items: center;
  background: rgba(12,7,5,.94);
  overflow: hidden;
}
.startseq[hidden] { display: none; }
.startseq.is-on { animation: seqIn .12s steps(2) both; }
.startseq.out   { animation: seqOut .35s steps(3) forwards; }
@keyframes seqIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes seqOut { to { opacity: 0; } }
/* scanlines over the overlay */
.startseq::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(to bottom, transparent 0 2px, rgba(0,0,0,.3) 3px 4px);
}
/* CRT power-on flash */
.startseq.flash::after {
  content: ""; position: absolute; inset: 0; background: #fff;
  animation: seqFlash .18s steps(2) forwards;
}
@keyframes seqFlash { from { opacity: .9; } to { opacity: 0; } }

.startseq__text { font-family: var(--pixel); text-align: center; line-height: 1.2; padding: 0 16px; }
.startseq__text.ready {
  font-size: clamp(28px, 8vw, 60px); color: var(--cyan);
  text-shadow: 4px 4px 0 var(--shadow), 0 0 26px var(--cyan);
  animation: readyPop .3s steps(3) both;
}
.startseq__text.go {
  font-size: clamp(48px, 15vw, 130px); color: var(--yellow);
  text-shadow: 6px 6px 0 var(--shadow), 0 0 34px var(--magenta);
  animation: goPop .3s steps(2) both;
}
@keyframes readyPop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes goPop { 0% { transform: scale(.5); } 55% { transform: scale(1.3); } 100% { transform: scale(1); } }

/* ---------- utility animations ---------- */
.blink { animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .35; } }

/* ---------- Version selector + buy row ---------- */
.card__buy { display: flex; align-items: center; gap: 8px; }
.ver { font-family: var(--pixel); font-size: 8px; color: var(--ink); background: #170f08;
  border: 3px solid var(--shadow); padding: 9px 6px; cursor: pointer;
  flex: 1; min-width: 0; max-width: 140px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ver:focus { outline: 2px solid var(--cyan); }

/* ---------- HUD CartBucks + arcade link ---------- */
.hud__cb { color: var(--yellow); }
.hud__nav-arcade { color: var(--magenta) !important; }
.hud__nav-arcade:hover { color: var(--yellow) !important; text-shadow: 0 0 8px var(--magenta); }

/* always-visible arcade button (works on mobile, where the nav is hidden) */
.btn--arcade { background: var(--green); color: var(--bg); font-size: 10px; padding: 10px 12px;
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--green), 5px 5px 0 6px var(--shadow); }
.btn--arcade:active { box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--green), 1px 1px 0 6px var(--shadow); }

/* big arcade call-to-action on the store page */
.arcade-cta { display: inline-block; margin-top: 18px; font-size: 12px; max-width: 100%; white-space: normal;
  background: var(--magenta); color: var(--bg);
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--magenta), 6px 6px 0 6px var(--shadow); }
.arcade-cta:active { box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--magenta), 2px 2px 0 6px var(--shadow); }

/* ---------- Checkout discount + earned bucks ---------- */
.discount-line { font-family: var(--pixel); font-size: 10px; color: var(--green); margin: 16px 0 0; }
.cb-earned { font-family: var(--pixel); font-size: 11px; color: var(--yellow); margin: 12px 0 0; }
.receipt-note { font-size: 17px !important; color: var(--cyan) !important; margin: 14px 0 10px !important; }
.receipt__row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 0 0 16px; }

/* ---------- Arcade page ---------- */
.arcade { max-width: 900px; margin: 0 auto; padding: 96px 18px 70px; }
.arcade__bal { font-family: var(--pixel); font-size: 16px; color: var(--cyan); text-align: center; margin: 6px 0 0; }
.arcade__bal b { color: var(--yellow); }
.arcade__bal span { font-size: 9px; color: var(--ink-dim); }
.arcade__intro { text-align: center; color: var(--ink-dim); font-size: 19px; max-width: 640px; margin: 12px auto 26px; }
.arcade__sub { font-size: 13px; color: var(--magenta); margin: 38px 0 18px; }

.panel { background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 4px solid var(--shadow); box-shadow: 0 0 0 4px var(--cyan), 8px 8px 0 4px var(--shadow); padding: 22px; }
.panel__h { font-size: 15px; color: var(--yellow); margin: 0 0 16px; text-align: center; text-shadow: 2px 2px 0 var(--shadow); }

/* prize wheel */
.wheel-panel { text-align: center; }
.wheel-wrap { position: relative; width: 320px; max-width: 86vw; margin: 0 auto 18px; }
.wheel-wrap canvas { width: 100%; height: auto; display: block;
  transition: transform 4s cubic-bezier(.17,.67,.16,1); filter: drop-shadow(4px 4px 0 var(--shadow)); }
.wheel-pointer { position: absolute; top: -8px; left: 50%; transform: translateX(-50%);
  z-index: 2; color: var(--yellow); font-size: 30px; line-height: 1; text-shadow: 0 2px 0 var(--shadow); }
.wheel-cost { font-size: 17px; color: var(--ink-dim); margin: 12px 0 0; }
.wheel-result { font-family: var(--pixel); font-size: 12px; color: var(--green); min-height: 1.4em; margin: 12px 0 0; }

/* games grid */
.games { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.game { box-shadow: 0 0 0 4px var(--magenta), 7px 7px 0 4px var(--shadow); }
.game__h { font-size: 12px; color: var(--cyan); margin: 0 0 8px; text-align: center; }
.game__desc { font-size: 17px; color: var(--ink-dim); margin: 0 0 14px; text-align: center; min-height: 2.6em; }
.game__res { font-family: var(--pixel); font-size: 9px; color: var(--yellow); min-height: 1.4em; margin: 12px 0 0; text-align: center; }
.game .btn { display: block; width: 100%; text-align: center; }
.game__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.game__row .btn { width: auto; }

/* leaderboard */
.leaderboard-panel { box-shadow: 0 0 0 4px var(--yellow), 8px 8px 0 4px var(--shadow); max-width: 560px; margin: 0 auto; }
.leaderboard__note { text-align: center; color: var(--ink-dim); font-size: 17px; margin: 0 0 6px; }
.leaderboard__timer { text-align: center; font-family: var(--pixel); font-size: 10px;
  letter-spacing: 1px; color: var(--cyan); margin: 0 0 16px; }
.leaderboard { display: grid; gap: 8px; min-width: 0; }
.leaderboard__row { display: flex; align-items: center; gap: 12px; background: #170f08;
  border: 3px solid var(--shadow); padding: 10px 14px; min-width: 0; }
.leaderboard__row--top { box-shadow: 0 0 0 2px var(--yellow), 0 0 16px rgba(255,204,51,.35); }
.leaderboard__rank { font-family: var(--pixel); font-size: 11px; color: var(--yellow); width: 34px; flex: 0 0 auto; }
.leaderboard__name { font-family: var(--pixel); font-size: 11px; color: var(--ink); flex: 1; min-width: 0; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.leaderboard__score { font-family: var(--pixel); font-size: 11px; color: var(--cyan); flex: 0 0 auto; }
.game__score { font-family: var(--pixel); font-size: 10px; color: var(--ink); }

/* slots */
.slot-reels { display: flex; gap: 10px; justify-content: center; margin-bottom: 14px; }
.slot-reel { width: 64px; height: 64px; display: grid; place-items: center; font-size: 32px;
  background: #170f08; border: 3px solid var(--shadow); box-shadow: 0 0 0 3px var(--yellow); }
.slot-reel.spin { animation: reelSpin .1s linear infinite; }
@keyframes reelSpin { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.slot-bets { display: flex; gap: 10px; justify-content: center; margin-bottom: 14px; flex-wrap: wrap; }
.chip-bet { font-family: var(--pixel); font-size: 10px; width: 50px; height: 50px; border-radius: 50%;
  cursor: pointer; color: var(--ink); background: radial-gradient(circle at 35% 30%, #3a2a10, #1c130c 70%);
  border: 3px dashed var(--yellow); }
.chip-bet.is-sel { background: radial-gradient(circle at 35% 30%, var(--red), #7a1420 70%); border-style: solid; color: #fff; }

/* card table (blackjack + video poker) */
.table-label { text-align: center; font-size: 14px; color: var(--ink-dim); margin: 10px 0 6px; }
.table-total { color: var(--yellow); font-family: var(--pixel); font-size: 12px; }
.card-row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 6px; min-height: 64px; }
.card-face { width: 46px; height: 64px; border-radius: 5px; display: grid; place-items: center;
  font-family: var(--pixel); font-size: 12px; background: var(--ink); color: #1a1a1a;
  border: 2px solid var(--shadow); box-shadow: 2px 2px 0 var(--shadow); }
.card-face.red { color: var(--red); }
.card-face.back { background: repeating-linear-gradient(45deg, #7a1420 0 6px, #1c130c 6px 12px); color: transparent; }
.card-face.lg { width: 62px; height: 86px; font-size: 17px; }
.bj-action-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 10px 0; }
.bj-action-row[hidden] { display: none; }
.bj-action-row .btn { width: auto; flex: 1 1 100px; }
.game .btn[hidden] { display: none; }

/* roulette */
.roulette-display { width: 90px; height: 64px; margin: 0 auto 14px; display: grid; place-items: center;
  font-family: var(--pixel); font-size: 20px; background: #170f08; border: 3px solid var(--shadow);
  box-shadow: 0 0 0 3px var(--yellow); }
.roulette-display.red { color: var(--red); }
.roulette-display.black { color: var(--ink); }
.roulette-display.green { color: var(--green); }
.roulette-picks { display: flex; gap: 8px; justify-content: center; margin-bottom: 10px; flex-wrap: wrap; }
.pick-btn { font-family: var(--pixel); font-size: 9px; padding: 9px 12px; cursor: pointer;
  color: var(--ink); background: var(--panel-2); border: 3px solid var(--shadow); }
.pick-btn.is-sel { box-shadow: 0 0 0 2px var(--yellow); }
.pick-btn--red { color: var(--red); }
.pick-btn--black { color: var(--ink-dim); }
.roulette-numinput { display: block; width: 70px; margin: 0 auto 12px; text-align: center;
  font-family: var(--term); font-size: 19px; color: var(--ink); background: #170f08;
  border: 3px solid var(--shadow); padding: 6px; }

/* speed sort */
.sort-lane { position: relative; height: 190px; margin-bottom: 10px; background: #170f08;
  border: 3px solid var(--shadow); overflow: hidden; }
.sort-lane::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--red); opacity: .6; }
.sort-item { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 44px; height: 44px; }
.sort-item img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(2px 2px 0 var(--shadow)); }
.sort-live { font-family: var(--pixel); font-size: 9px; color: var(--cyan); text-align: center; margin: 0 0 12px; }
.sort-bins { display: flex; gap: 6px; justify-content: center; margin-bottom: 6px; flex-wrap: wrap; }
.sort-bin { display: flex; flex-direction: column; align-items: center; gap: 5px; cursor: pointer;
  background: #170f08; border: 3px solid var(--shadow); box-shadow: 0 0 0 3px var(--yellow);
  padding: 6px 4px; font-family: var(--pixel); font-size: 7px; color: var(--ink); width: 64px;
  transition: box-shadow .15s; }
.sort-bin img { width: 36px; height: 36px; object-fit: contain; }
.sort-bin img.is-big, .sort-item img.is-big { transform: scale(1.18); }
.sort-bin:disabled { opacity: .45; cursor: default; }
.sort-bin.is-hit { box-shadow: 0 0 0 3px var(--green); }
.sort-bin.is-miss { box-shadow: 0 0 0 3px var(--red); }

/* ---------- Account button + auth modal ---------- */
.btn--acct { background: var(--cyan); color: var(--bg); font-size: 10px; padding: 10px 12px;
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--cyan), 5px 5px 0 6px var(--shadow); }
.btn--acct:active { box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--cyan), 1px 1px 0 6px var(--shadow); }

.auth__box { position: relative; max-width: 380px; text-align: center; }
/* every field/button/paragraph the JS drops into #authBody gets one
   consistent gap instead of each element carrying its own margin —
   this is what was reading as "massive and cramped" before */
#authBody { display: flex; flex-direction: column; gap: 16px; text-align: center; }
.auth__title { font-size: 16px; color: var(--cyan); margin: 0; }
.auth__msg { font-size: 17px; color: var(--yellow); min-height: 1.2em; margin: 0; }
.auth__msg:empty { min-height: 0; }
.auth__field { text-align: left; margin: 0; }
.auth__box .btn { width: 100%; text-align: center; margin: 0; }
.auth__switch { font-size: 17px; color: var(--ink-dim); margin: 0; }
.auth__switch a { color: var(--cyan); }
.auth__email { font-size: 18px; color: var(--ink); margin: 0; word-break: break-all; }
.cb-badge { align-self: center; display: inline-flex; align-items: baseline; gap: 9px;
  font-family: var(--pixel); font-size: 18px; color: var(--yellow);
  background: linear-gradient(180deg, #26190f, #170f08);
  border: 3px solid var(--shadow); padding: 12px 20px;
  box-shadow: 0 0 0 3px var(--yellow), 4px 4px 0 3px var(--shadow), 0 0 22px rgba(255,204,51,.3); }
.cb-badge b { font-size: 22px; color: #fff; }
.cb-badge span { font-size: 10px; letter-spacing: 1px; }

/* the LOG IN / CREATE ACCOUNT / ADMIN DASHBOARD buttons use .btn--big
   site-wide (checkout, wheel, etc. still want that full-size CTA) —
   but inside this ~380px modal that size read as oversized, so shrink
   just the modal's copy of it here */
#authBody .btn--big { font-size: 12px; padding: 13px 18px;
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--green), 5px 5px 0 4px var(--shadow); }
#authBody .btn--big:active { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--green), 2px 2px 0 4px var(--shadow); }

/* compact button — flatter single shadow instead of the chunky triple
   outline, for tight rows (account panel, admin dashboard) where
   several buttons sit side by side and the full pixel-art halo reads
   as crowded */
.btn--compact { font-size: 10px; padding: 8px 12px; box-shadow: 3px 3px 0 2px var(--shadow); }
.btn--compact:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 2px var(--shadow); }
.admin__msgback { margin-bottom: 4px; }

/* ---------- Admin page ---------- */
.adminpage { max-width: 760px; margin: 0 auto; padding: 96px 18px 70px; min-height: 100vh; }
.adminpage .cartpage__head .section-title { color: var(--magenta); }
.admin__status { font-family: var(--pixel); font-size: 11px; color: var(--cyan); margin: 0 0 18px; }
.admin__orders { display: grid; gap: 14px; }
.admin__order { background: var(--panel); border: 3px solid var(--shadow);
  box-shadow: 0 0 0 3px var(--magenta), 5px 5px 0 3px var(--shadow); padding: 14px 16px; }
.admin__order--pending { box-shadow: 0 0 0 3px var(--yellow), 5px 5px 0 3px var(--shadow), 0 0 20px rgba(255,204,51,.3); }
.admin__pending { font-size: 16px; color: var(--yellow); margin-top: 10px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.admin__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  font-family: var(--pixel); font-size: 11px; color: var(--ink); }
.admin__row span { color: var(--yellow); }
.admin__meta { font-size: 17px; color: var(--ink-dim); margin-top: 4px; }
.admin__items { font-size: 16px; color: var(--cyan); margin-top: 8px; }
.admin__leader { background: var(--panel); border: 3px solid var(--shadow);
  box-shadow: 0 0 0 3px var(--yellow), 5px 5px 0 3px var(--shadow), 0 0 20px rgba(255,204,51,.3);
  padding: 14px 16px; margin-bottom: 14px; font-size: 17px; color: var(--ink);
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.admin__leader b { color: var(--yellow); }

/* admin tabs (orders / messages / users) */
.admin__tabs { display: flex; gap: 12px; margin: 0 0 20px; flex-wrap: wrap; }
.admin__tab { background: var(--panel-2); color: var(--ink-dim); font-size: 10px; padding: 10px 14px;
  box-shadow: 3px 3px 0 2px var(--shadow); }
.admin__tab.is-sel { background: var(--magenta); color: var(--bg); box-shadow: 3px 3px 0 2px var(--shadow); }
.admin__tab:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 2px var(--shadow); }
.admin__messages { display: grid; gap: 10px; }
.admin__messages[hidden], .admin__orders[hidden] { display: none; }
.admin__thread { background: var(--panel); border: 3px solid var(--shadow);
  box-shadow: 0 0 0 3px var(--cyan), 5px 5px 0 3px var(--shadow); padding: 14px 16px; }

/* messages list — just a name + status per row; click to open the thread */
.admin__msgrow { display: flex; justify-content: space-between; align-items: center; gap: 12px;
  width: 100%; text-align: left; cursor: pointer;
  background: var(--panel); border: 3px solid var(--shadow); color: var(--ink);
  box-shadow: 0 0 0 3px var(--cyan); padding: 13px 16px; font-family: var(--term); }
.admin__msgrow:hover { background: var(--panel-2); }
.admin__msgrow--needsreply { box-shadow: 0 0 0 3px var(--yellow), 0 0 16px rgba(255,204,51,.3); }
.admin__msgrow-name { font-family: var(--pixel); font-size: 12px; }
.admin__msgrow-meta { font-size: 14px; color: var(--ink-dim); white-space: nowrap; }

/* admin: users tab */
.admin__users { display: grid; gap: 14px; }
.admin__users[hidden] { display: none; }
.admin__user { background: var(--panel); border: 3px solid var(--shadow);
  box-shadow: 0 0 0 3px var(--green), 5px 5px 0 3px var(--shadow); padding: 14px 16px; }
.admin__uname { background: none; border: 0; padding: 0; margin: 0; cursor: pointer;
  font-family: var(--pixel); font-size: 11px; color: var(--ink);
  text-decoration: underline; text-underline-offset: 4px; }
.admin__uname:hover, .admin__uname:focus-visible { color: var(--cyan); }
.admin__badge { display: inline-block; font-family: var(--pixel); font-size: 9px; color: var(--bg);
  background: var(--yellow); padding: 3px 6px; margin-left: 6px; vertical-align: middle; }
.admin__discount { font-family: var(--pixel); font-size: 10px; color: var(--yellow); margin-top: 8px; }
.admin__userrow { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 14px; }
.admin__useractions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.admin__cbfield { display: flex; align-items: center; gap: 8px;
  font-family: var(--pixel); font-size: 13px; color: var(--ink-dim); }
.admin__cbinput { width: 90px; font-family: var(--term); font-size: 17px; color: var(--ink);
  background: #170f08; border: 3px solid var(--shadow); padding: 6px 9px; }
.admin__thread-log { display: grid; gap: 8px; margin: 12px 0; max-height: 260px; overflow-y: auto; }

/* ---------- Messaging (chat with the store) ---------- */
.chatfab {
  position: fixed; right: 16px; bottom: 16px; z-index: 250;
  width: 58px; height: 58px; font-size: 26px; line-height: 1; cursor: pointer;
  background: var(--magenta); color: var(--bg);
  border: 3px solid var(--shadow);
  box-shadow: 0 0 0 3px var(--magenta), 4px 4px 0 3px var(--shadow), 0 0 24px rgba(255,46,136,.5);
}
.chatfab { transition: transform .15s ease; }
.chatfab:hover { transform: translateY(-3px); }
.chatfab:active { transform: translate(2px, 2px); box-shadow: 0 0 0 3px var(--magenta), 1px 1px 0 3px var(--shadow); }
body[data-screen="start"] .chatfab { display: none; }

.chatfab__badge {
  position: absolute; top: -4px; right: -4px;
  min-width: 22px; height: 22px; padding: 0 5px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 2px solid var(--bg);
  background: var(--red); color: #fff;
  font-family: Arial, sans-serif; font-weight: 700; font-size: 12px; line-height: 1;
  animation: badgePop .25s ease;
}
.chatfab__badge[hidden] { display: none; }
@keyframes badgePop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.chat__box { position: relative; width: min(94vw, 420px); max-width: 420px; text-align: left; }
.chat__title { font-size: 15px; color: var(--cyan); text-align: center; margin: 0 0 14px; }
.chat__tabs { display: flex; gap: 10px; margin: 0 0 16px; justify-content: center; flex-wrap: wrap; }
.chat__hint { font-size: 17px !important; color: var(--ink-dim); margin: 0 0 12px; }
.chat__hint a { color: var(--cyan); }
.chat__note { font-size: 16px !important; color: var(--yellow); min-height: 1.2em; margin: 0 0 8px; }
.chat__field { text-align: left; margin-bottom: 12px; }
.chat__field textarea {
  font-family: var(--term); font-size: 19px; color: var(--ink); resize: vertical;
  background: #170f08; border: 3px solid var(--shadow); padding: 9px 11px;
}
.chat__field textarea:focus { outline: 3px solid var(--cyan); outline-offset: 1px; }
.chat__send { width: 100%; text-align: center; }
.chat__sent { font-size: 19px !important; color: var(--green); text-align: center; }
.chat__loading { font-size: 17px !important; color: var(--ink-dim); text-align: center; }

.chat__log { display: grid; gap: 8px; max-height: 300px; overflow-y: auto; padding: 4px 2px; margin-bottom: 12px; }
.chat__bub { justify-self: start; max-width: 85%; padding: 8px 12px; font-size: 18px; line-height: 1.35;
  color: var(--ink); background: var(--panel-2); border: 2px solid var(--shadow);
  box-shadow: 0 0 0 2px var(--magenta), 3px 3px 0 2px var(--shadow); }
.chat__bub--you { justify-self: end; box-shadow: 0 0 0 2px var(--cyan), 3px 3px 0 2px var(--shadow); }
.chat__when { display: block; font-size: 13px; color: var(--ink-dim); margin-bottom: 2px; }

/* admin-only: delete button on each bubble in the Messages tab thread view */
.admin__thread-log .chat__bub { position: relative; padding-right: 28px; }
.chat__delbtn { position: absolute; top: 4px; right: 4px; background: none; border: 0; padding: 2px 5px;
  font-size: 13px; line-height: 1; color: var(--ink-dim); cursor: pointer; }
.chat__delbtn:hover { color: var(--red); }
.chat__row { display: flex; gap: 10px; }
.chat__input { flex: 1; min-width: 0; font-family: var(--term); font-size: 19px; color: var(--ink);
  background: #170f08; border: 3px solid var(--shadow); padding: 9px 11px; }
.chat__input:focus { outline: 3px solid var(--cyan); outline-offset: 1px; }

/* ---------- Reviews (Message Us modal) ---------- */
.review-form { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px;
  padding-bottom: 18px; border-bottom: 2px dashed rgba(179,154,110,.25); }
.review-stars { display: flex; gap: 6px; justify-content: center; }
.review-star { background: none; border: 0; padding: 0; margin: 0; cursor: pointer;
  font-size: 30px; line-height: 1; color: var(--ink-dim); }
.review-star.is-on { color: var(--yellow); text-shadow: 0 0 8px rgba(255,204,51,.5); }
.review-body { width: 100%; resize: vertical;
  font-family: var(--term); font-size: 18px; color: var(--ink);
  background: #170f08; border: 3px solid var(--shadow); padding: 9px 11px; }
.review-body:focus { outline: 3px solid var(--cyan); outline-offset: 1px; }
.review-photolabel { font-family: var(--pixel); font-size: 9px; color: var(--ink-dim);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.review-photolabel input { font-family: var(--term); font-size: 14px; color: var(--ink); max-width: 100%; }

.review-summary { display: flex; align-items: center; justify-content: center; gap: 10px;
  flex-wrap: wrap; text-align: center; margin: 0 0 14px; padding: 12px 14px;
  background: linear-gradient(180deg, #26190f, #170f08); border: 3px solid var(--shadow);
  box-shadow: 0 0 0 3px var(--yellow), 0 0 18px rgba(255,204,51,.25); }
.review-summary:empty { display: none; }
.review-summary__stars { color: var(--yellow); font-size: 20px; letter-spacing: 1px; text-shadow: 0 0 8px rgba(255,204,51,.5); }
.review-summary__num { font-family: var(--pixel); font-size: 16px; color: var(--ink); }
.review-summary__meta { font-size: 15px; color: var(--ink-dim); }

.review-list { display: grid; gap: 12px; padding: 2px; }
.review { background: var(--panel-2); border: 2px solid var(--shadow);
  box-shadow: 0 0 0 2px var(--magenta), 3px 3px 0 2px var(--shadow); padding: 14px 16px; }
.review__head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; }
.review__avatar { width: 32px; height: 32px; border-radius: 50%; flex: 0 0 auto;
  display: grid; place-items: center; font-family: var(--pixel); font-size: 13px; color: var(--bg);
  background: radial-gradient(circle at 35% 30%, var(--yellow), #b8860b 70%); border: 2px solid var(--shadow); }
.review__who { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.review__who b { font-family: var(--pixel); font-size: 11px; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.review__stars { color: var(--yellow); font-size: 14px; letter-spacing: 1px; text-shadow: 0 0 6px rgba(255,204,51,.4); }
.review__when { font-size: 13px; color: var(--ink-dim); font-family: var(--term); white-space: nowrap; }
.review__body { font-size: 17px; color: var(--ink-dim); margin-top: 10px; line-height: 1.4; }
.review__photo { display: block; max-width: 100%; max-height: 220px; margin-top: 10px;
  border: 2px solid var(--shadow); border-radius: 6px; }

/* ---------- My orders (account modal) ---------- */
.myorders { text-align: left; margin: 6px 0 16px; }
.myorders__h { font-family: var(--pixel); font-size: 11px; color: var(--cyan); margin: 0 0 10px; }
.myorders__row { display: flex; gap: 10px; align-items: baseline; justify-content: space-between;
  font-size: 16px; color: var(--ink-dim); padding: 6px 0; border-bottom: 2px dashed rgba(179,154,110,.25); }
.myorders__row b { color: var(--yellow); white-space: nowrap; }
.myorders__row span:nth-child(2) { flex: 1; color: var(--ink); }
.myorders__none, .myorders__loading { font-size: 17px !important; color: var(--ink-dim); }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; padding: 30px 18px 60px; }
.faq__list { display: grid; gap: 12px; }
.faq__item { background: rgba(20, 13, 8, .8); border: 3px solid var(--shadow);
  box-shadow: 0 0 0 3px var(--panel-2), 5px 5px 0 3px var(--shadow); }
.faq__item summary { cursor: pointer; list-style: none; padding: 14px 16px;
  font-family: var(--pixel); font-size: 11px; color: var(--yellow); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item[open] summary { color: var(--cyan); }
.faq__item p { margin: 0; padding: 0 16px 16px; font-size: 18px; color: var(--ink-dim); }
.faq__item p b { color: var(--ink); }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; scroll-behavior: auto; }
}
