@font-face{font-family:IranSans;src:url('./assets/IranSans.woff2') format('woff2');font-weight:100 900;font-style:normal;font-display:swap}
:root{--orange:#ff4d00;--navy:#003666;--paper:#fff8ed;--muted:#72848d;font-family:IranSans,sans-serif;color:var(--navy);background:var(--paper);font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-height:100dvh;background:radial-gradient(ellipse at 20% 10%,#f3ead5,transparent 55%),var(--paper)}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;color:inherit;touch-action:manipulation}button:disabled{cursor:wait;opacity:.5}button:focus-visible,a:focus-visible{outline:3px solid var(--orange);outline-offset:3px}a{color:inherit;text-decoration:none}.site-header{width:min(100%,520px);margin:auto;height:70px;display:flex;align-items:center;justify-content:space-between;padding:0 22px}.brand{display:flex;align-items:center;gap:10px}.brand b{font-size:22px}.brand-mark{background:var(--orange);width:32px;height:32px;border-radius:11px;color:#fff;display:grid;place-items:center;font-size:25px;font-weight:900;transform:rotate(-9deg)}.test-label{font-size:10px;color:var(--muted)}.layout{width:min(100%,500px);padding:0 14px;margin:auto;text-align:center}.game-card{background:#fff;border:1px solid #e7e7df;border-radius:26px;overflow:hidden;box-shadow:0 16px 70px #0036660a}.game-top{display:flex;align-items:center;justify-content:space-between;padding:6px 18px 0;min-height:48px}h1{font-size:17px;margin:0;font-weight:700}.icon-button{width:44px;height:44px;border:0;background:transparent;border-radius:12px;font-size:20px}.icon-button:disabled{visibility:hidden}.journey{padding:0 20px 12px;display:grid;grid-template-columns:1fr auto;gap:9px;text-align:right;font-size:11px}.timer{font-size:10px;color:var(--muted)}.timer b{font-size:14px;color:var(--navy);font-variant-numeric:tabular-nums}.journey-track{grid-column:1/-1;height:4px;background:#edf0e9;border-radius:7px;overflow:hidden}.journey-track i{display:block;height:100%;width:0;background:var(--orange);border-radius:inherit}.stage{position:relative;height:clamp(310px,calc(100dvh - 330px),510px);overflow:hidden;background:#d9efea;touch-action:none;user-select:none}.stage canvas{display:block;width:100%;height:100%;touch-action:none}.stage-chip{position:absolute;top:13px;right:50%;transform:translateX(50%);font-size:11px;white-space:nowrap;padding:7px 13px;border-radius:20px;background:#ffffffe0;pointer-events:none}.stage-chip:empty{display:none}#loading{position:absolute;inset:0;display:grid;place-items:center;font-size:12px;background:linear-gradient(150deg,#d8efe9,#fbedcf)}[hidden]{display:none!important}#gesture-guide{position:absolute;bottom:7px;right:0;left:0;margin:0;font-size:10px;pointer-events:none;color:#49665f;background:#ffffffb0;padding:7px}.game-card[data-phase=playing] #gesture-guide,.game-card[data-phase=won] #gesture-guide,.game-card[data-phase=lost] #gesture-guide{display:none}#tap-spark{position:absolute;left:22%;top:46%;font-size:28px;color:var(--orange);opacity:0;pointer-events:none}#tap-spark.pop{animation:spark .3s ease-out}@keyframes spark{0%{opacity:.8;transform:translateY(10px)}100%{opacity:0;transform:translateY(-30px)}}.controls{padding:14px 20px 12px}.energy-label{display:flex;justify-content:space-between;font-size:10px;color:var(--muted);margin-bottom:7px}.energy-label b{font-size:10px;font-weight:400}.energy-track{height:10px;background:#edf0e9;border-radius:12px;overflow:hidden;margin-bottom:14px}.energy-track i{display:block;width:55%;height:100%;background:var(--navy);border-radius:inherit;transition:width .07s linear}.action{width:100%;min-height:54px;border:0;border-radius:16px;display:flex;justify-content:center;align-items:center;gap:12px;background:var(--orange);color:white;font-weight:700;font-size:15px;box-shadow:0 4px 0 #dc4000;user-select:none;touch-action:none}.action>span:last-child{font-size:24px;line-height:1}.action:active,.action.pressed{transform:translateY(2px);box-shadow:0 2px 0 #dc4000}.below-action{display:flex;justify-content:space-between;gap:8px;margin-top:14px;color:var(--muted);font-size:9px}.below-action b{font-weight:400;color:var(--navy)}.game-card[data-danger=true] .energy-track i{background:#e55839}.game-card[data-danger=true] #energy-caption{color:#c94121}.game-card[data-danger=true] .stage-chip{color:#b52c13;background:#fff0e8}.text-button{border:0;background:transparent;min-height:44px;font-size:11px;padding:8px 16px}.rules-link{color:var(--muted);margin:4px auto 10px}.game-card[data-phase=playing]~.rules-link{visibility:hidden}
dialog{border:1px solid #fff;background:var(--paper);color:var(--navy);border-radius:26px;padding:34px 24px 24px;width:min(390px,calc(100vw - 28px));max-height:calc(100dvh - 32px);text-align:center;box-shadow:0 20px 100px #001b4055;overflow:auto}dialog::backdrop{background:#062d497a;backdrop-filter:blur(3px)}dialog h2{margin:10px 0;font-size:24px;line-height:1.5}dialog h3{font-size:14px;margin-top:22px}dialog p{font-size:11px;line-height:2;color:var(--muted)}.dialog-close{position:absolute;top:5px;left:5px;width:44px;height:44px;border:0;background:transparent;font-size:26px}.result-symbol{display:grid;place-items:center;font-size:45px;color:var(--orange);width:76px;height:76px;background:#ffead3;border-radius:26px;margin:auto;transform:rotate(-7deg)}.result-kicker{margin:14px 0 0;color:var(--orange)!important}.coupon{border:1.5px dashed #eeaf7d;padding:14px;border-radius:17px;background:white;margin:16px 0;display:grid;gap:10px}.coupon span{font-size:12px}.coupon b{font-family:ui-monospace,monospace;letter-spacing:1px;font-size:17px;overflow-wrap:anywhere}.coupon button{border:0;min-height:44px;border-radius:10px;background:#edf3ef;font-size:12px}.coupon small{font-size:9px;line-height:1.8;color:var(--muted)}.result-footnote{font-size:9px!important;margin:14px 0 0}.rank-status{color:var(--navy);min-height:18px}.prize-rule{text-align:right;border-bottom:1px solid #e8e2d8;padding:12px 0 4px}.prize-rule b{font-size:13px}.test-notice{background:#ffeddb;border-radius:12px;padding:10px;font-size:10px!important}.leader-row{display:flex;align-items:center;gap:10px;text-align:right;padding:11px 0;border-bottom:1px solid #e8e2d8;font-size:11px}.leader-row span:nth-child(2){flex:1}.leader-row b{font-size:10px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.confetti{position:absolute;inset:0;pointer-events:none;overflow:hidden;border-radius:26px}.confetti i{position:absolute;width:7px;height:13px;left:var(--x);top:-20px;background:var(--c);animation:confetti 1.8s var(--d) ease-out both;transform:rotate(var(--r))}@keyframes confetti{to{transform:translateY(550px) rotate(540deg);opacity:0}}
@media(max-width:600px){.site-header{height:58px;padding:0 20px}.layout{padding:0 10px}.game-card{border-radius:22px}.stage{height:clamp(275px,calc(100dvh - 309px),560px)}h1{font-size:16px}.journey{font-size:10px}.controls{padding:12px 18px}.below-action{font-size:8px}.brand b{font-size:20px}}
@media(max-height:650px){.stage{min-height:245px}.site-header{height:48px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition:none!important}dialog::backdrop{backdrop-filter:none}}

.monthly-prize{font-size:10px;color:var(--navy);margin:0 0 15px;line-height:1.8}.rules-link{margin-bottom:0}.game-card[data-phase=playing]~.monthly-prize{visibility:hidden}.profile-form{text-align:right;background:#fff;border:1px solid #e4e4dc;border-radius:16px;padding:14px;margin:12px 0 20px}.profile-form h3{font-size:13px;margin:0 0 14px}.profile-form label{display:block;font-size:11px;margin:9px 0 5px}.profile-form input{font:inherit;font-size:16px;width:100%;height:46px;border:1px solid #cbd4d7;border-radius:10px;padding:8px 10px;background:#fff;color:var(--navy)}.profile-form input:focus{outline:2px solid var(--orange);outline-offset:1px}.privacy-note{font-size:9px!important;margin:10px 0;line-height:1.9!important}.profile-submit{border:0;background:var(--navy);color:white;border-radius:10px;min-height:46px;width:100%;font-size:12px}#profile-error{font-size:10px;color:#ac351a;margin:8px 0 0}.my-rank{padding:12px;border-radius:13px;background:#eaf1f4;font-size:13px;line-height:1.9;margin:12px 0}.my-rank small{display:block;font-size:10px;color:#537282}.leader-row.is-me{background:#fff0e3;border-radius:9px;padding-inline:8px}.result-footnote{line-height:1.6}.rules-link{min-height:40px}

/* v0.5: the whole play surface is the control; dialog actions remain distinct. */
.site-header{height:48px;justify-content:center;padding:0}.brand{display:flex;align-items:center;justify-content:center;min-height:44px;min-width:140px}.brand img{width:124px;height:auto;display:block}.game-top{padding-top:2px}.tap-prompt{font:inherit;font-size:25px;font-weight:700;line-height:1.7;color:var(--navy);padding:4px 0 0;cursor:pointer;touch-action:none;user-select:none}.tap-prompt[aria-disabled=true]{opacity:.5}.tap-prompt:focus-visible{outline:2px solid var(--orange);outline-offset:3px;border-radius:10px}.tap-prompt.pressed{color:var(--orange)}#action-icon:empty{display:none}.below-action{margin-top:4px}.energy-track{margin-bottom:8px}.stage{height:clamp(310px,calc(100dvh - 282px),550px)}body:has(.game-card[data-phase=playing]){touch-action:none;user-select:none}.action{background:var(--navy);box-shadow:none;font-size:14px;min-height:50px}.action:active,.action.pressed{box-shadow:none}.intro{max-width:380px;padding-top:26px}.intro-mark{display:block;color:var(--orange);font-size:44px;line-height:1}.intro h2{font-size:25px;margin:10px 0 14px}.intro-how{font-size:13px;line-height:2.05;color:var(--navy)}.intro-prize{background:#fff;border-radius:14px;padding:14px 10px;margin:10px 0;display:grid;gap:6px}.intro-prize b{font-size:13px}.intro-prize span{font-size:10px;color:#617786;line-height:1.8}.intro-deadline{font-size:10px;margin:14px 0 18px}.monthly-prize{font-size:9px}.result-footnote{font-size:9px!important}#coupon-status{font-size:11px;color:var(--navy)}
@media(max-width:600px){.site-header{height:46px}.stage{height:clamp(275px,calc(100dvh - 320px),580px)}.tap-prompt{font-size:23px}.controls{padding:10px 18px}.below-action{margin-top:3px}}
@media(max-height:650px){.intro{padding:18px 20px}.intro-mark{font-size:30px}.intro h2{margin:5px 0}.intro-how{font-size:12px}.intro-prize{padding:10px;margin:7px 0}.intro-deadline{margin:10px 0}}

/* v0.6: lead with the monthly gift; reward milestones use the existing HUD. */
.intro{padding:22px 20px;max-width:390px}.intro-mark{font-size:32px}.intro h2{font-size:22px;margin:9px 0 6px}.intro-lead{font-size:11px;line-height:1.9;margin:0 0 14px}.intro-grand{background:#fff2e2;border:1px solid #f2d6bb;padding:16px 8px;gap:9px}.intro-grand b{font-size:15px}.intro-grand .intro-eyebrow{font-size:10px;color:var(--navy)}.free-delivery{font-size:11px;color:var(--orange);font-weight:700}.intro-discount{padding:12px 8px;margin-top:10px}.intro-how{font-size:11px!important;line-height:2!important;margin:14px 0 16px}.stage-chip[data-reward=countdown],.stage-chip[data-reward=earned]{font-size:14px;font-weight:700;color:var(--navy);background:#fff8ed;border:1px solid #ffbd8f;box-shadow:0 4px 18px #00366612;padding:9px 15px}.stage-chip[data-reward=countdown]{color:var(--orange)}.stage-chip.milestone-pop{animation:reward-pop .45s ease-out}@keyframes reward-pop{0%{transform:translateX(50%) scale(.87)}55%{transform:translateX(50%) scale(1.08)}100%{transform:translateX(50%) scale(1)}}@media(max-width:360px){.intro h2{font-size:20px}.intro-grand b{font-size:14px}.stage-chip[data-reward=countdown],.stage-chip[data-reward=earned]{font-size:12px}}@media(max-height:650px){.intro{padding:16px}.intro-mark{font-size:25px}.intro h2{margin:5px 0;font-size:20px}.intro-lead{margin-bottom:8px}.intro-grand{padding:10px 8px;gap:6px}.intro-discount{padding:9px 8px}.intro-how{margin:10px 0}}@media(prefers-reduced-motion:reduce){.stage-chip.milestone-pop{animation:none}}

/* v0.7: a compact product photo and clearly separate practice targets. */
.intro{padding:22px 20px}.intro h2{margin:0 0 12px;font-size:21px}.intro-package{display:block;width:198px;height:198px;max-width:100%;object-fit:contain;margin:0 auto 12px;border-radius:18px}.intro-gift{display:grid;gap:5px;color:var(--navy)}.intro-gift b{font-size:13px}.intro-gift span{font-size:10px;color:#617786}.intro-code{font-size:14px!important;font-weight:700;color:var(--orange);margin:14px 0 0}.intro-how{margin:10px 0 14px}@media(max-height:650px){.intro{padding:16px}.intro-package{width:154px;height:154px}.intro h2{font-size:19px}.intro-code{margin-top:10px}.intro-how{margin:8px 0 12px}}

/* The fox speaks through ordinary text; its small portraits need no animation. */
.fox-story{display:flex;align-items:center;gap:8px;text-align:right;margin:12px 0}.fox-story>img{display:block;flex:0 0 72px;width:72px;height:72px;object-fit:contain}.fox-bubble{position:relative;flex:1;min-width:0;border:1px solid #eadac8;border-radius:15px;background:#fff;padding:10px 12px;color:var(--navy);font-size:11px;line-height:1.9;margin:0}.fox-bubble:before{content:"";position:absolute;right:-6px;top:calc(50% - 5px);width:10px;height:10px;background:#fff;border-top:1px solid #eadac8;border-right:1px solid #eadac8;transform:rotate(45deg)}dialog .fox-bubble{color:var(--navy);margin:0}.fox-bubble p{font-size:10px;line-height:1.9;color:#536c7b;margin:6px 0 0}.fox-reward{align-items:flex-start;margin:14px 0}.fox-reward>img{flex-basis:82px;width:82px;height:96px}.fox-reward .fox-bubble{background:#fff0df;border-color:#ffbc8e}.fox-reward .fox-bubble:before{background:#fff0df;border-color:#ffbc8e;top:35px}#reward-rank{display:block;font-size:17px;line-height:1.9;color:var(--navy)}#reward-rank[data-state=loading],#reward-rank[data-state=unavailable],#reward-rank[data-state=unranked]{font-size:13px}.shop-coupon{display:flex;align-items:center;justify-content:center;min-height:46px;border-radius:10px;background:var(--navy);color:#fff;font-size:12px;font-weight:700;padding:9px}.coupon{gap:9px}.fox-ranking{margin-top:18px}.intro{padding:18px 20px}.intro h2{font-size:20px;margin:0 0 10px}.intro-package{width:168px;height:168px;margin-bottom:8px}.intro-code{margin-top:10px}.fox-intro{margin:9px 0 12px}.fox-intro>img{flex-basis:64px;width:64px;height:64px}.fox-intro .fox-bubble{padding:8px 10px;font-size:10px;line-height:1.9}@media(max-height:650px){.intro{padding:15px 18px}.intro-package{width:138px;height:138px}.intro h2{font-size:18px}.fox-intro{margin:7px 0 10px}.fox-intro>img{width:58px;height:58px;flex-basis:58px}}@media(max-width:360px){.fox-reward>img{flex-basis:66px;width:66px;height:82px}#reward-rank{font-size:15px}.fox-bubble{padding:9px}.intro-gift b{font-size:12px}}

.fox-intro>img,.fox-ranking>img{mix-blend-mode:multiply}

/* v0.8: one stable result surface; async responses never open another dialog. */
.result-hub{width:min(460px,calc(100vw - 20px));height:min(800px,calc(100dvh - 24px));max-height:calc(100dvh - 24px);padding:0;overflow:hidden;text-align:right;border-radius:22px}.result-hub[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto}.hub-header{position:relative;padding:15px 48px 11px;text-align:center;border-bottom:1px solid #eadfce;background:var(--paper)}.hub-header h2{font-size:18px;margin:1px 0;line-height:1.65}.hub-header .result-kicker{font-size:9px;margin:0;line-height:1.8}.hub-scroll{overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:12px 16px 14px;scroll-behavior:auto;overflow-anchor:none}.result-summary{text-align:center;min-height:62px;padding:1px 0 5px}.result-summary>strong{font-size:25px;font-weight:700}.result-summary .rank-status{margin:0;min-height:22px;font-size:10px}.hub-rank{min-height:125px;margin:8px 0 12px;align-items:center}.hub-fox{flex:0 0 72px;width:72px;height:84px;display:grid;place-items:center}.hub-fox img{width:72px;height:84px;object-fit:contain;grid-area:1/1}.hub-fox #fox-rank-image{mix-blend-mode:multiply}.hub-rank .fox-bubble{padding:10px 12px;min-height:116px;display:flex;flex-direction:column;justify-content:center}.hub-rank #reward-rank{font-size:16px;line-height:1.8}.hub-rank #reward-rank[data-state=loading],.hub-rank #reward-rank[data-state=unavailable],.hub-rank #reward-rank[data-state=unranked]{font-size:13px}.hub-rank .my-rank{padding:0;background:none;font-size:10px;line-height:1.8;margin:2px 0;color:#5c7180}.hub-rank .fox-bubble p{font-size:10px;line-height:1.8;margin:4px 0 0}.hub-rank .text-button{padding:5px;min-height:36px;font-size:10px}.hub-panel{background:#fff;border:1px solid #e5e5df;border-radius:16px;padding:12px 14px;margin:0 0 12px}.coupon-panel{min-height:126px;display:flex;flex-direction:column;justify-content:center;text-align:center}.coupon-panel:has(.coupon:not([hidden])){min-height:174px}.coupon-panel .coupon{padding:0;border:0;margin:0;gap:7px}.coupon-panel .coupon b{font-size:20px}.coupon-panel .coupon span{font-size:11px}.coupon-actions{display:grid;grid-template-columns:1fr 1.35fr;gap:8px}.coupon-actions>*{min-height:44px}.coupon-panel #coupon-status{font-size:10px;line-height:1.9;min-height:38px;margin:7px 0 0;color:#526c7b}.profile-step{text-align:right;margin-top:7px;border-top:1px solid #edf0ec}.profile-step summary{font-size:12px;font-weight:700;min-height:44px;padding:12px 2px;cursor:pointer;color:var(--navy)}.profile-form{border:0;border-radius:0;padding:0;margin:0}.board-panel{min-height:156px}.board-panel h3{font-size:13px;margin:0 0 2px}.board-status{font-size:9px!important;line-height:1.8!important;min-height:17px;margin:2px 0 4px}.board-panel .leader-row{padding:10px 0;min-height:44px}.board-panel .leader-row:last-child{border:0}.board-panel .result-footnote{font-size:8px!important;margin:6px 0 0}.hub-details{border-bottom:1px solid #e3e3da;margin:0;padding:0 1px}.hub-details>summary{font-size:11px;min-height:44px;padding:13px 1px;cursor:pointer}.hub-details .prize-rule:first-child{padding-top:0}.hub-details p{font-size:10px}.hub-footer{padding:10px 16px 13px;border-top:1px solid #e5dfd3;background:var(--paper);z-index:2}.hub-footer .action{min-height:48px;font-size:14px;border-radius:13px}.hub-details+ #sound{display:block;margin:auto}.intro h2{font-size:20px;margin:0 0 10px}.intro .intro-lead{margin:0 0 12px;font-size:12px;line-height:1.9;color:var(--navy);display:grid;gap:5px}.intro-lead strong{color:var(--orange);font-size:13px}.intro .intro-gift{font-size:12px;font-weight:700;line-height:1.9;color:var(--navy);margin:7px 0 10px;display:block}.intro-package{width:164px;height:164px}.fox-intro .fox-bubble{font-size:11px;padding:8px 10px}.fox-intro{margin:10px 0 14px}@media(max-width:360px){.hub-scroll{padding-inline:12px}.hub-rank .hub-fox,.hub-rank .hub-fox img{width:60px;flex-basis:60px}.hub-rank #reward-rank{font-size:14px}.hub-panel{padding-inline:11px}.intro .intro-lead{font-size:11px}.intro-lead strong{font-size:12px}}@media(max-height:700px){.intro{padding:14px 18px}.intro h2{font-size:18px;margin-bottom:7px}.intro-package{width:132px;height:132px}.intro .intro-lead{margin-bottom:8px}.intro .intro-gift{font-size:11px}.fox-intro{margin:8px 0 10px}.hub-header{padding-block:10px}.hub-scroll{padding-top:8px}.hub-rank{min-height:112px}.hub-rank .fox-bubble{min-height:104px}}

/* v0.8.1: the existing fox guides play without intercepting taps. */
.play-coach{position:absolute;inset-inline:12px;top:54px;display:flex;align-items:center;gap:9px;max-width:380px;margin-inline:auto;pointer-events:none;user-select:none;z-index:2}.coach-face{position:relative;flex:0 0 56px;width:56px;height:58px;overflow:hidden;border-radius:17px;background:#fff8ed;box-shadow:0 3px 12px #00366618}.coach-face img{position:absolute;width:104px;height:104px;max-width:none;left:-26px;top:0;mix-blend-mode:multiply}.play-coach .fox-bubble{font-size:12px;line-height:1.85;padding:9px 11px;box-shadow:0 4px 16px #00366614}.play-coach[data-mode=reward] .fox-bubble{background:#fff3e6;border-color:#ffb985}.play-coach[data-mode=reward] .fox-bubble:before{background:#fff3e6;border-color:#ffb985}.play-coach[data-mode=reward] .coach-face{background:#fff3e6}.game-card:has(.play-coach:not([hidden])) #gesture-guide{display:none}
#again{position:relative;isolation:isolate;overflow:hidden;touch-action:none}#again:before{content:"";position:absolute;inset:0;transform:scaleX(0);transform-origin:right;background:#ffffff2e;z-index:-1}#again.holding:before{animation:replay-hold .9s linear forwards}#replay-help{text-align:center;font-size:9px;line-height:1.7;margin:5px 0 0;color:#617786}@keyframes replay-hold{to{transform:scaleX(1)}}@media(prefers-reduced-motion:reduce){#again.holding:before{animation:none;transform:scaleX(1)}}@media(max-width:360px){.play-coach{inset-inline:9px;gap:7px}.play-coach .fox-bubble{font-size:11px;padding:8px}.coach-face{flex-basis:50px;width:50px}}

/* v0.8.3: visible coaching, a podium entry, and a small in-scene celebration. */
.dialog-brand{display:flex;align-items:center;justify-content:center;width:140px;min-height:36px;margin:0 auto 4px}.dialog-brand img{width:100px;height:auto}.hub-header .dialog-brand{min-height:27px;margin-bottom:3px}.intro-records{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:44px;margin-top:8px;border:1px solid #d8dfe1;border-radius:12px;background:transparent;color:var(--navy);font-size:12px;font-weight:700}.intro-records:active{background:#eaf1f4}.result-hub[data-mode=overview] .hub-scroll{display:flex;flex-direction:column}.result-hub[data-mode=overview] .board-panel{order:-1;flex-shrink:0}.confetti{z-index:4}#stage-celebration{border-radius:0}.play-coach[data-mode=faster] .fox-bubble{border-color:#ffb985}.play-coach[data-mode=reward] .coach-face{animation:fox-cheer .4s ease-in-out 2 alternate}@keyframes fox-cheer{to{transform:translateY(-5px) rotate(-5deg)}}@media(prefers-reduced-motion:reduce){.play-coach[data-mode=reward] .coach-face{animation:none}}@media(max-height:700px){.intro .dialog-brand{min-height:28px;margin-bottom:2px}.intro-records{margin-top:6px}.play-coach{top:46px}}

/* Server-confirmed rewards keep their own stable controls and account history. */
.coach-message{flex:1;min-width:0}.coach-message .fox-bubble{margin:0}.coach-retry{pointer-events:auto;touch-action:manipulation;min-height:44px;margin-top:5px;padding:7px 11px;border:1px solid var(--orange);border-radius:12px;background:#fff;color:var(--navy);font-size:10px;font-weight:700}.result-hub[data-mode=result] .dialog-close{width:auto;min-width:100px;top:3px;left:7px;padding:0 9px;font-size:11px;font-weight:700;border-radius:10px;background:#fff0e3;min-height:44px}.result-hub[data-mode=result] .hub-header{padding-top:50px}.profile-step h3{font-size:12px;color:var(--orange);margin:13px 0 9px;line-height:1.9}.reward-load-status{font-size:9px!important;line-height:1.7!important;margin:5px 0 0;min-height:16px}.play-coach[data-mode=checking] .fox-bubble,.play-coach[data-mode=reward-error] .fox-bubble{border-color:#ffb985}

.coupon-history{display:grid;gap:5px;text-align:right;margin-bottom:12px}.coupon-history label{font-size:10px}.coupon-history select{font:inherit;font-size:11px;width:100%;min-height:44px;padding:8px;border:1px solid #cbd4d7;border-radius:10px;color:var(--navy);background:#fff}

.sms-registration-note{font-size:10px!important;color:var(--navy)!important;margin:9px 0}

.intro-shortcuts{display:grid;grid-template-columns:1fr 1fr;gap:7px}.intro-shortcuts .intro-records{font-size:10px;gap:5px;padding:7px 5px}.intro-shortcuts .intro-records svg{width:21px;height:21px}.intro-shortcuts #intro-coupons>span:first-child{font-size:21px;line-height:1}.coupon-heading{font-size:13px;margin:0 0 10px;color:var(--navy);text-align:right}.result-hub[data-section=coupons] .coupon-panel{order:-2;flex-shrink:0}.username-suggestions{text-align:right;margin:7px 0 9px}.username-suggestions p{font-size:10px!important;line-height:1.8!important;margin:0 0 6px!important;color:var(--navy)!important}.username-suggestions>div{display:flex;flex-wrap:wrap;gap:6px}.username-suggestions button{font:inherit;font-size:12px;min-height:44px;padding:6px 12px;max-width:100%;overflow-wrap:anywhere;border:1px solid #cbd4d7;border-radius:10px;background:#fff8ed;color:var(--navy);cursor:pointer}.username-suggestions button:focus-visible{outline:2px solid var(--orange);outline-offset:2px}

.daily-coupon-rule{font-size:9px!important;line-height:1.9!important;color:var(--muted);margin:8px 0 3px}

/* A prepared record stays in the result hub. Nothing is generated at startup. */
.story-open{display:inline-flex;align-self:flex-start;align-items:center;justify-content:center;gap:7px;min-height:44px;border:1px solid #ffccb5;background:#fff8f3;border-radius:11px;padding:7px 12px;color:var(--orange);font:inherit;font-size:11px;font-weight:700;margin:9px 0 0;white-space:nowrap}.story-open:hover{background:#ffefe6}.story-ready-note{display:block;font-size:10px;line-height:1.8;color:#607785;margin-top:4px}.story-preview{flex-shrink:0}.story-preview>header{display:flex;align-items:center;justify-content:space-between;gap:8px}.story-preview h3{margin:0;font-size:14px}.story-close{min-height:44px;min-width:44px;border:0;background:transparent;font-size:24px;line-height:1}.story-preview .story-status{font-size:11px;line-height:1.8;margin:0 0 10px;color:var(--navy)}.story-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}#story-image{display:block;max-width:100%;width:auto;height:auto;max-height:260px;aspect-ratio:9/16;object-fit:contain;margin:0 auto;background:var(--navy);border-radius:12px;box-shadow:0 6px 18px #00366618}.story-controls{min-width:0}.story-link-reminder{background:#fff3e9;border-right:3px solid var(--orange);border-radius:8px;padding:10px;margin-bottom:12px}.story-link-reminder>strong{font-size:12px;color:var(--navy)}.story-link-reminder p{font-size:11px;line-height:1.9;margin:4px 0 0;color:var(--navy)}.story-steps{display:grid;gap:10px;list-style:none;margin:0;padding:0}.story-steps li{display:flex;align-items:flex-start;gap:8px;margin:0;font-size:11px;line-height:1.9}.story-steps svg{vertical-align:middle;margin:0 2px}.story-steps li>b{display:flex;align-items:center;justify-content:center;width:22px;height:22px;flex:0 0 22px;border-radius:50%;background:#fff0e8;color:var(--orange)}.story-preview .story-link-status{margin:8px 0;font-size:10px;line-height:1.9;color:var(--navy)}.story-actions{display:flex;gap:8px;flex-wrap:wrap}.story-actions>*{flex:1;min-width:100px;min-height:46px}.story-download{display:flex;align-items:center;justify-content:center;border:1px solid #ccd8df;border-radius:10px;background:#fff;color:var(--navy);font-size:11px;padding:8px}.story-link-copy{display:flex;align-items:center;justify-content:space-between;gap:7px;width:100%;min-height:44px;border:0;border-radius:10px;background:#edf3f5;font:inherit;font-size:10px;color:var(--navy);margin-top:8px;padding:8px 10px}.story-link-copy b{font-size:11px;font-weight:500}.story-extra{font-size:10px;color:#607785;margin-top:6px}.story-extra summary{cursor:pointer;min-height:44px;display:flex;align-items:center;gap:6px}.story-extra summary:before{content:'+';font-size:16px}.story-extra[open] summary:before{content:'−'}.story-extra p{font-size:10px;margin:0 0 5px}.story-extra button{min-height:44px;width:100%;border:1px solid #ccd8df;border-radius:9px;background:#fff;color:var(--navy);font:inherit}.result-hub[data-mode=overview] .story-preview{order:-3}@media(min-width:560px){.story-layout{grid-template-columns:150px minmax(0,1fr);align-items:start;direction:ltr}.story-controls{direction:rtl}#story-image{max-height:267px}}

/* Store access remains available inside each native dialog. */
.brand-actions{display:flex;align-items:center;justify-content:center;gap:8px;width:max-content;max-width:100%;margin:0 auto 6px}.site-header .brand-actions{margin:0;justify-content:flex-start}.brand-actions .brand,.brand-actions .dialog-brand{flex:0 0 auto;width:auto;min-height:44px;margin:0}.brand-actions .dialog-brand img{width:100px}.shop-link{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;min-width:64px;min-height:44px;padding:0 3px;font:inherit;font-size:11px;font-weight:700;color:var(--orange);white-space:nowrap;touch-action:manipulation}.shop-link>span{display:block;padding:5px 11px;border:1px solid #ffc9ae;border-radius:9px;background:#fff0e5;line-height:1.6}.shop-link:hover>span,.shop-link:active>span{background:#ffe3d2}#pause-dialog .brand-actions{margin-bottom:14px}

/* Phone recovery remains inside the existing result surface. */
.account-login{font:inherit;color:var(--navy);background:transparent;border:0;text-decoration:underline;text-underline-offset:4px;min-height:44px;padding:8px 3px;font-size:11px;cursor:pointer}.intro>.account-login{margin-top:4px}.auth-panel{flex-shrink:0;text-align:right;border-color:#f3c3a9}.auth-panel>header{display:flex;align-items:center;justify-content:space-between;gap:8px}.auth-panel h3{font-size:14px;margin:0;color:var(--navy)}.auth-panel p,.auth-feedback{font-size:11px;line-height:1.9;color:var(--navy)}.auth-panel .profile-form{display:grid;gap:8px}.auth-panel input{font:inherit;width:100%;min-width:0;min-height:46px;padding:9px 11px;border:1px solid #cbd4d7;border-radius:10px;color:var(--navy);background:#fff}.auth-feedback{padding:10px 12px;border-radius:10px;background:#fff1e6}.result-hub[data-mode=overview] .auth-panel,.result-hub[data-mode=overview] #account-login,.result-hub[data-mode=overview] #auth-feedback{order:-4}#auth-status{white-space:pre-line}.auth-panel button:disabled{opacity:.55;cursor:wait}

#auth-suggestions{display:flex;gap:6px;flex-wrap:wrap}#auth-suggestions button{font:inherit;border:1px solid #f3c3a9;border-radius:9px;background:#fff1e6;color:var(--navy);padding:8px 12px;min-height:44px}
