:root { font-family: system-ui, sans-serif; color: #211b12; background: #f7f1ff; }
* { box-sizing: border-box; }
body { margin: 0; }
main { width: min(680px, 100%); margin: auto; padding: 18px 14px 60px; }
header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
header div { display: flex; align-items: center; gap: 9px; }
header span { font-size: 34px; }
h1 { font-size: 22px; }
h1, h2, h3, p { margin: 0; }
header a { color: #38276d; font-weight: 700; }
.card { background: white; border: 1px solid #ded3ee; border-radius: 17px; padding: 17px; margin: 12px 0; box-shadow: 0 8px 24px #4d347315; display: grid; gap: 12px; }
.hero { background: #38276d; color: white; }
.hero small, .hero p { color: #e8def8; }
button, input, select, .button { width: 100%; padding: 12px; border: 1px solid #d6c8e9; border-radius: 11px; font: inherit; }
button, .button { border: 0; background: #7a4fc4; color: white; font-weight: 800; cursor: pointer; text-decoration: none; text-align: center; }
button:disabled { opacity: .6; cursor: wait; }
.danger { background: #a52b4d; }
form { display: grid; gap: 10px; }
label { display: grid; gap: 5px; font-weight: 700; }
.check { grid-template-columns: auto 1fr; align-items: center; }
.check input { width: auto; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.stats span, .list > div { padding: 10px; border-radius: 10px; background: #eee6fa; color: #2e2052; }
.hero .stats span { background: #ffffff1c; color: white; }
.list { display: grid; gap: 7px; }
.pulse { padding: 10px; border-radius: 10px; background: #fff2b8; color: #583d00; font-weight: 800; text-align: center; }
.round-countdown {
  --countdown-progress: 360deg;
  --countdown-size: clamp(148px, 42vw, 210px);
  min-height: calc(var(--countdown-size) + 58px);
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 7px;
  text-align: center;
}
.countdown-face {
  width: var(--countdown-size);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-content: center;
  position: relative;
  isolation: isolate;
  background: conic-gradient(#ffe66d var(--countdown-progress), #ffffff30 0);
  box-shadow: 0 12px 30px #170d3248;
}
.countdown-face::before {
  content: "";
  position: absolute;
  inset: 10px;
  z-index: -1;
  border-radius: inherit;
  background: #38276d;
  border: 1px solid #ffffff2b;
}
.countdown-value { font-size: clamp(52px, 16vw, 82px); line-height: .9; font-variant-numeric: tabular-nums; }
.countdown-unit { margin-top: 8px; color: #e8def8; font-size: 15px; font-weight: 800; }
.countdown-label { min-height: 24px; font-size: 18px; }
.countdown-warning { min-height: 20px; font-weight: 900; }
.round-countdown.urgent .countdown-face { animation: countdown-pulse .65s infinite alternate; }
.round-countdown.urgent .countdown-warning::before { content: "⚠️ "; }
.cinematic { min-height: 86px; display: grid; place-items: center; padding: 18px; border-radius: 14px;
  background: #211532; color: white; font-size: 20px; font-weight: 900; text-align: center; }
.cinematic.reveal { animation: reveal .55s ease both; }
.final-awards { background: linear-gradient(145deg, #fff7c7, #fff); border-color: #e7c44e; }
@keyframes reveal { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: scale(1); } }
@keyframes countdown-pulse { to { transform: scale(1.04); box-shadow: 0 14px 36px #ffe66d55; } }
@media (prefers-reduced-motion: reduce) {
  .round-countdown.urgent .countdown-face, .cinematic.reveal { animation: none; }
  .round-countdown.urgent .countdown-face { outline: 4px double #ffe66d; outline-offset: 4px; }
}
.error { color: #9b2014; min-height: 22px; }
[hidden] { display: none !important; }
