:root{color-scheme:light;--bg:#eee8da;--panel:#faf5e8;--panel2:#e3dbc8;--line:#435544;--text:#272d27;--muted:#766e5c;--pink:#c96758;--lime:#c7aa55;--cyan:#528b84;--orange:#d88a4f;--red:#bd5549}
body{color:var(--text);background-color:var(--bg);background-image:radial-gradient(#43554412 .7px,transparent .7px);background-size:8px 8px}
body:before,body:after{display:none}
button,input,select,textarea{font-family:var(--mono)}
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #c96758;outline-offset:3px}
.topbar,.bottomline{border-color:#435544}
.brand{color:#2f4737;text-shadow:none}
.brand-mark{border:2px solid #2f4737;border-radius:5px;background:#d7b661;color:#2c3e31;box-shadow:2px 2px 0 #2f4737;transform:none}
.run-status{border:1px solid #314638;border-radius:4px;background:#d5bd76;color:#314638;box-shadow:2px 2px 0 #314638;transform:none}
.status-dot,.footer-dot{background:#c96758;box-shadow:none}
.watch-button,.rules-tab{border:2px solid #314638;border-radius:5px;background:#c96758;color:#fff9e9;box-shadow:2px 2px 0 #314638;transform:none}
.watch-button:hover,.rules-tab:hover{transform:translateY(-1px);filter:none}
.game-layout{gap:42px}
.game-layout h1,h1{color:#304a38;text-shadow:none;transform:none}
h1 span{color:#bb5c4c;text-shadow:none}
.eyebrow{color:#527b70;text-shadow:none}
.eyebrow-line{background:#c96758;transform:none}
.intro{color:#57594d}
.price-card,.balance-card,.stocks-card,.modal,.rules-window,.gameplay-window{border:2px solid #405443;border-radius:5px;background:#faf5e8;box-shadow:3px 3px 0 #405443;transform:none}
.price-card:last-child{transform:none;box-shadow:3px 3px 0 #405443}
.price-card:after{content:"✳";color:#c96758}
.price-label,.coin-label{color:#527b70}
.price-card strong{color:#344c39;text-shadow:none}
.coin-label{color:#776d59}
.range-bridge i{border:2px solid #405443;border-radius:50%;background:#e4c96f;color:#344c39;box-shadow:2px 2px 0 #405443;transform:none}
.range-bridge span{border-color:#bc6656}
.gap-stat,.gap-stat:nth-child(2){border:1px solid #4a5d48;border-radius:4px;background:#d8cb9e;color:#354638;box-shadow:2px 2px 0 #435544;transform:none}
.gap-stat:nth-child(2){background:#d69a79;box-shadow:2px 2px 0 #435544}
.gap-stat:nth-child(2).accuracy-stat{min-height:76px;padding:11px 14px;border:2px solid #a14c44!important;background:#c96758!important;color:#fff8e8;box-shadow:3px 3px 0 #713e38!important;animation:none}
.accuracy-stat>span{color:#fff5df;font-size:clamp(10px,1.15vw,13px);text-shadow:none}
.accuracy-stat b{color:#fff8e8;font-size:clamp(23px,2.5vw,31px);text-shadow:none}
.accuracy-stat small{color:#fff0d7}
.guess-form label{color:#54775e}
.input-row input,.stock-buy-row input{border:2px solid #58654c;border-radius:5px;background:#fffdf5;color:#2d4435;box-shadow:2px 2px 0 #6e755c}
.input-row input::placeholder{color:#968d78}
.input-row input:focus{border-color:#bd6453;transform:none}
.pick-button{border:2px solid #314638;border-radius:5px;background:#c96758;color:#fff8e8;text-shadow:none;box-shadow:3px 3px 0 #314638;transform:none}
.pick-button:hover:not(:disabled){transform:translateY(-1px);filter:brightness(1.04)}
.input-hint,.result{color:#6d735f;text-shadow:none}
.result.is-loss{color:#b44f46}
.sticker,.sticker-two,.sticker-three{border:2px solid #344a38;border-radius:4px;box-shadow:2px 2px 0 #344a38;transform:rotate(-2deg)}
.sticker-two{transform:rotate(2deg);box-shadow:2px 2px 0 #344a38}
.sticker-three{transform:rotate(-1deg);box-shadow:2px 2px 0 #344a38}
.debt-card{border-color:#435544}
.debt-icon{border-radius:5px;border-color:#ad5f50;background:#ebd8bf;color:#a84d43}
.debt-copy b{color:#a05d39}
.debt-copy small,.input-hint{color:#6f6a59}
.strike{border-color:#897d62;background:#e3dac6}
.strike.filled{border-color:#fff;background:#bd5549;box-shadow:none}
.debt-count{color:#526849}
.balance-card{padding:19px 21px 16px}
.balance-card:after{display:none}
.card-heading,.section-heading{color:#557c72}
.wallet-icon{border:1px solid #435544;border-radius:50%;background:#d7bd6b;color:#334738}
.balance{color:#334d3c;font-size:clamp(50px,8vw,98px);letter-spacing:-.07em;text-shadow:none}
.balance-unit{color:#786e59}
.wallet-footer{border-color:#a9a18c;color:#716b5b}
.wallet-footer b{color:#547c72}
.wallet-name-edit,.wallet-name-form button{border:1px solid #61715b;border-radius:4px;background:#e5dcc8;color:#435544}
#wallet-name-input{border:1px solid #65775e;border-radius:4px;background:#fffaf0;color:#2e4436}
.section-heading{color:#4e704d;text-shadow:none}
.rebirth-card p,.powerups-card p{color:#6f6a59}
.progress-track{border:1px solid #52624b;border-radius:4px;background:#e3dccb;box-shadow:2px 2px 0 #52624b}
.progress-track span{background:#cbb45f}
.secondary-button{border:2px solid #405443;border-radius:5px;background:#e9dfca;color:#5e6253;box-shadow:2px 2px 0 #405443;transform:none}
.secondary-button:not(:disabled){background:#91b27c;color:#233a2e}
.powerups-card{border-color:#8e8064}
.powerup-item{border:1px solid #52624b;border-radius:5px;background:#f7efdd;box-shadow:2px 2px 0 #52624b}
.powerup-item span{color:#405b43}
.powerup-item small{color:#746b58}
.powerup-item button{border:1px solid #405443;border-radius:4px;background:#d7bd6b;color:#304333}
.stocks-card{background:#faf5e8}
.stocks-heading{color:#405b43;text-shadow:none}
.live-tag,.stocks-copy,.stock-message{color:#726d5e;text-shadow:none}
.live-tag i{background:#67865b;box-shadow:none}
.stock-chart{border:1px solid #827b64;border-radius:5px;background:#f0e9d9}
.chart-grid{stroke:#b9b09b}
#stock-line{stroke:#518476;filter:none}
#stock-line.down{stroke:#bb6152;filter:none}
#stock-change{border:1px solid #637754;border-radius:3px;background:#dce4c9;color:#456342}
#stock-change.down{border-color:#a95e51;background:#f0d8cc;color:#9c5148}
.stock-form label{color:#557b73}
.stock-buy-row button,.stock-sell{border:2px solid #405443;border-radius:5px;background:#8bb4a1;color:#243e35;box-shadow:2px 2px 0 #405443;font-family:"Bowlby One SC",var(--sans)}
.stock-sell{background:#c96758;color:#fff8e8}
.arcade-card{border:2px solid #405443;border-radius:5px;background:#e5dcc8;box-shadow:3px 3px 0 #405443;transform:none}
.arcade-heading{color:#3f5942;text-shadow:none}
.arcade-heading span:last-child{color:#8b6951}
.snake-launch{border:2px solid #405443;border-radius:5px;background:#91b4a0;color:#273d33;box-shadow:2px 2px 0 #405443}
.snake-launch:hover{transform:translateY(-1px);filter:none;background:#a4c2a8}
.snake-launch-icon{border:1px solid #405443;border-radius:5px;background:#e5cd79;box-shadow:none}
.snake-launch-copy b{color:#344d3a}
.snake-launch-copy small{color:#5c6759}
.snake-launch>strong{color:#3e685c}
.studio-launch{border:1px solid #68765c;border-radius:5px;background:#f6efdf;color:#3f503d;box-shadow:none}
.studio-launch:hover{transform:none;background:#e9ddc4}
.studio-launch>span{border:1px solid #405443;border-radius:4px;background:#d9bc70;color:#3c4a36}
.studio-launch>b{color:#47533f}
.studio-launch>i{color:#557c72}
.snake-screen{background:#e9e2d3;color:#29362c}
.snake-game{background:#e9e2d3}
.snake-topbar{border-color:#aaa28f}
.snake-back{border:1px solid #777c68;border-radius:4px;background:#f5efdf;color:#394a39}
.snake-back span{color:#9b5548}
.snake-brand-mark{border:1px solid #405443;border-radius:5px;background:#d9bc70;color:#334336;box-shadow:2px 2px 0 #405443}
.snake-brand strong{color:#314b38}
.snake-brand small,.snake-wallet>span{color:#756e5e}
.snake-wallet>strong{color:#314a38}
.snake-wallet i{color:#ae783e;text-shadow:none}
.snake-stat{border:1px solid #aaa18d;border-radius:5px;background:#f7f1e4;box-shadow:1px 2px 0 #c9c0ab}
.snake-stat>span{color:#716b5c}
.snake-stat>strong{color:#354b39;text-shadow:none}
.snake-stat:nth-child(1)>strong,.snake-earned>strong,.snake-stat:nth-child(3)>strong{color:#405b43;text-shadow:none}
.snake-pause{border:1px solid #66745d;border-radius:5px;background:#f7f1e4;color:#354b39}
.snake-arena{border:2px solid #50634d;border-radius:7px;background:#dce4ce;box-shadow:3px 3px 0 #50634d}
.snake-overlay{background:#eee7d7e8;backdrop-filter:blur(2px)}
.snake-overlay-card{border:2px solid #405443;border-radius:8px;background:#f9f3e5;box-shadow:4px 4px 0 #405443}
.snake-overlay-icon{border:1px solid #64745b;border-radius:9px;background:#e5d6a4;box-shadow:none}
.snake-overlay-card h2{color:#334d3b}
.snake-overlay-card p,.snake-overlay-card>small{color:#766f5f}
.snake-overlay-card p b{color:#334d3b}
.snake-overlay-card p span{color:#54714e}
#snake-action{border:2px solid #405443;border-radius:5px;background:#c96758;color:#fff8e8;box-shadow:2px 2px 0 #405443}
.snake-controls{border-color:#aaa28f}
.snake-howto b{color:#4a6244}
.snake-howto small{color:#746c5b}
.howto-dot{background:#c96758;box-shadow:none}
.snake-dpad button{border:1px solid #71806b;border-radius:5px;background:#f5efdf;color:#3e5342;box-shadow:1px 2px 0 #bcb39d}
.snake-dpad button:active{background:#d9bc70;color:#29392f}
.rules-backdrop,.modal-backdrop,.gameplay-backdrop{background:#25291fcc;backdrop-filter:blur(3px)}
.rules-window,.modal,.gameplay-window{border:2px solid #405443;border-radius:6px;background:#f8f1e2;color:#2d382e;box-shadow:4px 4px 0 #405443;transform:none}
.modal h2,.rules-header h2{color:#3b563f;text-shadow:none}
.modal h2 span{color:#b65e4d}
.modal>p,.rules-list span{color:#6d6859}
.draw-card{border:2px solid #405443;border-radius:5px;background:#e7ddc8;box-shadow:2px 2px 0 #405443}
.draw-card span{color:#587850;text-shadow:none}
.draw-card small{color:#6f6755}
.draw-card.safe{background:#d6e1bb}.draw-card.bust{background:#e9c5b8}
.rizz-popup{background:#c96758;color:#fff4df;box-shadow:none}
.rizz-popup img{border:3px solid #f4dfb8;border-radius:4px;box-shadow:none}
.rizz-popup strong{color:#fff3d4;text-shadow:3px 3px #633e3a}
.trademark-impact{background:#292a22e8}
.chicken-stars-popup{border:3px solid #514632;border-radius:6px;background:#e3bd63;box-shadow:4px 4px 0 #514632;transform:translate(-50%,-50%);}
.chicken-stars-popup img{border:2px solid #514632;border-radius:3px}
.chicken-stars-popup strong{color:#fff8e6;text-shadow:2px 2px #8d4b47}
.chicken-stars-popup small{background:#405443;color:#f5e9c9}
.studio-screen{background:#eee7d7;color:#2f3b30}
.studio-shell{background:#eee7d7;color:#2f3b30}
.studio-topbar{border-color:#aaa18c}
.studio-back{border:1px solid #756d59;border-radius:4px;background:#f8f2e4;color:#364637}
.studio-back span{color:#a95647}
.studio-brand>span{border:1px solid #455642;border-radius:5px;background:#d7bd6b;color:#3a4936;box-shadow:2px 2px 0 #455642}
.studio-brand strong{color:#344a38}
.studio-brand small{color:#776e5d}
.studio-save-state{color:#50704b}
.studio-save-state i{background:#71884f;box-shadow:none}
.studio-save-state.saving,.studio-save-state.failed{color:#a25243}
.studio-save-state.saving i,.studio-save-state.failed i{background:#bd6650;box-shadow:none}
.studio-tool-card{border:1px solid #8f866f;border-radius:5px;background:#f8f2e4;box-shadow:2px 2px 0 #c9c0ad}
.studio-section-title>span{border-radius:4px;background:#d8bd6c;color:#384736}
.studio-section-title b{color:#384a38}
.expand-drawing{border-color:#8e806a;border-radius:4px;background:#ece3d0;color:#52634d}
.draw-options label,.draw-background-controls>label:first-child{color:#675f50}
#draw-color{border-color:#827963;border-radius:4px;background:#eee7d7}
#draw-background{border:1px solid #827963;border-radius:4px;background:#fff9ec;color:#3a4638}
.background-upload,#draw-clear,.delete-world-item,.world-footer button{border:1px solid #827963;border-radius:4px;background:#eee7d7;color:#5c604e}
.studio-primary{border:1px solid #526449;border-radius:4px;background:#88a978;color:#23392e;box-shadow:2px 2px 0 #526449}
.studio-primary:disabled{opacity:.48}
.studio-primary.house-primary{background:#cc8465;color:#fff8e8}
.studio-tip,.dialogue-editor small{color:#766c5b}
.dialogue-editor label{color:#6d594d}
#character-lines{border:1px solid #827963;border-radius:4px;background:#fff9ed;color:#303b31}
#character-lines:focus{border-color:#a45c4e;box-shadow:0 0 0 2px #a45c4e20}
.build-button{border:1px solid #58644c;border-radius:4px;color:#27382d;box-shadow:1px 2px 0 #58644c}
.platform-tool{background:#93b49b}.house-tool{background:#d69a71}
.build-button>span{border-radius:4px;background:#ffffff55}
.world-panel{border:1px solid #8e866f;border-radius:6px;background:#f4eddd;box-shadow:inset 0 0 0 1px #ffffff88}
.world-heading small{color:#58785b}.world-heading strong{color:#364939}.world-heading>span{color:#786f5c}
.world-stage{border:2px solid #4e624c;border-radius:5px;background:#b8d8df;}
.world-sun{background:#e7c16d;box-shadow:none}
.hill-back{background:#a9c28f}.hill-front{background:#719975}
.world-ground{border-color:#bfd180;background:#849f5c}
.world-empty{color:#43583f}.world-empty>span{color:#bb8c53;text-shadow:none}
.world-object.selected:after{border-color:#fff8e7;filter:drop-shadow(0 1px 2px #26372b)}
.world-platform{border:2px solid #665742;border-radius:3px;background:#c2a560;box-shadow:0 5px 0 #79694c}
.world-platform>span{background:#668553;box-shadow:18px 1px #668553,36px -1px #668553}
.house-roof{background:#b95c4f;filter:none}
.house-wall{border-color:#806447;background:#e5c783;box-shadow:0 5px 0 #806447}
.house-wall i,.house-wall b{border-color:#f9f1db;background:#7ba2a0;box-shadow:none}
.house-wall em{border-color:#806447;background:#8a6a94}
.speech-bubble,.character-speech{border-color:#705e48;background:#fff8e7;color:#394333;box-shadow:2px 3px 0 #715e48}
.character-speech:after{border-color:#705e48;background:#fff8e7}
.world-footer{color:#6e6858}
.world-footer button{color:#965248}
.world-heading>.scene-background-control{display:flex;flex-direction:row;align-items:center;gap:7px;min-width:0}
.scene-background-control label{color:#746a56;font:7px var(--mono);letter-spacing:.08em;white-space:nowrap}
#world-background{max-width:190px;min-width:0;padding:6px 7px;border:1px solid #817762;border-radius:4px;background:#faf5e8;color:#384a38;font:8px var(--mono)}
#world-background-color{width:30px;height:28px;padding:2px;border:1px solid #817762;border-radius:4px;background:#faf5e8;cursor:pointer}
#world-background-color[hidden]{display:none}
.world-heading{flex-wrap:wrap}
.world-heading>span{margin-left:auto}
#world-stage[data-theme="meadow"]{background:#b8d8df}
#world-stage[data-theme="desert"]{background:#e9c49a}
#world-stage[data-theme="desert"] .world-sun{background:#e8a94f}
#world-stage[data-theme="desert"] .hill-back{background:#d8aa66}
#world-stage[data-theme="desert"] .hill-front{background:#b97850}
#world-stage[data-theme="desert"] .world-ground{border-color:#e5c47d;background:#b58a53}
#world-stage[data-theme="ocean"]{background:#9bcfd0}
#world-stage[data-theme="ocean"] .world-sun{background:#f1d27d}
#world-stage[data-theme="ocean"] .hill-back{background:#76b6aa}
#world-stage[data-theme="ocean"] .hill-front{background:#4f9185}
#world-stage[data-theme="ocean"] .world-ground{border-color:#e3d08c;background:#c1a66b}
#world-stage[data-theme="twilight"]{background:#c58e9e}
#world-stage[data-theme="twilight"] .world-sun{background:#f0c276}
#world-stage[data-theme="twilight"] .hill-back{background:#997d9c}
#world-stage[data-theme="twilight"] .hill-front{background:#695e83}
#world-stage[data-theme="twilight"] .world-ground{border-color:#b69b7a;background:#6f7053}
#world-stage[data-theme="winter"]{background:#cbdfe6}
#world-stage[data-theme="winter"] .world-sun{background:#f4edcf}
#world-stage[data-theme="winter"] .hill-back{background:#b1cbd0}
#world-stage[data-theme="winter"] .hill-front{background:#809faa}
#world-stage[data-theme="winter"] .world-ground{border-color:#fffdf0;background:#d6ded2}
#world-stage[data-theme="autumn"]{background:#dfb474}
#world-stage[data-theme="autumn"] .world-sun{background:#f2d27a}
#world-stage[data-theme="autumn"] .hill-back{background:#bc7858}
#world-stage[data-theme="autumn"] .hill-front{background:#915c49}
#world-stage[data-theme="autumn"] .world-ground{border-color:#d4a04c;background:#78804c}
#world-stage[data-theme="forest"]{background:#aec6a0}
#world-stage[data-theme="forest"] .world-sun{background:#e9cf83}
#world-stage[data-theme="forest"] .hill-back{background:#79986a}
#world-stage[data-theme="forest"] .hill-front{background:#4e7354}
#world-stage[data-theme="forest"] .world-ground{border-color:#95ad68;background:#526d46}
#world-stage[data-theme="candy"]{background:#e6b6c8}
#world-stage[data-theme="candy"] .world-sun{background:#f2d47b}
#world-stage[data-theme="candy"] .hill-back{background:#bf9bc8}
#world-stage[data-theme="candy"] .hill-front{background:#8f83b1}
#world-stage[data-theme="candy"] .world-ground{border-color:#bad37c;background:#82a46a}
#world-stage[data-theme="moon"]{background:#4f617c}
#world-stage[data-theme="moon"] .world-sun{background:#e4d6a8;box-shadow:0 0 0 10px #e4d6a822}
#world-stage[data-theme="moon"] .hill-back{background:#65728a}
#world-stage[data-theme="moon"] .hill-front{background:#424f68}
#world-stage[data-theme="moon"] .world-ground{border-color:#a5a98c;background:#545c4b}
#world-stage[data-theme="coast"]{background:#a4cfdb}
#world-stage[data-theme="coast"] .world-sun{background:#f4d58a}
#world-stage[data-theme="coast"] .hill-back{background:#89bbaa}
#world-stage[data-theme="coast"] .hill-front{background:#5e998d}
#world-stage[data-theme="coast"] .world-ground{border-color:#e3cf9b;background:#c5ad78}
#world-stage[data-theme="custom"]{background:var(--custom-scene-color,#b8d8df)}
#world-stage[data-theme="custom"] .world-sun{background:#e7c16d}
@media(max-width:700px){.world-heading{align-items:flex-start}.scene-background-control{order:3;width:100%}#world-background{flex:1;max-width:none}.world-heading>span{margin-left:0}.world-panel{min-height:280px}}
@media(prefers-reduced-motion:reduce){*{animation-duration:.01ms!important;transition-duration:.01ms!important}}
