/* Two compact entry steps; no giant hero copy and no overlapping form/art. */
.entry-tools{display:flex;align-items:center;gap:16px}.entry-tools .entry-collection{flex:1;gap:8px}.entry-difficulty{background:none;color:#91a38f;font-size:10px;white-space:nowrap;min-height:40px;padding:4px 0;margin-bottom:12px}
.home{height:100dvh;min-height:0;max-width:1280px;padding:0 max(24px,env(safe-area-inset-left));overflow:hidden}
.topbar{height:76px;gap:18px}.topbar nav{margin-left:auto;margin-right:8px;gap:22px}.topbar .solo-label,.topbar .status-dot{display:none}.topbar .header-right .icon-button{margin:0}.brand{font-size:16px}.brand-sub{font-size:19px}.brand-mark{width:36px;height:36px}
#vignette{background:radial-gradient(ellipse at 50% 48%,transparent,#0b101340)}
.entry-name{width:min(410px,100%);margin:auto;position:relative;padding:28px 0;flex:none}
.entry-number{font:10px var(--mono);letter-spacing:1.6px;color:#9cad99;margin-bottom:16px}
.entry-name h1{font-size:clamp(44px,5vw,70px);line-height:.98;letter-spacing:-1px;margin:0 0 30px}.entry-name h1 span{display:block;color:var(--lime)}
#name-form>label,.account-form label{font-size:12px;color:#c0cbbf;display:block;margin-bottom:8px}.entry-name .name-field{height:54px}.entry-name input{font-size:16px}.entry-name .play-button{margin-top:6px}
.name-status{display:block;min-height:19px;margin:7px 0;font-size:11px;line-height:1.45;color:#8d9b94;font-weight:400}.name-status[data-state=available]{color:#b8e89b}.name-status[data-state=taken],.name-status[data-state=invalid]{color:#ffafa6}.name-status[data-state=offline]{color:#c9b88c}
.entry-note{font-size:11px;line-height:1.6;color:#85958b;text-align:center;margin:16px 0 8px}.entry-account-links{display:flex;align-items:center;justify-content:center;gap:10px;color:#526456}.entry-account-links button,.entry-text-button{background:none;padding:10px 3px;color:#c6d6be;font-size:12px;min-height:40px}.entry-account-links button:hover,.entry-text-button:hover{text-decoration:underline}
.entry-skins{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1.12fr) minmax(0,1fr);gap:clamp(24px,5vw,78px);padding:26px 0 32px;align-items:stretch}
.entry-stage{min-height:0;min-width:0;position:relative;display:flex;flex-direction:column;border:1px solid #c8e0c91b;border-radius:16px;overflow:hidden;background:radial-gradient(ellipse at 50% 48%,#28413668,#0c171aca 72%)}
.entry-stage-top{position:relative;z-index:2;display:flex;align-items:center;gap:12px;padding:12px 16px;min-height:54px;flex:none;color:#cfdfc8;font-size:12px}.entry-back{background:none;color:#9baa9f;min-height:40px;padding:8px 0;font-size:12px;margin-right:auto}.entry-badge{padding:4px 7px;border:1px solid #a4bd8d33;border-radius:4px;font:8px var(--mono);color:#acc097;letter-spacing:1px}
#entry-preview{display:block;width:100%;height:100%;min-height:0;flex:1;object-fit:contain}
.entry-stage .skin-preview{position:static;min-width:0;margin:8px 16px 14px;padding:9px 12px;background:#12211fb5;backdrop-filter:none;box-shadow:none;flex:none;gap:10px}.entry-stage .skin-preview small{font-size:8px}.entry-stage .skin-preview strong{font-size:12px}.entry-stage .skin-preview .skin-arrow{margin-left:auto}.entry-stage .skin-icon{height:30px;width:30px}
.entry-options{min-height:0;align-self:center;width:100%;max-width:430px}.entry-options h2{font:700 clamp(38px,4vw,60px)/.95 var(--display);letter-spacing:-.5px;margin:0 0 24px}.entry-options h2 span{color:var(--lime)}
.starter-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.starter-card{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#121e20c9;border:1px solid #50665b50;border-radius:10px;padding:6px;min-height:99px;overflow:hidden}.starter-card canvas{width:64px;height:58px;object-fit:contain}.starter-card strong{font-size:10px;font-weight:500;color:#c4d2c5;margin:3px 0}.starter-card[aria-pressed=true]{border-color:var(--lime);background:#263a2780}.starter-card[aria-pressed=true]:after{content:'✓';position:absolute;right:7px;top:4px;color:var(--lime);font-size:12px}
.entry-collection{background:none;display:flex;align-items:center;justify-content:space-between;color:#91a38f;padding:13px 0;margin:0 0 12px;width:100%;font-size:11px;min-height:40px}.entry-collection span{color:#cbe3ba}.entry-options .play-form{width:100%}.entry-save{background:none;text-align:center;padding:13px 0 0;min-height:40px;width:100%;color:#9bae96;font-size:11px}.play-button:disabled{opacity:.5;filter:none}
.account-modal.panel-shell{width:540px}.account-modal h2{font-size:40px;margin:6px 0 10px}.account-form{display:grid;gap:11px}.account-form label{margin:0}.account-form input{display:block;width:100%;height:44px;padding:10px 12px;margin-top:6px;background:#101c1b;border:1px solid #6e866052;border-radius:7px;font:16px var(--text);color:#eff5e9}.account-form small{display:block;color:#839180;font-size:10px;margin:5px 0 0}.account-form .name-status{margin-bottom:0}.account-message{font-size:12px;line-height:1.5;color:#c6d7bc;min-height:16px;margin:12px 0 5px;overflow-wrap:anywhere}.account-message[data-error=true]{color:#ffb5aa}.account-switches{display:flex;justify-content:space-between;gap:12px}.account-switches button{background:none;padding:9px 0;color:#a2b899;font-size:11px;min-height:40px}.account-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;padding:15px 0}.account-stats strong{display:block;font:700 32px var(--display);color:var(--lime)}.account-stats span{font:8px var(--mono);color:#99aa91}.account-summary p,#account-verification{font-size:12px;line-height:1.5}
@media(orientation:landscape) and (max-height:600px){
 .entry-difficulty{min-height:32px;margin-bottom:5px;font-size:9px}
 .home{padding:0 max(16px,env(safe-area-inset-left)) 0 max(16px,env(safe-area-inset-right))}.topbar{height:52px}.brand-mark{width:28px;height:28px}.brand{font-size:12px}.brand-sub{font-size:15px}.topbar nav{gap:15px}.topbar .nav-link{font-size:10px;padding:9px 0}.topbar .icon-button{width:36px;height:36px}
 .entry-name{width:340px;padding:12px 0}.entry-number{font-size:8px;margin-bottom:8px}.entry-name h1{font-size:40px;margin:0 0 14px}.entry-name h1 span{display:inline}.entry-name .name-field{height:45px}.entry-name .play-button{min-height:44px;padding:10px 15px;font-size:13px}.entry-note{font-size:9px;margin:9px 0 1px}.entry-account-links button{font-size:10px;min-height:36px;padding:7px 2px}.name-status{font-size:9px;min-height:14px;margin:4px 0}
 .entry-skins{gap:24px;padding:12px 0;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.entry-stage{border-radius:11px}.entry-stage-top{padding:3px 10px;min-height:40px;font-size:10px;gap:7px}.entry-back{font-size:10px;min-height:36px}.entry-badge{font-size:6px;padding:3px 5px}.entry-stage .skin-preview{margin:2px 8px 7px;padding:5px 8px;border-radius:6px;min-height:38px}.entry-stage .skin-icon{width:25px;height:25px}.entry-stage .skin-preview small{font-size:6px;margin-bottom:2px}.entry-stage .skin-preview strong{font-size:10px}
 .entry-options h2{font-size:29px;line-height:1;margin:0 0 10px}.entry-options h2 br{display:none}.entry-options h2 span{margin-left:6px}.starter-grid{gap:6px}.starter-card{min-height:65px;padding:3px}.starter-card canvas{width:48px;height:40px}.starter-card strong{font-size:8px;margin:1px 0}.entry-collection{font-size:9px;min-height:32px;margin:0 0 5px;padding:7px 0}.entry-options .play-button{min-height:44px;padding:9px 14px;font-size:12px}.entry-save{font-size:9px;min-height:30px;padding:7px 0 0}
 .account-modal.panel-shell{width:620px}.account-modal .dialog-content h2{font-size:26px}.account-form{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px}.account-form label{font-size:10px}.account-form input{height:40px;margin-top:4px;padding:8px 10px}.account-form #account-password-label{grid-column:1/-1}.account-form #account-confirm-label{grid-column:1/-1}.account-form small{font-size:8px;margin-top:3px}.account-message{font-size:10px;margin:7px 0 0;min-height:12px}.account-switches button{font-size:10px;min-height:30px;padding:5px 0}.account-stats{padding:4px 0}.account-stats strong{font-size:24px}#account-verification{font-size:10px}.entry-text-button{font-size:10px;min-height:32px}
}
@media(orientation:landscape) and (max-height:340px){.topbar{height:44px}.entry-name{padding:5px 0}.entry-name h1{font-size:29px;margin-bottom:8px}.entry-number{margin-bottom:4px}.entry-name .name-field{height:40px}.entry-note{margin:5px 0 0}.entry-account-links button{min-height:30px}.entry-skins{padding:7px 0;gap:16px}.entry-options h2{font-size:23px;margin-bottom:5px}.starter-card{min-height:51px}.starter-card canvas{height:29px;width:42px}.entry-collection{min-height:27px;padding:4px 0;margin:0 0 4px}.entry-save{min-height:26px;font-size:8px}.entry-stage .skin-icon{display:none}}
@media(orientation:portrait) and (max-width:650px){.home{padding:0 18px}.topbar{height:60px}.topbar nav{gap:10px}.topbar .nav-link{font-size:10px}.entry-skins{grid-template-columns:1fr;grid-template-rows:minmax(150px,1fr) auto;gap:14px;padding:12px 0}.entry-options{max-width:none}.entry-options h2{font-size:28px;margin:0 0 9px}.entry-options h2 br{display:none}.starter-card{min-height:66px}.starter-card canvas{height:40px;width:45px}.entry-options .entry-number{display:none}}
@media(orientation:landscape) and (max-height:340px){.entry-options>.entry-number{display:none}.entry-difficulty{min-height:27px;margin-bottom:4px;font-size:8px}.entry-tools{gap:10px}}

/* One transparent, pre-rendered battle: no WebGL scene or bloom pass in the
   nickname menu. The real inputs always sit above the decorative coil. */
.entry-name{--lime:#ffcc65;isolation:isolate;flex:1;min-height:0;width:100%;max-width:1140px;max-height:780px;margin:auto;padding:0}
.menu-cobra{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none;user-select:none;z-index:-1}
/* Atmosphere is above the hero, below the opaque form and header. A fixed
   transparent canvas covers the viewport in Android fullscreen/TWA too. */
#menu-atmosphere{position:fixed;inset:0;width:100%;height:100%;z-index:0;pointer-events:none;user-select:none}
.entry-name-panel{z-index:1}.home .topbar{position:relative;z-index:1}
.entry-name-panel{--card-cut:22px;--card-shoulder:55px;--card-shape:polygon(0 var(--card-cut),var(--card-cut) 0,calc(100% - var(--card-shoulder)) 0,calc(100% - var(--card-shoulder) + 12px) 9px,calc(100% - 18px) 9px,100% 27px,100% calc(100% - var(--card-cut)),calc(100% - var(--card-cut)) 100%,18px 100%,0 calc(100% - 18px));position:absolute;isolation:isolate;top:43%;left:5%;transform:translateY(-50%);width:38%;max-width:420px;padding:30px 28px 24px;background:none}
/* Separate clipped layers form the armor frame. The content itself is NOT
   clipped: focus rings, longer status messages and touch targets stay intact.
   An opaque inner surface shields all text from the bright coils underneath. */
.entry-name-panel::before,.entry-name-panel::after{content:'';position:absolute;pointer-events:none;clip-path:var(--card-shape);z-index:-1}
.entry-name-panel::before{inset:0;background:linear-gradient(132deg,#a77c38 0,#f6d990 16%,#5a4930 36%,#665030 70%,#dab56b 100%)}
.entry-name-panel::after{inset:1px;background:linear-gradient(118deg,#262a28 0,#151d21 30%,#10171b 70%,#1b201f 100%)}
.entry-name .entry-number{color:#bea56b;font-size:9px;letter-spacing:2px;margin-bottom:14px}
.entry-name h1{font-size:clamp(42px,4.9vw,65px);margin-bottom:24px;color:#f8f2e6;text-shadow:0 2px 15px #070b0e}
.entry-name .name-field{background:#10171beb;border-color:#82714a80;box-shadow:0 5px 25px #0002}
.entry-name .name-field:focus-within{border-color:#ffcc65}.entry-name .player-dot{background:#ffcc65;box-shadow:0 0 0 4px #ffcc6515}.entry-name .input-glyph{color:#b49a60}
.entry-name .play-button{background:linear-gradient(110deg,#ffdb88,#ecad36);color:#241a09;box-shadow:0 6px 26px #eab33919}
.entry-name .entry-note{color:#bdc5c5;line-height:1.5;margin:14px 0 10px}
.entry-name .entry-account-links{gap:8px;border-top:1px solid #dbb66524;padding-top:11px}
.entry-name .entry-account-links>span{display:none}
.entry-name .entry-account-links button{flex:1;min-width:0;color:#efdab3;border:1px solid #d9b16626;background:#dfbc7210;border-radius:5px;padding:8px 7px;white-space:nowrap;font-size:11px}
.entry-name .entry-account-links button:hover{background:#dfbc7223;text-decoration:none}
.topbar .header-right{gap:10px}.menu-music-toggle{display:flex;align-items:center;gap:7px;min-height:42px;padding:8px 11px;border:1px solid #82714a40;border-radius:24px;background:#121a1c70;color:#b2b7ae;font-size:11px;white-space:nowrap}.menu-music-toggle svg{width:17px;height:17px}.menu-music-toggle .music-slash{display:none}.menu-music-toggle[aria-pressed=false] .music-slash{display:block}.menu-music-toggle[data-state=playing]{color:#ffcd70;border-color:#bba46766}
html[data-boot=ready] .menu-cobra{animation:menu-reveal .35s ease-out both}
@keyframes menu-reveal{from{opacity:0}to{opacity:1}}
@media(orientation:landscape) and (max-height:600px){
 .entry-name{width:100%;max-width:960px;padding:0}.menu-cobra{inset:0 0 0 auto;width:86%;object-position:right center}
 .entry-name-panel{--card-cut:16px;--card-shoulder:46px;left:3%;top:50%;width:43%;max-width:350px;padding:20px 20px 15px}
 .entry-name .entry-number{font-size:7px;letter-spacing:1.4px;margin-bottom:8px}.entry-name h1{font-size:38px;margin-bottom:13px}.entry-name h1 span{display:block}
 .entry-name .name-field{height:44px}.entry-name .entry-note{font-size:9px;line-height:1.4;margin:9px 0 8px}.entry-name .entry-account-links{padding-top:8px}.entry-name .entry-account-links button{min-height:34px;padding:6px 2px;font-size:10px}
 .menu-music-toggle{min-height:34px;padding:5px 9px;font-size:10px}.menu-music-toggle svg{width:15px;height:15px}.topbar .header-right{gap:7px}
}
@media(orientation:landscape) and (max-height:400px){.entry-name h1{font-size:32px;margin-bottom:9px}.entry-name .entry-number{margin-bottom:6px}.entry-name-panel{padding:18px 18px 14px}.entry-name h1 span{display:inline}.entry-name .entry-note{font-size:8px}.entry-name #name-form>label{font-size:10px;margin-bottom:5px}}
@media(orientation:landscape) and (max-height:340px){.entry-name-panel{width:45%;padding:13px 16px 12px}.entry-name .entry-number{display:none}.entry-name h1{font-size:27px;margin-bottom:7px}.entry-name .name-field{height:39px}.entry-name .name-status{font-size:8px;margin:3px 0;min-height:12px}.entry-name .play-button{min-height:40px;margin-top:3px;padding:8px 12px}.entry-name .entry-note{margin:6px 0;line-height:1.3}.entry-name .entry-account-links{padding-top:6px}.entry-name .entry-account-links button{min-height:30px;font-size:9px;padding:5px 2px}}
/* A narrow desktop window is not a phone: keep the artwork visible and give
   the card a usable width instead of squeezing it into the old 35% column. */
@media(min-height:601px) and (max-width:1000px){.entry-name-panel{left:5%;width:49%;max-width:370px;padding:27px 24px 22px}.entry-name h1{font-size:48px}.entry-name .entry-account-links button{font-size:10px}}
@media(orientation:portrait) and (max-width:650px){.menu-cobra{opacity:.8;object-fit:contain;object-position:right center}.entry-name-panel{left:4%;width:64%;max-width:370px;top:46%;padding:26px 22px 21px}.entry-name h1{font-size:42px}.menu-music-toggle span{display:none}}
@media(prefers-reduced-motion:reduce){html[data-boot=ready] .menu-cobra{animation:none}}
@media(max-width:600px){.topbar nav{gap:10px;margin-right:0}.topbar .nav-link:last-child{font-size:0;width:28px;min-height:32px;padding:6px 0}.topbar .nav-link:last-child:after{font-size:16px}}
/* In tall, narrow desktop windows, stack the form above the confrontation;
   neither head nor the crown should disappear behind a full-height card. */
@media(min-height:601px) and (max-width:1000px){
 .entry-name-panel{top:18px;left:4%;transform:none;width:68%;max-width:370px;padding:22px 24px 18px}
 .entry-name h1{font-size:38px;margin-bottom:14px}.entry-name h1 span{display:inline}
 .entry-name .entry-number{margin-bottom:9px}.entry-name .entry-note{margin:10px 0 8px}
 .menu-cobra{object-position:center bottom}
}
@media(min-height:601px) and (max-width:1000px){
 .entry-name h1{font-size:28px;margin-bottom:12px}
}
