/* Keep the action readable at desktop widths while the world fills the viewport. */
.yt-game.gt-fullscreen-play .gt-world-event{position:absolute;z-index:19;top:43%;left:50%;width:max-content;max-width:85%;padding:10px 24px;border:2px solid #fff1ad;border-radius:16px;background:#174d49ed;color:#fff8da;font-size:clamp(20px,3vw,38px);font-weight:900;text-align:center;text-shadow:0 2px #12312b;box-shadow:0 8px 0 #102b3880,0 0 36px #f5e6a994;opacity:0;pointer-events:none;animation:gt-world-event 1.15s ease-out both}
.yt-game.gt-fullscreen-play .gt-world-event[data-tone=retry]{background:#693c46ee;border-color:#ffd3b9;box-shadow:0 8px 0 #3c2534a0,0 0 30px #ffac8c88}
.yt-game.gt-fullscreen-play .gt-world-event[data-tone=skill]{background:#6d5087ee;border-color:#f6d3ff}
.yt-game.gt-fullscreen-play .gt-score-pop{z-index:20;font-size:24px;font-weight:900;text-shadow:0 2px 3px #082b28,0 0 12px #ffe498}
.yt-game.gt-fullscreen-play .gt-impact{width:78px;height:78px;border-width:6px;box-shadow:0 0 0 14px #fac87055,0 0 30px #ffe389}
.yt-game.gt-fullscreen-play .gt-scene[data-reaction=correct],.yt-game.gt-fullscreen-play :is(.mi-board,.kd-board)[data-reaction=correct]{filter:brightness(1.06)}
.yt-game.gt-fullscreen-play .gt-scene[data-mode=fever],.yt-game.gt-fullscreen-play :is(.mi-board,.kd-board)[data-mode=fever]{box-shadow:inset 0 0 80px #ffdc6b5c!important}
.yt-game.gt-fullscreen-play .gt-world-actions .gt-button:not(:disabled){background:linear-gradient(#fff8db,#e5d6a9);box-shadow:0 4px 0 #6d6545;transition:transform .12s,box-shadow .12s}
.yt-game.gt-fullscreen-play .gt-world-actions .gt-button:not(:disabled):active{transform:translateY(3px);box-shadow:0 1px 0 #6d6545}
.yt-game.gt-fullscreen-play .gt-play-controls :is(.ec-choices,.tc-choices,.ac-choices,.ms-choices,.so-chunks){box-shadow:0 8px 0 #0c2a3290,0 12px 26px #091d2870}
.yt-game.gt-fullscreen-play .gt-play-controls :is(.ec-choice,.tc-choice,.ac-choice,.ms-choice,.so-chunk){transition:transform .12s,box-shadow .12s,filter .12s}
.yt-game.gt-fullscreen-play .gt-play-controls :is(.ec-choice,.tc-choice,.ac-choice,.ms-choice,.so-chunk):not(:disabled):hover{transform:translateY(-3px);filter:brightness(1.06)}
.yt-game.gt-fullscreen-play .gt-play-controls :is(.ec-choice,.tc-choice,.ac-choice,.ms-choice,.so-chunk):not(:disabled):active{transform:translateY(2px)}
.yt-game.gt-fullscreen-play .gt-landmark{position:absolute;z-index:1;left:50%;top:37%;width:180px;height:150px;transform:translate(-50%,-50%);pointer-events:none;opacity:.9}
.yt-game.gt-fullscreen-play .gt-race .gt-landmark{left:80%;top:50%;width:104px;height:180px;border-left:7px solid #f8e4a4;background:repeating-conic-gradient(#fff7da 0 25%,#203d3c 0 50%) 0 30px/76px 38px no-repeat;filter:drop-shadow(0 7px 6px #21462b90)}
.yt-game.gt-fullscreen-play .gt-race .gt-landmark::after{content:'GOAL';position:absolute;top:80px;left:-27px;color:#fff7df;background:#365a44;border:2px solid #eed492;border-radius:6px;padding:3px 8px;font-size:15px;font-weight:900;letter-spacing:2px}
.yt-game.gt-fullscreen-play .gt-treasure .gt-landmark{top:48%;width:170px;height:190px;border:12px solid #c7a764;border-bottom:18px solid #c7a764;border-radius:80px 80px 14px 14px;background:radial-gradient(ellipse at 50% 75%,#ffe5a8 0,#956987 35%,#342c53 70%);box-shadow:0 0 0 10px #3c3156,0 0 36px #f7d98a88}
.yt-game.gt-fullscreen-play .gt-treasure .gt-landmark::after{content:'✦';position:absolute;inset:32% 0 auto;text-align:center;color:#ffec9e;font-size:70px;text-shadow:0 0 18px #ffe68e}
.yt-game.gt-fullscreen-play .gt-bridge .gt-landmark{top:50%;width:min(58vw,580px);height:92px;border-bottom:12px solid #956e3e;border-radius:0 0 50% 50%;background:repeating-linear-gradient(90deg,#d8b776 0 18%,#80633f 18% 19%,#d8b776 19% 20%);clip-path:inset(0 var(--world-gap,30%) 0 0);opacity:.65}
.yt-game.gt-fullscreen-play .gt-explore .gt-landmark{top:48%;width:min(60vw,650px);height:130px;border-bottom:12px dotted #829b69;border-radius:50%;transform:translate(-50%,-50%) rotate(-7deg)}
.yt-game.gt-fullscreen-play .gt-explore .gt-landmark::before,.yt-game.gt-fullscreen-play .gt-explore .gt-landmark::after{content:'◆';position:absolute;top:35px;width:54px;height:54px;display:grid;place-items:center;border:3px solid #d4b26d;border-radius:50%;background:#fff4ca;color:#7c6038;font-size:27px;box-shadow:0 5px 10px #4c705a70}
.yt-game.gt-fullscreen-play .gt-explore .gt-landmark::before{left:8%}.yt-game.gt-fullscreen-play .gt-explore .gt-landmark::after{right:8%}
.yt-game.gt-fullscreen-play .gt-lantern .gt-light-orb{left:50%;top:34%;width:clamp(115px,13vw,190px);height:clamp(115px,13vw,190px);box-shadow:0 0 55px 25px #ffe69a66}
.yt-game.gt-fullscreen-play .gt-lantern .gt-light-orb::before{inset:10px}
.yt-game.gt-fullscreen-play .gt-craft .gt-route-sky{filter:drop-shadow(0 0 5px #d4e9fd8c)}
.yt-game.gt-fullscreen-play .gt-craft .gt-route-sky circle{stroke-width:1.4;stroke:#b9d5e1}
.yt-game.gt-fullscreen-play .gt-craft .gt-route-sky line{stroke-width:1.3;stroke-opacity:.48}
.yt-game.gt-fullscreen-play .gt-actor{scale:1.25;transform-origin:center bottom;filter:drop-shadow(0 8px 5px #0b283982)}
.yt-game.gt-fullscreen-play :is(.mi-board,.kd-board) .gt-board-actor{scale:1.4}
.yt-game.gt-fullscreen-play .mi-enemy{box-shadow:0 7px 0 #122c45,0 0 18px #ffe28b55!important}
.yt-game.gt-fullscreen-play .kd-monster{box-shadow:0 8px 0 #34536c,0 10px 25px #152f4677!important}
@media(min-width:900px){
  section.yt-game.gt-fullscreen-play .gt-how-to{left:max(16px,calc(50% - 550px));width:260px}
  section.yt-game.gt-fullscreen-play .gt-goal-picker{left:auto;right:max(16px,calc(50% - 550px));width:min(820px,calc(100vw - 310px))}
  section.yt-game.gt-fullscreen-play .gt-hud,section.yt-game.gt-fullscreen-play :is(.ms-progress,.ec-progress,.so-progress,.tc-progress,.ac-progress,.mi-hud,.kd-hud){left:50%;right:auto;width:min(1100px,calc(100vw - 32px));transform:translateX(-50%)}
  section.yt-game.gt-fullscreen-play .gt-play-controls{left:50%;right:auto;width:min(1000px,calc(100vw - 32px));transform:translateX(-50%)}
  section.yt-game.gt-fullscreen-play .gt-world-actions{left:50%;right:auto;width:min(1000px,calc(100vw - 32px));transform:translateX(-50%)}
  section#asyncChoiceScreen.yt-game.gt-fullscreen-play .gt-map-actions{left:50%;right:auto;width:min(1000px,calc(100vw - 32px));transform:translateX(-50%)}
  section#mathInvaderScreen.yt-game.gt-fullscreen-play .mi-board,section#kanjiDefenseScreen.yt-game.gt-fullscreen-play .kd-board{left:max(16px,calc(50% - 550px));right:auto;width:min(1100px,calc(100vw - 32px));transform:none}
  section#mathInvaderScreen.yt-game.gt-fullscreen-play .mi-controls{width:min(560px,calc(100vw - 32px))}
  section#kanjiDefenseScreen.yt-game.gt-fullscreen-play .kd-controls{left:50%;right:auto;width:min(780px,calc(100vw - 32px));transform:translateX(-50%)}
  .yt-game.gt-fullscreen-play .gt-actor{scale:1.7}
  .yt-game.gt-fullscreen-play :is(.mi-board,.kd-board) .gt-board-actor{scale:1.8}
  .yt-game.gt-fullscreen-play .gt-play-controls :is(.ms-pad,.mi-pad){max-width:560px;margin-left:auto!important;margin-right:auto!important;width:100%}
  .yt-game.gt-fullscreen-play .gt-world-actions .gt-button{font-size:16px}
}
@media(max-width:580px){
  .yt-game.gt-fullscreen-play .gt-world-event{top:45%;font-size:20px;padding:8px 16px}
  .yt-game.gt-fullscreen-play .gt-landmark{opacity:.6;scale:.65}
  .yt-game.gt-fullscreen-play .gt-race .gt-landmark{left:82%;top:53%;scale:.55}
  .yt-game.gt-fullscreen-play .gt-treasure .gt-landmark{top:46%}
  .yt-game.gt-fullscreen-play .gt-lantern .gt-light-orb{top:35%}
}
@media(prefers-reduced-motion:reduce){.yt-game.gt-fullscreen-play .gt-world-event{display:none}}
@keyframes gt-world-event{0%{opacity:0;transform:translate(-50%,25px) scale(.65)}18%,63%{opacity:1;transform:translate(-50%,0) scale(1)}100%{opacity:0;transform:translate(-50%,-30px) scale(1.08)}}
