/* =========================================================================
   POPPY & LEO — Card Shop
   Neon arcade × neo-brutalism. Dark, loud, holographic.
   ========================================================================= */
:root {
  --bg: #0c0818;
  --bg-2: #140e26;
  --panel: #1a1330;
  --panel-2: #231a40;
  --line: #2f2552;
  --ink: #f6f2ff;
  --muted: #a89ec9;
  --pink: #ff2e88;
  --yellow: #ffd60a;
  --cyan: #22d3ee;
  --violet: #8b5cf6;
  --lime: #a3ff47;
  --black: #07040f;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-hard: 5px 5px 0 var(--black);
  --font-display: "Bricolage Grotesque", "Space Grotesk", system-ui, sans-serif;
  --font-body: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --holo: linear-gradient(115deg, #ff2e88, #ffd60a 25%, #a3ff47 45%, #22d3ee 65%, #8b5cf6 85%, #ff2e88);
  --g: var(--pink);
  --g2: var(--cyan);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(139, 92, 246, .22), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(255, 46, 136, .14), transparent 60%),
    var(--bg);
  color: var(--ink);
  font: 16px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: clip;
  display: flex;
  flex-direction: column;
}
body::before { /* grain */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
main { flex: 1; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.02; margin: 0 0 .4em; letter-spacing: -.02em; }
code { font-family: ui-monospace, "Cascadia Code", monospace; font-size: .85em; background: var(--panel-2); padding: .1em .4em; border-radius: 6px; }
::selection { background: var(--pink); color: #fff; }

.wrap { width: min(1280px, 100% - 2.5rem); margin-inline: auto; }
.section { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.section__head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.section__head h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; margin: 0; }
.page-title { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.prewrap { white-space: pre-line; }

.grad {
  background: linear-gradient(100deg, var(--pink), var(--yellow));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.grad--holo { background: var(--holo); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; animation: holo-slide 6s linear infinite; }
@keyframes holo-slide { to { background-position: 200% 0; } }

.dot { width: .55em; height: .55em; border-radius: 50%; background: var(--g); display: inline-block; box-shadow: 0 0 10px var(--g); flex: none; }

/* ---------- Ticker ---------- */
.ticker { background: var(--yellow); color: var(--black); overflow: hidden; border-bottom: 3px solid var(--black); font: 700 .8rem/1 var(--font-display); text-transform: uppercase; letter-spacing: .08em; }
.ticker__track { display: flex; gap: 1.6rem; width: max-content; padding: .55rem 0; animation: ticker 40s linear infinite; }
.ticker__track i { font-style: normal; color: var(--pink); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Header ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(12, 8, 24, .78); backdrop-filter: blur(14px) saturate(1.4); border-bottom: 1px solid var(--line); }
.topbar__inner { display: flex; align-items: center; gap: 1.25rem; height: 72px; }
.logo { display: flex; align-items: center; gap: .65rem; flex: none; }
.logo__mark {
  display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px;
  background: var(--pink); color: #fff; font: 800 .95rem/1 var(--font-display); letter-spacing: -.06em; white-space: nowrap;
  border: 2.5px solid var(--black); box-shadow: 3px 3px 0 var(--yellow); transform: rotate(-6deg); transition: transform .25s;
}
.logo__mark b { color: var(--yellow); }
.logo:hover .logo__mark { transform: rotate(4deg) scale(1.06); }
.logo__text { font: 800 1.25rem/1 var(--font-display); letter-spacing: -.03em; display: flex; flex-direction: column; }
.logo__text small { font: 600 .65rem/1.4 var(--font-body); color: var(--muted); text-transform: uppercase; letter-spacing: .25em; }

.search { position: relative; flex: 1; min-width: 0; max-width: 520px; display: flex; align-items: center; }
.search svg { position: absolute; left: 14px; width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2.2; stroke-linecap: round; }
.search input {
  width: 100%; height: 46px; padding: 0 3rem 0 2.75rem; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--bg-2); color: var(--ink); font: inherit; transition: border-color .2s, box-shadow .2s;
}
.search input:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 4px rgba(255, 46, 136, .2); }
.search input::-webkit-search-cancel-button { display: none; }
.search kbd { position: absolute; right: 12px; font: 600 .75rem var(--font-body); color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: .1rem .45rem; }
.search__results {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: var(--panel); border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
}
.search__results a { display: flex; align-items: center; gap: .75rem; padding: .55rem .8rem; border-bottom: 1px solid var(--line); }
.search__results a:last-child { border-bottom: 0; }
.search__results a:hover, .search__results a.is-active { background: var(--panel-2); }
.search__results img, .search__results .ph { width: 34px; height: 47px; border-radius: 4px; object-fit: cover; background: var(--panel-2); flex: none; }
.search__results span { flex: 1; min-width: 0; line-height: 1.2; }
.search__results small { display: block; color: var(--muted); }
.search__results b { color: var(--yellow); font-family: var(--font-display); }

.mainnav { display: flex; align-items: center; gap: .3rem; }
.mainnav a { display: flex; align-items: center; gap: .45rem; padding: .5rem .8rem; border-radius: 999px; font-weight: 600; font-size: .95rem; transition: background .2s; }
.mainnav a:hover { background: var(--panel-2); }

.cartbtn {
  position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; flex: none;
  background: var(--yellow); border: 2.5px solid var(--black); box-shadow: 3px 3px 0 var(--pink); transition: transform .15s, box-shadow .15s;
}
.cartbtn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--pink); }
.cartbtn svg { width: 24px; height: 24px; fill: none; stroke: var(--black); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.cartbtn__count {
  position: absolute; top: -9px; right: -9px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 999px;
  background: var(--pink); color: #fff; font: 800 .75rem/22px var(--font-display); text-align: center; border: 2px solid var(--black);
}
.cartbtn.bump { animation: bump .5s cubic-bezier(.3, 1.8, .5, 1); }
@keyframes bump { 30% { transform: scale(1.25) rotate(-8deg); } }

.langswitch {
  display: flex; flex: none; padding: 3px; gap: 2px; border-radius: 12px;
  background: var(--bg-2); border: 1.5px solid var(--line);
  font: 800 .8rem/1 var(--font-display); letter-spacing: .04em;
}
.langswitch a, .langswitch span { display: grid; place-items: center; min-width: 36px; height: 36px; padding: 0 .45rem; border-radius: 9px; }
.langswitch a { color: var(--muted); transition: color .2s, background .2s; }
.langswitch a:hover { color: var(--ink); background: var(--panel-2); }
.langswitch .is-on { background: var(--cyan); color: var(--black); box-shadow: inset 0 0 0 2px var(--black); }

.burger { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; flex-direction: column; justify-content: space-between; }
.burger span { display: block; height: 3px; border-radius: 2px; background: var(--ink); transition: transform .25s, opacity .25s; }

/* ---------- Buttons ---------- */
.btn {
  --bc: var(--black);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; cursor: pointer;
  padding: .95rem 1.6rem; border-radius: 14px; border: 2.5px solid var(--bc); font: 700 1rem/1 var(--font-display);
  letter-spacing: -.01em; transition: transform .15s, box-shadow .15s, background .2s; text-align: center;
}
.btn span { transition: transform .2s; }
.btn:hover span { transform: translateX(4px); }
.btn--primary { background: var(--pink); color: #fff; box-shadow: var(--shadow-hard), 5px 5px 0 2.5px var(--yellow); }
.btn--primary:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--black), 7px 7px 0 2.5px var(--yellow); }
.btn--primary:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--black); }
.btn--ghost { background: transparent; color: var(--ink); --bc: var(--line); }
.btn--ghost:hover { border-color: var(--ink); background: rgba(255, 255, 255, .04); }
.btn--dark { background: var(--black); color: var(--yellow); box-shadow: 5px 5px 0 rgba(0, 0, 0, .35); }
.btn--dark:hover { transform: translate(-2px, -2px) rotate(-1deg); }
.btn--sm { padding: .65rem 1rem; font-size: .9rem; border-radius: 11px; }
.btn--block { width: 100%; }
.btn--grow { flex: 1; }
.btn[disabled], .is-loading .btn { opacity: .6; pointer-events: none; }
.linkbtn { background: none; border: 0; color: var(--muted); font: inherit; cursor: pointer; padding: .5rem .8rem; }
.linkbtn:hover { color: var(--ink); }
.link-arrow { color: var(--yellow); font-weight: 700; white-space: nowrap; }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }
.iconbtn { width: 36px; height: 36px; border-radius: 10px; border: 1.5px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; }
.iconbtn:hover { color: #fff; background: var(--pink); border-color: var(--pink); }

.pill {
  display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .85rem; border-radius: 999px;
  font: 700 .78rem/1 var(--font-body); text-transform: uppercase; letter-spacing: .08em;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--line); color: var(--ink);
}
.pill--glow { background: rgba(163, 255, 71, .1); border-color: rgba(163, 255, 71, .4); color: var(--lime); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__bg::after { /* grid */
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; opacity: .35;
  mask-image: radial-gradient(ellipse 70% 70% at 70% 40%, #000 20%, transparent 75%);
}
.hero__bg i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: float 14s ease-in-out infinite; }
.hero__bg i:nth-child(1) { width: 420px; height: 420px; background: var(--pink); top: -120px; right: 8%; }
.hero__bg i:nth-child(2) { width: 360px; height: 360px; background: var(--violet); bottom: -160px; right: 30%; animation-delay: -5s; }
.hero__bg i:nth-child(3) { width: 260px; height: 260px; background: var(--cyan); top: 30%; right: -60px; animation-delay: -9s; opacity: .35; }
@keyframes float { 50% { transform: translate(-30px, 40px) scale(1.1); } }

.hero__inner { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 2rem; align-items: center; min-height: 600px; padding-block: 4rem; }
.hero h1 { font-size: clamp(3rem, 7.5vw, 6.2rem); font-weight: 800; letter-spacing: -.045em; line-height: .92; margin: 1.2rem 0 1.4rem; }
.hero h1 .grad { background: var(--holo); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; animation: holo-slide 6s linear infinite; }
.hero p { font-size: 1.15rem; color: var(--muted); max-width: 32rem; }
.hero p b { color: var(--ink); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; margin: 2rem 0 2.5rem; }
.hero__stats { display: flex; gap: 2.5rem; list-style: none; padding: 0; margin: 0; }
.hero__stats li { display: flex; flex-direction: column; }
.hero__stats b { font: 800 2rem/1 var(--font-display); }
.hero__stats span { color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; }

.hero__fan { position: relative; height: 520px; }
.fan { position: absolute; top: 50%; left: 50%; width: min(300px, 62%); transition: transform .5s cubic-bezier(.2, .9, .3, 1.2); }
.fan--1 { transform: translate(-50%, -50%) rotate(0deg); z-index: 3; }
.fan--2 { transform: translate(-108%, -44%) rotate(-12deg); z-index: 2; }
.fan--3 { transform: translate(8%, -44%) rotate(12deg); z-index: 1; }
.hero__fan:hover .fan--2 { transform: translate(-128%, -46%) rotate(-18deg); }
.hero__fan:hover .fan--3 { transform: translate(28%, -46%) rotate(18deg); }
.hero__fan:hover .fan--1 { transform: translate(-50%, -56%) scale(1.04); }
.sticker {
  position: absolute; z-index: 5; display: grid; place-items: center; text-align: center; border-radius: 50%;
  font: 800 1rem/1.05 var(--font-display); text-transform: uppercase; border: 3px solid var(--black); box-shadow: var(--shadow-hard);
}
.sticker--a { width: 110px; height: 110px; background: var(--lime); color: var(--black); top: 6%; right: 6%; transform: rotate(14deg); animation: wobble 4s ease-in-out infinite; }
.sticker--b { width: 96px; height: 96px; background: var(--yellow); color: var(--black); bottom: 8%; left: 4%; transform: rotate(-12deg); font-size: .8rem; animation: wobble 5s ease-in-out infinite reverse; }
.sticker--b b { font-size: 1.25rem; display: block; }
@keyframes wobble { 50% { transform: rotate(-4deg) scale(1.05); } }

/* ---------- Card art (holo / tilt) ---------- */
.art {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%; --o: 0;
  position: relative; aspect-ratio: 63 / 88; border-radius: 4.5% / 3.3%; overflow: hidden; isolation: isolate;
  background: var(--panel-2); transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .4s cubic-bezier(.2, .9, .3, 1), box-shadow .3s; will-change: transform;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .45);
}
.art.is-tilting { transition: transform .08s linear, box-shadow .3s; }
.art img { width: 100%; height: 100%; object-fit: cover; }
.art__shine {
  position: absolute; inset: 0; pointer-events: none; opacity: var(--o); transition: opacity .3s; mix-blend-mode: soft-light;
  background: radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, .85), transparent 55%);
}
.art__holo {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: color-dodge; opacity: calc(.25 + var(--o) * .45);
  background:
    repeating-linear-gradient(110deg, transparent 0 6%, rgba(255, 255, 255, .25) 8%, transparent 10% 16%),
    var(--holo);
  background-size: 220% 220%, 260% 260%;
  background-position: var(--mx) var(--my), calc(100% - var(--mx)) calc(100% - var(--my));
  filter: saturate(1.4) brightness(.8);
}
.art--foil { box-shadow: 0 14px 30px rgba(0, 0, 0, .45), 0 0 0 2px rgba(255, 255, 255, .08), 0 0 34px -6px var(--pink); }
.art--xl { box-shadow: 0 30px 70px rgba(0, 0, 0, .6); border-radius: 4.5% / 3.3%; }
.art--sm { width: 64px; box-shadow: 0 6px 14px rgba(0, 0, 0, .4); }
.art__ph {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 10% 9%; gap: .3rem;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .25), transparent 40%),
    linear-gradient(150deg, var(--g), var(--g2));
  color: var(--black);
}
.art__ph::before { content: ""; position: absolute; inset: 5%; border: 2px solid rgba(7, 4, 15, .5); border-radius: 4% / 3%; }
.art__ph strong { font: 800 clamp(.95rem, 2.2vw, 1.4rem)/1.05 var(--font-display); letter-spacing: -.02em; position: relative; }
.art__ph em { font-style: normal; font-size: .75rem; font-weight: 600; opacity: .8; position: relative; }
.art__game {
  position: absolute; top: 9%; left: 9%; font: 800 .75rem/1 var(--font-display); letter-spacing: .1em;
  background: var(--black); color: var(--g); padding: .35rem .5rem; border-radius: 6px;
}
.art--sm .art__ph { padding: 8%; } .art--sm .art__ph strong { font-size: .5rem; } .art--sm .art__ph em, .art--sm .art__game { display: none; }

