:root{color-scheme:dark;--navy:#123e59;--deep:#082c43;--aqua:#66e4d5;--gold:#ffd267;--coral:#ff785f;--white:#fff8e8;--ink:#133b52;font-family:'Trebuchet MS','Verdana',sans-serif;color:var(--white);background:var(--deep);font-synthesis:none}
*{box-sizing:border-box}body{margin:0;min-height:100vh;background:radial-gradient(ellipse at 50% 22%,#236b86 0,#123e59 48%,#082c43 100%);overflow-x:hidden}button,a{-webkit-tap-highlight-color:transparent;touch-action:manipulation}button{font:inherit;color:inherit;cursor:pointer;border:0}button:focus-visible,a:focus-visible{outline:5px solid white;outline-offset:5px}button:disabled{cursor:default}button:active:not(:disabled),a:active{transform:translateY(4px)}button{transition:transform .15s,background .2s}h1,h2,p{margin:0}button[hidden],[hidden]{display:none!important}.spotlight{position:fixed;top:-160px;width:580px;height:1200px;pointer-events:none;background:linear-gradient(#fff7c329,#ffeaa600);clip-path:polygon(45% 0,55% 0,100% 100%,0 100%);z-index:0}.spotlight.left{left:-60px;transform:rotate(24deg);transform-origin:top}.spotlight.right{right:-60px;transform:rotate(-24deg);transform-origin:top}.topbar{position:relative;z-index:2;max-width:1840px;margin:auto;padding:14px 28px 0;display:flex;align-items:center;gap:22px;min-height:138px}.control{display:flex;align-items:center;justify-content:center;text-decoration:none;gap:8px;background:#ffffff0b;border:2px solid #ffffff32;border-radius:24px;min-width:150px;min-height:120px;padding:12px 20px;color:var(--white);font-size:25px;font-weight:bold}.top-controls{display:flex;gap:14px;margin-left:auto}.wordmark{background:none;font-size:58px;font-weight:900;letter-spacing:-3px;line-height:1;text-shadow:0 5px #082c43;padding:10px 16px;min-height:120px}.wordmark span{color:var(--gold)}#app{position:relative;z-index:1;max-width:1760px;margin:auto;padding:12px 32px 26px}.map-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;margin:12px 0 20px}.map-heading h1{font-size:76px;letter-spacing:-3px;line-height:1.08}.map-heading p{font-size:29px;margin-top:12px;color:#c7e5ec}.team-toggle{min-height:120px;min-width:270px;border-radius:26px;background:var(--aqua);box-shadow:0 7px #268f94;color:var(--ink);padding:16px 24px;font-size:27px;font-weight:bold}.team-toggle small{display:block;font-size:20px;margin-top:8px;font-weight:normal}.podiums{position:relative;display:grid;grid-template-columns:repeat(4,1fr);gap:26px 32px;padding:12px 10px 16px;isolation:isolate}.podiums:before{content:'';position:absolute;left:2%;right:2%;bottom:0;height:100px;border-radius:50%;background:#031c2c80;filter:blur(14px);z-index:-1}.podium{position:relative;min-height:260px;display:flex;align-items:center;flex-direction:column;justify-content:center;gap:7px;background:linear-gradient(135deg,#ffe8a3,#ffce62);border:3px solid #fff3bb;border-radius:28px 28px 16px 16px;color:var(--ink);box-shadow:0 12px #cc873c,0 18px 0 #082c43,0 24px 24px #031e2c70;overflow:hidden;text-align:center;padding:12px}.podium:nth-child(even){transform:translateY(-8px)}.podium:after{content:'';position:absolute;left:-5%;top:-80%;width:60%;height:160%;transform:rotate(25deg);background:#ffffff24;pointer-events:none}.podium.locked{background:linear-gradient(135deg,#326882,#204c66);border-color:#59829a;color:#b5d0df;box-shadow:0 12px #143c54,0 18px #082c43,0 24px 24px #031e2c70}.level-number{font-size:53px;line-height:1;font-weight:900}.podium h2{font-size:29px;line-height:1.15}.podium p{font-size:19px;max-width:260px}.podium .stars{font-size:37px;line-height:1.1}.lock-label{font-size:18px}.map-footer{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-top:28px}.map-footer p{font-size:25px;max-width:920px;line-height:1.4}.subtle{background:#ffffff0a;border:2px solid #ffffff29;border-radius:20px;font-size:21px;padding:12px 20px;min-width:180px;min-height:120px}.stars{color:var(--gold);letter-spacing:7px;text-shadow:0 3px 0 #986522}.podium:not(.locked) .stars{color:#8c6225;text-shadow:none}.stars .empty{opacity:.35}.round-top{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:12px;min-height:66px}.round-label{font-size:29px}.round-label strong{font-size:36px;color:var(--gold);margin-right:20px}.progress-dots{display:flex;gap:9px}.progress-dots i{width:18px;height:18px;background:#507c93;border-radius:50%}.progress-dots i.current{background:var(--gold);box-shadow:0 0 0 4px #ffd26730}.progress-dots i.right{background:var(--aqua)}.progress-dots i.miss{background:var(--coral)}.scores{display:flex;gap:14px}.team-score{font-size:25px;border:2px solid #63869a;border-radius:18px;padding:12px 24px;color:#aecbd8}.team-score.active{color:var(--ink);background:var(--gold);border-color:var(--gold)}.team-score strong{font-size:34px;margin-left:15px}.play-stage{display:grid;grid-template-columns:minmax(480px,650px) minmax(0,1fr);align-items:center;gap:65px;max-width:1470px;margin:auto}.board-frame{position:relative;width:min(58vh,620px);height:min(58vh,620px);min-width:480px;min-height:480px;padding:10px;border:4px solid #fff0a9;border-radius:30px;background:#ffcf66;box-shadow:0 0 0 8px #bf9140,0 0 0 12px #15354c,0 0 45px #ffda5a50,0 22px 0 #061f30;isolation:isolate}.picture{position:absolute;inset:10px;display:grid;place-items:center;background:radial-gradient(circle,#fffaf0,#ffd69b);border-radius:18px;overflow:hidden}.picture-emoji{font-family:'Segoe UI Emoji','Apple Color Emoji',sans-serif;font-size:340px;line-height:1;display:block;transform:scale(var(--zoom,1));filter:var(--filter,none);will-change:transform,filter}.tile-grid{position:absolute;inset:10px;display:grid;gap:0;border-radius:17px;overflow:hidden;perspective:1000px;z-index:3}.tile{position:relative;min-height:120px;min-width:120px;background:linear-gradient(145deg,#ff9a77,#ed6757);border:3px solid #ffe2a0;border-radius:12px;color:#8d3934;font-size:48px;font-weight:bold;text-shadow:0 2px #ffb39a;box-shadow:inset 0 -8px #c74843, inset 0 5px #ffc69b;backface-visibility:hidden;transform-origin:center;transition:transform .6s cubic-bezier(.3,.7,.2,1),opacity .55s}.tile.open{transform:rotateY(160deg) scale(.5);opacity:0;pointer-events:none}.webgl .tile{background:transparent;border-color:transparent;box-shadow:none;color:transparent;text-shadow:none}.webgl .tile.open{visibility:hidden}.board-canvas{position:absolute;inset:10px;width:calc(100% - 20px);height:calc(100% - 20px);z-index:2;pointer-events:none;border-radius:17px}.stage-copy{align-self:center}.mode-label{font-size:27px;color:var(--aqua);margin-bottom:12px}.stage-copy h1{font-size:66px;letter-spacing:-2px;line-height:1.05;max-width:650px}.instructions{font-size:30px;line-height:1.4;color:#d4eaf0;margin-top:20px;max-width:650px}.star-meter{display:flex;align-items:center;gap:20px;margin-top:24px}.star-meter .stars{font-size:51px}.star-meter small{font-size:24px;line-height:1.25;color:#d4eaf0;max-width:220px}.reveal-track{height:12px;border-radius:8px;background:#ffffff26;margin-top:20px;max-width:500px;overflow:hidden}.reveal-track span{display:block;height:100%;width:0;background:var(--aqua);border-radius:8px}.answers{display:grid;grid-template-columns:repeat(var(--cards),1fr);gap:20px;margin:30px auto 0;max-width:1530px}.answer{min-height:140px;font-size:34px;line-height:1.1;font-weight:bold;padding:14px;background:var(--white);color:var(--ink);border-radius:24px;box-shadow:0 8px #a9b6ad;display:flex;align-items:center;justify-content:center;gap:20px;border:4px solid transparent}.answer-emoji{font-size:57px;font-family:'Segoe UI Emoji',sans-serif}.answer.correct{background:var(--aqua);border-color:#e3fff9;box-shadow:0 8px #258e8b}.answer.wrong{background:#ffb9a8;animation:wobble .45s}.feedback{margin-top:20px;min-height:80px;display:flex;align-items:center;justify-content:space-between;gap:20px;grid-column:1/-1}.feedback p{font-size:30px;line-height:1.3}.primary{min-height:120px;min-width:240px;font-size:30px;font-weight:bold;background:var(--gold);color:var(--ink);border-radius:24px;box-shadow:0 7px #ad773b;padding:18px 30px}.clues{display:flex;flex-direction:column;gap:12px;margin-top:16px}.clue{font-size:30px;background:#ffffff12;border-left:6px solid var(--aqua);border-radius:0 16px 16px 0;padding:14px 20px;animation:clue-in .3s}.clue-next{margin-top:18px;background:var(--aqua);color:var(--ink);min-height:120px;border-radius:24px;font-size:28px;font-weight:bold;padding:18px 26px}.clue-board{position:absolute;inset:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;background:radial-gradient(circle,#fff9e7,#ffd58d);color:var(--ink);border-radius:18px}.clue-board strong{font-size:250px;line-height:1;text-shadow:0 12px #daa358}.clue-board span{font-size:30px;margin-top:22px}.celebrate{text-align:center;max-width:1100px;margin:25px auto}.celebrate .big-stars{font-size:130px;margin:12px;line-height:1.25}.big-stars span{display:inline-block;animation:star-in .8s cubic-bezier(.2,.7,.2,1.2) both}.big-stars span:nth-child(2){animation-delay:.17s}.big-stars span:nth-child(3){animation-delay:.34s}.celebrate h1{font-size:83px;letter-spacing:-3px}.celebrate p{font-size:34px;line-height:1.5;margin:20px 0}.celebrate .unlock{display:inline-block;background:#ffffff10;border:2px solid #ffffff30;border-radius:28px;padding:22px 42px;color:var(--aqua);font-size:40px}.celebrate-actions{display:flex;justify-content:center;gap:24px;margin-top:28px}.winner{color:var(--gold)}#confetti{position:fixed;inset:0;pointer-events:none;overflow:hidden;z-index:8}#confetti i{position:absolute;left:var(--x);top:-40px;width:18px;height:30px;background:var(--c);animation:confetti 1.8s var(--delay) ease-in both}.revealed .picture-emoji{animation:pop .65s}.burst .tile.open{transform:translateY(-90px) rotate(120deg) scale(.2)}dialog{border:3px solid var(--gold);border-radius:32px;max-width:780px;padding:40px;background:var(--navy);color:var(--white)}dialog::backdrop{background:#001722ba}dialog h2{font-size:49px}dialog p{font-size:28px;line-height:1.4;margin:20px 0}.dialog-actions{display:flex;gap:20px}.dialog-actions button{min-height:120px;min-width:220px;font-size:27px;border-radius:22px;padding:14px;background:#ffffff20}.dialog-actions .primary{background:var(--gold)}.loading{font-size:36px;text-align:center;margin:100px 0}.save-warning{font-size:22px;color:var(--gold);margin-top:12px}
@keyframes wobble{20%,60%{transform:rotate(-3deg)}40%,80%{transform:rotate(3deg)}}@keyframes star-in{from{transform:translateY(-140px) scale(.1) rotate(-60deg);opacity:0}to{transform:translateY(0) scale(1);opacity:1}}@keyframes clue-in{from{opacity:0;transform:translateX(20px)}to{opacity:1;transform:none}}@keyframes pop{50%{transform:scale(1.12)}}@keyframes confetti{to{top:110%;transform:rotate(700deg) translateX(70px)}}
@media(min-width:1500px) and (min-height:950px){.map-heading{margin:20px 0 32px}.podium{min-height:285px}.podiums{gap:32px 38px}.map-footer{margin-top:36px}.play-stage{gap:90px}.round-top{margin-bottom:22px}.answers{margin-top:36px}}
@media(max-height:850px){.topbar{padding-top:6px;min-height:128px}.map-heading{margin:0 0 14px}.map-heading h1{font-size:52px}.map-heading p{font-size:22px;margin-top:6px}.podium{min-height:198px;gap:4px}.podium h2{font-size:25px}.level-number{font-size:36px}.podium .stars{font-size:28px}.podium p{font-size:17px}.map-footer{margin-top:12px}.round-top{min-height:42px;margin-bottom:10px}.round-label{font-size:24px}.round-label strong{font-size:28px}.team-score{padding:4px 16px;font-size:22px}.team-score strong{font-size:28px}.play-stage{gap:40px;grid-template-columns:500px 1fr}.board-frame{width:500px;height:500px}.picture-emoji{font-size:300px}.stage-copy h1{font-size:48px}.instructions{font-size:25px;margin-top:14px}.star-meter{margin-top:14px}.star-meter .stars{font-size:40px}.star-meter small{font-size:20px}.answers{margin-top:20px;gap:14px}.answer{min-height:120px;font-size:28px;padding:10px;gap:10px}.answer-emoji{font-size:44px}.clue{font-size:24px;padding:9px 14px}.clues{gap:8px}.mode-label{font-size:22px;margin-bottom:8px}.feedback{margin-top:12px}.celebrate h1{font-size:64px}.celebrate .big-stars{font-size:90px}.celebrate p{font-size:28px;margin:12px 0}}
@media(max-width:1100px){.topbar{padding:8px 16px;gap:10px}.wordmark{font-size:43px;padding:8px}.control{min-width:120px;font-size:22px;padding:10px}.top-controls{gap:8px}#app{padding:12px 22px}.map-heading{align-items:center}.map-heading h1{font-size:50px}.team-toggle{min-width:220px;font-size:23px}.podiums{gap:24px 20px}.podium h2{font-size:23px}.play-stage{grid-template-columns:480px 1fr;gap:26px}.stage-copy h1{font-size:43px}.instructions{font-size:24px}.board-frame{width:500px;height:500px}.round-label strong{margin-right:8px}.progress-dots{gap:5px}.team-score{padding:6px 12px}}
@media(max-width:800px){.topbar{flex-wrap:wrap}.wordmark{order:-1;flex:1;text-align:left}.top-controls{margin-left:0}.control{font-size:20px}.map-heading{display:block}.team-toggle{margin-top:20px}.podiums{grid-template-columns:repeat(2,1fr)}.podium{min-height:230px}.map-footer{align-items:start}.map-footer p{font-size:21px}.round-top{flex-wrap:wrap}.play-stage{display:flex;flex-direction:column;gap:30px}.board-frame{min-width:0;min-height:0;width:min(88vw,520px);height:min(88vw,520px)}.tile{min-width:0;min-height:0}.picture-emoji{font-size:260px}.stage-copy{width:100%}.stage-copy h1{font-size:42px}.answers{grid-template-columns:repeat(2,1fr)}.answer{font-size:24px;flex-direction:column;gap:6px}.feedback{align-items:stretch;flex-direction:column}.celebrate h1{font-size:50px}.celebrate .big-stars{font-size:70px}.celebrate .unlock{font-size:28px;padding:20px}.celebrate-actions,.dialog-actions{flex-direction:column}.star-meter small{max-width:none}.clue-board strong{font-size:190px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-delay:0ms!important;transition-duration:.01ms!important}.spotlight{display:none}}
/* The board is the large stage prop; map stones have their own smaller depth. */
.webgl .tile{color:#923b32;text-shadow:0 2px #ffcdac}
.picture-emoji svg,.answer-emoji svg{display:block;width:1.1em;height:1.1em}
.podiums .board-canvas{inset:0;width:100%;height:100%;z-index:0;overflow:visible}
.podiums .podium{z-index:1}
.podiums.webgl .podium{background:linear-gradient(135deg,#ffe8a380,#ffce6240)}
.podiums.webgl .podium.locked{background:linear-gradient(135deg,#32688280,#204c6640)}
.celebrate .big-stars .empty{opacity:.35;animation-name:empty-star-in}
@keyframes empty-star-in{from{transform:translateY(-140px) scale(.1) rotate(-60deg);opacity:0}to{transform:none;opacity:.35}}
@media(min-width:1500px) and (min-height:950px){.podium{min-height:250px}.map-heading{margin:12px 0 24px}.map-footer{margin-top:22px}.podiums{gap:28px 38px}}
@media(min-width:801px) and (max-height:850px){
  .topbar{min-height:120px;padding:0 24px;gap:12px}.control{min-height:120px}.wordmark{min-height:120px;font-size:48px}
  #app{padding:12px 24px 18px}.map-heading h1{font-size:48px}.map-heading p{font-size:21px}.team-toggle{min-height:120px}
  .podium{min-height:166px;gap:2px;padding:8px}.podium .level-number{font-size:32px}.podium h2{font-size:24px}.podium p,.podium .lock-label{font-size:16px}.podium .stars{font-size:24px}.podiums{gap:22px 26px;padding-top:4px}.map-footer{margin-top:10px}.map-footer p{font-size:22px}
  [data-screen=play] .round-top{position:absolute;top:12px;left:590px;right:24px;justify-content:flex-start;flex-wrap:wrap;gap:10px;min-height:0;margin:0}
  [data-screen=play] .round-label{font-size:22px}.round-label strong{font-size:26px}.progress-dots{gap:5px}.progress-dots i{width:12px;height:12px}
  [data-screen=play] .scores{flex-basis:100%;gap:10px}.team-score{font-size:20px;padding:6px 12px}.team-score strong{font-size:26px}
  .play-stage{grid-template-columns:526px minmax(0,1fr);gap:40px}.board-frame{min-width:508px;min-height:508px;width:508px;height:508px}
  .stage-copy{padding-top:80px}.stage-copy h1{font-size:43px}.instructions{font-size:24px;margin-top:12px}.mode-label{font-size:20px}
  .star-meter{gap:12px}.star-meter .stars{font-size:36px}.star-meter small{font-size:19px}.reveal-track{margin-top:12px}
  .feedback:empty{min-height:0;margin-top:0}.play-stage:has(.revealed) .stage-copy h1,.play-stage:has(.revealed) .instructions{display:none}
  .answers{margin-top:20px}.answer{min-height:120px}.feedback p{font-size:23px}.feedback .primary{min-width:200px;font-size:25px}
  .clue{font-size:23px;padding:9px 12px}.clues{gap:6px}.clue-next{margin-top:12px}.celebrate{margin-top:10px}
  .celebrate p{font-size:26px}.celebrate .big-stars{font-size:80px;margin:0}.celebrate h1{font-size:58px}.celebrate .unlock{padding:14px 28px;font-size:30px}.celebrate-actions{margin-top:16px}
}
