:root{font-family:ui-rounded,'Arial Rounded MT Bold',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:#0a0a0b;background:#f6f3ed;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button,a,input,label,model-viewer{-webkit-tap-highlight-color:transparent}button{color:inherit;cursor:pointer}button:disabled{cursor:default}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #7750b4;outline-offset:4px}[hidden]{display:none!important}
.game{--rotate-lift:clamp(24px,5svh,48px);--rotate-gap:18px;width:min(100%,640px);margin:auto;padding:20px 24px max(16px,env(safe-area-inset-bottom));min-height:100svh;display:flex;flex-direction:column}.game:not(.is-solved){height:100svh;overflow:hidden}.round-progress{font-size:13px;color:#79757d;text-align:center;margin:0 0 10px;font-weight:600;flex-shrink:0}h1{font-size:clamp(24px,5.7vw,30px);font-weight:750;line-height:1.18;letter-spacing:-.8px;margin:0 0 8px;text-align:center;flex-shrink:0}h1:focus,h2:focus{outline:none}.objects{position:relative;flex:1;min-height:100px;margin:0}.model-wrap{position:absolute;inset:0 0 var(--rotate-lift);isolation:isolate}model-viewer,iframe{position:absolute;inset:0;display:block;width:100%;height:100%;border:0;background:transparent}model-viewer{--progress-bar-color:#9371cb;--progress-bar-height:2px;--poster-color:transparent;touch-action:none;cursor:grab}model-viewer:active{cursor:grabbing}model-viewer::part(default-progress-bar){display:none}.poster{width:100%;height:100%;object-fit:contain;pointer-events:none}.load-state{position:absolute;bottom:8px;left:50%;transform:translateX(-50%);font-size:12px;color:#79757d}.retry{min-height:44px;border:1px solid;border-radius:30px;background:#f6f3ed;padding:0 14px}.rotate-hint{flex-shrink:0;margin:calc(2px - var(--rotate-lift)) 0 calc(var(--rotate-gap) + var(--rotate-lift));color:#79757d;font-size:12px;font-weight:550;text-align:center}
#answer-area{flex-shrink:0;margin-top:auto}fieldset{border:0;padding:0;margin:0}.countries{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.country{position:relative;display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:50px;padding:11px 16px;border:1.5px solid;border-radius:32px;cursor:pointer;font-size:16px;font-weight:600}.country input{position:absolute;opacity:0;inset:0;width:100%;height:100%;margin:0;cursor:pointer}.country:has(input:checked){background:#c8a9fc}.country:has(input:focus-visible){outline:3px solid #7750b4;outline-offset:3px}.radio-mark{width:18px;height:18px;border:1.5px solid;border-radius:50%;flex-shrink:0}.country:has(input:checked) .radio-mark{border:6px solid #0a0a0b;background:#fff}.country.eliminated{background:#eae6df;border-color:#d1cbc2;color:#857e74;cursor:default}.country.eliminated>span:first-of-type{text-decoration:line-through}.country.eliminated input{cursor:default}.country.eliminated .radio-mark{border:0;position:relative}.country.eliminated .radio-mark::after{content:'×';position:absolute;inset:0;text-align:center;font-size:22px;line-height:18px}.primary{width:100%;min-height:50px;background:#c8a9fc;border:1.5px solid;border-radius:30px;font-size:17px;font-weight:650;padding:12px 18px}.primary:disabled{background:#e7e4de;color:#8d8b86;border-color:#d2cfc9}.answer-actions{display:grid;grid-template-columns:minmax(0,1fr) 88px;gap:10px;margin-top:12px}.hint-button{min-height:50px;border:1.5px solid;border-radius:30px;background:transparent;padding:10px 16px;font-size:16px;font-weight:650}.guess-toast{position:fixed;z-index:20;left:50%;bottom:max(88px,calc(env(safe-area-inset-bottom) + 76px));transform:translateX(-50%);width:max-content;max-width:calc(100% - 32px);margin:0;padding:13px 18px;border-radius:30px;background:#0a0a0b;color:#fff;font-size:16px;font-weight:650;text-align:center;box-shadow:0 8px 24px #17131a26;pointer-events:none}
.game.is-solved{--rotate-lift:20px}.game.is-solved .objects{flex:0 0 auto;height:clamp(190px,34svh,340px)}#result{margin:0;flex-shrink:0}#result-title{font-size:23px;line-height:1.2;margin:0 0 8px;letter-spacing:-.4px}.object-date{font-size:14px;font-weight:600;color:#5a555e;margin:0 0 12px}#result-description{font-size:16px;line-height:1.5;margin:0 0 14px}a{color:inherit;text-underline-offset:4px}#result-source{font-size:14px}.fine-print{font-size:12px;color:#666;line-height:1.5;margin:10px 0 18px}#next-round{margin-top:2px}#summary{text-align:center;margin:auto 0;width:100%}.medal{width:clamp(140px,24svh,180px);height:clamp(182px,31svh,234px);object-fit:contain}#summary h2{font-size:28px;margin:14px 0 8px}#summary p{font-size:17px;line-height:1.5}.score-details{color:#666}#replay{margin-top:20px}.is-finished{height:100svh}
dialog{width:min(480px,calc(100% - 24px));max-height:calc(100dvh - 24px);border:1.5px solid;border-radius:24px;padding:20px;background:#f6f3ed;color:#0a0a0b;overscroll-behavior:contain}dialog::backdrop{background:#17131a70;backdrop-filter:blur(3px)}body:has(dialog[open]){overflow:hidden}.dialog-header{display:flex;justify-content:flex-end}.icon-button{width:44px;height:44px;border:1px solid;border-radius:50%;background:transparent;font-size:20px}.hint-copy{font-size:19px;line-height:1.5;margin:12px 0 8px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:360px){.game{padding:14px 16px max(12px,env(safe-area-inset-bottom))}.country{font-size:14px;padding:10px 12px;min-height:48px}.round-progress{margin-bottom:8px}.game{--rotate-gap:12px}.answer-actions{margin-top:10px}}
@media(max-height:580px){.game{padding-top:10px}.round-progress{margin-bottom:5px}h1{font-size:24px}.game{--rotate-gap:8px}.country{min-height:44px}.primary,.hint-button{min-height:46px}}
/* At large text sizes or very short landscape heights, preserve access to every control. */
@media(max-height:430px){.game:not(.is-solved){height:auto;min-height:100svh;overflow:visible}.objects{flex:none;height:160px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
