:root {
  color-scheme: dark;
  --blue: #0a7cff;
  --blue-deep: #0a2a52;
  --ink: #f4f8ff;
  --muted: #b9c9e0;
  --ok: #4ade80;
  --error: #ff8a8a;
  --card: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.16);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: radial-gradient(1200px 800px at 50% -10%, #124a8a 0%, var(--blue-deep) 45%, #06182f 100%);
}

.wrap {
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.hero { text-align: center; }
.snow { font-size: 1.75rem; }
h1 {
  font-size: clamp(2rem, 7vw, 3.25rem);
  margin: 0.25rem 0 0.5rem;
  letter-spacing: -0.02em;
}
.tag { font-size: clamp(1rem, 2.6vw, 1.25rem); color: var(--muted); margin: 0; }

.countdown {
  margin-top: 1rem;
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
  font-size: 1.05rem;
}

.steps h2 { text-align: center; font-size: clamp(1.3rem, 3.5vw, 1.7rem); margin: 0 0 1.25rem; }
.steps-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem;
}
.step {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 1rem; display: flex; flex-direction: column; gap: 0.5rem;
}
.step-visual {
  aspect-ratio: 16 / 10; border: 1.5px dashed var(--border); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; font-size: 2.4rem;
  background: rgba(255, 255, 255, 0.03);
}
.step h3 { margin: 0.2rem 0 0; font-size: 1.02rem; display: flex; align-items: center; gap: 0.5rem; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.6rem; height: 1.6rem; flex: none; border-radius: 999px;
  background: var(--blue); color: #fff; font-size: 0.85rem; font-weight: 700;
}
.step p { margin: 0; font-size: 0.86rem; color: var(--muted); line-height: 1.45; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.5rem;
  backdrop-filter: blur(6px);
}
.card h2 { margin: 0 0 0.25rem; font-size: 1.4rem; }
.muted { color: var(--muted); margin: 0 0 1.25rem; font-size: 0.95rem; }

form { display: flex; flex-direction: column; gap: 0.9rem; }
.row { display: flex; gap: 0.9rem; }
.row label { flex: 1; }

label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.hint { font-size: 0.78rem; color: var(--muted); opacity: 0.85; }
.forgot { text-align: center; font-size: 0.85rem; color: var(--muted); margin: 1rem 0 0; }
.forgot a { color: var(--blue); }

input {
  font: inherit;
  color: var(--ink);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  min-height: 46px;
}
input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(10, 124, 255, 0.3);
}

button {
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: var(--blue);
  border: none;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  min-height: 50px;
  cursor: pointer;
  margin-top: 0.25rem;
}
button:hover { background: #2a90ff; }
button:disabled { opacity: 0.6; cursor: default; }

.message { margin: 0.5rem 0 0; font-size: 0.95rem; min-height: 1.2em; }
.message.ok { color: var(--ok); }
.message.error { color: var(--error); }

.foot { text-align: center; color: var(--muted); font-size: 0.85rem; }

.hidden { display: none !important; }

.cta {
  display: inline-block; margin-top: 1.1rem;
  background: var(--blue); color: #fff; font-weight: 700; text-decoration: none;
  border-radius: 10px; padding: 0.85rem 1.6rem; min-height: 50px;
}
.cta:hover { background: #2a90ff; }
.countdown { display: block; width: fit-content; margin: 1rem auto 0; }

.gifts { margin: 1rem 0 0; font-size: 1.15rem; font-weight: 700; }
.gifts-num {
  display: inline-block; font-size: 2rem; color: #ffd24a;
  animation: giftPulse 1.8s ease-in-out infinite;
}
@keyframes giftPulse { 50% { transform: scale(1.15); } }
@media (prefers-reduced-motion: reduce) { .gifts-num { animation: none; } }

.step-sub { margin: 0; padding-left: 1.1rem; font-size: 0.86rem; color: var(--muted); line-height: 1.45; }
.step-sub li + li { margin-top: 0.3rem; }

.resend { margin-top: 1rem; }

.popup {
  max-width: 420px; width: calc(100% - 2rem);
  background: var(--blue-deep); color: var(--ink);
  border: 1px solid var(--border); border-radius: 16px; padding: 1.5rem;
  text-align: center;
}
.popup::backdrop { background: rgba(0, 0, 0, 0.6); }
.popup-title { font-size: 1.2rem; font-weight: 700; margin: 0 0 0.5rem; }
.popup p { line-height: 1.45; }
.popup button { min-width: 120px; }

@media (max-width: 420px) {
  .row { flex-direction: column; }
}
