/* v1.3.3: botanical secondary stages and reference-inspired hierarchy. */
body[data-screen=instructions] .experience,body[data-screen=result] .experience,body[data-screen=claimScreen] .experience{background:#fff9e8 url('botanical.webp') center/cover no-repeat}
body .cover .dates{top:27.6%;left:9%;right:9%;font-size:clamp(13px,3.5cqw,16px)!important;font-weight:750;line-height:1.3;color:#174a38;padding:5px 0}
html:not([lang=zh-Hans]) body .cover .dates{font-size:clamp(11px,3.05cqw,14px)!important}
.header-actions{top:10px;right:10px}.language select{font-size:12px;padding:6px 8px;min-height:32px;background:#fff9e8ed}
body .section-heading h1,body .result h1,body .claim-screen h1{font-family:"Arial Rounded MT Bold","PingFang SC","Microsoft YaHei",system-ui,sans-serif;font-weight:900;letter-spacing:-.04em;line-height:1.18}
body .section-heading h1{font-size:clamp(28px,8.2cqw,38px)}
body #instructions{padding:12px 26px 10px;gap:10px}
.instruction-pair{position:relative;max-height:235px;margin:6px auto 10px}
.instruction-pair:before,.instruction-pair:after{content:'✦';position:absolute;color:#efb345;font-size:27px;top:5%;left:9%;z-index:1;transform:rotate(-10deg)}
.instruction-pair:after{left:auto;right:7%;top:10%;font-size:21px}
.instruction-pair .mini-card{border-color:#176547;border-width:3px;box-shadow:0 4px 0 #c4b77866,0 0 0 4px #f0dcac66}
.tap-cue{position:absolute;right:3%;bottom:6%;font-size:60px;line-height:1;transform:rotate(-28deg);z-index:3;filter:drop-shadow(1px 2px 0 #914d2b55)}
.steps li{display:flex;align-items:center;gap:12px;padding-left:38px;min-height:54px;margin:0 0 7px;font-size:16px}
.steps li:before{top:10px}.step-icon{width:36px;height:40px;flex:none;display:block}.step-icon svg{width:100%;height:100%;fill:#fffae9;stroke:#215b47;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
body #start{min-height:46px}#backCover{font-size:12px}
body .result{padding:0 20px 14px}
.celebration-hero{width:clamp(160px,60cqw,278px);height:clamp(95px,18cqh,150px);background:url('celebration.webp') center/contain no-repeat;margin:0 auto}
.result[data-outcome=lose] .celebration-hero{height:85px;opacity:.9}
body .result h1{font-size:clamp(26px,8cqw,37px);margin:0 0 8px}
.score-medallion{display:flex;align-items:center;justify-content:center;gap:12px;background:linear-gradient(100deg,#f7e6bf,#fff2d5,#f7e6bf);border-radius:40px;padding:5px 14px;margin:0 0 18px;min-height:58px}
.score-trophy{color:#e2a02c;font-size:35px;line-height:1;text-shadow:0 2px #b7791c33}
body .result-score{font:850 29px/1.1 system-ui;color:#c32239;margin:0}.score-medallion #resultStats{font-size:11px;padding:3px 0 0;line-height:1.35;font-weight:650}
#saveStatus:empty{display:none}.result[data-outcome=wallet] .score-medallion{display:none}
body .reward{border:2px solid #c92439;border-radius:14px;background:#fffbefed;padding:34px 12px 12px;grid-template-columns:38% 1fr;gap:4px 8px;margin:12px 0 10px}
body .reward-art{width:100%;max-width:155px}.reward .eyebrow{left:7%;right:7%;top:-10px;transform:rotate(-2deg);font-size:15px;letter-spacing:.04em;padding:6px 8px;line-height:1.3;isolation:isolate}
.reward .eyebrow:before,.reward .eyebrow:after{content:'';position:absolute;top:7px;width:22px;height:100%;background:#ae142c;z-index:-1;clip-path:polygon(0 0,100% 0,78% 50%,100% 100%,0 100%)}
.reward .eyebrow:before{left:-17px;transform:scaleX(-1)}.reward .eyebrow:after{right:-17px}
body .reward h2{font-size:clamp(19px,5.5cqw,26px);line-height:1.22;text-align:left;margin:6px 0}
.reward>p[data-content=terms]{font-size:10px;line-height:1.4;text-align:left}.reward>.primary{grid-column:1/-1;min-height:46px;margin-top:8px}
.result-actions{gap:8px}.result-actions .secondary{border-radius:7px;min-height:38px;font-size:12px;padding:8px}.result-actions .primary{min-height:42px;font-size:15px;padding:8px}
.result-detail{background:#fffaf0ee}.result-detail summary{font-size:13px;min-height:40px;padding:10px 0}
body .claim-screen{padding:0 22px 12px}
.back-result{font-size:11px;padding:0;min-height:25px;line-height:1.2}
body .claim-screen h1{font-size:clamp(25px,7.4cqw,34px);text-align:center;margin:5px 0 12px}
.claim-summary{border-color:#eed3a0;background:linear-gradient(120deg,#fff9e5,#fffdf1);padding:8px 10px;gap:10px;margin-bottom:10px}
body .claim-summary>.sprite{width:35%;max-width:125px}.claim-summary h2{font-size:clamp(20px,5.7cqw,26px);line-height:1.2}
.claim-summary .eyebrow{background:#f8e6bc;border-radius:15px;padding:2px 10px;display:inline-block;font-size:10px;letter-spacing:.04em;line-height:1.4}
.claim-screen .notice{background:#fff7e3;border:1px solid #ead6a9;border-radius:7px;padding:7px 9px;font-size:11px;line-height:1.45;margin:0 0 8px}
.claim-screen form label:not(.checkbox){margin:9px 0;font-size:12px;line-height:1.3}.claim-screen form label>span{margin-bottom:4px}
.claim-screen form input:not([type=checkbox]),.claim-screen form select{height:43px;padding:9px 12px 9px 36px;border-radius:7px;border-color:#bfc2b4;background-color:#fffef8;font-size:16px}
.field{position:relative}.field:after{position:absolute;left:12px;bottom:12px;content:'';width:15px;height:15px;pointer-events:none;background:center/contain no-repeat}
.field-name:after{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23818d86' stroke-width='1.8'%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3Cpath d='M4 22v-3a8 8 0 0 1 16 0v3'/%3E%3C/svg%3E")}
.field-contact:after{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23818d86' stroke-width='1.8'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m2 5 10 8L22 5'/%3E%3C/svg%3E")}
.claim-screen .checkbox{font-size:11px;line-height:1.4;gap:8px;margin:9px 0;min-height:23px}.claim-screen .checkbox input{width:20px;height:20px}.claim-screen .checkbox>span{margin:0}
.claim-screen #privacy{font-size:11px;line-height:1.4;margin:6px 0}.claim-screen #submitClaim{font-size:16px;min-height:45px;padding:9px;margin-top:12px}.claim-screen #cancelClaim{font-size:11px;padding:4px;min-height:28px;margin:4px auto}
@media(max-height:650px){body #instructions{padding:5px 20px 8px;gap:4px}.instruction-pair{min-height:70px;max-height:155px;margin:2px auto 4px}.instruction-pair .mini-card{height:115px;width:95px}.tap-cue{font-size:42px}.steps li{min-height:40px;margin:0;padding-bottom:2px;font-size:14px}.steps li:before{top:5px}.step-icon{width:30px;height:34px}body .section-heading h1{font-size:28px}.celebration-hero{height:90px}body .result h1{font-size:27px}body .claim-screen{padding:0 16px 10px}body .claim-screen h1{font-size:25px}.claim-summary{padding:5px 8px;margin-bottom:7px}body .claim-summary>.sprite{width:29%}.claim-summary h2{font-size:20px}.claim-screen .notice{font-size:10px;padding:6px}.claim-screen form label:not(.checkbox){margin:7px 0}.claim-screen .checkbox{margin:7px 0;font-size:10px}}
@media(max-height:540px) and (orientation:landscape){body .cover .dates{top:57%;left:3%;right:53%;font-size:13px!important}body #instructions{padding:8px 22px}.steps li{padding-left:38px}.instruction-pair{max-height:none}.claim-summary{max-width:430px;margin-left:auto;margin-right:auto}}

/* Keep form text readable above decorative corners on short phones. */
.claim-screen form{background:#fff9e8ed;border-radius:9px}

/* v1.3.4: shop name, slogan and owned channels; result return on the right. */
#shopName{font-size:24px;line-height:1.25;margin:10px 0 6px;color:var(--ink)}
#shopDescription{font-size:14px;line-height:1.6;margin:0 0 14px;color:#65766b}
#shopAddress,#shopHours{font-size:12px;line-height:1.5;margin:6px 0}
#shopLinks{display:flex;flex-wrap:wrap;gap:10px;margin:8px 0 15px}
#shopLinks[hidden]{display:none}
#shopLinks .shop-channel{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:42px;padding:8px 11px;border:1px solid #dcc9a1;border-radius:9px;background:#fffaf0;color:#174a38;font:600 12px/1.2 system-ui;text-decoration:none}
#shopLinks .shop-channel:disabled{cursor:default;opacity:.68}
#shopLinks .shop-channel:hover:not(:disabled){background:#f4ecd7;border-color:#174a38}
.channel-icon,.channel-icon svg{display:block;width:20px;height:20px;flex:none}
.result-navigation{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;margin-top:12px;background:#fff9e8ed;border-radius:7px}
.result-navigation .text-button{font-size:11px;line-height:1.4;min-height:42px;padding:8px 4px;text-align:left}
.result-navigation #home{margin-left:auto;text-align:right;flex-shrink:0}
@media(max-width:360px){#shopLinks{gap:7px}#shopLinks .shop-channel{gap:5px;padding:8px;font-size:11px}.result-navigation{gap:6px}.result-navigation .text-button{font-size:10px}}
@media(max-width:840px){#shopLinks{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}#shopLinks[hidden]{display:none}#shopLinks .shop-channel{flex-direction:column;gap:5px;padding:8px 4px;font-size:11px;min-width:0;overflow-wrap:anywhere}}

/* v1.3.5: four icon-only channels, consistent touch targets. */
#shopLinks{display:flex;flex-wrap:nowrap;gap:12px;align-items:center}
#shopLinks[hidden]{display:none}
#shopLinks .shop-channel{width:44px;height:44px;min-width:44px;min-height:44px;padding:10px;flex:none;border-radius:50%;gap:0}
#shopLinks .channel-icon,#shopLinks .channel-icon svg{width:23px;height:23px}
#shopLinks .shop-channel:focus-visible{outline:2px solid #174a38;outline-offset:3px}

/* v1.3.7: concise English footer labels remain on one line. */
html[lang=en] .result-navigation{flex-wrap:nowrap}
html[lang=en] .result-navigation .text-button{white-space:nowrap;flex-shrink:0}

/* Continuous play: scoped to the reward dialog and compact game controls. */
#kopiReward{width:min(430px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;padding:24px;border:2px solid #c9a754;border-radius:24px;background:#fff9e8;color:#174b38;text-align:center;box-shadow:0 20px 70px #0005}
#kopiReward::backdrop{background:#123a2ba8;backdrop-filter:blur(4px)}
#kopiReward .celebration-hero{width:80%;height:125px;margin:0 auto 12px}
#kopiReward h2{font-size:25px;line-height:1.2;margin:8px 0}
#kopiReward p{font-size:14px;line-height:1.5;margin:10px 0}
#kopiReward .kopi-offer{font-size:21px;font-weight:800;color:#a82d31}
#kopiReward button{margin-top:12px;position:relative}
#finishKopi{font-size:11px;padding:6px 10px;border:1px solid #c9a754;border-radius:20px;background:#fff9e8;color:#174b38}
#kopiRoundBanner{position:absolute;inset:40% 12% auto;z-index:8;background:#174b38ed;color:#fff9e8;border:2px solid #ddbb72;border-radius:18px;padding:20px 12px;font-size:19px;font-weight:800;text-align:center;pointer-events:none}
#play{position:relative}.play-tools{justify-content:space-between}.play-status #playHint{min-width:0;line-height:1.3}
.kopi-confetti{position:absolute;inset:0;pointer-events:none;overflow:hidden;border-radius:22px}
.kopi-confetti i{position:absolute;left:calc(var(--i)*5.6%);top:-20px;width:7px;height:13px;background:#dcb750;animation:kopiConfetti 2.8s ease-out both;animation-delay:calc(var(--i)*.04s)}
.kopi-confetti i:nth-child(3n){background:#b82c36}.kopi-confetti i:nth-child(3n + 1){background:#39885c}
@keyframes kopiConfetti{to{transform:translateY(520px) rotate(390deg);opacity:0}}
@media(prefers-reduced-motion:reduce){.kopi-confetti{display:none}}
@media(max-height:600px){#kopiReward{padding:14px}#kopiReward .celebration-hero{height:65px}#kopiReward p{margin:5px 0}#kopiReward button{min-height:40px;padding:9px}}
