:root{--ink:#344b45;--muted:#84968c;--p1:#3b9c88;--p2:#d97765;--paper:#fbf8ef;font-family:'Apple SD Gothic Neo','Malgun Gothic',sans-serif;color:var(--ink);background:#f5f2e9;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{border:0;background:none;color:inherit;cursor:pointer;transition:transform .12s,filter .12s}button:hover{filter:brightness(1.04)}button:active{transform:translateY(2px)}button:disabled{opacity:.42;cursor:default}button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #ae813c;outline-offset:3px}.hidden{display:none!important}.p1{--color:var(--p1)}.p2{--color:var(--p2)}.app-shell{max-width:min(1500px,calc((100dvh - 177px)*1.77778 + 64px));padding:0 32px;margin:auto}.site-header{height:70px;display:flex;align-items:center;justify-content:space-between;gap:18px}.brand{display:flex;align-items:center;gap:11px;font-size:24px;letter-spacing:-1px;font-weight:900;padding:0;text-align:left}.brand-symbol{font-size:38px;color:#72977b;transform:rotate(-12deg)}.brand small{display:block;font-size:6px;letter-spacing:1.4px;margin-top:4px;color:#7f9a87}.controller-chips{display:flex;gap:9px}.controller-chip{display:flex;align-items:center;gap:8px;border:1px solid #dbe1d1;background:#fffdf5;border-radius:24px;padding:8px 12px;font-size:10px}.controller-chip b{color:var(--color);font-size:11px}.controller-chip i{font-style:normal;color:#91a58f}.controller-chip.connected{border-color:var(--color)}nav{display:flex;gap:18px}.icon-button{display:flex;align-items:center;gap:5px;font-size:22px;padding:3px}.icon-button span{font-size:10px}.icon-button i{display:none}.game-frame{position:relative;aspect-ratio:16/9;overflow:hidden;border-radius:21px;background:#e8edd9;isolation:isolate;container-type:inline-size;box-shadow:0 8px 35px #344d3a12}#game{display:block;width:100%;height:100%;outline:none}.menu-overlay{position:absolute;inset:0;background:linear-gradient(90deg,#fff9eaf7 0%,#fff9eae8 24%,#fff9eab3 38%,transparent 63%)}.hero-copy{position:absolute;left:5%;top:8%;width:40%}.eyebrow{font-size:9px;font-weight:850;letter-spacing:1.6px;color:#759789}.eyebrow>span{color:#c59559;font-size:13px;margin-right:4px}h1{font-size:7.1cqw;line-height:1.06;font-weight:950;letter-spacing:-.075em;margin:24px 0 21px;color:#385a48;text-shadow:2px 3px 0 #ffffff66}h1 em{font-style:normal;color:#bc7755}h1>span{display:inline-block;color:#bc7755;transform:rotate(10deg);margin-left:7px}.hero-sub{font-size:1.55cqw;line-height:1.65;letter-spacing:-.3px;color:#859580;margin:0 0 22px}.hero-sub b{font-weight:600;color:#536f59}.hero-rules{display:flex;gap:6px;font-size:10px;margin-bottom:24px}.hero-rules>span{border:1px solid #d9ddc7;border-radius:7px;background:#fffdf18f;padding:7px 9px;color:#70836c}.primary{background:#597f62;color:#fffcf1;padding:14px 23px;border-radius:12px;box-shadow:0 4px 0 #3c6048;font-weight:800}.hero-start{width:345px;max-width:100%;display:flex;align-items:center;justify-content:space-between;font-size:18px;padding:18px 24px}.hero-start span{font-size:9px;font-weight:600;color:#cad7bb;letter-spacing:.5px}.solo-button{display:flex;align-items:center;justify-content:space-between;width:345px;max-width:100%;padding:20px 10px 0;font-size:12px;font-weight:700}.solo-button span{font-size:9px;letter-spacing:.5px;color:#95a18a}.story-bubble{position:absolute;top:25%;right:7%;transform:rotate(3deg);border:1px solid #cdbb8d;background:#fff9e9eb;box-shadow:4px 5px 0 #849e6b20;border-radius:15px;padding:14px 18px;text-align:center}.story-bubble:after{content:'';position:absolute;bottom:-13px;left:32px;border-top:14px solid #fff9e9;border-right:11px solid transparent}.story-bubble b{display:block;font-size:19px;color:#8d7144}.story-bubble span{display:block;font-size:10px;color:#a29575;margin-top:6px}.ready-dock{position:absolute;right:4%;bottom:5%;width:47%;text-align:center}.ready-dock>p{font-size:11px;font-weight:700;color:#6e8265;margin:0 0 11px}.ready-dock>div{display:flex;justify-content:center;gap:10px;align-items:center}.ready-button{display:flex;align-items:center;gap:10px;background:#fffbedee;border:1px solid #d7dfc4;border-radius:25px;padding:10px 15px;font-size:11px;box-shadow:0 3px 0 #768b5925}.ready-button b{color:var(--color)}.ready-button i{color:#a5b196;font-style:normal}.ready-button.ready{background:var(--color);color:white;border-color:var(--color)}.ready-button.ready b,.ready-button.ready i{color:#fff}.ready-plus{color:#a5b295}.ready-dock>small{display:block;font-size:9px;letter-spacing:.3px;color:#7c9474;margin-top:12px}.hud{position:absolute;top:17px;left:19px;right:19px;border:1px solid #fffdf5;background:#fffdf2ef;border-radius:15px;box-shadow:0 5px 16px #60784414;display:flex;align-items:center;justify-content:space-between;padding:14px 20px;pointer-events:none}.room-objective>span{font-size:9px;letter-spacing:1px;color:#8fa183}.room-objective h2{font-size:25px;letter-spacing:-.7px;margin:6px 0 5px}.room-objective p{font-size:12px;color:#8a9b7d;margin:0}.shared-inventory{display:flex;gap:12px;position:absolute;left:69%;transform:translateX(-50%)}.shared-inventory>span{display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:26px;width:43px;height:54px;filter:grayscale(1);opacity:.37;background:#e9ecdd;border:1px dashed #aab99a;border-radius:10px;transition:.3s}.shared-inventory>span.collected{filter:none;opacity:1;background:#f6ecd3;border:1px solid #dbb96e;transform:rotate(-4deg)}.shared-inventory small{font-size:8px;font-weight:700;color:#8d987b;margin-top:3px}.timer-block{position:relative;padding-right:38px;min-width:99px}.timer-block>small{font-size:8px;color:#94a18b;display:block}.timer-block>b{font-size:29px;line-height:1.3;font-variant-numeric:tabular-nums;color:#9a885e}.timer-block>span{font-size:9px;color:#a7ab8d}.timer-block>button{position:absolute;right:0;top:6px;width:28px;height:28px;border-radius:50%;background:#e8edda;font-size:13px;pointer-events:auto}.room-route{position:absolute;left:21px;right:21px;bottom:-2px;display:flex;gap:5px;height:4px}.room-route i{flex:1;background:#dce6cd;border-radius:4px}.room-route i.done{background:#8db08a}.room-route i.current{background:#ccad6d}.tutorial{position:absolute;top:18px;left:20px;right:20px;padding:20px 26px;background:#fffaf0ed;border:2px solid #dfca94;border-radius:17px;pointer-events:none}.tutorial>span{font-size:10px;color:#b09257;font-weight:800}.tutorial h2{font-size:27px;margin:7px 0;letter-spacing:-.5px}.tutorial p{font-size:12px;color:#8c9b7e;margin:0}.tutorial>div{position:absolute;right:120px;top:40%;display:flex;gap:7px}.tutorial i{font-style:normal;border:1px solid #d9dfc6;border-radius:6px;padding:8px;font-size:11px;color:#9eaa8a}.tutorial .complete{color:#64835d;background:#e6edd6;border-color:#aabc97}.tutorial>b{position:absolute;right:55px;top:36%;font-size:37px;color:#b39c67}.hud.practice-hud{z-index:4;left:auto;right:28px;top:26px;padding:0;background:none;border:0;box-shadow:none}.practice-hud .room-objective,.practice-hud .shared-inventory,.practice-hud .room-route,.practice-hud .timer-block>small,.practice-hud .timer-block>b,.practice-hud .timer-block>span{display:none}.practice-hud .timer-block{width:28px;height:28px;min-width:0;padding:0}.practice-hud .timer-block>button{top:0}.toast{position:absolute;top:130px;left:50%;transform:translateX(-50%);max-width:88%;padding:10px 22px;background:#fff9e9e8;border:1px solid #d6d8b4;box-shadow:0 3px 0 #80955c17;border-radius:23px;font-size:15px;font-weight:800;color:#687b4e;pointer-events:none;white-space:nowrap}.team-meter{position:absolute;left:50%;transform:translateX(-50%);bottom:18px;display:flex;align-items:center;gap:10px;background:#fffaecef;padding:11px 15px;border:1px solid #d9d7b1;border-radius:15px;min-width:300px;box-shadow:0 4px 0 #59694015}.team-meter>span{font-size:30px;color:#cf987a}.team-meter>div{width:142px}.team-meter strong{font-size:11px;color:#7c865c}.meter-rail{background:#e4e5ca;height:6px;border-radius:6px;margin-top:6px;overflow:hidden}.meter-rail i{display:block;background:#b0bd78;height:100%;width:0;border-radius:6px;transition:width .1s}.team-meter>b{font-size:25px;color:#869c61}.team-meter>small{font-size:9px;color:#98a080;max-width:70px;line-height:1.5}.team-meter.boosting{background:#f4edc2;border-color:#c9b55f}.player-hints{position:absolute;left:20px;right:20px;bottom:25px;display:flex;justify-content:space-between;pointer-events:none}.player-hints>div{display:flex;flex-direction:column;gap:5px;background:#fffcebf0;border:1px solid #e1e4ce;border-left:4px solid var(--color);border-radius:9px;padding:9px 13px;max-width:31%}.player-hints b{font-size:10px;color:var(--color)}.player-hints span{font-size:12px;font-weight:700;color:#687b60}.screen-overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:#30492d50;backdrop-filter:blur(4px);z-index:10}.pause-card{background:#fffaed;border:3px solid #fffdf6;border-radius:22px;padding:37px 48px;text-align:center;box-shadow:0 9px 0 #314b3d2b}.pause-card h2{font-size:31px;letter-spacing:-.8px;margin:16px 0}.pause-card p{font-size:13px;color:#8fa082;margin-bottom:28px}.text-button{display:block;font-size:12px;color:#a2ad94;margin:22px auto 0}.result-overlay{background:#e8edce73;backdrop-filter:blur(2px)}.result-card{width:590px;max-width:90%;border:3px solid #fffdf5;background:#fffaf0f2;border-radius:23px;padding:24px 31px 20px;text-align:center;box-shadow:0 9px 0 #677d4820,0 18px 70px #59753e23}.result-kicker{font-size:9px;letter-spacing:2px;font-weight:800;color:#ac9c6c}.result-card h2{font-size:33px;letter-spacing:-1px;margin:11px 0 6px}.result-card>p{font-size:11px;color:#95a07e;margin:0}.result-score{margin:15px 0}.result-score>small{display:block;font-size:10px;color:#a6aa89}.result-score>strong{font-size:59px;color:#b7865a;font-weight:950;letter-spacing:1px;line-height:1.2}.result-score>span{font-size:12px;color:#b5b297;margin-left:8px}.result-stats{display:flex;margin:14px 0 19px}.result-stats>div{flex:1;border-right:1px solid #e4e5ca}.result-stats>div:last-child{border:0}.result-stats b{display:block;font-size:25px;color:#698361}.result-stats span{display:block;font-size:10px;color:#9ea88c;margin-top:4px}.awards{display:flex;justify-content:center;gap:19px;margin-bottom:15px}.awards>div{display:flex;gap:7px;align-items:center;font-size:12px}.awards b{font-size:10px;color:var(--color);border-radius:5px;background:color-mix(in srgb,var(--color) 12%,white);padding:5px 6px}.result-story{font-size:10px;color:#8b9d77;background:#ecf0db;border-radius:8px;padding:9px;margin-bottom:20px}.result-actions{display:flex;justify-content:center;gap:12px}.result-actions button{font-size:12px;padding:12px 19px}.secondary{border:1px solid #d9dfc5;border-radius:11px;color:#8b9d7c;font-weight:700}.result-card>small{display:block;font-size:9px;color:#a4ac8d;margin-top:16px}.loading{position:absolute;inset:0;background:#edf1dc;z-index:20;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:14px;font-size:14px;color:#859b78}.loading>span{font-size:50px;color:#c0a369}.control-rail{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:16px 4px;border-bottom:1px solid #dfe3cf}.player-control{display:flex;align-items:center;gap:9px}.player-control>b{color:var(--color);font-size:11px;padding:12px 8px;border:1px solid color-mix(in srgb,var(--color) 26%,white);border-radius:11px;background:color-mix(in srgb,var(--color) 8%,white)}.player-control strong{display:block;font-size:11px}.player-control strong small{font-size:9px;color:var(--color);margin-left:6px;font-weight:600}.player-control p{font-size:8px;color:#8c9d82;display:flex;gap:4px;align-items:center;margin:6px 0 0}.player-control i{font-style:normal;font-size:8px;color:#b4bba7}kbd{font:9px 'Apple SD Gothic Neo','Malgun Gothic',sans-serif;display:inline-flex;align-items:center;justify-content:center;min-width:19px;height:22px;padding:2px 4px;border:1px solid #d8dfcb;border-bottom-width:2px;background:#fffdf5;border-radius:4px;color:#61775e}.control-message{text-align:center}.control-message b{display:block;font-size:11px}.control-message span{display:block;font-size:9px;color:#9eac90;margin-top:5px}footer{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 0;font-size:8px;color:#a3af97}footer button{font-size:8px;color:#8ea07f;padding:0}.device-panel{position:fixed;right:0;top:0;bottom:0;width:470px;max-width:100%;padding:27px;background:#fffaf0;box-shadow:-12px 0 50px #28444633;z-index:40;overflow:auto}.panel-heading{display:flex;align-items:center;justify-content:space-between}.panel-heading h2{font-size:27px;margin:7px 0 0}.close-button{background:#e9efdf;border-radius:50%;width:34px;height:34px;font-size:25px;font-weight:400;line-height:1}.panel-intro{font-size:12px;line-height:1.8;color:#809478;margin:20px 0 12px}.support-note{background:#eaf0df;border-radius:9px;padding:10px 12px;font-size:11px;line-height:1.6;color:#8a9f7e}.device-card{border:1px solid #dfe4d2;border-radius:14px;padding:16px;margin:16px 0}.device-title{display:flex;justify-content:space-between;align-items:center}.device-title strong{color:var(--color);font-size:15px}.device-state{font-size:10px;color:#a0ae98}.device-status{font-size:11px;color:#93a08b;line-height:1.6;min-height:33px}.device-error{font-size:11px;line-height:1.5;color:#bd7c59}.device-actions{display:flex;gap:5px;flex-wrap:wrap}.device-actions button,.sim-buttons button{border-radius:7px;padding:8px 10px;font-size:10px;background:#e9eddc}.device-actions .connect{background:var(--color);color:#fff}.device-axes{display:flex;justify-content:space-between;margin-top:12px;font-size:10px;color:#9bad91}.simulator{margin-top:14px;border-top:1px dashed #dfe3cf;padding-top:12px}summary{font-size:11px;font-weight:600;color:#8b9f80;cursor:pointer}.simulator p{font-size:10px;line-height:1.7;color:#99a78e}.sim-buttons{display:flex;gap:6px;flex-wrap:wrap}.simulator label{display:flex;align-items:center;gap:10px;font-size:10px;color:#91a587;white-space:nowrap;margin:12px 0}.simulator input[type=range]{accent-color:var(--color);width:100%;min-width:0}.simulator output{display:block;font-size:10px;line-height:1.5;color:#96a987;margin-top:11px}.sim-buttons button.active{color:white;background:var(--color)}.key-settings{padding:14px;border:1px solid #e0e5d2;border-radius:12px}.key-settings>div{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:15px}.key-settings label{font-size:11px}.key-settings select{background:#fffaf0;color:#819974;border:1px solid #dce3cf;padding:5px;border-radius:7px;font-size:11px;margin-left:6px}.key-settings p{font-size:10px;color:#9dad91}.panel-footnote{font-size:11px;line-height:1.7;color:#a0ae93;margin-top:20px}dialog{border:2px solid #e5d6b8;border-radius:22px;padding:26px;background:#fff8e8;color:var(--ink);width:1050px;max-width:94vw;box-shadow:0 20px 80px #193e4740}dialog::backdrop{background:#254a5266;backdrop-filter:blur(4px)}.animation-header{display:flex;justify-content:space-between;align-items:center}.animation-header h2{margin:8px 0;font-size:26px}dialog p{font-size:12px;color:#93a488}#animation-canvas{width:100%;height:auto;display:block}.animation-labels{display:grid;grid-template-columns:repeat(4,1fr);text-align:center;font-size:12px;color:#91a486}
@media(max-width:1200px){.app-shell{padding:0 20px;max-width:min(1500px,calc((100dvh - 172px)*1.77778 + 40px))}.brand{font-size:21px}.hero-copy{top:6.5%}h1{margin:20px 0 14px}.hero-sub{margin-bottom:17px}.hero-rules{font-size:9px;margin-bottom:18px}.hero-start{font-size:16px;padding:14px 20px}.solo-button{padding-top:17px;font-size:11px}.story-bubble b{font-size:16px}.story-bubble span{font-size:9px}.ready-dock>p{font-size:10px}.ready-button{font-size:10px;padding:8px 12px}.ready-dock>small{font-size:8px}.room-objective h2{font-size:22px}.room-objective p{font-size:10px}.shared-inventory{gap:7px}.shared-inventory>span{width:34px;height:45px;font-size:22px}.hud{padding:12px 16px}.timer-block>b{font-size:27px}.toast{top:119px;font-size:13px}.player-hints span{font-size:10px}.player-hints>div{padding:8px 10px}.team-meter{min-width:280px;padding:9px 12px;bottom:19px}.team-meter>div{width:120px}.team-meter>small{font-size:8px}.control-message{display:none}.tutorial h2{font-size:23px}.tutorial p{font-size:10px}.tutorial>div{right:105px}.tutorial i{font-size:9px;padding:7px}.result-card{width:530px;padding:20px 25px 16px}.result-card h2{font-size:29px}.result-score{margin:11px 0}.result-score strong{font-size:52px}.result-stats{margin:10px 0 16px}.awards{margin-bottom:12px}.result-story{margin-bottom:16px}.result-card>small{margin-top:13px}}
@media(min-width:900px) and (max-height:780px){.site-header{height:62px}.brand small{font-size:5px}nav{gap:12px}.controller-chip{padding:7px 10px}.hero-copy{top:7%}h1{font-size:6.8cqw;margin:15px 0 13px}.hero-sub{margin-bottom:15px;font-size:1.5cqw}.hero-rules{margin-bottom:18px;font-size:9px}.hero-start{font-size:16px;padding:14px 20px}.solo-button{padding-top:16px;font-size:11px}.ready-dock>p{font-size:9px}.story-bubble{top:22%}.story-bubble b{font-size:17px}.hud{padding:12px 15px}.room-objective h2{font-size:22px}.room-objective p{font-size:10px}.toast{top:120px}.result-card{padding:17px 27px 14px;width:530px}.result-card h2{font-size:28px}.result-score{margin:10px 0}.result-score strong{font-size:47px}.result-stats{margin:10px 0 14px}.result-stats b{font-size:22px}.awards{margin-bottom:10px}.result-story{margin-bottom:15px}.result-actions button{padding:10px 16px}.result-card>small{margin-top:12px}.control-rail{padding:13px 0}}
@media(max-width:780px){.app-shell{max-width:100%;padding:0 12px}.site-header{height:68px;gap:10px}.brand{font-size:19px;gap:7px}.brand-symbol{font-size:31px}.brand small{font-size:5px;letter-spacing:1px}.controller-chips{display:none}nav{gap:9px}.icon-button span{display:none}.game-frame{aspect-ratio:auto;height:580px;border-radius:17px}#game{object-fit:contain}.menu-overlay{background:linear-gradient(90deg,#fffae9e8,#fffae9b8 58%,transparent)}.hero-copy{left:7%;top:6%;width:80%}.eyebrow{font-size:7px;letter-spacing:1px}h1{font-size:65px;margin:20px 0 15px;line-height:1.05}.hero-sub{font-size:16px;margin-bottom:19px}.hero-rules{font-size:9px;gap:5px;margin-bottom:21px}.hero-rules>span{padding:7px}.hero-start{width:280px;font-size:15px;padding:15px 18px}.solo-button{width:280px;font-size:12px}.story-bubble{display:none}.ready-dock{left:4%;right:4%;bottom:5%;width:92%}.ready-dock>p{font-size:10px}.ready-button{font-size:10px;padding:9px 13px}.ready-dock>small{font-size:8px}.hud{left:10px;right:10px;top:12px;padding:13px;align-items:flex-start;min-height:132px}.room-objective>span{font-size:8px}.room-objective h2{font-size:18px;margin:7px 0}.room-objective p{font-size:10px;max-width:245px;line-height:1.5}.timer-block{position:absolute;right:12px;bottom:9px;min-width:81px;padding-right:28px}.timer-block>small{display:none}.timer-block>b{font-size:22px}.timer-block>button{width:23px;height:23px;font-size:10px;top:3px}.shared-inventory{left:13px;bottom:9px;transform:none;gap:6px}.shared-inventory>span{width:26px;height:27px;font-size:19px}.shared-inventory small{display:none}.toast{top:152px;max-width:94%;font-size:12px;white-space:normal;text-align:center;width:max-content;padding:9px 14px}.player-hints{left:12px;right:12px;bottom:100px;gap:8px}.player-hints>div{max-width:48%;padding:8px 9px}.player-hints span{font-size:10px}.team-meter{min-width:0;width:92%;max-width:340px;bottom:20px;justify-content:center}.team-meter>div{width:135px}.tutorial{top:12px;left:10px;right:10px;padding:14px 16px;min-height:158px}.tutorial>span{font-size:9px}.tutorial h2{font-size:20px;margin:8px 0}.tutorial p{font-size:10px;line-height:1.5;max-width:245px}.tutorial>div{position:static;margin-top:12px;gap:7px}.tutorial i{font-size:10px;padding:7px 10px}.tutorial>b{top:50px;right:15px;font-size:29px}.hud.practice-hud{top:21px;right:20px;min-height:0}.practice-hud .timer-block{position:static;min-width:0}.control-rail{flex-wrap:wrap;gap:13px 10px;padding:17px 0}.player-control>b{padding:11px 7px;font-size:10px}.player-control{gap:7px}.player-control p{font-size:8px;gap:3px}.player-control i{display:none}.player-control strong small{font-size:8px}kbd{font-size:8px;height:21px;min-width:17px;padding:2px 3px}.control-message{display:block;width:100%;order:3}.control-message b{font-size:11px}footer{flex-wrap:wrap;font-size:8px;gap:10px}.result-card{padding:23px 18px 18px;max-width:94%}.result-card h2{font-size:26px}.result-score>strong{font-size:49px}.result-stats b{font-size:23px}.result-stats span{font-size:9px}.awards{flex-direction:column;align-items:center;gap:10px;margin-bottom:16px}.awards>div{font-size:11px}.result-story{font-size:9px;line-height:1.6}.result-actions{flex-direction:column;gap:8px}.result-actions button{font-size:11px}.result-card>small{font-size:8px;line-height:1.5}.pause-card{padding:28px 23px;max-width:93%}.pause-card h2{font-size:23px}.animation-header h2{font-size:20px}dialog{padding:17px}.animation-labels{font-size:8px;gap:4px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
/* Terrace v4: room for upper routes and touch-first result registration. */
:root{--p1:#159d88;--p2:#ee7853}.hero-copy{top:7%}.hero-rules{flex-wrap:wrap;margin-bottom:18px}.hero-rules>span{font-size:10px}.hero-sub{font-size:1.5cqw}.story-bubble{top:23%;right:5%}.story-bubble b{font-size:19px}.hud{top:12px;left:14px;right:14px;padding:10px 16px;min-height:83px}.room-objective h2{font-size:21px;margin:4px 0}.room-objective p{font-size:10px}.room-objective>span{font-size:9px}.timer-block{min-width:163px;padding-right:35px}.timer-block>b{font-size:25px;letter-spacing:-1px;white-space:nowrap}.timer-block>span{position:absolute;right:34px;bottom:-8px;font-size:10px;color:#c37d55}.shared-inventory{left:70%;gap:6px}.shared-inventory>span{width:30px;height:42px;font-size:23px}.toast{top:auto;bottom:102px;font-size:12px;padding:8px 16px;max-width:70%;white-space:normal;text-align:center}.team-meter{bottom:14px;padding:7px 10px;min-width:245px;gap:8px}.team-meter>div{width:113px}.team-meter>span{font-size:22px}.team-meter strong{font-size:9px}.team-meter>small{font-size:8px}.team-meter>b{font-size:22px}.player-hints{bottom:18px;left:14px;right:14px}.player-hints>div{max-width:32%;padding:8px 9px}.player-hints span{font-size:11px;max-width:250px}.result-card{width:680px;max-height:96%;overflow:auto;padding:20px 28px 16px}.result-card h2{font-size:28px;margin:8px 0 5px}.result-score{margin:10px 0 2px}.result-score>strong{font-size:49px;letter-spacing:-1px;font-variant-numeric:tabular-nums}.result-card #result-breakdown{font-size:11px;color:#a78b5d}.result-stats{margin:12px 0}.result-stats b{font-size:24px}.result-stats span{font-size:10px}.awards{margin-bottom:12px}.nickname-row{display:flex;align-items:center;gap:8px;background:#eaf0dc;border-radius:12px;padding:9px 11px;text-align:left}.nickname-row>span{font-size:10px;color:#8b9e75}.nickname-row>b{flex:1;font-size:15px}.nickname-row button{min-height:44px;min-width:44px;padding:6px 11px;background:#fffaf0;border-radius:9px;font-size:12px;font-weight:700}.nickname-row #nickname-shuffle{font-size:26px;padding:0}.result-card #ranking-message{font-size:11px;line-height:1.5;margin:10px 0 12px;color:#84946e}.result-actions button{min-height:44px;font-size:12px;padding:10px 14px}.result-card>small{font-size:9px;margin-top:13px}.nickname-dialog{max-width:94vw;width:780px;max-height:94dvh;overflow:auto;padding:24px}.nickname-dialog h3{font-size:13px;color:#91a077;margin:15px 0 8px}.nickname-dialog output{display:block;text-align:center;font-size:25px;font-weight:850;background:#eef0d7;border-radius:13px;padding:15px}.word-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.word-grid button{background:#f4ebd3;border:2px solid transparent;border-radius:10px;min-height:48px;font-size:14px;font-weight:700}.word-grid button[aria-pressed=true]{border-color:#69865f;background:#dceacb;color:#486848}.nickname-dialog>.primary{display:block;width:100%;margin-top:20px;min-height:50px}.ranking-dialog{width:680px;max-height:90dvh;overflow:auto}.rank-tabs{display:flex;gap:10px;margin:18px 0}.rank-tabs button{min-height:46px;flex:1;background:#f0ead5;border-radius:12px;font-weight:800}.rank-tabs .selected{background:#6b895f;color:#fffaf0}#rank-list{padding:0;margin:0;list-style:none;max-height:48dvh;overflow:auto}#rank-list li{display:flex;align-items:center;gap:14px;padding:15px 12px;border-bottom:1px solid #e6e5cb;font-size:16px}#rank-list li>span{font-size:14px;color:#bba578;min-width:24px}#rank-list li>b{flex:1}#rank-list li>time{font-weight:850;color:#a88952;font-variant-numeric:tabular-nums}#rank-list li:first-child:not(.empty-rank){background:#f2e9c9;border-radius:10px}#rank-list .empty-rank{font-size:14px;justify-content:center;color:#97a47e;padding:32px 10px}#rank-storage-note{font-size:10px}.sim-buttons button{min-height:35px}#game{touch-action:none}.control-rail{padding:14px 4px}footer button{font-size:10px;padding:5px}.animation-labels{font-size:11px}.icon-button{min-height:36px}
@media(min-width:900px) and (max-height:780px){.result-card{width:630px;padding:13px 25px}.result-card h2{font-size:24px}.result-score>strong{font-size:39px}.result-stats{margin:8px 0}.result-stats b{font-size:20px}.awards{margin-bottom:8px}.nickname-row{padding:6px 9px}.result-card #ranking-message{margin:7px 0}.result-card>small{margin-top:8px}.result-score{margin:5px 0 2px}.hud{padding:8px 12px;min-height:78px}.room-objective h2{font-size:18px}.timer-block>b{font-size:23px}.toast{bottom:100px}.team-meter{min-width:240px}.player-hints>div{max-width:30%}.player-hints span{font-size:10px}}
@media(max-width:780px){.hero-sub{font-size:16px}.hero-rules>span{font-size:9px}.hero-copy{top:6%}.hud{min-height:122px;top:10px;left:10px;right:10px}.room-objective h2{font-size:17px;max-width:305px}.room-objective p{max-width:300px}.timer-block{right:10px;bottom:10px;min-width:150px}.timer-block>b{font-size:23px}.timer-block>span{bottom:-8px;right:28px}.shared-inventory{left:12px;bottom:10px;gap:5px}.shared-inventory>span{width:24px;height:26px;font-size:18px}.toast{top:auto;bottom:163px;max-width:92%;font-size:10px}.player-hints{bottom:87px;left:10px;right:10px}.player-hints>div{max-width:49%;padding:7px}.player-hints span{font-size:10px}.team-meter{bottom:15px;max-width:320px;padding:9px}.result-card{max-width:95%;width:100%;padding:18px 12px;max-height:96%;overflow:auto}.result-card h2{font-size:23px}.result-score>strong{font-size:39px}.result-score{margin-top:8px}.result-stats{margin:10px 0}.result-stats b{font-size:21px}.awards{flex-direction:row;gap:10px;align-items:center;margin-bottom:10px}.awards>div{font-size:10px;gap:4px}.nickname-row{flex-wrap:wrap;gap:5px;padding:7px}.nickname-row>span{width:100%;font-size:9px}.nickname-row>b{font-size:13px}.nickname-row button{font-size:10px;padding:5px 8px}.result-card #ranking-message{font-size:10px;margin:9px 0}.result-actions{flex-direction:row;flex-wrap:wrap;gap:7px}.result-actions .primary{width:100%}.result-actions .secondary{flex:1}.result-card>small{font-size:8px;margin-top:10px}.word-grid{grid-template-columns:repeat(3,1fr);gap:6px}.word-grid button{font-size:12px;min-height:46px}.nickname-dialog{padding:17px}.nickname-dialog .animation-header h2{font-size:19px}.nickname-dialog output{font-size:21px}.ranking-dialog{padding:18px}#rank-list li{font-size:12px;gap:7px;padding:13px 6px}#rank-list li>span{font-size:12px}.animation-labels{font-size:8px}footer{gap:6px}footer>span{width:100%}footer button{font-size:9px;padding:6px 0}.tutorial h2{font-size:17px}.tutorial>div{gap:4px}.tutorial i{font-size:9px;padding:7px}}
.rank-stars{display:inline-block;margin-left:8px;font-size:10px;color:#bd9e55;font-weight:600}
@media(min-width:781px){.compact-hud{width:54%;right:auto;align-items:flex-start;min-height:105px;padding:12px 15px}.compact-hud.hud-right{left:auto;right:14px}.compact-hud .room-objective{padding-right:138px}.compact-hud .room-objective h2{font-size:18px;line-height:1.3;max-width:420px}.compact-hud .room-objective p{font-size:10px;line-height:1.45}.compact-hud .timer-block{position:absolute;top:15px;right:13px;min-width:135px;padding-right:27px}.compact-hud .timer-block>b{font-size:23px}.compact-hud .timer-block>button{width:23px;height:23px;font-size:11px}.compact-hud .timer-block>span{right:28px;bottom:-9px}.compact-hud .shared-inventory{left:auto;right:35px;bottom:8px;transform:none;gap:5px}.compact-hud .shared-inventory>span{font-size:15px;width:18px;height:21px;border-radius:5px}.compact-hud .shared-inventory small{display:none}}
/* Relay v5: separately illustrated sky/pink characters, touch keyboard, live exhibition rails. */
:root{--p1:#438bb8;--p2:#bd628e}.rank-rail{display:none}.exhibition-layout main{min-width:0}
.nickname-input-label{display:block;font-size:12px;font-weight:800;margin:12px 0 7px}#nickname-input{display:block;width:100%;height:60px;border:2px solid #d5c399;background:#fffefa;border-radius:12px;padding:10px 16px;font-size:25px;color:#495a4c;font-weight:800}#nickname-error{min-height:22px;margin:6px 0 12px;color:#b45457;font-weight:700;line-height:1.5}.touch-keyboard-tabs{display:flex;gap:8px;margin-bottom:12px}.touch-keyboard-tabs .touch-key{min-width:92px;background:#e6ead8}.touch-keyboard-tabs [aria-pressed=true]{background:#547c68;color:#fff}.touch-keyboard-row{display:flex;justify-content:center;gap:6px;margin-top:7px}.touch-key{flex:1;min-width:0;min-height:49px;max-width:70px;padding:7px 3px;border:1px solid #d5c8ab;border-bottom:3px solid #c5b590;background:#fffdf5;border-radius:9px;font-size:22px;font-weight:700;touch-action:manipulation}.touch-keyboard-actions{margin-top:12px;flex-wrap:wrap}.touch-keyboard-actions .touch-key{max-width:none;font-size:13px;flex:1 1 80px}.touch-keyboard-actions [data-key=enter]{background:#547c68;color:#fff}.nickname-dialog>.primary{margin-top:14px;min-height:48px}.nickname-dialog{width:800px}.nickname-row #nickname-edit{min-width:115px}.rank-rail ol{list-style:none;padding:0;margin:20px 0;display:flex;flex-direction:column;gap:8px}.rank-rail li{position:relative;min-height:59px;border:1px solid #e0d8c4;background:#fffdf2cc;border-radius:12px;padding:10px 9px 9px 32px;display:flex;flex-direction:column;gap:5px}.rank-rail li>span{position:absolute;left:9px;top:11px;color:#b29a69;font-size:11px;font-weight:850}.rank-rail li>b{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rank-rail li>time{font-size:17px;letter-spacing:-.6px;font-variant-numeric:tabular-nums;color:#967645;font-weight:850}.rank-rail li:first-child:not(.empty-rank){border-color:#d1ae58;background:#f8eecf}.rank-rail li.empty-rank{padding:25px 10px;font-size:12px;line-height:1.6;min-height:130px;justify-content:center;text-align:center;color:#869077}.rank-rail h2{font-size:22px;margin:10px 0 7px;letter-spacing:-.5px}.rank-rail p{font-size:11px;color:#939477;margin:0}.rail-eyebrow{font-size:8px;font-weight:850;letter-spacing:1.3px;color:#a69872}.rank-rail>small{display:block;font-size:9px;color:#8e977e;line-height:1.6}.solo-rail h2{color:var(--p1)}.duo-rail h2{color:var(--p2)}
@media(min-width:900px){body.is-fullscreen .app-shell{max-width:none;width:100%;padding:0 20px}body.is-fullscreen .exhibition-layout{display:grid;grid-template-columns:clamp(140px,13vw,230px) minmax(0,1fr) clamp(140px,13vw,230px);gap:18px;align-items:start}body.is-fullscreen .rank-rail{display:block;padding-top:16px;max-height:calc(100dvh - 88px);overflow:hidden}body.is-fullscreen .exhibition-layout main{width:100%;max-width:calc((100dvh - 177px)*1.77778);justify-self:center}body.is-fullscreen .compact-hud{width:62%;min-height:100px}body.is-fullscreen .compact-hud .room-objective{padding-right:125px}body.is-fullscreen .compact-hud .room-objective h2{font-size:clamp(13px,1.1vw,18px)}body.is-fullscreen .compact-hud .room-objective p{font-size:9px}body.is-fullscreen .compact-hud .timer-block>b{font-size:20px}body.is-fullscreen .control-message{display:none}body.is-fullscreen .hero-copy{top:5%}body.is-fullscreen .hero-rules{margin-bottom:12px}body.is-fullscreen .hero-start{font-size:clamp(12px,1.15vw,18px);padding:12px}body.is-fullscreen .hero-start span{font-size:7px}body.is-fullscreen .hero-sub{margin-bottom:12px}body.is-fullscreen .hero-rules>span{font-size:8px;padding:6px}body.is-fullscreen .result-card{padding:12px 22px}body.is-fullscreen .result-score>strong{font-size:37px}body.is-fullscreen .result-card h2{font-size:24px}body.is-fullscreen .result-stats{margin:7px 0}body.is-fullscreen .awards{margin-bottom:7px}}
@media(min-width:900px) and (max-height:800px){.rank-rail ol{gap:5px;margin:13px 0}.rank-rail li{min-height:46px;padding:7px 5px 6px 27px;gap:3px}.rank-rail li>b{font-size:10px}.rank-rail li>time{font-size:14px}.rank-rail li>span{left:7px;top:8px;font-size:9px}.rank-rail h2{font-size:19px}.rank-rail li:nth-child(n+9){display:none}}
@media(max-width:780px){#nickname-input{font-size:20px;height:51px}.nickname-dialog{padding:14px}.nickname-dialog p{font-size:11px}.touch-keyboard-row{gap:3px}.touch-key{font-size:18px;min-height:44px;border-radius:6px}.touch-keyboard-tabs .touch-key{font-size:14px;min-width:75px}.touch-keyboard-actions .touch-key{font-size:11px;flex-basis:64px}.nickname-dialog>.primary{font-size:13px}.nickname-row #nickname-edit{min-width:105px}.result-card{max-height:98%}}
/* v6: two human players, spacious single-division exhibition rankings. */
.duo-note{font-size:12px;color:#899883;font-weight:650;margin:19px 0 0}.rank-division{font-size:11px;letter-spacing:1px;font-weight:800;color:#a18b63;border-bottom:1px solid #e4ddc7;padding:13px 0;margin-bottom:8px}
.rank-rail li{display:flex;flex-direction:column;justify-content:center;gap:8px;min-height:105px;padding:17px 14px 14px;border-radius:14px;border-color:#e4dcc8;background:#fffdf7e8}.rank-rail li>span{position:static;font-size:10px;letter-spacing:1px;color:#ac9470;line-height:1}.rank-rail li>b{font-size:clamp(21px,1.4vw,29px);font-weight:900;color:#415b50;white-space:normal;overflow-wrap:anywhere;overflow:visible;letter-spacing:-.8px;line-height:1.2}.rank-rail li>time{font-size:15px;font-weight:700;letter-spacing:0;color:#a79069}.rank-rail li:nth-child(n+9){display:flex}.rank-rail ol{gap:10px}.rank-rail li:first-child:not(.empty-rank){background:#f7efd9;border-color:#dbcba4}.rank-rail li.empty-rank{font-size:14px;min-height:130px;font-weight:600}.top-rail h2{color:#598caa}.next-rail h2{color:#b87f96}#rank-list li>b{font-size:24px;overflow-wrap:anywhere;line-height:1.25}#rank-list li>time{font-size:16px;white-space:nowrap}
@media(min-width:900px){body.is-fullscreen .exhibition-layout{grid-template-columns:clamp(175px,15vw,260px) minmax(0,1fr) clamp(175px,15vw,260px);gap:20px}body.is-fullscreen .rank-rail{padding-top:18px}body.is-fullscreen .rank-rail li>b{font-size:clamp(20px,1.45vw,29px)}body.is-fullscreen .rank-rail li>time{font-size:15px}body.is-fullscreen .rank-rail li>span{font-size:10px}body.is-fullscreen .rank-rail ol{gap:10px}}
@media(min-width:900px) and (max-height:800px){body.is-fullscreen .rank-rail{padding-top:6px}body.is-fullscreen .rank-rail ol{gap:7px;margin:12px 0}body.is-fullscreen .rank-rail li{min-height:85px;padding:10px 12px;gap:5px}body.is-fullscreen .rank-rail li>b{font-size:20px}body.is-fullscreen .rank-rail li>time{font-size:13px}.rank-rail h2{font-size:19px}}
@media(max-width:780px){.duo-note{font-size:10px;margin-top:17px}#rank-list li>b{font-size:20px}#rank-list li>time{font-size:12px}.rank-division{font-size:10px}}

/* Exhibition layout: a larger 16:9 playfield and one readable, scrollable ranking. */
.app-shell{max-width:min(1792px,calc((100dvh - 84px)*1.77778 + 32px));padding:0 16px}
.site-header{height:70px}
.brand-symbol{display:block;width:52px;height:52px;object-fit:contain;transform:none}
.site-header nav{gap:15px}
.site-header .icon-button{min-height:44px;padding:5px}
.menu-keyboard{display:flex;flex-direction:column;align-items:flex-start;gap:7px;margin-top:23px;font-size:12px;color:#738273;line-height:1.35}
.menu-keyboard span{white-space:nowrap}
.menu-keyboard b{display:inline-block;min-width:43px;color:var(--color);font-size:11px}
.menu-keyboard button{padding:4px 0;font-size:11px;text-decoration:underline;text-underline-offset:4px;color:#6d816e}
.panel-section-title{font-size:14px;margin:20px 0 12px;color:#657b67}
.keyboard-controls{display:flex;flex-direction:column;gap:17px;padding:16px;border:1px solid #e0e5d2;border-radius:12px;background:#fffdf6}
.keyboard-controls .player-control{gap:12px}
.keyboard-controls .player-control>b{font-size:12px;padding:13px 10px}
.keyboard-controls .player-control strong{font-size:13px}
.keyboard-controls .player-control strong small{font-size:11px}
.keyboard-controls .player-control p{font-size:11px;margin-top:8px;gap:5px}
.keyboard-controls kbd{font-size:11px;min-width:23px;height:25px}
.panel-secondary{display:block;border:1px solid #dbe1cd;border-radius:10px;padding:12px 15px;margin-top:18px;min-height:44px;font-size:12px;color:#7c8f74}
.rank-rail-heading{flex:0 0 auto}
.rank-rail h2{font-size:26px;line-height:1.25;margin:9px 0 7px;color:#647d69}
.rank-rail p{font-size:12px;line-height:1.5;color:#909680}
.rank-rail .rail-eyebrow{font-size:9px;letter-spacing:1.7px}
.rank-rail ol{flex:1 1 auto;min-height:0;overflow:hidden;margin:19px 0 16px;gap:9px}
.rank-rail li{flex:0 0 auto;min-height:94px;padding:12px 13px;gap:6px;justify-content:center;border-radius:13px}
.rank-rail li>b{font-size:24px;line-height:1.24;font-weight:850;letter-spacing:-.6px;overflow-wrap:anywhere}
.rank-rail li>span{font-size:10px;letter-spacing:1px;line-height:1}
.rank-rail li>time{font-size:16px;font-weight:700;letter-spacing:.2px}
.rank-rail li.empty-rank{font-size:17px;min-height:150px}
.rank-rail>small{flex:0 0 auto;font-size:11px;line-height:1.5;color:#909680}
@media(min-width:900px){
  body.is-fullscreen{overflow:hidden}
  body.is-fullscreen .app-shell{width:100%;height:100dvh;max-width:none;padding:0 12px 12px}
  body.is-fullscreen .site-header{height:64px}
  body.is-fullscreen .exhibition-layout{height:calc(100dvh - 76px);display:grid;grid-template-columns:minmax(0,1fr) clamp(220px,12.5vw,260px);gap:16px;align-items:stretch}
  body.is-fullscreen .exhibition-layout main{width:100%;max-width:calc((100dvh - 76px)*1.77778);align-self:center;justify-self:center}
  body.is-fullscreen .game-frame{width:100%;height:auto;aspect-ratio:16/9}
  body.is-fullscreen .rank-rail{display:flex;flex-direction:column;min-height:0;height:100%;max-height:none;padding:12px 0 0;overflow:hidden}
  body.is-fullscreen .rank-rail ol{margin:19px 0 16px;gap:9px}
  body.is-fullscreen .rank-rail li{min-height:94px;padding:12px 13px;gap:6px}
  body.is-fullscreen .rank-rail li>b{font-size:clamp(22px,1.3vw,26px);line-height:1.24}
  body.is-fullscreen .rank-rail li>time{font-size:16px}
  body.is-fullscreen .rank-rail li>span{font-size:10px}
  body.is-fullscreen .hero-copy{top:8%}
  body.is-fullscreen .hero-start{font-size:20px;padding:19px 23px}
  body.is-fullscreen .hero-start span{font-size:9px}
  body.is-fullscreen .hero-rules{margin-bottom:23px}
  body.is-fullscreen .hero-rules>span{font-size:11px;padding:8px 10px}
  body.is-fullscreen .hero-sub{margin-bottom:21px}
  body.is-fullscreen .menu-keyboard{font-size:14px;gap:8px;margin-top:23px}
  body.is-fullscreen .menu-keyboard b{font-size:12px;min-width:48px}
  body.is-fullscreen .menu-keyboard button{font-size:12px}
  body.is-fullscreen .compact-hud{width:54%;min-height:105px}
  body.is-fullscreen .compact-hud .room-objective{padding-right:138px}
  body.is-fullscreen .compact-hud .room-objective h2{font-size:18px}
  body.is-fullscreen .compact-hud .room-objective p{font-size:10px}
  body.is-fullscreen .compact-hud .timer-block>b{font-size:23px}
}
@media(min-width:900px) and (max-height:800px){
  body.is-fullscreen .site-header{height:58px}
  body.is-fullscreen .exhibition-layout{height:calc(100dvh - 70px)}
  body.is-fullscreen .exhibition-layout main{max-width:calc((100dvh - 70px)*1.77778)}
  body.is-fullscreen .rank-rail{padding-top:5px}
  body.is-fullscreen .rank-rail ol{margin:13px 0 10px;gap:8px}
  body.is-fullscreen .rank-rail h2{font-size:23px}
  body.is-fullscreen .hero-copy{top:6%}
  body.is-fullscreen .hero-start{font-size:16px;padding:13px 16px}
  body.is-fullscreen .hero-rules{margin-bottom:17px}
  body.is-fullscreen .hero-rules>span{font-size:9px;padding:6px 8px}
  body.is-fullscreen .hero-sub{margin-bottom:15px}
  body.is-fullscreen .menu-keyboard{font-size:11px;gap:6px;margin-top:16px}
  body.is-fullscreen .menu-keyboard b,body.is-fullscreen .menu-keyboard button{font-size:10px}
}
@media(max-width:899px){
  .app-shell{max-width:100%;padding:0 12px}
  .brand-symbol{width:43px;height:43px}
  .site-header nav{gap:4px}
  .site-header .icon-button{min-width:36px}
  .menu-keyboard{font-size:10px;gap:5px;margin-top:15px}
  .menu-keyboard b,.menu-keyboard button{font-size:10px}
}
@media(max-width:440px){
  .brand{font-size:17px;gap:5px}
  .brand-symbol{width:36px;height:40px}
  .brand small{font-size:4px;letter-spacing:.5px}
  .site-header{gap:4px}
  .site-header nav{gap:1px}
  .site-header .icon-button{min-width:31px;font-size:21px;padding:4px}
  .hero-copy{top:4%}
  .hero-copy h1{margin-top:15px;margin-bottom:14px}
  .hero-sub{margin-bottom:15px}
  .hero-rules{margin-bottom:17px}
}

/* The full top-30 list stays in place while results update in other tabs. */
.device-panel .panel-heading{position:sticky;top:-27px;z-index:2;background:#fffaf0;margin:-27px -27px 0;padding:20px 27px 16px;border-bottom:1px solid #e0e3d4}
.device-panel #close-devices{width:44px;height:44px;flex:0 0 auto}
.tilt-settings{border-top:1px solid #e0e3d4;margin-top:16px;padding-top:12px;scroll-margin-top:105px}
.tilt-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.tilt-heading h3{font-size:17px;margin:0;color:var(--color)}
.tilt-heading button{min-height:44px;padding:8px 12px;border:1px solid #d8dfcd;background:#fffdf5;border-radius:10px;font-size:13px;font-weight:700}
.tilt-control+.tilt-control{margin-top:18px}
.tilt-label{display:flex;justify-content:space-between;gap:10px;align-items:center;font-size:15px;font-weight:750}
.tilt-label output{font-size:22px;font-weight:850;color:var(--color);font-variant-numeric:tabular-nums}
.tilt-range{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:9px;margin-top:5px}
.tilt-range button{width:44px;height:44px;border:1px solid color-mix(in srgb,var(--color) 32%,white);border-radius:12px;font-size:24px;background:color-mix(in srgb,var(--color) 8%,white);color:var(--color)}
.tilt-range input{width:100%;min-width:0;height:44px;margin:0;accent-color:var(--color);cursor:pointer}
.tilt-control p{font-size:12px;line-height:1.6;margin:5px 0 0;color:#73836e}
.tilt-threshold{font-size:12px;line-height:1.6;color:#73836e;margin:16px 0 7px}
.tilt-preview{padding:10px 12px;border-radius:9px;background:color-mix(in srgb,var(--color) 8%,white);color:#506e65;font-size:13px;font-weight:700;line-height:1.6;font-variant-numeric:tabular-nums;margin:0}
.tilt-save{font-size:11px;line-height:1.6;color:#819276;margin:8px 0 0;min-height:18px}
#side-rank-list,#rank-list{overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;touch-action:pan-y;scrollbar-width:thin;scrollbar-color:#a8b797 #eeeddf;scrollbar-gutter:stable;outline-offset:2px}
#side-rank-list{padding-right:5px}
#side-rank-list:focus-visible,#rank-list:focus-visible{outline:2px solid #9dae89}
.rank-rail li,body.is-fullscreen .rank-rail li{display:grid;grid-template-columns:33px minmax(0,1fr);column-gap:9px;row-gap:7px;align-content:center}
.rank-rail li>span,body.is-fullscreen .rank-rail li>span{grid-column:1;grid-row:1/3;font-size:28px;line-height:1.1;font-weight:900;letter-spacing:-1px;color:#a28a5e;align-self:start}
.rank-rail li>b{grid-column:2;min-width:0}
.rank-rail li>time{grid-column:2}
.rank-rail li.empty-rank,body.is-fullscreen .rank-rail li.empty-rank{display:flex}
.rank-rail .rank-scroll-hint{flex:0 0 auto;font-size:12px;line-height:1.4;margin:0 0 10px;color:#718469;text-align:center}
#rank-list li>span{font-size:27px;line-height:1.15;min-width:37px;font-weight:900;letter-spacing:-.7px}
.ranking-footer{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:16px;padding-top:14px;border-top:1px solid #e1dcc9}
#rank-action-message{margin:0;font-size:12px;line-height:1.5;color:#6b8569}
.ranking-reset-link{flex:0 0 auto;min-height:48px;padding:12px 18px;border:1px solid #dcc3b9;border-radius:10px;color:#a26355;background:#fff8f1;font-size:14px;font-weight:750}
.ranking-reset-dialog{width:570px;max-height:90dvh;overflow:auto;padding:35px;border-color:#e3d6c2;text-align:center}
.ranking-reset-dialog h2{font-size:29px;margin:17px 0 15px;letter-spacing:-.8px}
.ranking-reset-dialog p{font-size:15px;line-height:1.7;color:#839078}
#ranking-reset-message{min-height:23px;color:#a45149;font-weight:700;margin:10px 0 17px}
.ranking-reset-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.ranking-reset-actions button{min-height:62px;padding:15px 10px;font-size:17px;font-weight:850;border-radius:12px}
.ranking-reset-actions .secondary{background:#f6f7ed;color:#62765d;border-color:#cad3bd}
.danger-button{background:#b26e5e;color:#fffdf8;box-shadow:0 3px 0 #955848}
@media(max-width:780px){
  #rank-list li>span{font-size:24px;min-width:30px}
  .ranking-footer{flex-direction:column;align-items:stretch;gap:10px}
  .ranking-reset-dialog{padding:25px 18px}
  .ranking-reset-dialog h2{font-size:24px}
  .ranking-reset-dialog p{font-size:13px}
  .ranking-reset-actions{grid-template-columns:1fr;gap:11px}
  .ranking-reset-actions button{min-height:57px;font-size:16px}
}

/* v7.3: exhibition-sized type, a quiet playfield, and a wider ranking. */
body{font-size:16px}
.site-header .brand{font-size:28px}
.site-header .controller-chip{min-height:46px;font-size:15px;padding:10px 15px;gap:10px}
.site-header .controller-chip b{font-size:16px}
.site-header .icon-button{font-size:25px}
.site-header .icon-button span{font-size:15px}
body .game-frame .hero-copy{top:6%}
body .game-frame .hero-copy h1{margin:14px 0 20px}
body .game-frame .hero-sub{font-size:clamp(20px,1.8cqw,30px);line-height:1.55;margin-bottom:25px;color:#657a60}
body .game-frame .hero-start{font-size:24px;min-height:64px;padding:16px 22px;justify-content:center}
body .game-frame .menu-keyboard{font-size:clamp(16px,1.3cqw,21px);gap:10px;margin-top:25px;color:#63765e}
body .game-frame .menu-keyboard b{font-size:inherit;min-width:55px}
body .game-frame .menu-keyboard button{font-size:16px;min-height:44px;padding:8px 0}
.ready-dock>p{font-size:17px;color:#566c50}
.ready-button{font-size:18px;min-height:52px;padding:12px 18px}
.ready-plus{font-size:22px}
body .hud.compact-hud{--timer-width:clamp(255px,25cqw,360px);width:auto;left:16px;right:16px;top:14px;min-height:0;padding:0;display:flex;align-items:flex-start;gap:16px;background:none;border:0;box-shadow:none}
body .hud.compact-hud .room-objective{position:relative;width:max-content;max-width:calc(100% - var(--timer-width) - 16px);padding:12px 18px 50px;border:1px solid #fffdf5;border-radius:15px;background:#fffdf2f2;box-shadow:0 4px 15px #60784412}
body .hud.compact-hud.hud-right .room-objective{margin-left:auto}
body .hud.compact-hud .room-objective>span{font-size:16px;letter-spacing:0;color:#6e8261}
body .hud.compact-hud .room-objective h2{font-size:clamp(22px,2cqw,32px);line-height:1.25;max-width:none;margin:5px 0 0;letter-spacing:-.7px}
#stage-subtitle{display:none}
body .hud.compact-hud .shared-inventory{left:18px;right:auto;bottom:10px;gap:8px;transform:none}
body .hud.compact-hud .shared-inventory>span{width:30px;height:30px;font-size:25px;border-radius:7px}
body .hud.compact-hud .shared-inventory small{display:none}
body .hud.compact-hud .timer-block{position:relative;top:auto;bottom:auto;right:auto;width:var(--timer-width);min-width:0;flex:0 0 var(--timer-width);margin-left:auto;padding:11px 58px 12px 16px;background:#fffdf2f2;border:1px solid #fffdf5;border-radius:15px;box-shadow:0 4px 15px #60784412}
body .hud.compact-hud .timer-block>small{display:block;font-size:15px;color:#79785f}
body .hud.compact-hud .timer-block>b{display:block;font-size:clamp(38px,3.5cqw,58px);line-height:1.15;letter-spacing:-1.5px;color:#87693f}
body .hud.compact-hud .timer-block>span{position:static;display:block;font-size:16px;margin-top:2px;color:#a26544}
body .hud.compact-hud .timer-block>span:empty{display:none}
body .hud.compact-hud .timer-block>button,.hud.practice-hud .timer-block>button{width:44px;height:44px;font-size:20px;right:10px;top:50%;transform:translateY(-50%)}
.room-route{display:none}
.tutorial{padding:19px 105px 22px 24px}
.tutorial>span{font-size:17px}
.tutorial h2{font-size:clamp(26px,2.6cqw,39px);margin:6px 0 10px}
.tutorial p{font-size:clamp(18px,1.6cqw,25px);line-height:1.5;color:#65785b}
.tutorial>div{display:none}
.tutorial>b{font-size:48px;right:65px;top:35%}
.hud.practice-hud{right:20px;top:36px}
.hud.practice-hud .timer-block{width:44px;height:44px}
.hud.practice-hud .timer-block>button{right:0}
.toast{font-size:clamp(18px,1.6cqw,26px);bottom:24px;padding:12px 22px}
body .game-frame .result-card{width:740px;padding:22px 30px;max-height:96%}
body .game-frame .result-card h2{font-size:34px}
body .game-frame .result-score>strong{font-size:64px}
body .game-frame .result-score>small,.result-card p,body .game-frame .result-card #result-breakdown,body .game-frame .result-card #ranking-message{font-size:16px;line-height:1.45}
body .game-frame .result-stats{margin:14px 0}
body .game-frame .result-stats b{font-size:32px}
body .game-frame .result-stats span{font-size:16px}
body .game-frame .awards{gap:18px;margin-bottom:15px}
body .game-frame .awards>div{font-size:17px}
.nickname-row{padding:12px;gap:12px}
.nickname-row>span{font-size:16px}
.nickname-row>b{font-size:22px}
.nickname-row #nickname-edit{font-size:16px;min-height:48px;padding:10px 12px}
.result-actions button{font-size:18px;min-height:52px;padding:12px 17px}
body .game-frame .result-card>small{font-size:14px}
.pause-card h2{font-size:34px}
.pause-card p{font-size:18px}
.pause-card button{font-size:20px;min-height:52px}
.pause-card .eyebrow{display:none}
.device-panel{font-size:16px}
.device-panel .panel-heading h2{font-size:27px}
.panel-intro,.support-note,.panel-section-title{font-size:16px;line-height:1.6}
.keyboard-controls .player-control>b,.keyboard-controls .player-control strong{font-size:17px}
.keyboard-controls .player-control strong small{font-size:14px}
.keyboard-controls .player-control p,.keyboard-controls kbd{font-size:15px}
.device-card h3{font-size:21px}
.device-card button,.device-card select{font-size:15px;min-height:44px}
.device-status,.device-meta,.device-error{font-size:14px;line-height:1.5}
.device-error:empty,.tilt-save:empty,#side-rank-status:empty{display:none}
.tilt-heading h3{font-size:20px}
.tilt-heading button{font-size:15px}
.tilt-label{font-size:17px}
.tilt-label output{font-size:26px}
.tilt-control p,.tilt-threshold,.tilt-preview,.tilt-save{font-size:14px}
.panel-secondary,.panel-footnote,.key-settings,.key-settings p{font-size:14px}
.ranking-dialog{width:820px}
.ranking-dialog h2{font-size:32px}
.ranking-dialog p,#rank-action-message,.ranking-reset-link{font-size:16px}
#rank-list li{gap:18px;padding:18px 12px}
#rank-list li>span{font-size:36px;min-width:46px}
#rank-list li>b{font-size:28px}
#rank-list li>time{font-size:23px}
.rank-rail h2,body.is-fullscreen .rank-rail h2{font-size:32px}
.rank-rail li,body.is-fullscreen .rank-rail li{grid-template-columns:46px minmax(0,1fr);column-gap:12px;row-gap:9px;min-height:122px;padding:17px 14px}
.rank-rail li>span,body.is-fullscreen .rank-rail li>span{font-size:38px}
.rank-rail li>b,body.is-fullscreen .rank-rail li>b{font-size:clamp(26px,1.5vw,32px);line-height:1.25}
.rank-rail li>time,body.is-fullscreen .rank-rail li>time{font-size:22px}
.rank-rail li.empty-rank,body.is-fullscreen .rank-rail li.empty-rank{font-size:21px}
.rank-rail .rank-scroll-hint,.rank-rail>small{font-size:15px}
@media(min-width:900px){
  body.is-fullscreen .site-header{height:72px}
  body.is-fullscreen .exhibition-layout{height:calc(100dvh - 84px);grid-template-columns:minmax(0,1fr) clamp(290px,17vw,360px)}
  body.is-fullscreen .exhibition-layout main{max-width:calc((100dvh - 84px)*1.77778)}
  body.is-fullscreen .rank-rail ol{margin:17px 0 13px;gap:12px}
}
@media(min-width:781px) and (max-width:1350px){
  body .game-frame .hero-copy{top:4%}
  body .game-frame .hero-copy h1{font-size:6.7cqw;margin:10px 0 14px}
  body .game-frame .hero-sub{margin-bottom:18px}
  body .game-frame .hero-start{font-size:22px;min-height:58px;padding:13px 18px}
  body .game-frame .menu-keyboard{gap:7px;margin-top:16px}
  .ready-dock>p{font-size:16px}
  .ready-button{font-size:16px;gap:7px;padding:10px 12px}
}
@media(max-width:899px){
  .site-header .brand{font-size:22px}
  .site-header nav{gap:3px}
}
@media(max-width:780px){
  .game-frame{height:660px}
  body .game-frame .hero-copy{top:4%;width:87%}
  body .game-frame .hero-copy h1{font-size:67px;margin:12px 0 18px}
  body .game-frame .hero-sub{font-size:20px;margin-bottom:22px}
  body .game-frame .hero-start{font-size:22px;min-height:58px;width:300px}
  body .game-frame .menu-keyboard{font-size:16px;gap:9px;margin-top:21px}
  .ready-dock{bottom:4%}
  .ready-dock>p{font-size:15px}
  .ready-button{font-size:15px;padding:10px 12px;gap:7px}
  body .hud.compact-hud{left:10px;right:10px;top:10px;gap:10px;flex-wrap:wrap;--timer-width:222px}
  body .hud.compact-hud .room-objective{max-width:100%;width:100%;padding:12px 14px 46px}
  body .hud.compact-hud .room-objective h2{font-size:22px}
  body .hud.compact-hud .room-objective>span{font-size:15px}
  body .hud.compact-hud .timer-block{padding:9px 57px 9px 14px}
  body .hud.compact-hud .timer-block>b{font-size:32px}
  .tutorial{left:10px;right:10px;padding:17px 62px 19px 16px}
  .tutorial>span{font-size:15px}
  .tutorial h2{font-size:24px}
  .tutorial p{font-size:17px}
  .tutorial>b{right:20px;top:auto;bottom:15px;font-size:36px}
  .hud.practice-hud{right:23px;top:24px}
  .toast{font-size:17px;bottom:24px}
  body .game-frame .result-card{padding:18px 14px}
  body .game-frame .result-card h2{font-size:28px}
  body .game-frame .result-score>strong{font-size:48px}
  body .game-frame .result-stats span{font-size:13px}
  body .game-frame .awards>div{font-size:14px}
  .nickname-row>b{font-size:20px}
  .result-actions button{font-size:17px}
  #rank-list li{gap:10px;padding:17px 5px}
  #rank-list li>span{font-size:30px;min-width:37px}
  #rank-list li>b{font-size:22px}
  #rank-list li>time{font-size:19px}
  .keyboard-controls{padding:12px}
  .keyboard-controls .player-control{gap:8px}
  .keyboard-controls .player-control p,.keyboard-controls kbd{font-size:14px}
}

.device-title strong{font-size:20px}
.device-state,.device-axes,.simulator,.simulator p,.simulator output{font-size:14px;line-height:1.5}
.device-axes [id^=axis-]{display:none}
.nickname-dialog p,.nickname-input-label,.nickname-dialog>.primary{font-size:16px}
.touch-keyboard-actions .touch-key{font-size:15px}
