:root {
  --bg: #ffffff;
  --card: #ffffff;
  --ink: #111111;
  --inv: #ffffff;      /* text on top of --ink surfaces */
  --muted: #7d7d7d;
  --ph: #ececec;
  --body: #222222;     /* long-form text */
  --line: #ffffff;     /* connector lines */
  --fab: #f4f4f4;
  --blue: #9b5de5;     /* lean purple — the secondary */
  --mono: "Archivo", "Helvetica Neue", Arial, sans-serif;   /* long-form body copy */
  --font-ui: "DotGothic16", "Archivo", monospace;             /* CRT on-screen display */
  --font-display: "DotGothic16", monospace;
  --display: "DotGothic16", monospace;
  --hairline: #d8d8dc;
}

body { position: relative; }

/* physical cable layer (canvas, drawn by app.js) */
#cables {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

header, main, .related { position: relative; z-index: 1; }

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .04em;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
::selection { background: #9b5de5; color: #fff; }

/* faint CRT scanlines over every page */
.scanlines {
  position: fixed;
  inset: 0;
  z-index: 400;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(155, 93, 229, .022) 0 1px, transparent 1px 4px);
  mix-blend-mode: multiply;
}
button { font-family: var(--mono); cursor: pointer; }

/* ---------- OSD label — text the TV draws itself ---------- */
.tab-chip {
  background: none;
  border: none;
  padding: 6px 10px;
  font-family: var(--font-ui);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: color .12s, background .12s, text-shadow .12s;
}
.tab-chip:hover {
  color: var(--blue);
  text-shadow: 0 0 8px rgba(155, 93, 229, .55);
}

.card {
  background: var(--card);
  border: 1px solid var(--hairline);
  /* viewfinder crop marks in the corners */
  background-image:
    linear-gradient(var(--ink), var(--ink)), linear-gradient(var(--ink), var(--ink)),
    linear-gradient(var(--ink), var(--ink)), linear-gradient(var(--ink), var(--ink)),
    linear-gradient(var(--ink), var(--ink)), linear-gradient(var(--ink), var(--ink)),
    linear-gradient(var(--ink), var(--ink)), linear-gradient(var(--ink), var(--ink));
  background-repeat: no-repeat;
  background-size: 12px 2px, 2px 12px, 12px 2px, 2px 12px, 12px 2px, 2px 12px, 12px 2px, 2px 12px;
  background-position: top left, top left, top right, top right,
                       bottom left, bottom left, bottom right, bottom right;
}

/* ---------- photo placeholder ---------- */
.ph-img {
  width: 100%;
  height: 100%;
  background:
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(0,0,0,.03) 14px 28px),
    var(--ph);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ph-img.art { background: #fdfdfd; }
.ph-img.photo { background: #fdfdfd; }
.ph-img.photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: auto;
  display: block;
  padding: 14px 0;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, .22));
}
.ph-img.photo.big img { object-fit: contain; padding: 18px; }
.no-signal {
  grid-column: 1 / -1;
  padding: 80px 0;
  text-align: center;
  font-family: var(--font-ui);
  font-size: 15px;
  letter-spacing: .3em;
  color: var(--muted);
}
.ph-img.art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
  display: block;
}
.ph-img span {
  font-size: 9px;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--muted);
  padding: 4px 10px;
}

/* ---------- header ---------- */
header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 16px 28px;
  position: relative;
  z-index: 10;
}
header .tab-chip { color: var(--ink); }
header .tab-chip:hover { color: var(--blue); }
body.home header .tab-chip { color: #f4f4f8; }

.logo { display: block; }
.logo img { height: 44px; width: auto; display: block; transition: transform .2s cubic-bezier(.2, .8, .2, 1); }
.logo:hover img { transform: rotate(-6deg) scale(1.08); }

nav.center { display: flex; gap: 6px; justify-self: center; }
nav.center { gap: 22px; }

.header-right { display: flex; gap: 18px; justify-self: end; align-items: center; }
.osd-clock {
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--muted);
  text-transform: uppercase;
}
body.home .osd-clock { color: #d7d7de; }

/* ---------- shop grid (index) ---------- */
.shop-wrap { padding: 60px 28px; }
/* empty categories must not pull the footer up mid-screen */
body.grain .shop-wrap {
  min-height: calc(100vh - 130px);
  min-height: calc(100svh - 130px);
}

.shop-title {
  font-family: var(--font-ui);
  font-size: 12px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 56px 48px;
}

/* category filter */
.filters { display: flex; gap: 6px; margin-bottom: 30px; flex-wrap: wrap; }
.filters .tab-chip { border: none; cursor: pointer; }
.filters .tab-chip.active { background: var(--ink); color: var(--inv); }
.filters .tab-chip.active:hover { background: var(--blue); }

.product-card { display: block; }
.product-card .ph {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid rgba(20, 20, 24, .35);
  transition: transform .25s ease;
  position: relative;
}
.product-card .ph::after {
  content: '';
  position: absolute;
  inset: 6px;
  pointer-events: none;
  background-image:
    linear-gradient(var(--ink), var(--ink)), linear-gradient(var(--ink), var(--ink)),
    linear-gradient(var(--ink), var(--ink)), linear-gradient(var(--ink), var(--ink)),
    linear-gradient(var(--ink), var(--ink)), linear-gradient(var(--ink), var(--ink)),
    linear-gradient(var(--ink), var(--ink)), linear-gradient(var(--ink), var(--ink));
  background-repeat: no-repeat;
  background-size: 14px 2px, 2px 14px, 14px 2px, 2px 14px, 14px 2px, 2px 14px, 14px 2px, 2px 14px;
  background-position: top left, top left, top right, top right,
                       bottom left, bottom left, bottom right, bottom right;
}
.product-card:hover .ph { transform: translateY(-4px); }

.product-meta {
  font-family: var(--font-ui);
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  text-transform: uppercase;
}
.product-meta .price {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--ink);
  white-space: nowrap;
}

.badge {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--ink);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-top: 6px;
}
.badge::before {
  content: '● ';
  color: var(--blue);
  animation: rec-blink 1.4s steps(2) infinite;
}
@keyframes rec-blink { 50% { opacity: .15; } }

/* ---------- product detail page ----------
   Layout is a 3-column grid (info | photo | buy) so nothing
   depends on hard-coded pixel offsets. */
.pdp {
  display: grid;
  grid-template-columns: minmax(260px, 300px) 1fr minmax(260px, 300px);
  align-items: center;
  gap: 28px;
  padding: 24px 40px 24px;
  min-height: calc(100vh - 148px);
  position: relative;
}

.back {
  position: absolute;
  left: 40px;
  top: 20px;
  font-size: 20px;
  z-index: 3;
}

/* center photo */
.model {
  justify-self: center;
  height: min(74vh, 720px);
  aspect-ratio: 1 / 2;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 14px,
                     100% 100%, 16px 100%, 0 calc(100% - 14px));
  overflow: hidden;
}

/* left column: info card + thumbs */
.left-col { display: flex; flex-direction: column; gap: 14px; }

.info-card {
  padding: 20px 22px 24px;
  font-size: 11px;
  position: relative;
}

