:root{--peach:#f6c7a0;--ink:#2c2928;--paper:#faf5ef;--brown:#704324;--line:#e8ddd2;--muted:#82756b;--danger:#a4503e}*{box-sizing:border-box}body{margin:0;background:#e9e1d8;color:var(--ink);font-family:Arial,Helvetica,sans-serif;-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{font:inherit;cursor:pointer}button:disabled{opacity:.55;cursor:wait}button:focus-visible,a:focus-visible,canvas:focus-visible{outline:3px solid var(--brown);outline-offset:4px}[hidden]{display:none!important}.app{max-width:510px;min-height:100svh;background:var(--paper);margin:auto;overflow:hidden;padding:0 28px;box-shadow:0 0 90px #56403212}header{height:91px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{text-decoration:none;color:var(--ink)}.brand-mark{display:block;font-family:Georgia,serif;font-size:25px;letter-spacing:-1.5px;font-weight:bold;line-height:.9}.brand-mark span{display:block;text-align:right;font-style:italic;font-size:22px;letter-spacing:-1px}.test{font-size:10px;letter-spacing:.2px;display:flex;align-items:center;gap:7px}.test i{width:6px;height:6px;background:#9d9b62;border-radius:50%}.screen{padding-top:30px}.eyebrow{font-size:9px;letter-spacing:1.7px;font-weight:700;color:var(--brown)}h1{font-family:Georgia,'Times New Roman',serif;font-size:66px;line-height:.98;letter-spacing:-3.8px;font-weight:400;margin:19px 0 16px}h1 em{color:var(--brown);font-weight:400}p.intro{font-size:14px;line-height:1.65;color:#786a60;margin:0}.hero-art{height:247px;position:relative;margin:0 -28px;isolation:isolate}.orbit{border:1px solid #ddc4ad;border-radius:50%;position:absolute;transform:rotate(-16deg);width:400px;height:174px;left:55px;top:43px;z-index:-1}.orbit-two{width:300px;height:230px;left:110px;top:10px;transform:rotate(22deg);border-style:dashed;opacity:.5}.hero-croissant{position:absolute;width:290px;height:218px;left:5px;top:6px;filter:drop-shadow(0 19px 13px #85542a24);transform:rotate(-13deg)}.hero-coffee{position:absolute;width:115px;height:132px;right:34px;top:4px;transform:rotate(13deg);filter:drop-shadow(0 12px 10px #85542a21)}.art-label{position:absolute;left:33px;bottom:7px;font-size:9px;color:var(--muted);line-height:1.6;letter-spacing:.5px}.reward-stamp{position:absolute;right:34px;bottom:0;width:124px;height:124px;border-radius:50%;background:var(--peach);display:flex;align-items:center;justify-content:center;flex-direction:column;transform:rotate(10deg);font-size:12px;box-shadow:0 0 0 5px var(--paper),0 0 0 6px var(--peach)}.reward-stamp b{font-family:Georgia,serif;font-size:42px;line-height:1.1;font-weight:400;letter-spacing:-2px}.reward-stamp small{font-size:9px;margin-top:5px}.spark{position:absolute;color:var(--brown)}.spark-one{left:39px;top:7px;font-size:27px}.spark-two{right:16px;top:110px;font-size:22px}.how{display:flex;justify-content:space-between;font-size:10px;padding:23px 0 20px;margin-top:13px}.how b{display:block;font-size:9px;font-weight:400;color:#af8e73;margin-bottom:6px}.primary{border:0;background:var(--ink);color:var(--paper);min-height:58px;border-radius:9px;width:100%;padding:16px 22px;text-align:left;display:flex;align-items:center;justify-content:space-between;font-size:15px}.primary:hover{background:#4e3930}.primary span{font-size:24px}.home-bottom{display:flex;justify-content:space-between;align-items:center;font-size:11px;color:var(--muted);margin:12px 0}.text-button{border:0;background:none;color:var(--brown);padding:10px 0;font-size:12px}.text-button span{margin-left:13px}.demo-note{font-size:10px;line-height:1.6;color:#98877a;text-align:center;margin:17px 0 22px}footer{border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;font-size:8px;letter-spacing:1px;padding:20px 0 23px;color:#82756b}footer i{font-style:normal}.game-top{display:flex;justify-content:space-between;align-items:center;min-height:60px}.icon-button{width:40px;height:40px;display:grid;place-items:center;background:transparent;border:1px solid var(--line);border-radius:50%;font-size:20px}.score-block{text-align:center}.score-block small{display:block;letter-spacing:1.5px;font-size:8px;color:var(--muted)}.score-block strong{font-family:Georgia,serif;font-size:39px;font-weight:400}.lives{font-size:17px;color:var(--brown);letter-spacing:2px;min-width:66px}.discount-card{background:#f2e6da;border-radius:12px;padding:13px 17px;margin:15px 0 12px}.discount-card>div:first-child{display:flex;justify-content:space-between;align-items:center;font-size:12px}.discount-card b{font-family:Georgia,serif;font-size:26px;font-weight:400}.progress{height:4px;background:#dfcdbc;border-radius:10px;margin:9px 0;overflow:hidden}.progress span{display:block;background:var(--brown);width:0;height:100%;transition:width .2s}.discount-card p{font-size:10px;color:var(--muted);margin:0}.game-wrap{position:relative;height:clamp(280px,48svh,470px);background:#efe4d8;border:1px solid #e7d8c8;border-radius:16px;overflow:hidden}canvas{display:block;width:100%;height:100%;touch-action:none;outline:none}.level-tag,.time-tag{position:absolute;top:14px;font-size:10px;color:#96795d;pointer-events:none}.level-tag{left:16px}.time-tag{right:16px;font-variant-numeric:tabular-nums}.game-tip{position:absolute;bottom:15px;left:0;right:0;text-align:center;font-size:11px;color:var(--brown);pointer-events:none}.game-legend{display:flex;justify-content:space-between;font-size:9px;margin:15px 0;gap:8px;color:var(--muted)}.game-legend b{color:var(--brown)}.game-legend .danger b{color:var(--danger)}#play{padding-top:13px}.compact{margin:12px 0}.pause-panel{position:absolute;inset:0;backdrop-filter:blur(8px);background:#faf5efe8;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:30px}.pause-panel h2{font-family:Georgia,serif;font-weight:400;font-size:38px;margin:16px 0 0}.pause-panel p{font-size:13px;color:var(--muted);margin:12px 0 25px}.pause-panel .primary{text-align:center;justify-content:center}.pause-panel .text-button{margin-top:15px}.result-screen{text-align:center;padding-top:35px}.result-screen h1{font-size:70px}.ticket{background:var(--peach);border-radius:16px;position:relative;margin:27px 0 13px;padding:25px 22px 18px;overflow:hidden}.ticket:before,.ticket:after{content:'';position:absolute;background:var(--paper);width:26px;height:26px;border-radius:50%;top:196px;left:-13px}.ticket:after{left:auto;right:-13px}.ticket-label{font-size:8px;letter-spacing:1.6px}.ticket-value{font-family:Georgia,serif;letter-spacing:-8px;line-height:1;padding:14px 0 3px}.ticket-value b{font-size:113px;font-weight:400}.ticket-value>span{font-size:60px;letter-spacing:-3px;margin-left:3px}.ticket-sub{font-size:12px}.ticket-line{border-top:1px dashed #c3936f;margin:25px -8px 17px}.ticket-stats{display:flex;justify-content:space-between;font-size:11px}.ticket-stats b{font-weight:500;margin-left:8px}.ticket-demo{display:block;font-size:8px;letter-spacing:1.3px;margin-top:20px;opacity:.6}.save-status{font-size:11px;color:var(--muted);min-height:17px;margin:17px 0 20px}.result-home{margin-top:13px}dialog{border:0;background:var(--paper);color:var(--ink);border-radius:20px;padding:33px 25px 25px;max-width:440px;width:calc(100% - 28px);max-height:90svh}dialog::backdrop{background:#2c29289c;backdrop-filter:blur(4px)}.dialog-close{position:absolute;right:16px;top:13px}dialog .eyebrow{font-size:8px;max-width:220px;display:block}dialog h2{font:400 40px/1.07 Georgia,serif;letter-spacing:-1.5px;margin:22px 0}dialog p{font-size:12px;line-height:1.7;color:var(--muted)}dialog h3{font:400 24px Georgia,serif}.rules-items{display:grid;gap:12px;font-size:12px;margin:22px 0}.rules-items span{display:flex;justify-content:space-between}.thresholds{display:grid;grid-template-columns:1fr 1fr;gap:8px}.thresholds span{background:#f0e4d8;border-radius:7px;display:flex;justify-content:space-between;padding:10px;font-size:11px}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:var(--ink);color:white;padding:15px 20px;border-radius:10px;width:calc(100% - 40px);max-width:440px;font-size:13px;line-height:1.5;z-index:10}body{padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom)}@media(min-width:700px){.app{margin:30px auto;min-height:0;border-radius:25px;box-shadow:0 25px 70px #5640321f}body{background:radial-gradient(ellipse at 20% 20%,#f8e4d1,transparent 55%),#e9e1d8}}@media(max-width:370px){.app{padding:0 22px}h1{font-size:58px}.hero-art{height:230px}.hero-croissant{width:260px}.hero-coffee{right:20px}.reward-stamp{right:22px;width:110px;height:110px}.how{font-size:9px}.game-legend{font-size:8px}header{height:80px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

/* Mobile webview layout: all game controls share the available viewport. */
html,body{height:100%;overflow:hidden}body{padding:0;background:var(--paper);font-size:16px;-webkit-text-size-adjust:100%}.app{height:var(--app-height,100dvh);min-height:0;max-width:510px;margin:0 auto;border-radius:0;padding: max(0px,env(safe-area-inset-top),var(--tg-safe-top,0px)) 18px max(8px,env(safe-area-inset-bottom),var(--tg-safe-bottom,0px));display:flex;flex-direction:column;overflow:hidden}header{height:62px;flex:none;background:white;margin:0 -18px;padding:0 18px;border:0}.family-logo{display:block;width:230px;max-width:70vw;height:56px;object-fit:contain}.test{font-size:13px;color:var(--brown)}main{flex:1;min-height:0}.screen{height:100%;min-height:0;padding:14px 0 0;display:flex;flex-direction:column}footer{display:none}.eyebrow{font-size:12px;letter-spacing:1px;line-height:1.35}h1{font-size:clamp(36px,6.8vh,54px);letter-spacing:-1.8px;line-height:1.02;margin:10px 0;flex:none}p.intro{font-size:16px;line-height:1.4;color:#63564c}.hero-art{flex:1;min-height:100px;max-height:210px;margin:4px -18px 8px;overflow:hidden}.hero-croissant{height:100%;width:68%;left:0;top:0;object-fit:contain}.hero-coffee{height:65%;width:27%;right:28px;top:0}.reward-stamp{width:94px;height:94px;right:26px;bottom:9px;font-size:12px}.reward-stamp b{font-size:32px}.reward-stamp small{font-size:11px}.orbit{height:70%;width:90%;left:10%;top:15%}.orbit-two{width:75%;height:95%;left:20%;top:0}.art-label{display:none}.spark-one{top:8px;left:22px}.spark-two{top:50%;right:10px}.network-logos{display:flex;justify-content:space-between;gap:10px;align-items:center;flex:none;height:52px;margin:0 0 8px}.network-logos>span{display:flex;align-items:center;gap:6px;min-width:0}.network-logos img{width:34px;height:34px;object-fit:contain;border-radius:50%;flex:none}.network-logos b{font-size:12px;line-height:1.2;font-weight:500}.primary{font-size:17px;min-height:52px;flex:none;padding:12px 18px;border-radius:12px}.home-bottom{font-size:14px;flex:none;margin:3px 0;min-height:42px}.text-button{font-size:16px;min-height:44px;padding:10px 0}.demo-note{font-size:12px;color:#77665a;line-height:1.35;margin:4px 0 6px;flex:none}.game-top{min-height:62px;height:62px;flex:none}.score-block small{font-size:12px;letter-spacing:1px}.score-block strong{font-size:38px}.lives{font-size:23px;letter-spacing:0;min-width:82px}.icon-button{width:44px;height:44px;flex:none}.discount-card{margin:8px 0 10px;padding:10px 14px;flex:none}.discount-card>div:first-child{font-size:16px}.discount-card b{font-size:28px}.discount-card p{font-size:14px;color:#63564c;line-height:1.3}.progress{height:6px;margin:7px 0}.game-wrap{height:auto;flex:1;min-height:0;max-height:none}#play{padding:4px 0 0}.game-legend{flex:none;min-height:44px;align-items:center;font-size:14px;margin:5px 0;gap:4px;color:var(--brown)}.game-legend>span{display:flex;align-items:center;gap:3px;white-space:nowrap}.game-legend svg{width:35px;height:35px}.game-legend .danger{color:#b02d25}.game-legend .danger b{color:#b02d25}.level-tag,.time-tag{font-size:14px;color:#704324;top:11px;background:#faf5efe8;padding:5px 8px;border-radius:8px}.game-tip{font-size:14px;bottom:9px;background:#faf5efeb;padding:7px 10px;width:max-content;max-width:95%;margin:auto;border-radius:8px}.compact{margin:0 0 4px}.pause-panel{padding:18px}.pause-panel h2{font-size:34px;margin:10px 0}.pause-panel p{font-size:16px;margin:4px 0 16px}.pause-panel .text-button{margin-top:5px}.result-screen{padding-top:12px;overflow-y:auto}.result-screen h1{font-size:44px;margin:8px 0}.result-screen .intro{font-size:15px}.ticket{flex:1;min-height:190px;max-height:290px;margin:12px 0 6px;padding:15px 18px;display:flex;flex-direction:column;justify-content:center;overflow:hidden}.ticket-label{font-size:11px;letter-spacing:.8px}.ticket-value{padding:6px 0;letter-spacing:-4px}.ticket-value b{font-size:clamp(70px,12vh,100px)}.ticket-value>span{font-size:48px}.ticket-sub{font-size:15px}.ticket-line{margin:13px 0}.ticket-stats{font-size:15px}.ticket-demo{font-size:11px;letter-spacing:.5px;margin-top:12px;opacity:1;color:#704324}.ticket:before,.ticket:after{top:66%}.save-status{font-size:14px;line-height:1.3;margin:8px 0;flex:none}.result-home{margin-top:1px;flex:none}.result-screen>.demo-note{margin:0 0 5px}dialog{max-height:calc(var(--app-height,100dvh) - 24px);padding:32px 22px 18px;overflow:auto}dialog .eyebrow{font-size:12px}dialog h2{font-size:34px;margin:18px 0}dialog p{font-size:16px;line-height:1.45;color:#63564c}dialog h3{font-size:26px}.rules-items{font-size:15px;line-height:1.4;gap:14px}.rules-items span{gap:10px}.rules-items b{white-space:nowrap}.thresholds span{font-size:14px;padding:10px 8px}.toast{font-size:16px}.dialog-close{top:8px;right:10px}
@media(max-height:680px){header{height:54px}.family-logo{height:48px;width:210px}.screen{padding-top:8px}#home>.eyebrow{display:none}h1{font-size:40px;margin:6px 0}p.intro{font-size:15px}.hero-art{min-height:80px;max-height:155px;margin:0 -18px 2px}.reward-stamp{width:80px;height:80px;bottom:7px}.reward-stamp b{font-size:29px}.reward-stamp small{font-size:10px}.network-logos{height:44px;margin-bottom:4px}.network-logos img{width:30px;height:30px}.demo-note{margin:2px 0 3px}.game-top{height:54px;min-height:54px}.score-block strong{font-size:32px}.discount-card{padding:8px 12px;margin:4px 0 7px}.game-legend{margin:2px 0;min-height:38px}.result-screen h1{font-size:34px;line-height:1;margin:5px 0}.result-screen h1 br{display:none}.result-screen .ticket{min-height:165px;margin:6px 0;padding:12px}.ticket-value b{font-size:70px}.ticket-demo{margin-top:8px}.ticket-line{margin:9px 0}.result-screen>.intro{display:none}.result-screen .demo-note br{display:none}.result-screen .text-button{min-height:40px}.save-status{margin:5px 0}}
@media(max-height:520px){#home>.intro{display:none}.network-logos{height:38px}.hero-art{min-height:68px}.home-bottom{min-height:38px}.home-bottom .text-button{min-height:38px}.primary{min-height:48px}.game-top{height:46px;min-height:46px}.discount-card{padding:6px 10px;margin:3px 0 5px}.discount-card b{font-size:24px}.discount-card p{font-size:14px}.discount-card .progress{margin:4px 0}.game-legend{min-height:34px}.compact{font-size:12px}.result-screen .eyebrow,.result-screen>.demo-note{display:none}.result-screen .ticket{min-height:155px}.pause-panel .eyebrow,.pause-panel p{display:none}.pause-panel h2{font-size:26px}.pause-panel .text-button{margin:0}}
@media(max-width:350px){.app{padding-left:12px;padding-right:12px}header{padding:0 12px;margin:0 -12px}.family-logo{width:205px}.network-logos{gap:4px}.network-logos>span{gap:4px}.network-logos b{font-size:12px}.network-logos img{width:27px;height:27px}.game-legend{font-size:13px}.game-legend svg{width:28px;height:28px}.rules-items{font-size:14px}.thresholds span{font-size:13px}}
/* Visible, timed power-ups; no extra page height required. */
.bonus-help{border:1px solid #ddc6b1;background:#faf5ef;border-radius:18px;min-height:38px;padding:7px 10px;font-size:14px;white-space:nowrap}.effects{position:absolute;top:50px;left:8px;right:8px;display:flex;flex-wrap:wrap;gap:5px;pointer-events:none}.effect{padding:5px 7px;border-radius:8px;font-size:12px;color:white;background:#24765c;box-shadow:0 1px 4px #0002}.effect.narrow,.bonus-guide .narrow{background:#bc4c37}.effect.slow,.bonus-guide .slow{background:#3878a8}.effect.double,.bonus-guide .double{background:#8a5aa8}.effect.shield,.bonus-guide .shield{background:#397f91}.bonus-guide{display:grid;gap:13px;margin:18px 0}.bonus-guide>div{display:flex;align-items:center;gap:12px}.bonus-guide i{width:44px;height:44px;flex:none;border-radius:50%;display:grid;place-items:center;background:#24765c;color:white;font-style:normal;font-size:23px;font-weight:700}.bonus-guide .life{background:#b83859}.bonus-guide span{font-size:14px;line-height:1.4;color:#63564c}.bonus-guide b{display:block;color:#2c2928;font-size:16px}.lives{white-space:nowrap}.game-wrap{isolation:isolate}

.game-marker{display:grid;place-items:center;width:44px;font-size:26px}.bonus-help:disabled{visibility:hidden}
/* Two-game lobby; keep the existing phone-height contract. */
#home h1{font-size:42px;margin:8px 0;line-height:1.03}#home .eyebrow{font-size:11px}.shared-reward{display:flex;align-items:center;justify-content:space-between;background:#f1e3d5;border-radius:10px;padding:8px 12px;margin:3px 0 10px;flex:none;font-size:15px}.shared-reward b{font:28px Georgia,serif;color:#704324}.game-choices{display:flex;flex-direction:column;gap:10px;flex:1;min-height:180px;max-height:340px;margin-bottom:8px}.game-choice{flex:1;min-height:0;display:flex;align-items:center;text-align:left;padding:12px 14px;border:1px solid #e5cfba;border-radius:16px;color:#2c2928;background:#f4ddc6;gap:10px;overflow:hidden}.runner-choice{background:#e2ebea;border-color:#c7dad8}.choice-picture{flex:none;width:100px;height:100%;max-height:120px;position:relative;display:flex;align-items:center;justify-content:center}.choice-picture svg{width:100%;height:100%;filter:drop-shadow(0 6px 4px #70432417)}.mini-tray{position:absolute;width:78%;height:8px;bottom:14%;background:#704324;border-radius:7px;box-shadow:0 5px 0 #fdf5e9}.choice-copy{display:flex;flex-direction:column;gap:5px;flex:1;min-width:0}.choice-copy strong{font-size:19px;letter-spacing:-.5px}.choice-copy>span{font-size:14px;line-height:1.3;color:#63564c}.choice-copy small{font-size:13px;color:#63564c}.choice-copy em{font-size:15px;font-style:normal;font-weight:600;color:#704324;margin-top:3px}#home .network-logos{height:44px;margin:0 0 2px}#home .home-bottom{gap:12px;justify-content:space-between;margin:0}#home .home-bottom .text-button{font-size:14px}body[data-game="runner"] .game-marker{font-size:0}body[data-game="runner"] .game-marker:after{content:'↑';font-size:32px;color:#704324}.runner-legend{font-size:13px}
@media(max-height:620px){#home h1{font-size:34px;margin:5px 0}#home .shared-reward{padding:5px 10px;margin:2px 0 7px;font-size:14px}.shared-reward b{font-size:24px}.game-choices{gap:8px;min-height:170px;margin-bottom:4px}.game-choice{padding:8px 10px;gap:8px}.choice-picture{width:82px}.choice-copy{gap:3px}.choice-copy strong{font-size:17px}.choice-copy>span{font-size:13px}.choice-copy em{font-size:14px;margin:0}#home .network-logos{height:38px}#home .home-bottom .text-button{min-height:38px}#home .demo-note{font-size:12px}}@media(max-width:350px){.choice-picture{width:70px}.choice-copy strong{font-size:16px}.game-choice{padding:7px}.choice-copy>span{font-size:13px}#home .home-bottom .text-button{font-size:13px}}
@media(max-height:540px){.choice-copy>span{display:none}.choice-copy{gap:4px}.choice-copy strong{line-height:1.2}.choice-copy em{margin-top:1px}#home h1{font-size:32px;margin:4px 0}.game-choices{min-height:160px}#home .demo-note{margin:0;line-height:1.25}}@media(max-height:680px){.result-screen h1 em:before{content:'\00a0'}}
.effect.brand{background:#f4d68a;color:#704324;border:1px solid #c79848;font-weight:600}.runner-legend{gap:8px}.runner-legend>span:last-child{font-size:12px}
/* Rear-view runner uses the phone canvas, with a compact HUD over the sky. */
body[data-game="runner"][data-screen="play"] .app{padding-left:0;padding-right:0;background:#a5ddf0}body[data-game="runner"][data-screen="play"] header{display:none}body[data-game="runner"][data-screen="play"] #play{position:relative;padding:0}body[data-game="runner"][data-screen="play"] .game-wrap{border:0;border-radius:0}body[data-game="runner"][data-screen="play"] .game-top{position:absolute;z-index:3;top:10px;left:16px;right:16px;height:58px;min-height:58px;background:#fff6e4e8;border-radius:16px;padding:4px 10px;box-shadow:0 3px 0 #58779625}body[data-game="runner"][data-screen="play"] .score-block strong{font-size:32px}body[data-game="runner"][data-screen="play"] .discount-card{position:absolute;z-index:3;top:76px;left:16px;right:16px;margin:0;padding:8px 12px;background:#fff6e4ed;box-shadow:0 3px 0 #58779620}body[data-game="runner"][data-screen="play"] .level-tag,body[data-game="runner"][data-screen="play"] .time-tag{top:169px;background:#fff6e4d9;font-size:12px;padding:4px 6px}body[data-game="runner"][data-screen="play"] .effects{top:200px;z-index:3;justify-content:center}body[data-game="runner"][data-screen="play"] .game-tip{bottom:10px;z-index:3}body[data-game="runner"][data-screen="play"] .game-legend{padding:0 12px;background:#fff6e4;margin:0;min-height:34px}body[data-game="runner"][data-screen="play"] .compact{margin:0;background:#fff6e4;padding:3px 0}body[data-game="runner"] .game-marker:after{content:'🐾';font-size:25px}@media(max-height:540px){body[data-game="runner"][data-screen="play"] .game-top{top:6px;height:48px;min-height:48px}body[data-game="runner"][data-screen="play"] .score-block strong{font-size:26px}body[data-game="runner"][data-screen="play"] .discount-card{top:61px;padding:5px 10px}body[data-game="runner"][data-screen="play"] .level-tag,body[data-game="runner"][data-screen="play"] .time-tag{top:144px}body[data-game="runner"][data-screen="play"] .effects{top:174px}}