/* ---------- Product tiles ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1.4rem; }
.grid--5 { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 1.4rem; overflow-x: auto; padding: .5rem .25rem 1.5rem; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--pink) transparent; }
.rail > * { scroll-snap-align: start; }
@media (min-width: 1100px) { .rail { grid-auto-columns: calc((100% - 4 * 1.4rem) / 5); } }

.tile {
  position: relative; display: flex; flex-direction: column; background: var(--panel); border: 1.5px solid var(--line);
  border-radius: var(--radius); padding: .8rem; transition: transform .25s, border-color .25s, box-shadow .25s;
}
.tile:hover { transform: translateY(-6px); border-color: var(--g); box-shadow: 0 18px 40px -12px color-mix(in srgb, var(--g) 55%, transparent); }
.tile__link { position: relative; display: block; }
.tile__badges { position: absolute; top: .55rem; left: .55rem; display: flex; flex-wrap: wrap; gap: .3rem; z-index: 2; pointer-events: none; }
.tile__badges--inline { position: static; margin-bottom: 1.25rem; }
.badge {
  font: 700 .68rem/1 var(--font-body); text-transform: uppercase; letter-spacing: .06em; padding: .35rem .5rem; border-radius: 7px;
  background: rgba(7, 4, 15, .85); color: var(--ink); border: 1px solid rgba(255, 255, 255, .15); backdrop-filter: blur(4px);
}
.badge--foil { background: var(--holo); background-size: 200% 100%; color: var(--black); border-color: var(--black); animation: holo-slide 4s linear infinite; }
.badge--cond { background: var(--lime); color: var(--black); border-color: var(--black); }
.tile__body { display: flex; flex-direction: column; gap: .35rem; padding: .85rem .2rem .1rem; flex: 1; }
.tile__game { display: flex; align-items: center; gap: .4rem; font-size: .72rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile h3 { font-size: 1.08rem; font-weight: 700; margin: 0; letter-spacing: -.01em; line-height: 1.2; }
.tile h3 a:hover { color: var(--g); }
.tile__meta { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .78rem; color: var(--muted); align-items: center; }
.cond { background: var(--panel-2); color: var(--ink); padding: .1rem .4rem; border-radius: 5px; font-weight: 700; }
.stock { color: var(--lime); font-weight: 600; }
.stock--low { color: var(--yellow); }
.stock--out { color: var(--pink); }
.tile__foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: .6rem; }
.price { font: 800 1.4rem/1 var(--font-display); letter-spacing: -.02em; color: var(--yellow); }
.price--xl { font-size: clamp(2.4rem, 5vw, 3.4rem); }
.price--ask { font-size: .9rem; color: var(--muted); font-family: var(--font-body); font-weight: 600; }
.btn-add {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; cursor: pointer;
  background: var(--g); border: 2.5px solid var(--black); box-shadow: 3px 3px 0 var(--black); transition: transform .15s, box-shadow .15s;
}
.btn-add svg { width: 20px; height: 20px; stroke: var(--black); stroke-width: 3; stroke-linecap: round; fill: none; transition: transform .3s; }
.btn-add:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--black); }
.btn-add:hover svg { transform: rotate(90deg); }
.btn-add:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--black); }
.btn-add.is-done { background: var(--lime); }

/* ---------- Games ---------- */
.games { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.game {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%;
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; min-height: 230px;
  padding: 1.5rem; border-radius: 22px; border: 3px solid var(--black); color: var(--black);
  background: linear-gradient(140deg, var(--g), var(--g2)); box-shadow: 6px 6px 0 var(--black);
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .4s cubic-bezier(.2, .9, .3, 1), box-shadow .2s;
}
.game::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, .5), transparent 50%); opacity: 0; transition: opacity .3s; }
.game:hover::after { opacity: 1; }
.game:hover { box-shadow: 10px 10px 0 var(--black); }
.game__short { position: absolute; top: -.15em; right: -.05em; font: 800 clamp(5rem, 9vw, 7.5rem)/1 var(--font-display); letter-spacing: -.06em; color: rgba(7, 4, 15, .16); }
.game__name { font: 800 2rem/1 var(--font-display); letter-spacing: -.03em; position: relative; }
.game__count { font-weight: 700; margin-top: .4rem; position: relative; }
.game--soon { filter: grayscale(.6); opacity: .55; }