.info-head { position: relative; margin-bottom: 18px; }
.info-head .name { text-transform: uppercase; line-height: 1.6; }
.info-head .price { margin-top: 4px; }
.info-head .preorder-tag {
  position: absolute;
  right: -6px;
  bottom: 0;
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
}

/* description — always visible, no toggle */
.desc-label {
  padding: 8px 0 2px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.desc-body {
  padding: 2px 0 12px;
  font-family: var(--mono);
  font-size: 13.5px;
  letter-spacing: 0;
  line-height: 1.45;
  color: var(--body);
}

.acc-btn {
  width: 100%;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.acc-btn .pm { color: var(--muted); }
.acc-body {
  display: none;
  padding: 2px 0 12px;
  font-family: var(--mono);
  font-size: 13.5px;
  letter-spacing: 0;
  line-height: 1.45;
  color: var(--body);
}
.acc.open .acc-body { display: block; }

.thumbs { display: flex; gap: 8px; }
.thumbs .t {
  width: 44px;
  height: 44px;
  border: 1px solid transparent;
  overflow: hidden;
}
.thumbs .t.active { border-color: var(--ink); }
.thumbs .t .ph-img.art { background: #fdfdfd; }
.ph-img.photo { background: #fdfdfd; }
.ph-img.photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: auto;
  display: block;
  padding: 14px 0;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, .22));
}
.ph-img.photo.big img { object-fit: contain; padding: 18px; }
.no-signal {
  grid-column: 1 / -1;
  padding: 80px 0;
  text-align: center;
  font-family: var(--font-ui);
  font-size: 15px;
  letter-spacing: .3em;
  color: var(--muted);
}
.ph-img.art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
  display: block;
}
.ph-img span { display: none; }

/* right column: buy card */
.buy-card {
  padding: 18px 20px 20px;
  position: relative;
}

