*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#829fba;color:#fff;font-family:ui-rounded,-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo",sans-serif;-webkit-tap-highlight-color:transparent}body{touch-action:none;user-select:none}button{font:inherit;cursor:pointer;border:1px solid #ffffff50;color:#fff;background:#32466a26;border-radius:24px;min-height:44px;padding:9px 19px;backdrop-filter:blur(12px);transition:background .2s}button:hover{background:#ffffff30}button:focus-visible{outline:3px solid #fff;outline-offset:3px}button:disabled{opacity:.45;cursor:default}#world{position:fixed;inset:0;width:100%;height:100%;outline:none;touch-action:none}header{position:fixed;top:max(26px,env(safe-area-inset-top));left:30px;right:30px;display:flex;justify-content:space-between;align-items:center;pointer-events:none}header button{pointer-events:auto}.brand h1{font-size:17px;letter-spacing:.17em;margin:0 0 6px;font-weight:700}.brand span{font-size:11px;opacity:.72;letter-spacing:.05em}.score{position:fixed;top:34px;left:50%;transform:translateX(-50%);min-width:190px;text-align:center;pointer-events:none;text-shadow:0 2px 20px #34446644}.score>span:first-child{font-size:11px;letter-spacing:.22em;opacity:.74}.score strong{display:block;font-weight:400;font-variant-numeric:tabular-nums;font-size:77px;line-height:1.1;letter-spacing:-.05em}.goal{display:flex;align-items:center;gap:8px;justify-content:center;margin:10px 0}.goal i{display:block;background:#ffffff24;width:65px;height:3px;border-radius:9px;overflow:hidden}.goal em{display:block;height:100%;width:0;background:white;transition:width .15s}.goal span,#best{font-size:11px;opacity:.82}#feedback{position:fixed;top:25%;left:0;right:0;text-align:center;font-size:22px;font-weight:600;letter-spacing:.08em;pointer-events:none;text-shadow:0 2px 20px #57709240}#restored{position:fixed;top:calc(25% + 35px);width:100%;font-size:11px;text-align:center;opacity:.82;pointer-events:none}#toast{position:fixed;left:50%;bottom:150px;transform:translateX(-50%);max-width:90vw;white-space:nowrap;background:#213753bb;border-radius:30px;font-size:12px;padding:10px 17px;pointer-events:none}#toast:empty{display:none}footer{position:fixed;bottom:max(26px,env(safe-area-inset-bottom));width:100%;text-align:center;pointer-events:none}footer .turn{display:flex;justify-content:center;gap:10px;align-items:center;font-size:11px;letter-spacing:.02em}#room{opacity:.65}#turn{font-weight:600}#pass{font-size:10px;padding:0 12px;min-height:30px;pointer-events:auto}footer p{font-size:15px;letter-spacing:.07em;margin:15px 0 8px}footer small{font-size:10px;opacity:.65}#timer{display:block;font-size:11px;margin-top:5px}#result{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;background:linear-gradient(#2e375422,#3344658a);backdrop-filter:blur(3px);z-index:5;text-align:center;padding:24px}#result[hidden]{display:none}.result-mark{font-size:30px;color:#fff6d6}#result h2{font-size:28px;font-weight:650;margin:18px 0 8px;letter-spacing:-.02em}.resultScore{margin:2px 0 10px}.resultScore strong{font-size:86px;font-weight:350;line-height:1.2}.resultScore span{font-size:16px;margin-left:8px;opacity:.75}#result p{font-size:13px;opacity:.85;margin:10px 0 20px}.details{display:flex;gap:24px;font-size:11px;opacity:.8;margin-bottom:32px}.resultButtons{display:flex;gap:10px}#continue{background:#faf4e6;color:#3c4961;border-color:transparent;font-weight:700}#retry{background:#ffffff18}#saveStatus{font-size:10px;opacity:.65;margin-top:23px}#connection{position:fixed;top:0;width:100%;background:#1d3046cc;text-align:center;padding:5px;font-size:12px;z-index:8}[hidden]{display:none!important}@media(max-width:600px){header{top:max(20px,env(safe-area-inset-top));left:20px;right:20px}.brand h1{font-size:13px}.brand span{display:none}header button{font-size:12px;padding:8px 14px;min-height:38px}.score{top:75px}.score strong{font-size:70px}.score>span:first-child{font-size:10px}.goal{margin:7px 0}#feedback{top:29%;font-size:18px}#restored{top:calc(29% + 29px)}footer{bottom:max(24px,env(safe-area-inset-bottom))}footer p{font-size:13px}#result h2{font-size:25px}}@media(max-height:550px){header{top:15px}.brand span{display:none}.score{top:12px}.score strong{font-size:44px}.score>span:first-child{display:none}.goal{margin:5px}.score #best{font-size:10px}#feedback{top:31%;font-size:15px}#restored{top:39%}footer{bottom:14px}footer p{margin:6px;font-size:12px}footer small{display:none}#result h2{font-size:23px;margin:6px}.resultScore strong{font-size:52px}#result p{margin:2px 0 14px}.details{margin-bottom:18px}.result-mark{display:none}}
/* Preserve the built tower as the result, with clear text at its edges. */
.resultMode .score,.resultMode #feedback,.resultMode #restored,.resultMode footer{visibility:hidden}
#result{backdrop-filter:none;background:linear-gradient(#15283933,transparent 38%,#1d2d456b);justify-content:flex-start;padding-top:95px;pointer-events:none}
#result .result-mark{display:none}#result h2{margin:14px 0 4px;font-size:25px;text-shadow:0 2px 16px #20334699}
#result .resultScore{margin:0;text-shadow:0 2px 16px #20334666}#result .resultScore strong{font-size:74px}
#result>p{position:absolute;bottom:171px;left:10px;right:10px;margin:0;font-size:13px;text-shadow:0 1px 10px #213854cc}
#result .details{position:absolute;bottom:139px;margin:0;gap:23px;font-size:11px}
#result .resultButtons{position:absolute;bottom:66px;pointer-events:auto}#result #saveStatus{position:absolute;bottom:37px;margin:0}
@media(max-width:600px){#result{padding-top:101px}#result h2{font-size:22px}#result .resultScore strong{font-size:67px}#result>p{bottom:180px;font-size:12px}#result .details{bottom:150px;font-size:10px}#result .resultButtons{bottom:81px}#result #saveStatus{bottom:52px}}
@media(max-height:550px){#result{padding-top:30px}#result h2{font-size:19px;margin:10px 0 0}#result .resultScore strong{font-size:41px}#result>p{bottom:96px;font-size:11px}#result .details{display:none}#result .resultButtons{bottom:35px}#result #saveStatus{bottom:14px}}
