/* A sports world, with two distinct ways to play and one clear way back to paper. */
.game-screen{width:100%;min-width:0}.game-overlay{min-width:0;box-sizing:border-box}.overlay-content{min-width:0;box-sizing:border-box}
@media(max-width:650px){.game-title{display:block}.game-title>p{width:auto;max-width:none;font-size:15px;line-height:1.5;margin:15px 0}.game-title h1{font-size:48px}.game-overlay .overlay-content{width:100%;max-width:320px}.game-buttons{grid-template-columns:44px 44px minmax(0,1fr) minmax(0,1fr)}.game-buttons button{min-width:0;padding:12px 6px}.game-title .sports-kicker{color:#87502d}}
.impact-court{display:none;width:min(88vw,620px);color:#ffdc91;filter:drop-shadow(0 0 20px #f0b75c66)}.impact-court svg{display:block;width:100%;height:auto}.reading-impact[data-event=dream] .impact-five{display:none}.reading-impact[data-event=dream] .impact-court{display:block;animation:book-dream-open 1.9s ease-out both}.reading-impact[data-event=dream] .impact-halo{border-radius:35%;inset:12%}.reading-impact[data-event=dream] .dream-ball{animation:book-dream-ball 1.9s cubic-bezier(.2,.65,.25,1) both;transform-origin:200px 194px}.story-theatre[data-event=dream] .theatre-floor{opacity:.9}.story-theatre[data-event=dream] .theatre-lights{opacity:1}.reader-v4.world-night .training-stage{background-image:radial-gradient(ellipse at 70% 0,#326b6a,transparent 55%),linear-gradient(120deg,#081e37,#10414b)}.reader-v4.world-captain .training-stage{background-image:radial-gradient(ellipse at 70% 0,#86703c,transparent 55%),linear-gradient(120deg,#18213d,#4e3e3d)}
@keyframes book-dream-open{0%{opacity:0;transform:perspective(700px) rotateX(25deg) scale(.55)}30%,75%{opacity:1;transform:perspective(700px) rotateX(0) scale(1)}100%{opacity:0;transform:scale(1.04)}}@keyframes book-dream-ball{0%{transform:translate(-65px,65px) scale(.8)}50%{transform:translate(100px,-90px) scale(1)}75%,100%{transform:translate(150px,-25px) scale(.75)}}
.game-hub{--world-accent:#efb85e;max-width:1140px;padding-bottom:60px}.world-night{--world-accent:#65cabc}.world-captain{--world-accent:#edbd59}.hub-heading{position:relative;margin:32px 0 28px;padding-right:35%}.hub-heading h1{font-size:clamp(44px,7vw,82px);line-height:.88;margin:14px 0 18px}.hub-heading h1 em{color:#ae4b28}.hub-heading>p{position:absolute;right:0;bottom:0;font-size:18px;line-height:1.6}.hub-games{display:grid;grid-template-columns:1fr 1fr;gap:22px}.hub-game{display:block;width:100%;padding:0;overflow:hidden;text-align:left;border:2px solid #14334e;border-radius:20px;background:#0b2847;color:#fff4da;cursor:pointer;box-shadow:0 7px 0 #c6b395;transition:transform .2s,box-shadow .2s}.hub-game:hover{transform:translateY(-4px);box-shadow:0 11px 0 #c6b395}.hub-game:focus-visible{outline:4px solid #b34b2e;outline-offset:5px}.hub-art{height:260px;position:relative;overflow:hidden;isolation:isolate}.hub-art-plan{background:radial-gradient(ellipse at 85% 10%,#a47a42,#133d52 70%)}.hub-art-plan img{position:absolute;height:115%;width:55%;object-fit:contain;object-position:bottom right;right:0;bottom:-22%;mask-image:linear-gradient(90deg,transparent,#000 28%)}.hub-court-lines{position:absolute;inset:30% 8% -40%;border:2px solid #ffdc8a77;transform:perspective(250px) rotateX(20deg) rotate(-12deg);border-radius:45%}.hub-court-lines:after{content:'';position:absolute;left:20%;top:20%;width:45%;height:45%;border:2px solid #ffdc8a77;border-radius:50%}.hub-route{position:absolute;inset:0;width:100%;height:100%;z-index:2;fill:none;stroke:#ffda7c;stroke-width:5;stroke-linecap:round}.hub-route path:first-child{stroke-dasharray:12 13}.hub-route circle{fill:#ffe49f;stroke:#e89c3c}.hub-art-label{position:absolute;left:20px;bottom:18px;z-index:3;background:#0a2344dd;padding:8px 11px;color:#ffe19b;font-size:10px;letter-spacing:1.5px;font-weight:800;border-left:3px solid var(--world-accent)}.hub-art-run{background:linear-gradient(#16375b,#47828b 72%,#a87046 72%);border-bottom:4px solid #facb81}.hub-pixel-city{position:absolute;inset:25% -20% 30%;background:repeating-linear-gradient(90deg,#15364f 0 32px,transparent 32px 46px);clip-path:polygon(0 28%,15% 28%,15% 0,30% 0,30% 38%,47% 38%,47% 12%,64% 12%,64% 0,82% 0,82% 35%,100% 35%,100% 100%,0 100%)}.hub-pixel-hoop{position:absolute;right:35px;top:32px;width:58px;height:68px;background:#f4e9c7;border:6px solid #152c48;box-shadow:8px 0 #203c52}.hub-pixel-hoop:before{content:'';position:absolute;left:7px;right:7px;top:13px;height:25px;border:4px solid #688b9d}.hub-pixel-hoop:after{content:'';position:absolute;left:-7px;right:-7px;bottom:-14px;height:9px;background:#ef7440;box-shadow:0 13px #e9ddbd55}.hub-pixel-player{position:absolute;left:17%;top:32%;width:40px;height:55px;background:#f05e3a;border:5px solid #112b46;box-shadow:-12px 9px #b36e45,12px 9px #b36e45,-6px 53px #112b46,12px 53px #112b46;transform:rotate(-7deg)}.hub-pixel-player i{position:absolute;left:0;top:-35px;width:30px;height:30px;background:#ad633c;box-shadow:0 -9px #242032,8px -5px #242032}.hub-pixel-player b{display:grid;place-items:center;height:100%;font-size:27px;color:#fff2d7}.hub-pixel-spark{position:absolute;width:33px;height:33px;filter:drop-shadow(0 0 9px #ffdd84)}.hub-pixel-spark svg{width:100%;height:100%}.spark-one{left:42%;top:25%}.spark-two{left:61%;top:41%}.hub-pixel-block{position:absolute;left:40%;bottom:28%;display:grid;place-items:center;width:57px;height:43px;background:#d65b3c;box-shadow:5px 5px #19354a;border-top:5px solid #ffc97b;font-weight:900;font-size:14px}.hub-game-copy{padding:23px 24px 25px}.hub-game-type{font-size:10px;letter-spacing:1.7px;color:#e1c17e;font-weight:800}.hub-game h2{display:flex;justify-content:space-between;gap:10px;font-size:clamp(29px,3.8vw,41px);line-height:1;margin:12px 0;color:#fff0c9}.hub-game h2 span{color:var(--world-accent)}.hub-game p{font-size:16px;line-height:1.5;margin:10px 0 19px;color:#dce7e6}.hub-best{font-size:12px;color:#a7c6ca}.hub-runner{background:#113f4e}.hub-world{display:flex;align-items:center;gap:22px;padding:26px 28px;margin:32px 0;background:#eee5cc;border:1px solid #c9b78c;border-radius:18px}.world-emblem{display:grid;place-items:center;flex:none;width:70px;height:70px;border:1px solid #a2824b;border-radius:50%;background:#173b50}.world-emblem svg{width:45px;height:45px}.hub-world h3{font-size:29px;margin:9px 0;color:#14334e}.hub-world p{font-size:15px;line-height:1.5;margin:0 0 17px;color:#405866}.world-look-track{display:flex;gap:18px;flex-wrap:wrap}.world-look-track>span{font-size:12px;color:#6f7169;line-height:1.5}.world-look-track small{display:block;padding-left:14px;font-size:10px}.world-look-track .earned{color:#14564e;font-weight:800}.world-look-track .current{color:#173b50}.hub-book-return{display:flex;align-items:center;gap:24px;max-width:690px;margin:35px auto 0}.hub-book-return img{width:88px;height:auto;transform:rotate(-5deg);box-shadow:5px 5px 0 #c1ad85}.hub-book-return b{font-size:20px;color:#17334e}.hub-book-return p{font-size:14px;line-height:1.5}.hub-book-return .btn{min-height:50px}.hub-book-return .hint{display:block;min-height:44px;text-align:left;margin-top:9px}.world-night .hub-art-plan{background:radial-gradient(ellipse at 40% 0,#65cabc77,#07233e 80%)}.world-night .hub-art-run{background:linear-gradient(#071c36,#155967 72%,#327c78 72%)}.world-captain .hub-art-plan{background:radial-gradient(ellipse at 40% 0,#ffdb8099,#32213c 80%)}.world-captain .hub-art-run{background:linear-gradient(#291d3d,#695038 72%,#b18442 72%)}.world-night .hub-world{background:#d8e8df}.world-captain .hub-world{background:#f4e5bd}.game-court-look{display:inline-block;font-size:11px;font-weight:800;color:#3b6470;background:#e2e9dc;padding:8px 12px;border-radius:30px;margin:12px 0}.comeback-game .game-court-look{margin:0 0 16px}.world-night .game-court-look{background:#cce5db}.world-captain .game-court-look{background:#f3dfad}.book-world-unlock{background:linear-gradient(120deg,#174859,#276d65);border:1px solid #d3bc75;border-radius:13px;padding:18px;margin:18px 0;color:#fff2d3}.book-world-unlock>span{font-size:9px;letter-spacing:1.5px}.book-world-unlock strong{display:block;font-size:27px;margin:10px 0}.book-world-unlock p{font-size:14px;line-height:1.5;margin:0}.locker-replay{margin:12px 0;min-height:48px}.replay-booth h2{font-size:clamp(30px,5vw,42px);line-height:1}.replay-booth>p{font-size:16px;line-height:1.6}.replay-scene-grid{display:grid;gap:12px;margin:22px 0}.replay-scene{display:flex;gap:15px;align-items:start;text-align:left;padding:18px;background:#102d4c;border:1px solid #d0b779;border-radius:12px;color:#fff2d2;cursor:pointer}.replay-scene>span:last-child{display:grid;gap:8px}.replay-mark{display:grid;place-items:center;flex:none;width:35px;height:42px;background:#efb966;color:#13324f;font-size:26px;font-weight:900;clip-path:polygon(15% 0,85% 0,100% 20%,88% 40%,88% 100%,12% 100%,12% 40%,0 20%)}.replay-scene small{font-size:9px;letter-spacing:1px;color:#d7c28c}.replay-scene b{font-size:24px;font-family:var(--display);line-height:1.05}.replay-scene em{font-style:normal;font-size:14px;line-height:1.5;color:#d1e3df}.replay-scene strong{font-size:12px;color:#ffcb7e;line-height:1.5}.replay-scene:focus-visible{outline:3px solid #e57637;outline-offset:2px}.replay-booth #surpriseScene{width:100%;min-height:52px}
@media(max-width:700px){.game-hub{padding-top:15px}.game-hub .session-top{gap:10px;flex-wrap:wrap}.hub-heading{padding:0;margin:25px 0 22px}.hub-heading h1{font-size:45px}.hub-heading>p{position:static;font-size:15px;line-height:1.5;margin:15px 0}.hub-games{grid-template-columns:1fr;gap:24px}.hub-art{height:190px}.hub-art-plan img{height:115%;bottom:-22%;width:54%}.hub-game-copy{padding:20px}.hub-game h2{font-size:32px}.hub-game p{font-size:15px}.hub-world{padding:20px 18px;gap:14px;align-items:start}.world-emblem{width:43px;height:43px}.world-emblem svg{width:30px;height:30px}.hub-world h3{font-size:25px}.hub-world .sports-kicker{font-size:9px}.hub-world p{font-size:13px}.world-look-track{gap:12px;display:grid}.hub-book-return{gap:17px;align-items:start}.hub-book-return img{width:62px}.hub-book-return b{font-size:18px}.hub-book-return .btn{width:100%;font-size:14px;white-space:normal}.hub-book-return .hint{font-size:12px}.hub-pixel-player{left:16%;top:29%;transform:scale(.8) rotate(-7deg);transform-origin:50% 20%}.hub-pixel-hoop{right:20px;top:20px;transform:scale(.8);transform-origin:top right}.hub-art-label{font-size:9px;left:15px;bottom:12px}.hub-pixel-block{bottom:29%}.replay-scene{padding:15px;gap:12px}.replay-mark{width:30px;height:37px}.replay-scene b{font-size:23px}.game-screen:has(.game-overlay:not([hidden])){min-height:355px}.game-overlay .overlay-content{max-height:100%;overflow:auto}.come-result .btn{min-height:48px}.game-court-look{font-size:10px;line-height:1.5}.book-world-unlock strong{font-size:24px}}
@media(prefers-reduced-motion:reduce){.hub-game{transition:none}.hub-game:hover{transform:none}}.reduce-motion .hub-game{transition:none}

.hub-heading .sports-kicker,.hub-world .sports-kicker{color:#87502d}.book-world-unlock strong{font-family:var(--display);font-size:26px;line-height:1.1;margin:8px 0}.book-world-unlock{padding:13px 15px}.book-world-unlock p{font-size:13px}#dialog:has(.book-world-unlock) .unlocked-banner{display:none}#dialog:has(.book-world-unlock) .secret-catch-court{height:135px}

#dialog:has(.book-world-unlock) .secret-catch-rim{top:25px}#dialog:has(.book-world-unlock) .secret-earned-ball{top:48px;width:42px;height:42px;left:calc(50% - 21px)}#dialog:has(.book-world-unlock) .secret-catch-court>span{font-size:26px;bottom:7px}
