/* Lucalix Store: the portfolio's night shooting range turned into a loot screen.
   Black stage, red stepped waves bottom-right, gold for everything to read or press, one rounded face, square pixels. */

@font-face {
  font-family: "Milky Nice";
  src: url("fonts/MilkyNice-Clean.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #050000;
  --ink-2: #120305;
  --ink-3: #1d0a0c;
  --line: #3a2414;
  --red: #ff1f45;
  --gold-hi: #fff1b0;
  --gold: #ffc83d;
  --gold-lo: #c98a00;
  --text: #f6e9c8;
  --text-dim: #cdb98a;
  --gold-grad: linear-gradient(180deg, var(--gold-hi) 0%, var(--gold) 52%, var(--gold-lo) 100%);
  --nav-h: 4rem;
  --gutter: clamp(1rem, 4vw, 4rem);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --display: "Milky Nice", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  --px: 4px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1rem);
  background: var(--ink);
  scrollbar-color: var(--gold-lo) var(--ink);
  scrollbar-width: thin;
}
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: var(--gold-lo); }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--ink);
  color: var(--text);
  font-family: var(--display);
  font-size: 1.0625rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, h3, p, ol, ul, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
h1, h2, h3 { font-weight: 400; text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 3px solid var(--gold-hi); outline-offset: 3px; }
[hidden] { display: none !important; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--gold); color: var(--ink); padding: .6rem 1rem; }
.skip:focus { top: 1rem; }

.gold {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* pixel art: colors from the palette, never smoothed */
.px { display: block; image-rendering: pixelated; }
.px .ph { fill: var(--gold-hi); }
.px .pg { fill: var(--gold); }
.px .pd { fill: var(--gold-lo); }
.px .pr { fill: var(--red); }
.px .pk { fill: #2a1508; }

/* ---------- stage: waves, pixel canvas, HUD corners, XP bar ---------- */

.stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url("waves.svg") right bottom / cover no-repeat;
  opacity: .9;
}
body.conta::before {
  content: "";
  position: fixed;
  inset: 40% 0 0 0;
  z-index: 0;
  pointer-events: none;
  background: url("waves.svg") right bottom / cover no-repeat;
  opacity: .55;
}

#shots { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 60; pointer-events: none; }

.hud { position: fixed; inset: 0; z-index: 55; pointer-events: none; }
.hud i { position: absolute; width: 22px; height: 22px; border: 0 solid var(--gold); }
.hud .tl { left: 10px; top: calc(var(--nav-h) + 10px); border-left-width: 2px; border-top-width: 2px; }
.hud .tr { right: 10px; top: calc(var(--nav-h) + 10px); border-right-width: 2px; border-top-width: 2px; }
.hud .bl { left: 10px; bottom: 10px; border-left-width: 2px; border-bottom-width: 2px; }
.hud .br { right: 10px; bottom: 10px; border-right-width: 2px; border-bottom-width: 2px; }
.hud .tl::after { content: ""; position: absolute; left: 7px; top: 7px; width: 6px; height: 6px; background: var(--red); }

.xp {
  position: fixed;
  left: 0; top: 0;
  z-index: 80;
  height: 4px;
  width: calc(var(--p, 0) * 100%);
  background: var(--gold-grad);
  -webkit-mask-image: repeating-linear-gradient(90deg, #000 0 10px, transparent 10px 13px);
  mask-image: repeating-linear-gradient(90deg, #000 0 10px, transparent 10px 13px);
  transition: width .15s linear;
}

/* ---------- top bar ---------- */

.bar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 70;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 var(--gutter);
  background: rgba(5, 0, 0, .94);
  border-bottom: 2px solid var(--line);
}
.logo { display: inline-flex; align-items: center; gap: .55rem; font-size: 1.35rem; line-height: 1; color: var(--text); }
.logo .gold { margin-left: .3rem; }
.logo-mark {
  width: 20px; height: 20px;
  background: var(--gold);
  box-shadow: inset -4px -4px 0 var(--gold-lo), inset 4px 4px 0 var(--gold-hi);
  clip-path: polygon(0 4px, 4px 4px, 4px 0, calc(100% - 4px) 0, calc(100% - 4px) 4px, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 4px calc(100% - 4px), 0 calc(100% - 4px));
}
.bar-nav { display: flex; align-items: center; gap: clamp(.75rem, 2.4vw, 1.75rem); font-size: 1rem; }
.bar-nav a { color: var(--text); padding: .4rem 0; position: relative; white-space: nowrap; }
.bar-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--gold); transition: right .3s var(--ease); }
.bar-nav a:hover { color: var(--gold-hi); }
.bar-nav a:hover::after, .bar-nav a:focus-visible::after { right: 0; }

/* ---------- shared pieces ---------- */

main, .foot { position: relative; z-index: 2; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--gold);
  font-size: .95rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.tag::before { content: ""; width: 8px; height: 8px; background: var(--gold); box-shadow: 12px 0 0 var(--gold-lo); margin-right: 12px; }
.tag:has(.px-tag)::before { display: none; }
.px-tag { width: 21px; height: 21px; }

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  min-height: 3.5rem;
  padding: .75rem 1.4rem;
  border: 2px solid var(--gold);
  background: var(--ink);
  color: var(--gold);
  font-size: 1.15rem;
  line-height: 1.1;
  cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s, color .2s, box-shadow .2s;
}
.btn:hover, .btn:focus-visible { background: var(--gold); color: var(--ink); transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0, 0, 0, .55); }
.btn:active { transform: translateY(0); }
.btn-sm { min-height: 2.6rem; padding: .45rem .9rem; font-size: 1rem; }
.btn-ghost { border-color: var(--gold-lo); color: var(--text); }
.btn:hover .px .pg, .btn:focus-visible .px .pg { fill: var(--ink); }
.px-btn { width: 24px; height: 24px; flex: none; }

/* the buy button is an arcade button: solid gold, a darker lip under it, pressed on click */
.btn-buy {
  width: 100%;
  min-height: 4rem;
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold-hi);
  box-shadow: 0 6px 0 var(--gold-lo), 0 6px 0 2px var(--ink);
  font-size: 1.35rem;
}
.btn-buy .px .pg { fill: var(--gold-hi); }
.btn-buy .px .ph { fill: #fff; }
.btn-buy .px .pd { fill: var(--gold-lo); }
.btn-buy:hover, .btn-buy:focus-visible { background: var(--gold-hi); color: var(--ink); transform: translateY(-2px); box-shadow: 0 8px 0 var(--gold-lo), 0 8px 0 2px var(--ink), 0 18px 30px rgba(0, 0, 0, .6); }
.btn-buy:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--gold-lo), 0 1px 0 2px var(--ink); }
.btn-buy:disabled { background: var(--ink-3); color: var(--text-dim); border-color: var(--line); box-shadow: none; cursor: not-allowed; transform: none; }
.btn-buy:disabled .px { opacity: .4; }

.link { color: var(--gold); border-bottom: 2px solid var(--gold-lo); }
.link:hover { color: var(--gold-hi); border-color: var(--gold-hi); }

