* {
  box-sizing: border-box;
}

:root {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f7f8fb;
  background: #0d1017;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(circle at top, #26304a 0, transparent 38%),
    linear-gradient(180deg, #151922 0%, #0d1017 100%);
}

button {
  font: inherit;
}

.app {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding:
    max(24px, env(safe-area-inset-top))
    max(20px, env(safe-area-inset-right))
    max(24px, env(safe-area-inset-bottom))
    max(20px, env(safe-area-inset-left));
}

.card {
  width: min(100%, 420px);
  padding: 32px 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  background: rgba(23, 28, 40, 0.92);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  text-align: center;
  backdrop-filter: blur(16px);
}

.eyebrow {
  margin: 0 0 8px;
  color: #9da8c3;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 8vw, 3rem);
}

.counter {
  display: grid;
  gap: 4px;
  margin: 34px 0;
}

.counter span {
  font-size: clamp(4rem, 22vw, 7rem);
  font-weight: 800;
  line-height: 0.95;
  font-variant-numeric: tabular-nums;
}

.counter small {
  color: #aab3c8;
}

.primary-button,
.secondary-button {
  border: 0;
  border-radius: 18px;
  cursor: pointer;
  transition: transform 100ms ease, opacity 100ms ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.primary-button:active,
.secondary-button:active {
  transform: scale(0.97);
}

.primary-button {
  width: 100%;
  min-height: 76px;
  padding: 18px;
  color: #10131a;
  background: #f3c969;
  font-size: 1.35rem;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(243, 201, 105, 0.2);
}

.button-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.secondary-button {
  min-height: 48px;
  padding: 12px 16px;
  color: #e9edf7;
  background: #2b3347;
  font-weight: 700;
}

.status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 26px;
  color: #aeb7ca;
  font-size: 0.9rem;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e3a84b;
  box-shadow: 0 0 0 4px rgba(227, 168, 75, 0.12);
}

.status-dot.ready {
  background: #62d79a;
  box-shadow: 0 0 0 4px rgba(98, 215, 154, 0.12);
}

.status-dot.error {
  background: #ef7777;
  box-shadow: 0 0 0 4px rgba(239, 119, 119, 0.12);
}

.hint {
  margin: 18px 0 0;
  padding: 14px;
  border-radius: 14px;
  color: #ced5e5;
  background: #202638;
  font-size: 0.9rem;
  line-height: 1.45;
}

.hidden {
  display: none;
}

@media (max-width: 360px) {
  .button-row {
    grid-template-columns: 1fr;
  }
}