.buy-card .label {
  font-size: 11px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.sizes { display: flex; gap: 6px; }
.size-btn {
  flex: 1;
  background: var(--card);
  border: 1px solid var(--ink);
  padding: 9px 0;
  font-family: var(--font-ui);
  font-size: 12px;
}
.size-btn.active, .size-btn:hover { background: var(--ink); color: var(--inv); }

.size-note {
  margin-top: 10px;
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
}
.size-note a { text-decoration: underline; }

.buy-row { display: flex; gap: 6px; margin-top: 14px; }
.preorder-btn {
  flex: 1;
  background: var(--ink);
  color: var(--inv);
  border: 2px solid var(--ink);
  font-family: var(--font-ui);
  font-size: 13px;
  text-transform: uppercase;
  padding: 12px 0;
  letter-spacing: .12em;
}
.preorder-btn:hover { opacity: .85; }

.pay-note {
  margin-top: 10px;
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
}
.pay-note b { color: var(--ink); }
.pay-note a { text-decoration: underline; }


/* ---------- footer — black OSD bar (hidden for now) ---------- */
.site-footer {
  display: none !important;
}
.site-footer-off {
  position: relative;
  z-index: 8;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px 28px;
  border-top: 1px solid rgba(20, 20, 24, .18);
  font-family: var(--font-ui);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.site-footer .foot-links { display: flex; gap: 10px; }
.site-footer a,
.site-footer .foot-copy {
  display: inline-block;
  background: #ffffff;
  border: 1px solid var(--ink);
  color: var(--ink);
  padding: 8px 14px;
  font-size: 11px;
  transition: background .15s, color .15s, border-color .15s;
}
.site-footer a:hover { background: var(--blue); border-color: var(--blue); color: #fff; }

@media (max-width: 640px) {
  .site-footer { flex-direction: column; align-items: flex-start; gap: 12px; padding: 22px 16px; }
}

/* ---------- responsive ---------- */
@media (max-width: 1060px) {
  .pdp {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 20px;
    padding: 24px 20px 40px;
  }
  .pdp .model { height: 56vh; order: -1; }
  .left-col, .buy-card { width: min(100%, 420px); }
  .info-card::after, .buy-card::before { display: none; }
}

@media (max-width: 640px) {
  header { grid-template-columns: 1fr; row-gap: 10px; padding: 16px 16px 0; }
  nav.center, .header-right { justify-self: start; flex-wrap: wrap; }
  .shop-wrap { padding: 32px 16px; }
}

/* ================= P3R-style transitions ================= */

/* full-screen wipe: skewed panels sweeping vertically */
.wipe {
  position: fixed;
  top: 0;
  left: -12%;
  width: 124%;
  height: 100%;
  z-index: 100;
  display: flex;
  pointer-events: none;
  transform: skewX(-12deg);
}
.wipe i { flex: 1; background: #111; transform: translateY(-103%); will-change: transform; }
.wipe i:nth-child(2) { background: #333; }
.wipe i:nth-child(4) { background: #f4f4f4; }

/* leaving: panels slam down, staggered */
html.leaving .wipe i { animation: wipe-in .38s cubic-bezier(.75, 0, .2, 1) forwards; }
html.leaving .wipe i:nth-child(1) { animation-delay: 0s; }
html.leaving .wipe i:nth-child(2) { animation-delay: .05s; }
html.leaving .wipe i:nth-child(3) { animation-delay: .10s; }
html.leaving .wipe i:nth-child(4) { animation-delay: .15s; }
html.leaving .wipe i:nth-child(5) { animation-delay: .20s; }
@keyframes wipe-in { to { transform: translateY(0); } }

/* entering: panels start covering, sweep away */
html.entering .wipe i { transform: translateY(0); animation: wipe-out .5s cubic-bezier(.7, 0, .25, 1) forwards; }
html.entering .wipe i:nth-child(1) { animation-delay: .05s; }
html.entering .wipe i:nth-child(2) { animation-delay: .11s; }
html.entering .wipe i:nth-child(3) { animation-delay: .17s; }
html.entering .wipe i:nth-child(4) { animation-delay: .23s; }
html.entering .wipe i:nth-child(5) { animation-delay: .29s; }
@keyframes wipe-out { to { transform: translateY(103%); } }

/* content entrance: kinetic slide-in with skew overshoot */
@keyframes rise {
  0%   { opacity: 0; transform: translateY(34px) skewY(1.6deg); }
  70%  { opacity: 1; transform: translateY(-4px) skewY(-.4deg); }
  100% { opacity: 1; transform: none; }
}
@keyframes slide-l {
  0%   { opacity: 0; transform: translateX(-60px) skewX(-6deg); }
  70%  { opacity: 1; transform: translateX(6px) skewX(1.5deg); }
  100% { opacity: 1; transform: none; }
}
@keyframes slide-r {
  0%   { opacity: 0; transform: translateX(60px) skewX(6deg); }
  70%  { opacity: 1; transform: translateX(-6px) skewX(-1.5deg); }
  100% { opacity: 1; transform: none; }
}

header .logo        { animation: rise .45s .30s both cubic-bezier(.2, .8, .2, 1); }
nav.center .tab-chip     { animation: rise .45s .38s both cubic-bezier(.2, .8, .2, 1); }
.header-right .tab-chip:nth-child(1) { animation: rise .45s .44s both cubic-bezier(.2, .8, .2, 1); }
.header-right .tab-chip:nth-child(2) { animation: rise .45s .50s both cubic-bezier(.2, .8, .2, 1); }

.pdp .left-col { animation: slide-l .55s .40s both cubic-bezier(.2, .8, .2, 1); }
.pdp .model    { animation: rise .6s .32s both cubic-bezier(.2, .8, .2, 1); }
.pdp .buy-card { animation: slide-r .55s .48s both cubic-bezier(.2, .8, .2, 1); }
.pdp .back     { animation: slide-l .45s .55s both cubic-bezier(.2, .8, .2, 1); }

.shop-title { animation: slide-l .5s .35s both cubic-bezier(.2, .8, .2, 1); }

/* ---------- channel switch — leaned-out glitch tune-in ---------- */
.grid .product-card { animation: chan-in .42s steps(5) both; }
.grid .product-card:nth-child(1) { animation-delay: .02s; }
.grid .product-card:nth-child(2) { animation-delay: .09s; }
.grid .product-card:nth-child(3) { animation-delay: .16s; }
.grid .product-card:nth-child(4) { animation-delay: .23s; }
.grid .product-card:nth-child(n+5) { animation-delay: .3s; }
@keyframes chan-in {
  0% {
    opacity: 0;
    transform: translateX(-10px) skewX(-8deg);
    clip-path: inset(0 0 82% 0);
    filter: saturate(0) contrast(1.6)
            drop-shadow(5px 0 0 rgba(155, 93, 229, .8))
            drop-shadow(-5px 0 0 rgba(120, 200, 255, .5));
  }
  38% {
    opacity: 1;
    transform: translateX(7px) skewX(4deg);
    clip-path: inset(30% 0 22% 0);
  }
  64% {
    transform: translateX(-4px) skewX(-2deg);
    clip-path: inset(0 0 6% 0);
    filter: drop-shadow(3px 0 0 rgba(155, 93, 229, .55));
  }
  100% {
    transform: none;
    clip-path: inset(0);
    filter: none;
  }
}
.grid.out .product-card {
  animation: chan-out .2s steps(3) both;
}
@keyframes chan-out {
  40% { transform: translateX(8px) skewX(-6deg); clip-path: inset(24% 0 30% 0); opacity: .7;
        filter: saturate(0) drop-shadow(-4px 0 0 rgba(155, 93, 229, .7)); }
  100% { transform: translateX(-14px) skewX(8deg); clip-path: inset(48% 0 48% 0); opacity: 0;
         filter: saturate(0); }
}

/* related products under the PDP */
.related { padding: 6px 40px 70px; }
.related .shop-title { animation: none; }

/* OSD hovers — invert, don't dance */
.size-btn, .preorder-btn { transition: background .12s, color .12s, opacity .12s; }
.preorder-btn:hover { background: var(--blue); opacity: 1; }

/* ================= bag drawer ================= */
.bag-scrim {
  position: fixed;
  inset: 0;
  background: rgba(15, 13, 10, .45);
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.bag-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(370px, 92vw);
  background: #e9e9eb url() ;
  background: #e9e9eb;
  color: var(--ink);
  z-index: 61;
  padding: 26px 24px;
  transform: translateX(105%);
  transition: transform .62s cubic-bezier(.2, .9, .25, 1);
  border-left: 1px solid rgba(20, 20, 24, .25);
  display: flex;
  flex-direction: column;
  font-family: var(--font-ui);
}
/* the same fine grain the pages wear */
.bag-drawer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-conic-gradient(rgba(0, 0, 0, .022) 0% 25%, transparent 0% 50%);
  background-size: 4px 4px;
  pointer-events: none;
}
/* the girl waiting at the bottom of the bag — off air, the bunny took over */
.bag-drawer::after {
  content: '';
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 104px;               /* lifted above the total bar — hips stay in view */
  height: 62%;
  background: url(bag-girl.png) no-repeat bottom right 8px / auto 100%;
  image-rendering: pixelated;
  opacity: .55;
  pointer-events: none;
}
body.bag-open .bag-drawer { transform: none; }
body.bag-open .bag-scrim { opacity: 1; pointer-events: auto; }

/* the mascot fills the bottom of the bag — blown up, legs cut by the total bar */
.bag-mascot-wrap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 104px;
  height: 58%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.bag-mascot {
  position: absolute;
  left: 50%;
  bottom: -26%;
  transform: translateX(-50%);
  width: 84%;
  height: auto;
}

/* tap feedback — everything squashes a little under the finger */
.add-cart, .preorder-btn, .tab-chip, .bag-checkout, .qty-btn, .size-btn {
  transition: transform .1s ease, background .12s, color .12s, border-color .12s;
}
.add-cart:active, .qty-btn:active { transform: scale(.9); }
.preorder-btn:active, .bag-checkout:active { transform: scale(.97); }
.tab-chip:active, .size-btn:active { transform: scale(.93); }
.filters .tab-chip.active { animation: chip-pop .28s cubic-bezier(.3, 1.6, .4, 1); }
@keyframes chip-pop { 0% { transform: scale(.8); } 100% { transform: scale(1); } }

/* filters tune in from below */
.filters { animation: rise .5s .05s both; }

/* the gothic menu builds up piece by piece */
.mobile-menu .menu-title,
.mobile-menu > a,
.mobile-menu .menu-foot {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .38s ease, transform .38s cubic-bezier(.2, .8, .2, 1);
}
.mobile-menu.open .menu-title { opacity: 1; transform: none; transition-delay: .1s; }
.mobile-menu.open > a { opacity: 1; transform: none; }
.mobile-menu.open > a:nth-of-type(1) { transition-delay: .18s; }
.mobile-menu.open > a:nth-of-type(2) { transition-delay: .26s; }
.mobile-menu.open > a:nth-of-type(3) { transition-delay: .34s; }
.mobile-menu.open .menu-foot { opacity: 1; transform: none; transition-delay: .42s; }

/* add-to-cart celebration — bag-heads pop around the button */
.burst-head {
  position: fixed;
  z-index: 400;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

/* the BUNNY switch in the header — glows softly, asking to be pressed */
.bunny-chip {
  color: var(--blue);
  cursor: pointer;
  animation: bunny-glow 2.2s ease-in-out infinite;
}
.bunny-chip.on { background: var(--blue); color: #fff; animation: none; }
@keyframes bunny-glow {
  0%, 100% { text-shadow: 0 0 4px rgba(155, 93, 229, .25); }
  50%      { text-shadow: 0 0 12px rgba(155, 93, 229, .85); }
}

/* the mascot drifting around the product page */
.fly-bunny {
  position: fixed;
  left: 0;
  top: 0;
  width: 92px;
  height: auto;
  z-index: 60;
  cursor: pointer;
  will-change: transform;
  transition: filter .35s;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .18));
}
.fly-bunny.plugged {
  filter: drop-shadow(0 0 6px rgba(155, 93, 229, .9)) drop-shadow(0 0 22px rgba(155, 93, 229, .65));
}

.bag-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .18em;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(20, 20, 24, .25);
  position: relative;
  z-index: 1;
}
.bag-head::before { content: '▪ '; color: var(--blue); }
.bag-close { background: none; border: none; font-size: 16px; color: var(--ink); cursor: pointer; }

.bag-items { flex: 1; overflow-y: auto; padding: 12px 0; position: relative; z-index: 1; }
/* each item in a white notched card, like the description card */
.bag-item {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  margin-bottom: 10px;
  animation: slide-r .4s both cubic-bezier(.2, .8, .2, 1);
  background: #ffffff;
  border: 1px solid rgba(20, 20, 24, .3);
  background-image: none;
}
.bag-item .bi-ph { width: 52px; height: 62px; overflow: hidden; }
.bag-item .bi-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fdfdfd;
  border: 1px solid var(--hairline);
  padding: 3px 1px;
}
.bag-item .bi-ph .ph-img.art { background: #fdfdfd; }
.ph-img.photo { background: #fdfdfd; }
.ph-img.photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: auto;
  display: block;
  padding: 14px 0;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, .22));
}
.ph-img.photo.big img { object-fit: contain; padding: 18px; }
.no-signal {
  grid-column: 1 / -1;
  padding: 80px 0;
  text-align: center;
  font-family: var(--font-ui);
  font-size: 15px;
  letter-spacing: .3em;
  color: var(--muted);
}
.ph-img.art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
  display: block;
}
.ph-img span { display: none; }
.bag-item .bi-name { font-size: 12px; text-transform: uppercase; line-height: 1.5; }
.bag-item .bi-size { color: var(--muted); font-size: 9px; margin-top: 3px; }
.bag-item .bi-right { text-align: right; font-size: 10px; }
.bag-remove { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 9px; text-transform: uppercase; text-decoration: underline; margin-top: 6px; }

.bag-empty { padding: 30px 0; font-size: 11px; text-transform: uppercase; color: var(--muted); letter-spacing: .12em; }

.bag-foot {
  border-top: 1px solid rgba(20, 20, 24, .25);
  padding: 14px 16px 8px;
  margin: 0 -12px;
  position: relative;
  z-index: 1;
  background: rgba(233, 233, 235, .96);
}
.bag-total { font-size: 15px; }

/* cut-out figure at the very bottom of the drawer */
.bag-art {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  opacity: .6;
  pointer-events: none;
  z-index: 0;
}
.bag-total { display: flex; justify-content: space-between; font-size: 13px; text-transform: uppercase; margin-bottom: 12px; letter-spacing: .1em; }
.bag-checkout {
  width: 100%;
  background: var(--ink);
  color: #fff;
  border: none;
  font-family: var(--font-ui);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .14em;
  padding: 13px 0;
  cursor: pointer;
}
.bag-checkout:hover { background: var(--blue); }

/* draggable cards */
.draggable { cursor: grab; }
.draggable:active { cursor: grabbing; }

/* (reduced-motion kill switch removed — the brand moves, always) */

/* ================= skate game ================= */
#game-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  background: rgba(15, 13, 10, .82);
  backdrop-filter: blur(2px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
#game-modal.open { display: flex; }   /* opens instantly ("zrazu") */

.game-shell {
  width: min(920px, 96vw);
  background: var(--bg);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 16px, 100% 100%, 18px 100%, 0 calc(100% - 16px));
  padding: 18px;
  position: relative;
}
.game-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 14px;
}
.game-close { background: none; border: none; font-size: 16px; }

