:root {
  color-scheme: dark;
  --bg: #090b10;
  --panel: #121722;
  --panel-strong: #18202f;
  --text: #f2f6ff;
  --muted: #a8b3c7;
  --line: #263143;
  --accent: #e8c468;
  --accent-strong: #f4d77f;
  --danger: #ff7b86;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(232, 196, 104, 0.12), transparent 34rem),
    linear-gradient(135deg, #090b10 0%, #111827 55%, #080a0f 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.page,
.admin-page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.page {
  padding: 48px 0;
}

.page--narrow {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.hero {
  min-height: calc(100vh - 96px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
  align-items: center;
}

.hero__content h1,
.message-card h1,
.admin-header h1 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.02;
}

.hero__content h1 {
  max-width: 820px;
  font-size: clamp(3rem, 6.4vw, 5.5rem);
}

.hero-subtitle {
  color: var(--accent);
  font-size: clamp(1.35rem, 3vw, 2.15rem);
  font-weight: 900;
  margin: 14px 0 0;
  text-transform: uppercase;
}

.lead {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.25rem;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero__actions,
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.quick-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.quick-stats span {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  display: inline-flex;
  gap: 8px;
  padding: 10px 12px;
}

.quick-stats strong {
  color: var(--text);
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button--primary {
  background: var(--accent);
  color: #141006;
  box-shadow: 0 10px 32px rgba(232, 196, 104, 0.22);
}

.button--primary:hover {
  background: var(--accent-strong);
}

.button--ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.button--ghost:hover {
  border-color: rgba(232, 196, 104, 0.55);
}

.prize-panel,
.message-card,
.draw-panel,
.table-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 23, 34, 0.86);
  box-shadow: var(--shadow);
}

.prize-panel {
  padding: 28px;
}

.stat {
  display: block;
  font-size: 5.2rem;
  font-weight: 900;
  line-height: 1;
}

.stat-label {
  color: var(--accent);
  font-weight: 900;
  text-transform: uppercase;
}

.divider {
  display: block;
  height: 1px;
  margin: 24px 0;
  background: var(--line);
}

.prize-panel p,
.disclaimer p,
.section-grid p,
.message-card p,
.draw-panel p,
.info-panel p {
  color: var(--muted);
}

.countdown {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 22px;
}

.countdown__label {
  display: block;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.countdown__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.countdown__grid span {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  display: grid;
  min-height: 78px;
  place-items: center;
  text-align: center;
  text-transform: uppercase;
  font-size: 0.7rem;
  font-weight: 800;
}

.countdown__grid strong {
  display: block;
  color: var(--text);
  font-size: 1.8rem;
  line-height: 1;
}

.countdown--ended .countdown__grid span {
  border-color: rgba(255, 123, 134, 0.38);
}

.section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding: 24px 0 28px;
}

.listen-strip {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 23, 34, 0.78);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin: 0 0 24px;
  padding: 24px;
}

.listen-strip p {
  color: var(--muted);
  margin: 0;
}

.listen-strip h2 {
  margin-bottom: 8px;
}

.entry-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0 0;
}

.entry-steps article,
.rule-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 23, 34, 0.72);
  padding: 22px;
}

.entry-steps span {
  align-items: center;
  border: 1px solid rgba(232, 196, 104, 0.42);
  border-radius: 999px;
  color: var(--accent);
  display: inline-flex;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  margin-bottom: 14px;
  width: 34px;
}

.entry-steps p,
.rule-panel p {
  color: var(--muted);
}

h2,
h3 {
  margin: 0 0 12px;
  line-height: 1.2;
}

.rules {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.rules li + li {
  margin-top: 8px;
}

.disclaimer {
  border-top: 1px solid var(--line);
  margin-top: 28px;
  padding: 28px 0 0;
}

.message-card {
  width: min(620px, 100%);
  padding: 34px;
}

.message-card--wide {
  width: min(880px, 100%);
  margin: 36px auto 24px;
}

.post-entry-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 26px;
  align-items: center;
  text-align: center;
}

.countdown--compact {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

.post-entry-hero .countdown__label {
  text-align: center;
}

.message-card h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
}

.message-card--error {
  border-color: rgba(255, 123, 134, 0.4);
}

.form {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

label {
  color: var(--muted);
  font-weight: 700;
}

input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0b0f17;
  color: var(--text);
  font: inherit;
  padding: 12px 14px;
}

.error-text {
  color: var(--danger);
  font-weight: 800;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 44px;
}

.radio-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 23, 34, 0.78);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: 24px;
  margin-bottom: 24px;
  padding: 24px;
}

.radio-panel__copy {
  align-self: center;
}

.radio-panel__copy p {
  color: var(--muted);
}

.audio-player {
  align-self: center;
}

.audio-player audio {
  display: none;
}

.live-button {
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 900;
  gap: 10px;
  justify-content: center;
  min-height: 54px;
  padding: 0 18px;
  width: 100%;
}

.live-button:hover {
  border-color: rgba(232, 196, 104, 0.55);
}

.live-dot {
  background: var(--danger);
  border-radius: 999px;
  box-shadow: 0 0 0 6px rgba(255, 123, 134, 0.12);
  display: block;
  height: 10px;
  width: 10px;
}

.audio-player--playing .live-dot {
  animation: livePulse 1.4s ease-in-out infinite;
}

.live-status {
  color: var(--muted);
  margin: 12px 0 0;
  text-align: center;
}

.volume-control {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.volume-control span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.volume-control input {
  accent-color: var(--accent);
  border: 0;
  padding: 0;
}

@keyframes livePulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.65;
    transform: scale(0.82);
  }
}

.info-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 23, 34, 0.78);
  padding: 24px;
}

.feature-list {
  color: var(--muted);
  margin: 18px 0 0;
  padding-left: 20px;
}

.feature-list li + li {
  margin-top: 8px;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.admin-page {
  padding: 32px 0 56px;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.admin-header h1 {
  font-size: clamp(2rem, 5vw, 4rem);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.metrics div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 20px;
}

.metrics span {
  display: block;
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1;
}

.metrics p {
  margin: 8px 0 0;
  color: var(--muted);
}

.draw-panel,
.table-section {
  margin-top: 24px;
  padding: 22px;
}

.draw-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--accent);
  font-size: 0.78rem;
  text-transform: uppercase;
}

td {
  color: var(--muted);
}

@media (max-width: 800px) {
  .hero,
  .section-grid,
  .entry-steps,
  .draw-columns,
  .metrics,
  .info-grid,
  .radio-panel,
  .listen-strip {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 40px 0;
  }

  .hero__content h1 {
    font-size: clamp(2.7rem, 14vw, 4.1rem);
  }

  .lead {
    font-size: 1.05rem;
  }

  .admin-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .post-entry-hero {
    grid-template-columns: 1fr;
  }
}
