@import url('./report.css');
:root{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:#19372e;background:#eaece7;font-synthesis:none;--paper:#f7f7f1;--green:#245d49;--ink:#173c2e;--muted:#737c70;--line:#dce0d5;--lime:#dbeaa2;--purple:#e5dff0}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;min-width:320px}button,a,input{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}button{color:inherit}button:disabled{cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,[tabindex]:focus-visible{outline:3px solid #ab793c;outline-offset:4px}button{min-height:48px}a{color:inherit;text-decoration:none}h1,h2,h3,p{margin:0}#app{max-width:460px;margin:auto;background:var(--paper);min-height:100svh;overflow:clip}.brand{font-size:24px;letter-spacing:3px;font-weight:800;display:flex;align-items:center;gap:13px}.brand span{font-size:9px;line-height:1.5;letter-spacing:2px;max-width:90px;font-weight:500}.edition,.eyebrow{font-size:10px;letter-spacing:2px}.eyebrow{color:var(--muted);line-height:1.7}.micro{font-size:11px;color:var(--muted);line-height:1.7}.primary,.secondary{width:100%;border:0;border-radius:18px;min-height:58px;padding:15px 20px;font-size:15px;font-weight:600;display:flex;justify-content:center;align-items:center;gap:12px}.primary{background:var(--ink);color:#f9f9ee;box-shadow:0 8px 18px #19372e12}.primary>span{margin-left:auto;font-size:23px;line-height:1}.primary:disabled{background:#e0e4d9;color:#8b9384;box-shadow:none}.primary:active:not(:disabled),.secondary:active{transform:scale(.985)}.secondary{background:#e9ecdf;margin-top:12px}.text-btn{border:0;background:transparent;font-size:12px;text-decoration:underline;text-underline-offset:4px}.landing{padding:32px 27px 20px;min-height:100svh;display:flex;flex-direction:column}.landing header{display:flex;justify-content:space-between;align-items:center}.landing-copy{margin-top:48px}.live-dot{width:6px;height:6px;background:var(--green);display:inline-block;border-radius:50%;margin-right:6px}.landing h1{font-size:clamp(42px,12vw,58px);line-height:1.21;letter-spacing:-2.5px;margin:18px 0}.landing h1 span{color:#6c8b59}.landing-copy>p{color:var(--muted);font-size:14px;line-height:1.85}.shuttle-art{position:relative;height:260px;flex-shrink:0;margin:6px -15px 0;display:grid;place-items:center;overflow:hidden}.landing-illustration{position:absolute;inset:6px 0 24px;display:flex;align-items:center;justify-content:center}.landing-illustration img{display:block;width:100%;height:100%;object-fit:contain}.art-mark{position:absolute;bottom:16px;right:12px;font-size:9px;letter-spacing:2px;color:#82907d}.landing-bottom{margin-top:auto;text-align:center}.intro-stats{display:flex;justify-content:space-between;margin:12px 0 26px;gap:6px}.intro-stats span{display:flex;flex-direction:column;gap:6px;font-size:10px;color:var(--muted)}.intro-stats b{font-size:24px;font-weight:500;color:var(--ink);letter-spacing:-1px}.landing-bottom>.micro{margin-top:12px}.landing-bottom .primary{text-align:left;justify-content:space-between}
.quiz{min-height:100svh;min-height:100dvh;display:flex;flex-direction:column;padding:calc(12px + env(safe-area-inset-top)) 24px calc(12px + env(safe-area-inset-bottom))}.quiz-header{display:flex;gap:15px;align-items:center;height:48px}.back{border:1px solid var(--line);border-radius:50%;width:48px;flex-shrink:0;background:transparent;font-size:22px}.progress{height:3px;background:#dfe4d8;flex:1;overflow:hidden;border-radius:4px}.progress>div{height:100%;background:var(--green);transition:width 300ms}.quiz-header>span{font-size:13px;white-space:nowrap;font-variant-numeric:tabular-nums}.quiz-header small{font-size:10px;color:var(--muted)}.question-scene{padding-top:30px;flex:1}.question-scene h1{font-size:clamp(24px,6.7vw,30px);line-height:1.42;letter-spacing:-.8px;margin:10px 0 12px;outline:none}.question-helper{font-size:12px;line-height:1.7;color:var(--muted);min-height:40px}.quiz-footer{padding-top:22px;text-align:center}.quiz-footer .micro{margin-top:10px}.quiz-footer .micro:empty{display:none}#answer-area{margin-top:26px}.slider-panel{background:#eeefe6;border:1px solid #e2e6d8;border-radius:26px;padding:28px 20px 26px}.slider-panel output{display:block;text-align:center;font-size:18px;line-height:1.5;font-weight:600;min-height:54px;text-wrap:balance}.slider-panel input{display:block;width:100%;height:48px;margin:16px 0 4px;appearance:none;background:transparent;cursor:pointer}.slider-panel input::-webkit-slider-runnable-track{height:6px;border-radius:10px;background:linear-gradient(to right,var(--green) var(--fill),#d4dccc var(--fill))}.slider-panel input::-webkit-slider-thumb{appearance:none;width:32px;height:32px;border:6px solid #fff;background:var(--green);border-radius:50%;margin-top:-13px;box-shadow:0 2px 9px #1b362333}.slider-panel input::-moz-range-track{height:6px;border-radius:10px;background:#d4dccc}.slider-panel input::-moz-range-progress{height:6px;background:var(--green)}.slider-panel input::-moz-range-thumb{width:22px;height:22px;border:5px solid white;background:var(--green);border-radius:50%}.range-ends{display:flex;justify-content:space-between;gap:24px;color:var(--muted);font-size:11px;line-height:1.5}.range-ends span{max-width:46%}.range-ends span:last-child{text-align:right}.slider-panel.compact{padding:20px;margin-bottom:12px}.compact h3{font-size:12px;font-weight:500;color:var(--muted);margin-bottom:10px}.compact output{font-size:17px;min-height:26px}.compact input{margin:6px 0 0}.swipe-area{position:relative;margin:8px 8px 22px;perspective:900px}.swipe-card{position:relative;background:#eef0df;min-height:255px;border:1px solid #dce2ca;border-radius:25px;padding:20px;text-align:center;touch-action:pan-y;user-select:none;will-change:transform;--left:0;--right:0}.card-top{display:flex;justify-content:space-between;font-size:8px;letter-spacing:1.7px;color:#829176}.card-top span:last-child{font-size:18px}.card-mark{font-size:65px;line-height:1;margin:20px;color:#507046;font-weight:200}.swipe-card p{font-size:18px;line-height:1.6;font-weight:600}.swipe-card>small{font-size:10px;color:#87907b;display:block;margin-top:16px}.swipe-stamp{position:absolute;top:50%;left:12%;width:76%;padding:16px;border:2px solid var(--green);border-radius:10px;font-size:20px;line-height:1.5;font-weight:700;color:var(--green);background:#f5f6eefa;z-index:2;transform:translateY(-50%)}.swipe-stamp.left{opacity:var(--left);transform:translateY(-50%) rotate(-8deg)}.swipe-stamp.right{opacity:var(--right);transform:translateY(-50%) rotate(8deg)}.swipe-card.dragging{box-shadow:0 0 0 3px #7a975b}.swipe-options{display:grid;grid-template-columns:1fr 1fr;gap:12px}.swipe-options button{border:1px solid var(--line);border-radius:18px;background:#fffef8;font-size:13px;line-height:1.6;padding:14px 12px;min-height:86px}.swipe-options button>span{display:block;font-size:24px;line-height:1.2;margin-bottom:6px}.swipe-options button[aria-pressed=true]{background:var(--ink);border-color:var(--ink);color:white}.choice-list{display:grid;gap:10px}.choice-list button{display:flex;justify-content:space-between;align-items:center;gap:15px;text-align:left;width:100%;padding:15px 18px;border:1px solid var(--line);background:#fffef9;border-radius:17px;font-size:14px;line-height:1.5;min-height:62px}.choice-list i{font-style:normal;color:#8a957d}.choice-list button[aria-pressed=true],.court button[aria-pressed=true]{background:#e0e9c9;border-color:#668750;box-shadow:inset 0 0 0 1px #668750}.court{display:grid;grid-template-columns:1fr 1fr;gap:2px;background:#7d9980;border:7px solid #7d9980;border-radius:12px;position:relative}.court button{background:#eff2df;border:1px solid #fff;min-height:68px;font-size:13px;padding:9px;display:flex;align-items:center;justify-content:center;gap:8px}.court button i{font-style:normal}.court-none{grid-column:span 2;background:#fafaf3!important;margin-top:8px;min-height:48px!important;border-radius:8px}.court-none[aria-pressed=true]{background:#e0e9c9!important}.round-label{font-size:10px;letter-spacing:1px;color:var(--muted);text-align:center;margin-bottom:10px}.tie{display:block;margin:4px auto -12px}.route-done{border-radius:24px;background:#edf0e2;padding:26px}.route-done>div{position:relative;display:flex;justify-content:space-between;gap:20px;padding:22px 0 16px;margin-bottom:6px;font-size:16px}.route-done i{position:absolute;bottom:0;left:0;height:3px;background:var(--green)}
@media(min-width:600px){#app{margin:24px auto;border:1px solid #d8ddd0;border-radius:28px;box-shadow:0 24px 90px #1c342712;min-height:calc(100svh - 48px)}.landing,.quiz{min-height:calc(100svh - 48px)}}
@media(max-height:760px){.question-scene{padding-top:20px}#answer-area{margin-top:16px}.slider-panel{padding:22px 18px}.swipe-card{min-height:216px;padding:16px}.card-mark{font-size:48px;margin:12px}.swipe-card p{font-size:16px}.quiz-footer{padding-top:16px}.landing-copy{margin-top:30px}.shuttle-art{height:215px}.landing{padding-top:24px}.intro-stats{margin-bottom:20px}.compact{padding:14px 18px!important}.compact output{font-size:15px}.question-scene h1{font-size:25px}.choice-list button{min-height:52px;padding:11px 14px}.choice-list{gap:8px}}
@media(max-width:350px){.landing,.quiz{padding-left:18px;padding-right:18px}.question-scene h1{font-size:24px}.swipe-options button{font-size:12px}.quiz-header{gap:10px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
/* One answer is one forward motion; the header stays still. */
.question-scene{animation:question-arrive var(--question-enter,350ms) cubic-bezier(.05,.7,.1,1) both}
.question-scene.leaving{animation:question-leave var(--question-exit,200ms) cubic-bezier(.3,0,.8,.15) both;pointer-events:none}
@keyframes question-arrive{from{opacity:0;transform:translateX(28px)}to{opacity:1;transform:translateX(0)}}
@keyframes question-leave{to{opacity:0;transform:translateX(-22px)}}
@media(prefers-reduced-motion:reduce){.question-scene,.question-scene.leaving{animation:none}}

.question-emoji{display:grid;place-items:center;min-height:76px;margin-bottom:20px;font-size:46px;line-height:1;font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif}
.option-label{display:flex;align-items:center;gap:12px;min-width:0}
.option-emoji{font-size:23px;line-height:1;flex-shrink:0}
.card-mark{font-size:52px;line-height:1.2}
.swipe-options button>span{font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif}
.answer-confirmed .slider-panel{border-color:#9aaf81;background:#e8eedb;transition:background 180ms,border-color 180ms}
.answer-confirmed output{color:#315d3f}
.tie[aria-pressed=true]{color:var(--green);background:#e0e9c9;border-radius:12px;padding:0 18px}
@media(max-height:760px){.question-emoji{min-height:50px;font-size:38px;margin-bottom:18px}.card-mark{font-size:44px}}
@media(prefers-reduced-motion:reduce){.answer-confirmed .slider-panel{transition:none}}

@media(max-height:760px){.landing-illustration{inset:0 0 20px}.shuttle-art .art-mark{bottom:5px;font-size:8px}}

/* Shared light court edition: paper, sage and restrained green accents. */
:root{--paper:#f7f8f2;--green:#32664e;--ink:#193f32;--muted:#657566;--line:#dfe6da;background:#e8ede5}
.primary,.secondary{border-radius:19px;min-height:56px}
.primary{background:linear-gradient(115deg,#285b43,#193f32);box-shadow:0 5px 12px #193f320d}
.landing{position:relative;isolation:isolate;padding:26px 26px calc(20px + env(safe-area-inset-bottom));justify-content:flex-start;background:radial-gradient(ellipse at 92% 34%,#e8efdf 0,transparent 50%),var(--paper)}
.landing header{position:relative;z-index:1}
.brand{font-size:23px;letter-spacing:2px}.edition{color:var(--muted);border:1px solid var(--line);padding:7px 9px;border-radius:20px;font-size:9px}
.landing-copy{margin-top:34px;position:relative;z-index:1}
.landing h1{font-size:clamp(42px,12vw,55px);line-height:1.19;letter-spacing:-2px;margin:16px 0 14px}
.landing h1 span{color:#819c70}.landing-copy>p{font-size:13px;line-height:1.85}
.shuttle-art{height:clamp(220px,32svh,285px);margin:-8px -26px -5px;overflow:visible}
.court-ribbon{position:absolute;width:100%;height:120%;top:-13%;left:0;color:#adc69a;pointer-events:none;overflow:visible}
.court-ribbon path:first-child{opacity:.22}.court-ribbon path:last-child{opacity:.45}
.landing-illustration{inset:0 -8px 4px;z-index:1}
.art-mark{right:28px;bottom:9px;z-index:2;letter-spacing:1px;color:#687c62}
.landing-bottom{position:relative;z-index:1;margin-top:0}
.intro-stats{background:#ffffffc9;border:1px solid #e4e9dc;border-radius:22px;padding:18px 8px;margin:9px 0 16px;gap:0}
.intro-stats span{flex:1;gap:5px;font-size:10px}.intro-stats span+span{border-left:1px solid var(--line)}
.intro-stats b{font-size:25px;font-weight:600;letter-spacing:-.8px}
.landing-bottom .primary{justify-content:center;gap:18px}.landing-bottom .primary>span{margin-left:0;font-size:20px}
.landing-bottom>.micro{font-size:10px;margin-top:10px}.landing-bottom>.micro:empty{display:none}
.quiz{background:radial-gradient(ellipse at 100% 0,#e8efdf 0,transparent 45%),var(--paper);padding-left:22px;padding-right:22px}
.quiz-header{gap:14px;height:56px}.back{background:#ffffffb3;border-color:#dde5d7;width:44px;min-height:44px;font-size:20px}
.progress{height:6px;background:#e0e7d9}.progress>div{border-radius:6px;background:linear-gradient(90deg,#8fab72,#32664e)}
.quiz-header>span{font-weight:650;color:var(--ink)}.quiz-header small{font-weight:400}
.question-scene{padding-top:30px}.question-meta{display:flex;align-items:center;justify-content:space-between;gap:10px}
.question-meta .eyebrow{background:#e7efdf;color:#496b47;border-radius:30px;padding:6px 10px;letter-spacing:1px}
.question-meta>span{font-size:10px;color:var(--muted)}
.question-scene h1{margin-top:18px;line-height:1.45;font-size:clamp(24px,6.5vw,29px)}
.question-helper{font-size:12px;line-height:1.8;min-height:0}
#answer-area{margin-top:26px}.slider-panel{background:#fffffff0;border-color:#e0e7d9;border-radius:25px;padding:26px 20px}
.question-emoji{width:86px;min-height:86px;margin:0 auto 22px;background:#f0f4e8;border-radius:50%;font-size:44px}
.slider-panel output{font-size:18px;min-height:54px}.slider-panel.compact{padding:20px;background:#fffffff0}
.compact h3{display:flex;align-items:center;gap:9px;color:#50694d}.compact h3 span{display:grid;place-items:center;width:34px;height:34px;background:#f0f4e8;border-radius:11px;font-size:21px}
.compact output{min-height:26px;font-size:16px}.range-ends{color:#657560}
.choice-list{gap:11px}.choice-list button{border-radius:19px;background:#ffffffed;border-color:#e0e7da;padding:16px;min-height:65px}
.choice-list i{font-size:18px;color:#829774}.option-emoji{display:grid;place-items:center;width:36px;height:36px;border-radius:12px;background:#f0f4e8;font-size:23px}
.choice-list button[aria-pressed=true],.court button[aria-pressed=true]{background:#e5efd9;border-color:#6e925a;box-shadow:inset 0 0 0 1px #6e925a}
.swipe-card{background:linear-gradient(155deg,#ffffff,#edf3e4);border-color:#dce6d3;min-height:255px;border-radius:25px}.card-top{color:#6f8266}.swipe-card>small{color:#66795e}
.swipe-options button{background:#fff;border-color:#dde6d6;border-radius:19px}.swipe-options button[aria-pressed=true]{background:#28563f}
.quiz-footer{padding:24px 0 8px}.quiz-footer #answer-hint{display:inline-block;border-top:1px solid var(--line);padding:12px 12px 0;color:#6b7865;font-size:10px}
.court{border-color:#789576;background:#789576;border-radius:15px}.court button{background:#f0f4e6}.court-none{color:#4d6348}
@media(min-width:600px){.landing{min-height:calc(100svh - 48px);padding-top:28px;padding-bottom:24px}.shuttle-art{height:265px}}
@media(max-height:760px){.landing{padding-top:20px}.landing-copy{margin-top:24px}.landing h1{font-size:44px;margin:12px 0}.shuttle-art{height:215px}.intro-stats{padding:14px 8px;margin:6px 0 13px}.landing-illustration{inset:0 -8px 0}.shuttle-art .art-mark{bottom:5px}.question-scene{padding-top:18px}#answer-area{margin-top:18px}.question-scene h1{margin-top:14px;font-size:25px}.question-emoji{width:68px;min-height:68px;font-size:38px;margin-bottom:16px}.slider-panel{padding:22px 18px}.swipe-card{min-height:216px}.choice-list button{min-height:56px;padding:11px 14px}.quiz-footer{padding-top:16px}}
@media(max-width:350px){.landing,.quiz{padding-left:18px;padding-right:18px}.shuttle-art{margin-left:-18px;margin-right:-18px}.question-meta>span{font-size:9px}.question-scene h1{font-size:24px}.option-label{gap:9px}}

/* Preserve the existing report palette; green-black controls are scoped to home/quiz. */
:root{--ink:#18382d;--paper:#f8f7f1}
.primary{background:#18382d;color:#fffef7;border-radius:16px;box-shadow:none;font-weight:650;letter-spacing:.5px}
.landing .primary,.quiz .primary{background:#172b24;color:#fff;box-shadow:none}
.landing .primary{border-radius:30px}
.landing .edition{border:0;padding:0;color:#687268}
.landing .text-btn{color:#172b24}
.quiz{--green:#172b24;--ink:#172b24;--muted:#687268;--line:#dce2d7;background:radial-gradient(ellipse at 100% 0,#edf1e5 0,transparent 45%),var(--paper);color:#172b24}
.quiz .progress{background:#dce2d7}.quiz .progress>div{background:#172b24}
.quiz .back{color:#172b24;background:#fff;border-color:#dce2d7}
.quiz .question-meta .eyebrow{background:#eaf0e4;color:#52624f}
.quiz .question-meta>span,.quiz .question-helper,.quiz .range-ends,.quiz .quiz-footer #answer-hint{color:#687268}
.quiz .slider-panel,.quiz .choice-list button,.quiz .swipe-options button{background:#fff;border-color:#dce2d7}
.quiz .question-emoji,.quiz .option-emoji,.quiz .compact h3 span{background:#eff3e9}
.quiz .compact h3,.quiz .choice-list i,.quiz .card-top,.quiz .swipe-card>small{color:#687268}
.quiz .slider-panel input::-webkit-slider-runnable-track{background:linear-gradient(to right,#172b24 var(--fill),#d5ddd0 var(--fill))}
.quiz .slider-panel input::-moz-range-track{background:#d5ddd0}
.quiz .slider-panel input::-webkit-slider-thumb{box-shadow:0 2px 8px #0002}
.quiz .answer-confirmed .slider-panel{background:#eff3e9;border-color:#172b24}
.quiz .answer-confirmed output{color:#172b24}.quiz .swipe-card{background:linear-gradient(155deg,#fff,#eff3e9);border-color:#dce2d7}
.quiz .swipe-card.dragging{box-shadow:0 0 0 3px #172b24}
.quiz .swipe-stamp{background:#fffffff5;color:#172b24;border-color:#172b24}
.quiz .choice-list button[aria-pressed=true],.quiz .swipe-options button[aria-pressed=true],.quiz .court button[aria-pressed=true],.quiz .tie[aria-pressed=true]{background:#172b24;color:#fff;border-color:#172b24;box-shadow:none}
.quiz .choice-list button[aria-pressed=true] i{color:#fff}
.quiz .choice-list button[aria-pressed=true] .option-emoji{background:#3c5041}
.quiz .court{background:#82917c;border-color:#82917c}.quiz .court button{background:#eff3e9;color:#263b2e}
.quiz .court-none{background:#fff!important;color:#3c5041}
.quiz .court .court-none[aria-pressed=true]{background:#172b24!important;color:#fff}
.quiz .secondary{background:#e9eee2;color:#172b24}
.quiz .route-done{background:#eff3e9}
.landing :focus-visible,.quiz :focus-visible{outline-color:#172b24}

.answer-group + .answer-group{margin-top:24px}.answer-group h3{font-size:14px;font-weight:500;color:var(--muted);margin-bottom:12px}