.notice {
  position: relative;
  z-index: 3;
  margin: calc(var(--nav-h) + 1rem) var(--gutter) 0;
  padding: .8rem 1.1rem;
  border: 2px solid var(--gold);
  background: var(--ink);
  color: var(--gold-hi);
}
.notice + .hero { padding-top: 2rem; min-height: auto; }

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  min-height: 100svh;
  padding: calc(var(--nav-h) + clamp(2rem, 5vw, 4rem)) var(--gutter) clamp(3rem, 6vw, 5rem);
}
.hero h1 { font-size: clamp(3.1rem, 8.4vw, 6.4rem); line-height: .95; letter-spacing: -.01em; margin-bottom: 1.25rem; }
.hero h1 span { display: block; }
.hero-sub { font-size: clamp(1.15rem, 1.9vw, 1.45rem); color: var(--text-dim); max-width: 32ch; margin-bottom: 2rem; }

.offer {
  max-width: 30rem;
  padding: 1.4rem 1.4rem 1.6rem;
  border: 2px solid var(--gold);
  background: rgba(5, 0, 0, .9);
  position: relative;
}
.offer::before, .offer::after { content: ""; position: absolute; width: 8px; height: 8px; background: var(--gold); }
.offer::before { left: -6px; top: -6px; }
.offer::after { right: -6px; bottom: -6px; }
.offer-tag { display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: var(--text-dim); font-size: .95rem; margin-bottom: .35rem; }
.off { background: var(--gold); color: var(--ink); padding: .1rem .5rem; font-size: .95rem; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: .3rem 1rem; }
.price-was { color: var(--text-dim); font-size: 1.15rem; }
.price-was s { text-decoration-thickness: 2px; text-decoration-color: var(--gold-lo); }
.price-now {
  font-size: clamp(2.8rem, 6vw, 3.8rem);
  line-height: 1;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 18px rgba(255, 200, 61, .25));
}
.offer-once { color: var(--text-dim); font-size: .95rem; margin: .4rem 0 1.1rem; }

.buy { display: grid; gap: .9rem; }
.cur-switch { display: inline-flex; border: 2px solid var(--gold-lo); width: max-content; }
.cur-switch label { position: relative; cursor: pointer; }
.cur-switch input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.cur-switch span { display: block; padding: .35rem .8rem; font-size: .9rem; color: var(--text-dim); transition: background-color .2s, color .2s; }
.cur-switch input:checked + span { background: var(--gold-lo); color: var(--ink); }
.cur-switch input:focus-visible + span { outline: 3px solid var(--gold-hi); outline-offset: -3px; }
.buy-note { color: var(--text-dim); font-size: .92rem; text-align: center; margin-top: .3rem; }

/* item card: the kit as a legendary drop */
.item-card { display: grid; gap: 1.1rem; max-width: 30rem; justify-self: center; width: 100%; }
.item-frame {
  position: relative;
  padding: 2rem 1.5rem 1.4rem;
  border: 2px solid var(--gold);
  background:
    radial-gradient(60% 55% at 50% 42%, rgba(255, 200, 61, .16), transparent 70%),
    repeating-linear-gradient(0deg, rgba(255, 200, 61, .04) 0 2px, transparent 2px 6px),
    var(--ink);
  text-align: center;
}
.item-frame::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 2px dashed rgba(201, 138, 0, .35);
  pointer-events: none;
}
.chest { position: relative; width: min(62%, 15rem); margin: 0 auto 1.1rem; aspect-ratio: 16 / 13; }
.px-chest { position: absolute; inset: auto 0 0 0; width: 100%; height: auto; filter: drop-shadow(0 8px 0 rgba(0, 0, 0, .6)); }
.chest-glow { position: absolute; left: 10%; right: 10%; top: 0; height: 55%; background: radial-gradient(closest-side, rgba(255, 241, 176, .55), transparent); opacity: .6; }
.loot { position: absolute; bottom: 55%; width: 8px; height: 8px; background: var(--gold-hi); opacity: 0; }
.l1 { left: 30%; } .l2 { left: 42%; width: 12px; height: 12px; background: var(--gold); } .l3 { left: 55%; } .l4 { left: 66%; background: var(--gold); } .l5 { left: 48%; width: 6px; height: 6px; }
.item-name { font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.1; margin-bottom: .4rem; }
.item-rarity { display: inline-flex; align-items: center; gap: 3px; color: var(--gold); font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; }
.item-rarity span { margin-left: .6rem; }
.px-star { width: 16px; height: 16px; }

.stats { display: grid; gap: .55rem; padding: 1rem 1.2rem; border: 2px solid var(--line); background: rgba(5, 0, 0, .9); }
.stats li { display: grid; grid-template-columns: 8.2rem minmax(0, 1fr) 3.4rem; align-items: center; gap: .8rem; font-size: .98rem; }
.stat-name { color: var(--text-dim); }
.stat-bar { height: 10px; background: var(--ink-3); position: relative; overflow: hidden; }
.stat-bar i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: var(--gold-grad);
  -webkit-mask-image: repeating-linear-gradient(90deg, #000 0 8px, transparent 8px 10px);
  mask-image: repeating-linear-gradient(90deg, #000 0 8px, transparent 8px 10px);
  transition: width 1.2s var(--ease);
}
.stat-n { text-align: right; color: var(--gold); font-variant-numeric: tabular-nums; }
.item-total { text-align: center; color: var(--gold-hi); font-size: 1.05rem; }

/* ---------- sections ---------- */

.sec { padding: clamp(4rem, 9vw, 7rem) var(--gutter); }
.sec-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.sec h2 {
  font-size: clamp(2.3rem, 5.6vw, 4.2rem);
  line-height: 1.05;
  margin-bottom: 1rem;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.sec-sub { color: var(--text-dim); font-size: 1.15rem; max-width: 40rem; }

/* inventory: each pack is a slot */
.slots-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.slots-grid > li { grid-column: span 2; }
.slots-grid > li:nth-child(4), .slots-grid > li:nth-child(5) { grid-column: span 3; }
.inv-slot {
  position: relative;
  padding: 1.3rem 1.3rem 1.4rem;
  border: 2px solid var(--line);
  background: rgba(10, 2, 3, .92);
  transition: border-color .25s, transform .3s var(--ease), box-shadow .3s;
}
.inv-slot:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: 0 16px 36px rgba(0, 0, 0, .65); }
.inv-icon {
  position: relative;
  width: 84px; height: 84px;
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
  border: 2px solid var(--gold-lo);
  background:
    linear-gradient(45deg, rgba(255, 200, 61, .05) 25%, transparent 25% 75%, rgba(255, 200, 61, .05) 75%) 0 0 / 12px 12px,
    linear-gradient(45deg, rgba(255, 200, 61, .05) 25%, transparent 25% 75%, rgba(255, 200, 61, .05) 75%) 6px 6px / 12px 12px,
    var(--ink);
}
.px-inv { width: 48px; height: 48px; transition: transform .3s var(--ease); }
.inv-slot:hover .px-inv { transform: translateY(-3px) scale(1.06); }
.inv-qty { position: absolute; right: -10px; bottom: -12px; background: var(--gold); color: var(--ink); font-size: .85rem; line-height: 1; padding: .3rem .4rem; font-variant-numeric: tabular-nums; }
.inv-slot h3 { font-size: 1.5rem; line-height: 1.15; margin-bottom: .5rem; color: var(--text); }
.inv-slot p { color: var(--text-dim); font-size: 1rem; }
.inv-slot .inv-fmt { margin-top: .9rem; color: var(--gold); font-size: .9rem; }

/* programs: a moving marquee and plain chips */
.progs { padding-top: 0; }
.progs .sec-head { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 clamp(2rem, 5vw, 5rem); align-items: end; }
.progs .sec-head > :not(.chips) { grid-column: 1; }
.progs .chips { grid-column: 2; grid-row: 1 / span 3; align-self: center; margin: 0; }
.ticker { overflow: hidden; border-block: 2px solid var(--line); background: var(--ink); margin: 0 calc(var(--gutter) * -1) clamp(3rem, 6vw, 4.5rem); }
.ticker-row { display: flex; align-items: center; gap: 1.6rem; width: max-content; padding: .95rem 0; font-size: clamp(1.2rem, 2.4vw, 1.7rem); color: var(--text-dim); white-space: nowrap; }
.ticker-row i { width: 10px; height: 10px; background: var(--gold); flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.6rem; }
.chips li { border: 2px solid var(--gold-lo); padding: .35rem .8rem; font-size: .98rem; }

/* demo */
.demo-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding: clamp(1.5rem, 4vw, 2.6rem);
  border: 2px solid var(--gold);
  background: rgba(5, 0, 0, .92);
}
.demo-card h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }

