:root {
  color-scheme: dark;
  font: 1rem/1.5 system-ui, sans-serif;
  color: #f5f6ff;
  background: linear-gradient(120deg, #281939, #0d1327 55%, #102e45) fixed;
}

* { box-sizing: border-box; }
body { margin: 0; padding: 28px 16px; }
main { max-width: 580px; margin: auto; padding: clamp(20px, 5vw, 36px); border: 1px solid #494669; border-radius: 20px; background: #11182a; }
img { display: block; max-width: 100%; height: auto; }
h1 { margin: 18px 0 6px; font-size: clamp(1.7rem, 5vw, 2.4rem); line-height: 1.15; }
p { color: #cdd7ef; }
form { display: grid; gap: 12px; margin: 18px 0 12px; }
form[hidden], section[hidden] { display: none; }
label { display: grid; gap: 4px; font-weight: 600; }
input, button { min-height: 44px; padding: 8px 12px; font: inherit; border: 1px solid #656184; border-radius: 8px; }
input { width: 100%; background: #0c1327; color: inherit; }
small { display: block; color: #b7c3df; }
#email-hint { margin-top: -8px; }
#code-hint { margin-top: 4px; }
#registration-code:not([hidden]) { padding: 10px 12px; border: 1px solid #8256a5; border-radius: 10px; background: #241a3b; }
button { cursor: pointer; background: #242f50; color: inherit; font-weight: 650; }
#submit-account, #gift button { background: linear-gradient(112deg, #82366f, #5645b6, #176686); }
.text-button { justify-self: center; padding-inline: 5px; border: 0; background: transparent; color: #e2d3ff; text-decoration: underline; text-underline-offset: 3px; }
button:disabled { cursor: wait; opacity: .7; }
:focus-visible { outline: 2px solid #76e3fb; outline-offset: 3px; }
#message { color: #ffc9ee; }
