:root { color-scheme: dark; font-family: Inter, ui-sans-serif, system-ui, sans-serif; background: #07120f; color: #f3f7f5; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at top, #173d31 0, #07120f 55%); }
button { font: inherit; }
.app { width: min(680px, 100%); margin: 0 auto; padding: 28px 18px 50px; }
header { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
h1 { margin: 4px 0 0; font-size: clamp(25px, 6vw, 38px); letter-spacing: -.04em; }
.eyebrow { margin: 0; color: #72e6b2; font-size: 12px; font-weight: 800; letter-spacing: .16em; }
.counter { min-width: 112px; padding: 11px 14px; text-align: center; border: 1px solid #2d5849; border-radius: 16px; background: #10261f; }
.counter span { display: block; color: #72e6b2; font-size: 27px; font-weight: 850; }
.counter small { color: #a9bdb5; }
.card { padding: clamp(18px, 5vw, 34px); border: 1px solid #284a3f; border-radius: 25px; background: rgba(10, 27, 22, .92); box-shadow: 0 28px 80px rgba(0,0,0,.35); }
.status { min-height: 24px; margin-bottom: 14px; color: #afc3bb; text-align: center; }
.status.error { color: #ff9d9d; }
#qrcode { display: grid; place-items: center; width: 250px; height: 250px; margin: 0 auto; padding: 14px; border-radius: 18px; background: white; }
#qrcode img, #qrcode canvas { max-width: 100%; height: auto !important; }
.code { margin: 18px 0 22px; overflow-wrap: anywhere; text-align: center; font-family: ui-monospace, monospace; font-size: clamp(20px, 5vw, 29px); font-weight: 800; letter-spacing: .04em; }
.button { width: 100%; min-height: 62px; border: 0; border-radius: 16px; cursor: pointer; font-size: 21px; font-weight: 900; transition: transform .12s, opacity .12s; }
.button:active { transform: scale(.985); }
.button:disabled { cursor: not-allowed; opacity: .38; }
.success { background: #45db9b; color: #062118; }
.failed { margin-top: 18px; background: #ef6d64; color: #2d0806; }
.divider { display: flex; align-items: center; gap: 12px; margin: 28px 0 12px; color: #708980; font-size: 12px; font-weight: 750; text-transform: uppercase; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: #29483d; }
.hint { margin: 0 0 14px; color: #afc3bb; text-align: center; }
.choices { display: grid; gap: 7px; }
.days { grid-template-columns: repeat(7, 1fr); }
.months { grid-template-columns: repeat(3, 1fr); margin-top: 12px; }
.choice { min-height: 39px; padding: 4px; border: 1px solid #31594b; border-radius: 10px; background: #122b23; color: #dce9e4; cursor: pointer; font-weight: 700; }
.choice.selected { border-color: #72e6b2; background: #245b48; color: white; box-shadow: inset 0 0 0 1px #72e6b2; }
.choice.invalid { display: none; }
@media (max-width: 430px) { .app { padding-inline: 10px; } .card { border-radius: 20px; } #qrcode { width: 220px; height: 220px; } }