/* stages 1-1, 1-2, 1-3 */
.levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.4vw, 2rem); position: relative; }
.levels::before {
  content: "";
  position: absolute;
  left: 8%; right: 8%; top: 4.6rem;
  height: 4px;
  background: repeating-linear-gradient(90deg, var(--gold-lo) 0 8px, transparent 8px 16px);
  z-index: -1;
}
.level { padding: 1.4rem; border: 2px solid var(--line); background: rgba(10, 2, 3, .95); }
.level-n { display: inline-block; font-size: .9rem; color: var(--ink); background: var(--gold); padding: .15rem .5rem; margin-bottom: 1rem; letter-spacing: .06em; }
.px-level { width: 48px; height: 48px; margin-bottom: 1rem; }
.level h3 { font-size: 1.45rem; margin-bottom: .45rem; }
.level p { color: var(--text-dim); }

/* no-music note */
.yt-card {
  position: relative;
  max-width: 52rem;
  padding: clamp(1.5rem, 4vw, 2.6rem) clamp(1.5rem, 4vw, 2.6rem) clamp(1.5rem, 4vw, 2.6rem) calc(clamp(1.5rem, 4vw, 2.6rem) + 3.2rem);
  border: 2px solid var(--gold-lo);
  background: rgba(5, 0, 0, .92);
}
.yt-card::before {
  content: "!";
  position: absolute;
  left: clamp(1.5rem, 4vw, 2.6rem);
  top: clamp(1.6rem, 4vw, 2.7rem);
  width: 2.2rem; height: 2.2rem;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: var(--ink);
  font-size: 1.4rem;
}
.yt-card h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
.yt-card p:last-child { color: var(--text-dim); font-size: 1.1rem; max-width: 46rem; }

/* FAQ */
.faq-list { display: grid; gap: .8rem; max-width: 52rem; }
.faq details { border: 2px solid var(--line); background: rgba(10, 2, 3, .95); transition: border-color .2s; }
.faq details[open], .faq details:hover { border-color: var(--gold-lo); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; padding: 1.05rem 1.2rem; font-size: 1.2rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 14px; height: 14px;
  margin-top: .35rem;
  background:
    linear-gradient(var(--gold), var(--gold)) center / 14px 4px no-repeat,
    linear-gradient(var(--gold), var(--gold)) center / 4px 14px no-repeat;
  transition: transform .25s var(--ease);
}
.faq details[open] summary::after { background: linear-gradient(var(--gold), var(--gold)) center / 14px 4px no-repeat; }
.faq details p { padding: 0 1.2rem 1.2rem; color: var(--text-dim); }

/* finale */
.fim { padding-bottom: clamp(5rem, 12vw, 9rem); }
.fim-card { max-width: 32rem; margin: 0 auto; text-align: center; display: grid; gap: 1rem; justify-items: center; }
.fim-card h2 { font-size: clamp(3rem, 9vw, 6rem); margin: 0; }
.fim-card .price { justify-content: center; }
.fim-card .buy { width: 100%; justify-items: center; }

/* footer */
.foot {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.4rem;
  justify-content: center;
  padding: 1.6rem var(--gutter) 2rem;
  border-top: 2px solid var(--line);
  background: var(--ink);
  color: var(--text-dim);
  font-size: .9rem;
  text-align: center;
}
.foot a:hover { color: var(--gold-hi); }
.copy { font-family: Arial, sans-serif; }

/* ---------- account pages ---------- */

