@import url('./tokens.css');
*{box-sizing:border-box} [hidden]{display:none!important} html{background:var(--bg);color-scheme:dark} body{margin:0;color:var(--text);font-family:Inter,"Segoe UI",Arial,sans-serif;-webkit-font-smoothing:antialiased}button,select{font:inherit}button{color:inherit;cursor:pointer}button:disabled{cursor:default}button,select{-webkit-tap-highlight-color:transparent}button:focus-visible,select:focus-visible{outline:2px solid var(--accent);outline-offset:5px}button{touch-action:manipulation}button:not(.drag-handle){transition:background .16s,color .16s,transform .16s}button:active:not(:disabled){transform:translateY(1px)}::selection{background:#9ce3c7;color:#10191c}
#app{max-width:1360px;margin:auto;padding:0 clamp(18px,5vw,72px);min-height:100dvh;display:flex;flex-direction:column}.header{height:100px;display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid var(--line)}.brand{padding:0;display:flex;align-items:center;gap:12px;border:0;background:none;font-size:25px;font-weight:750;letter-spacing:-1px}.brand-light{font-weight:400}.brand-dot{color:var(--accent)}.brand-mark{display:flex;gap:3px;height:21px;align-items:flex-end}.brand-mark i{width:4px;background:var(--accent);height:45%;border-radius:1px}.brand-mark i:nth-child(2){height:72%}.brand-mark i:nth-child(3){height:100%}.header-right{display:flex;align-items:center;gap:32px}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:650}.language{display:flex;gap:9px;align-items:center;color:var(--muted)}select{background:transparent;border:0;color:var(--text);padding:10px 3px;font-size:12px;cursor:pointer}select option{background:var(--surface)}main{flex:1;display:flex;flex-direction:column}.screen{animation:arrive .3s ease}.home-screen{display:grid;grid-template-columns:1fr 1fr;column-gap:7%;padding-top:58px;align-items:center}.eyebrow{color:var(--muted);display:block}.hero-copy .eyebrow{display:flex;align-items:center;gap:9px}.status-dot{width:6px;height:6px;border-radius:50%;background:var(--accent);box-shadow:0 0 13px #9ce3c740}.hero-copy h1{font-size:clamp(86px,8.7vw,128px);line-height:.88;letter-spacing:-8px;margin:30px 0;font-weight:750}.outline-type{color:transparent;-webkit-text-stroke:1.5px #d7e2df}.accent{color:var(--accent)}.hero-copy h2{font-size:22px;font-weight:500;letter-spacing:-.7px;margin:25px 0 12px}.intro{max-width:370px;font-size:14px;line-height:1.8;color:var(--muted);margin-bottom:30px}.primary{display:inline-flex;align-items:center;justify-content:space-between;gap:28px;min-height:52px;border:1px solid var(--accent);background:var(--accent);color:#142c26;font-weight:650;border-radius:9px;padding:13px 24px;font-size:14px}.primary:hover{background:#b9efd8}.hero-play{min-width:265px}.hero-play>span:last-child{font-size:23px}.secondary-actions{display:flex;align-items:center;gap:22px;margin:22px 0 0}.text-button{border:0;background:none;padding:8px 0;font-size:13px}.text-button:hover{color:var(--accent)}.divider{height:13px;border-left:1px solid var(--line)}.muted{color:var(--muted)}.small{font-size:12px;line-height:1.65}.hero-art{height:465px;position:relative;overflow:hidden;border:1px solid var(--line);background:radial-gradient(ellipse at 50% 55%,#22333450,transparent 75%);border-radius:180px 180px 14px 14px}.art-grid{position:absolute;inset:68px 25px 69px 45px;background:linear-gradient(#8ea4a60b 1px,transparent 1px),linear-gradient(90deg,#8ea4a60b 1px,transparent 1px);background-size:25px 25px;mask-image:linear-gradient(transparent,black 25%)}.art-top{position:absolute;top:27px;left:65px;right:65px;display:flex;justify-content:space-between;font-size:9px;letter-spacing:1.5px;color:var(--muted)}.art-bottom{position:absolute;bottom:26px;left:27px;right:27px;display:flex;justify-content:space-between;font-size:8px;letter-spacing:1.3px;color:var(--muted)}.art-ruler{position:absolute;left:25px;top:115px;bottom:70px;display:flex;flex-direction:column;justify-content:space-between;color:#748789;font:9px monospace}.art-arch{position:absolute;bottom:70px;left:19%;height:190px;width:120px;border-radius:65px 65px 0 0;border:30px solid #edc785;border-bottom:0;filter:drop-shadow(0 15px 25px #0004)}.art-obelisk{position:absolute;bottom:70px;right:20%;width:100px;height:265px;background:linear-gradient(90deg,#a2d7cb 50%,#8fc3b7 50%);clip-path:polygon(50% 0,78% 18%,100% 100%,0 100%,22% 18%)}.art-diamond{position:absolute;bottom:70px;left:44%;width:90px;height:105px;clip-path:polygon(50% 0,100% 40%,50% 100%,0 40%);background:linear-gradient(90deg,#b3acdb 50%,#9c95c7 50%);filter:drop-shadow(0 0 20px #000)}.art-base{position:absolute;bottom:69px;left:25px;right:25px;height:1px;background:#66838370}.art-handle{position:absolute;right:20%;top:121px;width:11px;height:11px;border:3px solid var(--bg);border-radius:50%;background:var(--accent);box-shadow:0 0 0 1px var(--accent),0 0 0 8px #9ce3c715}.art-question{position:absolute;left:45%;top:97px;transform:rotate(-12deg);color:#b7ccc8;font-size:23px;font-weight:300}.app-footer{display:flex;justify-content:space-between;color:#617679;font-size:9px;letter-spacing:1px;padding:22px 0}.footer-dot{margin:0 8px;color:var(--accent)}.narrow-screen{width:min(100%,650px);margin:45px auto}.narrow-screen h1{font-size:38px;font-weight:550;letter-spacing:-1.5px;margin:15px 0}.back{margin-bottom:32px}.mode-options{display:grid;gap:12px;margin:28px 0}.mode-card{display:flex;align-items:center;gap:18px;text-align:left;padding:25px;background:var(--surface);border:1px solid var(--line);border-radius:12px}.mode-card:not(:disabled):hover{border-color:var(--accent);background:#203632}.mode-card>.accent,.mode-card small{margin-left:auto}.mode-icon{color:var(--accent);font-size:24px}.disabled{opacity:.4}.mode-card small{font-size:11px}.how-card{padding:22px;border:1px solid var(--line);border-radius:12px;background:#15212460}.how-card p{line-height:1.8;font-size:13px}.stat-cards{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin:35px 0 20px}.stat-card{padding:25px;background:var(--surface);border:1px solid var(--line);border-radius:12px;display:flex;flex-direction:column;gap:24px}.stat-card span{font-size:12px;color:var(--muted)}.stat-card strong{font-size:40px;letter-spacing:-1px;font-weight:450;color:var(--accent);font-variant-numeric:tabular-nums}.center-screen{text-align:center;margin:auto;padding:70px 0}.center-screen h1{font-size:30px}.center-screen .primary{margin-top:20px}.spinner{display:inline-block;width:30px;height:30px;border:2px solid var(--line);border-top-color:var(--accent);border-radius:50%;animation:spin .8s linear infinite}.exit-symbol{color:var(--accent);font-size:60px}
.game-screen{width:100%;max-width:1100px;margin:20px auto 0}.game-top{display:flex;align-items:center;justify-content:space-between;gap:15px}.round-label{font-size:12px;color:var(--muted)}.round-label b{color:var(--text);margin-left:8px;font-weight:500}.timer{font-variant-numeric:tabular-nums;display:flex;align-items:center;gap:8px;font-size:20px;font-weight:500}.timer small{font-size:11px;color:var(--muted)}.timer.urgent{color:#f3b398}.time-track{margin:12px 0 22px;height:2px;background:var(--line)}#time-fill{height:100%;background:var(--accent);transform-origin:left}.board-wrap{position:relative;width:100%;height:min(45dvh,var(--board-max,450px));min-height:125px;border:1px solid var(--line);border-radius:12px;background:radial-gradient(ellipse at 50% 100%,#1b303145,transparent),#121f22}canvas{display:block;width:100%;height:100%}.drag-handle{position:absolute;width:44px;height:44px;transform:translate(-50%,-50%)!important;border:0;background:none;touch-action:none;user-select:none;z-index:2;cursor:default;display:grid;place-items:center;padding:0}.drag-handle:before{content:"";position:absolute;inset:10px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 5px #9ce3c717,0 0 0 1px #0b181c}.drag-handle span{z-index:1;font-size:14px;color:#132b24}.drag-handle:focus-visible{border-radius:50%;outline-offset:0}.drag-handle:active:before{box-shadow:0 0 0 9px #9ce3c720}.game-bottom{display:flex;align-items:center;justify-content:space-between;gap:20px;padding-top:17px;border-top:1px solid var(--line)}.zoom-controls{display:flex;align-items:center;gap:9px}.square-button{background:var(--surface);border:1px solid var(--line);width:44px;height:44px;border-radius:8px;font-size:23px}.square-button:hover{background:#253a3b}.square-button:disabled{opacity:.25}.zoom-readout{width:130px;border:0;background:none;text-align:center;display:flex;flex-direction:column;gap:4px;font-size:10px;color:var(--muted)}.zoom-readout strong{font-size:14px;font-weight:500;color:var(--text)}.submit{min-width:235px}.game-hint{margin:13px 0 0}.result-panel{display:flex;align-items:center;gap:25px;border-top:1px solid var(--line);padding:18px 0 0}.result-score strong{display:block;color:var(--accent);font-weight:450;font-size:38px;letter-spacing:-1.5px;margin-top:5px;font-variant-numeric:tabular-nums}.result-details{font-size:12px;color:var(--muted);flex:1}.result-details p{margin:6px 0}.result-details b{font-weight:500;color:var(--text)}.result-details small{font-size:10px}.result-panel .primary{flex-shrink:0}.pause-overlay{position:absolute;inset:0;z-index:5;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#102024eb;border-radius:12px}.pause-overlay h2{margin:10px}.pause-overlay p{color:var(--muted);font-size:13px}.pause-symbol{font-size:35px;color:var(--accent)}.save-error{position:fixed;bottom:15px;left:15px;right:15px;max-width:900px;margin:auto;z-index:30;background:#543322;border:1px solid #ae7c54;border-radius:12px;padding:15px;display:flex;gap:15px;align-items:center;font-size:12px}.save-error button{background:#f6c577;color:#291e16;padding:10px;border:0;border-radius:7px;flex-shrink:0}
@keyframes spin{to{transform:rotate(360deg)}}@keyframes arrive{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:760px){#app{padding:0 22px}.header{height:76px}.home-screen{padding-top:35px;gap:25px;grid-template-columns:1fr 1fr}.hero-copy h1{font-size:87px;letter-spacing:-5px}.hero-copy h2{font-size:19px}.hero-art{height:370px}.art-arch{left:16%;width:85px;height:145px;border-width:23px}.art-obelisk{right:14%;width:75px;height:205px}.art-diamond{left:43%;width:65px;height:80px}.art-top{left:35px;right:35px;font-size:7px}.art-handle{right:14%;top:88px}.art-question{top:72px}.art-bottom{font-size:6px}.hero-play{min-width:220px}.result-panel{gap:15px}.result-score strong{font-size:32px}.result-panel .primary{padding:13px 18px;gap:15px}.result-details small{display:none}}
@media(max-width:580px){.header{height:68px}.brand{font-size:23px}.home-screen{grid-template-columns:1fr;padding-top:30px;gap:0}.hero-copy{position:relative;z-index:1}.hero-copy h1{font-size:96px;margin:26px 0;letter-spacing:-6px}.hero-copy h2{font-size:20px;max-width:240px}.hero-copy .intro{max-width:290px;font-size:13px}.hero-art{position:absolute;width:170px;height:260px;right:22px;top:128px;opacity:.65;z-index:0;mask-image:linear-gradient(to right,transparent,black 25%)}.art-arch{left:20%;width:58px;height:95px;border-width:17px}.art-obelisk{width:48px;height:155px;right:13%}.art-diamond{width:45px;height:61px;left:49%}.art-top,.art-ruler,.art-question,.art-bottom{display:none}.art-handle{top:25px;right:14%}.art-base{bottom:69px}.hero-play{width:100%}.secondary-actions{justify-content:center}.app-footer{font-size:8px;padding:18px 0}.app-footer>span:last-child{max-width:50%;text-align:right}.narrow-screen{margin:25px auto}.narrow-screen h1{font-size:30px}.stat-cards{gap:10px}.stat-card{padding:18px 14px}.stat-card strong{font-size:29px}.game-screen{margin-top:16px}.time-track{margin:10px 0 17px}.game-bottom{flex-direction:column;gap:15px;padding-top:12px}.zoom-controls{justify-content:center}.submit{width:100%}.game-hint{text-align:center;font-size:10px}.result-panel{flex-wrap:wrap;gap:12px}.result-score{min-width:110px}.result-details{min-width:130px}.result-panel .primary{width:100%}.board-wrap{min-height:115px}.how-card{padding:17px}.mode-card{padding:20px}.save-error{flex-direction:column;align-items:stretch}}
@media(max-height:540px) and (orientation:landscape){#app{padding:0 24px}.header{height:48px}.brand{font-size:20px}.app-footer{display:none}.game-screen{margin-top:8px}.game-top{height:28px}.time-track{margin:6px 0 8px}.board-wrap{height:calc(100dvh - 257px);min-height:100px}.game-bottom{padding-top:7px;gap:10px;flex-direction:row}.square-button{height:36px;width:40px}.primary{min-height:40px;padding:9px 20px}.game-hint{display:none}.result-panel{padding-top:7px;flex-wrap:nowrap}.result-score strong{font-size:26px}.result-panel .primary{width:auto}.result-score .eyebrow{font-size:8px}.result-details{font-size:10px}.home-screen{padding-top:20px}.hero-copy h1{font-size:70px;margin:15px 0}.hero-copy h2{margin:12px 0;font-size:17px}.intro{margin:10px 0 15px}.hero-art{height:280px}.narrow-screen{margin:20px auto}.back{margin-bottom:10px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}

/* The in-game toolbar combines navigation, round state and language. */
body[data-screen="game"] .header{height:54px;flex-shrink:0;gap:22px}

body[data-screen="game"] .header-right{gap:0;flex-shrink:0}
body[data-screen="game"] .brand{font-size:22px;flex-shrink:0}
body[data-screen="game"] .game-top{flex:1;min-width:0;gap:16px;margin:0;height:auto}
body[data-screen="game"] .game-top #menu{white-space:nowrap}
body[data-screen="game"] .round-label{white-space:nowrap}
body[data-screen="game"] .timer{min-width:66px;font-size:18px}
body[data-screen="game"] .game-screen{margin:0 auto;animation:none}
body[data-screen="game"] .time-track{margin:4px 0 5px}
.object-headings{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0;margin:0 0 6px}
.object-heading{--size-width:3ch;min-width:0;display:grid;grid-template-columns:var(--size-width) minmax(0,1fr) var(--size-width);gap:6px;align-items:center;padding:3px 10px}
.object-heading+.object-heading{border-left:1px solid var(--line)}
.object-size{grid-column:3;grid-row:1;justify-self:end;display:block;width:max-content;white-space:nowrap;text-align:right;color:#f2cd85;font-size:14px;font-weight:650;line-height:1.25;font-variant-numeric:tabular-nums}
.object-heading h2{grid-column:2;grid-row:1;min-width:0;font-size:16px;line-height:1.25;font-weight:500;letter-spacing:0;text-align:center;overflow-wrap:anywhere;margin:0}
body[data-screen="game"] .board-wrap{height:var(--field-height,50dvh);min-height:0;max-height:none;touch-action:none;user-select:none}
body[data-screen="game"] .game-bottom{margin-top:10px}
body[data-screen="game"] .result-panel{margin-top:10px}
.drag-handle,.drag-handle:active,.drag-handle span{cursor:default}
@media(max-width:580px){
  body[data-screen="game"] .header{height:46px;gap:8px}
  body[data-screen="game"] .brand{font-size:17px;letter-spacing:-.7px;gap:0}
  body[data-screen="game"] .brand-mark{display:none}
  body[data-screen="game"] .game-top{gap:6px}
  body[data-screen="game"] .game-top #menu{min-width:28px;min-height:36px;font-size:17px}
  body[data-screen="game"] #menu>span,body[data-screen="game"] .round-label>span{display:none}
  body[data-screen="game"] .round-label b{margin:0;font-size:11px}
  body[data-screen="game"] .timer{font-size:16px;gap:3px;min-width:53px}
  body[data-screen="game"] .timer small{font-size:9px}
  body[data-screen="game"] 
  body[data-screen="game"] .language{gap:0}
  body[data-screen="game"] .language>span{display:none}
  body[data-screen="game"] .language select{font-size:10px;max-width:78px;padding:9px 0}
  .object-heading{padding:3px 8px;gap:4px}
  .object-size{font-size:12px}
  .object-heading h2{font-size:13px;line-height:1.25}
}
@media(max-height:540px) and (orientation:landscape){
  body[data-screen="game"] .header{height:42px}
  body[data-screen="game"] .time-track{margin:3px 0}
  .object-size{font-size:12px}
  .object-heading h2{font-size:13px;line-height:16px}
  .object-headings{margin-bottom:4px}
  body[data-screen="game"] .game-bottom,body[data-screen="game"] .result-panel{margin-top:6px}
}

/* Topic selection */
.icon-definitions{position:absolute;overflow:hidden;pointer-events:none}
.settings-screen{max-width:650px}
.settings-screen h1{margin-bottom:10px}
.genre-panel{margin:26px 0 20px;border:1px solid var(--line);border-radius:14px;background:var(--surface);overflow:clip}
.genre-panel summary{display:flex;align-items:center;gap:12px;list-style:none;cursor:pointer;padding:20px;font-size:16px;font-weight:550}
.genre-panel summary::-webkit-details-marker{display:none}
.genre-summary{margin-left:auto;font-size:11px;font-weight:400;color:var(--muted)}
.disclosure-arrow{color:var(--accent);transition:transform .2s}
.genre-panel[open] .disclosure-arrow{transform:rotate(180deg)}
.genre-panel-body{padding:0 20px 18px;border-top:1px solid var(--line)}
.genre-actions{display:flex;justify-content:space-between;gap:16px;margin:10px 0 13px}
.genre-actions button{font-size:12px;color:var(--accent)}
.genre-cloud{display:flex;flex-wrap:wrap;gap:10px}
.genre-chip{display:inline-flex;align-items:center;gap:8px;border:1px solid #a8e7cc29;border-radius:24px;padding:10px 13px;background:#10191c60;font-size:13px}
.genre-chip:before{content:"";width:14px;height:14px;display:grid;place-items:center;border:1px solid #8da19f70;border-radius:50%;font-size:10px}
.genre-chip[aria-pressed="true"]{border-color:#a8e7cc80;background:#a8e7cc16;color:#c8f5e2}
.genre-chip[aria-pressed="true"]:before{content:"✓";background:var(--accent);border-color:var(--accent);color:#142c26}
.genre-chip small{font-size:10px;color:var(--muted)}
.genre-panel-body>p{margin:16px 0 0;font-size:11px}
.pairing-option{display:flex;align-items:center;gap:12px;position:relative;margin:24px 0}
.check-label{display:flex;align-items:center;gap:11px;font-size:14px;cursor:pointer;min-height:36px}
.check-label input{width:18px;height:18px;accent-color:var(--accent);margin:0}
.help-wrap{position:relative}
.help-button{width:28px;height:28px;display:grid;place-items:center;padding:0;border:1px solid #8da19f70;border-radius:50%;background:none;color:var(--muted);font-size:13px;font-weight:600}
.help-button:hover,.help-button[aria-expanded="true"]{color:var(--accent);border-color:var(--accent)}
.help-popover{position:absolute;z-index:10;left:0;top:calc(100% + 9px);width:300px;padding:16px;border:1px solid #a8e7cc50;border-radius:12px;background:#203432;color:var(--text);font-size:12px;line-height:1.65;box-shadow:0 12px 35px #0006}
.settings-start{width:100%;margin-top:8px}
.settings-error{padding:13px 16px;border-radius:9px;background:#ed997f10;border:1px solid #ed997f55;color:#f4bea8;font-size:13px;line-height:1.6}
@media(max-width:580px){.genre-panel summary{padding:17px}.genre-panel-body{padding:0 15px 16px}.genre-cloud{gap:8px}.genre-chip{font-size:12px;padding:10px}.pairing-option{justify-content:space-between}.help-popover{left:auto;right:0;width:min(300px,calc(100vw - 44px))}}
/* Accuracy awards are text only, with color and weight increasing by tier. */
.round-award{position:absolute;z-index:3;left:50%;top:14px;transform:translateX(-50%);max-width:calc(100% - 24px);pointer-events:none}
.award-card{color:#b9f3d8;text-align:center;text-shadow:0 2px 5px #10191c;animation:award-arrive .3s ease-out}
.award-card strong{font-size:clamp(20px,2.3vw,27px);font-weight:650;letter-spacing:.3px;white-space:nowrap}
.round-award[data-tier="excellent"] .award-card{color:#a8ddff}
.round-award[data-tier="excellent"] strong{font-size:clamp(23px,2.7vw,31px);font-weight:700}
.round-award[data-tier="genius"] .award-card{color:#e4c8ff;text-shadow:0 2px 5px #10191c,0 0 15px #b17cf855}
.round-award[data-tier="genius"] strong{font-size:clamp(26px,3vw,35px);letter-spacing:1px;font-weight:750}
.round-award[data-tier="legend"] .award-card{color:#ffe19a;text-shadow:0 2px 5px #10191c,0 0 18px #ffdc7f66;animation:award-arrive .35s ease-out,legend-shiver .5s ease-in-out .35s 2}
.round-award[data-tier="legend"] strong{font-size:clamp(28px,3.5vw,40px);letter-spacing:1.5px;font-weight:800}
@keyframes award-arrive{from{opacity:0;transform:translateY(-9px) scale(.92)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes legend-shiver{0%,100%{transform:translateX(0) rotate(0)}20%{transform:translateX(-2px) rotate(-1deg)}40%{transform:translateX(2px) rotate(1deg)}60%{transform:translateX(-1px) rotate(-.5deg)}80%{transform:translateX(1px) rotate(.5deg)}}
.rank-card{--rank-color:#aeced8;padding:20px 23px;display:flex;flex-direction:column;gap:9px;border:1px solid color-mix(in srgb,var(--rank-color) 45%,transparent);border-left:3px solid var(--rank-color);border-radius:12px;background:linear-gradient(100deg,#ffffff08,transparent);margin:20px 0}
.rank-card strong{color:var(--rank-color);font-size:clamp(24px,4vw,34px);font-weight:550;letter-spacing:-.5px}
.rank-card[data-tier="seeker"]{--rank-color:#a8c9ee}.rank-card[data-tier="observer"]{--rank-color:#a6d8d9}.rank-card[data-tier="connoisseur"]{--rank-color:#a5d9ba}.rank-card[data-tier="master"]{--rank-color:#cedfa0}.rank-card[data-tier="good"]{--rank-color:#b9f3d8}.rank-card[data-tier="excellent"]{--rank-color:#a8ddff}.rank-card[data-tier="genius"]{--rank-color:#e4c8ff}.rank-card[data-tier="legend"]{--rank-color:#ffe19a;background:linear-gradient(120deg,#f5ce7312,transparent)}
.legend-counter{display:flex;align-items:center;gap:12px;padding:16px 20px;margin:18px 0;border:1px solid #f5ce7355;border-radius:12px;background:#f5ce7308;color:#f5ce73}
.legend-counter svg{width:30px;height:30px;filter:drop-shadow(0 0 7px #f5ce7330)}
.legend-counter span{font-size:15px;font-weight:600}
.legend-counter strong{margin-left:auto;font-size:28px;font-weight:600;font-variant-numeric:tabular-nums}
@media(max-height:540px) and (orientation:landscape){.round-award{top:9px}.award-card strong{font-size:23px!important}}
@media(prefers-reduced-motion:reduce){.award-card{animation:none!important}}


/* Measurement preferences and responsive dual-unit readouts. */
.measurement>span{white-space:nowrap}
.combined-measurement>.measure-metric{color:#f2cd85}
.combined-measurement>.measure-us{color:#9ccde9}
.object-size.combined-measurement{display:flex;flex-direction:column;align-items:flex-end;gap:2px}
.object-size.combined-measurement>.measure-us{font-size:.92em}
.unit-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:0 18px 18px}
.unit-option{position:relative;cursor:pointer}
.unit-option>input{position:absolute;opacity:0;width:1px;height:1px}
.unit-option-body{display:flex;height:100%;flex-direction:column;gap:10px;padding:16px 12px;border:1px solid var(--line);border-radius:10px;background:#10191c55}
.unit-option-body>strong{font-size:13px;font-weight:600}
.unit-description{font-size:11px;line-height:1.6;color:var(--muted)}
.unit-example{font-size:12px;line-height:1.7;margin-top:auto;color:var(--accent)}
.unit-option input:checked+.unit-option-body{border-color:var(--accent);background:#a8e7cc10}
.unit-option input:focus-visible+.unit-option-body{outline:2px solid var(--accent);outline-offset:3px}
@media(max-width:580px){
 .unit-options{grid-template-columns:1fr;padding:0 15px 15px}
 .unit-option-body{display:grid;grid-template-columns:1fr auto;align-items:center;gap:5px 14px;padding:13px}
 .unit-description{grid-column:1}
 .unit-example{grid-column:2;grid-row:1/3;max-width:128px;margin:0;text-align:right}
 .combined-headings .object-heading{grid-template-columns:minmax(0,1fr) auto;gap:6px}
 .combined-headings .object-heading h2{grid-column:1}
 .combined-headings .object-size{grid-column:2}
 .combined-headings .object-heading h2{font-size:12px}
 .combined-headings .object-size{font-size:11px}
 .units-panel .genre-summary{max-width:100px;text-align:right}
}
.rules-panel{margin-top:22px;border:1px solid var(--line);border-radius:12px;background:#15242680;overflow:hidden}
.rules-panel summary{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:17px 20px;cursor:pointer;list-style:none;font-size:13px;font-weight:550}
.rules-panel summary::-webkit-details-marker{display:none}
.rules-panel[open] .disclosure-arrow{transform:rotate(180deg)}
.rules-content{padding:0 20px 18px;border-top:1px solid var(--line);font-size:13px;line-height:1.75}
.rules-content ol{padding-left:20px;margin:16px 0}
.rules-content li{margin:12px 0;padding-left:4px;color:#bed0cb}
.rules-content li::marker{color:var(--accent);font-weight:650}
.rule-platform{margin:15px 0 0;color:var(--muted);font-size:12px}
.home-screen{position:relative;isolation:isolate;min-height:calc(100dvh - 100px);padding:44px 0;gap:7%;align-items:center}
.home-screen:before{content:"";position:absolute;z-index:-1;inset:6% -4%;pointer-events:none;background:radial-gradient(ellipse at 80% 35%,#a8e7cc0c,transparent 58%);animation:menu-glow 10s ease-in-out infinite alternate}
.home-screen .hero-copy{max-width:460px;position:relative;z-index:2}
.home-screen .hero-copy h1{font-size:clamp(86px,9vw,128px);margin:0 0 27px}
.home-screen .hero-copy h2{margin:0 0 12px;font-size:23px}
.home-screen .intro{max-width:390px;margin:0 0 27px;line-height:1.7}
.home-screen .hero-play{width:100%;min-height:62px;font-size:15px;border-radius:12px;box-shadow:0 6px 25px #a8e7cc0d}
.home-screen .secondary-actions{display:block;margin-top:12px}
.menu-secondary{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:54px;padding:14px 24px;border:1px solid #a8e7cc30;border-radius:12px;background:#172629b3;font-size:14px}
.menu-secondary:hover{border-color:#a8e7cc70;background:#1d3230}
.home-screen .rules-panel{margin-top:15px;background:#15242655}
.home-screen .hero-art{position:relative;inset:auto;height:450px;width:100%;border:0;border-radius:0;background:none;overflow:visible;mask-image:none;opacity:1;pointer-events:none}
.home-screen .art-grid{inset:24px 5px 68px;background-size:32px 32px;mask-image:radial-gradient(ellipse,black 30%,transparent 72%)}
.home-screen .art-halo{position:absolute;top:30px;left:calc(50% - 160px);width:320px;height:320px;border:1px dashed #a8e7cc28;border-radius:50%;box-shadow:0 0 75px #a8e7cc08;animation:menu-orbit 90s linear infinite}
.home-screen .art-arch{left:16%;bottom:72px;width:120px;height:190px;border-width:30px;border-bottom:0;animation:menu-float 9s ease-in-out infinite alternate}
.home-screen .art-obelisk{right:17%;bottom:72px;width:100px;height:265px;animation:menu-float 12s ease-in-out -4s infinite alternate}
.home-screen .art-diamond{left:43%;bottom:72px;width:90px;height:105px;animation:menu-float 8s ease-in-out -2s infinite alternate}
.home-screen .art-handle{right:17%;top:100px;animation:menu-glow 4s ease-in-out infinite alternate}
.home-screen .art-base{bottom:71px;left:18px;right:18px;background:linear-gradient(90deg,transparent,#66838370,transparent)}
@keyframes menu-float{from{transform:translateY(0)}to{transform:translateY(-14px)}}
@keyframes menu-glow{from{opacity:.45}to{opacity:1}}
@keyframes menu-orbit{to{transform:rotate(360deg)}}
@media(max-width:760px){
 .home-screen{grid-template-columns:1fr;min-height:calc(100dvh - 76px);padding:42px 0;gap:0}
 .home-screen .hero-copy{width:100%;max-width:480px;margin:auto}
 .home-screen .hero-copy h1{font-size:clamp(82px,16vw,110px);letter-spacing:-5px}
 .home-screen .hero-copy h2{font-size:21px}
 .home-screen .hero-art{position:absolute;top:25px;right:-15px;width:min(330px,100%);height:370px;z-index:0;opacity:.18;mask-image:linear-gradient(90deg,transparent,black 40%)}
 .home-screen .art-halo{max-width:100%}
}
@media(max-height:540px) and (orientation:landscape){
 .home-screen{grid-template-columns:1fr 1fr;min-height:calc(100dvh - 48px);padding:24px 0;gap:7%}
 .home-screen .hero-copy h1{font-size:68px;letter-spacing:-4px;margin-bottom:15px}
 .home-screen .hero-copy h2{font-size:17px;margin-bottom:8px}
 .home-screen .intro{font-size:12px;margin-bottom:18px}
 .home-screen .hero-play{min-height:48px}
 .menu-secondary{min-height:44px;padding:10px 24px}
 .home-screen .hero-art{position:relative;inset:auto;width:100%;height:320px;opacity:.8;mask-image:none}
 .home-screen .art-halo{width:260px;height:260px;left:calc(50% - 130px);top:0}
 .home-screen .art-obelisk{height:215px}
 .home-screen .art-arch{height:160px;width:100px}
 .home-screen .art-handle{top:26px}
}
@media(prefers-reduced-motion:reduce){.home-screen:before,.home-screen .hero-art *{animation:none!important}}


/* Compact, independent music and sound controls. */
.header-right{gap:14px}
.audio-controls{display:flex;align-items:center;gap:3px}
.audio-toggle{width:38px;height:38px;padding:8px;display:grid;place-items:center;border:0;border-radius:9px;background:transparent;color:var(--accent)}
.audio-toggle:hover{background:#a8e8d512}
.audio-toggle svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
.audio-toggle .mute-slash{display:none;stroke-width:2.1}
.audio-toggle.is-muted{color:#819390}
.audio-toggle.is-muted .mute-slash{display:block}
.audio-toggle.is-muted .sound-waves{opacity:.25}
.audio-toggle:disabled{opacity:.55;cursor:default}
body[data-screen="game"] .header-right{gap:10px}
@media(max-width:580px){
 .header{gap:10px}
 .header-right,body[data-screen="game"] .header-right{gap:5px}
 .audio-controls{gap:0}
 .audio-toggle{width:36px;height:38px;padding:8px}
 .audio-toggle svg{width:20px;height:20px}
 .language>span{display:none}
 .brand-mark{display:none}
 .brand{font-size:20px;gap:0}
 body[data-screen="game"] #app{padding:0 12px}
 body[data-screen="game"] .brand>span:last-child{display:none}
 body[data-screen="game"] .brand-mark{display:flex;width:14px;height:19px;gap:2px}
 body[data-screen="game"] .brand-mark i{width:3px}
 body[data-screen="game"] .header{gap:8px}
}
/* Die-cut letter stickers, without a rectangular panel behind the word. */
.award-card{--sticker-ink:#b9f3d8;color:var(--sticker-ink);text-align:center;animation:none;text-shadow:none;transform-origin:50% 55%;filter:drop-shadow(0 3px 0 #081512aa) drop-shadow(0 6px 7px #0005)}
.award-card strong{display:block;font-weight:850;font-style:italic;letter-spacing:.6px;-webkit-text-stroke:5px #f0f5ed;paint-order:stroke fill}
.round-award[data-tier="excellent"] .award-card{--sticker-ink:#72b9ed;color:var(--sticker-ink)}
.round-award[data-tier="genius"] .award-card{--sticker-ink:#c091ef;color:var(--sticker-ink);text-shadow:none}
.round-award[data-tier="legend"] .award-card{--sticker-ink:#efb743;color:var(--sticker-ink);text-shadow:none;animation:none;filter:drop-shadow(0 3px 0 #6a471e) drop-shadow(0 7px 10px #0007)}
.round-award[data-tier="legend"] strong{-webkit-text-stroke:6px #fff3ca;font-weight:900}
@media(max-width:580px){.award-card strong{-webkit-text-stroke-width:4px}.round-award[data-tier="legend"] strong{-webkit-text-stroke-width:5px}}

/* Three track buttons with a music-only volume slider underneath. */
.music-player{width:108px;display:flex;flex-direction:column;align-items:stretch;gap:0}
.track-controls{display:flex;align-items:center;justify-content:space-between}
.track-controls .audio-toggle{width:36px;height:32px;padding:7px}
.track-toggle svg{width:17px;height:17px}
.music-volume{--volume:40%;display:block;width:calc(100% - 12px);height:14px;margin:0 6px;padding:0;background:transparent;appearance:none;-webkit-appearance:none;cursor:pointer}
.music-volume::-webkit-slider-runnable-track{height:2px;border-radius:2px;background:linear-gradient(to right,var(--accent) var(--volume),#547069 var(--volume))}
.music-volume::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:8px;height:8px;margin-top:-3px;background:var(--accent);border:0;border-radius:50%}
.music-volume::-moz-range-track{height:2px;background:#547069;border-radius:2px}
.music-volume::-moz-range-progress{height:2px;background:var(--accent)}
.music-volume::-moz-range-thumb{height:8px;width:8px;border:0;border-radius:50%;background:var(--accent)}
.music-volume:disabled{opacity:.45;cursor:default}
.header{position:relative}
body[data-screen="game"] .round-label{position:absolute;left:50%;transform:translateX(-50%);text-align:center}
@media(max-width:760px){
 body[data-screen="game"] .header{display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-rows:47px 29px;height:80px;column-gap:8px;row-gap:0}
 body[data-screen="game"] .brand{grid-row:1;grid-column:1}
 body[data-screen="game"] .header-right{grid-row:1;grid-column:2;justify-self:end}
 body[data-screen="game"] .game-top{grid-row:2;grid-column:1/-1;display:grid;grid-template-columns:1fr auto 1fr;width:100%;gap:6px}
 body[data-screen="game"] .game-top #menu{justify-self:start;min-height:26px;padding:0}
 body[data-screen="game"] .round-label{position:static;transform:none;grid-column:2}
 body[data-screen="game"] .timer{grid-column:3;justify-self:end}
}
@media(max-width:580px){
 .header{height:64px}
 .brand>span:last-child{display:none}
 .brand .brand-mark{display:flex;width:14px;gap:2px;height:19px}
 .brand .brand-mark i{width:3px}
 .music-player{width:96px}
 .track-controls .audio-toggle{width:32px;height:32px;padding:7px}
 .track-toggle svg{width:16px;height:16px}
 .header-right{gap:6px}
}
/* Statistics title and earned-Legend total share the full-width heading. */
#stats-screen{width:100%;max-width:none}
.stats-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:15px 0 24px}
.stats-heading h1{margin:0;min-width:0}
.stats-content{max-width:650px;margin:0 auto}
.legend-summary{display:flex;align-items:center;gap:8px;position:relative;flex-shrink:0;color:#f5ce73}
.legend-summary>strong{font-size:25px;font-weight:650;font-variant-numeric:tabular-nums}
#legend-help{display:grid;place-items:center;width:42px;height:44px;padding:5px;background:transparent;border:0;border-radius:9px;color:inherit}
#legend-help:hover,#legend-help[aria-expanded="true"]{background:#f5ce7310}
#legend-help svg{width:30px;height:30px;filter:drop-shadow(0 0 5px #f5ce7320)}
.legend-tooltip{position:absolute;z-index:6;right:0;top:calc(100% + 8px);width:min(270px,calc(100vw - 44px));padding:14px 16px;border:1px solid #58706c;background:#17292b;border-radius:11px;box-shadow:0 10px 25px #0004;color:#d0ded9;font-size:12px;line-height:1.7;font-weight:400}
@media(max-width:580px){.stats-heading{gap:10px}.stats-heading h1{font-size:28px}.legend-summary{gap:5px}.legend-summary>strong{font-size:21px}#legend-help{width:36px}}