/* ---------- Promo / sets / foil band ---------- */
.promo {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding: 2.2rem 2.5rem;
  border-radius: 26px; border: 3px solid var(--black); color: var(--black); box-shadow: 8px 8px 0 var(--black);
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 255, 255, .5), transparent 30%),
    linear-gradient(110deg, var(--yellow), #ff9f1c 55%, var(--pink));
}
.promo h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; margin: .6rem 0 .3rem; }
.promo p { margin: 0; font-weight: 500; max-width: 34rem; }
.promo .pill { background: var(--black); color: var(--yellow); border-color: var(--black); }

.sets { display: flex; flex-wrap: wrap; gap: .75rem; }
.sets a {
  display: flex; align-items: center; gap: .7rem; padding: .7rem .8rem .7rem 1.1rem; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--panel); font-weight: 600; transition: border-color .2s, transform .2s, background .2s;
}
.sets a:hover { border-color: var(--g); transform: translateY(-2px); background: var(--panel-2); }
.sets span { background: var(--g); color: var(--black); font: 800 .75rem/1 var(--font-display); padding: .35rem .55rem; border-radius: 999px; }

.foilband { position: relative; background: linear-gradient(180deg, transparent, rgba(139, 92, 246, .14) 30%, rgba(34, 211, 238, .08) 70%, transparent); }

