/* Shared phone and desktop density; game touch targets remain unchanged. */
.app-shell:not(.game-route){grid-template-columns:198px minmax(0,1fr)}
.app-shell:not(.game-route) .sidebar{width:198px;padding:18px 12px}.sidebar .brand{margin-bottom:20px}.sidebar .brand img{width:36px;height:36px}.sidebar .brand span{font-size:17px}.sidebar .brand small{font-size:8px}.side-nav{gap:3px}.sidebar .nav-link{padding:9px 11px;min-height:42px}.side-bottom{gap:4px}
.app-shell:not(.game-route) .topbar{height:64px;min-height:64px;padding:10px 22px}.topbar-right{gap:5px}.app-shell:not(.game-route) .content{max-width:1240px;width:100%;margin-inline:auto;padding:18px 22px 26px}.page-title{margin-bottom:16px;gap:10px}.page-title h1{font-size:clamp(25px,3vw,32px);line-height:1.25}.page-title p{margin-top:6px;max-width:65ch;font-size:15px;line-height:1.5}
.app-shell:not(.game-route) .screen-grid{gap:18px}.app-shell:not(.game-route) .panel{padding:16px}.app-shell:not(.game-route) .stack{gap:14px}.app-shell:not(.game-route) .section-space{margin-top:14px}.app-shell:not(.game-route) .form-row{gap:12px}.app-shell:not(.game-route) .field{gap:5px}.app-shell:not(.game-route) .field input,.app-shell:not(.game-route) .field select{padding:9px 11px;min-height:44px}.app-shell:not(.game-route) .divider{margin:14px 0}.app-shell:not(.game-route) .info-row{padding:9px 0;gap:10px}.app-shell:not(.game-route) .btn{padding:9px 13px;min-height:44px}.app-shell:not(.game-route) .feature-link{padding:10px 0;gap:10px}.app-shell:not(.game-route) .feature-icon{width:38px;height:38px}.app-shell:not(.game-route) .profile-top{margin-bottom:16px}.profile-stats{gap:10px;padding:14px 0;margin:14px 0}
.hero{min-height:0;height:330px}.hero-copy{padding:32px}.hero h1{font-size:clamp(30px,3.8vw,43px);line-height:1.15}.hero-copy>p{margin:12px 0 18px}.hero-mascot{max-height:280px}.home-section{margin-top:20px}.section-header{margin-bottom:12px}.play-modes,.home-bottom{gap:16px}.mode-tile{min-height:150px;padding:18px}.home-bottom{margin-top:18px}.tutorial-banner,.salon-banner{padding:17px}.setup-mascot{max-height:175px;width:auto;max-width:100%;margin:0 auto 8px;object-fit:contain}.setup-caption{font-size:17px;margin:6px 0 14px}.rule-grid{gap:16px}.rule-help{margin-top:9px;line-height:1.5}.catalog-grid{gap:14px}.cosmetic-card{padding:13px}.cosmetic-art{height:120px}.room-stage.salon-preview{height:clamp(280px,34vw,420px)}.room-camera-controls{padding:8px 0}.room-edit-controls{padding-top:8px}
.friends-tools{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:14px}.friend-inline{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:7px 10px;background:transparent;color:var(--gold);border:1px solid var(--line);border-radius:8px;font-size:14px}.friend-inline svg{width:19px;height:19px}.friends-intro{display:grid;grid-template-columns:1fr 1.4fr;gap:12px 22px;padding:14px 0 18px;border-bottom:1px solid var(--line);margin-bottom:20px}.friends-intro>div>span{font-size:13px;color:var(--muted)}.friend-code{display:flex;align-items:center;gap:10px}.friend-code code{font-size:21px;letter-spacing:.1em;color:var(--gold)}.friends-intro form label{font-size:14px;display:block;margin-bottom:6px}.friends-intro form>div{display:flex;gap:8px}.friends-intro input{width:100%;min-width:0;min-height:44px;font-size:16px;padding:9px 11px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--text)}.friends-intro>p{grid-column:1/-1}.friends-grid{display:grid;grid-template-columns:1.2fr 1fr;gap:28px}.friends-grid h2{font-size:19px;margin-bottom:10px}.friends-grid h2 small{font-size:13px;color:var(--muted);padding-inline-start:6px}.friend-outgoing{margin-top:22px}.friend-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid var(--line);min-width:0}.friend-row strong{font-size:15px;overflow-wrap:anywhere;min-width:0}.friend-row>div{display:flex;gap:6px;align-items:center}.friend-row .icon-button,[data-friend-slot] .icon-button{min-width:44px;min-height:44px;width:44px;padding:10px}.friend-row small{font-size:12px;color:var(--muted)}.friend-salon-stage{position:relative;height:clamp(300px,54dvh,490px);border-radius:12px;background:var(--surface);overflow:hidden}.room3d-host[data-room3d="visit"]{pointer-events:auto;z-index:2}.friend-salon-stage .scene-background{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
#app-update{position:fixed;bottom:86px;left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100vw - 24px);z-index:180;background:var(--surface);border:1px solid var(--gold);border-radius:10px;padding:8px 12px;display:flex;align-items:center;gap:12px;box-shadow:0 8px 24px #0005;color:var(--text);font-size:13px}.reconnect-notice{font-size:13px;line-height:1.4;padding:7px 10px}.reconnect-notice [data-reconnect-deadline]{font-variant-numeric:tabular-nums;font-weight:700}
@media(pointer:fine){.app-shell:not(.game-route) .btn.tiny{min-height:36px;padding:6px 10px}.sidebar .nav-link{min-height:38px}.friend-inline{padding:6px 9px}}
@media(max-width:1000px){.app-shell:not(.game-route){grid-template-columns:minmax(0,1fr)}.app-shell:not(.game-route) .sidebar{display:none}.app-shell:not(.game-route) .content{padding:16px 16px 90px}.app-shell:not(.game-route) .topbar{padding:10px 16px}.hero{height:300px}.hero-copy{padding:25px}}
@media(max-width:600px){.app-shell:not(.game-route) .content{padding:12px 12px 85px}.app-shell:not(.game-route) .topbar{height:58px;min-height:58px;padding:6px 12px}.topbar .greeting>span{display:none}.topbar-right{gap:0}.topbar-right .icon-button{min-width:42px;width:42px;padding:10px}.topbar .header-mascot{display:none}.hero{height:280px}.hero-copy{padding:20px}.hero h1{font-size:30px}.hero-copy>p{font-size:14px;line-height:1.45;max-width:23ch}.hero-mascot{max-height:190px}.hero .row{gap:7px;flex-wrap:wrap}.hero .btn{font-size:12px;padding:8px 10px}.mode-tile{min-height:135px;padding:14px}.mode-tile h3{font-size:17px}.mode-tile p{font-size:14px;line-height:1.45}.home-bottom{gap:12px}.app-shell:not(.game-route) .panel{padding:14px}.app-shell:not(.game-route) .screen-grid{gap:14px}.page-title h1{font-size:26px}.page-title p{font-size:14px}.setup-mascot{max-height:120px}.room-stage.salon-preview{height:280px}.friends-intro{grid-template-columns:minmax(0,1fr);gap:12px;padding-top:4px}.friends-grid{grid-template-columns:minmax(0,1fr);gap:22px}.friend-salon-stage{height:390px;max-height:58dvh}.friend-row{gap:8px}.friend-row>div{flex-shrink:0;gap:3px}.friend-row strong{font-size:14px}.friend-inline{font-size:13px}}
@media(max-width:600px){.hero{height:310px}.hero-copy{height:100%;padding:18px}.hero h1{max-width:230px;font-size:28px}.hero-copy>p{max-width:23ch;margin:10px 0;font-size:13px}.hero .row{position:absolute;left:18px;right:18px;bottom:16px;display:flex;max-width:none;margin:0;gap:8px;flex-wrap:wrap}.hero .row .btn{min-height:44px;font-size:12px;padding:9px 11px}.hero-mascot{width:145px;max-height:170px;right:-10px;bottom:52px}.hero-orbit{display:none}.section-header{align-items:flex-start;gap:8px}.section-header h2{font-size:18px}.section-header .text-link{flex-shrink:0;white-space:nowrap}.play-modes{grid-template-columns:minmax(0,1fr);gap:10px}.mode-tile{grid-template-columns:27px minmax(0,1fr) 20px;min-height:90px;padding:13px 14px}.mode-tile h3{font-size:16px;margin:0 0 3px}.mode-tile p{font-size:13px;line-height:1.45;max-width:none}.mode-arrow{position:static;width:20px;height:20px}}
