@import url('./fonts.css');
:root{--paper:#fff9ed;--ink:#272438;--coral:#ff7967;--lime:#bee987;--lilac:#c7b2f2;--yellow:#ffda73;--line:#dfd8cc;--muted:#6e6874;--font:'Nunito Sans',system-ui,sans-serif;--display:'Dela Gothic One','Arial Black',sans-serif;--ease:cubic-bezier(.2,.8,.2,1)}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:24px}body{margin:0;background:var(--paper);color:var(--ink);font:600 15px/1.5 var(--font);-webkit-font-smoothing:antialiased}button,input{font:inherit;color:inherit}button{cursor:pointer;transition:background .18s,transform .18s var(--ease),box-shadow .18s,border-color .18s;touch-action:manipulation}button,a{-webkit-tap-highlight-color:transparent}button:disabled{cursor:not-allowed;opacity:.45}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #7350bc;outline-offset:5px}button:active:not(:disabled){transform:translateY(3px)!important;box-shadow:0 1px 0 var(--ink)!important}a{color:inherit;text-decoration:none}.hidden{display:none!important}.ui-icon{display:inline-block;width:22px;height:22px;flex:0 0 auto;vertical-align:middle;pointer-events:none}.page-grain{position:fixed;inset:0;z-index:30;pointer-events:none;opacity:.025;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='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23000' filter='url(%23n)' opacity='.6' d='M0 0h160v160H0z'/%3E%3C/svg%3E")}
.site-header{max-width:1400px;margin:0 auto;min-height:104px;padding:20px 40px;display:flex;align-items:center;justify-content:space-between;gap:24px;border-bottom:2px solid var(--ink)}.wordmark{display:flex;gap:11px;align-items:center;font:400 26px/.94 var(--display);letter-spacing:-1px;flex-shrink:0}.wordmark-small{display:block;font-size:12px;letter-spacing:1.4px;margin-top:6px}.brand-face{width:42px;height:48px;position:relative;border:2.5px solid var(--ink);border-radius:48% 48% 35% 35%;background:var(--lime);transform:rotate(-10deg);box-shadow:3px 3px 0 var(--ink);display:flex;justify-content:center;align-items:center;gap:9px}.brand-face i{width:5px;height:9px;border-radius:50%;background:var(--ink)}.brand-face:after{content:'';position:absolute;bottom:10px;width:10px;height:5px;border-bottom:2px solid;border-radius:50%}.alpha-tag{font:900 8px var(--font);letter-spacing:1px;align-self:flex-start;transform:rotate(7deg);padding:5px 7px;background:var(--lilac);border:1.5px solid var(--ink);border-radius:5px;margin:0 0 0 3px}.top-nav{display:flex;gap:5px;padding:5px;border:1.5px solid var(--ink);border-radius:16px;background:#fffef9;box-shadow:0 3px 0 #27243818}.nav-item{border:0;border-radius:10px;background:transparent;display:flex;gap:8px;align-items:center;justify-content:center;font-size:13px;font-weight:900;padding:11px 16px;white-space:nowrap}.nav-item .ui-icon{width:19px;height:19px}.nav-item:hover{background:#f0e9f7}.nav-item.active{background:var(--ink);color:#fff9ed}.header-actions{display:flex;align-items:center;gap:10px}.icon-button,.lang-button{height:43px;min-width:43px;border:1.5px solid var(--ink);border-radius:12px;background:#fffef9;display:flex;align-items:center;justify-content:center;gap:5px;box-shadow:0 3px 0 #2724381c}.icon-button:hover,.lang-button:hover{background:var(--yellow)}.icon-button.on{background:var(--lime)}.sound-slash{display:none}.lang-button{padding:0 10px;font-size:12px;font-weight:900}.lang-button .ui-icon{width:14px;height:14px}
main{max-width:1320px;padding:0 40px;margin:auto}.intro{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:25px;align-items:center;padding:42px 0 35px}.eyebrow{display:flex;align-items:center;gap:9px;font-size:10px;font-weight:900;letter-spacing:1.4px;text-transform:uppercase}.mini-star{color:#ea6b54;display:inline-flex}.mini-star .ui-icon{width:22px;height:22px}h1{position:relative;display:inline-block;font:400 clamp(32px,3.6vw,49px)/1.24 var(--display);letter-spacing:-1.5px;margin:17px 0 17px}.title-second{color:#e66657}.title-spark{display:none}.intro-copy{font-size:14px;line-height:1.65;color:var(--muted);max-width:640px;margin:0}.intro-sticker{width:290px;height:235px;position:relative;background:url('./hero.svg') center/contain no-repeat}.intro-sticker>*{display:none}.intro-badges{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}.intro-badges>span{display:inline-flex;align-items:center;gap:6px;background:#fffef8;border:1px solid #d6cebf;border-radius:8px;padding:5px 9px;font-size:10px;font-weight:900}.intro-badges .ui-icon{width:14px;height:14px}
.game-section{scroll-margin-top:18px}.game-heading{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:17px}.level-heading{display:flex;align-items:center;gap:15px;min-width:0;flex:1}.level-heading>div{min-width:0}.level-number{display:grid;place-items:center;min-width:78px;height:52px;background:var(--lilac);border:2px solid var(--ink);border-radius:13px;font-size:13px;font-weight:900;font-variant-numeric:tabular-nums;transform:rotate(-3deg);box-shadow:0 3px 0 var(--ink)}.overline{display:block;font-size:9px;font-weight:900;letter-spacing:1px;color:var(--muted);margin-bottom:4px}.level-heading h2{font:400 19px/1.4 var(--display);letter-spacing:-.5px;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.game-heading-actions{display:flex;align-items:center;gap:10px;flex-shrink:0}.character-button,.small-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1.5px solid var(--ink);border-radius:11px;background:#fffefa;min-height:43px;padding:9px 13px;font-size:12px;font-weight:900;box-shadow:0 3px 0 #2724381c}.character-button:hover,.small-button:hover{background:#eee4f9}.character-button .ui-icon:last-child{width:14px;height:14px}.avatar-dot{position:relative;display:block;width:22px;height:26px;border:1.8px solid var(--ink);border-radius:50% 50% 35% 35%;background:var(--lime);transform:rotate(-8deg)}.avatar-dot:after{content:'••';position:absolute;left:3px;top:2px;font:bold 13px monospace;letter-spacing:3px}.small-button .ui-icon{width:19px;height:19px}.game-frame{position:relative;border:3px solid var(--ink);border-radius:23px;overflow:hidden;isolation:isolate;background:#c6b3e0;box-shadow:0 9px 0 var(--ink),0 18px 30px #27243815}.game-frame canvas{width:100%;display:block;aspect-ratio:2.16;outline:none;touch-action:pan-y}.game-frame:fullscreen{border:0;border-radius:0;box-shadow:none;display:grid;place-items:center;background:var(--ink)}.game-frame:fullscreen canvas{width:100%;height:100%;max-height:100dvh;aspect-ratio:auto}.game-topbar{position:absolute;top:17px;left:17px;right:17px;display:flex;justify-content:space-between;align-items:start;gap:10px;pointer-events:none;z-index:4}.hud-left,.hud-right{display:flex;align-items:center;gap:8px}.hud-pill{min-height:36px;display:inline-flex;align-items:center;gap:7px;background:#fffcf2ed;border:1.5px solid var(--ink);padding:7px 10px;border-radius:10px;font-size:12px;font-weight:900;box-shadow:0 3px 0 #2724381f;white-space:nowrap;font-variant-numeric:tabular-nums}.hud-pill .ui-icon{width:17px;height:17px}.hud-clock{display:flex}.hud-pill b{font-weight:900}.coin-pill{background:#ffe69aeF}.precision-level #route-display{background:#cef0a8ef}.hud-round{pointer-events:auto;width:36px;height:36px;display:grid;place-items:center;padding:0;border:1.5px solid var(--ink);border-radius:10px;background:#fffcf2ed;box-shadow:0 3px 0 #2724381f}.hud-round .ui-icon{width:18px;height:18px}.hud-round:hover{background:var(--yellow)}
.start-overlay{position:absolute;left:5%;top:50%;transform:translateY(-44%) rotate(-2deg);width:350px;max-width:76%;max-height:calc(100% - 100px);overflow:auto;padding:24px;background:#fffbedf5;border:2.5px solid var(--ink);border-radius:17px;box-shadow:7px 7px 0 var(--ink);z-index:3;animation:card-enter .4s var(--ease)}.start-tag{display:inline-block;max-width:100%;font-size:8px;font-weight:900;letter-spacing:.8px;padding:5px 8px;border:1.5px solid var(--ink);border-radius:5px;background:var(--yellow)}.start-overlay h3{font:400 29px/1.2 var(--display);letter-spacing:-.8px;margin:17px 0 13px}.start-overlay p{font-size:12px;line-height:1.65;color:#625b65;margin:0 0 18px}.start-footnote{display:block;font-size:9px;text-align:center;color:var(--muted);margin-top:13px}.start-button{width:100%;justify-content:space-between}.primary-button,.secondary-button,.dark-button{display:inline-flex;justify-content:center;align-items:center;gap:8px;min-height:45px;padding:12px 17px;border:2px solid var(--ink);border-radius:11px;font-size:12px;font-weight:900;line-height:1.35;box-shadow:0 4px 0 var(--ink);text-align:center}.primary-button{background:var(--coral)}.primary-button:hover{background:#ff9987;transform:translateY(-2px);box-shadow:0 6px 0 var(--ink)}.secondary-button{background:#fffdf7}.secondary-button:hover{background:#eee3fb;transform:translateY(-2px);box-shadow:0 6px 0 var(--ink)}.dark-button{background:var(--ink);color:#fff9ed}.dark-button:hover{background:#464058;transform:translateY(-2px)}.primary-button .ui-icon,.secondary-button .ui-icon,.dark-button .ui-icon{width:19px;height:19px}.text-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;border:0;background:none;font-size:11px;font-weight:800;color:var(--muted);padding:8px;line-height:1.5}.text-button .ui-icon{width:16px;height:16px}.text-button:hover{color:var(--ink);text-decoration:underline}.precision-instructions{display:flex;gap:10px;align-items:start;padding:13px 16px;margin-top:20px;border:1.5px solid #c9bcdf;background:#eee5f6;border-radius:12px;font-size:12px;line-height:1.6}.precision-instructions .ui-icon{width:20px;height:20px;color:#77569e;margin-top:1px}.game-footer{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:21px 2px 0}.keyboard-help{display:flex;gap:17px;font-size:10px;color:var(--muted)}.keyboard-help>span{display:flex;align-items:center;gap:5px}.keyboard-help>span>span{margin-left:3px}kbd{display:inline-grid;place-items:center;border:1px solid #c7beb0;border-radius:5px;box-shadow:0 2px 0 #d5ccbc;background:#fffdf7;min-width:20px;min-height:23px;padding:2px 5px;font:900 9px var(--font);color:var(--ink)}.footer-best{display:flex;align-items:center;gap:7px;font-size:11px;font-weight:800;color:var(--muted)}.best-dot{width:7px;height:7px;border-radius:50%;background:#7caf5e}
.touch-controls{display:none;position:absolute;left:17px;right:17px;bottom:18px;pointer-events:none;align-items:end;justify-content:space-between;z-index:4}.touch-direction,.touch-abilities{display:flex;align-items:end;gap:10px}.touch-controls button{pointer-events:auto;touch-action:none;user-select:none;-webkit-user-select:none;display:grid;place-items:center;width:57px;height:53px;border:2.5px solid var(--ink);border-radius:16px;background:#fff9ebdf;box-shadow:0 4px 0 #27243888;backdrop-filter:blur(4px);padding:0}.touch-controls button .ui-icon{width:25px;height:25px}.touch-controls .touch-jump{width:66px;height:64px;background:#bfe98feF}.touch-controls .touch-jump .ui-icon{width:33px;height:33px}.touch-controls .touch-dash{width:45px;height:45px;background:#cbb5f3ef}.touch-controls button.pressed{background:var(--yellow);transform:translateY(4px);box-shadow:none}.touch-device .game-frame.running .touch-controls{display:flex}.rule-notice{position:absolute;top:64px;left:50%;transform:translateX(-50%);max-width:78%;display:flex;align-items:center;gap:10px;padding:11px 15px;border:1.5px solid var(--ink);border-radius:11px;background:#fff5d5f2;box-shadow:0 3px 0 #27243822;pointer-events:none;z-index:4;animation:notice-enter .25s var(--ease)}.rule-notice>span{color:#c76845;display:flex}.rule-notice div{display:flex;flex-direction:column;gap:3px}.rule-notice b{font-size:11px;line-height:1.45}.rule-notice div>span{font-size:10px;color:#6d6253}.floating-message{position:absolute;bottom:16%;left:50%;transform:translateX(-50%) rotate(-2deg);max-width:85%;white-space:nowrap;pointer-events:none;border:2px solid var(--ink);border-radius:10px;box-shadow:3px 3px 0 var(--ink);background:var(--yellow);padding:10px 17px;font-size:13px;font-weight:900;z-index:4;animation:notice-enter .2s var(--ease)}
.pause-overlay,.result-overlay{position:absolute;inset:0;z-index:7;display:grid;place-items:center;background:#27243860;backdrop-filter:blur(7px)}.pause-card,.result-card{position:relative;width:460px;max-width:88%;max-height:calc(100% - 36px);overflow:auto;text-align:center;border:2.5px solid var(--ink);border-radius:21px;background:var(--paper);padding:26px;box-shadow:7px 7px 0 var(--ink);animation:modal-enter .3s var(--ease)}.pause-card .eyebrow{justify-content:center;font-size:9px}.pause-card h3{font:400 34px/1.25 var(--display);margin:14px 0}.pause-card p{font-size:14px;color:var(--muted);margin:0 0 22px}.pause-art{display:flex;justify-content:center;color:#73589c;margin:0 0 14px}.pause-art .ui-icon{width:53px;height:53px}.result-eyebrow{font-size:9px;font-weight:900;letter-spacing:.8px}.result-stars{display:flex;justify-content:center;align-items:center;gap:9px;color:#e6a740;margin:15px 0 7px}.result-stars .ui-icon{width:33px;height:33px;stroke:var(--ink);stroke-width:1.5}.result-stars .earned{fill:#ffda73;animation:star-pop .4s var(--ease) both}.result-stars .unearned{fill:#e9e1d5;color:#b5aaa0;opacity:.5}.result-card h3{font:400 25px/1.25 var(--display);letter-spacing:-.6px;margin:10px 0 19px}.result-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:19px}.result-stats>div{display:flex;flex-direction:column;gap:3px;background:#fffef8;border:1.5px solid #d6ccbd;border-radius:11px;padding:11px 6px}.result-stats strong{font-size:23px;font-weight:900;font-variant-numeric:tabular-nums;line-height:1.2}.result-stats span{font-size:10px;color:var(--muted)}.result-buttons{display:grid;grid-template-columns:1.1fr 1fr;gap:10px;margin-bottom:13px}.result-buttons button{font-size:11px;padding:11px;min-width:0}.result-card>.text-button{font-size:10px}.replay-label{position:absolute;z-index:5;top:17px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:8px;background:var(--ink);color:var(--paper);padding:9px 12px;border-radius:10px;font-size:9px;font-weight:900;letter-spacing:.6px}.replay-label>span:first-child{color:var(--coral);animation:recording 1s infinite}.replay-label button{border:0;background:none;color:inherit;display:flex;padding:0;margin-left:5px}.replay-label .ui-icon{width:17px;height:17px}
.worlds-section{margin-top:43px}.section-title{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:17px}.section-title h2{display:flex;align-items:center;gap:9px;font:400 21px/1.4 var(--display);letter-spacing:-.5px;margin:0}.section-title h2 .ui-icon{width:25px;height:25px;color:#b57756}.section-title>span{font-size:10px;font-weight:900;letter-spacing:.5px;color:var(--muted)}.world-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:18px}.world-group{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:20px;border:1.5px solid var(--ink);border-radius:12px;padding:13px 17px;background:#e0eecf;margin-top:13px;box-shadow:0 3px 0 #27243815}.world-group.hard{background:#e1d5f5}.world-group.expert{background:#ffd6c9}.world-group strong{display:flex;align-items:center;gap:9px;font-size:12px;font-weight:900;letter-spacing:.6px}.world-group span{font-size:11px;color:#625d66;line-height:1.5}.world-group .ui-icon{width:20px;height:20px}.world-card{position:relative;grid-column:span 2;min-width:0;display:block;text-align:left;padding:0;overflow:hidden;border:2px solid #cfc5b8;border-radius:17px;background:#fffdf7;box-shadow:0 4px 0 #d8cebf}.world-card:hover{transform:translateY(-5px) rotate(-.4deg);border-color:var(--ink);box-shadow:0 8px 0 #c7b9d7}.world-card.selected{border-color:var(--ink);box-shadow:0 5px 0 var(--ink)}.world-card.selected .world-arrow{background:var(--coral);border-color:var(--ink)}.world-preview{display:block;width:100%;height:155px;object-fit:cover;background:#d6c5df;border-bottom:2px solid #27243830}.world-info{padding:16px;display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:94px}.world-info>div{min-width:0}.world-info h3{font-size:14px;font-weight:900;line-height:1.35;margin:0 0 6px;letter-spacing:-.25px}.world-info p{font-size:11px;font-weight:600;line-height:1.45;color:var(--muted);margin:0}.world-number{display:inline-block;font-size:10px;opacity:.55;margin-right:7px;font-variant-numeric:tabular-nums}.world-arrow{display:grid;place-items:center;width:32px;height:32px;flex-shrink:0;border:1.5px solid #d3c7b8;border-radius:10px;background:#fff9ed;transition:background .2s,transform .2s}.world-arrow .ui-icon{width:18px;height:18px}.world-card:hover .world-arrow{transform:rotate(-25deg)}.world-new,.world-check{position:absolute;top:11px;padding:5px 8px;border:1.5px solid var(--ink);border-radius:7px;background:#eee2fd;font-size:9px;font-weight:900;letter-spacing:.3px;box-shadow:0 2px 0 #27243833}.world-new{left:11px;transform:rotate(-3deg)}.world-check{right:11px;display:flex;align-items:center;gap:4px;background:var(--lime)}.world-check .ui-icon{width:13px;height:13px}.world-card.expert-card .world-new{background:#ffd0bd}
.workshop-panel{margin-top:33px;border:2.5px solid var(--ink);border-radius:21px;background:#e7ddf6;padding:28px;box-shadow:0 6px 0 var(--ink);scroll-margin-top:24px}.workshop-header{display:flex;align-items:center;justify-content:space-between;gap:20px}.workshop-header h2{font:400 25px/1.3 var(--display);letter-spacing:-.7px;margin:10px 0}.workshop-panel>p{font-size:13px;line-height:1.65;max-width:760px;color:#655c73;margin:12px 0 0}.builder-layout{display:grid;grid-template-columns:1fr 1fr;gap:25px;margin-top:26px}.field-label{display:block;font-size:10px;font-weight:900;letter-spacing:.8px;margin:0 0 12px}.law-options,.tool-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.law-option,.tool-option{position:relative;min-width:0;border:1.5px solid #c1afd7;border-radius:13px;background:#fffafedf;padding:15px 12px;display:grid;grid-template-columns:35px 1fr;gap:5px 9px;text-align:left;align-items:start;box-shadow:0 2px 0 #c2afd72e}.law-option:hover,.tool-option:hover{border-color:var(--ink);background:#fffefa;transform:translateY(-2px)}.option-icon{grid-row:span 2;width:34px;height:36px;display:grid;place-items:center;border:1px solid #bcaad1;border-radius:10px;background:#e7daf7}.option-icon .ui-icon{width:22px;height:22px}.law-option strong,.tool-option strong{font-size:12px;font-weight:900;line-height:1.3;padding-right:8px}.law-option small,.tool-option small{font-size:11px;line-height:1.45;color:#73687f;display:block}.law-option.selected{background:#ffe7a1;border:2px solid var(--ink);padding:14.5px 11.5px;box-shadow:0 3px 0 var(--ink)}.tool-option.selected{background:#d3edae;border:2px solid var(--ink);padding:14.5px 11.5px;box-shadow:0 3px 0 var(--ink)}.law-option.selected:after,.tool-option.selected:after{content:'✓';position:absolute;top:5px;right:6px;font-size:10px;font-weight:900}.law-option.selected .option-icon{background:#ffd269;border-color:var(--ink)}.tool-option.selected .option-icon{background:#b7db83;border-color:var(--ink)}.builder-tip{display:block;font-size:11px;color:#736481;line-height:1.65;margin-top:14px}.builder-bottom{margin-top:26px;padding-top:21px;border-top:1.5px dashed #b7a4cb;display:flex;justify-content:space-between;align-items:center;gap:20px}.builder-bottom>div:last-child{display:flex;gap:11px}.builder-bottom button{font-size:11px}.verified-status{font-size:12px;font-weight:800;color:#756581}.verified-status.verified{color:#346539;background:#d5eec0;padding:8px 11px;border:1px solid #79a862;border-radius:9px}.build-banner{position:absolute;left:50%;bottom:20px;transform:translateX(-50%);max-width:90%;display:flex;align-items:center;gap:13px;border:1.5px solid var(--ink);border-radius:12px;padding:9px 12px;background:#f0e5fbf2;box-shadow:0 3px 0 #27243844;font-size:11px;font-weight:900;z-index:4}.build-banner>span{text-align:center;pointer-events:none}.build-banner button{width:34px;height:34px;flex-shrink:0;display:grid;place-items:center;background:#fff9ed;border:1.5px solid var(--ink);border-radius:9px;padding:0}.build-banner .ui-icon{width:18px;height:18px}
.friend-strip{display:flex;align-items:center;gap:24px;background:var(--lime);border:2px solid var(--ink);border-radius:19px;box-shadow:0 5px 0 var(--ink);padding:29px;margin:35px 0 43px}.friend-strip>div:nth-child(2){flex:1}.friend-strip .eyebrow{font-size:8px;letter-spacing:1px}.friend-strip h2{font:400 21px/1.35 var(--display);letter-spacing:-.5px;margin:9px 0}.friend-strip p{font-size:12px;color:#4e6444;line-height:1.6;margin:0}.friend-strip>.dark-button{margin-left:auto;flex-shrink:0}.friend-doodle{position:relative;width:66px;height:80px;border:2.5px solid var(--ink);border-radius:50% 50% 35% 35%;background:#fff9ed;transform:rotate(-12deg);box-shadow:4px 4px 0 #659d4f;flex-shrink:0;animation:friend-wiggle 6s ease-in-out infinite}.friend-doodle i{position:absolute;top:29px;width:7px;height:12px;border-radius:50%;background:var(--ink)}.friend-doodle i:nth-of-type(1){left:17px}.friend-doodle i:nth-of-type(2){left:37px}.friend-doodle:after{content:'';position:absolute;left:25px;bottom:17px;width:14px;height:8px;border-bottom:2.5px solid var(--ink);border-radius:50%}.friend-doodle>span{position:absolute;right:-16px;top:-21px;font:400 35px var(--display);color:var(--ink);transform:rotate(18deg)}.site-footer{max-width:1320px;margin:0 auto;padding:0 40px 32px;display:flex;align-items:center;justify-content:space-between;gap:24px;font-size:10px;color:var(--muted)}.site-footer>span:first-child{font-weight:900;letter-spacing:.8px;white-space:nowrap}.site-footer .text-button{font-size:10px}
dialog{position:fixed;width:min(570px,calc(100vw - 38px));max-height:88dvh;overflow:auto;background:var(--paper);color:var(--ink);border:2.5px solid var(--ink);border-radius:23px;padding:33px;box-shadow:9px 9px 0 var(--ink);animation:modal-enter .24s var(--ease)}dialog::backdrop{background:#27243880;backdrop-filter:blur(7px)}dialog h2{font:400 27px/1.3 var(--display);letter-spacing:-.65px;margin:16px 0}dialog>p{font-size:14px;line-height:1.7;color:var(--muted)}.dialog-close{position:absolute;top:13px;right:13px;width:35px;height:35px;display:grid;place-items:center;border:1.5px solid var(--ink);border-radius:10px;background:#fffef9;padding:0}.dialog-close:hover{background:var(--coral)}.dialog-close .ui-icon{width:18px;height:18px}dialog .eyebrow{padding-right:25px;font-size:9px}.dialog-illustration{width:53px;height:53px;display:grid;place-items:center;background:var(--lilac);border:2px solid var(--ink);border-radius:15px;box-shadow:3px 3px 0 var(--ink);margin-bottom:19px;transform:rotate(-6deg)}.dialog-illustration .ui-icon{width:29px;height:29px}.help-steps{display:grid;gap:11px;margin:23px 0}.help-steps>div{display:flex;align-items:start;gap:13px;padding:13px;border:1px solid #d8cebf;border-radius:12px;background:#fffdf7}.help-steps b{flex-shrink:0;display:grid;place-items:center;width:30px;height:30px;border:1.5px solid var(--ink);border-radius:9px;background:var(--lime);font-size:11px}.help-steps>div:nth-child(2) b{background:var(--yellow)}.help-steps>div:nth-child(3) b{background:var(--lilac)}.help-steps p{font-size:12px;line-height:1.65;margin:0}.dialog-note{font-size:11px!important;line-height:1.65!important;color:var(--muted)!important;background:#f1eae0;border-radius:10px;padding:12px 14px}.character-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:25px}.character-option{position:relative;min-width:0;border:1.5px solid #cec1b2;border-radius:15px;padding:14px 8px;background:#fffcf4;text-align:center}.character-option:hover{transform:translateY(-4px);border-color:var(--ink)}.character-option.selected{border:2px solid var(--ink);background:#e4efd4;box-shadow:0 4px 0 var(--ink)}.character-option.selected:after{content:'✓';position:absolute;top:8px;right:9px;font-size:11px;font-weight:900}.character-option canvas{width:85px;height:98px;max-width:100%}.character-option strong{display:block;font-size:13px;font-weight:900;margin-top:4px}.character-option small{display:block;font-size:10px;line-height:1.5;color:var(--muted);margin-top:7px}.share-link-row{display:flex;align-items:stretch;gap:9px;margin-bottom:19px}.share-link-row input{margin:0;min-width:0;flex:1;font-size:11px}.share-link-row button{font-size:11px;padding:10px 12px;box-shadow:0 3px 0 var(--ink)}.share-actions{display:flex;gap:11px;margin-bottom:18px}.share-actions .primary-button{flex:1}.share-actions button{font-size:11px}.share-actions .ui-icon{width:18px;height:18px}input{display:block;width:100%;border:1.5px solid #c8baad;background:#fffefa;border-radius:10px;padding:13px 14px;margin:0 0 20px;font-size:14px;line-height:1.45;box-shadow:inset 0 2px 0 #27243808}input:focus{border-color:var(--ink);background:white}#share-link{font-family:ui-monospace,monospace;font-size:11px}#share-dialog .field-label{margin-bottom:9px}.toast{position:fixed;bottom:26px;left:50%;transform:translateX(-50%);z-index:99;display:flex;align-items:center;justify-content:center;gap:10px;max-width:90%;padding:14px 21px;background:var(--ink);color:var(--paper);border:2px solid var(--ink);border-radius:13px;box-shadow:0 5px 0 #a7bd80;font-size:13px;font-weight:900;text-align:center;animation:toast-enter .25s var(--ease)}.toast .ui-icon{color:var(--lime)}
@keyframes modal-enter{from{opacity:0;translate:0 14px;scale:.96}to{opacity:1;translate:0 0;scale:1}}@keyframes card-enter{from{opacity:0;translate:-10px 10px}to{opacity:1;translate:0 0}}@keyframes notice-enter{from{opacity:0;translate:0 6px}to{opacity:1;translate:0 0}}@keyframes toast-enter{from{opacity:0;translate:0 10px}to{opacity:1;translate:0 0}}@keyframes star-pop{from{scale:.4;rotate:-30deg;opacity:0}to{scale:1;rotate:0;opacity:1}}@keyframes recording{50%{opacity:.35}}@keyframes friend-wiggle{0%,85%,100%{rotate:0}90%{rotate:5deg}95%{rotate:-5deg}}
@media(min-width:1450px){.intro{padding-top:49px;padding-bottom:39px}.intro-sticker{width:310px;height:245px}.intro{grid-template-columns:minmax(0,1fr) 310px}}
@media(max-width:1050px){.site-header{padding:18px 26px;gap:14px}.alpha-tag{display:none}.nav-item{padding:10px 11px;font-size:12px}.wordmark{font-size:23px}.top-nav{gap:2px}.header-actions{gap:7px}main{padding:0 26px}.intro{grid-template-columns:minmax(0,1fr) 205px;gap:18px;padding:30px 0}.intro-sticker{width:205px;height:205px}h1{font-size:33px;letter-spacing:-1px}.intro-copy{font-size:13px}.intro-badges>span{font-size:9px}.game-frame canvas{aspect-ratio:1.9}.level-heading h2{font-size:16px}.keyboard-help{gap:10px;font-size:9px}.keyboard-help>span:last-child{display:none}.builder-layout{gap:17px}.law-option,.tool-option{padding:12px 9px;grid-template-columns:29px 1fr;gap:5px 7px}.option-icon{width:29px;height:32px}.option-icon .ui-icon{width:20px;height:20px}.law-option.selected,.tool-option.selected{padding:11.5px 8.5px}.law-option strong,.tool-option strong{font-size:11px}.law-option small,.tool-option small{font-size:10px}.world-info{padding:13px;min-height:104px}.world-info h3{font-size:12px}.world-info p{font-size:10px}.world-preview{height:132px}.world-arrow{display:none}.world-group strong{font-size:11px}.world-group span{font-size:10px}.friend-strip{padding:24px;gap:19px}.friend-strip h2{font-size:18px}.friend-strip>.dark-button{font-size:11px;padding:11px}.site-footer{padding:0 26px 28px}.site-footer>span:nth-child(2){text-align:center;max-width:260px}}
@media(pointer:coarse){.game-frame.running .touch-controls{display:flex}.game-frame.running canvas{touch-action:none}.keyboard-help{display:none}}
@media(max-width:700px){
 body{font-size:14px}.site-header{display:grid;grid-template-columns:1fr auto;min-height:0;padding:17px 18px 13px;gap:16px 12px;border-bottom-width:1.5px}.wordmark{font-size:24px;gap:9px}.wordmark-small{font-size:10px;letter-spacing:1.5px}.brand-face{width:34px;height:40px;box-shadow:2px 2px 0 var(--ink);border-width:2px;gap:7px}.brand-face i{width:4px;height:7px}.brand-face:after{bottom:8px}.header-actions{gap:8px}.icon-button,.lang-button{height:36px;min-width:36px;border-radius:10px}.icon-button .ui-icon{width:19px;height:19px}.lang-button{font-size:11px;padding:0 8px}.top-nav{grid-column:1/-1;grid-row:2;display:grid;grid-template-columns:.8fr 1.35fr .9fr;padding:4px;gap:4px;border-radius:12px;box-shadow:0 2px 0 #2724381c}.nav-item{font-size:11px;padding:9px 5px;gap:5px;border-radius:8px;min-height:35px}.nav-item .ui-icon{width:16px;height:16px}.intro{display:block;padding:25px 0 24px}.intro-sticker{display:none}main{padding:0 17px}.eyebrow{font-size:8px;letter-spacing:.8px;gap:7px}.mini-star .ui-icon{width:18px;height:18px}h1{font-size:clamp(21px,5.8vw,35px);letter-spacing:-.7px;line-height:1.3;margin:13px 0 12px}.intro-copy{font-size:12px;line-height:1.65;max-width:100%}.intro-badges{margin-top:13px;gap:6px}.intro-badges>span{font-size:8px;padding:4px 6px;gap:4px;border-radius:6px}.intro-badges .ui-icon{width:12px;height:12px}.game-heading{margin-bottom:14px;gap:9px}.level-heading{gap:9px}.level-number{min-width:53px;height:43px;font-size:10px;border-radius:10px;box-shadow:0 2px 0 var(--ink)}.overline{font-size:7px;letter-spacing:.5px;margin-bottom:3px}.level-heading h2{font-size:12px;letter-spacing:-.2px}.game-heading-actions{gap:6px}.character-button{padding:7px;min-height:36px;gap:5px;border-radius:9px;font-size:9px}.character-button>.ui-icon{display:none}.character-button #character-label{display:none}.avatar-dot{width:19px;height:22px}.avatar-dot:after{font-size:11px;left:2px;top:0}.small-button{min-height:36px;padding:7px;border-radius:9px;font-size:10px}.small-button .ui-icon{width:18px;height:18px}.game-frame{border-width:2.5px;border-radius:17px;box-shadow:0 6px 0 var(--ink),0 13px 23px #27243814}.game-frame canvas{aspect-ratio:1.08}.game-topbar{top:11px;left:10px;right:10px;gap:7px}.hud-left,.hud-right{gap:5px}.hud-pill{min-height:29px;padding:5px 6px;gap:4px;font-size:9px;border-radius:8px;box-shadow:0 2px 0 #2724381f}.hud-pill .ui-icon{width:13px;height:13px}.falls-pill{display:none}.hud-round{width:29px;height:29px;border-radius:8px;box-shadow:0 2px 0 #2724381f}.hud-round .ui-icon{width:15px;height:15px}.start-overlay{left:6%;top:50%;transform:translateY(-44%) rotate(-2deg);width:278px;max-width:82%;max-height:calc(100% - 82px);padding:15px 16px;border-width:2px;border-radius:13px;box-shadow:5px 5px 0 var(--ink)}.start-tag{font-size:6px;letter-spacing:.3px;padding:4px 6px;border-width:1px;line-height:1.4}.start-overlay h3{font-size:20px;letter-spacing:-.4px;line-height:1.2;margin:11px 0 9px}.precision-level .start-overlay h3{font-size:18px}.start-overlay p{font-size:10px;line-height:1.5;margin-bottom:13px}.start-footnote{display:none}.primary-button,.secondary-button,.dark-button{font-size:11px;padding:11px 12px;min-height:43px;border-radius:10px;gap:7px}.start-button{min-height:40px}.primary-button .ui-icon,.secondary-button .ui-icon,.dark-button .ui-icon{width:17px;height:17px}.game-footer{padding-top:17px;justify-content:center}.keyboard-help{display:none}.footer-best{font-size:10px}.precision-instructions{margin-top:17px;padding:11px 12px;font-size:10px;line-height:1.65;gap:8px}.precision-instructions .ui-icon{width:17px;height:17px}.touch-controls{bottom:16px;left:12px;right:12px}.touch-controls button{width:46px;height:46px;border-width:2px;border-radius:13px;box-shadow:0 3px 0 #27243888}.touch-controls button .ui-icon{width:22px;height:22px}.touch-controls .touch-jump{width:57px;height:56px}.touch-controls .touch-jump .ui-icon{width:28px;height:28px}.touch-controls .touch-dash{width:40px;height:40px}.touch-direction,.touch-abilities{gap:8px}.rule-notice{top:48px;max-width:90%;width:max-content;padding:8px 10px;gap:7px;border-radius:9px}.rule-notice .ui-icon{width:17px;height:17px}.rule-notice b{font-size:9px;line-height:1.4}.rule-notice div>span{font-size:8px;max-width:250px}.floating-message{font-size:10px;white-space:normal;text-align:center;bottom:24%;padding:8px 12px;line-height:1.5}.pause-card,.result-card{padding:17px 18px;border-width:2px;border-radius:16px;max-width:91%;max-height:calc(100% - 28px);box-shadow:4px 4px 0 var(--ink)}.pause-card h3{font-size:25px;margin:10px 0}.pause-card p{font-size:12px;margin-bottom:16px}.pause-art{margin-bottom:8px}.pause-art .ui-icon{width:32px;height:32px}.pause-card .eyebrow{font-size:7px}.result-eyebrow{font-size:7px;letter-spacing:.4px}.result-stars{gap:7px;margin:8px 0 3px}.result-stars .ui-icon{width:25px;height:25px}.result-card h3{font-size:20px;line-height:1.2;margin:7px 0 12px}.result-stats{gap:6px;margin-bottom:12px}.result-stats>div{padding:8px 5px;border-radius:9px}.result-stats strong{font-size:18px}.result-stats span{font-size:8px}.result-buttons{gap:8px;margin-bottom:8px}.result-buttons button{font-size:9px;padding:9px 8px;min-height:40px}.result-buttons .ui-icon{width:15px;height:15px}.result-card>.text-button{font-size:9px;padding:6px 5px}.replay-label{top:49px;padding:7px 10px;font-size:7px;border-radius:8px;white-space:nowrap}.replay-label .ui-icon{width:14px;height:14px}.worlds-section{margin-top:31px}.section-title{align-items:end;margin-bottom:12px;gap:8px}.section-title h2{font-size:15px;letter-spacing:-.4px;gap:6px}.section-title h2 .ui-icon{width:20px;height:20px}.section-title>span{font-size:7px;max-width:100px;text-align:right;letter-spacing:.2px;line-height:1.6}.world-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.world-card{grid-column:span 1;border-width:1.5px;border-radius:13px;box-shadow:0 3px 0 #d8cebf}.world-card.selected{border-width:2px;box-shadow:0 4px 0 var(--ink)}.world-group{display:block;margin-top:8px;padding:11px 12px;border-radius:10px}.world-group strong{font-size:9px;letter-spacing:.25px;gap:7px}.world-group .ui-icon{width:16px;height:16px}.world-group span{display:block;font-size:9px;line-height:1.55;margin-top:5px}.world-preview{height:107px}.world-info{display:block;padding:12px 10px;min-height:103px}.world-info h3{font-size:11px;line-height:1.35;margin-bottom:7px}.world-info p{font-size:9px;line-height:1.5}.world-number{display:none}.world-arrow{display:none}.world-new,.world-check{top:7px;border-width:1px;font-size:7px;padding:4px 5px;border-radius:5px}.world-new{left:7px}.world-check{right:6px;max-width:58%;font-size:6px;gap:2px}.world-check .ui-icon{width:10px;height:10px}.workshop-panel{margin-top:27px;padding:19px 16px;border-width:2px;border-radius:16px;box-shadow:0 4px 0 var(--ink)}.workshop-header{align-items:start;gap:12px}.workshop-header .eyebrow{font-size:7px}.workshop-header h2{font-size:17px;line-height:1.35;margin:9px 0}.workshop-header .small-button{font-size:8px;max-width:105px;padding:7px;gap:5px;line-height:1.4}.workshop-header .small-button .ui-icon{width:14px;height:14px}.workshop-panel>p{font-size:11px;line-height:1.65;margin-top:9px}.builder-layout{grid-template-columns:1fr;gap:23px;margin-top:23px}.field-label{font-size:9px;letter-spacing:.4px;margin-bottom:10px}.law-options,.tool-options{gap:9px}.law-option,.tool-option{padding:12px 9px;grid-template-columns:29px 1fr;gap:5px 6px;border-radius:11px}.law-option.selected,.tool-option.selected{padding:11.5px 8.5px}.option-icon{width:28px;height:31px;border-radius:8px}.option-icon .ui-icon{width:19px;height:19px}.law-option strong,.tool-option strong{font-size:10px;padding-right:3px}.law-option small,.tool-option small{font-size:9px;line-height:1.5}.builder-tip{font-size:10px;margin-top:12px}.builder-bottom{display:block;margin-top:20px;padding-top:18px}.verified-status{font-size:11px;margin-bottom:14px}.builder-bottom>div:last-child{display:grid;grid-template-columns:1fr 1fr;gap:9px}.builder-bottom button{font-size:9px;padding:10px 8px;min-width:0}.builder-bottom button .ui-icon{width:15px;height:15px}.build-banner{bottom:17px;gap:8px;padding:7px 9px;font-size:9px;line-height:1.5;width:max-content;max-width:91%;border-radius:10px}.build-banner button{width:29px;height:29px;border-radius:7px}.build-banner .ui-icon{width:16px;height:16px}.friend-strip{padding:21px 17px;gap:15px;flex-wrap:wrap;margin:29px 0 35px;border-radius:15px;box-shadow:0 4px 0 var(--ink)}.friend-doodle{width:45px;height:55px;border-width:2px;box-shadow:3px 3px 0 #659d4f}.friend-doodle i{width:5px;height:8px;top:20px}.friend-doodle i:nth-of-type(1){left:11px}.friend-doodle i:nth-of-type(2){left:25px}.friend-doodle:after{width:10px;height:5px;left:17px;bottom:10px;border-width:2px}.friend-doodle>span{font-size:25px;right:-11px;top:-17px}.friend-strip>div:nth-child(2){flex-basis:calc(100% - 65px)}.friend-strip .eyebrow{font-size:6px;letter-spacing:.4px}.friend-strip h2{font-size:15px;line-height:1.4;margin:8px 0}.friend-strip p{font-size:10px;line-height:1.6}.friend-strip>.dark-button{margin-left:60px;flex-basis:calc(100% - 60px);max-width:240px;font-size:10px}.site-footer{padding:0 18px 25px;flex-wrap:wrap;gap:15px;font-size:8px}.site-footer>span:nth-child(2){order:3;max-width:100%;width:100%;text-align:left;font-size:9px}.site-footer .text-button{font-size:8px;margin-left:auto;padding:6px 0}.site-footer .text-button .ui-icon{width:13px;height:13px}dialog{padding:25px 22px;border-width:2px;border-radius:19px;box-shadow:5px 5px 0 var(--ink);width:calc(100vw - 34px);max-height:88dvh}dialog h2{font-size:23px;line-height:1.3;margin:16px 0}dialog>p{font-size:13px;line-height:1.65}dialog .eyebrow{font-size:8px;letter-spacing:.6px}.dialog-close{top:11px;right:11px;width:33px;height:33px;border-radius:9px}.dialog-illustration{width:45px;height:45px;border-radius:12px;margin-bottom:18px}.dialog-illustration .ui-icon{width:25px;height:25px}.help-steps{margin:19px 0;gap:10px}.help-steps>div{padding:11px;gap:10px}.help-steps p{font-size:11px}.help-steps b{width:26px;height:26px;font-size:10px;border-radius:7px}.dialog-note{font-size:10px!important;padding:11px 12px}.character-options{gap:8px;margin-top:22px}.character-option{padding:13px 6px;border-radius:12px}.character-option canvas{width:68px;height:80px}.character-option strong{font-size:11px}.character-option small{font-size:9px;line-height:1.5}.share-link-row{gap:8px}.share-link-row button{padding:9px;font-size:10px}.share-link-row .ui-icon{width:16px;height:16px}input{font-size:16px;padding:12px;margin-bottom:18px}#share-link{font-size:11px}.share-actions{gap:8px}.share-actions button{font-size:10px;padding:10px}.toast{bottom:22px;font-size:11px;padding:12px 15px;gap:8px;border-radius:11px}.toast .ui-icon{width:18px;height:18px}
}
@media(max-width:360px){.nav-item{font-size:10px;gap:3px}.intro-badges>span{font-size:7px}.level-heading h2{font-size:11px}.world-info{padding:10px 8px}.world-info h3{font-size:10px}.world-info p{font-size:8px}.law-option,.tool-option{grid-template-columns:24px 1fr;gap:4px}.option-icon{width:24px;height:28px}.option-icon .ui-icon{width:17px;height:17px}.law-option strong,.tool-option strong{font-size:9px}.share-actions{flex-direction:column}}
@media(max-height:600px) and (orientation:landscape){.game-frame:fullscreen .start-overlay{top:50%;max-height:calc(100% - 70px);width:300px;padding:16px 20px}.game-frame:fullscreen .start-overlay h3{font-size:21px}.game-frame:fullscreen .start-overlay p{font-size:10px}.game-frame:fullscreen .game-topbar{top:10px}.game-frame:fullscreen .result-card{padding:15px 24px;max-height:90%}.game-frame:fullscreen .result-card h3{font-size:21px;margin:5px 0 10px}.game-frame:fullscreen .result-stars{margin-top:5px}.game-frame:fullscreen .result-stats{margin-bottom:12px}.game-frame:fullscreen .touch-controls{bottom:12px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Fit the desktop play surface into the first screen without shrinking touch layouts. */
@media(min-width:701px){.site-header{min-height:90px;padding-top:15px;padding-bottom:15px}.intro{padding-top:26px;padding-bottom:25px;grid-template-columns:minmax(0,1fr) 265px}.intro-sticker{width:265px;height:210px}h1{font-size:clamp(30px,3.2vw,44px);line-height:1.18;margin:12px 0}.intro-badges{margin-top:13px}.game-frame canvas{height:clamp(360px,calc(100svh - 480px),540px);aspect-ratio:auto}}
.law-option.selected .option-icon,.tool-option.selected .option-icon{animation:select-pop .24s var(--ease)}@keyframes select-pop{from{scale:.8;rotate:-8deg}to{scale:1;rotate:0}}.hud-pill>[data-icon]{display:flex}.intro-badges i{display:flex;font-style:normal}
@media(max-width:700px){.game-frame canvas{height:auto;aspect-ratio:1.08}}

@media(min-width:701px) and (max-width:1000px){.intro{grid-template-columns:minmax(0,1fr) 170px}.intro-sticker{width:170px;height:180px}h1{font-size:clamp(26px,3.3vw,33px)}}
@media(min-width:701px) and (max-width:850px){.site-header{flex-wrap:wrap;gap:15px}.top-nav{order:3;flex-basis:100%;justify-content:center}.site-header .header-actions{margin-left:auto}}

.result-card{min-width:0}.result-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.result-stats>div{min-width:0}.result-buttons{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr)}.result-links{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:6px}.result-links .text-button{min-width:0;font-size:10px;line-height:1.4;padding:6px 3px}.result-links .ui-icon{width:15px;height:15px}
@media(max-width:700px){.result-card h3{font-size:18px}.result-stats strong{font-size:17px}.result-links .text-button{font-size:8px;padding:4px 2px;gap:4px}.result-links .ui-icon{width:13px;height:13px}.result-buttons button{font-size:9px;white-space:normal;overflow-wrap:anywhere}.result-buttons button .ui-icon{width:14px;height:14px}}

/* Prevent implicit grid tracks from growing beyond a narrow game surface. */
.pause-overlay,.result-overlay{grid-template-columns:minmax(0,1fr)}.pause-card,.result-card{width:min(460px,calc(100% - 36px));max-width:calc(100% - 36px);min-width:0;justify-self:center}
.fullscreen-exit{position:absolute;z-index:10;bottom:18px;left:50%;translate:-50% 0;display:grid;place-items:center;width:42px;height:38px;padding:0;background:#fff9edeb;border:1.5px solid var(--ink);border-radius:10px;box-shadow:0 3px 0 #27243844}.fullscreen-exit .ui-icon{width:20px;height:20px}
@media(max-width:360px){.result-stats strong{font-size:15px}.result-card h3{font-size:16px}.result-buttons button{font-size:8px;padding:8px 6px}}

.verified-status{display:flex;align-items:center;gap:7px}.verified-status .ui-icon{width:17px;height:17px}.law-option.selected:after,.tool-option.selected:after,.character-option.selected:after{content:'';width:9px;height:5px;border-left:2px solid var(--ink);border-bottom:2px solid var(--ink);rotate:-45deg;top:8px;right:9px}
