:root { --paper: #f5f3e8; --ink: #193f32; --muted: #748074; --line: #ced5c3; --orange: #ec622d; --orange-dark: #b8401b; --green: #244e39; --mono: 'Courier New', Courier, monospace; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Arial, Helvetica, sans-serif; -webkit-font-smoothing: antialiased; }
body::before { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 20; opacity: .045; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23000' filter='url(%23n)' opacity='.6' d='M0 0h160v160H0z'/%3E%3C/svg%3E"); }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
button, a { touch-action: manipulation; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--orange); outline-offset: 5px; }
button:disabled { cursor: default; }
svg { flex-shrink: 0; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: miter; stroke-linecap: square; }
.icon-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.shell { width: min(1240px, calc(100% - 96px)); margin-inline: auto; }
.site-header { display: flex; align-items: center; height: 104px; border-bottom: 1px solid var(--line); gap: 48px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font: 900 35px/1 var(--mono); letter-spacing: -2.5px; }
.brand canvas { width: 50px; height: 43px; image-rendering: pixelated; }
.brand-dot { color: var(--orange); }
nav { display: flex; align-items: center; gap: 30px; margin-left: 38px; }
nav a { font-size: 13px; font-weight: 600; padding: 14px 0; position: relative; }
nav a:hover { color: var(--orange-dark); }
.nav-dot { display: inline-block; margin-left: 8px; width: 5px; height: 5px; background: var(--orange); vertical-align: middle; }
.header-note { margin-left: auto; display: flex; align-items: center; gap: 9px; color: #647061; font-size: 12px; }
.header-note .icon { color: #d57834; width: 17px; }
.intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; padding: 45px 0 30px; }
.eyebrow { font: bold 10px/1.5 var(--mono); letter-spacing: 1.5px; margin: 0 0 12px; display: flex; gap: 9px; align-items: center; }
.tiny-square { width: 6px; height: 6px; background: var(--orange); }
.edition { color: #8d9686; margin-left: 8px; }
h1 { font: 700 clamp(27px, 3vw, 40px)/1.2 var(--mono); letter-spacing: -1.9px; margin: 0; }
h1 > span { color: var(--orange); }
.intro-note { color: #6a7869; font-size: 13px; line-height: 1.7; margin: 0 0 2px; }
.arcade { border: 2px solid var(--green); box-shadow: 5px 5px 0 #d4d9c6; border-radius: 5px; background: #eef0df; overflow: hidden; outline: none; }
.arcade:focus-visible { box-shadow: 0 0 0 4px #ec622d55, 5px 5px 0 #d4d9c6; }
.arcade-topline { height: 40px; display: flex; align-items: center; justify-content: space-between; padding: 0 19px; border-bottom: 2px solid var(--green); background: #e8eddb; }
.arcade-label { display: flex; gap: 8px; align-items: center; font: bold 10px var(--mono); letter-spacing: 1.7px; }
.arcade-label .icon { width: 14px; height: 14px; }
.topline-status { display: flex; gap: 7px; align-items: center; color: #697760; font: 9px var(--mono); letter-spacing: 1px; }
.status-light { width: 5px; height: 5px; background: #6c9c4c; box-shadow: 0 0 0 3px #6c9c4c12; }
.game-viewport { position: relative; aspect-ratio: 768 / 320; background: #97c9a8; overflow: hidden; touch-action: pan-y; }
.arcade[data-phase='playing'] .game-viewport { touch-action: none; cursor: pointer; }
#game-canvas { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.hero-overlay { position: absolute; inset: 0; cursor: pointer; }
.hero-overlay::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #eaf4d38a 0%, #dfeccc45 42%, transparent 65%); pointer-events: none; }
.hero-copy { position: absolute; z-index: 1; top: 15%; left: 5%; }
.hero-kicker { font: bold 10px var(--mono); letter-spacing: 2px; margin: 0 0 17px; color: #265b43; }
.hero-copy h2 { font: 900 clamp(27px, 3.8vw, 49px)/1.07 var(--mono); letter-spacing: -2.4px; margin: 0; text-shadow: 1px 2px #e3f1d680; }
.hero-copy h2 span { color: #244d35; }
.hero-copy > p:not(.hero-kicker) { font-size: 13px; line-height: 1.7; margin: 18px 0 21px; color: #345b43; }
.pixel-button { border: 2px solid #823b1b; background: var(--orange); box-shadow: inset 0 2px 0 #ffb176, inset 2px 0 0 #ff9354, 3px 3px 0 #305334; color: #fffaf0; min-height: 48px; padding: 0 21px; font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 23px; border-radius: 3px; transition: background .15s, transform .15s, box-shadow .15s; }
.pixel-button .icon { width: 18px; height: 18px; }
.pixel-button:hover { background: #f67638; transform: translate(-1px, -1px); box-shadow: inset 0 2px 0 #ffbd87, 4px 4px 0 #305334; }
.pixel-button:active { transform: translate(2px, 2px); box-shadow: inset 0 2px 0 #ffbd87, 1px 1px 0 #305334; }
.hero-hint { display: block; font: 9px var(--mono); letter-spacing: .3px; color: #446549; margin-top: 15px; }
.key-small { border: 1px solid #52725166; font-size: 11px; padding: 0 4px; margin-right: 4px; }
.hero-mascot { position: absolute; width: 34%; height: 70%; left: 59%; bottom: 12%; display: flex; align-items: center; justify-content: center; }
#hero-panda { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; z-index: 2; position: relative; }
.mascot-shadow { position: absolute; background: #17452b38; width: 67%; height: 9%; bottom: 9%; left: 20%; border-radius: 50%; filter: blur(2px); }
.mascot-bubble { position: absolute; font: bold 11px var(--mono); letter-spacing: -.1px; background: #fff9e8; top: -4%; right: 9%; border: 2px solid #436148; padding: 12px 15px; transform: rotate(3deg); z-index: 3; box-shadow: 3px 3px #38603b30; white-space: nowrap; }
.mascot-bubble::after { content: ''; position: absolute; width: 8px; height: 8px; background: #fff9e8; border-bottom: 2px solid #436148; border-right: 2px solid #436148; bottom: -6px; left: 20%; transform: skewY(35deg); }
.mascot-bubble > span { color: #e8772c; padding-left: 11px; }
.scene-caption { position: absolute; bottom: 5%; right: 3%; font: bold 9px var(--mono); letter-spacing: 1.5px; color: #f7f6d8; text-shadow: 1px 1px #255937; }
.arcade-bottomline { display: flex; align-items: center; justify-content: space-between; padding: 0 18px; height: 49px; border-top: 2px solid var(--green); }
.arcade-bottomline p { margin: 0; font: 10px var(--mono); color: #65715f; }
kbd { border: 1px solid #afbaa1; border-bottom-width: 2px; border-radius: 2px; padding: 3px 6px; background: #faf9f0; color: #3e573c; font: bold 9px var(--mono); margin-right: 3px; }
.control-separator { margin: 0 12px; color: #a2ab96; }
.sound-button { border: 0; background: transparent; display: flex; gap: 8px; align-items: center; color: #54694f; font: 10px var(--mono); padding: 8px 0 8px 12px; }
.sound-button .icon { width: 15px; height: 15px; stroke-width: 1.7; }
.sound-button:hover { color: var(--orange-dark); }
.mobile-controls { display: none; }
.game-hud { position: absolute; top: 5%; left: 3%; right: 3%; display: flex; align-items: flex-start; justify-content: space-between; pointer-events: none; z-index: 4; }
.hud-world { color: #173e32; background: #fff9e4e6; box-shadow: 3px 3px #133d302b; border: 1px solid #4461474d; padding: 10px 15px; }
.hud-world > span { display: block; font: bold 9px var(--mono); letter-spacing: 2px; margin-bottom: 5px; color: #6e795c; }
.hud-world > strong { font: bold 14px var(--mono); letter-spacing: -.5px; }
.hud-stats { display: flex; gap: 13px; align-items: center; background: #fff9e4e6; padding: 8px 10px 8px 15px; border: 1px solid #4461474d; box-shadow: 3px 3px #133d302b; }
.hud-score { display: flex; align-items: center; gap: 6px; font: bold 15px var(--mono); min-width: 42px; }
.hud-score .icon { width: 18px; color: #477733; }
.hud-hearts { display: flex; gap: 4px; }
.hud-hearts .icon { width: 14px; height: 14px; color: #e46332; }
.hud-hearts .lost { color: #b6bba6; }
.glass-button { background: transparent; border: 0; border-left: 1px solid #bec5aa; padding: 3px 0 3px 10px; color: #2c513c; display: flex; pointer-events: auto; }
.glass-button .icon { width: 18px; height: 18px; }
.world-toast { position: absolute; z-index: 3; top: 31%; left: 50%; transform: translateX(-50%); text-align: center; color: #fffde9; text-shadow: 2px 2px #214738; pointer-events: none; white-space: nowrap; animation: toast-in .4s ease-out both; }
.world-toast span { display: block; font: bold 9px var(--mono); letter-spacing: 2.5px; margin-bottom: 9px; }
.world-toast strong { font: 900 27px var(--mono); letter-spacing: -1px; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }
.modal-overlay { position: absolute; inset: 0; background: #183c3166; backdrop-filter: blur(3px); z-index: 5; display: grid; place-items: center; }
.game-dialog { background: #f8f5e7; border: 2px solid #37573c; box-shadow: 5px 5px #173d3359; padding: 24px 38px; text-align: center; width: min(90%, 430px); }
.dialog-eyebrow { font: bold 9px var(--mono); letter-spacing: 1.4px; color: #7b866b; }
.game-dialog h2 { margin: 13px 0 10px; font: 900 29px/1.13 var(--mono); letter-spacing: -1.5px; }
.game-dialog p { font-size: 12px; color: #65745e; line-height: 1.7; margin: 0 0 18px; }
.text-button { display: block; margin: 15px auto 0; background: transparent; border: 0; color: #486045; font: 10px var(--mono); text-decoration: underline; text-underline-offset: 3px; }
.text-button:hover { color: var(--orange-dark); }
.complete-overlay { background: linear-gradient(90deg, #e8f1ebe8, #e8f1ebaa 41%, transparent 65%); backdrop-filter: none; place-items: center start; padding-left: 4%; }
.complete-overlay .game-dialog { width: 42%; padding: 0; background: transparent; border: 0; box-shadow: none; text-align: left; }
.complete-overlay .game-dialog h2 { font-size: clamp(22px, 3vw, 39px); }
.complete-overlay .text-button { margin-left: 0; }
.completion-stars { display: block; font-size: 22px; color: #e07830; margin-bottom: 14px; }
.journey-track { position: absolute; bottom: 0; left: 0; width: 100%; height: 5px; z-index: 6; background: #133d334d; }
.journey-track > span { display: block; height: 100%; width: 0%; background: #f8d363; transition: width .12s linear; }
.journey-track i { position: absolute; top: 0; bottom: 0; width: 2px; background: #1c473a88; }
.journey-track i:nth-of-type(1) { left: 25%; }.journey-track i:nth-of-type(2) { left: 50%; }.journey-track i:nth-of-type(3) { left: 75%; }
.touch-jump { position: absolute; right: 5%; bottom: 11%; z-index: 4; width: 60px; height: 60px; border: 2px solid #faf8e7d9; background: #f7f4e441; color: #fffced; box-shadow: 2px 2px #1b473741; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px; touch-action: none; }
.touch-jump > span { font: bold 8px var(--mono); letter-spacing: 1px; }
.touch-jump .icon { width: 22px; height: 22px; }
.worlds-section { padding: 43px 0 0; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.section-heading h2 { font: 700 17px var(--mono); letter-spacing: -.6px; margin: 0; }
.route-label { font: 9px var(--mono); letter-spacing: 1.5px; color: #78816f; }
.route-label > span { margin: 0 10px; color: #adad92; }
.world-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.world-card { border: 1px solid #c8d1bc; background: #faf9f0; border-radius: 3px; overflow: hidden; transition: border-color .3s, box-shadow .3s; }
.world-card.current { border-color: #3e6942; box-shadow: 0 0 0 1px #3e6942; }
.world-preview { aspect-ratio: 2.8; overflow: hidden; position: relative; background: #95c9a5; border-bottom: 1px solid #c8d1bc; }
.world-preview > canvas { width: 100%; height: 125%; display: block; image-rendering: pixelated; object-fit: cover; }
.world-number { position: absolute; top: 9px; left: 10px; background: #fbf8e4e0; color: #37533e; font: bold 9px var(--mono); width: 25px; height: 22px; display: grid; place-items: center; }
.world-badge { position: absolute; right: 9px; bottom: 8px; font: bold 7px var(--mono); color: #345639; background: #f7f7dee6; padding: 5px 7px; letter-spacing: .8px; }
.world-copy { padding: 16px 16px 15px; position: relative; }
.world-copy h3 { font: bold 13px var(--mono); letter-spacing: -.3px; margin: 0 20px 7px 0; }
.world-copy p { color: #7a826f; font-size: 10px; line-height: 1.5; margin: 0; }
.world-mark { position: absolute; right: 14px; top: 12px; font-size: 20px; color: #698961; }
.world-card:nth-child(2) .world-mark { color: #5b9ba3; }.world-card:nth-child(3) .world-mark { color: #c79546; }.world-card:nth-child(4) .world-mark { color: #829ab6; }
.how-to { display: grid; grid-template-columns: 1.15fr 1fr 1fr 1fr; align-items: center; gap: 28px; margin-top: 37px; padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.how-to-title { display: flex; gap: 12px; align-items: center; }
.small-panda { width: 48px; height: 48px; background: #e6ebd8; border: 1px solid #d4dcc7; flex-shrink: 0; }
.small-panda canvas { width: 100%; height: 100%; image-rendering: pixelated; }
.how-to-title .eyebrow { font-size: 7px; letter-spacing: 1px; margin-bottom: 5px; color: #818a74; }
.how-to-title h2 { font: bold 14px var(--mono); margin: 0; letter-spacing: -.4px; white-space: nowrap; }
.how-to-item { display: flex; gap: 10px; align-items: flex-start; }
.step-number { font: 9px var(--mono); color: #a1aa90; padding-top: 2px; }
.how-to-item p { font-size: 9px; color: #818876; margin: 0; line-height: 1.8; }
.how-to-item strong { color: #52644b; font-size: 10px; font-weight: 500; }
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 96px; }
.footer-brand { font: 900 20px var(--mono); letter-spacing: -1px; display: flex; align-items: center; gap: 9px; }
.footer-brand > span { color: var(--orange); font-size: 14px; }
.footer-brand small { font: 9px var(--mono); letter-spacing: -.2px; color: #77836d; margin-left: 7px; }
.site-footer p { font: 8px var(--mono); color: #879079; letter-spacing: 1.2px; }
.site-footer > a { font: 9px var(--mono); color: #65775e; }
.site-footer > a:hover { color: var(--orange-dark); }
.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; }
[hidden] { display: none !important; }
@media (min-width: 1450px) { .intro { padding-top: 54px; padding-bottom: 34px; }.hero-copy { top: 17%; } }
@media (max-width: 1050px) { .shell { width: calc(100% - 56px); }.site-header { height: 87px; gap: 20px; }nav { margin-left: 20px; gap: 24px; }.header-note { font-size: 10px; }.intro { padding-top: 35px; }.hero-copy h2 { font-size: 35px; }.hero-copy { top: 12%; }.hero-copy > p:not(.hero-kicker) { font-size: 11px; margin: 12px 0 15px; }.hero-kicker { margin-bottom: 11px; font-size: 8px; }.pixel-button { min-height: 42px; font-size: 12px; }.hero-hint { margin-top: 12px; font-size: 8px; }.world-grid { gap: 12px; }.world-copy { padding: 13px 11px; }.world-copy h3 { font-size: 12px; }.world-copy p { font-size: 9px; }.how-to { grid-template-columns: 1fr 1fr; gap: 20px; }.how-to-item p { font-size: 11px; }.how-to-item strong { font-size: 11px; }.site-footer p { display: none; }.game-dialog { padding: 18px 25px; }.game-dialog h2 { font-size: 25px; }.completion-stars { margin-bottom: 6px; }.complete-overlay .game-dialog p { font-size: 10px; margin-bottom: 12px; }.complete-overlay .game-dialog h2 { margin: 8px 0; }.complete-overlay .dialog-eyebrow { font-size: 7px; } }
@media (max-width: 760px) { .shell { width: calc(100% - 32px); }.site-header { height: 77px; justify-content: space-between; gap: 12px; }.brand { font-size: 29px; gap: 4px; }.brand canvas { width: 41px; height: 36px; }nav { margin: 0; gap: 19px; }nav a { font-size: 11px; }nav a:last-child { display: none; }.header-note { display: none; }.intro { display: block; padding: 30px 0 23px; }.eyebrow { font-size: 8px; letter-spacing: 1px; margin-bottom: 10px; }h1 { font-size: 29px; letter-spacing: -1.6px; }.intro-note { font-size: 12px; margin-top: 12px; line-height: 1.5; }.intro-note br { display: none; }.arcade-topline { height: 33px; padding: 0 11px; }.arcade-label { font-size: 8px; letter-spacing: 1px; }.topline-status { font-size: 7px; letter-spacing: .2px; }.arcade-label .icon { width: 12px; }.game-viewport { aspect-ratio: 1.28; }#game-canvas { object-fit: cover; object-position: 26% center; }.hero-copy { left: 7%; top: 8%; }.hero-copy h2 { font-size: clamp(28px, 6.4vw, 40px); line-height: 1.08; letter-spacing: -1.8px; }.hero-kicker { font-size: 8px; margin-bottom: 12px; }.hero-copy > p:not(.hero-kicker) { margin: 12px 0 16px; font-size: 11px; }.hero-copy > p:not(.hero-kicker) br { display: none; }.hero-copy > p:not(.hero-kicker) { max-width: 225px; }.hero-hint { display: none; }.hero-mascot { width: 44%; height: 46%; left: 51%; bottom: 8%; }.mascot-bubble { font-size: 8px; padding: 8px; right: 4%; top: 0; }.mascot-bubble > span { padding-left: 4px; }.scene-caption { font-size: 6px; }.arcade-bottomline { padding: 0 11px; height: 45px; }.desktop-controls { display: none; }.mobile-controls { display: block; }.arcade-bottomline p { font-size: 8px; max-width: 225px; line-height: 1.5; }.sound-button { font-size: 8px; gap: 5px; }.sound-button .icon { width: 13px; }.worlds-section { padding-top: 30px; }.section-heading { align-items: flex-start; margin-bottom: 15px; }.section-heading h2 { font-size: 14px; max-width: 220px; line-height: 1.5; }.route-label { font-size: 7px; letter-spacing: .4px; padding-top: 4px; white-space: nowrap; }.route-label > span { margin: 0 4px; }.world-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }.world-preview { aspect-ratio: 2.2; }.world-copy h3 { font-size: 11px; }.world-copy p { font-size: 9px; min-height: 26px; }.world-mark { font-size: 17px; right: 10px; }.world-badge { font-size: 6px; right: 6px; bottom: 6px; }.world-number { width: 20px; height: 19px; font-size: 8px; }.how-to { grid-template-columns: 1fr; gap: 20px; padding: 23px 4px; margin-top: 25px; }.how-to-title { margin-bottom: 3px; }.how-to-item { padding-left: 8px; }.how-to-item p, .how-to-item strong { font-size: 11px; }.step-number { width: 24px; }.site-footer { min-height: 93px; }.footer-brand { font-size: 18px; gap: 7px; flex-wrap: wrap; }.footer-brand small { font-size: 8px; }.site-footer > a { font-size: 8px; white-space: nowrap; }.touch-jump { display: flex; }.game-hud { top: 4%; left: 4%; right: 4%; }.hud-world { padding: 8px 9px; }.hud-world > span { font-size: 7px; letter-spacing: 1px; }.hud-world > strong { font-size: 10px; }.hud-stats { gap: 8px; padding: 8px; }.hud-score { font-size: 11px; min-width: 27px; gap: 4px; }.hud-score .icon { width: 13px; height: 13px; }.hud-hearts { gap: 3px; }.hud-hearts .icon { width: 10px; height: 10px; }.glass-button { padding-left: 7px; }.glass-button .icon { width: 15px; height: 15px; }.world-toast strong { font-size: 22px; }.world-toast span { font-size: 7px; }.game-dialog { padding: 23px 15px; }.game-dialog h2 { font-size: 24px; }.game-dialog p { font-size: 11px; }.dialog-eyebrow { font-size: 7px; }.game-dialog .pixel-button { font-size: 12px; }.complete-overlay { background: linear-gradient(180deg, #e8f1ebed, #e8f1ebd9 50%, #e8f1eb00 75%); display: block; padding: 6% 6%; }.complete-overlay .game-dialog { width: 100%; text-align: left; }.complete-overlay .game-dialog h2 { font-size: 25px; }.complete-overlay .game-dialog h2 br { display: none; }.complete-overlay .game-dialog p { font-size: 10px; max-width: 190px; }.complete-overlay .game-dialog .pixel-button { min-height: 35px; padding-inline: 12px; font-size: 10px; gap: 10px; }.complete-overlay .completion-stars { display: none; }.complete-overlay .text-button { font-size: 8px; margin-top: 12px; }.complete-overlay .game-dialog h2 { max-width: 265px; }.complete-overlay .dialog-eyebrow { font-size: 6px; } }
@media (max-width: 380px) { h1 { font-size: 26px; }.hero-copy h2 { font-size: 26px; }.hero-copy > p:not(.hero-kicker) { font-size: 10px; max-width: 180px; }.hero-copy .pixel-button { min-height: 37px; font-size: 11px; padding-inline: 12px; gap: 12px; }.hero-mascot { bottom: 5%; }.topline-status { font-size: 6px; }.arcade-bottomline p { max-width: 180px; }.route-label { display: none; }.world-copy h3 { font-size: 10px; }.footer-brand small { display: none; } }
@media (pointer: coarse) { .touch-jump { display: flex; } }
@media (max-width: 760px) {
  .arcade[data-phase='complete'] .game-viewport { aspect-ratio: .78; }
  .arcade[data-phase='complete'] #game-canvas { object-position: right center; position: absolute; bottom: 0; height: 55%; }
  .complete-overlay { background: linear-gradient(180deg, #e8f1eb, #e8f1eb 38%, #e8f1eb00 68%); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; }body:not(.motion-enabled) *, body:not(.motion-enabled) *::before, body:not(.motion-enabled) *::after { transition: none !important; animation: none !important; } }