/* ---------- Catalog ---------- */
.banner {
  position: relative; overflow: hidden; padding: 3rem 0 2rem; border-bottom: 1px solid var(--line);
  background: radial-gradient(800px 300px at 80% 0, color-mix(in srgb, var(--g) 35%, transparent), transparent 70%);
}
.banner h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 800; letter-spacing: -.04em; margin: .9rem 0 1.4rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.chip {
  display: inline-flex; align-items: center; gap: .45rem; padding: .55rem 1rem; border-radius: 999px; font-weight: 600; font-size: .92rem;
  border: 1.5px solid var(--line); background: var(--panel); transition: all .2s;
}
.chip small { color: var(--muted); font-weight: 700; }
.chip:hover { border-color: var(--g, var(--pink)); }
.chip.is-on { background: var(--ink); color: var(--black); border-color: var(--ink); }
.chip.is-on small { color: var(--black); opacity: .6; }

.catalog { display: grid; grid-template-columns: 250px 1fr; gap: 2rem; padding-block: 2rem 4rem; align-items: start; }
.filters { position: sticky; top: 92px; background: var(--panel); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.filters form { display: flex; flex-direction: column; gap: 1.1rem; }
.reset { color: var(--pink); font-weight: 600; font-size: .9rem; }

.field { display: flex; flex-direction: column; gap: .4rem; }
.field > span { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.field input, .field select, .field textarea, .inline-search input {
  width: 100%; padding: .75rem .9rem; border-radius: 11px; border: 1.5px solid var(--line); background: var(--bg-2);
  color: var(--ink); font: inherit; transition: border-color .2s, box-shadow .2s;
}
.field select { appearance: none; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2rem; }
.field input:focus, .field select:focus, .field textarea:focus, .inline-search input:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 4px rgba(255, 46, 136, .18); }
.field small { color: var(--pink); font-weight: 600; }
.field.has-error input, .field.has-error textarea { border-color: var(--pink); }
.range { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }

.toggle { display: flex; align-items: center; gap: .7rem; cursor: pointer; font-weight: 600; }
.toggle input { position: absolute; opacity: 0; }
.toggle span { width: 44px; height: 26px; border-radius: 999px; background: var(--panel-2); border: 1.5px solid var(--line); position: relative; transition: background .2s; flex: none; }
.toggle span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: var(--muted); transition: transform .25s cubic-bezier(.3, 1.6, .5, 1), background .2s; }
.toggle input:checked + span { background: var(--holo); }
.toggle input:checked + span::after { transform: translateX(18px); background: #fff; }
.toggle input:focus-visible + span { box-shadow: 0 0 0 4px rgba(255, 46, 136, .3); }

.pager { display: flex; justify-content: center; gap: .4rem; margin-top: 2.5rem; flex-wrap: wrap; }
.pager a, .pager span { min-width: 44px; height: 44px; display: grid; place-items: center; padding: 0 .8rem; border-radius: 12px; border: 1.5px solid var(--line); font-weight: 700; }
.pager a:hover { border-color: var(--pink); }
.pager .is-current { background: var(--pink); border-color: var(--black); box-shadow: 3px 3px 0 var(--black); }
.pager .gap { border: 0; }

.empty { text-align: center; padding: 4rem 1rem; display: flex; flex-direction: column; align-items: center; gap: .5rem; }
.empty__icon { font-size: 4rem; }
.empty h2 { font-size: 2rem; }
.empty p { color: var(--muted); margin: 0 0 1.25rem; }
.empty p a { color: var(--yellow); text-decoration: underline; }
.big404 { font: 800 clamp(6rem, 18vw, 11rem)/1 var(--font-display); letter-spacing: -.06em; }

/* ---------- Product ---------- */
.product { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.product__glow { position: absolute; inset: -20% 40% 20% -20%; background: radial-gradient(closest-side, color-mix(in srgb, var(--g) 45%, transparent), transparent); filter: blur(40px); pointer-events: none; }
.product__inner { position: relative; display: grid; grid-template-columns: minmax(280px, 440px) 1fr; gap: clamp(2rem, 5vw, 5rem); padding-block: 3rem 4rem; align-items: start; }
.product__art { position: sticky; top: 100px; }
.hint { text-align: center; color: var(--muted); font-size: .85rem; margin-top: 1rem; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 1rem; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.product h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 800; letter-spacing: -.04em; }
.buybox { background: var(--panel); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.5rem; }
.buybox__price { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.buybox__form { display: flex; gap: .8rem; flex-wrap: wrap; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 14px; background: var(--bg-2); overflow: hidden; }
.stepper button { width: 46px; height: 52px; border: 0; background: transparent; color: var(--ink); font-size: 1.3rem; cursor: pointer; }
.stepper button:hover { background: var(--panel-2); color: var(--pink); }
.stepper input { width: 46px; text-align: center; border: 0; background: transparent; color: var(--ink); font: 700 1.1rem var(--font-display); -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-inner-spin-button { display: none; }
.stepper--sm button { width: 34px; height: 38px; font-size: 1.05rem; }
.stepper--sm input { width: 34px; font-size: 1rem; }

.specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1px; background: var(--line); border: 1.5px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 0 0 1.5rem; }
.specs div { background: var(--panel); padding: .9rem 1.1rem; }
.specs dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.specs dd { margin: .2rem 0 0; font-weight: 600; }
.specs--compact { grid-template-columns: 1fr; }
.perks { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; color: var(--muted); }
.perks b { margin-right: .5rem; }

/* ---------- Cart / checkout ---------- */
.cartlayout { display: grid; grid-template-columns: 1fr 380px; gap: 2rem; align-items: start; }
.cartlist { display: flex; flex-direction: column; gap: .8rem; }
.cartline { display: grid; grid-template-columns: 64px 1fr auto auto auto; gap: 1.1rem; align-items: center; background: var(--panel); border: 1.5px solid var(--line); border-radius: var(--radius); padding: .8rem 1rem; }
.cartline__info { display: flex; flex-direction: column; min-width: 0; font-size: .92rem; }
.cartline__info b { font-family: var(--font-display); font-size: 1.1rem; }
.cartline__info a:hover b { color: var(--pink); }
.cartline__total { font: 800 1.15rem var(--font-display); color: var(--yellow); min-width: 80px; text-align: right; }
.panel { background: var(--panel); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.summary { position: sticky; top: 92px; background: var(--panel); border: 2.5px solid var(--black); border-radius: var(--radius); padding: 1.5rem; box-shadow: 6px 6px 0 var(--pink); display: flex; flex-direction: column; gap: .8rem; }
.summary h3 { font-size: 1.5rem; }
.row { display: flex; justify-content: space-between; gap: 1rem; }
.row span { color: var(--muted); }
.row--item span { color: var(--ink); font-size: .92rem; }
.row--item em { color: var(--cyan); font-style: normal; font-size: .8rem; }
.row--total { border-top: 1.5px dashed var(--line); padding-top: .9rem; font-size: 1.25rem; }
.row--total span { color: var(--ink); font-weight: 700; }
.row--total b { font: 800 1.6rem var(--font-display); color: var(--yellow); }
.freeship { background: var(--bg-2); border-radius: 12px; padding: .9rem; font-size: .9rem; }
.freeship p { margin: 0 0 .55rem; }
.freeship--ok p { margin: 0; color: var(--lime); font-weight: 700; }
.bar { height: 9px; border-radius: 999px; background: var(--panel-2); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--holo); background-size: 200% 100%; animation: holo-slide 3s linear infinite; border-radius: inherit; }

.checkout { display: flex; flex-direction: column; gap: 1.1rem; }
.checkout h3 { font-size: 1.3rem; margin: .5rem 0 0; }
.formgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.formgrid .field:first-child { grid-column: 1 / -1; }
.checkout h3 small { font: 500 .85rem var(--font-body); }
.addr-field { position: relative; }
.addr-suggest {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 20; overflow: hidden;
  background: var(--panel); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
}
.addr-suggest [role=option] { display: flex; flex-direction: column; gap: .1rem; padding: .65rem .9rem; cursor: pointer; border-bottom: 1px solid var(--line); }
.addr-suggest [role=option]:last-child { border-bottom: 0; }
.addr-suggest [role=option]:hover, .addr-suggest [role=option].is-active { background: var(--panel-2); }
.addr-suggest small { color: var(--muted); font-size: .82rem; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.choice { cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice span { display: flex; flex-direction: column; gap: .2rem; padding: 1rem 1.1rem; border-radius: 14px; border: 2px solid var(--line); background: var(--bg-2); transition: all .2s; }
.choice small { color: var(--muted); }
.choice input:checked + span { border-color: var(--pink); background: rgba(255, 46, 136, .1); box-shadow: 4px 4px 0 var(--pink); }
.choice input:focus-visible + span { outline: 3px solid var(--cyan); }
.notice { background: rgba(34, 211, 238, .08); border: 1.5px solid rgba(34, 211, 238, .35); border-radius: 12px; padding: .9rem 1rem; font-size: .92rem; }
.notice--warn { background: rgba(255, 214, 10, .08); border-color: rgba(255, 214, 10, .4); }

.thanks { position: relative; max-width: 640px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.thanks h1 { font-size: clamp(3rem, 8vw, 5rem); font-weight: 800; letter-spacing: -.04em; margin: 0; }
.thanks p { color: var(--muted); font-size: 1.1rem; }
.thanks__recap { width: 100%; display: flex; flex-direction: column; gap: .6rem; text-align: left; margin-bottom: 1rem; }
.confetti { position: absolute; inset: -40px 0 auto; height: 0; pointer-events: none; }
.confetti i {
  position: absolute; left: calc(var(--i) * 4.2%); top: 0; width: 10px; height: 16px; border-radius: 2px;
  background: hsl(calc(var(--i) * 47), 95%, 60%); animation: confetti 2.4s calc(var(--i) * -0.1s) ease-in forwards; opacity: 0;
}
@keyframes confetti { 0% { opacity: 1; transform: translateY(-20px) rotate(0); } 100% { opacity: 0; transform: translateY(420px) rotate(720deg); } }

.login { max-width: 420px; margin: 2rem auto; display: flex; flex-direction: column; gap: 1rem; }

/* ---------- Admin ---------- */
.admin__head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem; }
.admin__nav { display: flex; align-items: center; gap: .3rem; flex-wrap: wrap; }
.admin__nav a { padding: .55rem .95rem; border-radius: 999px; font-weight: 600; border: 1.5px solid transparent; }
.admin__nav a.is-on { border-color: var(--pink); background: rgba(255, 46, 136, .1); }
.admin__cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.5rem; align-items: start; }
.admin__toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.inline-search input { width: 260px; }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .75rem; }
.panel__head h3 { margin: 0; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.kpi { background: var(--panel); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem; display: flex; flex-direction: column; gap: .3rem; }
.kpi span { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.kpi b { font: 800 2rem/1 var(--font-display); }
.kpi--warn b { color: var(--yellow); }
a.kpi:hover { border-color: var(--pink); }
.table-scroll { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding: .6rem .5rem; border-bottom: 1.5px solid var(--line); }
.table td { padding: .7rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table a:hover { color: var(--pink); }
.tag { display: inline-block; padding: .25rem .55rem; border-radius: 7px; font-size: .75rem; font-weight: 700; background: var(--panel-2); white-space: nowrap; }
.tag--ok, .tag--expediee { background: rgba(163, 255, 71, .15); color: var(--lime); }
.tag--err, .tag--annulee { background: rgba(255, 46, 136, .15); color: var(--pink); }
.tag--nouvelle { background: rgba(255, 214, 10, .15); color: var(--yellow); }
.tag--confirmee { background: rgba(34, 211, 238, .15); color: var(--cyan); }
.tag--payee, .tag--pay-completed { background: rgba(163, 255, 71, .15); color: var(--lime); }
.tag--attente_paiement, .tag--pay-pending { background: rgba(255, 214, 10, .15); color: var(--yellow); }
.tag--pay-declined, .tag--pay-refunded { background: rgba(255, 46, 136, .15); color: var(--pink); }
.notice--pay { background: rgba(0, 112, 186, .12); border-color: rgba(0, 156, 222, .45); }
.btn--paypal { background: #ffc439; color: #111; box-shadow: var(--shadow-hard), 5px 5px 0 2.5px #0070ba; }
.btn--paypal:hover { box-shadow: 7px 7px 0 var(--black), 7px 7px 0 2.5px #0070ba; }
.paid-badge { display: inline-block; margin: 0; padding: .5rem 1rem; border-radius: 999px; font-weight: 700; color: var(--black) !important; background: var(--lime); border: 2.5px solid var(--black); }
.statusform { display: flex; flex-direction: column; gap: .8rem; margin-top: 1rem; }

.tag--ebay-pending { background: rgba(255, 214, 10, .15); color: var(--yellow); }
.tag--ebay-reflected { background: rgba(163, 255, 71, .15); color: var(--lime); }
.tag--ebay-cancelled { background: var(--panel-2); color: var(--muted); }
.tag--ebay-unmatched { background: rgba(255, 46, 136, .15); color: var(--pink); }
.section-gap { margin-top: 1.5rem; }
.btnrow { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin: 1rem 0 .5rem; }
.inline-form { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.inline-form input { flex: 1; min-width: 140px; padding: .6rem .8rem; border-radius: 10px; border: 1.5px solid var(--line); background: var(--bg-2); color: var(--ink); font: inherit; }
.inline-form input.qty { flex: 0 0 70px; min-width: 0; }
.inline-form input.short { min-width: 110px; flex: 0 1 130px; }
.inline-form input:focus { outline: none; border-color: var(--pink); }
.actions { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; }
.actions .linkbtn { padding: .3rem .5rem; font-size: .85rem; }
.details { margin-top: 1rem; }
.details summary { cursor: pointer; color: var(--muted); font-size: .9rem; }
.details[open] summary { margin-bottom: .6rem; }
pre.code { background: var(--bg-2); border-radius: 10px; padding: .8rem 1rem; font-size: .85rem; overflow-x: auto; margin: .6rem 0; }
.steps { padding-left: 1.2rem; color: var(--muted); display: grid; gap: .5rem; margin: 0 0 1.2rem; }
.steps b { color: var(--ink); }
.simform { border-top: 1.5px dashed var(--line); padding-top: 1rem; display: grid; gap: .6rem; }
.simform h4 { margin: 0; }

/* ---------- Toasts ---------- */
.flashes { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 90; display: flex; flex-direction: column; gap: .6rem; align-items: flex-end; pointer-events: none; }
.toast {
  pointer-events: auto; padding: .9rem 1.2rem; border-radius: 14px; font-weight: 700; max-width: 360px;
  background: var(--lime); color: var(--black); border: 2.5px solid var(--black); box-shadow: var(--shadow-hard);
  animation: toast-in .45s cubic-bezier(.3, 1.6, .5, 1), toast-out .4s 4s forwards;
}
.toast--error { background: var(--pink); color: #fff; }
@keyframes toast-in { from { transform: translateY(30px) scale(.9); opacity: 0; } }
@keyframes toast-out { to { transform: translateX(120%); opacity: 0; } }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 3rem 0 2rem; margin-top: 2rem; background: var(--bg-2); overflow: hidden; }
.footer__big { font: 800 clamp(3.5rem, 13vw, 11rem)/.85 var(--font-display); letter-spacing: -.06em; white-space: nowrap; background: linear-gradient(180deg, var(--ink), rgba(246, 242, 255, .1)); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 2.5rem; }
.footer__big span { color: var(--pink); -webkit-text-fill-color: var(--pink); }
.footer__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.footer__grid div { display: flex; flex-direction: column; gap: .5rem; color: var(--muted); }
.footer__grid h4 { color: var(--ink); font-size: 1rem; text-transform: uppercase; letter-spacing: .12em; }
.footer__grid a:hover { color: var(--yellow); }
.footer__legal { margin-top: 2.5rem; font-size: .78rem; color: var(--muted); opacity: .7; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .mainnav { position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; background: var(--bg); border-bottom: 1px solid var(--line); padding: 1rem; transform: translateY(-12px); opacity: 0; visibility: hidden; transition: transform .25s, opacity .25s, visibility .25s; }
  .mainnav.is-open { transform: none; opacity: 1; visibility: visible; }
  .mainnav a { padding: .9rem 1rem; font-size: 1.1rem; }
  .burger { display: flex; }
  .burger.is-open span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
  .burger.is-open span:nth-child(2) { opacity: 0; }
  .burger.is-open span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }
  .catalog { grid-template-columns: 1fr; }
  .filters { position: static; }
  .filters form { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); align-items: end; }
  .cartlayout, .admin__cols { grid-template-columns: 1fr; }
  .summary { position: static; }
}
@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; min-height: 0; padding-block: 3rem 1rem; }
  .hero__fan { height: 420px; }
  .product__inner { grid-template-columns: 1fr; }
  .product__art { position: static; max-width: 360px; margin: 0 auto; }
}
@media (max-width: 640px) {
  .topbar__inner { gap: .5rem; height: 64px; }
  .mainnav { inset: 64px 0 auto 0; }
  .cartbtn { width: 44px; height: 44px; }
  .langswitch a, .langswitch span { min-width: 30px; height: 32px; padding: 0 .3rem; }
  .burger { width: 38px; padding: 9px 6px; }
  .logo__text, .search kbd { display: none; }
  .search input { height: 42px; }
  .grid, .grid--5 { grid-template-columns: repeat(2, 1fr); gap: .8rem; }
  .tile { padding: .55rem; border-radius: 14px; }
  .tile h3 { font-size: .95rem; }
  .price { font-size: 1.15rem; }
  .btn-add { width: 36px; height: 36px; }
  .hero__fan { height: 340px; }
  .sticker--a { width: 84px; height: 84px; font-size: .8rem; }
  .sticker--b { width: 76px; height: 76px; }
  .cartline { position: relative; grid-template-columns: 56px 1fr auto; gap: .6rem .9rem; }
  .cartline__art { grid-row: span 2; }
  .cartline__info { grid-column: 2 / 4; padding-right: 2.5rem; }
  .cartline > form:last-child { position: absolute; top: .6rem; right: .6rem; }
  .formgrid, .choices, .footer__grid { grid-template-columns: 1fr; }
  .promo { padding: 1.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