.conta-main { position: relative; z-index: 2; min-height: calc(100svh - 5rem); display: grid; place-items: center; padding: calc(var(--nav-h) + 2.5rem) var(--gutter) 3rem; }
.panel {
  width: 100%;
  max-width: 34rem;
  padding: clamp(1.5rem, 4vw, 2.4rem);
  border: 2px solid var(--gold);
  background: rgba(5, 0, 0, .95);
  display: grid;
  gap: 1rem;
}
.panel-wide { max-width: 46rem; }
.panel-tag { color: var(--gold); font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; }
.panel h1 { font-size: clamp(2rem, 6vw, 3rem); line-height: 1.05; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.panel p { color: var(--text-dim); }
.muted { color: var(--text-dim); }
.small { font-size: .9rem; }
.form { display: grid; gap: .7rem; margin-top: .4rem; }
.form label { font-size: 1rem; color: var(--text); }
.form input[type="email"] {
  min-height: 3.2rem;
  padding: .6rem .9rem;
  border: 2px solid var(--gold-lo);
  background: var(--ink);
  color: var(--text);
  border-radius: 0;
}
.form input:focus { outline: none; border-color: var(--gold-hi); box-shadow: 0 0 0 3px rgba(255, 241, 176, .25); }
.form input[aria-invalid="true"] { border-color: var(--red); }
.form-erro { color: var(--gold-hi); }
.form-erro::before { content: "! "; color: var(--red); }

.slots { display: grid; gap: .8rem; margin: .4rem 0; }
.slot { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: .9rem; padding: .9rem; border: 2px solid var(--line); }
.slot.is-paid { border-color: var(--gold-lo); }
.slot-icon { width: 44px; height: 44px; border: 2px solid var(--gold-lo); background: var(--ink-3); position: relative; }
.slot-icon::after { content: ""; position: absolute; inset: 10px; background: var(--gold); box-shadow: inset -4px -4px 0 var(--gold-lo); }
.slot:not(.is-paid) .slot-icon::after { background: var(--line); box-shadow: none; }
.slot-body { display: grid; gap: .15rem; }
.slot-body strong { font-weight: 400; font-size: 1.15rem; color: var(--text); }
.slot-body .muted { font-size: .9rem; }
.chip { font-size: .85rem; padding: .2rem .55rem; border: 2px solid var(--line); color: var(--text-dim); white-space: nowrap; }
.is-paid .chip { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.loot-title { font-size: clamp(2.2rem, 7vw, 3.4rem); }
.loading { display: flex; gap: 8px; }
.loading i { width: 10px; height: 10px; background: var(--gold); }

/* ---------- reveal and motion ---------- */

.js [data-reveal] { opacity: 0; transition: opacity .7s var(--ease), transform .9s var(--ease); }
.js [data-reveal="up"] { transform: translateY(48px); }
.js [data-reveal="left"] { transform: translateX(-64px); }
.js [data-reveal="right"] { transform: translateX(64px); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .slots-grid > :nth-child(2), .js .levels > :nth-child(2), .js .faq-list > :nth-child(2) { transition-delay: .08s; }
.js .slots-grid > :nth-child(3), .js .levels > :nth-child(3), .js .faq-list > :nth-child(3) { transition-delay: .16s; }
.js .slots-grid > :nth-child(4), .js .faq-list > :nth-child(4) { transition-delay: .24s; }
.js .slots-grid > :nth-child(5), .js .faq-list > :nth-child(5) { transition-delay: .32s; }
.js .faq-list > :nth-child(6) { transition-delay: .4s; }

/* a pixel shot that lands makes its target jolt */
.nudge { animation: nudge .32s steps(4, end); }
@keyframes nudge { 0% { translate: 0 0; } 25% { translate: 3px -2px; } 50% { translate: -2px 1px; } 75% { translate: 1px 0; } 100% { translate: 0 0; } }

@media (prefers-reduced-motion: no-preference) {
  .hud .tl::after { animation: rec 1.8s steps(1, end) infinite; }
  .px-chest { animation: bob 2.4s steps(4, end) infinite; }
  .chest-glow { animation: glow 2.4s ease-in-out infinite; }
  .loot { animation: pop 2.4s steps(6, end) infinite; }
  .l2 { animation-delay: -.5s; } .l3 { animation-delay: -1s; } .l4 { animation-delay: -1.5s; } .l5 { animation-delay: -1.9s; }
  .btn-buy:not(:disabled) .px { animation: spin 1.6s steps(8, end) infinite; }
  .ticker-row { animation: marquee 28s linear infinite; }
  .fim-card h2 { animation: blink 1.2s steps(1, end) infinite; }
  .loading i { animation: dot 1s steps(2, end) infinite; }
  .loading i:nth-child(2) { animation-delay: .2s; } .loading i:nth-child(3) { animation-delay: .4s; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .stat-bar i { transition: none; }
}

@keyframes rec { 0%, 55% { opacity: 1; } 56%, 100% { opacity: 0; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes glow { 0%, 100% { opacity: .35; } 50% { opacity: .85; } }
@keyframes pop { 0% { opacity: 0; transform: translateY(0); } 15% { opacity: 1; } 70% { opacity: .9; transform: translateY(-90px); } 100% { opacity: 0; transform: translateY(-120px); } }
@keyframes spin { 0%, 100% { transform: scaleX(1); } 25% { transform: scaleX(.5); } 50% { transform: scaleX(.1); } 75% { transform: scaleX(.5); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes blink { 0%, 80% { opacity: 1; } 81%, 100% { opacity: .35; } }
@keyframes dot { 50% { opacity: .2; } }

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: auto; padding-top: calc(var(--nav-h) + 2rem); }
  .hero-sub { max-width: 40ch; }
  .offer { max-width: none; }
  .item-card { max-width: 34rem; }
  .levels { grid-template-columns: minmax(0, 1fr); }
  .stage { top: auto; height: 55%; opacity: .6; }
  .slots-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .slots-grid > li, .slots-grid > li:nth-child(4) { grid-column: span 1; }
  .slots-grid > li:nth-child(5) { grid-column: 1 / -1; }
  .progs .sec-head { grid-template-columns: minmax(0, 1fr); }
  .progs .chips { grid-column: 1; grid-row: auto; margin-top: 1.6rem; }
  .levels::before { left: 2.4rem; right: auto; top: 2rem; bottom: 2rem; width: 4px; height: auto; background: repeating-linear-gradient(180deg, var(--gold-lo) 0 8px, transparent 8px 16px); }
}

@media (max-width: 600px) {
  :root { --nav-h: 3.5rem; }
  .logo { font-size: 1.15rem; }
  .bar-nav { font-size: .9rem; }
  .hide-sm { display: none; }
  .hud { display: none; }
  .stats li { grid-template-columns: 7.8rem minmax(0, 1fr) 3rem; gap: .55rem; font-size: .9rem; }
  .slots-grid { grid-template-columns: minmax(0, 1fr); }
  .slots-grid > li:nth-child(5) { grid-column: auto; }
  .yt-card { padding-left: clamp(1.5rem, 4vw, 2.6rem); padding-top: 4.4rem; }
  .yt-card::before { top: 1.4rem; }
  .slot { grid-template-columns: auto minmax(0, 1fr); }
  .slot .chip { justify-self: start; }
  .slot .btn { grid-column: 1 / -1; }
  .js [data-reveal="left"], .js [data-reveal="right"] { transform: translateY(40px); }
}

/* ---------- legal pages ---------- */

.doc { position: relative; z-index: 2; max-width: 50rem; margin: 0 auto; padding: calc(var(--nav-h) + 2.5rem) var(--gutter) 4rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; }
.doc article { min-width: 0; }
.doc article { padding: clamp(1.5rem, 4vw, 2.6rem); border: 2px solid var(--line); background: rgba(5, 0, 0, .95); }
.doc h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); line-height: 1.05; margin: .4rem 0 1.4rem; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.doc h2 { font-size: 1.45rem; color: var(--gold); margin: 2rem 0 .6rem; }
.doc p, .doc li, .doc td { color: var(--text-dim); }
.doc p + p { margin-top: .8rem; }
.doc strong { font-weight: 400; color: var(--text); }
.doc ul { display: grid; gap: .45rem; margin: .6rem 0 .8rem; }
.doc li { position: relative; padding-left: 1.3rem; }
.doc li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; background: var(--gold); }
.doc-table { width: 100%; border-collapse: collapse; margin: .6rem 0 1rem; font-size: .95rem; display: block; overflow-x: auto; }
.doc-table th { text-align: left; font-weight: 400; color: var(--gold-hi); border-bottom: 2px solid var(--gold-lo); padding: .55rem .7rem .55rem 0; white-space: nowrap; }
.doc-table td { border-bottom: 1px solid var(--line); padding: .6rem .7rem .6rem 0; vertical-align: top; min-width: 8rem; }
@media (max-width: 600px) {
  .doc-table, .doc-table tbody, .doc-table tr, .doc-table td { display: block; }
  .doc-table thead { display: none; }
  .doc-table tr { border: 2px solid var(--line); padding: .7rem .9rem; margin-bottom: .7rem; }
  .doc-table td { border: 0; padding: .2rem 0; min-width: 0; }
  .doc-table td::before { content: attr(data-label); display: block; color: var(--gold); font-size: .85rem; }
}

/* =====================================================================
   STORE FRONT: shop window, rarity cards, upgrade tree, compare, dialogs, cart
   ===================================================================== */

/* rarity: color climbs from cream to bright gold, never a new hue */
.rar-comum { --rar: var(--text-dim); --rar-bg: rgba(205, 185, 138, .06); }
.rar-raro { --rar: var(--gold-lo); --rar-bg: rgba(201, 138, 0, .08); }
.rar-epico { --rar: var(--gold); --rar-bg: rgba(255, 200, 61, .1); }
.rar-lendario { --rar: var(--gold-hi); --rar-bg: rgba(255, 241, 176, .12); }
.rar-demo { --rar: var(--line); --rar-bg: transparent; }

.rarity { display: inline-flex; align-items: center; gap: 3px; color: var(--rar, var(--gold)); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; }
.rarity i { width: 7px; height: 7px; background: currentColor; }
.rarity i:last-of-type { margin-right: .45rem; }

.cart-btn { position: relative; display: inline-grid; place-items: center; width: 44px; height: 40px; border: 2px solid var(--gold); padding: 0 !important; }
.bar-nav .cart-btn::after { display: none; }
.cart-btn:hover { background: var(--gold); }
.cart-btn:hover .px .pg, .cart-btn:hover .px .ph { fill: var(--ink); }
.px-cart { width: 22px; height: 22px; }
.cart-count { position: absolute; right: -9px; top: -9px; min-width: 20px; height: 20px; padding: 0 5px; display: grid; place-items: center; background: var(--gold-hi); color: var(--ink); font-size: .8rem; line-height: 1; }
.cart-count.bump { animation: bump .4s steps(4, end); }
@keyframes bump { 50% { transform: scale(1.4); } }

/* ---------- hero: copy + shop window ---------- */

.shop-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  min-height: 100svh;
  padding: calc(var(--nav-h) + clamp(2rem, 5vw, 3.5rem)) var(--gutter) clamp(3rem, 6vw, 4.5rem);
}
.shop-hero h1 { font-size: clamp(3.2rem, 8.8vw, 6.8rem); line-height: .92; margin-bottom: 1.3rem; }
.shop-hero h1 span { display: block; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .9rem; margin: 2rem 0 1.4rem; }
.btn-hero { width: auto; min-height: 3.8rem; font-size: 1.2rem; }
.hero-from { font-size: 1.15rem; color: var(--text-dim); }
.hero-from-n { font-size: 1.6rem; }
.selos { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; margin-top: 1.4rem; color: var(--text-dim); font-size: .95rem; }
.selos li { display: inline-flex; align-items: center; gap: .6rem; }
.selos li::before { content: ""; width: 8px; height: 8px; background: var(--gold); box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px var(--gold-lo); }

.shop-window {
  position: relative;
  border: 2px solid var(--gold);
  background:
    linear-gradient(180deg, rgba(255, 200, 61, .07), transparent 40%),
    repeating-linear-gradient(0deg, rgba(255, 200, 61, .035) 0 2px, transparent 2px 6px),
    rgba(5, 0, 0, .94);
  padding: 0 clamp(1rem, 2.4vw, 1.6rem) clamp(1rem, 2.4vw, 1.6rem);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .6);
}
.shop-window::before, .shop-window::after { content: ""; position: absolute; width: 10px; height: 10px; background: var(--gold); }
.shop-window::before { left: -7px; top: -7px; }
.shop-window::after { right: -7px; bottom: -7px; }
.shop-top { display: flex; justify-content: space-between; align-items: center; margin: 0 calc(clamp(1rem, 2.4vw, 1.6rem) * -1) 1.2rem; padding: .55rem clamp(1rem, 2.4vw, 1.6rem); background: var(--gold); color: var(--ink); }
.shop-title { letter-spacing: .3em; font-size: 1rem; }
.shop-coins { display: inline-flex; align-items: center; gap: .45rem; font-size: 1rem; }
.px-coin { width: 18px; height: 18px; }
.shop-coins .px .pg { fill: var(--gold-hi); }

.shop-feature {
  position: relative;
  display: grid;
  justify-items: center;
  gap: .5rem;
  width: 100%;
  padding: 1.4rem 1rem 1.2rem;
  border: 2px solid var(--gold-hi);
  background: radial-gradient(60% 70% at 50% 40%, rgba(255, 241, 176, .18), transparent 70%), var(--ink);
  cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.shop-feature:hover, .shop-feature:focus-visible { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0, 0, 0, .7), 0 0 0 4px rgba(255, 241, 176, .15); }
.shop-glow { position: absolute; left: 25%; right: 25%; top: 6%; height: 50%; background: radial-gradient(closest-side, rgba(255, 241, 176, .5), transparent); pointer-events: none; }
.px-feature { width: min(44%, 10rem); height: auto; position: relative; filter: drop-shadow(0 8px 0 rgba(0, 0, 0, .6)); }
.shop-feature .loot { bottom: 50%; }
.shop-feature-name { display: grid; justify-items: center; gap: .2rem; }
.shop-feature-name b { font-weight: 400; font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.1; }
.price-tag { position: relative; display: inline-block; padding: .25rem .8rem .25rem 1.1rem; background: var(--gold); color: var(--ink); font-size: 1.15rem; clip-path: polygon(10px 0, 100% 0, 100% 100%, 10px 100%, 0 50%); }
.price-tag.sm { font-size: .9rem; padding: .15rem .55rem .15rem .85rem; clip-path: polygon(8px 0, 100% 0, 100% 100%, 8px 100%, 0 50%); }

.shop-shelf { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .7rem; margin-top: 1.2rem; }
.shop-slot {
  position: relative;
  width: 100%;
  display: grid;
  justify-items: center;
  gap: .45rem;
  padding: .9rem .4rem .8rem;
  border: 2px solid var(--rar);
  background: linear-gradient(180deg, var(--rar-bg), transparent), var(--ink);
  cursor: pointer;
  transition: transform .25s var(--ease), border-color .2s;
}
.shop-slot:hover, .shop-slot:focus-visible { transform: translateY(-5px); border-color: var(--gold-hi); }
.px-slot { width: 40px; height: 40px; }
.shop-slot-name { font-size: .88rem; line-height: 1.15; text-align: center; min-height: 2.3em; display: grid; place-items: center; }
.slot-soon { position: absolute; top: -11px; left: 50%; translate: -50% 0; white-space: nowrap; background: var(--ink); border: 2px solid var(--line); color: var(--text-dim); font-size: .7rem; padding: .05rem .4rem; }
.shop-floor { height: 10px; margin: 1.1rem calc(clamp(1rem, 2.4vw, 1.6rem) * -1) calc(clamp(1rem, 2.4vw, 1.6rem) * -1); background: repeating-linear-gradient(90deg, var(--gold-lo) 0 12px, var(--ink) 12px 16px); opacity: .5; }

.venda > main > .ticker { margin: 0 0 clamp(1rem, 3vw, 2rem); position: relative; z-index: 2; }

/* ---------- kits ---------- */

.combo-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1.2fr) minmax(0, .9fr);
  align-items: center;
  gap: clamp(1.2rem, 3vw, 2.6rem);
  padding: clamp(1.4rem, 3.5vw, 2.4rem);
  border: 2px solid transparent;
  background:
    linear-gradient(rgba(8, 2, 2, .96), rgba(8, 2, 2, .96)) padding-box,
    linear-gradient(120deg, var(--gold-lo), var(--gold-hi), var(--gold), var(--gold-hi), var(--gold-lo)) border-box;
  background-size: 100% 100%, 300% 100%;
  margin-bottom: clamp(1.4rem, 2.6vw, 2rem);
}
.combo-badge { position: absolute; top: -14px; left: clamp(1.4rem, 3.5vw, 2.4rem); background: var(--gold-hi); color: var(--ink); padding: .2rem .7rem; font-size: .9rem; }
.combo-art { position: relative; display: grid; place-items: center; width: clamp(8rem, 16vw, 12rem); aspect-ratio: 1; border: 2px solid var(--gold-lo); background: var(--ink); cursor: pointer; }
.px-combo { width: 70%; height: auto; position: relative; }
.combo-body h3 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); line-height: 1.05; margin: .4rem 0 .5rem; }
.combo-body > p { color: var(--text-dim); margin-bottom: 1rem; }
.combo-kits { display: flex; flex-wrap: wrap; gap: .5rem; }
.combo-kits li { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .6rem; border: 2px solid var(--rar); font-size: .92rem; }
.px-chip { width: 16px; height: 16px; flex: none; }
.combo-buy { display: grid; gap: .8rem; }
.combo-save, .combo-credit, .soon-note { color: var(--text-dim); font-size: .95rem; }
.combo-credit { color: var(--gold-hi); }
.card-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.card-actions .add-form, .card-actions > .btn { flex: 1 1 auto; }
.add-form .btn-buy { width: 100%; }
.btn-owned { border-color: var(--gold-lo); color: var(--gold-hi); cursor: default; }
.btn-owned:hover { background: var(--ink); color: var(--gold-hi); transform: none; box-shadow: none; }
.btn-soon { border-style: dashed; border-color: var(--line); color: var(--text-dim); cursor: not-allowed; }
.btn-soon:hover { background: var(--ink); color: var(--text-dim); transform: none; box-shadow: none; }
.btn-buy.in-cart { background: var(--ink); color: var(--gold-hi); border-color: var(--gold-hi); }

