:root{font-family:Inter,system-ui,-apple-system,sans-serif;color:#203047;background:#f3f5f8;font-size:14px;line-height:1.5;--ink:#203047;--muted:#6b778b;--line:#e1e6ed;--up:#178579;--down:#d55b65}
*{box-sizing:border-box}html{scroll-behavior:auto;overflow-anchor:none}[hidden]{display:none!important}body{margin:0}main{max-width:1280px;margin:auto;padding:14px 20px 32px}button,input{font:inherit}button,summary,label{touch-action:manipulation}button{cursor:pointer;background:white;color:var(--ink);border:1px solid var(--line);border-radius:7px;padding:7px 12px;min-height:34px}button:disabled{opacity:.5;cursor:default}a{color:#356099;text-decoration:none}h1,h2,h3,p{margin:0}header{display:flex;align-items:center;gap:16px;height:36px}header a{font-size:12px;white-space:nowrap}h1{font-size:23px;letter-spacing:-.8px}nav{display:flex;gap:6px;margin:8px 0}nav button{font-size:12px;min-width:90px;padding:5px 12px;min-height:30px}nav button[aria-current=true]{color:white;background:#243e61;border-color:#243e61}.timing-note{font-size:11px;color:var(--muted);margin:5px 0 10px}#status{font-size:12px;color:#b53d50;margin:6px 0}#status:empty{display:none}.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}
#trading-desk{height:min(640px,calc(100svh - 132px));min-height:440px;display:grid;grid-template-columns:minmax(0,1fr) 280px;border:1px solid var(--line);border-radius:12px;background:white;overflow:hidden}.market-panel{min-width:0;min-height:0;padding:14px;display:grid;grid-template-rows:36px 46px 30px minmax(140px,1fr) 28px;gap:5px}.market-heading{display:flex;justify-content:space-between;align-items:center;gap:6px}.market-heading>div{display:flex;align-items:baseline;gap:10px;min-width:0}.market-heading h2{font-size:15px;white-space:nowrap}.market-heading h2 span{font-size:11px;color:var(--muted);font-weight:400}#snapshot{font-size:11px;color:var(--muted);white-space:nowrap}.badge{font-size:11px;color:#3f648a;background:#eef4fa;border-radius:12px;padding:3px 8px;white-space:nowrap}.stats{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:center}.stats>div{min-width:0;position:relative;padding-left:9px;border-left:2px solid #e1e8f1;display:grid;grid-template-columns:1fr auto;align-items:baseline;gap:0 5px}.stats small{font-size:10px;color:var(--muted);grid-column:1}.stats strong{font-size:18px;letter-spacing:-.4px;grid-column:1;white-space:nowrap}.stats span{font-size:10px;color:var(--muted);grid-column:2;grid-row:2;white-space:nowrap}.chart-toolbar{display:flex;justify-content:space-between;gap:6px}.chart-toolbar>div{display:flex;gap:2px;padding:2px;background:#f3f5f8;border-radius:6px}.chart-toolbar button{min-height:24px;font-size:11px;border:0;background:transparent;padding:2px 10px}.chart-toolbar button[aria-pressed=true]{background:white;color:#244d7a;box-shadow:0 1px 3px #20304720;font-weight:700}#chart{min-height:0;width:100%;height:100%;touch-action:none;user-select:none;-webkit-user-select:none;outline-offset:2px}#chart svg{width:100%;height:100%;display:block;overflow:hidden}#chart text{font:10px system-ui;fill:#6b778b}.chart-detail{font-size:10px;color:var(--muted);height:28px;line-height:14px;overflow:hidden;font-variant-numeric:tabular-nums;background:#f7f9fc;border-radius:5px;padding:1px 6px}
.decision-panel{min-width:0;border-left:1px solid var(--line);background:#fbfcfe;padding:18px 14px;display:grid;grid-template-rows:26px 48px 122px 38px auto;gap:12px;align-content:start}.decision-heading{display:flex;align-items:center;justify-content:space-between;gap:6px}.decision-heading h2{font-size:17px;letter-spacing:-.4px;white-space:nowrap}#round-label{font-size:10px;color:var(--muted);white-space:nowrap}.my-state{padding:6px 8px;background:#eef3fb;border-radius:6px;min-width:0}.my-state strong{font-size:13px;display:block}.my-state p{font-size:11px;color:#496482;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.form-lane{min-height:0}fieldset{border:0;padding:0;margin:0;min-width:0}#choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;height:78px}#choices[data-count="3"]{grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch}#choices label{display:flex;align-items:center;justify-content:center;gap:4px;padding:6px 2px;background:white;border:1px solid #ccd8e7;border-radius:7px;font-size:12px;font-weight:650;cursor:pointer;white-space:nowrap}#choices label:has(input:checked){background:#e6effc;border-color:#4675b5;box-shadow:inset 0 0 0 1px #4675b5}input[type=radio]{accent-color:#366698;margin:0;width:12px;height:12px}#portion-control{height:36px;display:flex;align-items:center;gap:7px;font-size:10px;white-space:nowrap}#portion-control>span:first-child{color:var(--muted)}.portion-options{display:flex;gap:4px}.portion-options label{display:flex;align-items:center;gap:3px;cursor:pointer;border-radius:5px;padding:4px}.portion-options label:has(input:checked){background:#e6effc}#portion-control[data-active="false"] .portion-options{visibility:hidden}#portion-control[data-active="false"]>span:first-child{visibility:hidden}#order-preview{margin-left:auto;font-variant-numeric:tabular-nums;color:#496482;font-size:10px}.decision-actions{display:flex;gap:6px;min-width:0}.primary{background:#294e79;color:white;border-color:#294e79;font-weight:650;flex:1;min-width:0;font-size:13px}.retry-slot{width:72px;flex:none}#retry{width:100%;padding:5px 2px;font-size:11px;height:100%}.desk-extra{border-top:1px solid var(--line);margin-top:6px;padding-top:14px;color:var(--muted);font-size:11px}.desk-extra p{margin-bottom:8px}.capital strong{display:block;color:var(--ink);font-size:18px}#completion-state{height:100%;display:flex;flex-direction:column;justify-content:center;gap:6px}#completion-state>strong{font-size:16px}#completion-state p{font-size:12px;font-weight:650}#completion-state span{font-size:11px;color:var(--muted)}
#replay-controls{display:flex;gap:12px;align-items:center;margin:8px 0;font-size:11px}#replay-controls input{flex:1;min-width:0;accent-color:#366698}#replay-controls button{font-size:11px;min-height:28px;padding:3px 10px}#replay-controls output{white-space:nowrap;width:42px;text-align:right}
#reveal{margin-top:14px;padding:20px;background:white;border:1px solid var(--line);border-radius:12px;scroll-margin-top:12px}.score-heading{display:flex;justify-content:space-between;align-items:baseline;gap:10px;margin-bottom:12px}.score-heading h2{font-size:21px;letter-spacing:-.6px}.score-heading p{font-size:12px;color:var(--muted)}.score-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.score-card{padding:12px 16px;border:1px solid var(--line);background:#f8fafc;border-radius:8px;min-width:0}.score-card.participant{background:#f0f5fd;border-color:#c0d3eb}.score-card small{font-size:12px}.score-card>strong{display:block;font-size:30px;letter-spacing:-.8px;font-variant-numeric:tabular-nums;margin:3px 0}.krw-value{display:block;font-size:14px;font-weight:600}.profit-up{color:#097e68}.profit-down{color:#c73b52}.profit-flat{color:#465a72}.result-meta{display:flex;justify-content:space-between;flex-wrap:wrap;gap:3px 12px;font-size:10px;color:var(--muted);margin:7px 0 16px}.comparison-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:9px}.comparison-heading h3{font-size:16px}.comparison-heading>span{font-size:10px;color:var(--muted)}.turn-columns,.turn-row>summary{display:grid;grid-template-columns:70px minmax(0,1fr) minmax(0,1.1fr) minmax(92px,.85fr);gap:12px;align-items:center}.turn-columns{font-size:11px;color:var(--muted);padding:6px 10px;border-bottom:1px solid #cbd7e5}.turn-columns>span:last-child{text-align:right}.turn-row{border-bottom:1px solid var(--line)}.turn-row>summary{padding:9px 10px;cursor:pointer;list-style:none;min-height:58px}.turn-row>summary::-webkit-details-marker{display:none}.turn-row>summary:hover,.turn-row[open]>summary{background:#f1f6fc}.turn-row>summary>span{min-width:0}.turn-row b{font-size:13px;font-weight:650;display:block;line-height:1.5;white-space:nowrap}.turn-row small{font-size:10px;color:var(--muted);display:block;line-height:1.5;white-space:nowrap}.turn-time b:before{content:'›';display:inline-block;margin-right:5px;color:#758aa6}.turn-row[open] .turn-time b:before{transform:rotate(90deg)}.turn-pnl{text-align:right;font-variant-numeric:tabular-nums}.turn-pnl b{font-size:14px}.turn-detail{padding:10px 14px 14px;background:#f7f9fc;font-size:12px}.turn-detail p{margin:4px 0 9px}.turn-alternatives{display:flex;gap:6px;flex-wrap:wrap;font-size:11px}.turn-alternatives span{padding:4px 7px;border:1px solid var(--line);border-radius:5px;background:white}.turn-alternatives .chosen{background:#e2ecfa;border-color:#b7cdec;font-weight:650}.comparison-note{font-size:10px;color:var(--muted);margin:8px 0 14px}.feedback{border:1px solid #e7dfcc;border-radius:8px;background:#fffcf3}.feedback>summary{padding:10px 12px;cursor:pointer;font-size:13px}.feedback>summary span{font-size:12px;color:#675b45;margin-left:8px}.feedback-body{padding:4px 14px 14px}.feedback-body h3{font-size:17px;margin:5px 0}.feedback-body h4{font-size:13px;margin:12px 0 4px}.feedback-body p,.feedback-body li{font-size:13px;line-height:1.8}.feedback-body ul{padding-left:18px}.eyebrow{font-size:10px;color:var(--muted)}.result-actions{margin:10px 0}.result-actions button{font-size:12px}.calculation,.experience-info{font-size:12px;color:var(--muted)}.calculation{border-top:1px solid var(--line);padding-top:10px}.calculation summary,.experience-info summary{cursor:pointer;font-weight:600}.calculation p,.experience-info p{margin:8px 0;white-space:pre-line}.calculation h3{font-size:13px;margin:12px 0 4px}.calculation a{display:inline-block;margin:5px 0}.experience-info{margin:10px 0}.chart-key{display:flex;flex-wrap:wrap;gap:10px;font-size:11px;margin:10px 0}.chart-key .key-price{color:var(--up)}.key-average{color:#b47724}.buy-dot{color:var(--up);font-style:normal}.sell-dot{color:var(--down);font-style:normal}#participant-key{color:#315fc1}#actions,#choice-history{padding-left:20px}:focus-visible{outline:3px solid #aac5e9;outline-offset:2px}
@media(max-width:900px){main{padding:8px 10px 24px}header{height:30px;gap:12px}h1{font-size:20px}nav{margin:6px 0;gap:5px}nav button{flex:1;min-width:0;min-height:28px;padding:3px;font-size:11px}.timing-note{margin:4px 0 8px;font-size:10px}#trading-desk{height:calc(100svh - 115px);min-height:485px;max-height:850px;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) 206px}.market-panel{padding:8px 10px;grid-template-rows:30px 38px 28px minmax(120px,1fr) 28px;gap:3px}.market-heading>div{display:block}.market-heading h2{font-size:13px}#snapshot{font-size:10px;line-height:1.2}.badge{font-size:10px;padding:3px 6px}.stats{gap:8px}.stats>div{padding-left:6px;display:block}.stats small{font-size:9px;display:inline;margin-right:6px}.stats strong{font-size:14px;display:inline}.stats span{font-size:9px;display:block;line-height:1.2}.chart-toolbar button{min-height:22px;padding:1px 8px;font-size:10px}.decision-panel{border-left:0;border-top:1px solid var(--line);padding:8px 10px;grid-template-rows:20px 28px 80px 36px;gap:6px}.decision-heading h2{font-size:14px}.my-state{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:4px 7px}.my-state strong{font-size:12px;white-space:nowrap}.my-state p{font-size:10px;text-align:right}.form-lane{height:80px}#choices{height:38px;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}#choices[data-count="3"]{grid-template-columns:repeat(3,minmax(0,1fr))}#choices label{font-size:12px;padding:5px 2px}#portion-control{height:36px}.primary{font-size:12px}.retry-slot{width:72px}.desk-extra{display:none}#completion-state{gap:3px}#completion-state>strong{font-size:14px}.score-heading{display:block}.score-heading h2{font-size:19px}.score-heading p{font-size:11px;margin-top:4px}#reveal{padding:14px 10px}.score-grid{gap:7px}.score-card{padding:9px}.score-card small{font-size:11px}.score-card>strong{font-size:23px;letter-spacing:-.7px}.krw-value{font-size:12px}.comparison-heading h3{font-size:14px}.comparison-heading>span{font-size:9px}.turn-columns,.turn-row>summary{grid-template-columns:43px minmax(0,1fr) minmax(0,1.1fr) 88px;gap:6px;padding-left:2px;padding-right:2px}.turn-columns{font-size:10px}.turn-row>summary{min-height:58px;padding-top:8px;padding-bottom:8px}.turn-row b{font-size:11px}.turn-row small{font-size:9px}.turn-time b:before{margin-right:2px}.turn-pnl b{font-size:11px;letter-spacing:-.2px}.turn-detail{padding:8px}.feedback>summary{padding:9px;font-size:12px}.feedback>summary span{font-size:11px;display:block;margin:4px 0 0}.result-meta{font-size:9px}}
@media(max-height:700px) and (max-width:900px){#trading-desk{min-height:430px;height:calc(100svh - 111px);grid-template-rows:minmax(0,1fr) 188px}.decision-panel{grid-template-rows:18px 24px 74px 34px;gap:4px}.form-lane{height:74px}#choices{height:36px}#portion-control{height:32px}.market-panel{grid-template-rows:27px 32px 26px minmax(120px,1fr) 28px;gap:2px}.market-heading h2 span{display:none}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

@media(max-height:500px) and (min-width:650px){#trading-desk{height:calc(100svh - 106px);min-height:260px;grid-template-columns:minmax(0,1fr) 260px;grid-template-rows:minmax(0,1fr)}.market-panel{grid-template-rows:24px 27px 25px minmax(80px,1fr) 26px;padding:6px 8px}.decision-panel{border-left:1px solid var(--line);border-top:0;grid-template-rows:18px 24px 110px 34px;padding:10px 8px;gap:5px}.form-lane{height:110px}#choices{grid-template-columns:repeat(2,minmax(0,1fr));height:72px;font-size:11px}#choices[data-count="3"]{grid-template-columns:repeat(3,minmax(0,1fr))}#choices label{font-size:11px;padding:2px}.market-heading h2 span{display:none}}

.chart-footer{display:flex;align-items:stretch;gap:6px;min-width:0}.chart-footer .chart-detail{flex:1;min-width:0}.chart-zoom{display:flex;gap:2px;flex:none}.chart-zoom button{min-height:28px;padding:2px 6px;font-size:11px;line-height:1;touch-action:manipulation}.chart-zoom #zoom-reset{min-width:58px;font-variant-numeric:tabular-nums}#chart[data-zoom]:not([data-zoom="1"]){cursor:crosshair}

/* Position semantics stay visible without opening the legend on touch devices. */
#chart text.trade-caption{font-size:11px;font-weight:700;fill:#263d59}#chart text.trade-legend{font-size:9px;fill:#52657b}.chart-detail{white-space:pre-line}

.practice-modes{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.practice-modes a{padding:9px 12px;border:1px solid #dce5df;border-radius:8px;color:#53675f;text-decoration:none;font-size:14px}.practice-modes [aria-current]{border-color:#175f50;color:#175f50;font-weight:700}
