/* The room is the game surface. Panels appear only for the active action. */
:root{--game-ink:#493849;--cream:#fff8e5;--gold:#ffcc64}html,body{height:100%;overflow:hidden}body{background:#8a6654;color:var(--game-ink)}.game-scene{position:fixed;inset:0;background:#8b7265 url('assets/studio-scene.png') center center/cover no-repeat}.scene-shade{position:fixed;inset:0;pointer-events:none;background:linear-gradient(180deg,#36233240 0%,transparent 27%,transparent 68%,#38243085 100%)}.topbar,main>.heading,.steps,.game-footer{display:none}main{padding:0;max-width:none;margin:0}.workspace{display:contents}.game-hud{position:fixed;top:22px;left:30px;right:30px;z-index:8;display:flex;align-items:center;justify-content:space-between;gap:16px}.game-logo{font-size:32px;line-height:1.05;font-weight:900;letter-spacing:2px;color:#fff7d6;text-shadow:2px 3px 0 #493849,-1px -1px 0 #493849,1px -1px 0 #493849,-1px 1px 0 #493849;transform:rotate(-3deg)}.game-logo>span{color:#ffce66}.game-logo small{display:block;font-size:11px;letter-spacing:5px;margin-top:8px;text-align:center}.hud-center{display:flex;gap:10px;margin-left:auto;margin-right:12px}.hud-center>span,.round-control{background:var(--cream);border:3px solid #594147;border-radius:15px;box-shadow:0 4px 0 #594147;padding:10px 16px;font-size:15px;font-weight:700}.hud-center b{font-size:18px;margin-left:5px}.hud-center .day-pill{background:#ffda82}.round-control{cursor:pointer;background:#bde4d7}.round-control:hover{background:#a9d8c9;transform:translateY(-2px)}.mission{position:fixed;top:120px;left:30px;z-index:3;display:flex;gap:13px;align-items:center;background:#fff8e8f5;border:3px solid #674b4c;box-shadow:0 5px 0 #49384940;border-radius:6px 18px 18px 18px;padding:14px 22px 14px 14px;max-width:370px}.mission-star{font-size:32px;color:#d98d26;text-shadow:1px 2px 0 #8e5827}.mission small{font-size:11px;font-weight:bold;letter-spacing:2px;color:#a07652}.mission b{display:block;font-size:18px;margin:1px 0}.mission div>span{display:block;font-size:12px;color:#786357}.scene-caption{position:fixed;left:32px;bottom:26px;font-size:13px;color:#fff8df;font-weight:bold;z-index:2;text-shadow:0 1px 3px #34232b}.scene-caption>span:last-child{margin-left:14px;font-size:11px;opacity:.8}.location-dot{width:7px;height:7px;display:inline-block;background:#b4eac2;border-radius:50%;margin-right:6px}.world-actions{position:fixed;inset:0;z-index:2;pointer-events:none}.hotspot{position:absolute;display:flex;align-items:center;flex-direction:column;background:transparent;border:0;padding:10px;pointer-events:auto;color:#fff9df;filter:drop-shadow(0 3px 2px #43313c65);transition:transform .18s}.hotspot:hover{transform:translateY(-8px) scale(1.06)}.desk-hotspot{left:36%;top:40%}.client-hotspot{left:65%;top:36%}.hotspot-pin{background:#fff5cf;color:#7d483a;border:3px solid #624444;box-shadow:0 4px 0 #624444;border-radius:17px;font-size:33px;line-height:1;font-weight:900;min-width:53px;padding:8px 12px;animation:float-pin 2.4s ease-in-out infinite}.client-hotspot .hotspot-pin{background:#ffcf5e;animation-delay:.5s}.hotspot b{font-size:17px;background:#493849eb;border-radius:10px;padding:4px 12px;margin-top:12px}.hotspot small{font-size:12px;text-shadow:1px 2px 2px #302333;margin-top:4px}.room-hint{position:fixed;bottom:64px;left:50%;transform:translateX(-50%);text-align:center;color:#fffbea;background:#493849cf;border:1px solid #fff5da55;border-radius:22px;padding:10px 24px;font-size:14px;z-index:2;max-width:80%}.preview-toggle{position:fixed;right:30px;bottom:23px;z-index:8;border:3px solid #594147;border-radius:14px;box-shadow:0 4px 0 #594147;background:#fff0c5;color:#493849;padding:11px 18px;font-weight:bold;font-size:14px}.preview-toggle:hover{background:#ffdb83}.panel{display:none}.client,.design{position:fixed;z-index:6;box-shadow:0 8px 0 #563d48,0 18px 45px #2e20394d;border:4px solid #5c4352;background:#fff8e8;border-radius:22px}.client{left:4%;right:4%;bottom:83px;padding:23px 27px;max-height:calc(100dvh - 230px);overflow:auto}.client>.panel-label,.client>.brief{display:none}.client>.person{margin:0 0 12px;position:relative}.client .avatar{height:58px;width:58px;font-size:36px;border:3px solid #5c4352;background:#ffd178;box-shadow:2px 3px 0 #b88960}.person h2{font-size:22px}.person p{font-size:12px}.client>.bubble{background:none;border:0;box-shadow:none;padding:0;font-size:18px;line-height:1.85}.client #interview{margin-top:12px;display:grid;grid-template-columns:1.15fr 1fr;column-gap:24px;align-items:start}.client #interview h3{display:none}.client .questions{grid-column:2;grid-row:1 / 3;gap:7px}.client .questions button{font-size:14px;padding:8px 12px;background:#fffdfa;border:2px solid #bea481;box-shadow:0 2px 0 #bea481;border-radius:9px}.client .questions .asked{background:#d9edcc;border-color:#829b71}.client .reply{grid-column:1;grid-row:1;background:#efe3ce;font-size:14px;margin:0 0 12px;min-height:45px;line-height:1.65;padding:10px 13px;color:#665344}.client .primary{grid-column:1;grid-row:2;background:#eaa449;color:#4c352b;border:2px solid #76503d;box-shadow:0 4px 0 #76503d;font-size:15px;padding:9px 14px}.primary:hover{filter:brightness(1.06)}.back-room,.preview-close{position:fixed;z-index:12;top:103px;right:30px;border:2px solid #594147;background:#fff8e8;border-radius:12px;padding:9px 14px;color:#493849;font-size:14px;box-shadow:0 3px 0 #594147}.design{top:136px;bottom:86px;left:50%;transform:translateX(-50%);width:min(620px,calc(100% - 40px));padding:20px 26px;min-height:0;overflow:auto;scrollbar-color:#b19b83 #fff3db}.design>.panel-label{font-size:16px;border-bottom:2px dashed #cabb9f;padding-bottom:12px}.design .panel-label>span{font-size:12px}.design #editor{padding-top:14px}.design .features{grid-template-columns:1fr 1fr;gap:9px}.design h2{font-size:22px}.design .feature{background:#fffdf3;border-color:#d4bd93;padding:10px;min-height:93px}.design .feature.chosen{background:#e0edce;border-color:#698858;box-shadow:2px 2px 0 #698858}.design .feature-copy small{font-size:12px}.design .feature-copy em{font-size:12px}.design .feature-copy b{font-size:14px}.design .budget{margin:18px 0 10px;background:#f0e3c8;border:2px solid #aa8963}.design .primary{background:#e5a148;color:#402f30;border-color:#6a483c;box-shadow:0 4px 0 #6a483c;font-size:16px}.design h3{margin:17px 0 10px;font-size:15px}.design .colors{gap:10px}.design .color{font-size:13px;background:#fffaf0;border-color:#d4bd93}.design .color.selected{background:#ffdf88;border-color:#8b6644;box-shadow:0 3px 0 #8b6644}.design .muted{font-size:13px}.design .result-label{margin-top:12px;background:#ffdc85;border-color:#735044}.revision-bubble{background:#fff0d2;border-color:#9b7051;box-shadow:3px 4px 0 #d3b48c;font-size:20px}.design #revision .questions button{border-color:#ae8a67;box-shadow:0 3px 0 #ae8a67;background:#fffaf0;font-size:16px}.design #revision .questions button:hover{background:#ffdf8b}.design #revision .questions button span{font-size:13px;color:#876b54}.design .score{font-size:70px;margin-top:5px}.design .feedback li{font-size:14px}.design .result-quote{font-size:14px;background:#e4edd3;border-color:#a6b38c}.design .result-stats{background:#ffe4aa;border-color:#b18a5b}.challenge-picker{position:fixed;z-index:20;right:30px;top:93px;max-width:460px;width:calc(100% - 60px);background:#fff5d8;border:3px solid #634550;box-shadow:0 6px 0 #634550;padding:20px;margin:0}.challenge-picker>div:first-child{display:block}.challenge-picker span{display:block;margin-top:6px;color:#816557;font-size:13px}.event-chip{font-size:14px;border-color:#8b6b59;box-shadow:0 3px 0 #8b6b59}.event-chip[aria-pressed=true]{background:#ffc76a}.preview-column{display:none;position:fixed;z-index:15;top:148px;bottom:30px;right:30px;width:min(365px,calc(100% - 40px));overflow:auto;padding:0 8px 12px 0;filter:drop-shadow(0 10px 25px #211b4055)}.preview-heading{background:#c6e1d0;border-color:#5b6953;transform:none}.browser{border-color:#634550;box-shadow:4px 4px 0 #634550}.preview-note{background:#fff4d8;border-radius:8px;padding:7px;font-size:12px;margin-bottom:0}.preview-open .preview-column{display:block}.preview-open:after{content:'';position:fixed;inset:0;background:#30213970;z-index:13;pointer-events:none}.preview-close{z-index:16}.preview-open .preview-toggle{z-index:16}.site-preview{min-height:0}body[data-phase=interview] .client{display:block}body[data-phase=design] .design,body[data-phase=revision] .design,body[data-phase=submitting] .design,body[data-phase=result] .design{display:block}body:not([data-phase=room]) .world-actions,body:not([data-phase=room]) .room-hint{display:none}body:not([data-phase=room]) .scene-shade{background:#30213955}body:not([data-phase=room]) .mission{max-width:330px;opacity:.96}body[data-phase=interview] .mission{display:none}
@keyframes float-pin{0%,100%{transform:translateY(0)}50%{transform:translateY(-8px)}}
@media(min-width:1500px){.client{left:12%;right:12%;bottom:90px}.design{width:650px}.mission{left:40px}}
@media(max-width:1050px){.game-logo{font-size:26px}.game-hud{left:20px;right:20px}.hud-center>span{padding:8px 10px;font-size:13px}.hud-center b{font-size:15px}.mission{left:20px;top:110px;max-width:280px;padding:10px 14px}.mission b{font-size:16px}.mission div>span{font-size:11px}.design{top:140px}.design~.mission{display:none}body:not([data-phase=room]) .mission{display:none}.hotspot.desk-hotspot{left:33%;top:44%}.client-hotspot{left:67%;top:39%}}
@media(max-width:650px){.game-scene{background-position:52% center}.game-hud{top:14px;left:14px;right:14px;gap:8px;align-items:flex-start}.game-logo{font-size:24px;flex-shrink:0;letter-spacing:1px}.game-logo small{font-size:9px;letter-spacing:2px}.hud-center{position:absolute;left:0;right:0;top:65px;gap:6px;margin:0;justify-content:center}.hud-center>span{padding:6px 9px;border-width:2px;border-radius:10px;font-size:11px;box-shadow:0 3px 0 #594147}.hud-center b{font-size:13px;margin-left:2px}.round-control{margin-left:auto;padding:7px 10px;font-size:13px;border-width:2px;border-radius:11px}.mission{top:137px;left:14px;right:14px;max-width:260px;padding:9px 12px;border-width:2px;gap:10px}.mission b{font-size:15px}.mission-star{font-size:24px}.mission small{font-size:10px}.mission div>span{font-size:11px}.hotspot.desk-hotspot{left:13%;top:46%}.hotspot.client-hotspot{left:auto;right:8%;top:40%}.hotspot-pin{min-width:45px;font-size:27px;border-radius:13px;padding:7px 10px}.hotspot b{font-size:14px}.hotspot small{font-size:11px}.room-hint{bottom:90px;max-width:90%;width:90%;padding:9px 12px;font-size:12px}.scene-caption{left:16px;bottom:24px;font-size:11px}.scene-caption>span:last-child{display:none}.preview-toggle{right:14px;bottom:18px;font-size:12px;padding:9px 11px;border-width:2px}.client{left:12px;right:12px;bottom:73px;padding:15px 17px;border-width:3px;max-height:calc(100dvh - 220px);border-radius:17px}.client>.person{gap:10px;margin-bottom:10px}.client .avatar{width:45px;height:45px;font-size:28px;border-radius:12px}.person h2{font-size:18px}.person p{font-size:11px}.client>.bubble{font-size:15px;line-height:1.7}.client #interview{display:flex;flex-direction:column;gap:10px;margin-top:12px}.client .questions{width:100%;gap:6px}.client .questions button{font-size:13px;padding:7px 10px}.client .reply{font-size:13px;min-height:0;margin:0;width:100%;padding:9px 11px}.client .primary{font-size:14px;padding:8px 12px}.back-room{top:122px;right:15px;padding:6px 9px;font-size:12px}.design{top:167px;bottom:76px;padding:15px;width:calc(100% - 24px);border-width:3px;border-radius:17px}.design h2{font-size:19px}.design .panel-label{font-size:14px}.design .panel-label>span{font-size:11px}.design .features{gap:7px}.design .feature{padding:9px 7px;min-height:95px;gap:5px}.design .feature-icon{display:none}.design .feature-copy b{font-size:13px}.design .feature-copy small{font-size:11px}.design .feature-copy em{font-size:11px}.design .feature input{right:6px}.design .colors{gap:6px}.design .color{font-size:12px;padding:7px}.design .budget{padding:10px}.design .budget-bottom{font-size:11px}.design .primary{font-size:14px}.design #revision h2{font-size:22px}.revision-bubble{font-size:17px;line-height:1.7;margin:16px 0}.design #revision .questions button{font-size:14px}.design #revision .questions button span{font-size:12px}.challenge-picker{top:119px;left:14px;right:14px;width:auto;max-height:calc(100dvh - 160px);overflow:auto;padding:16px}.challenge-picker b{font-size:15px}.event-chip{font-size:13px}.preview-column{top:164px;bottom:76px;right:12px;width:calc(100% - 24px)}.preview-close{top:122px;right:15px;font-size:12px;padding:6px 9px}.result-stats b{font-size:19px}.design .feedback li{font-size:13px}}
@media(max-height:650px) and (min-width:651px){.game-hud{top:12px}.mission{top:90px;padding:9px 15px}.design{top:100px;bottom:68px}.back-room{top:80px}.client{bottom:65px;max-height:calc(100dvh - 145px);padding:15px 23px}.client>.person{margin-bottom:5px}.client .avatar{width:40px;height:40px;font-size:26px}.client>.bubble{font-size:16px}.client #interview{margin-top:8px}.client .questions button{padding:5px 10px;font-size:13px}.client .reply{font-size:13px}.client .primary{padding:6px 12px}.preview-toggle{bottom:12px}.scene-caption{bottom:20px}.room-hint{bottom:66px}}
@media(prefers-reduced-motion:reduce){.hotspot-pin{animation:none}.hotspot,.primary{transition:none}}
body[data-phase=bankrupt] .design{display:block}body[data-phase=bankrupt] .game-scene{filter:grayscale(.85) brightness(.55)}body[data-phase=loading] .world-actions,body[data-phase=loading] .room-hint{display:none}.expense-panel{position:fixed;z-index:21;top:95px;right:30px;width:min(355px,calc(100% - 30px));background:#fff6df;border:3px solid #654850;border-radius:16px;padding:20px;box-shadow:0 6px 0 #654850}.expense-panel h2{font-size:19px}.expense-panel p{font-size:14px;line-height:1.7}.expense-panel small{font-size:12px;color:#8b705b}.expense-panel dl{font-size:15px}.expense-panel dl div{display:flex;justify-content:space-between;border-bottom:1px dashed #c8b392;padding:8px 0}.expense-panel dd{margin:0;font-weight:bold}.ledger-summary{font-size:13px;border-radius:8px;background:#edddbc;padding:10px;margin:12px 0}.notebook{background:#f1e7d1;border-radius:9px;padding:9px 12px;margin:12px 0 15px;font-size:13px}.notebook summary{cursor:pointer;font-weight:bold}.notebook ul{padding-left:19px}.notebook li{margin:6px 0}.sample-gallery{display:flex;gap:5px}.sample-gallery span{display:grid;place-items:center;flex:1;aspect-ratio:1;background:var(--sitebg);font-size:10px;border:1px dashed var(--site);border-radius:5px}#preview-hero{max-width:240px;font-size:36px;position:relative;z-index:1}#preview-brand{max-width:85%;overflow-wrap:anywhere}#client-intro{white-space:pre-line}#panel-title{font-size:16px;font-weight:bold;color:#493849}.last-reply{padding:10px 12px;border-left:3px solid #94ad7b;background:#edf0dd;font-size:13px;line-height:1.7}.event-warning{display:block;font-size:12px;color:#826248;margin:16px 0 3px}.settlement-detail{font-size:13px;color:#785e4e;padding:10px 0;border-bottom:1px dashed #c8b28c}#funds-estimate{font-size:12px;line-height:1.6;margin-bottom:0}.bankrupt-symbol{font-size:68px;text-align:center;margin:12px 0}#bankrupt h2{text-align:center;font-size:29px}#bankrupt-reason{line-height:1.8;font-size:16px;padding:16px 0}.loading-panel{position:fixed;z-index:30;left:50%;top:50%;transform:translate(-50%,-50%);padding:30px;background:#fff1cc;border:3px solid #654850;border-radius:18px;box-shadow:0 6px 0 #654850;text-align:center;min-width:260px}.loading-panel>span{font-size:50px;color:#a5753d}.loading-panel button{border:2px solid #654850;border-radius:10px;padding:8px 15px;background:#ffca74}.game-toast{position:fixed;z-index:40;left:50%;bottom:25px;transform:translateX(-50%);max-width:85%;width:max-content;background:#493849;color:#fff8df;border:2px solid #f4d995;border-radius:12px;padding:12px 20px;box-shadow:0 3px 10px #0004;font-size:14px}.desk-hotspot{left:24%;top:40%}.client-hotspot{left:67%;top:24%}.room-hint{bottom:72px}.scene-caption{max-width:40%}button:disabled{cursor:wait}.game-hud .danger{color:#b93630}
@media(max-width:1050px){.hotspot.desk-hotspot{left:25%;top:44%}.hotspot.client-hotspot{left:68%;top:28%}}
@media(max-width:650px){.game-scene{background-size:auto 70%;background-position:54% 43%;background-color:#654b42}.scene-shade{background:linear-gradient(180deg,#342937 0%,#34293700 26%,#34293700 65%,#342937bb 95%)}.game-logo{font-size:23px}.hud-center{justify-content:space-between;gap:4px}.hud-center>span{padding:6px 7px;font-size:10px}.hud-center b{font-size:12px}.hud-center .day-pill{padding:6px}.mission{top:134px;max-width:245px}.hotspot.desk-hotspot{left:12%;top:43%}.hotspot.client-hotspot{left:auto;right:9%;top:34%}.hotspot small{max-width:140px}.expense-panel{right:14px;top:116px;padding:17px}.expense-panel p{font-size:13px}.scene-caption{font-size:10px;max-width:50%;line-height:1.5}.scene-caption>span:last-child{display:block;margin:0;font-size:10px}.room-hint{bottom:94px}#panel-title{font-size:14px}.design .features{grid-template-columns:1fr 1fr}.design .feature-copy b{font-size:14px}.design .feature-copy small,.design .feature-copy em{font-size:12px}.notebook{font-size:13px}.event-warning{font-size:12px}.client>.bubble{font-size:14px}.game-toast{bottom:18px;font-size:13px}.bankrupt-symbol{font-size:50px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important}}
.chance-section{margin:14px 0 20px}.chance-section h3{font-size:16px;margin:10px 0}.chance-section h3 small{display:block;font-size:12px;font-weight:400;color:#897159;margin-top:3px}.chance-cards{display:grid;grid-template-columns:1fr 1fr;gap:12px}.chance-card{border:2px solid #755665;border-radius:13px;text-align:left;padding:12px;box-shadow:0 4px 0 #755665;color:#493849;position:relative;transition:transform .15s}.chance-card:hover:not(:disabled){transform:translateY(-4px)}.investor-card{background:#f5e3b4}.art-card{background:#e5ddf6}.card-symbol{font-size:30px;display:block}.chance-card b{font-size:16px;display:block;margin:4px 0}.chance-card small{font-size:12px;display:block;line-height:1.8}.chance-card em{font-size:11px;font-style:normal;display:block;line-height:1.6;opacity:.85;margin-top:7px}.draw-label{display:block;font-size:13px;font-weight:bold;border-top:1px dashed #a89398;padding-top:7px;margin-top:9px}.chance-card.drawn{opacity:.6;box-shadow:none;cursor:default}.card-result{border-left:4px solid #95754b;background:#f0e6d1;border-radius:7px;padding:11px 13px;margin-top:12px;font-size:13px}.card-result p{margin:4px 0 0;line-height:1.7}.card-result.funding,.card-result.saving{background:#e0eddb;border-color:#7a9b68}.card-result.scam,.card-result.lawsuit,.card-result.quality{background:#f7e0d9;border-color:#bf8068}@media(max-width:650px){.chance-cards{gap:9px}.chance-card{padding:10px}.chance-card b{font-size:15px}.chance-card small{font-size:12px}.chance-card em{font-size:11px}}
/* Soften the scene while keeping game controls fully opaque and clickable. */
.scene-shade{background:rgba(255,255,255,.38);pointer-events:none}
body:not([data-phase=room]) .scene-shade{background:rgba(255,255,255,.5)}
body[data-phase=bankrupt] .scene-shade{background:rgba(255,255,255,.18)}
.scene-caption{color:#493849;text-shadow:0 1px 2px #fff}
.hotspot small{color:#493849;background:rgba(255,248,229,.9);border-radius:7px;padding:2px 7px;text-shadow:none}

.creator-credit{position:fixed;bottom:3px;left:50%;transform:translateX(-50%);z-index:9;white-space:nowrap;font-size:12px;line-height:1.5;color:#493849;background:rgba(255,248,229,.92);border-radius:6px;padding:1px 9px}.creator-credit a{color:#61418d;text-decoration:underline;text-underline-offset:2px}.creator-credit a:hover{color:#382050}

/* Keep the worktable interactive when its live preview opens automatically. */
body[data-phase=design].preview-open:after{display:none}
@media(min-width:1000px){
 body[data-phase=design].preview-open .design{left:calc((100% - 405px)/2);width:min(620px,calc(100% - 445px))}
 body[data-phase=design].preview-open .preview-column{top:148px;bottom:86px}
}
@media(max-width:999px){
 body[data-phase=design].preview-open .design{bottom:76px}
 body[data-phase=design].preview-open .preview-column{position:relative;top:auto;bottom:auto;right:auto;width:100%;padding:12px 0 5px;filter:none}
 body[data-phase=design].preview-open .preview-close{display:none}
}

@media(min-width:1000px){body[data-phase=design].preview-open .back-room{left:30px;right:auto}}

.incident-report{padding:14px 16px;margin:15px 0;border:2px solid #a66c50;border-radius:12px;background:#fff0d3}.incident-report b{font-size:17px}.incident-report p{font-size:13px;line-height:1.7;margin:7px 0 0}.incident-good{border-color:#70966c;background:#e7f1d9}.incident-bad{border-color:#bd8068;background:#f9e3d9}
body[data-phase=searching] .design{display:block}.studio-dialog{border:3px solid #654850;border-radius:18px;padding:27px;background:#fff7e1;color:#493849;box-shadow:0 7px 0 #654850;width:min(490px,calc(100vw - 30px));max-height:85dvh;overflow:auto}.studio-dialog::backdrop{background:#33263b80}.studio-dialog h2{font-size:23px;padding-right:30px;margin-bottom:14px}.dialog-close{position:absolute;top:10px;right:10px;border:0;background:transparent;font-size:20px;padding:6px;cursor:pointer}.studio-dialog input{display:block;width:100%;padding:12px;border:2px solid #a28a70;border-radius:10px;font:inherit;margin:9px 0 16px;background:#fff}.studio-dialog label{font-size:14px}.studio-dialog .questions button{font-size:15px}.name-actions{display:flex;gap:12px;align-items:center}.name-actions>button:first-child{flex-shrink:0;padding:11px;border:2px solid #a48a63;border-radius:10px;background:#f5d99d;font:inherit}.name-actions .primary{font-size:15px}.leaderboard-row{border-bottom:1px dashed #cbb18c;padding:12px 0}.leaderboard-row b{font-size:17px;overflow-wrap:anywhere}.leaderboard-row p{font-size:13px;margin:5px 0}.rank-submit{width:100%;margin-top:18px;border:2px solid #826247;border-radius:10px;padding:11px;background:#ffdb82;font:inherit;font-size:14px}#studio-name-button{border:0;background:transparent;padding:0;color:inherit;font:inherit;text-shadow:inherit;cursor:pointer;text-decoration:underline;text-underline-offset:3px;max-width:230px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:bottom}#ledger-summary{white-space:pre-line}#searching{padding:18px 0}#searching h2{font-size:27px}#searching .questions button{display:block}#searching .questions button span{display:block;font-size:13px;color:#806b53;margin-top:7px}#expense-event-report{font-size:14px;line-height:1.8;border-color:#bd8a43;background:#ffefc8}
@media(max-width:650px){.game-hud{gap:5px}.game-hud .round-control{margin-left:0;padding:6px 8px;font-size:12px}.game-hud .game-logo{margin-right:auto;font-size:21px}.studio-dialog{padding:23px 18px}.studio-dialog h2{font-size:21px}.name-actions{flex-direction:column}.name-actions>button{width:100%}#studio-name-button{max-width:165px;font-size:11px}.scene-caption{max-width:48%}.rank-submit{font-size:13px}}

.network-option{background:#e8edd7;border:2px solid #91a477;border-radius:12px;padding:13px;margin-top:18px}.network-option button{width:100%;border:2px solid #698556;background:#c7deae;border-radius:9px;padding:11px;font:inherit;font-weight:bold}.network-option p{font-size:13px;line-height:1.8;margin:9px 0 0}.network-option button:disabled{opacity:.6;cursor:default}

.month-report{border:2px solid #b49b75;border-radius:12px;padding:15px;margin:16px 0;background:#fffaf0}.month-report h3{margin:0 0 12px}.month-report>div{display:flex;justify-content:space-between;gap:12px;font-size:14px;margin:7px 0}.month-report summary{cursor:pointer;font-size:14px}.month-report p,.month-report small{font-size:13px}.month-report small{display:block;color:#8b6947;margin-top:10px}

.case-profit{margin:14px 0;padding:14px;background:#fff8d9;border:3px solid #73533e;border-radius:16px;box-shadow:3px 3px 0 #e6c997}.case-profit>div{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;font-weight:800}.case-profit strong{font-size:22px;color:#247651}.case-profit strong.danger{color:#c23c42}.case-profit p{font-size:13px;line-height:1.7;margin:10px 0}.case-profit small{display:block;font-size:11px;line-height:1.6;color:#766350}

.panel-dismiss{position:relative;z-index:2;float:right;flex-shrink:0;background:#fff8e8;border:2px solid #73533e;border-radius:10px;padding:7px 10px;color:#493849;font-size:13px;cursor:pointer;min-height:38px}.client>.panel-dismiss{margin:0 0 8px 10px}.panel-label .panel-dismiss{margin-left:auto}.client #interview[hidden]{display:none!important}.client #revision .questions{display:flex;flex-direction:column;width:100%;gap:10px}.client #revision .questions button span{display:block;font-size:12px;line-height:1.6}.client #revision h2{font-size:22px}.client #revision .revision-bubble{font-size:17px}.client #revision{clear:both}.client{overflow:auto}

/* Close controls share the return-to-studio button appearance. */
.panel-dismiss,.dialog-close{border:2px solid #594147;background:#fff8e8;border-radius:12px;padding:9px 14px;color:#493849;font-family:inherit;font-size:14px;font-weight:400;line-height:normal;box-shadow:0 3px 0 #594147;min-height:0;width:auto;white-space:nowrap;cursor:pointer}
.panel-label .panel-dismiss{margin-left:auto;float:none}.design>.panel-label{align-items:center;gap:10px}.client>.panel-dismiss,.expense-panel>.panel-dismiss{display:block;float:none;margin:0 0 12px auto}.dialog-close{top:12px;right:14px}.studio-dialog{padding-top:64px}
.panel-dismiss:hover,.dialog-close:hover{background:#ffefd0}.panel-dismiss:active,.dialog-close:active{transform:translateY(2px);box-shadow:0 1px 0 #594147}
@media(max-width:650px){.panel-dismiss,.dialog-close{padding:6px 9px;font-size:12px}}

.abandon-section{margin-top:18px;padding-top:14px;border-top:2px dashed #cbb18c}.abandon-button{width:100%;border:2px solid #87574d;background:#fff0e5;color:#874237;border-radius:12px;box-shadow:0 3px 0 #87574d;padding:10px 14px;font:inherit;font-size:14px;cursor:pointer}.abandon-button:hover{background:#ffe1cc}.abandon-section p{font-size:12px;line-height:1.7;margin:10px 0 0}

.leaderboard-row.leaderboard-own{color:#b32936;background:#fff0ef;border:2px solid #d36970;border-radius:12px;padding:12px;margin:8px 0}.leaderboard-own b,.leaderboard-own p{color:#b32936}.leaderboard-outside{margin-top:24px!important;border-top:3px solid #b32936!important}

.card-mastery{display:block;margin:8px 0;color:#875414;font-size:12px;font-weight:700;line-height:1.6}

.ask-client-link{color:#875020;font-weight:700;text-decoration:underline;text-underline-offset:3px;white-space:nowrap}.ask-client-link:hover{color:#b13d35}