.kit-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.kit-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .7rem;
  padding: 1.2rem;
  border: 2px solid var(--rar);
  background: linear-gradient(180deg, var(--rar-bg), transparent 45%), rgba(8, 2, 2, .95);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.kit-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0, 0, 0, .7); }
.kit-card.rar-epico { box-shadow: inset 0 0 0 1px rgba(255, 200, 61, .25), 0 0 30px rgba(255, 200, 61, .08); }
.kit-art { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; border: 2px solid var(--rar); cursor: pointer; overflow: hidden;
  background:
    linear-gradient(45deg, rgba(255, 200, 61, .05) 25%, transparent 25% 75%, rgba(255, 200, 61, .05) 75%) 0 0 / 14px 14px,
    linear-gradient(45deg, rgba(255, 200, 61, .05) 25%, transparent 25% 75%, rgba(255, 200, 61, .05) 75%) 7px 7px / 14px 14px,
    var(--ink); }
.px-kit { width: auto; height: 52%; max-width: 60%; transition: transform .35s var(--ease); }
.kit-card:hover .px-kit { transform: translateY(-6px) scale(1.06); }
.ribbon { position: absolute; top: 16px; right: -38px; rotate: 45deg; background: var(--line); color: var(--text); font-size: .75rem; padding: .15rem 2.6rem; }
.kit-card.is-soon .px-kit { opacity: .55; }
.kit-card h3 { font-size: 1.55rem; line-height: 1.1; }
.kit-tag { color: var(--text-dim); font-size: .96rem; }
.packs { display: grid; gap: .35rem; }
.chip-pack { display: flex; align-items: center; gap: .45rem; font-size: .9rem; color: var(--text); }
.chip-pack.is-soon { color: var(--text-dim); }
.chip-pack.is-soon .px { opacity: .5; }
.kit-foot { margin-top: auto; display: grid; gap: .7rem; padding-top: .7rem; border-top: 2px dashed var(--line); }
.kit-price .price-now { font-size: 2rem; }
.kit-card .card-actions { flex-wrap: nowrap; }
.kit-card .card-actions > * { flex: 1 1 0; min-width: 0; }
.kit-card .btn-sm { padding: .45rem .5rem; font-size: .95rem; min-height: 2.8rem; gap: .4rem; width: 100%; }
.kit-card .btn-buy { box-shadow: 0 4px 0 var(--gold-lo), 0 4px 0 2px var(--ink); font-size: .95rem; }
.kit-card .px-btn { width: 18px; height: 18px; }

