:root{color-scheme:dark;--bg:#21143e;--yellow:#ffd363;--ink:#fff8ed;--muted:#c8bddb}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:90px}body{margin:0;background:var(--bg);color:var(--ink);font-family:ui-rounded,'Trebuchet MS',Arial,sans-serif;font-size:17px;line-height:1.65}a{color:inherit;text-decoration:none}button{font:inherit}a:focus-visible,button:focus-visible{outline:3px solid var(--yellow);outline-offset:6px}header{max-width:1320px;margin:auto;padding:26px 6%;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #ffffff20}.brand{font-size:28px;font-weight:bold;letter-spacing:-1px}.brand span{color:var(--yellow);margin-right:8px}nav{display:flex;gap:32px;font-size:15px}nav a:hover{color:var(--yellow)}.hero{max-width:1320px;margin:auto;display:grid;grid-template-columns:1fr 1fr;align-items:center;min-height:720px;padding:64px 6% 90px;gap:50px;overflow:hidden}.eyebrow,.section-label{font-size:13px;letter-spacing:2px;font-weight:bold}.eyebrow{color:var(--yellow)}h1{font-family:Georgia,serif;font-size:clamp(90px,10vw,152px);font-style:italic;line-height:1;margin:28px 0;color:var(--yellow);font-weight:bold;letter-spacing:-7px}h1 span{display:block;font-family:'Trebuchet MS',sans-serif;font-size:clamp(28px,3.7vw,46px);font-style:normal;color:var(--ink);line-height:1.2;letter-spacing:-1px;margin-top:18px}.intro{font-size:21px;color:var(--muted);line-height:1.6;margin:26px 0}.button{display:inline-block;background:var(--yellow);color:#21143e;padding:14px 25px;border-radius:100px;font-weight:bold;font-size:16px}.button:hover{background:#ffe69b}.credit{font-size:13px;color:var(--muted);margin-top:24px}.cover-stage{position:relative;display:flex;align-items:center;justify-content:center;min-height:520px}.cover{width:min(85%,360px);height:auto;box-shadow:18px 28px 65px #07031290;transform:rotate(3deg);border-radius:4px;position:relative}.orbit{position:absolute;width:470px;height:470px;border:1px solid #ffd3633a;border-radius:50%;transform:rotate(-30deg) scaleX(1.15)}.spark{position:absolute;color:var(--yellow);font-size:65px;z-index:1}.s1{top:-8px;left:10px}.s2{right:-4px;bottom:12px;font-size:80px}.cover-label{position:absolute;bottom:-48px;text-align:center;font-size:14px;color:var(--muted)}.section{padding:85px max(6%,calc((100vw - 1160px)/2))}.section-label{color:var(--muted);margin-bottom:35px}h2{font-size:clamp(32px,4vw,49px);line-height:1.2;letter-spacing:-1.5px;margin:0 0 28px}h2 em{color:var(--yellow);font-family:Georgia,serif;font-weight:normal}.story{background:#2b1c4b}.story-grid,.author-grid{display:grid;grid-template-columns:1fr 1fr;gap:80px}.story p{margin:0 0 20px;color:#e3dced;max-width:550px}.themes{display:flex;gap:10px;flex-wrap:wrap;margin-top:30px}.themes span{font-size:14px;padding:6px 15px;border:1px solid #a596bb65;border-radius:30px}.gallery{background:#f6f1e7;color:#25183d}.gallery .section-label{color:#6c5c80}.gallery-heading{display:flex;justify-content:space-between;align-items:end;margin-bottom:28px;gap:25px}.gallery-heading h2{margin-bottom:0}.gallery-heading p{font-size:16px;color:#675878;margin:0}.gallery-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}.scene{padding:0;border:0;background:transparent;color:inherit;text-align:left;cursor:pointer;min-width:0}.photo{aspect-ratio:4/3;overflow:hidden;position:relative;border-radius:7px;background:#ddd5c6}.photo img{display:block;width:100%;height:100%;object-fit:cover}.scene>span{display:flex;gap:12px;align-items:center;font-size:15px;margin-top:17px}.scene b{font-size:13px;color:#796a88;font-weight:normal}.scene i{font-style:normal;font-size:24px;margin-left:auto}.scene:hover .photo{outline:3px solid #9271b4;outline-offset:4px}.gallery-note{font-size:13px;color:#786987;margin:24px 0 0}.author{background:#241641}.author-grid h2{font-size:clamp(46px,6vw,76px)}.author-note{color:var(--muted);font-size:15px}.bio p{color:#e0d6eb;margin:0 0 22px}.book-data{display:grid;grid-template-columns:1fr 1fr;gap:25px;border-top:1px solid #ffffff25;padding-top:28px;margin-top:32px}.book-data small{display:block;font-size:12px;letter-spacing:1px;color:var(--muted)}.book-data strong{font-weight:normal;font-size:16px}.closing{text-align:center;padding:65px 20px;background:#302052}.closing>span{color:var(--yellow);font-size:45px}.closing p{font-family:Georgia,serif;font-size:clamp(26px,4vw,40px);line-height:1.4;margin:20px 0 30px}.closing a{font-size:14px;border-bottom:1px solid #a89abf;padding-bottom:4px}footer{max-width:1320px;margin:auto;padding:45px 6%;display:flex;justify-content:space-between;gap:30px}footer p{font-size:12px;color:var(--muted);line-height:1.8}footer .brand{font-size:24px}dialog{width:min(92vw,1000px);max-height:94dvh;background:#21143e;color:var(--ink);border:1px solid #726086;border-radius:12px;padding:22px}dialog::backdrop{background:#08030ed9}.dialog-bar{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:16px}.dialog-bar h2{font-size:20px;letter-spacing:0;margin:0}.dialog-bar button{background:var(--yellow);border:0;color:#21143e;border-radius:25px;padding:8px 15px;cursor:pointer;font-size:14px}.dialog-photo{position:relative;aspect-ratio:4/3;overflow:hidden}.dialog-photo img{display:block;width:100%;height:100%;object-fit:contain}@media(max-width:760px){header{padding:20px 6%}nav{gap:14px;font-size:13px}.brand{font-size:24px}.hero{grid-template-columns:1fr;padding-top:40px;gap:60px;min-height:0}.hero-copy{text-align:center}h1{font-size:110px}.intro{font-size:18px}.cover-stage{min-height:440px;max-width:400px;width:100%;margin:auto}.cover{max-width:295px}.orbit{width:350px;height:350px}.spark{font-size:45px}.s1{left:0}.s2{right:0;font-size:60px}.section{padding:55px 6%}.section-label{margin-bottom:25px}.story-grid,.author-grid{grid-template-columns:1fr;gap:15px}.gallery-heading{display:block}.gallery-heading p{margin-top:18px}.gallery-grid{grid-template-columns:1fr;gap:30px}.scene>span{font-size:16px}.photo{max-height:390px}.author-grid h2{font-size:60px}.book-data{gap:20px}.closing{padding:45px 6%}footer{flex-direction:column;gap:12px}footer p{font-size:13px;margin:0}.dialog-bar h2{font-size:16px}.dialog-bar button{flex-shrink:0}dialog{padding:15px}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
.game-section{background:#1b1232}.game-heading{display:flex;align-items:end;justify-content:space-between;gap:25px;margin-bottom:30px}.game-heading h2{margin-bottom:0}.game-heading p{color:var(--muted);font-size:16px;margin:0}.game-shell{border:1px solid #8b6ac366;border-radius:18px;overflow:hidden;background:#241a43;box-shadow:0 20px 70px #07031050}.game-stats{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:20px 25px;border-bottom:1px solid #ffffff20}.game-stats small{display:block;font-size:12px;letter-spacing:1px;color:var(--muted)}.game-stats strong{font-size:27px;line-height:1.4;color:var(--yellow)}.game-stats button{background:transparent;border:1px solid #ad98ce;color:var(--ink);border-radius:30px;padding:9px 17px;font-size:14px;cursor:pointer}.game-stats button:disabled{opacity:.4;cursor:default}.game-stage{position:relative;aspect-ratio:800/460}#petit-game{display:block;width:100%;height:100%;touch-action:none}.game-overlay{position:absolute;inset:0;background:#1b1232b8;display:flex;align-items:center;justify-content:center;text-align:center;flex-direction:column;padding:20px}.game-overlay[hidden]{display:none}.game-overlay>span{color:var(--yellow);font-size:48px}.game-overlay h3{font-size:28px;line-height:1.25;margin:12px 0}.game-overlay p{font-size:16px;margin:0 0 22px;color:#ded2ef}.game-overlay button{border:0;cursor:pointer}.game-overlay button:disabled{opacity:.6;cursor:wait}.game-controls{display:flex;gap:12px;padding:18px 24px;justify-content:center;background:#302151}.game-controls button{border:1px solid #a18bbf;background:#3f2e62;color:white;min-height:52px;padding:10px 20px;border-radius:12px;cursor:pointer;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;font-size:16px}.game-controls #open-book{background:var(--yellow);color:#21143e;border-color:var(--yellow);min-width:170px;font-weight:bold}.game-controls button.pressed{filter:brightness(1.22);box-shadow:inset 0 0 0 3px #ffffff70}.game-toast{position:absolute;top:18px;left:50%;transform:translateX(-50%);font-size:16px;color:var(--yellow);text-align:center;pointer-events:none}.game-help{font-size:14px;color:var(--muted);max-width:760px;margin:20px auto 0;text-align:center}.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:760px){header{flex-wrap:wrap;gap:12px}nav{flex-wrap:wrap;gap:14px}.game-heading{display:block}.game-heading p{margin-top:18px}.game-stats{padding:12px;gap:8px;flex-wrap:wrap}.game-stats small{font-size:10px;letter-spacing:0}.game-stats strong{font-size:23px}.game-stats button{padding:7px 10px;font-size:13px}.game-controls{padding:12px 8px;gap:8px}.game-controls button{padding:10px 12px;font-size:14px;flex:1}.game-controls #open-book{min-width:0;flex:1.4}.game-controls button span:not([aria-hidden]){display:none}.game-overlay>span{font-size:25px}.game-overlay h3{font-size:21px;margin:8px 0}.game-overlay p{font-size:13px;line-height:1.4;margin-bottom:12px}.game-overlay button{font-size:14px;padding:10px 18px}.game-toast{top:8px;font-size:13px;width:90%}}
#game-tally{display:block;font-size:13px;color:var(--muted)}.auto-book{display:flex;align-items:center;justify-content:center;text-align:center;min-width:160px;font-size:14px;line-height:1.3;color:var(--yellow)}@media(max-width:760px){.auto-book{min-width:90px;font-size:12px}}
.game-phase-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:13px 25px;background:#372456;border-bottom:1px solid #ffffff20;font-size:14px}.game-phase-bar strong{font-size:15px;color:var(--yellow)}#game-boost{color:var(--muted);font-size:13px}#game-boost.active{color:#73fff0}@media(max-width:760px){.game-phase-bar{padding:11px 12px;gap:5px}.game-phase-bar strong{font-size:13px}#game-boost{font-size:12px}.game-overlay h3{font-size:19px}.game-overlay p{font-size:12px}}
.game-actions{display:flex;gap:8px;flex-wrap:wrap}.game-shell:fullscreen,.game-shell:is(:-webkit-full-screen),.game-shell.game-immersive{width:100%;height:100dvh;max-height:none;border:0;border-radius:0;display:flex;flex-direction:column;background:#1b1232;box-shadow:none}.game-shell.game-immersive{position:fixed;inset:0;z-index:10000}.game-shell:fullscreen .game-stage,.game-shell:is(:-webkit-full-screen) .game-stage,.game-shell.game-immersive .game-stage{flex:1;min-height:0;aspect-ratio:auto}.game-shell:fullscreen #petit-game,.game-shell:is(:-webkit-full-screen) #petit-game,.game-shell.game-immersive #petit-game{height:100%;width:100%;object-fit:contain}.game-shell:fullscreen .game-phase-bar,.game-shell:fullscreen .game-stats,.game-shell:fullscreen .game-controls,.game-shell.game-immersive .game-phase-bar,.game-shell.game-immersive .game-stats,.game-shell.game-immersive .game-controls{flex-shrink:0}.game-shell:fullscreen .game-overlay,.game-shell.game-immersive .game-overlay{padding:15px}.game-shell:fullscreen .game-controls,.game-shell.game-immersive .game-controls{padding-bottom:max(10px,env(safe-area-inset-bottom))}@media(max-height:550px){.game-shell:fullscreen .game-phase-bar,.game-shell.game-immersive .game-phase-bar{padding:5px 16px}.game-shell:fullscreen .game-stats,.game-shell.game-immersive .game-stats{padding:5px 16px}.game-shell:fullscreen .game-stats strong,.game-shell.game-immersive .game-stats strong{font-size:20px}.game-shell:fullscreen .game-controls,.game-shell.game-immersive .game-controls{padding:5px 12px}.game-shell:fullscreen .game-controls button,.game-shell.game-immersive .game-controls button{min-height:40px;padding:6px 15px}.game-shell:fullscreen .game-overlay>span,.game-shell.game-immersive .game-overlay>span{display:none}.game-shell:fullscreen .game-overlay h3,.game-shell.game-immersive .game-overlay h3{font-size:20px;margin:6px 0}}
#game-combo{font-size:14px;color:var(--muted)}#game-combo.active{color:var(--yellow);font-weight:bold}.game-personal-record strong{color:#85eddf}.game-stats{flex-wrap:wrap}.game-actions{margin-left:auto}.game-personal-record{min-width:85px}@media(max-width:760px){.game-actions{width:100%;margin-left:0;justify-content:flex-end}.game-actions button{flex:1}.game-personal-record{min-width:70px}#game-combo{font-size:12px}}@media(max-height:550px){.game-shell:fullscreen .game-actions,.game-shell.game-immersive .game-actions{width:auto}.game-shell:fullscreen .game-actions button,.game-shell.game-immersive .game-actions button{font-size:12px;padding:6px 9px}}
.ranking{color:#39284d;color-scheme:light;margin-top:36px;padding:28px;border:1px solid #ddd3ef;border-radius:24px;background:#fffdf9}.ranking-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.ranking h3{font-family:Georgia,serif;font-size:clamp(24px,4vw,34px);margin:8px 0}.ranking p{font-size:15px;line-height:1.6;color:#625773}.ranking button{border:1px solid #cbbde0;border-radius:12px;padding:10px 16px;background:#f2ecfa;color:#493464;cursor:pointer}.ranking-scroll{overflow-x:auto}.ranking table{width:100%;border-collapse:collapse;text-align:left}.ranking th,.ranking td{padding:14px 10px;border-bottom:1px solid #eee5f6}.ranking th{font-size:13px;color:#76648b}.ranking td:last-child,.ranking th:last-child{text-align:right;font-weight:700}.ranking tbody tr:first-child{color:#75519e;background:#f8f2ff}#score-form[hidden]{display:none}#score-form{width:min(480px,100%);margin:8px auto;text-align:left}#score-form label{display:block;font-size:14px;font-weight:700;margin-bottom:8px}.score-entry{display:flex;gap:8px}.score-entry input{min-width:0;flex:1;border:1px solid #bcabd2;border-radius:12px;padding:12px;font:inherit;color:#39284d;background:white}.score-entry .button{font-size:13px;padding:12px 16px;white-space:nowrap}#score-status{font-size:13px;line-height:1.4;margin:8px 0}.game-overlay.game-ended{overflow:auto;justify-content:flex-start;padding-top:20px}.game-overlay.game-ended>span{font-size:22px}.game-overlay.game-ended h3{margin:6px 0}.game-overlay.game-ended>p{margin:8px 0}.game-overlay.game-ended #game-start{margin-top:8px}@media(max-width:520px){.ranking{padding:18px}.score-entry{flex-wrap:wrap}.score-entry .button{width:100%}.game-overlay.game-ended{padding:12px}.game-overlay.game-ended h3{font-size:22px}.game-overlay.game-ended>p{font-size:12px}.ranking-heading{align-items:flex-start}}

.ranking .section-label{color:#76648b}.ranking tbody td{color:#39284d}.ranking tbody tr:first-child td{color:#75519e}
/* Holding a game control must move Petit instead of selecting text. */
.game-shell,.game-shell *{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}.game-shell button,.game-controls,.auto-book{touch-action:none;-webkit-tap-highlight-color:transparent}.game-shell input,.game-shell textarea{-webkit-user-select:text;user-select:text;-webkit-touch-callout:default;touch-action:auto}

/* The speed status always occupies the same row, so pickups cannot resize the stage. */
.game-phase-bar{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);grid-template-rows:auto;align-items:center}.game-phase-bar strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#game-combo{white-space:nowrap;font-variant-numeric:tabular-nums}#game-boost{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:right;line-height:22px;height:22px;font-variant-numeric:tabular-nums}@media(max-width:760px){.game-phase-bar{grid-template-columns:minmax(0,1fr) auto;grid-template-rows:22px 22px;row-gap:5px}#game-boost{grid-column:1/-1;text-align:left}}

#runner-jump,#runner-duck{display:none}.runner-controls #move-left,.runner-controls #move-right{display:none}.runner-controls #runner-jump,.runner-controls #runner-duck{display:block;flex:1}.runner-controls .auto-book{display:none}.runner-controls #runner-jump{background:#4a3969}.runner-controls #runner-duck{background:#4a3969}

#game-phase-picker{width:min(330px,100%);margin:0 0 14px;text-align:left}#game-phase-picker[hidden]{display:none}#game-phase-picker label{display:block;font-size:12px;color:#ded2ef;margin-bottom:5px}#game-phase-select{width:100%;padding:10px 12px;border:1px solid #ad98ce;border-radius:12px;color:#fff4c9;background:#302151;font:inherit;touch-action:auto} .game-overlay:has(#game-phase-picker:not([hidden]))>span{display:none}.game-overlay{overflow:auto}@media(max-width:760px){#game-phase-picker{margin-bottom:10px}#game-phase-select{padding:8px 10px;font-size:14px}.game-overlay:has(#game-phase-picker:not([hidden])){padding:12px}}
