/* Account controls are real DOM elements, never artwork. No animation required. */
.auth-intro { margin-top: 0; color: var(--muted); }
.auth-help { margin: -3px 0 16px; font-size: 12px; color: var(--muted); }
.password-field { display: flex; align-items: stretch; gap: 6px; margin: 4px 0 11px; }
.password-field input { flex: 1; min-width: 0; margin: 0; min-height: 44px; }
.password-toggle { display: inline-flex; flex: 0 0 44px; align-items: center; justify-content: center; padding: 0; min-height: 44px; }
.password-toggle[hidden] { display: none; }
.password-toggle svg { fill: none; stroke: currentColor; stroke-width: 1.7; }
.password-match { min-height: 20px; margin: 0 0 12px; }
.auth-error { border: 1px solid var(--border); padding: 10px; margin: 0 0 16px; }
.auth-submit { width: 100%; min-height: 44px; }
.auth-links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.legal-consent{display:grid;gap:10px;margin:12px 0 16px;padding:12px;border:1px solid var(--border);background:rgba(255,255,255,.02)}
.consent-check{display:grid;grid-template-columns:20px 1fr;gap:9px;align-items:start;margin:0;font-size:12px;line-height:1.45;color:var(--muted)}
.consent-check input{width:18px;height:18px;min-height:0;margin:1px 0 0;padding:0}
.consent-check a{text-decoration:underline;text-underline-offset:2px}