/* ---------- upgrade tree ---------- */

.tree { position: relative; z-index: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(.6rem, 1.5vw, 1.2rem); margin-bottom: 2rem; }
.tree::before { content: ""; position: absolute; left: 6%; right: 6%; top: 50%; height: 6px; translate: 0 -50%; background: repeating-linear-gradient(90deg, var(--gold) 0 10px, transparent 10px 16px); opacity: .55; z-index: -1; }
.node { position: relative; display: grid; justify-items: center; gap: .45rem; padding: 1.3rem .7rem 1rem; border: 2px solid var(--rar); background: rgba(8, 2, 2, .97); text-align: center; }
.node.rar-demo { border-style: dashed; border-color: var(--gold-lo); }
.node.rar-lendario { box-shadow: 0 0 0 4px rgba(255, 241, 176, .12), 0 0 40px rgba(255, 200, 61, .18); }
.node-lvl { position: absolute; top: -12px; background: var(--rar); color: var(--ink); font-size: .78rem; padding: .05rem .45rem; }
.node.rar-demo .node-lvl { background: var(--gold-lo); }
.px-node { width: 40px; height: 40px; }
.node b { font-weight: 400; font-size: 1.05rem; line-height: 1.15; }
.node small { color: var(--gold); font-size: 1rem; }
.evo-xp { max-width: 46rem; }
.evo-bar { display: flex; height: 18px; border: 2px solid var(--gold-lo); padding: 2px; gap: 2px; margin-bottom: .8rem; }
.evo-bar i { display: block; height: 100%; -webkit-mask-image: repeating-linear-gradient(90deg, #000 0 10px, transparent 10px 13px); mask-image: repeating-linear-gradient(90deg, #000 0 10px, transparent 10px 13px); }
.evo-paid { width: 0; background: var(--gold-hi); transition: width 1.2s var(--ease); }
.evo-rest { width: 0; background: var(--gold-lo); transition: width 1.2s var(--ease) .5s; }
.evo-xp.is-in .evo-paid, .no-js .evo-paid { width: 28%; }
.evo-xp.is-in .evo-rest, .no-js .evo-rest { width: 72%; }
.evo-xp p { color: var(--text-dim); }

/* ---------- compare ---------- */

.cmp-wrap { overflow-x: auto; border: 2px solid var(--line); background: rgba(8, 2, 2, .95); }
.cmp-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.cmp-table th, .cmp-table td { padding: .75rem .8rem; border-bottom: 1px solid var(--line); text-align: center; font-weight: 400; }
.cmp-table thead th { vertical-align: bottom; border-bottom: 2px solid var(--gold-lo); }
.cmp-table thead button { display: grid; justify-items: center; gap: .35rem; margin: 0 auto; background: none; border: 0; cursor: pointer; color: var(--rar); font-size: .95rem; line-height: 1.15; }
.cmp-table thead button .px { width: 26px; height: 26px; }
.cmp-table thead button:hover { color: var(--gold-hi); }
.cmp-table tbody th { text-align: left; white-space: nowrap; }
.cmp-table tbody th .px { display: inline-block; vertical-align: -3px; margin-right: .5rem; }
.cmp-table tbody th small { color: var(--text-dim); font-size: .8rem; margin-left: .6rem; }
.cmp-table td.has::before { content: ""; display: inline-block; width: 14px; height: 14px; background: var(--gold); box-shadow: inset -3px -3px 0 var(--gold-lo), inset 3px 3px 0 var(--gold-hi); }
.cmp-table td.no::before { content: ""; display: inline-block; width: 12px; height: 2px; background: var(--line); vertical-align: middle; }
.cmp-table .is-combo { background: rgba(255, 241, 176, .06); }
.cmp-price td { color: var(--gold); font-size: 1.1rem; }

/* no-music note + programs side by side */
.sec.progs { padding-top: clamp(4rem, 9vw, 7rem); display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(1.2rem, 3vw, 2rem); align-items: stretch; }
.prog-box { padding: clamp(1.5rem, 4vw, 2.6rem); border: 2px solid var(--line); background: rgba(5, 0, 0, .92); }
.prog-box h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.1; color: var(--text); }
.sec.progs .yt-card { max-width: none; }

.px-fim { width: 7rem; height: auto; }

/* ---------- dialogs ---------- */

.modal {
  width: min(58rem, calc(100% - 2rem));
  max-height: calc(100svh - 2rem);
  padding: 0;
  border: 2px solid var(--rar);
  background: var(--ink);
  color: var(--text);
  overflow: auto;
  overscroll-behavior: contain;
}
.modal.rar-lendario { box-shadow: 0 0 0 4px rgba(255, 241, 176, .12); }
.modal::backdrop { background: rgba(5, 0, 0, .82); backdrop-filter: blur(3px); }
.modal[open] { animation: modal-in .35s var(--ease); }
.modal[open]::backdrop { animation: fade .3s ease; }
@keyframes modal-in { from { opacity: 0; transform: translateY(24px) scale(.97); } }
@keyframes fade { from { opacity: 0; } }
.modal-inner { position: relative; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.modal-x { position: absolute; right: .7rem; top: .7rem; z-index: 2; width: 2.6rem; height: 2.6rem; border: 2px solid var(--gold-lo); background: var(--ink); color: var(--gold); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.modal-x:hover { background: var(--gold); color: var(--ink); }
.modal-art-in { position: sticky; top: 0; height: calc(100svh - 2rem - 4px); max-height: 100%; min-height: 18rem; display: grid; place-items: center; }
.modal-art { position: relative; border-right: 2px solid var(--line);
  background:
    radial-gradient(60% 50% at 50% 45%, var(--rar-bg), transparent 70%),
    linear-gradient(45deg, rgba(255, 200, 61, .05) 25%, transparent 25% 75%, rgba(255, 200, 61, .05) 75%) 0 0 / 16px 16px,
    linear-gradient(45deg, rgba(255, 200, 61, .05) 25%, transparent 25% 75%, rgba(255, 200, 61, .05) 75%) 8px 8px / 16px 16px,
    #0a0303; }
.px-modal { width: 52%; height: auto; position: relative; }
.modal-body { padding: clamp(1.4rem, 3.5vw, 2.2rem); display: grid; gap: .8rem; align-content: start; }
.modal-body h2 { font-size: clamp(2rem, 4.4vw, 2.9rem); line-height: 1.05; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 2.5rem; }
.modal-body h3 { font-size: 1rem; color: var(--gold); letter-spacing: .08em; text-transform: uppercase; margin-top: .4rem; }
.modal-tag { font-size: 1.12rem; }
.modal-para, .modal-lic { color: var(--text-dim); font-size: .95rem; }
.modal-para b { font-weight: 400; color: var(--text); }
.modal-packs { display: grid; gap: .6rem; }
.modal-packs li { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: .8rem; padding: .7rem; border: 2px solid var(--line); }
.modal-packs li.is-soon { border-style: dashed; }
.mp-icon { display: grid; place-items: center; width: 46px; height: 46px; border: 2px solid var(--gold-lo); background: var(--ink-3); }
.mp-icon .px { width: 28px; height: 28px; }
.modal-packs li.is-soon .mp-icon .px { opacity: .5; }
.modal-packs b { font-weight: 400; font-size: 1.1rem; }
.modal-packs em { font-style: normal; color: var(--gold); margin-left: .3rem; }
.modal-packs p { color: var(--text-dim); font-size: .92rem; margin: .15rem 0; }
.modal-packs small { color: var(--gold-lo); font-size: .82rem; }
.modal-buy { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 1rem; padding: 1rem 0 .3rem; border-top: 2px dashed var(--line); position: sticky; bottom: 0; background: var(--ink); }
.modal-buy .price-now { font-size: 2.4rem; }

/* ---------- cart drawer ---------- */

.cart-shade { position: fixed; inset: 0; z-index: 88; background: rgba(5, 0, 0, .7); }
.cart {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  z-index: 90;
  width: min(26rem, 100%);
  display: flex;
  flex-direction: column;
  border-left: 2px solid var(--gold);
  background: var(--ink);
  animation: cart-in .35s var(--ease);
}
@keyframes cart-in { from { transform: translateX(100%); } }
.cart-head { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.2rem; background: var(--gold); color: var(--ink); }
.cart-head h2 { display: flex; align-items: center; gap: .6rem; font-size: 1.4rem; }
.cart-head .px .pg, .cart-head .px .ph { fill: var(--ink); }
.cart-head .px .pd { fill: #5a3d00; }
.cart-head .modal-x { position: static; border-color: var(--ink); background: var(--gold); color: var(--ink); }
.cart-list { flex: 1; overflow: auto; padding: 1rem 1.2rem; display: grid; gap: .7rem; align-content: start; }
.cart-item { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: .8rem; padding: .7rem; border: 2px solid var(--rar); animation: drop-in .3s var(--ease); }
@keyframes drop-in { from { opacity: 0; transform: translateX(20px); } }
.cart-item .mp-icon { width: 48px; height: 48px; }
.cart-item b { font-weight: 400; font-size: 1.05rem; display: block; }
.cart-item .muted { font-size: .9rem; }
.cart-item button { background: none; border: 0; color: var(--text-dim); cursor: pointer; font-size: .85rem; text-decoration: underline; text-underline-offset: 3px; }
.cart-item button:hover { color: var(--gold-hi); }
.cart-empty { padding: 0 1.2rem 1rem; color: var(--text-dim); }
.cart-hint { margin: 0 1.2rem .4rem; padding: .8rem .9rem; border: 2px dashed var(--gold); color: var(--gold-hi); font-size: .95rem; display: grid; gap: .6rem; }
.cart-hint .btn { min-height: 2.6rem; font-size: .95rem; }
.cart-foot { display: grid; gap: .8rem; padding: 1.1rem 1.2rem 1.4rem; border-top: 2px solid var(--line); }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.1rem; }
.cart-total b { font-weight: 400; font-size: 2rem; color: var(--gold); }
.buy-note.small { font-size: .82rem; }

.toast { position: fixed; left: 50%; bottom: 1.4rem; translate: -50% 0; z-index: 95; padding: .8rem 1.2rem; background: var(--gold); color: var(--ink); animation: toast 2.4s var(--ease) forwards; white-space: nowrap; max-width: calc(100% - 2rem); overflow: hidden; text-overflow: ellipsis; }
@keyframes toast { 0% { opacity: 0; transform: translateY(16px); } 12%, 82% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(8px); } }

/* account extras */
.panel-h2 { font-size: 1.3rem; color: var(--gold); margin-top: .6rem; }
.slot-icon:has(.px)::after { display: none; }
.slot-icon { display: grid; place-items: center; }
.slot-icon .px { width: 28px; height: 28px; }
.slots-mini .slot { grid-template-columns: minmax(0, 1fr) auto; padding: .6rem .8rem; }
.upsell { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem; align-items: center; padding: 1rem; border: 2px dashed var(--gold); background: rgba(255, 200, 61, .05); }
.upsell form { grid-column: 1 / -1; }
.upsell .btn-buy { width: 100%; }
.px-upsell { width: 56px; height: auto; }
.loot-list { display: grid; gap: .4rem; }
.loot-list li { display: flex; align-items: center; gap: .6rem; color: var(--text); }
.loot-list .px { width: 22px; height: 22px; }

@media (prefers-reduced-motion: no-preference) {
  .combo-card { animation: border-run 6s linear infinite; }
  .px-feature, .px-combo { animation: bob 2.4s steps(4, end) infinite; }
  .shop-glow { animation: glow 2.4s ease-in-out infinite; }
  .rar-lendario .px-modal { animation: bob 2.4s steps(4, end) infinite; }
}
@keyframes border-run { to { background-position: 0 0, 300% 0; } }

@media (max-width: 1180px) {
  .kit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .combo-card { grid-template-columns: auto minmax(0, 1fr); }
  .combo-buy { grid-column: 1 / -1; }
  .hide-md { display: none; }
}
@media (max-width: 960px) {
  .shop-hero { grid-template-columns: minmax(0, 1fr); min-height: auto; padding-top: calc(var(--nav-h) + 2rem); }
  .tree { grid-template-columns: minmax(0, 1fr); max-width: 26rem; }
  .tree::before { left: 50%; right: auto; top: 0; bottom: 0; width: 6px; height: auto; translate: -50% 0; background: repeating-linear-gradient(180deg, var(--gold) 0 10px, transparent 10px 16px); }
  .sec.progs { grid-template-columns: minmax(0, 1fr); }
  .modal-inner { grid-template-columns: minmax(0, 1fr); }
  .modal-art { border-right: 0; border-bottom: 2px solid var(--line); }
  .modal-art-in { position: relative; height: auto; min-height: 10rem; }
  .px-modal { width: 30%; }
}
@media (max-width: 600px) {
  .shop-shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1rem; }
  .kit-grid { grid-template-columns: minmax(0, 1fr); }
  .kit-art { aspect-ratio: 16 / 7; }
  .combo-card { grid-template-columns: minmax(0, 1fr); padding-top: 2rem; }
  .combo-art { width: 8rem; justify-self: center; }
  .btn-hero { width: 100%; }
  .modal { width: 100%; max-width: none; height: 100svh; max-height: 100svh; margin: 0; border-width: 0; }
  .modal-buy { grid-template-columns: minmax(0, 1fr); }
  .cart-btn { width: 40px; height: 36px; }
  .bar-nav { gap: .9rem; }
}

/* ---------- catalog: category tabs, category blocks, locked shelf ---------- */

.combo-body h4 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); line-height: 1.05; margin: .4rem 0 .5rem; font-weight: 400; }
.kit-card h4 { font-size: 1.55rem; line-height: 1.1; font-weight: 400; margin: 0; }

