/* Compact, readable diary controls. Keep the existing whole-person illustration geometry. */
:root{--status-offset:0px}.studio-game .game-top{position:sticky;top:0;z-index:35;background:#fcf7ffed;backdrop-filter:blur(14px);border:1px solid #decce9;box-shadow:0 5px 18px #76558d17;padding:10px 14px;border-radius:0 0 14px 14px;margin-bottom:10px;min-height:68px}.game-top .controls{flex-wrap:wrap}.controls small{flex-basis:100%;line-height:1.5}.career-steps{scroll-margin-top:150px}.game-top .timeline{min-width:100px}.practice-fields{display:flex!important;flex-direction:column;gap:15px!important}.practice-row{display:flex;flex-direction:column;gap:10px;min-width:0}.practice-row>b{font-size:.875rem;color:#735583}.practice-buttons{display:flex;flex-flow:row wrap;gap:5px;padding-top:7px;align-items:center}.practice-subject{flex:1 0 auto;display:flex;gap:5px;justify-content:center;align-items:center;min-height:36px;padding:6px 9px!important;border-radius:8px;font-size:.875rem!important;line-height:1.35;transition:transform .16s,box-shadow .16s;background:#f1e7f7!important;color:#654c78!important;border:1px solid #d8c6e5!important;box-shadow:none}.practice-subject span{color:#9e70b5}.practice-subject.selected{transform:translateY(-5px);background:#ba92cd!important;color:#fff!important;border-color:#a777be!important;box-shadow:0 4px 0 #d8c1e5}.practice-subject.selected span{color:#fff}.practice-subject:focus-visible{outline:3px solid #79529b;outline-offset:2px}.practice-heading{align-items:flex-start}.practice-heading small{max-width:34ch;line-height:1.65}.practice-fields>label{max-width:250px}.debut-odds{display:grid;grid-template-columns:1fr auto;align-items:center;gap:4px 14px;background:linear-gradient(135deg,#f8e0f0,#e9e2fc);border:1px solid #d2b4df;padding:15px;border-radius:13px;margin-bottom:15px}.debut-odds>span{font-size:1rem;font-weight:700;line-height:1.6}.debut-odds strong{font-size:2.65rem;line-height:1.1;color:#8d4fa3;font-variant-numeric:tabular-nums}.debut-odds strong small{font-size:1.125rem}.debut-odds p{grid-column:1/-1;margin:6px 0 0;font-size:.875rem!important;line-height:1.7}.agency-logo{width:36px;height:36px;object-fit:contain;margin-bottom:6px}.agency-readiness{display:grid;gap:6px;margin-top:10px}.agency-readiness .requirement{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px;font-size:.875rem;line-height:1.5;padding:5px 7px;border-radius:6px;background:#f1e9f7}.requirement.met{color:#356e68;background:#e1f3ee}.requirement.unmet{color:#8b6079}.requirement small{flex-basis:100%}.agency-chance{font-size:1rem!important;color:#89529f;margin:5px 0}.company.closed{opacity:1!important;color:#8e8199}.company.closed>.agency-logo{opacity:.55}.company.closed .agency-readiness{opacity:.75}.agency-calculations{display:grid;gap:8px;margin:12px 0}.agency-odds{background:#f2eaf8;border:1px solid #ddcbe8;border-radius:10px;padding:10px}.agency-odds summary{font-size:.875rem;cursor:pointer;line-height:1.65}.agency-odds dl>div{display:flex;justify-content:space-between;gap:12px;font-size:.875rem;line-height:1.8}.agency-odds dd{margin:0;font-variant-numeric:tabular-nums}.agency-odds p{font-size:.875rem!important}.company{min-width:0!important}.company>div{min-width:0;overflow-wrap:anywhere}.sound-settings{position:relative;font-size:.875rem}.sound-settings>summary{cursor:pointer;list-style:none;padding:8px 10px;border:1px solid #d8c3e3;border-radius:9px;color:#785388;background:#f3e8fa}.sound-settings>div{position:absolute;right:0;top:calc(100% + 8px);z-index:55;width:230px;border:1px solid #d8c3e3;background:#fcf7ff;padding:14px;border-radius:12px;box-shadow:0 10px 30px #523b6722;display:grid;gap:14px}.sound-settings label{display:grid;gap:7px;font-size:.875rem}.sound-settings input{width:100%;accent-color:#a674bd}.sound-settings button{font-size:.875rem;padding:8px}.modal p,.modal .event-terms,.trait p,.practice-help p,.profile-more p,.debut-progress p,.offer p,.planner-tile p,.next-event p{white-space:pre-line;line-height:1.85;word-break:keep-all;overflow-wrap:anywhere}.modal p{margin-top:18px;margin-bottom:24px}.modal h2{line-height:1.45;margin-bottom:18px}.tutorial-modal p{font-size:1.0625rem!important;max-width:58ch}.modal button:not(.minimize){line-height:1.65;white-space:pre-line}.modal button b,.modal button span,.modal button small{display:block}.trait p{line-height:1.7}.panel h3{line-height:1.55}.practice,.conditions,.funds,.build-side>.trait,.goals{scroll-margin-top:165px}.room-badge{max-width:calc(100% - 22px);font-size:.75rem;letter-spacing:0;line-height:1.5}
/* Seasonal window and accumulated memories sit above the original wall, never on the character's floor. */
.season-window{position:absolute;left:4%;top:18%;width:26%;height:28%;border:5px solid #f5e5f7;box-shadow:3px 3px 0 #806b9d55;overflow:hidden;z-index:1;image-rendering:pixelated}.season-window:before,.season-window:after{content:'';position:absolute;background:#f5e5f7;z-index:3}.season-window:before{width:4px;height:100%;left:49%}.season-window:after{height:4px;width:100%;top:50%}.season-sky{position:absolute;inset:0;background:linear-gradient(#c4dfec 65%,#b3cfad 65%)}.season-tree{position:absolute;bottom:0;left:10%;width:8%;height:70%;background:#b89798}.season-tree:before{content:'';position:absolute;top:-15%;left:-160%;width:420%;height:70%;background:#f2bbd8;box-shadow:8px -4px #efc8df,-8px 5px #e8aaca;border-radius:25%}.season-cloud{position:absolute;top:15%;right:7%;width:26%;height:13%;background:#ffffffc9;box-shadow:-5px 4px #ffffffaa,4px 5px #ffffffaa}.season-particles{position:absolute;inset:0;background-image:radial-gradient(#f8daed 2px,transparent 2px);background-size:29px 23px;animation:season-drift 6s linear infinite}.season-summer .season-sky{background:linear-gradient(#a5d9f0 65%,#91c8aa 65%)}.season-summer .season-tree:before{background:#83bba3;box-shadow:8px -4px #a3d1ac,-8px 5px #77aa90}.season-summer .season-particles{opacity:0}.season-autumn .season-sky{background:linear-gradient(#eacddd 65%,#d7b4a5 65%)}.season-autumn .season-tree:before{background:#db9c85;box-shadow:8px -4px #ecc390,-8px 5px #c88d8b}.season-autumn .season-particles{background-image:radial-gradient(#e2ac80 2px,transparent 2px)}.season-winter .season-sky{background:linear-gradient(#bccbe6 65%,#f4edfc 65%)}.season-winter .season-tree:before{background:#e8dfef;box-shadow:8px -4px #fcf6ff,-8px 5px #cfc3de}.season-winter .season-particles{background-image:radial-gradient(#fff 2px,transparent 2px);background-size:19px 21px;animation-duration:8s}.room-memories{display:none;position:absolute;top:21%;right:7%;width:23%;height:18%;gap:7%;z-index:2;transform:rotate(-3deg)}.room-memories i{display:grid;place-items:center;font-style:normal;background:#fff1fa;border:3px solid #fff;color:#bb86b8;box-shadow:2px 2px #77618b33;width:30%;height:85%;font-size:1.1rem}.room-level-1 .room-memories,.room-level-2 .room-memories,.room-level-3 .room-memories{display:flex}.room-lights{display:none;position:absolute;left:0;right:0;top:12%;height:4px;background:repeating-linear-gradient(90deg,#e9a9d2 0 6px,#e9a9d200 6px 26px);box-shadow:0 3px 14px #ecc8f1;z-index:1}.room-level-2 .room-lights,.room-level-3 .room-lights{display:block}.room-level-3 .room-lights{background:repeating-linear-gradient(90deg,#ffeab0 0 6px,#ffedb000 6px 26px);box-shadow:0 4px 18px #fff3bf}.room-level-2 .room-art{filter:saturate(1.06) brightness(1.02)}.room-level-3 .room-art{filter:saturate(1.1) brightness(1.04)}
.composer-desk{display:none;position:absolute;left:61%;bottom:22%;width:22%;height:29%;z-index:4;border-bottom:7px solid #a184b2}.is-composing .composer-desk{display:block}.is-composing .study-book{display:none}.composer-screen{height:72%;background:#655879;border:5px solid #d3bddd;display:flex;gap:8%;align-items:flex-end;padding:10% 10% 5%;box-shadow:2px 2px #695d7e}.composer-screen i{width:12%;height:50%;background:#bde4dd;animation:compose-level .7s steps(3,end) infinite alternate}.composer-screen i:nth-child(2n){height:80%;animation-delay:-.2s;background:#ead0f4}.composer-screen i:nth-child(3n){height:35%;animation-delay:-.5s}.composer-keys{height:20%;margin-top:5%;background:repeating-linear-gradient(90deg,#fcf5ff 0 10%,#a48aae 10% 12%);border:2px solid #a48aae;transform:skewX(-10deg)}.composer-pencil{position:absolute;right:-5%;top:-9%;font-size:1.8rem;color:#b087c6;animation:compose-write .65s steps(2,end) infinite}.is-composing .room-character{animation:compose-groove .75s steps(3,end) infinite!important}.is-composing .room-notes{display:block;left:52%;bottom:50%}@keyframes compose-groove{0%,100%{transform:translateX(-50%) rotate(-3deg)}50%{transform:translate(-48%,-4px) rotate(3deg)}}@keyframes compose-level{to{height:20%}}@keyframes compose-write{to{transform:translate(3px,4px) rotate(-12deg)}}@keyframes season-drift{to{background-position:12px 46px}}
@media(max-width:700px){.studio-game .game-top{top:0;padding:8px;gap:6px}.game-top .controls button{padding:5px 7px;font-size:.8125rem}.game-top .controls small{display:none}.practice-subject{flex:1 0 21%;font-size:.8125rem!important;padding:5px!important}.room-badge{font-size:.625rem}.debut-odds strong{font-size:2.2rem}.sound-settings>div{position:fixed;right:12px;top:70px}.sound-settings>summary{padding:7px}.studio-game .game-top .current-phase .eyebrow{display:none}}
@media(prefers-reduced-motion:reduce){.practice-subject{transition:none}.season-particles,.is-composing .room-character,.composer-screen i,.composer-pencil{animation:none!important}}
header nav{flex-wrap:wrap;align-items:center}.studio-game .profile,.studio-game .build-side{top:var(--status-height,110px);max-height:calc(100dvh - var(--status-height,110px) - 18px)}.practice,.conditions,.funds,.build-side>.trait,.goals,.controls{scroll-margin-top:var(--status-height,150px)}
@media(max-width:1150px){.studio-game .build-side{max-height:none}}
@media(max-width:740px){.studio-game .profile{position:static;max-height:none}header nav{max-width:65%}}
.profile-debut-chance{display:grid;grid-template-columns:1fr auto;gap:5px 8px;align-items:center;padding:12px;margin:12px 0;background:linear-gradient(130deg,#f6dff0,#e7e1fa);border:1px solid #d4b9e1;border-radius:12px}.profile-debut-chance>span{font-size:.875rem;font-weight:700;line-height:1.55;color:#785287}.profile-debut-chance strong{font-size:2.25rem;line-height:1.2;color:#8d4fa3}.profile-debut-chance strong small{font-size:1rem;color:inherit}.profile-debut-chance>small{grid-column:1/-1;font-size:.8125rem;line-height:1.6;color:#7c648c}
.atelier-scene.is-still .room-character,.atelier-scene.is-still .composer-screen i,.atelier-scene.is-still .composer-pencil,.atelier-scene.is-still .season-particles,body:has(.modal-backdrop) .atelier-scene .room-character{animation-play-state:paused!important}
.agency-readiness{display:flex;flex-wrap:wrap;gap:5px}.agency-readiness .requirement{display:inline-flex;padding:4px 6px;line-height:1.4;font-size:.8125rem}.agency-readiness .requirement small{flex-basis:auto;font-size:.75rem}.agency-chance,.agency-readiness>small{flex-basis:100%}.agency-readiness>small{line-height:1.65}
