/* Gold Guess — production theme, ported from the approved preview design.
   Fonts: Archivo (UI/headings) + IBM Plex Mono (numbers, prices, codes). */
@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;600;700;800;900&family=IBM+Plex+Mono:wght@400;600;700&display=swap');

:root {
  --page: #f5f1e6;
  --soft: #efe8d8;
  --panel: #fffdf6;
  --panel-2: #faf5e9;
  --ink: #191b17;
  --ink-soft: #4c4a40;
  --ink-faint: #7a7666;
  --line: #ddd3ba;
  --gold: #a97c0f;
  --gold-bright: #c9971c;
  --gold-pale: #f3df9e;
  --gold-edge: #8a6410;
  --vault: #122019;
  --vault-2: #1a2f24;
  --vault-ink: #f4ecd4;
  --vault-soft: #b9c4ae;
  --green: #1c7a43;
  --green-bg: #e2f2e6;
  --red: #b3372c;
  --red-bg: #f9e7e3;
  --amber-bg: #fdf3d3;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(46,38,10,.12);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--page);
  color: var(--ink);
  line-height: 1.6;
}
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 18px; }
.mono { font-family: "IBM Plex Mono", ui-monospace, monospace; }

/* Header */
.site-header { background: var(--vault); color: var(--vault-ink); border-bottom: 3px solid var(--gold-bright); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; gap: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--vault-ink); text-decoration: none; }
.brand-coin {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 35% 35%, #ffe9a8, var(--gold-bright) 55%, var(--gold-edge));
  border: 2px solid var(--gold-edge); color: #3a2a02;
  display: flex; align-items: center; justify-content: center;
  font-family: "IBM Plex Mono", monospace; font-weight: 700; font-size: 1.1rem;
}
.brand-name { font-weight: 800; font-size: 1.2rem; letter-spacing: -.5px; }
.brand-name strong { color: var(--gold-bright); }
.brand-sub { display: block; font-size: .62rem; letter-spacing: 2.4px; color: var(--vault-soft); font-weight: 700; }
.site-nav { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.site-nav a { color: var(--vault-ink); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: .92rem; }
.site-nav a:hover { background: rgba(255,255,255,.1); }
.site-nav a.cta { background: var(--gold-bright); color: #221a02; font-weight: 800; border-bottom: 3px solid var(--gold-edge); }

/* Ad slots */
.ad-slot { max-width: 1060px; margin: 16px auto; padding: 0 18px; }
.ad-placeholder {
  border: 1.5px dashed var(--line);
  background: var(--panel-2);
  color: var(--ink-faint);
  text-align: center;
  border-radius: 10px;
  padding: 26px 12px;
  margin-left: 18px; margin-right: 18px;
  max-width: 1024px;
}
.ad-placeholder .ad-label { display: block; font-size: 10.5px; letter-spacing: 2.4px; text-transform: uppercase; font-weight: 700; }
.ad-placeholder .ad-size { display: block; font-family: "IBM Plex Mono", monospace; font-size: .8rem; margin-top: 6px; }
.ad-placeholder.tall { padding: 44px 12px; }

/* Cards & type */
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  margin: 22px 0;
  box-shadow: var(--shadow);
}
.hero {
  background: linear-gradient(160deg, var(--vault) 0%, #0b1510 100%);
  color: var(--vault-ink);
  border-radius: 18px;
  padding: 52px 34px;
  margin: 26px 0;
  text-align: center;
  border-bottom: 4px solid var(--gold-bright);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; top: -120px; right: -80px; width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(201,151,28,.35), transparent 70%);
  pointer-events: none;
}
.hero h1 { margin: 0 0 12px; font-weight: 900; font-size: clamp(38px, 6vw, 62px); letter-spacing: -1px; line-height: 1.08; position: relative; }
.hero h1 .gold { color: var(--gold-bright); }
.hero p.lede { font-size: 1.12rem; color: var(--vault-soft); max-width: 620px; margin: 0 auto 8px; position: relative; }
.kicker {
  display: inline-block; font-size: 12.5px; font-weight: 800; letter-spacing: 2.4px;
  text-transform: uppercase; color: var(--gold); margin-bottom: 12px;
}
.hero .kicker { color: var(--gold-bright); }
h2 { font-size: clamp(26px, 4vw, 36px); font-weight: 800; letter-spacing: -.5px; margin: 0 0 12px; }
h3 { font-size: 1.12rem; font-weight: 800; margin: 20px 0 8px; }
p { margin: 0 0 12px; }
.muted { color: var(--ink-soft); font-size: .93rem; }
.ticker {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(0,0,0,.3); border: 1px solid rgba(201,151,28,.5);
  border-radius: 999px; padding: 8px 18px; margin-top: 16px; font-weight: 700; position: relative;
}
.ticker .price { color: var(--gold-bright); font-size: 1.3rem; font-family: "IBM Plex Mono", monospace; }
.trust-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 20px; position: relative; }
.trust-row span { font-size: .85rem; font-weight: 700; color: var(--vault-soft); border: 1px solid rgba(201,151,28,.4); border-radius: 999px; padding: 6px 14px; }

