/* 段考診斷步步練 共用樣式：作答畫面不上下捲動，桌機左題目右作答、手機上題目下作答 */
:root { --blue:#2563eb; --line:#c9d8f2; --ink:#14213d; --soft:#5b6b8c; --gold:#fbbf24; --red:#c2410c; --redbg:#fff4ec; --green:#15803d; --greenbg:#eefbf2; }
* { box-sizing:border-box; }
html, body { margin:0; }
body { font-family:'Noto Sans TC',sans-serif; color:var(--ink); background:#eef4ff linear-gradient(rgba(37,99,235,.06) 1px,transparent 1px) 0 0/32px 32px; }
button { font:inherit; cursor:pointer; }
#app { min-height:100vh; min-height:100dvh; display:flex; flex-direction:column; }
sup { font-size:.62em; line-height:0; }
/* 直式分數 */
.dx-fr { display:inline-flex; flex-direction:column; vertical-align:middle; text-align:center; line-height:1.16; margin:0 .12em; font-size:.86em; }
.dx-fr > span { display:block; padding:0 .16em; min-height:1.16em; white-space:nowrap; }
.dx-fr > span:first-child { border-bottom:.07em solid currentColor; padding-bottom:.06em; }
.dx-fr > span:last-child { padding-top:.06em; }
.dx-grp { white-space:nowrap; }
.dx-par { display:inline-block; font-style:normal; font-weight:500; transform:translateY(-.1em) scaleY(1.7); margin:0 .06em; vertical-align:middle; }
.sup-empty { display:inline-block; width:.9em; height:1em; border:2px dashed #60a5fa; border-radius:4px; vertical-align:super; }

.dx-head { background:linear-gradient(180deg,#132650,#0a1530); color:#f7faff; border-bottom:2px solid rgba(96,165,250,.45); }
.dx-head-in { max-width:1180px; margin:0 auto; padding:8px 16px; min-height:52px; display:flex; align-items:center; gap:12px; }
.dx-head h1 { font-size:17px; margin:0; font-weight:800; white-space:nowrap; flex:1; }
.dx-rail { list-style:none; display:flex; gap:4px; margin:0; padding:0; font-size:14px; font-weight:700; white-space:nowrap; }
.dx-rail li { padding:4px 12px; border-radius:999px; color:#a9bde0; }
.dx-rail li.past { color:#86efac; }
.dx-rail li.now { background:var(--gold); color:#3b2a00; }

.dx-main { flex:1; width:100%; max-width:1180px; margin:0 auto; padding:18px 16px; display:grid; grid-template-columns:1fr 1fr; gap:20px; align-content:start; }
.dx-main.single { grid-template-columns:1fr; }
.dx-left, .dx-right { display:flex; flex-direction:column; gap:12px; min-width:0; }
.dx-tag { font-weight:800; font-size:16px; color:#1e3a8a; display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.dx-tag small { color:var(--soft); font-size:14px; font-weight:600; }
.dx-dots { display:inline-flex; gap:5px; }
.dx-dots i { font-style:normal; min-width:26px; height:26px; border-radius:50%; display:grid; place-items:center; font-size:14px; background:#fff; border:2px solid var(--line); color:var(--soft); }
.dx-dots i.now:has(b) { display:inline-flex; align-items:center; gap:6px; padding:0 12px 0 8px; border-radius:13px; }
.dx-dots i.past { background:#bbf7d0; border-color:#86efac; color:var(--green); }
.dx-dots i.now { background:var(--gold); border-color:var(--gold); color:#3b2a00; }
.dx-board { background:#0f172a; color:#fff; border-radius:18px; padding:18px 20px; }
.dx-ask { margin:0; font-size:20px; font-weight:700; line-height:1.5; }
.dx-big { font-size:clamp(34px,5vw,56px); font-weight:900; text-align:center; padding:12px 0 4px; line-height:1.25; color:#fde68a; letter-spacing:.02em; }
.dx-big.long { font-size:clamp(24px,2.6vw,32px); }
.dx-big.fracs { white-space:nowrap; padding:8px 0 2px; }
.dx-line.frac { min-height:74px; }
.dx-fr .dx-slot { display:block; margin:2px 0; min-width:38px; font-size:.95em; line-height:1.25; }
.dx-row:has(.dx-fr) { padding:3px 0; line-height:1.4; white-space:nowrap; }
.dx-opt:has(.dx-fr) { white-space:nowrap; padding:3px 4px; line-height:1.3; }
.dx-tip { background:#fffbeb; border:2px solid #fde68a; border-radius:14px; padding:10px 14px; font-size:16px; line-height:1.6; }
.dx-tip b { color:#92400e; }
.dx-tip ul { margin:2px 0 0; padding-left:20px; }

.dx-right { background:#fff; border:1px solid var(--line); border-radius:18px; padding:16px; align-self:start; }
.dx-do { margin:0; font-size:16px; font-weight:600; color:var(--soft); }
.dx-chips { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.dx-chip { min-height:68px; font-size:28px; font-weight:800; color:var(--ink); background:#f4f8ff; border:3px solid var(--line); border-radius:14px; }
.dx-chips.pick { grid-template-columns:repeat(2,1fr); }
.dx-chips.pick.long { grid-template-columns:1fr; gap:8px; }
.dx-chips.long .dx-chip { min-height:52px; font-size:19px; font-weight:700; line-height:1.4; text-align:left; padding:6px 14px; }
.dx-big.prose { font-size:clamp(20px,1.9vw,26px); font-weight:700; text-align:left; line-height:1.75; letter-spacing:.03em; color:#fef3c7; padding:8px 0 2px; }
.dx-big.prose .dx-q { display:block; }
.dx-u { text-decoration:none; border-bottom:3px solid #fbbf24; color:#fde68a; padding:0 1px; }
.dx-chip .dx-u, .dx-row .dx-u, .dx-ask .dx-u { border-bottom-color:currentColor; }
.dx-chip.given, .dx-chip.given.on { background:#e2e8f0; border-color:#cbd5e1; color:#64748b; cursor:default; }
.dx-chip.on { background:#dbeafe; border-color:var(--blue); color:#1d4ed8; }
.dx-line { display:flex; align-items:center; gap:8px; font-size:30px; font-weight:800; min-height:60px; padding:4px 14px; background:#f4f8ff; border:3px solid #93c5fd; border-radius:14px; overflow:hidden; white-space:nowrap; }
.dx-typed { color:#1d4ed8; }
.dx-caret { display:inline-block; width:3px; height:1em; background:var(--blue); margin-left:2px; vertical-align:-.12em; animation:dxblink 1s step-end infinite; }
@keyframes dxblink { 50% { opacity:0; } }
.dx-keys { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; }
.dx-keys button { min-height:50px; border:2px solid var(--line); border-radius:12px; background:#fff; font-size:22px; font-weight:800; color:var(--ink); }
.dx-keys button.fn { background:#e6effd; font-size:18px; }
.dx-keys button.wide { grid-column:span 3; }
.dx-keys button:active, .dx-chip:active, .dx-opt:active { transform:translateY(2px); }
.dx-acts { display:flex; gap:10px; justify-content:flex-end; }
.dx-acts.center { justify-content:center; }
.dx-btn { min-height:52px; padding:0 26px; border:0; border-radius:14px; background:var(--blue); color:#fff; font-size:19px; font-weight:800; }
.dx-btn.ghost { background:#fff; color:#334155; border:2px solid var(--line); }
.dx-btn:disabled { background:#cbd5e1; cursor:not-allowed; }
.dx-btn:focus-visible, .dx-chip:focus-visible, .dx-opt:focus-visible, .dx-keys button:focus-visible { outline:3px solid var(--gold); outline-offset:2px; }

.dx-fb { border-radius:14px; padding:14px 16px; }
.dx-fb h3 { margin:0 0 6px; font-size:20px; }
.dx-fb.good { background:var(--greenbg); border:2px solid #86efac; }
.dx-fb.good h3 { color:var(--green); }
.dx-fb.bad { background:var(--redbg); border:2px solid #fdba74; }
.dx-fb.bad h3 { color:var(--red); }
.dx-fb-ans { margin:0; font-size:24px; font-weight:800; }
.dx-main dl { display:grid; grid-template-columns:auto 1fr; gap:4px 12px; margin:0; font-size:18px; }
.dx-main dt { color:var(--soft); font-weight:600; }
.dx-main dd { margin:0; font-weight:800; overflow-wrap:anywhere; }
.dx-main dd.bad { color:var(--red); }
.dx-main dd.good { color:var(--green); }
.dx-why { margin:10px 0 0; font-size:17px; line-height:1.6; }
.dx-why b { display:block; color:#92400e; font-size:15px; }

.dx-steps { display:flex; flex-direction:column; gap:8px; }
.dx-past { display:flex; gap:10px; align-items:flex-start; font-size:17px; color:var(--ink); }
.dx-past > span, .dx-step-ask > span { flex:none; width:24px; height:24px; border-radius:50%; display:grid; place-items:center; font-size:14px; font-weight:800; background:#bbf7d0; color:var(--green); }
.dx-past > div { display:flex; flex-wrap:wrap; gap:0 18px; }
.dx-step-ask { margin:0 0 6px; display:flex; gap:10px; align-items:center; font-size:18px; font-weight:800; }
.dx-step-ask > span { background:var(--gold); color:#3b2a00; }
.dx-row { font-size:22px; font-weight:700; line-height:1.75; }
.dx-past .dx-row { font-size:17px; line-height:1.5; }
.dx-slot { display:inline-block; min-width:44px; padding:0 8px; margin:0 3px; text-align:center; border:2px dashed #93c5fd; border-radius:8px; color:#93a7c9; line-height:1.45; }
.dx-slot.now { border:2px solid var(--blue); background:#dbeafe; color:var(--blue); }
.dx-slot.ok { border:2px solid #93c5fd; background:#eff6ff; color:#1d4ed8; }
.dx-slot.ok.yes { border-color:#86efac; background:var(--greenbg); color:var(--green); }
.dx-slot.ok.no { border-color:#fdba74; background:var(--redbg); color:var(--red); }
.dx-num { color:#7c3aed; font-weight:900; }
.dx-past .dx-slot, .dx-past .dx-slot.ok { min-width:0; padding:0 8px; margin:0 2px; border-width:0; border-radius:7px; background:#dbeafe; color:#1d4ed8; font-weight:800; }
.dx-past .dx-slot.ok.yes { background:#d1fae5; color:#047857; }
.dx-past .dx-slot.ok.no { background:#ffe4d6; color:#c2410c; }
.dx-opts { display:grid; grid-template-columns:repeat(2,1fr); gap:10px; }
.dx-opt { min-height:54px; border:3px solid var(--line); border-radius:14px; background:#f4f8ff; font-size:22px; font-weight:800; color:var(--ink); }
.dx-opt.no { background:#f1f5f9; color:#94a3b8; text-decoration:line-through; }
.dx-hint { margin:0; min-height:1.6em; font-size:16px; font-weight:600; color:var(--soft); }
.dx-hint.warn { color:var(--red); }

.dx-card, .dx-report-top, .dx-sheet { background:#fff; border:1px solid var(--line); border-radius:18px; padding:20px; }
.dx-intro { max-width:640px; width:100%; margin:2vh auto 0; }
.dx-card h2, .dx-report h2 { margin:0; font-size:26px; text-wrap:balance; }
.dx-how { margin:14px 0 20px; padding-left:24px; font-size:19px; line-height:1.9; }
.dx-how b { margin-right:10px; color:#1d4ed8; }
.dx-report { display:grid; gap:14px; }
.dx-report-top { display:flex; align-items:center; gap:14px; flex-wrap:wrap; padding:14px 20px; }
.dx-report-top .dx-btn { margin-left:auto; }
.dx-okline { margin:0; display:flex; gap:8px; flex-wrap:wrap; }
.dx-pill { display:inline-flex; align-items:center; gap:6px; padding:4px 12px; border-radius:999px; background:var(--greenbg); font-weight:700; }
.dx-lamp { display:inline-block; width:14px; height:14px; border-radius:50%; margin-right:6px; vertical-align:-1px; }
.dx-pill .dx-lamp { margin:0; }
.dx-lamp.red { background:#f97316; }
.dx-lamp.green { background:#22c55e; }
.dx-sheets { display:grid; grid-template-columns:1fr 1fr; gap:14px; align-items:start; }
.dx-sheet { padding:14px 18px; }
.dx-sheet summary { font-size:15px; font-weight:700; color:var(--soft); cursor:pointer; }
.dx-sheet-head { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.dx-sheet-head h3 { margin:0; font-size:20px; }
.dx-sheet-head em { font-style:normal; font-size:15px; font-weight:800; color:var(--red); }
.dx-sheet.pass { border-color:#86efac; background:#f6fef9; }
.dx-sheet.pass .dx-sheet-head em { color:var(--green); }
.dx-sheet.just { box-shadow:0 0 0 3px var(--gold); }
.dx-pick, .dx-sheet-head .dx-prize { margin-left:auto; }
.dx-prize { display:inline-flex; align-items:center; gap:6px; flex-wrap:wrap; font-size:16px; }
.dx-prize i { font-style:normal; font-size:14px; color:var(--soft); }
.dx-energy { padding:2px 12px; border-radius:999px; background:#dbeafe; color:#1e40af; font-weight:900; white-space:nowrap; }
.dx-tallies { margin-left:auto; display:flex; gap:8px 18px; flex-wrap:wrap; }
.dx-tallies:empty { display:none; }
.dx-tally { display:inline-flex; align-items:center; gap:8px; font-size:16px; font-weight:800; color:var(--soft); }
.dx-tallies + .dx-btn, .dx-tallies ~ .dx-btn { margin-left:0; }
.dx-end { display:grid; gap:12px; max-width:980px; width:100%; margin:0 auto; }
.dx-end .dx-card { padding:16px 20px; }
.dx-end-top { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.dx-total { display:flex; gap:10px; flex-wrap:wrap; font-size:22px; }
.dx-total span { padding:6px 18px; }
.dx-end-cols { display:grid; grid-template-columns:1fr 1fr; gap:12px; align-items:start; }
.dx-end .dx-summary { max-width:none; }
.dx-end .dx-summary table { margin:0; font-size:17px; }
.dx-end .dx-summary th, .dx-end .dx-summary td { padding:7px 6px; }
.dx-end .dx-summary td:not(:first-child) { font-weight:800; white-space:nowrap; }
.dx-learn h3 { margin:0 0 4px; font-size:18px; }
.dx-learn ul { margin:0 0 12px; padding-left:0; list-style:none; font-size:18px; line-height:1.7; }
.dx-learn ul:last-child { margin-bottom:0; }
.dx-learn ul.good li::before { content:'✅ '; }
.dx-learn ul.had li::before { content:'👍 '; }
.dx-learn ul.help li::before { content:'🙋 '; }
.dx-learn h3.good { color:var(--green); }
.dx-learn h3.had { color:var(--soft); }
.dx-learn h3.help { color:var(--red); }
.dx-learn a { font-size:15px; color:#1d4ed8; white-space:nowrap; }
.dx-pick { min-height:44px; padding:0 20px; font-size:17px; }
.dx-coin { padding:2px 12px; border-radius:999px; background:#fef3c7; color:#92400e; font-weight:900; white-space:nowrap; }
.dx-cheer { margin:0; display:flex; align-items:center; gap:8px; flex-wrap:wrap; font-size:18px; font-weight:800; color:var(--green); }
.dx-perf { margin:8px 0 0; display:grid; grid-template-columns:auto 1fr; gap:4px 14px; font-size:17px; }
.dx-perf dt { color:var(--soft); }
.dx-perf dd { margin:0; font-weight:800; }
.dx-perf dd.good { color:var(--green); }
.dx-sheet-q { margin:8px 0; font-size:17px; color:#334155; }
.dx-sheet .dx-why { margin-top:8px; font-size:16px; }
.dx-summary { max-width:640px; width:100%; margin:0 auto; }
.dx-summary table { width:100%; border-collapse:collapse; margin:14px 0; font-size:18px; }
.dx-summary th { text-align:left; color:var(--soft); font-size:15px; }
.dx-summary th, .dx-summary td { padding:10px 6px; border-bottom:1px solid var(--line); }
.dx-summary td a { display:block; font-size:15px; color:#1d4ed8; }

.dx-ink-btn { margin-left:auto; min-height:34px; padding:0 14px; border:2px solid var(--line); border-radius:999px; background:#fff; color:#1e3a8a; font-size:15px; font-weight:800; white-space:nowrap; }
.dx-ink-btn[aria-pressed="true"] { background:#dbeafe; border-color:#60a5fa; }
.dx-say-q + .dx-ink-btn { margin-left:6px; }
.dx-say:not(.dx-ink-btn) { margin-left:8px; min-width:34px; min-height:30px; padding:0 6px; border:2px solid var(--line); border-radius:999px; background:#fff; font-size:15px; line-height:1; vertical-align:middle; cursor:pointer; }
.dx-ink { position:fixed; z-index:35; display:none; flex-direction:column; background:#fff; border:2px solid #60a5fa; border-radius:14px; overflow:hidden; }
.dx-ink-top { flex:none; display:flex; align-items:center; gap:6px; padding:4px 8px; background:#eff6ff; }
.dx-ink-top b { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:16px; color:#1e3a8a; }
.dx-ink-top button { min-height:32px; padding:0 12px; border:0; border-radius:8px; background:#fff; font-size:15px; font-weight:700; color:#334155; white-space:nowrap; }
.dx-ink.low { flex-direction:row-reverse; }
.dx-ink.low .dx-ink-top { display:grid; grid-template-columns:auto auto; align-content:center; gap:4px; padding:4px; }
.dx-ink.low .dx-ink-top b { display:none; }
.dx-ink.low .dx-ink-top button { min-height:28px; padding:0 8px; font-size:13px; }
.dx-ink.low canvas { min-width:0; }
.dx-ink canvas { flex:1; min-height:0; width:100%; touch-action:none; cursor:crosshair; -webkit-user-select:none; user-select:none; }
.dx-myink { margin-top:6px; }
/* 題目上的劃記 */
.dx-board { position:relative; overflow:hidden; }
.dx-q { position:relative; display:inline-block; }
.dx-marks { position:absolute; left:50%; top:50%; width:1em; height:1em; overflow:visible; pointer-events:none; }
.dx-marks polyline { fill:none; stroke:#ff7a9c; stroke-width:3px; stroke-linecap:round; stroke-linejoin:round; vector-effect:non-scaling-stroke; }
.dx-mark { position:absolute; inset:0; touch-action:none; cursor:crosshair; -webkit-user-select:none; user-select:none; }
.dx-board.pen { box-shadow:0 0 0 2px #60a5fa; -webkit-user-select:none; user-select:none; }
.dx-mq { margin-top:4px; padding:20px 12px; border-radius:10px; background:#0f172a; color:#fde68a; font-size:28px; font-weight:900; text-align:center; overflow:hidden; white-space:nowrap; line-height:1.25; }
.dx-cap { display:inline-block; vertical-align:middle; }
.dx-myink .dx-calc { display:block; width:100%; max-height:200px; margin-top:4px; border:1px solid var(--line); border-radius:10px; background:#fff; }
.dx-calc polyline { fill:none; stroke:#1d3fae; stroke-width:3; stroke-linecap:round; stroke-linejoin:round; }
.dx-pop { position:fixed; z-index:40; display:none; flex-direction:column; background:#fff; border:3px solid var(--gold); border-radius:16px; box-shadow:0 14px 34px rgba(13,27,61,.28); overflow:hidden; }
.dx-pop-top { flex:none; display:flex; gap:6px; align-items:center; padding:5px 8px; background:#fff7e0; }
.dx-pop-top b { padding-left:4px; font-size:16px; color:#92400e; }
.dx-pop-x { margin-left:auto; width:34px; height:30px; border:0; border-radius:8px; background:transparent; font-size:17px; color:#92400e; }
.dx-pop-body { padding:8px 12px 10px; display:flex; flex-direction:column; gap:7px; overflow:auto; }
.dx-pop .dx-steps { gap:4px; }
.dx-pop .dx-past { gap:7px; }
.dx-pop .dx-past > span, .dx-pop .dx-step-ask > span { width:20px; height:20px; font-size:12px; }
.dx-pop .dx-past .dx-row { font-size:15px; line-height:1.5; }
.dx-pop .dx-past > div { gap:0 12px; }
.dx-pop .dx-step-ask { font-size:16px; margin:0 0 2px; gap:7px; }
.dx-pop .dx-rows { display:flex; flex-wrap:wrap; gap:0 16px; }
.dx-pop .dx-row { font-size:17px; line-height:1.7; }
.dx-pop .dx-opts { grid-template-columns:repeat(4,1fr); gap:6px; }
.dx-opts.long, .dx-pop .dx-opts.long { grid-template-columns:1fr; gap:6px; }
.dx-opts.long .dx-opt { min-height:44px; font-size:18px; font-weight:700; text-align:left; padding:4px 12px; line-height:1.35; }
.dx-pop .dx-opts.long .dx-opt { font-size:15px; min-height:38px; }
.dx-pop .dx-opt { min-height:42px; font-size:17px; padding:0 4px; border-width:2px; border-radius:10px; }
.dx-pop .dx-hint { font-size:14px; min-height:1.4em; }

@media (max-height:680px) and (min-width:821px) {
  .dx-main { padding-top:12px; padding-bottom:12px; }
  .dx-right { padding:14px; }
  .dx-keys button { min-height:46px; }
  .dx-chip { min-height:60px; }
  .dx-sheet { padding:10px 16px; }
  .dx-sheet .dx-why { line-height:1.45; margin-top:4px; }
  .dx-sheet-q { margin:4px 0; }
  .dx-pick { min-height:36px; font-size:16px; }
  .guide .dx-steps { gap:4px; }
  .guide .dx-past .dx-row { font-size:16px; line-height:1.45; }
  .pad .dx-keys button { min-height:40px; }
  .pad .dx-keys { gap:6px; }
  .pad.dx-main .dx-right { gap:8px; }
  .dx-report, .dx-sheets { gap:10px; }
  .dx-report-top { padding:8px 20px; }
  .pad .dx-line.frac { min-height:58px; }
  .pad .dx-past .dx-row:has(.dx-fr), .guide .dx-past .dx-row:has(.dx-fr) { padding:0; line-height:1.2; }
  .dx-end { gap:8px; }
  .dx-end .dx-card { padding:10px 18px; }
  .dx-end .dx-summary th, .dx-end .dx-summary td { padding:4px 6px; }
}
@media (min-width:821px) {
  .dx-board.pen .dx-big { padding:30px 0 22px; }
  .dx-board.pen .dx-big.fracs.long { font-size:clamp(32px,3.2vw,42px); padding:26px 0 20px; }
}
@media (max-width:820px) {
  .dx-head-in { padding:6px 12px; min-height:46px; gap:8px; }
  .dx-head h1 { font-size:15px; overflow:hidden; text-overflow:ellipsis; }
  .dx-rail { gap:0; font-size:12px; }
  .dx-rail li { padding:3px 7px; }
  .dx-main { grid-template-columns:1fr; padding:10px 12px; gap:10px; }
  .dx-left { gap:8px; }
  .dx-tag { font-size:15px; gap:8px; }
  .dx-tag small { display:none; }
  .dx-tag { flex-wrap:nowrap; white-space:nowrap; }
  .dx-dots i.now:has(b) { padding:0 8px 0 6px; font-size:13px; }
  .dx-ink-btn { min-height:30px; padding:0 9px; font-size:13px; }
  .dx-pop.tight .dx-pop-top { padding:1px 8px; }
  .dx-pop.tight .dx-pop-body { padding:3px 8px 4px; gap:3px; }
  .dx-pop-body { padding:5px 10px 7px; }
  .dx-pop .dx-opt { font-size:15px; min-height:40px; }
  .dx-board { padding:10px 14px; border-radius:14px; }
  .dx-ask { font-size:17px; line-height:1.4; }
  .dx-big { font-size:30px; padding:4px 0 0; }
  .dx-big.long { font-size:22px; }
  .dx-big.prose { font-size:17px; line-height:1.6; padding:4px 0 0; }
  .dx-chips.long .dx-chip { min-height:42px; font-size:16px; padding:4px 10px; }
  .dx-chips.long { gap:6px; }
  .dx-right { padding:12px; gap:10px; }
  .dx-tip { font-size:15px; line-height:1.5; padding:8px 12px; }
  .guide .dx-tip { display:none; }
  .dx-chip { min-height:60px; font-size:24px; }
  .dx-keys button { min-height:46px; }
  .dx-line { font-size:24px; min-height:52px; }
  .dx-line.frac { min-height:56px; padding:0 12px; }
  .dx-right:has(.dx-line.frac) .dx-keys { gap:6px; }
  .dx-right:has(.dx-line.frac) .dx-keys button { min-height:40px; }
  .dx-right:has(.dx-line.frac) { gap:7px; padding:8px 12px; }
  .dx-right:has(.dx-line.frac) .dx-do { font-size:15px; line-height:1.2; }
  .dx-right:has(.dx-line.frac) .dx-do .dx-fr { font-size:.75em; }
  .dx-big.fracs { padding:2px 0 0; }
  .dx-main:not(.pad) .dx-board.pen .dx-big { padding:18px 0 14px; }
  .dx-pop.tight .dx-row:has(.dx-fr) { font-size:15px; line-height:1.15; padding:0; }
  .dx-pop.tight .dx-fr .dx-slot { margin:0; min-width:30px; }
  .dx-pop.tight .dx-steps:has(.dx-step) .dx-past:has(+ .dx-past) { display:none; }
  .dx-pop.tight .dx-opt { min-height:36px; padding:0 4px; }
  .guide .dx-past { display:none; }
  .guide .dx-past:nth-last-child(2), .guide .dx-past:last-child { display:flex; }
  .pad .dx-past { display:flex !important; gap:6px; }
  .pad .dx-past > span { width:20px; height:20px; font-size:12px; }
  .pad .dx-past .dx-row { font-size:14px; line-height:1.45; }
  .pad .dx-steps { gap:3px; }
  .pad .dx-chip { min-height:48px; }
  .pad .dx-keys button { min-height:42px; }
  .dx-row { font-size:20px; }
  .dx-past .dx-row { font-size:15px; }
  .dx-opt { min-height:50px; font-size:20px; }
  .dx-acts .dx-btn { flex:1; padding:0 10px; }
  .dx-sheets { grid-template-columns:1fr; gap:10px; }
  .dx-report-top .dx-btn { margin-left:0; width:100%; }
  .dx-tallies { margin-left:0; }
  .dx-report { gap:8px; }
  .dx-report-top { gap:6px 12px; padding:8px 14px; }
  .dx-report .dx-sheets { gap:8px; }
  .dx-sheet { padding:8px 14px; }
  .dx-sheet-head { gap:6px; }
  .dx-sheet-head h3 { font-size:18px; }
  .dx-sheet-head em { font-size:13px; }
  .dx-sheet.pass .dx-sheet-head em { display:none; }
  .dx-prize { font-size:14px; gap:5px; flex-wrap:nowrap; }
  .dx-prize .dx-coin, .dx-prize .dx-energy { padding:1px 8px; }
  .dx-tallies { gap:4px 12px; }
  .dx-tally { font-size:14px; }
  .dx-cheer { font-size:16px; gap:4px 8px; }
  .dx-perf { margin-top:2px; font-size:14px; gap:0 12px; }
  .dx-pick { min-height:40px; font-size:16px; padding:0 16px; }
  .dx-report-top #dx-next { min-height:46px; }
  .dx-end-cols { grid-template-columns:1fr; gap:10px; }
  .dx-end .dx-card { padding:12px 14px; }
  .dx-end .dx-acts .dx-btn { flex:1 1 auto; font-size:17px; padding:0 6px; white-space:nowrap; }
  .dx-total { font-size:17px; }
  .dx-total span { padding:4px 12px; }
  .dx-end .dx-summary table, .dx-learn ul { font-size:15px; }
  .dx-end .dx-summary th { font-size:13px; white-space:nowrap; }
  .dx-end .dx-summary th, .dx-end .dx-summary td { padding:2px 3px; }
  .dx-learn ul { line-height:1.5; margin-bottom:6px; }
  .dx-card { padding:16px; }
  .dx-card h2, .dx-report h2 { font-size:21px; }
  .dx-how { font-size:17px; line-height:1.7; }
}
@media (prefers-reduced-motion:reduce) { .dx-caret { animation:none; } }
