/* CounterPerk play site v0.1.1. Color is never the only signal: every status has an icon and a word. */
:root {
  --ink: #10213A; --ink-2: #3A4A61; --bg: #F5F6F8; --card: #FFFFFF; --line: #D9DEE5;
  --accent: #C2410C; --accent-ink: #FFFFFF; --ok: #1D4ED8; --warn: #B45309; --tint: #FFF4EC;
  --radius: 16px;
}
@media (prefers-color-scheme: dark) {
  :root { --ink: #EEF2F7; --ink-2: #B8C4D6; --bg: #0E1726; --card: #17233A; --line: #2B3A55;
          --accent: #F97316; --accent-ink: #10213A; --ok: #93C5FD; --warn: #FBBF24; --tint: #2A1D14; }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font-family: Archivo, "Helvetica Neue", Arial, sans-serif; font-size: 17px; line-height: 1.45; -webkit-text-size-adjust: 100%; }
a { color: var(--accent); }
.wrap { max-width: 480px; margin: 0 auto; padding: 0 16px 40px; }
.topbar { background: #10213A; color: #fff; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; }
.brand { display: flex; flex-direction: column; }
.brand b { font-size: 20px; font-weight: 800; }
.brand small { color: #B8C4D6; font-size: 13px; }
.chip { font-size: 12px; border: 1px solid #5B6B85; border-radius: 99px; padding: 2px 8px; color: #D6DEEA; }
.btn { font: inherit; display: block; width: 100%; border: 0; border-radius: 14px; padding: 18px; font-size: 20px; font-weight: 800; cursor: pointer; text-align: center; text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-dark { background: #10213A; color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border: 2px solid var(--line); font-size: 17px; padding: 14px; }
.btn:disabled { opacity: .55; cursor: wait; }
.small-btn { font: inherit; background: var(--card); color: var(--ink); border: 0; border-radius: 10px; padding: 9px 12px; font-weight: 700; cursor: pointer; }
.card { background: var(--card); border-radius: var(--radius); padding: 18px; margin-top: 14px; }
.stack > * + * { margin-top: 12px; }
h1 { font-size: 30px; line-height: 1.1; margin: 0; font-weight: 900; }
h2 { font-size: 22px; margin: 0; font-weight: 800; }
.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); }
.muted { color: var(--ink-2); }
.fine { font-size: 14px; color: var(--ink-2); }
.center { text-align: center; }
.rules-box { border: 2px solid var(--line); border-radius: 14px; padding: 14px; font-size: 15px; }
.rules-box ul { margin: 6px 0 0; padding-left: 20px; }
.check { display: flex; gap: 12px; align-items: center; background: var(--card); border-radius: 14px; padding: 14px 16px; font-weight: 700; cursor: pointer; }
.check input { width: 28px; height: 28px; accent-color: #10213A; flex: 0 0 auto; }
.alert { border: 3px dashed var(--warn); border-radius: 14px; padding: 14px; font-weight: 700; }
.status { display: inline-block; font-size: 13px; font-weight: 800; border: 2px solid currentColor; border-radius: 99px; padding: 3px 10px; }
.status.ok { color: var(--ok); }
.status.done { color: var(--ink-2); }
.status.off { color: var(--ink-2); border-style: dashed; }
.prize-hero { border: 3px dashed var(--accent); background: var(--tint); border-radius: 22px; padding: 28px 16px; text-align: center; }
.prize-hero .big { font-size: 36px; font-weight: 900; line-height: 1.1; margin: 8px 0; }
.scratch-area { position: relative; width: 100%; aspect-ratio: 4 / 3; border-radius: 22px; overflow: hidden; touch-action: none; user-select: none; }
.scratch-under { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--tint); border: 3px dashed var(--accent); border-radius: 22px; text-align: center; padding: 16px; }
.scratch-under .big { font-size: 30px; font-weight: 900; }
.scratch-area canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; }
.stripe { height: 14px; border-radius: 99px; background-image: repeating-linear-gradient(45deg, #10213A 0 14px, #C2410C 14px 28px); background-size: 56px 56px; animation: slide .9s linear infinite; }
@keyframes slide { from { background-position: 0 0; } to { background-position: 56px 0; } }
.valid { background: #1D4ED8; color: #fff; border-radius: 18px; padding: 18px; text-align: center; }
.valid .big { font-size: 46px; font-weight: 900; letter-spacing: 2px; }
.invalid { background: var(--card); border: 4px dashed var(--ink); border-radius: 18px; padding: 18px; text-align: center; }
.invalid .big { font-size: 36px; font-weight: 900; }
.row { display: flex; gap: 12px; }
.row > * { flex: 1; }
.stat { background: var(--card); border-radius: 16px; padding: 14px; text-align: center; }
.stat .num { font-size: 32px; font-weight: 900; font-variant-numeric: tabular-nums; }
.pulse { display: inline-block; width: 12px; height: 12px; border-radius: 99px; background: var(--accent); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.35); opacity: .55; } }
.links { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; font-size: 14px; margin-top: 18px; }
.legal h2 { margin-top: 22px; font-size: 19px; }
.legal p, .legal li { font-size: 15px; }
.draft { background: var(--tint); border-left: 0; border: 2px solid var(--warn); border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.spinner { width: 42px; height: 42px; border: 5px solid var(--line); border-top-color: var(--accent); border-radius: 99px; animation: spin 1s linear infinite; margin: 30px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.ts { display: flex; justify-content: center; margin-top: 8px; min-height: 0; }
@media (prefers-reduced-motion: reduce) { .stripe { animation-duration: 3s; } .pulse, .spinner { animation: none; } }
:focus-visible { outline: 3px solid var(--ok); outline-offset: 2px; }
