/* ============================================================
   경제 탐험대 — 체험 무대 층 (P2 · 디자인 시스템 v4 「햇살 든 유자」)

   js/xp/engine.js 가 그리는 전체 화면 무대와 체험 목록 카드.
   - 접두는 ec-xp- 만. yj- 는 DS 이름공간이라 있는 것(yj-btn · yj-seg · yj-tag · yj-card)만 빌린다.
   - 색·그림자·모서리·움직임·간격은 토큰 이름으로만. HEX 를 적지 않는다.
   - 무대: 캔버스 위 미색 카드 한 장 + 그림자 1. 헤더 56. 고른 것 = 유자 200 면 + 600 테두리.
   - 전자칠판(.ec-xp-stage--tv, ?x=…&tv=1): 글자 28px 이상, 선택지를 크게, 조작은 아래 줄.
   ============================================================ */

.ec-xp-stage {
  --ec-xp-body: var(--yj-t-body);
  --ec-xp-small: var(--yj-t-body);   /* 정보 글자(값·설명)도 17 — 3~4학년이 읽는 숫자 */
  --ec-xp-h: 24px;
  --ec-xp-choice-h: 64px;
  position: fixed; inset: 0; z-index: 50;
  display: flex; flex-direction: column;
  background: var(--yj-canvas);
  color: var(--yj-ink);
  font-family: var(--yj-font-ui);
  font-size: var(--ec-xp-body);
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.ec-xp-stage *, .ec-xp-stage *::before, .ec-xp-stage *::after { box-sizing: border-box; }
html.ec-xp-lock, html.ec-xp-lock body { overflow: hidden; }
.ec-xp-stage :focus-visible { outline: 2px solid var(--yj-yuja-600); outline-offset: 2px; }

/* ── 헤더 56 ─────────────────────────────────────────── */
.ec-xp-bar {
  position: relative; flex: none;
  display: flex; align-items: center; gap: var(--yj-s2);
  height: 56px;
  padding: 0 var(--yj-s2);
  padding-top: var(--yj-safe-t);
  box-sizing: content-box;
  background: var(--yj-card);
  border-bottom: 1px solid var(--yj-line);
}
.ec-xp-bar__btn { flex: none; }
.ec-xp-bar__title { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: var(--yj-s2); }
.ec-xp-bar__no { flex: none; font-size: var(--yj-t-label); font-weight: 700; letter-spacing: .04em; color: var(--yj-yuja-ink); }
.ec-xp-bar__name {
  min-width: 0; font-family: var(--yj-font-serif); font-size: 18px; font-weight: 600; color: var(--yj-ink-deep);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ec-xp-bar__step { flex: none; font-size: var(--yj-t-small); font-weight: 600; color: var(--yj-sub); font-variant-numeric: tabular-nums; }
.ec-xp-bar__track { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: transparent; }
.ec-xp-bar__fill {
  height: 100%; background: var(--yj-yuja-500);
  transform-origin: left center; transform: scaleX(0);
  transition: transform var(--yj-m-slow) var(--yj-ease);
}

/* ── 본문 — 캔버스 위 미색 카드 한 장 ─────────────────── */
.ec-xp-scroll {
  flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: var(--yj-s4) var(--yj-s4) calc(var(--yj-s6) + var(--yj-safe-b));
}
.ec-xp-card {
  width: 100%; max-width: 760px; margin: 0 auto;
  padding: var(--yj-s5);
  background: var(--yj-card);
  border: 1px solid var(--yj-line);
  border-radius: var(--yj-r-lg);
  box-shadow: var(--yj-sh-1);
  outline: none;
  opacity: 0; transform: translateY(4px);
  transition: opacity var(--yj-m-mid) var(--yj-ease), transform var(--yj-m-mid) var(--yj-ease);
}
.ec-xp-card.is-in { opacity: 1; transform: none; }
.ec-xp-card > div { display: flex; flex-direction: column; gap: var(--yj-s4); }
@media (min-width: 720px) {
  .ec-xp-scroll { padding-top: var(--yj-s5); }
  .ec-xp-card { padding: var(--yj-s6); }
}
@media (prefers-reduced-motion: reduce) {
  .ec-xp-card, .ec-xp-bar__fill, .ec-xp-meter__fill, .ec-xp-bars__fill, .ec-xp-village__thing { transition: none; }
}

/* ── 글자 ─────────────────────────────────────────────── */
.ec-xp-label { margin: 0; font-size: var(--yj-t-label); font-weight: 700; letter-spacing: .04em; color: var(--yj-yuja-ink); }
.ec-xp-h {
  margin: 0; display: flex; align-items: center; gap: var(--yj-s2); flex-wrap: wrap;
  font-family: var(--yj-font-serif); font-size: var(--ec-xp-h); font-weight: 600;
  line-height: 1.4; letter-spacing: -.03em; color: var(--yj-ink-deep);
}
.ec-xp-sub { margin: 0; font-family: var(--yj-font-serif); font-size: var(--yj-t-body); font-weight: 600; color: var(--yj-ink-deep); }
.ec-xp-p, .ec-xp-narr, .ec-xp-say { margin: 0; font-size: var(--ec-xp-body); line-height: 1.75; }
.ec-xp-narr { color: var(--yj-ink-deep); }
.ec-xp-say { padding: var(--yj-s3) var(--yj-s4); background: var(--yj-yuja-50); border-radius: var(--yj-r-sm); border-left: 2px solid var(--yj-yuja-500); }
.ec-xp-ask { margin: 0; font-weight: 700; color: var(--yj-ink-deep); font-size: var(--ec-xp-body); }
.ec-xp-note { margin: 0; font-size: var(--ec-xp-small); color: var(--yj-sub); }
.ec-xp-msg { margin: 0; min-height: 1.6em; font-size: var(--ec-xp-body); color: var(--yj-ink); }
.ec-xp-msg.is-bad { color: var(--yj-orange-ink); }
.ec-xp-msg.is-ok { color: var(--yj-leaf-ink); }
.ec-xp-tags { display: flex; flex-wrap: wrap; gap: var(--yj-s1); margin: 0; padding: 0; list-style: none; }
.ec-xp-rules { margin: 0; padding-left: 1.2em; display: grid; gap: var(--yj-s1); }
.ec-xp-rules li::marker { color: var(--yj-yuja-500); }
.ec-xp-intro .ec-xp-h { font-size: clamp(26px, 4vw, 32px); }

.ec-xp-grade { display: flex; align-items: center; gap: var(--yj-s2); flex-wrap: wrap; }
.ec-xp-grade__k { font-size: var(--yj-t-small); font-weight: 600; color: var(--yj-sub); }
.ec-xp-grade .yj-seg > * {
  position: relative; height: 38px; padding: 0 16px;
  font: inherit; font-size: var(--yj-t-small); border: 0; background: transparent; cursor: pointer; color: var(--yj-ink);
  border-radius: var(--yj-r-full);
}
.ec-xp-grade .yj-seg > *::before { content: ""; position: absolute; inset: -3px 0; }
.ec-xp-grade .yj-seg > .is-on { background: var(--yj-yuja-200); box-shadow: inset 0 0 0 1px var(--yj-yuja-600); color: var(--yj-ink-deep); font-weight: 700; }

/* ── 아래 줄 단추 ─────────────────────────────────────── */
.ec-xp-actions {
  display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center;
  gap: var(--yj-s2); margin-top: var(--yj-s2);
}
.ec-xp-actions .yj-btn--primary { min-width: 160px; }
.ec-xp-actions .ec-ic { flex: none; }

/* ── 선택지 (숫자 키) ─────────────────────────────────── */
.ec-xp-choices { display: grid; gap: var(--yj-s3); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) {
  .ec-xp-choices--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ec-xp-choices--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.ec-xp-choice {
  position: relative;
  display: flex; align-items: center; gap: var(--yj-s3);
  min-height: var(--ec-xp-choice-h);
  padding: var(--yj-s3) var(--yj-s4);
  font: inherit; font-size: var(--ec-xp-body); text-align: left; color: var(--yj-ink-deep);
  background: var(--yj-card); border: 1px solid var(--yj-line-strong); border-radius: var(--yj-r-lg);
  cursor: pointer;
  transition: background-color var(--yj-m-fast) var(--yj-ease), border-color var(--yj-m-fast) var(--yj-ease), transform var(--yj-m-fast) var(--yj-ease);
}
.ec-xp-choice:hover:not(:disabled) { background: var(--yj-yuja-50); border-color: var(--yj-yuja-600); }
.ec-xp-choice:active:not(:disabled) { transform: scale(.98); }
.ec-xp-choice:disabled { cursor: default; }
.ec-xp-choice.is-picked { background: var(--yj-yuja-200); border-color: var(--yj-yuja-600); box-shadow: inset 0 0 0 1px var(--yj-yuja-600); }
.ec-xp-choice.is-gaveup { color: var(--yj-sub); border-style: dashed; background: transparent; }
.ec-xp-choice__n {
  flex: none; width: 28px; height: 28px; border-radius: var(--yj-r-full);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: var(--yj-t-cap); font-weight: 700; font-variant-numeric: tabular-nums;
  background: var(--yj-canvas); color: var(--yj-sub);
}
.ec-xp-choice.is-picked .ec-xp-choice__n { background: var(--yj-yuja-500); color: var(--yj-on-action); }
.ec-xp-choice__ic { flex: none; color: var(--yj-yuja-ink); display: inline-flex; }
.ec-xp-choice__t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ec-xp-choice__t small { font-size: var(--ec-xp-small); color: var(--yj-sub); font-weight: 400; }

/* 포기한 것 — 고른 뒤 반드시 보이는 라벨 */
.ec-xp-gaveup {
  margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--yj-s2);
  padding: var(--yj-s3) var(--yj-s4);
  border: 1px dashed var(--yj-line-strong); border-radius: var(--yj-r-sm);
  font-size: var(--ec-xp-body); color: var(--yj-ink);
}
.ec-xp-gaveup__k {
  flex: none; padding: 2px 10px; border-radius: var(--yj-r-full);
  background: var(--yj-orange-tint); color: var(--yj-orange-ink);
  font-size: var(--yj-t-cap); font-weight: 700;
}
.ec-xp-after { display: flex; flex-direction: column; gap: var(--yj-s3); }
.ec-xp-after[hidden] { display: none; }

/* ── 게이지 ───────────────────────────────────────────── */
.ec-xp-meters {
  display: grid; gap: var(--yj-s2);
  padding: var(--yj-s3) var(--yj-s4);
  background: var(--yj-canvas); border-radius: var(--yj-r-sm);
}
.ec-xp-meter { display: grid; grid-template-columns: 7.5em minmax(0, 1fr) 4.5em; align-items: center; gap: var(--yj-s3); }
.ec-xp-meter__k { display: inline-flex; align-items: center; gap: 6px; font-size: var(--ec-xp-small); font-weight: 600; color: var(--yj-ink); }
.ec-xp-meter__k .ec-ic { color: var(--yj-yuja-ink); }
.ec-xp-meter__track { height: 10px; border-radius: var(--yj-r-full); background: var(--yj-card); border: 1px solid var(--yj-line); overflow: hidden; }
.ec-xp-meter__fill {
  display: block; height: 100%; background: var(--yj-yuja-500);
  transform-origin: left center; transition: transform var(--yj-m-slow) var(--yj-ease);
}
.ec-xp-meter__v { text-align: right; font-size: var(--ec-xp-small); font-weight: 700; color: var(--yj-ink-deep); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ec-xp-meter__d { margin-left: 4px; font-size: var(--yj-t-cap); }
.ec-xp-meter.is-up .ec-xp-meter__d { color: var(--yj-leaf-ink); }
.ec-xp-meter.is-down .ec-xp-meter__d { color: var(--yj-orange-ink); }

/* ── 지갑 · 장바구니 ──────────────────────────────────── */
.ec-xp-wallet {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px var(--yj-s2);
  padding: var(--yj-s3) var(--yj-s4);
  background: var(--yj-yuja-100); border-radius: var(--yj-r-sm);
  font-size: var(--ec-xp-small); color: var(--yj-ink);
}
.ec-xp-wallet strong { font-family: var(--yj-font-disp); font-size: 28px; color: var(--yj-ink-deep); font-variant-numeric: tabular-nums; line-height: 1; }
.ec-xp-wallet__k { font-weight: 700; color: var(--yj-yuja-ink); }
.ec-xp-wallet__slot { margin-left: auto; font-weight: 600; }
.ec-xp-wallet.is-empty { background: var(--yj-canvas); }
.ec-xp-wallet.is-shake { animation: ec-xp-shake var(--yj-m-slow) var(--yj-ease); }
@keyframes ec-xp-shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

.ec-xp-items { display: grid; gap: var(--yj-s2); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 560px) { .ec-xp-items { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .ec-xp-items { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ec-xp-item {
  display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: var(--yj-s2);
  align-items: center; min-height: 64px;
  padding: var(--yj-s2) var(--yj-s3);
  font: inherit; text-align: left; color: var(--yj-ink-deep);
  background: var(--yj-card); border: 1px solid var(--yj-line-strong); border-radius: var(--yj-r-sm);
  cursor: pointer;
  transition: background-color var(--yj-m-fast) var(--yj-ease), border-color var(--yj-m-fast) var(--yj-ease);
}
.ec-xp-item:hover { background: var(--yj-yuja-50); }
.ec-xp-item__ic { grid-row: span 2; color: var(--yj-yuja-ink); display: inline-flex; }
.ec-xp-item__t { font-size: var(--ec-xp-body); font-weight: 600; line-height: 1.3; }
.ec-xp-item__c { font-size: var(--ec-xp-small); color: var(--yj-sub); font-variant-numeric: tabular-nums; }
.ec-xp-item.is-on { background: var(--yj-yuja-200); border-color: var(--yj-yuja-600); box-shadow: inset 0 0 0 1px var(--yj-yuja-600); }
.ec-xp-item.is-on .ec-xp-item__c { color: var(--yj-ink); }
.ec-xp-item.is-cant { opacity: .55; }

/* ── 나누기 · 슬라이더 ────────────────────────────────── */
.ec-xp-split__rows { display: grid; gap: var(--yj-s3); }
.ec-xp-split__row {
  display: grid; gap: var(--yj-s2);
  padding: var(--yj-s3) var(--yj-s4);
  border: 1px solid var(--yj-line); border-radius: var(--yj-r-sm);
}
.ec-xp-split__k { display: flex; align-items: center; gap: var(--yj-s2); font-weight: 700; color: var(--yj-ink-deep); }
.ec-xp-split__k .ec-ic { color: var(--yj-yuja-ink); flex: none; }
.ec-xp-split__k small { display: block; font-weight: 400; font-size: var(--ec-xp-small); color: var(--yj-sub); }
.ec-xp-split__ctl { display: flex; align-items: center; gap: var(--yj-s2); }
.ec-xp-split__ctl input[type=range] { flex: 1; min-width: 0; height: 44px; accent-color: var(--yj-yuja-600); }
.ec-xp-split__v { flex: none; min-width: 4.5em; text-align: right; font-weight: 700; color: var(--yj-ink-deep); font-variant-numeric: tabular-nums; }
.ec-xp-step { border: 1px solid var(--yj-line-strong); background: var(--yj-card); }

/* ── 하루 루프 ────────────────────────────────────────── */
.ec-xp-balance { padding: var(--yj-s3) var(--yj-s4); background: var(--yj-canvas); border-radius: var(--yj-r-sm); }
.ec-xp-input { display: flex; flex-direction: column; gap: var(--yj-s2); }
.ec-xp-envs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--yj-s2); margin: 0; padding: 0; list-style: none; }
.ec-xp-env { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: var(--yj-s2) 4px; background: var(--yj-card); border-radius: var(--yj-r-sm); text-align: center; }
.ec-xp-env .ec-ic { color: var(--yj-yuja-ink); }
.ec-xp-env__k { font-size: var(--ec-xp-small); font-weight: 600; color: var(--yj-ink); }
.ec-xp-env__v { font-family: var(--yj-font-disp); font-size: 22px; color: var(--yj-ink-deep); font-variant-numeric: tabular-nums; line-height: 1.2; }
.ec-xp-env.is-low .ec-xp-env__v { color: var(--yj-orange-ink); }

/* ── 경매 ─────────────────────────────────────────────── */
.ec-xp-bid { display: flex; align-items: center; justify-content: center; gap: var(--yj-s4); }
.ec-xp-bid .ec-xp-step { width: 56px; height: 56px; }
.ec-xp-bid__v { min-width: 5em; text-align: center; font-size: var(--ec-xp-body); color: var(--yj-ink); }
.ec-xp-bid__v strong { font-family: var(--yj-font-disp); font-size: 44px; color: var(--yj-ink-deep); font-variant-numeric: tabular-nums; }
.ec-xp-bars { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--yj-s2); }
.ec-xp-bars__row { display: grid; grid-template-columns: 5.5em minmax(0, 1fr) 3em; align-items: center; gap: var(--yj-s3); padding: 4px var(--yj-s2); border-radius: var(--yj-r-sm); }
.ec-xp-bars__k { font-weight: 600; font-size: var(--ec-xp-small); }
.ec-xp-bars__track { height: 14px; border-radius: var(--yj-r-full); background: var(--yj-canvas); overflow: hidden; }
.ec-xp-bars__fill { display: block; height: 100%; background: var(--yj-line-strong); transform-origin: left center; transition: transform var(--yj-m-slow) var(--yj-ease); }
.ec-xp-bars__v { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.ec-xp-bars__row.is-me .ec-xp-bars__k { color: var(--yj-yuja-ink); }
.ec-xp-bars__row.is-win { background: var(--yj-yuja-100); }
.ec-xp-bars__row.is-win .ec-xp-bars__fill { background: var(--yj-yuja-500); }
.ec-xp-double { display: flex; align-items: center; justify-content: center; gap: var(--yj-s3); font-family: var(--yj-font-disp); font-size: 28px; color: var(--yj-sub); }
.ec-xp-double strong { font-size: 44px; color: var(--yj-ink-deep); }
.ec-xp-double .ec-ic { color: var(--yj-yuja-ink); }

/* ── 짝 맞추기 ────────────────────────────────────────── */
.ec-xp-hand {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px var(--yj-s3); align-items: center;
  padding: var(--yj-s3) var(--yj-s4); background: var(--yj-yuja-100); border-radius: var(--yj-r-sm);
}
.ec-xp-hand__k { font-size: var(--ec-xp-small); font-weight: 700; color: var(--yj-yuja-ink); }
.ec-xp-hand__v { display: inline-flex; align-items: center; gap: var(--yj-s2); font-weight: 700; color: var(--yj-ink-deep); }
.ec-xp-people { display: grid; gap: var(--yj-s2); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .ec-xp-people { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .ec-xp-people { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ec-xp-person {
  position: relative; display: flex; flex-direction: column; gap: 4px;
  padding: var(--yj-s3) var(--yj-s4) var(--yj-s3) 52px; min-height: 64px;
  font: inherit; text-align: left; color: var(--yj-ink-deep);
  background: var(--yj-card); border: 1px solid var(--yj-line-strong); border-radius: var(--yj-r-lg); cursor: pointer;
  transition: background-color var(--yj-m-fast) var(--yj-ease), border-color var(--yj-m-fast) var(--yj-ease);
}
.ec-xp-person:hover:not(:disabled) { background: var(--yj-yuja-50); border-color: var(--yj-yuja-600); }
.ec-xp-person:disabled { cursor: default; opacity: .7; }
.ec-xp-person .ec-xp-choice__n { position: absolute; left: var(--yj-s3); top: var(--yj-s3); }
.ec-xp-person__who { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.ec-xp-person__row { display: inline-flex; align-items: center; gap: 6px; font-size: var(--ec-xp-small); color: var(--yj-ink); }
.ec-xp-person__row small { min-width: 4.5em; font-size: var(--ec-xp-small); color: var(--yj-sub); }
.ec-xp-person .ec-ic { color: var(--yj-yuja-ink); flex: none; }

/* 돈의 역사 띠 (X3 3막) */
.ec-xp-strip { display: grid; gap: var(--yj-s2); grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; counter-reset: ec-xp-strip; }
.ec-xp-strip li {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-height: 92px; padding: var(--yj-s2) 4px; text-align: center;
  border: 1px dashed var(--yj-line-strong); border-radius: var(--yj-r-sm);
  font-size: var(--ec-xp-small); color: var(--yj-sub);
}
.ec-xp-strip li.is-set { border-style: solid; border-color: var(--yj-yuja-600); background: var(--yj-yuja-100); color: var(--yj-ink-deep); font-weight: 700; }
.ec-xp-strip li .ec-ic { color: var(--yj-yuja-ink); }
@media (max-width: 559px) { .ec-xp-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ── 표 · 꺾은선 ──────────────────────────────────────── */
.ec-xp-tablewrap { overflow-x: auto; max-width: 100%; }
.ec-xp-table { width: 100%; border-collapse: collapse; font-size: var(--ec-xp-small); font-variant-numeric: tabular-nums; }
.ec-xp-table th, .ec-xp-table td { padding: var(--yj-s2) var(--yj-s2); border-bottom: 1px solid var(--yj-line); text-align: right; white-space: nowrap; }
.ec-xp-table th[scope=row], .ec-xp-table thead th:first-child { text-align: left; white-space: normal; }
.ec-xp-table th[scope=row] small { display: block; font-weight: 400; color: var(--yj-sub); }
.ec-xp-table thead th { color: var(--yj-sub); font-weight: 600; }
.ec-xp-table td { font-weight: 700; color: var(--yj-ink-deep); }
.ec-xp-table .is-wait { color: var(--yj-sub); font-weight: 400; }
.ec-xp-table .ec-xp-chart__key { margin-right: 6px; vertical-align: middle; }

.ec-xp-chart { margin: 0; display: grid; gap: var(--yj-s2); }
.ec-xp-chart svg { width: 100%; height: auto; display: block; }
.ec-xp-chart__grid { stroke: var(--yj-line); stroke-width: 1; }
.ec-xp-chart__ax { fill: var(--yj-sub); font-size: 15px; font-family: var(--yj-font-ui); }
.ec-xp-chart__line { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ec-xp-chart__dot { stroke: none; }
.ec-xp-chart__line--1 { stroke: var(--yj-sub); }
.ec-xp-chart__line--2 { stroke: var(--yj-yuja-600); }
.ec-xp-chart__line--3 { stroke: var(--yj-orange); stroke-dasharray: 10 6; }
circle.ec-xp-chart__line--1 { fill: var(--yj-sub); }
circle.ec-xp-chart__line--2 { fill: var(--yj-yuja-600); }
circle.ec-xp-chart__line--3 { fill: var(--yj-orange); stroke: none; }
.ec-xp-chart__mean { fill: none; stroke: var(--yj-ink-deep); stroke-width: 2; stroke-dasharray: 3 5; }
.ec-xp-chart__legend { display: flex; flex-wrap: wrap; gap: var(--yj-s1) var(--yj-s4); margin: 0; padding: 0; list-style: none; font-size: var(--ec-xp-small); color: var(--yj-ink); }
.ec-xp-chart__legend li { display: inline-flex; align-items: center; gap: 6px; }
.ec-xp-chart__key { display: inline-block; width: 22px; height: 0; border-top: 3px solid; }
span.ec-xp-chart__line--1 { border-color: var(--yj-sub); }
span.ec-xp-chart__line--2 { border-color: var(--yj-yuja-600); }
span.ec-xp-chart__line--3 { border-color: var(--yj-orange); border-top-style: dashed; }
.ec-xp-chart__key--mean { border-top: 2px dotted var(--yj-ink-deep); }

/* ── 마을 그림 (X12) ──────────────────────────────────── */
.ec-xp-village { margin: 0; padding: var(--yj-s3); background: var(--yj-canvas); border-radius: var(--yj-r-sm); }
.ec-xp-village svg { width: 100%; height: auto; display: block; }
.ec-xp-village__ground { stroke: var(--yj-line-strong); stroke-width: 2; }
.ec-xp-village__lot { fill: none; stroke: var(--yj-line-strong); stroke-width: 1.6; stroke-dasharray: 5 5; }
.ec-xp-village__thing { fill: none; stroke: var(--yj-leaf-ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform: translateY(6px); transition: opacity var(--yj-m-slow) var(--yj-ease), transform var(--yj-m-slow) var(--yj-ease); }
.ec-xp-village__thing.is-built { opacity: 1; transform: none; }
.ec-xp-village__name { fill: var(--yj-sub); font-size: 13px; font-family: var(--yj-font-ui); }
.ec-xp-village__name.is-built { fill: var(--yj-ink-deep); font-weight: 700; }
.ec-xp-village figcaption { margin-top: var(--yj-s2); font-size: var(--ec-xp-small); color: var(--yj-ink); text-align: center; }

/* 사람 점 10개 — 낸 사람 / 안 낸 사람 */
.ec-xp-dots { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ec-xp-dots li {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: var(--yj-r-full);
  border: 1px solid var(--yj-line-strong); font-size: var(--ec-xp-small); color: var(--yj-sub);
}
.ec-xp-dots li.is-paid { background: var(--yj-leaf-tint); border-color: transparent; color: var(--yj-leaf-ink); font-weight: 600; }
.ec-xp-dots li.is-me { box-shadow: inset 0 0 0 1px var(--yj-yuja-600); }

/* ── 결과 · 성찰 ──────────────────────────────────────── */
.ec-xp-result { display: grid; gap: var(--yj-s3); padding: var(--yj-s4); background: var(--yj-canvas); border-radius: var(--yj-r-sm); }
.ec-xp-result p { margin: 0; }
.ec-xp-result ul { margin: 0; padding-left: 1.2em; }
.ec-xp-list2 { display: grid; gap: var(--yj-s3); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .ec-xp-list2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ec-xp-list2 h4 { margin: 0 0 4px; font-size: var(--ec-xp-small); color: var(--yj-yuja-ink); }
.ec-xp-list2 ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.ec-xp-list2 li { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ec-xp-kind { padding: 0 8px; border-radius: var(--yj-r-full); font-size: var(--yj-t-cap); font-weight: 600; border: 1px solid var(--yj-line-strong); color: var(--yj-sub); }
.ec-xp-kind.is-need { border-color: transparent; background: var(--yj-leaf-tint); color: var(--yj-leaf-ink); }
.ec-xp-gavelist { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--yj-s2); counter-reset: ec-xp-g; }
.ec-xp-gavelist li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--yj-s2); align-items: baseline; }
.ec-xp-gavelist li::before { counter-increment: ec-xp-g; content: counter(ec-xp-g); font-weight: 700; color: var(--yj-yuja-ink); font-variant-numeric: tabular-nums; }
.ec-xp-gavelist b { color: var(--yj-ink-deep); }
.ec-xp-gavelist span { color: var(--yj-sub); }

.ec-xp-slip { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--yj-s2) var(--yj-s4); padding: var(--yj-s4); background: var(--yj-card); border: 1px solid var(--yj-line); border-radius: var(--yj-r-sm); font-variant-numeric: tabular-nums; }
.ec-xp-slip dt { color: var(--yj-ink); }
.ec-xp-slip dd { margin: 0; text-align: right; font-weight: 700; color: var(--yj-ink-deep); }
.ec-xp-slip .is-minus { color: var(--yj-orange-ink); }
.ec-xp-slip .is-total { padding-top: var(--yj-s2); border-top: 1px solid var(--yj-line-strong); font-size: 20px; }

.ec-xp-think { display: grid; gap: var(--yj-s3); }
.ec-xp-qs { margin: 0; padding-left: 1.2em; display: grid; gap: var(--yj-s4); }
.ec-xp-qs li::marker { font-weight: 700; color: var(--yj-yuja-ink); }
.ec-xp-qs label { display: block; font-weight: 700; color: var(--yj-ink-deep); margin-bottom: var(--yj-s2); }
.ec-xp-qs textarea {
  width: 100%; min-height: 88px; padding: var(--yj-s3);
  font: inherit; font-size: var(--ec-xp-body); color: var(--yj-ink);
  background: var(--yj-card); border: 1px solid var(--yj-line-strong); border-radius: var(--yj-r-sm); resize: vertical;
}
.ec-xp-qs textarea:focus { outline: none; border-color: var(--yj-yuja-600); box-shadow: inset 0 0 0 1px var(--yj-yuja-600); }
.ec-xp-talk { margin: 0; display: grid; gap: 4px; padding: var(--yj-s3) var(--yj-s4); background: var(--yj-yuja-50); border-left: 2px solid var(--yj-yuja-500); border-radius: var(--yj-r-sm); color: var(--yj-ink-deep); }
.ec-xp-sheet__qs { margin: 0; display: grid; gap: var(--yj-s2); }
.ec-xp-sheet__qs dt { font-weight: 700; color: var(--yj-ink-deep); }
.ec-xp-sheet__qs dd { margin: 0 0 var(--yj-s2); padding: var(--yj-s3); background: var(--yj-canvas); border-radius: var(--yj-r-sm); white-space: pre-wrap; }
.ec-xp-sheet__empty { color: var(--yj-sub); }

/* ── 휴대폰 ───────────────────────────────────────────── */
@media (max-width: 559px) {
  .ec-xp-scroll { padding-left: var(--yj-s4); padding-right: var(--yj-s4); }
  .ec-xp-card { padding: var(--yj-s4); }
  .ec-xp-actions { justify-content: stretch; }
  .ec-xp-actions .yj-btn { flex: 1 1 auto; }
  .ec-xp-meter { grid-template-columns: 6.5em minmax(0, 1fr) 4em; gap: var(--yj-s2); }
  .ec-xp-bar__step { display: none; }
}

/* ══ 전자칠판 모드 (?x=…&tv=1) — 글자 28 이상 · 선택지 크게 · 조작은 아래 줄 ══ */
.ec-xp-stage--tv {
  --ec-xp-body: 30px;
  --ec-xp-small: 28px;
  --ec-xp-h: 44px;
  --ec-xp-choice-h: 120px;
}
.ec-xp-stage--tv .ec-xp-bar__name { font-size: 28px; }
.ec-xp-stage--tv .ec-xp-bar__no, .ec-xp-stage--tv .ec-xp-bar__step { font-size: 28px; }
.ec-xp-stage--tv .ec-xp-card { max-width: 1600px; padding: var(--yj-s6) var(--yj-s7); }
.ec-xp-stage--tv .ec-xp-label { font-size: 28px; }
.ec-xp-stage--tv .ec-xp-choices--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ec-xp-stage--tv .ec-xp-choices--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ec-xp-stage--tv .ec-xp-choice__n { width: 48px; height: 48px; font-size: 28px; }
.ec-xp-stage--tv .ec-xp-gaveup__k, .ec-xp-stage--tv .ec-xp-kind, .ec-xp-stage--tv .yj-tag,
.ec-xp-stage--tv .ec-xp-meter__d, .ec-xp-stage--tv .ec-xp-grade__k,
.ec-xp-stage--tv .ec-xp-grade .yj-seg > * { font-size: 28px; }
.ec-xp-stage--tv .ec-xp-grade .yj-seg > * { height: 56px; }
.ec-xp-stage--tv .ec-xp-meter { grid-template-columns: 9em minmax(0, 1fr) 5em; }
.ec-xp-stage--tv .ec-xp-meter__track { height: 18px; }
.ec-xp-stage--tv .ec-xp-wallet strong, .ec-xp-stage--tv .ec-xp-env__v { font-size: 44px; }
.ec-xp-stage--tv .ec-xp-items { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ec-xp-stage--tv .ec-xp-item { min-height: 112px; }
.ec-xp-stage--tv .ec-xp-people { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ec-xp-stage--tv .ec-xp-person { padding-left: 76px; }
.ec-xp-stage--tv .ec-xp-bid .ec-xp-step { width: 88px; height: 88px; }
.ec-xp-stage--tv .ec-xp-bid__v strong { font-size: 72px; }
.ec-xp-stage--tv .yj-btn { height: 72px; font-size: 28px; padding: 0 36px; }
.ec-xp-stage--tv .yj-btn--icon { width: 56px; height: 56px; padding: 0; }
.ec-xp-stage--tv .ec-xp-bar .yj-btn--icon { width: 48px; height: 48px; }
.ec-xp-stage--tv .ec-xp-strip li { min-height: 140px; }
/* 아래 줄 조작 — 카드 아래에 붙어 늘 보인다 */
.ec-xp-stage--tv .ec-xp-actions {
  position: sticky; bottom: calc(-1 * var(--yj-s6)); z-index: 1;
  margin: var(--yj-s4) calc(-1 * var(--yj-s7)) calc(-1 * var(--yj-s6));
  padding: var(--yj-s4) var(--yj-s7);
  background: var(--yj-card); border-top: 1px solid var(--yj-line);
  border-radius: 0 0 var(--yj-r-lg) var(--yj-r-lg);
}
.ec-xp-stage--tv .ec-xp-after .ec-xp-actions, .ec-xp-stage--tv .ec-xp-trade .ec-xp-actions { margin-left: calc(-1 * var(--yj-s7)); }

/* ══ 체험 목록 (?m=xp) · 개념 지면 · 슬라이드 단추 ════════════ */
.ec-xp-grid { display: grid; gap: var(--yj-s4); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .ec-xp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ec-xp-tile {
  display: flex; gap: var(--yj-s4); align-items: flex-start; width: 100%;
  padding: var(--yj-s5); min-height: 132px;
  font: inherit; text-align: left; color: var(--yj-ink);
  background: var(--yj-card); border: 1px solid var(--yj-line); border-radius: var(--yj-r-lg);
  box-shadow: var(--yj-sh-1); cursor: pointer;
  transition: box-shadow var(--yj-m-mid) var(--yj-ease), transform var(--yj-m-mid) var(--yj-ease);
}
.ec-xp-tile:hover { box-shadow: var(--yj-sh-2); transform: translateY(-2px); }
.ec-xp-tile:active { transform: scale(.98); }
.ec-xp-tile:focus-visible { outline: 2px solid var(--yj-yuja-600); outline-offset: 2px; }
.ec-xp-tile__ic {
  flex: none; width: 52px; height: 52px; border-radius: var(--yj-r-sm);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--yj-yuja-100); color: var(--yj-yuja-ink);
}
.ec-xp-tile__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ec-xp-tile__no { font-size: var(--yj-t-label); font-weight: 700; letter-spacing: .04em; color: var(--yj-yuja-ink); }
.ec-xp-tile__name { font-family: var(--yj-font-serif); font-size: 20px; font-weight: 600; color: var(--yj-ink-deep); line-height: 1.4; }
.ec-xp-tile__concepts { font-size: var(--yj-t-small); color: var(--yj-ink); }
.ec-xp-tile__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px var(--yj-s2); font-size: var(--yj-t-small); color: var(--yj-sub); }
.ec-xp-done {
  display: inline-flex; align-items: center; gap: 4px; padding: 0 10px; border-radius: var(--yj-r-full);
  background: var(--yj-leaf-tint); color: var(--yj-leaf-ink); font-size: var(--yj-t-cap); font-weight: 600;
}
.ec-xp-tvlink { text-decoration: none; }

@media print {
  .ec-xp-stage, .ec-xp-tvlink { display: none !important; }
}
.ec-xp-grid { margin: 0; padding: 0; list-style: none; }
.ec-xp-tvnote { font-size: var(--yj-t-small); color: var(--yj-sub); }

/* ── 글자·터치 다듬기 (P2 검수) — 정보 글자는 17, 고르는 단추는 44 ── */
.ec-xp-stage .ec-xp-actions .yj-btn { font-size: var(--yj-t-body); }
.ec-xp-grade__k, .ec-xp-grade .yj-seg > * { font-size: var(--yj-t-body); }
.ec-xp-grade .yj-seg > * { height: 44px; }
.ec-xp-table small { font-size: inherit; font-weight: 400; color: var(--yj-sub); }
.ec-xp-gaveup__k { font-size: var(--yj-t-small); }
.ec-xp-choice__n, .ec-xp-meter__d { font-size: var(--yj-t-small); }
.ec-xp-stage--tv .ec-xp-actions .yj-btn { font-size: 28px; }
.ec-xp-village svg { max-width: 520px; margin: 0 auto; }
.ec-xp-stage--tv .ec-xp-village svg { max-width: 700px; }   /* viewBox 글자가 함께 커져 28px 을 넘는다 */
.ec-xp-split__row { grid-template-columns: minmax(0, 1fr); }
.ec-xp-split__ctl { min-width: 0; }
.ec-xp-kind { font-size: var(--yj-t-small); }
@media (max-width: 559px) {
  .ec-xp-split__ctl { flex-wrap: wrap; }
  .ec-xp-split__ctl input[type=range] { order: -1; flex: 1 1 100%; }
  .ec-xp-split__ctl .ec-xp-split__v { margin-left: auto; }
  .ec-xp-table .is-start, .ec-xp-table th[scope=row] small { display: none; }
  .ec-xp-table th, .ec-xp-table td { padding: var(--yj-s2) 4px; }
}
/* SVG 안 글자는 viewBox 단위 — 휴대폰에서 너무 작아지지 않게 */
.ec-xp-chart__ax { font-size: 22px; }
.ec-xp-village__name { font-size: 15px; }
.ec-xp-stage--tv .ec-xp-sub { font-size: var(--ec-xp-body); }
.ec-xp-stage--tv .ec-xp-slip .is-total { font-size: 34px; }

/* ══ P4-A 체험 2차 — 새 조각 (ec-xp- 만 · 토큰만) ══════════ */
/* 숫자 칸 줄 — 작업 시계 · 가진 돈 · 통장 */
.ec-xp-stats { margin: 0; display: grid; gap: var(--yj-s2); grid-template-columns: repeat(auto-fit, minmax(8.5em, 1fr)); }
.ec-xp-stats > div { padding: var(--yj-s2) var(--yj-s3); background: var(--yj-canvas); border-radius: var(--yj-r-sm); min-width: 0; }
.ec-xp-stats dt { font-size: var(--yj-t-small); font-weight: 700; color: var(--yj-yuja-ink); }
.ec-xp-stats dd { margin: 0; display: flex; align-items: baseline; gap: 4px; color: var(--yj-ink); font-size: var(--ec-xp-small); }
.ec-xp-stats strong { font-family: var(--yj-font-disp); font-size: 28px; line-height: 1.1; color: var(--yj-ink-deep); font-variant-numeric: tabular-nums; }
.ec-xp-balance .ec-xp-stats > div { background: var(--yj-card); }
/* 넷짜리 선택지(X4 공정) — 휴대폰 1열 · 560 넘으면 2열 · 전자칠판 4열 */
@media (min-width: 560px) { .ec-xp-choices--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ec-xp-choice.is-next { border-color: var(--yj-yuja-600); background: var(--yj-yuja-50); }
/* 생산요소 칸 · 공정 줄 */
.ec-xp-factors, .ec-xp-line { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--yj-s2); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ec-xp-line { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ec-xp-factors li, .ec-xp-line li {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: var(--yj-s3) var(--yj-s2);
  text-align: center; background: var(--yj-card); border: 1px solid var(--yj-line); border-radius: var(--yj-r-sm);
}
.ec-xp-factors .ec-ic, .ec-xp-line .ec-ic { color: var(--yj-yuja-ink); }
.ec-xp-factors b, .ec-xp-line b { color: var(--yj-ink-deep); }
.ec-xp-factors span, .ec-xp-line span { font-size: var(--ec-xp-small); color: var(--yj-sub); line-height: 1.4; }
.ec-xp-factors li.is-on, .ec-xp-line li.is-me { background: var(--yj-yuja-200); border-color: var(--yj-yuja-600); box-shadow: inset 0 0 0 1px var(--yj-yuja-600); }
.ec-xp-factors li.is-on span, .ec-xp-line li.is-me span { color: var(--yj-ink); }
@media (max-width: 559px) { .ec-xp-line { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* 날씨 예보 */
.ec-xp-weather { margin: 0; display: inline-flex; align-items: center; gap: var(--yj-s3); align-self: flex-start; padding: var(--yj-s2) var(--yj-s4); background: var(--yj-yuja-100); border-radius: var(--yj-r-full); font-weight: 700; color: var(--yj-ink-deep); }
.ec-xp-weather .ec-ic { color: var(--yj-yuja-ink); }
/* X6 사람 · 쿠폰 줄 */
.ec-xp-simextra { display: flex; flex-direction: column; gap: var(--yj-s3); }
.ec-xp-crowd { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--yj-s2) var(--yj-s3); align-items: center; }
.ec-xp-crowd__k { font-size: var(--yj-t-small); font-weight: 700; color: var(--yj-sub); }
.ec-xp-crowd ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 2px; color: var(--yj-ink); }
.ec-xp-crowd ul.is-goods { color: var(--yj-yuja-ink); }
/* X13 주사위 */
.ec-xp-dice { display: flex; align-items: center; gap: var(--yj-s4); font-family: var(--yj-font-disp); font-size: 32px; color: var(--yj-ink-deep); }
.ec-xp-die rect { fill: var(--yj-card); stroke: var(--yj-ink-deep); stroke-width: 1.2; }
.ec-xp-die circle { fill: var(--yj-ink-deep); }
/* 달력 칸 (X11 갚는 날 · X14 모인 돈) */
.ec-xp-cal { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--yj-s2); grid-template-columns: repeat(auto-fill, minmax(6.5em, 1fr)); }
.ec-xp-cal li { display: flex; flex-direction: column; gap: 2px; padding: var(--yj-s2) var(--yj-s3); border: 1px dashed var(--yj-line-strong); border-radius: var(--yj-r-sm); font-size: var(--ec-xp-small); color: var(--yj-sub); line-height: 1.4; }
.ec-xp-cal b { font-size: var(--ec-xp-small); color: var(--yj-ink-deep); }
.ec-xp-cal li.is-paid, .ec-xp-cal li.is-open { border-style: solid; border-color: transparent; background: var(--yj-leaf-tint); color: var(--yj-leaf-ink); }
.ec-xp-cal li.is-missed { border-style: solid; border-color: transparent; background: var(--yj-orange-tint); color: var(--yj-orange-ink); font-weight: 700; }
.ec-xp-cal li.is-save { border-style: solid; background: var(--yj-canvas); color: var(--yj-ink); }
/* X14 마을 열 집 */
.ec-xp-houses { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--yj-s2); grid-template-columns: repeat(auto-fill, minmax(4.4em, 1fr)); }
.ec-xp-houses li { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: var(--yj-s2) 4px; border: 1px solid var(--yj-line-strong); border-radius: var(--yj-r-sm); font-size: var(--ec-xp-small); color: var(--yj-sub); text-align: center; line-height: 1.3; }
.ec-xp-houses li.is-in { background: var(--yj-leaf-tint); border-color: transparent; color: var(--yj-leaf-ink); }
.ec-xp-houses li.is-me { box-shadow: inset 0 0 0 1px var(--yj-yuja-600); font-weight: 700; }
.ec-xp-houses li.is-leak { border: 1px solid var(--yj-orange); color: var(--yj-orange-ink); }
/* X16 직업 12칸 */
.ec-xp-jobs { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--yj-s2); grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 560px) { .ec-xp-jobs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ec-xp-jobs li { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 52px; padding: var(--yj-s2) 4px; background: var(--yj-card); border: 1px solid var(--yj-line); border-radius: var(--yj-r-sm); text-align: center; font-size: var(--ec-xp-small); color: var(--yj-ink); line-height: 1.3; }
.ec-xp-jobs li.is-me { box-shadow: inset 0 0 0 1px var(--yj-yuja-600); font-weight: 700; }
.ec-xp-jobs li.is-gone { background: var(--yj-canvas); border-style: dashed; color: var(--yj-sub); }
.ec-xp-jobs__off { font-size: var(--yj-t-cap); color: var(--yj-orange-ink); font-weight: 700; }
/* X17 10년 띠 */
.ec-xp-band { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--yj-s2); grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ec-xp-band li { display: flex; flex-direction: column; gap: 2px; padding: var(--yj-s2) var(--yj-s3); border: 1px dashed var(--yj-line-strong); border-radius: var(--yj-r-sm); font-size: var(--ec-xp-small); color: var(--yj-sub); line-height: 1.4; }
.ec-xp-band b { color: var(--yj-ink-deep); font-size: var(--ec-xp-small); }
.ec-xp-band li.is-on { border-style: solid; border-color: var(--yj-line); background: var(--yj-canvas); color: var(--yj-ink); }
@media (max-width: 559px) { .ec-xp-band { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* X20 국고로 살 수 있는 것 */
.ec-xp-taxboard { display: flex; flex-direction: column; gap: var(--yj-s3); }
.ec-xp-buys { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--yj-s2); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .ec-xp-buys { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ec-xp-buys li { display: flex; flex-direction: column; gap: 2px; padding: var(--yj-s3); border: 1px dashed var(--yj-line-strong); border-radius: var(--yj-r-sm); color: var(--yj-sub); }
.ec-xp-buys b { font-weight: 600; }
.ec-xp-buys span { font-variant-numeric: tabular-nums; }
.ec-xp-buys li.is-on { border-style: solid; border-color: transparent; background: var(--yj-leaf-tint); color: var(--yj-leaf-ink); }
.ec-xp-buys li.is-on b { color: var(--yj-ink-deep); font-weight: 700; }
/* X20 큰 글자 — 전자칠판 전용 체험을 tv 없이 열었을 때 */
.ec-xp-stage--big { --ec-xp-body: 20px; --ec-xp-small: 20px; --ec-xp-h: 28px; --ec-xp-choice-h: 80px; }
.ec-xp-stage--big .ec-xp-card { max-width: 960px; }
.ec-xp-stage--big .ec-xp-h { font-size: var(--ec-xp-h); }
.ec-xp-stage--big .ec-xp-wallet strong { font-size: 44px; }
.ec-xp-stage--big .ec-xp-table { font-size: var(--ec-xp-body); }
@media (min-width: 1200px) {
  .ec-xp-stage--big { --ec-xp-body: 26px; --ec-xp-small: 24px; --ec-xp-h: 36px; }
  .ec-xp-stage--big .ec-xp-card { max-width: 1200px; }
}
/* 전자칠판 */
.ec-xp-stage--tv .ec-xp-choices--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ec-xp-stage--tv .ec-xp-stats strong { font-size: 44px; }
.ec-xp-stage--tv .ec-xp-stats dt, .ec-xp-stage--tv .ec-xp-factors span, .ec-xp-stage--tv .ec-xp-line span,
.ec-xp-stage--tv .ec-xp-cal li, .ec-xp-stage--tv .ec-xp-houses li, .ec-xp-stage--tv .ec-xp-jobs li,
.ec-xp-stage--tv .ec-xp-band li, .ec-xp-stage--tv .ec-xp-crowd__k, .ec-xp-stage--tv .ec-xp-jobs__off { font-size: 28px; }
.ec-xp-stage--tv .ec-xp-houses { grid-template-columns: repeat(10, minmax(0, 1fr)); }
.ec-xp-stage--tv .ec-xp-dice { font-size: 48px; }
.ec-xp-stage--tv .ec-xp-die { width: 96px; height: 96px; }
