/* Bundled Noto Sans JP (WOFF2, japanese+latin). No network or OS font dependency. */
@font-face{font-family:"Noto Sans JP";font-style:normal;font-weight:400;font-display:swap;src:url("./assets/fonts/noto-sans-jp-400.woff2") format("woff2");}
@font-face{font-family:"Noto Sans JP";font-style:normal;font-weight:500;font-display:swap;src:url("./assets/fonts/noto-sans-jp-500.woff2") format("woff2");}
@font-face{font-family:"Noto Sans JP";font-style:normal;font-weight:700;font-display:swap;src:url("./assets/fonts/noto-sans-jp-700.woff2") format("woff2");}
@font-face{font-family:"Noto Sans JP";font-style:normal;font-weight:800;font-display:swap;src:url("./assets/fonts/noto-sans-jp-800.woff2") format("woff2");}
@font-face{font-family:"Noto Sans JP";font-style:normal;font-weight:900;font-display:swap;src:url("./assets/fonts/noto-sans-jp-900.woff2") format("woff2");}
:root{--paper:#f5f1e7;--ink:#36382f;--muted:#8a897c;--line:#ddd9cc;--orange:#cb5b35;--green:#6c7862;--serif:'Noto Sans JP','Yu Gothic',sans-serif;--sans:'Noto Sans JP','Yu Gothic',sans-serif;color-scheme:light}
*{box-sizing:border-box}body{margin:0;background:#e5e3d9;color:var(--ink);font-family:var(--sans);-webkit-font-smoothing:antialiased}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer}button:disabled{cursor:not-allowed;opacity:.48}button:focus-visible,a:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--orange);outline-offset:4px}svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.svg-defs{position:absolute;width:0;height:0;overflow:hidden}.game-shell{width:100%;max-width:460px;min-height:100svh;margin:auto;background:var(--paper);overflow:hidden}.app-header{height:81px;display:flex;align-items:center;justify-content:space-between;padding:0 24px;border-bottom:1px solid var(--line)}.wordmark{display:flex;gap:9px;align-items:center;text-decoration:none;color:var(--ink);font-family:var(--serif);font-size:16px;font-weight:800;letter-spacing:-.7px;line-height:1.45}.logo-icon{display:grid;place-items:center;width:28px;height:40px;border-right:1px solid #cbc8bb;padding-right:10px;margin-right:1px}.logo-icon svg{width:21px;height:29px;stroke-width:1.65;transform:rotate(-10deg)}.logo-life{color:var(--orange)}.wordmark small{display:block;font-family:var(--sans);font-size:8px;letter-spacing:3.6px;font-weight:500;margin-top:2px}.profile-button{display:flex;align-items:center;gap:6px;background:transparent;border:0;font-size:10px;min-height:44px;padding:0}.profile-button svg{width:15px;height:15px;margin-left:4px}.profile-dot{width:5px;height:5px;background:var(--green);border-radius:50%}.date-section{height:118px;display:flex;align-items:center;justify-content:space-between;padding:14px 25px 15px}.eyebrow{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:10px;letter-spacing:1px;font-weight:500}.eyebrow #year-label{color:var(--ink);margin-left:1px}.orange-dash{width:13px;height:2px;background:var(--orange)}.date-line{display:flex;align-items:baseline;gap:8px;line-height:1.2;margin-top:6px;font-size:46px;font-family:var(--serif);font-weight:500;font-feature-settings:'palt';letter-spacing:-2px}.date-slash{font-size:31px;color:#bbb4a3;font-weight:400;padding:0 2px}.weekday{font-family:var(--sans);font-size:11px;letter-spacing:1px;margin-left:7px;font-weight:500}.weather{align-self:center;display:flex;align-items:center;flex-direction:column;gap:8px;font-size:9px;letter-spacing:1px;color:var(--muted);padding-top:10px}.weather svg{width:27px;height:27px;color:#af8f53;stroke-width:1.3}.room-scene{position:relative;height:clamp(325px,49svh,480px);isolation:isolate;background:#8f805c;overflow:hidden}.room-image{width:100%;height:100%;object-fit:cover;object-position:50% 56%;display:block;transition:filter .8s}.room-scene:after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,rgba(38,34,24,.16),transparent 24%,transparent 48%,rgba(28,28,19,.78));z-index:0;pointer-events:none}.room-topline{position:absolute;top:19px;left:22px;right:20px;display:flex;align-items:center;justify-content:space-between;z-index:1;color:#fffaf0}.room-label{font-size:10px;letter-spacing:1px;display:flex;align-items:center;gap:7px;text-shadow:0 1px 8px #333}.room-label>span{width:5px;height:5px;border-radius:50%;background:#e9d5a5}.room-info{display:flex;align-items:center;gap:5px;font-size:9px;background:#302f2566;backdrop-filter:blur(8px);border:1px solid #fff5;border-radius:3px;color:#fff8e9;padding:7px 9px;min-height:33px}.room-info svg{width:13px;height:13px}.room-caption{position:absolute;z-index:1;left:26px;bottom:25px;color:#fff9e9}.chapter-label{font-family:var(--sans);font-size:8px;letter-spacing:1.9px;color:#ece0c3}.chapter-label span{margin:0 7px;opacity:.65}.room-caption p{font-family:var(--serif);font-size:21px;font-weight:500;line-height:1.9;letter-spacing:2px;margin:8px 0 0;text-shadow:0 2px 8px #18190f66}.notebook-hotspot{position:absolute;z-index:2;right:55px;top:51%;width:42px;height:42px;border:1px solid #fff7;border-radius:50%;display:grid;place-items:center;background:#f5f1e72b;backdrop-filter:blur(4px);color:#fff9e9;box-shadow:0 0 0 5px #fff1;transition:background .2s,transform .2s}.notebook-hotspot svg{width:18px;height:18px}.notebook-hotspot span{position:absolute;top:47px;white-space:nowrap;font-size:9px;letter-spacing:1px;text-shadow:0 1px 5px #000}.notebook-hotspot:hover{background:#f5f1e766;transform:translateY(-2px)}.menu-section{padding:22px 23px 0}.section-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px}.section-heading h1{font-family:var(--serif);font-size:15px;letter-spacing:1.8px;font-weight:600;margin:0}.section-heading>span{font-size:8px;letter-spacing:2px;color:#9b9889}.schedule-main{border:0;border-radius:4px;width:100%;background:var(--orange);color:#fff9ee;display:flex;align-items:center;gap:13px;text-align:left;padding:16px 16px;box-shadow:0 3px 0 #9f452414;transition:background .2s,transform .2s}.schedule-main:hover{background:#b54e2d;transform:translateY(-1px)}.main-icon{display:grid;place-items:center;border-right:1px solid #fff4;padding-right:13px}.main-icon svg{width:24px;height:24px}.schedule-label strong{display:block;font-size:14px;letter-spacing:1.5px;font-weight:600}.schedule-label small{display:block;font-size:9px;letter-spacing:.4px;margin-top:4px;opacity:.8}.next-week{display:flex;align-items:center;gap:7px;margin-left:auto;font-size:8px;white-space:nowrap;color:#f9e1cd}.next-week svg{width:16px;height:16px}.menu-grid{display:grid;grid-template-columns:repeat(3,1fr);margin-top:17px}.menu-grid button{background:transparent;border:0;border-right:1px solid var(--line);display:flex;align-items:center;flex-direction:column;justify-content:center;gap:9px;padding:12px 0 13px;font-size:10px;letter-spacing:.5px;min-height:77px;transition:background .2s}.menu-grid button:nth-child(3n){border-right:0}.menu-grid button:nth-child(-n+3){border-bottom:1px solid var(--line)}.menu-grid svg{width:23px;height:23px;color:#686c5b;stroke-width:1.35}.menu-grid button:hover{background:#e7e3d6}.app-footer{display:flex;align-items:center;justify-content:space-between;padding:17px 0 18px;padding-bottom:max(18px,env(safe-area-inset-bottom));font-size:8px;color:#999585;letter-spacing:.5px}.app-footer>span:first-child{display:flex;align-items:center;gap:5px}.app-footer i{width:4px;height:4px;background:#8d9880;border-radius:50%}.desktop-note{display:none}dialog{position:fixed;inset:auto 0 0;max-width:460px;width:100%;max-height:88svh;border:0;border-radius:19px 19px 0 0;margin:0 auto;padding:10px 25px 30px;background:var(--paper);color:var(--ink);box-shadow:0 -12px 70px #171b1933;overscroll-behavior:contain}dialog[open]{animation:slide-in .25s ease-out}dialog::backdrop{background:#1e241f80;backdrop-filter:blur(3px)}.sheet-handle{height:4px;width:33px;background:#cfccbd;border-radius:5px;margin:0 auto 22px}.sheet-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.sheet-heading h2{font-family:var(--serif);font-size:23px;letter-spacing:1px;margin:5px 0}.close-button{width:44px;height:44px;display:grid;place-items:center;border:1px solid var(--line);border-radius:50%;background:transparent}.close-button svg{width:18px;height:18px}.sheet-copy{font-size:12px;line-height:1.9;color:#757467;margin:0 0 18px}.profile-choices{display:grid;grid-template-columns:1fr 1fr;gap:10px}.choice-card{border:1px solid var(--line);border-radius:4px;background:#fff9;padding:17px;text-align:left}.choice-card.active{border-color:var(--orange);background:#cb5b350a}.choice-card small{display:block;color:var(--muted);font-size:10px;margin-bottom:4px}.choice-card strong{font-family:var(--serif);font-size:21px}.choice-card .selected{display:block;color:var(--orange);font-size:9px;margin-top:8px;min-height:14px}.sheet-action{background:var(--orange);color:#fff9ee;border:0;border-radius:4px;width:100%;padding:15px;font-size:13px;letter-spacing:1px;margin-top:18px}.schedule-row{display:grid;grid-template-columns:55px 1fr;align-items:center;border-bottom:1px solid var(--line);padding:8px 0;gap:12px}.day-number{font-size:11px}.day-number small{font-size:9px;color:var(--muted);margin-left:5px}select,textarea{font:inherit;color:var(--ink);border:1px solid var(--line);border-radius:4px;background:#fff8;padding:10px;font-size:12px;width:100%}.schedule-row .fixed{font-size:12px;padding:10px;color:var(--orange);display:flex;justify-content:space-between}.fixed small{font-size:9px}.balance{font-family:var(--serif);font-size:42px;letter-spacing:-1px;margin:12px 0 25px}.balance small{font-family:var(--sans);font-size:13px;margin-right:12px;color:var(--muted)}.detail-row{padding:14px 0;border-top:1px solid var(--line);display:flex;justify-content:space-between;font-size:12px}.detail-row span{color:var(--muted)}.meter-row{margin:18px 0;font-size:12px}.meter-label{display:flex;justify-content:space-between}.meter{height:5px;margin-top:9px;background:#deddd1;border-radius:3px;overflow:hidden}.meter>span{display:block;height:100%;background:var(--green);width:var(--value)}.meter.stress>span{background:#b78c64}.info-card{padding:16px;border:1px solid var(--line);border-radius:4px;margin:12px 0}.info-card h3{font-size:14px;margin:0 0 8px}.info-card p{font-size:11px;line-height:1.9;color:var(--muted);margin:0}.tag{font-size:9px;color:var(--orange);margin-left:7px}.journal-input{min-height:160px;resize:vertical;line-height:2;background:repeating-linear-gradient(transparent,transparent 27px,#ddd9cc 28px);background-color:#fbf8ef;font-family:var(--serif);font-size:14px;line-height:28px;padding-top:8px}.toast{position:fixed;bottom:28px;left:50%;transform:translate(-50%,15px);z-index:10;background:#36382f;color:#fff9ed;padding:13px 22px;border-radius:5px;font-size:12px;box-shadow:0 4px 20px #0003;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;max-width:90%;width:max-content}.toast.visible{opacity:1;transform:translate(-50%,0)}@keyframes slide-in{from{transform:translateY(25px);opacity:0}to{transform:translateY(0);opacity:1}}
@media(min-width:760px){body{min-height:100vh;padding:34px 0;background:radial-gradient(ellipse at 30% 25%,#f0eee5,#deded4 75%);display:flex;align-items:center;justify-content:center;gap:100px}.game-shell{margin:0;box-shadow:0 15px 65px #49493324;border:1px solid #b9b7a655;border-radius:9px;min-height:0;width:430px;flex-shrink:0}.room-scene{height:410px}.desktop-note{display:block;position:relative;width:240px;align-self:center;padding-bottom:70px}.edition{font-size:10px;letter-spacing:3px;color:#7d7d6d}.desktop-note p{font-family:var(--serif);font-size:43px;line-height:1.8;letter-spacing:7px;font-weight:500;margin:28px 0 25px}.desktop-note p span{color:var(--orange)}.note-line{width:35px;height:1px;background:#a9aa98;margin-bottom:23px}.desktop-note small{font-size:11px;line-height:2.2;letter-spacing:2px;color:#8a8c7b}.side-number{display:block;margin-top:65px;font-size:8px;letter-spacing:2px;color:#8f9380}dialog{inset:0;max-height:85vh;margin:auto;border-radius:12px;height:max-content}.sheet-handle{display:none}.sheet-heading{margin-top:16px}}
@media(max-width:759px){.game-shell{display:flex;flex-direction:column;height:100svh;min-height:740px}.app-header{height:70px;flex-shrink:0}.date-section{height:102px;flex-shrink:0}.room-scene{height:auto;flex:1;min-height:280px}.menu-section{padding-top:18px;flex-shrink:0}.section-heading{margin-bottom:13px}.schedule-main{padding-top:13px;padding-bottom:13px}.menu-grid{margin-top:14px}.menu-grid button{min-height:67px;padding-top:9px;padding-bottom:9px;gap:7px}.app-footer{padding-top:14px;padding-bottom:max(14px,env(safe-area-inset-bottom))}}
@media(max-width:359px){.app-header{padding:0 17px}.profile-button{font-size:9px}.wordmark{font-size:14px}.date-section{padding-left:20px;padding-right:20px}.menu-section{padding-left:17px;padding-right:17px}.next-week{font-size:0;gap:0}.room-caption p{font-size:19px}.schedule-main{padding:15px 13px}.menu-grid button{font-size:9px}}

/* Game screen treatment: the room is the playfield, while menus become secondary overlays. */
.game-shell{background:#11130f;color:#f8f3e7;max-width:520px;min-height:100svh}.app-header,.date-section,.menu-section{display:none}.room-scene{height:100svh;min-height:620px;background:#24251e}.room-image{object-position:50% 56%;filter:saturate(.86) contrast(1.04) brightness(.87)}.room-scene:after{background:linear-gradient(180deg,rgba(9,12,11,.62),rgba(11,14,12,.03) 24%,rgba(8,10,9,.02) 52%,rgba(7,9,8,.8) 100%)}.scene-grain{position:absolute;inset:0;z-index:1;pointer-events:none;opacity:.13;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");mix-blend-mode:soft-light}.game-hud{position:absolute;z-index:3;top:0;left:0;right:0;height:83px;padding:18px 15px 0;display:flex;align-items:flex-start;gap:10px}.hud-day{display:flex;align-items:center;gap:6px;padding:8px 11px;background:#1a1d19d9;border:1px solid #eee4c23b;box-shadow:0 3px 12px #0005;clip-path:polygon(0 0,100% 0,100% 85%,86% 100%,0 100%)}.hud-date{display:flex;align-items:baseline;gap:2px;font-family:var(--serif);font-size:22px;letter-spacing:-2px;color:#fff7e4}.hud-date small{font-family:var(--sans);font-size:8px;letter-spacing:0;color:#dfd6b9}.hud-week{font-size:8px;color:#b9c0ad;letter-spacing:1px;margin-left:5px}.hud-status{margin-left:auto;display:flex;align-items:center;gap:7px;padding:8px 10px;background:#1a1d19d9;border:1px solid #eee4c23b;box-shadow:0 3px 12px #0005;font-size:11px}.hud-stat{display:flex;align-items:center;gap:5px;color:#fff8e9}.hud-stat svg{width:14px;height:14px;color:#e6bd71}.hud-stat+.hud-stat{border-left:1px solid #fff4;padding-left:8px}.hud-stat strong{font-size:10px;font-weight:600;letter-spacing:.4px}.stamina-dot{width:7px;height:7px;border-radius:50%;background:#88b780;box-shadow:0 0 7px #9ad295}.hud-menu{width:42px;height:42px;border:1px solid #f2e9d45c;background:#191c19dc;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px;box-shadow:0 3px 12px #0005}.hud-menu span{height:2px;width:17px;background:#f8f0dd;border-radius:2px}.room-topline{top:99px;left:17px;right:17px}.room-label{font-size:9px;opacity:.88}.room-info{background:#161915b8;border-color:#f6ecd93b;font-size:8px}.room-caption{display:none}.notebook-hotspot,.tv-hotspot{position:absolute;z-index:3;width:42px;height:42px;border:1px solid #fff8;border-radius:50%;display:grid;place-items:center;background:#171a16aa;backdrop-filter:blur(6px);color:#fff8e9;box-shadow:0 2px 15px #0007;transition:transform .2s,background .2s}.notebook-hotspot{right:23%;top:54%}.tv-hotspot{left:32%;top:48%;opacity:.8}.notebook-hotspot svg,.tv-hotspot svg{width:18px;height:18px}.notebook-hotspot span,.tv-hotspot span{position:absolute;top:44px;white-space:nowrap;font-size:8px;letter-spacing:1px;text-shadow:0 1px 6px #000}.notebook-hotspot:hover,.tv-hotspot:hover{transform:scale(1.08);background:#3f4939d9}.game-message{position:absolute;z-index:4;bottom:100px;left:20px;right:20px;min-height:40px;display:flex;align-items:center;gap:10px;padding:9px 13px;background:#171a16dc;border:1px solid #f4ebd028;box-shadow:0 3px 15px #0006;font-family:var(--serif);font-size:13px;letter-spacing:1px;color:#fff6df}.message-mark{display:grid;place-items:center;width:19px;height:19px;border-radius:50%;background:#d26b3f;color:#fff;font-family:var(--sans);font-weight:700;font-size:12px}.game-controls{position:absolute;z-index:4;bottom:21px;left:14px;right:14px;display:flex;align-items:flex-end;justify-content:space-between}.game-controls button{width:53px;height:53px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:2px;border:1px solid #f2e6c98f;color:#fff8e8;background:#1a1d19d9;box-shadow:0 3px 12px #0008;transition:transform .18s,background .18s}.game-controls button:hover{transform:translateY(-3px);background:#55634fcf}.game-controls button svg{width:20px;height:20px;stroke-width:1.45}.game-controls button span{font-size:7px;letter-spacing:.4px}.game-controls .control-primary{width:65px;height:65px;background:#c8603c;border-color:#f2d7bd;box-shadow:0 0 0 4px #c8603c44,0 4px 15px #0009}.game-controls .control-primary svg{width:24px;height:24px}.game-controls .control-primary span{font-size:8px}.menu-section{background:#f5f1e7;color:var(--ink)}
@media(min-width:760px){body{padding:0;background:#10120f;display:block}.game-shell{width:430px;max-width:430px;margin:auto;border:0;border-radius:0;box-shadow:0 0 70px #000}.room-scene{height:100svh;min-height:760px}.game-hud{padding-left:13px;padding-right:13px}.room-topline{top:97px}}
@media(min-width:760px){.desktop-note{display:none!important}body{min-height:100svh;overflow-x:hidden}.game-shell{min-height:100svh}}
@media(max-width:390px){.hud-status{padding:8px 7px}.hud-stat+.hud-stat{padding-left:6px}.hud-stat strong{font-size:9px}.game-controls button{width:48px;height:48px}.game-controls .control-primary{width:59px;height:59px}.game-message{bottom:91px;font-size:12px}.room-topline{top:94px}}

/* Bright illustrated life-sim UI. The panels stay code-native so labels remain crisp. */
body{background:#9ed8f3}.game-shell{background:#9ed8f3}.room-scene{background:#e7ad75}.room-image{filter:saturate(1.05) contrast(1.02) brightness(1.04)}.room-scene:after{background:linear-gradient(180deg,#2a507b75,transparent 24%,transparent 61%,#263d66a0)}.scene-grain{opacity:.035}.game-hud{gap:6px}.hud-day,.hud-status,.hud-menu{background:linear-gradient(#e9f9ff,#b8e6fb);border:2px solid #fff7d8;box-shadow:0 3px 0 #397eae,0 5px 12px #22425e80;color:#24577e;clip-path:none;border-radius:14px}.hud-date,.hud-date small,.hud-week,.hud-stat,.hud-stat svg{color:#24577e}.hud-date{font-family:var(--sans);font-weight:800;font-size:18px;letter-spacing:0}.hud-week{font-weight:700}.hud-stat+.hud-stat{border-left:1px solid #65a8c8}.hud-menu{border-radius:14px}.hud-menu span{background:#3279a8}.room-topline{top:91px}.room-label{padding:7px 12px;background:#f6fbffdc;border:2px solid #fff3d8;border-radius:20px;color:#2a6b93;text-shadow:none;box-shadow:0 3px 0 #4f98b4;font-weight:700;opacity:1}.room-label>span{background:#f7a845}.room-info{background:#eaf8ffed;border:2px solid #fff3d8;border-radius:18px;color:#27658c;box-shadow:0 3px 0 #4f98b4;font-weight:700}.notebook-hotspot,.tv-hotspot{background:linear-gradient(#fffefa,#ffdbab);border:3px solid #fff;border-radius:17px;color:#b56b3d;box-shadow:0 4px 0 #b87e50,0 6px 15px #4c527366;backdrop-filter:none}.notebook-hotspot span,.tv-hotspot span{top:45px;background:#fff8e9e8;color:#7f5d52;padding:2px 7px;border-radius:9px;text-shadow:none;font-weight:700}.notebook-hotspot:hover,.tv-hotspot:hover{background:#fff7db}.game-message{background:linear-gradient(115deg,#fffdfa,#f9ecdc);border:3px solid #fff7e6;border-radius:17px;box-shadow:0 5px 0 #b88262,0 10px 18px #3b44665e;color:#614e4f;font-family:var(--sans);font-weight:700;font-size:12px}.message-mark{background:#ffab59;box-shadow:0 2px 0 #d07244}.game-controls button{background:linear-gradient(#dcf5ff,#8cc7ef);border:3px solid #fff7dc;border-radius:18px;color:#2f6892;box-shadow:0 4px 0 #3c83bb,0 7px 16px #213b5966}.game-controls button:hover{background:linear-gradient(#f7fcff,#9edff9)}.game-controls button svg{stroke-width:2}.game-controls button span{font-size:8px;font-weight:800}.game-controls .control-primary{background:linear-gradient(#fff5c2,#ffbb61);border-color:#fff8db;border-radius:21px;color:#98512d;box-shadow:0 4px 0 #d78237,0 6px 0 3px #ffffffbb,0 10px 18px #33486777}.game-controls .control-primary:hover{background:linear-gradient(#fff8d6,#ffd281)}.game-controls button:nth-child(2),.game-controls button:nth-child(4){transform:translateY(-7px)}dialog{background:#ecf8ff;border:4px solid #fff5df;border-radius:24px 24px 0 0;box-shadow:0 -7px 0 #5b9dcd,0 -15px 45px #22426988;color:#31536b}.sheet-handle{background:#9bcee8}.sheet-heading h2{font-family:var(--sans);color:#245b8c;font-weight:800}.sheet-copy{color:#587187}.close-button{background:#fff;border:2px solid #9ac8e7;color:#427aaa}.choice-card,.info-card{background:#fffdf8;border:2px solid #cae5f2;border-radius:16px}.choice-card.active{background:#fff2d6;border-color:#f3b66a}.sheet-action{background:linear-gradient(#ffdc83,#f5a54b);border:2px solid #fff6d5;border-radius:14px;color:#78482c;box-shadow:0 4px 0 #ca7d40;font-weight:800}.schedule-row,.detail-row{border-color:#c7e1ed}.cute-menu{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:3px 0 12px}.cute-menu button{min-height:98px;padding:9px 4px;background:#fffdf8;border:2px solid #a8d6ec;border-radius:17px;box-shadow:0 4px 0 #6aabd1;color:#37749c;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:2px}.cute-menu button:hover{background:#fff4dc;transform:translateY(-2px)}.cute-menu-icon{width:35px;height:35px;display:grid;place-items:center;border-radius:50%;background:#dcf5ff;color:#3b8cbc;border:2px solid #a5d9f0;margin-bottom:3px}.cute-menu button:nth-child(4n+2) .cute-menu-icon{background:#ffe5ed;color:#dc7f9a;border-color:#f8bfcd}.cute-menu button:nth-child(4n+3) .cute-menu-icon{background:#fff0cf;color:#d19b3f;border-color:#f1d590}.cute-menu button:nth-child(4n) .cute-menu-icon{background:#e3f4d8;color:#83ad67;border-color:#c1dea9}.cute-menu-icon svg{width:19px;height:19px;stroke-width:1.8}.cute-menu strong{font-size:10px;white-space:nowrap}.cute-menu small{font-size:7px;color:#819da9;white-space:nowrap}
@media(max-width:390px){.hud-date{font-size:16px}.hud-day{padding:7px}.hud-status{padding:8px 5px}.game-controls button{width:47px;height:47px}.game-controls .control-primary{width:59px;height:59px}.cute-menu{gap:6px}.cute-menu button{min-height:88px}.cute-menu strong{font-size:9px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}

/* ============================================================
   ANIME GAME UI — room screen
   Warm ivory panels, coral date card, deep-teal gauges, glossy
   gold controls, and a soft cel-shaded light pass over the room.
   ============================================================ */

:root{
  --anime-ink:#613a2e;
  --anime-cream:#fff8e8;
  --anime-gold:#ffd27a;
  --anime-coral:#ef5d4f;
  --anime-teal:#1a5368;
  --anime-navy:#0b2a3b;
}

/* --- background: keep the illustration, add anime light and depth --- */
.room-scene{background:#9a6a45;overflow:hidden}
.room-image{filter:saturate(1.13) contrast(1.045) brightness(1.035);object-position:50% 56%;transform:scale(1.012)}
.room-scene:after{
  background:
    linear-gradient(180deg,rgba(10,27,46,.55) 0%,rgba(10,27,46,.08) 20%,transparent 58%,rgba(7,15,24,.72) 100%),
    radial-gradient(ellipse at 50% 46%,transparent 42%,rgba(26,16,9,.24) 100%);
  z-index:1;
}
.scene-grain{opacity:.055;z-index:2;mix-blend-mode:soft-light}
.scene-light{
  position:absolute;inset:-2%;z-index:1;pointer-events:none;
  background:
    radial-gradient(ellipse at 3% 36%,rgba(255,241,178,.5),transparent 38%),
    radial-gradient(ellipse at 52% 18%,rgba(255,196,108,.18),transparent 34%),
    linear-gradient(116deg,rgba(255,218,145,.3) 0%,transparent 30%,transparent 70%,rgba(43,105,148,.16) 100%);
  mix-blend-mode:screen;
  animation:anime-light-breathe 9s ease-in-out infinite alternate;
}
.scene-vignette{
  position:absolute;inset:0;z-index:2;pointer-events:none;
  box-shadow:inset 0 0 90px rgba(12,14,26,.46),inset 0 0 0 1px rgba(255,246,215,.14);
}
.scene-sparkles{
  position:absolute;inset:0;z-index:2;pointer-events:none;opacity:.55;mix-blend-mode:screen;
  background-image:
    radial-gradient(circle,rgba(255,249,205,.95) 0 1.2px,transparent 2px),
    radial-gradient(circle,rgba(255,226,158,.8) 0 1px,transparent 1.8px),
    radial-gradient(circle,rgba(255,255,235,.7) 0 1.6px,transparent 2.4px);
  background-size:170px 170px,230px 230px,310px 310px;
  background-position:22px 34px,94px 146px,164px 78px;
  animation:anime-motes 24s linear infinite;
}

/* --- date card: the big calendar badge from the reference --- */
.game-hud{top:0;height:auto;padding:14px 14px 0;gap:8px;align-items:flex-start;z-index:6}
.hud-day{
  display:grid;grid-template-columns:auto auto;grid-template-rows:auto auto;
  column-gap:8px;align-items:center;min-width:104px;padding:7px 12px 8px;
  position:relative;overflow:hidden;color:#fff8e8;
  background:linear-gradient(150deg,#ff9a72 0%,#ef5d4f 48%,#c73d4f 100%);
  border:3px solid #fff5de;border-radius:16px 7px 16px 7px;
  box-shadow:0 5px 0 #7e2b39,0 9px 20px rgba(38,10,15,.45),inset 0 2px 0 rgba(255,230,205,.65);
}
.hud-day:before{content:"";position:absolute;inset:0;background:linear-gradient(135deg,rgba(255,255,255,.28),transparent 44%);pointer-events:none}
.hud-day-month{grid-column:1;display:flex;align-items:baseline;gap:1px;font-size:9px;font-weight:800;letter-spacing:.5px;color:#ffe9c8;text-shadow:0 1px 0 #8c2837;position:relative;z-index:1}
.hud-day-month b{font-size:13px}
.hud-day-number{grid-column:1;grid-row:2;position:relative;z-index:1;font-family:var(--serif);font-size:42px;line-height:.95;font-weight:700;letter-spacing:-2px;color:#fffdf2;text-shadow:0 2px 0 #9e2d3d,0 4px 8px rgba(70,15,20,.35)}
.hud-day-meta{grid-column:2;grid-row:1 / span 2;display:flex;flex-direction:column;justify-content:center;gap:5px;padding-left:9px;border-left:1px solid rgba(255,240,214,.34);position:relative;z-index:1}
.hud-day-meta b{font-size:10px;letter-spacing:.5px;white-space:nowrap}
.hud-day-meta small{font-size:8px;color:#ffe2ae;letter-spacing:1px;white-space:nowrap}

/* --- status panel: layered teal window with stamina / stress bars --- */
.hud-status{
  margin-left:auto;width:158px;padding:7px 9px 6px;display:flex;flex-direction:column;gap:5px;
  position:relative;overflow:hidden;color:#fff3d3;
  background:linear-gradient(160deg,rgba(19,52,72,.95),rgba(8,28,43,.93));
  border:2px solid #fff0c9;border-radius:15px;
  box-shadow:0 4px 0 #0a2434,0 8px 18px rgba(2,12,20,.55),inset 0 1px 0 rgba(255,255,255,.28);
}
.hud-status:before{content:"";position:absolute;inset:0;background:linear-gradient(120deg,rgba(255,255,255,.13),transparent 38%);pointer-events:none}
.hud-gauge{display:flex;align-items:center;gap:6px;position:relative;z-index:1}
.hud-gauge-icon{
  width:19px;height:19px;flex:0 0 19px;display:grid;place-items:center;border-radius:50%;
  background:linear-gradient(#fff9e6,#ffd89a);border:1px solid #fff;color:#b65338;
  box-shadow:0 1px 4px #0008,0 0 8px rgba(255,214,138,.35);
}
.hud-gauge-icon svg{width:11px;height:11px;stroke-width:2.2}
.hud-gauge.stress .hud-gauge-icon{color:#d95245}
.hud-gauge-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.hud-gauge-label{display:flex;justify-content:space-between;gap:4px;font-size:8px;line-height:1;letter-spacing:.3px;color:#ffe9c5;font-weight:700}
.hud-gauge-label b{font-size:9px;color:#fff;font-weight:800}
.hud-gauge-bar{height:5px;border-radius:99px;background:#071c2b;border:1px solid rgba(255,255,255,.18);overflow:hidden;box-shadow:inset 0 1px 2px #0008}
.hud-gauge-bar i{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,#7fe0a5,#37b878);box-shadow:0 0 6px #5fe39a;transition:width .35s ease}
.hud-gauge.stress .hud-gauge-bar i{background:linear-gradient(90deg,#ffbd66,#ee6450);box-shadow:0 0 6px #ff8a64}
.hud-gauge.stress.is-high .hud-gauge-bar i{background:linear-gradient(90deg,#ff7a5f,#d52e4d);animation:anime-stress-pulse 1.1s ease-in-out infinite}
.hud-money{display:flex;align-items:center;justify-content:flex-end;gap:5px;padding-top:5px;border-top:1px solid rgba(255,240,205,.2);font-family:var(--serif);font-size:13px;color:#ffe6a2;position:relative;z-index:1}
.hud-money svg{width:13px;height:13px;color:#ffcf6d}
.hud-money strong{font-weight:700;letter-spacing:.3px}

/* --- menu and floating location / rank ribbons --- */
.hud-menu{
  width:44px;height:44px;flex:0 0 44px;padding:0;gap:3px;border:2px solid #fff0c9;border-radius:14px;
  background:linear-gradient(160deg,rgba(29,73,94,.96),rgba(9,30,45,.95));
  box-shadow:0 4px 0 #071d2b,0 8px 16px rgba(4,16,26,.55),inset 0 1px 0 rgba(255,255,255,.28);
}
.hud-menu span{width:18px;height:2px;background:linear-gradient(90deg,#ffe4a7,#ffbe62);border-radius:2px;box-shadow:0 0 4px rgba(255,216,138,.55)}
.room-topline{top:108px;left:16px;right:16px;z-index:6;align-items:flex-start}
.room-label{
  display:flex;align-items:center;gap:7px;padding:6px 12px;font-size:9px;letter-spacing:1.3px;font-weight:800;
  color:#7a4a2f;text-shadow:none;
  background:linear-gradient(160deg,rgba(255,251,235,.97),rgba(255,225,177,.95));
  border:2px solid #fff;border-radius:4px 13px 13px 4px;
  box-shadow:0 3px 0 #a96239,0 6px 14px rgba(26,13,6,.27);
}
.room-label>span{width:7px;height:7px;border-radius:50%;background:#f18a45;box-shadow:0 0 0 2px #ffe2b1}
.room-info{
  display:flex;align-items:center;gap:5px;padding:7px 10px;min-height:33px;font-size:9px;font-weight:800;
  color:#7a4a2f;background:linear-gradient(160deg,rgba(255,251,235,.95),rgba(255,231,190,.94));
  border:2px solid #fff;border-radius:13px;backdrop-filter:none;
  box-shadow:0 3px 0 #a96239,0 6px 14px rgba(26,13,6,.27);
}
.room-info svg{width:13px;height:13px;color:#c66b3d}
.rank-badge{
  position:absolute;z-index:6;top:152px;left:16px;display:flex;align-items:center;gap:7px;padding:5px 11px 5px 7px;
  color:#fff3d3;background:linear-gradient(160deg,rgba(20,50,69,.95),rgba(8,28,43,.93));
  border:2px solid #ffe6ad;border-radius:13px;
  box-shadow:0 3px 0 #0a2434,0 6px 14px rgba(4,16,26,.47);
}
.rank-badge>svg{width:20px;height:20px;color:#ffd06a;fill:rgba(255,208,106,.35);filter:drop-shadow(0 0 5px rgba(255,200,94,.55))}
.rank-badge span{display:flex;flex-direction:column;gap:1px}
.rank-badge b{font-size:9px;line-height:1;letter-spacing:1px;color:#fff}
.rank-badge small{font-size:7px;line-height:1;letter-spacing:.5px;color:#ffe0a0}

/* --- room hotspots: glossy little props --- */
.notebook-hotspot,.tv-hotspot{
  width:46px;height:46px;z-index:6;color:#b55337;
  background:linear-gradient(160deg,#fffdf4,#ffe4b8);border:3px solid #fff;border-radius:16px;
  box-shadow:0 4px 0 #a9653a,0 8px 18px rgba(44,19,6,.33),inset 0 2px 0 #fff;
  backdrop-filter:none;
}
.notebook-hotspot{right:20%;top:54%}
.tv-hotspot{left:29%;top:47%}
.notebook-hotspot svg,.tv-hotspot svg{width:19px;height:19px;stroke-width:1.8;filter:drop-shadow(0 1px 0 #fff8e8)}
.notebook-hotspot span,.tv-hotspot span{
  top:49px;padding:2px 8px;font-size:8px;font-weight:800;letter-spacing:.8px;color:#7a4a2f;
  background:linear-gradient(#fffdf4,#ffe9c5);border:2px solid #fff;border-radius:8px;
  box-shadow:0 2px 0 #a9653a,0 4px 8px rgba(44,19,6,.25);text-shadow:none;
}
.notebook-hotspot:after,.tv-hotspot:after{content:"✦";position:absolute;top:-9px;right:-7px;font-size:11px;color:#fff3b8;text-shadow:0 0 6px #ffcf6d;animation:anime-twinkle 2.8s ease-in-out infinite}
.notebook-hotspot:hover,.tv-hotspot:hover{transform:translateY(-2px) scale(1.04);background:linear-gradient(160deg,#fffef8,#ffdfae)}

/* --- dialogue window: teal gradient with a cream outline --- */
.game-message{
  bottom:calc(108px + env(safe-area-inset-bottom,0px));left:12px;right:12px;min-height:54px;padding:10px 14px 10px 11px;gap:9px;z-index:7;
  color:#fff6df;font-family:var(--sans);font-weight:700;font-size:12px;letter-spacing:.2px;
  background:linear-gradient(160deg,rgba(21,57,78,.97),rgba(8,29,45,.95));
  border:3px solid #fff4d5;border-radius:17px;
  box-shadow:0 5px 0 #092231,0 10px 22px rgba(2,12,20,.55),inset 0 1px 0 rgba(255,255,255,.28);
}
.game-message:before{content:"";position:absolute;inset:5px;border:1px solid rgba(255,223,155,.18);border-radius:12px;pointer-events:none}
.game-message:after{content:"TODAY";position:absolute;top:-9px;left:13px;padding:1px 7px;background:linear-gradient(#ffd98c,#f5a24b);color:#4b2518;border:1px solid #fff1cf;border-radius:5px;font-size:7px;font-weight:800;letter-spacing:1.4px;box-shadow:0 2px 5px rgba(30,10,5,.3)}
.message-mark{
  width:26px;height:26px;flex:0 0 26px;font-size:15px;color:#7a3b20;
  background:linear-gradient(150deg,#ffe39a,#f3a24e);border:2px solid #fff7df;border-radius:50%;
  box-shadow:0 2px 0 #a95a2e,0 0 12px rgba(255,190,106,.35);
}
.message-text{position:relative;z-index:1;margin:0;line-height:1.55;font-size:12px;font-weight:700;letter-spacing:.2px;text-shadow:0 1px 0 rgba(0,0,0,.45);overflow-wrap:anywhere}

/* --- bottom control dock: warm ivory buttons and one coral hero --- */
.game-controls{bottom:calc(18px + env(safe-area-inset-bottom,0px));left:12px;right:12px;z-index:8;align-items:flex-end;gap:6px}
.game-controls button{
  width:52px;height:52px;gap:1px;position:relative;overflow:visible;color:#8b4a2d;
  background:linear-gradient(160deg,#fffdf5 0%,#ffeac6 52%,#f6c984 100%);
  border:3px solid #fffdf4;border-radius:17px;
  box-shadow:0 5px 0 #a96035,0 9px 18px rgba(31,12,6,.45),inset 0 2px 0 #fff;
  transition:transform .16s ease,box-shadow .16s ease,background .16s ease;
}
.game-controls button:before{content:"";position:absolute;inset:3px;border-radius:12px;background:linear-gradient(145deg,rgba(255,255,255,.55),transparent 45%);pointer-events:none}
.game-controls button svg{width:20px;height:20px;position:relative;z-index:1;color:#a95435;stroke-width:1.9;filter:drop-shadow(0 1px 0 #fff8e8)}
.game-controls button span{position:relative;z-index:1;font-size:8px;font-weight:800;line-height:1;letter-spacing:.2px;color:#7c442b}
.game-controls button:hover{transform:translateY(-3px);background:linear-gradient(160deg,#fffef9,#ffe3b4);box-shadow:0 8px 0 #a96035,0 12px 20px rgba(31,12,6,.45),inset 0 2px 0 #fff}
.game-controls .control-primary{
  width:64px;height:64px;border-radius:20px;color:#fff8e8;
  background:linear-gradient(160deg,#ffcf76 0%,#ff9b55 38%,#ef5e4c 100%);
  border-color:#fff5d6;
  box-shadow:0 6px 0 #a63835,0 10px 24px rgba(75,18,18,.5),0 0 0 4px rgba(255,203,110,.18),inset 0 2px 0 #ffe7b8;
}
.game-controls .control-primary:before{background:linear-gradient(145deg,rgba(255,255,255,.45),transparent 48%)}
.game-controls .control-primary svg{width:24px;height:24px;color:#fff8e6;filter:drop-shadow(0 2px 0 #a63a33)}
.game-controls .control-primary span{color:#fff8e6;font-size:9px;text-shadow:0 1px 0 #96322e}
.control-primary:after{
  content:"✦";position:absolute;top:-8px;right:-8px;width:19px;height:19px;display:grid;place-items:center;
  border-radius:50%;background:linear-gradient(#fff8d5,#ffd06a);color:#a9522d;font-size:10px;
  border:2px solid #fff7de;box-shadow:0 2px 5px rgba(107,43,43,.4);
  animation:anime-twinkle 2.6s ease-in-out infinite;
}
.game-controls button:nth-child(2),.game-controls button:nth-child(4){transform:translateY(-4px)}

/* --- panels: carry the same warm anime language --- */
dialog{
  background:linear-gradient(165deg,#fff8e8,#f7e7c8);color:#5f3b30;
  border:3px solid #fffdf4;border-radius:24px 24px 0 0;
  box-shadow:0 -6px 0 #b56b43,0 -16px 50px rgba(24,11,6,.45);
}
dialog::backdrop{background:rgba(8,20,30,.7);backdrop-filter:blur(4px)}
.sheet-handle{background:#e4b681}
.sheet-heading h2{font-family:var(--serif);color:#6b3c2d;font-weight:700}
.sheet-copy{color:#826454}
.close-button{background:#fffaf0;border:2px solid #eccb9d;color:#a45d3c}
.choice-card,.info-card{background:#fffdf6;border:2px solid #efd8b8;border-radius:16px}
.choice-card.active{background:#fff2d6;border-color:#f0a45f}
.sheet-action{
  background:linear-gradient(#ffd78a,#f09a52);color:#6e3a24;border:2px solid #fff8df;
  border-radius:14px;box-shadow:0 4px 0 #b96b3d;font-weight:800;
}
.schedule-row,.detail-row{border-color:#e8d3b4}
select,textarea{border-color:#e3c9a6;background:#fffaf1;color:#5f3b30;border-radius:10px}
.meter{background:#e8d9c4}
.meter>span{background:linear-gradient(90deg,#83c98f,#4da96b)}
.meter.stress>span{background:linear-gradient(90deg,#ffbd72,#e46a4f)}
.balance{color:#6b3c2d}
.cute-menu button{
  background:linear-gradient(160deg,#fffdf5,#ffeac6);border:2px solid #fffdf4;border-radius:16px;
  box-shadow:0 4px 0 #b97745,0 7px 14px rgba(62,28,12,.16);color:#7c442b;
}
.cute-menu button:hover{background:linear-gradient(160deg,#fffef9,#ffe1ae);transform:translateY(-2px)}
.cute-menu-icon{
  background:linear-gradient(150deg,#fff6dc,#ffd28f);border:2px solid #fff;color:#b55337;
  box-shadow:0 2px 0 #c07b49,inset 0 1px 0 #fff;
}
.cute-menu button:nth-child(4n+2) .cute-menu-icon{background:linear-gradient(150deg,#ffe9df,#ffb9a2);color:#c44f45;border-color:#fff}
.cute-menu button:nth-child(4n+3) .cute-menu-icon{background:linear-gradient(150deg,#fff2cf,#ffc768);color:#b16a2c;border-color:#fff}
.cute-menu button:nth-child(4n) .cute-menu-icon{background:linear-gradient(150deg,#eaf4d7,#b7d791);color:#648a48;border-color:#fff}
.cute-menu strong{color:#6b3c2d}
.cute-menu small{color:#9b735d}

/* --- motion --- */
@keyframes anime-light-breathe{from{opacity:.7;transform:scale(1)}to{opacity:1;transform:scale(1.035)}}
@keyframes anime-motes{from{background-position:22px 34px,94px 146px,164px 78px}to{background-position:192px -136px,324px 376px,474px -232px}}
@keyframes anime-twinkle{0%,100%{opacity:.55;transform:scale(.8) rotate(0)}50%{opacity:1;transform:scale(1.12) rotate(12deg)}}
@keyframes anime-stress-pulse{0%,100%{opacity:.75}50%{opacity:1}}

/* --- tighter phones --- */
@media(min-width:760px){
  body{background:radial-gradient(ellipse at 50% 18%,#eefbff 0%,#b9e3f5 42%,#7eb6d4 100%)}
  .game-shell{border-radius:10px;overflow:hidden;box-shadow:0 0 0 1px rgba(255,255,255,.6),0 25px 70px rgba(25,50,70,.45)}
}

@media(max-width:370px){
  .game-hud{padding:10px 8px 0;gap:5px}
  .hud-day{min-width:92px;padding:6px 8px}
  .hud-day-number{font-size:34px}
  .hud-day-meta{padding-left:6px}
  .hud-status{width:160px;padding:6px}
  .hud-menu{width:38px;height:38px;flex-basis:38px}
  .room-topline{left:10px;right:10px;top:106px}
  .rank-badge{left:10px;top:150px}
  .notebook-hotspot{right:16%}
  .tv-hotspot{left:24%}
  .game-message{left:10px;right:10px;bottom:calc(100px + env(safe-area-inset-bottom,0px));font-size:11px}
  .game-controls{left:10px;right:10px}
  .game-controls button{width:46px;height:46px;border-radius:15px}
  .game-controls .control-primary{width:56px;height:56px;border-radius:18px}
}

/* ============================================================
   TEXT IMAGES — main screen
   Fixed Japanese labels are transparent PNG assets. Numbers stay
   as live text so the prototype can update them from state.
   ============================================================ */

.sr-only{
  position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;
  overflow:hidden!important;clip:rect(0 0 0 0)!important;white-space:nowrap!important;border:0!important;
}

.hud-status{width:196px}
.hud-day-month{align-items:center}
.hud-day-meta{gap:3px;padding-left:7px}
.hud-year{display:flex;align-items:center;gap:2px;line-height:1}
.txt-unit-month{height:12px;width:auto;display:inline-block;vertical-align:-1px}
.txt-unit-year{height:9px;width:auto;display:block}
.txt-weekday{height:12px;width:auto;display:block}
.hud-gauge-label{align-items:center;gap:4px}
.txt-status{height:11px;width:auto;display:block}
.txt-yen{height:15px;width:auto;display:inline-block;vertical-align:-3px}
.room-label{gap:7px;line-height:1}
.txt-room-label{height:12px;width:auto;display:block}
.txt-room-name{height:12px;width:auto;display:block}
.rank-badge span{justify-content:center}
.txt-rank-name{height:12px;width:auto;display:block}
.rank-fame-line{display:flex;align-items:center;gap:2px;line-height:1}
.txt-rank-fame{height:8.5px;width:auto;display:block}

.tv-hotspot .txt-hotspot{
  position:absolute;top:49px;left:50%;transform:translateX(-50%);
  height:11px;width:auto;max-width:none;padding:3px 8px;box-sizing:content-box;
  background:linear-gradient(#fffdf4,#ffe9c5);border:2px solid #fff;border-radius:8px;
  box-shadow:0 2px 0 #a9653a,0 4px 8px rgba(44,19,6,.25);
}
.tv-hotspot .hotspot-spark{
  position:absolute;top:-8px;right:-7px;width:18px;height:18px;display:grid;place-items:center;
  border-radius:50%;background:linear-gradient(#fff8d5,#ffd06a);border:2px solid #fff7de;
  box-shadow:0 2px 5px rgba(107,43,43,.4);animation:anime-twinkle 2.8s ease-in-out infinite;padding:0;
  font-size:0;line-height:0;
}
.hotspot-spark svg{width:10px;height:10px;stroke-width:2.2;color:#a9522d}
.tv-hotspot:after{display:none;content:none}

.game-message{min-height:52px;padding:9px 14px 9px 11px;gap:9px}
.game-message:after{display:none;content:none}
.message-tag{
  position:absolute;top:-10px;left:13px;z-index:2;padding:2px 6px;line-height:0;
  background:linear-gradient(#ffd98c,#f5a24b);border:1px solid #fff1cf;border-radius:5px;
  box-shadow:0 2px 5px rgba(30,10,5,.3);
}
.txt-today{height:8px;width:auto;display:block}
.message-mark{font-size:0;line-height:0;display:grid;place-items:center}
.txt-message-mark{height:18px;width:auto;display:block}

.game-controls button .txt-control{height:11px;width:auto;display:block}
.game-controls .control-primary .txt-control-primary{height:12px;width:auto;display:block}
.game-controls .control-primary:after{display:none;content:none}
.control-spark{
  position:absolute;top:-8px;right:-8px;z-index:2;width:19px;height:19px;display:grid;place-items:center;
  border-radius:50%;background:linear-gradient(#fff8d5,#ffd06a);border:2px solid #fff7de;
  box-shadow:0 2px 5px rgba(107,43,43,.4);animation:anime-twinkle 2.6s ease-in-out infinite;
  padding:0;font-size:0;line-height:0;
}
.control-spark svg{width:10px;height:10px;stroke-width:2.2;color:#a9522d}
.cute-menu{grid-template-columns:repeat(3,minmax(0,1fr))}

.rank-badge > span{display:flex;flex-direction:column;gap:2px}
.rank-badge .rank-fame-line{display:flex;flex-direction:row;align-items:center;gap:2px;line-height:1}
.rank-badge .rank-fame-line b{font-size:9px;line-height:1;color:#fff}
.game-controls .control-spark{
  position:absolute;top:-7px;right:-7px;z-index:2;width:19px;height:19px;display:grid;place-items:center;
  border-radius:50%;background:linear-gradient(#fff8d5,#ffd06a);border:2px solid #fff7de;
  box-shadow:0 2px 5px rgba(107,43,43,.4);animation:anime-twinkle 2.6s ease-in-out infinite;
  padding:0;font-size:0;line-height:0;color:#a9522d;
}
.control-spark svg,.hotspot-spark svg{width:10px;height:10px;fill:currentColor;stroke:none}
.control-spark svg{color:#a9522d}
.hotspot-spark svg{color:#a9522d}

@media(max-width:370px){
  .hud-status{width:160px}
  .hud-day-meta{padding-left:6px}
  .txt-weekday{height:11px}
  .txt-unit-month{height:11px}
  .txt-unit-year{height:8px}
  .txt-status{height:10px}
  .txt-yen{height:14px}
  .txt-room-label{height:11px}
  .txt-room-name{height:11px}
  .txt-rank-name{height:11px}
  .txt-rank-fame{height:8px}
  .txt-control{height:10px}
  .txt-control-primary{height:11px}
  .message-text{font-size:11.5px}
  .txt-message-mark{height:17px}
  .txt-today{height:7.5px}
  .txt-hotspot{height:10px}
}
/* ============================================================
   ROOM HUD REDESIGN — 2026-11-09
   Date, rank, gauges, and money use separate cards. The date card
   shows year, month, and weeks 1-4 without a day-of-month.
   ============================================================ */
.game-hud{
  top:max(12px,env(safe-area-inset-top,0px));left:12px;right:12px;height:auto;padding:0;
  display:grid;
  grid-template-columns:minmax(95px,auto) minmax(58px,auto) minmax(0,1fr);
  grid-template-rows:auto auto;
  gap:6px 7px;
  align-items:start;
  z-index:6;
}
.game-hud .hud-day{
  grid-column:1;grid-row:1 / span 2;align-self:start;
  display:flex;flex-direction:column;align-items:flex-start;gap:1px;
  min-width:0;padding:6px 8px 7px;position:relative;overflow:hidden;
  color:#fffdf2;
  background:linear-gradient(150deg,#b8303c 0%,#9e2c3d 46%,#6e1c2c 100%);
  border:2px solid #ffe9c5;border-radius:15px 6px 15px 6px;
  box-shadow:0 4px 0 #55101e,0 8px 16px rgba(20,5,10,.44),inset 0 1px 0 rgba(255,240,205,.42);
}
.game-hud .hud-day:before{background:linear-gradient(135deg,rgba(255,255,255,.18),transparent 46%)}
.hud-year-line{display:flex;align-items:center;gap:2px;position:relative;z-index:1;font-size:9px;font-weight:800;line-height:1;color:#ffe9c5}
.hud-year-line b{font-size:11px;font-weight:800;color:#fffdf2}
.game-hud .txt-unit-year{height:8px;width:auto;display:block}
.hud-month-line{display:flex;align-items:baseline;gap:1px;position:relative;z-index:1;line-height:1}
.hud-month-line b{font-family:var(--serif);font-size:27px;font-weight:700;line-height:.9;letter-spacing:-1px;color:#fffdf2;text-shadow:0 1px 0 #55101e}
.game-hud .txt-unit-month{height:11px;width:auto;display:block;vertical-align:0}
.hud-week-row{display:flex;align-items:center;gap:2px;margin-top:3px;position:relative;z-index:1}
.game-hud .txt-unit-week{height:7px;width:auto;display:block;opacity:.95}
.hud-week-pill{
  min-width:32px;height:18px;padding:0 5px;display:grid;place-items:center;
  border:1px solid rgba(255,240,205,.54);border-radius:9px;
  background:rgba(60,8,16,.3);color:#ffdfb0;
  font-size:8.5px;font-weight:800;line-height:1;white-space:nowrap;
}
.hud-week-pill.is-current{
  min-width:34px;height:20px;border:2px solid #ffd27a;border-radius:6px;
  background:linear-gradient(#fffdf4,#ffe3a7);color:#7a1e32;
  box-shadow:0 2px 0 #55101e,0 0 0 1px #fff8e8;
}
.game-hud .rank-badge{
  position:relative;top:auto;left:auto;grid-column:2;grid-row:1;align-self:start;
  display:flex;align-items:center;gap:6px;min-width:104px;padding:8px 10px;
  color:#fff3d3;background:linear-gradient(160deg,#1a5368,#0b2a3b);
  border:2px solid #ffe6ad;border-radius:12px;
  box-shadow:0 3px 0 #071d2b,0 6px 12px rgba(4,16,26,.4);
}
.game-hud .rank-badge>svg{width:20px;height:20px;flex:0 0 20px;color:#ffd06a;fill:rgba(255,208,106,.35);filter:drop-shadow(0 0 5px rgba(255,200,94,.5))}
.game-hud .rank-badge>span{display:flex;flex-direction:column;gap:2px;min-width:0}
.game-hud .txt-rank-name{height:13px;width:auto;display:block}
.game-hud .txt-rank-fame{height:9px;width:auto;display:block}
.game-hud .rank-fame-line{display:flex;flex-direction:row;align-items:center;gap:3px;line-height:1}
.game-hud .rank-fame-line b{font-size:12px;line-height:1;letter-spacing:0;color:#fff;font-weight:800;font-variant-numeric:tabular-nums}
.game-hud .hud-status{
  grid-column:3;grid-row:1;align-self:start;margin-left:0;width:auto;min-width:0;
  padding:6px 8px;display:flex;flex-direction:column;align-items:stretch;gap:4px;
  color:#fff3d3;background:linear-gradient(160deg,rgba(19,52,72,.97),rgba(8,28,43,.96));
  border:2px solid #fff0c9;border-radius:13px;
  box-shadow:0 3px 0 #0a2434,0 6px 13px rgba(2,12,20,.48),inset 0 1px 0 rgba(255,255,255,.28);
}
.game-hud .hud-gauge{gap:5px}
.game-hud .hud-gauge-icon{width:17px;height:17px;flex:0 0 17px}
.game-hud .hud-gauge-icon svg{width:10px;height:10px}
.game-hud .hud-gauge-body{flex:1;min-width:0;width:100%}
.game-hud .hud-gauge-label{gap:4px;font-size:9px;font-weight:800;letter-spacing:.3px}
.game-hud .hud-gauge-label .txt-status{height:10px;width:auto}
.game-hud .hud-gauge-label b{font-size:12px;font-weight:800;font-variant-numeric:tabular-nums}
.game-hud .hud-gauge-bar{width:100%;height:5px}
.game-hud .hud-money{
  grid-column:3;grid-row:2;justify-self:stretch;
  display:flex;align-items:center;justify-content:flex-end;gap:4px;
  min-width:0;padding:4px 8px;position:relative;z-index:1;
  border:2px solid #fffdf4;border-top:2px solid #fffdf4;border-radius:11px;
  color:#5a3528;background:linear-gradient(160deg,#fffdf5,#ffe9c5);
  box-shadow:0 2px 0 #a96035,0 4px 10px rgba(31,12,6,.28);
  font-family:var(--serif);font-size:12px;font-weight:800;line-height:1;
  white-space:nowrap;
}
.game-hud .hud-money svg{width:12px;height:12px;color:#b55337}
.game-hud .hud-money .txt-yen{height:13px;width:auto;display:inline-block;vertical-align:0}
.game-hud .hud-money strong{font-weight:800;letter-spacing:0;font-variant-numeric:tabular-nums}

/* darker primary action: cream label now clears 4.5:1 on the lightest stop */
.game-controls .control-primary{
  background:linear-gradient(160deg,#b8303c 0%,#a92c33 42%,#8f2334 100%);
  border-color:#fff5d6;
  box-shadow:0 6px 0 #55101e,0 10px 24px rgba(75,18,18,.5),0 0 0 4px rgba(255,203,110,.2),inset 0 2px 0 #ffe7b8;
}
.game-controls .control-primary:hover{background:linear-gradient(160deg,#c13b45 0%,#9e2c3d 48%,#7a1e32 100%)}
.game-controls .control-primary svg{color:#fff8e6;filter:drop-shadow(0 1px 0 #55101e)}
.game-controls .control-primary .txt-control-primary{color:#fff8e6}

/* schedule rows: weekday and day-in-week only */
.schedule-row{grid-template-columns:70px minmax(0,1fr);gap:9px}
.day-number{display:flex;align-items:center;gap:6px;min-width:0}
.day-number .txt-weekday{height:11px;width:auto;display:block;flex:0 0 auto}
.day-number small{margin:0;font-size:9px;color:#6f5a4a;white-space:nowrap}
.schedule-row .fixed{color:#a63d22}
.schedule-note{margin:0 0 7px;padding-left:79px;font-size:10px;line-height:1.6;color:#7f3f2a}
.sheet-copy{color:#74533f}

@media(max-width:370px){
  .game-hud{top:max(9px,env(safe-area-inset-top,0px));left:9px;right:9px;gap:5px 6px;grid-template-columns:minmax(92px,auto) minmax(54px,auto) minmax(0,1fr)}
  .game-hud .hud-day{padding:5px 7px 6px}
  .hud-month-line b{font-size:24px}
  .hud-week-pill{min-width:30px;height:17px;font-size:8px}
  .hud-week-pill.is-current{min-width:32px;height:19px}
  .game-hud .rank-badge{padding:5px 6px;gap:4px}
  .game-hud .rank-badge>svg{width:14px;height:14px;flex-basis:14px}
  .game-hud .txt-rank-name{height:10px}
  .game-hud .txt-rank-fame{height:7.5px}
  .game-hud .hud-status{padding:5px 6px;gap:3px}
  .game-hud .hud-money{padding:4px 6px;font-size:11px;gap:3px}
  .game-hud .hud-money svg{width:11px;height:11px}
  .game-hud .hud-money .txt-yen{height:12px}
  .schedule-row{grid-template-columns:64px minmax(0,1fr)}
  .schedule-note{padding-left:73px}
}
/* ============================================================
   GAME LETTERING + FORCE-DARK HARDENING — 2026-11-09
   Fixed labels use a bright gold fill with a dark edge. Gold
   survives Chrome/Samsung-style force-dark darkening; dark
   plaques behind the labels keep the gold readable in light mode.
   ============================================================ */
:root{color-scheme:light dark}

/* money card: dark lacquer, gold text, readable before and after force-dark */
.game-hud .hud-money{
  color:#ffe6a2;background:linear-gradient(160deg,#3b2418 0%,#25130c 62%,#160a06 100%);
  border-color:#ffd98c;
  box-shadow:0 2px 0 #140704,0 4px 10px rgba(15,6,2,.42),inset 0 1px 0 rgba(255,236,180,.28);
}
.game-hud .hud-money strong{color:#ffe6a2;text-shadow:0 1px 0 #140704}
.game-hud .hud-money svg{color:#ffd27a}

/* bottom dock: dark wood-and-gold buttons; the label art is gold on purpose */
.game-controls button{
  color:#ffe6a2;
  background:linear-gradient(160deg,#4c2e1c 0%,#2c180f 56%,#190c07 100%);
  border-color:#ffd98c;
  box-shadow:0 5px 0 #170804,0 9px 18px rgba(10,4,2,.55),inset 0 2px 0 rgba(255,237,185,.28);
}
.game-controls button:before{background:linear-gradient(145deg,rgba(255,231,168,.3),transparent 46%)}
.game-controls button svg{color:#ffd27a;filter:drop-shadow(0 1px 0 #140806)}
.game-controls button:hover{
  background:linear-gradient(160deg,#5a3822 0%,#3a2115 56%,#22100a 100%);
  box-shadow:0 8px 0 #170804,0 12px 20px rgba(10,4,2,.55),inset 0 2px 0 rgba(255,237,185,.3);
}
.game-controls .control-primary{
  background:linear-gradient(160deg,#b8303c 0%,#9e2c3d 46%,#761d30 100%);
  border-color:#ffe9c5;
  box-shadow:0 6px 0 #55101e,0 10px 24px rgba(75,18,18,.55),0 0 0 4px rgba(255,203,110,.18),inset 0 2px 0 #ffe7b8;
}
.game-controls .control-primary:hover{background:linear-gradient(160deg,#c13b45 0%,#9e2c3d 48%,#7a1e32 100%)}
.game-controls .control-primary svg{color:#ffe6a2;filter:drop-shadow(0 1px 0 #55101e)}
.game-controls button .txt-control{height:12px}
.game-controls .control-primary .txt-control-primary{height:13px}

/* schedule day plaque: gold weekday art on dark wood */
.schedule-row{grid-template-columns:76px minmax(0,1fr);gap:9px}
.day-number{
  display:flex;align-items:center;gap:5px;min-width:0;padding:4px 6px;
  color:#ffe6a2;background:linear-gradient(160deg,#3b2418 0%,#23120b 65%,#160a06 100%);
  border:1.5px solid #ffd98c;border-radius:8px;
  box-shadow:0 2px 0 #140704,inset 0 1px 0 rgba(255,236,180,.24);
}
.day-number .txt-weekday{height:11px;width:auto;display:block;flex:0 0 auto}
.day-number small{margin:0;font-size:8px;font-weight:700;color:#ffe6a2;white-space:nowrap}
.schedule-row .fixed{color:#ffd27a;text-shadow:0 1px 0 #190c07}
.schedule-row .fixed small{color:#ffe6a2}
.schedule-note{color:#ffd27a}

/* game sheets: dark lacquer panels keep the gold lettering legible in every mode */
dialog{
  background:linear-gradient(165deg,#1b2730 0%,#101a22 58%,#0b1319 100%);
  color:#f8edd8;border:3px solid #ffd98c;
  box-shadow:0 -6px 0 #7a4a2c,0 -16px 50px rgba(4,8,12,.62);
}
dialog::backdrop{background:rgba(2,7,11,.78);backdrop-filter:blur(4px)}
.sheet-handle{background:#c79a5b}
.sheet-heading h2{color:#ffe6a2}
.sheet-copy{color:#d9cbb2}
.close-button{background:#1f303b;border-color:#ffd98c;color:#ffe6a2}
.choice-card,.info-card{background:#17242c;border-color:#4d3a2a;border-radius:16px}
.choice-card.active{background:#2b2116;border-color:#ffd27a}
.choice-card small{color:#b8c7cf}
.choice-card strong{color:#fff3d3}
.choice-card .selected{color:#ffd27a}
.sheet-action{
  background:linear-gradient(#e8b05a,#b86a2f);color:#1a0a04;border:2px solid #ffe9c5;
  border-radius:14px;box-shadow:0 4px 0 #5e2a12;font-weight:800;
}
.sheet-action:disabled{opacity:.6}
.schedule-row,.detail-row{border-color:#3c4a52}
.detail-row span{color:#b8c7cf}
.detail-row strong{color:#fff3d3}
.meter-label{color:#e8ddc8}
.meter{background:#0a141a}
.balance{color:#ffe6a2}
.balance small{color:#b8c7cf}
.info-card h3{color:#ffe6a2}
.info-card p{color:#c9d2d6}
.tag{color:#ffd27a}
select,textarea{
  background:#12202a;color:#f8edd8;border-color:#5a6a72;border-radius:10px;
}
select option{background:#12202a;color:#f8edd8}
.journal-input{
  background-color:#12202a;color:#f8edd8;
  background-image:repeating-linear-gradient(transparent,transparent 27px,#2a3a44 28px);
  border-color:#5a6a72;
}
.cute-menu button{
  background:linear-gradient(160deg,#24333d 0%,#142029 100%);border-color:#ffd98c;
  box-shadow:0 4px 0 #0a1116,0 7px 14px rgba(0,0,0,.25);color:#ffe6a2;
}
.cute-menu button:hover{background:linear-gradient(160deg,#30424d,#1a2831)}
.cute-menu strong{color:#ffe6a2}
.cute-menu small{color:#b8c7cf}
.eyebrow{color:#b8c7cf}
.toast{background:#1b2730;color:#fff3d3;border:2px solid #ffd98c}
dialog button:focus-visible,dialog select:focus-visible,dialog textarea:focus-visible{outline-color:#ffd27a}
.game-controls button:focus-visible,.game-hud button:focus-visible{outline-color:#ffd27a;outline-offset:4px}

/* OS dark theme: dim the room, keep the lacquer HUD and gold labels */
@media (prefers-color-scheme: dark){
  :root{--paper:#0d1418;--ink:#f8edd8;--muted:#b8c7cf;--line:#3c4a52}
  body{background:#070c10;color:#f8edd8}
  .game-shell{background:#0b1114}
  .room-image{filter:saturate(.95) contrast(1.08) brightness(.68)}
  .room-scene:after{
    background:linear-gradient(180deg,rgba(4,10,17,.72),rgba(5,10,15,.16) 24%,transparent 55%,rgba(3,7,11,.9) 100%);
  }
  .scene-light{opacity:.5}
  .scene-vignette{box-shadow:inset 0 0 110px rgba(0,0,0,.65),inset 0 0 0 1px rgba(255,224,160,.12)}
  .game-message{background:linear-gradient(160deg,rgba(13,39,55,.98),rgba(5,18,28,.98));border-color:#ffd98c}
  .message-text{color:#fff6df}
}
@media(max-width:370px){
  .game-controls button .txt-control{height:11px}
  .game-controls .control-primary .txt-control-primary{height:12px}
  .schedule-row{grid-template-columns:70px minmax(0,1fr);gap:7px}
  .day-number{padding:3px 5px;gap:4px}
  .day-number .txt-weekday{height:10px}
  .day-number small{font-size:7.5px}
}
/* ============================================================
   LIVE GAME LETTERING — 2026-11-09
   The SVG art remains the design source in tools/text-render.html,
   but the room uses live text at runtime. Chrome/Samsung force-dark
   inverts SVG and bitmap labels; live text is restyled instead, so
   the gold face and dark outline survive the conversion.
   ============================================================ */
.logo{
  display:inline-flex;align-items:center;justify-content:center;position:relative;
  line-height:1;font-family:var(--sans);font-weight:800;white-space:nowrap;
  flex:0 0 auto;vertical-align:middle;color:#ffd27a;
  --logo-stroke:#3a190e;--mark-color:#ffe8a6;--logo-skew:0deg;
}
.logo-text{
  display:inline-block;position:relative;z-index:1;
  color:#ffdf9e;-webkit-text-fill-color:#ffdf9e;background:none;
  -webkit-text-stroke:.07em var(--logo-stroke);paint-order:stroke fill;
  text-shadow:0 .12em 0 rgba(15,6,3,.55);
  letter-spacing:.04em;transform:skewX(var(--logo-skew));
}
.logo[data-mark]{padding-right:.55em}
.logo[data-mark="dots"]{padding-right:.85em}
.logo[data-mark="underline"],.logo[data-mark="pulse"]{padding-right:0}
.logo[data-mark]::after{content:"";position:absolute;z-index:2;pointer-events:none}
.logo[data-mark="spark"]::after{
  content:"✦";top:-.22em;right:0;font-size:.55em;color:var(--mark-color);
  text-shadow:0 0 .3em rgba(255,230,160,.7);transform:rotate(10deg);
}
.logo[data-mark="star"]::after{
  content:"★";top:-.2em;right:0;font-size:.48em;color:var(--mark-color);
  text-shadow:0 0 .25em rgba(255,210,106,.7);
}
.logo[data-mark="diamond"]::after{
  width:.3em;height:.3em;top:-.02em;right:0;background:var(--mark-color);
  border:.06em solid #5a1220;transform:rotate(45deg);box-shadow:0 0 .2em rgba(255,233,168,.6);
}
.logo[data-mark="dots"]::after{
  width:.18em;height:.18em;top:.05em;right:0;border-radius:50%;background:var(--mark-color);
  box-shadow:.28em 0 0 var(--mark-color),.56em 0 0 var(--mark-color);
}
.logo[data-mark="dot"]::after{
  width:.28em;height:.28em;top:-.02em;right:0;border-radius:50%;background:var(--mark-color);
  border:.06em solid #2a1208;box-shadow:0 0 .2em rgba(255,230,160,.55);
}
.logo[data-mark="coin"]::after{
  width:.32em;height:.32em;top:-.02em;right:0;border:.08em solid var(--mark-color);border-radius:50%;
  box-shadow:inset 0 0 0 .05em rgba(0,0,0,.25),0 0 .2em rgba(255,230,160,.55);
}
.logo[data-mark="arrow"]::after{
  width:.28em;height:.28em;top:.02em;right:0;
  border-top:.09em solid var(--mark-color);border-right:.09em solid var(--mark-color);transform:rotate(45deg);
}
.logo[data-mark="bolt"]::after{
  width:.26em;height:.46em;top:-.03em;right:0;background:var(--mark-color);
  clip-path:polygon(60% 0,8% 55%,44% 55%,28% 100%,92% 40%,55% 40%);
  filter:drop-shadow(0 .03em 0 #2a0b03);
}
.logo[data-mark="pulse"]::after{
  width:100%;height:.18em;left:0;bottom:-.28em;background:var(--mark-color);opacity:.95;
  clip-path:polygon(0 60%,18% 60%,26% 0,38% 100%,48% 38%,58% 60%,100% 60%,100% 90%,50% 90%,42% 62%,32% 100%,22% 38%,14% 90%,0 90%);
}
.logo[data-mark="underline"]::after{
  width:100%;height:.09em;left:0;bottom:-.22em;border-radius:99px;
  background:linear-gradient(90deg,transparent,var(--mark-color) 18%,var(--mark-color) 82%,transparent);
  box-shadow:0 0 .2em rgba(255,230,160,.5);
}
.logo[data-mark="bars"]::after{
  width:.36em;height:.3em;top:.02em;right:0;border-radius:.03em;
  background:repeating-linear-gradient(180deg,var(--mark-color) 0 .06em,transparent .06em .12em);
}
.logo[data-mark="burst"]::after{
  content:"✧";top:-.3em;right:0;font-size:.55em;color:var(--mark-color);
  text-shadow:0 0 .25em rgba(255,210,120,.65);
}
.logo-unit-year{font-size:9px}
.logo-unit-month{font-size:16px}
.logo-unit-week{font-size:9px}
.logo-rank-name{font-size:11px}
.logo-rank-fame{font-size:9px}
.logo-status{font-size:10px;--logo-stroke:#0b352e;--mark-color:#b9f0b9}
.logo-status-stress{font-size:9.5px;--logo-stroke:#4e0f17;--mark-color:#ffb09a}
.logo-yen{font-size:14px;--logo-stroke:#4a2a16;--mark-color:#fff2a8}
.logo-control{font-size:11px;--logo-stroke:#3a190e;--mark-color:#ffe8a6}
.logo-control-action{font-size:12px;--logo-stroke:#450b14;--mark-color:#ffe6a0;--logo-skew:-6deg}
.logo-control-out{--logo-stroke:#082c40;--mark-color:#a9e4f4}
.logo-control-menu{font-size:10px;letter-spacing:-.02em}
.logo-weekday{font-size:11px;--logo-stroke:#33190c;--mark-color:#ffd27a}
.logo-mon{--mark-color:#ffd27a}
.logo-tue{--mark-color:#ff9d7a}
.logo-wed{--mark-color:#8fd8e8}
.logo-thu{--mark-color:#b9e39a}
.logo-fri{--mark-color:#ffe08a}
.logo-sat{--mark-color:#ffb0c4}
.logo-sun{--mark-color:#ff8f7a}
.logo-unit-year,.logo-unit-month,.logo-unit-week{--logo-stroke:#5a1220;--mark-color:#ffe9a8}
.logo-rank-name,.logo-rank-fame{--logo-stroke:#082334;--mark-color:#ffd06a}
.logo-today{font-size:8.5px}
.logo-today .logo-text{
  background:none;color:#3a1a0e;-webkit-text-stroke:0;text-shadow:0 1px 0 #ffe9b0;
  letter-spacing:.18em;transform:none;
}
.logo-mark{font-size:15px;--mark-color:#7a3b20}
.logo-mark .logo-text{
  background:none;color:#7a3b20;-webkit-text-stroke:0;text-shadow:0 1px 0 #ffe9b0;
  transform:none;
}
.message-tag{padding:2px 7px;line-height:1}
.message-mark{font-size:0;line-height:1}
.message-mark .logo-mark{font-size:15px}
.game-controls button .logo{position:relative;z-index:1}
.game-controls button .logo-text{
  font-size:inherit;line-height:1;font-weight:800;letter-spacing:.04em;
  color:#ffdf9e;-webkit-text-fill-color:#ffdf9e;
}
.game-controls .logo-control{font-size:11px}
.game-controls .logo-control-action{font-size:12px}
.hud-gauge-label .logo{min-width:0}
@media(max-width:370px){
  .logo-unit-month{font-size:14px}
  .logo-unit-year{font-size:8px}
  .logo-rank-name{font-size:10px}
  .logo-status{font-size:9px}
  .logo-status-stress{font-size:8.5px}
  .logo-control{font-size:10px}
  .logo-control-action{font-size:11px}
  .game-controls .logo-control{font-size:10px}
  .game-controls .logo-control-action{font-size:11px}
  .game-controls .logo-control-menu{font-size:9px}
  .logo-weekday{font-size:10px}
  .logo-today{font-size:7.5px}
}

/* ============================================================
   MAIN SCREEN TEXT SIZE — 2026-11-09
   Only the room screen. Panel text keeps its existing size.
   ============================================================ */
.game-hud{
  grid-template-columns:108px 74px minmax(0,1fr);
  gap:7px;
}
.game-hud .hud-day{padding:8px 10px 9px;gap:2px}
.hud-year-line{font-size:10px;gap:3px}
.hud-year-line b{font-size:13px}
.logo-unit-year{font-size:10.5px}
.hud-month-line b{font-size:32px}
.logo-unit-month{font-size:19px}
.hud-week-row{gap:1.5px;margin-top:5px}
.logo-unit-week{font-size:10px}
.hud-week-pill{min-width:34px;height:19px;font-size:9px}
.hud-week-pill.is-current{min-width:36px;height:21px;font-size:9.5px}
.game-hud .rank-badge{padding:7px 8px;gap:6px}
.game-hud .rank-badge>svg{width:18px;height:18px;flex-basis:18px}
.game-hud .txt-rank-name,.logo-rank-name{font-size:13px}
.logo-rank-fame{font-size:10px}
.game-hud .rank-fame-line b{font-size:11px}
.game-hud .hud-status{padding:7px 9px;gap:5px}
.game-hud .hud-gauge-icon{width:19px;height:19px;flex-basis:19px}
.game-hud .hud-gauge-icon svg{width:11px;height:11px}
.logo-status{font-size:11px}
.logo-status-stress{font-size:10.5px}
.game-hud .hud-gauge-label b{font-size:12px}
.game-hud .hud-gauge-bar{height:6px}
.game-hud .hud-money{
  grid-column:2 / 4;padding:5px 10px;gap:6px;
  font-size:15px;
}
.logo-yen{font-size:17px}
.game-hud .hud-money strong{font-size:15px}
.game-message{min-height:60px;padding:11px 16px 11px 13px;gap:11px}
.message-text{font-size:14px}
.message-tag{padding:3px 8px}
.logo-today{font-size:9.5px}
.message-mark{width:30px;height:30px;flex-basis:30px}
.message-mark .logo-mark{font-size:18px}
.game-controls{left:16px;right:16px;gap:5px}
.game-controls button{width:60px;height:60px;border-radius:19px;gap:2px}
.game-controls button[data-panel="menu"]{width:66px}
.game-controls button svg{width:22px;height:22px}
.game-controls .logo-control{font-size:12px}
.game-controls .logo-control-action{font-size:13px}
.game-controls .logo-control-menu{font-size:11px}
.game-controls .control-primary .logo-control-action{font-size:13px}
.game-controls .control-primary .logo-text{
  font-size:inherit;color:#ffdf9e;-webkit-text-fill-color:#ffdf9e;
  -webkit-text-stroke:.07em var(--logo-stroke);
  text-shadow:0 .12em 0 rgba(15,6,3,.55);
  letter-spacing:.04em;
}
.game-controls .control-primary{width:72px;height:72px;border-radius:22px}
.game-controls .control-primary svg{width:26px;height:26px}
@media(max-width:370px){
  .game-hud{grid-template-columns:100px 68px minmax(0,1fr);gap:6px}
  .game-hud .hud-day{padding:7px 8px 8px}
  .hud-year-line{font-size:9.5px}
  .hud-year-line b{font-size:12px}
  .logo-unit-year{font-size:10px}
  .hud-month-line b{font-size:29px}
  .logo-unit-month{font-size:17px}
  .hud-week-row{gap:1.5px;margin-top:4px}
  .logo-unit-week{font-size:10px}
  .hud-week-pill{min-width:30px;height:17px;font-size:8.5px}
  .hud-week-pill.is-current{min-width:32px;height:19px;font-size:9px}
  .game-hud .rank-badge{padding:6px 7px;gap:5px}
  .game-hud .rank-badge>svg{width:16px;height:16px;flex-basis:16px}
  .game-hud .txt-rank-name,.logo-rank-name{font-size:12px}
  .logo-rank-fame{font-size:9.5px}
  .game-hud .rank-fame-line b{font-size:10px}
  .game-hud .hud-status{padding:6px 7px;gap:4px}
  .game-hud .hud-gauge-icon{width:18px;height:18px;flex-basis:18px}
  .logo-status{font-size:10.5px}
  .logo-status-stress{font-size:10.5px}
  .game-hud .hud-gauge-label b{font-size:11px}
  .game-hud .hud-gauge-bar{height:6px}
  .game-hud .hud-money{padding:5px 8px;gap:5px;font-size:14px}
  .logo-yen{font-size:16px}
  .game-hud .hud-money strong{font-size:14px}
  .game-message{left:10px;right:10px;bottom:calc(104px + env(safe-area-inset-bottom,0px));min-height:58px;padding:10px 12px;gap:9px}
  .message-text{font-size:13px}
  .message-mark{width:28px;height:28px;flex-basis:28px}
  .message-mark .logo-mark{font-size:17px}
  .game-controls{left:7px;right:7px;gap:4px}
  .game-controls button{width:56px;height:56px;border-radius:17px}
  .game-controls button[data-panel="menu"]{width:60px}
  .game-controls button svg{width:20px;height:20px}
  .game-controls .logo-control{font-size:11px}
  .game-controls .logo-control-action{font-size:12px}
  .game-controls .logo-control-menu{font-size:10.5px}
  .game-controls .control-primary .logo-control-action{font-size:12px}
  .game-controls .control-primary{width:62px;height:62px;border-radius:20px}
  .game-controls .control-primary svg{width:24px;height:24px}
}
/* ============================================================
   016 ROOM STATUS / BACKGROUND — 2026-11-09
   ============================================================ */
/* natural room image: the LCD and colour grade are baked into the PNG */
.room-scene{background:#8a7a62}
.room-image{filter:saturate(.97) contrast(1.02) brightness(1.01)}
.scene-light{
  background:
    radial-gradient(ellipse at 3% 36%,rgba(255,248,225,.32),transparent 38%),
    radial-gradient(ellipse at 52% 18%,rgba(255,234,205,.1),transparent 34%),
    linear-gradient(116deg,rgba(226,238,246,.12) 0%,transparent 30%,transparent 70%,rgba(60,111,138,.12) 100%);
  opacity:.75;
}
@media(prefers-color-scheme:dark){
  .room-image{filter:saturate(.9) contrast(1.06) brightness(.66)}
  .scene-light{opacity:.45}
}

/* rank: no star, larger name/fame, long names wrap inside the card */
.game-hud{grid-template-columns:108px 82px minmax(0,1fr)}
.game-hud .rank-badge{padding:7px 9px;gap:0;align-items:center}
.game-hud .rank-badge>span{gap:2px;min-width:0}
.logo-rank-name{
  display:block;width:100%;font-size:15px;line-height:1.12;
  white-space:normal;overflow-wrap:anywhere;text-align:left;
}
.logo-rank-fame{font-size:12px}
.game-hud .rank-fame-line b{font-size:12px}

/* common person pictogram; two gauges keep equal maximum width */
.game-hud .hud-status{
  display:grid;grid-template-columns:30px minmax(0,1fr);gap:6px;
  align-items:center;padding:7px 9px;
}
.hud-condition{
  width:30px;height:38px;display:grid;place-items:center;
  border:1px solid rgba(255,217,140,.55);border-radius:9px;
  background:rgba(8,28,43,.55);
  box-shadow:inset 0 1px 0 rgba(255,239,190,.2);
}
.condition-icon{width:28px;height:34px;stroke-width:3;color:#ffdf9e;fill:none;overflow:visible}
.hud-gauges{display:flex;flex-direction:column;gap:4px;min-width:0}
.hud-gauge{gap:0}
.hud-gauge-body{width:100%}

/* message: TODAY and the left icon are gone */
.game-message{padding:11px 16px;gap:0;min-height:60px}
.message-text{font-size:14px}

/* five buttons: same normal width, action intentionally larger, same bottom line */
.game-controls{left:16px;right:16px;gap:5px}
.game-controls button{width:62px;height:62px;border-radius:18px;transform:none}
.game-controls button[data-panel="menu"]{width:62px}
.game-controls button:nth-child(2),.game-controls button:nth-child(4){transform:none}
.game-controls button:hover{transform:translateY(-4px)}
.game-controls .control-primary{width:72px;height:72px;border-radius:22px}
.game-controls .control-primary:hover{
  background:linear-gradient(160deg,#b8303c 0%,#9e2c3d 46%,#761d30 100%);
  border-color:#ffe9c5;
  box-shadow:0 6px 0 #55101e,0 10px 24px rgba(75,18,18,.55),0 0 0 4px rgba(255,203,110,.18),inset 0 2px 0 #ffe7b8;
}
.game-controls .logo-control{font-size:12px}
.game-controls .logo-control-action{font-size:13px}
.game-controls .logo-control-menu{font-size:11px}

/* status panel review material: these are new notes, existing panel text sizes stay */
.note-small{font-size:10px;line-height:1.7;color:#b8c7cf;margin:6px 0 0}
.balance.is-long{font-size:clamp(24px,8vw,36px);letter-spacing:-1px}
.rank-proposals{font-size:11px;line-height:1.8;overflow-wrap:anywhere}
.message-samples{list-style:none;padding:0;margin:9px 0 0;display:grid;gap:8px}
.message-samples li{padding:8px 10px;border:1px solid #3c4a52;border-radius:8px;background:#132029}
.message-samples strong{display:block;color:#ffe6a2;font-size:11px;line-height:1.4}
.message-samples span{display:block;color:#e8ddc8;font-size:11px;line-height:1.65;margin-top:2px}
.message-samples small{display:block;color:#b8c7cf;font-size:9.5px;line-height:1.5;margin-top:4px}

@media(max-width:370px){
  .game-hud{grid-template-columns:100px 74px minmax(0,1fr)}
  .logo-rank-name{font-size:14px}
  .logo-rank-fame{font-size:11px}
  .game-hud .rank-fame-line b{font-size:11px}
  .game-hud .hud-status{grid-template-columns:28px minmax(0,1fr);gap:5px;padding:6px 7px}
  .hud-condition{width:28px;height:36px}
  .condition-icon{width:26px;height:32px}
  .game-message{padding:10px 13px;min-height:56px}
  .message-text{font-size:13px}
  .game-controls{left:7px;right:7px;gap:3px}
  .game-controls button{width:58px;height:58px;border-radius:17px}
  .game-controls button[data-panel="menu"]{width:58px}
  .game-controls .control-primary{width:62px;height:62px;border-radius:20px}
  .game-controls .logo-control{font-size:11px}
  .game-controls .logo-control-action{font-size:12px}
  .game-controls .logo-control-menu{font-size:10.5px}
}
@media(prefers-reduced-motion:reduce){
  .game-controls button:hover{transform:none}
}
/* ============================================================
   019 ROOM LAYOUT / ILLUSTRATION — 2026-11-09
   ============================================================ */
.game-hud{left:12px;right:12px}
.game-message{left:12px;right:12px}
.game-controls{left:12px;right:12px}
@media(max-width:370px){
  .game-hud,.game-message,.game-controls{left:9px;right:9px}
}
/* Two-column HUD: date + status on the left, rank + money on the right. */
.game-hud{
  grid-template-columns:116px minmax(0,1fr);
  gap:7px;
  align-items:stretch;
}
.game-hud .hud-day{
  grid-column:1;grid-row:1;width:100%;min-width:0;height:100%;
  padding:9px 9px;
}
.hud-week-row{width:100%;justify-content:space-between}
.game-hud .rank-badge{
  grid-column:2;grid-row:1;width:100%;height:100%;
  display:flex;align-items:center;justify-content:center;
  padding:10px 14px;text-align:center;
}
.game-hud .rank-badge>span{align-items:center;gap:3px}
.logo-rank-name{
  display:block;width:100%;font-size:15px;line-height:1.15;
  white-space:nowrap;overflow:hidden;text-overflow:clip;text-align:center;
}
.logo-rank-fame{font-size:12px}
.game-hud .rank-fame-line{justify-content:center}
.game-hud .hud-status{
  grid-column:1;grid-row:2;width:100%;height:100%;
  padding:6px 8px;gap:5px;grid-template-columns:28px minmax(0,1fr);
}
.game-hud .hud-gauge-label{gap:3px}
.game-hud .logo-status .logo-text{letter-spacing:0}
.game-hud .hud-money{
  grid-column:2;grid-row:2;width:auto;min-width:130px;max-width:100%;
  justify-self:end;height:100%;
  display:flex;flex-direction:column;align-items:flex-end;justify-content:center;
  gap:2px;padding:7px 12px;
}
.hud-money-label{font-size:9px;line-height:1;letter-spacing:.08em;color:#ffdf9e;opacity:.82}
.hud-money-value{display:flex;align-items:center;gap:6px;line-height:1}
.game-hud .hud-money strong{font-size:15px}
.game-hud .hud-money .txt-yen,.game-hud .hud-money .logo-yen{font-size:17px}

/* Filled human silhouettes; the limbs stay thick so the icon reads as a body. */
.condition-icon{fill:currentColor;stroke:none}

/* Brighter room, softer vignette; the image itself is the new 019 asset. */
.room-image{filter:saturate(1) contrast(1.02) brightness(1.02)}
.room-scene{background:#8a7a62}
.scene-light{
  background:
    radial-gradient(ellipse at 3% 36%,rgba(255,248,235,.22),transparent 40%),
    radial-gradient(ellipse at 52% 18%,rgba(255,240,225,.08),transparent 36%),
    linear-gradient(116deg,rgba(226,238,246,.14) 0%,transparent 30%,transparent 70%,rgba(60,111,138,.12) 100%);
  opacity:.62;
}
.room-scene:after{
  background:
    linear-gradient(180deg,rgba(10,27,46,.34) 0%,rgba(10,27,46,.04) 20%,transparent 58%,rgba(7,15,24,.56) 100%),
    radial-gradient(ellipse at 50% 46%,transparent 46%,rgba(26,16,9,.14) 100%);
}
.scene-vignette{box-shadow:inset 0 0 72px rgba(12,14,26,.24),inset 0 0 0 1px rgba(255,246,215,.12)}
@media(prefers-color-scheme:dark){
  .room-image{filter:saturate(.92) contrast(1.04) brightness(.68)}
  .room-scene:after{
    background:
      linear-gradient(180deg,rgba(4,10,17,.62) 0%,rgba(5,10,15,.1) 24%,transparent 58%,rgba(3,7,11,.76) 100%),
      radial-gradient(ellipse at 50% 46%,transparent 44%,rgba(10,6,3,.2) 100%);
  }
  .scene-light{opacity:.55}
  .scene-vignette{box-shadow:inset 0 0 90px rgba(0,0,0,.45),inset 0 0 0 1px rgba(255,224,160,.1)}
}

@media(max-width:370px){
  .game-hud{grid-template-columns:108px minmax(0,1fr);gap:6px}
  .game-hud .hud-day{padding:8px 7px}
  .game-hud .rank-badge{padding:8px 9px}
  .logo-rank-name{font-size:14px}
  .logo-rank-fame{font-size:11px}
  .game-hud .rank-fame-line b{font-size:11px}
  .game-hud .hud-status{padding:5px 6px;gap:4px;grid-template-columns:26px minmax(0,1fr)}
  .game-hud .hud-condition{width:26px;height:32px}
  .condition-icon{width:24px;height:30px}
  .game-hud .hud-money{padding:6px 8px;min-width:112px}
  .game-hud .hud-money strong{font-size:14px}
  .game-hud .hud-money .txt-yen,.game-hud .hud-money .logo-yen{font-size:16px}
  .hud-money-label{font-size:8.5px}
  .hud-money-value{gap:5px}
}
/* ============================================================
   022 RANK BADGE + TV PLACEMENT — 2026-11-09
   Rank badge is content-sized; short names do not reserve the
   whole right column. The room stays visible behind it.
   ============================================================ */
.game-hud .rank-badge{
  width:fit-content;max-width:100%;height:auto;
  justify-self:end;align-self:start;
  padding:8px 12px;border-radius:12px;
}
.game-hud .rank-badge>span{width:auto;align-items:center;gap:2px}
.logo-rank-name{
  display:block;width:auto;font-size:15px;line-height:1.15;
  white-space:nowrap;overflow:hidden;text-overflow:clip;text-align:center;
}
.logo-rank-fame{font-size:12px}
.game-hud .rank-fame-line{justify-content:center}
@media(max-width:370px){
  .game-hud .rank-badge{padding:7px 9px}
  .logo-rank-name{font-size:14px}
  .logo-rank-fame{font-size:11px}
  .game-hud .rank-fame-line b{font-size:11px}
}

/* ============================================================
   030 EVENT SCREEN PROTOTYPE — 2026-11-09
   The room keeps one image and one grade in every theme.
   ============================================================ */
[hidden]{display:none!important}
.game-shell{position:relative}

/* Same room image and same grade for normal, OS dark and forced dark.
   Decorative CSS light/vignette layers are removed: browser force-dark
   repaints CSS gradients, which made the room look different. */
.room-scene,.event-scene{color-scheme:only light;forced-color-adjust:none}
.room-image{filter:none;forced-color-adjust:none}
.event-bg{filter:none;forced-color-adjust:none}
.room-scene>.scene-grain,.room-scene>.scene-light,.room-scene>.scene-vignette,.room-scene>.scene-sparkles{display:none!important}
.room-scene:after{content:none!important;display:none!important}
.event-shade{display:none!important}
@media(prefers-color-scheme:dark){
  .room-image{filter:none}
  .scene-light{opacity:.62}
  .room-scene:after{
    background:
      linear-gradient(180deg,rgba(10,27,46,.34) 0%,rgba(10,27,46,.04) 20%,transparent 58%,rgba(7,15,24,.56) 100%),
      radial-gradient(ellipse at 50% 46%,transparent 46%,rgba(26,16,9,.14) 100%);
  }
  .scene-vignette{box-shadow:inset 0 0 72px rgba(12,14,26,.24),inset 0 0 0 1px rgba(255,246,215,.12)}
}

/* Dummy entry on the main screen. Deliberately unlike a game menu. */
.event-test-open{
  position:absolute;z-index:12;top:calc(max(12px, env(safe-area-inset-top, 0px)) + 210px);bottom:auto;left:14px;
  display:inline-flex;align-items:center;gap:6px;min-height:36px;
  padding:7px 11px;border:1px dashed #ffe2a3;border-radius:999px;
  background:rgba(9,19,26,.88);color:#fff1cc;
  font:700 9px/1 var(--sans);letter-spacing:.08em;
  box-shadow:0 3px 10px #0007;cursor:pointer;
}
.event-test-open:hover{background:#243440e6}
.event-test-open .event-test-tag{
  padding:2px 4px;border-radius:4px;background:#ffd27a;color:#3b2410;
  font-size:7px;letter-spacing:.12em;
}

/* Event screen fills the game shell; the room is hidden while it is open. */
.event-scene{
  position:absolute;inset:0;z-index:20;overflow:hidden;
  display:flex;flex-direction:column;justify-content:flex-end;
  background:#0b1012;
}
.event-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 56%}
.event-shade{
  position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(4,8,10,.12),transparent 34%,rgba(4,8,10,.84) 100%);
}
.event-test-bar{
  position:absolute;z-index:2;top:14px;left:14px;right:14px;
  display:flex;align-items:center;justify-content:space-between;gap:10px;
}
.event-test-label{
  font:700 9px/1 var(--sans);letter-spacing:.18em;color:#f0d9a0;
  text-shadow:0 1px 6px #000;opacity:.86;
}
.event-test-return{
  min-height:38px;padding:7px 11px;border:1px dashed #ffe2a3;border-radius:999px;
  background:#0b141ad9;color:#fff1cc;font:700 9px/1.2 var(--sans);
  letter-spacing:.04em;box-shadow:0 3px 10px #0007;
}
.event-test-return:hover{background:#243440e6}

.event-window{
  --event-ink:#fff7e6;
  position:relative;z-index:2;margin:0 14px max(18px,env(safe-area-inset-bottom));
  padding:22px 16px 12px;border:1px solid #e7c579a8;border-radius:14px;
  background:linear-gradient(180deg,rgba(16,25,31,.94),rgba(7,12,16,.97));
  box-shadow:0 10px 28px #0008,inset 0 1px 0 #fff2;
  color:var(--event-ink);backdrop-filter:blur(5px);
}
.event-speaker{
  position:absolute;top:-13px;left:14px;
  display:inline-flex;align-items:center;min-height:30px;padding:5px 13px;
  border:1px solid var(--event-ink);border-radius:7px;
  background:linear-gradient(#324952,#142128);color:var(--event-ink);
  font:700 15px/1 var(--sans);letter-spacing:.08em;
  box-shadow:0 3px 8px #0008;
}
.event-window.no-speaker{padding-top:14px}
.event-window.no-speaker .event-text{margin-top:0}
.event-text{
  min-height:3.8em;margin:7px 0 0;
  font-family:var(--serif);font-size:17px;line-height:1.9;letter-spacing:.03em;
  white-space:pre-wrap;overflow-wrap:break-word;color:var(--event-ink);
}
.event-window-footer{
  display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:12px;
}
.event-next{
  display:grid;place-items:center;width:48px;height:48px;min-height:48px;padding:0;
  border:1px solid rgba(255,247,230,.34);border-radius:50%;
  background:rgba(7,13,17,.36);color:#e7eef1;opacity:.9;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12);
  backdrop-filter:blur(2px);
  transition:background .2s,border-color .2s,opacity .2s;
}
.event-next:hover{background:rgba(35,54,64,.72);border-color:rgba(255,247,230,.7);opacity:1}
.event-next svg{width:18px;height:18px;stroke-width:2.2}
.event-next:focus,.event-test-open:focus,.event-test-return:focus{
  outline:3px solid #9feaff;outline-offset:3px;
}

@media(max-width:370px){
  .event-test-open{left:10px;top:calc(max(9px, env(safe-area-inset-top, 0px)) + 190px);bottom:auto;padding:6px 9px;font-size:8px}
  .event-window{margin-left:10px;margin-right:10px;padding:20px 13px 11px}
  .event-window.no-speaker{padding-top:12px}
  .event-speaker{left:11px;padding:4px 10px;font-size:14px}
  .event-text{font-size:16px;line-height:1.85}
  .event-test-bar{left:10px;right:10px}
}

/* 039 B HUD integration */
.b-hud-root{
  position:absolute;
  inset:0;
  z-index:4;
  pointer-events:none;
}
.b-hud-root .owarai-host{
  pointer-events:auto;
}
.event-test-open{z-index:12}
body[data-hud-variant="b"] .event-test-open{
  top:250px;
  left:24px;
  bottom:auto;
}
@media(max-width:370px){
  body[data-hud-variant="b"] .event-test-open{
    top:244px;
    left:10px;
    bottom:auto;
  }
}
dialog{z-index:40}

/* 043 responsive review: keep desktop shell at the mobile max width so the
   760px boundary no longer shrinks the game and the B HUD scale stays continuous. */
@media(min-width:760px){
  .game-shell{width:520px;max-width:520px}
}

/* 045 screen-wide font: M PLUS Rounded 1c bundled locally, Noto Sans JP fallback. */
@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url("./assets/fonts/mplus-rounded-1c-400.woff2") format("woff2");}
@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:500;font-display:swap;src:url("./assets/fonts/mplus-rounded-1c-500.woff2") format("woff2");}
@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:700;font-display:swap;src:url("./assets/fonts/mplus-rounded-1c-700.woff2") format("woff2");}
@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:800;font-display:swap;src:url("./assets/fonts/mplus-rounded-1c-800.woff2") format("woff2");}
@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:900;font-display:swap;src:url("./assets/fonts/mplus-rounded-1c-900.woff2") format("woff2");}
:root{--sans:"M PLUS Rounded 1c","Noto Sans JP","Yu Gothic",sans-serif;}

/* 047 whole-screen M PLUS Rounded 1c (serif stack included) + event window concept. */
:root{--serif:"M PLUS Rounded 1c","Noto Sans JP","Yu Gothic",sans-serif;}
.event-window{
  --event-ink:#3a2c3f;
  background:linear-gradient(180deg,#fffdf8,#f6ead6);
  border:3px solid #241a2e;border-radius:18px;
  box-shadow:0 0 0 2px #f3e2ee,0 10px 28px #0008,inset 0 2px 0 #fff;
  color:var(--event-ink);
}
.event-scene[data-theme="dark"] .event-window{
  --event-ink:#f2ecf7;
  background:linear-gradient(180deg,#262b3d,#131722);
  border-color:#0d0f16;
  box-shadow:0 0 0 2px #8f86a8,0 10px 28px #000c,inset 0 2px 0 #ffffff22;
}
.event-speaker{
  /* 07: top stop darkened (#8e6bb8 -> #8763b1) so the white name stays >=4.5:1 */
  background:linear-gradient(#8763b1,#5f4386);color:#fff;
  border:2px solid #fff;border-radius:10px;
  box-shadow:0 3px 8px #0008,0 0 0 2px #5f438655;
}
.event-text{font-family:var(--sans);font-weight:800;}
/* 07: light text colours meet 4.5:1 against the event window's local gradient
   (sample: rgb(249,241,226) at the text block bottom on 390x844). */
.event-window[data-kind="narration"] .event-text{color:#706199;font-style:italic;font-weight:500;}
.event-scene[data-theme="dark"] .event-window[data-kind="narration"] .event-text{color:#b9aee0;}
.event-window[data-kind="sfx"] .event-text{color:#b05210;}
.event-scene[data-theme="dark"] .event-window[data-kind="sfx"] .event-text{color:#f5a04b;}
.event-window[data-kind="dai"] .event-text{color:#1f5fc4;}
.event-scene[data-theme="dark"] .event-window[data-kind="dai"] .event-text{color:#8fb8ff;}
.event-window[data-kind="other"] .event-text{color:#b93d78;}
.event-scene[data-theme="dark"] .event-window[data-kind="other"] .event-text{color:#f08bb8;}
.event-next{width:54px;height:54px;min-height:54px;background:linear-gradient(#fffdf8,#efe4f2);border-color:#5f4386;color:#5f4386;}
.event-next svg{width:24px;height:24px;}
.event-scene[data-theme="dark"] .event-next{background:linear-gradient(#2b3048,#171b29);border-color:#b9aee0;color:#fff;}

/* 049 revert to Noto Sans JP first; unify event background sizing; tighten event text. */
:root{--sans:"Noto Sans JP","M PLUS Rounded 1c","Yu Gothic",sans-serif;}
:root{--serif:"Noto Sans JP","M PLUS Rounded 1c","Yu Gothic",sans-serif;}
.event-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 56%;transform:scale(1.012);}
.event-text{line-height:1.6;}

/* 054 event next button smaller (about half). Tap-anywhere still advances. */
.event-next{width:28px;height:28px;min-height:28px;}
.event-next svg{width:14px;height:14px;}

/* 055 test scene choices + caption. */
.event-choices{display:flex;flex-direction:column;gap:8px;margin-top:12px;}
.event-choices[hidden]{display:none;}
.event-choice{
  display:block;width:100%;padding:10px 14px;border-radius:10px;text-align:left;
  font:inherit;font-weight:700;font-size:15px;line-height:1.6;
  color:var(--event-ink);background:rgba(127,127,127,.08);
  border:1px solid currentColor;cursor:pointer;
}
.event-choice:hover{background:rgba(127,127,127,.18);}
.event-choice:focus-visible{outline:3px solid #9feaff;outline-offset:2px;}
.event-window[data-kind="caption"] .event-text{text-align:center;}
.event-window.has-choice .event-next{visibility:hidden;}

/* 058 Schedule: scene controls, not a modal. Design coordinates scale together. */
#schedule-screen{position:absolute;inset:0;z-index:12;pointer-events:none;overflow:hidden;color-scheme:only light;forced-color-adjust:none}
.sched-wrap{position:absolute;width:895px;min-height:1399px;transform-origin:top left;display:grid;grid-template-rows:auto auto auto auto auto;gap:16px;pointer-events:none;align-content:start}
.sched-wrap img{display:block;width:100%;height:auto;object-fit:contain;user-select:none}
.sched-wrap button{display:block;border:0;background:none;padding:0;margin:0;min-width:0;min-height:0;box-shadow:none;pointer-events:auto;cursor:pointer}
.sched-wrap button:disabled{opacity:1;cursor:default}
.sched-wrap button:focus-visible{outline:5px solid #ffbf42;outline-offset:3px;border-radius:20px}
.sched-title-row{width:510px}
.sched-slots{position:relative;pointer-events:auto}
.sched-slots .sched-panel-img{display:none}
.sched-slots{border:3px solid #4b2d73;border-radius:22px;background:linear-gradient(168deg,#efe7fa 0%,#e2d7f3 48%,#d6c8ee 100%);box-shadow:inset 0 0 0 3px #fdfbff,0 4px 0 #2a1740;padding:12px 12px 12px 8px}
.sched-slot-overlay{position:relative;display:grid;grid-template-rows:repeat(5,minmax(0,auto));gap:6px}
.sched-row{min-height:0;position:relative;display:grid;grid-template-columns:102px minmax(0,1fr);gap:11px;align-items:center}
.sched-row>img{width:100%;height:auto}
.sched-row>.sched-badge{width:100%;height:auto;object-fit:contain;justify-self:center}
.sched-row button{width:100%;height:auto;align-self:center;line-height:0;display:block}
/* filled slot row: bar background + icon + live label, design proportions */
.sched-row button.sched-bar{
  position:relative;display:flex;align-items:center;gap:10px;
  width:100%;height:auto;aspect-ratio:908/97;padding:0 3.4%;
  border:2px solid #5b3f86;border-radius:14px;
  background:linear-gradient(100deg,#f6f1fd 0%,#e6dcf6 48%,#efe6fa 100%);
  box-shadow:inset 0 0 0 1.5px #fff;
  line-height:1;text-align:left;
}
.sched-bar.is-focused{
  border-color:#f0a41a;
  background:linear-gradient(100deg,#fdf0d2 0%,#f9dfae 52%,#fbe9c6 100%);
  box-shadow:inset 0 0 0 1.5px #fffdf3,0 0 0 2px #ffd479;
}
.sched-bar .bar-icon{height:70%;width:auto;max-width:22%;object-fit:contain;display:block;flex:0 0 auto;margin-left:1%}
.sched-bar .bar-label{
  flex:1 1 auto;min-width:0;font-family:var(--sans);font-weight:800;
  font-size:56px;line-height:1;letter-spacing:.02em;color:#2f2142;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.sched-bar .bar-chev{
  flex:0 0 auto;width:12px;height:12px;border-right:2.6px solid #6a4c99;border-top:2.6px solid #6a4c99;
  transform:rotate(45deg);margin-right:2px;
}
.sched-bar.is-focused .bar-chev{border-color:#8a5a12}

.sched-row .is-selected{outline:4px solid #ffbf42;outline-offset:0;border-radius:22px}
.sched-vitals{position:relative;height:121px}
.sched-vitals .sched-vitals-panel{
  position:absolute;inset:0;width:100%;height:100%;
  display:flex;flex-direction:column;justify-content:center;gap:10px;
  padding:10px 4.4%;margin:0;
  background:linear-gradient(160deg,#f6f0fd,#e6dbf5 60%,#efe7fa);
  border:2px solid #5b3f86;border-radius:14px;
  box-shadow:inset 0 0 0 1.5px #fff;
}
.sched-vitals .owarai-vital-row{grid-template-columns:20% 1fr 13%;gap:18px;height:52px;align-items:center}
.sched-vitals .owarai-vital-label{font-size:38px;gap:12px;color:#2f2142;font-weight:800}
.sched-vitals .owarai-vital-label i{width:16px;height:16px;border-radius:4px}
.sched-vitals .owarai-vital-value{font-size:40px;color:#2f2142;font-weight:800}
.sched-vitals .owarai-vital-track{height:34px;border-radius:8px;background:#6f6683;border:2px solid #3a2d4e;overflow:hidden;display:flex}
.sched-vitals .owarai-vital-tick{width:auto;flex:1 1 0;height:100%;border-radius:0;margin:0;border:0}
.sched-vitals .owarai-vital-tick:nth-child(odd){box-shadow:inset -1px 0 0 #3a2d4e55}
.sched-vitals .owarai-vital-tick.filled{background:#39c0f0}
.sched-vitals .stress .owarai-vital-tick.filled{background:#f06a9a}
.sched-lower{position:relative;pointer-events:auto;padding:16px;display:flex;flex-direction:column;gap:12px;border:5px solid var(--panel-edge,#433452);border-radius:30px;background:linear-gradient(var(--panel-shine,#fff),var(--panel,#fcfaff));box-shadow:0 7px 0 #241a2b99;height:auto}
.sched-cats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;flex:0 0 auto;align-items:end}.sched-cats button{display:block;line-height:0}.sched-cats img{width:100%;height:auto;display:block}
.sched-mid{min-height:0;flex:0 0 auto;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:14px 12px}
.sched-mid>img:not(.sched-ribbon){width:94%;height:auto;object-fit:contain}
#schedule-screen[data-category=""]:not([data-confirming="true"]) .sched-mid{border:2px solid var(--panel-line,#a89ab7);border-radius:22px;background:var(--panel,#fcfaff)}
.sched-mid .sched-ribbon{width:auto;max-width:72%;height:84px;align-self:flex-start;object-fit:contain;flex:0 0 auto}
.sched-opts{width:100%;flex:0 0 auto;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:auto;gap:10px;align-content:start;border:2px solid var(--panel-line,#a89ab7);border-radius:22px;padding:14px;background:var(--panel,#fcfaff)}
.sched-opts button{align-self:start;width:100%;line-height:0}
.sched-opts img{width:100%;height:auto;object-fit:contain;display:block}
#schedule-screen[data-category=""] .sched-opts{display:none}
.sched-foot{display:grid;grid-template-columns:1fr 1.25fr;gap:18px;pointer-events:auto}
#schedule-screen[data-confirming="true"] .sched-mid>img{width:94%;height:auto}
body[data-schedule-open="1"]{overflow:hidden}
body[data-schedule-open="1"] .game-shell{height:100dvh;min-height:0}
body[data-schedule-open="1"] .room-scene{height:100%;min-height:0}
body[data-schedule-open="1"] .owarai-host{overflow:hidden}
body[data-schedule-open="1"] .owarai-mid,body[data-schedule-open="1"] .owarai-bottom,
body[data-schedule-open="1"] .game-message,body[data-schedule-open="1"] .game-controls,
body[data-schedule-open="1"] .event-test-open{display:none!important}

/* Phase 0-C approved production candidate: light, exact 390x844, four event states only. */
@media screen and (width: 390px) and (height: 844px) {
  .event-scene[data-theme="light"] #event-window[data-kind="narration"],
  .event-scene[data-theme="light"] #event-window[data-kind="other"],
  .event-scene[data-theme="light"] #event-window[data-kind="choice"],
  .event-scene[data-theme="light"] #event-window[data-kind="caption"] {
    width: 390px;
    min-height: 150px;
    transform: translate(-14px, 14px);
  }
  .event-scene[data-theme="light"] #event-window[data-kind="narration"] #event-text,
  .event-scene[data-theme="light"] #event-window[data-kind="other"] #event-text,
  .event-scene[data-theme="light"] #event-window[data-kind="choice"] #event-text,
  .event-scene[data-theme="light"] #event-window[data-kind="caption"] #event-text {
    font-size: 16px;
  }
  .event-scene[data-theme="light"] #event-window[data-kind="narration"] .event-window-footer,
  .event-scene[data-theme="light"] #event-window[data-kind="other"] .event-window-footer,
  .event-scene[data-theme="light"] #event-window[data-kind="caption"] .event-window-footer {
    min-height: 28px;
  }
  .event-scene[data-theme="light"] #event-window[data-kind="narration"] .event-next,
  .event-scene[data-theme="light"] #event-window[data-kind="other"] .event-next,
  .event-scene[data-theme="light"] #event-window[data-kind="choice"] .event-next,
  .event-scene[data-theme="light"] #event-window[data-kind="caption"] .event-next {
    position: absolute;
    right: 7px;
    bottom: 7px;
  }
}

/* Phase 0-D Xperia C */
@media (width:360px){
.event-scene[data-theme="light"] #event-window[data-kind="narration"],
.event-scene[data-theme="light"] #event-window[data-kind="other"],
.event-scene[data-theme="light"] #event-window[data-kind="choice"],
.event-scene[data-theme="light"] #event-window[data-kind="caption"]{width:340px;margin-left:10px;margin-right:10px;min-height:150px;}
.event-scene[data-theme="light"] #event-window[data-kind="narration"] #event-text,
.event-scene[data-theme="light"] #event-window[data-kind="other"] #event-text,
.event-scene[data-theme="light"] #event-window[data-kind="choice"] #event-text,
.event-scene[data-theme="light"] #event-window[data-kind="caption"] #event-text{font-size:16px;}
.event-scene[data-theme="light"] #event-window[data-kind="narration"] .event-window-footer,
.event-scene[data-theme="light"] #event-window[data-kind="other"] .event-window-footer,
.event-scene[data-theme="light"] #event-window[data-kind="caption"] .event-window-footer{min-height:28px;}
.event-scene[data-theme="light"] #event-window[data-kind="narration"] .event-next,
.event-scene[data-theme="light"] #event-window[data-kind="other"] .event-next,
.event-scene[data-theme="light"] #event-window[data-kind="choice"] .event-next,
.event-scene[data-theme="light"] #event-window[data-kind="caption"] .event-next{position:absolute;right:7px;bottom:7px;}
}

