@font-face { font-family: KFutura; src: url('/assets/FuturaRoundBold.ttf') format('truetype'); font-display: swap; }
:root { --navy: #16255e; --blue: #3F59A8; --red: #B11F23; --ink: #1d2433; --muted: #5b6478; --line: #dfe3ee; --bg: #f3f5fa; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink); background: var(--bg); }
h1, h2, .kick, .button, .totals b, .rank, .linkbox, .big { font-family: KFutura, -apple-system, sans-serif; font-weight: 700; }
h1 { font-size: 30px; line-height: 1.1; margin: 4px 0 8px; }
h2 { font-size: 20px; margin: 18px 0 6px; color: var(--navy); }
a { color: var(--blue); }
.top { background: var(--navy); padding: 14px 16px; text-align: center; }
.top img { height: 52px; width: auto; }
main { max-width: 760px; margin: 0 auto; padding: 0 0 24px; }
footer { text-align: center; color: var(--muted); font-size: 14px; padding: 18px 16px 32px; }
.hero { background: linear-gradient(180deg, var(--navy), #22377f); color: #fff; padding: 22px 20px 26px; text-align: center; }
.hero.ended { background: linear-gradient(180deg, #2b2f3a, #3c4252); }
.hero .kick { display: inline-block; background: var(--red); color: #fff; border-radius: 999px; padding: 6px 16px;
  font-size: 14px; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 8px; }
.hero .when { margin: 6px 0 0; opacity: .95; }
.totals { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 16px; }
.totals div { background: rgba(255,255,255,.12); border-radius: 12px; padding: 10px 14px; min-width: 110px; }
.totals b { display: block; font-size: 24px; }
.totals span { font-size: 13px; opacity: .9; }
.panel { background: #fff; margin: 14px 12px 0; border-radius: 14px; padding: 16px 18px; box-shadow: 0 1px 3px rgba(22,37,94,.08); }
.panel.center { text-align: center; }
.panel.small { font-size: 14px; color: var(--muted); }
.panel.warn { background: #fff7e0; border: 1px solid #f1d27a; }
.hint, .note { color: var(--muted); font-size: 14px; margin: 4px 0 10px; }
.button { display: inline-block; border: 0; border-radius: 999px; background: var(--red); color: #fff; padding: 12px 22px;
  font-size: 16px; cursor: pointer; text-decoration: none; letter-spacing: .02em; }
.button.alt { background: var(--navy); }
.button.ghost { background: #fff; color: var(--navy); border: 2px solid var(--navy); }
.button:disabled { opacity: .45; cursor: not-allowed; }
.buttons { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 10px 0; }
input[type=search], input[type=text], input[type=date], textarea { width: 100%; font: inherit; padding: 12px 14px;
  border: 2px solid var(--line); border-radius: 12px; background: #fff; }
input:focus, textarea:focus { outline: none; border-color: var(--blue); }
.board { list-style: none; padding: 0; margin: 12px 0 0; }
.board li a { display: flex; align-items: center; gap: 12px; padding: 12px 6px; border-bottom: 1px solid var(--line);
  color: var(--ink); text-decoration: none; }
.board li a:hover { background: var(--bg); }
.board .rank { width: 44px; color: var(--red); font-size: 18px; text-align: center; flex: none; }
.board .who { flex: 1; font-weight: 600; }
.board .sold { text-align: right; font-weight: 700; color: var(--navy); }
.board .sold small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.linkbox { font-size: 22px; color: var(--navy); background: var(--bg); border-radius: 12px; padding: 14px; text-align: center;
  word-break: break-all; }
.flash { text-align: center; color: #1b7a3a; min-height: 1.4em; margin: 0; font-weight: 600; }
.qrbox { text-align: center; }
.qrbox canvas { width: min(300px, 80vw); height: auto; image-rendering: pixelated; }
.graphics { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; }
.graphics figure { margin: 0; text-align: center; }
.graphics canvas { display: block; margin: 0 auto; border-radius: 10px; box-shadow: 0 4px 16px rgba(0,0,0,.18); background: var(--navy); }
.graphics canvas.g-story { width: 200px; height: 356px; }
.graphics canvas.g-post { width: 300px; height: 300px; }
.graphics figcaption { color: var(--muted); font-size: 14px; margin-top: 6px; }
.mine .big { font-size: 26px; color: var(--navy); margin: 4px 0; }
.mine .big span { font-family: -apple-system, sans-serif; font-size: 16px; color: var(--muted); font-weight: 400; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0 14px; }
.choice { font: inherit; text-align: left; border: 2px solid var(--line); background: #fff; border-radius: 14px;
  padding: 14px; cursor: pointer; color: var(--ink); }
.choice b { display: block; font-family: KFutura, -apple-system, sans-serif; font-size: 18px; color: var(--navy); }
.choice span { display: block; font-size: 13px; color: var(--muted); margin-top: 4px; }
.choice[aria-pressed="true"] { border-color: var(--red); box-shadow: 0 0 0 2px var(--red) inset; }
.checkout { margin: 0 -8px; }
.checkout iframe { display: block; width: 100%; min-height: 320px; border: 0; }
.center { text-align: center; }
@media (max-width: 360px) { .choices { grid-template-columns: 1fr; } }
@media (min-width: 700px) { h1 { font-size: 38px; } .panel { margin: 16px 0 0; } }