.game-body { display: grid; grid-template-columns: 1fr 240px; gap: 16px; }
@media (max-width: 760px) { .game-body { grid-template-columns: 1fr; } }

/* unloaded placeholder tile */
.game-loader {
  aspect-ratio: 86 / 42;
  background:
    repeating-linear-gradient(45deg, transparent 0 16px, rgba(0,0,0,.04) 16px 32px),
    var(--ph);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  cursor: pointer;
  border: 1px dashed var(--muted);
  padding: 20px;
}
.game-loader:hover { background: var(--card); }
.game-loader.locked { cursor: not-allowed; }
.game-loader.locked:hover { background: var(--ph); }
.game-loader .gl-big { font-size: 15px; text-transform: uppercase; letter-spacing: .12em; }
.game-loader .gl-sub { font-size: 10px; text-transform: uppercase; color: var(--muted); max-width: 320px; line-height: 1.6; }

/* canvas stage */
.game-stage { position: relative; }
.game-stage canvas {
  width: 100%;
  display: block;
  background: var(--bg);
  image-rendering: auto;
}
.game-hud {
  position: absolute;
  top: 10px; left: 12px; right: 12px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  pointer-events: none;
}
.game-trick {
  position: absolute;
  top: 42%; left: 0; right: 0;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink);
  opacity: 0;
  pointer-events: none;
}
.game-trick.show { animation: trickpop .7s ease-out; }
@keyframes trickpop {
  0% { opacity: 0; transform: translateY(14px) scale(.8); }
  25% { opacity: 1; transform: translateY(0) scale(1.05); }
  100% { opacity: 0; transform: translateY(-18px) scale(1); }
}

/* game over card */
.game-over {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, .94);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 20px;
}
.game-over.show { display: flex; }
.game-over .go-title { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; }
.game-over .go-score { font-size: 40px; font-weight: 700; }
.game-over input {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  text-align: center;
  padding: 10px 14px;
  border: 1px solid var(--ink);
  background: var(--card);
  width: min(260px, 80%);
}
.game-over .go-row { display: flex; gap: 8px; }
.game-over button {
  background: var(--ink);
  color: var(--inv);
  border: none;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 11px 18px;
}
.game-over button.ghost { background: none; color: var(--ink); border: 1px solid var(--ink); }

/* leaderboard */
.game-board { font-size: 11px; }
.game-board h4 {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  margin-bottom: 10px;
  font-weight: 400;
}
.game-board ol { list-style: none; }
.game-board li {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid var(--ph);
  text-transform: uppercase;
  font-size: 10px;
}
.game-board li .rank { color: var(--muted); }
.game-board li.me { font-weight: 700; }
.game-controls {
  margin-top: 14px;
  font-size: 9px;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.8;
}
.game-controls b { color: var(--ink); }

/* ================= homepage — the wired channel (WebGL) ================= */
body.home { overflow: hidden; height: 100vh; }

#stage { position: fixed; inset: 0; z-index: 1; }
#stage canvas { display: block; }

body.home header { position: relative; z-index: 10; }
body.home .site-footer { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; border-top: none; }

/* ghost type behind the scene */
.home-type {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 3vw;
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: overlay;
}
.home-type span {
  font-family: var(--display);
  font-size: clamp(48px, 10vw, 160px);
  line-height: .92;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, .75);
  transform: skewX(-8deg);
}
.home-type span:nth-child(2) { margin-left: 5vw; }

/* VSTÚPIŤ — burnt onto the tube, projected from 3D every frame */
.tv-word {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 11;
  border: none;
  cursor: pointer;
  background: var(--ink);
  color: var(--inv);
  font-family: var(--display);
  font-size: clamp(22px, 2.6vw, 38px);
  letter-spacing: .08em;
  padding: 18px 44px 20px;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 14px, 100% 100%, 16px 100%, 0 calc(100% - 14px));
  filter: drop-shadow(0 6px 22px rgba(10, 20, 50, .35));
  transition: background .18s, scale .18s cubic-bezier(.2, .8, .2, 1);
  will-change: transform;
}
.tv-word:hover { background: var(--blue); scale: 1.04; }
.tv-word:active { scale: .95; }
.tv-word .tvw-sub {
  display: block;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  margin-top: 7px;
  opacity: .65;
}
html.tv-arming .tv-word { pointer-events: none; opacity: 0; transition: opacity .3s; }
@keyframes word-flicker {
  0%, 6.5%, 8.5%, 100% { opacity: 1; }
  7%   { opacity: .3; }
  7.8% { opacity: .85; }
  64%  { opacity: 1; }
  65%  { opacity: .7; }
  66%  { opacity: 1; }
}

