*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:#030b09;color:#deeee8;font-family:Inter,"Segoe UI",Arial,sans-serif}body{background:radial-gradient(ellipse at 50% 35%,#112b25,#030b09 72%);min-height:100svh;display:flex;flex-direction:column;justify-content:center;padding:18px 18px 12px;gap:14px}button,select{font:inherit}button{cursor:pointer;color:inherit;border:1px solid #285347;background:#091e18;border-radius:10px;padding:11px 16px;transition:background .15s,border-color .15s}button:hover{background:#153a2d;border-color:#6ed9ac}button:focus-visible,select:focus-visible{outline:2px solid #89ffd0;outline-offset:4px}button:disabled{opacity:.4;cursor:default}[hidden]{display:none!important}#instrument{position:relative;aspect-ratio:16/9;max-height:calc(100svh - 115px);width:min(100%,1700px);margin:0 auto;overflow:hidden;border-radius:30px;border:1px solid #7a9b91;box-shadow:0 0 0 3px #132621,0 0 0 5px #344840,inset 0 0 35px #020807,0 30px 100px #0009;background:#03110c}canvas{display:block;width:100%;height:100%;touch-action:none}.top{position:absolute;left:4%;right:3.4%;top:4.2%;display:flex;align-items:center;justify-content:space-between;gap:16px;pointer-events:none}.identity{display:flex;align-items:center;gap:26px;min-width:0}.brand{font-size:clamp(13px,1.65vw,27px);font-weight:850;letter-spacing:-.7px;white-space:nowrap}.brand i{font-style:normal;color:#819a90;margin:0 6px}.brand b{color:#8efec6}.facts{font-size:clamp(10px,1.02vw,17px);color:#c2d4cd;border-left:1px solid #608174;padding-left:24px;white-space:nowrap}.facts i{font-style:normal;color:#6ba18b}.actions{display:flex;gap:10px;pointer-events:auto}.actions button{padding:8px;min-width:40px;min-height:40px;background:#041711bf;font-size:23px}.bottom{position:absolute;left:2.5%;right:2.5%;bottom:3.2%;pointer-events:none}.tip{display:flex;gap:28px;justify-content:center;align-items:center;font-size:clamp(10px,1.06vw,17px);margin-bottom:12px}.tip b{color:#85ffc1;letter-spacing:1px;white-space:nowrap}.hud{display:grid;grid-template-columns:repeat(5,1fr);border:1px solid #287449;background:#00110ddb;padding:9px;gap:14px;border-radius:16px;backdrop-filter:blur(10px);box-shadow:0 0 22px #20f19d0d}.hud>div{position:relative;padding:9px 16px;border:1px solid #23583c;border-radius:7px;display:flex;flex-direction:column;justify-content:center;gap:4px}.hud>div:before,.hud>div:after{content:"";position:absolute;width:10px;height:7px;border-left:2px solid #70ffc1;left:-1px}.hud>div:before{top:-1px;border-top:2px solid #70ffc1;border-radius:5px 0 0 0}.hud>div:after{bottom:-1px;border-bottom:2px solid #70ffc1;border-radius:0 0 0 5px}.hud span{font-size:clamp(8px,.81vw,13px);letter-spacing:.8px;color:#a8c0b7}.hud strong{font-size:clamp(16px,2.0vw,33px);line-height:1.1;font-weight:750;color:#87ffc1}.hud small{font-size:.56em;color:#718b7f;font-weight:500}.control-bar{display:flex;width:min(100%,1700px);margin:0 auto;gap:20px;align-items:center;flex-wrap:wrap;padding:0 3px;font-size:12px}.start-controls,.file-controls{display:flex;gap:9px;align-items:center}.start-controls label{color:#91b1a3;margin-right:4px}select{background:#081b15;color:#d6eee3;border:1px solid #285347;border-radius:9px;padding:11px 28px 11px 12px}.primary{background:#83f4ba;color:#06261a;border-color:#96ffd2;font-weight:700}.primary:hover{background:#b0ffdc}.primary span{margin-left:25px}.file-controls{margin-left:auto}.prototype-note{color:#779586;font-size:11px}.demo-label{position:absolute;left:4%;top:13%;font-size:10px;letter-spacing:1.6px;color:#81b69c;pointer-events:none;display:flex;align-items:center;gap:8px}.live-dot{width:5px;height:5px;border-radius:50%;background:#7affe0;box-shadow:0 0 10px #4effad}#crosshair{position:absolute;width:24px;height:24px;transform:translate(-50%,-50%);pointer-events:none;display:none;filter:drop-shadow(0 0 3px #000)}#crosshair i{position:absolute;background:#e9fff4;border-radius:2px}#crosshair i:first-child{width:1px;height:24px;left:11px}#crosshair i:last-child{height:1px;width:24px;top:11px}.floater{position:absolute;pointer-events:none;color:#a1ffd4;font-size:clamp(19px,2vw,33px);font-weight:800;animation:float .95s ease-out forwards;white-space:nowrap;text-shadow:0 2px 8px #002e1a}.floater small{display:block;font-size:12px;font-weight:500;color:#d3eee0}.floater.negative{color:#ff9086}.veil{position:fixed;inset:0;display:grid;place-items:center;background:#00130bd9;backdrop-filter:blur(12px);z-index:5;padding:22px}.dialog{max-width:470px;width:100%;background:linear-gradient(145deg,#133a2a,#071b15);border:1px solid #468266;border-radius:24px;padding:34px;box-shadow:0 30px 100px #0008;text-align:center}.dialog h1,.dialog h2{font-weight:650;letter-spacing:-1px;font-size:32px;margin:18px 0}.dialog p{color:#b0c6ba;line-height:1.6;font-size:14px}.dialog button{display:block;width:100%;margin-top:12px}.eyebrow{font-size:10px;letter-spacing:2px;color:#7dcca0}.result h2{font-size:74px;color:#8effc5;margin:16px 0}.result h2 small{font-size:21px;color:#87a997}.note{font-size:11px!important;color:#799a89!important}.ledger-row{display:flex;justify-content:space-between;padding:7px 0;border-bottom:1px solid #315942;font-size:13px;color:#c6ddcf}.ledger-row b{color:#8bffbc}.ledger-row.negative b{color:#ff9589}.loader{width:40px;height:40px;border:2px solid #265f41;border-top-color:#9effc8;border-radius:50%;margin:0 auto;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@keyframes float{0%{opacity:0;transform:translateY(8px)}15%{opacity:1}100%{opacity:0;transform:translateY(-35px)}}@media(max-width:850px){body{padding:10px;gap:15px}.facts,.prototype-note{display:none}#instrument{max-height:none;border-radius:20px}.top{top:5%;left:5%}.actions{gap:5px}.actions button{min-width:28px;min-height:28px;font-size:16px;padding:3px}.demo-label{top:16%;font-size:7px;letter-spacing:.8px}.tip{gap:10px;margin-bottom:7px;font-size:8px}.hud{gap:5px;padding:5px;border-radius:9px}.hud>div{padding:5px 6px;gap:2px}.hud span{font-size:6px;letter-spacing:.25px}.hud strong{font-size:15px}.hud small{font-size:9px}.control-bar{justify-content:center;gap:12px}.file-controls{margin-left:0}.control-bar button,.control-bar select{font-size:11px;padding:9px}.start-controls label{display:none}.brand{font-size:14px}.floater small{font-size:9px}}@media(max-width:500px){#instrument{aspect-ratio:4/3}.brand{font-size:11px}.actions button{min-width:23px;min-height:23px;font-size:14px}.tip{flex-direction:column;gap:4px}.hud>div{padding:4px}.hud span{font-size:5px;letter-spacing:0}.hud strong{font-size:13px}.hud small{font-size:7px}.hud{gap:3px}.dialog{padding:25px}.dialog h2{font-size:27px}.result h2{font-size:60px}.demo-label{font-size:6px;top:15%}.bottom{bottom:4%}.floater{font-size:20px}}

