/* Layout: one plain teaching board (no scene). Question top-left, options right, solving area in the middle. Pip floats at the bottom-left of the screen and the two students at the bottom-right, talking in a speech bubble over the page. */
:root {
  --bg: #F3EADF; --surface: #FFFBF5; --ink: #1C1C1C; --muted: #6B6158; --line: #E2D6C6;
  --cobalt: #4F7FD0; --coral: #E8452C; --blush: #F2A0A0; --orange: #E9853A; --green: #3E9A5C; --gold: #F5C446;
  --hl: rgba(245,196,70,.45); --sheet: #FFFFFF; --sheet-ink: #1C1C1C; --sheet-grey: #9A9A9A;
  --shadow: 0 2px 0 rgba(28,28,28,.08), 0 10px 30px rgba(80,60,30,.08); --boardbg: #EFE4D4; --veil-strong: rgba(243,234,223,.6);
  --f-display: "Baloo 2", "Trebuchet MS", system-ui, sans-serif;
  --f-body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #1B2030; --surface: #262C3F; --ink: #F3EADF; --muted: #B4AC9F; --line: #3A4259;
  --cobalt: #7FA6EA; --coral: #FF7A5E; --green: #6CC48A; --gold: #F5C446; --hl: rgba(245,196,70,.30);
  --sheet: #F4EFE6; --sheet-ink: #1C1C1C; --sheet-grey: #8E8E8E; --shadow: 0 10px 30px rgba(0,0,0,.35); --boardbg: #222839; --veil-strong: rgba(27,32,48,.6); color-scheme: dark } }
:root[data-theme="dark"] {
  --bg: #1B2030; --surface: #262C3F; --ink: #F3EADF; --muted: #B4AC9F; --line: #3A4259;
  --cobalt: #7FA6EA; --coral: #FF7A5E; --green: #6CC48A; --gold: #F5C446; --hl: rgba(245,196,70,.30);
  --sheet: #F4EFE6; --sheet-ink: #1C1C1C; --sheet-grey: #8E8E8E; --shadow: 0 10px 30px rgba(0,0,0,.35); --boardbg: #222839; --veil-strong: rgba(27,32,48,.6); color-scheme: dark }
* { box-sizing: border-box }
body { background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 17px; line-height: 1.45;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-block: 14px 40px }
button { font: inherit; color: inherit }
.top { max-width: 1280px; margin: 0 auto 12px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap }
.brand { font-family: var(--f-display); font-weight: 800; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted) }
.top h1 { font-family: var(--f-display); font-weight: 800; font-size: clamp(26px, 3.4vw, 36px); line-height: 1; margin: 0; text-wrap: balance }
.chip { font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 99px; border: 2px solid var(--line); color: var(--muted) }
.spacer { flex: 1 }
.iconbtn { border: 2px solid var(--line); background: var(--surface); border-radius: 99px; padding: 6px 14px; font-weight: 700; cursor: pointer; display: inline-flex; gap: 8px; align-items: center }
.iconbtn:focus-visible, .opt:focus-visible, .box:focus-visible, .btn:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px }
.board { position: relative; max-width: 1280px; margin: 0 auto; border-radius: 26px; overflow: clip; box-shadow: var(--shadow);
  background: var(--boardbg);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 300px); grid-template-areas: "q opts" "work opts"; gap: 14px; padding: 18px; margin-bottom: 130px }
.board > * { position: relative }
.qcard { grid-area: q } .optcard { grid-area: opts; align-self: stretch } .work { grid-area: work; min-height: 300px }
.ctl { position: absolute; top: 10px; right: 12px; display: flex; gap: 8px; z-index: 5 }
.ctl .iconbtn { font-size: 14px; padding: 5px 12px }
/* cast row: Pip bottom-left, the two students bottom-right, speech bubble between */
/* the cast floats over the page, pinned to the bottom corners of the screen */
.cast { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; pointer-events: none; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: end; gap: 12px;
  padding: 0 max(16px, env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)) }