/* wired whisper, bottom-left */
.home-kana {
  position: fixed;
  left: 30px;
  bottom: 72px;
  z-index: 10;
  font-family: "Zen Kaku Gothic New", var(--mono);
  font-weight: 300;
  font-size: 11px;
  letter-spacing: .34em;
  line-height: 2.1;
  color: #4a6db8;
  text-shadow: 0 0 10px rgba(255,255,255,.8);
  writing-mode: vertical-rl;
  pointer-events: none;
}

/* white flash right before landing in the channel */
.tv-flash {
  position: fixed;
  inset: 0;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  z-index: 300;
  transition: opacity .26s ease;
}
.tv-flash.show { opacity: 1; }

/* ================= grain pages — broadcast paper ================= */
/* on wide screens the muse gets her own column — nothing covers her */
@media (min-width: 1000px) {
  body.grain .shop-wrap { padding-right: min(38vw, 640px); }
  .collection-muse {
    top: auto;
    bottom: -58vh;
    height: 160vh;
    /* the source art is cropped at its left & bottom edge — melt those edges away */
    -webkit-mask-image:
      linear-gradient(90deg, transparent 0, #000 7%),
      linear-gradient(180deg, #000 86%, transparent 98%);
    -webkit-mask-composite: source-in;
    mask-image:
      linear-gradient(90deg, transparent 0, #000 7%),
      linear-gradient(180deg, #000 86%, transparent 98%);
    mask-composite: intersect;
  }
}

#grain {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  image-rendering: pixelated;
}

body.grain .site-footer { margin-top: 46px; }

/* ================= product pages — the lean hallway ================= */
body.dream {
  background: linear-gradient(180deg, #211d29 0%, #322b40 46%, #453a58 72%, #262130 100%);
  background-attachment: fixed;
}
#dreambg { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
#dreambg canvas { display: block; }
body.dream::after {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(115% 90% at 50% 38%, rgba(8, 6, 12, 0) 44%, rgba(8, 6, 12, .5) 100%);
  pointer-events: none;
  z-index: 0;
}
body.dream .back {
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .7);
}

body.dream .related {
  position: relative;
  z-index: 1;
  padding: 30px 40px 60px;
}
body.dream .related .shop-title { color: #d9d3e6; text-shadow: 0 1px 8px rgba(0, 0, 0, .7); }
body.dream .related .product-meta span { color: #e8e4f0; text-shadow: 0 1px 6px rgba(0, 0, 0, .8); }
body.dream .related .product-meta .price { color: #b9aecb; }
body.dream .related .badge { color: #e8e4f0; }
body.dream .related .ph { border-color: rgba(255, 255, 255, .3); }

/* ================= CRT power-on (collection, after the TV) ================= */
.crt-veil {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: #000;
  display: none;
  align-items: center;
  pointer-events: none;
}
.crt-veil i {
  display: block;
  width: 100%;
  height: 3px;
  background: #fff;
  box-shadow: 0 0 30px 6px rgba(255, 255, 255, .9);
  transform: scaleX(0);
}
html.tv-on .crt-veil { display: flex; animation: crt-fade .9s .55s forwards; }
html.tv-on .crt-veil i { animation: crt-line .55s cubic-bezier(.2, .7, .3, 1) forwards; }
@keyframes crt-line {
  0%   { transform: scaleX(0); height: 3px; }
  55%  { transform: scaleX(1); height: 3px; }
  100% { transform: scaleX(1); height: 100vh; opacity: 0; }
}
@keyframes crt-fade { to { opacity: 0; visibility: hidden; } }

/* ================= game page — 3D arena, THAW-style HUD ================= */
body.gamepage { overflow: hidden; background: var(--bg); }
.g3d-wrap { position: fixed; inset: 0; }
.g3d-wrap canvas { display: block; width: 100%; height: 100%; }

.g3d-hud { position: fixed; inset: 0; pointer-events: none; z-index: 10; }

/* SCORE — graffiti marker, top-left */
.hud-score3d {
  position: absolute;
  top: 74px;
  left: 30px;
  font-family: "Sedgwick Ave Display", var(--display);
  font-size: clamp(38px, 5vw, 64px);
  color: #ffffff;
  -webkit-text-stroke: 2px #17181c;
  paint-order: stroke fill;
  text-shadow: 4px 4px 0 rgba(23, 24, 28, .45), 0 0 18px rgba(155, 93, 229, .35);
  transform: rotate(-3deg);
  line-height: 1;
}
.hud-score3d .lbl { display: none; }

/* YOUR TOP SCORE — small line under the live score */
.hud-top3d {
  position: absolute;
  top: calc(74px + clamp(46px, 5.4vw, 72px));
  left: 31px;
  font-family: "Sedgwick Ave Display", var(--display);
  font-size: clamp(17px, 2.1vw, 26px);
  color: #e5323e;
  -webkit-text-stroke: 1px #17181c;
  paint-order: stroke fill;
  text-shadow: 3px 3px 0 rgba(23, 24, 28, .4);
  transform: rotate(-3deg);
  line-height: 1;
}
.hud-top3d b { color: #e5323e; font-size: 1.25em; margin-left: 8px; }

/* DMC-style rank — builds while you shred, rots while you stand */
.g3d-rank {
  position: absolute;
  left: 216px;
  top: calc(74px + clamp(100px, 11.5vw, 148px) - 44px);
  z-index: 6;
  text-align: center;
  font-family: "Sedgwick Ave Display", var(--display);
  pointer-events: none;
  transform: rotate(4deg);
  transition: transform .15s;
}
.g3d-rank b {
  display: block;
  font-size: clamp(40px, 4.5vw, 60px);
  line-height: .9;
  color: #9aa0ad;
  text-shadow: 3px 3px 0 rgba(0, 0, 0, .18);
  transition: color .25s;
}
.g3d-rank span {
  display: block;
  font-family: "Stardos Stencil", var(--font-ui);
  font-size: clamp(10px, 1.1vw, 13px);
  letter-spacing: .3em;
  color: #f4f4f8;
  text-shadow: 1px 1px 0 #17181c, -1px -1px 0 #17181c;
}
.g3d-rank.pop { animation: rank-pop .3s cubic-bezier(.3, 1.7, .4, 1); }
@keyframes rank-pop { 0% { transform: rotate(4deg) scale(1.5); } 100% { transform: rotate(4deg) scale(1); } }
.g3d-rank.r-d b { color: #9aa0ad; }
.g3d-rank.r-c b { color: #5f8fd6; }
.g3d-rank.r-b b { color: #45b06c; }
.g3d-rank.r-a b { color: #e0a63c; }
.g3d-rank.r-s b { color: #d5308f; text-shadow: 4px 4px 0 rgba(155, 93, 229, .4); }
.g3d-rank.r-ss b { color: #9b5de5; text-shadow: 0 0 18px rgba(155, 93, 229, .8), 4px 4px 0 rgba(0, 0, 0, .2); }
.g3d-rank.r-sss b { color: #fff; text-shadow: 0 0 10px #9b5de5, 0 0 30px #d5308f, 4px 4px 0 rgba(0, 0, 0, .3); }

/* board colour pick — three decks before drop-in */
.g3d-pick {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  background: rgba(14, 13, 18, .92);
}
.g3d-pick h3 {
  font-family: "Sedgwick Ave Display", var(--display);
  font-size: clamp(26px, 4vw, 44px);
  color: #f4f4f8;
  text-shadow: 3px 3px 0 rgba(155, 93, 229, .5);
  transform: rotate(-2deg);
}
.g3d-pick .row { display: flex; gap: 18px; }
.g3d-pick button {
  width: 92px;
  height: 150px;
  border: 2px solid #f4f4f8;
  border-radius: 46px;
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: .14em;
  color: #f4f4f8;
  text-transform: uppercase;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 12px;
  transition: transform .15s, box-shadow .15s;
}
.g3d-pick button:hover { transform: translateY(-6px) rotate(-3deg); box-shadow: 0 0 22px rgba(155, 93, 229, .7); }

/* SPECIAL bar under the score */
.hud-special {
  position: absolute;
  top: calc(74px + clamp(100px, 11.5vw, 148px));
  left: 32px;
  width: 170px;
  height: 14px;
  background: rgba(0, 0, 0, .12);
  transform: skewX(-14deg) rotate(-3deg);
  overflow: hidden;
}
.hud-special i {
  display: block;
  height: 100%;
  width: 0%;
  background: repeating-linear-gradient(90deg, #d5308f 0 12px, #b0206f 12px 24px);
  transition: width .25s ease;
}
.hud-special.full i { animation: special-blink .5s steps(2) infinite; }
@keyframes special-blink { 50% { filter: brightness(1.6); } }

/* trick string — stencil caps, bottom center */
.hud-trick3d {
  position: absolute;
  left: 50%;
  bottom: 9vh;
  transform: translateX(-50%);
  width: min(86vw, 900px);
  text-align: center;
  font-family: "Stardos Stencil", var(--mono);
  font-weight: 700;
  font-size: clamp(15px, 2.1vw, 26px);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #111;
  text-shadow: 2px 2px 0 rgba(255, 255, 255, .9), 4px 4px 0 rgba(0, 0, 0, .12);
  line-height: 1.35;
}
.hud-trick3d .mult {
  display: block;
  font-size: 1.35em;
  color: #d5308f;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, .2);
}
.hud-trick3d.bank { animation: trick-bank .55s ease; }
@keyframes trick-bank {
  0% { transform: translateX(-50%) scale(1); }
  30% { transform: translateX(-50%) scale(1.18); }
  100% { transform: translateX(-50%) scale(1); }
}
.hud-trick3d.bail { color: #c22; animation: trick-shake .4s ease; }
@keyframes trick-shake {
  25% { transform: translateX(calc(-50% - 8px)); }
  75% { transform: translateX(calc(-50% + 8px)); }
}

/* run-over card */
.g3d-over {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 20;
  background: rgba(255, 255, 255, .88);
}
.g3d-over.show { display: flex; }
.g3d-over .card { padding: 34px 40px; text-align: center; max-width: 420px; }
.g3d-over .go-title { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; }
.g3d-over .go-score {
  font-family: "Sedgwick Ave Display", var(--display);
  font-size: 56px;
  margin: 10px 0 18px;
  transform: rotate(-2deg);
  text-shadow: 3px 3px 0 rgba(155, 93, 229, .35);
}
.g3d-over input {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  text-align: center;
  padding: 10px 14px;
  border: 1px solid var(--ink);
  background: var(--card);
  width: min(260px, 90%);
  margin-bottom: 14px;
}
.g3d-over .go-row { display: flex; gap: 8px; justify-content: center; }
.g3d-over button {
  background: var(--ink);
  color: var(--inv);
  border: none;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 11px 18px;
  font-family: var(--mono);
  cursor: pointer;
}
.g3d-over button.ghost { background: none; color: var(--ink); border: 1px solid var(--ink); }

/* scoreboard drawer on the game page */
.g3d-board {
  position: fixed;
  top: 80px;
  right: 26px;
  width: 230px;
  z-index: 10;
  padding: 16px 18px;
}
.g3d-board h4 {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  margin-bottom: 10px;
  font-weight: 400;
}
.g3d-board ol { list-style: none; }
.g3d-board li {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--ph);
  text-transform: uppercase;
  font-size: 10px;
}
.g3d-board li .rank { color: var(--muted); }
.g3d-board li.me { font-weight: 700; }
.board-save {
  margin-top: 12px;
  width: 100%;
  background: var(--ink);
  color: var(--inv);
  border: none;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 10px 0;
  font-family: var(--mono);
  cursor: pointer;
}
.board-save:hover { background: var(--blue); }

/* controls hint bottom-left */
.g3d-controls {
  position: fixed;
  left: 30px;
  bottom: 3.5vh;
  z-index: 10;
  font-size: 10px;
  text-transform: uppercase;
  color: var(--body);
  line-height: 1.9;
  background: #ffffff;
  border: 1px solid var(--ink);
  padding: 14px 34px 14px 16px;
}
.g3d-controls b { color: var(--ink); }
.g3d-controls .gc-x {
  position: absolute;
  top: 6px;
  right: 8px;
  background: none;
  border: none;
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
  padding: 2px 4px;
}
.g3d-controls .gc-x:hover { color: var(--blue); }

/* game page header — chips boxed white so the night city never eats them */
body.gamepage header .tab-chip,
body.gamepage .osd-clock {
  background: #ffffff;
  border: 1px solid var(--ink);
  color: var(--ink);
  padding: 7px 12px;
}
body.gamepage header .tab-chip:hover { background: var(--blue); border-color: var(--blue); color: #fff; text-shadow: none; }
body.gamepage .osd-clock { color: var(--muted); }

/* mobile lock */
.g3d-lock {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  text-align: center;
  padding: 30px;
}
.g3d-lock .gl-big { font-size: 15px; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 10px; }
.g3d-lock .gl-sub { font-size: 10px; text-transform: uppercase; color: var(--muted); max-width: 320px; line-height: 1.7; }

@media (max-width: 900px) { .g3d-board { display: none; } }

/* ================= game boot screen — PS2 disc load ================= */
.g3d-boot {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(70% 60% at 50% 38%, rgba(155, 93, 229, .12), transparent 70%),
    linear-gradient(180deg, #eef4ff 0%, #dbe7fb 100%);
  transition: opacity .5s ease;
}
.g3d-boot.gone { opacity: 0; pointer-events: none; }
.boot-nla { display: block; height: 88px; width: auto; margin: 0 auto 18px; filter: drop-shadow(4px 4px 0 rgba(155, 93, 229, .45)); }
.boot-home {
  position: absolute;
  top: 22px;
  left: 24px;
  font-family: var(--font-ui);
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--ink);
  padding: 9px 16px;
  transition: background .15s, color .15s, border-color .15s;
}
.boot-home:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.boot-mascot {
  position: absolute;
  bottom: -30px;
  width: clamp(150px, 18vw, 260px);
  height: auto;
  opacity: .9;
  pointer-events: none;
}
.boot-mascot.bm-l { left: 6vw; transform: rotate(-8deg); }
.boot-mascot.bm-r { right: 6vw; transform: rotate(7deg) scaleX(-1); animation: boot-bob 3.2s ease-in-out infinite; }
.boot-mascot.bm-l { animation: boot-bob 2.7s .4s ease-in-out infinite; }
@keyframes boot-bob { 50% { translate: 0 -12px; } }
.boot-heads { display: flex; gap: 18px; justify-content: center; margin-top: 26px; }
.boot-heads img { width: 34px; height: auto; opacity: .85; }
.boot-heads img:nth-child(1) { transform: rotate(-12deg); }
.boot-heads img:nth-child(3) { transform: rotate(14deg); }
.boot-inner { text-align: center; }
.boot-kicker {
  font-size: 11px;
  letter-spacing: .5em;
  text-transform: uppercase;
  color: #35538a;
  margin-bottom: 6px;
}
.boot-title {
  font-family: "Sedgwick Ave Display", var(--display);
  font-size: clamp(52px, 8vw, 110px);
  color: #111;
  text-shadow: 4px 4px 0 rgba(155, 93, 229, .35);
  transform: rotate(-2deg);
  line-height: 1;
}
.boot-sub {
  font-family: "Zen Kaku Gothic New", var(--mono);
  font-size: 11px;
  letter-spacing: .3em;
  color: #6f83ad;
  margin: 14px 0 30px;
}
.boot-start {
  background: var(--ink);
  color: var(--inv);
  border: none;
  font-family: var(--font-ui);
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .18em;
  padding: 16px 38px;
  cursor: pointer;
  border: 2px solid var(--ink);
  transition: background .15s;
}
.boot-start:hover { background: var(--blue); border-color: var(--blue); }
.boot-bar {
  width: min(320px, 70vw);
  height: 12px;
  margin: 10px auto 0;
  background: rgba(17, 17, 17, .12);
  transform: skewX(-14deg);
  overflow: hidden;
}
.boot-bar i {
  display: block;
  height: 100%;
  width: 0%;
  background: repeating-linear-gradient(90deg, #9b5de5 0 12px, #7a3fd1 12px 24px);
  transition: width .35s ease;
}
.boot-note {
  margin-top: 10px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: #6f83ad;
}

/* ================= homepage: enter chip, hint, loud header ================= */
.enter-chip {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 11;
  border: none;
  pointer-events: none;
  background: none;
  color: #f4f4f8;
  font-family: var(--font-ui);
  font-size: clamp(24px, 2.6vw, 38px);
  letter-spacing: .14em;
  text-shadow: 0 0 14px rgba(155, 93, 229, .9), 0 2px 4px rgba(0, 0, 0, .8);
  transition: color .15s;
  will-change: transform;
}
.enter-chip::before { content: '[ '; opacity: .6; }
.enter-chip::after { content: ' ]'; opacity: .6; }
.enter-chip.hot { color: var(--blue); }
html.tv-arming .enter-chip { opacity: 0; pointer-events: none; transition: opacity .25s; }

.click-hint {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 10;
  color: #f2f2f5;
  font-family: var(--font-ui);
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .28em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .9), 0 0 20px rgba(0, 0, 0, .6);
  animation: hint-pulse 2.6s ease-in-out infinite;
  pointer-events: none;
}
.click-hint::before { content: '⌐ '; color: var(--blue); }
.click-hint::after {
  content: ' ¬';
  color: var(--blue);
}
@keyframes hint-pulse { 50% { opacity: .55; } }
@media (max-width: 640px) {
  .click-hint {
    left: 0;
    right: 0;
    width: 100%;
    transform: none;
    text-align: center;
    padding: 0 12px;
    font-size: 12px;
    letter-spacing: .2em;
  }
}
html.tv-arming .click-hint { display: none; }

/* header must cut through the static */


body.home .logo img { height: 44px; }





/* collection muse — pixel manga girl down the right edge */
.collection-muse {
  position: fixed;
  right: 0;
  top: 0;
  height: 100vh;
  width: auto;
  z-index: 0;
  pointer-events: none;
  image-rendering: pixelated;
  opacity: .55;
  filter: drop-shadow(-8px 12px 26px rgba(0, 0, 0, .35));
}

/* ================= checkout — order transmission ================= */
.checkout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 26px;
  padding: 46px clamp(24px, 6vw, 90px) 70px;
  align-items: start;
  min-height: calc(100vh - 160px);
}
.co-items, .co-side { padding: 22px 24px 26px; }
.co-title {
  font-family: var(--font-ui);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--muted);
  margin-bottom: 16px;
}
.co-line {
  display: grid;
  grid-template-columns: 52px 1fr auto auto auto;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline);
}
.co-thumb {
  display: block;
  width: 52px;
  height: 64px;
  object-fit: contain;
  background: #fdfdfd;
  border: 1px solid var(--hairline);
  padding: 4px 2px;
}
.co-name { font-family: var(--font-ui); font-size: 13px; text-transform: uppercase; line-height: 1.5; }
.co-size { font-size: 11px; color: var(--muted); margin-top: 2px; }
.co-qty { display: flex; gap: 8px; align-items: center; font-family: var(--font-ui); }
.qty-btn {
  width: 22px; height: 22px;
  background: var(--card);
  border: 1px solid var(--ink);
  font-family: var(--font-ui);
  line-height: 1;
  cursor: pointer;
}
.qty-btn:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.co-price { font-family: var(--font-ui); font-size: 13px; white-space: nowrap; }
.co-line .bag-remove { font-size: 14px; }
.bi-qty { display: flex; gap: 8px; align-items: center; font-family: var(--font-ui); margin-top: 6px; }
.bag-drawer .qty-btn { background: #fff; color: var(--ink); border-color: var(--ink); }
.bag-drawer .qty-btn:hover { background: var(--blue); border-color: var(--blue); color: #fff; }

.co-side label {
  display: block;
  font-family: var(--font-ui);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  margin-bottom: 12px;
}
.co-side input {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 10px 10px;
  font-family: var(--font-ui);
  font-size: 13px;
  border: 1px solid var(--ink);
  background: var(--card);
}
/* 16px keeps iOS from zoom-jumping into the field */
@media (max-width: 900px) { .co-side input { font-size: 16px; padding: 12px 10px; } }
.co-side input.bad { border-color: #c22; }
.co-row { display: grid; grid-template-columns: 1.6fr 1fr; gap: 10px; }
.co-sums { margin: 18px 0 14px; font-family: var(--font-ui); font-size: 13px; }
.co-sums > div { display: flex; justify-content: space-between; padding: 5px 0; }
.co-sums .co-total { border-top: 1px solid var(--ink); font-size: 16px; padding-top: 9px; margin-top: 5px; }
.co-side .preorder-btn { width: 100%; cursor: pointer; }
.co-side .preorder-btn:disabled { opacity: .4; pointer-events: none; }
.co-note {
  margin-top: 10px;
  font-family: var(--font-ui);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--muted);
  text-align: center;
}
.co-done {
  grid-column: 1 / -1;
  justify-self: center;
  text-align: center;
  padding: 48px 70px 60px;
  max-width: 520px;
}
.co-done-head {
  display: block;
  margin: 0 auto 14px;
  width: 74px;
  height: auto;
  animation: done-head-pop .5s cubic-bezier(.3, 1.6, .4, 1) both;
}
@keyframes done-head-pop {
  from { transform: scale(.3) rotate(-14deg); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
.co-done-big {
  font-family: var(--font-ui);
  font-size: 34px;
  letter-spacing: .1em;
}
.co-done-order {
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--blue);
  margin: 10px 0 18px;
  letter-spacing: .2em;
}
.co-done p { font-size: 14px; color: var(--body); line-height: 1.6; margin-bottom: 22px; }
.co-back { display: inline-block; padding: 12px 26px; text-align: center; }
@media (max-width: 900px) { .checkout { grid-template-columns: 1fr; } }

/* TRY IN THE GAME — the deck's test-ride card */
.try-card { padding: 18px 20px 20px; }
.try-card .tc-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  margin-bottom: 6px;
}
.try-card .tc-title {
  font-family: var(--font-ui);
  font-size: 17px;
  letter-spacing: .12em;
  margin-bottom: 8px;
}
.try-card .tc-title::before { content: '\25AA '; color: var(--blue); }
.try-card p { font-size: 13px; line-height: 1.5; color: var(--body); margin-bottom: 14px; }
.try-card .tc-btn { display: block; text-align: center; }

/* homepage door variant shares the dream gradient */
body.dreamhome {
  background: linear-gradient(180deg, #211d29 0%, #322b40 46%, #453a58 72%, #262130 100%);
  background-attachment: fixed;
}
body.dreamhome #stage { position: fixed; inset: 0; z-index: 0; }
body.dreamhome #stage canvas { display: block; }

/* poke physics */
.jiggle { animation: jiggle .42s cubic-bezier(.3, 1.6, .4, 1) both !important; }
@keyframes jiggle {
  0%   { transform: scale(1, 1); }
  22%  { transform: scale(1.045, .93); }
  45%  { transform: scale(.97, 1.05); }
  68%  { transform: scale(1.02, .975); }
  100% { transform: scale(1, 1); }
}

/* ================= product meta lives inside the white frame ================= */
.product-card { position: relative; }
.product-card .product-meta {
  position: absolute;
  left: 1px;
  right: 1px;
  bottom: 1px;
  margin: 0;
  padding: 12px 14px;
  background: #ffffff;
  border-top: 1px solid var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.pm-info { display: flex; flex-direction: column; gap: 4px; }
.pm-name { line-height: 1.45; }
.pm-buy { display: flex; align-items: center; gap: 12px; }
.add-cart {
  background: var(--ink);
  color: #fff;
  border: none;
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 10px 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .12s;
}
.add-cart:hover { background: var(--blue); }
body.dream .related .product-meta span { color: var(--ink); text-shadow: none; }
body.dream .related .product-meta .price { color: var(--muted); }

/* ================= burger + mobile menu ================= */
.burger {
  display: none;
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 120;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 4px 8px;
}
.burger i {
  display: block;
  height: 2px;
  background: var(--ink);
  transition: transform .2s, opacity .2s;
}
body.home .burger i { background: #f4f4f8; }
.burger.x i { background: var(--ink) !important; box-shadow: none; }
.burger.x i:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.x i:nth-child(2) { opacity: 0; }
.burger.x i:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 34px;
  background: #e9e9eb;
  transform: translateX(105%);
  transition: transform .58s cubic-bezier(.2, .9, .25, 1);
  box-shadow: -12px 0 34px rgba(0, 0, 0, .25);
}
.mobile-menu.open { transform: none; }
.menu-back {
  position: absolute;
  top: 18px;
  left: 18px;
  background: none;
  border: none;
  font-family: var(--font-ui);
  font-size: 30px;
  color: var(--ink);
  cursor: pointer;
  z-index: 2;
  padding: 6px 10px;
}
.menu-back:active { color: var(--blue); }
.mobile-menu::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-conic-gradient(rgba(0, 0, 0, .022) 0% 25%, transparent 0% 50%);
  background-size: 4px 4px;
  pointer-events: none;
}
.mobile-menu::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  height: 72%;
  background: url(menu-girl3.png) no-repeat bottom center / auto 100%;
  image-rendering: pixelated;
  opacity: .46;
  pointer-events: none;
}
.mobile-menu a {
  font-family: var(--font-ui);
  font-size: 26px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  z-index: 1;
}
.mobile-menu a:active { color: var(--blue); }

@media (max-width: 760px) {
  .burger { display: flex; }
  header { grid-template-columns: 1fr; padding: 12px 18px 26px; }
  header nav.center, header .header-right { display: none; }

  /* the filter has to slap on a phone */
  .filters {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }
  .filters .tab-chip {
    background: #fff;
    border: 1px solid var(--ink);
    padding: 13px 0;
    text-align: center;
    font-size: 12px;
    color: var(--ink);
    letter-spacing: .06em;
  }
  .filters .tab-chip.active { background: var(--ink); color: #fff; }
}

/* little cart beside the burger (phones only) */
.bag-mini {
  display: none;
  position: absolute;
  right: 72px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  color: var(--ink);
  cursor: pointer;
  z-index: 120;
}
body.home .bag-mini { color: #f4f4f8; }
.bag-mini svg { width: 24px; height: 24px; }
.bag-mini .bag-count-m {
  position: absolute;
  top: -3px;
  right: -4px;
  min-width: 15px;
  height: 15px;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 10px;
  line-height: 15px;
  text-align: center;
  font-weight: 400;
}
@media (max-width: 760px) { .bag-mini { display: block; } }

/* ================= NLA — the gothic menu ================= */
.mobile-menu .menu-title {
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}
.mobile-menu .menu-title img {
  display: block;
  margin: 0 auto;
  height: 92px;
  width: auto;
  filter: drop-shadow(3px 3px 0 rgba(155, 93, 229, .4));
}
.mobile-menu a {
  font-family: "Pirata One", var(--font-ui);
  font-size: 34px;
  letter-spacing: .08em;
  text-transform: none;
}
.mobile-menu .menu-foot {
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: .3em;
  color: var(--muted);
  margin-top: 18px;
  position: relative;
  z-index: 1;
}

/* checkout keeps a girl down the left edge */
.checkout-muse {
  position: fixed;
  left: 0;
  bottom: -10vh;
  height: 84vh;
  width: auto;
  z-index: 0;
  pointer-events: none;
  image-rendering: pixelated;
  opacity: .5;
  mask-image: linear-gradient(90deg, #000 0 88%, transparent 99%);
  -webkit-mask-image: linear-gradient(90deg, #000 0 88%, transparent 99%);
}
@media (min-width: 1000px) {
  .checkout { padding-left: min(26vw, 440px); }
}
@media (max-width: 900px) { .checkout-muse { opacity: .18; } }
