:root {
  color-scheme: light;
  --bg: #f4f6f2;
  --surface: #fff;
  --surface-soft: #edf1e9;
  --text: #17251b;
  --muted: #748071;
  --line: #e4e9e0;
  --accent: #baf489;
  --accent-strong: #276e32;
  --accent-soft: #edf9e3;
  --danger: #ac413b;
  --hero: #182c21;
  --shadow: 0 8px 32px #24371b06;
  --bottom-height: 76px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #101713; --surface: #19221c; --surface-soft: #222e25;
    --text: #eff5e9; --muted: #97a691; --line: #2b382e;
    --accent-strong: #baf489; --accent-soft: #2c3c28; --danger: #ffa099;
    --hero: #203729; --shadow: none;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #101713; --surface: #19221c; --surface-soft: #222e25;
  --text: #eff5e9; --muted: #97a691; --line: #2b382e;
  --accent-strong: #baf489; --accent-soft: #2c3c28; --danger: #ffa099;
  --hero: #203729; --shadow: none;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; color: inherit; }
button:disabled { cursor: default; opacity: .48; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--accent-strong); outline-offset: 4px; }
a { color: var(--accent-strong); }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(26px, 6vw, 34px); letter-spacing: -1px; line-height: 1.16; }
h2 { font-size: 21px; letter-spacing: -.5px; line-height: 1.25; }
h3 { font-size: 16px; line-height: 1.35; }
p { line-height: 1.55; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.app-shell { max-width: 680px; margin: auto; min-height: 100dvh; position: relative; }
.app-header { padding: calc(22px + env(safe-area-inset-top)) 24px 23px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { text-decoration: none; display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 750; font-size: 19px; letter-spacing: -.5px; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: var(--accent); color: #1a301e; }
.brand-caption { display: block; color: var(--muted); letter-spacing: .15px; font-size: 10px; font-weight: 450; margin-top: 3px; }
.stage-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 650; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 7px 9px; white-space: nowrap; }
.status-dot { width: 5px; height: 5px; border-radius: 50%; background: #7cb949; }
main { padding: 0 24px calc(var(--bottom-height) + env(safe-area-inset-bottom) + 32px); }
.page-enter { animation: enter .22s ease-out both; }
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin: 8px 0 24px; }
.eyebrow { display: block; font-size: 10px; font-weight: 750; letter-spacing: 1.8px; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.page-intro { font-size: 13px; color: var(--muted); margin-top: 9px; }
.icon-button { display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 13px; width: 42px; height: 42px; background: var(--surface); flex-shrink: 0; }
.hero { background: var(--hero); color: #f4f9eb; padding: 25px; border-radius: 24px; position: relative; overflow: hidden; margin-bottom: 25px; min-height: 226px; }
.hero-content { position: relative; z-index: 1; max-width: 69%; }
.hero .eyebrow { color: #bdd4ad; font-size: 9px; }
.hero h1 { font-size: clamp(27px, 6.8vw, 35px); font-weight: 650; letter-spacing: -1.1px; }
.hero p { font-size: 12px; color: #b8c9b7; max-width: 250px; margin: 12px 0 19px; }
.hero .button { font-size: 12px; padding: 12px 14px; min-height: 42px; }
.hero-art { position: absolute; right: -51px; top: 36px; width: 208px; height: 208px; border: 1px solid #6a8a5f44; border-radius: 50%; transform: rotate(-18deg); background: repeating-conic-gradient(from 0deg, #c1ee8f16 0 44deg, #6a8a5f11 44deg 45deg, transparent 45deg 89deg, #6a8a5f44 89deg 90deg); box-shadow: 0 0 0 18px #8dbf7110, 0 0 0 37px #8dbf7107; }
.hero-art::before { content: ""; position: absolute; inset: 26px; border: 1px solid #8dbf7144; border-radius: 50%; }
.hero-art::after { content: "✦"; position: absolute; inset: 60px; display: grid; place-items: center; background: var(--accent); color: #263f24; border-radius: 50%; font-size: 45px; box-shadow: 0 0 0 9px #aade7620; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 13px 19px; border: 0; border-radius: 13px; font-weight: 650; font-size: 14px; text-decoration: none; background: var(--accent); color: #1a301e; }
.button .icon { width: 18px; height: 18px; }
.button.secondary { border: 1px solid var(--line); background: var(--surface); color: var(--text); }
.button.ghost { background: transparent; color: var(--muted); padding: 10px; }
.button.full { width: 100%; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 24px 0 14px; }
.section-heading h2 { font-size: 19px; }
.count { background: var(--surface-soft); color: var(--muted); padding: 5px 9px; border-radius: 9px; font-size: 11px; }
.segmented { display: flex; gap: 4px; background: var(--surface-soft); padding: 4px; border-radius: 14px; margin-bottom: 16px; }
.segmented button { flex: 1; background: none; color: var(--muted); border: 0; border-radius: 10px; padding: 11px 7px; font-size: 13px; font-weight: 650; }
.segmented button[aria-selected="true"] { background: var(--accent); color: #203219; box-shadow: 0 2px 5px #16320c08; }
.filters { display: flex; gap: 8px; margin: 0 0 17px; overflow-x: auto; }
.filter { background: transparent; color: var(--muted); border: 1px solid var(--line); border-radius: 20px; padding: 8px 12px; white-space: nowrap; font-size: 11px; }
.filter[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent-strong); border-color: var(--accent-strong); }
.empty-card { border: 1px dashed var(--line); border-radius: 20px; padding: 30px 22px; text-align: center; margin: 12px 0; }
.empty-card .large-icon, .state-view .large-icon { width: 56px; height: 56px; display: grid; place-items: center; margin: 0 auto 16px; border-radius: 18px; color: var(--accent-strong); background: var(--accent-soft); }
.empty-card .large-icon .icon { width: 26px; height: 26px; }
.empty-card p { max-width: 300px; margin: 8px auto 17px; font-size: 12px; color: var(--muted); }
.empty-card .button { min-height: 42px; font-size: 12px; }
.notice { display: flex; gap: 11px; padding: 15px; margin: 18px 0; background: var(--surface-soft); border-radius: 14px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.notice .icon { width: 17px; height: 17px; margin-top: 1px; }
.notice strong { display: block; color: var(--text); margin-bottom: 3px; font-size: 12px; font-weight: 650; }
.notice.warning { background: var(--accent-soft); }
.bottom-nav { position: fixed; z-index: 10; bottom: 0; left: 50%; transform: translateX(-50%); max-width: 680px; width: 100%; display: grid; grid-template-columns: repeat(4,1fr); padding: 9px 15px calc(10px + env(safe-area-inset-bottom)); min-height: var(--bottom-height); border-top: 1px solid var(--line); background: var(--surface); }
.nav-item { display: flex; flex-direction: column; align-items: center; gap: 5px; background: none; border: 0; color: var(--muted); font-size: 10px; padding: 4px; }
.nav-icon { height: 29px; min-width: 46px; border-radius: 10px; display: grid; place-items: center; }
.nav-item[aria-current="page"] { color: var(--accent-strong); font-weight: 700; }
.nav-item[aria-current="page"] .nav-icon { background: var(--accent-soft); }
.nav-item .icon { width: 21px; height: 21px; }
.state-view { padding: 65px 12px; text-align: center; }
.state-view h1 { font-size: 25px; }
.state-view p { max-width: 340px; color: var(--muted); margin: 12px auto 22px; font-size: 14px; }
.spinner { display: inline-block; width: 30px; height: 30px; border: 3px solid var(--line); border-top-color: var(--accent-strong); border-radius: 50%; animation: spin 1s linear infinite; margin-bottom: 20px; }
.skeleton { border-radius: 20px; height: 105px; background: var(--surface-soft); margin: 12px 0; animation: pulse 1.2s ease-in-out infinite alternate; }
.draft-card { width: 100%; text-align: left; border: 1px solid var(--line); border-radius: 19px; background: var(--surface); margin-bottom: 11px; padding: 17px; box-shadow: var(--shadow); }
.draft-card:active { transform: translateY(1px); }
.draft-top { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 13px; }
.draft-type { display: flex; align-items: center; gap: 7px; font-size: 10px; color: var(--muted); }
.draft-type .icon { width: 15px; height: 15px; }
.draft-status { color: var(--accent-strong); background: var(--accent-soft); border-radius: 7px; font-size: 9px; font-weight: 650; padding: 5px 7px; }
.draft-title { overflow-wrap: anywhere; font-size: 16px; font-weight: 650; line-height: 1.35; margin-bottom: 13px; }
.draft-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.draft-prize { font-size: 19px; font-weight: 700; letter-spacing: -.5px; }
.draft-prize small { font-size: 10px; letter-spacing: 0; font-weight: 500; color: var(--muted); }
.draft-caption { color: var(--muted); font-size: 10px; margin-top: 4px; }
.edit-pill { padding: 8px; border-radius: 10px; background: var(--surface-soft); display: grid; place-items: center; }
.edit-pill .icon { width: 17px; height: 17px; }
.editor-top { display: flex; align-items: center; gap: 12px; margin: 4px 0 23px; }
.editor-top h1 { font-size: 22px; letter-spacing: -.6px; }
.save-status { color: var(--muted); font-size: 10px; margin-top: 5px; min-height: 14px; }
.save-status.error { color: var(--danger); }
.step-counter { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 9px; font-size: 11px; color: var(--muted); }
.step-counter strong { color: var(--accent-strong); font-weight: 600; }
.progress-track { display: flex; gap: 5px; margin-bottom: 28px; }
.progress-part { flex: 1; height: 4px; border-radius: 5px; background: var(--line); }
.progress-part.done { background: var(--accent-strong); }
.editor-section h2 { margin-bottom: 8px; }
.editor-section > p { color: var(--muted); font-size: 13px; margin-bottom: 23px; }
.field { display: block; margin-bottom: 20px; }
.field-title { display: block; font-size: 12px; font-weight: 650; margin-bottom: 9px; }
.field-help { display: block; font-size: 10px; color: var(--muted); margin-top: 7px; line-height: 1.6; }
input, textarea, select { width: 100%; border: 1px solid var(--line); border-radius: 13px; padding: 14px; color: var(--text); background: var(--surface); outline: none; font-size: 16px; min-height: 50px; }
input:focus, textarea:focus, select:focus { border-color: var(--accent-strong); box-shadow: 0 0 0 3px var(--accent-soft); }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .7; }
input[aria-invalid="true"] { border-color: var(--danger); }
textarea { resize: vertical; min-height: 120px; }
.two-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.form-error { padding: 11px 13px; border: 1px solid currentColor; border-radius: 12px; color: var(--danger); font-size: 12px; margin: 16px 0; line-height: 1.5; }
.choice-group { display: grid; gap: 10px; margin: 20px 0; }
.choice-card { display: flex; align-items: center; gap: 13px; padding: 17px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); text-align: left; }
.choice-card[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent-strong); }
.choice-icon { width: 42px; height: 42px; border-radius: 13px; background: var(--surface-soft); display: grid; place-items: center; flex-shrink: 0; }
.choice-card[aria-pressed="true"] .choice-icon { background: var(--accent); color: #203219; }
.choice-text { flex: 1; }
.choice-text strong { font-size: 13px; display: block; margin-bottom: 5px; font-weight: 650; }
.choice-text span { display: block; font-size: 11px; color: var(--muted); line-height: 1.5; }
.radio-indicator { width: 18px; height: 18px; border: 1.5px solid var(--line); border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; }
.choice-card[aria-pressed="true"] .radio-indicator { border: 5px solid var(--accent-strong); }
.editor-actions { display: flex; gap: 10px; margin-top: 27px; padding-top: 20px; border-top: 1px solid var(--line); }
.editor-actions .button { flex: 1; }
.editor-actions .button.secondary { flex: 0 0 auto; }
.money-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 23px; margin: 18px 0; }
.money-label { font-size: 11px; color: var(--muted); }
.money-value { font-size: 38px; font-weight: 650; letter-spacing: -1.6px; margin: 9px 0 18px; }
.money-value small { font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--muted); margin-left: 5px; }
.reserve-line { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 15px; font-size: 11px; color: var(--muted); gap: 12px; }
.reserve-line strong { font-weight: 600; color: var(--text); }
.wallet-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.wallet-actions .button { min-height: 52px; }
.summary-card { padding: 19px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; margin: 19px 0; }
.summary-row { display: flex; justify-content: space-between; gap: 14px; padding: 12px 0; font-size: 12px; border-bottom: 1px solid var(--line); }
.summary-row:last-child { border: 0; }
.summary-row span { color: var(--muted); }
.summary-row strong { font-weight: 600; text-align: right; overflow-wrap: anywhere; max-width: 65%; }
.summary-row.total { font-size: 16px; }
.summary-row.total strong { color: var(--accent-strong); }
.summary-title { font-size: 20px; font-weight: 650; overflow-wrap: anywhere; margin: 8px 0 11px; letter-spacing: -.4px; }
.summary-description { color: var(--muted); font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.profile-card { display: flex; align-items: center; gap: 17px; margin: 27px 0; }
.avatar { display: grid; place-items: center; width: 64px; height: 64px; background: var(--accent); color: #294322; border-radius: 22px; font-size: 25px; font-weight: 600; }
.profile-name { font-size: 20px; font-weight: 650; overflow-wrap: anywhere; }
.profile-id { margin-top: 5px; font-size: 11px; color: var(--muted); }
.profile-menu { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); overflow: hidden; margin-bottom: 18px; }
.profile-row { display: flex; align-items: center; gap: 12px; padding: 18px; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: none; font-size: 12px; }
.profile-row:last-child { border: 0; }
.profile-row .row-text { flex: 1; }
.profile-row small { color: var(--muted); font-size: 10px; }
.profile-row .icon { width: 18px; height: 18px; color: var(--muted); }
.disclosure { border-bottom: 1px solid var(--line); padding: 18px; }
.disclosure:last-child { border: 0; }
.disclosure summary { cursor: pointer; font-size: 12px; font-weight: 600; }
.disclosure p { padding-top: 13px; color: var(--muted); font-size: 11px; }
.toast { position: fixed; z-index: 30; left: 50%; transform: translateX(-50%); bottom: calc(var(--bottom-height) + env(safe-area-inset-bottom) + 15px); width: max-content; max-width: calc(100% - 36px); padding: 12px 18px; border-radius: 14px; background: var(--text); color: var(--bg); box-shadow: 0 8px 32px #0002; font-size: 12px; }
.microcopy { text-align: center; color: var(--muted); font-size: 10px; line-height: 1.6; margin-top: 15px; }
.noscript { max-width: 500px; margin: 40px auto; padding: 20px; text-align: center; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { to { opacity: .4; } }
@keyframes enter { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@media (min-width: 560px) {
  .app-header { padding-right: 32px; padding-left: 32px; }
  main { padding-right: 32px; padding-left: 32px; }
  .hero { padding: 32px; min-height: 245px; }
  .hero-art { right: 14px; top: 37px; }
  .hero-content { max-width: 65%; }
  .hero p { max-width: 290px; }
}
@media (max-width: 350px) {
  .app-header { padding-left: 16px; padding-right: 16px; }
  main { padding-left: 16px; padding-right: 16px; }
  .stage-badge { font-size: 9px; padding: 6px; }
  .brand { font-size: 16px; }
  .hero { padding: 21px; }
  .hero-art { right: -91px; }
  .hero-content { max-width: 78%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}

/* Randolet: luminous mint, collectible prize cards and comfortable touch targets. */
.app-header { padding-top: calc(24px + env(safe-area-inset-top)); }
.brand-mark { box-shadow: 0 5px 18px #a7ed7938; transform: rotate(-7deg); }
.hero { background: radial-gradient(ellipse at 95% 0%, #527a49 0%, transparent 60%), linear-gradient(125deg, #15291f, #243c2b); min-height: 275px; border: 1px solid #70966240; box-shadow: 0 12px 35px #14291c15; }
.hero-content { max-width: 68%; }
.hero .eyebrow { line-height: 1.6; letter-spacing: 1.5px; max-width: 180px; }
.hero h1 { font-size: clamp(28px, 6.4vw, 37px); line-height: 1.08; letter-spacing: -1.3px; }
.hero p { color: #d0ddc9; line-height: 1.6; }
.hero-art { width: 155px; height: 220px; right: -24px; top: 47px; transform: rotate(9deg); border: 0; background: none; box-shadow: none; overflow: visible; }
.hero-art::before, .hero-art::after { display: none; }
.hero-ticket { position: absolute; width: 110px; height: 135px; border-radius: 23px; border: 1px solid #ffffff65; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: linear-gradient(145deg, #f0ffdd, #c3ee96); box-shadow: 0 14px 28px #0003; color: #26432b; }
.hero-ticket:nth-child(1) { transform: rotate(-23deg); top: 0; left: -6px; }
.hero-ticket:nth-child(2) { transform: rotate(12deg); top: 49px; left: 20px; background: linear-gradient(145deg, #e2f5ff, #9edacb); }
.hero-ticket:nth-child(3) { transform: rotate(-9deg); top: 110px; left: 4px; height: 90px; background: linear-gradient(145deg, #ebdfff, #d9c7ff); }
.ticket-emoji { font-size: 34px; line-height: 1; }
.ticket-label { font-size: 10px; font-weight: 750; letter-spacing: .3px; }
.hero-ticket:nth-child(3) .ticket-emoji { font-size: 25px; }
.button, .draft-card, .choice-card { transition: transform .15s, box-shadow .15s; }
.button:active { transform: scale(.98); }
.filter, .nav-item, .profile-row { min-height: 44px; }
.bottom-nav { border-radius: 22px 22px 0 0; box-shadow: 0 -8px 35px #0c201009; }
@media (min-width: 560px) { .hero-art { right: 35px; } .hero-content { max-width: 65%; } }
@media (max-width: 350px) { .hero-art { right: -58px; opacity: .8; } .hero-content { max-width: 77%; } }
@media (prefers-reduced-motion: reduce) { .button, .draft-card, .choice-card { transition: none; } }
