:root {
  --bg: #0f1226;
  --bg-2: #161a36;
  --card: #1d2246;
  --line: #2c3263;
  --text: #eef0ff;
  --muted: #a3a8cc;
  --gold: #f5c542;
  --coral: #ff6b57;
  --radius: 10px;
  --pixel: 'Fredoka', 'Inter', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
}
a { color: var(--gold); }
img { max-width: 100%; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

/* Header */
.site-head {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(15, 18, 38, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo {
  font-family: var(--pixel);
  font-weight: 700;
  font-size: 19px;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.logo-mark {
  width: 28px;
  height: 36px;
  border: 3px solid var(--gold);
  border-radius: 4px;
  background: repeating-linear-gradient(0deg, #2a2f5c, #2a2f5c 4px, #343a70 4px, #343a70 8px);
  transform: rotate(-8deg);
}
.logo small { color: var(--gold); }
.nav { display: flex; gap: 6px; }
.nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 600;
}
.nav a:hover, .nav a[aria-current='page'] { color: var(--text); background: var(--card); }
.nav a.cta { background: var(--gold); color: #1d1d2b; }

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--pixel);
  font-weight: 600;
  font-size: 16px;
  padding: 12px 20px;
  border-radius: 6px;
  border: 3px solid #000;
  box-shadow: 0 4px 0 #000;
  text-decoration: none;
  color: #1d1d2b;
  background: var(--gold);
  cursor: pointer;
}
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #000; }
.btn.alt { background: #fff; }

/* Hero */
.hero { padding: 72px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.eyebrow { font-family: var(--pixel); font-weight: 600; font-size: 14px; color: var(--coral); letter-spacing: 1px; }
.hero h1 { font-family: var(--pixel); font-weight: 700; font-size: clamp(34px, 5.5vw, 58px); line-height: 1.15; margin: 14px 0 18px; }
.hero h1 span { color: var(--gold); }
.hero p { color: var(--muted); font-size: 18px; max-width: 520px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

.fan { position: relative; height: 320px; }
.fan .tc {
  position: absolute;
  width: 170px;
  height: 238px;
  left: 50%;
  top: 40px;
  border-radius: 10px;
  border: 6px solid #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  transform-origin: 50% 110%;
}
.fan .tc:nth-child(1) { transform: translateX(-50%) rotate(-18deg); background: #3a8ee8 url('../game/art/cards/1-7.webp') center / cover; }
.fan .tc:nth-child(2) { transform: translateX(-50%) rotate(0deg); background: #f5c542 url('../game/art/cards/3-7.webp') center / cover; }
.fan .tc:nth-child(3) { transform: translateX(-50%) rotate(18deg); background: #e8553a url('../game/art/cards/0-6.webp') center / cover; }
.fan .tc::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 4px;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.35) 48%, transparent 60%);
}

/* Sections */
section { padding: 56px 0; }
section.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-family: var(--pixel); font-weight: 700; font-size: clamp(26px, 3.4vw, 36px); line-height: 1.2; margin: 0 0 12px; }
.lead { color: var(--muted); max-width: 640px; margin: 0 0 28px; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.tile {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.tile h3 { margin: 10px 0 6px; font-size: 18px; }
.tile p { margin: 0; color: var(--muted); }
.tile .icon { font-family: var(--pixel); color: var(--gold); font-size: 28px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.game-shot {
  aspect-ratio: 15 / 11;
  border: 4px solid #000;
  border-radius: 8px;
  background: #000;
  overflow: hidden;
}
.game-shot iframe { width: 100%; height: 100%; border: 0; pointer-events: none; }

ul.checks { list-style: none; padding: 0; margin: 0 0 24px; }
ul.checks li { padding-left: 28px; position: relative; margin: 8px 0; color: var(--muted); }
ul.checks li::before { content: '▶'; position: absolute; left: 0; color: var(--gold); font-size: 12px; top: 3px; }

/* Shop */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.filters input, .filters select {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
}
.filters input { flex: 1; min-width: 200px; }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.product {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.product .ph {
  aspect-ratio: 63 / 88;
  background: #0b0e20 center / contain no-repeat;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-family: var(--pixel);
  font-size: 14px;
}
.product .info { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.product .name { font-weight: 700; }
.product .meta { color: var(--muted); font-size: 14px; }
.product .price { font-family: var(--pixel); font-size: 18px; color: var(--gold); margin-top: auto; padding-top: 8px; }
.product .btn { font-size: 14px; padding: 10px; text-align: center; margin-top: 8px; }
.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  background: var(--line);
  color: var(--text);
  width: fit-content;
}
.empty {
  text-align: center;
  padding: 60px 20px;
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
}
.empty h3 { font-family: var(--pixel); font-size: 20px; color: var(--text); line-height: 1.6; }

/* Play page */
.play-full { padding: 0; }
.player {
  height: calc(100vh - 65px);
  height: calc(100dvh - 65px);
  min-height: 420px;
  background: var(--bg);
}
.player iframe { width: 100%; height: 100%; border: 0; display: block; }
.ad-slot:empty { display: none; }
.ad-slot { margin: 20px 0; min-height: 90px; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding: 32px 0 40px; color: var(--muted); font-size: 14px; }
.site-foot .wrap { display: flex; flex-direction: column; gap: 10px; }
.site-foot .links { display: flex; gap: 16px; flex-wrap: wrap; }
.disclaimer { font-size: 12px; opacity: 0.8; max-width: 800px; }

@media (max-width: 800px) {
  .hero .wrap, .split { grid-template-columns: 1fr; }
  .fan { height: 260px; }
  .fan .tc { width: 130px; height: 182px; }
  .nav a:not(.cta) { padding: 8px; }
}
@media (max-width: 520px) {
  .logo { font-size: 15px; }
  .nav a { font-size: 14px; }
}

/* ===================== Spectacle ===================== */
body { overflow-x: hidden; }

/* 3D hero */
.hero-3d {
  position: relative;
  min-height: calc(100vh - 64px);
  min-height: calc(100svh - 64px);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 40px 0;
  background:
    radial-gradient(60% 70% at 70% 45%, rgba(110, 70, 220, 0.35), transparent 70%),
    radial-gradient(40% 50% at 15% 80%, rgba(255, 107, 87, 0.18), transparent 70%),
    var(--bg);
}
.hero-3d .wrap { position: relative; z-index: 2; display: block; width: 100%; }
#hero3d { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s ease; }
#hero3d.ready { opacity: 1; }
.hero-glow { position: absolute; inset: auto -20% -40% -20%; height: 60%; background: radial-gradient(closest-side, rgba(245, 197, 66, 0.18), transparent); pointer-events: none; }
.hero-copy { max-width: 560px; animation: heroIn 1s cubic-bezier(.2, .9, .3, 1) both; }
.hero-copy h1 { font-size: clamp(38px, 6vw, 72px); text-shadow: 0 6px 30px rgba(0, 0, 0, 0.6); }
.hero-copy p { text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8); }
@keyframes heroIn { from { opacity: 0; transform: translateY(30px); } }
.shine-text {
  background: linear-gradient(100deg, #f5c542 20%, #fff6c9 40%, #ff9a5a 55%, #f5c542 75%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shineText 4s linear infinite;
}
@keyframes shineText { to { background-position: -250% 0; } }
.btn.glow { box-shadow: 0 4px 0 #000, 0 0 24px rgba(245, 197, 66, 0.55); animation: glowPulse 2.4s ease-in-out infinite; }
@keyframes glowPulse { 50% { box-shadow: 0 4px 0 #000, 0 0 40px rgba(245, 197, 66, 0.9); } }
.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 2;
  transform: translateX(-50%);
  font: 600 12px var(--pixel);
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  animation: bob 2s ease-in-out infinite;
}
.scroll-hint::after { content: '⌄'; display: block; text-align: center; font-size: 20px; }
@keyframes bob { 50% { transform: translate(-50%, 6px); } }
@media (max-width: 800px) {
  .hero-3d { align-items: flex-start; padding-top: 28px; min-height: 92vh; }
  .hero-copy { max-width: none; }
}

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.2, .9, .3, 1); }
.reveal.in { opacity: 1; transform: none; }
.tiles .reveal:nth-child(2) { transition-delay: 0.1s; }
.tiles .reveal:nth-child(3) { transition-delay: 0.2s; }
.tiles .reveal:nth-child(4) { transition-delay: 0.3s; }

/* Tilt + glare */
.tilt { position: relative; transform-style: preserve-3d; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.tilt.tilting { transform: perspective(800px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(-4px); transition: transform 0.06s linear; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45); }
.tilt.tilting::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(circle at var(--gx) var(--gy), rgba(255, 255, 255, 0.16), transparent 50%);
}
.tile { transition: border-color 0.3s; }
.tile:hover { border-color: rgba(245, 197, 66, 0.5); }

/* Game feature */
.game-feature { overflow: hidden; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 14px; margin: 10px 0 34px; }
.stats div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-align: center; }
.stats b { display: block; font: 700 40px var(--pixel); color: var(--gold); line-height: 1.1; }
.stats span { color: var(--muted); font-size: 14px; }

.marquee { overflow: hidden; padding: 10px 0; mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 16px; width: max-content; animation: marquee 70s linear infinite; }
.marquee.reverse .marquee-track { animation-direction: reverse; animation-duration: 80s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.mini-card {
  margin: 0;
  width: 150px;
  flex: none;
  border-radius: 12px;
  padding: 6px;
  background: linear-gradient(160deg, #2a3060, #1a1f3d);
  border: 2px solid var(--line);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.mini-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; display: block; }
.mini-card figcaption { padding: 6px 2px 2px; display: flex; flex-direction: column; line-height: 1.2; }
.mini-card b { font: 600 15px var(--pixel); color: var(--text); }
.mini-card span { font-size: 12px; color: var(--muted); }
.mini-card:hover { transform: translateY(-6px) scale(1.04); box-shadow: 0 12px 26px rgba(0, 0, 0, 0.5); }
.mini-card.r-R { border-color: #8fd0ff; box-shadow: 0 0 14px rgba(143, 208, 255, 0.35); }
.mini-card.r-RR { border-color: #f5c542; box-shadow: 0 0 18px rgba(245, 197, 66, 0.5); }
.game-feature .split { margin-top: 40px; }

/* Pack carousel */
.packs-section { overflow: hidden; }
.ring-stage { height: 380px; perspective: 1200px; display: grid; place-items: center; margin-top: 10px; }
.ring { position: relative; width: 150px; height: 230px; transform-style: preserve-3d; animation: ring 28s linear infinite; }
.ring-stage:hover .ring { animation-play-state: paused; }
.ring-pack {
  position: absolute;
  inset: 0;
  transform: rotateY(calc(var(--i) * 360deg / var(--n))) translateZ(360px);
  backface-visibility: hidden;
}
.ring-pack img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 16px 20px rgba(0, 0, 0, 0.55)); transition: transform 0.3s; }
.ring-pack:hover img { transform: scale(1.12) translateY(-10px); }
@keyframes ring { to { transform: rotateY(-360deg); } }
@media (max-width: 600px) {
  .ring-stage { height: 300px; }
  .ring { width: 110px; height: 170px; }
  .ring-pack { transform: rotateY(calc(var(--i) * 360deg / var(--n))) translateZ(250px); }
}

/* Pin wall */
.pin-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 18px 10px; margin-top: 10px; }
.pin-tile { margin: 0; text-align: center; animation: pinBob 4s ease-in-out var(--d) infinite; }
.pin-tile img { width: 78px; height: 78px; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.45)); transition: transform 0.6s cubic-bezier(.3, 1.4, .5, 1); }
.pin-tile:hover img { transform: rotateY(360deg) scale(1.15); }
.pin-tile figcaption { color: var(--muted); font: 600 13px var(--pixel); margin-top: 4px; }
@keyframes pinBob { 50% { transform: translateY(-6px); } }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track, .ring, .pin-tile, .shine-text, .btn.glow, .scroll-hint, .hero-copy { animation: none; }
}
@media (max-width: 800px) {
  .hero-3d { flex-direction: column; align-items: stretch; min-height: 0; padding-bottom: 50px; }
  #hero3d { position: relative; order: 2; height: 400px; inset: auto; margin-top: 10px; }
  .scroll-hint { display: none; }
}
.product.tilt { overflow: hidden; }

/* ===================== Webshop ===================== */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--gold); color: #1d1d2b; padding: 8px 14px; border-radius: 8px; font-weight: 700; }
.skip:focus { left: 12px; }
body.no-scroll { overflow: hidden; }

/* Announcement + header */
.announce { background: linear-gradient(90deg, #2b2140, #3d2f5c); color: #e8e4ff; font-size: 13px; text-align: center; padding: 8px 16px; line-height: 1.35; }
.announce b { color: var(--gold); }
.site-head .wrap.head-row { height: 64px; display: flex; align-items: center; gap: 14px; }
.site-head .head-row .logo { flex: none; }
.search { flex: 1; display: flex; max-width: 460px; margin-left: auto; background: var(--card); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; transition: border-color 0.2s, box-shadow 0.2s; }
.search:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245, 197, 66, 0.2); }
.search input { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--text); font: inherit; font-size: 15px; padding: 9px 4px 9px 16px; outline: none; }
.search button { border: 0; background: transparent; color: var(--muted); font-size: 22px; padding: 0 14px; cursor: pointer; }
.icon-btn { position: relative; flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; border: 0; background: transparent; color: var(--text); font-size: 21px; cursor: pointer; text-decoration: none; }
.icon-btn:hover { background: var(--card); }
.icon-btn .count { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--coral); color: #fff; font: 700 11px/18px var(--body); text-align: center; }
.menu-btn { display: none; border: 0; background: transparent; color: var(--text); font-size: 24px; width: 40px; height: 40px; border-radius: 10px; cursor: pointer; }
.site-head .cat-bar { border-top: 1px solid var(--line); }
.site-head .cat-bar .wrap { height: auto; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-top: 6px; padding-bottom: 6px; }
.site-head .cat-bar .wrap::-webkit-scrollbar { display: none; }
.cat-bar a { flex: none; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; padding: 6px 12px; border-radius: 8px; white-space: nowrap; }
.cat-bar a:hover { color: var(--text); background: var(--card); }
@media (max-width: 900px) {
  .site-head .head-row .nav { display: none; }
  .menu-btn { display: grid; place-items: center; }
  .site-head .wrap.head-row { gap: 8px; flex-wrap: wrap; height: auto; padding-top: 8px; padding-bottom: 8px; }
  .search { order: 5; flex-basis: 100%; max-width: none; margin: 2px 0 0; }
  .head-row .logo { margin-right: auto; }
  .site-head .cat-bar { display: none; }
  body.menu-open .site-head .cat-bar { display: block; }
  body.menu-open .site-head .cat-bar .wrap { flex-direction: column; align-items: stretch; overflow: visible; padding-bottom: 12px; }
  body.menu-open .site-head .cat-bar a { font-size: 16px; padding: 10px 12px; }
  body.menu-open .site-head .head-row .nav { display: flex; order: 6; flex-basis: 100%; }
  body.menu-open .site-head .head-row .nav a { flex: 1; text-align: center; }
}

/* Buttons */
.btn-sm { font-size: 13px; padding: 8px 12px; box-shadow: 0 3px 0 #000; }
.btn-lg { font-size: 17px; padding: 15px 22px; width: 100%; text-align: center; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); box-shadow: none; }
.btn.ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

/* Product cards */
.grid-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.pcard { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: border-color 0.2s, transform 0.25s, box-shadow 0.25s; }
.pcard:hover { border-color: rgba(245, 197, 66, 0.55); }
.pcard-media { position: relative; display: block; aspect-ratio: 1; background: radial-gradient(circle at 50% 40%, #2a3060, #141834 75%); }
.pcard-media svg { width: 100%; height: 100%; display: block; transition: transform 0.35s cubic-bezier(.2, 1.3, .4, 1); }
.pcard:hover .pcard-media svg { transform: scale(1.06) translateY(-4px); }
.pbadges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.pbadges.static { position: static; margin-bottom: 10px; }
.pbadge { font: 700 11px/1 var(--body); letter-spacing: 0.4px; text-transform: uppercase; padding: 6px 8px; border-radius: 6px; background: #3a3f63; color: #e6e8ff; }
.pbadge.out-of-stock { background: #4a2f3a; color: #ffb3c1; }
.pbadge.coming-soon { background: #2f4a6a; color: #b8e0ff; }
.pbadge.new { background: var(--gold); color: #1d1d2b; }
.pbadge.special { background: #5a3d9e; color: #f0e6ff; }
.pwish { position: absolute; top: 8px; right: 8px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(15, 18, 38, 0.7); color: #fff; font-size: 19px; cursor: pointer; display: grid; place-items: center; transition: background 0.2s, color 0.2s; }
.pwish:hover, .pwish.on { color: #ff6b8a; background: rgba(15, 18, 38, 0.92); }
.pcard-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pcard-set { position: relative; z-index: 1; color: var(--gold); font: 600 13px var(--pixel); text-decoration: none; }
.pcard-set:hover { text-decoration: underline; }
.pcard h3 { margin: 0; font-size: 16px; line-height: 1.3; }
.pcard h3 a { color: var(--text); text-decoration: none; }
.pcard h3 a::after { content: ''; position: absolute; inset: 0; }
.pcard .btn { position: relative; z-index: 1; }
.pcard-foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pcard .price { font-size: 13px; color: var(--muted); font-weight: 600; }

/* Horizontal product rails */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 230px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 14px; scrollbar-width: thin; }
.rail > * { scroll-snap-align: start; }
.rail-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.rail-head h2 { margin: 0; }
.more { color: var(--gold); text-decoration: none; font-weight: 700; white-space: nowrap; }
.rail-section { margin-top: 48px; }

/* Shop page */
.shop-page { padding-top: 26px; padding-bottom: 50px; }
.shop-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.shop-head h1 { font-family: var(--pixel); font-size: clamp(26px, 4vw, 38px); margin: 0; line-height: 1.1; }
.shop-head p { margin: 4px 0 0; }
.shop-tools { display: flex; gap: 10px; align-items: center; }
.sort { color: var(--muted); font-size: 14px; display: flex; gap: 8px; align-items: center; }
.sort select { background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font: inherit; }
#filter-toggle { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px; min-height: 4px; }
.chip { border: 1px solid var(--line); background: var(--card); color: var(--text); border-radius: 999px; padding: 6px 12px; font: 600 13px var(--body); cursor: pointer; }
.chip:hover { border-color: var(--coral); }
.chip.clear { color: var(--coral); }
.shop-layout { display: grid; grid-template-columns: 240px 1fr; gap: 26px; margin-top: 12px; align-items: start; }
.filters-panel { position: sticky; top: 120px; max-height: calc(100vh - 140px); overflow-y: auto; padding-right: 6px; scrollbar-width: thin; }
.filters-panel-head { display: none; }
.filter-block { border-bottom: 1px solid var(--line); padding: 12px 0; }
.filter-block h3 { font: 700 13px var(--body); text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin: 0 0 8px; }
.filter-block label { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 14px; cursor: pointer; }
.filter-block label span { margin-left: auto; color: var(--muted); font-size: 12px; }
.filter-block label em { font-style: normal; font-size: 11px; background: var(--gold); color: #1d1d2b; border-radius: 4px; padding: 1px 5px; font-weight: 700; }
.filter-block input { accent-color: var(--gold); width: 16px; height: 16px; }
@media (max-width: 860px) {
  #filter-toggle { display: inline-block; }
  .shop-layout { grid-template-columns: 1fr; }
  .filters-panel { position: fixed; inset: 0 0 0 auto; width: min(340px, 88vw); max-height: none; top: 0; z-index: 60; background: var(--bg-2); padding: 16px; transform: translateX(105%); transition: transform 0.3s ease; box-shadow: -20px 0 40px rgba(0, 0, 0, 0.5); }
  body.filters-open .filters-panel { transform: none; }
  .filters-panel-head { display: flex; justify-content: space-between; align-items: center; position: sticky; top: -16px; background: var(--bg-2); padding: 4px 0 10px; z-index: 1; }
  .filters-panel-head h2 { margin: 0; font-size: 20px; }
  .grid-products { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
}
@media (max-width: 420px) {
  .grid-products { grid-template-columns: 1fr 1fr; gap: 10px; }
  .pcard-body { padding: 10px; }
  .pcard h3 { font-size: 14px; }
  .pcard-foot { flex-direction: column; align-items: stretch; }
  .pcard-foot .btn { text-align: center; }
}
.empty { text-align: center; padding: 50px 20px; border: 2px dashed var(--line); border-radius: var(--radius); color: var(--muted); }

/* Product page */
.product-page { padding-top: 20px; padding-bottom: 40px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--gold); }
.crumbs span[aria-current] { color: var(--text); }
.pp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.pp-media { position: sticky; top: 120px; aspect-ratio: 1; border-radius: 22px; border: 1px solid var(--line); background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--c1) 35%, #1d2246), #10132a 72%); overflow: hidden; }
.pp-media svg { width: 100%; height: 100%; display: block; animation: floaty 6s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-8px); } }
.photo-soon { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); background: rgba(15, 18, 38, 0.75); color: var(--muted); font-size: 12px; padding: 5px 12px; border-radius: 999px; white-space: nowrap; }
.pp-info h1 { font-family: var(--pixel); font-size: clamp(26px, 3.4vw, 38px); line-height: 1.15; margin: 0 0 8px; }
.pp-meta { color: var(--muted); margin: 0 0 14px; }
.pp-meta a { color: var(--gold); }
.pp-price { font: 700 24px var(--pixel); margin: 6px 0; }
.pp-stock { font-weight: 700; margin-bottom: 16px; }
.pp-stock.out { color: #ff8fa3; }
.pp-stock.in { color: #6bff95; }
.pp-stock.soon { color: #8fd0ff; }
.notify-form { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.notify-title { font-weight: 700; }
.notify-row { display: flex; gap: 8px; }
.notify-row input { flex: 1; min-width: 0; background: var(--bg); border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 12px; font: inherit; }
.notify-row input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.consent { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--muted); line-height: 1.4; overflow-wrap: anywhere; }
.consent input { margin-top: 2px; accent-color: var(--gold); flex: none; }
.form-msg { margin: 0; font-size: 14px; }
.form-msg:empty { display: none; }
.form-msg.ok { color: #6bff95; }
.form-msg.err { color: #ff8fa3; }
.wish-btn { margin-top: 12px; border: 1px solid var(--line); background: transparent; color: var(--text); border-radius: 10px; padding: 10px 14px; font: 600 15px var(--body); cursor: pointer; width: 100%; }
.wish-btn:hover, .wish-btn.on { border-color: #ff6b8a; color: #ff8fa3; }
.pp-info h2 { font-family: var(--pixel); font-size: 22px; margin: 28px 0 8px; }
.contents { padding-left: 20px; margin: 0; }
.contents li { margin: 4px 0; }
.fine { font-size: 13px; color: var(--muted); }
.set-note { background: var(--card); border-left: 4px solid var(--gold); padding: 12px 14px; border-radius: 0 10px 10px 0; color: var(--text); }
.specs { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14px; }
.specs th, .specs td { text-align: left; padding: 9px 4px; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { color: var(--muted); font-weight: 600; width: 40%; }
.specs code { font-size: 12px; color: var(--muted); }
.usp-list { list-style: none; padding: 0; margin: 0; color: var(--muted); font-size: 14px; }
.usp-list li { margin: 6px 0; }
@media (max-width: 860px) {
  .pp-grid { grid-template-columns: 1fr; gap: 20px; }
  .pp-media { position: relative; top: 0; max-width: 460px; width: 100%; margin: 0 auto; }
}

/* Set pages */
.set-hero { padding: 26px 0 40px; margin-bottom: 30px; background: radial-gradient(80% 120% at 85% 0%, color-mix(in srgb, var(--c1) 45%, transparent), transparent 60%), linear-gradient(160deg, color-mix(in srgb, var(--c2) 55%, var(--bg)), var(--bg)); border-bottom: 1px solid var(--line); }
.set-hero h1 { font-family: var(--pixel); font-size: clamp(36px, 6vw, 64px); margin: 6px 0; line-height: 1.05; text-shadow: 0 6px 24px rgba(0, 0, 0, 0.5); }
.set-sub { color: var(--text); font-weight: 600; margin: 0; }
.set-desc { color: var(--muted); max-width: 700px; }
.countdown { display: flex; gap: 10px; margin: 16px 0; }
.countdown span { background: rgba(15, 18, 38, 0.65); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; min-width: 70px; text-align: center; }
.countdown b { display: block; font: 700 30px/1 var(--pixel); color: var(--gold); }
.countdown small { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }
.page-pad { padding-top: 26px; padding-bottom: 50px; }
.page-pad h1 { font-family: var(--pixel); font-size: clamp(30px, 5vw, 46px); margin: 0 0 6px; }
.series-title { margin-top: 36px; }
.set-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.set-tile { position: relative; display: flex; flex-direction: column; gap: 4px; min-height: 150px; padding: 18px; border-radius: 16px; text-decoration: none; color: #fff; overflow: hidden; background: linear-gradient(135deg, var(--c1), var(--c2)); border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35); }
.set-tile::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.55)); }
.set-tile > * { position: relative; }
.set-tile b { font: 700 26px/1.1 var(--pixel); margin-top: auto; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); }
.set-tile-series { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; opacity: 0.85; }
.set-tile-date, .set-tile-count { font-size: 13px; opacity: 0.9; }
.prose { max-width: 780px; }
.prose h2 { font-family: var(--pixel); font-size: 22px; margin: 28px 0 8px; }
.prose p, .prose li { color: #d6d9f2; }
.center { text-align: center; margin: 0 auto; }
.big-emoji { font-size: 64px; }

/* Home page shop sections */
.hero-trust { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 14px; font-weight: 600; }
.home-cats { padding-top: 50px; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.cat-tile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 12px 10px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; text-decoration: none; color: var(--text); }
.cat-tile:hover { border-color: rgba(245, 197, 66, 0.55); }
.cat-art { width: 100%; aspect-ratio: 1; display: grid; place-items: center; }
.cat-art svg { width: 100%; height: 100%; }
.cat-icon { font-size: 64px; }
.cat-tile b { font: 600 16px var(--pixel); }
.cat-tile > span:last-child { color: var(--muted); font-size: 13px; }
.spotlight { padding: 30px 0; }
.spotlight-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: center; padding: 34px; border-radius: 24px; background: radial-gradient(80% 120% at 90% 10%, color-mix(in srgb, var(--c1) 55%, transparent), transparent 60%), linear-gradient(140deg, color-mix(in srgb, var(--c2) 70%, var(--bg)), var(--bg-2)); border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4); }
.spot-copy h2 { font-size: clamp(28px, 4vw, 44px); margin: 6px 0 10px; }
.spot-copy p { color: #d6d9f2; }
.spot-art { max-width: 340px; justify-self: center; width: 100%; }
.spot-art svg { width: 100%; height: auto; animation: floaty 6s ease-in-out infinite; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.5)); }
@media (max-width: 760px) {
  .spotlight-inner { grid-template-columns: 1fr; padding: 22px; }
  .spot-art { max-width: 240px; order: -1; }
  .countdown span { min-width: 0; flex: 1; padding: 8px 4px; }
  .countdown b { font-size: 24px; }
}
.home-rail { padding: 30px 0 50px; }
.home-sets { padding: 50px 0; }
.usp-band { padding: 40px 0; }
.usp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.usp-grid > div { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.usp-grid b { font-size: 30px; }
.usp-grid h3 { margin: 6px 0 4px; font-size: 17px; }
.usp-grid p { margin: 0; color: var(--muted); font-size: 14px; }
.game-feature .marquee { margin-top: 30px; }

/* Newsletter + footer */
.newsletter { background: linear-gradient(120deg, #2b2140, #1d2246 60%, #2a1f3d); border-top: 1px solid var(--line); padding: 40px 0; }
.newsletter-row { display: grid; grid-template-columns: 1fr 1.1fr; gap: 26px; align-items: center; }
.newsletter h2 { margin: 0 0 6px; }
.newsletter p { margin: 0; color: var(--muted); }
.newsletter .notify-form { background: rgba(15, 18, 38, 0.5); }
@media (max-width: 760px) { .newsletter-row { grid-template-columns: minmax(0, 1fr); } }
.site-foot .wrap.foot-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 26px; }
.foot-cols h3 { font: 700 13px var(--body); text-transform: uppercase; letter-spacing: 1px; color: var(--text); margin: 0 0 10px; }
.foot-cols a:not(.logo) { display: block; color: var(--muted); text-decoration: none; padding: 3px 0; }
.foot-cols a:not(.logo):hover { color: var(--gold); }
.foot-blurb, .foot-small { color: var(--muted); font-size: 14px; }
.foot-legal { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }

/* Language switch (EN · DA · DE), filled in by /js/i18n.js */
.i18n-wait body > * { visibility: hidden; }
.lang-switch { flex: none; display: flex; gap: 2px; padding: 2px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); }
.lang-switch:empty { display: none; }
.lang-switch button { border: 0; background: transparent; color: var(--muted); font: 700 12px/1 var(--body); letter-spacing: 0.04em; padding: 7px 9px; border-radius: 999px; cursor: pointer; }
.lang-switch button:hover { color: var(--text); }
.lang-switch button.on { background: var(--gold); color: #1d1d2b; }
@media (max-width: 900px) {
  .head-row .lang-switch { display: none; }
  body.menu-open .head-row .lang-switch { display: flex; order: 7; margin: 4px auto 0; }
}
@media (max-width: 760px) { .site-foot .wrap.foot-cols { grid-template-columns: 1fr 1fr; } .foot-cols > div:first-child { grid-column: 1 / -1; } }

/* Cart drawer */
.cart-drawer { position: fixed; inset: 0; z-index: 80; pointer-events: none; }
.cart-backdrop { position: absolute; inset: 0; background: rgba(5, 6, 18, 0.6); opacity: 0; transition: opacity 0.3s; }
.cart-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 92vw); background: var(--bg-2); border-left: 1px solid var(--line); transform: translateX(105%); transition: transform 0.35s cubic-bezier(.2, .9, .3, 1); display: flex; flex-direction: column; box-shadow: -20px 0 50px rgba(0, 0, 0, 0.5); }
.cart-drawer.open { pointer-events: auto; }
.cart-drawer.open .cart-backdrop { opacity: 1; }
.cart-drawer.open .cart-panel { transform: none; }
.cart-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.cart-head h2 { margin: 0; font-size: 22px; }
.cart-body { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.cart-empty { text-align: center; margin: auto 0; }
.cart-empty-icon { font-size: 56px; }
.cart-items { list-style: none; padding: 0; margin: 0; }
.cart-items li { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cart-items a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 14px; }
.qty { display: flex; align-items: center; gap: 6px; }
.qty button { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--text); cursor: pointer; }
.cart-total { display: flex; justify-content: space-between; font-size: 18px; }

/* Toast */
.site-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); z-index: 90; background: #f5c542; color: #1d1d2b; font-weight: 700; padding: 10px 18px; border-radius: 999px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); opacity: 0; pointer-events: none; transition: opacity 0.25s, transform 0.25s; }
.site-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* The header is taller now: keep the 3D hero and game player sized to the screen */
.hero-3d { min-height: calc(100vh - 140px); min-height: calc(100svh - 140px); }
.play-full { padding: 22px 16px 10px; }
/* The console loads a bit smaller; full screen (SELECT / F) uses the whole display. */
.player { width: 100%; max-width: 1000px; height: min(72vh, 640px); height: min(72dvh, 640px); min-height: 420px; margin: 0 auto; border-radius: 40px; border: 0; background: transparent; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45); }
.play-hint { text-align: center; color: var(--muted); font-size: 14px; margin: 14px 0 0; }
.play-hint b { color: var(--gold); }
@media (max-aspect-ratio: 1/1) {
  .player { max-width: 430px; height: min(78dvh, 760px); border-radius: 30px; }
}
@media (max-width: 800px) { .hero-3d { min-height: 0; } }
.shop-layout > section { padding: 0; }
@media (max-width: 860px) {
  body.filters-open::after { content: ''; position: fixed; inset: 0; z-index: 55; background: rgba(5, 6, 18, 0.6); }
}

/* Official product photos on a light studio background */
.pcard-media, .cat-art { background: radial-gradient(circle at 50% 38%, #ffffff 0%, #eeeae3 62%, #ddd7cc 100%); }
.pcard-media img, .cat-art img { width: 100%; height: 100%; object-fit: contain; display: block; padding: 6%; filter: drop-shadow(0 10px 14px rgba(40, 30, 20, 0.28)); transition: transform 0.35s cubic-bezier(.2, 1.3, .4, 1); }
.pcard:hover .pcard-media img { transform: scale(1.06) translateY(-4px); }
.cat-art { border-radius: 12px; }
.cat-art img { padding: 4%; }
.pp-media.has-photo { background: radial-gradient(circle at 50% 38%, #ffffff 0%, #eeeae3 60%, #d9d2c6 100%); }
.pp-media img { width: 100%; height: 100%; object-fit: contain; display: block; padding: 7%; filter: drop-shadow(0 18px 24px rgba(40, 30, 20, 0.3)); animation: floaty 6s ease-in-out infinite; }
.pp-gallery { position: sticky; top: 120px; display: flex; flex-direction: column; gap: 10px; }
.pp-gallery .pp-media { position: relative; top: 0; }
.pp-thumbs { display: flex; gap: 8px; }
.pp-thumb { width: 72px; height: 72px; padding: 4px; border-radius: 10px; border: 2px solid var(--line); background: #f2efea; cursor: pointer; }
.pp-thumb.on { border-color: var(--gold); }
.pp-thumb img { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 860px) { .pp-gallery { position: relative; top: 0; max-width: 460px; width: 100%; margin: 0 auto; } }

/* Official set logos */
.logo-h1 { margin: 8px 0 10px; line-height: 0; }
.logo-h1 img { max-width: min(520px, 90%); max-height: 200px; width: auto; height: auto; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.55)); animation: logoPop 0.8s cubic-bezier(.2, 1.3, .4, 1) both; }
@keyframes logoPop { from { opacity: 0; transform: scale(0.85) translateY(10px); } }
.logo-h2 { margin: 8px 0 14px; line-height: 0; }
.logo-h2 img { max-width: min(440px, 100%); max-height: 170px; width: auto; height: auto; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.5)); }
.set-tile { justify-content: space-between; }
.set-tile-logo { position: relative; display: block; margin: 10px auto 8px; max-width: 92%; max-height: 92px; width: auto; height: auto; object-fit: contain; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.5)); transition: transform 0.35s cubic-bezier(.2, 1.3, .4, 1); }
.set-tile:hover .set-tile-logo { transform: scale(1.07); }
.set-tile { min-height: 190px; }

/* Home: Vault promo with a parade of sprites */
.vault-promo { padding: 40px 0; }
.vault-promo-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 30px; align-items: center; padding: 30px; border-radius: 24px; border: 1px solid var(--line); background: radial-gradient(80% 120% at 90% 10%, rgba(245, 197, 66, 0.16), transparent 60%), linear-gradient(140deg, #1d2246, var(--bg-2)); }
.vault-promo h2 { font-size: clamp(26px, 3.6vw, 38px); margin: 6px 0 10px; }
.sprite-parade { display: grid; grid-template-columns: repeat(4, 72px); gap: 10px; justify-content: center; }
.sprite-parade span { width: 72px; height: 72px; background-image: url('/vault/img/dex-sprites.webp'); background-size: 2304px 2376px; image-rendering: pixelated; filter: drop-shadow(0 4px 3px rgba(0, 0, 0, 0.45)); animation: spriteHop 2.4s ease-in-out infinite; animation-delay: calc(var(--i) * -0.3s); }
@keyframes spriteHop { 0%, 60%, 100% { transform: translateY(0); } 75% { transform: translateY(-12px) scale(1.05); } 88% { transform: translateY(0) scale(1.05, 0.95); } }
@media (max-width: 760px) { .vault-promo-inner { grid-template-columns: 1fr; padding: 22px; } .sprite-parade { grid-template-columns: repeat(4, 64px); } .sprite-parade span { scale: 0.89; } }
@media (prefers-reduced-motion: reduce) { .sprite-parade span { animation: none; } }

/* ---------- Pokémon showcase: official set art and real chase cards (data: /data/showcase.json) ---------- */

/* Holo card: tilts toward the pointer with a foil shine (site/js/holo.js) */
.holo { --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%; display: block; perspective: 900px; color: var(--text); text-decoration: none; }
.holo-in { position: relative; display: block; aspect-ratio: 5 / 7; border-radius: 4.6% / 3.3%; overflow: hidden; background: #1a1d3a; transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform 0.5s cubic-bezier(.2, .9, .3, 1), box-shadow 0.3s; box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45); will-change: transform; }
.holo.live .holo-in { transition: transform 0.08s linear, box-shadow 0.3s; box-shadow: 0 22px 46px rgba(0, 0, 0, 0.55), 0 0 32px rgba(245, 197, 66, 0.28); }
.holo-in img { display: block; width: 100%; height: 100%; object-fit: cover; }
.holo-shine { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.3s; mix-blend-mode: overlay; background: radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0) 45%); }
.holo.foil .holo-shine { mix-blend-mode: color-dodge; background: radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, 0.5), transparent 40%), linear-gradient(115deg, transparent 18%, rgba(255, 60, 170, 0.32) 34%, rgba(60, 255, 230, 0.32) 50%, rgba(255, 235, 60, 0.32) 66%, transparent 82%); background-size: 100% 100%, 260% 260%; background-position: center, var(--mx) var(--my); }
.holo.live .holo-shine { opacity: 1; }
.holo-label { display: block; margin-top: 10px; }
.holo-label b { display: block; font-size: 14px; line-height: 1.3; }
.holo-label small { color: var(--muted); font-size: 12px; }

/* Hero: official set art that rotates through the newest sets */
.pk-hero { position: relative; overflow: hidden; min-height: min(86vh, 760px); display: flex; align-items: center; padding: 40px 0 70px; background: #070914; }
.pk-bg, .pk-slide { position: absolute; inset: 0; }
.pk-slide { background-size: cover; background-position: 70% center; opacity: 0; transform: scale(1.06); transition: opacity 1.2s ease, transform 8s linear; }
.pk-slide.on { opacity: 1; transform: scale(1); }
.pk-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 9, 20, 0.96) 0%, rgba(7, 9, 20, 0.82) 34%, rgba(7, 9, 20, 0.25) 62%, rgba(7, 9, 20, 0.35) 100%), linear-gradient(0deg, var(--bg) 0%, transparent 22%); }
.pk-hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 30px; align-items: center; width: 100%; }
.pk-hero-copy h1 { font-family: var(--pixel); font-weight: 700; font-size: clamp(38px, 5.6vw, 68px); line-height: 1.08; margin: 12px 0 16px; text-shadow: 0 6px 30px rgba(0, 0, 0, 0.7); }
.pk-hero-copy p { color: #d7daf5; font-size: 18px; max-width: 520px; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8); }
.pk-hero-copy .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.pk-feature { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.pk-set { display: flex; flex-direction: column; align-items: center; gap: 4px; color: #fff; text-decoration: none; text-align: center; animation: heroIn 0.8s cubic-bezier(.2, .9, .3, 1) both; }
.pk-logo { max-width: min(340px, 80%); max-height: 120px; object-fit: contain; filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.7)); }
.pk-set span { font-size: 14px; font-weight: 600; background: rgba(7, 9, 20, 0.6); padding: 4px 12px; border-radius: 99px; backdrop-filter: blur(4px); }
.pk-set:hover span { color: var(--gold); }
.pk-fan { position: relative; width: min(470px, 100%); height: min(390px, 64vw); }
.pk-fan .holo { position: absolute; top: 18px; left: 50%; width: 42%; margin-left: -21%; animation: fanIn 0.9s cubic-bezier(.2, .9, .3, 1) both; }
.pk-fan .holo:nth-child(1) { transform: translateX(-62%) rotate(-12deg); animation-delay: 0.08s; }
.pk-fan .holo:nth-child(2) { top: 0; width: 46%; margin-left: -23%; z-index: 2; animation-delay: 0s; }
.pk-fan .holo:nth-child(3) { transform: translateX(62%) rotate(12deg); animation-delay: 0.16s; }
@keyframes fanIn { from { opacity: 0; translate: 0 40px; } }
.pk-dots { position: absolute; z-index: 2; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; gap: 8px; }
.pk-dots button { width: 10px; height: 10px; border-radius: 99px; border: 0; padding: 0; background: rgba(255, 255, 255, 0.35); cursor: pointer; transition: width 0.3s, background 0.3s; }
.pk-dots button.on { width: 28px; background: var(--gold); }
@media (max-width: 860px) {
  .pk-hero { min-height: 0; padding: 26px 0 60px; }
  .pk-hero-inner { grid-template-columns: 1fr; }
  .pk-slide { background-position: center top; }
  .pk-bg::after { background: linear-gradient(180deg, rgba(7, 9, 20, 0.55) 0%, rgba(7, 9, 20, 0.9) 55%, var(--bg) 100%); }
  .pk-fan { height: 300px; }
}

/* Chase card rail */
.chase { padding: 40px 0 10px; }
.chase-rail { display: grid; grid-auto-flow: column; grid-auto-columns: 190px; gap: 18px; overflow-x: auto; padding: 14px 4px 22px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.chase-item { position: relative; scroll-snap-align: start; }
.chase-value { position: absolute; top: 8px; right: -6px; z-index: 2; background: var(--gold); color: #1d1d2b; font: 700 13px var(--pixel); padding: 3px 9px; border-radius: 99px; box-shadow: 0 3px 0 #000; pointer-events: none; }
.chase-note { color: var(--muted); font-size: 12px; margin: 0; }

/* Set tiles with official art */
.set-tile.has-art { background: linear-gradient(180deg, rgba(7, 9, 20, 0.15), rgba(7, 9, 20, 0.85)), var(--art) center / cover; min-height: 190px; }
.set-tile.has-art .set-tile-logo { filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.8)); }

/* Traders promo on the home page */
.traders-promo { padding: 30px 0; }
.traders-promo-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 30px; align-items: center; background: radial-gradient(80% 120% at 85% 50%, rgba(255, 107, 61, 0.25), transparent 60%), linear-gradient(135deg, #1b2050, #10132e); border: 1px solid var(--line); border-radius: 22px; padding: 36px; overflow: hidden; }
.traders-promo h2 { font-family: var(--pixel); font-size: clamp(30px, 4vw, 44px); margin: 8px 0 10px; }
.traders-promo .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.tp-fan { position: relative; height: 340px; }
.tp-fan .tp-front, .tp-fan .tp-back { position: absolute; top: 50%; left: 50%; width: 200px; }
.tp-front { transform: translate(-50%, -50%) rotate(-3deg); z-index: 3; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.6)); }
.tp-back-0 { transform: translate(-108%, -52%) rotate(-14deg); z-index: 1; }
.tp-back-1 { transform: translate(8%, -50%) rotate(12deg); z-index: 2; }
@media (max-width: 760px) { .traders-promo-inner { grid-template-columns: 1fr; padding: 24px; } .tp-fan { height: 300px; } .tp-fan .tp-front, .tp-fan .tp-back { width: 160px; } }
.set-hero.has-art { position: relative; background: linear-gradient(90deg, rgba(7, 9, 20, 0.92) 0%, rgba(7, 9, 20, 0.7) 45%, rgba(7, 9, 20, 0.2) 100%), linear-gradient(0deg, var(--bg), transparent 30%), var(--art) 70% center / cover; padding: 40px 0 70px; }
.set-hero.has-art .logo-h1 img { filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.7)); }
.set-chase { margin-top: 30px; padding-top: 10px; }
.traders-promo, .chase { overflow-x: clip; }

/* ---------- Play page: the game in its portrait handheld, with the guide beside it ---------- */
.play-full { padding: 26px 16px 20px; }
.play-layout { display: flex; gap: 52px; justify-content: center; align-items: center; max-width: 1150px; margin: 0 auto; }
.player.portrait {
  --ph: clamp(560px, calc(100dvh - 190px), 840px);
  flex: none;
  height: var(--ph);
  width: min(calc(var(--ph) * 0.56), 92vw);
  max-width: none;
  min-height: 0;
  margin: 0;
  border-radius: 26px 26px 70px 26px;
  overflow: hidden;
  box-shadow: 0 34px 70px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.07);
}
.player.wide { flex: 1; max-width: 1000px; height: min(72dvh, 640px); border-radius: 40px; overflow: hidden; }
.play-side { max-width: 380px; }
.play-side h1 { font-family: var(--pixel); font-size: clamp(32px, 4vw, 46px); margin: 6px 0 10px; }
.play-side h2 { font-family: var(--pixel); font-size: 20px; margin: 22px 0 10px; }
.play-side .play-hint { text-align: left; margin: 14px 0; }
.keys { list-style: none; padding: 0; margin: 0; }
.keys li { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; column-gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.keys li span { grid-row: span 2; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; color: var(--muted); font-size: 13px; }
.keys li b { text-align: right; }
.keys li small { text-align: right; color: var(--muted); font-size: 12px; }
kbd { display: inline-block; min-width: 26px; padding: 3px 6px; border-radius: 6px; background: var(--card); border: 1px solid var(--line); border-bottom-width: 3px; font: 600 13px var(--body); color: var(--text); text-align: center; }
.play-layout:has(.player.wide) { flex-direction: column; gap: 22px; }
.play-layout:has(.player.wide) .player.wide { width: 100%; flex: none; }
.play-layout:has(.player.wide) .play-side { max-width: 1000px; width: 100%; }
@media (max-width: 860px) {
  .play-layout { flex-direction: column; gap: 22px; }
  .play-full { padding-top: 10px; }
  .player.portrait { --ph: clamp(480px, calc(100dvh - 200px), 800px); }
  .play-side { max-width: 460px; width: 100%; }
}

/* Home page: the game preview is the portrait handheld too */
.game-shot { aspect-ratio: 9 / 16; max-width: 330px; width: 100%; margin: 0 auto; border: 0; border-radius: 22px 22px 58px 22px; background: transparent; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5); }

/* PlayerBase wordmark: PLAYER in white, BASE in gold, same size */
.logo small { font-size: inherit; letter-spacing: inherit; }
