/* URP Unity Coin store: Los Santos at sunset, HUD money, wanted stars, menu boxes.
   Display type is Baltar by Ray Larabie (CC0, public/fonts/). Nothing here is
   Rockstar artwork: the skyline, palms and HUD are drawn for this page. */
@font-face {
  font-family: "Baltar";
  src: url("/fonts/baltar.woff2") format("woff2");
  font-display: swap;
}

:root {
  color-scheme: dark;
  --night: #140b1f;
  --night-2: #1c1029;
  --ink: #07040b;
  --box: rgba(8, 5, 12, 0.86);
  --box-line: rgba(255, 255, 255, 0.09);
  --text: #ffffff;
  --text-2: #d7cfe0;
  --muted: #9a8fa8;
  --gold: #f5b41e;
  --gold-hi: #ffd35c;
  --orange: #ff7a1a;
  --pink: #ff3d6e;
  --purple: #7b2a8c;
  --money: #56a843;
  --money-dark: #2f6b26;
  --star: #f0c030;
  --red: #e04438;
  --blue: #3d7bff;
  --display: "Baltar", "Barlow Condensed", Impact, sans-serif;
  --cond: "Barlow Condensed", "Barlow", sans-serif;
  /* The HUD outline: black on every side, then a hard drop. */
  --ol: 2px 0 0 #000, -2px 0 0 #000, 0 2px 0 #000, 0 -2px 0 #000, 2px 2px 0 #000, -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000;
  --ol-drop: var(--ol), 4px 5px 0 rgba(0, 0, 0, 0.55);
  --hard: 5px 5px 0 #000;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font: 500 16px/1.55 Barlow, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Film grain and a faint scanline, so flat colour reads as a screen. */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 50; opacity: 0.07; mix-blend-mode: overlay;
  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 type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.5) 0 1px, transparent 1px 3px);
}
a { color: inherit; }
code {
  font: 700 0.92em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: #000; border: 1px solid var(--box-line); padding: 0.05em 0.4em; border-radius: 3px; color: var(--gold-hi);
}
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.num { font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ header */
.top { position: sticky; top: 0; z-index: 20; background: #000; border-bottom: 3px solid var(--gold); }
.top-inner { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand img { display: block; height: 34px; width: auto; }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--text-2); text-decoration: none; font: 700 16px/1 var(--cond); letter-spacing: 0.06em; text-transform: uppercase; }
.nav a:hover { color: var(--gold-hi); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.who { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.who-name { font-weight: 700; }
.who-coins { display: inline-flex; align-items: center; gap: 4px; color: var(--gold-hi); font-weight: 700; }

/* ----------------------------------------------------------------- buttons */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 3px solid #000; border-radius: 4px; padding: 11px 20px;
  font: 400 19px/1 var(--display); letter-spacing: 0.02em; text-transform: uppercase;
  cursor: pointer; text-decoration: none; box-shadow: var(--hard);
  transition: transform 0.08s, box-shadow 0.08s, background 0.12s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 #000; }
.btn:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 #000; }
.btn.gold { background: var(--gold); color: #000; }
.btn.gold:hover { background: var(--gold-hi); }
.btn.green { background: var(--money); color: #000; }
.btn.ghost { background: transparent; border: 2px solid var(--box-line); color: var(--text); box-shadow: none; font: 700 15px/1 var(--cond); letter-spacing: 0.06em; }
.btn.ghost:hover { border-color: var(--gold); color: var(--gold-hi); transform: none; box-shadow: none; }
.btn.small { padding: 8px 14px; font-size: 15px; }
.btn.big { padding: 15px 28px; font-size: 24px; }
.btn.wide { width: 100%; padding: 14px 18px; font-size: 21px; }
.btn:disabled { background: #2a2233; color: #8b8096; cursor: not-allowed; transform: none; box-shadow: 3px 3px 0 #000; }
.linkish {
  background: none; border: 0; padding: 0; color: var(--text-2); font: inherit; font-size: 14px;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.linkish:hover { color: var(--gold-hi); }
.linkish.center { display: block; margin: 14px auto 0; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 4px; border: 2px solid #000; box-shadow: 3px 3px 0 #000;
  background: var(--gold); color: #000; font: 700 22px/1 Barlow, sans-serif; cursor: pointer;
}
:focus-visible { outline: 3px solid var(--gold-hi); outline-offset: 2px; }

/* -------------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; min-height: 640px; border-bottom: 4px solid #000; }
.sky {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, #160a2a 0%, #3b1552 26%, #8a2366 48%, #e2455d 64%, #ff7d2e 78%, #ffc15a 90%, #ffd98a 100%);
}
.sun {
  position: absolute; left: 50%; bottom: 70px; width: 440px; height: 440px; transform: translateX(-10%); border-radius: 50%;
  background: linear-gradient(180deg, #ffe07a 0%, #ffae3d 45%, #ff5e62 100%);
  -webkit-mask: linear-gradient(180deg, #000 0 52%, transparent 52% 56%, #000 56% 64%, transparent 64% 68%, #000 68% 75%, transparent 75% 80%, #000 80% 86%, transparent 86% 92%, #000 92%);
          mask: linear-gradient(180deg, #000 0 52%, transparent 52% 56%, #000 56% 64%, transparent 64% 68%, #000 68% 75%, transparent 75% 80%, #000 80% 86%, transparent 86% 92%, #000 92%);
  opacity: 0.9;
}
.city { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 300px; }
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; z-index: 0;
  background: linear-gradient(180deg, transparent, var(--night));
}

.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; padding-top: 54px; padding-bottom: 150px; align-items: start; }

.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 3px;
  background: #000; border: 2px solid var(--gold); color: var(--gold-hi); box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.6);
  font: 800 15px/1 var(--cond); letter-spacing: 0.1em; text-transform: uppercase; transform: rotate(-1.5deg);
}
.pill-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); animation: blink 1.1s steps(2) infinite; }
.pill.blue { border-color: var(--blue); color: #bcd0ff; }
.pill.blue .pill-dot { background: var(--blue); }
@keyframes blink { 50% { opacity: 0.2; } }

h1 { margin: 22px 0 18px; font-weight: 400; line-height: 0.92; }
h1 .h-gold, h1 .h-white { display: block; font-family: var(--display); text-transform: uppercase; }
h1 .h-gold { font-size: clamp(56px, 9vw, 118px); color: var(--gold); text-shadow: 3px 0 0 #000, -3px 0 0 #000, 0 3px 0 #000, 0 -3px 0 #000, 3px 3px 0 #000, -3px -3px 0 #000, 3px -3px 0 #000, -3px 3px 0 #000, 7px 8px 0 rgba(0, 0, 0, 0.55); letter-spacing: 0.01em; }
h1 .h-white { font-size: clamp(30px, 4.6vw, 58px); color: #fff; text-shadow: var(--ol-drop); margin-top: 6px; }

.lead {
  display: inline-block; max-width: 560px; margin: 4px 0 22px; padding: 12px 16px;
  background: rgba(0, 0, 0, 0.72); border-radius: 3px; color: #fff; font-size: 17px; line-height: 1.5;
}
.lead b { color: var(--gold-hi); }

/* Like the mission timer in the corner of the screen. */
.timer {
  display: inline-flex; align-items: center; gap: 18px; padding: 10px 18px 10px 16px;
  background: rgba(0, 0, 0, 0.78); border-radius: 3px; box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.5);
}
.timer-label { font: 800 16px/1 var(--cond); letter-spacing: 0.12em; text-transform: uppercase; color: #fff; }
.timer-value { font: 400 40px/1 var(--display); color: #fff; text-shadow: var(--ol); font-variant-numeric: tabular-nums; white-space: nowrap; }
.timer-value i { font-style: normal; font-size: 26px; color: var(--gold-hi); margin-left: 1px; }
.cd-date { margin: 8px 0 26px; color: #fff; font-size: 13px; text-shadow: 0 1px 2px #000; opacity: 0.9; }

.hero-cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.backers { background: rgba(0, 0, 0, 0.7); padding: 6px 10px; border-radius: 3px; font-size: 14px; }
.backers b { color: var(--gold-hi); }

/* The HUD, top right, as in game. */
.hud { justify-self: end; display: grid; justify-items: end; gap: 4px; text-align: right; }
.hud-clock { font: 400 44px/1 var(--display); color: #fff; text-shadow: var(--ol-drop); }
.hud-money { font: 400 50px/1 var(--display); color: var(--money); text-shadow: var(--ol-drop); letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
.hud-uc { font-size: 30px; margin-right: 8px; color: var(--money); }
.hud-stars { display: flex; gap: 2px; margin-top: 2px; }
.hud-stars svg { width: 30px; height: 30px; filter: drop-shadow(2px 2px 0 #000); }
.hud-coin { position: relative; margin-top: 16px; width: 230px; height: 230px; }
.hud-coin img { width: 100%; height: 100%; filter: drop-shadow(8px 10px 0 rgba(0, 0, 0, 0.45)); animation: bob 4s ease-in-out infinite; }
.x2 {
  position: absolute; left: -26px; top: 8px; display: grid; place-items: center; width: 96px; height: 96px;
  font: 400 42px/1 var(--display); color: #000; background: var(--gold); border: 4px solid #000; border-radius: 50%;
  box-shadow: 5px 5px 0 #000; transform: rotate(-12deg);
}
.hud-caption { max-width: 240px; background: rgba(0, 0, 0, 0.72); padding: 6px 10px; border-radius: 3px; font-size: 13px; color: #fff; }
@keyframes bob { 50% { transform: translateY(-10px) rotate(-3deg); } }

/* ---------------------------------------------------------------- sections */
section { scroll-margin-top: 76px; }
.section-head { margin: 64px 0 24px; }
.section-title {
  margin: 0; font: 400 clamp(34px, 4.6vw, 52px)/1 var(--display); color: var(--gold); text-transform: uppercase;
  text-shadow: var(--ol-drop);
}
.section-title.small { font-size: 24px; margin: 0 0 14px; }
.section-sub { color: var(--text-2); margin: 10px 0 0; font-size: 17px; }
.closed-note {
  background: #000; border: 2px solid var(--blue); border-left-width: 8px; color: #dfe7ff;
  padding: 14px 18px; border-radius: 3px; margin-bottom: 30px; font-weight: 600;
}

/* ------------------------------------------------------------------- packs */
.packs-section .section-head { margin-top: 36px; }
.packs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; padding-top: 36px; }
.pack {
  position: relative; display: flex; flex-direction: column;
  background: var(--box); border: 3px solid #000; border-radius: 4px;
  box-shadow: 0 0 0 1px var(--box-line) inset, 7px 7px 0 rgba(0, 0, 0, 0.55);
  transition: transform 0.12s;
}
.pack:hover { transform: translateY(-4px); }
.pack.featured { border-color: var(--gold); transform: translateY(-10px) rotate(-0.6deg); box-shadow: 0 0 0 1px #000 inset, 9px 9px 0 #000; }
.pack.featured:hover { transform: translateY(-14px) rotate(-0.6deg); }

.pack-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 12px 16px 10px; background: #000; border-bottom: 2px solid var(--box-line);
}
.pack.featured .pack-head { background: var(--gold); border-bottom-color: #000; }
.pack-name { font: 400 26px/1 var(--display); text-transform: uppercase; color: #fff; text-shadow: var(--ol); }
.stars { display: flex; gap: 1px; }
.stars path.on, .hud-stars path.on { fill: var(--star); }
.stars path.off { fill: rgba(255, 255, 255, 0.16); }
.pack.featured .stars path.off { fill: rgba(0, 0, 0, 0.28); }
.pack.featured .stars path.on { fill: #fff; }
.hud-stars path.off { fill: rgba(0, 0, 0, 0.55); }
.stars svg { width: 16px; height: 16px; filter: drop-shadow(1px 1px 0 #000); }

.pack-tag {
  position: absolute; top: -32px; right: 12px; z-index: 2; white-space: nowrap;
  font: 400 17px/1 var(--display); text-transform: uppercase; color: #000; background: var(--gold-hi);
  padding: 7px 10px 6px; border: 3px solid #000; border-radius: 3px; box-shadow: 4px 4px 0 #000; transform: rotate(4deg);
}
.pack-tag.red { background: var(--red); color: #fff; text-shadow: 1px 1px 0 #000; }

.pack-body { display: flex; flex-direction: column; flex: 1; padding: 16px 16px 18px; }
.pack-coins { display: flex; align-items: flex-end; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.pack-coins img { width: 32px; height: 32px; align-self: center; filter: drop-shadow(2px 2px 0 #000); }
.pack-coins .was { position: relative; color: #b8aec4; font: 400 26px/1 var(--display); text-shadow: 2px 2px 0 #000; margin-bottom: 6px; }
.pack-coins .was::after { content: ""; position: absolute; left: -3px; right: -3px; top: 45%; height: 4px; background: var(--red); transform: rotate(-12deg); box-shadow: 1px 1px 0 #000; }
.pack-coins .now { font: 400 54px/0.9 var(--display); color: #fff; text-shadow: var(--ol-drop); font-variant-numeric: tabular-nums; }
.pack-coins .now.boosted { color: var(--gold); }
.pack-coins .unit { font: 800 16px/1 var(--cond); text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-2); margin-bottom: 8px; }
.pack-bonus {
  align-self: flex-start; margin: 12px 0 0 -4px; padding: 5px 10px 4px; transform: rotate(-3deg);
  font: 400 18px/1 var(--display); color: #000; background: var(--gold); border: 2px solid #000; box-shadow: 3px 3px 0 #000; border-radius: 2px;
}

.pack-covers { margin: 16px 0 14px; padding-top: 12px; border-top: 2px dashed rgba(255, 255, 255, 0.12); min-height: 74px; }
.pack-covers small { display: block; color: var(--muted); font: 800 13px/1.2 var(--cond); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 4px; }
.pack-covers span { color: #fff; font-size: 14.5px; line-height: 1.4; font-weight: 600; }
.pack-covers em { display: block; font-style: normal; color: var(--muted); font-size: 13px; margin-top: 2px; }
.pack-note { color: var(--money); font: 700 14px/1.3 var(--cond); letter-spacing: 0.04em; text-transform: uppercase; margin-top: 8px; }

.pack-price { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: auto; margin-bottom: 14px; }
.price { display: flex; align-items: flex-start; font-family: var(--display); color: var(--money); text-shadow: var(--ol-drop); line-height: 0.9; }
.price .cur { font-size: 26px; margin-top: 3px; margin-right: 1px; }
.price .whole { font-size: 54px; }
.price .cents { font-size: 26px; margin-top: 3px; }
.per { text-align: right; font-size: 12px; color: var(--muted); line-height: 1.35; }
.per b { display: block; color: #fff; font: 700 16px/1.2 var(--cond); letter-spacing: 0.02em; }

.assure { list-style: none; margin: 34px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.assure li { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 3px; background: #000; border: 2px solid var(--box-line); }
.assure .ic { color: var(--gold); width: 40px; height: 40px; display: grid; place-items: center; border-radius: 3px; background: #1a1222; flex: none; }
.assure b { display: block; font-size: 15px; }
.assure small { color: var(--muted); font-size: 13px; }

/* ------------------------------------------------------------ menu (shop) */
.menu { background: var(--box); border: 3px solid #000; border-radius: 4px; box-shadow: 7px 7px 0 rgba(0, 0, 0, 0.55); overflow: hidden; }
.menu-head { background: #000; padding: 12px 18px; font: 400 26px/1 var(--display); color: var(--gold); text-shadow: var(--ol); text-transform: uppercase; border-bottom: 2px solid var(--box-line); }
.spend { display: grid; grid-template-columns: repeat(2, 1fr); }
.spend-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--box-line); }
.spend-item:nth-child(odd) { border-right: 1px solid var(--box-line); }
.spend-item:hover { background: rgba(245, 180, 30, 0.1); }
.spend-item span { font-weight: 600; }
.spend-item b { display: inline-flex; align-items: center; gap: 6px; color: var(--gold); font: 400 22px/1 var(--display); text-shadow: 2px 2px 0 #000; white-space: nowrap; }

/* --------------------------------------------------------- how (help boxes) */
.how { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.how li { background: rgba(0, 0, 0, 0.8); border-radius: 3px; padding: 20px 22px; border-left: 6px solid var(--gold); }
.how-num { font: 400 44px/1 var(--display); color: var(--gold); text-shadow: var(--ol); }
.how h3 { margin: 8px 0 6px; font: 400 26px/1 var(--display); text-transform: uppercase; color: #fff; text-shadow: var(--ol); }
.how p { margin: 0; color: var(--text-2); }

.callout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center;
  margin-top: 64px; background: #000; border: 3px solid #000; box-shadow: 0 0 0 2px var(--box-line) inset, 7px 7px 0 rgba(0, 0, 0, 0.55); border-radius: 4px; padding: 22px;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: #1a1222; border: 2px solid #000; box-shadow: 2px 2px 0 #000; border-radius: 3px; padding: 5px 10px; font: 700 15px/1.2 var(--cond); letter-spacing: 0.04em; }
.warn { border-left: 6px solid var(--red); padding: 4px 0 4px 16px; color: var(--text-2); }
.warn strong { color: #fff; display: block; margin-bottom: 2px; }

/* --------------------------------------------------------------------- faq */
.faq { display: grid; gap: 0; background: var(--box); border: 3px solid #000; border-radius: 4px; box-shadow: 7px 7px 0 rgba(0, 0, 0, 0.55); }
.faq details { border-bottom: 1px solid var(--box-line); padding: 0 18px; }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 26px/0.8 var(--display); color: var(--gold); }
.faq details[open] summary { color: var(--gold-hi); }
.faq details[open] summary::after { content: "-"; }
.faq details p { margin: 0 0 16px; color: var(--text-2); }

/* ------------------------------------------------------------------ footer */
.foot { margin-top: 80px; border-top: 3px solid #000; background: #000; padding: 28px 0 40px; }
.foot-inner { display: flex; gap: 20px; align-items: flex-start; }
.foot img { opacity: 0.8; flex: none; }
.foot p { margin: 0; color: var(--muted); font-size: 13px; }

/* -------------------------------------------------------------- sticky bar */
.sticky-bar {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 30;
  display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 14px; border-radius: 3px;
  background: rgba(0, 0, 0, 0.9); border-left: 6px solid var(--gold); box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.6);
  transition: transform 0.25s, opacity 0.25s;
}
.sticky-bar.away { transform: translateY(150%); opacity: 0; }
.sb-text { display: grid; line-height: 1.2; min-width: 0; }
.sb-text b { font: 400 17px/1.1 var(--display); color: var(--gold); text-transform: uppercase; }
.sb-text span { color: #fff; font-size: 13px; font-variant-numeric: tabular-nums; }
.sticky-bar .btn { margin-left: auto; flex: none; }

/* ------------------------------------------------------------ order status */
.order-card { margin-top: 28px; background: var(--box); border: 3px solid var(--gold); border-radius: 4px; padding: 22px; box-shadow: 8px 8px 0 #000; }
.order-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.order-head h2 { margin: 6px 0 0; font: 400 32px/1 var(--display); text-transform: uppercase; color: #fff; text-shadow: var(--ol); }
.eyebrow { color: var(--muted); font: 800 14px/1 var(--cond); letter-spacing: 0.1em; text-transform: uppercase; }
.passed { display: grid; margin: 8px 0 4px; }
.passed-title { font: 400 clamp(46px, 8vw, 84px)/0.95 var(--display); text-transform: uppercase; color: var(--gold); text-shadow: 3px 0 0 #000, -3px 0 0 #000, 0 3px 0 #000, 0 -3px 0 #000, 3px 3px 0 #000, -3px -3px 0 #000, 3px -3px 0 #000, -3px 3px 0 #000, 6px 7px 0 rgba(0, 0, 0, 0.55); animation: passed 0.6s cubic-bezier(0.2, 1.6, 0.4, 1); }
.passed-sub { font: 400 30px/1.1 var(--display); color: #fff; text-shadow: var(--ol); text-transform: uppercase; }
@keyframes passed { from { transform: scale(1.6); opacity: 0; } }
.steps-line { list-style: none; padding: 0; margin: 20px 0 6px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.steps-line li { padding-top: 12px; font: 700 15px/1.2 var(--cond); letter-spacing: 0.03em; text-transform: uppercase; color: var(--muted); border-top: 5px solid #2a2233; }
.steps-line li.done { color: #fff; border-top-color: var(--money); }
.steps-line li.now { color: #fff; border-top-color: var(--gold); }
.order-note { color: var(--text-2); margin: 12px 0 0; }
.order-note.bad { color: #ffb4a8; }

/* ------------------------------------------------------------------- modal */
.modal {
  width: min(450px, calc(100vw - 32px)); max-height: calc(100vh - 32px);
  background: #0b0710; color: var(--text); border: 3px solid var(--gold); border-radius: 4px;
  padding: 18px 22px 24px; box-shadow: 10px 10px 0 #000;
}
.modal::backdrop { background: rgba(10, 4, 16, 0.78); }
.modal h2 { font: 400 28px/1 var(--display); text-transform: uppercase; color: #fff; text-shadow: var(--ol); margin: 20px 0 14px; }
.modal-close-row { display: flex; justify-content: flex-end; margin: 0; }
.modal-close-row .icon-btn { margin: -2px -6px 0 0; }
.modal-pack {
  display: flex; align-items: center; gap: 12px; margin-top: -32px; margin-right: 46px;
  background: #000; border: 2px solid var(--box-line); border-left: 6px solid var(--gold); border-radius: 3px; padding: 10px 14px;
}
.modal-pack img { width: 34px; height: 34px; }
.modal-pack b { font: 400 22px/1 var(--display); color: var(--gold); text-shadow: 2px 2px 0 #000; }
.modal-pack span { color: var(--text-2); font-size: 14px; }
.modal-pack .mp-price { margin-left: auto; font: 400 26px/1 var(--display); color: var(--money); text-shadow: var(--ol); }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 16px; }
.tab { background: #1a1222; border: 2px solid #000; color: var(--text-2); font: 800 15px/1 var(--cond); letter-spacing: 0.05em; text-transform: uppercase; padding: 11px; border-radius: 3px; cursor: pointer; }
.tab.active { background: var(--gold); color: #000; box-shadow: 3px 3px 0 #000; }
.form { display: grid; gap: 12px; }
.form label { display: grid; gap: 6px; font: 800 14px/1 var(--cond); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); }
.form input {
  background: #000; color: var(--text); border: 2px solid #3a2f45; border-radius: 3px;
  padding: 12px 14px; font: 600 16px/1.2 Barlow, sans-serif;
}
.form input:focus { border-color: var(--gold); outline: none; }
#code-input { font: 400 30px/1.1 var(--display); letter-spacing: 0.12em; text-align: center; text-transform: uppercase; color: var(--gold); }
.hint { color: var(--muted); font-size: 13px; margin: 0; }
.error { color: #ff8f80; font-size: 14px; margin: 0; }
.error:empty { display: none; }
.summary { margin: 0 0 14px; display: grid; }
.summary > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--box-line); }
.summary dt { color: var(--text-2); }
.summary dd { margin: 0; font-weight: 700; text-align: right; }
.summary .total dd { font: 400 22px/1.1 var(--display); text-shadow: 2px 2px 0 #000; }
#sum-bonus, #sum-total { color: var(--gold); }
#sum-price { color: var(--money); }
#pay-btn { margin-top: 12px; }

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

/* ------------------------------------------------------------------ mobile */
@media (max-width: 1000px) {
  .packs { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .pack.featured { transform: rotate(-0.6deg); }
  .pack.featured:hover { transform: translateY(-4px) rotate(-0.6deg); }
  .how, .assure { grid-template-columns: 1fr; }
  .callout { grid-template-columns: 1fr; }
  .hero-inner { grid-template-columns: 1fr 0.8fr; }
  .hud-coin { width: 170px; height: 170px; }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .hero { min-height: 0; }
  .hero-inner { grid-template-columns: 1fr; padding-top: 26px; padding-bottom: 170px; }
  .hud { position: absolute; top: 14px; right: 16px; gap: 0; }
  .hud-clock { font-size: 24px; }
  .hud-money { font-size: 26px; }
  .hud-uc { font-size: 17px; }
  .hud-stars svg { width: 16px; height: 16px; }
  .hud-coin, .hud-caption { display: none; }
  .hero-text { padding-top: 58px; }
  .sun { width: 300px; height: 300px; bottom: 40px; transform: translateX(-30%); }
  .city { height: 200px; }
  .timer-value { font-size: 32px; }
  .spend { grid-template-columns: 1fr; }
  .spend-item:nth-child(odd) { border-right: 0; }
  .who-name { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .top-inner { gap: 12px; }
  .brand img { height: 28px; }
  .steps-line { grid-template-columns: 1fr 1fr; }
  .foot-inner { flex-direction: column; }
  .foot { padding-bottom: 110px; }
}
@media (min-width: 761px) { .sticky-bar { display: none !important; } }
@media (max-width: 480px) {
  .packs { grid-template-columns: 1fr; }
  #discord-link { display: none; }
  .timer { gap: 12px; padding: 8px 12px; }
  .timer-label { font-size: 13px; }
}