.kids { display: flex; gap: 6px; align-items: end }
.char { position: relative; height: 108px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; transition: transform .3s }
.char.kid { height: 90px }
.char img { height: 100%; width: auto; display: block; max-width: none; filter: drop-shadow(0 4px 2px rgba(0,0,0,.14)) }
.char .tag { position: absolute; top: -1.5em; font-family: var(--f-display); font-weight: 800; font-size: 15px; -webkit-text-stroke: 3px #1E2634; paint-order: stroke fill; white-space: nowrap; line-height: 1 }
.char.talk img { animation: bob .45s ease-in-out infinite alternate }
.char.cheer { animation: hop .45s ease-in-out 4 alternate }
@keyframes bob { to { transform: translateY(-3px) scaleY(1.02) } }
@keyframes hop { to { transform: translateY(-14px) } }
.bubble { align-self: center; justify-self: center; max-width: 680px; background: var(--surface); box-shadow: 0 6px 18px rgba(0,0,0,.15); border: 2px solid var(--ink); border-radius: 18px; padding: 8px 16px; font-size: 18px; font-weight: 700; position: relative; margin-bottom: 18px; text-wrap: pretty }
.bubble.off { visibility: hidden }
.bubble::after { content: ""; position: absolute; bottom: 12px; width: 16px; height: 16px; background: var(--surface); border: 2px solid var(--ink); border-top: 0; border-right: 0; }
.bubble[data-side="left"]::after { left: -10px; transform: rotate(45deg) }
.bubble[data-side="right"]::after { right: -10px; transform: rotate(-135deg) }
.bubble b { display: block; font-family: var(--f-display); font-size: 15px; letter-spacing: .04em; color: var(--muted) }
.startcover { position: absolute; inset: 0; display: grid; place-items: center; background: var(--veil-strong); z-index: 4 }
.startbtn { font-family: var(--f-display); font-weight: 800; font-size: 30px; background: var(--coral); color: #fff; border: 0; border-radius: 99px; padding: 12px 34px 10px; cursor: pointer; box-shadow: 0 6px 0 #B5321D; display: inline-flex; gap: 12px; align-items: center }
.startbtn:active { transform: translateY(3px); box-shadow: 0 3px 0 #B5321D }
.tri { width: 0; height: 0; border-left: 16px solid #fff; border-top: 11px solid transparent; border-bottom: 11px solid transparent }
@media (max-width: 860px) {
  .board { grid-template-columns: minmax(0, 1fr); grid-template-areas: "q" "opts" "work"; padding: 12px; margin-bottom: 170px }
  .cast { gap: 6px }
  .char { height: 70px } .char.kid { height: 60px } .char .tag { font-size: 12px; -webkit-text-stroke: 3px #1E2634 }
  .work { min-height: 0 }
  .cast { grid-template-areas: "bub bub bub" "pip . kids"; row-gap: 20px }
  #c-pip { grid-area: pip } .kids { grid-area: kids }
  .bubble { grid-area: bub; justify-self: stretch; max-width: none; font-size: 16px; padding: 8px 12px; margin: 0; border-width: 2px }
  .bubble::after { width: 14px; height: 14px; border-width: 2px; bottom: -9px }
  .bubble[data-side="left"]::after { left: 40px; transform: rotate(-45deg) } .bubble[data-side="right"]::after { left: auto; right: 60px; transform: rotate(-45deg) }
}
/* ---------- side: question + options ---------- */
.card { background: var(--surface); border-radius: 20px; box-shadow: var(--shadow); padding: 18px 20px; min-width: 0 }
.qcard { border: 3px solid var(--cobalt) }
.label { font-family: var(--f-display); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px }
.story p { margin: 0 0 4px; font-size: 19px; transition: opacity .4s, transform .4s }
.story p.off { opacity: 0; transform: translateY(4px) }
.story p.q { font-weight: 700; margin-top: 8px }
.story mark { background: none; color: inherit; text-decoration: underline 3px var(--coral); text-underline-offset: 4px }
.opts { display: grid; gap: 8px }
.opt { display: grid; grid-template-columns: 2.2em 1fr 2em; align-items: center; text-align: left; border: 2px solid var(--line); background: var(--surface); border-radius: 14px; padding: 9px 12px; font-size: 20px; cursor: pointer; transition: background .25s, border-color .25s, transform .15s; font-variant-numeric: tabular-nums }
.opt b { font-family: var(--f-display); font-weight: 800 }
.opt:disabled { cursor: default }
.opt.reading { background: var(--hl) }
.opt.picked { border-color: var(--cobalt); box-shadow: inset 0 0 0 2px var(--cobalt) }
.opt.right { border-color: var(--green); box-shadow: inset 0 0 0 2px var(--green) }
.opt:not(:disabled):hover { transform: translateY(-1px); border-color: var(--cobalt) }
.mark { width: 1.6em; height: 1.6em; justify-self: end }
.yourturn { font-family: var(--f-display); font-weight: 700; font-size: 18px; color: var(--coral); margin: 0 0 8px }
.score { font-size: 15px; color: var(--muted) }
/* ---------- bench ---------- */
.work { min-width: 0 }
.steps { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px }
.steps span { font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: var(--bg); color: var(--muted) }
.steps span.on { background: var(--cobalt); color: #fff }
.steps span.done { background: var(--green); color: #fff }
.coach { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px }
.coach p { margin: 0; font-size: 18px; font-weight: 700; text-wrap: pretty }
.coach .hint { display: block; color: var(--coral); font-weight: 700; font-size: 16px; margin-top: 4px; min-height: 1.2em }
.sheet { background: var(--sheet); color: var(--sheet-ink); border-radius: 16px; padding: 18px 14px 16px; border: 2px solid var(--line); position: relative; overflow: hidden }
.brow { display: grid; grid-template-columns: 4.2em minmax(0, 1fr); align-items: center; gap: 8px; min-height: 76px }
.brow + .brow { margin-top: 18px }
.brow .who { font-family: var(--f-display); font-weight: 800; font-size: 22px; text-align: right }
.boxes { display: flex; gap: 0; min-height: 64px; align-items: center; position: relative; border-radius: 10px; padding: 4px; transition: background .2s }
.boxes.target { background: rgba(79,127,208,.12); outline: 3px dashed var(--cobalt) }
.boxes.tapme { cursor: pointer; background: rgba(245,196,70,.18); outline: 3px dashed #C99A1A }
.box { width: var(--bw, 60px); height: 58px; border: 3px solid #1C1C1C; margin-left: -3px; background: #fff; display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; font-size: 24px; color: #1C1C1C; touch-action: none; user-select: none; -webkit-user-select: none; padding: 0; border-radius: 0; animation: drop .28s ease-out }
.box:first-child { margin-left: 0 }
@keyframes drop { from { transform: translateY(-24px); opacity: 0 } }
.box.ghost { border: 3px dashed #9A9A9A; background: transparent; animation: none }
.box.moved { border-color: var(--coral); z-index: 1; box-shadow: inset 0 0 0 2px var(--coral) }
.box.grab { cursor: grab; background: #FFF6D8 }
.box.counted { background: #E3F2E7 }
.box.glow { background: #FFE9A8 }
.drag { position: fixed; z-index: 50; pointer-events: none; transform: translate(-50%, -50%) rotate(-4deg); box-shadow: 0 10px 20px rgba(0,0,0,.25) }
.divider { position: absolute; top: 8px; bottom: 8px; border-left: 4px dashed var(--cobalt); opacity: 0; transition: opacity .4s }
.divider.on { opacity: 1 }
.divider em { position: absolute; top: -2px; left: 8px; font-style: normal; font-weight: 700; font-size: 14px; color: var(--cobalt); white-space: nowrap }
.tally { margin-top: 14px; min-height: 44px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-family: var(--f-display); font-weight: 800; font-size: 24px; font-variant-numeric: tabular-nums }
.pill { display: inline-block; padding: 4px 16px; border-radius: 99px; color: #fff; font-family: var(--f-body); font-weight: 700; font-size: 17px; background: #4F7FD0 }
.pill.green { background: #3E9A5C } .pill.coral { background: #E8452C }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px }
.btn { border: 0; border-radius: 99px; padding: 10px 22px 8px; font-family: var(--f-display); font-weight: 800; font-size: 19px; cursor: pointer; background: var(--cobalt); color: #fff; box-shadow: 0 4px 0 rgba(0,0,0,.18) }
.btn.alt { background: var(--surface); color: var(--ink); border: 2px solid var(--line); box-shadow: none }
.btn.coral { background: var(--coral) }
.btn:active { transform: translateY(2px) }
.traps { display: grid; gap: 10px }
.trap { display: grid; grid-template-columns: 2.4em minmax(0, 1fr) auto; gap: 10px; align-items: center; border: 2px solid var(--line); border-radius: 14px; padding: 10px 12px; background: var(--surface) }
.trap .ltr { font-family: var(--f-display); font-weight: 800; font-size: 22px; text-align: center }
.trap q { display: block; font-style: italic; color: var(--muted); quotes: none }
.trap p { margin: 2px 0 0; font-weight: 700 }
.mcards { display: grid; gap: 10px }
.mcard { display: flex; gap: 12px; align-items: center; background: #fff; color: #1C1C1C; border: 3px solid #4F7FD0; border-radius: 16px; padding: 10px 14px; font-family: var(--f-display); font-weight: 700; font-size: 20px; opacity: 0; transform: translateY(-40px) scale(1.06) }
.mcard.in { opacity: 1; transform: none; transition: transform .35s cubic-bezier(.3,1.6,.5,1), opacity .2s }
.mcard:nth-child(3) { border-color: #E8452C }
.mcard i { width: 30px; height: 30px; border-radius: 50%; background: #3E9A5C; flex: none; display: grid; place-items: center }
.tip { margin-top: 12px; background: #4F7FD0; color: #fff; border-radius: 18px; padding: 14px 18px; display: flex; gap: 14px; align-items: center; opacity: 0; transition: opacity .4s }
.tip.in { opacity: 1 }
.tip small { background: #fff; color: #4F7FD0; font-weight: 700; border-radius: 10px; padding: 2px 10px; font-size: 13px; letter-spacing: .06em; flex: none }
.tip span { font-family: var(--f-display); font-weight: 700; font-size: 22px; line-height: 1.2 }
.checkgrid { display: grid; gap: 8px; font-family: var(--f-display); font-weight: 800; font-size: 26px; font-variant-numeric: tabular-nums }
.checkgrid div { display: flex; gap: 10px; align-items: center; flex-wrap: wrap }
.checkgrid .eq { opacity: 0; transition: opacity .4s }
.checkgrid .eq.in { opacity: 1 }
.lvstars { color: #F5C446; letter-spacing: .02em; -webkit-text-stroke: 0 }
.label .lvstars { font-size: 15px; color: #E9853A }
.lvcard { background: #fff; color: #1C1C1C; border: 3px solid #4F7FD0; border-radius: 16px; padding: 10px 14px; margin-bottom: 10px }
.lvcard small { display: inline-block; background: #4F7FD0; color: #fff; font-weight: 700; border-radius: 10px; padding: 2px 10px; font-size: 13px; letter-spacing: .06em; margin-bottom: 4px }
.lvkey ul { margin: 4px 0 0; padding-left: 1.2em; font-family: var(--f-display); font-weight: 700; font-size: 19px; line-height: 1.35 }
.lvsteps { display: grid; gap: 10px }
.lvstep { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; margin: 0; opacity: .18; transition: opacity .3s, transform .3s }
.lvstep.in { opacity: 1; transform: none }
.lvstep b { font-family: var(--f-display); font-weight: 800; font-size: 14px; letter-spacing: .06em; background: #E9853A; color: #fff; border-radius: 10px; padding: 3px 9px }
.lvstep span, .lvcheck span { font-family: var(--f-display); font-weight: 700; font-size: 20px; line-height: 1.25 }
.lvcheck { border-color: #3E9A5C; display: grid; gap: 2px; opacity: 0; transition: opacity .3s }
.lvcheck small { background: #3E9A5C; justify-self: start }
.lvcheck.in { opacity: 1 }
.lvtrap { grid-template-columns: 2.4em minmax(0, 1fr); opacity: 0; transition: opacity .3s }
.lvtrap.in { opacity: 1 }
.challenge { text-align: center; background: var(--coral); color: #fff; border-radius: 20px; padding: 18px }
.challenge h3 { font-family: var(--f-display); font-weight: 800; font-size: 30px; margin: 0 }
.challenge p { margin: 4px 0 12px }
.challenge .btn { background: #fff; color: #E8452C }
.challenge .btn.ghostbtn { background: transparent; color: #fff; border: 2px solid #fff; box-shadow: none }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 60 }
.vstage { grid-column: 1 / -1; grid-row: 1; padding: 10px }
.vstage video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; background: #000 }
.vstage .vbar { display: flex; justify-content: flex-end; gap: 10px; margin-top: 10px }
.board.vplaying > :not(.vstage):not(.startcover) { display: none }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important } }
.tray { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 14px; padding: 10px 12px; border-radius: 14px; background: rgba(245,196,70,.16); border: 2px dashed #C99A1A }
.tray:empty { display: none }
.traylabel { font-weight: 700; font-size: 18px; flex: 1 1 100% }
.tiles { display: flex; gap: 10px; flex-wrap: wrap }
.tile { font-family: var(--f-display); font-weight: 800; font-size: 22px; min-width: 64px; padding: 6px 16px 4px; border-radius: 12px; border: 3px solid var(--ink); background: var(--surface); cursor: pointer; box-shadow: 0 3px 0 rgba(0,0,0,.15) }
.tile:active { transform: translateY(2px) }
.tile.nope { opacity: .45; animation: none }
.pulse { animation: pulse .8s ease-in-out infinite alternate }
@keyframes pulse { from { box-shadow: 0 0 0 0 rgba(245,196,70,.0), 0 3px 0 rgba(0,0,0,.15) } to { box-shadow: 0 0 0 7px rgba(245,196,70,.85), 0 3px 0 rgba(0,0,0,.15) } }
.dragghost { position: fixed; z-index: 80; pointer-events: none; transform: translate(-50%, -60%) scale(1.15); font-size: 34px; filter: drop-shadow(0 6px 8px rgba(0,0,0,.25)) }
.lifted { opacity: .3 }
.eqline { font-family: var(--f-display); font-weight: 800; font-size: 24px; font-variant-numeric: tabular-nums }

[hidden] { display: none !important }
.benchtop { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap }
.skiplab { font-size: 14px; padding: 4px 12px; min-height: 44px }
.skipped { font-size: 20px; margin: 0 }

/* "On the test paper": handwriting on a sheet of lined paper */
.scrap { text-align: center; color: var(--muted) } .scrap .stuck { margin-top: 10px }
.paper { background: #fff repeating-linear-gradient(#fff 0 33px, #DCE6F5 33px 34px); border: 2px solid #E2D6C6; border-radius: 12px; padding: 14px 18px 18px; display: grid; gap: 10px; color: #1F4FB0; font-family: 'Patrick Hand', 'Comic Sans MS', cursive; font-size: 24px; line-height: 34px }
.paper .pfig { justify-self: center; max-width: 100% } .paper .pfig svg { max-width: 100%; height: auto }
.pwrite { margin: 0; padding: 0; list-style: none } .pwrite li { opacity: 0; transform: translateY(4px); transition: opacity .35s, transform .35s }
.pwrite li.in { opacity: 1; transform: none } .pwrite li.pans.in { display: inline-block; border: 3px solid #1F4FB0; border-radius: 50%; padding: 0 16px; margin-top: 4px }
@media (prefers-color-scheme: dark) { .paper { background: #fff repeating-linear-gradient(#fff 0 33px, #DCE6F5 33px 34px) } }
/* ---------- shared-engine additions ---------- */
.lockmsg { background: var(--surface); border-radius: 18px; padding: 18px 22px; text-align: center; box-shadow: var(--shadow); max-width: 420px }
.lockmsg p { margin: 0 0 12px; font-weight: 700 }
.lockmsg .btn { text-decoration: none; display: inline-block }
#home { text-decoration: none }
.startbtn:disabled { opacity: .5; cursor: default }
/* phones: the cast and speech bubble sit in the page between the options and the solving area, so they never cover a button */
@media (max-width: 860px) {
  .board { grid-template-areas: "q" "opts" "cast" "work"; margin-bottom: 24px }
  .cast { position: static; grid-area: cast; z-index: auto; padding: 0; gap: 6px; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "pip bub kids"; align-items: end; row-gap: 0 }
  .bubble { grid-area: bub; justify-self: stretch; margin: 0 0 8px; font-size: 15px; padding: 6px 10px }
  .bubble[data-side="left"]::after { left: -9px; right: auto; bottom: 12px; transform: rotate(45deg) }
  .bubble[data-side="right"]::after { right: -9px; left: auto; bottom: 12px; transform: rotate(-135deg) }
  .char { height: 58px } .char.kid { height: 50px }
}

/* "On the test paper": handwriting on a sheet of lined paper */
.scrap { text-align: center; color: var(--muted) } .scrap .stuck { margin-top: 10px }
.paper { background: #fff repeating-linear-gradient(#fff 0 33px, #DCE6F5 33px 34px); border: 2px solid #E2D6C6; border-radius: 12px; padding: 14px 18px 18px; display: grid; gap: 10px; color: #1F4FB0; font-family: 'Patrick Hand', 'Comic Sans MS', cursive; font-size: 24px; line-height: 34px }
.paper .pfig { justify-self: center; max-width: 100% } .paper .pfig svg { max-width: 100%; height: auto }
.pwrite { margin: 0; padding: 0; list-style: none } .pwrite li { opacity: 0; transform: translateY(4px); transition: opacity .35s, transform .35s }
.pwrite li.in { opacity: 1; transform: none } .pwrite li.pans.in { display: inline-block; border: 3px solid #1F4FB0; border-radius: 50%; padding: 0 16px; margin-top: 4px }
@media (prefers-color-scheme: dark) { .paper { background: #fff repeating-linear-gradient(#fff 0 33px, #DCE6F5 33px 34px) } }

/* ---- component ra ---- */

/* ---- component wb ---- */
.c-wb .machine { overflow-x: auto }
.c-wb .mrow { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); align-items: center; gap: 3px }
.c-wb .mlabels { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); font-size: 14px; font-weight: 700; color: #6B6158; text-align: center; margin-bottom: 4px }
.c-wb .mlabels span { border-bottom: 2px solid #9A9A9A; padding-bottom: 2px }
.c-wb .mv { aspect-ratio: 1; border: 3px solid #1C1C1C; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; font-size: clamp(10px, 1.9vw, 20px); background: #fff; font-variant-numeric: tabular-nums; border-width: clamp(2px, .4vw, 3px); letter-spacing: -.02em }
.c-wb .mv.empty { border-color: #9A9A9A; color: #9A9A9A }
.c-wb .mv.red { border-color: #E8452C; color: #B5321D }
.c-wb .mv.ok { border-color: #3E9A5C; background: #E3F2E7 }
.c-wb .mo { height: clamp(28px, 5vw, 46px); border: clamp(2px, .4vw, 3px) solid #1C1C1C; display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; font-size: clamp(11px, 2vw, 21px); background: #fff }
.c-wb .mo.slot { border-style: dashed; border-color: #9A9A9A }
.c-wb .mv.pick { cursor: pointer; box-shadow: 0 0 0 4px rgba(245,196,70,.55) }
.c-wb .mv.chosen { background: #E3F2E7; border-color: #3E9A5C; color: #1C1C1C }
.c-wb .mo.red { border-color: #E8452C; color: #B5321D }
.c-wb .mo.next { outline: 4px solid #F5C446; outline-offset: 2px }
.c-wb .arrowline { font-size: 14px; font-weight: 700; color: #6B6158; text-align: right; margin: 6px 0 12px }
.c-wb .arrowline.red { color: #E8452C }
.c-wb .tray { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px }
.c-wb .tray:empty { display: none }
.c-wb .machine .tally { flex-direction: column; align-items: flex-start }
.c-wb .traylabel { font-weight: 700; margin-right: 4px }
.c-wb .tile { font-family: var(--f-display); font-weight: 800; font-size: 22px; min-width: 64px; padding: 6px 14px 4px; border-radius: 12px; border: 3px solid var(--ink); background: var(--surface); cursor: pointer; box-shadow: 0 3px 0 rgba(0,0,0,.15) }
.c-wb .tile.red { border-color: var(--coral); color: var(--coral) }
.c-wb .wbwallet { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 12px; flex: 1 1 260px; min-height: 64px; padding: 8px 14px; border: 3px solid #8A5520; border-radius: 16px; background: #E9C79A }
.c-wb .wbwallet .gv { text-align: left }
.c-wb .wbwl { font-size: 14px; font-weight: 700; color: #6B4A20 }
.c-wb .wbin { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; min-height: 44px; align-items: center }
.c-wb .wbbank { display: flex; flex-wrap: wrap; gap: 8px; align-items: center }
.c-wb .wbcoin { min-width: 52px; min-height: 48px; border-radius: 50%; border: 3px solid #8A6A10; background: #F5C446; font-family: var(--f-display); font-weight: 800; font-size: 16px; cursor: grab; touch-action: none }
.c-wb .wbcoin.c5, .c-wb .wbcoin.c10 { border-radius: 8px; min-width: 66px; background: #E59BC0; border-color: #A44B7A }
.c-wb .wbcoin.c10 { background: #7FB8E8; border-color: #2F6FC7 }
.c-wb .guess { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px }
.c-wb .guess .step { min-width: 48px; min-height: 48px; font-size: 26px; padding: 0 }
.c-wb .guess .gv { font-family: var(--f-display); font-weight: 800; font-size: 30px; min-width: 3.2em; text-align: center }
.c-wb .guess .slider { flex: 1 1 160px; min-height: 44px }
.c-wb .guess #grun { min-height: 48px }
.c-wb .tile:active { transform: translateY(2px) }
/* ---- component wc ---- */
.c-wc .key { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-weight: 700; font-size: 15px; margin-bottom: 10px }
.c-wc .mb { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 3px solid #1C1C1C; font-family: var(--f-display); font-weight: 800; font-size: 16px; line-height: 1 }
.c-wc .mb.gone { border: 3px dashed #C8C8C8; background: transparent }
.c-wc .mbb { padding: 0; border: 0; background: none; cursor: pointer; border-radius: 50% }
.c-wc .mbb:hover .mb { transform: translateY(-3px) }
.c-wc .bag { display: flex; flex-wrap: wrap; gap: 8px; max-width: 420px; padding: 18px 20px; border: 4px solid #1C1C1C; border-radius: 22px 22px 40px 40px; background: #F4F4F4 }
.c-wc .bagrow { display: flex; justify-content: center; margin-bottom: 16px }
.c-wc .slots { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 6px }
.c-wc .slot { width: 46px; height: 58px; border: 3px solid #B8B8B8; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; position: relative }
.c-wc .slot small { font-size: 12px; font-weight: 700; color: #6B6158 }
.c-wc .slot.ring { border-color: #3E9A5C; box-shadow: 0 0 0 3px rgba(62,154,92,.3) }
.c-wc .ways { display: grid; gap: 10px; margin-top: 14px }
.c-wc .way { display: grid; grid-template-columns: 8.5em minmax(0, 1fr); align-items: center; gap: 10px }
.c-wc .btn.small { font-size: 16px; padding: 6px 12px 4px }
.c-wc .bar { font: inherit; color: #1C1C1C; text-align: right; height: 40px; background: #D8D8D8; border: 3px solid #1C1C1C; border-radius: 6px; display: flex; align-items: center; justify-content: flex-end; padding-right: 10px; font-family: var(--f-display); font-weight: 800; font-size: 20px; transition: width .5s; cursor: pointer; min-width: 0 }
.c-wc .bar[style*="width:0%"] { border-width: 0 }
.c-wc .bar.best { background: #E3F2E7; border-color: #3E9A5C }
.c-wc .bar.pickme { outline: 4px solid #F5C446; outline-offset: 3px; animation: nudge 1s ease-in-out infinite alternate }
@keyframes nudge { to { outline-color: rgba(245,196,70,.35) } }
.c-wc .checkline { margin: 4px 0 12px }
/* ---- component pe ---- */
.c-pe .figwrap { overflow-x: auto; display: flex; justify-content: center }
.c-pe .fig { max-width: 100%; height: auto }
.c-pe .fig .grid { stroke: #E2E2E2; stroke-width: 2 }
.c-pe .fig .edge { stroke: #1C1C1C; stroke-width: 5; fill: none; stroke-linecap: round }
.c-pe .fig .edge.tap { stroke-dasharray: 2 0 }
.c-pe .fig .edge.walked { stroke: #4F7FD0; stroke-width: 8 }
.c-pe .fig .edge.cut { stroke: #E8452C; stroke-width: 9 }
.c-pe .fig .hit { stroke: transparent; stroke-width: 60; cursor: pointer }
.c-pe .slider { width: min(100%, 360px); height: 44px; accent-color: #E8452C }
.c-pe .fig .ghost { stroke: #A0A0A0; stroke-width: 3; stroke-dasharray: 8 8; fill: none }
.c-pe .fig .len { font-family: var(--f-display); font-weight: 800; font-size: 24px; fill: #4F7FD0; text-anchor: middle }
.c-pe .fig .note { font-weight: 700; font-size: 15px; fill: #6B6158; text-anchor: middle }
.c-pe .fig .cellfill { fill: #D4D4D4 }
.c-pe .fig .cutcell { fill: #F2C9C0; stroke: #E8452C; stroke-width: 3; cursor: pointer }
.c-pe .fig .big { font-family: var(--f-display); font-weight: 800; font-size: 34px; fill: #1C1C1C; text-anchor: middle }
.c-pe .plaques { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 12px }
.c-pe .plaque { flex: 1 1 180px; border: 4px solid; border-radius: 16px; padding: 8px 14px; display: grid; gap: 2px; background: #fff }
.c-pe .plaque.coral { border-color: #E8452C }
.c-pe .plaque.green { border-color: #3E9A5C }
.c-pe .plaque small { font-weight: 700; letter-spacing: .08em; color: #6B6158 }
.c-pe .plaque b { font-family: var(--f-display); font-size: 28px; font-variant-numeric: tabular-nums }
.c-pe .plaque span { font-weight: 700 }
/* ---- component pa ---- */
.c-pa .figwrap { overflow-x: auto; display: flex; justify-content: center; min-height: 40px }
.c-pa .fig { max-width: 100%; height: auto }
.c-pa .fig .stick { stroke: #C8A165; stroke-width: 8; stroke-linecap: round }
.c-pa .fig .stick.new { stroke: #E8452C }
.c-pa .fig .head { fill: #7A2E1E }
.c-pa .fig .slot { stroke: #C99A1A; stroke-width: 6; stroke-dasharray: 6 8; stroke-linecap: round; animation: dash 1s linear infinite }
@keyframes dash { to { stroke-dashoffset: -28 } }
.c-pa .fig .slothit { stroke: transparent; stroke-width: 44; cursor: pointer }
.c-pa .matchbox { display: inline-flex; gap: 4px; align-items: center; padding: 10px 14px; margin: 8px auto 0; border: 3px solid #B5651D; border-radius: 10px; background: #F5DFB8; cursor: grab; touch-action: none; min-height: 52px }
.c-pa .matchbox b { margin-left: 8px; font-size: 15px }
.c-pa .mstick { display: inline-block; width: 6px; height: 34px; border-radius: 3px; background: #C8A165; border-top: 7px solid #7A2E1E }
.c-pa .mstick.big { height: 48px; width: 8px; transform: rotate(20deg) }
.c-pa .figwrap { flex-direction: column; align-items: center }
.c-pa .ptable { border-collapse: collapse; margin: 12px auto 0; font-variant-numeric: tabular-nums }
.c-pa .ptable th { text-align: right; padding: 4px 10px; font-size: 15px; color: #6B6158 }
.c-pa .ptable td { min-width: 52px; text-align: center; border: 2px solid #E2D6C6; padding: 4px 8px; font-family: var(--f-display); font-weight: 800; font-size: 24px }
.c-pa .ptable .jumps td { border: 0; color: #E8452C; font-size: 18px; transform: translateX(-50%) }
.c-pa .tblwrap { overflow-x: auto }
@media (max-width: 860px) { .c-pa .ptable td { min-width: 38px; font-size: 20px; padding: 3px 4px }
.c-pa .ptable th { font-size: 12px; padding: 3px 6px } }
.c-pa .seq { display: flex; flex-wrap: wrap; gap: 8px; font-variant-numeric: tabular-nums }
.c-pa .sq { display: grid; place-items: center; min-width: 54px; padding: 4px 8px; border: 3px solid #E2D6C6; border-radius: 12px; font-family: var(--f-display); font-weight: 800; font-size: 24px; opacity: .15; transition: opacity .3s }
.c-pa .sq small { font-family: var(--f-body); font-size: 12px; color: #6B6158; font-weight: 700 }
.c-pa .sq.in { opacity: 1 }
.c-pa .sq.hit { border-color: #3E9A5C; background: #E3F2E7 }
.c-pa .sq.over { border-color: #E8452C; background: #FBEBEB }
/* ---- component rr ---- */
.c-rr .bal2 { position: relative; width: 100%; max-width: 600px; margin: 0 auto; padding-top: 34px }
.c-rr .bal2 .sign { position: absolute; top: 0; left: 0; right: 0; margin: 0; text-align: center; font-family: var(--f-display); font-weight: 800; font-size: 22px }
.c-rr .bal2 .sign.lvl { color: #3E9A5C }
.c-rr .bal2 .sign.tip { color: #E8452C }
.c-rr .beam2 { height: 12px; border-radius: 6px; background: #1C1C1C; margin: 0 4%; transition: transform .5s cubic-bezier(.3,1.4,.6,1) }
.c-rr .pivot2 { position: absolute; left: 50%; top: 28px; width: 24px; height: 24px; margin-left: -12px; border-radius: 50%; background: #E8452C; border: 4px solid #fff; box-sizing: border-box }
.c-rr .pivot2.lvl { background: #3E9A5C }
.c-rr .pans2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12%; margin-top: 18px; position: relative; z-index: 1 }
.c-rr .pan2 { position: relative; min-height: 120px; display: flex; flex-direction: column; justify-content: flex-end; transition: transform .5s cubic-bezier(.3,1.4,.6,1) }
.c-rr .pan2 .toks { display: flex; flex-wrap: wrap-reverse; gap: 4px; justify-content: center; align-content: flex-start; padding: 6px 6px 8px; min-height: 56px; background: #F5C446; border: 2px solid #1C1C1C; border-radius: 6px 6px 40px 40px }
.c-rr .tk2 { width: 46px; height: 46px; font-size: 28px; line-height: 1; padding: 0; border-radius: 10px; border: 2px solid #E2D6C6; background: #fff; cursor: grab }
.c-rr .tk2.g0 { background: #DCE8FA; border-color: #4F7FD0 }
.c-rr .tk2.g1 { background: #E3F2E7; border-color: #3E9A5C }
.c-rr .tk2.g2 { background: #FBEFD5; border-color: #C99A1A }
.c-rr .tk2.g3 { background: #F3E3F7; border-color: #9B59B6 }
.c-rr .tk2.left { background: #FBEBEB; border-color: #E8452C; border-width: 3px }
.c-rr .stand2 { width: 26px; height: 60px; margin: -20px auto 0; background: #B08A5C; border-radius: 4px 4px 0 0; position: relative }
.c-rr .stand2::after { content: ""; position: absolute; left: -50px; right: -50px; bottom: -8px; height: 10px; border-radius: 5px; background: #B08A5C }
@media (max-width: 560px) { .c-rr .tk2 { width: 44px; height: 44px; font-size: 26px }
.c-rr .pans2 { gap: 6% } }
.c-rr .table { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; min-height: 58px; padding: 6px 10px; margin-top: 4px; border: 2px dashed #C9B9A3; border-radius: 12px; background: #FBF7F0 }
.c-rr .table small { font-weight: 700; color: #6B6158; margin-right: 4px }
.c-rr .tbtok { width: 46px; height: 46px; font-size: 28px; border-radius: 10px; border: 2px solid #E2D6C6; background: #fff; cursor: grab; padding: 0 }
.c-rr .legend { display: flex; gap: 18px; margin-top: 10px; font-weight: 700; color: #6B6158 }
.c-rr .gnum { font-family: var(--f-display); font-size: 30px; min-width: 40px; text-align: center; align-self: center }
.c-rr .tile { min-height: 48px }
.c-rr .checkgrid small { font-family: var(--f-body); font-size: 15px; color: #6B6158; font-weight: 700 }
/* ---- component ti ---- */
.c-ti .figwrap { overflow-x: auto; display: flex; justify-content: center }
.c-ti .fig { max-width: 100%; height: auto }
.c-ti .fig.tl { touch-action: none; cursor: crosshair }
.c-ti .fig .dragzone { fill: transparent }
.c-ti .fig .overzone { fill: rgba(232,69,44,.25) }
.c-ti .fig .tick.oc { stroke-width: 4 }
.c-ti .fig .mtxt.oc { font-size: 16px; fill: #6B6158 }
.c-ti .fig .dot { fill: #1C1C1C }
.c-ti .fig .dot.cur { fill: #F5C446; stroke: #C99A1A; stroke-width: 4; animation: glow4 .8s ease-in-out infinite alternate }
.c-ti .fig .dot.live { fill: #E8452C }
@keyframes glow4 { to { stroke-width: 9 } }
.c-ti .fig .jump.live, .c-ti .fig .jtxt.live { stroke: #C99A1A }
.c-ti .fig .jtxt.live { fill: #C99A1A; stroke: none }
.c-ti .fig .axis { stroke: #1C1C1C; stroke-width: 4; stroke-linecap: round }
.c-ti .fig .tick { stroke: #1C1C1C; stroke-width: 3 }
.c-ti .fig .mtxt { font-family: var(--f-display); font-weight: 800; font-size: 19px; fill: #1C1C1C; text-anchor: middle }
.c-ti .fig .mtxt.end { fill: #4F7FD0; font-size: 21px }
.c-ti .fig .mtxt.ask { fill: #E8452C; font-size: 26px }
.c-ti .fig .jump { fill: none; stroke: #4F7FD0; stroke-width: 4 }
.c-ti .fig .jump.min, .c-ti .fig .jhead.min { stroke: #E8452C }
.c-ti .fig .jhead { fill: none; stroke: #4F7FD0; stroke-width: 3 }
.c-ti .fig .jtxt { font-family: var(--f-display); font-weight: 800; font-size: 18px; fill: #4F7FD0; text-anchor: middle }
.c-ti .fig .jtxt.min { fill: #E8452C }
/* ---- component fr ---- */
.c-fr .piewrap { display: flex; gap: 18px; align-items: center; justify-content: center; flex-wrap: wrap }
.c-fr .figwrap { display: flex; justify-content: center }
.c-fr .fig { max-width: 100%; height: auto }
.c-fr .fig .slice { fill: #F5C446; stroke: #B5651D; stroke-width: 3 }
.c-fr .fig .slice.tapme { cursor: pointer; animation: glow .8s ease-in-out infinite alternate }
@keyframes glow { to { fill: #FFE08A } }
.c-fr .fig .slice.eat { fill: #D4D4D4; stroke: #9A9A9A }
.c-fr .fig .slice.give { fill: #F2A0A0; stroke: #C0504A }
.c-fr .fig .slice.give2 { fill: #A9D8B4; stroke: #3E9A5C }
.c-fr .fig .stxt { font-family: var(--f-display); font-weight: 800; font-size: 20px; fill: #1C1C1C; text-anchor: middle; pointer-events: none }
.c-fr .fig .slice.p0 { fill: #F8C6C6; stroke: #C0504A }
.c-fr .fig .slice.p1 { fill: #CFE0F7; stroke: #4F7FD0 }
.c-fr .fig .slice.p2 { fill: #D6EFD9; stroke: #3E9A5C }
.c-fr .fig .slice { touch-action: none }
.c-fr .wholeglow { filter: drop-shadow(0 0 0 #E8452C) drop-shadow(0 0 8px rgba(232,69,44,.8)) }
.c-fr .plates { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 12px }
.c-fr .plates.unfair .plate { border-color: #E8452C; animation: shake .4s }
@keyframes shake { 25% { transform: translateX(-5px) } 75% { transform: translateX(5px) } }
.c-fr .plate { min-width: 120px; min-height: 96px; border-radius: 50%; border: 3px solid #C9B9A3; background: #fff; display: grid; place-items: center; padding: 8px 14px; cursor: pointer; gap: 2px }
.c-fr .plate.sel { border-color: #C99A1A; box-shadow: 0 0 0 5px rgba(245,196,70,.6) }
.c-fr .plate b { font-size: 15px }
.c-fr .plate em { font-style: normal; font-family: var(--f-display); font-weight: 800; font-size: 22px }
.c-fr .pw { display: flex; flex-wrap: wrap; gap: 2px; justify-content: center; max-width: 100px }
.c-fr .pw i { width: 12px; height: 12px; background: #F5C446; border: 1.5px solid #B5651D; border-radius: 0 0 12px 0 }
.c-fr .key { display: grid; gap: 8px; font-weight: 700 }
.c-fr .key span { display: flex; gap: 8px; align-items: center }
.c-fr .sw { width: 22px; height: 22px; border-radius: 6px; background: #F5C446; border: 2px solid #B5651D; display: inline-block }
.c-fr .sw.eat { background: #D4D4D4; border-color: #9A9A9A }
.c-fr .sw.give { background: #F2A0A0; border-color: #C0504A }
.c-fr .sw.give2 { background: #A9D8B4; border-color: #3E9A5C }
/* ---- component pv ---- */
.c-pv .hand { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px }
.c-pv .hlabel { font-weight: 700; color: #6B6158; margin-right: 4px }
.c-pv .ncard { width: 58px; height: 74px; border-radius: 12px; border: 3px solid #1C1C1C; background: #fff; font-family: var(--f-display); font-weight: 800; font-size: 34px; cursor: pointer; box-shadow: 0 3px 0 rgba(0,0,0,.15) }
.c-pv .ncard.endok { background: #E3F2E7; border-color: #3E9A5C }
.c-pv .ncard.used { opacity: .25; pointer-events: none }
.c-pv .slots { display: flex; gap: 10px; justify-content: center; margin-bottom: 12px }
.c-pv .slots .slot { width: 64px; height: 80px; font-size: 36px; cursor: pointer; padding: 0; color: #1C1C1C }
.c-pv .slots .slot.bad { border-color: #E8452C; color: #E8452C; background: #FBEBEB }
.c-pv .lamps { display: flex; gap: 14px; justify-content: center; align-items: center; flex-wrap: wrap; min-height: 36px; margin-bottom: 10px; font-weight: 700 }
.c-pv .lamp { display: inline-flex; gap: 6px; align-items: center; color: #6B6158 }
.c-pv .lamp i { width: 20px; height: 20px; border-radius: 50%; background: #D4D4D4; border: 2px solid #9A9A9A }
.c-pv .lamp.on i { background: #3E9A5C; border-color: #2C7044; box-shadow: 0 0 8px #3E9A5C }
.c-pv .lamp.off i { background: #E8452C; border-color: #B5321D; box-shadow: 0 0 8px #E8452C }
.c-pv .lamps .warn { color: #E8452C; flex: 1 1 100%; text-align: center }
.c-pv .hand { justify-content: center }
.c-pv .ncard { touch-action: none }
.c-pv .made { margin-top: 10px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-weight: 700; color: #6B6158 }
.c-pv .rows { display: grid; gap: 12px }
.c-pv .nrow { display: flex; gap: 8px; align-items: center; flex-wrap: wrap }
.c-pv .slot { width: 54px; height: 66px; border: 3px solid #1C1C1C; border-radius: 10px; display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; font-size: 30px; background: #fff }
.c-pv .slot.empty { border-style: dashed; border-color: #9A9A9A }
.c-pv .slot.last { border-color: #3E9A5C; background: #E3F2E7 }
.c-pv .slot.bounce { color: #E8452C; border-color: #E8452C; animation: bounce .6s ease-out }
@keyframes bounce { 0% { transform: translateY(-30px) } 40% { transform: none } 60% { transform: translateX(-8px) } 80% { transform: translateX(8px) } }
.c-pv .eqn { font-family: var(--f-display); font-size: 28px; margin-left: 6px; font-variant-numeric: tabular-nums }
/* ---- component me ---- */
.c-me .figwrap { overflow-x: auto; display: flex; justify-content: center }
.c-me .fig { max-width: 100%; height: auto }
.c-me .fig .jug { fill: #F4F8FC; stroke: #1C1C1C; stroke-width: 4 }
.c-me .fig .water { fill: #9CC7EE; opacity: .85 }
.c-me .fig .flour { fill: #EBDDC3 }
.c-me .fig .merc { fill: #F2A0A0 }
.c-me .fig .mk { stroke: #1C1C1C; stroke-width: 3 }
.c-me .fig .mk.big { stroke-width: 5 }
.c-me .fig .num { font-family: var(--f-display); font-weight: 800; font-size: 22px; text-anchor: end; fill: #1C1C1C }
.c-me .fig .gapt { fill: rgba(245,196,70,.35); stroke: #C99A1A; stroke-width: 2; stroke-dasharray: 5 4; cursor: pointer; animation: glow2 .8s ease-in-out infinite alternate }
@keyframes glow2 { to { fill: rgba(245,196,70,.7) } }
.c-me .fig .gapf { fill: #E3F2E7; stroke: #3E9A5C; stroke-width: 2 }
.c-me .fig .gtx { font-family: var(--f-display); font-weight: 800; font-size: 18px; text-anchor: middle; fill: #3E9A5C }
.c-me .fig .arc { fill: none; stroke: #E8452C; stroke-width: 3 }
.c-me .fig .atx { font-family: var(--f-display); font-weight: 800; font-size: 16px; fill: #E8452C }
.c-me .fig .vtx { font-family: var(--f-display); font-weight: 800; font-size: 18px; fill: #4F7FD0 }
.c-me .fig .glab { font-family: var(--f-display); font-weight: 800; font-size: 17px; text-anchor: start; fill: #4F7FD0 }
.c-me .fig .glab.bad { fill: #E8452C; font-size: 20px }
.c-me .fig .glab.ok { fill: #3E9A5C; font-size: 22px }
.c-me .mesvg { touch-action: none }
.c-me .fig .was { stroke: #4F7FD0; stroke-width: 4; stroke-dasharray: 8 5 }
.c-me .fig .wastx { font-family: var(--f-display); font-weight: 800; font-size: 16px; text-anchor: end; fill: #4F7FD0 }
.c-me .fig .ptr { cursor: grab }
.c-me .fig .ptrh { fill: #E8452C }
.c-me .fig .ptrl { stroke: #E8452C; stroke-width: 3; stroke-dasharray: 6 4 }
.c-me .fig .ptrb { fill: #fff; stroke: #E8452C; stroke-width: 3 }
.c-me .fig .ptrt { font-family: var(--f-display); font-weight: 800; font-size: 18px; text-anchor: middle; fill: #1C1C1C }
.c-me .fig .ptrhit { fill: transparent }
.c-me .fig .tapmk { fill: rgba(245,196,70,.6); stroke: #C99A1A; stroke-width: 3; cursor: pointer; animation: glow3 .8s ease-in-out infinite alternate }
@keyframes glow3 { to { r: 17 } }
/* ---- component da ---- */
.c-da .mini { display: grid; gap: 0; font-size: 16px; margin: 6px 0; border: 2px solid #1C1C1C; border-radius: 8px; padding: 4px 10px; max-width: 460px; background: #fff }
.c-da .mini .mrow { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); align-items: center; gap: 8px; padding: 3px 0; border-bottom: 1px solid #E4DCCF }
.c-da .mini .mrow:last-child { border-bottom: 0 }
.c-da .mini .mst { max-width: 100%; height: 22px; width: auto }
.c-da .mini .ms { fill: #1C1C1C }
.c-da .mini .mso { fill: none; stroke: #1C1C1C; stroke-width: 1.2 }
.c-da .mini span { display: flex; gap: 6px; align-items: baseline }
.c-da .mini i { font-style: normal; color: #C99A1A; letter-spacing: 1px; white-space: nowrap }
.c-da .pg { display: grid; gap: 8px }
.c-da .pgrow { display: grid; grid-template-columns: 8.5em minmax(0, 1fr) 3em; align-items: center; gap: 8px; padding: 4px 8px; border-radius: 12px; transition: opacity .3s }
.c-da .pgrow.on { background: rgba(245,196,70,.18) }
.c-da .pgrow.dim { opacity: .35 }
.c-da .pgl { font-weight: 700; font-size: 17px }
.c-da .pgs { display: flex; flex-wrap: wrap; gap: 4px }
.c-da .pgv { font-family: var(--f-display); font-weight: 800; font-size: 24px; color: #3E9A5C; text-align: right }
.c-da .st { width: 40px; height: 40px; font-size: 34px; line-height: 1; padding: 0; border: 0; background: none; color: #F5C446; cursor: pointer; -webkit-text-stroke: 1.5px #B88A12; border-radius: 8px }
.c-da .st.half { width: 20px; overflow: hidden; text-align: left; justify-content: flex-start; display: inline-flex }
.c-da .st.done { color: #3E9A5C; -webkit-text-stroke: 1.5px #2C7044 }
.c-da .st.pulse { box-shadow: 0 0 0 4px rgba(245,196,70,.85) }
.c-da .pgkey { margin-top: 6px; font-weight: 700; padding: 6px 12px; border: 2px dashed #9A9A9A; border-radius: 10px; justify-self: start }
.c-da .pgkey.on { border-color: #E8452C; color: #E8452C }
.c-da .keydrag { display: inline-flex; align-items: center; min-height: 48px; margin-top: 12px; padding: 8px 16px; border: 3px solid #E8452C; border-radius: 12px; background: #FFF4E8; font-weight: 800; font-size: 18px; color: #B5321D; cursor: grab; box-shadow: 0 3px 0 rgba(0,0,0,.15) }
.c-da .keydrag.lifted { opacity: .4 }
@media (max-width: 860px) { .c-da .pgrow { grid-template-columns: minmax(0, 1fr) 2.6em; row-gap: 2px }
.c-da .pgl { grid-column: 1 / -1 }
.c-da .st { width: 27px; height: 30px; font-size: 24px }
.c-da .st.half { width: 13px }
.c-da .pgs { gap: 2px } }
/* ---- component ch ---- */
.c-ch .mini { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 14px; font-size: 17px }
.c-ch .mini em { font-style: normal; font-weight: 700 }
.c-ch .mini .rd { color: #D2412A }
.c-ch .mini .bl { color: #3D6FC4 }
.c-ch .mini .gr { color: #2C7A44 }
.c-ch .bagpick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px }
.c-ch .bagbtn { min-height: 64px; border-radius: 14px 14px 26px 26px; border: 3px solid #C9B9A3; background: #FBF7F0; cursor: pointer; display: grid; place-items: center; padding: 6px }
.c-ch .bagbtn.sel { border-color: #C99A1A; box-shadow: 0 0 0 4px rgba(245,196,70,.6) }
.c-ch .bagbtn b { font-family: var(--f-display); font-size: 18px }
.c-ch .bagbtn em { font-style: normal; font-weight: 700 }
.c-ch .bagbtn .rd { color: #D2412A }
.c-ch .bagbtn .bl { color: #3D6FC4 }
.c-ch .bagbtn .gr { color: #2C7A44 }
.c-ch .draws i.gr { background: #3E9A5C }
.c-ch .draws { display: grid; grid-template-columns: repeat(25, 1fr); gap: 3px; min-height: 40px; margin: 12px 0 }
.c-ch .draws i { aspect-ratio: 1; border-radius: 3px; animation: drop .2s ease-out }
.c-ch .draws i.rd { background: #E8452C }
.c-ch .draws i.bl { background: #4F7FD0 }
.c-ch .results { display: grid; gap: 6px }
.c-ch .res { display: grid; grid-template-columns: 4.5em minmax(0, 1fr) 9.5em; gap: 8px; align-items: center; font-weight: 700 }
.c-ch .res .bar { height: 18px; background: #EFE7DA; border-radius: 9px; overflow: hidden }
.c-ch .res .bar i { display: block; height: 100%; background: #E8452C; transition: width .6s }
.c-ch .res em { font-style: normal; font-size: 15px; color: #6B6158 }
@media (max-width: 860px) { .c-ch .bagpick { grid-template-columns: repeat(2, minmax(0, 1fr)) }
.c-ch .res { grid-template-columns: 4em minmax(0, 1fr) 8.2em }
.c-ch .draws { grid-template-columns: repeat(10, 1fr) } }
.c-ch .bags { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px }
.c-ch .bag { border: 3px solid #C9B9A3; border-radius: 16px 16px 28px 28px; padding: 10px 12px; background: #FBF7F0; transition: border-color .3s, background .3s }
.c-ch .bag.win { border-color: #3E9A5C; background: #EEF8F0 }
.c-ch .bag b { font-family: var(--f-display); font-size: 20px }
.c-ch .loose, .c-ch .pairs { display: flex; flex-wrap: wrap; gap: 4px; align-items: flex-end; min-height: 40px; margin-top: 6px }
.c-ch .col { display: flex; flex-direction: column-reverse; gap: 3px; padding: 3px; border: 2px solid #E2D6C6; border-radius: 8px; animation: drop .3s ease-out }
.c-ch .col.left { border-style: dashed; flex-direction: column; align-items: center }
.c-ch .col small { font-size: 11px; color: #6B6158; font-weight: 700 }
.c-ch .tk { display: block; width: 22px; height: 14px; border-radius: 3px }
.c-ch .tk.rd { background: #E8452C }
.c-ch .tk.bl { background: #4F7FD0 }
.c-ch .tk.gr { background: #3E9A5C }
.c-ch .per { margin: 6px 0 0; font-weight: 700 }
.c-ch .oo { margin: 4px 0 0; font-family: var(--f-display); font-weight: 800; font-size: 18px; color: #3E9A5C }
.c-ch .checkgrid.small { font-size: 20px }
.c-ch .checkgrid .best { color: #3E9A5C }
@media (max-width: 860px) { .c-ch .bags { grid-template-columns: 1fr 1fr; gap: 8px }
.c-ch .tk { width: 16px; height: 11px }
.c-ch .mini { grid-template-columns: 1fr } }
/* ---- component sd ---- */
.c-sd .sdb { display: grid; gap: 14px; padding: 6px 4px }
.c-sd .sdrow { display: grid; grid-template-columns: 4.2em minmax(0, 1fr); align-items: center; gap: 10px }
.c-sd .sdn { font-weight: 800; font-size: 17px }
.c-sd .sdtrack { position: relative; display: flex; align-items: stretch; height: 48px; touch-action: none }
.c-sd .sdbar { display: grid; place-items: center; border: 3px solid #1C1C1C; border-radius: 10px 0 0 10px; font-family: var(--f-display); font-weight: 800; font-size: 22px; min-width: 40px }
.c-sd .sdbar.sm { background: #F7C9C0; border-radius: 10px }
.c-sd .sdbar.bg { background: #F6D7A9 }
.c-sd .sdex { display: grid; place-items: center; border: 3px dashed #1C1C1C; border-left: 0; border-radius: 0 10px 10px 0; font-family: var(--f-display); font-weight: 800; font-size: 20px; background: #FFF4E0; cursor: grab; min-width: 40px; touch-action: none }
.c-sd .sdpulse { animation: sdpulse 1.1s infinite }
@keyframes sdpulse { 50% { box-shadow: 0 0 0 6px rgba(62,154,92,.35) } }
.c-sd .sdex.ok { background: #E3F2E7; border-color: #3E9A5C; color: #2C7044 }
.c-sd .sdex.bad { background: #FBEBEB; border-color: #E8452C; color: #B5321D }
.c-sd .sdex.gone { border-left: 3px dashed #9A9A9A; border-color: #9A9A9A; color: #6B6158; background: #F0EBE4; height: 40px; border-radius: 10px; cursor: default }
.c-sd .sdhandle { width: 44px; height: 56px; margin: -4px 0 0 -6px; border-radius: 12px; background: #4F7FD0; border: 3px solid #1C1C1C; cursor: ew-resize; align-self: center; touch-action: none; box-shadow: 0 3px 0 rgba(0,0,0,.2) }
.c-sd .sdhandle::after { content: '⇆'; color: #fff; display: grid; place-items: center; height: 100%; font-size: 22px }
.c-sd .sdbin { display: flex; align-items: center; gap: 10px; color: #6B6158; font-weight: 700; padding-left: calc(4.2em + 10px) }
.c-sd .sdtot { font-size: 18px; color: #6B6158; padding-left: calc(4.2em + 10px) }
.c-sd .sdtot b { color: #1C1C1C; font-family: var(--f-display); font-size: 22px }
.c-sd .sdstep { min-width: 52px; min-height: 48px; font-size: 22px }
/* ---- component ca ---- */
.c-ca .cawrap { display: grid; justify-items: center; gap: 6px }
.c-ca .wheel { max-width: 100%; height: auto; touch-action: none }
.c-ca .wheel .seg { fill: #FFF8EC; stroke: #1C1C1C; stroke-width: 2.5 }
.c-ca .wheel .seg.today { fill: #F6D7A9 }
.c-ca .wheel .seg.cur { fill: #CDEBD5 }
.c-ca .wheel .dl { font-family: var(--f-display); font-weight: 800; font-size: 19px; text-anchor: middle; fill: #1C1C1C; pointer-events: none }
.c-ca .wheel .hand { stroke: #E8452C; stroke-width: 6; stroke-linecap: round }
.c-ca .wheel .knob { fill: #E8452C; stroke: #1C1C1C; stroke-width: 3; cursor: grab }
.c-ca .wheel .hub { fill: #fff; stroke: #1C1C1C; stroke-width: 3 }
.c-ca .wheel .cnt { font-family: var(--f-display); font-weight: 800; font-size: 26px; text-anchor: middle; fill: #1C1C1C }
.c-ca .wheel .cnt.over { fill: #E8452C }
.c-ca .wheel .cnt.hit { fill: #3E9A5C }
.c-ca .calog { font-size: 18px; min-height: 30px }
.c-ca .calog b { font-family: var(--f-display); font-size: 26px }
.c-ca .cab { min-height: 48px; font-size: 18px }
.c-ca .checkgrid.small { font-size: 20px }
/* ---- component sy ---- */
.c-sy .syq { display: block; margin: 6px 0 }
.c-sy .syq svg { max-height: 170px; width: auto; pointer-events: none }
.c-sy .sywrap { display: grid; justify-items: center; gap: 8px }
.c-sy .sygrid { max-width: 100%; height: auto }
.c-sy .sygrid .cell { fill: #fff; stroke: #B9AC9C; stroke-width: 2 }
.c-sy .sygrid .cell.right { cursor: pointer }
.c-sy .sygrid .cell.on { fill: #6E96EB }
.c-sy .sygrid .cell.left.on { fill: #4F7FD0 }
.c-sy .sygrid .cell.pre.on { fill: #4F7FD0 }
.c-sy .sygrid .cell.fix.on { fill: #4F7FD0 }
.c-sy .sygrid .cell.ok { stroke: #3E9A5C; stroke-width: 5 }
.c-sy .sygrid .cell.miss { stroke: #E8452C; stroke-width: 3 }
.c-sy .sygrid .ghost { fill: none; stroke: #E8452C; stroke-width: 3; stroke-dasharray: 6 5; pointer-events: none }
.c-sy .sygrid .xx { stroke: #E8452C; stroke-width: 5; stroke-linecap: round; pointer-events: none }
.c-sy .sygrid .mirror { stroke: #1C1C1C; stroke-width: 4; stroke-dasharray: 10 8 }
.c-sy .checkgrid.small { font-size: 20px }
/* ---- component av ---- */
.c-av .avwrap { position: relative; padding-top: 8px }
.c-av .avrow { display: flex; justify-content: center; gap: 14px; align-items: flex-end }
.c-av .avc { display: grid; justify-items: center; gap: 2px; font-family: var(--f-display); font-weight: 800; font-size: 22px }
.c-av .avc small { font-family: var(--f-body); font-size: 13px; color: #6B6158 }
.c-av .avt { width: 58px; display: flex; flex-direction: column-reverse; align-items: center; gap: 3px; border-bottom: 4px solid #1C1C1C; padding-bottom: 2px; touch-action: none }
.c-av .avt.lvl .avb { background: #7BC98F; border-color: #2C7044 }
.c-av .avb { display: block; width: 46px; border-radius: 5px; background: #F5C446; border: 2px solid #B88A12 }
.c-av .avb.tp { cursor: grab; touch-action: none }
.c-av .avb.nb { background: #F2A0A0; border-color: #B5321D }
.c-av .avb.ghostb { width: 46px; height: 22px }
.c-av .avt { position: relative }
.c-av .avl { position: absolute; left: -9px; right: -9px; border-top: 3px dashed #E8452C; pointer-events: none }
.c-av .avl span { position: absolute; left: 100%; top: -14px; margin-left: 6px; white-space: nowrap; background: #E8452C; color: #fff; font-style: normal; font-weight: 700; font-size: 13px; padding: 2px 8px; border-radius: 99px }
.c-av #boxw { display: flex; justify-content: center; gap: 12px; align-items: center; margin-top: 14px; flex-wrap: wrap }
.c-av .avbox { display: inline-flex; gap: 4px; align-items: center; padding: 10px 14px; border: 3px solid #B88A12; border-radius: 12px; background: #FFF4D6; cursor: grab; touch-action: none; min-height: 52px }
.c-av .avbox .avb { width: 22px; height: 22px }
.c-av .avbox b { margin-left: 6px; font-size: 15px }
.c-av .avtake { min-height: 48px }
.c-av .avtl { font-family: var(--f-body); font-size: 17px; font-weight: 700 }
@media (max-width: 860px) { .c-av .avrow { gap: 8px }
.c-av .avt { width: 48px }
.c-av .avb { width: 38px } }
/* ---- component cu ---- */
.c-cu .qfig { display: block; margin: 6px 0; max-height: 240px; width: auto }
.c-cu .cuwrap { display: grid; justify-items: center; gap: 6px }
.c-cu .cuwrap #fig { user-select: none; -webkit-user-select: none }
.c-cu .iso { max-width: 100%; height: auto }
.c-cu .cuiso .f { stroke: #1C1C1C; stroke-width: 2; stroke-linejoin: round }
.c-cu .cuiso .top { fill: #FFF3D2 }
.c-cu .cuiso .front { fill: #F5C446 }
.c-cu .cuiso .right { fill: #D9A21E }
.c-cu .cuiso .cube { cursor: pointer }
.c-cu .qfig .cube { cursor: default }
.c-cu .cuiso .got .top { fill: #CFE0FF }
.c-cu .cuiso .got .front { fill: #6E96EB }
.c-cu .cuiso .got .right { fill: #4F7FD0 }
.c-cu .cuiso .miss .top { fill: #FFD9C9 }
.c-cu .cuiso .miss .front { fill: #F2885F }
.c-cu .cuiso .miss .right { fill: #D9643A }
.c-cu .cuiso .miss { animation: cupulse 1.2s ease-in-out infinite }
@keyframes cupulse { 50% { opacity: .55 } }
@media (prefers-reduced-motion: reduce) { .c-cu .cuiso .miss { animation: none } }
.c-cu .cuiso .cl { font-family: var(--f-display); font-weight: 800; font-size: 20px; text-anchor: middle; fill: #1C1C1C; pointer-events: none }
.c-cu .cub { min-height: 48px; font-size: 18px }
.c-cu .checkgrid.small { font-size: 20px }
/* ---- component vw ---- */
.c-vw .qfig { display: block; margin: 6px 0; max-height: 210px; width: auto }
.c-vw .vwwrap { display: grid; justify-items: center; gap: 8px }
.c-vw .vwrow { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; justify-content: center }
.c-vw .iso { max-width: 100%; height: auto }
.c-vw .vwiso .f { stroke: #1C1C1C; stroke-width: 2; stroke-linejoin: round }
.c-vw .vwiso .top { fill: #FFF3D2 }
.c-vw .vwiso .front { fill: #F5C446 }
.c-vw .vwiso .right { fill: #D9A21E }
.c-vw .vwiso .cube { cursor: default }
.c-vw .cam rect { fill: #3B4A5E; stroke: #1C1C1C; stroke-width: 2 }
.c-vw .cam .lens { fill: #9CC3F5; stroke: #1C1C1C; stroke-width: 2.5 }
.c-vw .turnray { fill: none; stroke: #E8452C; stroke-width: 6; stroke-linecap: round }
.c-vw .turnlab { font-family: var(--f-display); font-weight: 800; font-size: 16px; fill: #E8452C; text-anchor: end }
.c-vw .camray { stroke: #3B4A5E; stroke-width: 7; stroke-dasharray: 10 6 }
.c-vw .cam text { font-family: var(--f-display); font-weight: 800; font-size: 16px; text-anchor: middle; fill: #3B4A5E }
.c-vw .vwgrid { max-width: 100%; height: auto }
.c-vw .vwgrid .cell { fill: #fff; stroke: #B9AC9C; stroke-width: 2; cursor: pointer }
.c-vw .vwgrid .cell.on { fill: #6E96EB; stroke: #1C1C1C }
.c-vw .vwgrid .cell.ok { stroke: #3E9A5C; stroke-width: 5 }
.c-vw .vwgrid .cell.miss { stroke: #E8452C; stroke-width: 3 }
.c-vw .vwgrid .ghost { fill: none; stroke: #E8452C; stroke-width: 3; stroke-dasharray: 6 5; pointer-events: none }
.c-vw .vwgrid .xx { stroke: #E8452C; stroke-width: 5; stroke-linecap: round; pointer-events: none }
.c-vw .vwgrid .base { stroke: #1C1C1C; stroke-width: 4 }
.c-vw .vwgrid .gl { font-family: var(--f-body); font-weight: 700; font-size: 15px; fill: #6B6158 }
.c-vw .vwpic rect { fill: #6E96EB; stroke: #1C1C1C; stroke-width: 2 }
.c-vw .vwpic line { stroke: #1C1C1C; stroke-width: 3 }
.c-vw .opt .vwpic { display: block; height: 58px; width: auto; max-width: 100% }
.c-vw .tile .vwpic { height: 44px; width: auto; vertical-align: middle; margin-left: 6px }
.c-vw .tile:has(.vwpic) { display: inline-flex; align-items: center; min-height: 64px }
.c-vw .vwshot { padding: 10px; border: 3px solid #3B4A5E; border-radius: 10px; background: #fff }
.c-vw .checkgrid.small { font-size: 20px }
/* ---- component nt ---- */
.c-nt .ntwrap { display: grid; justify-items: center; gap: 8px }
.c-nt .ntstage { position: relative; width: 100%; perspective: 1100px; touch-action: none; cursor: grab; user-select: none }
.c-nt .ntcube { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; transition: transform .5s }
.c-nt .ntcube.drag { transition: none }
.c-nt .ntf { position: absolute; box-sizing: border-box; border: 3px solid #1C1C1C; transform-style: preserve-3d; transition: transform .6s ease; cursor: pointer; display: grid; place-items: center }
.c-nt .ntf > span { font-family: var(--f-display); font-weight: 800; font-size: 16px; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.45); pointer-events: none }
.c-nt .ntf.glow { box-shadow: inset 0 0 0 6px #fff, 0 0 0 4px #1C1C1C }
.c-nt .ntf.glow2 { box-shadow: inset 0 0 0 6px #fff }
.c-nt .ntf.touch { outline: 5px dashed #fff; outline-offset: -12px }
@media (prefers-reduced-motion: reduce) { .c-nt .ntf, .c-nt .ntcube { transition: none } }
.c-nt .story .ntflat { display: block; margin: 6px 0 }
.c-nt .ntcube.dice .ntf.glow2 { box-shadow: inset 0 0 0 7px #3E9A5C }
.c-nt .ntcube.dice .ntf.glow { box-shadow: inset 0 0 0 7px #F5C446, 0 0 0 4px #1C1C1C }
.c-nt .ntcube.dice .ntf.touch { outline-color: #E8452C }
.c-nt .ntflat text.dn { fill: #1C1C1C; font-size: 24px }
.c-nt .ntf > span.dn { color: #1C1C1C; text-shadow: none; font-size: 30px }
.c-nt .ntflat rect { stroke: #1C1C1C; stroke-width: 3 }
.c-nt .ntflat text { font-family: var(--f-display); font-weight: 800; font-size: 13px; fill: #fff; text-anchor: middle }
.c-nt .checkgrid.small { font-size: 20px }
/* ---- component pc ---- */
.c-pc .pcwrap { display: grid; justify-items: center; gap: 8px }
.c-pc .pcwrap #fig { user-select: none; -webkit-user-select: none }
.c-pc /* a mouse drag must not select text: a later drag would start a native drag and cancel the turn */
.iso { max-width: 100%; height: auto }
.c-pc .pciso .f { stroke: #1C1C1C; stroke-width: 1.6; stroke-linejoin: round }
.c-pc .pciso .top { fill: #FFFFFF }
.c-pc .pciso .front { fill: #ECE6DC }
.c-pc .pciso .right { fill: #D8CFC2 }
.c-pc .pciso .cube { cursor: pointer }
.c-pc .pciso .star { fill: #FFD23F; stroke: #1C1C1C; stroke-width: 1.5; pointer-events: none }
.c-pc .pciso .f { stroke: #1C1C1C; stroke-width: 1.6; stroke-linejoin: round }
.c-pc .pciso .m3 .f { stroke: #B5321D; stroke-width: 3 }
.c-pc .pciso .m2 .f { stroke: #2C7044; stroke-width: 3 }
.c-pc .pciso .m1 .f { stroke: #8A6A10; stroke-width: 3 }
.c-pc .pciso .mf .f { stroke: #3E9A5C; stroke-width: 4 }
.c-pc .pciso .cl { font-family: var(--f-display); font-weight: 800; font-size: 17px; text-anchor: middle; fill: #1C1C1C; pointer-events: none; paint-order: stroke; stroke: #fff; stroke-width: 4 }
.c-pc .pcside:empty { display: none }
.c-pc .pcpick { display: grid; justify-items: center; gap: 6px; padding: 10px 14px; border: 3px solid #1C1C1C; border-radius: 12px; background: #fff; font-size: 16px }
.c-pc .pcnet rect { stroke: #1C1C1C; stroke-width: 2.5 }
.c-pc .pcb { min-height: 48px; font-size: 18px }
.c-pc .checkgrid.small { font-size: 20px }
/* ---- component ar ---- */
.c-ar .arwrap { display: grid; justify-items: center; gap: 6px }
.c-ar .argrid { max-width: 100%; height: auto }
.c-ar .argrid .yes { fill: #A8D8A0; stroke: #6FAE69; stroke-width: 1 }
.c-ar .argrid .no { fill: none; stroke: #E4DCCF; stroke-width: 1; stroke-dasharray: 3 3 }
.c-ar .argrid .gh { fill: #FBE3DD; stroke: #E8A090; stroke-width: 1 }
.c-ar .argrid .ghostbox { fill: none; stroke: #E8452C; stroke-width: 4; stroke-dasharray: 9 6 }
.c-ar .argrid .edge { fill: none; stroke: #1C1C1C; stroke-width: 4; stroke-linejoin: round }
.c-ar .argrid .sl { font-family: var(--f-display); font-weight: 800; fill: #1C1C1C }
.c-ar .argrid .pc { fill: transparent; stroke: #1C1C1C; stroke-width: 3; cursor: pointer }
.c-ar .argrid .pc.p0 { fill: rgba(79,127,208,.30) }
.c-ar .argrid .pc.p1 { fill: rgba(245,196,70,.40) }
.c-ar .argrid .pc.done { stroke-width: 4 }
.c-ar .argrid .pl { font-family: var(--f-display); font-weight: 800; font-size: 20px; text-anchor: middle; fill: #1C1C1C; pointer-events: none; paint-order: stroke; stroke: #fff; stroke-width: 5 }
.c-ar .argrid .pl.red { fill: #B5321D }
.c-ar .argrid .cut { cursor: pointer }
.c-ar .argrid .cut .hit { stroke: transparent; stroke-width: 34 }
.c-ar .argrid .cut .dash { stroke: #4F7FD0; stroke-width: 4; stroke-dasharray: 10 7 }
.c-ar .argrid .cut:hover .dash { stroke-width: 6 }
.c-ar .argrid .cut.bad .dash { stroke: #E8452C }
.c-ar .argrid .scis { fill: #fff; stroke: #4F7FD0; stroke-width: 3 }
.c-ar .argrid .sci { font-size: 15px; text-anchor: middle; fill: #4F7FD0; pointer-events: none }
.c-ar .qfig { display: block; margin: 6px 0; max-height: 200px; width: auto }
.c-ar .checkgrid.small { font-size: 20px }
/* ---- component sc ---- */
.c-sc .scwrap { display: grid; justify-items: center; gap: 8px }
.c-sc .scfig { max-width: 100%; height: auto }
.c-sc .scfig .out { fill: none; stroke: #1C1C1C; stroke-width: 4; stroke-linejoin: round }
.c-sc .scfig .ln { stroke: #1C1C1C; stroke-width: 3 }
.c-sc .scfig .got { fill: rgba(79,127,208,.10); stroke: none }
.c-sc .scfig .sel { fill: rgba(245,196,70,.55); stroke: #C99A1A; stroke-width: 4 }
.c-sc .scfig .pt { cursor: pointer }
.c-sc .scfig .pt .hit { fill: transparent }
.c-sc .scfig .pt .dot { fill: #fff; stroke: #1C1C1C; stroke-width: 3 }
.c-sc .scfig .pt.on .dot { fill: #E8452C }
.c-sc .scfig .pt:hover .dot { fill: #FFD9C9 }
.c-sc .sclist { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; min-height: 30px; max-width: 520px }
.c-sc .scrow { flex: 1 1 100%; display: flex; gap: 6px; align-items: center; font-size: 17px }
.c-sc .scchip { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 14px; font-weight: 700; color: #fff; background: #4F7FD0 }
.c-sc .scchip.s2 { background: #3E9A5C }
.c-sc .scchip.s3 { background: #C99A1A }
.c-sc .scchip.s4 { background: #9B6BD3 }
.c-sc .qfig { display: block; margin: 6px 0; max-height: 170px; width: auto }
.c-sc .checkgrid.small { font-size: 20px }
/* ---- component lc ---- */
.c-lc .lcwrap { display: grid; justify-items: center; gap: 6px }
.c-lc .lcline { max-width: 100%; height: auto }
.c-lc .lcline .track { stroke-width: 6; stroke-linecap: round }
.c-lc .lcline .track.red { stroke: #F2B5A8 }
.c-lc .lcline .track.blue { stroke: #B9CCF0 }
.c-lc .lcline .tk { stroke: #8A7F72; stroke-width: 1.5 }
.c-lc .lcline .ln { font-family: var(--f-display); font-weight: 800; font-size: 17px }
.c-lc .lcline .ln.red { fill: #B5321D }
.c-lc .lcline .ln.blue { fill: #2F5FB0 }
.c-lc .lcline .bus { stroke: #1C1C1C; stroke-width: 2.5 }
.c-lc .lcline .bus.red { fill: #E8452C }
.c-lc .lcline .bus.blue { fill: #4F7FD0 }
.c-lc .lcline .bt { font-family: var(--f-display); font-weight: 800; font-size: 13px; text-anchor: middle; fill: #1C1C1C }
.c-lc .lcline .meet { stroke: #3E9A5C; stroke-width: 5; stroke-dasharray: 8 5 }
.c-lc .lcline .mt { font-family: var(--f-display); font-weight: 800; font-size: 18px; fill: #3E9A5C; text-anchor: middle }
.c-lc .lclist { font-size: 17px; display: grid; gap: 2px; justify-items: start }
.c-lc .lclist .red { color: #B5321D }
.c-lc .lclist .blue { color: #2F5FB0 }
.c-lc .lcline .lead { fill: none; stroke-width: 3; stroke-dasharray: 4 3; cursor: grab }
.c-lc .lcline .lead.red, .c-lc .lcline .leadarr.red { stroke: #E8452C }
.c-lc .lcline .lead.blue, .c-lc .lcline .leadarr.blue { stroke: #4F7FD0 }
.c-lc .lcline .leadarr { fill: none; stroke-width: 3; stroke-linecap: round }
.c-lc .lcline .ghoststop { fill: none; stroke-width: 2; stroke-dasharray: 3 3; opacity: .7 }
.c-lc .lcline .ghoststop.red { stroke: #E8452C }
.c-lc .lcline .ghoststop.blue { stroke: #4F7FD0 }
.c-lc .lcb { min-height: 48px; font-size: 18px }
.c-lc .lcb.red { background: #E8452C }
.c-lc .lcb.blue { background: #4F7FD0 }
.c-lc .checkgrid.small { font-size: 20px }
/* ---- component mo ---- */
.c-mo .mowrap { display: grid; gap: 10px }
.c-mo .moshelf { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center }
.c-mo .mocard { display: grid; justify-items: center; gap: 2px; width: 118px; min-height: 96px; padding: 8px; border: 3px solid #1C1C1C; border-radius: 12px; background: #fff; cursor: pointer; font-family: var(--f-body) }
.c-mo .mocard svg { display: block }
.c-mo .mocard b { font-size: 15px }
.c-mo .mocard span { font-family: var(--f-display); font-weight: 800; font-size: 19px }
.c-mo .mobag { border: 3px dashed #B9AC9C; border-radius: 14px; padding: 10px; min-height: 70px }
.c-mo .molab { font-weight: 700 }
.c-mo .molab small { font-weight: 400; color: #6B6158 }
.c-mo .moitems, .c-mo .mochange { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; min-height: 44px; align-items: center }
.c-mo .moin { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 4px 12px; border: 3px solid; border-radius: 99px; background: #fff; font-size: 15px; cursor: pointer }
.c-mo .motill { display: grid; justify-items: center; gap: 6px }
.c-mo .mocount { font-family: var(--f-display); font-weight: 800; font-size: 34px }
.c-mo .mocount small { font-size: 18px; color: #6B6158 }
.c-mo .mocount.over { color: #E8452C }
.c-mo .mocount.hit { color: #3E9A5C }
.c-mo .coin { min-width: 52px; min-height: 52px; border-radius: 50%; border: 3px solid #8A6A10; background: #F5C446; font-family: var(--f-display); font-weight: 800; font-size: 16px; cursor: pointer }
.c-mo .coin.c5, .c-mo .coin.c10, .c-mo .coin.c20, .c-mo .coin.c50 { background: #DADADA; border-color: #7A7A7A }
.c-mo .coin.c500 { border-radius: 8px; min-width: 70px; background: #E59BC0; border-color: #A44B7A }
/* ---- component mp ---- */
.c-mp .mpwrap { display: grid; justify-items: center; gap: 8px }
.c-mp .mpfig { max-width: 100%; height: auto }
.c-mp .mpfig .mpln { stroke: #B7CBA4; stroke-width: 1.5 }
.c-mp .mpfig .mplab { text-anchor: middle; font-family: var(--f-body); font-weight: 700; fill: #1C1C1C }
.c-mp .mpfig .mpn { text-anchor: middle; font-family: var(--f-display); font-weight: 800; font-size: 16px }
.c-mp .mpfig .mptrail { stroke: #4F7FD0; stroke-width: 6; stroke-linecap: round; stroke-dasharray: 2 10 }
.c-mp .mpfig .mpbad { fill: rgba(232,69,44,.25); stroke: #E8452C; stroke-width: 3 }
.c-mp .mpfig .mpdan { cursor: grab }
.c-mp .mpfig .mpring { fill: rgba(255,255,255,.85); stroke: #E8452C; stroke-width: 3; animation: mppulse 1.4s infinite }
@keyframes mppulse { 50% { stroke-width: 6 } }
.c-mp .mpfig .mplr rect { fill: #FFF4E0; stroke: #C99A1A; stroke-width: 2 }
.c-mp .mpfig .mplr text { text-anchor: middle; font-family: var(--f-body); font-weight: 800; font-size: 13px; fill: #8A6A10 }
.c-mp .mpsteps { margin: 0; padding-left: 1.6em; font-size: 18px; display: grid; gap: 4px }
.c-mp .mpsteps li { color: #6B6158 }
.c-mp .mpsteps li.on { color: #1C1C1C; font-weight: 800 }
.c-mp .mpsteps li.done { color: #3E9A5C }
.c-mp .qfig.mpfig { max-height: 230px }
/* ---- component rt ---- */
.c-rt .rtwrap { display: grid; justify-items: center; gap: 10px }
.c-rt .rtstage { display: flex; align-items: center; gap: 18px; padding: 10px }
.c-rt .rttile { transition: transform .45s cubic-bezier(.3,1.4,.5,1); line-height: 0; cursor: grab; touch-action: none; border-radius: 10px; box-shadow: 0 0 0 4px rgba(245,196,70,.6) }
.c-rt .rtpic { display: inline-block; vertical-align: middle }
.c-rt .opt .rtpic { width: 60px; height: 60px }
.c-rt .tile .rtpic { width: 46px; height: 46px }
.c-rt .rtbtn { min-height: 52px; font-size: 18px }
.c-rt .rtback { display: flex; align-items: center; justify-content: center; gap: 14px; font-size: 28px; margin-bottom: 8px }
.c-rt .qfig, .c-rt .q .rtpic { display: block }
/* ---- component ag ---- */
.c-ag .sdb { display: grid; gap: 14px; padding: 6px 4px }
.c-ag .sdrow { display: grid; grid-template-columns: 4.6em minmax(0, 1fr); align-items: center; gap: 10px }
.c-ag .sdn { font-weight: 800; font-size: 17px }
.c-ag .sdtrack { position: relative; display: flex; align-items: stretch; height: 48px; touch-action: none }
.c-ag .sdbar { display: grid; place-items: center; border: 3px solid #1C1C1C; border-radius: 10px 0 0 10px; font-family: var(--f-display); font-weight: 800; font-size: 22px; min-width: 40px }
.c-ag .sdbar.sm { background: #F7C9C0; border-radius: 10px 0 0 10px }
.c-ag .sdbar.bg { background: #F6D7A9 }
.c-ag .sdex { display: grid; place-items: center; border: 3px dashed #1C1C1C; border-left: 0; font-family: var(--f-display); font-weight: 800; font-size: 20px; background: #FFF4E0; cursor: grab; min-width: 40px; touch-action: none }
.c-ag .sdpulse { animation: sdpulse 1.1s infinite }
@keyframes sdpulse { 50% { box-shadow: 0 0 0 6px rgba(62,154,92,.35) } }
.c-ag .sdex.ok { background: #E3F2E7; border-color: #3E9A5C; color: #2C7044 }
.c-ag .sdex.bad { background: #FBEBEB; border-color: #E8452C; color: #B5321D }
.c-ag .sdex.fixed { cursor: default; border-style: solid; border-left: 0 }
.c-ag .sdex.gone { border-left: 3px dashed #9A9A9A; border-color: #9A9A9A; color: #6B6158; background: #F0EBE4; height: 40px; border-radius: 10px; cursor: default }
.c-ag .aggrow { display: grid; place-items: center; border: 3px solid #4F7FD0; border-left: 0; border-radius: 0 10px 10px 0; background: #DCE8FA; color: #2F5FA8; font-family: var(--f-display); font-weight: 800; font-size: 18px; min-width: 40px; animation: aggrow .5s ease-out }
.c-ag .aggrow.neg { border: 3px dashed #E8452C; border-left: 0; background: #FBEBEB; color: #B5321D }
@keyframes aggrow { from { transform: scaleX(0); transform-origin: left } to { transform: scaleX(1); transform-origin: left } }
.c-ag .sdhandle { width: 44px; height: 56px; margin: -4px 0 0 -6px; border-radius: 12px; background: #4F7FD0; border: 3px solid #1C1C1C; cursor: ew-resize; align-self: center; touch-action: none; box-shadow: 0 3px 0 rgba(0,0,0,.2) }
.c-ag .aghandle { background: #4F7FD0; margin-left: -4px }
.c-ag .sdhandle::after { content: '⇆'; color: #fff; display: grid; place-items: center; height: 100%; font-size: 22px }
.c-ag .sdbin { display: flex; align-items: center; gap: 10px; color: #6B6158; font-weight: 700; padding-left: calc(4.6em + 10px) }
.c-ag .sdtot { font-size: 18px; color: #6B6158; padding-left: calc(4.6em + 10px) }
.c-ag .sdtot b { color: #1C1C1C; font-family: var(--f-display); font-size: 22px }
.c-ag .sdstep { min-width: 52px; min-height: 48px; font-size: 22px }
/* ---- component pz ---- */
.c-pz .pzwrap { display: grid; justify-items: center; gap: 10px }
.c-pz .pzsum { display: inline-grid; gap: 6px; font-family: var(--f-display); font-weight: 800; font-size: 44px; padding: 8px 18px; background: #fff; border-radius: 14px }
.c-pz .pzsum.mini { font-size: 30px; gap: 2px; padding: 4px 12px; background: transparent }
.c-pz .pzrow { display: flex; justify-content: flex-end; gap: 6px }
.c-pz .pzd { width: 1.15em; height: 1.3em; display: grid; place-items: center; line-height: 1 }
.c-pz .pzd.op { color: #6B6158 }
.c-pz .pzcarry .pzd { height: .8em; font-size: .6em }
.c-pz .pzc { font-style: normal; color: #E8452C; animation: pzc .6s ease-out }
@keyframes pzc { from { transform: translate(1.2em, 1.6em) scale(.6); opacity: 0 } to { transform: none; opacity: 1 } }
.c-pz .pzbox { position: relative; width: 1.15em; height: 1.3em; display: grid; place-items: center; border: 3px solid #1C1C1C; border-radius: 8px; background: #FFF4E0; line-height: 1 }
.c-pz .pzsum.mini .pzbox { border-width: 2px }
.c-pz .pzsum.mini .pzn { font-size: .5em }
.c-pz .pzn { position: absolute; top: -.6em; left: -.55em; width: 1.5em; height: 1.5em; display: grid; place-items: center; border-radius: 50%; background: #4F7FD0; color: #fff; font-style: normal; font-size: .4em; font-family: var(--f-body); font-weight: 700; line-height: 1 }
.c-pz .pzbox.on { border-color: #4F7FD0; box-shadow: 0 0 0 4px rgba(79,127,208,.3); animation: pzpulse 1.2s infinite }
.c-pz .pzbox.got { background: #E3F2E7; border-color: #3E9A5C }
.c-pz .pzbox.bad { background: #FBEBEB; border-color: #E8452C }
@keyframes pzpulse { 50% { box-shadow: 0 0 0 8px rgba(79,127,208,.15) } }
.c-pz .pzline { height: 0; border-top: 4px solid #1C1C1C; margin: 0 -4px }
.c-pz .pzdig { min-width: 48px; min-height: 48px; font-size: 22px }
/* ---- component ck ---- */
.c-ck .ckwrap { display: grid; justify-items: center; gap: 10px }
.c-ck .ckfig { touch-action: none; user-select: none }
.c-ck .ckclock { width: 280px; max-width: 100%; height: auto; display: block }
.c-ck .ckclock.mini { width: 150px }
.c-ck .ckface { fill: #fff; stroke: #1C1C1C; stroke-width: 5 }
.c-ck .cktick { stroke: #1C1C1C; stroke-width: 1.5 }
.c-ck .cktick.big { stroke-width: 3 }
.c-ck .cknum { font-family: var(--f-display); font-weight: 800; font-size: 20px; text-anchor: middle; fill: #1C1C1C }
.c-ck .ckmin { stroke: #1C1C1C; stroke-width: 6; stroke-linecap: round }
.c-ck .ckhr { stroke: #E8452C; stroke-width: 9; stroke-linecap: round }
.c-ck .ckknob { fill: rgba(232,69,44,.25); stroke: #E8452C; stroke-width: 3; animation: ckpulse 1.2s infinite }
@keyframes ckpulse { 50% { stroke-width: 6 } }
.c-ck .ckhub { fill: #1C1C1C }
.c-ck .ckwedge { fill: rgba(79,127,208,.28); stroke: #4F7FD0; stroke-width: 2 }
/* ---- component md ---- */
.c-md .mdwrap { display: grid; justify-items: center; gap: 10px }
.c-md .mdmenu { border-collapse: separate; border-spacing: 0; background: #FFFBF2; border: 3px solid #1C1C1C; border-radius: 12px; overflow: hidden; font-size: 16px }
.c-md .mdmenu th { background: #1C1C1C; color: #FFF4E0; padding: 6px 14px; font-family: var(--f-display); font-weight: 700 }
.c-md .mdmenu td { padding: 4px 14px; text-align: center; border-top: 1px dashed #D9CBB5 }
.c-md .mdmenu td + td, .c-md .mdmenu th + th { border-left: 2px solid #E2D6C6 }
.c-md .mdplate { margin-bottom: 8px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; min-height: 64px; padding: 10px 16px; border: 3px dashed #4F7FD0; border-radius: 40px; background: #F3F7FF }
.c-md .mdplate b { font-size: 20px; color: #6B6158 }
.c-md .mdslot { min-width: 84px; padding: 8px 12px; border-radius: 12px; background: #fff; border: 2px solid #E2D6C6; color: #9A8F84; text-align: center; font-weight: 700 }
.c-md .mdslot.got { color: #1C1C1C; border-color: #3E9A5C; background: #E3F2E7 }
.c-md .mdmade { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; align-items: center; min-height: 40px }
.c-md .mdmade i { color: #9A8F84 }
.c-md .mdtree { width: 440px; max-width: 100%; height: auto }
.c-md .mdroot { fill: #1C1C1C }
.c-md .mdbr { stroke: #9A8F84; stroke-width: 2 }
.c-md .mdbr.x { stroke: #E8452C; opacity: .4 }
.c-md .mdnode rect { fill: #fff; stroke: #1C1C1C; stroke-width: 2 }
.c-md .mdnode text { font-size: 16px; text-anchor: middle; font-weight: 700 }
.c-md .mdnode.L1 rect { fill: #FFF3D2 }
.c-md .mdnode.L2 rect { fill: #E7F0FF }
.c-md .mdnode.L3 rect { fill: #E3F2E7 }
.c-md .mdnode.tap { cursor: pointer }
.c-md .mdnode.tap rect { stroke: #4F7FD0; stroke-width: 3; animation: mdp 1.2s infinite }
.c-md .mdnode.x { opacity: .35 }
.c-md .mdstrike { stroke: #E8452C; stroke-width: 3 }
@keyframes mdp { 50% { stroke-width: 6 } }
/* ---- component sp ---- */
.c-sp .spwrap { display: grid; justify-items: center; gap: 10px }
.c-sp .spfig { width: 100%; touch-action: none; user-select: none }
.c-sp .sptrack { width: 100%; max-width: 600px; height: auto; display: block; margin: 0 auto }
.c-sp .sptrack.mini { max-width: 420px }
.c-sp .spseg { fill: #EFE6D8; stroke: #9A8F84; stroke-width: 1.5 }
.c-sp .spseg.first { fill: #FFF3D2 }
.c-sp .spseg.rid { fill: #CFE3FF; stroke: #4F7FD0 }
.c-sp .spmin { font-size: 22px; font-weight: 800; text-anchor: middle; fill: #1C1C1C }
.c-sp .sptick { stroke: #1C1C1C; stroke-width: 2 }
.c-sp .spkm { font-size: 18px; text-anchor: middle; fill: #6B6158; font-weight: 700 }
.c-sp .spkm.unit { text-anchor: start; font-size: 16px }
.c-sp .spbr { fill: none; stroke: #E8452C; stroke-width: 3 }
.c-sp .splab { font-family: var(--f-display); font-weight: 800; font-size: 20px; text-anchor: middle; fill: #E8452C }
.c-sp .splab.q { fill: #4F7FD0 }
.c-sp .spflag { stroke: #4F7FD0; stroke-width: 3 }
.c-sp .spbike { cursor: grab }
.c-sp .spbike.swim circle { fill: #F5C446 }
.c-sp .spbike.swim path { stroke: #4F7FD0 }
.c-sp .spbike circle { fill: #fff; stroke: #1C1C1C; stroke-width: 3 }
.c-sp .spbike path { fill: none; stroke: #E8452C; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round }
.c-sp .sptime { font-size: 18px }
/* ---- component vo ---- */
.c-vo .vowrap { display: grid; justify-items: center; gap: 10px }
.c-vo .vofig { touch-action: none; user-select: none; display: grid; justify-items: center; width: 100% }
.c-vo .iso { max-width: 100%; height: auto }
.c-vo .vobox .f { stroke: #1C1C1C; stroke-width: 1.6; stroke-linejoin: round }
.c-vo .vobox .new .top { fill: #CFE3FF }
.c-vo .vobox .new .front { fill: #7FA8E8 }
.c-vo .vobox .new .right { fill: #4F7FD0 }
.c-vo .vobox .old .top { fill: #EDE6DA }
.c-vo .vobox .old .front { fill: #C9BDAA }
.c-vo .vobox .old .right { fill: #A89A86 }
.c-vo .vobox .cube:not(.new):not(.old) .top { fill: #FFF3D2 }
.c-vo .vobox .cube:not(.new):not(.old) .front { fill: #F5C446 }
.c-vo .vobox .cube:not(.new):not(.old) .right { fill: #D9A21E }
.c-vo .vofloor { fill: #FBF5EA; stroke: #9A8F84; stroke-width: 1 }
.c-vo .voedge { stroke: #6B6158; stroke-width: 2 }
.c-vo .voedge.back { stroke-dasharray: 5 4; opacity: .7 }
.c-vo .voedge.grid { stroke: #D9CBB5; stroke-width: 1 }
.c-vo .voedge.front { stroke: #6B6158; stroke-width: 2; opacity: .8 }
.c-vo .voq { font-family: var(--f-display); font-weight: 800; font-size: 16px; fill: #E8452C }
.c-vo .vocube i, .c-vo .vocubeg { display: inline-block; width: 26px; height: 26px; background: #7FA8E8; border: 2px solid #1C1C1C; border-radius: 4px; box-shadow: 4px -4px 0 #CFE3FF }
/* ---- component tf ---- */
.c-tf .tfwrap { display: grid; justify-items: center; gap: 10px }
.c-tf .tffigw { width: 100%; display: grid; justify-items: center; user-select: none }
.c-tf .tffig { width: 300px; max-width: 100%; height: auto; display: block }
.c-tf .tffig.mini { width: 190px }
.c-tf .tfout { fill: none; stroke: #1C1C1C; stroke-width: 3; stroke-linejoin: round }
.c-tf .tfwhite { fill: #FFFBF4; stroke: #1C1C1C; stroke-width: 2; stroke-linejoin: round }
.c-tf .tfwhite.fit { fill: rgba(79,127,208,.22); stroke: #4F7FD0; stroke-dasharray: 6 4 }
.c-tf .tfwhite.gone { fill: #EFE6D8; stroke-dasharray: 3 3 }
.c-tf .tfblue { fill: #7FA8E8; stroke: #1C1C1C; stroke-width: 2; stroke-linejoin: round }
.c-tf .tfmid { fill: #CFE3FF; stroke: #1C1C1C; stroke-width: 2 }
.c-tf .tfin { fill: #CFE3FF; stroke: #1C1C1C; stroke-width: 1.5 }
.c-tf .tfin.fit { fill: rgba(79,127,208,.4); stroke-dasharray: 5 3 }
.c-tf .tffolded { fill: rgba(255,251,244,.85); stroke: #E8452C; stroke-width: 2; stroke-dasharray: 5 3 }
.c-tf .tffold { stroke: #9A8F84; stroke-width: 2; stroke-dasharray: 6 5 }
.c-tf .tflab { font-family: var(--f-display); font-weight: 800; font-size: 20px; text-anchor: middle; fill: #1C1C1C }
.c-tf .tfcopybox { touch-action: none; user-select: none; cursor: grab }
.c-tf .tfcopybox:empty { display: none }
.c-tf .tfcopy { width: 120px; height: 120px; display: block }
.c-tf .tfcopy.ghost { width: 70px; height: 70px }
.c-tf .tfring { fill: #FFF3D2; stroke: #F5C446; stroke-width: 3; stroke-dasharray: 8 6 }
.c-tf .tfcopy.done .tfring { stroke: #3E9A5C; stroke-dasharray: none }
.c-tf .tfpiece { padding: 2px }
.c-tf .tfpiece .tfcopy { width: 64px; height: 64px }
.c-tf .tfghost { display: inline-block; width: 40px; height: 40px; background: #FFFBF4; border: 2px solid #E8452C; transform: rotate(45deg) }
/* ---- component uc ---- */
.c-uc .ucwrap { display: grid; justify-items: center; gap: 10px }
.c-uc .ucfigw { width: 100%; touch-action: none; user-select: none }
.c-uc .ucfig { width: 100%; max-width: 620px; height: auto; display: block; margin: 0 auto }
.c-uc .ucfig.mini { max-width: 440px }
.c-uc .ucfig2 { width: 320px; max-width: 100%; height: auto; display: block; margin: 0 auto }
.c-uc .ucfig2.mini { width: 240px }
.c-uc .ucrib { fill: #F08CAA; stroke: #B8506E; stroke-width: 2 }
.c-uc .ucribcut { fill: #F5C446; opacity: .55 }
.c-uc .uccut { stroke: #1C1C1C; stroke-width: 3; stroke-dasharray: 4 3 }
.c-uc .uctick { stroke: #1C1C1C; stroke-width: 3 }
.c-uc .uclab { font-size: 18px; font-weight: 800; text-anchor: middle; fill: #4F7FD0 }
.c-uc .ucbr, .c-uc .ucbr2 { fill: none; stroke: #E8452C; stroke-width: 3 }
.c-uc .ucbig { font-family: var(--f-display); font-weight: 800; font-size: 22px; text-anchor: middle; fill: #E8452C }
.c-uc .ucfig2 .ucbig { text-anchor: start }
.c-uc .ucsm { font-size: 16px; fill: #6B6158 }
.c-uc .ucpiece { font-family: var(--f-display); font-weight: 800; font-size: 18px; text-anchor: middle; fill: #1C1C1C }
.c-uc .ucjug { fill: #fff; stroke: #1C1C1C; stroke-width: 3 }
.c-uc .ucjuice { fill: #F5A623; opacity: .8 }
.c-uc .uccup { fill: #CFE3FF; stroke: #4F7FD0; stroke-width: 2 }
.c-uc .uctap { fill: #9A8F84; stroke: #1C1C1C; stroke-width: 2 }
.c-uc .ucdrop { fill: #4F7FD0 }
.c-uc .ucbucket { fill: #fff; stroke: #1C1C1C; stroke-width: 3 }
.c-uc .ucwater { fill: #7FA8E8; opacity: .85 }
.c-uc .ucruler { font-size: 17px }
/* ---- component rd ---- */
.c-rd .rdwrap { display: grid; justify-items: center; gap: 12px }
.c-rd .rdfig { width: 100%; touch-action: none; user-select: none }
.c-rd .rdboard { width: 260px; max-width: 100%; height: auto; display: block; margin: 0 auto }
.c-rd .rdbg { fill: #1F2A24; stroke: #0F1512; stroke-width: 4 }
.c-rd .rdcap { font-family: var(--f-display); font-weight: 700; font-size: 16px; letter-spacing: .14em; fill: #F5C446; text-anchor: middle }
.c-rd .rdnum { font-family: 'Courier New', monospace; font-weight: 700; font-size: 44px; fill: #FFB547; text-anchor: middle }
.c-rd .rdline { width: 100%; max-width: 620px; height: auto; display: block; margin: 0 auto }
.c-rd .rdaxis { stroke: #1C1C1C; stroke-width: 4 }
.c-rd .rdtick { stroke: #1C1C1C; stroke-width: 2 }
.c-rd .rdtick.big { stroke-width: 3.5 }
.c-rd .rdlab { font-family: var(--f-display); font-weight: 800; font-size: 22px; text-anchor: middle; fill: #1C1C1C }
.c-rd .rdlab.mid { fill: #6B6158; font-size: 19px }
.c-rd .rdflag line { stroke: #E8452C; stroke-width: 3 }
.c-rd .rdflag rect { fill: #E8452C }
.c-rd .rdflag text { fill: #fff; font-weight: 800; font-size: 17px }
.c-rd .rdflag.odd line { stroke: #4F7FD0 }
.c-rd .rdflag.odd rect { fill: #4F7FD0 }
.c-rd .rdarrow { fill: none; stroke: #3E9A5C; stroke-width: 4; stroke-linecap: round }
.c-rd .rdend { fill: #3E9A5C }
.c-rd .rdzone { fill: rgba(245,196,70,.45) }
.c-rd .rdzl { font-size: 16px; font-weight: 700; text-anchor: middle; fill: #8A6A10 }
.c-rd .rddigits { display: flex; gap: 4px; align-items: flex-end; justify-content: center; min-height: 10px }
.c-rd .rddig { font-family: var(--f-display); font-weight: 800; font-size: 34px; width: 46px; height: 58px; border: 2px solid #9A8F84; border-radius: 10px; background: #fff; cursor: pointer }
.c-rd .rddig.on { background: #F5C446; border-color: #1C1C1C }
.c-rd .rdcomma { font-size: 34px; font-weight: 800 }
/* ---- component fe ---- */
.c-fe .fewrap { display: grid; justify-items: center; gap: 10px }
.c-fe .fefig { width: 100%; touch-action: none; user-select: none; display: grid; justify-items: center; min-height: 120px }
.c-fe .fesolid { width: 340px; max-width: 100%; height: auto; display: block; cursor: grab }
.c-fe .fesolid.mini { width: 200px; cursor: default }
.c-fe .feface { fill: rgba(240,180,90,.22); stroke: none }
.c-fe .feface.tap { cursor: pointer }
.c-fe .feface.tap:hover { fill: rgba(240,180,90,.4) }
.c-fe .feface.on { fill: rgba(79,127,208,.55) }
.c-fe .feedge { stroke: #1C1C1C; stroke-width: 3; stroke-linecap: round }
.c-fe .feedge.hid { stroke: #9A8F84; stroke-width: 2; stroke-dasharray: 5 5 }
.c-fe .feedge.on { stroke: #E8452C; stroke-width: 6 }
.c-fe .feedge.hid.on { stroke: #E8452C; stroke-width: 3; opacity: .6 }
.c-fe .fehit { stroke: transparent; stroke-width: 20; stroke-linecap: round; cursor: pointer }
.c-fe .fevert { fill: #fff; stroke: #1C1C1C; stroke-width: 2.5; cursor: pointer }
.c-fe .fevert.on { fill: #3E9A5C }
.c-fe .fevert.hid { opacity: .5 }
.c-fe .feempty { color: #6B6158; margin: 40px 0 }
.c-fe .fetab { border-collapse: collapse; font-size: 15px }
.c-fe .fetab td, .c-fe .fetab th { padding: 4px 8px; border-bottom: 1px solid #E2D6C6; text-align: center }
.c-fe .fetab td:first-child { text-align: left }
.c-fe .fetab td.yes { color: #3E9A5C; font-weight: 800 }
.c-fe .fetab td.no { color: #E8452C; text-decoration: line-through }
.c-fe .fetab tr.ok td:first-child { font-weight: 800 }
/* ---- component jr ---- */
.c-jr .jrwrap { display: grid; justify-items: center; gap: 10px }
.c-jr .jrfigw { width: 100%; display: grid; justify-items: center; user-select: none; touch-action: none }
.c-jr .jrfig { width: 520px; max-width: 100%; height: auto; display: block }
.c-jr .jrfig.mini { width: 340px }
.c-jr .jrbase { fill: #6B6158 }
.c-jr .jrread { fill: #1F2A24 }
.c-jr .jrnum { font-family: 'Courier New', monospace; font-weight: 700; font-size: 18px; fill: #7CFC9A; text-anchor: middle }
.c-jr .jrpan { fill: #B8AFA4 }
.c-jr .jrjar, .c-jr .jrbottle { fill: rgba(207,227,255,.55); stroke: #4F7FD0; stroke-width: 3; cursor: pointer }
.c-jr .jrlid { fill: #E8452C }
.c-jr .jrjar.x, .c-jr .jrbottle.x, .c-jr .jrlid.x { opacity: .35 }
.c-jr .jrwater { fill: #7FA8E8; cursor: pointer }
.c-jr .jrwater.x { opacity: .35 }
.c-jr .jrball { fill: #F5A623; stroke: #8A5A10; stroke-width: 2; cursor: pointer }
.c-jr .jrball.x { opacity: .3 }
.c-jr .jrball.left { fill: #3E9A5C; stroke: #1F5C33 }
.c-jr .jrcross { stroke: #E8452C; stroke-width: 5; stroke-linecap: round }
.c-jr .jrcross.thin { stroke-width: 3 }
.c-jr .jrlab { font-size: 18px; fill: #6B6158; text-anchor: middle }
.c-jr .jrbig { font-family: var(--f-display); font-weight: 800; font-size: 30px; fill: #1C1C1C; text-anchor: middle }
.c-jr .jrghost { display: inline-block; width: 46px; height: 46px; border-radius: 10px; border: 3px solid #4F7FD0; background: rgba(207,227,255,.7) }
/* ---- component cp ---- */
.c-cp .cpwrap { display: grid; justify-items: center; gap: 10px }
.c-cp .cpfigw { width: 100%; display: grid; justify-items: center; user-select: none }
.c-cp .cpfig { width: 600px; max-width: 100%; height: auto; display: block }
.c-cp .cpfig.mini { width: 380px }
.c-cp .cpwait { fill: #EFE6D8; stroke: #C8BBA8; stroke-width: 2 }
.c-cp .cplab { font-family: var(--f-display); font-weight: 800; font-size: 17px; text-anchor: middle; fill: #1C1C1C }
.c-cp .cpkid { fill: #E8452C; stroke: #8A2A1A; stroke-width: 1.5 }
.c-cp .cpseat { fill: #fff; stroke: #9A8F84; stroke-width: 1.5; stroke-dasharray: 3 2 }
.c-cp .cpbox { fill: #CFE3FF; stroke: #4F7FD0; stroke-width: 3 }
.c-cp .cpbox.part { fill: #FFF3D2; stroke: #E8A23C }
.c-cp .cpbox.big { fill: #DDF2E3; stroke: #3E9A5C }
/* ---- component fn ---- */
.c-fn .fnwrap { display: grid; justify-items: center; gap: 10px }
.c-fn .fnfigw { width: 100%; display: grid; justify-items: center; user-select: none; touch-action: none }
.c-fn .fnfig { width: 560px; max-width: 100%; height: auto; display: block }
.c-fn .fnfig.mini { width: 380px }
.c-fn .fngarden { fill: #CFE8C4; stroke: #8FB37E; stroke-width: 2; stroke-dasharray: 6 5 }
.c-fn .fnground { stroke: #9A8F84; stroke-width: 3; stroke-dasharray: 6 5 }
.c-fn .fnhouse { fill: #E2D6C6; stroke: #6B6158; stroke-width: 2 }
.c-fn .fnrail { stroke: #8A5A2B; stroke-width: 6; stroke-linecap: round }
.c-fn .fnpost { fill: #6B3E16; stroke: #2E1A08; stroke-width: 1.5 }
.c-fn .fnpost.first { fill: #3E9A5C }
.c-fn .fnme { fill: rgba(232,69,44,.25); stroke: #E8452C; stroke-width: 3 }
.c-fn .fnlab { font-family: var(--f-display); font-weight: 800; font-size: 20px; text-anchor: middle; fill: #1C1C1C }
.c-fn .fnsm { font-size: 22px; font-weight: 700; text-anchor: middle; fill: #E8452C }
.c-fn .fnbr { fill: none; stroke: #E8452C; stroke-width: 3.5 }
/* ---- component hs ---- */
.c-hs .hswrap { display: grid; justify-items: center; gap: 10px }
.c-hs .hsfigw { width: 100%; display: grid; justify-items: center; user-select: none; touch-action: none }
.c-hs .hsfig { width: 380px; max-width: 100%; height: auto; display: block }
.c-hs .hsfig.mini { width: 220px }
.c-hs .hsp circle { fill: #FFF3D2; stroke: #1C1C1C; stroke-width: 2.5; cursor: pointer }
.c-hs .hsp text { font-family: var(--f-display); font-weight: 800; font-size: 14px; text-anchor: middle; pointer-events: none }
.c-hs .hsp.sel circle { fill: #F5C446; stroke-width: 4 }
.c-hs .hsfig:not(.mini) .hsp:first-of-type circle { fill: #FFE1D6 }
.c-hs .hsline { stroke-width: 4; stroke-linecap: round }
.c-hs .hsline.auto { stroke-dasharray: 7 5 }
.c-hs .hsline.g0 { stroke: #E8452C }
.c-hs .hsline.g1 { stroke: #4F7FD0 }
.c-hs .hsline.g2 { stroke: #3E9A5C }
.c-hs .hsline.g3 { stroke: #E8A23C }
.c-hs .hsline.g4 { stroke: #8E5BC9 }
.c-hs .hsline.g5 { stroke: #2AA5A0 }
.c-hs .hsrub { stroke: #9A8F84; stroke-width: 3; stroke-dasharray: 5 4 }
.c-hs .pill.dim { opacity: .45 }
/* ---- component fj ---- */
.c-fj .fjwrap { display: grid; justify-items: center; gap: 10px }
.c-fj .fjfigw { width: 100%; display: grid; justify-items: center; user-select: none }
.c-fj .fjfig { width: 620px; max-width: 100%; height: auto; display: block }
.c-fj .fjfig.mini { width: 420px }
.c-fj .fjline { stroke: #1C1C1C; stroke-width: 3 }
.c-fj .fjtick { stroke: #6B6158; stroke-width: 2 }
.c-fj .fjtick.w { stroke: #1C1C1C; stroke-width: 3 }
.c-fj .fjnum { font-family: var(--f-display); font-weight: 800; font-size: 22px; text-anchor: middle; fill: #1C1C1C }
.c-fj .fjnum.lit { fill: #E8452C; font-size: 26px }
.c-fj .fjhop { fill: none; stroke: #3E9A5C; stroke-width: 3; stroke-dasharray: 5 4 }
.c-fj .fjhop.w { stroke: #E8452C }
.c-fj .fjhop.eg { stroke: #E8452C; stroke-dasharray: none }
.c-fj .fjsm { font-size: 22px; font-weight: 700; text-anchor: middle; fill: #E8452C }
.c-fj .fjfrog { cursor: pointer }
.c-fj .fjbody { fill: #5DBB63; stroke: #2E6B33; stroke-width: 2.5 }
.c-fj .fjeye { fill: #fff; stroke: #2E6B33; stroke-width: 2 }
.c-fj .fjpup { fill: #1C1C1C }
.c-fj .fjmouth { fill: none; stroke: #2E6B33; stroke-width: 2 }
/* ---- component fq ---- */
.c-fq .fqwrap { display: grid; justify-items: center; gap: 10px }
.c-fq .fqfigw { width: 100%; display: grid; justify-items: center; user-select: none }
.c-fq .fqfig { width: 440px; max-width: 100%; height: auto; display: block }
.c-fq .fqfig.mini { width: 300px }
.c-fq .fqsq { stroke: #9A8F84; stroke-width: 1.5; cursor: pointer }
.c-fq .fqsq.w { fill: #FFFDF7 }
.c-fq .fqsq.b { fill: #4F7FD0 }
.c-fq .fqsq.r { fill: #E8452C }
.c-fq .fqsq.w.in { fill: #E3EDFC }
.c-fq .fqedge { stroke: #1C1C1C; stroke-width: 4; stroke-linecap: round }
.c-fq .fqk { font-size: 15px; font-weight: 800; fill: #6B6158 }
/* ---- component tr ---- */
.c-tr .trwrap { display: grid; justify-items: center; gap: 10px }
.c-tr .trfigw { width: 100%; display: grid; justify-items: center; user-select: none }
.c-tr .trfig { width: 420px; max-width: 100%; height: auto; display: block }
.c-tr .trfig.mini { width: 300px }
.c-tr .tredge { stroke: #9A8F84; stroke-width: 3 }
.c-tr .tredge.hl { stroke: #E8452C; stroke-width: 5 }
.c-tr .trnode { cursor: pointer }
.c-tr .trc { fill: #FFFDF7; stroke: #4F7FD0; stroke-width: 3.5 }
.c-tr .trc.miss { fill: #FFF3D2; stroke: #E8A23C; stroke-dasharray: 6 4 }
.c-tr .trc.got { fill: #DDF2E3; stroke: #3E9A5C }
.c-tr .trc.hl { stroke: #E8452C; stroke-width: 5 }
.c-tr .trn { font-family: var(--f-display); font-weight: 800; font-size: 26px; text-anchor: middle; fill: #1C1C1C }
.c-tr .trl { font-size: 16px; font-weight: 800; fill: #3E9A5C; text-anchor: middle }
/* ---- component dl ---- */
.c-dl .dlwrap { display: grid; justify-items: center; gap: 10px }
.c-dl .dlfigw { width: 100%; display: grid; justify-items: center; user-select: none }
.c-dl .dlfig { width: 640px; max-width: 100%; height: auto; display: block }
.c-dl .dlfig.mini { width: 340px }
.c-dl .dlline { stroke: #1C1C1C; stroke-width: 3 }
.c-dl .dlarr { fill: none; stroke: #1C1C1C; stroke-width: 3 }
.c-dl .dltick { stroke: #6B6158; stroke-width: 2.5 }
.c-dl .dltick.z { stroke: #E8452C; stroke-width: 4 }
.c-dl .dlslot { fill: transparent }
.c-dl .dlname { font-family: var(--f-display); font-weight: 800; font-size: 17px; text-anchor: middle; fill: #1C1C1C }
.c-dl .dlend { font-size: 17px; font-weight: 700; fill: #6B6158 }
.c-dl .dlend.r { text-anchor: end }
.c-dl .dlspan { stroke: #E8452C; stroke-width: 5; stroke-linecap: round }
.c-dl .dlsm { font-size: 20px; font-weight: 800; text-anchor: middle; fill: #E8452C }
.c-dl .dlghost { display: inline-block; padding: 8px 12px; border-radius: 10px; background: #FFF3D2; border: 3px solid #E8A23C; font-weight: 800 }
/* ---- component bd ---- */
.c-bd .bdwrap { display: grid; justify-items: center; gap: 10px }
.c-bd .bdfigw { width: 100%; display: grid; justify-items: center; user-select: none }
.c-bd .bdfig { width: 600px; max-width: 100%; height: auto; display: block }
.c-bd .bdfig.mini { width: 360px }
.c-bd .bdfig.tilefig { width: 150px }
.c-bd .bdbox { fill: #FFFBF2; stroke: #C9B79C; stroke-width: 2 }
.c-bd .bdbox.part { stroke-dasharray: 6 4; stroke: #E8A23C }
.c-bd .bdk { font-size: 14px; font-weight: 800; fill: #6B6158; text-anchor: middle }
.c-bd .bdmore { font-size: 30px; font-weight: 800; fill: #6B6158 }
.c-bd .bdtile { padding: 4px 8px }
/* ---- component dc ---- */
.c-dc .dcwrap { display: grid; justify-items: center; gap: 10px }
.c-dc .dcfigw { width: 100%; display: grid; justify-items: center; user-select: none }
.c-dc .dcfig { width: 640px; max-width: 100%; height: auto; display: block }
.c-dc .dcfig.mini { width: 440px }
.c-dc .dccard { fill: #FFFBF2; stroke: #1C1C1C; stroke-width: 2.5 }
.c-dc .dcv { font-family: var(--f-display); font-weight: 800; font-size: 20px; text-anchor: middle; fill: #1C1C1C }
.c-dc .dcline { stroke: #1C1C1C; stroke-width: 3 }
.c-dc .dctick { stroke: #9A8F84; stroke-width: 1.5 }
.c-dc .dctick.t { stroke: #1C1C1C; stroke-width: 3 }
.c-dc .dcslot { fill: transparent }
.c-dc .dcnum { font-family: var(--f-display); font-weight: 800; font-size: 18px; text-anchor: middle; fill: #1C1C1C }
.c-dc .dcpin { stroke: #E8452C; stroke-width: 2.5 }
.c-dc .dctag { fill: #FFF3D2; stroke: #E8A23C; stroke-width: 2 }
.c-dc .dctag.hl { fill: #DDF2E3; stroke: #3E9A5C }
.c-dc .dctxt { font-size: 15px; font-weight: 800; text-anchor: middle; fill: #1C1C1C }
.c-dc .dcghost { display: inline-block; padding: 8px 12px; border-radius: 10px; background: #FFF3D2; border: 3px solid #E8A23C; font-weight: 800 }
/* ---- component bb ---- */
.c-bb .bbwrap { display: grid; justify-items: center; gap: 10px }
.c-bb .bbfigw { width: 100%; display: grid; justify-items: center; user-select: none }
.c-bb .bbfig { width: 520px; max-width: 100%; height: auto; display: block }
.c-bb .bbfig.mini { width: 380px }
.c-bb .bbbag { fill: #E9D8B8; stroke: #8A6B3E; stroke-width: 2.5 }
.c-bb .bbband { fill: #E8452C }
.c-bb .bbk { font-family: var(--f-display); font-weight: 800; font-size: 14px; text-anchor: middle; fill: #1C1C1C }
.c-bb .bbp { font-size: 17px; font-weight: 800; text-anchor: middle; fill: #3E9A5C }
.c-bb .bbshelf { fill: #9A8F84 }
.c-bb .bbplate { fill: #D8D2C8; stroke: #6B6158; stroke-width: 2 }
.c-bb .bbplate.ok { fill: #DDF2E3; stroke: #3E9A5C }
.c-bb .bbplate.over { fill: #FBE1DC; stroke: #E8452C }
.c-bb .bbbase { fill: #6B6158 }
.c-bb .bbread { font-size: 18px; font-weight: 800; text-anchor: middle; fill: #fff }
.c-bb .bbhint { font-size: 18px; fill: #9A8F84; text-anchor: middle }
.c-bb .bbtable { display: grid; gap: 6px; min-width: 260px }
.c-bb .bbhead { font-weight: 800; color: #6B6158 }
.c-bb .bbrow { font: inherit; text-align: left; padding: 8px 12px; border-radius: 10px; border: 2px solid #C9B79C; background: #FFFBF2 }
.c-bb .bbrow.pick { cursor: pointer; border-color: #4F7FD0 }
.c-bb .bbrow.best { background: #DDF2E3; border-color: #3E9A5C }
.c-bb .ghostbtn { background: #fff; border-style: dashed }
/* ---- component sq ---- */
.c-sq .sqwrap { display: grid; justify-items: center; gap: 10px }
.c-sq .sqfigw { width: 100%; display: grid; justify-items: center; user-select: none }
.c-sq .sqfig { width: 420px; max-width: 100%; height: auto; display: block }
.c-sq .sqfig.mini { width: 300px }
.c-sq .sqfig.mini.list { width: 460px }
.c-sq .sqgrid { stroke: #E5DED3; stroke-width: 1.5 }
.c-sq .sqaxis { stroke: #1C1C1C; stroke-width: 3 }
.c-sq .sqax { font-size: 16px; font-weight: 700; text-anchor: middle; fill: #1C1C1C }
.c-sq .sqbar { cursor: pointer }
.c-sq .sqb { fill: #4F7FD0; stroke: #2C5596; stroke-width: 2 }
.c-sq .sqb.new { fill: #F5C518; stroke: #B88A0A }
.c-sq .sqbar.done .sqb { fill: #B9CBEA; stroke: #8AA4D6 }
.c-sq .sqcard { cursor: pointer }
.c-sq .sqcard rect { fill: #FFFBF2; stroke: #1C1C1C; stroke-width: 2.5 }
.c-sq .sqcard text { font-weight: 800; font-size: 18px; text-anchor: middle; fill: #1C1C1C }
.c-sq .sqcard.used { opacity: .3 }
.c-sq .sqline { width: 620px; max-width: 100%; height: auto; display: block }
.c-sq .sqkid { fill: #DDF2E3; stroke: #3E9A5C; stroke-width: 2.5 }
.c-sq .sqkid.empty { fill: #fff; stroke: #C9B79C; stroke-dasharray: 4 3 }
.c-sq .sqkid.mid { stroke: #E8452C; stroke-width: 5 }
.c-sq .sqv { font-size: 14px; font-weight: 800; text-anchor: middle; fill: #1C1C1C }
.c-sq .sqn { font-size: 12px; text-anchor: middle; fill: #9A8F84 }
.c-sq .sqn.mid { fill: #E8452C; font-weight: 800 }
/* ---- component sw ---- */
.c-sw .swwrap { display: grid; justify-items: center; gap: 12px }
.c-sw .swfigw { width: 100%; display: grid; justify-items: center; user-select: none }
.c-sw .swfig { width: 300px; max-width: 100%; height: auto; display: block }
.c-sw .swsign rect { fill: #FFFBF2; stroke: #C9B79C; stroke-width: 2.5 }
.c-sw .swsign.on rect { stroke: #E8A23C; stroke-width: 4; fill: #FFF3DC }
.c-sw .swsign.done rect { stroke: #3E9A5C; fill: #EEF7EF }
.c-sw .swn { font-size: 26px; font-weight: 900; text-anchor: middle; fill: #1C1C1C }
.c-sw .sweq { font-size: 26px; font-weight: 900; text-anchor: middle; fill: #6B6158 }
.c-sw .swpiles { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center }
.c-sw .swp { background: #FFFDF7; border: 2px solid #E5DACB; border-radius: 12px; padding: 6px 10px; min-width: 110px; text-align: center }
.c-sw .swp.dim { opacity: .5 }
.c-sw .swpl { font-size: 15px; font-weight: 700 }
.c-sw .swpi { min-height: 34px; display: flex; align-items: center; justify-content: center; gap: 4px; flex-wrap: wrap }
.c-sw .swarr { font-size: 24px; font-weight: 900; color: #9A8F84 }
.c-sw .swempty { color: #9A8F84; font-weight: 800 }
.c-sw .swtile { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px }
.c-sw .swtile span { font-weight: 900 }
/* ---- component np ---- */
.c-np .npwrap { display: grid; justify-items: center; gap: 10px }
.c-np .npw { width: 100%; display: grid; justify-items: center; user-select: none }
.c-np .npfig { width: 300px; max-width: 100%; height: auto; display: block }
.c-np .npsheets { width: 460px; max-width: 100%; height: auto; display: block }
.c-np .npsh { fill: #FBF7EE; stroke: #9A8F84; stroke-width: 2 }
.c-np .npsh.on { stroke: #E8A23C; stroke-width: 3 }
.c-np .npfold { stroke: #9A8F84; stroke-width: 2; stroke-dasharray: 5 4 }
.c-np .nptxt { stroke: #D9CFC2; stroke-width: 5; stroke-linecap: round }
.c-np .npdot { fill: #FFFDF7; stroke: #1C1C1C; stroke-width: 2 }
.c-np .nppg { font-size: 20px; font-weight: 900; text-anchor: middle; fill: #1C1C1C }
.c-np .npslot rect { fill: #FFFDF7; stroke: #D9CFC2; stroke-width: 2; stroke-dasharray: 4 3 }
.c-np .npslot.want rect { stroke: #E8A23C; stroke-width: 3.5; stroke-dasharray: none; animation: npfl 1s infinite }
.c-np .npslot.hl rect { fill: #FFF3B8; stroke: #E8A23C; stroke-dasharray: none }
@keyframes npfl { 50% { fill: #FFE9C2 } }
.c-np .nphd { font-size: 14px; font-weight: 800; fill: #6B6158; text-anchor: middle }
.c-np .npk { font-size: 14px; font-weight: 800; fill: #6B6158 }
.c-np .nptile { font-size: 22px; font-weight: 900; min-width: 56px }
/* ---- component wk ---- */
.c-wk .wkwrap { display: grid; justify-items: center; gap: 10px }
.c-wk .wkw { width: 100%; display: grid; justify-items: center; user-select: none }
.c-wk .wkfig { width: 300px; max-width: 100%; height: auto; display: block }
.c-wk .wkfig.lab { width: 460px }
.c-wk .wkblk { fill: #DDEBD2 }
.c-wk .wkst { stroke: #9A8F84; stroke-width: 9; stroke-linecap: round }
.c-wk .wkc circle { fill: #FFFDF7; stroke: #6B6158; stroke-width: 2 }
.c-wk .wkc text { font-size: 17px; font-weight: 900; text-anchor: middle; fill: #1C1C1C }
.c-wk .wkc.want circle { stroke: #E8A23C; stroke-width: 4; animation: wkfl 1s infinite }
@keyframes wkfl { 50% { fill: #FFE9C2 } }
.c-wk .wkroute { fill: none; stroke: #E8452C; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; opacity: .85 }
.c-wk .wkold { fill: none; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; opacity: .55 }
.c-wk .wkold.c0 { stroke: #4F7FD0 }
.c-wk .wkold.c1 { stroke: #3E9A5C }
.c-wk .wkold.c2 { stroke: #E8A23C }
.c-wk .wkold.c3 { stroke: #A066C9 }
.c-wk .wkhome path { fill: #E8452C; stroke: #1C1C1C; stroke-width: 2 }
.c-wk .wkhome rect { fill: #FFFDF7; stroke: #1C1C1C; stroke-width: 2 }
.c-wk .wkoval { fill: #7CC36E; stroke: #1C1C1C; stroke-width: 2 }
.c-wk .wkoval2 { fill: none; stroke: #FFFDF7; stroke-width: 2 }
.c-wk .wkshut path { fill: #F28C28; stroke: #1C1C1C; stroke-width: 2 }
.c-wk .wkshut line { stroke: #FFFDF7; stroke-width: 3 }
/* ---- component dg ---- */
.c-dg .dgwrap { display: grid; justify-items: center; gap: 10px }
.c-dg .dgw { width: 100%; display: grid; justify-items: center; user-select: none }
.c-dg .dgfig { width: 330px; max-width: 100%; height: auto; display: block }
.c-dg .dgjar { fill: #F6E7D2; stroke: #1C1C1C; stroke-width: 2 }
.c-dg .dgjar.box { fill: #CFE0F2 }
.c-dg .dglid { fill: #C9473B; stroke: #1C1C1C; stroke-width: 2 }
.c-dg .dglab { fill: #FFFDF7; stroke: #1C1C1C; stroke-width: 1.5 }
.c-dg .dgn { font-size: 16px; font-weight: 900; text-anchor: middle; fill: #1C1C1C }
.c-dg .dgdots { font-size: 30px; font-weight: 900; text-anchor: middle; fill: #6B6158 }
.c-dg .dgchart { display: grid; gap: 5px; width: 100%; max-width: 520px }
.c-dg .dgc { font: inherit; font-size: 17px; font-weight: 800; padding: 8px 0; border-radius: 8px; border: 2px solid #E5DACB; background: #FFFDF7; color: #1C1C1C; cursor: pointer }
.c-dg .dgc.on { background: #FFE37A; border-color: #E8A23C }
.c-dg .dgc.two { background: #FFB347 }
.c-dg .dgc.flash { animation: dgfl .3s 3 }
.c-dg .dgc.dg1 { background: #E6F2FF }
.c-dg .dgc.dg2 { background: #FFF3DC }
.c-dg .dgc.dg3 { background: #EEF7EF }
@keyframes dgfl { 50% { transform: scale(1.15); background: #FF8A65 } }
@media (max-width: 600px) { .c-dg .dgchart { gap: 3px }
.c-dg .dgc { font-size: 13px; padding: 6px 0; min-width: 0; border-width: 1.5px } }
/* ---- component cn ---- */
.c-cn .cnwrap { display: grid; justify-items: center; gap: 10px }
.c-cn .cntop { width: 100%; display: grid; justify-items: center; user-select: none }
.c-cn .cnfig { width: 300px; max-width: 100%; height: auto; display: block }
.c-cn .cnjarlab { width: 560px; max-width: 100%; height: auto; display: block }
.c-cn .cncoin.g { fill: #E9C46A; stroke: #8A6A1C; stroke-width: 2 }
.c-cn .cncoin.s { fill: #D9DDE2; stroke: #6E7781; stroke-width: 2 }
.c-cn .cnt { font-weight: 900; text-anchor: middle; fill: #1C1C1C }
.c-cn .cnjar { fill: #E6F2F5; stroke: #1C1C1C; stroke-width: 2.5; opacity: .9 }
.c-cn .cnlid { fill: #C9473B; stroke: #1C1C1C; stroke-width: 2 }
.c-cn .cntag { font-size: 28px; font-weight: 900; text-anchor: middle; fill: #1C1C1C }
.c-cn .cntag.w { fill: #FFFDF7 }
.c-cn .cnamt { fill: #FFFBF2; stroke: #C9B79C; stroke-width: 3 }
.c-cn .cnprice { fill: #FFF3B8; stroke: #1C1C1C; stroke-width: 2 }
.c-cn .cnhole { fill: #FFFDF7; stroke: #1C1C1C; stroke-width: 2 }
.c-cn .cnnote { stroke: #1C1C1C; stroke-width: 2 }
.c-cn .cnnote.n5 { fill: #C58BB8 }
.c-cn .cnnote.n10 { fill: #4F7FD0 }
.c-cn .cnnote.n20 { fill: #D9534F }
.c-cn .cnlot { fill: #EEF7EF; stroke: #3E9A5C; stroke-width: 2 }
.c-cn .cnlt { font-size: 15px; font-weight: 900; text-anchor: middle; fill: #2E6B3F }
.c-cn .cnpurse { display: flex; align-items: center; gap: 10px; background: #F3E6D3; border: 3px solid #A8875F; border-radius: 22px; padding: 8px 14px; min-height: 64px; min-width: 260px; flex-wrap: wrap; justify-content: center }
.c-cn .cnpl { font-weight: 800; color: #6B4F2E }
.c-cn .cnpc { min-height: 46px; display: flex; align-items: center }
.c-cn #left { font-size: 15px; color: #6B4F2E }
.c-cn .cntile { padding: 2px 4px }
/* ---- component ru ---- */
.c-ru .ruwrap { display: grid; justify-items: center; gap: 10px }
.c-ru .ruw { width: 100%; display: grid; justify-items: center; user-select: none; overflow-x: auto }
.c-ru .rufig { width: 340px; max-width: 100%; height: auto; display: block }
.c-ru .rufig.lab { width: 560px }
.c-ru .rubody { fill: #F6D98B; stroke: #8A6A1C; stroke-width: 2 }
.c-ru .rutick.seen { stroke: #1C1C1C; stroke-width: 2.5 }
.c-ru .rutick.gone { stroke: #C9A955; stroke-width: 1.5 }
.c-ru .rusmudge { fill: #E3C66F; opacity: .9 }
.c-ru .rumark circle { fill: #FFFDF7; stroke: #1C1C1C; stroke-width: 2 }
.c-ru .rumark text { font-size: 15px; font-weight: 900; text-anchor: middle; fill: #1C1C1C }
.c-ru .rumark.on circle { fill: #FFE37A; stroke: #E8A23C; stroke-width: 3 }
.c-ru .rufig.lab .rumark { cursor: pointer }
.c-ru .ruline { stroke: #4F7FD0; stroke-width: 6; stroke-linecap: round }
.c-ru .ruline.dup { stroke: #E8452C; stroke-dasharray: 6 5 }
.c-ru .rull { font-size: 18px; font-weight: 800; text-anchor: middle; fill: #2F5DA8 }
.c-ru .rull.dup { fill: #C0392B }
.c-ru .rutab { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; max-width: 560px }
.c-ru .rutl { font-weight: 800; color: #6B6158 }
.c-ru .pill.red { background: #FDE3DE; color: #C0392B }
/* ---- component ct ---- */
.c-ct .ctwrap { display: grid; justify-items: center; gap: 10px }
.c-ct .ctw { width: 100%; display: grid; justify-items: center; user-select: none }
.c-ct .ctfig { width: 220px; max-width: 100%; height: auto; display: block }
.c-ct .ctfig.lab { width: 300px }
.c-ct .ctsh { fill: #CFE6F5; stroke: #1C1C1C; stroke-width: 3; stroke-linejoin: round }
.c-ct .ctsh.piece.cur { fill: #FFF3B8 }
.c-ct .ctcut { stroke: #E8452C; stroke-width: 3; stroke-dasharray: 8 6 }
.c-ct .ctcut.next { stroke-width: 5; animation: ctfl 1s infinite }
.c-ct .ctcut.cut { stroke-dasharray: none; opacity: .4 }
@keyframes ctfl { 50% { opacity: .3 } }
.c-ct .ctmid { fill: #E8452C }
.c-ct .ctside { stroke: transparent; stroke-width: 16; stroke-linecap: round; cursor: pointer }
.c-ct .ctside.on { stroke: #3E9A5C; stroke-width: 6 }
/* ---- component fx ---- */
.c-fx .fxwrap { display: grid; justify-items: center; gap: 14px }
.c-fx .fxfig { width: 300px; max-width: 100%; height: auto; display: block }
.c-fx .fxcard { fill: #FFFBF2; stroke: #C9B79C; stroke-width: 2.5 }
.c-fx .fxeq { font-size: 28px; font-weight: 900; text-anchor: middle; fill: #1C1C1C }
.c-fx .fxtri { fill: #E8452C }
.c-fx .fxrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; user-select: none }
.c-fx .fxside { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center }
.c-fx .fxc { display: inline-grid; place-items: center; min-width: 54px; height: 54px; padding: 0 8px; border-radius: 12px; background: #FFFDF7; border: 2.5px solid #1C1C1C; font-size: 24px; font-weight: 900; touch-action: none }
.c-fx .fxc.can { background: #FFF3B8; cursor: grab }
.c-fx .fxc.tri { color: #E8452C; border-color: #E8452C }
.c-fx .fxc.gone { opacity: .25; text-decoration: line-through; background: #EEE }
.c-fx .fxx, .c-fx .fxeqs { font-size: 26px; font-weight: 900; color: #6B6158 }
.c-fx .fxsplit { border: 3px dashed #E8A23C; border-radius: 14px; padding: 14px 30px; font-weight: 800; color: #B5762A; background: #FFF8EC }
@media (max-width: 600px) { .c-fx .fxc { min-width: 40px; height: 44px; font-size: 19px } }
