@font-face{font-family:DM;src:url('../play-lab/fonts/dm-sans-700.ttf');font-weight:700;font-display:swap}:root{--navy:#1a365d;--teal:#319795;--orange:#ed8936;font-family:DM,'Hiragino Kaku Gothic ProN',system-ui,sans-serif;color:var(--navy);background:#f4f2ec}*{box-sizing:border-box}body{margin:0;overflow:hidden}button,a{-webkit-tap-highlight-color:transparent;font:inherit;color:inherit}button{cursor:pointer;border:0}a{text-decoration:none}button:focus-visible,a:focus-visible{outline:3px solid var(--orange);outline-offset:3px}[hidden]{display:none!important}.app{height:100svh;display:flex;flex-direction:column}header{height:52px;padding:0 30px;background:var(--navy);color:white;display:flex;justify-content:space-between;align-items:center;flex-shrink:0}header>a{display:flex;align-items:center;gap:20px}header img{width:125px}header span{font-size:9px;letter-spacing:2px;border-left:1px solid #ffffff55;padding-left:20px}nav{display:flex;align-items:center;gap:20px;font-size:11px}nav button{color:white;background:none;min-width:32px;min-height:40px}.hud{padding:14px 30px 10px;display:flex;align-items:center;justify-content:space-between;flex-shrink:0}.hud p{font-size:9px;letter-spacing:2px;margin:0 0 4px;color:var(--teal)}h1{font-size:27px;margin:0;letter-spacing:-1px}h1 span{color:var(--orange)}.numbers{display:flex;gap:30px}.numbers>div{display:grid;gap:4px}.numbers small{font-size:9px;letter-spacing:1px;color:#748392}.numbers b{font-size:20px;font-variant-numeric:tabular-nums}main{position:relative;flex:1;min-height:0;margin:0 16px;overflow:hidden;border:1px solid #d4dfdf;border-radius:16px;background:radial-gradient(ellipse at 50% 40%,#e8f0ec,#bed4d3)}canvas{display:block;width:100%;height:100%;touch-action:none;outline:none}.room-label{position:absolute;left:22px;top:18px;display:grid;gap:6px;pointer-events:none}.room-label>span{font-size:15px;font-weight:bold}.room-label small{font-size:11px;color:#597575}.toast{position:absolute;bottom:16px;left:50%;transform:translateX(-50%);border-radius:30px;padding:10px 18px;background:#1a365def;color:white;text-align:center;font-size:12px;white-space:nowrap;pointer-events:none}.legend{position:absolute;right:18px;top:20px;display:grid;gap:6px;pointer-events:none;font-size:10px}.legend span:nth-child(1){color:#de7322}.legend span:nth-child(2){color:#268e88}.legend span:nth-child(3){color:#487d91}.legend span:nth-child(4){color:#6d888e}.power{position:absolute;bottom:64px;left:50%;transform:translateX(-50%);width:180px;height:7px;background:#ffffffb0;border-radius:20px;pointer-events:none}.power i{height:100%;display:block;background:var(--orange);border-radius:20px;width:0}.power span{display:block;text-align:center;font-size:10px;margin-top:7px;color:var(--navy)}footer{display:flex;align-items:center;justify-content:space-between;padding:4px 24px;min-height:42px;font-size:10px;flex-shrink:0;color:#647a80}footer button{min-height:34px;background:none;font-size:11px}.cover{position:absolute;inset:0;display:flex;align-items:center;background:linear-gradient(90deg,#f4f2ecff 0%,#f4f2ecfa 35%,#f4f2ec55 63%,#f4f2ec00 100%);padding:35px clamp(24px,7vw,100px)}.cover-copy{max-width:450px}.eyebrow{font-size:12px;letter-spacing:2px;color:var(--teal);font-weight:bold}h2{margin:20px 0;font-size:clamp(50px,7vw,95px);line-height:1.1;letter-spacing:-4px}h2 em{color:var(--orange);font-style:normal}.intro{font-size:14px;line-height:1.9}.primary{width:100%;min-height:54px;background:var(--navy);color:white;display:flex;align-items:center;justify-content:space-between;border-radius:9px;padding:15px 20px;font-size:16px;font-weight:bold;margin-top:26px}.primary span{color:#8fd6c8}.cover-copy>small{display:block;margin-top:12px;color:#788986;font-size:10px}.cover-tag{position:absolute;right:7%;bottom:10%;font-size:20px;line-height:1.5;transform:rotate(-7deg);color:#406868;font-weight:bold}dialog{border:0;border-radius:18px;width:min(92vw,420px);padding:32px;color:var(--navy);background:#f7fafc;box-shadow:0 30px 120px #142a5055}dialog::backdrop{background:#142a5099;backdrop-filter:blur(5px)}dialog h2{font-size:34px;letter-spacing:-1px;line-height:1.3;margin:15px 0}.close{position:absolute;right:8px;top:7px;background:none;font-size:25px;width:40px;height:40px}dialog p{font-size:13px;line-height:1.9}.score-big{font-size:64px;color:var(--orange);letter-spacing:-3px}.score-big small{font-size:15px;letter-spacing:0;color:#82928c}.secondary{margin-top:12px;background:none;width:100%;padding:10px;font-size:12px}.error{position:absolute;inset:0;display:grid;place-items:center;background:white;padding:30px;z-index:20;font-size:14px}
@media(max-width:600px){header{height:46px;padding:0 15px}header img{width:105px}header span{display:none}nav{gap:9px}.hud{padding:10px 15px 8px}h1{font-size:21px}.hud p{font-size:8px}.numbers{gap:15px}.numbers b{font-size:14px}.numbers small{font-size:8px}main{margin:0 6px;border-radius:12px}.room-label{left:12px;top:12px;gap:4px}.room-label>span{font-size:12px}.room-label small{font-size:10px}.legend{right:12px;top:12px;gap:3px;font-size:9px}.toast{font-size:10px;bottom:11px;max-width:94%;white-space:normal;width:max-content;padding:9px 13px}.cover{align-items:flex-end;padding:24px;background:linear-gradient(0deg,#f4f2ecff 0%,#f4f2ecf5 50%,#f4f2ec00 94%)}.cover-copy{width:100%}.cover h2{font-size:53px;margin:9px 0;letter-spacing:-3px}.eyebrow{font-size:10px;margin:6px 0}.intro{font-size:12px;line-height:1.7;margin:10px 0}.primary{margin-top:16px;min-height:49px}.cover-copy>small{font-size:9px;margin-top:8px}.cover-tag{right:17px;top:24px;bottom:auto;font-size:15px}.numbers>div:last-child{display:none}footer{padding:3px 12px;min-height:38px;font-size:9px}footer button{font-size:10px}}
@media(max-height:570px){header{height:40px}.hud{padding:5px 15px}h1{font-size:19px}.hud p{display:none}.cover{padding:15px 30px}.cover h2{font-size:40px;margin:8px 0}.cover .intro{margin:5px 0;font-size:11px}.cover .primary{margin-top:10px;min-height:42px}.cover-copy{max-width:310px}.cover-copy>small{margin-top:5px}.cover-tag{display:none}footer{min-height:30px}.toast{bottom:6px;padding:7px 12px}}

.app[data-started="false"] .room-label,.app[data-started="false"] .legend,.app[data-started="false"] #retry{visibility:hidden}
