* {
  box-sizing: border-box;
}

:root {
  --bg: #8f0000;
  --bg-deep: #750000;
  --white: #ffffff;
  --soft: rgba(255,255,255,.16);
  --border: rgba(255,255,255,.95);
  --dark-red: #870000;
}

html, body {
  margin: 0;
  min-height: 100%;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at center, #a00000 0%, var(--bg) 48%, var(--bg-deep) 100%);
  color: var(--white);
}

body {
  min-height: 100vh;
}

button, input {
  font: inherit;
}

.app {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 34px 18px;
}

.panel {
  width: min(750px, 100%);
  text-align: center;
}

h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 72px);
  line-height: .98;
  letter-spacing: -2.4px;
  font-weight: 800;
}

.intro {
  margin: 26px auto 34px;
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.35;
  max-width: 720px;
}

form {
  text-align: left;
}

label,
.field-label {
  display: block;
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 10px;
}

input[type="url"] {
  width: 100%;
  height: 60px;
  padding: 0 18px;
  border-radius: 8px;
  border: 2px solid var(--border);
  background: rgba(80,0,0,.18);
  color: var(--white);
  outline: none;
  font-size: 22px;
  transition: .2s ease;
}

input[type="url"]::placeholder {
  color: rgba(255,255,255,.86);
}

input[type="url"]:focus {
  background: rgba(255,255,255,.08);
  box-shadow: 0 0 0 4px rgba(255,255,255,.08);
}

.field-group {
  margin-top: 26px;
}

.choice-grid {
  display: grid;
  gap: 16px;
}

.choice-grid.four {
  grid-template-columns: repeat(4, 1fr);
}

.choice-grid.three {
  grid-template-columns: repeat(3, 1fr);
  max-width: 540px;
  margin: 0 auto;
}

.choice {
  min-height: 66px;
  border: 2px solid var(--border);
  border-radius: 9px;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  font-size: 30px;
  font-weight: 800;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}

.choice:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,.08);
}

.choice.active {
  background: var(--white);
  color: var(--dark-red);
}

.primary,
.secondary {
  display: block;
  width: min(360px, 100%);
  min-height: 70px;
  margin: 30px auto 0;
  border-radius: 9px;
  border: 2px solid var(--white);
  font-size: 28px;
  font-weight: 900;
  cursor: pointer;
}

.primary {
  background: var(--white);
  color: var(--dark-red);
}

.secondary {
  background: transparent;
  color: var(--white);
}

.primary:hover,
.secondary:hover {
  transform: translateY(-1px);
}

.status-box {
  margin: 26px auto 0;
  padding: 18px;
  min-height: 112px;
  border: 2px solid var(--white);
  border-radius: 10px;
  background: rgba(80,0,0,.18);
  font-size: 18px;
  line-height: 1.35;
}

.status-box strong {
  display: block;
  font-size: 22px;
  margin-bottom: 2px;
}

#statusText {
  font-weight: 700;
}

#progressText {
  margin-top: 3px;
}

.countdown {
  margin-top: 8px;
  font-size: 17px;
  opacity: .92;
}

.divider {
  height: 1px;
  background: rgba(255,255,255,.78);
  margin: 34px 0 26px;
}

footer {
  font-size: 18px;
  font-weight: 700;
}

.hidden {
  display: none !important;
}

.error {
  border-color: #ffd6d6 !important;
  box-shadow: 0 0 0 4px rgba(255,255,255,.08);
}

@media (max-width: 680px) {
  .app {
    padding: 26px 14px;
    align-items: start;
  }

  h1 {
    font-size: 44px;
  }

  .intro {
    font-size: 18px;
    margin: 20px auto 28px;
  }

  .choice-grid.four {
    grid-template-columns: repeat(2, 1fr);
  }

  .choice-grid.three {
    grid-template-columns: repeat(3, 1fr);
  }

  .choice {
    min-height: 58px;
    font-size: 24px;
  }

  input[type="url"] {
    font-size: 18px;
  }

  .primary,
  .secondary {
    min-height: 62px;
    font-size: 24px;
  }
}