/* Forms & buttons */
label.field { display: block; font-weight: 700; margin: 14px 0 6px; }
input[type="text"], input[type="number"] {
  width: 100%; padding: 13px 14px; font-size: 1.05rem;
  border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
  font-family: inherit;
}
input:focus { outline: 2px solid var(--gold-bright); border-color: var(--gold-bright); }
input.mono-input { font-family: "IBM Plex Mono", monospace; letter-spacing: 2px; text-transform: uppercase; text-align: center; }
.btn {
  display: inline-block; border: none; cursor: pointer; text-decoration: none;
  background: var(--gold-bright); color: #221a02;
  border-bottom: 4px solid var(--gold-edge);
  font-weight: 800; font-size: 1.02rem; font-family: inherit;
  padding: 15px 26px; border-radius: 10px; margin-top: 16px;
}
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: translateY(1px); border-bottom-width: 3px; }
.btn-big { padding: 18px 34px; font-size: 1.1rem; border-radius: 12px; }
.btn-dark { background: var(--vault); color: var(--vault-ink); border-bottom-color: #060d09; }
.btn-ghost { background: transparent; color: var(--ink); border: 2px solid var(--line); border-bottom-width: 4px; box-shadow: none; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; align-items: center; }
.code-box {
  font-family: "IBM Plex Mono", monospace;
  font-size: 1.9rem; font-weight: 700; letter-spacing: 3px;
  background: var(--vault); color: var(--gold-bright);
  border: 1px solid var(--gold-bright); border-radius: 12px;
  padding: 16px 22px; text-align: center; margin: 16px 0;
  user-select: all;
}
.notice {
  border-left: 4px solid var(--gold-bright); background: var(--amber-bg);
  padding: 12px 16px; border-radius: 0 10px 10px 0; margin: 16px 0; font-size: .95rem;
}
.notice.weekend { border-color: var(--vault); background: #e3ece7; }
.notice.green { border-color: var(--green); background: var(--green-bg); }

/* Steps */
.steps { display: flex; gap: 8px; margin: 18px 0 4px; flex-wrap: wrap; }
.step-dot {
  flex: 1; min-width: 90px; text-align: center; font-size: .75rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 1px; color: var(--ink-faint);
  padding: 10px 6px; border-radius: 8px; background: var(--soft);
}
.step-dot.active { background: var(--vault); color: var(--gold-bright); }
.step-dot.done { background: var(--gold-pale); color: var(--ink); }

/* Ticket pips */
.pips { display: flex; gap: 8px; margin: 10px 0; }
.pip {
  flex: 1; text-align: center; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px;
  border: 2px solid var(--line); border-radius: 8px; padding: 8px 4px; color: var(--ink-faint);
}
.pip.ready { border-color: var(--gold-bright); background: var(--amber-bg); color: var(--ink); }
.pip.used { text-decoration: line-through; opacity: .55; }

/* Clue cards / direction */
.clue-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 14px 0; }
.clue {
  border: 2px solid var(--line); border-radius: 12px; padding: 16px;
  background: var(--panel-2); font-size: .95rem;
}
.clue h4 { margin: 0 0 6px; font-size: .82rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; color: var(--gold); }
.clue .verdict { display: block; margin-top: 10px; font-weight: 800; font-size: .88rem; color: var(--green); }
.dir-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 14px 0; }
.dir-btn {
  display: block; border: 2.5px solid var(--line); background: #fff; border-radius: 12px;
  padding: 20px 12px; font-size: 1.05rem; font-weight: 800; cursor: pointer; color: var(--ink);
  text-align: center; font-family: inherit;
}
.dir-btn:hover { border-color: var(--gold-bright); }
.dir-btn .sub { display: block; font-size: .85rem; font-weight: 400; color: var(--ink-soft); margin-top: 4px; }
input[type="radio"].dir-radio { display: none; }
input[type="radio"].dir-radio:checked + .dir-btn { border-color: var(--gold-bright); background: var(--amber-bg); }

