:root {
  color-scheme: dark;
  --bg: #11101b;
  --panel: #1d1b2c;
  --panel-light: #28253b;
  --text: #f8f5ff;
  --muted: #b9b4ca;
  --accent: #ff8b35;
  --accent-dark: #d96516;
  --border: #39354f;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(ellipse at top, #29203c 0, var(--bg) 58%);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}
.wrap { width: min(100% - 28px, 680px); margin: 0 auto; padding: 32px 0 24px; }
.hero { text-align: center; padding: 12px 8px 24px; }
.eyebrow { color: var(--accent); font-size: .78rem; font-weight: 800; letter-spacing: .16em; }
h1 { font-size: clamp(2rem, 8vw, 3.4rem); line-height: 1.05; margin: 10px 0 14px; letter-spacing: -.04em; }
.intro { max-width: 510px; margin: 0 auto 22px; color: var(--muted); }
.timer-card {
  max-width: 440px; margin: 0 auto; padding: 17px 12px;
  border: 1px solid #51405d; border-radius: 18px;
  background: linear-gradient(135deg, #2b2039, #1c1a2c);
}
.timer-label { color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .13em; }
.countdown { margin: 5px 0; font-size: clamp(1.55rem, 6vw, 2.2rem); font-weight: 850; font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.deadline { font-size: .85rem; color: #d7cfe5; }
.panel { background: var(--panel); border: 1px solid var(--border); border-radius: 20px; padding: clamp(18px, 5vw, 28px); box-shadow: 0 16px 45px #0002; }
.field { display: block; margin-bottom: 20px; }
.field-title { display: block; font-weight: 750; margin-bottom: 8px; }
input, select {
  display: block; width: 100%; min-height: 52px; padding: 13px 14px;
  color: var(--text); background: #12111d; border: 1px solid #49445f;
  border-radius: 12px; font: inherit; font-size: 16px;
}
select { margin-bottom: 10px; }
[hidden] { display: none !important; }
input:focus, select:focus { outline: 3px solid #ff8b3544; border-color: var(--accent); }
input::placeholder { color: #89839d; }
button {
  display: block; width: 100%; min-height: 54px; border: 0; border-radius: 13px;
  background: var(--accent); color: #211306; font: inherit; font-weight: 850;
  font-size: 1rem; cursor: pointer; padding: 13px 18px;
}
button:hover:not(:disabled) { background: #ffa45d; }
button:disabled { opacity: .45; cursor: not-allowed; }
.small-print, .muted { color: var(--muted); font-size: .84rem; text-align: center; }
.status, .existing-note, .closed-banner {
  margin-bottom: 16px; padding: 12px 14px; border-radius: 11px; font-size: .92rem;
}
.status:empty { display: none; }
.success, .existing-note { background: #18372f; color: #b9f5da; }
.error, .closed-banner { background: #48252b; color: #ffd1d4; }
.results-note { color: var(--muted); }
.result-panel { margin-bottom: 16px; }
h2 { font-size: 1.1rem; margin: 0 0 12px; }
.results-list { list-style: none; padding: 0; margin: 0; }
.results-list li { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-top: 1px solid var(--border); overflow-wrap: anywhere; }
.results-list strong { color: var(--accent); white-space: nowrap; }
footer { display: flex; justify-content: space-between; gap: 12px; padding: 20px 4px 0; color: var(--muted); font-size: .84rem; }
a { color: #ffb779; }
@media (max-width: 420px) {
  .wrap { width: min(100% - 20px, 680px); padding-top: 18px; }
  .panel { border-radius: 16px; }
  footer { flex-wrap: wrap; }
}
