/* Compact registration. Larger text/keyboard can still scroll normally. */
body:has(.registration-screen) {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100svh;
}
.app-shell[data-shell="auth"]:has(.registration-screen) {
  width: min(100%, 440px);
  min-height: 0;
  margin: auto;
  padding: max(20px, env(safe-area-inset-top)) 24px max(20px, env(safe-area-inset-bottom));
  border: 0;
  background: transparent;
}
.auth-screen.registration-screen {
  display: block;
  place-items: normal;
  align-content: normal;
  min-height: 0;
  padding: 0;
  text-align: left;
  color: #ecf3f9;
}
.registration-brand { display: flex; width: 100%; gap: 11px; align-items: center; margin-bottom: 22px; }
.registration-brand > img { display: block; width: 40px; height: 40px; border-radius: 12px; flex: 0 0 40px; }
.registration-brand > div { display: grid; gap: 4px; min-width: 0; }
.registration-brand strong { font-size: 16px; line-height: 1.1; letter-spacing: .12em; font-weight: 800; }
.registration-brand span { font-size: 11px; line-height: 1.3; color: #9eb1c0; }
.registration-heading { width: 100%; }
.registration-heading h1 { font-size: 28px; line-height: 1.15; letter-spacing: -.025em; margin: 0; font-weight: 750; }
.auth-screen.registration-screen .registration-heading p { max-width: none; margin: 6px 0 0; font-size: 13px; line-height: 1.4; color: #a1b4c4; }
.registration-screen .registration-form { display: grid; width: 100%; margin-top: 22px; gap: 18px; }
.registration-screen .club-register-cities { margin: 0; padding: 0; border: 0; min-width: 0; }
.registration-screen .club-register-cities legend { padding: 0; margin-bottom: 8px; font-size: 13px; line-height: 18px; font-weight: 600; color: #d7e4ee; }
.registration-screen .club-register-cities > div { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.registration-screen .club-register-cities button { display: flex; flex-direction: column; justify-content: center; min-height: 64px; gap: 5px; padding: 10px 12px; border: 1px solid #2e414f; border-radius: 12px; background: #111e29; box-shadow: none; text-align: left; transition: border-color .15s ease, background-color .15s ease; }
.registration-city-name { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 6px; }
.registration-screen .club-register-cities strong { font-size: 15px; line-height: 18px; font-weight: 650; color: #edf4fa; }
.registration-city-check { display: grid; place-items: center; width: 16px; height: 16px; border: 1px solid #627584; border-radius: 50%; color: #132f43; flex: 0 0 16px; }
.registration-city-check svg { width: 12px; height: 12px; opacity: 0; }
.registration-screen .club-register-cities button[aria-pressed="true"] { border-color: #83cdec; background: #1b3648; box-shadow: none; }
.registration-screen .club-register-cities button[aria-pressed="true"] .registration-city-check { background: #9bdcf2; border-color: #9bdcf2; }
.registration-screen .club-register-cities button[aria-pressed="true"] .registration-city-check svg { opacity: 1; }
.registration-screen .club-register-cities small { font-size: 11px; line-height: 15px; color: #a7bbc9; }
.registration-identity { display: grid; grid-template-columns: 62px minmax(0, 1fr); align-items: start; gap: 14px; }
.registration-screen .registration-avatar-picker { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; min-height: 0; padding: 14px 0 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.registration-avatar-wrap { position: relative; display: block; width: 56px; height: 56px; }
.registration-screen .avatar-picker-preview { cursor: pointer; touch-action: manipulation; }
.registration-screen .avatar-picker-preview .avatar.is-large { width: 56px; height: 56px; font-size: 22px; color: #b0d7ec; border: 1px solid #4f6c80; background: #1a2e40; box-shadow: none; }
.registration-screen .avatar-picker-preview .avatar { box-shadow: none; }
.registration-person { width: 28px; height: 28px; color: #9abbd1; }
.registration-camera { position: absolute; right: -2px; bottom: -1px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #95d5f0; border: 2px solid #0e161e; color: #153043; pointer-events: none; }
.registration-camera svg { width: 13px; height: 13px; }
.registration-photo-label { font-size: 11px; line-height: 14px; color: #a9c8db; }
.registration-screen .field { display: grid; gap: 7px; min-width: 0; text-align: left; }
.registration-screen .field > span { font-size: 13px; line-height: 18px; font-weight: 600; color: #d7e4ee; }
.registration-screen .field input { display: block; box-sizing: border-box; min-width: 0; width: 100%; min-height: 46px; padding: 11px 13px; border: 1px solid #2e414f; border-radius: 11px; color: #edf5fb; background: #111e29; font-size: 16px; line-height: 22px; box-shadow: none; color-scheme: dark; }
.registration-screen .field input::placeholder { color: #8299ac; }
.registration-screen .registration-hint { font-size: 11px; line-height: 15px; font-weight: 400; color: #91a7b8; }
.auth-screen.registration-screen .registration-note { max-width: none; margin: -5px 0 0; font-size: 12px; line-height: 17px; color: #a0b5c5; }
.registration-screen .registration-submit { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 48px; padding: 12px 16px; border: 1px solid #89d3f4; border-radius: 12px; color: #0e293b; background: #9bd9f3; box-shadow: none; font-size: 15px; line-height: 22px; font-weight: 750; }
.registration-submit svg { width: 19px; height: 19px; }
.registration-screen .registration-submit:disabled { opacity: .6; cursor: wait; }
.registration-screen :is(button,input):focus-visible { outline: 2px solid #b1e5fb; outline-offset: 3px; }
.registration-avatar-picker:focus-within { outline: 2px solid #b1e5fb; outline-offset: 4px; border-radius: 12px; }
.auth-screen.registration-screen .registration-error { max-width: none; margin: -4px 0; color: #ffb5ae; font-size: 13px; line-height: 1.4; }
.registration-error[hidden] { display: none; }
@media (hover:hover) { .registration-screen button:hover:not(:disabled) { filter: brightness(1.08); } }
@media (min-width:600px) {
  .app-shell[data-shell="auth"]:has(.registration-screen) { margin: auto; padding: 28px; border: 1px solid #263946; border-radius: 22px; background: #101b25; }
}
@media (max-width:374px) {
  .app-shell[data-shell="auth"]:has(.registration-screen) { padding-inline: 18px; }
  .registration-brand span { font-size: 10px; }
  .registration-screen .club-register-cities button { padding-inline: 10px; }
}
@media (max-height:660px) {
  .app-shell[data-shell="auth"]:has(.registration-screen) { padding-block: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-bottom)); }
  .registration-brand { margin-bottom: 14px; }
  .registration-screen .registration-form { margin-top: 16px; gap: 14px; }
}
@media (prefers-reduced-motion:reduce) { .registration-screen * { transition: none !important; } }