/* TOKYO-RIVALS INVESTOR PREVIEW */
.preview-hero{
  display:grid;grid-template-columns:minmax(0,1fr) 210px;gap:22px;align-items:center;
  max-width:980px;margin:0 auto 12px;padding:26px;
  border:1px solid #28576a;background:linear-gradient(145deg,#071823,#090d15 62%,#160d18);
  clip-path:polygon(0 0,calc(100% - 14px) 0,100% 14px,100% 100%,14px 100%,0 calc(100% - 14px));
}
.preview-status{display:flex;align-items:center;gap:8px;margin-bottom:12px}
.preview-status span,.preview-status b{
  font:800 9px Consolas,"SFMono-Regular",monospace;letter-spacing:.1em;text-transform:uppercase;
  padding:5px 7px;border:1px solid #2d667a
}
.preview-status span{color:#43e7ff;background:#071d28}.preview-status b{color:#ff8fdc;border-color:#69435f;background:#1a0b16}
.preview-hero h1{max-width:720px;margin:5px 0 10px;font-size:clamp(30px,5vw,52px);line-height:.98;letter-spacing:-.035em}
.preview-lede{max-width:720px;margin:0;color:#a4bac2;font-size:13px;line-height:1.65}
.preview-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}
.preview-actions .button{min-height:42px;display:inline-flex;align-items:center;justify-content:center}
.preview-access{margin:13px 0 0;color:#75949f;font-size:10px}
.preview-mark{
  width:190px;aspect-ratio:1;display:grid;place-items:center;align-content:center;justify-self:end;
  border:1px solid #31586a;background:radial-gradient(circle at 35% 30%,rgba(67,231,255,.16),transparent 36%),#050d14;
  box-shadow:inset 0 0 0 7px #08151d
}
.preview-mark span{font:900 72px/1 Arial,Helvetica,sans-serif;letter-spacing:-.08em;color:#eafaff;text-shadow:3px 0 #ff5dbd,-3px 0 #43e7ff}
.preview-mark small{margin-top:8px;font:800 8px Consolas,monospace;letter-spacing:.14em;color:#7ba5b3}
.preview-grid{max-width:980px;margin:0 auto;display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.preview-grid article{min-height:155px;padding:14px;border:1px solid #1f3c49;background:#061017}
.preview-grid article>span{font:800 9px Consolas,monospace;color:#43e7ff}
.preview-grid h2{margin:15px 0 7px;font-size:14px}.preview-grid p{margin:0;color:#809ca6;font-size:10px;line-height:1.55}
.preview-foundation{
  max-width:980px;margin:8px auto 0;padding:15px;border:1px solid #293d48;background:#050c12;
  display:flex;align-items:center;justify-content:space-between;gap:18px
}
.preview-foundation h2{margin:4px 0 0;font-size:18px}.preview-foundation-list{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px}
.preview-foundation-list span{padding:6px 8px;border:1px solid #244452;color:#9bb8c2;font:800 8px Consolas,monospace;letter-spacing:.05em;text-transform:uppercase}
.preview-owner{max-width:980px;margin:9px auto 0;text-align:center;color:#68848e;font-size:8px;letter-spacing:.05em}
@media(max-width:760px){
  .preview-hero{grid-template-columns:1fr;padding:18px}.preview-mark{display:none}
  .preview-grid{grid-template-columns:1fr 1fr}
  .preview-foundation{align-items:flex-start;flex-direction:column}.preview-foundation-list{justify-content:flex-start}
}
@media(max-width:460px){
  .preview-grid{grid-template-columns:1fr}.preview-actions{display:grid}.preview-actions .button{width:100%}
}


.auth-divider{display:flex;align-items:center;gap:10px;margin:14px 0;color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:.08em}
.auth-divider:before,.auth-divider:after{content:"";height:1px;background:var(--border);flex:1}
.passkey-button{margin-bottom:10px}
.security-status{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0 16px}
.security-status>div{border:1px solid var(--border);padding:10px;background:rgba(255,255,255,.02);display:flex;flex-direction:column;gap:4px}
.security-status span{font-size:10px;color:var(--muted);text-transform:uppercase;letter-spacing:.08em}
.passkey-manager{border-top:1px solid var(--border);padding-top:14px}
.passkey-manager header h3{margin:0 0 4px}.passkey-manager header p{margin:0 0 12px;color:var(--muted);font-size:12px;line-height:1.5}
.passkey-list{display:grid;gap:8px;margin:12px 0}
.passkey-row{border:1px solid var(--border);padding:10px;background:rgba(255,255,255,.02)}
.passkey-row div{display:flex;flex-direction:column;gap:4px}.passkey-row small{color:var(--muted)}
@media(max-width:520px){.security-status{grid-template-columns:1fr}}


.security-status small{color:var(--muted);font-size:10px;overflow-wrap:anywhere}
.security-manager{border-top:1px solid var(--border);padding-top:14px;margin-top:12px}
.security-manager header h3{margin:0 0 4px}.security-manager header p{margin:0 0 12px;color:var(--muted);font-size:12px;line-height:1.5}
.security-inline-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:end}
.security-inline-form label{grid-column:1/-1}.security-inline-form input,.security-inline-form button{min-height:44px;margin:0}
.passkey-actions{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;margin-top:8px}
.passkey-actions form:first-child{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px}
.passkey-actions form:last-child{display:flex}
.passkey-actions input,.passkey-actions button{min-height:40px;margin:0}
.passkey-actions .danger{border-color:rgba(255,120,140,.5)}
@media(max-width:560px){
  .security-inline-form{grid-template-columns:1fr}
  .passkey-actions{grid-template-columns:1fr}
  .passkey-actions form:first-child{grid-template-columns:1fr auto}
}


.security-password-form{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px 10px;align-items:end}
.security-password-form label:first-of-type,.security-password-form #security-current-password{grid-column:1/-1}
.security-password-form input,.security-password-form button{min-height:44px;margin:0}
.security-password-form .password-match{grid-column:1/-1;margin:0}
.security-password-form button{grid-column:1/-1}
.session-manager form{display:flex;flex-wrap:wrap;gap:8px}
.session-manager button{min-height:44px}
@media(max-width:560px){
  .security-password-form{grid-template-columns:1fr}
  .security-password-form label,.security-password-form input,.security-password-form .password-match,.security-password-form button{grid-column:1}
}


/* TOKYO-RIVALS REGISTRATION FLOW */
.register-panel .pad{padding-top:14px}
.register-heading{margin-bottom:12px}
.register-heading .eyebrow{margin:0 0 4px;font-size:9px;letter-spacing:.1em}
.register-heading .auth-intro{margin:0}
.register-flow{display:grid;gap:10px}
.register-step{margin:0;padding:11px;border:1px solid var(--border);background:rgba(255,255,255,.018)}
.register-step legend{padding:0 6px;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}
.register-step legend span{display:inline-grid;place-items:center;min-width:24px;height:20px;margin-right:6px;border:1px solid var(--border);font-size:9px}
.register-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px 10px}
.register-grid label{display:flex;align-items:baseline;justify-content:space-between;gap:8px}
.register-grid label small{font-size:9px;color:var(--muted);font-weight:400}
.register-grid input{min-height:44px;margin:0}
.register-grid label[for="account-username"],.register-grid #account-username{grid-column:1}
.register-grid label[for="account-email"],.register-grid #account-email{grid-column:2}
.register-note{margin:7px 0 0;color:var(--muted);font-size:11px;line-height:1.45}
.register-password-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.register-password-grid>div{min-width:0}
.register-password-grid label{display:block;margin-bottom:4px}
.register-password-grid .password-field{margin:0}
.register-password-grid .password-match{grid-column:1/-1}
.register-flow .password-match{margin:6px 0 0}
.compact-consent{margin:0;padding:0;border:0;background:transparent}
.compact-consent .consent-check{padding:9px;border:1px solid var(--border);background:rgba(255,255,255,.02)}
.register-next{display:grid;gap:3px;margin-top:9px;padding:10px;border:1px solid var(--border);background:rgba(67,231,255,.035)}
.register-next b{font-size:11px}
.register-next span{color:var(--muted);font-size:10px;line-height:1.45}
.register-submit{min-height:48px;font-weight:800}
.register-links{justify-content:space-between;margin-top:14px}
@media(max-width:620px){
  .register-grid,.register-password-grid{grid-template-columns:1fr}
  .register-grid label[for="account-username"],.register-grid #account-username,
  .register-grid label[for="account-email"],.register-grid #account-email{grid-column:1}
}
@media(max-width:420px){
  .register-panel .pad{padding-left:10px;padding-right:10px}
  .register-step{padding:9px}
  .register-links{display:grid;gap:8px}
}


/* NEW PLAYER ENTRY */
.new-player-entry{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  gap:10px;
  align-items:center;
  margin:0 0 16px;
  padding:12px;
  border:1px solid var(--border);
  background:rgba(67,231,255,.04)
}
.new-player-entry>span,
.existing-player-heading>span{
  font-size:9px;
  font-weight:800;
  letter-spacing:.1em;
  text-transform:uppercase
}
.new-player-entry>span{color:#43e7ff}
.new-player-entry div,
.existing-player-heading div{display:grid;gap:3px}
.new-player-entry b,
.existing-player-heading b{font-size:12px}
.new-player-entry small,
.existing-player-heading small{font-size:10px;color:var(--muted);line-height:1.4}
.new-player-entry .button{min-height:42px;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap}
.existing-player-heading{
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  gap:10px;
  align-items:center;
  margin:0 0 12px;
  padding-bottom:10px;
  border-bottom:1px solid var(--border)
}
.existing-player-heading>span{color:#ff8fdc}
.landing-entry-label{
  margin-top:16px;
  font:800 9px Consolas,"SFMono-Regular",monospace;
  letter-spacing:.12em;
  color:#7fa0aa
}
@media(max-width:560px){
  .new-player-entry{grid-template-columns:1fr}
  .new-player-entry .button{width:100%}
}


/* Shared account-entry instrument shell. These pages use the same visual grammar as Player Access. */
.entry-console{margin:0 0 16px;border:1px solid #2b5b70;background:linear-gradient(145deg,#061a25,#050d15 65%,#150b18);clip-path:polygon(12px 0,calc(100% - 12px) 0,100% 12px,100% calc(100% - 12px),calc(100% - 12px) 100%,12px 100%,0 calc(100% - 12px),0 12px);box-shadow:0 18px 42px #0006}
.entry-console-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:20px;border-bottom:1px solid #244d5f;background:#071722}
.entry-console-head h2{margin:.1em 0 .3em;font-size:clamp(24px,4vw,36px);color:#e8fbff}
.entry-console-head p:last-child{margin:0;max-width:700px;color:#9ebdc8;line-height:1.55}
.entry-signal{flex:0 0 auto;padding:7px 9px;border:1px solid #65e8ff;color:#65e8ff;font:800 8px/1 Consolas,monospace;letter-spacing:.12em}
.entry-console .pad{padding:18px}
.entry-console-grid{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:12px}
.entry-lane{min-width:0;padding:16px;border:1px solid #214b5b;background:#04121b}
.entry-lane>span{display:block;margin-bottom:8px;color:#ff8fdc;font:800 9px/1 Consolas,monospace;letter-spacing:.13em}
.entry-lane h3{margin:0 0 8px;font-size:22px;color:#e6faff}
.entry-lane>p{color:#9fbdc8;line-height:1.55}
.entry-console form{display:grid;gap:7px}
.entry-console label{font-size:11px;color:#b8d3dd}
.entry-console input,.entry-console select,.entry-console textarea{width:100%;min-width:0;min-height:46px;padding:10px 11px;border:1px solid #315d6d;background:#020b11;color:#eefcff;font:14px/1.3 "Arial Narrow",Arial,sans-serif}
.entry-console input:focus,.entry-console select:focus,.entry-console textarea:focus{outline:2px solid #65e8ff;outline-offset:2px}
.entry-console .password-toggle{border:1px solid #315d6d;background:#0a1d29;color:#c8f2fb}
.entry-console .auth-links{display:flex;gap:10px;flex-wrap:wrap}
.entry-console .auth-links a{min-height:42px;display:inline-flex;align-items:center}
.entry-console .auth-error{border-color:#a64965;background:#2a0e18;color:#ffd5df}
.account-entry-body{max-width:900px;margin:0 auto}
.account-entry-console .entry-lane{max-width:760px;margin:0 auto}
.account-entry-console .auth-submit{min-height:48px;border-color:#65e8ff;background:#0a2936;color:#fff;font-weight:800}
.staff-entry-console .entry-signal{border-color:#ff765f;color:#ff9a7d}
.staff-entry-console .entry-lane>span{color:#ff9a7d}
.account-message{margin:0;font-size:14px;color:#cce3ea!important}
.register-console-grid{grid-template-columns:minmax(250px,.72fr) minmax(0,1.28fr);align-items:start}
.register-intro-lane{position:sticky;top:12px}
.register-progress{display:grid;gap:8px;margin:16px 0;padding:0;list-style:none}
.register-progress li{display:grid;grid-template-columns:38px minmax(0,1fr);gap:10px;align-items:center;padding:10px;border:1px solid #214b5b;background:#061823}
.register-progress li>b{display:grid;place-items:center;min-height:36px;border:1px solid #315d6d;color:#65e8ff;font:800 10px/1 Consolas,monospace}
.register-progress strong,.register-progress small{display:block}
.register-progress strong{color:#e6faff;font-size:13px}
.register-progress small{margin-top:3px;color:#86a8b5;line-height:1.35}
.register-start-note{display:grid;gap:5px;margin:14px 0;padding:12px;border:1px solid #60485e;background:#170f1b}
.register-start-note b{color:#ff8fdc;font:800 9px/1 Consolas,monospace;letter-spacing:.12em}
.register-start-note span{color:#c6dce3;line-height:1.45}
.register-form-lane{padding:0;border:0;background:transparent}
.register-step{min-width:0;margin:0;padding:14px;border:1px solid #214b5b;background:#04131c}
.register-step legend{padding:0 8px;color:#dff8ff;font-weight:800}
.register-step legend span{display:inline-grid;place-items:center;min-width:28px;height:24px;margin-right:7px;border:1px solid #315d6d;color:#65e8ff;font:800 9px/1 Consolas,monospace}
.register-grid{display:grid;grid-template-columns:minmax(145px,.34fr) minmax(0,.66fr);gap:9px 12px;align-items:center}
.register-grid>label{margin:0}
.register-grid>.player-invite-confirm{grid-column:1/-1}
.register-password-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.register-password-grid>div{min-width:0}
.register-note{margin:8px 0 0;color:#87aab7;line-height:1.45}
.register-confirm{display:grid;gap:12px}
.register-next{display:grid;gap:4px;padding:11px;border-left:3px solid #65e8ff;background:#071d28}
.register-next b{color:#e8fbff}
.register-next span{color:#9ebdc8}

@media(max-width:760px){
  .entry-console-head{padding:16px}
  .entry-signal{display:none}
  .entry-console-grid,.register-console-grid{grid-template-columns:1fr}
  .register-intro-lane{position:static}
  .register-grid,.register-password-grid{grid-template-columns:1fr}
  .register-grid>label{margin-top:4px}
}
@media(max-width:390px){
  .entry-lane{padding:13px}
}