/* Price steppers */
.stepper-row { display: flex; gap: 10px; align-items: stretch; margin: 12px 0; flex-wrap: wrap; }
.stepper {
  border: 2px solid var(--line); background: var(--panel-2); border-radius: 10px;
  font-family: "IBM Plex Mono", monospace; font-weight: 700; font-size: 1rem;
  padding: 12px 16px; cursor: pointer; color: var(--ink);
}
.stepper:hover { border-color: var(--gold-bright); }
/* On narrow screens the price input takes its own row so the four
   stepper buttons sit in one clean row beneath it. */
@media (max-width: 560px) {
  .stepper-row input#price { flex: 1 1 100%; order: -1; }
}
input[type="range"] { width: 100%; accent-color: var(--gold-bright); margin: 8px 0; }
.range-labels { display: flex; justify-content: space-between; font-family: "IBM Plex Mono", monospace; font-size: .78rem; color: var(--ink-faint); }

/* Result tiers */
.tier { border-radius: var(--radius); padding: 22px; margin: 16px 0; border: 2px solid var(--line); background: var(--panel-2); }
.tier-draw { border-color: var(--gold-bright); background: linear-gradient(160deg, #fffbe9, var(--gold-pale)); }
.tier-replay { border-color: var(--green); background: var(--green-bg); }
.tier-miss { border-color: var(--line); background: var(--soft); }
.tier h3 { margin-top: 0; }
.score-big { font-size: 2.4rem; font-weight: 900; letter-spacing: -1px; font-family: "IBM Plex Mono", monospace; }
.pill {
  display: inline-block; font-family: "IBM Plex Mono", monospace; font-weight: 700; font-size: .9rem;
  padding: 4px 12px; border-radius: 999px; margin-left: 8px;
}
.pill-gold { background: var(--gold-bright); color: #221a02; }
.pill-green { background: var(--green-bg); color: var(--green); border: 1px solid var(--green); }
.pill-grey { background: var(--soft); color: var(--ink-faint); border: 1px solid var(--line); }
table.clean { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: .95rem; }
table.clean th, table.clean td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
table.clean td.num, table.clean th.num { font-family: "IBM Plex Mono", monospace; }
table.clean th { color: var(--gold); text-transform: uppercase; font-size: .75rem; letter-spacing: 1.5px; font-weight: 800; }

/* Coin badge (lock-in confirmation) */
.coin-badge {
  width: 92px; height: 92px; border-radius: 50%; margin: 6px auto 16px;
  background: radial-gradient(circle at 35% 35%, #ffe9a8, var(--gold-bright) 55%, var(--gold-edge));
  border: 4px solid var(--gold-edge);
  display: flex; align-items: center; justify-content: center;
  font-family: "IBM Plex Mono", monospace; font-weight: 700; font-size: 34px; color: #3a2a02;
}

/* FAQ */
.faq details { border: 1px solid var(--line); border-radius: 10px; margin: 10px 0; background: var(--panel-2); }
.faq summary { cursor: pointer; font-weight: 800; padding: 14px 16px; }
.faq details > div { padding: 0 16px 16px; color: var(--ink-soft); }

/* Scale bar (scoring) */
.scale-bar { display: flex; border-radius: 10px; overflow: hidden; margin: 14px 0; border: 1px solid var(--line); }
.scale-bar div { padding: 12px 10px; font-size: .82rem; font-weight: 800; text-align: center; }
.scale-low { flex: 2; background: var(--soft); color: var(--ink-faint); }
.scale-mid { flex: 3; background: var(--green-bg); color: var(--green); }
.scale-high { flex: 2; background: linear-gradient(160deg, #fffbe9, var(--gold-pale)); color: var(--gold-edge); }

/* Footer */
.site-footer { background: var(--vault); color: var(--vault-soft); margin-top: 34px; border-top: 3px solid var(--gold-bright); }
.footer-inner { padding: 30px 18px; text-align: center; }
.footer-brand { color: var(--vault-ink); font-size: 1.05rem; font-weight: 700; }
.footer-brand strong { color: var(--gold-bright); }
.footer-nav { display: flex; gap: 4px; justify-content: center; flex-wrap: wrap; margin: 12px 0; }
.footer-nav a { color: var(--vault-soft); text-decoration: none; padding: 6px 10px; font-size: .9rem; }
.footer-nav a:hover { color: var(--gold-bright); }
.footer-fine { font-size: .8rem; color: #8b957f; margin: 8px 0 0; }

/* Falling coins + confetti */
#fx-layer { position: fixed; inset: 0; pointer-events: none; z-index: 9999; overflow: hidden; }
.coin {
  position: absolute; top: -60px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffe9a8, var(--gold-bright) 45%, var(--gold-edge) 100%);
  border: 2px solid var(--gold-edge);
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.25);
  animation: coin-fall linear forwards;
}
.coin::after {
  content: "$"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #7a5606; font-weight: 800; font-family: "IBM Plex Mono", monospace;
}
.confetti-bit { position: absolute; top: -20px; animation: confetti-fall linear forwards; }
@keyframes coin-fall { to { transform: translateY(110vh) rotate(720deg); } }
@keyframes confetti-fall { to { transform: translateY(110vh) rotate(1080deg); } }

/* Drumroll */
.drumroll { font-size: 1.15rem; font-weight: 700; min-height: 2.2em; }

@media (prefers-reduced-motion: reduce) {
  .coin, .confetti-bit { animation: none !important; display: none !important; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #0d130f; --soft: #16211a; --panel: #16211a; --panel-2: #1a2a20;
    --ink: #f4ecd4; --ink-soft: #b9c4ae; --ink-faint: #8b957f; --line: #2c3d30;
    --gold: #e0b84f; --gold-bright: #e0b84f; --gold-pale: #3a2f10;
    --green-bg: #12291b; --red-bg: #2c1512; --amber-bg: #2c2510;
    --shadow: 0 10px 30px rgba(0,0,0,.4);
  }
  input[type="text"], input[type="number"] { background: #0d130f; color: #f4ecd4; }
  .dir-btn, .stepper { background: #0d130f; color: #f4ecd4; }
  .clue { background: #1a2a20; }
  .tier-draw { background: linear-gradient(160deg, #2c2510, #3a2f10); }
}

@media (max-width: 860px) {
  .dir-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .hero { padding: 36px 20px; }
  .card { padding: 20px 16px; }
  .code-box { font-size: 1.4rem; }
}
