:root{font-family:ui-rounded,'Hiragino Maru Gothic ProN','Hiragino Kaku Gothic ProN','Yu Gothic',Meiryo,sans-serif;font-synthesis:none;color:#29434b;background:#eee7d7;--ink:#29434b;--muted:#7b867f;--paper:#faf6eb;--line:#d7cdbb;--accent:#d77d57;--teal:#568c8d;--shower:#8cbab7;--sauna:#c99a62;--cold:#71b5ce;--rest:#98ad78}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body{margin:0;width:100%;height:100%;overflow:hidden;overscroll-behavior:none;touch-action:manipulation;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}button,input{font:inherit}button{border:0;cursor:pointer;color:inherit;touch-action:manipulation}button:disabled{cursor:default}button:active:not(:disabled){transform:translateY(1px)}button:focus-visible,input:focus-visible{outline:3px solid #d78c59;outline-offset:3px}svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}a{color:inherit}.svg-defs{position:absolute;width:0;height:0;pointer-events:none}.hidden{display:none!important}#app{height:var(--app-height,100dvh);max-width:940px;margin:auto;position:relative;overflow:hidden}#app.obscured{visibility:hidden}.screen{height:100%;padding:calc(14px + env(safe-area-inset-top)) 20px calc(12px + env(safe-area-inset-bottom));display:flex;flex-direction:column;position:relative;overflow:hidden}.title-screen{max-width:580px;margin:auto}.title-top{display:flex;justify-content:space-between;align-items:center;flex-shrink:0}.tiny-brand{font-size:8px;letter-spacing:.12em;font-weight:800;color:#74857f}.edition{font-size:9px;border:1px solid #bdbca9;border-radius:4px;padding:3px 6px;color:#7c867c}.title-heading{text-align:center;padding-top:clamp(8px,2.3dvh,24px);flex-shrink:0;position:relative;z-index:2}.title-kicker{font-size:11px;letter-spacing:.25em;font-weight:700;color:#73847b;margin:0 0 7px}.title-heading h1{font-size:clamp(36px,7.3dvh,64px);font-weight:900;letter-spacing:.02em;line-height:1.05;margin:0;position:relative;display:inline-block;text-shadow:0 2px 0 #fff8}.title-heading h1>span{display:block;color:var(--accent);letter-spacing:.1em}.title-heading h1>i{font-size:.62em;font-weight:500;position:absolute;top:0;right:-.85em;font-style:normal;color:var(--teal)}.title-subtitle{font-size:7px;letter-spacing:.08em;font-weight:700;margin:10px 0 0;color:#839188}.title-scene{min-height:70px;flex:1;position:relative;max-height:300px;margin:-4px -10px 0}.bath-canvas{display:block;width:100%;height:100%;touch-action:none}.scene-caption{position:absolute;bottom:0;left:0;width:100%;text-align:center;z-index:2;font-size:10px;font-weight:700;letter-spacing:.08em;color:#657d73;text-shadow:0 1px 0 #fff8}.title-menu{display:flex;flex-direction:column;gap:9px;flex-shrink:0;width:100%;max-width:390px;margin:12px auto 0}.menu-button{padding:13px 17px;display:flex;gap:14px;align-items:center;background:#fbf8ef;box-shadow:0 3px 0 #d7cbb9;border:1px solid #d9cfbe;border-radius:12px;text-align:left;min-height:62px}.menu-button.main{color:#fff6e4;background:var(--ink);border-color:#234049;box-shadow:0 4px 0 #18343c}.menu-button>svg{width:25px;height:25px;color:var(--teal)}.menu-button.main>svg{color:#e7c093}.menu-button span{font-size:15px;font-weight:800;letter-spacing:.03em;flex:1}.menu-button small{font-size:9px;display:block;margin-top:4px;font-weight:500;opacity:.65;letter-spacing:.03em}.menu-button>b{font-size:21px;font-weight:400;color:#9baba4}.title-menu-small{display:grid;grid-template-columns:1fr 1fr;gap:9px}.menu-small{min-height:43px;display:flex;align-items:center;justify-content:center;gap:10px;background:#e2e6d7;border:1px solid #cdd6c2;border-radius:9px;font-size:12px;font-weight:700}.menu-small svg{width:19px;height:19px}.title-footer{flex-shrink:0;margin-top:16px;display:flex;justify-content:space-between;font-size:9px;color:#8c9386}.title-footer>span:first-child{letter-spacing:4px;color:#6e8076}.screen-header{display:flex;align-items:center;gap:11px;flex-shrink:0;margin-bottom:14px}.icon-button{width:36px;height:36px;border:1px solid var(--line);border-radius:50%;background:#f9f4e9;display:grid;place-items:center;flex-shrink:0}.icon-button svg{width:20px;height:20px}.eyebrow{display:block;font-size:8px;font-weight:800;letter-spacing:.16em;color:#7b8d82;margin-bottom:4px}h2{font-size:21px;line-height:1.45;margin:0;font-weight:850;letter-spacing:.025em}.progress-label{margin-left:auto;color:#6e8478;font-size:11px;font-weight:700;white-space:nowrap}.screen-note{font-size:11px;color:#798778;margin:0 0 14px;line-height:1.7;flex-shrink:0}.stage-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(4,minmax(0,1fr));gap:10px;flex:1;min-height:0}.stage-card{background:#fcf8ed;border:1px solid #d7ccb6;border-bottom-width:3px;border-radius:12px;position:relative;padding:12px 8px 8px;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:0;gap:3px}.stage-card:disabled{background:#dcdcd1;border-color:#cbcec0;color:#969d92}.stage-card.cleared{background:#f8efd9;border-color:#d8b874}.stage-no{font-size:9px;letter-spacing:.12em;opacity:.7;font-weight:700}.stage-number{font-size:clamp(23px,4.7dvh,37px);font-weight:850;line-height:1.1}.stage-name{font-size:10px;line-height:1.4;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:700}.stage-details{font-size:8px;color:#8b9686;margin-top:2px}.stage-medal{position:absolute;right:7px;top:6px;font-size:19px}.stage-lock{font-size:11px;position:absolute;right:7px;top:6px;filter:grayscale(1);opacity:.5}.screen-footer{flex-shrink:0;font-size:9px;text-align:center;margin-top:12px;color:#8a9586}.rank-tabs{display:flex;border:1px solid #cbd3c2;padding:4px;background:#e0e4d6;border-radius:10px;margin-bottom:12px;flex-shrink:0}.rank-tabs button{flex:1;padding:10px;border-radius:7px;background:none;font-size:12px;font-weight:750}.rank-tabs button.active{background:var(--ink);color:#fff6e4}.rank-list{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;touch-action:pan-y;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin-bottom:12px}.rank-row{display:grid;grid-template-columns:36px 1fr auto;align-items:center;gap:8px;padding:13px 8px;border-bottom:1px solid #d8d3c4;font-size:12px}.rank-row.mine{background:#e1eadb}.rank-position{font-size:15px;font-weight:850;color:#8b997b}.rank-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rank-score{font-size:11px;font-weight:800}.rank-row small{font-size:9px;display:block;color:#8b9485;margin-top:2px}.rank-empty{display:flex;align-items:center;justify-content:center;flex-direction:column;min-height:160px;height:100%;font-size:12px;color:#81917f;text-align:center;gap:10px;line-height:1.9}.my-record{font-size:12px;text-align:center;margin:5px 0 12px;font-weight:700}.small-note{font-size:10px;color:#84917e;line-height:1.8;margin:10px 0 0}.button{display:flex;align-items:center;justify-content:center;gap:10px;padding:13px 18px;font-size:13px;font-weight:800;line-height:1.3;min-height:45px;border-radius:10px;border:1px solid transparent;flex-shrink:0;letter-spacing:.03em}.button svg{width:18px;height:18px}.button.primary{background:var(--ink);color:#fff7e7;border-color:#23414a;box-shadow:0 3px 0 #18363d}.button.secondary{background:#faf5e8;border-color:#d3c8b5;box-shadow:0 2px 0 #d9cebd}.button.quiet{background:transparent;color:#738574;font-size:12px}.button:disabled{opacity:.42;box-shadow:none}.text-button{font-size:10px;font-weight:700;color:#69877e;background:transparent;padding:5px 7px;border-radius:5px;white-space:nowrap}.text-button:hover{background:#dce5d7}.play-screen{padding:calc(10px + env(safe-area-inset-top)) 12px calc(7px + env(safe-area-inset-bottom));max-width:900px;margin:auto;gap:8px;touch-action:none}.game-header{display:flex;align-items:center;justify-content:space-between;min-height:44px;flex-shrink:0;padding:0 4px}.game-header h2{font-size:17px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.game-header .eyebrow{font-size:7px;margin-bottom:2px}.pause-button{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:var(--ink);color:#fff3df;box-shadow:0 2px 0 #17353c}.pause-button svg{width:19px;stroke-width:3}.live-stats{display:grid;grid-template-columns:repeat(5,1fr);background:#fff8e9;border:1px solid #ded1b7;border-radius:10px;flex-shrink:0;padding:8px 3px}.live-stats>div{border-right:1px solid #e0d5c2;text-align:center}.live-stats>div:last-child{border:0}.live-stats span{display:block;font-size:8px;color:#8a967e;margin-bottom:3px;white-space:nowrap}.live-stats strong{display:block;font-size:19px;font-variant-numeric:tabular-nums;line-height:1.1}.live-stats strong.danger{color:#c16c4e}.game-guide{display:flex;justify-content:space-between;align-items:center;min-height:22px;flex-shrink:0;padding:0 3px;gap:6px;font-size:10px;color:#6f837a;line-height:1.4}.scene-wrap{flex:1;min-height:100px;position:relative;border:1px solid #d2c9b6;border-radius:16px;background:radial-gradient(ellipse at 50% 48%,#fcf8e9 0%,#e4e8d7 85%);overflow:hidden;box-shadow:inset 0 2px 5px #7a80640c;touch-action:none}.room-label{position:absolute;top:7px;left:10px;z-index:2;font-size:10px;color:#6c8577;font-weight:700;display:flex;align-items:center;gap:6px;pointer-events:none}.room-label>span{font-size:17px;color:#a77f54}.room-label small{font-size:8px;font-weight:500;opacity:.7}.scene-mount{position:absolute;inset:15px 0 0;touch-action:none}.scene-status{position:absolute;bottom:5px;left:8px;right:8px;text-align:center;font-size:9px;line-height:1.4;color:#a37050;background:#faf3e0b3;border-radius:4px;pointer-events:none}.scene-status:empty{display:none}.guest-huds{position:absolute;inset:0;pointer-events:none}.guest-hud{position:absolute;transform:translate(-50%,-100%);width:49px;background:#fff8e9f2;border:1px solid #d2c3a1;border-radius:6px;box-shadow:0 1px 4px #314a3e1a;touch-action:none;pointer-events:auto;cursor:grab;padding:2px 3px;line-height:1.1;z-index:5}.guest-hud:after{content:'';position:absolute;bottom:-4px;left:calc(50% - 3px);border-left:3px solid transparent;border-right:3px solid transparent;border-top:4px solid #e6dbc3}.guest-hud.using{cursor:default;background:#ffffffd9}.guest-hud.selected{outline:2px solid #467b72}.guest-hud.urgent{background:#ffe4cf;border-color:#ce8d60}.guest-top{display:flex;justify-content:space-between;align-items:center;font-size:7px;font-weight:800;white-space:nowrap;gap:2px}.next-badge{font-size:10px;line-height:1.05}.guest-caption{display:block;font-size:7px;color:#7f8e7b;text-align:center;margin:2px 0;white-space:nowrap}.meter{height:3px;border-radius:2px;background:#c8d6c4;overflow:hidden}.meter span{display:block;height:100%;background:#589a8b;border-radius:2px}.ready .meter span,.wait .meter span{background:#ddaf58}.urgent .meter span{background:#c56b49}.flow-row{display:flex;gap:8px;height:76px;flex-shrink:0;touch-action:none}.arrival-zone{flex:1;min-width:0;background:#dfe7d9;border:1px solid #c5d2bf;border-radius:10px;display:flex;align-items:center;padding:6px;gap:6px;position:relative;overflow:hidden}.zone-label{display:flex;flex-direction:column;gap:4px;flex-shrink:0;align-items:center;width:27px;font-size:9px;color:#7d917b}.zone-label b{font-size:10px;color:#526f5c}.queue{display:flex;align-items:center;gap:5px;flex:1;overflow:auto;touch-action:pan-x;scrollbar-width:none;min-height:60px}.queue::-webkit-scrollbar{display:none}.queue .guest-hud{position:relative;left:auto!important;top:auto!important;transform:none;width:46px;height:58px;flex-shrink:0;display:flex;flex-direction:column;justify-content:space-between}.queue .guest-hud:after{display:none}.queue .guest-hud .guest-caption{margin:0}.queue-avatar{display:block;width:20px;height:23px;position:relative;margin:0 auto}.queue-avatar:before{content:'';position:absolute;width:15px;height:15px;left:2px;top:0;border-radius:50%;background:var(--skin,#ddb18d);box-shadow:inset 0 3px #fbf5dd}.queue-avatar:after{content:'';position:absolute;width:19px;height:10px;left:0;bottom:0;border-radius:6px 6px 2px 2px;background:var(--towel,#90b4ac);border:1px solid #fff6}.queue-empty{position:absolute;left:45px;right:5px;font-size:9px;color:#95a58b;text-align:center;pointer-events:none}.exit-zone{width:70px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;background:#f3e7cd;border:1px solid #d8c69f;border-radius:10px;touch-action:none}.exit-zone>span{font-size:24px;line-height:1.2}.exit-zone b{font-size:10px}.exit-zone small{font-size:8px;color:#9a947c}.exit-zone.drop-target{background:#fae4a9;outline:2px solid #d3a051}.palette{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;flex-shrink:0;touch-action:none}.panel-button{min-width:0;padding:6px 3px;border-radius:10px;border:1px solid #c8c6b5;background:#fff9ec;box-shadow:0 3px 0 #c9bda5;display:flex;flex-direction:column;align-items:center;gap:3px;touch-action:none;cursor:grab;position:relative}.panel-button:before{content:'';width:100%;height:4px;background:var(--type-color);position:absolute;top:0;left:0;border-radius:9px 9px 0 0}.panel-button svg{width:45px;height:32px;stroke-width:0;stroke:none;fill:currentColor;margin:1px 0}.panel-button b{font-size:9px;white-space:nowrap}.panel-button small{font-size:8px;color:#8a9b83;font-variant-numeric:tabular-nums}.panel-button.readonly{cursor:default;background:#eeeade;box-shadow:0 2px 0 #d4cbb8;opacity:.75}.setup-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-shrink:0;min-height:41px}.setup-actions>div{display:flex;gap:4px}.setup-actions .button{padding:9px 15px;min-height:38px;font-size:12px;border-radius:8px}.setup-actions .button svg{width:16px;height:16px}.validation{font-size:9px;line-height:1.35;color:#a66c4a;margin:0;min-height:13px;text-align:center;flex-shrink:0}.validation:empty{min-height:0}.live-footer{display:flex;justify-content:center;gap:14px;font-size:8px;color:#8c977f;padding:1px 0;flex-shrink:0}.live-footer span:first-child{color:#719486}.cell-access{position:absolute;inset:0;pointer-events:none}.cell-a11y{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);pointer-events:none}.cell-a11y:focus{width:40px;height:30px;clip-path:none;pointer-events:auto;z-index:20;background:#fff5d7;transform:translate(-50%,-50%)}.full-dialog{position:fixed;inset:0;margin:0;width:100%;height:var(--app-height,100dvh);max-width:none;max-height:none;border:0;background:#eee7d7;color:var(--ink);padding:calc(18px + env(safe-area-inset-top)) 20px calc(18px + env(safe-area-inset-bottom));overflow:hidden}.full-dialog::backdrop{background:#eee7d7;opacity:1}.modal-card{max-width:500px;margin:auto;display:flex;flex-direction:column;gap:13px;height:100%;max-height:820px;padding:3px 0;min-height:0}.modal-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-shrink:0;margin-bottom:7px}.modal-heading h2{font-size:23px}.modal-scroll{min-height:0;overflow:auto;flex:1;touch-action:pan-y;overscroll-behavior:contain;scrollbar-width:thin}.modal-scroll p{font-size:12px;color:#758574;line-height:1.9;margin:7px 0}.rule-step{display:flex;gap:15px;margin:0 0 23px}.rule-step>b{background:#e4d5b9;width:30px;height:30px;border-radius:9px;display:grid;place-items:center;font-size:12px;flex-shrink:0;color:#92734a}.rule-step h3{font-size:15px;margin:2px 0 8px}.rule-step p{font-size:12px;color:#758574;line-height:1.9;margin:0 0 9px}.route-example{padding:10px;border-radius:8px;background:#e2e8da;text-align:center;font-size:19px;line-height:1.7}.route-example small{font-size:12px}.pause-dialog{background:#eae3d1}.pause-card{justify-content:center;align-items:stretch;text-align:center;gap:13px;max-width:340px}.pause-card .eyebrow{font-size:10px}.pause-mark{font-size:74px;line-height:1.2;color:#8a9d8c;margin-bottom:5px}.pause-card h2{font-size:33px;margin:0}.pause-card p{font-size:11px;color:#89957f;margin:0 0 20px}.pause-card .button{min-height:50px}.stage-brief{font-size:12px;line-height:1.9;background:#f8f1e1;border:1px solid #d8cbb3;border-radius:10px;padding:12px;flex-shrink:0}.guest-list-row{padding:10px 8px;border-bottom:1px solid #d4ccb9;display:flex;align-items:center;gap:10px;font-size:12px}.guest-list-row>b{font-size:11px;color:#89a08a;min-width:24px}.guest-list-row strong{font-size:12px}.guest-list-row small{font-size:10px;color:#81927b;line-height:1.8;display:block}.result-card{text-align:center;gap:11px;max-width:430px}.result-kicker{font-size:10px;color:#9a9d87;letter-spacing:.1em;margin-top:8px}.result-medal{font-size:70px;line-height:1.1;margin:5px 0;flex-shrink:0;filter:drop-shadow(0 4px 0 #b39a6e25)}.result-card h2{font-size:28px}.result-message{font-size:11px;color:#83927c;line-height:1.7;margin:0 0 2px}.result-stats{display:grid;grid-template-columns:repeat(3,1fr);border:1px solid #dbcfb8;border-radius:10px;padding:13px 2px;background:#fcf5e6;flex-shrink:0}.result-stats span{font-size:9px;color:#8e987f}.result-stats strong{display:block;font-size:25px;margin-top:3px}.result-complaints{min-height:0;flex:1;overflow:auto;touch-action:pan-y;overscroll-behavior:contain;text-align:left;max-height:270px}.result-complaints h3{font-size:11px;color:#8b977f;margin:4px 0 8px;font-weight:700}.complaint-row{font-size:11px;padding:8px 3px;border-bottom:1px solid #d8cebb;display:flex;gap:8px;align-items:center}.complaint-row>span{font-size:22px;filter:saturate(.6)}.complaint-row strong{font-size:10px}.complaint-row small{font-size:10px;color:#90967e;display:block;margin-top:4px}.result-actions{display:flex;flex-direction:column;gap:9px;flex-shrink:0;margin-top:auto}.result-actions .button{min-height:44px}.result-actions .quiet{min-height:35px}.result-actions .text-button{font-size:10px}.submit-card{gap:12px;max-height:780px}.submit-score{font-size:22px;font-weight:800;text-align:center;background:#f8efd9;padding:14px;border-radius:10px;flex-shrink:0}.name-label{font-size:12px;font-weight:800}.name-label>span{font-size:10px;color:#939b84;font-weight:400;margin-left:5px}#player-name{width:100%;font-size:16px;border:1px solid #c8bca5;background:#fffaee;color:var(--ink);border-radius:8px;padding:12px;-webkit-user-select:text;user-select:text;touch-action:manipulation}.submission-notice{flex:1;min-height:70px;overflow:auto;touch-action:pan-y;overscroll-behavior:contain;font-size:11px;line-height:1.85;color:#7d8d76;background:#e2e6d8;padding:13px 15px;border-radius:10px}.submission-notice>b{font-size:11px;color:#637c6b}.submission-notice ul{margin:8px 0 0;padding-left:17px}.submission-notice li{margin-bottom:6px}.agree-label{font-size:11px;line-height:1.7;display:flex;gap:9px;align-items:flex-start;color:#71816e;flex-shrink:0}.agree-label input{accent-color:var(--ink);width:17px;height:17px;flex-shrink:0;margin:1px 0 0}.toast{position:fixed;bottom:calc(20px + env(safe-area-inset-bottom));left:50%;transform:translate(-50%,12px);z-index:10000;max-width:calc(100vw - 30px);font-size:11px;color:#fff8e6;background:#29434bf5;box-shadow:0 4px 14px #25403930;border-radius:9px;padding:12px 17px;text-align:center;opacity:0;pointer-events:none;transition:opacity .15s,transform .15s;line-height:1.6;white-space:normal}.toast.show{opacity:1;transform:translate(-50%,0)}.drag-ghost{position:fixed;z-index:9000;pointer-events:none;transform:translate(-50%,-110%);padding:8px 10px;border-radius:10px;background:#fff7e7;border:2px solid #568c8d;box-shadow:0 5px 16px #344b3b3c;min-width:63px;text-align:center;font-size:11px;font-weight:700}.drag-ghost svg{width:50px;height:35px;stroke:none}.drag-ghost>small{display:block;font-size:9px;color:#84937e;margin-top:3px}.drag-ghost .guest-hud{position:static;transform:none;pointer-events:none;box-shadow:none}.drag-ghost .queue-avatar{display:none}
@media(min-width:700px){.title-heading{padding-top:22px}.title-scene{max-height:370px}.title-menu{margin-top:12px}.title-menu .menu-button{min-height:70px}.screen:not(.play-screen){max-width:650px;margin:auto;padding-left:32px;padding-right:32px}.stage-grid{grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr));gap:15px}.stage-card{max-height:175px}.stage-number{font-size:42px}.stage-name{font-size:12px}.stage-details{font-size:9px}.play-screen{max-width:850px;padding-left:24px;padding-right:24px}.palette{gap:12px}.panel-button{flex-direction:row;justify-content:center;gap:10px;padding:9px}.panel-button svg{width:53px;height:40px}.panel-button b{font-size:12px}.panel-button small{font-size:10px}.guest-hud{width:59px;padding:3px 5px}.guest-top{font-size:8px}.guest-caption{font-size:8px}.next-badge{font-size:12px}.flow-row{height:78px}.exit-zone{width:100px}.game-header h2{font-size:21px}.live-stats{padding:10px 5px}.live-stats strong{font-size:23px}.live-stats span{font-size:10px}.game-guide{font-size:11px}.setup-actions .button{min-width:180px}.modal-card{padding-top:12px;padding-bottom:12px}.room-label{font-size:12px;left:15px;top:10px}}
@media(max-height:680px){.screen{padding-top:calc(8px + env(safe-area-inset-top));padding-bottom:calc(7px + env(safe-area-inset-bottom))}.title-heading{padding-top:9px}.title-kicker{font-size:9px;margin-bottom:5px}.title-heading h1{font-size:37px}.title-subtitle{margin-top:6px;font-size:6px}.title-menu{gap:7px;margin-top:8px}.menu-button{min-height:52px;padding:10px 14px}.menu-button span{font-size:13px}.menu-button small{font-size:8px}.menu-small{min-height:36px;font-size:11px}.title-footer{margin-top:10px}.title-scene{min-height:50px}.play-screen{gap:5px}.game-header{min-height:36px}.game-header h2{font-size:15px}.pause-button{width:33px;height:33px}.live-stats{padding:6px 2px}.live-stats strong{font-size:17px}.game-guide{font-size:9px;min-height:19px}.flow-row{height:63px}.queue{min-height:51px}.queue .guest-hud{height:48px;width:42px}.queue-avatar{height:18px;transform:scale(.8);margin:-2px auto}.panel-button{padding:4px 3px;gap:2px}.panel-button svg{height:25px;width:39px}.panel-button b{font-size:8px}.panel-button small{font-size:7px}.setup-actions{min-height:33px}.setup-actions .button{min-height:32px;padding:7px 13px;font-size:11px}.game-guide .text-button{font-size:9px}.live-footer{font-size:7px}.full-dialog{padding-top:calc(10px + env(safe-area-inset-top));padding-bottom:calc(10px + env(safe-area-inset-bottom))}.modal-card{gap:9px}.result-medal{font-size:50px;margin:0}.result-card h2{font-size:24px}.result-stats{padding:8px 0}.result-stats strong{font-size:21px}.result-actions{gap:7px}.result-actions .button{min-height:39px;padding:10px}.result-actions .quiet{min-height:28px}.result-kicker{margin-top:0}.stage-grid{gap:7px}.stage-card{padding:8px 4px 6px;gap:2px;border-radius:9px}.stage-number{font-size:25px}.stage-name{font-size:9px}.stage-details{display:none}.stage-medal{font-size:16px;top:4px;right:4px}.screen-header{margin-bottom:9px}.screen-header h2{font-size:18px}.screen-note{font-size:10px;margin-bottom:9px}.screen-footer{font-size:8px}.name-label{font-size:11px}.submit-score{padding:10px;font-size:20px}.submission-notice{font-size:10px;padding:10px}.agree-label{font-size:10px}.pause-mark{font-size:58px}.pause-card p{margin-bottom:12px}.pause-card h2{font-size:28px}}
@media(max-width:350px){.screen{padding-left:12px;padding-right:12px}.play-screen{padding-left:7px;padding-right:7px}.title-heading h1{font-size:35px}.menu-button span{font-size:12px}.guest-hud{width:43px}.guest-caption{font-size:6px}.stage-name{font-size:8px}.stage-grid{gap:6px}.title-menu-small{gap:7px}.palette{gap:4px}.live-stats span{font-size:7px}.live-stats strong{font-size:17px}}
@media(orientation:landscape) and (max-height:520px){.title-screen{display:grid!important;grid-template-columns:1fr 1fr;grid-template-rows:30px 90px 1fr 20px;column-gap:25px;max-width:800px}.title-top{grid-column:1/-1}.title-heading{grid-column:1;grid-row:2}.title-scene{grid-column:1;grid-row:3;margin:0;min-height:0}.title-menu{grid-column:2;grid-row:2/4;justify-content:center;margin:0;max-width:none}.title-footer{grid-row:4;grid-column:1/-1;margin:0}.stage-grid{grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr))}.stage-card{padding:3px}.stage-number{font-size:22px}.stage-no,.stage-details{display:none}.screen-header{margin-bottom:5px}.screen-note{margin-bottom:5px}.play-screen{display:grid!important;grid-template-columns:minmax(0,1fr) 190px;grid-template-rows:34px 38px 1fr 38px;gap:5px;max-width:950px}.game-header{grid-column:1/-1}.live-stats{grid-column:1;grid-row:2}.game-guide{grid-column:2;grid-row:2;font-size:9px;display:block}.scene-wrap{grid-column:1;grid-row:3/5}.flow-row{grid-column:2;grid-row:3;align-self:start;height:63px}.palette{grid-column:2;grid-row:3;align-self:end;margin-bottom:3px;grid-template-columns:repeat(2,1fr);gap:5px}.panel-button{flex-direction:row;padding:5px;gap:2px}.panel-button svg{width:27px;height:25px}.panel-button b{font-size:8px}.panel-button small{font-size:7px}.setup-actions{grid-column:2;grid-row:4}.setup-actions>div .text-button{font-size:8px;padding:3px}.setup-actions .button{font-size:10px;min-width:0;padding:8px;gap:2px}.setup-actions .button svg{width:12px}.live-footer{grid-column:2;grid-row:4;align-items:center;flex-direction:column;gap:4px}.validation{position:absolute;bottom:6px;left:15px;right:220px;z-index:10;pointer-events:none}.guest-hud{width:43px}.guest-caption{font-size:6px}.room-label{top:3px;font-size:8px}.scene-mount{top:8px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
.screen.hidden{display:none!important}.scene-failure{height:100%;display:flex;align-items:center;justify-content:center;text-align:center;font-size:12px;color:#9b7c5a;line-height:1.8}

#submit-dialog{overflow-y:auto;touch-action:pan-y}.submit-card{min-height:420px}
/* The scene is the play screen. Controls float inside it. */
#play-screen{position:relative;display:block!important;width:100%;max-width:none;height:var(--app-height,100dvh);margin:0;padding:0;overflow:hidden;background:#dce4d6}
#play-screen.hidden{display:none!important}
#play-screen .scene-wrap{position:absolute;inset:0;border:0;border-radius:0;min-height:0;background:radial-gradient(ellipse at 52% 48%,#faf4df 0%,#dce4d6 80%);box-shadow:none}
#play-screen .scene-mount{inset:0}
.game-top,.game-bottom{position:absolute;left:max(10px,env(safe-area-inset-left));right:max(10px,env(safe-area-inset-right));z-index:40;max-width:740px;margin:auto;pointer-events:none}
.game-top{top:calc(6px + env(safe-area-inset-top));display:flex;flex-direction:column;gap:5px}
.game-bottom{bottom:calc(8px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:7px;background:linear-gradient(0deg,#e4e8d7e8 60%,#e4e8d700);border-radius:14px}
.game-top button,.game-bottom button{pointer-events:auto}
.game-top .game-header{padding:3px 5px;min-height:40px}
.game-top .game-header h2{text-shadow:0 1px #fff9}
.game-top .live-stats{background:#fff8e9eb;box-shadow:0 3px 12px #4763450b;padding:7px 2px}
.game-top .live-stats strong{font-size:20px}
.game-top .game-guide{font-size:10px;min-height:22px}
.game-bottom .palette{gap:6px}
.game-bottom .panel-button{padding:6px 3px;min-height:64px;flex-direction:row;gap:3px;background:#fff9ecef}
.game-bottom .panel-button>span{display:flex;flex-direction:column;gap:3px}
.game-bottom .panel-button svg{width:38px;height:31px}
.game-bottom .panel-button b{font-size:9px}
.game-bottom .panel-button small{font-size:8px}
.game-bottom .setup-actions{min-height:38px}
.game-bottom .setup-actions .button{min-width:0}
.game-bottom .validation{position:static;font-size:9px;min-height:12px}
.game-bottom .validation:empty{display:none}
.game-bottom .live-footer{padding:5px 0;flex-direction:row;gap:14px}
#guest-huds .guest-hud{width:35px;min-height:5px;padding:0 0 3px;background:none;border:0;border-radius:0;box-shadow:none;pointer-events:none;cursor:inherit;line-height:1;transform:translate(-50%,-100%);z-index:10}
#guest-huds .guest-hud:after{display:none}
#guest-huds .next-badge{display:block;width:fit-content;margin:0 auto 3px;font-size:13px;font-weight:800;line-height:17px;min-height:0;filter:drop-shadow(0 1px 1px #fffa)}
#guest-huds .next-badge:empty{display:none}
#guest-huds .meter{height:4px;background:#fff5de;border:1px solid #597b6533;border-radius:4px;box-shadow:0 1px 2px #30452c22}
#guest-huds .meter span{height:100%}
#guest-huds .complaint .next-badge{font-size:23px;line-height:26px}
.locker-sign{position:absolute;pointer-events:none;transform:translate(-50%,0);font-size:10px;font-weight:800;color:#5f796b;letter-spacing:.12em;white-space:nowrap}
@media(max-width:350px){.game-top,.game-bottom{left:6px;right:6px}.game-bottom .panel-button{flex-direction:column;gap:1px;min-height:60px;padding:3px}.game-bottom .panel-button>span{flex-direction:row;align-items:center}.game-bottom .panel-button svg{height:26px;width:35px}.game-top .live-stats strong{font-size:16px}.game-top .game-guide{font-size:8px}}
@media(orientation:landscape) and (max-height:520px){.game-top{top:4px;gap:2px;max-width:700px}.game-top .game-header{min-height:30px}.game-top .game-header h2{font-size:14px}.game-top .live-stats{padding:4px 1px}.game-top .live-stats span{font-size:7px;margin-bottom:1px}.game-top .live-stats strong{font-size:15px}.game-top .game-guide{min-height:17px;display:flex;font-size:8px}.game-bottom{bottom:4px;max-width:700px;gap:3px;display:grid;grid-template-columns:1fr 210px;align-items:center}.game-bottom .palette{grid-column:1;grid-row:1;grid-template-columns:repeat(4,1fr);margin:0;gap:4px}.game-bottom .panel-button{min-height:43px;padding:3px;gap:2px}.game-bottom .panel-button svg{width:30px;height:26px}.game-bottom .setup-actions,.game-bottom .live-footer{grid-column:2;grid-row:1;flex-direction:row}.game-bottom .validation{grid-column:1/-1;font-size:8px;min-height:9px}.game-bottom .live-footer{font-size:7px;gap:3px;flex-direction:column}}
