/* Primary paths: play, invite, join, profile. */
.hero-shortcuts{display:flex;flex-wrap:wrap;gap:8px 24px;margin-top:8px;font-size:13px;color:#b8d8f6}
.hero-shortcuts a{display:inline-flex;align-items:center;min-height:44px;text-decoration:underline;text-underline-offset:4px}
.funnel-play{display:grid;gap:12px;margin:0 0 24px}
.funnel-play-now{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;padding:18px 20px;min-height:60px;background:linear-gradient(100deg,#315c80,#1c3652);border:1px solid #719cc0;color:#f0f6ff;text-decoration:none}
.funnel-play-now b{font-size:19px}.funnel-play-now span{font-size:12px;color:#c0d5ea}
.funnel-friend-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.funnel-friend-links a{display:flex;align-items:center;justify-content:center;min-height:48px;padding:10px;border:1px solid #45627f;color:#d5e8fb;font-size:12px;text-align:center;text-decoration:none}
#profile-claim{width:100%;font-size:12px}
#practice-dialog .practice-stage{width:100%;margin:12px 0 0;min-height:44px;padding:8px 12px;font-size:11px;line-height:1.4;background:#14263e;border-color:#3d5978;color:#bcd3ec}
.practice-settings{margin-top:8px}.practice-settings summary{display:flex;align-items:center;min-height:44px;cursor:pointer;color:#b2c9e3;font-size:12px;list-style:none}.practice-settings summary::after{content:'+';margin-left:auto;font-size:20px}.practice-settings[open] summary::after{content:'−'}
#practice-dialog .practice-fighter-summary{height:128px}
#practice-dialog .practice-body>p{font-size:14px;line-height:1.5}
#friend-dialog{width:min(420px,calc(100% - 24px));max-height:calc(100dvh - 24px);padding:0;border:1px solid #7091b3;border-radius:10px;color:#e7effa;background:#112039;overflow:auto}
.friend-body{padding:24px}.friend-body h2{margin:6px 0 12px;font-size:28px}.friend-body>p{font-size:14px;line-height:1.6;color:#bdcee1}
.friend-body .funnel-eyebrow{font-size:10px;letter-spacing:.12em;color:#e1ca8e;margin:0}
#friend-fighter .practice-fighter-summary{display:flex;flex-direction:column;align-items:center;gap:8px;width:100%;min-height:140px;margin:16px 0 12px;padding:16px;background:linear-gradient(125deg,#294466,#1b2b45);border:1px solid #7194ba;border-radius:6px;color:#f1f6ff}
#friend-fighter .practice-fighter-summary img{width:56px;height:56px;image-rendering:pixelated}
#friend-fighter .practice-fighter-summary b{font-size:20px}.practice-fighter-label,.practice-fighter-change{font-size:10px;letter-spacing:.05em}.practice-fighter-change{color:#f0d89d}
#friend-stage{width:100%;min-height:44px;padding:10px;border:1px solid #476380;border-radius:4px;background:#182c47;color:#c5dbf2;font:12px/1.4 var(--brawl-type,Arial)}
.friend-body .friend-note{font-size:12px;margin:14px 0 0}
.friend-actions{display:flex;gap:10px;padding:14px 24px;background:#0b1627;border-top:1px solid #3d526c}
.friend-actions button{min-height:48px;padding:10px 16px;border:1px solid #5f7c9b;border-radius:4px;background:#253e5a;color:#e1edfa;font:700 13px var(--brawl-type,Arial)}
.friend-actions #friend-start{flex:1;background:#e5ca88;border-color:#fae6b2;color:#142239}
.funnel-hud-link{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 12px;border:1px solid #ffffff24;border-radius:8px;background:#18283d;color:#dae8f8;font-size:12px;text-decoration:none;white-space:nowrap}
.funnel-menu-link{display:flex;align-items:center;min-height:44px;text-decoration:none}
#online-qr-overlay{z-index:2600}.online-qr-panel{box-sizing:border-box;width:min(440px,100%);background:#122239;border-color:#607e9e;padding:24px}.online-qr-panel h2{color:#f0d494;font-size:26px}.online-qr-help{font-size:14px;line-height:1.6;color:#c0d1e4}
.invite-primary-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:18px}.invite-primary-actions button{min-height:52px;padding:10px;border:1px solid #6c8aac;border-radius:4px;background:#263f5d;color:#edf5ff;font:700 12px var(--brawl-type,Arial)}.invite-primary-actions #invite-send{background:#e5ca88;border-color:#fae6b2;color:#15233b}
.invite-expiry{font-size:11px;color:#9eb4cd;margin:12px 0}.invite-qr-details{border-block:1px solid #405873;margin:16px 0;padding:0 0 4px}.invite-qr-details summary{display:flex;align-items:center;justify-content:center;min-height:44px;cursor:pointer;color:#c5dbf2;font-size:13px}.invite-qr-details #online-qr-canvas{max-width:100%;margin-top:8px}.online-qr-panel .online-url-label{color:#b3c7dd}.online-qr-panel #online-invite-url{box-sizing:border-box;min-height:44px;font-size:16px}.online-qr-panel .online-qr-actions{display:grid;grid-template-columns:1fr 1fr}.online-qr-panel .online-qr-actions button{min-height:44px;font-size:12px;background:#243c57;border-color:#52708f}.online-qr-panel #online-qr-copy,.online-qr-panel #online-qr-share{display:none}.online-qr-panel #online-qr-close{background:#243c57;border-color:#6e8cac}#invite-feedback{font-size:12px;line-height:1.5;color:#e3d29f}#invite-feedback:empty{display:none}
/* Join links auto-connect. Manual entry is visible immediately when no link is present. */
#guest-gate{padding:max(12px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left))}
#guest-gate .gba-title-wrap{display:flex;flex-direction:column;width:min(760px,100%);max-width:100%;min-width:0;height:auto;aspect-ratio:auto;margin:auto;flex-shrink:1;box-sizing:border-box}
#guest-gate .title-utility{position:static;order:0;justify-content:center;flex-wrap:wrap;gap:12px;font-size:11px}
#guest-gate .title-utility button{min-height:44px;padding:8px 12px;border:1px solid #46617d;border-radius:4px;background:#192d45;color:#c4d9f0;font:inherit}
#guest-gate .gba-title-art{position:relative;inset:auto;order:1;height:240px;flex:none}
#guest-gate .guest-title-label{position:static;order:2;margin:8px 0;font-size:28px;line-height:1.2;color:#edf5ff;text-align:center}
#guest-gate #guest-message{position:static;order:3;margin:0 auto 16px;max-width:480px;font-size:14px;line-height:1.6;text-align:center;color:#bbcee4}
#guest-gate #guest-invite-entry{position:static;order:4;width:100%;max-width:480px;margin:0 auto 16px;padding:16px;border:1px solid #4b6787;border-radius:6px;background:#13253d;box-sizing:border-box}
#guest-gate #guest-invite{min-height:78px;max-height:140px;font-size:16px;line-height:1.5}
#guest-gate #guest-use-invite{min-height:48px;padding:12px 16px;font-size:14px;letter-spacing:.025em;justify-content:center;background:#31577a;color:#f1f7ff;border:1px solid #7da0c2;white-space:normal}
#guest-use-invite::before{display:none}
#guest-gate .gba-title-options{position:static;order:5;grid-template-rows:none;grid-auto-rows:minmax(48px,auto);height:auto;font-size:15px;letter-spacing:.025em}
#guest-gate .gba-title-option{min-height:48px;white-space:normal;padding:12px 16px 12px 42px;line-height:1.4}
#guest-gate .gba-title-option::before{width:14px;height:14px;left:14px}
@media(max-width:760px){
 .site-header{height:60px;gap:10px;padding-inline:16px}.site-header .wordmark{gap:6px;min-width:0}.site-header .wordmark span{font-size:12px}.site-header .wordmark svg{width:22px;flex:none}.site-header nav{display:flex;font-size:11px}.site-header nav a{min-height:44px;display:flex;align-items:center;padding:6px 0;white-space:nowrap}.site-header nav a:not([href="/profile"]){display:none}.header-play{font-size:10px;gap:8px;white-space:nowrap}
 .hero{padding:18px 20px 52px}.hero-logo{width:260px;max-width:85%;margin:8px 0 14px}.hero h1{font-size:30px;line-height:1.12;margin-bottom:10px}.hero-description{font-size:14px;line-height:1.5;margin-top:10px}.hero-actions{margin-top:18px;gap:10px}.hero-actions .menu-link{font-size:14px;min-height:48px}.hero-shortcuts{margin-top:2px;gap:4px 24px;font-size:13px}.hero-note{margin-top:2px;font-size:11px;line-height:1.5}.hero-sora{width:75%;max-width:300px;margin-top:18px}
 #guest-gate .gba-title-art{height:180px}#guest-gate .gba-title-art .kh-title-sora{width:61%;height:auto;max-height:96%;top:4%;right:0}#guest-gate .gba-title-art .kh-title-logo{left:0;top:6%;width:57%;height:auto}
 #guest-gate .guest-title-label{font-size:25px}#guest-gate #guest-message{font-size:13px}#guest-gate #guest-invite-entry{padding:14px}
 .funnel-play-now{padding:16px}.funnel-play-now span{font-size:11px}.funnel-friend-links a{font-size:11px}
}
@media(max-width:600px){
 .arena-hud-actions .funnel-hud-link[href="/profile"],.arena-hud-actions #practice-hud,.arena-hud-actions #brawl-fx{display:none}
 .arena-hud-actions .funnel-hud-link{min-height:40px;padding:8px;font-size:11px}
 .online-qr-panel{padding:20px 16px}.online-qr-panel h2{font-size:24px}
}

#guest-gate .guest-title-label{font-family:var(--brawl-type,Arial,sans-serif);font-weight:700}

/* A small set of clear choices before the first duel. */
#arena-gate .gba-title-wrap{width:min(820px,100%)}
#arena-gate .gba-title-art{height:clamp(170px,32vw,280px)}
#arena-gate .title-utility{order:3;font-size:11px;gap:16px;margin-top:10px}
#arena-gate .gba-title-options{font-size:15px;letter-spacing:.025em;gap:8px}
#arena-gate .gba-title-option{padding:14px 18px;min-height:52px;border:1px solid #48647f;background:#15283f;justify-content:flex-start}
#arena-gate .gba-title-option::before,#arena-gate .gba-title-option::after{display:none}
#arena-gate .gba-title-option small{display:block;font:12px/1.5 var(--brawl-type,Arial);margin-top:5px;color:#b7cde3;letter-spacing:0}
#arena-gate .core-play,#arena-gate .core-invite{justify-content:space-between;gap:12px;min-height:86px;font-size:19px;text-align:left}
#arena-gate .core-play{background:linear-gradient(110deg,#375b7a,#213b58);border-color:#8eb0d1;color:#fff4d8}
#arena-gate .core-invite{background:linear-gradient(110deg,#263b54,#182b43);color:#e8f3ff}
#arena-gate .gba-title-option:focus-visible{outline:3px solid #ffe49c;outline-offset:2px}
#arena-gate .core-play:disabled,#arena-gate .core-invite:disabled{opacity:.55}
/* Keep the invite itself secondary to sending it. Native dialog contains focus. */
dialog.online-qr-overlay{box-sizing:border-box;width:100%;height:100%;max-width:none;max-height:none;margin:0;border:0;padding:max(16px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));color:#eaf3ff}
dialog.online-qr-overlay:not([open]){display:none}
.online-qr-panel{max-height:calc(100dvh - 40px);border-radius:12px;box-shadow:0 18px 70px #0008;text-align:left}
.online-qr-panel h2{font:700 28px/1.15 var(--brawl-type,Arial);margin:10px 0 14px;color:#f4f6ff}
.invite-waiting{display:flex;align-items:center;gap:8px;font-size:12px;color:#b7d7c1;margin:0}
.invite-waiting::before{content:'';width:7px;height:7px;border-radius:50%;background:#a9cfae;flex:none}
.online-qr-help{margin:0;font:14px/1.6 var(--brawl-type,Arial)}
.invite-primary-actions{margin:22px 0 12px}
#invite-feedback{min-height:36px;margin:0;font-size:13px}
.invite-expiry{font-variant-numeric:tabular-nums;margin:10px 0 18px}
.invite-link-details,.invite-qr-details{border-block:0;border-top:1px solid #3b526b;margin:0;padding:0}
.invite-link-details summary,.invite-qr-details summary{min-height:44px;display:flex;align-items:center;justify-content:space-between;cursor:pointer;color:#b9cee4;font-size:13px}
.invite-link-details summary::after,.invite-qr-details summary::after{content:'+';font-size:20px}
.invite-link-details[open] summary::after,.invite-qr-details[open] summary::after{content:'−'}
.online-qr-panel #online-invite-url{margin-bottom:14px;font-size:13px}
.invite-keep-open{padding:14px;border:1px solid #455873;background:#1b3048;font-size:12px;line-height:1.6;color:#d3e1f1;margin:16px 0}
.online-qr-panel .online-qr-actions{display:flex}.online-qr-panel #online-qr-close{width:100%;border-radius:5px}
.online-qr-panel .dedicated-invite-exit{display:flex;align-items:center;justify-content:center;min-height:44px;padding:0 16px;color:#b9cee4;font:600 12px var(--brawl-type,Arial);white-space:nowrap}
#invite-renew,#online-qr-download{width:100%;min-height:44px;padding:10px 14px;border:1px solid #7d9ab9;border-radius:4px;color:#e6f0fc;background:#284563;font:600 13px var(--brawl-type,Arial);margin-bottom:12px}
#invite-renew{background:#e5ca88;color:#15233b;border-color:#fae6b2}
.invite-primary-actions button:disabled,#online-qr-download:disabled{opacity:.45;cursor:default}
/* Join has one task, with optional fighter and navigation underneath. */
#guest-gate .gba-title-wrap{width:min(480px,100%)}
#guest-gate .gba-title-art{order:0;height:150px;width:min(400px,100%);align-self:center}
#guest-gate .guest-title-label{order:1;margin-top:16px}
#guest-gate #guest-message{order:2;margin-bottom:18px}
#guest-gate #guest-invite-entry{order:3;margin-bottom:10px}
#guest-gate .title-utility{order:5;margin:10px 0}
#guest-gate #guest-join,#guest-gate #guest-paste{position:static;order:4;width:100%;min-height:48px;justify-content:center;padding:12px;font-size:14px;letter-spacing:.025em}
#guest-gate #guest-join::before,#guest-gate #guest-join::after{display:none}
#guest-gate #guest-join{background:linear-gradient(110deg,#31577a,#213d5b);border:1px solid #80a4c8;color:#f4f8ff}
#guest-gate #guest-join:disabled{cursor:wait;opacity:1;color:#d8e9fa}
#guest-clipboard{width:100%;min-height:44px;margin-top:8px;border:0;background:transparent;color:#b9d4f0;font:12px var(--brawl-type,Arial)}
#guest-gate #guest-invite{min-height:70px;resize:vertical}
#guest-invite[aria-invalid=true]{border:2px solid #e8af9f!important}
.guest-text-action{border:0;background:transparent;color:#b9d4f0;font:12px var(--brawl-type,Arial)}
.guest-shortcuts{order:6;display:flex;justify-content:center;gap:24px;border-top:1px solid #344d68;margin-top:8px;padding-top:8px}
.guest-shortcuts a{display:flex;align-items:center;min-height:44px;font-size:13px;color:#c2d8ef;text-underline-offset:4px}
#guest-gate[data-state=joining] #guest-join::before{content:'';display:inline-block;position:static;width:14px;height:14px;margin-right:10px;border:2px solid #6c8faf;border-top-color:#e7d69e;border-radius:50%;background:none;box-shadow:none;animation:loading-spin 1s linear infinite}
/* The player card keeps identity and practical actions together. */
.profile-actions{display:flex;flex-wrap:wrap;gap:10px;grid-column:1/-1}
.profile-actions>.quiet-button{min-height:44px;flex:1;text-align:center;justify-content:center;text-decoration:none;font-size:12px;white-space:normal}
#profile-claim.profile-save{display:flex;flex-direction:column;gap:6px;text-decoration:none;padding:16px 18px;border:1px solid #a38b59;background:linear-gradient(110deg,#3d382a,#282a2c);color:#f0dca9;border-radius:4px}
.profile-save b{font-size:13px}.profile-save span{font-size:12px;line-height:1.5;color:#c4cbd5}
.profile-more{width:100%;border-top:1px solid #41556e;margin-top:4px}
.profile-more summary{display:flex;align-items:center;justify-content:space-between;min-height:44px;font-size:12px;color:#b4c9df;cursor:pointer;list-style:none}
.profile-more summary::after{content:'+'}.profile-more[open] summary::after{content:'−'}
.profile-more button{min-height:44px;text-align:left;display:block}
.profile-empty{padding:26px 22px;border:1px solid #3c5670;background:linear-gradient(125deg,#1b3048,#122238);border-radius:5px}
.profile-empty h3{font-size:23px;line-height:1.25;margin:12px 0;color:#eff5fc}.profile-empty p{font:14px/1.6 var(--brawl-type,Arial);color:#bdcee0;margin:0 0 20px;max-width:48ch}.profile-empty>div{display:flex;gap:10px;flex-wrap:wrap}.profile-empty a{display:inline-flex;align-items:center;min-height:46px;text-decoration:none;font-size:12px}
@media(max-width:760px){
 .lobby-panel-heading{min-height:64px;padding-top:max(8px,env(safe-area-inset-top));padding-bottom:8px}.lobby-brand>span{display:none}.lobby-brand strong{font-size:13px;letter-spacing:.06em}.lobby-self{padding:4px 7px}.lobby-self .player-avatar{width:30px;height:34px}.lobby-self small{font-size:10px}
 .lobby-nav{position:sticky;top:0}.lobby-nav button{min-height:48px;font-size:11px}.lobby-page-heading{margin-bottom:16px}.lobby-page-heading h2{font-size:24px}
 .profile-actions>.quiet-button{flex:1 1 calc(50% - 10px)}.profile-empty{padding:22px 18px}.profile-empty>div{flex-direction:column}.profile-empty a{justify-content:center}
 #arena-gate .gba-title-art{height:180px}#arena-gate .gba-title-art .kh-title-logo{left:0;top:6%;width:57%;height:auto;max-width:none}#arena-gate .gba-title-art .kh-title-sora{width:61%;height:auto;max-height:96%;top:4%;right:0}
 #arena-gate .gba-title-options{grid-template-columns:repeat(2,minmax(0,1fr))}#arena-gate .gba-title-option{padding:12px;font-size:12px;min-width:0}#arena-gate .core-play,#arena-gate .core-invite{grid-column:1/-1;padding:15px 18px;font-size:18px;min-height:78px}
 #guest-gate .gba-title-art{height:120px}#guest-gate .guest-title-label{margin-top:8px}#guest-gate .title-utility{margin-block:4px}
}
@media(max-height:500px) and (orientation:landscape){#arena-gate .gba-title-art,#guest-gate .gba-title-art{height:100px}#arena-gate .core-play,#arena-gate .core-invite{grid-column:auto}.online-qr-panel{max-height:calc(100dvh - 24px)}}
