/* Gate: a small warm panel in a dark room, in the radio's palette. No external fonts/assets. */
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  min-height: 100vh;
  display: grid; place-items: center;
  padding: 24px;
  background:
    radial-gradient(ellipse 60% 50% at 50% 42%, rgba(255, 150, 60, 0.18), transparent 70%),
    radial-gradient(ellipse 90% 80% at 50% 50%, #1d130c, #070504);
  color: #f3e3c3;
  font-family: "Futura", "Century Gothic", "Avenir Next", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.panel {
  width: min(420px, 100%);
  padding: 34px 30px 26px;
  border-radius: 22px;
  background: linear-gradient(180deg, #4a2a16, #2e190c);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 220, 170, 0.18), inset 0 0 0 1px rgba(0, 0, 0, 0.4);
  text-align: center;
}
.eye {
  width: 54px; height: 54px; margin: 0 auto 18px;
  border-radius: 50%; padding: 5px;
  background: conic-gradient(from 20deg, #f7f7f2, #8b8b86 18%, #e6e6e0 35%, #5e5e5a 55%, #d8d8d2 72%, #8f8f8a 88%, #f7f7f2);
}
.eye span {
  display: block; width: 100%; height: 100%; border-radius: 50%;
  background:
    conic-gradient(from -40deg, rgba(4, 16, 8, 0.96) 0 80deg, transparent 86deg),
    radial-gradient(circle, #1a1a1a 0 18%, #b8f7c6 20%, #6ee88c 40%, #2fb556 78%, #145a2c 100%);
  box-shadow: 0 0 18px rgba(90, 255, 140, 0.35);
}
.kicker { margin: 0; font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: #d9b56a; }
h1 { margin: 8px 0 22px; font-weight: 500; font-size: 22px; letter-spacing: 0.5px; }
.step { display: grid; gap: 12px; }
.step[hidden] { display: none; }
label { font-size: 14px; color: #f0dcb4; }
input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #8a6216;
  background: #f5e8c6;
  color: #2a1a0e;
  font: 600 18px/1.2 "Courier New", ui-monospace, monospace;
  text-align: center;
  letter-spacing: 1px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.35);
}
#code { font-size: 26px; letter-spacing: 10px; }
input:focus-visible { outline: 3px solid #ffb347; outline-offset: 2px; }
button[type="submit"] {
  padding: 13px 18px;
  border: 0; border-radius: 12px;
  background: linear-gradient(180deg, #fbe7a6, #c79a3a 45%, #8a6216 55%, #e2bd62);
  color: #2a1a0e;
  font: 700 15px/1 "Futura", system-ui, sans-serif; letter-spacing: 2px; text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}
button[type="submit"]:disabled { opacity: 0.6; cursor: progress; }
button:focus-visible { outline: 3px solid #ffb347; outline-offset: 3px; }
.fine { margin: 4px 0 0; font-size: 12px; line-height: 1.5; color: #c9b08a; }
.link { padding: 0; border: 0; background: none; color: #ffd27a; font: inherit; text-decoration: underline; cursor: pointer; }
.status { min-height: 1.4em; margin: 16px 0 0; font-size: 14px; color: #ffd27a; }
.status.err { color: #ff9a7a; }
@media (prefers-reduced-motion: no-preference) {
  .step:not([hidden]) { animation: in 0.35s ease-out; }
  @keyframes in { from { opacity: 0; transform: translateY(6px); } }
}