.cat-tabs { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.cat-tab { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.8rem; padding: .4rem .9rem; border: 2px solid var(--gold-lo); background: var(--ink); color: var(--text); cursor: pointer; font-size: 1rem; transition: background-color .2s, color .2s, border-color .2s; }
.cat-tab small { font-size: .8rem; padding: .05rem .4rem; background: var(--ink-3); color: var(--gold); }
.cat-tab:hover { border-color: var(--gold); }
.cat-tab.is-on { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.cat-tab.is-on small { background: var(--ink); color: var(--gold-hi); }
.cat-tab.is-on .px .pg, .cat-tab.is-on .px .ph { fill: var(--ink); }
.cat-tab.is-locked { border-style: dashed; border-color: var(--line); color: var(--text-dim); cursor: default; }
.cat-tab.is-locked .px { opacity: .6; }

.cat-block + .cat-block { margin-top: clamp(3rem, 6vw, 4.5rem); }
.cat-block[hidden] { display: none; }
.cat-head { display: flex; align-items: center; gap: 1rem; margin-bottom: clamp(1.6rem, 3vw, 2.2rem); padding-bottom: 1rem; border-bottom: 2px dashed var(--line); }
.cat-icon { display: grid; place-items: center; flex: none; width: 56px; height: 56px; border: 2px solid var(--gold); background: var(--ink); }
.cat-icon .px { width: 32px; height: 32px; }
.cat-head h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.1; color: var(--text); }
.cat-head p { color: var(--text-dim); max-width: 46rem; }

.cat-soon .cat-icon { border-style: dashed; border-color: var(--gold-lo); }
.locked-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.locked-row li {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  border: 2px dashed var(--line);
  background:
    linear-gradient(45deg, rgba(255, 200, 61, .035) 25%, transparent 25% 75%, rgba(255, 200, 61, .035) 75%) 0 0 / 14px 14px,
    linear-gradient(45deg, rgba(255, 200, 61, .035) 25%, transparent 25% 75%, rgba(255, 200, 61, .035) 75%) 7px 7px / 14px 14px,
    rgba(8, 2, 2, .9);
  overflow: hidden;
}
.locked-row span { font-size: clamp(2.6rem, 5vw, 3.6rem); color: var(--gold-lo); opacity: .7; }
.locked-row i { position: absolute; left: 0; right: 0; top: -30%; height: 30%; background: linear-gradient(180deg, transparent, rgba(255, 241, 176, .08), transparent); }
@media (prefers-reduced-motion: no-preference) {
  .locked-row i { animation: scanline 3.6s linear infinite; }
  .locked-row li:nth-child(2) i { animation-delay: -.9s; }
  .locked-row li:nth-child(3) i { animation-delay: -1.8s; }
  .locked-row li:nth-child(4) i { animation-delay: -2.7s; }
  .locked-row span { animation: blink 1.6s steps(1, end) infinite; }
}
@keyframes scanline { to { top: 130%; } }
@media (max-width: 600px) {
  .locked-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cat-tab { flex: 1 1 auto; justify-content: center; }
}