.start-controls{flex-wrap:wrap;justify-content:center}body[data-embed]{padding:12px 14px;gap:12px;justify-content:center}.file-controls[data-embed]{display:none}@media(min-width:851px){body[data-embed] #instrument{max-height:calc(100svh - 95px)}}
.result-veil{overflow:auto;align-items:start;padding:24px}.result-sheet{width:min(1080px,100%);margin:auto;background:linear-gradient(145deg,#102c23,#05140f);border:1px solid #468266;border-radius:24px;display:grid;grid-template-columns:1.15fr 1fr;box-shadow:0 25px 90px #0008}.result-detail,.result-reward{padding:30px}.result-detail{border-right:1px solid #315942}.result-detail h2{font-size:62px;line-height:1;margin:12px 0;color:#8effc5}.result-detail h2 small{font-size:20px;color:#87a997}.result-sheet p{font-size:13px;color:#b0c6ba;line-height:1.6}.result-sheet button:not(.voucher){width:100%;margin-top:12px}.result-reward h2{font-size:27px;line-height:1.2;letter-spacing:-.7px;margin:16px 0 24px}.result-photo{position:relative;margin:18px 0;border-radius:12px;overflow:hidden;border:1px solid #315942}.result-photo>img{display:block;width:100%}#resultMarks{position:absolute;inset:0}#resultMarks span{position:absolute;transform:translate(-50%,-50%);color:#b3ffdb;background:#05231ebf;border:1px solid #7de9b1;border-radius:50%;padding:5px;font-size:11px;font-weight:700}#resultMarks .negative{color:#ffb2a4;border-color:#ff9589}.voucher{--c-top:#21407d;--c-bot:#0c1a38;--c-edge:#3f74d8;--c-glow:#4aa8ff;--c-amt:#8fd3ff;display:block;background:transparent;border:0;padding:0;width:100%;height:238px;perspective:1000px;text-align:left}.voucher:hover{background:transparent;border:0}.voucher-rotor{position:relative;display:block;width:100%;height:100%;transform-style:preserve-3d;transition:transform .6s}.voucher.is-flipped .voucher-rotor{transform:rotateY(180deg)}.voucher-face{position:absolute;inset:0;backface-visibility:hidden;border:1px solid var(--c-edge);background:radial-gradient(ellipse at 75% 20%,var(--c-top),var(--c-bot));border-radius:16px;padding:22px;box-shadow:0 0 30px color-mix(in srgb,var(--c-glow) 15%,transparent);overflow:hidden;display:flex;flex-direction:column;justify-content:space-between;color:#eaf5ff;font-size:11px}.voucher-face>b{font-size:12px;letter-spacing:.5px}.voucher-front>strong{font-size:clamp(34px,3.6vw,50px);color:var(--c-amt);letter-spacing:-1px}.voucher-front small{font-size:22px}.voucher-front i{position:absolute;right:22px;bottom:22px;font-style:normal;font-size:40px;color:var(--c-amt)}.voucher-back{transform:rotateY(180deg);text-align:center}.voucher-back img{height:110px;width:100%;object-fit:contain}.voucher-back strong{font-size:22px;color:var(--c-amt)}.voucher-back s{color:#93a8b6}.result-reward .note{margin:20px 0}.result-reward #prizePending{min-height:160px;display:grid;place-content:center;text-align:center}body[data-state=playing] #scenario,body[data-state=playing] #transition,body[data-state=paused] #scenario,body[data-state=paused] #transition{opacity:.7}@media(max-width:650px){.result-veil{padding:12px}.result-sheet{grid-template-columns:1fr}.result-detail,.result-reward{padding:22px}.result-detail{border-right:0;border-bottom:1px solid #315942}.result-detail h2{font-size:52px}.voucher-front>strong{font-size:40px}.result-reward h2{font-size:24px}}
.radar-menu{position:absolute;inset:0;z-index:2;overflow:auto;background:linear-gradient(90deg,#031b14f2,#031b14c9 60%,#031b1499);padding:70px 5% 24px;display:grid;align-items:center}.radar-menu-panel{width:min(970px,100%);margin:auto}.radar-menu h1{font-size:clamp(35px,4.5vw,64px);font-weight:650;letter-spacing:-2px;line-height:1;margin:12px 0}.radar-menu h1 em{font-style:normal;color:#8efec6;font-weight:350}.radar-lead{font-size:clamp(13px,1.6vw,21px);line-height:1.4;color:#bfdace;margin:0 0 18px}.radar-facts{display:flex;gap:26px;margin-bottom:22px;font-size:11px;color:#a0beaf}.radar-facts b{font-size:20px;color:#eafff5;margin-right:4px}.scenario-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.scenario-card{position:relative;min-height:112px;padding:18px 15px;text-align:left;background:#13382edb;border:1px solid #5c9d7a99;border-radius:13px;transition:background .18s,transform .18s}.scenario-card:hover{transform:translateY(-4px);background:#255441;border-color:#8efec6}.scenario-card small{display:block;font-size:9px;letter-spacing:1.2px;color:#8efec6;margin-bottom:12px}.scenario-card b{display:block;font-size:20px;margin-bottom:7px}.scenario-card span{display:block;color:#b7d1c1;font-size:11px;line-height:1.35}.scenario-card i{position:absolute;top:14px;right:14px;font-size:19px;font-style:normal}.radar-rules{font-size:12px;line-height:1.65;color:#adc5b9;margin:16px 0 12px}.radar-rules b{color:#8efec6}.wave-choice{display:flex;align-items:center;gap:12px;margin-bottom:12px;font-size:11px;color:#adc5b9}.wave-choice select{padding:8px 26px 8px 10px;font-size:11px}.top{z-index:3}body[data-menu=true] .bottom,body[data-menu=true] .demo-label,body[data-menu=true] .start-controls{display:none}.radar-menu .eyebrow{font-size:9px}@media(max-width:850px){.radar-menu{padding:54px 5% 18px}.radar-menu h1{font-size:34px;margin:8px 0}.radar-lead{font-size:13px;margin-bottom:12px}.radar-facts{margin-bottom:14px;gap:18px}.scenario-cards{grid-template-columns:repeat(2,1fr);gap:8px}.scenario-card{padding:13px 12px;min-height:92px}.scenario-card small{font-size:8px;margin-bottom:7px}.scenario-card b{font-size:17px}.scenario-card span{font-size:10px}.radar-rules{font-size:11px;margin-top:12px}}@media(max-width:500px){.radar-menu{padding-top:44px}.radar-menu h1{font-size:29px}.radar-lead{display:none}.radar-facts{font-size:9px;margin-bottom:12px;gap:15px}.radar-facts b{font-size:16px}.scenario-card{min-height:85px;padding:11px}.radar-rules{font-size:10px}.radar-menu .eyebrow{font-size:7px}.wave-choice{gap:8px;font-size:10px}.wave-choice select{font-size:10px}.radar-menu .note{font-size:9px!important}}@media(prefers-reduced-motion:reduce){.scenario-card,.voucher-rotor{transition:none}}
.voucher-rotor{transform:rotateY(-12deg) rotateZ(-4deg);transition:transform 1.1s cubic-bezier(.22,.61,.36,1)}.voucher.is-flipped .voucher-rotor{transform:rotateY(180deg) rotateZ(2deg)}.voucher-face{-webkit-backface-visibility:hidden}.voucher-back img{filter:drop-shadow(0 10px 12px #0007)}
@media(prefers-reduced-motion:reduce){.voucher-rotor{transition:none}}
.radar-menu{position:fixed}
body[data-menu=true] #instrument{height:calc(100svh - 36px);aspect-ratio:auto;max-height:none}body[data-menu=true] .control-bar{display:none}
body[data-menu=true] .top{position:fixed;top:16px;left:5%;right:5%}

/* The radar fills its frame; statistics have their own compact row below it. */
body,body[data-embed]{height:100svh;min-height:0;justify-content:flex-start;gap:10px;padding:12px 14px;overflow:hidden}
#instrument,body[data-embed] #instrument{width:100%;flex:1 1 0;min-height:0;height:auto;aspect-ratio:auto;max-height:none}
.bottom{position:relative;inset:auto;width:100%;margin:0;flex:none;pointer-events:auto}
.tip{margin:0 0 7px;font-size:12px;gap:18px}.hud{gap:10px;padding:7px}.hud>div{padding:7px 12px}.hud strong{font-size:27px}.hud span{font-size:10px}.control-bar{width:100%;flex:none}
body[data-menu=true] #instrument{width:100%;height:auto;aspect-ratio:auto}
@media(max-width:850px){body,body[data-embed]{padding:10px;gap:8px}.hud{gap:6px}.hud strong{font-size:22px}.hud span{font-size:8px}.tip{font-size:10px}}
@media(max-width:500px){.hud{grid-template-columns:repeat(6,minmax(0,1fr));gap:5px;padding:6px}.hud>div{grid-column:span 2;padding:5px 7px}.hud>div:nth-last-child(-n+2){grid-column:span 3}.hud span{font-size:8px}.hud strong{font-size:21px}.hud small{font-size:12px}.tip{gap:3px;flex-direction:column;font-size:10px}.bottom{bottom:auto}}
.result-veil{padding:14px}.result-detail,.result-reward{padding:20px}.result-detail>.eyebrow,.result-reward>.eyebrow,.result-reward>h2{display:none}.result-detail h2{font-size:48px;margin:0 0 8px}.result-sheet p{font-size:11px;margin:8px 0}.result-photo{margin:10px 0;max-height:160px}.result-photo>img{height:160px;object-fit:fill}.ledger-row{padding:5px 0;font-size:11px}.voucher{height:200px}.result-reward #prizePending{min-height:210px}.result-reward .note{margin:8px 0;font-size:10px!important}.resultBreakdown summary{cursor:pointer;padding:7px 0;font-size:11px;color:#a6c3b3}.result-sheet button:not(.voucher){padding:9px;margin-top:8px}
@media(max-width:650px){.result-veil{padding:10px}.result-detail,.result-reward{padding:12px 16px}.result-detail h2{font-size:38px;margin-bottom:4px}.result-photo{display:none}.result-detail #preview{display:none}.result-reward{padding-top:10px}.voucher{height:176px}.voucher-face{padding:15px}.voucher-back img{height:80px}.voucher-front>strong{font-size:35px}.result-reward #prizePending{min-height:176px}.result-reward .note{font-size:9px!important;line-height:1.3}.result-sheet button:not(.voucher){padding:8px;margin-top:6px}}

body[data-embed] #scenarioMenu{display:none}

body[data-embed] #start{display:none!important}
body[data-embed][data-mode=demo] #preview{display:none!important}

body[data-embed] .control-bar{display:none}
body[data-embed]:not([data-state=playing]):not([data-state=paused]) .bottom,body[data-host-stage=entry] .bottom,body[data-host-stage=entry] .veil{display:none}
body[data-host-stage=entry] .demo-label{display:none}

/* Keep the reward centred, with room for both faces of the coupon. */
.result-reward{text-align:center;padding:26px 24px 22px}
.result-reward>.eyebrow{display:block;font-size:9px;letter-spacing:1.5px}
.result-reward>h2{display:block;font-size:23px;line-height:1.2;margin:10px 0 22px}
.result-reward .voucher{width:min(360px,calc(100% - 20px));height:214px;margin:0 auto 16px;text-align:center}
.voucher-rotor{transform:rotateY(-6deg) rotateZ(-2deg)}
.voucher.is-flipped .voucher-rotor{transform:rotateY(180deg) rotateZ(1deg)}
.voucher-face{align-items:center;padding:22px 18px;border-radius:16px}
.voucher-face:after{content:"";position:absolute;inset:8px;border:1px solid color-mix(in srgb,var(--c-edge) 45%,transparent);border-radius:10px;pointer-events:none}
.voucher-front>span:first-child{letter-spacing:1.4px;font-size:9px;opacity:.7}
.voucher-front>strong{font-size:52px;line-height:1.1}
.voucher-front i{font-size:25px;right:19px;bottom:18px}
.voucher-back img{height:90px}
.voucher-back>b{font-size:11px;max-width:100%;overflow-wrap:anywhere}
@media(max-width:650px){.result-reward{padding:14px 16px}.result-reward>.eyebrow{font-size:8px;letter-spacing:1px}.result-reward>h2{font-size:20px;margin:8px 0 16px}.result-reward .voucher{height:176px;margin-bottom:10px}.voucher-face{padding:18px}.voucher-front>strong{font-size:44px}.voucher-back img{height:65px}}
