@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(./fonts/font-0.ttf) format('truetype');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(./fonts/font-1.ttf) format('truetype');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(./fonts/font-2.ttf) format('truetype');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(./fonts/font-3.ttf) format('truetype');
}
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 400;
  font-stretch: normal;
  font-display: swap;
  src: url(./fonts/font-4.ttf) format('truetype');
}
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 500;
  font-stretch: normal;
  font-display: swap;
  src: url(./fonts/font-5.ttf) format('truetype');
}
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 600;
  font-stretch: normal;
  font-display: swap;
  src: url(./fonts/font-6.ttf) format('truetype');
}
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 700;
  font-stretch: normal;
  font-display: swap;
  src: url(./fonts/font-7.ttf) format('truetype');
}

:root{--ink:#334b3a;--green:#5d795c;--cream:#f6f3e9;--orange:#d88a59;--line:#dde0d0;--muted:#778373;--title:'Fredoka','Trebuchet MS',sans-serif;--body:'DM Sans',sans-serif}
*{box-sizing:border-box}body{margin:0;color:var(--ink);background:var(--cream);font-family:var(--body);overflow:hidden;height:100dvh;display:flex;flex-direction:column}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;color:inherit;border:0;background:none;touch-action:manipulation}button:focus-visible,a:focus-visible,canvas:focus-visible{outline:3px solid #b7764c;outline-offset:4px}button{transition:background .15s,transform .15s}button:hover{filter:brightness(.97)}button:active{transform:translateY(2px)}button:disabled{cursor:default;opacity:.55}h1,h2,h3,p{margin:0}button svg{pointer-events:none}.hidden{display:none!important}
.topbar{height:86px;padding:0 4%;display:flex;align-items:center;justify-content:space-between;flex-shrink:0;border-bottom:1px solid #e6e7dc;gap:12px}.brand{display:flex;gap:11px;align-items:center;color:var(--ink);text-decoration:none;font-family:var(--title);font-size:29px;font-weight:500;line-height:.9}.brand img{transform:rotate(-9deg)}.brand-sub{display:block;font:700 10px var(--body);letter-spacing:3.6px;margin-top:9px}nav{display:flex;align-items:center;gap:15px}.nav-button{font-size:13px;font-weight:600;display:flex;gap:9px;align-items:center;margin-right:18px}.nav-button>span:first-child{font-size:25px}.icon-button{position:relative;display:grid;place-items:center;min-width:40px;height:40px;font-size:21px;border:1px solid #dce0d4;border-radius:50%;background:#f8f6ed}.off-dot{position:absolute;bottom:5px;right:5px;width:7px;height:7px;border-radius:50%;background:#c98c70;border:1.5px solid var(--cream)}.game-area{position:relative;flex:1;min-height:0;margin:16px 24px 0;border-radius:24px;overflow:hidden;background:#d5e9de}canvas{display:block;width:100%;height:100%;touch-action:none;outline:0!important}.home{position:absolute;inset:0;background:linear-gradient(90deg,rgba(234,240,222,.98) 0%,rgba(234,240,222,.94) 27%,rgba(234,240,222,.58) 44%,transparent 68%)}.home-copy{position:absolute;left:6.2%;top:clamp(32px,10vh,112px);max-width:620px}.eyebrow{display:flex;align-items:center;gap:10px;font-size:10px;font-weight:700;letter-spacing:2.1px;margin-bottom:25px}.eyebrow i{width:7px;height:7px;border-radius:50%;background:#c98959}h1{font:500 clamp(42px,4.85vw,77px)/1.07 var(--title);letter-spacing:-2.4px}h1 em{font-style:normal;color:#64835d}p{line-height:1.7}.home-copy p{font-size:14px;color:#64745e;margin-top:24px}.primary{background:var(--green);color:#fffced;border-radius:14px;font-size:15px;font-weight:700;padding:15px 25px;box-shadow:0 4px 0 #425c43;display:inline-flex;align-items:center;justify-content:center;gap:30px}.primary.big{margin-top:30px;padding:19px 29px;font-size:17px;min-width:205px}.primary span{font-size:24px}.text-button{display:block;padding:13px 0 0;font-weight:600;font-size:13px}.home-details{display:flex;gap:24px;font-size:11px;margin-top:35px;color:#66785e}.scene-label{position:absolute;left:66%;top:23%;transform:rotate(6deg);font-size:10px;letter-spacing:1.5px;font-weight:700}.scene-label svg{display:block;width:58px;margin-top:6px;margin-left:30px;fill:none;stroke:#5c7754;stroke-width:2;stroke-linecap:round}.home-bottom{position:absolute;bottom:25px;left:6.2%;right:4%;display:flex;justify-content:space-between;align-items:center;font-size:11px;color:#536e4c}.home-bottom button{font-size:11px;background:#f6f3e9cf;padding:12px 18px;border-radius:20px;display:flex;gap:24px}.footer{height:58px;display:flex;align-items:center;justify-content:space-between;gap:15px;padding:0 3.4%;font-size:11px;color:#7a8374;flex-shrink:0}.footer>div{display:flex;align-items:center;gap:7px}kbd{display:inline-block;border:1px solid #d4d9cb;border-bottom-width:2px;background:#fdfbf5;min-width:22px;padding:4px 6px;border-radius:5px;font:10px var(--body);text-align:center}.sep{width:13px}#modeButton{display:flex;align-items:center;gap:8px;font-size:11px}.mode-dot{width:7px;height:7px;background:#829e71;border-radius:50%}.footer-note{font-size:10px}.hud{position:absolute;top:24px;left:26px;right:26px;display:flex;justify-content:space-between;pointer-events:none;gap:8px}.hud button{pointer-events:auto}.level-pill{display:flex;align-items:center;gap:12px;background:#fffcefec;border:1px solid #ffffff85;border-radius:15px;padding:12px 18px;box-shadow:0 3px 0 #5266400e}.level-pill>span{font-size:28px;color:var(--green)}.level-pill small{display:block;font-size:9px;font-weight:700;letter-spacing:1.5px;margin-bottom:4px}.level-pill strong{font-size:12px}.hud-right{display:flex;gap:9px;align-items:flex-start}.counter{display:flex;align-items:center;gap:8px;background:#fffcefec;border-radius:12px;padding:12px 15px;height:48px;min-width:65px}.counter img{width:18px;height:24px}.counter b{font-size:15px}.counter.gold span{font-size:25px;color:#c18e35}.hud-right>.icon-button{height:48px;width:48px;background:#fffcefec}.quest-hint{position:absolute;bottom:85px;left:50%;transform:translateX(-50%);background:#fffdf1;box-shadow:0 5px 24px #253b2320;padding:12px 13px 12px 20px;border-radius:16px;display:flex;align-items:center;gap:20px;font-size:13px;white-space:nowrap}.quest-hint button{background:var(--green);color:white;border-radius:10px;padding:10px 15px;font-weight:600}.quest-hint kbd{margin-left:10px;color:var(--green)}.toast{position:absolute;left:50%;top:100px;transform:translate(-50%,-8px);background:#fffdf3ed;border:1px solid white;border-radius:20px;padding:10px 20px;font-size:13px;opacity:0;transition:opacity .25s,transform .25s;pointer-events:none;max-width:90%;text-align:center}.toast.visible{opacity:1;transform:translate(-50%,0)}
.modal{position:absolute;inset:0;background:#2a452b38;backdrop-filter:blur(7px);display:flex;align-items:center;justify-content:center;padding:24px;z-index:10}.modal-card{position:relative;background:var(--cream);padding:36px;border-radius:25px;width:540px;max-width:100%;max-height:100%;overflow:auto;text-align:center;box-shadow:0 12px 70px #243c3026}.modal-card.wide{width:980px}.close-button{position:absolute;top:14px;right:14px;border-radius:50%;width:34px;height:34px;background:#e8e9dd;font-size:21px}h2{font:500 32px/1.12 var(--title);letter-spacing:-.4px}.modal-card .eyebrow{justify-content:center;margin-bottom:13px}.modal-card p{color:#72806b;font-size:13px;margin-top:14px}.modal-card .primary{margin-top:24px}.modal-card .secondary{border:1px solid #ccd3c0;border-radius:12px;padding:12px 20px;margin-top:14px;font-weight:600;font-size:13px}.button-row{display:flex;gap:10px;align-items:center;justify-content:center;flex-wrap:wrap}.mode-options{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:25px}.mode-option{border:2px solid #dce1d1;border-radius:16px;text-align:left;padding:20px}.mode-option.active{border-color:var(--green);background:#e8eddc}.mode-option b{display:block;font:500 22px var(--title);margin:8px 0}.mode-option span{font-size:12px;line-height:1.6;color:#6d7c67}.mode-option .mode-icon{font-size:31px}.world-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:17px;margin-top:28px;text-align:left}.world-card{background:#e7eddf;border-radius:17px;padding:18px}.world-card:nth-child(2){background:#e3edf1}.world-card:nth-child(3){background:#f0e1d5}.world-card h3{font:500 22px var(--title);margin-bottom:5px}.world-symbol{display:block;font-size:38px;margin-bottom:12px}.world-card p{font-size:11px;margin:0;min-height:36px}.level-buttons{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:16px}.level-select{background:#fffcef;border-radius:11px;padding:10px;display:flex;align-items:center;justify-content:space-between;font:500 23px var(--title);border:2px solid transparent}.level-select.current{border-color:#6e865e}.level-select small{font:10px var(--body);color:#b18a40;letter-spacing:-1px}.collection{margin-top:23px;border-top:1px solid #d9dfd0;padding-top:18px}.hat-options{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin-top:12px}.hat-option{background:#e7eadc;border:2px solid transparent;border-radius:12px;padding:10px 14px;font-size:12px}.hat-option.active{border-color:#70865c}.hat-option small{display:block;color:#7c876f;margin-top:4px;font-size:10px}.build-preview{width:100%;height:160px;background:#e6edda;border-radius:17px;margin:22px 0 14px;display:flex;align-items:center;justify-content:center;gap:4px;overflow:hidden}.build-slot{position:relative;width:54px;height:68px;border:2px dashed #b4c1a8;border-radius:20px;display:grid;place-items:center;font-size:23px;color:#91a17c;transition:transform .3s}.build-slot.filled{border:0;transform:translateY(-5px)}.build-slot.filled svg{width:54px;height:60px}.build-slot.next{background:#f9faef;border-color:#769162}.nut-choice{width:80px;height:76px;padding:9px;border:2px solid #d6ddcb;border-bottom-width:5px;border-radius:15px;background:#fffdf2}.nut-choice svg{height:100%;width:100%}.nut-choices{display:flex;justify-content:center;gap:13px}.build-progress{font-size:11px!important;margin:9px 0 14px!important}.result-stars{font-size:46px;letter-spacing:6px;color:#d4a442;margin:13px 0}.result-stars .empty{color:#d5dbc9}.result-stats{display:flex;justify-content:center;gap:25px;margin:20px 0;font-size:11px;color:#697b5f}.result-stats b{display:block;font:500 27px var(--title);color:#466043;margin-bottom:5px}.help-lines{text-align:left;display:grid;gap:14px;margin-top:25px}.help-lines>div{display:flex;align-items:center;gap:15px;font-size:13px;line-height:1.5}.help-icon{display:grid;place-items:center;min-width:40px;height:40px;border-radius:12px;background:#e5eada;font-size:23px}.touch-controls{position:absolute;bottom:20px;left:24px;right:24px;display:flex;justify-content:space-between;pointer-events:none}.touch-controls>div{display:flex;gap:12px}.touch-controls button{pointer-events:auto;touch-action:none;user-select:none;-webkit-user-select:none;background:#fffcefdd;border:2px solid #ffffffc2;box-shadow:0 4px 0 #354d3420;width:65px;height:62px;border-radius:19px;font-size:28px;color:#52724e}.touch-controls .jump-button{background:#647e54;color:white;width:78px;height:70px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:0}.jump-button span{font-size:9px;letter-spacing:1px;font-weight:700}.touch-controls button.pressed{transform:translateY(4px);box-shadow:none}.save-note{font-size:10px!important;color:#8a937f!important}.speech-line{font-family:var(--title);font-size:20px!important;line-height:1.4!important;color:#5f7456!important}.build-done{font-size:48px;margin:20px 0 10px}
@media(min-width:900px) and (min-height:650px){.touch-controls{bottom:25px;opacity:.9}}
@media(max-width:900px){.footer-note{display:none}.game-area{margin:10px 12px 0;border-radius:20px}.topbar{height:70px;padding:0 22px}.home-copy{left:6%;top:9%}.home-details{gap:14px}.home-copy p{font-size:12px}.scene-label{left:72%;top:21%;font-size:8px}h1{font-size:52px}.home-bottom>span{display:none}.home-bottom{justify-content:flex-end}.nav-button{margin-right:0}.hud{left:16px;right:16px;top:16px}.world-grid{gap:10px}.world-card{padding:14px}.world-card h3{font-size:18px}.modal-card{padding:30px 22px}}
@media(max-width:600px){.topbar{height:65px;padding:0 16px}.brand{font-size:25px;gap:8px}.brand img{width:35px;height:38px}.brand-sub{font-size:8px;letter-spacing:3px;margin-top:7px}nav{gap:8px}.nav-button>span:last-child{display:none}.icon-button{min-width:35px;height:35px}.game-area{margin:0;border-radius:0}.home{background:linear-gradient(180deg,#eaf0de 0%,#eaf0deed 41%,#eaf0de00 71%)}.home-copy{left:7%;right:7%;top:6%}.eyebrow{font-size:8px;letter-spacing:1.3px;margin-bottom:16px}h1{font-size:clamp(40px,10.8vw,60px);letter-spacing:-1.3px}.home-copy p{font-size:12px;margin-top:15px;line-height:1.6}.primary.big{margin-top:21px;padding:14px 23px;font-size:15px;min-width:180px}.home-details{margin-top:22px;font-size:9px;gap:20px}.scene-label{display:none}.home-bottom{bottom:14px;right:18px}.home-bottom button{font-size:10px;padding:10px 14px}.footer{height:46px;padding:0 14px;font-size:9px}#controlLegend{display:none!important}#modeButton{font-size:10px;margin:auto}.hud{top:14px;left:12px;right:12px}.level-pill{padding:9px 11px;gap:8px;max-width:55%}.level-pill small{font-size:7px;letter-spacing:.8px}.level-pill strong{font-size:10px}.level-pill>span{font-size:22px}.hud-right{gap:5px}.counter{padding:9px;min-width:43px;height:43px;gap:5px}.counter img{width:15px}.counter b{font-size:12px}.counter.gold span{font-size:18px}.hud-right>.icon-button{height:43px;width:36px;min-width:36px}.touch-controls{bottom:22px;left:18px;right:18px}.quest-hint{font-size:10px;bottom:110px;gap:8px;padding:9px 9px 9px 13px;max-width:95%;white-space:normal}.quest-hint button{white-space:nowrap;font-size:12px;padding:10px}.quest-hint kbd{display:none}.modal{padding:13px}.modal-card{padding:33px 20px 25px;border-radius:20px}h2{font-size:28px}.world-grid{grid-template-columns:1fr;gap:10px;margin-top:20px}.world-card{display:grid;grid-template-columns:36px 1fr;column-gap:12px;padding:14px}.world-symbol{grid-row:1/4;font-size:30px;margin:0}.world-card h3{font-size:19px}.world-card p{font-size:10px;min-height:0;margin-top:3px}.level-buttons{grid-column:2;grid-template-columns:repeat(4,1fr);gap:6px;margin-top:10px}.level-select{font-size:19px;display:block;padding:7px 4px}.level-select small{font-size:8px;display:block}.collection{margin-top:17px;padding-top:14px}.hat-option{padding:7px 10px;font-size:11px}.modal-card .eyebrow{font-size:8px}.mode-options{gap:8px}.mode-option{padding:14px}.mode-option b{font-size:20px}.mode-option span{font-size:11px}.build-preview{gap:3px;height:125px}.build-slot{width:40px;height:56px}.build-slot.filled svg{width:40px;height:50px}.speech-line{font-size:17px!important}.toast{top:85px;font-size:11px;width:max-content;max-width:90%}}
@media(max-height:560px) and (min-width:601px){.topbar{height:56px}.footer{height:37px}.game-area{margin:5px 10px 0}.home-copy{top:7%;left:6%}h1{font-size:39px}.home-copy p{font-size:11px;margin-top:12px}.eyebrow{margin-bottom:12px;font-size:8px}.primary.big{margin-top:16px;padding:12px 22px}.home-details{margin-top:17px}.home-bottom{bottom:12px}.home-bottom>span{display:none}.home-bottom button{font-size:9px}.scene-label{top:12%}.hud{top:10px}.level-pill{padding:8px 12px}.touch-controls{bottom:12px}.touch-controls button{height:49px;width:57px}.touch-controls .jump-button{height:54px;width:66px}.quest-hint{bottom:70px}.modal-card{padding:25px;max-height:100%}.world-symbol{display:none}.world-grid{margin-top:16px}.world-card p{font-size:10px}.build-preview{height:100px;margin:12px 0}.modal-card p{margin-top:8px}.collection{margin-top:12px;padding-top:10px}.modal-card .primary{margin-top:15px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}

/* The approved brand is horizontal: preserve its silhouette everywhere. */
.brand img{width:59px;height:40px;transform:rotate(-5deg)}.counter img{width:28px;height:22px}.build-slot.filled svg{width:64px;height:55px}.nut-choice{width:94px}.build-slot{width:64px;border-radius:16px}.scene-label{left:65%;top:17%}
@media(max-width:600px){.brand img{width:44px;height:33px}.counter img{width:24px;height:20px}.build-slot{width:44px}.build-slot.filled svg{width:44px;height:46px}.nut-choice{width:83px}}
