:root{--blue:#c6edff;--ice:#eff9ff;--ink:#163b51;--muted:#526c7b;--gold:#dab97b;--line:#c7ac7366;--zoom:1;color:var(--ink);color-scheme:light;font-family:ui-sans-serif,-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif}*{box-sizing:border-box}html,body{margin:0;min-height:100%;width:100%}body{background:#18384d;overflow-x:hidden}button,input{font:inherit}button,a,input{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:default;opacity:.45}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #f0d095;outline-offset:4px}[hidden]{display:none!important}.symbol-bank{position:absolute;width:0;height:0;overflow:hidden}svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.scenery,.wash{position:fixed;inset:0;pointer-events:none}.scenery{background:url('assets/places/neighborhood/background.jpg') center 58%/cover no-repeat;z-index:-3}.wash{opacity:.03;z-index:-2;background:#fff}body[data-scene=room] .scenery{background-image:url('assets/places/bedroom/image-1.jpg');background-position:center 56%}body[data-scene=room]::before{content:'';position:fixed;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(180deg,#08172445,transparent 40%,#08172422 60%,#081724bd)}.toolbar{position:fixed;top:max(20px,env(safe-area-inset-top));left:max(22px,env(safe-area-inset-left));z-index:10;display:flex;gap:9px}.icon-button{display:grid;place-items:center;width:46px;height:46px;border:1px solid #c6eafa59;border-radius:15px;background:#eaf7ffed;color:#254b60;box-shadow:0 6px 24px #082c3826}.icon-button svg{width:23px;height:23px}.screen{min-height:100svh;max-width:1560px;margin:auto;padding:115px clamp(24px,8vw,120px) 64px}.age-layout,.centered-layout{display:grid;place-items:center}.glass{border:1px solid #d4e9f6a6;border-radius:28px;background:linear-gradient(135deg,#f4fbfff5,#e2f3fdf2);box-shadow:0 24px 70px #0d253b30;backdrop-filter:blur(14px)}.age-card{width:min(100%,520px);padding:clamp(28px,5vw,44px);font-size:calc(1rem * 1)}.wordmark{font-size:.8em;letter-spacing:.12em;line-height:1.55;font-weight:750}.wordmark span{color:#927039}.age-badge{display:flex;justify-content:center;align-items:center;width:98px;height:98px;border:1px solid #d2b477;border-radius:30px;font-size:2.9em;font-weight:750;margin:28px 0;background:linear-gradient(135deg,#d1efff,#f7fcff)}.age-badge span{font-size:.55em}.eyebrow{font-size:.68em;letter-spacing:.17em;font-weight:750;color:#9b783e;margin:0 0 17px;line-height:1.7}.age-card h1,.form-card h1,.prologue-card h1{font-size:2.45em;font-weight:750;line-height:1.08;letter-spacing:-.055em;margin:15px 0 23px}.lead{font-size:1.08em;line-height:1.7;margin:0 0 13px}.muted{color:var(--muted);font-size:.9em;line-height:1.75}.button-stack{display:grid;gap:12px;margin-top:28px}.button{width:100%;min-height:56px;border:1px solid #bdd9ea77;border-radius:17px;padding:16px 21px;font-size:1em;font-weight:650;line-height:1.4;transition:transform .15s,background .15s}.button.primary{display:flex;justify-content:space-between;align-items:center;gap:15px;background:linear-gradient(110deg,#b5e7ff,#e4f6ff);border-color:#f0d598a6;color:#143b53;box-shadow:0 7px 25px #12364b1a}.button.primary:hover{background:#c8edff;transform:translateY(-2px)}.button.primary span{color:#8e6d35;font-size:1.25em;font-weight:400}.button.secondary{background:#f1f9fff0;color:var(--ink)}.button.secondary:hover{background:#fff}.title-layout{display:flex;align-items:center;padding-top:130px;padding-bottom:65px}.title-copy{max-width:670px;width:100%;font-size:calc(1rem * 1)}.title-kicker{margin-bottom:25px}.title-copy h1{margin:0;line-height:.91;font-weight:850;letter-spacing:-.075em}.title-small{display:block;font-size:clamp(15px,2.1vw,23px);letter-spacing:.13em;line-height:1.6;margin-bottom:16px;font-weight:600}.title-blue,.title-gold{display:block;font-size:clamp(76px,10vw,138px)}.title-blue{color:#daf3ff;text-shadow:0 3px 22px #102c4088}.title-gold{color:#e8c78b;text-shadow:0 3px 22px #102c4088}.gold-rule{width:58px;height:4px;border-radius:9px;background:#e2c18a;margin:30px 0}.theme-line{font-size:.66em;font-weight:700;letter-spacing:.13em;line-height:1.8;display:flex;align-items:center;gap:17px;flex-wrap:wrap}.theme-line span{color:#edcc91}.title-description{font-size:1.3em;line-height:1.6;margin:24px 0}.title-buttons{max-width:430px}.signature{display:inline-block;text-decoration:none;font-size:.7em;letter-spacing:.23em;margin-top:31px;padding:8px 0}.signature:hover{text-decoration:underline}.title-small,.title-kicker,.theme-line,.title-description,.signature{color:#eef9ff;text-shadow:0 2px 8px #102c40cc}.form-card,.prologue-card{width:min(100%,620px);padding:clamp(27px,5vw,44px);font-size:calc(1rem * 1)}.form-card label{display:block;font-size:.85em;color:#496477;margin:26px 0 10px}.form-card input{width:100%;border:1px solid #aacbdf;background:#ffffffbb;border-radius:14px;padding:16px;font-size:16px;color:#234658}.prologue-card p{font-size:1.04em;line-height:1.85}.prologue-card .prologue-last{color:#866632;font-size:1.2em;font-weight:650;margin:28px 0}.menu-backdrop{position:fixed;inset:0;background:#0c263b77;backdrop-filter:blur(5px);z-index:39}.menu-panel{position:fixed;z-index:40;inset:0 auto 0 0;width:min(430px,92vw);padding:0 26px 25px;overflow-y:auto;overscroll-behavior:contain;background:linear-gradient(145deg,#f2faff,#dceef9);border-right:1px solid #e0c590;transform:translateX(-102%);visibility:hidden;transition:transform .2s ease,visibility .2s;box-shadow:15px 0 60px #14394925;display:flex;flex-direction:column;font-size:16px}.menu-panel.open{transform:translateX(0);visibility:visible}.menu-header{display:flex;align-items:center;gap:16px;padding:26px 0 22px;border-bottom:1px solid var(--line)}.menu-header .icon-button{flex:none;box-shadow:none}.menu-game-title{font-size:9px;letter-spacing:.12em;color:#98763a;line-height:1.7;margin:0 0 7px}.menu-header h2{font-size:25px;letter-spacing:-.04em;margin:0}.menu-row{display:flex;width:100%;align-items:center;gap:17px;padding:16px 12px;min-height:58px;border:0;border-radius:13px;background:transparent;color:var(--ink);text-decoration:none;text-align:left;font-size:1em;line-height:1.45}.menu-row>svg{color:#987638;flex:none}.menu-row>span{flex:1}.menu-row>b{color:#9f824a;font-size:23px;font-weight:400}.menu-row:is(button,a):hover{background:#fff8}.menu-group{border-top:1px solid #98b5c54d;margin-top:14px;padding-top:14px}.menu-group:first-of-type{border:0;margin-top:6px}.group-label{font-size:9px;letter-spacing:.2em;color:#637f8f;margin:0 0 9px}.small-button{padding:10px 14px;min-width:64px;border:1px solid #b2cddd;border-radius:12px;background:#f5fbff;color:#31586d}.stepper{display:flex;align-items:center;border:1px solid #b2cddd;border-radius:12px;background:#f5fbff}.stepper button{border:0;background:transparent;color:#8f6e35;font-size:23px;width:38px;height:42px}.stepper output{font-size:14px;min-width:54px;text-align:center}.menu-panel footer{margin-top:auto;padding-top:35px;text-align:center;color:#6b8594;font-size:9px;letter-spacing:.1em;line-height:1.8}.menu-panel footer span{color:#9c7a3f;margin:0 7px}.modal{width:min(570px,calc(100% - 36px));max-height:88svh;overflow-y:auto;position:fixed;inset:0;margin:auto;padding:28px;color:var(--ink);font-size:16px}.modal::backdrop{background:#0b203b99;backdrop-filter:blur(9px)}.dialog-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:22px}.dialog-header h2{font-size:24px;letter-spacing:-.04em;margin:0}.status-row{display:flex;justify-content:space-between;gap:20px;line-height:1.6;border-bottom:1px solid #9bbccb66;padding:14px 0;font-size:.95em}.status-row strong{text-align:right}.stars{color:#9b752e;letter-spacing:.12em}.slot{display:flex;align-items:center;gap:12px;padding:15px 0;border-top:1px solid #9bbccb66}.slot-copy{flex:1;min-width:0;font-size:14px;line-height:1.7}.slot-copy strong{display:block}.slot-copy small{color:var(--muted)}.slot button{min-width:65px}.modal-note{font-size:14px;line-height:1.8;color:var(--muted)}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);max-width:calc(100% - 30px);z-index:70;background:#ebf8ff;border:1px solid #dfc28a;border-radius:16px;padding:14px 22px;box-shadow:0 6px 30px #16394930;color:#25495c;font-size:14px}.storage-notice{padding:12px;border:1px solid var(--line);font-size:13px;line-height:1.6}

.restaurant-layout{padding-top:120px;padding-bottom:70px}.restaurant-card,.floating-content{max-width:900px;margin:auto;font-size:calc(1rem * 1)}.restaurant-card{background:none;border:0;border-radius:0;box-shadow:none;backdrop-filter:none;padding:0}.restaurant-card h1,.floating-content>h1,.ledger h1{font-size:clamp(34px,5.5vw,58px);font-weight:750;letter-spacing:-.055em;line-height:1.08;margin:6px 0 34px}.restaurant-card>h1,.floating-content>h1,.on-photo{color:#f1faff;text-shadow:0 2px 12px #102b40a6}.restaurant-card>.eyebrow,.restaurant-card>.scene-pause,.floating-content>.eyebrow{color:#f0d394;text-shadow:0 1px 5px #102e43}.on-photo{line-height:1.7;font-size:.95em}.tour-media{margin:clamp(32px,6vh,64px) 0;width:100%}.tour-media video{display:block;width:auto;height:auto;max-width:100%;max-height:80svh;min-height:0;margin-inline:auto;border:0;border-radius:0;background:transparent;object-fit:contain}.tour-media .sound-play{margin-top:12px}.tour-photo{display:block;width:100%;height:auto;border-radius:0;border:0;background:transparent;box-shadow:none}.scene-photo{display:block;max-width:100%;width:auto;height:auto;max-height:78svh;object-fit:contain;margin:32px auto 45px;border:0;border-radius:0;box-shadow:none;background:transparent}.scene-pause{text-align:center;letter-spacing:.2em;font-size:1.2em;margin:35px 0}.restaurant-card>.button-stack{margin-top:40px}

.scene-dialogue{display:flex;flex-direction:column;align-items:stretch;margin:38px auto 46px;max-width:760px;border:0;padding:0;background:none}.scene-actor{display:flex;flex-direction:column;align-items:center;gap:10px;align-self:center;margin-bottom:15px}.dialogue-portrait,.player-portrait{width:80px;height:80px;flex:none;object-fit:cover;object-position:50% 28%;border:2px solid #e6c78c;border-radius:50%;box-shadow:0 0 0 5px #e8f6ff26,0 6px 22px #071d3a3d;margin:0}.player-portrait{display:grid;place-items:center;background:linear-gradient(135deg,#c8eaff,#edf9ff);color:#436276;font-size:28px;font-weight:650}.scene-speaker{color:#f8dfa9;text-shadow:0 2px 7px #112e42;font-size:14px;font-weight:750;letter-spacing:.03em;line-height:1.5;margin:0}.dialogue-bubble{position:relative;background:linear-gradient(120deg,#f2fafff7,#def2fff5);border:1px solid #d5ebf8bd;border-radius:20px;padding:23px 28px;color:#23485f;font-size:1.05em;line-height:1.8;box-shadow:0 12px 30px #0b2b3926}.dialogue-bubble::before{content:'';position:absolute;left:calc(50% - 7px);top:-7px;width:13px;height:13px;background:#eaf7ff;border-top:1px solid #d5ebf8bd;border-left:1px solid #d5ebf8bd;transform:rotate(45deg)}
.game-hud{position:fixed;top:max(20px,env(safe-area-inset-top));right:max(22px,env(safe-area-inset-right));z-index:9;display:flex;align-items:center;gap:0;padding:10px 8px;border:1px solid #d9efff45;border-radius:16px;background:#183d52bd;backdrop-filter:blur(16px);color:#effaff;font-size:13px;box-shadow:0 8px 28px #0c21352b}.game-hud>*{padding:0 12px;line-height:23px}.hud-day{font-weight:750}.hud-time{border-right:1px solid #e8f6ff33;color:#d2e8f7}.hud-stars{color:#f1d291;letter-spacing:.08em}.hud-money{border-left:1px solid #e8f6ff33;font-weight:600}.sandbox-layout{padding-top:125px;padding-bottom:100px}.floating-content>.button{margin-top:28px}.room-layout{max-width:none;padding-top:135px;padding-bottom:max(46px,env(safe-area-inset-bottom))}.room-layout .floating-content{max-width:1100px;min-height:calc(100svh - 181px);display:flex;flex-direction:column}.room-heading .eyebrow{color:#e7d1a4;letter-spacing:.24em;font-size:.62em;margin-bottom:9px;text-shadow:0 2px 10px #102738}.room-heading h1{margin:0;font-size:clamp(34px,5.5vw,64px);font-weight:750;line-height:1.05;letter-spacing:-.06em;color:#f1f9ff;text-shadow:0 4px 25px #10273866}.room-heading h1 span{color:#e5c68c}.action-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-top:auto;padding-top:120px}.action-button{min-height:148px;border:1px solid #d2ecff4d;border-radius:23px;background:linear-gradient(145deg,#c8ebffdf,#eaf7fff0);color:#173f58;padding:23px 20px;text-align:left;box-shadow:0 12px 35px #051b3026;backdrop-filter:blur(15px);transition:transform .16s,background .16s,border-color .16s}.action-button svg{display:block;width:28px;height:28px;margin-bottom:18px;color:#436d85}.action-button strong{display:block;font-size:19px;font-weight:750;letter-spacing:-.03em}.action-button small{display:block;font-size:11px;line-height:1.5;margin-top:7px;color:#55788a}.action-button:hover{transform:translateY(-5px);background:#edfbff;border-color:#f2d59f}.action-button:last-child{background:linear-gradient(145deg,#d4e9f2e8,#f2e4c7e8)}.action-button:last-child svg{color:#947644}#room-events:empty{display:none}#room-events{padding-top:20px}.room-layout:has(#room-events:not(:empty)){padding-bottom:75px}#room-events h2{font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:#e5d7b5;margin:0 0 12px}.new-event{display:flex;align-items:center;gap:16px;width:100%;max-width:490px;border:1px solid #d9bf826b;border-radius:18px;background:#143349cc;backdrop-filter:blur(12px);color:#ecf8ff;padding:14px 18px;margin-bottom:12px;font-size:14px;text-align:left}.new-event .dialogue-portrait{width:48px;height:48px;border-width:1px;box-shadow:none}.new-event>.event-mark{margin-left:auto;flex:none}.place-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin:30px 0}.map-place{border:1px solid #c9e6f94d;border-radius:24px;background:#193b52bf;backdrop-filter:blur(14px);overflow:hidden;box-shadow:0 12px 35px #0c253026}.place-card{display:block;width:100%;border:0;background:transparent;padding:0;text-align:left;color:#eef9ff}.place-card img{display:block;width:100%;height:210px;object-fit:cover}.place-label{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:20px 22px}.place-label strong{font-size:22px;font-weight:700;letter-spacing:-.04em}.visit-arrow{font-size:25px;color:#e2c389}.place-card:hover .visit-arrow{transform:translate(2px,-2px)}.map-people{display:flex;gap:20px;flex-wrap:wrap;justify-content:center;padding:6px 20px 23px}.character-list{display:flex;flex-wrap:wrap;justify-content:center;gap:24px;margin:35px 0}.character-icon{border:0;background:transparent;padding:7px 7px 10px;text-align:center;color:#f4d799}.character-picture{display:block;position:relative;width:96px;height:96px;margin:0 auto 13px}.character-picture img{width:100%;height:100%;object-fit:cover;object-position:50% 28%;border:2px solid #e3c48b;border-radius:50%;box-shadow:0 0 0 5px #f1f8ff17}.character-name{display:block;font-weight:700;font-size:15px;color:#f5e2bd;text-shadow:0 1px 8px #102e43}.event-mark{display:inline-grid;place-items:center;width:25px;height:25px;border:2px solid currentColor;border-radius:50%;font-size:17px;font-weight:bold;background:#193d52;line-height:1}.character-picture .event-mark{position:absolute;right:-3px;bottom:0}.event-mark.red{color:#ff8e9b}.event-mark.yellow{color:#f8d18d}.event-mark.green{color:#8ce3bb}.character-icon:hover .character-picture{transform:translateY(-3px)}.character-modal .dialog-header{justify-content:flex-end;margin-bottom:0}.character-modal #dialog-title{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.character-modal .scene-dialogue{margin:6px 0 28px}.character-modal .scene-actor{margin-top:-8px}.character-modal .scene-speaker{color:#405c6c;text-shadow:none;font-size:17px}.character-modal .dialogue-bubble{background:#d3edffbd;box-shadow:none;text-align:center;padding:18px 20px;font-weight:600}.character-modal .dialogue-bubble::before{background:#dbf0ff}.event-choice{display:grid;gap:12px;padding:22px 0 0;border-top:1px solid #a3c2d35c;line-height:1.6}.event-choice+.event-choice{margin-top:24px}.event-number{font-size:13px;letter-spacing:.08em;text-transform:uppercase;color:#637e8f}.event-choice small{text-align:center;color:#6b8493;font-size:12px}.event-choice button:disabled{opacity:1;background:#dcebf4;border-color:#aac5d94d;color:#7b94a3}.ledger{max-width:600px;margin:auto;padding:clamp(25px,5vw,40px);font-size:calc(1rem * 1)}.ledger .button{margin-top:28px}.profit{color:#2c9274}.global-completion{position:fixed;bottom:0;left:0;right:0;z-index:8;text-align:center;padding:12px 24px;background:#e4f5fff2;backdrop-filter:blur(10px);border-top:1px solid #d0b780;color:#34556b;font-size:12px;line-height:1.6}
@media(min-width:1100px){.age-layout{justify-items:start}.age-card{margin-left:4vw}}@media(max-width:700px){.toolbar{top:max(15px,env(safe-area-inset-top));left:16px;gap:7px}.icon-button{width:40px;height:40px;border-radius:13px}.icon-button svg{width:20px;height:20px}.screen{padding:105px 22px 48px}.age-card{margin-top:5px;padding:27px}.age-card h1{font-size:2.2em}.age-badge{width:86px;height:86px;border-radius:25px;font-size:2.6em}.title-layout{padding:140px 27px 48px}.title-small{font-size:13px;letter-spacing:.14em}.title-blue,.title-gold{font-size:clamp(72px,22vw,125px)}.theme-line{gap:10px;font-size:.58em;letter-spacing:.1em}.title-description{font-size:1.16em}.title-buttons .button{min-height:58px}.menu-panel{padding:0 18px 25px}.menu-header h2{font-size:25px}.menu-row{padding:15px 9px;gap:15px}.menu-game-title{font-size:8px}.prologue-card{padding:27px}.prologue-card h1{font-size:2.2em}.modal{padding:22px;max-height:88svh}.slot-copy{font-size:13px}.slot .small-button{min-width:58px;padding:9px}.game-hud{top:max(15px,env(safe-area-inset-top));right:14px;max-width:calc(100% - 124px);border-radius:13px;padding:9px 3px;gap:0;font-size:11px;flex-wrap:wrap;justify-content:flex-end}.game-hud>*{padding:0 8px;line-height:19px}.hud-time{border-right:0}.hud-stars,.hud-money{border-top:1px solid #e8f6ff17}.hud-money{border-left:0}.sandbox-layout{padding-top:115px;padding-bottom:95px}.restaurant-layout{padding-top:115px}.restaurant-card h1,.floating-content>h1{font-size:clamp(32px,8.8vw,46px);margin-bottom:28px}.scene-dialogue{margin:32px auto 38px}.dialogue-portrait,.player-portrait{width:72px;height:72px}.scene-speaker{font-size:13px}.dialogue-bubble{font-size:1em;line-height:1.75;padding:19px 21px;border-radius:18px}.scene-photo{max-height:78svh;margin:25px auto 36px}.room-layout{padding:120px 22px max(30px,env(safe-area-inset-bottom))}.room-layout .floating-content{min-height:calc(100svh - 150px)}.room-heading h1{font-size:39px}.room-heading .eyebrow{font-size:9px}.action-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;padding-top:110px}.action-button{grid-column:span 2;min-height:112px;border-radius:19px;padding:16px 12px}.action-button:nth-last-child(-n+2){grid-column:span 3}.action-button svg{width:25px;height:25px;margin-bottom:11px}.action-button strong{font-size:16px}.action-button small{font-size:10px;margin-top:5px}.place-grid{grid-template-columns:1fr;gap:20px}.place-card img{height:190px}.map-place{border-radius:22px}.map-people{justify-content:flex-start;padding:3px 22px 20px}.character-picture{width:84px;height:84px}.character-name{font-size:14px}.new-event{font-size:13px;padding:12px 14px}.new-event .dialogue-portrait{width:43px;height:43px}.global-completion{font-size:11px;padding:10px 18px}.room-layout:has(#room-events:not(:empty)){padding-bottom:60px}.character-modal .dialogue-bubble{font-size:1em}.character-modal .scene-actor{margin-top:-4px}}
@media(max-width:370px){.game-hud{max-width:calc(100% - 118px);font-size:10px}.game-hud>*{padding:0 6px}.action-button small{font-size:9px}.room-layout{padding-left:18px;padding-right:18px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}


.scene-dialogue{display:grid;grid-template-columns:92px minmax(0,1fr);column-gap:25px;align-items:center;max-width:960px;margin:30px auto 36px}
.scene-actor{margin:0;align-self:center;justify-self:center;gap:9px;width:92px}
.dialogue-bubble{min-width:0;padding:20px 26px;border-radius:18px}
.dialogue-bubble::before{left:-7px;top:calc(50% - 7px);transform:rotate(-45deg)}
.character-modal .scene-dialogue{margin:10px 0 26px;grid-template-columns:80px minmax(0,1fr);column-gap:20px}
.character-modal .scene-actor{margin:0;width:80px}
.character-modal .dialogue-bubble{text-align:left;padding:18px 20px}
.character-modal .scene-speaker{font-size:14px}
#map-screen .floating-content{max-width:1100px}
.place-grid{grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:18px;margin:26px 0 30px;align-items:start}
.map-place{max-width:260px;border-radius:20px}
.place-card img{height:125px;margin:0;max-height:none}
.place-label{padding:14px 17px}
.place-label strong{font-size:18px;letter-spacing:-.025em}
.visit-arrow{font-size:21px}
.map-people{justify-content:flex-start;gap:14px;padding:5px 17px 16px}
.map-people .character-icon{padding:5px 4px 3px}
.map-people .character-picture{width:60px;height:60px;margin-bottom:10px}
.map-people .character-name{font-size:12px}
.map-people .character-picture img{box-shadow:0 0 0 3px #f1f8ff17}
.map-people .event-mark{width:20px;height:20px;font-size:13px;border-width:1.5px;right:-3px;bottom:-1px}
#map-screen>.floating-content>.return-room{max-width:310px;min-height:49px;padding:13px 19px;font-size:.9em;margin-top:5px}
@media(min-width:1200px){.restaurant-card,.floating-content{max-width:1040px}.floating-content>h1,.restaurant-card h1{font-size:52px}.scene-dialogue .dialogue-bubble{font-size:1.04em;line-height:1.75}}
@media(max-width:700px){.scene-dialogue{grid-template-columns:68px minmax(0,1fr);column-gap:16px;margin:26px auto 32px}.scene-actor{width:68px;gap:8px}.scene-dialogue .dialogue-portrait,.scene-dialogue .player-portrait{width:62px;height:62px;box-shadow:0 0 0 3px #e8f6ff26,0 5px 15px #071d3a3d}.scene-speaker{font-size:12px}.dialogue-bubble{font-size:.95em;line-height:1.65;padding:16px 18px}.character-modal .scene-dialogue{grid-template-columns:64px minmax(0,1fr);column-gap:16px}.character-modal .scene-actor{width:64px;margin:0}.character-modal .scene-speaker{font-size:12px}.character-modal .dialogue-bubble{font-size:.95em;padding:16px}.place-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,190px),1fr));gap:16px}.map-place{max-width:250px;border-radius:18px}.place-card img{height:120px}.place-label{padding:14px 16px}.place-label strong{font-size:18px}.map-people{padding:4px 16px 15px}}


.toolbar{display:grid;grid-template-columns:repeat(2,46px);align-items:start}
.map-shortcut{grid-column:1;grid-row:2;justify-self:center;width:38px;height:38px;border-radius:12px;background:#d5effff0;color:#315d75}
.map-shortcut svg{width:20px;height:20px}
.hero-portrait{display:block;overflow:hidden;isolation:isolate}
.hero-portrait img{display:block;width:100%;height:100%;max-width:none;object-fit:cover;object-position:50% 35%;transform:scale(2);transform-origin:50% 35%;border:0;border-radius:0;margin:0}
@media(max-width:700px){.toolbar{grid-template-columns:repeat(2,40px)}.map-shortcut{width:34px;height:34px;border-radius:11px}.map-shortcut svg{width:18px;height:18px}}

.phone-shortcut{grid-column:2;grid-row:2;justify-self:center;position:relative;width:38px;height:38px;border-radius:12px;background:#d5effff0;color:#315d75;font-size:22px}.phone-dot{position:absolute;top:-5px;right:-5px;background:#d5ac52;color:#193b52;border-radius:50%;width:19px;height:19px;font-size:12px;font-weight:800;line-height:19px}.phone-dot[hidden]{display:none}.phone-message{background:#d7edfa;color:#23465a;border-radius:18px;padding:20px;line-height:1.6}.phone-message p{margin:10px 0 0}@media(max-width:700px){.phone-shortcut{width:34px;height:34px;font-size:20px}}



body[data-scene='place'][data-place='gym'] .scenery{background-image:url('assets/places/gym/images/background.jpg');background-position:center center;}


.phone-shortcut{font-size:initial}.phone-shortcut svg,.journal-shortcut svg{width:23px;height:23px}.journal-shortcut{grid-column:2;grid-row:3;justify-self:center;position:relative;width:38px;height:38px;border-radius:12px;background:#d5effff0;color:#315d75}.journal-entry{display:grid;grid-template-columns:72px 1fr;gap:5px 16px;align-items:center;padding:14px 0;border-bottom:1px solid #b7d0dc}.journal-portrait{width:72px;height:72px;object-fit:cover;border-radius:50%;grid-row:span 4}.journal-entry h3{margin:0}.journal-entry p{margin:0;color:#385b6d}@media(max-width:700px){.journal-shortcut{width:34px;height:34px}.phone-shortcut svg,.journal-shortcut svg{width:20px;height:20px}}


.gym-training-area{margin:1.2rem 0;padding:1rem;border:1px solid rgba(204,170,90,.55);border-radius:14px;background:rgba(10,32,56,.65)}
.gym-training-actions{display:flex;flex-wrap:wrap;gap:.65rem;margin-top:.8rem}.gym-training-actions button{min-width:145px}.gym-training-actions button:disabled{opacity:.55;cursor:not-allowed}


.gym-room-section{margin:1.25rem 0}.gym-room-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:14px;max-width:760px}.gym-room-card{display:flex;flex-direction:column;overflow:hidden;padding:0;text-align:left;background:rgba(12,36,59,.9);color:#e6f6ff;border:1px solid #d8b76e;border-radius:18px;cursor:pointer;min-width:0}.gym-room-card img{display:block;width:100%;height:155px;object-fit:cover}.gym-room-name{font-size:1.1rem;padding:12px 15px 2px}.gym-room-desc{font-size:.84rem;padding:0 15px 15px;color:#c5dbe9}.gym-room-card:hover{border-color:#fff1bd}.gym-training-area>.button{width:min(100%,400px)}@media(max-width:520px){.gym-room-grid{gap:10px}.gym-room-card img{height:105px}.gym-room-name{font-size:1rem;padding:10px 10px 2px}.gym-room-desc{padding:0 10px 12px;font-size:.75rem}}


body[data-scene="place"][data-place="tennisClub"] .scenery{background-image:var(--tennis-background);background-size:cover;background-position:center;}
body[data-scene="place"][data-place="park"] .scenery{background-image:var(--park-background);background-size:cover;background-position:center;}


body[data-scene="place"][data-place="alisonHome"] .scenery{background-image:var(--alison-home-background);background-size:cover;background-position:center;}
.home-visit-preview{display:block;width:100%;max-width:400px;max-height:240px;object-fit:cover;border-radius:14px;margin:10px auto;}
.home-alison-portrait{display:block;width:min(100%,440px);height:auto;max-height:55vh;object-fit:contain;margin:18px auto;border-radius:14px;}


.home-visit-card{position:relative;max-width:400px;margin:10px auto 16px;}
.home-visit-card .home-visit-preview{width:100%;max-width:none;margin:0;display:block;}
.home-owner-avatar{position:absolute;left:12px;top:12px;width:70px;height:70px;object-fit:cover;object-position:center 28%;border-radius:50%;border:3px solid #e4c78c;box-shadow:0 4px 16px #0b253b77;background:#d7eafa;}
@media(max-width:700px){.home-owner-avatar{width:62px;height:62px;left:10px;top:10px;}}


#room-events:has(.room-event-signal){display:flex;justify-content:flex-end;padding:14px 8px 0;pointer-events:none}
.room-event-signal,.visit-event-signal{display:grid;place-items:center;width:38px;height:38px;border:2px solid #ffe19a;border-radius:50%;background:#6a490c;color:#fff5c5;font-size:26px;font-weight:900;box-shadow:0 0 10px #ffce56,0 0 25px #f5b729aa;text-shadow:0 0 8px #fff0b4;animation:room-event-pulse 1.5s ease-in-out infinite}
@keyframes room-event-pulse{0%,100%{box-shadow:0 0 7px #ffce56,0 0 17px #f5b72988;transform:scale(1)}50%{box-shadow:0 0 18px #ffdc7a,0 0 34px #ffc03dcc;transform:scale(1.09)}}
.action-button.home-event-ready{position:relative;border-color:#eac36b}
.visit-event-signal{position:absolute;right:9px;top:9px;width:27px;height:27px;font-size:19px;pointer-events:none}
.home-event-start{display:block;width:min(100%,360px);margin:12px auto 32px}
@media(prefers-reduced-motion:reduce){.room-event-signal,.visit-event-signal{animation:none}}


body[data-scene='place'][data-place='wrestling'] .scenery{background-image:url('assets/places/gym/wresting/wsring.jpg');background-size:cover;background-position:center;}


.wrestling-announcer-icon {
  display:inline-flex;align-items:center;justify-content:center;
  border-radius:50%;font-size:1.35rem;font-weight:800;
  background:#183052;color:#ffdb63;border:2px solid #f2c74c;
}
.wrestling-event-ellipsis,.wrestling-event-time {
  text-align:center;color:#ffe49c;font-weight:700;margin:1rem 0;
}


#room-events:has(.room-event-signal){pointer-events:auto}
.room-event-signal{cursor:pointer;font-family:inherit;padding:0}
.action-button.pc-upgrade-ready{position:relative}
.pc-upgrade-signal{position:absolute;right:9px;top:8px;display:grid;place-items:center;width:29px;height:29px;border:2px solid #ffe19a;border-radius:50%;background:#6a490c;color:#fff5c5;font-size:21px;font-weight:900;box-shadow:0 0 12px #ffce56,0 0 22px #f5b729aa;animation:room-event-pulse 1.5s ease-in-out infinite}
.wrestling-reward-note{max-width:650px;margin:16px auto 22px;padding:12px 16px;border:1px solid #e6c27688;border-radius:12px;background:#102f48c9;color:#ffe3a7;text-align:center;font-size:.9rem}
@media(prefers-reduced-motion:reduce){.pc-upgrade-signal{animation:none}}


body[data-scene="place"][data-place="university"] .scenery {
 background-image:url('assets/places/university/university.jpg');background-size:cover;background-position:center;
}
body[data-scene="place"][data-place="universityClass1"] .scenery {
 background-image:url('assets/places/university/university1.jpg');background-size:cover;background-position:center;
}
.university-classroom-card{display:flex;flex-direction:column;gap:8px;max-width:420px;margin:18px auto;padding:12px;border-radius:14px}
.university-classroom-card img{width:100%;max-height:230px;object-fit:cover;border-radius:10px}
.university-hours,.university-intelligence{text-align:center;color:#ffe4a4;font-weight:700}


button.university-classroom-card{
 display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;
 width:min(100%,400px);max-width:400px;min-height:0;height:auto;
 margin:18px auto;padding:10px;gap:10px;overflow:hidden;
 border:1px solid #e4c27d;border-radius:18px;
 background:linear-gradient(145deg,#142c44ed,#18354be8);color:#f5f9ff;
 box-shadow:0 12px 30px #07172766;cursor:pointer;text-align:center;
}
button.university-classroom-card img{
 display:block;width:100%;height:210px;max-height:210px;object-fit:cover;
 border-radius:11px;pointer-events:none;
}
button.university-classroom-card strong{display:block;padding:5px 4px 8px;font-size:1.05rem;pointer-events:none}
button.university-classroom-card:hover{border-color:#ffe0a3;transform:translateY(-2px)}


.character-planner-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:13px 8px;margin:20px auto;max-width:640px}
.character-planner-slot{min-width:0;text-align:center;display:flex;flex-direction:column;align-items:center;gap:6px}
.character-planner-avatar,.character-planner-unknown{width:clamp(44px,8vw,76px);height:clamp(44px,8vw,76px);border-radius:50%;border:2px solid #e3c48b;object-fit:cover;background:#17354b;box-shadow:0 0 0 3px #e5c68c22}
.character-planner-unknown{display:grid;place-items:center;color:#e5c68c;font-size:30px;font-weight:800}
.character-planner-name{max-width:100%;font-size:11px;overflow-wrap:anywhere;color:#365d73}
@media(max-width:500px){.character-planner-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:12px 5px}.character-planner-avatar,.character-planner-unknown{width:48px;height:48px}}

@media(min-width:701px){.action-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:700px){.action-grid .action-button:nth-last-child(-n+2){grid-column:span 2}}


@media (min-width: 1000px){
 .screen{max-width:1480px;padding-left:clamp(44px,5vw,100px);padding-right:clamp(44px,5vw,100px)}
 .room-layout{padding-top:135px}
 .room-layout .floating-content{max-width:1160px}
 .action-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;padding-top:70px}
 .action-grid .action-button,.action-grid .action-button:nth-last-child(-n+2){grid-column:auto;min-height:175px;padding:24px 20px}
 .action-button svg{width:32px;height:32px}
 .action-button strong{font-size:22px}.action-button small{font-size:14px}
 .place-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
 .map-place{max-width:none}.place-card img{height:180px}
 .gym-room-grid{max-width:920px;gap:24px}.gym-room-card img{height:235px}
 .gym-room-name{font-size:1.3rem}
 .university-classroom-card{max-width:470px!important;width:min(100%,470px)!important}
 .university-classroom-card img{height:260px!important;max-height:260px!important}
 .scene-dialogue{max-width:1060px;grid-template-columns:104px minmax(0,1fr);gap:28px}
 .scene-actor{width:104px}.dialogue-bubble{font-size:1.1em;line-height:1.7}
 .scene-photo{max-width:min(100%,980px);max-height:75vh;object-fit:contain}
 .character-planner-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:20px 14px;max-width:800px}
 .character-planner-avatar,.character-planner-unknown{width:76px;height:76px}
 .character-planner-name{font-size:13px}
 .modal{width:min(780px,calc(100% - 60px));padding:34px}
}
@media (min-width: 700px) and (max-width: 999px){
 .action-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}
 .action-grid .action-button,.action-grid .action-button:nth-last-child(-n+2){grid-column:auto;min-height:150px}
 .place-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .map-place{max-width:none}
}
@media (max-width:699px){
 .action-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding-top:85px}
 .action-grid .action-button,.action-grid .action-button:nth-last-child(-n+2){grid-column:auto;min-height:128px}
 .action-button strong{font-size:16px}
 .character-planner-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
 .character-planner-avatar,.character-planner-unknown{width:min(12vw,54px);height:min(12vw,54px)}
 .university-classroom-card{width:min(100%,400px)!important}
 .university-classroom-card img{height:200px!important}
}

.scene-photo,.floating-content video,.floating-content img{max-width:100%}
.floating-content video{height:auto;max-height:80vh;object-fit:contain}
.character-planner-slot{min-width:0}


.university-closed-notice{margin:7px 6px 3px;text-align:center;font-size:.86rem;font-weight:650;color:#f2c48c}


button.university-classroom-card .classroom-gina-preview{display:flex;justify-content:center;align-items:center;width:100%;padding:14px 0 8px;pointer-events:none}
button.university-classroom-card .classroom-gina-preview .character-icon{display:flex;flex-direction:column;align-items:center;width:auto;padding:7px 7px 10px}
button.university-classroom-card .classroom-gina-preview .character-picture{display:block;position:relative;flex:none;width:96px;height:96px;margin:0 auto 13px}
button.university-classroom-card .classroom-gina-preview .character-picture img{display:block;width:100%!important;height:100%!important;max-height:none!important;object-fit:cover;object-position:50% 28%;border:2px solid #e3c48b;border-radius:50%!important;box-shadow:0 0 0 5px #f1f8ff17}
button.university-classroom-card .classroom-gina-preview .character-name{display:block;font-size:15px;font-weight:700;color:#f5e2bd}
@media(max-width:700px){button.university-classroom-card .classroom-gina-preview .character-picture{width:84px;height:84px}button.university-classroom-card .classroom-gina-preview .character-name{font-size:14px}}


:root{--ui-navy:#153c56;--ui-gold:#d5ae69;--ui-frost:#e9f7ff}
.toolbar{gap:9px}
.toolbar .icon-button{border:1px solid rgba(218,185,123,.78);background:linear-gradient(145deg,rgba(248,253,255,.97),rgba(194,230,250,.94));color:var(--ui-navy);box-shadow:0 6px 19px rgba(10,40,65,.28),inset 0 1px rgba(255,255,255,.85);transition:transform .16s,box-shadow .16s,background .16s}
.toolbar .icon-button:not(:disabled):hover{transform:translateY(-2px);box-shadow:0 9px 22px rgba(10,40,65,.36)}
.toolbar .icon-button:not(:disabled):active{transform:translateY(0)}
.menu-panel{background:linear-gradient(160deg,#f6fbff 0%,#e0f2fd 54%,#cde8f7 100%);border-right:2px solid var(--ui-gold);box-shadow:15px 0 65px #071f3580}
.menu-header{padding-top:30px;border-bottom:1px solid #cda96888}
.menu-game-title{color:#93703a;font-weight:800;letter-spacing:.16em}
.menu-header h2{color:#173e57;font-weight:800}
.menu-group{border-color:#b5d3e4}.group-label{font-weight:800;color:#8b6c3a}
.menu-row{border:1px solid transparent;transition:background .16s,border-color .16s,transform .16s}
.menu-row:is(button,a):hover{background:#fff9;border-color:#d6b77688;transform:translateX(2px)}
.menu-row>svg{width:23px;height:23px;color:#a17a3c}
.menu-row .small-button,.stepper{border-color:#cda96b;background:#f7fcff}
.menu-panel footer{border-top:1px solid #cda96877;margin-top:auto}
@media(max-width:700px){.menu-panel{width:min(390px,94vw)}.toolbar{gap:7px}}
@media(prefers-reduced-motion:reduce){.toolbar .icon-button,.menu-row{transition:none}}



:root{--ui-navy:#071b32;--ui-gold:#d9b46e;--ui-frost:#dff4ff;--ui-sky:#80c8f1;--ui-panel:#0c2944;--ui-border:rgba(220,181,105,.65)}
.toolbar .icon-button{background:linear-gradient(145deg,#dff6ff 0%,#9ed7f3 48%,#4c9ac9 100%);color:#092944;border:1.5px solid #e9c781;border-radius:17px;box-shadow:0 7px 0 rgba(4,19,36,.32),0 12px 28px rgba(0,11,29,.45),inset 0 1px 0 #fff9;transition:transform .2s ease,box-shadow .2s ease,filter .2s ease}
.toolbar .icon-button:not(:disabled):hover{filter:brightness(1.1);transform:translateY(-3px);box-shadow:0 10px 28px #001529a8,0 0 0 3px #e6c68444}
.toolbar .icon-button:focus-visible,.menu-row:focus-visible,.action-button:focus-visible{outline:3px solid #f8dc96;outline-offset:3px}
.game-hud{background:linear-gradient(115deg,rgba(5,24,43,.95),rgba(16,60,91,.94));border:1px solid #d8b46c88;box-shadow:0 10px 28px #00132477,inset 0 1px #d8f1ff26;color:#f0faff}
.menu-panel{background:linear-gradient(160deg,#061a30 0%,#0d3555 52%,#174b70 100%);border-right:2px solid #d9b46e;box-shadow:18px 0 65px #000d1bd9;color:#eaf7ff}
.menu-header{border-bottom:1px solid #d9b46e66}
.menu-game-title,.group-label{color:#e8c784;letter-spacing:.17em}
.menu-header h2{color:#f1faff;text-shadow:0 3px 15px #0008}
.menu-group{border-color:#b9dfff33}
.menu-row{color:#eaf6ff;border:1px solid transparent;border-radius:15px;background:transparent;transition:background .18s,border-color .18s,transform .18s}
.menu-row:is(button,a):hover{background:linear-gradient(90deg,#83c9f122,#d5b36a18);border-color:#d9b46e77;transform:translateX(3px)}
.menu-row>svg{color:#e8c47b;filter:drop-shadow(0 1px 5px #0005)}
.menu-row .small-button,.stepper{background:linear-gradient(150deg,#e6f8ff,#addcf2);border:1px solid #e2bf78;color:#143d56;box-shadow:inset 0 1px #fff8}
.menu-panel footer{border-top:1px solid #d9b46e66;color:#c6e4f4}
.action-grid{gap:clamp(12px,2vw,22px)}
.action-button{position:relative;overflow:hidden;isolation:isolate;background:linear-gradient(145deg,rgba(232,248,255,.97) 0%,rgba(163,214,241,.96) 58%,rgba(91,160,205,.96) 100%);border:1.5px solid #e3c37f;border-radius:24px;color:#0b2c48;box-shadow:0 14px 32px #00172977,inset 0 1px #fff9;transition:transform .2s ease,box-shadow .2s ease,filter .2s ease}
.action-button::before{content:"";position:absolute;inset:0 0 auto;height:4px;background:linear-gradient(90deg,transparent,#f3d99b 30%,#c28c3f 70%,transparent);pointer-events:none}
.action-button:hover:not(:disabled){transform:translateY(-4px);filter:saturate(1.08);box-shadow:0 19px 36px #001729a6,0 0 0 2px #e9c67d66}
.action-button:active:not(:disabled){transform:translateY(-1px)}
.action-button svg{color:#1d587b;filter:drop-shadow(0 2px 3px #fff9)}
.action-button strong{color:#0b2d48;font-weight:800;letter-spacing:-.025em}
.action-button small{color:#355d74}
.action-button:last-child{background:linear-gradient(145deg,#e6f1f5,#a8cbd8);border-color:#e4c27b}
.modal{background:linear-gradient(155deg,#f2fbff 0%,#dceffb 52%,#bddff2 100%);border:1.5px solid #d6b36e;border-radius:28px;box-shadow:0 25px 80px #001529aa,inset 0 1px #fff;color:#123b56}
.modal h1,.modal h2,.modal h3{color:#0c304e}
.modal button:not(:disabled){transition:filter .18s,transform .18s}
.modal button:not(:disabled):hover{filter:brightness(1.06)}
.place-card,.map-place,.gym-room-card{border-color:#d9b46e88;box-shadow:0 12px 30px #001a3470}
.return-room{border:1px solid #e1c17d;background:linear-gradient(145deg,#effaff,#b7e1f6);color:#123a55;box-shadow:0 10px 24px #00182e55}
@media(max-width:700px){.menu-panel{width:min(390px,94vw)}.action-button{border-radius:21px}.toolbar .icon-button{border-radius:15px}.modal{border-radius:24px}}
@media(prefers-reduced-motion:reduce){.toolbar .icon-button,.menu-row,.action-button,.modal button{transition:none!important}}


:root{--ui-navy:#06182b;--ui-gold:#d6b775;--ui-frost:#d8effc}
.toolbar{z-index:40;display:grid;grid-template-columns:repeat(2,44px);gap:8px;top:max(16px,env(safe-area-inset-top));left:max(16px,env(safe-area-inset-left));padding:8px;border:1px solid #a9d6ed35;border-radius:23px;background:linear-gradient(155deg,#061b2bd9,#0c3550bd);backdrop-filter:blur(18px);box-shadow:0 14px 36px #0009}
.toolbar .icon-button{width:44px;height:44px;min-width:0;border-radius:14px;border:1px solid #b8ddef55;background:linear-gradient(145deg,#214c68e8,#0a263fe8);color:#e3f6ff;box-shadow:inset 0 1px #fff2,0 4px 12px #0005;filter:none}
.toolbar .icon-button svg{width:23px;height:23px;stroke-width:1.9}
.toolbar .icon-button:not(:disabled):hover{background:linear-gradient(145deg,#31739b,#153d5b);border-color:#d6b775;transform:translateY(-2px)}
.game-hud{z-index:30;border-radius:17px;background:#061d30dc;border:1px solid #9bd7f755;backdrop-filter:blur(16px);box-shadow:0 9px 25px #0008}
.room-layout{padding-top:clamp(210px,30vh,290px)!important}
.room-layout .floating-content{min-height:0}
.room-layout .action-grid{margin-top:24px;padding-top:24px!important;gap:12px}
.action-grid .action-button,.action-button:last-child{position:relative;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-end;gap:7px;min-height:148px;border:1px solid #9fd7f65e;border-radius:22px;background:linear-gradient(145deg,rgba(11,43,68,.91),rgba(5,25,46,.94));color:#f0f9ff;box-shadow:0 14px 30px #0008,inset 0 1px #fff2;backdrop-filter:blur(15px);padding:20px;overflow:hidden}
.action-button::before{height:1px;inset:0 16px auto;background:linear-gradient(90deg,transparent,#d6b775,transparent);opacity:.9}
.action-button::after{content:'';position:absolute;right:-36px;top:-55px;width:145px;height:145px;border-radius:50%;background:radial-gradient(circle,#6dc8f526,transparent 68%);pointer-events:none}
.action-button svg{width:30px;height:30px;color:#e0bc76;filter:none;margin-bottom:auto}
.action-button strong{color:#f2f9ff;font-weight:750;font-size:clamp(17px,2vw,22px);letter-spacing:0}
.action-button small{color:#a9c9d9;font-size:12px}
.action-button:hover:not(:disabled){background:linear-gradient(145deg,#174a6c,#092c49);border-color:#d6b775;box-shadow:0 18px 36px #0009,0 0 0 1px #d6b77533;filter:none}
.menu-panel{background:linear-gradient(160deg,#071a2e,#0b2c48 55%,#123b58);border-right:1px solid #d6b77580}
.menu-row{min-height:58px;padding:12px 14px;border:1px solid #b8e0f31e;border-radius:14px;background:#a5dcf00b;margin:5px 0}
.menu-row:is(button,a):hover{background:#a9dff21d;border-color:#d6b77588}
.menu-row>svg{color:#d6b775}
.menu-row .small-button,.stepper{background:#173e58;border-color:#a7d9ed66;color:#effaff}
.modal{background:linear-gradient(155deg,#09233a,#103d59);border:1px solid #d6b7757d;color:#eaf8ff;box-shadow:0 25px 75px #000b,inset 0 1px #fff2}
.modal h1,.modal h2,.modal h3{color:#f5fbff}
.modal p,.modal small{color:#c3dbe8}
.modal .small-button,.modal button{border-color:#a7d9ed66}
@media(max-width:700px){
 .toolbar{grid-template-columns:repeat(2,39px);gap:6px;padding:7px;border-radius:18px;top:max(14px,env(safe-area-inset-top));left:12px}
 .toolbar .icon-button{width:39px;height:39px;border-radius:12px}
 .toolbar .icon-button svg{width:21px;height:21px}
 .room-layout{padding-top:clamp(235px,36vh,340px)!important;padding-left:18px;padding-right:18px}
 .room-layout .action-grid{padding-top:16px!important;margin-top:14px;gap:11px}
 .action-grid .action-button,.action-button:last-child{min-height:136px;padding:16px;border-radius:19px}
 .action-button svg{width:27px;height:27px}
 .action-button strong{font-size:18px}
 .game-hud{max-width:calc(100vw - 148px)}
}
@media(min-width:701px){.room-layout{padding-top:200px!important}}
@media(prefers-reduced-motion:reduce){.action-button,.toolbar .icon-button{transition:none}}


:root{--neo-cyan:#49c9ff;--neo-gold:#d5b87a;--neo-ink:#061222}
.toolbar{border:1px solid #4ec8f66b!important;background:linear-gradient(160deg,#051428e8,#092947dc)!important;box-shadow:0 0 0 1px #d5b87a33,0 12px 30px #000b,0 0 24px #18a8e62b!important}
.toolbar .icon-button{border:1px solid #63d1ff8c!important;background:linear-gradient(145deg,#153c60,#071c36)!important;box-shadow:inset 0 1px #a8edff60,0 0 13px #00aeff24!important;color:#d6f5ff!important}
.game-hud{background:linear-gradient(110deg,#061426ed,#0b3450ed)!important;border:1px solid #4acaff80!important;box-shadow:inset 0 1px #c8f5ff3a,0 8px 28px #000b!important}
.room-layout .room-heading{position:relative;z-index:1}
.room-layout .action-grid{margin-top:20px!important;padding-top:0!important;align-content:start}
.action-grid .action-button{min-height:155px!important;justify-content:flex-end!important;align-items:flex-start!important;gap:8px!important;border-radius:17px!important;border:1px solid #55c6ed99!important;background:radial-gradient(ellipse at 85% 0%,#4fc4f42b,transparent 60%),linear-gradient(155deg,#0c2947ed,#050e20f5)!important;box-shadow:inset 0 1px #d5f6ff48,inset 0 -2px #1769986b,0 10px 24px #0009,0 0 14px #15b4fa23!important;padding:18px!important;transition:transform .2s,box-shadow .2s,border-color .2s!important}
.action-grid .action-button::before{content:''!important;position:absolute!important;inset:0 0 auto!important;height:2px!important;background:linear-gradient(90deg,transparent,#d5b87a 30%,#54d6ff 70%,transparent)!important;opacity:.9!important}
.action-grid .action-button::after{content:''!important;position:absolute!important;top:9px!important;right:9px!important;width:46px!important;height:46px!important;border-radius:50%!important;background:radial-gradient(circle,#35b8f52c,transparent 70%)!important}
.action-grid .action-button svg{width:37px!important;height:37px!important;color:#f0d59c!important;filter:drop-shadow(0 0 7px #2cc4ff99)!important;margin-bottom:auto!important}
.action-grid .action-button strong{font-size:clamp(17px,2.2vw,22px)!important;letter-spacing:.01em!important;color:#f3fbff!important;text-shadow:0 1px 8px #0aa7f333!important}
.action-grid .action-button small{font-size:12px!important;color:#a5d9ec!important}
.action-grid .action-button:hover:not(:disabled){transform:translateY(-3px)!important;border-color:#dfbf7b!important;box-shadow:0 0 24px #1bc5ff65,0 14px 28px #0009!important}
.menu-panel{background:radial-gradient(ellipse at 100% 0%,#124b79 0%,transparent 50%),linear-gradient(165deg,#040d20,#071a34 65%,#09284a)!important;border-right:1px solid #4bc8f3a0!important;box-shadow:12px 0 55px #000b,inset -1px 0 #d4b67760!important;color:#eaf9ff!important}
.menu-header{border-bottom:1px solid #51b8e766!important}
.menu-header h2,.menu-game-title{color:#f2faff!important}
.menu-section-label{color:#dfc185!important}
.menu-row{background:linear-gradient(100deg,#11345399,#091c35a8)!important;border:1px solid #3da9d45c!important;border-radius:11px!important;color:#edfaff!important;box-shadow:inset 0 1px #b5eeff1d,0 4px 12px #0003!important}
.menu-row>svg{color:#dbbd7c!important;filter:drop-shadow(0 0 5px #23b6ff44)}
.menu-row:hover{border-color:#e3c17d!important;background:#174a6c!important}
.menu-panel .small-button,.menu-panel .stepper{background:linear-gradient(130deg,#0d2b4b,#124a70)!important;color:#eaf8ff!important;border:1px solid #50bce588!important}
.modal{background:radial-gradient(ellipse at 90% 0%,#18537a 0%,transparent 55%),linear-gradient(145deg,#061528,#0b2a48)!important;border:1px solid #55c6edb5!important;box-shadow:0 25px 70px #000c,inset 0 1px #e6faff35,0 0 26px #168dd733!important;color:#eaf8ff!important}
.modal h1,.modal h2,.modal h3{color:#fff!important;text-shadow:0 0 14px #43baf74a}
.modal button{border-radius:11px}
.modal .small-button{background:linear-gradient(120deg,#113957,#0a2542)!important;color:#e8f9ff!important;border:1px solid #61c7ed77!important}
@media(max-width:700px){
 .room-layout{padding-top:190px!important}
 .room-layout .room-heading{margin-top:0!important;padding-top:0!important}
 .room-layout .action-grid{margin-top:20px!important}
 .action-grid .action-button{min-height:150px!important;padding:14px!important}
 .action-grid .action-button svg{width:31px!important;height:31px!important}
 .toolbar{top:12px!important;left:12px!important}
 .game-hud{right:12px!important;top:14px!important;max-width:calc(100vw - 150px)!important}
}
@media(prefers-reduced-motion:reduce){.action-grid .action-button{transition:none!important}}



:root{--ui-night:#061426;--ui-mid:#0b2b48;--ui-glow:#58cfff;--ui-gold:#d8bc82;--ui-text:#edf9ff;--ui-muted:#b5d6e6}

.scene-dialogue{position:relative;isolation:isolate;gap:clamp(12px,2vw,24px)!important;align-items:center!important}
.scene-actor{min-width:0}
.dialogue-portrait,.player-portrait,.character-icon,.hero-portrait,.journal-portrait,.home-alison-portrait,.home-owner-avatar{border:2px solid var(--ui-gold)!important;border-radius:50%!important;box-shadow:0 0 0 4px #0b294bc9,0 0 17px #42bfff70,0 8px 22px #0008!important}
.dialogue-bubble{background:linear-gradient(130deg,#0a223bed,#0b3550f2)!important;color:var(--ui-text)!important;border:1px solid #59caff9c!important;box-shadow:inset 0 1px #c8efff38,0 12px 28px #0008,0 0 16px #0da7ef26!important;overflow-wrap:anywhere}
.dialogue-bubble::before{background:#0b2a45!important;border-color:#59caff9c!important}
.scene-speaker,.character-name,.character-planner-name{color:#f3d79c!important;text-shadow:0 2px 8px #0009}

.button,.small-button,.event-choice,.return-room,.home-event-start,.home-event-ready,.gym-training-actions button,.title-buttons button,.button-stack button{border:1px solid #59caff91!important;border-radius:14px!important;background:linear-gradient(135deg,#103c60f2,#071a32f5)!important;color:#eefaff!important;box-shadow:inset 0 1px #c9f4ff37,0 7px 18px #0006,0 0 12px #19a9ed20!important;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease!important}
.button:hover:not(:disabled),.small-button:hover:not(:disabled),.event-choice:hover:not(:disabled),.return-room:hover:not(:disabled),.title-buttons button:hover:not(:disabled){border-color:var(--ui-gold)!important;box-shadow:0 0 19px #40c6ff64,0 9px 20px #0008!important;transform:translateY(-2px)}
.button:disabled,.small-button:disabled,.event-choice:disabled{opacity:.55;cursor:not-allowed;transform:none!important}
.button.primary,.primary,.pc-upgrade-ready{border-color:#e0c187!important;background:linear-gradient(125deg,#0b4773,#0c2c4b)!important;color:#fff7df!important}

.place-card,.map-place,.map-people,.gym-room-card,.restaurant-card,.university-classroom-card,.home-visit-card,.visit-event-signal,.character-planner-slot,.journal-entry,.phone-message,.ledger,.status-row,.form-card,.prologue-card,.age-card,.character-modal,.gym-training-area,.university-intelligence,.university-closed-notice{background:radial-gradient(ellipse at 100% 0%,#2184ae26,transparent 60%),linear-gradient(150deg,#0c2b48ef,#06182dec)!important;border:1px solid #4fbde78c!important;border-radius:18px!important;color:var(--ui-text)!important;box-shadow:inset 0 1px #bdeeff30,0 12px 28px #0008!important}
.place-card h2,.place-card h3,.gym-room-name,.restaurant-card h2,.university-classroom-card h2,.university-classroom-card h3,.home-visit-card h3,.form-card h2,.prologue-card h2{color:#f4faff!important}
.place-label,.gym-room-desc,.modal-note,.muted,.phone-message small{color:var(--ui-muted)!important}

input:not([type=checkbox]):not([type=radio]),textarea,select{border:1px solid #66c9ec99!important;border-radius:12px!important;background:#09243bdc!important;color:#effaff!important;box-shadow:inset 0 1px 4px #0004!important}
input::placeholder,textarea::placeholder{color:#a4c7d8!important}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #f0d49c!important;outline-offset:3px!important}

.modal p,.modal label,.modal .status-row,.menu-panel p{color:inherit}
.modal .status-row{border-color:#3aa6d18c!important}
.modal .button,.modal .small-button{color:#effaff!important}

.university-classroom-card .classroom-gina-preview{border-radius:50%!important;aspect-ratio:1/1!important;object-fit:cover!important;object-position:center top!important;max-height:none!important}
@media(max-width:700px){
 .scene-dialogue{grid-template-columns:minmax(64px,82px) minmax(0,1fr)!important;column-gap:12px!important}
 .dialogue-bubble{padding:15px 17px!important;font-size:clamp(14px,3.7vw,17px)!important;line-height:1.6!important}
 .dialogue-portrait,.player-portrait{width:68px!important;height:68px!important}
 .scene-speaker{font-size:12px!important}
 .place-card,.gym-room-card,.restaurant-card,.university-classroom-card{min-width:0}
}
@media(prefers-reduced-motion:reduce){.button,.small-button,.event-choice,.return-room,.title-buttons button{transition:none!important}}



.restaurant-card,
.floating-content,
.ledger{
  background:transparent!important;
  border-color:transparent!important;
  box-shadow:none!important;
}

.restaurant-card .scene-dialogue,
.floating-content .scene-dialogue{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  padding:0!important;
}
.scene-dialogue{margin-block:28px 34px!important}
.dialogue-bubble{
  background:linear-gradient(125deg,rgba(7,29,52,.92),rgba(11,55,82,.9))!important;
  border:1px solid rgba(87,203,248,.7)!important;
  box-shadow:0 12px 28px rgba(0,0,0,.32),0 0 12px rgba(40,179,237,.16)!important;
}
.scene-dialogue .scene-actor{background:transparent!important;border:0!important;box-shadow:none!important}
.restaurant-card img,.restaurant-card video,
.floating-content img,.floating-content video{
  max-width:100%;
}

.ledger .status-row,.modal .status-row{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:18px!important;
  min-height:64px!important;
  padding:16px 4px!important;
  margin:0!important;
  border:0!important;
  border-bottom:1px solid rgba(116,190,224,.28)!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  line-height:1.5!important;
}
.ledger .status-row strong,.modal .status-row strong{
  flex:0 0 auto;
  margin-left:auto;
  text-align:right;
}
.ledger .button{margin-top:28px!important}

.character-modal .home-event-start,
.character-modal .event-choice,
.character-modal .button{margin-block:12px!important}
.character-modal .scene-dialogue{margin-bottom:30px!important}
.character-modal .dialogue-bubble{line-height:1.65!important}
@media(max-width:700px){
  .restaurant-card,.floating-content,.ledger{
    border:0!important;
    box-shadow:none!important;
  }
  .scene-dialogue{margin-block:24px 30px!important}
  .ledger .status-row,.modal .status-row{
    min-height:70px!important;
    padding:17px 3px!important;
    gap:12px!important;
    font-size:clamp(13px,3.5vw,16px)!important;
  }
}



.character-modal,
.character-modal .modal-content,
.character-modal .dialog-body,
.character-modal .dialog-content,
.character-modal .event-list,
.character-modal .event-choice,
.character-modal .scene-dialogue,
.character-modal .dialogue-row{
  background:transparent!important;
  background-image:none!important;
  border:0!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
}
.character-modal{padding:12px 0 20px!important}
.character-modal .dialog-header{padding:4px 10px 12px!important}
.character-modal .dialogue-bubble{
  background:linear-gradient(130deg,rgba(5,24,44,.94),rgba(10,48,76,.94))!important;
  border:1px solid #49b5e6!important;
  border-radius:22px!important;
  box-shadow:0 12px 24px #00101d75!important;
  padding:20px 22px!important;
  line-height:1.65!important;
}
.character-modal .event-choice{
  display:flex!important;
  flex-direction:column!important;
  gap:14px!important;
  padding:10px 0!important;
  margin:24px 0 34px!important;
}
.character-modal .event-number{
  display:block!important;
  color:#e7c887!important;
  font-weight:800!important;
  letter-spacing:.12em!important;
}
.character-modal .event-choice button{
  width:100%!important;
  min-height:64px!important;
  margin:0!important;
  border-radius:17px!important;
}
.character-modal .event-choice small{display:block!important;margin-top:3px!important}
.character-icon{
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  outline:0!important;
}
.character-icon .character-picture{
  border:0!important;
  border-radius:50%!important;
  background:transparent!important;
  box-shadow:none!important;
}
.character-icon .character-picture img{
  border:2px solid #e4c58b!important;
  border-radius:50%!important;
  box-shadow:0 0 0 4px #123a58,0 0 15px #48b6e877!important;
}
.character-icon .character-name{margin-top:8px!important}
@media(max-width:700px){
  .character-modal{width:100%!important;max-width:100%!important}
  .character-modal .event-choice{gap:12px!important;margin:22px 0 30px!important}
}


.toolbar{position:fixed}
.toolbar .event-shortcut{grid-column:2;justify-self:center;display:grid;place-items:center;width:40px;height:40px;margin-top:2px;padding:0;border:0;background:transparent;cursor:pointer}
.event-alert-mark{display:grid;place-items:center;width:29px;height:29px;border:2px solid #ffe19a;border-radius:50%;background:#6a490c;color:#fff5c5;font-size:20px;font-weight:900;line-height:1;box-shadow:0 0 10px #ffce56,0 0 25px #f5b729aa;text-shadow:0 0 8px #fff0b4;animation:room-event-pulse 1.5s ease-in-out infinite;pointer-events:none}
.toolbar .event-shortcut .event-alert-mark{width:36px;height:36px;font-size:25px}
.action-button .event-alert-mark{position:absolute;top:9px;right:9px;width:29px;height:29px;font-size:20px;z-index:2}
.action-button{position:relative}
.place-card{position:relative}
.place-card .map-event-signal{position:absolute;top:10px;right:10px;width:32px;height:32px;font-size:22px;z-index:3}
@media(prefers-reduced-motion:reduce){.event-alert-mark{animation:none}}


.age-badge,.age-badge span{color:#c82336!important;text-shadow:0 1px 0 #fff6,0 0 9px #e13c3c25!important}
.event-guide-row{display:flex;flex-direction:column;gap:5px;padding:13px 15px;margin:9px 0;border:1px solid #62b8de77;border-radius:15px;background:linear-gradient(125deg,#103550e8,#0a2239e8);color:#f2f9ff}
.event-guide-row strong{font-size:1.04rem;color:#f2d28c}.event-guide-row span{font-size:.91rem;color:#b9e8ff}
.slot-name-input{display:block;width:100%;max-width:260px;margin-top:6px;padding:7px 10px;border:1px solid #76b7d3;border-radius:9px;background:#e8f5ff;color:#15354c;font:inherit}



#game-dialog .slot {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 10px !important;
  align-items: stretch !important;
  width: 100% !important;
  min-width: 0 !important;
  padding: 18px 0 !important;
}
#game-dialog .slot-copy {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  min-width: 0 !important;
  overflow-wrap: anywhere;
  line-height: 1.55 !important;
}
#game-dialog .slot-copy strong,
#game-dialog .slot-copy small {
  display: block !important;
  width: 100% !important;
  overflow-wrap: anywhere;
}
#game-dialog .slot-name-input {
  display: block !important;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  min-height: 44px !important;
  margin: 10px 0 0 !important;
  padding: 10px 12px !important;
  font-size: 16px !important;
}
#game-dialog .slot > button.small-button {
  grid-column: span 2;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 44px !important;
  white-space: nowrap;
  padding: 10px 5px !important;
}
#game-dialog .slot > input[type="file"] { display: none !important; }
@media (min-width: 520px) {
  #game-dialog .slot > button.small-button {
    grid-column: span 1;
  }
}


.gym-room-card { position: relative; }
.gym-room-card .wrestling-new-signal {
  position: absolute !important; top: 10px !important; right: 10px !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  width: 42px !important; height: 42px !important; border-radius: 50% !important;
  color: #fff !important; font-size: 26px !important; font-weight: 900 !important;
  line-height: 1 !important; background: radial-gradient(circle at 35% 30%,#ff7070,#b81222 72%) !important;
  border: 2px solid #ffb4b4 !important; box-shadow: 0 0 0 3px #6e091855,0 0 20px #ff2535b3 !important;
  z-index: 5 !important; pointer-events: none !important;
}


.game-hud .hud-skip-button{flex:none;min-height:30px;min-width:48px;padding:4px 9px!important;margin:0 5px;border:1px solid #e4c17c;border-radius:9px;background:linear-gradient(135deg,#16486b,#09243d);color:#f6d995;font:700 12px/1.2 inherit;cursor:pointer;white-space:nowrap;box-shadow:0 0 10px #d6ac4c33}.game-hud .hud-skip-button:hover,.game-hud .hud-skip-button:focus-visible{background:#255a7d;outline:2px solid #e4c17c;outline-offset:2px}@media(max-width:700px){.game-hud .hud-skip-button{min-height:28px;min-width:43px;padding:3px 7px!important;font-size:11px}}


#intro-content .intro-visual-demo,#intro-content .intro-event-examples{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:14px;margin:14px auto 22px;padding:18px;border:1px solid rgba(93,205,255,.35);border-radius:18px;background:rgba(6,20,45,.68);max-width:560px;pointer-events:none;user-select:none}
#intro-content .intro-demo-button{padding:13px 25px;border:1px solid #e7bf66;border-radius:12px;color:#f4d889;background:linear-gradient(135deg,#122b53,#07162e);box-shadow:0 0 18px rgba(49,173,250,.22);font-weight:700;letter-spacing:.03em}
#intro-content .intro-example-character{display:flex;flex-direction:column;align-items:center;gap:8px;min-width:95px;color:#d8e8fb;font-size:13px;text-align:center}
#intro-content .intro-example-portrait{display:flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:50%;background:#09172f;border:1px solid #54769b}
#intro-content .intro-example-portrait .event-mark{position:static!important;display:flex!important;align-items:center;justify-content:center;width:38px;height:38px;border-radius:50%;font-size:24px;font-weight:900;transform:none!important}
#intro-content .intro-example-portrait .event-mark.red{color:#fff;background:#c72335;border:2px solid #ff697a;box-shadow:0 0 16px #e63b53}
#intro-content .intro-example-portrait .event-mark.yellow{color:#281900;background:#ffc846;border:2px solid #ffe48a;box-shadow:0 0 16px #ffbd30}
#intro-content .intro-example-portrait .event-mark.green{color:#fff;background:#15945b;border:2px solid #7affba;box-shadow:0 0 16px #29c981}
#intro-content .intro-planner-examples .intro-demo-button{width:100%;text-align:center}
#intro-content .intro-planner-circle{display:grid;place-items:center;width:49px;height:49px;border-radius:50%;border:1px solid #76c6ff;color:#f4d889;background:#112747;font-weight:800}


#intro-content .intro-journal-example{display:flex;flex-direction:column;align-items:center;gap:12px;pointer-events:none;user-select:none}
#intro-content .intro-journal-example .intro-demo-button{min-width:170px;text-align:center}
#intro-content .intro-journal-preview{display:flex;flex-direction:column;gap:7px;width:min(100%,300px);box-sizing:border-box;padding:13px 17px;border:1px solid #54769b;border-radius:12px;background:rgba(7,22,46,.88);color:#d8e8fb}
#intro-content .intro-journal-preview strong{color:#f4d889}
#intro-content .intro-planner-examples{pointer-events:none;user-select:none}


#intro-content .intro-system-example{pointer-events:none;user-select:none}
#intro-content .intro-system-example .intro-demo-button{min-width:150px;text-align:center}



.screen { zoom: var(--zoom); }
#game-dialog { zoom: var(--zoom); }
#game-menu nav, #game-menu .menu-header, #game-menu footer { zoom: var(--zoom); }


body[data-scene="place"][data-place="alisonHome"] .home-alison-portrait{border-radius:14px!important;border:0!important;box-shadow:none!important;width:min(100%,440px);height:auto;object-fit:contain;}



body[data-scene="place"][data-place="university"] button.university-classroom-card{
  display:flex!important;flex-direction:column!important;align-items:center!important;
  justify-content:flex-start!important;gap:10px!important;
  width:min(100%,440px)!important;max-width:440px!important;
  height:auto!important;min-height:0!important;
  padding:12px!important;margin:14px auto!important;
}
body[data-scene="place"][data-place="university"] button.university-classroom-card > img{
  width:100%!important;height:clamp(160px,36vw,250px)!important;
  max-height:250px!important;object-fit:cover!important;border-radius:12px!important;
}
body[data-scene="place"][data-place="university"] .classroom-people-preview{
  display:flex!important;flex-direction:row!important;align-items:flex-start!important;
  justify-content:center!important;gap:clamp(16px,7vw,48px)!important;
  width:100%!important;height:auto!important;min-height:0!important;
  aspect-ratio:auto!important;padding:6px 4px 10px!important;
  border-radius:0!important;box-shadow:none!important;background:none!important;
}
body[data-scene="place"][data-place="university"] .classroom-person{
  display:flex;flex-direction:column;align-items:center;gap:8px;
  width:clamp(80px,22vw,116px);height:auto;min-height:0;
}
body[data-scene="place"][data-place="university"] .classroom-person .character-picture{
  display:block;width:clamp(72px,18vw,98px)!important;height:clamp(72px,18vw,98px)!important;
  flex:none!important;overflow:hidden;border-radius:50%!important;
  border:2px solid #e3c48b!important;
}
body[data-scene="place"][data-place="university"] .classroom-person .character-picture img{
  display:block;width:100%!important;height:100%!important;max-height:none!important;
  object-fit:cover!important;object-position:50% 28%;border-radius:50%!important;
}
body[data-scene="place"][data-place="university"] .classroom-person .character-name{
  display:block;font-size:15px;font-weight:700;color:#f5e2bd;
}



body[data-scene="place"][data-place="university"] .classroom-person .classroom-preview-portrait{
  display:block!important;box-sizing:border-box!important;
  width:98px!important;height:98px!important;max-width:100%!important;
  padding:0!important;margin:0 auto!important;
  border:2px solid #e3c48b!important;border-radius:50%!important;
  background:transparent!important;overflow:hidden!important;
  box-shadow:none!important;
}
body[data-scene="place"][data-place="university"] .classroom-person .classroom-preview-portrait img{
  display:block!important;width:100%!important;height:100%!important;
  padding:0!important;margin:0!important;max-width:none!important;max-height:none!important;
  border:0!important;border-radius:50%!important;object-fit:cover!important;
  object-position:center 25%!important;box-shadow:none!important;
}
@media(max-width:480px){
  body[data-scene="place"][data-place="university"] .classroom-person .classroom-preview-portrait{
    width:84px!important;height:84px!important;
  }
}
/* V1.4 Patch 2 — Journal portraits stay circular and never expand into image previews. */
#dialog-content .journal-entry{min-width:0;overflow:hidden}
#dialog-content .journal-character-open{display:flex;align-items:center;gap:16px;width:100%;min-width:0;max-width:100%;padding:10px 12px;text-align:left;overflow:hidden}
#dialog-content .journal-character-open .journal-portrait,
#dialog-content .journal-entry > .journal-portrait{display:block;flex:0 0 72px;width:72px!important;height:72px!important;min-width:72px;max-width:72px!important;max-height:72px!important;aspect-ratio:1/1;object-fit:cover;object-position:center;border-radius:50%!important;pointer-events:none;user-select:none}
#dialog-content .journal-profile{min-width:0;max-width:100%;overflow:hidden}
#dialog-content .journal-detail-portrait{display:block;width:140px!important;height:140px!important;max-width:100%!important;max-height:140px!important;aspect-ratio:1/1;object-fit:cover;object-position:center;border:2px solid var(--ui-gold);border-radius:50%;margin:14px auto;pointer-events:none;user-select:none}
/* V1.4 Patch 3 — Journal profile triggers: remove native white button box. */
#dialog-content .journal-entry > .journal-character-open{
  grid-column:1 / -1;
  display:flex;
  align-items:center;
  gap:16px;
  width:100%;
  min-width:0;
  padding:0;
  margin:0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  color:inherit;
  font:inherit;
  cursor:pointer;
  appearance:none;
  -webkit-appearance:none;
  overflow:visible;
}
#dialog-content .journal-entry > .journal-character-open .journal-portrait{flex-shrink:0}
#dialog-content .journal-entry > .journal-character-open:focus-visible{outline:2px solid var(--ui-gold);outline-offset:4px;border-radius:8px}

/* Phone messages — PC-first layout, scoped to the phone dialog only. */
#game-dialog.phone-dialog{width:min(900px,calc(100vw - 64px));max-width:900px;padding:clamp(22px,3vw,38px)}
.phone-dialog .dialog-header{border-bottom:1px solid #52b7e25c;padding-bottom:19px;margin-bottom:26px}
.phone-dialog .phone-message-list{display:grid;gap:22px;min-width:0}
.phone-dialog .phone-message{display:grid;grid-template-columns:148px minmax(0,1fr);align-items:center;gap:24px;position:relative;min-width:0;padding:24px 28px!important;border-radius:23px!important;border:1px solid #64c8f0b0!important;background:radial-gradient(ellipse at 15% 0%,#1b658550,transparent 65%),linear-gradient(140deg,#123b5b,#081c34)!important;box-shadow:inset 0 1px #d4f7ff45,0 12px 24px #0007!important}
.phone-dialog .phone-message-identity{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;min-width:0}
.phone-dialog .phone-message-avatar,.phone-dialog .phone-message-district-icon{display:grid;place-items:center;width:96px;height:96px;max-width:100%;aspect-ratio:1;object-fit:cover;object-position:center;border:2px solid #d8bc82;border-radius:50%;box-shadow:0 0 0 4px #0b294bc9,0 0 15px #41c4f76b;pointer-events:none;user-select:none}
.phone-dialog .phone-message-district-icon{font-size:40px;color:#8bd8ff;border-color:#64c8f0;background:linear-gradient(145deg,#174d72,#071f39)}
.phone-dialog .phone-message-name{font-size:15px;line-height:1.3;text-align:center;color:#f1d59c;overflow-wrap:anywhere}
.phone-dialog .phone-message-body{border-left:1px solid #5bc6ee6e;padding:8px 8px 8px 25px;min-width:0}
.phone-dialog .phone-message-body p{margin:0!important;color:#eaf7ff!important;font-size:clamp(16px,1.7vw,20px);line-height:1.65;overflow-wrap:break-word}
.phone-dialog .phone-message-unread{display:inline-block;margin:0 0 12px;padding:5px 13px;border:1px solid #e6bd67;border-radius:999px;background:#aa7a223b;color:#ffe2a2;font-weight:750;font-size:13px}
.phone-dialog .phone-message-new{border-color:#eac579!important;box-shadow:inset 0 1px #fff4c35c,0 0 18px #dca64c48,0 12px 24px #0007!important}
.phone-dialog .phone-message-indicator{position:absolute;right:16px;top:14px;display:grid;place-items:center;width:26px;height:26px;border:2px solid #ffc54c;border-radius:50%;color:#ffe0a0;font-weight:800;background:#825a16;box-shadow:0 0 12px #e9b54799}
@media(max-width:650px){#game-dialog.phone-dialog{width:calc(100vw - 28px);padding:18px}.phone-dialog .phone-message-list{gap:16px}.phone-dialog .phone-message{grid-template-columns:88px minmax(0,1fr);gap:12px;padding:17px 12px!important}.phone-dialog .phone-message-avatar,.phone-dialog .phone-message-district-icon{width:68px;height:68px;font-size:28px}.phone-dialog .phone-message-name{font-size:12px}.phone-dialog .phone-message-body{padding:4px 4px 4px 12px}.phone-dialog .phone-message-body p{font-size:15px}.phone-dialog .phone-message-indicator{right:8px;top:7px;width:20px;height:20px;font-size:12px}.phone-dialog .phone-message-unread{font-size:11px;padding:3px 9px;margin-bottom:7px}}

body[data-scene="place"][data-place="studio"] .scenery{background-image:var(--studio-background);background-size:cover;background-position:center;}
body[data-scene="place"][data-place="universityOffice"] .scenery{background-image:url('assets/places/university/university2.jpg');background-size:cover;background-position:center}

/* V1.5 Patch 2: Diamond event cues and compact quiz choices. */
.map-shortcut.diamond-event-ready{position:relative}
.map-shortcut .diamond-map-signal{position:absolute;top:-10px;right:-11px;width:23px;height:23px;font-size:15px;z-index:5}
.university-classroom-card.diamond-office-ready{position:relative}
.university-classroom-card .diamond-office-signal{position:absolute;top:9px;right:9px;z-index:3}
.diamond-answer-choices{display:flex;flex-direction:column;align-items:flex-start;gap:6px;margin:12px 0}
.diamond-answer-choices .button{margin:0}

.university-classroom-card:has(.diamond-office-complete){position:relative}
.university-classroom-card .diamond-office-complete{position:absolute;top:9px;right:9px;z-index:3}

/* V1.5 Patch 8: bold internal monologue in Angela Event 1. */
.angela-thought{font-weight:800;}

/* Build 1 Patch 2: Kelibia map. Existing location/event logic remains unchanged. */
#map-screen{background:#061c31!important;padding:86px 12px 40px!important}
#map-screen .floating-content{max-width:1700px!important;margin:auto;width:100%}
#map-screen .floating-content>.eyebrow,#map-screen .floating-content>.on-photo{display:none}
#map-screen .floating-content>h1{font-size:clamp(22px,3vw,36px);margin:0 0 12px;color:#e8f8ff}
.kelibia-map-scroll{width:100%;height:min(70svh,760px);overflow:auto;overscroll-behavior:contain;border:1px solid #62bfe17a;border-radius:18px;background:#072138;touch-action:pan-x pan-y;scrollbar-width:thin}
.kelibia-map-canvas{position:relative;width:1648px;height:928px;flex:none}
.kelibia-map-art{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;pointer-events:none;user-select:none}
#map-places.kelibia-hotspots{position:absolute;inset:0;margin:0!important;display:block!important;pointer-events:none}
.kelibia-hotspots .map-place{position:absolute;transform:translate(-50%,-50%);width:auto!important;max-width:185px!important;min-width:90px;border:0!important;background:transparent!important;box-shadow:none!important;overflow:visible!important;pointer-events:auto}
.kelibia-hotspots .map-place[data-location="university"]{left:20%;top:12%}
.kelibia-hotspots .map-place[data-location="gym"]{left:48%;top:16%}
.kelibia-hotspots .map-place[data-location="restaurant"]{left:90%;top:24%}
.kelibia-hotspots .map-place[data-location="studio"]{left:11%;top:35%}
.kelibia-hotspots .map-place[data-location="park"]{left:56%;top:51%}
.kelibia-hotspots .map-place[data-location="beach"]{left:85%;top:15%}
.kelibia-hotspots .map-place:not([data-location="university"]):not([data-location="gym"]):not([data-location="restaurant"]):not([data-location="studio"]):not([data-location="park"]):not([data-location="beach"]){left:45%;top:63%}
.kelibia-hotspots .place-card{width:auto!important;border:1px solid #a7dfff!important;border-radius:40px!important;background:#06192de8!important;color:#fff!important;box-shadow:0 4px 15px #001a2dd9!important;padding:0!important;white-space:nowrap}
.kelibia-hotspots .place-card:disabled{opacity:.65;cursor:not-allowed}
.kelibia-hotspots .place-label{padding:8px 13px!important;gap:6px!important}
.kelibia-hotspots .place-label strong{font-size:14px!important;letter-spacing:0!important}
.kelibia-hotspots .visit-arrow{font-size:15px}
.kelibia-hotspots .map-people{display:flex!important;justify-content:center!important;padding:3px!important;gap:5px!important;background:#081c30a6!important;border-radius:20px!important}
.kelibia-hotspots .character-icon{padding:1px!important}
.kelibia-hotspots .character-picture{width:38px!important;height:38px!important;margin:0!important}
.kelibia-hotspots .character-name{display:none}
.kelibia-hotspots .character-picture .event-mark{width:15px;height:15px;font-size:10px}
.kelibia-hotspots .university-closed-notice{font-size:10px!important;padding:5px!important;margin:3px 0!important;white-space:normal}
.kelibia-map-controls{display:flex;gap:9px;align-items:center;margin:10px 0 20px;color:#d9efff;font-size:12px}
.kelibia-map-controls button{width:38px;height:36px;border-radius:9px;border:1px solid #87cce8;background:#103956;color:#fff;font-size:24px;cursor:pointer}
@media(max-width:700px){#map-screen{padding:110px 7px 30px!important}.kelibia-map-scroll{height:65svh}.kelibia-hotspots .place-label strong{font-size:14px!important}}

/* Build 1 Patch 3: full-viewport city map, with fixed game HUD above it. */
#map-screen.screen{position:fixed!important;inset:0!important;width:100vw!important;height:100dvh!important;min-height:0!important;max-width:none!important;margin:0!important;padding:0!important;overflow:hidden!important;background:#061c31!important;z-index:1}
#map-screen>.floating-content{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:none!important;margin:0!important;padding:0!important}
#map-screen .kelibia-map-scroll{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-height:none!important;border:0!important;border-radius:0!important;margin:0!important;background:#061c31!important;overflow:auto!important;scrollbar-width:none;touch-action:pan-x pan-y}
#map-screen .kelibia-map-scroll::-webkit-scrollbar{display:none}
#map-screen .kelibia-map-controls{position:fixed!important;left:max(12px,env(safe-area-inset-left))!important;bottom:max(14px,env(safe-area-inset-bottom))!important;z-index:5!important;margin:0!important;padding:5px!important;gap:7px!important;border-radius:13px;background:#051c32db;box-shadow:0 4px 18px #0009;backdrop-filter:blur(7px)}
#map-screen .kelibia-map-controls button{width:44px;height:44px}
#map-screen .kelibia-map-controls span{display:none}
body:has(#map-screen:not([hidden])) .toolbar,body:has(#map-screen:not([hidden])) .game-hud{z-index:15!important}
@media(max-width:700px){#map-screen.screen{padding:0!important}#map-screen .kelibia-map-scroll{height:100%!important}}

/* Build 1 Patch 4: cleaner map and dedicated room navigation. */
#map-screen .kelibia-map-controls{right:max(12px,env(safe-area-inset-right));width:auto;justify-content:flex-start}
#map-screen #kelibia-room{width:auto;min-width:92px;padding:0 12px;font-size:15px;font-weight:700;margin-left:10px}

/* Build 1 Patch 7: floating controls and distraction-free map. */
#map-screen .kelibia-map-controls{position:fixed!important;left:max(12px,env(safe-area-inset-left))!important;right:auto!important;bottom:max(14px,env(safe-area-inset-bottom))!important;width:auto!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;backdrop-filter:none!important;display:flex!important;gap:8px!important}
#map-screen .kelibia-map-controls button{background:#08233bdc!important;border:1px solid #8bd3f0!important;box-shadow:0 4px 12px #0017289c!important;backdrop-filter:blur(5px)}
#map-screen #kelibia-room{margin-left:8px!important}
#map-screen #kelibia-hide-ui{position:fixed;right:max(12px,env(safe-area-inset-right));bottom:max(14px,env(safe-area-inset-bottom));z-index:25;padding:10px 19px;min-height:44px;border-radius:12px;background:#08233be8;color:#fff;border:1px solid #8bd3f0;box-shadow:0 4px 12px #0017289c;font-weight:700;cursor:pointer}
body:has(#map-screen.map-ui-hidden:not([hidden])) .toolbar,body:has(#map-screen.map-ui-hidden:not([hidden])) .game-hud,body:has(#map-screen.map-ui-hidden:not([hidden])) .global-completion,#map-screen.map-ui-hidden .kelibia-hotspots,#map-screen.map-ui-hidden .kelibia-map-controls{visibility:hidden!important;pointer-events:none!important}
#map-screen.map-ui-hidden #kelibia-hide-ui{visibility:visible!important;pointer-events:auto!important}


/* Build 1 / Patch 3: first-person interactive room. Existing handlers untouched. */
body[data-scene="room"] .scenery{
 background-image:url("kelibia-luxury-room-clean.png")!important;
 background-position:center center!important;background-size:cover!important;
}
body[data-scene="room"] .wash{background:transparent!important;pointer-events:none!important}
#room-screen.room-layout{
 position:fixed!important;inset:0!important;width:100%!important;
 height:100dvh!important;min-height:0!important;max-width:none!important;
 padding:0!important;margin:0!important;overflow:hidden!important;
 background:transparent!important;
}
#room-screen .floating-content{
 position:static!important;width:100%!important;max-width:none!important;
 min-height:0!important;margin:0!important;padding:0!important;
}
#room-screen .room-heading{display:none!important}
#room-screen .room-hotspots{
 display:block!important;position:absolute!important;inset:0!important;
 margin:0!important;padding:0!important;pointer-events:none!important;
}
#room-screen .room-point{
 position:absolute!important;display:flex!important;flex-direction:column!important;
 justify-content:center!important;align-items:center!important;
 width:auto!important;min-width:75px!important;max-width:135px!important;
 min-height:48px!important;height:auto!important;padding:8px 12px!important;
 margin:0!important;grid-column:auto!important;pointer-events:auto!important;
 border:1px solid #8dd9ff!important;border-radius:15px!important;
 background:#061d34df!important;color:#f1faff!important;
 box-shadow:0 5px 18px #0009,0 0 12px #32bfff55!important;
 backdrop-filter:blur(7px)!important;transform:translate(-50%,-50%)!important;
 text-align:center!important;z-index:3!important;
}
#room-screen .room-point svg{width:23px!important;height:23px!important;margin:0 0 3px!important;color:#b9eaff!important}
#room-screen .room-point strong{font-size:clamp(12px,1.15vw,16px)!important;line-height:1.1!important}
#room-screen .room-point small{display:none!important}
#room-screen .room-point:hover{border-color:#ffe6a8!important}
#room-screen .room-point-sleep{left:23%;top:63%}
#room-screen .room-point-map{left:62%;top:36%}
#room-screen .room-point-pc{left:83%;top:52%}
#room-screen .room-point-work{left:77%;top:70%}
#room-screen .room-point-visit{left:44%;top:43%}
#room-screen .room-point-guests{left:46%;top:29%}
#room-screen .room-point-planner{left:53%;top:86%}
#room-screen #room-events{
 position:fixed!important;left:50%!important;bottom:calc(8px + env(safe-area-inset-bottom))!important;
 transform:translateX(-50%);z-index:5;max-width:min(70vw,500px);
 max-height:24vh;overflow:auto;padding:0!important;
}
#room-screen #room-ui-toggle{
 position:fixed;right:max(12px,env(safe-area-inset-right));
 bottom:max(12px,env(safe-area-inset-bottom));z-index:16;
 padding:11px 20px;border:1px solid #8bd3f0;border-radius:14px;
 color:#fff;background:#08233be8;font-weight:700;min-height:45px;
 box-shadow:0 4px 12px #0017289c;cursor:pointer;
}
#room-screen.room-ui-hidden .room-hotspots,
#room-screen.room-ui-hidden #room-events{visibility:hidden!important;pointer-events:none!important}
body:has(#room-screen.room-ui-hidden:not([hidden])) .toolbar,
body:has(#room-screen.room-ui-hidden:not([hidden])) .game-hud,
body:has(#room-screen.room-ui-hidden:not([hidden])) .global-completion{
 visibility:hidden!important;pointer-events:none!important;
}
@media(max-width:700px){
 #room-screen .room-point{min-width:60px!important;max-width:92px!important;padding:6px 8px!important}
 #room-screen .room-point strong{font-size:11px!important}
 #room-screen .room-point svg{width:18px!important;height:18px!important}
 #room-screen .room-point-planner{left:52%;top:78%}
}

/* Patch 4: Room hotspots are true DOM buttons, never baked into artwork. */
#room-screen .room-point-visit{left:62%!important;top:39%!important}
#room-screen .room-point-work{left:auto!important;right:205px!important;bottom:max(12px,env(safe-area-inset-bottom))!important;top:auto!important;transform:none!important}
#room-screen .room-point-planner{left:auto!important;right:108px!important;bottom:max(12px,env(safe-area-inset-bottom))!important;top:auto!important;transform:none!important}
#room-screen #room-ui-toggle{right:max(12px,env(safe-area-inset-right))!important}
#room-screen .room-point-pc{left:85%!important;top:51%!important}
#room-screen .room-point-guests{left:62%!important;top:23%!important}
@media(max-width:700px){
 #room-screen .room-point-work{right:174px!important}
 #room-screen .room-point-planner{right:93px!important}
 #room-screen .room-point-work,#room-screen .room-point-planner{max-width:80px!important;min-width:65px!important}
}

/* Patch 6: room-only compact horizontal status bar and vertical shortcuts.
   Existing HUD values and shortcut handlers remain the source of truth. */
body[data-scene="room"] .toolbar{
  display:flex!important;flex-direction:column!important;align-items:center!important;
  grid-template-columns:none!important;gap:7px!important;
  top:max(88px,env(safe-area-inset-top))!important;
  left:max(12px,env(safe-area-inset-left))!important;
  padding:8px 6px!important;border:1px solid #6cb7e280!important;
  border-radius:22px!important;background:#061c36d9!important;
  box-shadow:0 5px 22px #0007!important;backdrop-filter:blur(10px)!important;
}
body[data-scene="room"] .toolbar>.icon-button{
  grid-column:auto!important;grid-row:auto!important;justify-self:auto!important;
  width:42px!important;height:42px!important;
  border:1px solid #74bde6a0!important;border-radius:13px!important;
  background:#092544!important;color:#e0f4ff!important;
}
body[data-scene="room"] .toolbar>.icon-button svg{width:23px!important;height:23px!important}
body[data-scene="room"] .game-hud{
  display:flex!important;position:fixed!important;z-index:9!important;
  top:max(12px,env(safe-area-inset-top))!important;
  left:50%!important;right:auto!important;transform:translateX(-50%)!important;
  width:max-content!important;max-width:calc(100vw - 210px)!important;
  padding:6px 9px!important;gap:7px!important;flex-wrap:nowrap!important;
  justify-content:center!important;border-radius:18px!important;
  background:transparent!important;border:0!important;box-shadow:none!important;
  font-size:clamp(11px,1.3vw,16px)!important;
}
body[data-scene="room"] .game-hud .hud-day,
body[data-scene="room"] .game-hud .hud-time{
  white-space:nowrap!important;padding:8px 13px!important;line-height:22px!important;
  border:1px solid #8bb9e25e!important;border-radius:20px!important;
  background:#081e3de9!important;color:#f4faff!important;
  box-shadow:0 4px 13px #0006!important;
}
body[data-scene="room"] .game-hud .hud-day::before{content:"▦  ";color:#9ed8ff}
body[data-scene="room"] .game-hud .hud-time{border-right:1px solid #8bb9e25e!important}
body[data-scene="room"] .game-hud .hud-time::before{content:"◷  ";color:#ffdf9a}
body[data-scene="room"] .game-hud .hud-money{
  position:fixed!important;top:0!important;
  left:calc(50vw - 110px)!important;transform:translateX(0)!important;
  white-space:nowrap!important;min-width:95px!important;text-align:center!important;
  padding:8px 15px!important;line-height:22px!important;
  border:1px solid #8bb9e25e!important;border-radius:20px!important;
  background:#081e3de9!important;color:#fff!important;
  box-shadow:0 4px 13px #0006!important;
}
body[data-scene="room"] .game-hud .hud-money::before{content:"💵  "}
body[data-scene="room"] .game-hud .hud-skip-button{
  position:fixed!important;top:48px!important;right:0!important;
  min-height:32px!important;padding:5px 10px!important;
  font-size:12px!important;border-radius:12px!important;
}
@media(max-width:760px){
 body[data-scene="room"] .toolbar{top:max(65px,env(safe-area-inset-top))!important;left:6px!important;padding:5px 3px!important;gap:4px!important}
 body[data-scene="room"] .toolbar>.icon-button{width:35px!important;height:35px!important}
 body[data-scene="room"] .toolbar>.icon-button svg{width:19px!important;height:19px!important}
 body[data-scene="room"] .game-hud{left:51%!important;max-width:calc(100vw - 100px)!important;gap:3px!important;padding:2px!important;font-size:10px!important}
 body[data-scene="room"] .game-hud .hud-day,
 body[data-scene="room"] .game-hud .hud-time{padding:5px 6px!important;line-height:18px!important}
 body[data-scene="room"] .game-hud .hud-money{left:auto!important;right:-2px!important;top:33px!important;min-width:65px!important;padding:4px 8px!important;line-height:18px!important}
 body[data-scene="room"] .game-hud .hud-skip-button{top:67px!important;right:0!important}
}

/* Build 1 Patch 7 — blue luminous icons with a soft golden halo.
   Room presentation only; no gameplay event handlers or map styles changed. */
body[data-scene="room"] .toolbar>.icon-button,
body[data-scene="room"] #room-screen .room-point,
body[data-scene="room"] #room-screen #room-ui-toggle {
  border:1px solid #86d8ff!important;
  background:linear-gradient(145deg,#123b63ed,#06192feF)!important;
  color:#e2f7ff!important;
  box-shadow:0 0 0 1px #ffe3a455,0 0 9px 2px #ffcb6390,0 0 18px 3px #2caeff70,0 5px 15px #0009!important;
  text-shadow:0 0 6px #7ddcff8c!important;
  transition:box-shadow .18s ease,border-color .18s ease!important;
}
body[data-scene="room"] .toolbar>.icon-button svg,
body[data-scene="room"] #room-screen .room-point svg {
  color:#a8e7ff!important;
  filter:drop-shadow(0 0 3px #4fc8ff) drop-shadow(0 0 5px #f4c86a);
}
body[data-scene="room"] .toolbar>.icon-button:hover,
body[data-scene="room"] .toolbar>.icon-button:focus-visible,
body[data-scene="room"] #room-screen .room-point:hover,
body[data-scene="room"] #room-screen .room-point:focus-visible,
body[data-scene="room"] #room-screen #room-ui-toggle:hover,
body[data-scene="room"] #room-screen #room-ui-toggle:focus-visible {
  border-color:#ffe1a0!important;
  box-shadow:0 0 0 2px #ffe1a088,0 0 15px 4px #ffca69b0,0 0 24px 5px #36bfff8a!important;
}
@media(prefers-reduced-motion:reduce){
 body[data-scene="room"] .toolbar>.icon-button,
 body[data-scene="room"] #room-screen .room-point,
 body[data-scene="room"] #room-screen #room-ui-toggle{transition:none!important}
}


/* Build 1 Patch 9: room HUD responsive layout fix.
   Override the earlier fixed-position child rules without affecting the map. */
body[data-scene="room"] .game-hud:not([hidden]){
  position:fixed!important;
  display:flex!important;
  flex-flow:row wrap!important;
  align-items:center!important;
  justify-content:center!important;
  gap:clamp(4px,0.8vw,10px)!important;
  top:max(10px,env(safe-area-inset-top))!important;
  left:50%!important;right:auto!important;
  transform:translateX(-50%)!important;
  width:max-content!important;
  max-width:min(850px,calc(100vw - 140px))!important;
  padding:4px!important;
  box-sizing:border-box!important;
  background:transparent!important;
}
body[data-scene="room"] .game-hud:not([hidden]) > .hud-day,
body[data-scene="room"] .game-hud:not([hidden]) > .hud-time,
body[data-scene="room"] .game-hud:not([hidden]) > .hud-money,
body[data-scene="room"] .game-hud:not([hidden]) > .hud-skip-button{
  position:static!important;inset:auto!important;
  left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;
  transform:none!important;flex:0 0 auto!important;
  margin:0!important;max-width:100%!important;
  box-sizing:border-box!important;
  min-height:34px!important;
  padding:6px 11px!important;
  line-height:20px!important;
  white-space:nowrap!important;
  border-radius:16px!important;
}
body[data-scene="room"] .game-hud:not([hidden]) > .hud-money{
  min-width:0!important;
  text-align:center!important;
  border:1px solid #8bb9e25e!important;
}
body[data-scene="room"] .game-hud:not([hidden]) > .hud-skip-button{
  font-size:12px!important;
  border:1px solid #8bb9e25e!important;
}
@media(max-width:760px){
  body[data-scene="room"] .game-hud:not([hidden]){
    max-width:calc(100vw - 98px)!important;
    top:max(6px,env(safe-area-inset-top))!important;
    gap:4px!important;
    font-size:10px!important;
  }
  body[data-scene="room"] .game-hud:not([hidden]) > .hud-day,
  body[data-scene="room"] .game-hud:not([hidden]) > .hud-time,
  body[data-scene="room"] .game-hud:not([hidden]) > .hud-money,
  body[data-scene="room"] .game-hud:not([hidden]) > .hud-skip-button{
    min-height:27px!important;
    padding:3px 7px!important;
    line-height:19px!important;
    font-size:10px!important;
  }
}
@media(max-width:440px){
  body[data-scene="room"] .game-hud:not([hidden]){
    left:auto!important;right:6px!important;
    transform:none!important;
    max-width:calc(100vw - 65px)!important;
    justify-content:flex-end!important;
  }
}


/* Patch 12 — Map is a true opaque full-screen layer; no room/background bleed. */
#map-screen.screen:not([hidden]){
  position:fixed!important;inset:0!important;
  width:100vw!important;height:100dvh!important;
  background:#061c31!important;isolation:isolate!important;
  overflow:hidden!important;
}
#map-screen.screen:not([hidden]) .kelibia-map-scroll{
  position:absolute!important;inset:0!important;
  width:100%!important;height:100%!important;
  background:#061c31!important;overflow:auto!important;
}
#map-screen.screen:not([hidden]) .kelibia-map-canvas{
  position:relative!important;max-width:none!important;max-height:none!important;
  min-width:100%!important;min-height:100%!important;
  flex-shrink:0!important;
}
#map-screen.screen:not([hidden]) .kelibia-map-art{
  display:block!important;width:100%!important;height:100%!important;
  object-fit:fill!important;
}

/* Patch 13: keep fullscreen map independent from Preferences Zoom (e.g. 80%). */
#map-screen.screen { zoom: 1 !important; }

/* Patch 14: accommodate the longer approved game title on mobile. */
#game-title .title-blue{font-size:clamp(32px,6.5vw,76px);letter-spacing:.035em;overflow-wrap:normal;}
#game-title .title-small{letter-spacing:.16em;}
@media(max-width:480px){#game-title .title-blue{font-size:clamp(27px,8vw,40px);letter-spacing:.015em}.age-card .wordmark{font-size:clamp(21px,5.7vw,32px);}}

/* Room Build shortcut beside Hide */
#room-screen #room-build-button{position:fixed;right:max(100px,calc(88px + env(safe-area-inset-right)));bottom:max(12px,env(safe-area-inset-bottom));z-index:16;padding:11px 20px;border:1px solid #8bd3f0;border-radius:14px;color:#fff;background:#08233be8;font-weight:700;min-height:45px;box-shadow:0 4px 12px #0017289c;cursor:pointer}

/* Patch 2: Mom event follow-up — red star on Build until the home is upgraded. */
#room-screen #room-build-button.build-followup-ready::after{content:'★';position:absolute;top:-15px;right:-12px;color:#ff303b;font-size:29px;line-height:1;text-shadow:0 1px 2px #2c0000,0 0 8px #ff4040;pointer-events:none;}

/* Alison Home Event 3: three persistent horizontal icon choices */
.alison-event3-choices{display:flex;justify-content:center;align-items:center;gap:18px;flex-wrap:nowrap;margin:30px auto 22px;max-width:600px}
.alison-event3-option{flex:1 1 0;min-width:0;max-width:160px;padding:12px;border:1px solid #d9c08b;border-radius:14px;background:#13354cdd;cursor:pointer}
.alison-event3-icon{display:block;width:100%;max-width:96px;aspect-ratio:1;object-fit:contain;margin:auto}
.alison-event3-result,.alison-event3-finale{width:100%}
.alison-event3-ko{display:block;margin:22px auto 32px;min-width:160px}
@media(max-width:450px){.alison-event3-choices{gap:8px}.alison-event3-option{padding:6px}.alison-event3-icon{max-width:75px}}

/* Alison Event 3 — special glowing red choice buttons */
.alison-event3-option{
  position:relative;isolation:isolate;overflow:visible;
  border:2px solid #ff475b;border-radius:18px;
  background:linear-gradient(145deg,#50121f 0%,#1b101d 58%,#390e20 100%);
  box-shadow:0 0 0 1px #ff7b8770 inset,0 0 13px #f20b48a6,0 0 28px #d60b3c78,0 8px 20px #0008;
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
  animation:alison-event3-glow 2.6s ease-in-out infinite alternate;
}
.alison-event3-option::before{
  content:'';position:absolute;inset:4px;border:1px solid #ffb0b35c;
  border-radius:12px;pointer-events:none;
}
.alison-event3-option:hover,.alison-event3-option:focus-visible{
  transform:translateY(-3px) scale(1.04);border-color:#ff9caa;
  box-shadow:0 0 0 1px #ffb7c4 inset,0 0 24px #ff2b59,0 0 45px #ec1248a8,0 10px 22px #000a;
}
.alison-event3-option:active{transform:translateY(0) scale(.98)}
.alison-event3-option:focus-visible{outline:2px solid #ffe0e5;outline-offset:4px}
.alison-event3-icon{position:relative;z-index:1;filter:drop-shadow(0 0 7px #ff7284aa)}
@keyframes alison-event3-glow{
  from{box-shadow:0 0 0 1px #ff7b8770 inset,0 0 9px #f20b4880,0 0 20px #d60b3c55,0 8px 20px #0008}
  to{box-shadow:0 0 0 1px #ff9d9f9c inset,0 0 19px #ff245ac2,0 0 36px #d60b3c9a,0 8px 20px #0008}
}
@media(prefers-reduced-motion:reduce){.alison-event3-option{animation:none;transition:none}}

/* LV5 Eagle rank cinematic — isolated overlay */
.eagle-rank-overlay{position:fixed;inset:0;z-index:2147483000;background:#05070deF;display:flex;align-items:center;justify-content:center;padding:clamp(10px,3vw,36px)}
.eagle-rank-frame{width:min(100%,1000px);height:min(85vh,610px);border:0;border-radius:20px;background:#07090e;box-shadow:0 15px 80px #000b}
.eagle-rank-continue{position:absolute;bottom:max(15px,env(safe-area-inset-bottom));right:clamp(15px,4vw,42px);border:1px solid #d5a653;border-radius:10px;background:#1d1a16;color:#ffe2a0;padding:10px 20px;font-weight:700;cursor:pointer}
.eagle-rank-continue:hover{background:#46331b}

/* Pre-title player responsibility page */
.disclaimer-card{max-width:680px}.disclaimer-card p:not(.eyebrow){line-height:1.8;margin:16px 0}.disclaimer-card .button-stack{margin-top:28px}

/* Prologue story illustrations only */
.prologue-story{width:min(100%,760px)}
.prologue-story .prologue-photo{display:block;width:100%;height:auto;max-height:430px;object-fit:cover;border-radius:16px;margin:18px 0 30px;box-shadow:0 12px 30px #0005;border:1px solid #ffffff25}
.prologue-story p:not(.eyebrow){margin-top:16px;margin-bottom:16px}
@media(max-width:600px){.prologue-story .prologue-photo{max-height:340px;border-radius:12px;margin:14px 0 25px}}

/* Upgrade celebration for restaurant levels 2–4 only; LV5 keeps its Eagle animation. */
.restaurant-update-overlay{position:fixed;inset:0;z-index:2147483000;background:#05070def;display:flex;align-items:center;justify-content:center;padding:clamp(10px,3vw,36px)}
.restaurant-update-video{display:block;max-width:100%;max-height:85vh;width:min(100%,1000px);height:auto;object-fit:contain;border-radius:18px;background:#07090e;box-shadow:0 15px 80px #000b}
.restaurant-update-continue{position:absolute;bottom:max(15px,env(safe-area-inset-bottom));right:clamp(15px,4vw,42px);border:1px solid #d5a653;border-radius:10px;background:#1d1a16;color:#ffe2a0;padding:10px 20px;font-weight:700;cursor:pointer}
.restaurant-update-continue:hover{background:#46331b}

/* Critical fixes: only reveal Build after Kendra, and restore visible red special-event star. */
#room-screen #room-build-button[hidden]{display:none!important}
#room-screen .mom-special-star{display:grid;place-items:center;width:64px;height:64px;border:3px solid #ff9aa3;border-radius:50%;background:radial-gradient(circle at 35% 30%,#ff6a75,#a5001a 70%,#470008);color:#fff1f1;font-size:39px;font-weight:900;line-height:1;cursor:pointer;box-shadow:0 0 12px #ff193d,0 0 28px #f0003cbb,0 0 45px #c7003488,inset 0 2px 6px #ffd1d1a0;text-shadow:0 0 12px #fff,0 0 20px #ff7589;animation:kendra-red-star-pulse 1.6s ease-in-out infinite}
@keyframes kendra-red-star-pulse{0%,100%{transform:scale(1);filter:brightness(1)}50%{transform:scale(1.1);filter:brightness(1.22)}}
@media(prefers-reduced-motion:reduce){#room-screen .mom-special-star{animation:none}}

/* Patch 6: second-floor menu, thumbnails and accessible controls. */
#room-second-floor-button{position:absolute;left:5%;bottom:13%;z-index:7;min-width:76px;padding:12px 16px;border:1px solid #7dd5ef;border-radius:18px;background:#08283dd9;color:white;font-weight:700;cursor:pointer}
#room-second-floor-button[hidden]{display:none!important}
.second-floor-choice{display:flex;align-items:center;gap:16px;width:100%;margin:10px 0;text-align:left}
.second-floor-cover{display:block;width:128px;max-width:45%;height:80px;object-fit:cover;border-radius:10px}

/* Patch 6 correction: second floor is a separate view, not the base room. */
#room-first-floor-button{position:absolute;left:5%;bottom:13%;z-index:18;padding:12px 16px;border:1px solid #7dd5ef;border-radius:18px;background:#08283de8;color:#fff;font-weight:700;cursor:pointer}
#room-first-floor-button[hidden]{display:none!important}
#room-screen.second-floor-active #room-actions,
#room-screen.second-floor-active #room-events,
#room-screen.second-floor-active #room-build-button,
#room-screen.second-floor-active #room-second-floor-button,
#room-screen.second-floor-active #room-ui-toggle{display:none!important}
#room-screen.second-floor-active #room-first-floor-button{display:block!important;visibility:visible!important;pointer-events:auto!important}

/* Second-floor return control must size to its content on mobile and desktop. */
#room-first-floor-button{width:auto;max-width:90%;box-sizing:border-box}

/* Final pre-merge patch: PC-first centered introductory screens only. */
#age-screen,
#disclaimer-screen,
#title-screen,
#name-screen {
  justify-content: center;
  justify-items: center;
  align-items: center;
  text-align: center;
}
#age-screen .age-card {
  margin-left: 0;
  margin-right: 0;
}
#age-screen .age-badge { margin-left: auto; margin-right: auto; }
#title-screen .title-copy { margin-left: auto; margin-right: auto; text-align: center; }
#title-screen .gold-rule { margin-left: auto; margin-right: auto; }
#title-screen .title-buttons { margin-left: auto; margin-right: auto; }
#disclaimer-screen .disclaimer-card,
#name-screen .form-card { margin-left: auto; margin-right: auto; text-align: center; }
#disclaimer-screen .disclaimer-card ul { list-style-position: inside; padding-left: 0; padding-right: 0; }
#disclaimer-screen .disclaimer-card li { text-align: center; }
#name-screen .form-card label { text-align: center; }
#name-screen .form-card input { text-align: center; }
#age-screen .button.primary,
#disclaimer-screen .button.primary,
#title-screen .button.primary,
#name-screen .button.primary { justify-content: center; }
/* Preserve the original button label while keeping the decorative arrow from shifting its center. */
#age-screen .button.primary span,
#title-screen .button.primary span,
#name-screen .button.primary span { position: absolute; right: 18px; }
#age-screen .button.primary,
#title-screen .button.primary,
#name-screen .button.primary { position: relative; }
@media(max-width:700px) {
  #age-screen .age-card { margin-left: 0; }
  #title-screen .title-copy { width: 100%; }
}

/* Alison orientation: completion notice directly above Continue (desktop first). */
#intro-screen .intro-content-notice { box-sizing:border-box; display:flex; align-items:center; justify-content:center; gap:14px; width:min(100%,760px); margin:32px auto 18px; padding:17px 22px; border:1px solid rgba(255,95,105,.65); border-left:4px solid #ff4d61; border-radius:14px; background:linear-gradient(110deg,rgba(115,20,36,.68),rgba(40,13,24,.84)); box-shadow:0 8px 26px rgba(0,0,0,.18), inset 0 1px rgba(255,255,255,.06); color:#ffd5d9; text-align:center; }
#intro-screen .intro-content-notice p { margin:0; color:inherit; font-weight:650; font-size:clamp(15px,1.2vw,18px); line-height:1.55; }
#intro-screen .intro-content-notice-icon { display:grid; place-items:center; flex:0 0 30px; height:30px; border-radius:50%; background:#e23c52; color:#fff; font-weight:900; font-size:19px; box-shadow:0 0 14px rgba(255,55,83,.36); }
@media(max-width:600px) { #intro-screen .intro-content-notice { padding:13px 14px; gap:10px; margin-top:24px; } #intro-screen .intro-content-notice-icon { flex-basis:26px; height:26px; } }

/* Stock Market V1: PC-first visuals, scoped to the new feature. */
.stock-market-warning{font-weight:900!important;color:#ff4d56!important;border:2px solid #e33b47;border-radius:12px;background:rgba(90,0,12,.24);padding:14px 16px;line-height:1.5;text-align:center;margin:12px 0;}
.stock-invest-label{display:flex;flex-direction:column;gap:8px;font-weight:700;margin:18px 0 8px;}
.stock-invest-input{font:inherit;color:inherit;background:#101b2b;border:1px solid #8a9bad;border-radius:8px;padding:12px;width:100%;max-width:420px;}
.stock-market-chance{font-weight:700;margin:10px 0;}
.stock-intro-image-stack{display:flex;flex-direction:column;gap:0;align-items:center;margin:18px auto;max-width:580px;}
.stock-intro-image-stack img{display:block;width:100%;height:auto;margin:0!important;border-radius:0;}
.stock-result-overlay{position:fixed;inset:0;z-index:10000;background:rgba(2,8,18,.92);display:flex;align-items:center;justify-content:center;padding:24px;}
.stock-result-panel{text-align:center;width:min(540px,95vw);padding:36px 25px;border-radius:20px;background:linear-gradient(145deg,#152537,#080f1b);border:2px solid currentColor;box-shadow:0 0 75px rgba(0,0,0,.7);}
.stock-win{color:#46ec8d}.stock-loss{color:#ff5a62}.stock-result-arrow{font-size:clamp(110px,16vw,200px);line-height:1;animation:stock-arrow-reveal 1.6s cubic-bezier(.16,1,.3,1) both;filter:drop-shadow(0 0 24px currentColor);}
.stock-result-panel h2{font-size:clamp(22px,4vw,34px);margin:16px 0;color:inherit}.stock-result-money{font-size:clamp(30px,5vw,54px);font-weight:900;color:inherit}.stock-result-panel .button{margin-top:20px;}
@keyframes stock-arrow-reveal{from{opacity:0;transform:translateY(85px) scale(.4) rotate(-20deg)}to{opacity:1;transform:translateY(0) scale(1) rotate(0)}}
.stock-loss .stock-result-arrow{animation-name:stock-arrow-fall}@keyframes stock-arrow-fall{from{opacity:0;transform:translateY(-85px) scale(.4) rotate(20deg)}to{opacity:1;transform:translateY(0) scale(1) rotate(0)}}
@media(prefers-reduced-motion:reduce){.stock-result-arrow{animation:none!important}}

/* Dream sequence before the daily ledger; desktop-first and responsive. */
#dream-panel[hidden],#ledger-panel[hidden]{display:none!important}
.dream-panel{max-width:900px;margin-inline:auto;text-align:center}
.dream-video{display:block;width:auto;height:auto;max-width:100%;max-height:58vh;object-fit:contain;background:transparent;border-radius:18px;margin:18px auto}
.dream-line{font-size:clamp(18px,2vw,26px);font-weight:600;margin:22px auto 28px}
#dream-continue{display:block;margin-inline:auto;min-width:220px}

/* Persistent release-completion notice, matching Alison's red warning. */
.global-completion{position:fixed;left:clamp(12px,2vw,32px);right:auto;bottom:clamp(12px,2vw,28px);width:min(360px,calc(100vw - 24px));z-index:30;box-sizing:border-box;text-align:left;padding:14px 18px;border:1px solid rgba(255,95,105,.65);border-left:4px solid #ff4d61;border-radius:14px;background:linear-gradient(135deg,rgba(67,16,31,.97),rgba(29,18,32,.97));box-shadow:0 8px 26px rgba(0,0,0,.3),inset 0 1px rgba(255,255,255,.06);color:#ffd5d9;font-weight:650;font-size:clamp(13px,1vw,16px);line-height:1.55;backdrop-filter:blur(10px)}
.global-completion[hidden]{display:none!important}

/* V1 hotfix: compact centered HUD on the map only. */
body[data-scene="map"] .game-hud:not([hidden]){
  position:fixed!important;top:max(12px,env(safe-area-inset-top))!important;
  left:50%!important;right:auto!important;transform:translateX(-50%)!important;
  width:max-content!important;max-width:calc(100vw - 24px)!important;
  display:flex!important;flex-wrap:nowrap!important;align-items:center!important;
  justify-content:center!important;gap:0!important;padding:4px 6px!important;
  font-size:11px!important;border-radius:11px!important;z-index:16!important;
}
body[data-scene="map"] .game-hud:not([hidden]) > *{
  padding:2px 6px!important;line-height:18px!important;white-space:nowrap!important;
}
body[data-scene="map"] .game-hud:not([hidden]) .hud-skip-button{
  position:static!important;margin:0 0 0 3px!important;font-size:10px!important;
  min-width:0!important;min-height:0!important;padding:3px 6px!important;
}
@media(max-width:420px){
  body[data-scene="map"] .game-hud:not([hidden]){font-size:9px!important;padding:3px!important;}
  body[data-scene="map"] .game-hud:not([hidden]) > *{padding:2px 3px!important;}
  body[data-scene="map"] .game-hud:not([hidden]) .hud-skip-button{font-size:9px!important;padding:2px 4px!important;}
}

/* Single 16:9 dream video, consistent on desktop and mobile. */
#dream-video.dream-video{display:block;width:min(100%,900px);height:auto;aspect-ratio:16/9;max-height:min(58vh,calc(100vw * 9 / 16));object-fit:contain;background:#090c15;margin:16px auto;border-radius:12px}

/* Room help button */
#room-help-button{position:fixed;top:calc(max(14px, env(safe-area-inset-top)) + 40px);right:max(16px, env(safe-area-inset-right));z-index:16;width:30px;height:30px;min-height:0;padding:0;display:inline-flex;align-items:center;justify-content:center;background:#123a7a;color:#f3c76a;border:2px solid #d9a441;border-radius:50%;box-shadow:0 0 8px rgba(217,164,65,.55);font-size:17px;font-weight:800;line-height:1;font-family:inherit;cursor:pointer}
#room-help-button[hidden]{display:none!important}
#room-help-button:hover{background:#174a99;color:#ffd98a}
#room-screen.room-ui-hidden #room-help-button{visibility:hidden!important;pointer-events:none!important}
@media (max-width:700px) and (orientation:portrait){#room-help-button{top:calc(max(14px, env(safe-area-inset-top)) + 166px);right:max(8px, env(safe-area-inset-right))}}

/* Dream video floats in its own shape (no black sides) */
#dream-panel #dream-video.dream-video{width:auto;height:auto;max-width:min(100%, 900px);max-height:min(58vh, 640px);aspect-ratio:auto;object-fit:contain;background:transparent;border-radius:14px;box-shadow:0 18px 50px rgba(0,0,0,.55),0 0 0 1px rgba(217,239,255,.18);margin:16px auto}

/* Map: on desktop the whole map fits the screen, centered, and place pins scale with it */
@media (min-width:901px){
  #map-screen.screen:not([hidden]) .kelibia-map-scroll{display:flex!important}
  #map-screen.screen:not([hidden]) .kelibia-map-canvas{min-width:0!important;min-height:0!important;margin:auto!important}
  #map-screen .kelibia-hotspots .map-place{scale:var(--pin-scale,1);transform-origin:0 0}
}

/* K.O special button (same as V2) */
.alison-event3-option.alison-event3-ko{max-width:none;min-width:200px;padding:16px 36px;color:#ffe9ec;font:inherit;font-size:20px;font-weight:800;letter-spacing:.12em;text-shadow:0 0 8px #ff4d6a}

/* Map: the "!" sits on the pin's top-right corner so the place name stays readable */
#map-screen .kelibia-hotspots .place-card .map-event-signal{top:-13px;right:-13px;width:26px;height:26px;font-size:17px}
