:root {
  color-scheme: light;
  --ink: #29464a;
  --muted: #607476;
  --line: #dbe7e1;
  --accent: #1c7568;
  --soft: #e8f3ed;
  --red: #a34e44;
  --green: #397457;
  --blue: #4d6ca1;
  font-family: "Pretendard", system-ui, -apple-system, "Segoe UI", "Malgun Gothic", sans-serif;
  font-synthesis: none;
  line-height: 1.65;
  color: var(--ink);
  background: #f2faf7;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 280px; padding: 24px 28px 48px; }
main { max-width: 1000px; margin: auto; }
a { color: inherit; }
button { font: inherit; cursor: pointer; touch-action: manipulation; }
button:disabled { cursor: default; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
:is(a, button, summary):focus-visible { outline: 3px solid #194e76; outline-offset: 4px; }
[tabindex="-1"]:focus { outline: none; }
.skip-link { position: absolute; left: 20px; top: -90px; padding: 12px 16px; background: var(--ink); color: white; z-index: 20; border-radius: 10px; }
.skip-link:focus { top: 16px; }
.top-nav { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 30px; font-size: 13px; }
.top-nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.top-nav a:first-child { padding: 0 18px; background: white; border: 1px solid var(--line); border-radius: 24px; }
.top-nav a:last-child { color: var(--muted); }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.eyebrow, .section-label { margin: 0 0 9px; font-size: 12px; font-weight: 750; letter-spacing: .025em; color: var(--accent); }
.eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow span { padding-left: 10px; border-left: 1px solid #c4d8cf; color: var(--muted); font-size: 10px; letter-spacing: .08em; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { word-break: keep-all; }
h1 { margin-bottom: 10px; font-size: clamp(29px, 4.5vw, 44px); letter-spacing: -.045em; line-height: 1.25; }
h1 span { color: var(--accent); }
h2 { font-size: clamp(22px, 3vw, 28px); letter-spacing: -.035em; line-height: 1.4; margin-bottom: 12px; }
h3 { font-size: 18px; line-height: 1.5; letter-spacing: -.02em; margin-bottom: 12px; }
.lead { color: var(--muted); font-size: 14px; margin: 0; word-break: keep-all; }
.heading-mark { display: flex; flex-shrink: 0; padding: 12px 2px 8px; }
.heading-mark i { width: 44px; height: 58px; margin-left: -5px; display: grid; place-items: center; font-style: normal; font-weight: 800; border: 3px solid #f2faf7; border-radius: 14px; background: #e8d6cd; color: #92534c; transform: rotate(-9deg); }
.heading-mark i:nth-child(2) { background: #cee3d5; color: #3f7055; transform: translateY(-8px) rotate(5deg); }
.heading-mark i:nth-child(3) { background: #d8e2f2; color: #516b99; transform: rotate(12deg); }
.steps { display: flex; list-style: none; padding: 0; margin: 0 0 22px; border: 1px solid var(--line); border-radius: 16px; background: #ffffff80; overflow: hidden; }
.steps li { flex: 1; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 8px; color: #647b75; font-size: 13px; }
.steps b { font-size: 11px; font-variant-numeric: tabular-nums; }
.steps [aria-current="step"] { background: #e1efe7; color: #1b6657; font-weight: 750; }
.steps .is-complete { color: #3e7564; }
.panel { padding: 32px; background: #fff; border: 1px solid var(--line); border-radius: 26px; box-shadow: 0 5px 0 #dfede580; scroll-margin-top: 18px; }
.ready-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 34px; }
.ready-copy { padding-top: 12px; }
.ready-copy h2 { font-size: clamp(28px, 3.6vw, 37px); line-height: 1.35; }
.ready-copy > p:not(.section-label) { font-size: 14px; color: var(--muted); line-height: 1.9; word-break: keep-all; }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 18px; min-height: 48px; padding: 11px 22px; border: 1px solid var(--accent); border-radius: 13px; background: var(--accent); color: white; font-size: 14px; font-weight: 700; text-decoration: none; box-shadow: 0 3px 0 #12594f; transition: background .18s, transform .18s; }
.btn:hover { background: #155f55; }
.btn:active { transform: translateY(2px); box-shadow: none; }
.btn.secondary { background: #fff; color: var(--accent); border-color: #bfdbcf; box-shadow: none; }
.btn.secondary:hover { background: var(--soft); }
.small-note { font-size: 12px !important; color: var(--muted); line-height: 1.7 !important; margin: 14px 0 0; }
.ready-art { min-width: 0; align-self: center; padding: 25px 20px 14px; background: #f4f5ef; border-radius: 22px; }
.base-card { display: flex; justify-content: center; align-items: center; gap: 13px; }
.base-swatch { width: 49px; height: 49px; background: rgb(128,128,128); border: 5px solid white; border-radius: 13px; box-shadow: 0 3px 8px #283d2012; }
.base-card strong { display: block; font-size: 13px; }
.base-card code { display: block; font-size: 12px; color: var(--muted); }
.branch-lines { display: flex; justify-content: space-around; height: 29px; margin: 0 15%; }
.branch-lines i { align-self: flex-end; height: 16px; width: 1px; background: #cbd8cf; }
.sample-row { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.sample-card { padding: 8px 8px 11px; border-radius: 14px; background: #fff; text-align: center; box-shadow: 0 3px 0 #dfe3d9; }
.sample-color { height: 76px; border-radius: 8px; margin-bottom: 7px; }
.sample-r { background: rgb(152,128,128); }
.sample-g { background: rgb(128,152,128); }
.sample-b { background: rgb(128,128,152); }
.sample-card b { font-size: 13px; }
.sample-card small { display: block; font-size: 10px; color: var(--muted); }
.ready-art > p { margin: 17px 0 0; text-align: center; font-size: 12px; color: var(--muted); }
.ready-rules { grid-column: 1/-1; display: grid; grid-template-columns: 1fr 1fr; gap: 26px; padding-top: 25px; border-top: 1px solid var(--line); }
.ready-rules article { display: flex; gap: 12px; }
.rule-number { flex-shrink: 0; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: var(--soft); color: var(--accent); font-size: 11px; font-weight: 750; }
.ready-rules h3 { font-size: 15px; margin: 2px 0 6px; }
.ready-rules p { margin: 0; font-size: 13px; color: var(--muted); word-break: keep-all; }
.experiment-note { grid-column: 1/-1; margin: -7px 0 0; padding: 12px 16px; border-radius: 11px; font-size: 12px; background: #f5f7f4; color: var(--muted); word-break: keep-all; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.panel-heading h2 { margin: 0; }
.counter { font-variant-numeric: tabular-nums; flex-shrink: 0; padding: 7px 12px; border-radius: 10px; background: var(--soft); color: var(--accent); font-size: 13px; font-weight: 700; }
.progress-track { height: 4px; background: #edf2ee; border-radius: 4px; overflow: hidden; margin: 0 0 25px; }
.progress-track > div { height: 100%; width: 0; background: #7aa693; }
.observe-layout { display: grid; grid-template-columns: minmax(0,1fr) 230px; gap: 34px; align-items: start; }
.board-column { min-width: 0; max-width: 520px; }
.board-caption { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; margin-bottom: 12px; }
.channel-pill { padding: 5px 12px; border-radius: 8px; background: #f1f4f1; font-weight: 750; color: var(--ink); }
.board-caption > span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; }
.board { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 8px; aspect-ratio: 1; padding: 10px; border-radius: 17px; background: #eceeeb; border: 1px solid #dfe2de; user-select: none; }
.tile { position: relative; border: none; padding: 0; border-radius: 7px; min-width: 0; min-height: 0; color: #fff; }
.tile:focus-visible { outline: 3px solid #173e57; outline-offset: 2px; z-index: 1; }
.tile.is-answer::after, .tile.is-wrong::after { position: absolute; inset: 0; display: grid; place-items: center; font-size: clamp(16px,3vw,28px); font-weight: 900; text-shadow: 0 1px 4px #000; }
.tile.is-answer::after { content: "✓"; box-shadow: inset 0 0 0 3px white; border-radius: inherit; }
.tile.is-wrong::after { content: "×"; }
.keyboard-hint { margin: 12px 0 0; color: var(--muted); font-size: 11px; text-align: center; }
.observe-aside { padding-top: 2px; }
.timer-box { padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: #f8faf6; }
.timer-box > span { font-size: 12px; color: var(--muted); }
.timer-box > strong { display: block; font-size: 34px; line-height: 1.45; font-variant-numeric: tabular-nums; }
.timer-box small { font-size: 13px; font-weight: 500; margin-left: 5px; }
.timer-track { height: 5px; border-radius: 4px; background: #e2e8df; overflow: hidden; margin-top: 7px; }
.timer-track > div { width: 100%; height: 100%; background: #77a58a; transform-origin: left; }
.live-records { margin: 20px 0; display: grid; gap: 7px; }
.live-record { display: flex; align-items: center; justify-content: space-between; font-size: 13px; padding: 9px 11px; border-radius: 9px; background: #f6f8f5; }
.live-record b { font-size: 12px; }
.live-record span { color: var(--muted); font-variant-numeric: tabular-nums; }
.round-response { min-height: 126px; }
.round-response > p { margin: 0 0 12px; min-height: 44px; font-size: 14px; word-break: keep-all; }
.round-response .btn { width: 100%; }
.text-btn { display: block; min-height: 44px; border: none; background: none; padding: 6px 0; color: var(--muted); font-size: 12px; text-decoration: underline; text-underline-offset: 4px; }
.complete-badge { padding: 6px 10px; border-radius: 8px; background: var(--soft); color: var(--accent); font-size: 11px; white-space: nowrap; }
.summary-cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 24px 0 18px; }
.summary-card { border: 1px solid var(--line); border-radius: 15px; padding: 16px 18px; }
.summary-card > b { font-size: 13px; }
.summary-card strong { display: block; font-size: 30px; font-variant-numeric: tabular-nums; line-height: 1.5; margin-top: 5px; }
.summary-card strong small { font-size: 12px; color: var(--muted); font-weight: 500; }
.summary-card p { font-size: 11px; color: var(--muted); margin: 4px 0 0; }
.summary-text { font-size: 14px; word-break: keep-all; }
.table-wrap { overflow-x: auto; }
.results-table { border-collapse: collapse; width: 100%; text-align: center; font-size: 13px; margin: 4px 0 12px; }
.results-table caption { text-align: left; font-size: 12px; font-weight: 700; padding-bottom: 9px; color: var(--muted); }
.results-table :is(th,td) { padding: 10px 7px; border-bottom: 1px solid #e7ede8; font-variant-numeric: tabular-nums; }
.results-table thead th { background: #f4f7f3; font-size: 12px; }
.results-table tbody th { font-weight: 600; }
.observation-footnote { color: var(--muted); font-size: 12px; margin: 10px 0 0; }
.bridge-note { margin: 26px 0; padding: 20px; border-radius: 15px; background: #f2f5ec; }
.bridge-note b { font-size: 16px; }
.bridge-note p { margin: 5px 0 0; color: var(--muted); font-size: 13px; word-break: keep-all; }
.formula-banner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; padding: 15px 20px; background: #f3f6ef; border-radius: 14px; }
.formula-banner > span { font-size: 12px; color: var(--muted); }
.formula-banner strong { font-size: 21px; letter-spacing: -.025em; }
.formula-banner small { color: var(--muted); font-size: 11px; }
.text-r { color: var(--red); }
.text-g { color: var(--green); }
.text-b { color: var(--blue); }
.prediction-instruction { font-size: 14px; margin: 23px 0 16px; word-break: keep-all; }
.prediction-cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.prediction-card { display: flex; flex-direction: column; padding: 10px; border: 1px solid var(--line); border-radius: 17px; min-width: 0; }
.prediction-card.is-picked { box-shadow: 0 0 0 2px #6e8e82; }
.prediction-card.is-best { border-color: var(--accent); }
.prediction-choice { display: flex; flex: 1; flex-direction: column; align-items: stretch; border: none; background: #fff; color: var(--ink); padding: 0; width: 100%; text-align: left; border-radius: 10px; }
.prediction-choice:not(:disabled):hover .color-patch { box-shadow: inset 0 0 0 3px #ffffff90; }
.color-patch { display: block; flex-shrink: 0; height: 130px; border-radius: 10px; margin-bottom: 12px; }
.card-label { display: flex; justify-content: space-between; align-items: center; padding: 0 4px; font-size: 17px; }
.card-label small { color: var(--muted); font-size: 11px; font-weight: 500; }
.prediction-choice code { display: block; padding: 4px; font-size: 11px; color: var(--muted); }
.prediction-choice > .pick-label { display: block; margin: 8px 3px 0; min-height: 26px; font-size: 11px; color: var(--accent); }
.gray-result { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.gray-patch { display: block; height: 62px; border-radius: 8px; margin-bottom: 10px; }
.gray-result > b { font-size: 14px; }
.gray-result > p { margin: 3px 0 0; font-size: 11px; color: var(--muted); overflow-wrap: anywhere; }
.prediction-feedback { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 23px 0 18px; padding: 17px 18px; border-radius: 13px; background: #f3f7f3; }
.prediction-feedback p { font-size: 14px; margin: 0; word-break: keep-all; }
.prediction-feedback .btn { flex-shrink: 0; }
.model-note { color: var(--muted); margin: 0; font-size: 12px; word-break: keep-all; }
.final-prediction { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 23px; margin: 24px 0 30px; border-radius: 17px; background: var(--soft); }
.final-prediction b { font-size: 16px; }
.final-prediction p { color: var(--muted); font-size: 12px; margin: 5px 0 0; }
.final-prediction > strong { font-size: 32px; white-space: nowrap; color: var(--accent); }
.model-comparison { margin-top: 28px; padding: 25px; border: 1px solid #d8e5d9; border-radius: 17px; background: #f8faf4; }
.model-comparison h3 { margin-bottom: 7px; }
.model-comparison p:not(.section-label) { font-size: 12px; color: var(--muted); }
.model-bars { display: grid; gap: 12px; margin-top: 20px; }
.model-bars > div { display: grid; grid-template-columns: 20px minmax(0,1fr) 50px; gap: 14px; align-items: center; font-size: 13px; }
.model-bars span { height: 16px; background: #e5eae2; border-radius: 4px; overflow: hidden; }
.model-bars i { height: 100%; display: block; border-radius: 4px; }
.bar-r { background: #c78c80; }
.bar-g { background: #699c7b; }
.bar-b { background: #8b9fbe; }
.model-bars strong { font-variant-numeric: tabular-nums; text-align: right; }
.takeaway { font-size: 14px; line-height: 1.9; margin: 22px 0 26px; word-break: keep-all; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.method-note { font-size: 12px; color: var(--muted); margin-top: 24px; padding: 0 4px; }
.method-note summary { display: list-item; cursor: pointer; min-height: 44px; padding: 10px 0; }
.method-note p { line-height: 1.9; max-width: 800px; word-break: keep-all; }
dialog { border: 1px solid var(--line); border-radius: 22px; padding: 32px; max-width: calc(100vw - 36px); width: 360px; color: var(--ink); }
dialog::backdrop { background: #344b44a6; backdrop-filter: blur(9px); }
body:has(dialog[open]) .board { visibility: hidden; }
dialog > p:not(.section-label) { color: var(--muted); font-size: 14px; }
dialog .btn { width: 100%; }
@media (max-width: 760px) {
  body { padding: 18px 18px 36px; }
  .page-heading { gap: 12px; }
  .heading-mark { display: none; }
  .panel { padding: 22px; }
  .ready-panel { gap: 25px; }
  .ready-copy { grid-column: 1/-1; padding: 0; }
  .ready-copy h2 br { display: none; }
  .ready-art { grid-column: 1/-1; padding: 20px 20px 14px; }
  .sample-color { height: 66px; }
  .ready-rules { gap: 18px; }
  .observe-layout { grid-template-columns: minmax(0,1fr) 170px; gap: 20px; }
  .board { gap: 6px; padding: 8px; }
  .timer-box { padding: 12px; }
  .timer-box > strong { font-size: 28px; }
  .live-records { margin: 14px 0; }
  .prediction-cards { gap: 10px; }
  .color-patch { height: 105px; }
  .formula-banner { justify-content: flex-start; }
}
@media (max-width: 540px) {
  body { padding: 14px 14px 30px; }
  .top-nav { gap: 10px; font-size: 11px; margin-bottom: 22px; }
  .top-nav a:first-child { padding: 0 12px; }
  .eyebrow { font-size: 11px; }
  .eyebrow span { font-size: 9px; }
  .lead { font-size: 13px; }
  .page-heading { margin-bottom: 20px; }
  .steps { margin-bottom: 16px; border-radius: 12px; }
  .steps li { flex-direction: column; gap: 1px; padding: 9px 3px; font-size: 11px; }
  .steps b { font-size: 10px; }
  .panel { padding: 18px; border-radius: 20px; }
  .ready-panel { gap: 22px; }
  .ready-copy h2 { font-size: 27px; }
  .ready-copy > p:not(.section-label) { font-size: 13px; }
  .ready-copy br { display: none; }
  .ready-rules { grid-template-columns: 1fr; padding-top: 20px; }
  .ready-art { padding: 18px 12px 14px; }
  .sample-row { gap: 8px; }
  .sample-card { padding: 6px 6px 9px; }
  .sample-color { height: 63px; }
  .experiment-note { padding: 11px 12px; font-size: 11px; }
  .panel-heading { align-items: flex-start; gap: 10px; margin-bottom: 16px; }
  .panel-heading h2 { font-size: 20px; }
  .section-label { font-size: 10px; }
  .counter { font-size: 11px; padding: 6px 8px; }
  .progress-track { margin-bottom: 16px; }
  .observe-layout { display: flex; flex-direction: column; gap: 16px; }
  .board-column { width: 100%; }
  .board-caption { font-size: 10px; }
  .channel-pill { padding: 4px 9px; }
  .board { gap: 5px; padding: 7px; border-radius: 12px; }
  .tile { border-radius: 5px; }
  .keyboard-hint { display: none; }
  .observe-aside { width: 100%; display: grid; grid-template-columns: 100px minmax(0,1fr); gap: 12px; padding: 0; }
  .timer-box { padding: 10px; grid-row: span 2; }
  .timer-box > span { font-size: 10px; }
  .timer-box > strong { font-size: 26px; }
  .timer-box small { font-size: 10px; }
  .live-records { display: flex; gap: 5px; margin: 0; align-self: start; }
  .live-record { flex: 1; display: block; padding: 5px; text-align: center; font-size: 10px; }
  .live-record b { display: block; font-size: 10px; }
  .live-record span { font-size: 9px; }
  .round-response { min-height: 0; }
  .round-response > p { font-size: 12px; min-height: 0; margin-bottom: 9px; }
  .observe-aside > .small-note { display: none; }
  .round-response .btn { font-size: 12px; padding: 8px 10px; min-height: 44px; }
  .round-response .text-btn { margin-top: -4px; }
  .summary-cards { gap: 7px; margin: 20px 0 16px; }
  .summary-card { padding: 11px 9px; border-radius: 11px; }
  .summary-card > b { font-size: 11px; }
  .summary-card strong { font-size: 25px; }
  .summary-card strong small { font-size: 10px; }
  .summary-card p { font-size: 9px; }
  .summary-text { font-size: 13px; }
  .results-table { font-size: 12px; }
  .results-table :is(th,td) { padding: 9px 5px; }
  .results-table thead th { font-size: 11px; }
  .bridge-note { padding: 16px; }
  .formula-banner { padding: 12px 14px; gap: 5px; }
  .formula-banner > span, .formula-banner small { width: 100%; font-size: 10px; }
  .formula-banner strong { font-size: 20px; }
  .prediction-instruction { font-size: 12px; margin: 17px 0 13px; }
  .prediction-cards { gap: 7px; }
  .prediction-card { padding: 6px; border-radius: 11px; }
  .color-patch { height: 82px; border-radius: 6px; margin-bottom: 8px; }
  .card-label { padding: 0 2px; flex-wrap: wrap; font-size: 15px; gap: 0 5px; }
  .card-label small { font-size: 9px; }
  .prediction-choice code { padding: 2px 0; font-size: 9px; letter-spacing: -.07em; }
  .prediction-choice > .pick-label { font-size: 10px; margin: 5px 2px 0; min-height: 22px; }
  .gray-patch { height: 48px; }
  .gray-result > b { font-size: 12px; }
  .gray-result > p { font-size: 10px; }
  .prediction-feedback { flex-direction: column; align-items: stretch; padding: 14px; gap: 12px; margin: 18px 0 15px; }
  .prediction-feedback p { font-size: 13px; }
  .model-note { font-size: 11px; }
  .final-prediction { padding: 17px; gap: 12px; }
  .final-prediction b { font-size: 14px; }
  .final-prediction p { font-size: 10px; }
  .final-prediction > strong { font-size: 26px; }
  .model-comparison { padding: 17px; }
  .model-comparison h3 { font-size: 17px; }
  .complete-badge { font-size: 9px; padding: 5px 7px; }
  .actions { flex-direction: column; }
  .method-note { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
