

:root {
  
  --paper: #f7f5f0;
  --card: #ffffff;
  --ink: #2e2a26;
  --ink-soft: #6e675f;
  --ink-faint: #a79f94;
  --line: #e6e0d5;
  --cinnabar: #b03a2e;
  --cinnabar-dark: #8e2d23;
  --cinnabar-soft: #f9efec;
  --en: #3f6f8c; 
  
  --py-fg: #1e40af;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(60, 45, 30, .05), 0 8px 24px rgba(60, 45, 30, .06);

  --font-serif: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }


.topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(247, 245, 240, .94);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 1120px; margin: 0 auto;
  padding: 12px 22px;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.back-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line);
  font-size: 14px; font-weight: 500; color: var(--ink);
  text-decoration: none; white-space: nowrap;
  transition: border-color .15s ease, color .15s ease;
}
.back-btn:hover { border-color: var(--cinnabar); color: var(--cinnabar); }
.back-btn:focus-visible,
.level-btn:focus-visible,
.lesson-btn:focus-visible,
.func-btn:focus-visible,
.breadcrumb a:focus-visible {
  outline: 2px solid var(--cinnabar); outline-offset: 2px;
}
.breadcrumb { font-size: 13px; color: var(--ink-faint); }
.breadcrumb a { color: var(--ink-soft); text-decoration: none; transition: color .15s ease; }
.breadcrumb a:hover { color: var(--cinnabar); }
.breadcrumb .sep { margin: 0 8px; }
.breadcrumb .current { color: var(--ink); font-weight: 500; }


.site-header {
  position: sticky; top: 0; z-index: 12;
  background: rgba(247, 245, 240, .96);
  border-bottom: 1px solid var(--line);
}
.site-header-inner {
  max-width: 1120px; margin: 0 auto; padding: 10px 22px;
  display: flex; align-items: center; gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand-logo { width: 46px; height: 46px; object-fit: contain; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-cn {
  font-family: var(--font-serif); font-size: 17px; font-weight: 700;
  color: var(--ink); letter-spacing: 1px; white-space: nowrap;
  transition: color .15s ease;
}
.brand-en { font-size: 10.5px; font-weight: 500; color: var(--ink-faint); letter-spacing: .2px; white-space: nowrap; }
.brand:hover .brand-cn { color: var(--cinnabar); }

.site-nav { margin-left: 10px; flex: 1 1 auto; display: flex; align-items: center; gap: 4px; flex-wrap: nowrap; justify-content: space-evenly; }
.site-nav-link[data-nav="admin"] { display: none; }
.hz-owner .site-nav-link[data-nav="admin"] { display: block; color: var(--cinnabar); font-weight: 700; }
.site-nav-link {
  display: block; padding: 6px 18px; border-radius: 10px; text-decoration: none;
  text-align: center; font-size: 14.5px; font-weight: 600; color: var(--ink-soft);
  line-height: 1.2; white-space: nowrap; transition: color .15s ease, background .15s ease;
}
.site-nav-link i {
  display: block; font-style: normal; font-size: 10px; font-weight: 500;
  letter-spacing: .4px; color: var(--ink-faint); margin-top: 1px;
}
.site-nav-link:hover { color: var(--cinnabar); background: var(--card); }
.site-nav-link.is-active { color: var(--cinnabar); }
.site-nav-link.is-active i { color: var(--cinnabar); opacity: .7; }


.lang-switch {
  margin-left: auto; display: inline-flex; align-items: center; gap: 2px;
  padding: 3px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line);
}
.lang-switch-btn {
  border: 0; background: transparent; font: inherit;
  font-size: 12px; font-weight: 600; line-height: 1.4;
  color: var(--ink-soft); padding: 4px 11px; border-radius: 999px;
  cursor: pointer; white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.lang-switch-btn:hover { color: var(--cinnabar); }
.lang-switch-btn.is-on { background: var(--cinnabar); color: #fff; }
.lang-switch-btn.is-on:hover { color: #fff; }

.site-header .topbar-inner { max-width: none; margin: 0; padding: 0; gap: 0; flex-wrap: nowrap; }

.brand-sm { gap: 8px; margin-right: 4px; }
.brand-sm .brand-logo { width: 30px; height: 30px; }
.brand-sm .brand-cn { font-size: 14.5px; letter-spacing: .5px; }
.brand-sm .brand-en { font-size: 9.5px; }


.page { max-width: 1120px; margin: 0 auto; padding: 42px 22px 80px; }
.page-title { font-size: 30px; font-weight: 700; letter-spacing: .2px; }
.page-sub { margin-top: 6px; font-size: 14px; color: var(--ink-soft); }
.section { margin-top: 36px; }
.section-label {
  font-size: 12px; letter-spacing: 1.8px; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: 16px;
}


.home-wrap { min-height: 100vh; display: flex; flex-direction: column; position: relative; }
.home-main {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 60px 24px 40px;
  position: relative; overflow: hidden;
}

.home-main::before, .home-main::after {
  content: ''; position: absolute; border-radius: 50%; pointer-events: none; z-index: 0;
}
.home-main::before {
  width: 460px; height: 460px; left: calc(50% - 590px); top: -150px;
  background: radial-gradient(circle at 38% 38%, rgba(255, 213, 160, .48), rgba(255, 213, 160, 0) 70%);
}
.home-main::after {
  width: 520px; height: 520px; right: calc(50% - 600px); bottom: -190px;
  background: radial-gradient(circle at 60% 40%, rgba(173, 207, 240, .4), rgba(173, 207, 240, 0) 70%);
}
.home-main > * { position: relative; z-index: 1; }

.home-float {
  position: absolute; z-index: 0; pointer-events: none; user-select: none;
  filter: drop-shadow(0 12px 20px rgba(120, 90, 40, .18));
  animation: homeFloat 4.5s ease-in-out infinite alternate;
}
.home-float.fl-sun   { width: 76px; left: calc(50% - 448px); top: 84px;  --rot: -10deg; animation-delay: .3s; }
.home-float.fl-panda { width: 96px; right: calc(50% - 456px); top: 128px; --rot: 7deg; }
.home-float.fl-bus   { width: 86px; left: calc(50% - 428px); bottom: 208px; --rot: 5deg; animation-delay: 1.1s; }
@keyframes homeFloat {
  from { transform: rotate(var(--rot, 0deg)) translateY(0); }
  to   { transform: rotate(var(--rot, 0deg)) translateY(-12px); }
}
@media (max-width: 1120px) { .home-float { display: none; } }
@media (prefers-reduced-motion: reduce) { .home-float { animation: none; } }

.home-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 24px; }
.home-chip {
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 18px; font-size: 13px; font-weight: 600; color: var(--ink-soft);
  box-shadow: var(--shadow); letter-spacing: .3px;
}
.logo { display: flex; align-items: center; gap: 18px; }
.logo-img {
  width: 86px; height: 86px; object-fit: contain; flex: none;
  filter: drop-shadow(0 10px 20px rgba(63, 94, 143, .24));
}
.site-title {
  font-family: var(--font-serif);
  font-size: 38px; font-weight: 700; letter-spacing: 1px;
}
.tagline { margin-top: 16px; font-size: 15px; color: var(--ink-soft); text-align: center; }
.tagline small {
  display: block; margin-top: 5px;
  font-size: 12.5px; color: var(--ink-faint); letter-spacing: .6px;
}
.level-btns {
  
  margin-top: 56px; width: 100%; max-width: 1076px;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px;
}
.level-btn {
  display: block; text-align: center; text-decoration: none;
  background: var(--card); color: var(--cinnabar);
  border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 22px 20px; font-size: 20px; font-weight: 700; letter-spacing: .5px;
  box-shadow: var(--shadow);
  transition: transform .12s ease, border-color .15s ease, box-shadow .15s ease;
}
.level-btn:hover {
  border-color: var(--cinnabar);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(176, 58, 46, .12);
}
.level-btn:active { transform: translateY(0); }
.level-btn .ver { font-size: 0.62em; font-weight: 500; vertical-align: 2px; margin-left: 2px; opacity: .8; }


.level-btn.level-group-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; padding: 18px 16px; cursor: pointer;
}
.level-group-btn .lg-title { font-size: 20px; font-weight: 700; letter-spacing: .5px; }
.level-group-btn .lg-sub {
  font-size: 11.5px; font-weight: 500; letter-spacing: .2px;
  color: var(--ink-soft); line-height: 1.55;
}
.level-btn.level-games {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px;
}
.level-games .lg-title { font-size: 20px; font-weight: 700; letter-spacing: .5px; }
.level-games .lg-sub { font-size: 11.5px; font-weight: 500; letter-spacing: .2px; color: var(--ink-faint); line-height: 1.55; }



.series-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
.series-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 26px 16px; text-decoration: none; text-align: center;
  background: var(--card); color: var(--cinnabar);
  border: 1.5px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .12s ease, border-color .15s ease, box-shadow .15s ease;
}
.series-btn:hover {
  border-color: var(--cinnabar); transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(176, 58, 46, .12);
}
.series-btn:active { transform: translateY(0); }
.series-btn .sb-name { font-size: 20px; font-weight: 700; letter-spacing: .5px; }
.series-btn .sb-meta {
  font-size: 12px; font-weight: 600; letter-spacing: .3px; color: var(--ink-faint);
}

.series-btn.soon {
  background: #f6f4f1; color: var(--ink-faint);
  border-style: dashed; box-shadow: none; cursor: not-allowed;
}
.series-btn.soon .sb-name { color: var(--ink-soft); }
.series-btn.soon .sb-meta {
  color: #fff; background: #f59f00; border-radius: 999px; padding: 3px 12px;
  font-weight: 700; letter-spacing: .05em;
}
@media (max-width: 860px) { .series-grid { grid-template-columns: repeat(2, 1fr); } }



body.has-site-foot { display: flex; flex-direction: column; min-height: 100vh; }
body.has-site-foot > main { flex: 0 0 auto; }              

body.has-site-foot > main.page { width: 100%; }
body.has-site-foot > .topbar { flex: 0 0 auto; }
body.has-site-foot > footer.home-foot { margin-top: auto; flex: 0 0 auto; }

.home-foot { border-top: 1px solid var(--line); background: var(--card); }
.hf-in {
  max-width: 1000px; margin: 0 auto; padding: 36px 24px 24px;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 34px;
}
.hf-brand img { width: 34px; height: 34px; object-fit: contain; }
.hf-brand h4 { margin: 10px 0 4px; font-family: var(--font-serif); font-size: 17px; font-weight: 700; color: var(--ink); }
.hf-en { font-size: 12px; color: var(--en); }

html[data-lang="en"] .hf-en { display: none; }
.hf-desc { margin: 10px 0 0; font-size: 12.5px; line-height: 1.8; color: var(--ink-soft); }
.hf-col h5 { margin: 2px 0 12px; font-size: 12.5px; font-weight: 600; letter-spacing: .06em; color: var(--ink-faint); }

.hf-col > a, .hf-col > button {
  display: block; width: 100%; text-align: left; background: none; border: 0;
  font: inherit; font-size: 13px; color: var(--ink-soft); text-decoration: none;
  padding: 4px 0; cursor: pointer;
}
.hf-col > a:hover, .hf-col > button:hover { color: var(--cinnabar); }

.hf-col > a.hf-qr { display: block; width: auto; padding: 0; margin: 0 0 12px; }
.hf-qr img {
  display: block; width: 116px; height: 116px; padding: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
}
.hf-col > a.hf-xhs-btn {
  display: inline-block; width: auto; margin-top: 2px; padding: 6px 16px !important;
  border-radius: 999px; background: var(--cinnabar-soft);
  color: var(--cinnabar) !important; font-weight: 600;
}
.hf-col > a.hf-xhs-btn:hover { color: var(--cinnabar-dark) !important; }

.hf-mail {
  display: block; font-size: 11.5px; color: var(--ink-faint);
  word-break: break-all; padding: 0 0 6px; line-height: 1.5;
}
.hf-wechat {
  display: inline-block !important; width: auto !important; margin-top: 2px;
  padding: 5px 13px !important; border-radius: 999px;
  background: var(--cinnabar-soft); color: var(--cinnabar) !important; font-weight: 600;
}
.hf-wechat:hover { color: var(--cinnabar-dark) !important; }
.hf-lang { margin-top: 14px; }
.hf-lang .lang-switch { margin-left: 0; }

.hf-slogan {
  max-width: 1000px; margin: 0 auto; padding: 0 24px 12px;
  text-align: center; font-size: 11.5px; color: var(--ink-faint); letter-spacing: .02em;
}
.hf-bar { border-top: 1px solid var(--line); }
.hf-bar > div {
  max-width: 1000px; margin: 0 auto; padding: 13px 24px;
  display: flex; justify-content: center; flex-wrap: wrap; gap: 6px;
  font-size: 11.5px; color: var(--ink-faint); text-align: center;
}
@media (max-width: 760px) {
  .hf-in { grid-template-columns: 1fr; gap: 22px; padding: 28px 20px 18px; }
}

@media (max-width: 480px) {
  .level-btns { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .level-btn { padding: 16px 10px; font-size: 17px; }
  .level-group-btn .lg-title, .level-games .lg-title { font-size: 17px; }
  .level-group-btn .lg-sub, .level-games .lg-sub { font-size: 10.5px; }
  
  .series-grid { grid-template-columns: 1fr; gap: 10px; }
  .series-btn { padding: 18px 12px; gap: 6px; }
  .series-btn .sb-name { font-size: 17px; }
}


.float-back {
  position: fixed; right: 24px; bottom: 24px; z-index: 99;
  padding: 12px 22px; border-radius: 999px;
  background: var(--cinnabar); color: #fff;
  border: none; font-size: 15px; font-weight: 600; letter-spacing: .5px;
  cursor: pointer; box-shadow: 0 8px 22px rgba(176, 58, 46, .28);
  transition: transform .12s ease, background .15s ease;
}
.float-back:hover { background: var(--cinnabar-dark, #8f2d23); transform: translateY(-2px); }
.float-back:active { transform: translateY(0); }

body.gm-topback .float-back { display: none; }


.bingo-panel {
  position: relative;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 28px 32px; box-shadow: var(--shadow);
}
.bingo-panel-title { font-size: 22px; font-weight: 700; }
.bingo-panel-sub { margin-top: 6px; font-size: 14px; color: var(--ink-soft); }
.bingo-controls { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.bingo-size-group { display: inline-flex; gap: 6px; }
.bingo-size-btn {
  padding: 8px 16px; border-radius: 999px;
  background: var(--paper); color: var(--ink-soft);
  border: 1px solid var(--line); font-size: 14px; font-weight: 600; cursor: pointer;
}
.bingo-size-btn.active { background: var(--cinnabar); color: #fff; border-color: var(--cinnabar); }
.bingo-gen, .bingo-print {
  padding: 9px 20px; border-radius: 999px;
  background: var(--cinnabar); color: #fff; border: none;
  font-size: 14px; font-weight: 600; cursor: pointer;
}
.bingo-print { background: var(--ink); }

.bg-qlen-row { display: inline-flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.bg-qlen-label { font-size: 14px; color: var(--ink-soft); font-weight: 600; }
.bg-qlen-input { width: 74px; text-align: center; }
.bg-qlen-tip {
  flex: 1 1 100%; margin: 2px 0 0; font-size: 13px; color: var(--en);
}
.bg-qlen-tip.warn { color: var(--cinnabar); }
.bingo-cards { margin-top: 24px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.bingo-card {
  background: #fff; border: 1.5px solid var(--line); border-radius: 10px;
  padding: 14px;
}
.bingo-card-title {
  text-align: center; font-size: 14px; font-weight: 700; letter-spacing: 1px;
  color: var(--cinnabar); margin-bottom: 10px;
}
.bingo-grid { display: grid; gap: 4px; }
.bingo-cell {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: 6px;
  font-family: var(--font-serif); font-size: 18px; font-weight: 500;
}


@media print {
  @page { size: A4 portrait; margin: 8mm; }
  body > * { display: none !important; }
  #bingoPrintRoot {
    display: block !important;
  }
  #bingoPrintRoot .bingo-cards {
    display: grid !important; grid-template-columns: repeat(2, 1fr) !important;
    gap: 5mm !important; width: 100%;
  }
  #bingoPrintRoot .bingo-card {
    break-inside: avoid; page-break-inside: avoid;
    border: 1.5px solid #333 !important; padding: 3mm !important;
    box-shadow: none !important; background: #fff !important;
  }
  #bingoPrintRoot .bingo-card-title {
    font-size: 11pt !important; margin: 0 0 2mm 0 !important;
    color: #000 !important; text-align: center;
  }
  #bingoPrintRoot .bingo-grid { gap: 1mm !important; }
  #bingoPrintRoot .bingo-cell {
    font-size: 11pt !important; border: 1px solid #333 !important;
    background: #fff !important; padding: 1mm 0;
  }
}
#bingoPrintRoot { display: none; }


.shuffle-btn {
  position: absolute; top: 28px; right: 28px;
  padding: 7px 14px; border-radius: 999px;
  background: var(--paper); color: var(--ink-soft);
  border: 1px solid var(--line);
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: all .15s ease;
}
.shuffle-btn:hover { border-color: var(--cinnabar); color: var(--cinnabar); }

.fc-panel, .ptc-panel, .ctp-panel, .mc-panel, .sc-panel,
.ptc2-panel, .ctp2-panel, .ptc3-panel, .qr-panel, .hw-panel { position: relative; }


.hw-panel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.hw-panel-title { font-size: 22px; font-weight: 700; }
.hw-panel-sub { margin-top: 6px; font-size: 14px; color: var(--ink-soft); }
.hw-nav-row { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 16px; }
.hw-nav-row button {
  padding: 7px 14px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  font-size: 13px; font-weight: 600; cursor: pointer;
}
.hw-char-tabs { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.hw-char {
  width: 48px; height: 48px; border-radius: 10px;
  background: #fff; border: 1px solid var(--line);
  font-family: var(--font-serif); font-size: 24px; font-weight: 500;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.hw-char.active { background: var(--cinnabar); color: #fff; border-color: var(--cinnabar); }
.hw-tabs { display: flex; gap: 6px; margin-top: 10px; }
.hw-tab {
  flex: 1; padding: 8px 4px; border-radius: 8px;
  background: #fff; border: 1px solid var(--line);
  font-size: 12.5px; font-weight: 600; color: var(--ink-soft); cursor: pointer;
}
.hw-tab.active { background: var(--cinnabar); color: #fff; border-color: var(--cinnabar); }
.hw-pinyin-en { text-align: center; font-size: 14px; color: var(--ink-soft); margin-top: 8px; }
.hw-canvas-wrap {
  margin: 12px auto 0; width: 320px; height: 320px;
  background: #fff; border: 1.5px solid var(--line); border-radius: 10px;
  overflow: hidden;
}
.hw-two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 12px; }
.hw-col { text-align: center; }
.hw-col-label { font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
.hw-watch-wrap { margin: 0 auto; }
#hwWriter, #hwWatchWriter { width: 280px; height: 280px; margin: 10px auto; }
#hwWriter svg, #hwWatchWriter svg { display: block; }
#hwWriter svg path { transition: fill .2s; }
.hw-canvas-wrap { position: relative; }

.hw-grid-bg {
  position: absolute; top: 10px; left: 50%;
  transform: translateX(-50%);
  width: 280px; height: 280px;
  pointer-events: none; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='280' height='280'%3E%3Crect x='0.75' y='0.75' width='278.5' height='278.5' fill='none' stroke='rgba(176,58,46,0.45)' stroke-width='1.5'/%3E%3Cg stroke='rgba(176,58,46,0.3)' stroke-width='1' stroke-dasharray='7 6'%3E%3Cline x1='140' y1='0' x2='140' y2='280'/%3E%3Cline x1='0' y1='140' x2='280' y2='140'/%3E%3Cline x1='0' y1='0' x2='280' y2='280'/%3E%3Cline x1='280' y1='0' x2='0' y2='280'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 100% 100%;
}
#hwWriter, #hwWatchWriter { position: relative; z-index: 1; }
#hwInkOverlay {
  position: absolute; top: 10px; left: 50%;
  transform: translateX(-50%);
  width: 280px; height: 280px;
  pointer-events: none; z-index: 2;
}
#hwFreeDraw {
  position: absolute; top: 10px; left: 10px;
  width: 280px; height: 280px;
  touch-action: none; cursor: crosshair;
}

#hwWriter, #hwWriter svg,
.fs-board, .fs-draw,
.sp-piece, .sp-slot {
  touch-action: none;
  -webkit-user-select: none; user-select: none;
  -webkit-touch-callout: none;
}
.hw-hint { text-align: center; font-size: 13px; color: var(--ink-faint); margin-top: 8px; transition: color .15s; }

.hw-canvas-wrap.is-good { border-color: #2f9e6b; background: #f0faf4; }
.hw-canvas-wrap.is-bad  { border-color: #d64545; background: #fdf2f2; }
.hw-hint.is-good { color: #2f9e6b; font-weight: 700; }
.hw-hint.is-bad  { color: #d64545; font-weight: 700; }
.hw-actions { display: flex; justify-content: center; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.hw-actions button {
  padding: 8px 18px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  font-size: 13px; font-weight: 600; cursor: pointer;
}
.hw-actions .hw-watch { background: #e67e22; color: #fff; border-color: #e67e22; }


.lesson-grid { display: grid; gap: 12px; grid-template-columns: repeat(5, 1fr); }
.lesson-btn {
  position: relative;   
  display: block; text-align: center; text-decoration: none;
  background: var(--card); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 19px 8px; font-size: 14px; font-weight: 600;
  box-shadow: var(--shadow);
  transition: transform .12s ease, border-color .15s ease, color .15s ease;
}

.lesson-btn .coming-soon.soon-chip {
  top: -8px; right: -6px;
  font-size: 11px; font-weight: 700;
  padding: 3px 9px; letter-spacing: .03em;
}

.lesson-btn .coming-soon.access-chip.chip-free { background: var(--cinnabar); }
.lesson-btn .coming-soon.access-chip.chip-pro { background: #185fa5; }
.lesson-btn:hover { border-color: var(--cinnabar); color: var(--cinnabar); transform: translateY(-2px); }
.lesson-btn:active { transform: translateY(0); }


.title-card {
  position: relative;   
  margin-top: 28px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 28px; box-shadow: var(--shadow);
}

.coming-soon {
  position: absolute; top: 14px; right: 16px;
  background: #f59f00; color: #fff;
  font-size: 13px; font-weight: 700;
  padding: 6px 14px; border-radius: 999px;
  letter-spacing: .05em; white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
  pointer-events: none;
}
@media (max-width: 640px) {
  .coming-soon { top: 10px; right: 10px; font-size: 12px; padding: 4px 10px; }
}
.title-line { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.title-line + .title-line { margin-top: 14px; }
.field-label {
  flex: none; min-width: 190px;
  font-size: 12px; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--ink-faint);
}
.cn-stack { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.cn-pinyin { font-size: 16.5px; color: var(--ink-soft); letter-spacing: .5px; min-height: 1.4em; }
.cn-title { font-family: var(--font-serif); font-size: 27px; font-weight: 500; line-height: 1.2; }
.en-title { font-size: 17px; color: var(--en); }
.tbd { color: var(--ink-faint); font-style: italic; font-size: .9em; }


.hzscope {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-sm); box-shadow: var(--shadow);
  padding: 14px 16px; margin-bottom: 16px;
}
.hzscope-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.hzscope-label { font-size: 14px; font-weight: 600; color: var(--ink); }
.hzscope-count { font-size: 12.5px; color: var(--en); font-weight: 600; }
.hzscope-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hzscope-chip {
  font-family: var(--font-serif); font-size: 16px; line-height: 1;
  padding: 8px 12px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  transition: background .12s, border-color .12s, color .12s;
}
.hzscope-chip:hover { border-color: var(--cinnabar); }
.hzscope-chip.on {
  background: var(--cinnabar); border-color: var(--cinnabar);
  color: #fff; font-weight: 600;
}
.hzscope-ops { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 11px; }
.hzscope-btn {
  font-family: inherit; font-size: 12.5px; padding: 5px 11px; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: transparent; color: var(--en);
}
.hzscope-btn:hover { border-color: var(--cinnabar); color: var(--cinnabar); }
.hzscope-hint { font-size: 12px; color: var(--ink-faint); line-height: 1.5; }
.hzscope-hint.warn { color: var(--cinnabar, #c0392b); }

.func-grid { display: grid; gap: 12px; grid-template-columns: repeat(6, 1fr); }
.func-btn {
  display: block; width: 100%; text-align: center; text-decoration: none;
  background: var(--card); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 20px 8px; font-size: 13.5px; font-weight: 600; line-height: 1.3;
  font-family: inherit; cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform .12s ease, border-color .15s ease, color .15s ease;
}
.func-btn:hover { border-color: var(--cinnabar); color: var(--cinnabar); transform: translateY(-2px); }
.func-btn:active { transform: translateY(0); }
.func-btn.active {
  border-color: var(--cinnabar); color: var(--cinnabar);
  background: var(--cinnabar-soft); transform: translateY(0);
}

.func-btn.disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.func-btn.disabled:hover { border-color: var(--line); color: var(--ink); transform: none; }
.func-btn.disabled .fn-note { display: inline-block; margin-left: 6px; font-size: 11px; color: var(--ink-faint); font-weight: 400; }


.func-group {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 8px;
  margin-top: 14px;
  font-size: 13.5px; font-weight: 600; letter-spacing: .3px;
  color: var(--ink);
}
.func-group:first-child { margin-top: 0; }
.func-group::before {
  content: ''; width: 3px; height: 14px; border-radius: 2px;
  background: var(--cinnabar); flex: none;
}
.fn-cn { display: block; }
.fn-en {
  display: block; margin-top: 5px;
  font-size: 12px; font-weight: 400; line-height: 1.4;
  color: var(--ink-faint); letter-spacing: .2px;
}
.func-btn .fn-en { margin-top: 4px; font-size: 11.5px; }
.page-title .fn-en { font-size: 13px; margin-top: 6px; }
.fn-en-desc { display: block; margin-top: 6px; font-size: 12.5px; line-height: 1.55; color: var(--ink-faint); }
.func-content { margin-top: 28px; }


.func-desc { margin-top: 10px; font-size: 15px; color: var(--ink-soft); }
.empty-card {
  background: var(--card); border: 1.5px dashed var(--line);
  border-radius: var(--radius); padding: 68px 28px;
  text-align: center; color: var(--ink-soft);
}
.empty-card .big { font-size: 18px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.empty-card p { font-size: 14.5px; }
.empty-card .cn-hint { margin-top: 16px; font-size: 13px; color: var(--ink-faint); }


.fc-panel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 28px 32px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.fc-panel-head { align-self: stretch; }
.fc-panel-title { font-size: 22px; font-weight: 700; }
.fc-panel-sub { margin-top: 6px; font-size: 14px; color: var(--ink-soft); }
.fc-card {
  width: 100%; max-width: 380px; min-height: 500px;
  background: transparent; border: none; border-radius: var(--radius);
  padding: 0; cursor: pointer; text-align: center;
  font-family: inherit;
  perspective: 1200px;
}
.fc-card:hover { }
.fc-inner {
  position: relative; width: 100%; height: 100%; min-height: 500px;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
}
.fc-card.revealed .fc-inner { transform: rotateY(180deg); }
.fc-face {
  position: absolute; inset: 0;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
}
.fc-face-back { transform: rotateY(180deg); }
.fc-img {
  width: 100%; height: 300px;
  background: var(--paper); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.fc-img img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.fc-img-placeholder { color: var(--ink-faint); font-size: 15px; }
.fc-hanzi-front { font-family: var(--font-serif); font-size: 46px; font-weight: 500; line-height: 1.2; }

.fc-back { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; }
.fc-pinyin { font-size: 15px; color: var(--cinnabar); letter-spacing: .5px; }
.fc-hanzi { font-family: var(--font-serif); font-size: 54px; font-weight: 500; line-height: 1.2; }

.fc-speak {
  font-family: var(--font-sans); font-size: 14px; font-weight: 600;
  color: #fff; background: var(--cinnabar); border: none;
  border-radius: 999px; padding: 8px 18px; cursor: pointer;
  transition: opacity .15s ease, transform .15s ease;
}
.fc-speak:hover { opacity: .9; }
.fc-speak:active { transform: scale(.96); }
.fc-english { font-size: 15px; color: var(--en); }


.ptc-panel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 28px 32px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.ptc-panel-head { align-self: stretch; }
.ptc-panel-title { font-size: 22px; font-weight: 700; }
.ptc-panel-sub { margin-top: 6px; font-size: 14px; color: var(--ink-soft); }
.ptc-panel-sub-en { display: block; margin-top: 3px; font-size: 12.5px; color: var(--ink-faint); }
.ptc-stage { display: flex; flex-direction: column; align-items: center; gap: 16px; width: 100%; }
.ptc-counter { font-size: 15px; color: var(--ink-soft); }
.ptc-feedback { min-height: 24px; font-size: 17px; font-weight: 600; }
.ptc-feedback.good { color: #2e7d32; }
.ptc-feedback.bad { color: var(--cinnabar); }
.ptc-qcard {
  width: 100%; max-width: 360px;
  background: var(--paper); border-radius: 10px; overflow: hidden;
}
.ptc-qcard img { width: 100%; height: 260px; object-fit: cover; display: block; }

.ptc-enrow {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; max-width: 360px; min-height: 34px;
}
.ptc-en-btn {
  padding: 6px 16px; border-radius: 999px; flex: none;
  background: var(--card); border: 1px solid var(--line); color: var(--ink-soft);
  font-family: var(--font-sans); font-size: 13px; font-weight: 500; cursor: pointer;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.ptc-en-btn:hover { border-color: var(--cinnabar); color: var(--cinnabar); }
.ptc-en-btn.is-on { background: var(--cinnabar); border-color: var(--cinnabar); color: #fff; }
.ptc-en-text { font-size: 14px; color: var(--ink); text-align: left; }
.ptc-en-text[hidden] { display: none; }
.ptc-options {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  width: 100%; max-width: 420px;
}
.ptc-opt {
  padding: 18px 12px; font-family: var(--font-serif);
  font-size: 30px; font-weight: 700;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  cursor: pointer; color: var(--ink);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.ptc-opt-letter {
  font-family: var(--font-sans); font-size: 14px; font-weight: 600;
  color: var(--ink-faint); letter-spacing: 1px;
}
.ptc-opt:hover { border-color: var(--cinnabar); }
.ptc-opt.correct { background: #e8f5e9; border-color: #4caf50; color: #2e7d32; }
.ptc-opt.wrong { background: #fdecea; border-color: var(--cinnabar); color: var(--cinnabar); animation: ptc-shake .4s; }
@keyframes ptc-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}
.ptc-done { text-align: center; padding: 40px 0; }
.ptc-done-title { font-size: 28px; font-weight: 700; }
.ptc-done-count { margin-top: 8px; font-size: 16px; color: var(--ink-soft); }
.ptc-done-btns {
  display: flex; gap: 12px; justify-content: center; margin-top: 22px; flex-wrap: wrap;
}
.ptc-done-btn {
  padding: 10px 28px; border-radius: 999px; flex: none;
  background: var(--card); border: 1px solid var(--line); color: var(--ink-soft);
  font-family: var(--font-sans); font-size: 15px; font-weight: 500; cursor: pointer;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.ptc-done-btn:hover { border-color: var(--cinnabar); color: var(--cinnabar); }
.ptc-done-btn.is-primary { background: var(--cinnabar); border-color: var(--cinnabar); color: #fff; }
.ptc-done-btn.is-primary:hover { background: var(--cinnabar-dark); border-color: var(--cinnabar-dark); color: #fff; }


.ctp-panel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 28px 32px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.ctp-panel-head { align-self: stretch; }
.ctp-panel-title { font-size: 22px; font-weight: 700; }
.ctp-panel-sub { margin-top: 6px; font-size: 14px; color: var(--ink-soft); }
.ctp-stage { display: flex; flex-direction: column; align-items: center; gap: 16px; width: 100%; }
.ctp-counter { font-size: 15px; color: var(--ink-soft); }
.ctp-word {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  font-family: var(--font-serif); font-size: 56px; font-weight: 500;
  line-height: 1.2; color: var(--ink);
}
.ctp-spk {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 999px; padding: 0;
  background: transparent; border: 1px solid var(--line); color: var(--cinnabar);
  cursor: pointer; transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.ctp-spk:hover { border-color: var(--cinnabar); background: rgba(176, 58, 46, 0.08); }
.ctp-spk svg { display: block; }
.ctp-options {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  width: 100%; max-width: 440px;
}
.ctp-opt {
  padding: 0; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  cursor: pointer; display: flex; flex-direction: column;
  transition: border-color .15s ease;
}
.ctp-opt img { width: 100%; height: 170px; object-fit: cover; display: block; }
.ctp-opt-letter {
  padding: 8px; font-family: var(--font-sans);
  font-size: 14px; font-weight: 600; color: var(--ink-faint);
  text-align: center; letter-spacing: 1px;
}
.ctp-opt:hover { border-color: var(--cinnabar); }
.ctp-opt.correct { border-color: #4caf50; }
.ctp-opt.correct .ctp-opt-letter { color: #2e7d32; }
.ctp-opt.wrong { border-color: var(--cinnabar); animation: ptc-shake .4s; }
.ctp-feedback { min-height: 24px; font-size: 17px; font-weight: 600; }
.ctp-feedback.good { color: #2e7d32; }
.ctp-feedback.bad { color: var(--cinnabar); }
.ctp-done { text-align: center; padding: 40px 0; }
.ctp-done-title { font-size: 28px; font-weight: 700; }
.ctp-done-count { margin-top: 8px; font-size: 16px; color: var(--ink-soft); }
.ctp-done-btns {
  display: flex; gap: 12px; justify-content: center; margin-top: 22px; flex-wrap: wrap;
}
.ctp-done-btn {
  padding: 10px 28px; border-radius: 999px; flex: none;
  background: var(--card); border: 1px solid var(--line); color: var(--ink-soft);
  font-family: var(--font-sans); font-size: 15px; font-weight: 500; cursor: pointer;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.ctp-done-btn:hover { border-color: var(--cinnabar); color: var(--cinnabar); }
.ctp-done-btn.is-primary { background: var(--cinnabar); border-color: var(--cinnabar); color: #fff; }
.ctp-done-btn.is-primary:hover { background: var(--cinnabar-dark); border-color: var(--cinnabar-dark); color: #fff; }


.mc-panel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 28px 32px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.mc-panel-head { align-self: stretch; }
.mc-panel-title { font-size: 22px; font-weight: 700; }
.mc-panel-sub { margin-top: 6px; font-size: 14px; color: var(--ink-soft); }
.mc-stage { display: flex; flex-direction: column; align-items: center; gap: 16px; width: 100%; min-height: 320px; }
.mc-counter { font-size: 15px; color: var(--ink-soft); }
.mc-memword {
  font-family: var(--font-serif); font-size: 72px; font-weight: 500;
  line-height: 1.2; color: var(--ink); padding: 40px 0;
}
.mc-prompt { font-size: 17px; font-weight: 600; color: var(--ink); }
.mc-options {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  width: 100%; max-width: 440px;
}
.mc-opt {
  padding: 18px 12px; font-family: var(--font-serif);
  font-size: 30px; font-weight: 700;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  cursor: pointer; color: var(--ink);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.mc-opt-letter {
  font-family: var(--font-sans); font-size: 14px; font-weight: 600;
  color: var(--ink-faint); letter-spacing: 1px;
}
.mc-opt:hover { border-color: var(--cinnabar); }
.mc-opt.correct { border-color: #4caf50; background: #e8f5e9; }
.mc-opt.correct .mc-opt-letter { color: #2e7d32; }
.mc-opt.correct .mc-opt-text { color: #2e7d32; }
.mc-opt.wrong { border-color: var(--cinnabar); animation: ptc-shake .4s; }
.mc-feedback { min-height: 80px; text-align: center; }
.mc-fb-good { font-size: 18px; font-weight: 700; color: #2e7d32; }
.mc-fb-word { font-family: var(--font-serif); font-size: 40px; font-weight: 500; color: var(--ink); margin-top: 6px; }
.mc-fb-en { font-size: 16px; color: var(--en); margin-top: 2px; }
.mc-fb-bad { font-size: 17px; font-weight: 600; color: var(--cinnabar); }
.mc-done { text-align: center; padding: 40px 0; }
.mc-done-title { font-size: 28px; font-weight: 700; }
.mc-done-count { margin-top: 8px; font-size: 16px; color: var(--ink-soft); }
.mc-again {
  margin-top: 22px; padding: 10px 30px; border-radius: 999px;
  background: var(--cinnabar); color: #fff; border: none;
  font-size: 15px; cursor: pointer; transition: background .15s ease;
}
.mc-again:hover { background: var(--cinnabar-dark); }


.sc-panel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 28px 32px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.sc-panel-head { align-self: stretch; }
.sc-panel-title { font-size: 22px; font-weight: 700; }
.sc-panel-sub { margin-top: 6px; font-size: 14px; color: var(--ink-soft); }
.sc-stage { display: flex; flex-direction: column; align-items: center; gap: 16px; width: 100%; min-height: 300px; }
.sc-top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; max-width: 440px;
}
.sc-counter { font-size: 15px; color: var(--ink-soft); }
.sc-time {
  font-size: 15px; font-weight: 600; color: var(--ink);
  font-variant-numeric: tabular-nums; font-family: var(--font-sans);
  background: #f3f1ea; border: 1px solid var(--line); border-radius: 999px;
  padding: 4px 12px; min-width: 64px; text-align: center;
}
.sc-skip {
  padding: 5px 16px; border-radius: 999px; border: 1px dashed var(--cinnabar);
  background: #fff; color: var(--cinnabar); font-size: 13px; cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.sc-skip:hover { background: var(--cinnabar-soft); }
.sc-skip:disabled { opacity: .45; cursor: not-allowed; }
.sc-controls { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; }
.sc-ctl-row { display: flex; gap: 10px; align-items: center; justify-content: center; }
.sc-start {
  padding: 9px 26px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); font-size: 14px; font-weight: 600; cursor: pointer;
  transition: border-color .15s ease, color .15s ease;
}
.sc-start:hover { border-color: var(--cinnabar); color: var(--cinnabar); }
.sc-restart {
  padding: 9px 20px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); font-size: 14px; cursor: pointer;
  transition: border-color .15s ease, color .15s ease;
}
.sc-restart:hover { border-color: var(--cinnabar); color: var(--cinnabar); }
.sc-tip { margin: 0; font-size: 13px; color: var(--ink-soft); min-height: 1px; }
.sc-opt:disabled { opacity: .5; cursor: not-allowed; }
.sc-hint {
  font-size: 18px; color: var(--ink-soft); letter-spacing: .5px;
}
.sc-en { color: var(--en); }
.sc-options {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  width: 100%; max-width: 440px;
}
.sc-opt {
  padding: 22px 12px; font-family: var(--font-serif);
  font-size: 44px; font-weight: 700;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  cursor: pointer; color: var(--ink);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.sc-opt-letter {
  font-family: var(--font-sans); font-size: 14px; font-weight: 600;
  color: var(--ink-faint); letter-spacing: 1px;
}
.sc-opt:hover { border-color: var(--cinnabar); }
.sc-opt.correct { border-color: #4caf50; background: #e8f5e9; }
.sc-opt.correct .sc-opt-text { color: #2e7d32; }
.sc-opt.wrong { border-color: var(--cinnabar); animation: ptc-shake .4s; }
.sc-feedback { min-height: 24px; font-size: 17px; font-weight: 600; }
.sc-feedback.good { color: #2e7d32; }
.sc-feedback.bad { color: var(--cinnabar); }
.sc-done { text-align: center; padding: 40px 0; }
.sc-done-title { font-size: 28px; font-weight: 700; }
.sc-done-count { margin-top: 8px; font-size: 16px; color: var(--ink-soft); }
.sc-done-time { margin-top: 6px; font-size: 18px; font-weight: 700; color: var(--ink); }
.sc-again {
  margin-top: 22px; padding: 10px 30px; border-radius: 999px;
  background: var(--cinnabar); color: #fff; border: none;
  font-size: 15px; cursor: pointer; transition: background .15s ease;
}
.sc-again:hover { background: var(--cinnabar-dark); }


.ptc2-panel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 28px 32px; box-shadow: var(--shadow);
}
.ptc2-panel-head { margin-bottom: 18px; }
.ptc2-panel-title { font-size: 22px; font-weight: 700; }
.ptc2-panel-sub { margin-top: 6px; font-size: 14px; color: var(--ink-soft); }
.ptc2-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
@media (max-width: 720px) {
  .ptc2-grid { grid-template-columns: repeat(2, 1fr); }
}
.ptc2-card {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px; background: var(--paper);
}
.ptc2-label { font-size: 11px; letter-spacing: 1.5px; color: var(--ink-faint); }
.ptc2-pinyin {
  margin-top: 4px; font-size: 22px; font-weight: 700; color: var(--ink);
}
.ptc2-en { font-size: 14px; font-weight: 500; color: var(--en); }
.ptc2-input {
  margin-top: 10px; width: 100%; box-sizing: border-box;
  padding: 10px 12px; font-family: var(--font-serif); font-size: 20px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff;
  outline: none; color: var(--ink);
}
.ptc2-input:focus { border-color: var(--cinnabar); }
.ptc2-input.correct { border-color: #4caf50; background: #e8f5e9; color: #2e7d32; }
.ptc2-input.wrong { border-color: var(--cinnabar); }
.ptc2-answer { margin-top: 8px; font-size: 14px; font-weight: 600; color: var(--cinnabar); }
.ptc2-answer.hidden { display: none; }
.ptc2-actions { margin-top: 22px; display: flex; justify-content: center; gap: 12px; }
.ptc2-check, .ptc2-again {
  padding: 10px 28px; border-radius: 999px; font-size: 15px; cursor: pointer;
  transition: background .15s ease;
}
.ptc2-check { background: var(--cinnabar); color: #fff; border: none; }
.ptc2-check:hover { background: var(--cinnabar-dark); }
.ptc2-again { background: var(--paper); color: var(--ink); border: 1px solid var(--line); }
.ptc2-again:hover { background: #eee; }
.ptc2-controls { display: flex; gap: 10px; justify-content: center; margin-bottom: 14px; }
.ptc2-btn {
  padding: 7px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); font-size: 13px; cursor: pointer;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.ptc2-btn:hover:not(:disabled) { border-color: var(--cinnabar); color: var(--cinnabar); }
.ptc2-btn.active { background: var(--cinnabar); border-color: var(--cinnabar); color: #fff; }
.ptc2-btn:disabled { opacity: .45; cursor: not-allowed; }
.ptc2-btn.ptc2-primary { background: var(--cinnabar); border-color: var(--cinnabar); color: #fff; }
.ptc2-btn.ptc2-primary:hover { background: var(--cinnabar-dark); }
.ptc2-times { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 10px; }
.ptc2-rule { margin: 0 0 18px; text-align: center; font-size: 13px; color: var(--ink-soft); }
.ptc2-stage { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; min-height: 280px; }
.ptc2-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; max-width: 440px; }
.ptc2-clock {
  font-size: 15px; font-weight: 600; color: var(--ink);
  font-variant-numeric: tabular-nums; font-family: var(--font-sans);
  background: #f3f1ea; border: 1px solid var(--line); border-radius: 999px;
  padding: 4px 12px; min-width: 64px; text-align: center;
}
.ptc2-input-row { display: flex; flex-direction: column; gap: 12px; align-items: center; width: 100%; max-width: 440px; }
.ptc2-input-row .ptc2-input { margin-top: 0; width: auto; min-width: 110px; text-align: center; }
.ptc2-input-row .ptc2-check { white-space: nowrap; padding-left: 30px; padding-right: 30px; }
.ptc2-feedback { margin: 0; min-height: 20px; font-size: 15px; font-weight: 600; }
.ptc2-feedback.good { color: #2f9e6b; }
.ptc2-feedback.bad { color: var(--cinnabar); }
.ptc2-feedback.info { color: var(--en); }
.ptc2-input.revealed { border-color: var(--en); color: var(--en); }

.ptc2-topbar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  width: 100%; max-width: 440px; margin: 0 auto 16px;
  min-width: 0; box-sizing: border-box;
}

.ptc2-bar-l {
  display: flex; align-items: center; gap: 10px;
  flex: 1 1 auto; min-width: 0; flex-wrap: nowrap;
}
.ptc2-topbar .ptc2-counter {
  font-size: 14px; font-weight: 600; color: var(--ink-soft);
  white-space: nowrap; margin-right: 2px;
}

@media (max-width: 420px) {
  .ptc2-topbar { gap: 8px; }
  .ptc2-bar-l { gap: 7px; flex-wrap: wrap; row-gap: 8px; }
  .ptc2-topbar .ptc2-counter { font-size: 13px; }
  .ptc2-topbar .ptc2-btn { padding: 6px 11px; font-size: 12.5px; }
}
.ptc2-timer {
  margin-left: auto; flex: none;
  width: 52px; height: 52px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #f3f1ea; border: 2px solid var(--cinnabar); color: var(--cinnabar);
  font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums;
  font-family: var(--font-sans);
}
.ptc2-custom { display: inline-flex; align-items: center; gap: 6px; }
.ptc2-custom.hidden { display: none; }
.ptc2-custom-val { font-size: 13px; color: var(--ink); min-width: 38px; text-align: center; }
.ptc2-step { padding: 4px 10px; font-size: 15px; line-height: 1; }
.ptc2-overlay { position: fixed; inset: 0; z-index: 1200; background: rgba(0,0,0,.45); display: none; align-items: center; justify-content: center; padding: 20px; }
.ptc2-overlay.show { display: flex; }
.ptc2-dialog { background: #fff; border-radius: 18px; padding: 28px 30px; max-width: 320px; width: 100%; text-align: center; box-shadow: 0 12px 36px rgba(0,0,0,.25); }
.ptc2-dialog-title { margin: 0 0 6px; font-size: 24px; font-weight: 700; color: var(--ink); }
.ptc2-dialog-sub { margin: 0 0 6px; font-size: 15px; color: var(--ink-soft); }
.ptc2-dialog-sub b { color: var(--cinnabar); font-size: 22px; }
.ptc2-dialog-time { margin: 0 0 18px; font-size: 14px; color: var(--ink-soft); }
.ptc2-dialog-actions { display: flex; gap: 10px; justify-content: center; }


.ctp2-panel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 28px 32px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.ctp2-panel-head { align-self: stretch; }
.ctp2-panel-title { font-size: 22px; font-weight: 700; }
.ctp2-panel-sub { margin-top: 6px; font-size: 14px; color: var(--ink-soft); }
.ctp2-stage { display: flex; flex-direction: column; align-items: center; gap: 16px; width: 100%; min-height: 320px; }
.ctp2-counter { font-size: 15px; color: var(--ink-soft); }
.ctp2-word {
  font-family: var(--font-serif); font-size: 72px; font-weight: 500;
  line-height: 1.2; color: var(--ink);
}
.ctp2-options {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  width: 100%; max-width: 440px;
}
.ctp2-opt {
  padding: 18px 12px; font-size: 22px; font-weight: 600;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  cursor: pointer; color: var(--ink);
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.ctp2-opt:hover { border-color: var(--cinnabar); }
.ctp2-opt.correct { border-color: #4caf50; background: #e8f5e9; color: #2e7d32; }
.ctp2-opt.wrong { border-color: var(--cinnabar); animation: ptc-shake .4s; }
.ctp2-feedback { min-height: 24px; font-size: 17px; font-weight: 600; }
.ctp2-feedback.good { color: #2e7d32; }
.ctp2-feedback.bad { color: var(--cinnabar); }
.ctp2-done { text-align: center; padding: 40px 0; }
.ctp2-done-title { font-size: 28px; font-weight: 700; }
.ctp2-done-count { margin-top: 8px; font-size: 16px; color: var(--ink-soft); }
.ctp2-again {
  margin-top: 22px; padding: 10px 30px; border-radius: 999px;
  background: var(--cinnabar); color: #fff; border: none;
  font-size: 15px; cursor: pointer; transition: background .15s ease;
}
.ctp2-again:hover { background: var(--cinnabar-dark); }


.tr-panel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 28px 32px; box-shadow: var(--shadow);
}
.tr-panel-title { font-size: 22px; font-weight: 700; }
.tr-panel-sub { margin-top: 6px; font-size: 14px; color: var(--ink-soft); }
.tr-toolbar {
  margin-top: 18px; display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 10px;
}
.tr-counter { font-size: 15px; font-weight: 600; color: var(--ink); }
.tr-toggles { display: flex; gap: 8px; }
.tr-toggle {
  padding: 7px 16px; border-radius: 8px; font-size: 13px; cursor: pointer;
  background: var(--paper); color: var(--ink-soft); border: 1px solid var(--line);
  transition: all .15s ease;
}
.tr-toggle.on { background: var(--cinnabar); color: #fff; border-color: var(--cinnabar); }

.tr-voice {
  height: 32px; max-width: 190px; padding: 0 8px;
  border-radius: 8px; border: 1px solid var(--line);
  background: var(--paper); color: var(--ink-soft);
  font-size: 13px; font-family: inherit; cursor: pointer;
}
.tr-voice:hover { border-color: var(--cinnabar); }
.tr-voice:focus { outline: 2px solid var(--cinnabar-soft); outline-offset: 1px; }
.tf-voice {
  height: 32px; max-width: 190px; padding: 0 8px;
  border-radius: 8px; border: 1px solid var(--line);
  background: var(--paper); color: var(--ink-soft);
  font-size: 13px; font-family: inherit; cursor: pointer;
}
.tf-voice:hover { border-color: var(--cinnabar); }
.tf-voice:focus { outline: 2px solid var(--cinnabar-soft); outline-offset: 1px; }
.tr-dialogue {
  margin-top: 16px; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 22px 24px;
}
.tr-line { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.tr-line:last-child { border-bottom: none; }
.tr-zh { font-family: var(--font-serif); font-size: 22px; font-weight: 500; color: var(--ink); line-height: 2.55; }

.tr-zh .hz-pyz {
  
  display: inline-block; text-align: center; vertical-align: baseline;
  line-height: 1.2; padding: 0 1px;   
}
.tr-zh .hz-py {
  display: block;
  font-family: var(--font-sans); font-size: 13px; font-weight: 500;
  line-height: 1.1; letter-spacing: .2px;
  color: var(--py-fg);
  margin-bottom: 8px;   
}
.tr-zh ruby { ruby-align: center; }
.tr-zh rt {
  font-family: var(--font-sans); font-size: 12px; font-weight: 400;
  color: var(--py-fg); line-height: 1;
}
.tr-speaker { color: var(--tr-spk-fg, var(--cinnabar)); font-weight: 700; }

.tr-spk-0 { --tr-spk-bg:#FFF3E0; --tr-spk-fg:#B25E00; --tr-spk-bd:#F0C98A; }
.tr-spk-1 { --tr-spk-bg:#E8F5E9; --tr-spk-fg:#2E7D32; --tr-spk-bd:#A5D6A7; }
.tr-spk-2 { --tr-spk-bg:#E3F2FD; --tr-spk-fg:#1565C0; --tr-spk-bd:#90CAF9; }
.tr-spk-3 { --tr-spk-bg:#FCE4EC; --tr-spk-fg:#AD1457; --tr-spk-bd:#F48FB1; }
.tr-spk-4 { --tr-spk-bg:#F3E5F5; --tr-spk-fg:#6A1B9A; --tr-spk-bd:#CE93D8; }
.tr-spk-5 { --tr-spk-bg:#FFFDE7; --tr-spk-fg:#8A6D1A; --tr-spk-bd:#FFF59D; }
.tr-spk-6 { --tr-spk-bg:#E0F7FA; --tr-spk-fg:#00838F; --tr-spk-bd:#80DEEA; }
.tr-spk-7 { --tr-spk-bg:#FBE9E7; --tr-spk-fg:#BF360C; --tr-spk-bd:#FFAB91; }
.tr-line[class*="tr-spk-"] {
  padding: 12px 16px; margin: 8px 0 0;
  background: var(--tr-spk-bg); border: 1px solid var(--tr-spk-bd);
  border-radius: var(--radius-sm);
}
.tr-line[class*="tr-spk-"]:last-child { margin-bottom: 0; }
.tr-pinyin { margin-top: 2px; font-size: 14px; color: var(--cinnabar); }
.tr-en { margin-top: 2px; font-size: 14px; color: var(--ink-soft); font-style: italic; }
.tr-nav { margin-top: 18px; display: flex; justify-content: space-between; }
.tr-nav-btn {
  padding: 9px 22px; border-radius: 999px; font-size: 14px; cursor: pointer;
  background: var(--paper); color: var(--ink); border: 1px solid var(--line);
  transition: all .15s ease;
}
.tr-nav-btn.primary { background: var(--cinnabar); color: #fff; border-color: var(--cinnabar); }
.tr-nav-btn:disabled { opacity: .4; cursor: not-allowed; }
.tr-nav-btn:not(:disabled):hover { background: var(--cinnabar-soft); }
.tr-nav-btn.primary:not(:disabled):hover { background: var(--cinnabar-dark); color: #fff; }


.tf-panel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 28px 32px; box-shadow: var(--shadow);
}
.tf-toolbar {
  margin-top: 18px; display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 10px;
}
.tf-counter { font-size: 15px; font-weight: 600; color: var(--ink); }
.tf-toggles { display: flex; gap: 8px; flex-wrap: wrap; }
.tf-toggle {
  padding: 7px 16px; border-radius: 8px; font-size: 13px; cursor: pointer;
  background: var(--paper); color: var(--ink-soft); border: 1px solid var(--line);
  transition: all .15s ease;
}
.tf-toggle.on { background: var(--cinnabar); color: #fff; border-color: var(--cinnabar); }
.tf-dialogue {
  margin-top: 16px; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 22px 24px;
}
.tf-line { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.tf-line:last-child { border-bottom: none; }
.tf-zh { font-family: var(--font-serif); font-size: 22px; font-weight: 500; color: var(--ink); line-height: 2.2; }
.tf-speaker { color: var(--tf-spk-fg, var(--cinnabar)); font-weight: 700; }

.tf-spk-0 { --tf-spk-bg:#FFF3E0; --tf-spk-fg:#B25E00; --tf-spk-bd:#F0C98A; }
.tf-spk-1 { --tf-spk-bg:#E8F5E9; --tf-spk-fg:#2E7D32; --tf-spk-bd:#A5D6A7; }
.tf-spk-2 { --tf-spk-bg:#E3F2FD; --tf-spk-fg:#1565C0; --tf-spk-bd:#90CAF9; }
.tf-spk-3 { --tf-spk-bg:#FCE4EC; --tf-spk-fg:#AD1457; --tf-spk-bd:#F48FB1; }
.tf-spk-4 { --tf-spk-bg:#F3E5F5; --tf-spk-fg:#6A1B9A; --tf-spk-bd:#CE93D8; }
.tf-spk-5 { --tf-spk-bg:#FFFDE7; --tf-spk-fg:#8A6D1A; --tf-spk-bd:#FFF59D; }
.tf-spk-6 { --tf-spk-bg:#E0F7FA; --tf-spk-fg:#00838F; --tf-spk-bd:#80DEEA; }
.tf-spk-7 { --tf-spk-bg:#FBE9E7; --tf-spk-fg:#BF360C; --tf-spk-bd:#FFAB91; }
.tf-line[class*="tf-spk-"] {
  padding: 12px 16px; margin: 8px 0 0;
  background: var(--tf-spk-bg); border: 1px solid var(--tf-spk-bd);
  border-radius: var(--radius-sm);
}
.tf-line[class*="tf-spk-"]:last-child { margin-bottom: 0; }

.tf-blank {
  display: inline-block; min-width: 2.2em; margin: 0 3px; padding: 0 4px;
  font-family: var(--font-sans); font-size: 15px; font-weight: 700; line-height: 1.6;
  text-align: center; color: var(--cinnabar);
  border: 1px dashed var(--cinnabar); border-radius: 6px;
  background: #fff; vertical-align: middle;
}
.tf-blank.correct { color: #2f9e6b; border-color: #2f9e6b; border-style: solid; background: #EAF7EF; }
.tf-blank.wrong { color: var(--cinnabar); border-color: var(--cinnabar); border-style: solid; background: #FDECEA; }
.tf-blank.shown { color: #1565C0; border-color: #90CAF9; border-style: solid; background: #E3F2FD; }
.tf-pinyin { margin-top: 2px; font-size: 14px; color: var(--cinnabar); }
.tf-en { margin-top: 2px; font-size: 14px; color: var(--ink-soft); font-style: italic; }

.tf-answer {
  margin-top: 18px; padding: 18px 20px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.tf-answer-title { margin: 0 0 12px; font-size: 15px; font-weight: 700; color: var(--ink); }
.tf-slots { display: flex; flex-wrap: wrap; gap: 12px 18px; }
.tf-slot { display: flex; align-items: center; gap: 8px; }
.tf-slot-no { font-size: 18px; font-weight: 700; color: var(--cinnabar); min-width: 1.4em; }
.tf-input {
  width: 7.5em; padding: 6px 8px; text-align: center;
  font-family: var(--font-serif); font-size: 20px; color: var(--ink);
  background: #fff; border: none; border-bottom: 2px solid var(--line);
  outline: none; transition: border-color .15s ease, color .15s ease;
}
.tf-input:focus { border-bottom-color: var(--cinnabar); }
.tf-input.correct { color: #2f9e6b; border-bottom-color: #2f9e6b; }
.tf-input.wrong { color: var(--cinnabar); border-bottom-color: var(--cinnabar); }
.tf-input.shown { color: #1565C0; border-bottom-color: #90CAF9; }
.tf-slot-ans { font-size: 13px; color: var(--cinnabar); visibility: hidden; }
.tf-slot-ans.show { visibility: visible; }
.tf-none { margin: 0; font-size: 14px; color: var(--ink-soft); }
.tf-actions { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; }
.tf-btn {
  padding: 9px 20px; border-radius: 999px; font-size: 14px; cursor: pointer;
  background: var(--paper); color: var(--ink); border: 1px solid var(--line);
  transition: all .15s ease;
}
.tf-btn.primary { background: var(--cinnabar); color: #fff; border-color: var(--cinnabar); }
.tf-btn.warn { background: var(--cinnabar-soft); color: var(--cinnabar); border-color: var(--cinnabar); }
.tf-btn.light { background: #fff; color: var(--ink-soft); }
.tf-btn.primary:hover { background: var(--cinnabar-dark); color: #fff; }
.tf-btn.warn:hover { background: var(--cinnabar-soft); }
.tf-btn.light:hover { background: var(--cinnabar-soft); }
.tf-feedback { margin-top: 12px; min-height: 20px; font-size: 15px; font-weight: 600; }
.tf-feedback.good { color: #2f9e6b; }
.tf-feedback.bad { color: var(--cinnabar); }
.tf-nav { margin-top: 18px; display: flex; justify-content: space-between; }
.tf-nav-btn {
  padding: 9px 22px; border-radius: 999px; font-size: 14px; cursor: pointer;
  background: var(--paper); color: var(--ink); border: 1px solid var(--line);
  transition: all .15s ease;
}
.tf-nav-btn.primary { background: var(--cinnabar); color: #fff; border-color: var(--cinnabar); }
.tf-nav-btn:disabled { opacity: .4; cursor: not-allowed; }
.tf-nav-btn:not(:disabled):hover { background: var(--cinnabar-soft); }
.tf-nav-btn.primary:not(:disabled):hover { background: var(--cinnabar-dark); color: #fff; }


.tc-panel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 28px 32px; box-shadow: var(--shadow);
}
.tc-panel-title { font-size: 22px; font-weight: 700; }
.tc-panel-sub { margin-top: 6px; font-size: 14px; color: var(--ink-soft); }
.tc-progress { margin-top: 14px; font-size: 14px; color: var(--ink-soft); }
.tc-bank {
  margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px;
}
.tc-chip {
  padding: 8px 16px; border-radius: 999px; font-family: var(--font-serif);
  font-size: 18px; font-weight: 600; background: #fef3cd; color: #8a6d1a;
  border: 1px solid #f0dfa0; cursor: pointer; transition: transform .1s ease;
}
.tc-chip:hover { transform: translateY(-1px); }
.tc-sentence {
  margin-top: 18px; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 22px 24px;
}
.tc-line {
  font-family: var(--font-serif); font-size: 22px; font-weight: 500;
  color: var(--ink); line-height: 2.4;
}
.tc-speaker { color: var(--cinnabar); }
.tc-blank {
  display: inline-block; min-width: 48px; min-height: 40px; padding: 4px 12px; margin: 0 4px;
  border: 2px dashed var(--line); border-radius: 999px; background: transparent;
  font-family: var(--font-serif); font-size: 18px; font-weight: 500; color: var(--ink);
  cursor: pointer; vertical-align: middle; line-height: 1.3;
}
.tc-blank.filled {
  border: 1px solid #f0dfa0; background: #fef3cd; color: #8a6d1a;
}
.tc-blank.correct { border-color: #4caf50; background: #e8f5e9; color: #2e7d32; }
.tc-blank.wrong { border-color: var(--cinnabar); background: #f9efec; color: var(--cinnabar); }
.tc-blank.empty-warn { animation: ptc-shake .4s; border-color: var(--cinnabar); }
.tc-en { margin-top: 8px; font-size: 14px; color: var(--en); font-style: italic; }
.tc-feedback { margin-top: 10px; min-height: 24px; font-size: 17px; font-weight: 600; text-align: center; }
.tc-feedback.good { color: #2e7d32; }
.tc-feedback.bad { color: var(--cinnabar); }
.tc-actions { margin-top: 18px; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.tc-btn {
  padding: 9px 22px; border-radius: 8px; font-size: 14px; cursor: pointer; border: none;
}
.tc-btn.primary { background: var(--cinnabar); color: #fff; }
.tc-btn.primary:hover { background: var(--cinnabar-dark); }
.tc-btn.warn { background: #fef3cd; color: #8a6d1a; }
.tc-btn.warn:hover { background: #fde68a; }
.tc-btn.light { background: var(--paper); color: var(--ink-soft); border: 1px solid var(--line); }
.tc-nav { margin-top: 18px; display: flex; justify-content: space-between; }
.tc-nav-btn {
  padding: 9px 22px; border-radius: 999px; font-size: 14px; cursor: pointer;
  background: var(--paper); color: var(--ink); border: 1px solid var(--line);
}
.tc-nav-btn.primary { background: var(--cinnabar); color: #fff; border-color: var(--cinnabar); }
.tc-nav-btn:disabled { opacity: .4; cursor: not-allowed; }


.ptc3-panel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 28px 32px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.ptc3-panel-head { align-self: stretch; }
.ptc3-panel-title { font-size: 22px; font-weight: 700; }
.ptc3-panel-sub { margin-top: 6px; font-size: 14px; color: var(--ink-soft); }
.ptc3-stage { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; }
.ptc3-counter { font-size: 15px; color: var(--ink-soft); }
.ptc3-qcard {
  width: 100%; max-width: 360px; border-radius: var(--radius-sm); overflow: hidden;
  border: 1px solid var(--line); position: relative;
}
.ptc3-qcard img { width: 100%; display: block; }
.ptc3-spk {
  position: absolute; right: 8px; bottom: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 999px; padding: 0;
  background: rgba(255, 255, 255, 0.86); border: 1px solid var(--line); color: var(--cinnabar);
  cursor: pointer; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.ptc3-spk:hover { border-color: var(--cinnabar); background: #fff; }
.ptc3-spk svg { display: block; }
.ptc3-clue { font-size: 17px; font-weight: 700; color: var(--en); }
.ptc3-input {
  width: 100%; max-width: 360px; padding: 12px 14px; box-sizing: border-box;
  font-family: var(--font-serif); font-size: 22px; text-align: center;
  border: 1px solid var(--line); border-radius: 8px; background: #fff; outline: none;
}
.ptc3-input:focus { border-color: var(--cinnabar); }
.ptc3-input.correct { border-color: #4caf50; background: #e8f5e9; color: #2e7d32; }
.ptc3-input.wrong { border-color: var(--cinnabar); animation: ptc-shake .4s; }
.ptc3-feedback { min-height: 24px; font-size: 17px; font-weight: 600; }
.ptc3-feedback.good { color: #2e7d32; }
.ptc3-feedback.bad { color: var(--cinnabar); }
.ptc3-done { text-align: center; padding: 40px 0; }
.ptc3-done-title { font-size: 28px; font-weight: 700; }
.ptc3-done-count { margin-top: 8px; font-size: 16px; color: var(--ink-soft); }
.ptc3-done-btns {
  display: flex; gap: 12px; justify-content: center; margin-top: 22px; flex-wrap: wrap;
}
.ptc3-done-btn {
  padding: 10px 28px; border-radius: 999px; flex: none;
  background: var(--card); border: 1px solid var(--line); color: var(--ink-soft);
  font-family: var(--font-sans); font-size: 15px; font-weight: 500; cursor: pointer;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.ptc3-done-btn:hover { border-color: var(--cinnabar); color: var(--cinnabar); }
.ptc3-done-btn.is-primary { background: var(--cinnabar); border-color: var(--cinnabar); color: #fff; }
.ptc3-done-btn.is-primary:hover { background: var(--cinnabar-dark); border-color: var(--cinnabar-dark); color: #fff; }


.hz-finish {
  text-align: center; padding: 28px 16px;
}
.hz-finish-title {
  font-size: 26px; font-weight: 700; color: var(--ink); margin: 0 0 6px;
}
.hz-finish-count {
  font-size: 16px; color: var(--ink-soft); margin: 0 0 4px;
}
.hz-finish-btns {
  display: flex; gap: 12px; justify-content: center; margin-top: 22px; flex-wrap: wrap;
}
.hz-finish-btn {
  padding: 10px 28px; border-radius: 999px; flex: none;
  background: var(--card); border: 1px solid var(--line); color: var(--ink-soft);
  font-family: var(--font-sans); font-size: 15px; font-weight: 500; cursor: pointer;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.hz-finish-btn:hover { border-color: var(--cinnabar); color: var(--cinnabar); }
.hz-finish-btn.is-primary { background: var(--cinnabar); border-color: var(--cinnabar); color: #fff; }
.hz-finish-btn.is-primary:hover { background: var(--cinnabar-dark); border-color: var(--cinnabar-dark); color: #fff; }


.qr-panel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 28px 32px; box-shadow: var(--shadow);
}
.qr-panel-title { font-size: 22px; font-weight: 700; }
.qr-panel-sub { margin-top: 6px; font-size: 14px; color: var(--ink-soft); }
.qr-card {
  margin-top: 18px; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; min-height: 360px;
}
.qr-top {
  display: flex; justify-content: space-between; font-size: 14px; color: var(--ink-soft);
}
.qr-body {
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  padding: 24px 0;
}
.qr-ready {
  font-size: 48px; font-weight: 700; color: var(--ink);
}
.qr-start {
  padding: 10px 30px; border-radius: 999px; background: var(--cinnabar); color: #fff;
  border: none; font-size: 15px; cursor: pointer;
}
.qr-start:hover { background: var(--cinnabar-dark); }
.qr-word {
  font-family: var(--font-serif); font-size: 64px; font-weight: 500; color: var(--ink);
}
.qr-opts {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; max-width: 440px;
}
.qr-opt {
  padding: 14px; font-size: 17px; font-weight: 600;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  cursor: pointer; color: var(--ink); transition: all .15s ease;
}
.qr-opt:hover { border-color: var(--cinnabar); }
.qr-opt.correct { border-color: #4caf50; background: #e8f5e9; color: #2e7d32; }
.qr-opt.wrong { border-color: var(--cinnabar); animation: ptc-shake .4s; }
.qr-result-title { font-size: 36px; font-weight: 700; }
.qr-result-line { font-size: 17px; color: var(--ink-soft); }


.vl-panel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 28px 32px; box-shadow: var(--shadow);
}
.vl-panel-title { font-size: 22px; font-weight: 700; }
.vl-panel-sub { margin-top: 6px; font-size: 14px; color: var(--ink-soft); }
.vl-toggles { margin-top: 16px; display: flex; gap: 10px; flex-wrap: wrap; }
.vl-toggle {
  padding: 8px 16px; border-radius: 999px; font-size: 14px; cursor: pointer;
  background: var(--paper); color: var(--ink); border: 1px solid var(--line);
}
.vl-toggle:hover { border-color: var(--cinnabar); color: var(--cinnabar); }
.vl-table-wrap { margin-top: 14px; overflow-x: auto; }
.vl-table {
  width: 100%; border-collapse: collapse; font-size: 15px;
}
.vl-table thead th {
  background: var(--ink); color: #fff; text-align: left;
  padding: 10px 12px; font-weight: 600; font-size: 14px;
}
.vl-table tbody td {
  padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle;
}
.vl-table tbody tr:hover { background: var(--paper); }

.vl-col-no { width: 56px; text-align: center; color: var(--ink-soft); }

.vl-table thead th.vl-col-no { text-align: center; }
.vl-col-pos { width: 64px; color: var(--ink-soft); }
.vl-col-zh { font-family: var(--font-serif); font-size: 20px; font-weight: 500; white-space: nowrap; letter-spacing: -0.5px; }
.vl-col-py { color: var(--cinnabar); font-size: 14px; }
.vl-col-en { color: var(--en); }
.vl-col-audio { width: 60px; text-align: center; }
.vl-audio {
  width: 36px; height: 36px; border-radius: 50%; border: none;
  background: #fbd34d; cursor: pointer; font-size: 16px;
}
.vl-audio:hover { background: #f5c518; }
.hidden-col { display: none !important; }
.vl-actions { margin-top: 18px; text-align: center; }
.vl-print {
  padding: 10px 26px; border-radius: 999px; font-size: 14px; cursor: pointer;
  background: var(--cinnabar); color: #fff; border: none;
}
.vl-print:hover { background: var(--cinnabar-dark); }


@media print {
  body { background: #fff !important; }
  body * { visibility: hidden !important; }
  .vl-panel, .vl-panel * { visibility: visible !important; }
  .vl-panel {
    position: absolute; left: 0; top: 0; width: 100%;
    box-shadow: none !important; border: none !important; padding: 0;
  }
  .vl-toggles, .vl-actions, .vl-col-audio { display: none !important; }
  .vl-table thead th { background: #2e2a26 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .vl-table tbody td { border-bottom: 1px solid #999 !important; }
}
.fc-counter { font-size: 15px; color: var(--ink-soft); }
.fc-nav { display: flex; align-items: center; gap: 14px; }
.fc-nav-btn {
  padding: 9px 26px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line);
  font-size: 14px; color: var(--ink); cursor: pointer;
  transition: border-color .15s ease, color .15s ease;
}
.fc-nav-btn:hover:not(:disabled) { border-color: var(--cinnabar); color: var(--cinnabar); }
.fc-nav-btn:disabled { opacity: .4; cursor: default; }


.error-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 44px 24px;
  text-align: center; color: var(--ink-soft);
}
.error-card a { color: var(--cinnabar); font-weight: 600; }


@media (max-width: 1000px) {
  .func-grid { grid-template-columns: repeat(3, 1fr); }
  .lesson-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .func-grid { grid-template-columns: repeat(2, 1fr); }
  .lesson-grid { grid-template-columns: repeat(2, 1fr); }
  .site-title { font-size: 28px; }
  .page-title { font-size: 24px; }
  .topbar-inner { padding: 10px 14px; gap: 10px; }
  .breadcrumb { display: none; }
  .field-label { min-width: 0; width: 100%; }
}


.lesson-progress {
  display: flex; align-items: center; gap: 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 18px; margin-bottom: 16px; box-shadow: var(--shadow);
}
.lp-label { font-size: 13px; color: var(--ink-soft); white-space: nowrap; }
.lp-bar {
  flex: 1; height: 10px; background: var(--paper); border-radius: 999px; overflow: hidden;
}
.lp-fill {
  height: 100%; width: 0%; background: linear-gradient(90deg, var(--cinnabar), #d9765c);
  transition: width .4s ease;
}
.lp-score { font-size: 14px; color: var(--ink); white-space: nowrap; }
.lp-score b { color: var(--cinnabar); }


.title-card {
  display: flex; align-items: center; gap: 28px;
}
.title-text { flex: 1; min-width: 0; }
.title-text .cn-pinyin {
  font-size: 18px; color: var(--cinnabar); margin: 0 0 6px;
}
.title-text .cn-title {
  font-family: var(--font-serif); font-size: 44px; font-weight: 500;
  color: var(--ink); margin: 0 0 10px; line-height: 1.2;
}
.title-text .en-title {
  font-size: 18px; color: var(--ink-soft); margin: 0;
}
.title-media { flex-shrink: 0; }
.title-media img {
  width: 220px; height: 220px; object-fit: cover;
  border-radius: var(--radius-sm); border: 1px solid var(--line);
}


@media (max-width: 640px) {
  .title-card { flex-direction: column; align-items: stretch; gap: 14px; }
  .title-text .cn-title { font-size: 30px; text-align: center; }
  .title-text .cn-pinyin { font-size: 16px; text-align: center; }
  .title-text .en-title { font-size: 15px; text-align: center; }
  .title-media { text-align: center; }
  .title-media img { width: 100%; max-width: 320px; height: auto; margin: 0 auto; display: block; }
}


.fc-done { display: flex; align-items: center; gap: 14px; justify-content: center; margin-top: 14px; }

.fc-done[hidden] { display: none; }
.fc-replay-btn { border-color: var(--cinnabar); color: var(--cinnabar); }
.fc-replay-btn:hover { background: var(--cinnabar); color: #fff; }
.done-btns { display: flex; align-items: center; gap: 14px; justify-content: center; margin-top: 20px; }
.done-btns > button { margin-top: 0; }.ptc2-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; justify-content: center; }

.bingo-game-btn {
  padding: 9px 20px; border-radius: 999px;
  background: var(--card); color: var(--ink);
  border: 1px solid var(--line); font-size: 14px; font-weight: 600; cursor: pointer;
  transition: border-color .15s ease, color .15s ease;
}
.bingo-game-btn:hover { border-color: var(--cinnabar); color: var(--cinnabar); }
.bingo-game { margin-top: 22px; display: flex; gap: 22px; align-items: flex-start; flex-wrap: wrap; }
.bg-board { flex: 0 0 auto; }
.bg-title { font-weight: 700; margin: 0 0 10px; text-align: center; }
.bg-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; width: 400px; max-width: 100%; }
.bg-cell {
  aspect-ratio: 1; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; font-size: 18px; font-weight: 700; color: var(--ink);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  white-space: nowrap; overflow: hidden; padding: 0 2px;
  transition: background .15s ease, border-color .15s ease;
}
.bg-cell:hover { border-color: var(--cinnabar); }
.bg-free { background: #fdf0ee; color: var(--cinnabar); cursor: default; }
.bg-hit { background: #d7f0dc; border-color: #27ae60; color: #1e7d34; }

.bg-cell.bg-free.bg-hit { background: #d7f0dc; border-color: #27ae60; color: #1e7d34; }

.bg-cell.bg-wrong { background: #fdecea; border-color: var(--cinnabar); color: var(--cinnabar); }

.bg-cell.bg-line-win { background: #c8e6c9; border-color: #2e7d32; box-shadow: inset 0 0 0 2px #2e7d32; }
.bg-cell.bg-line-lose { background: #fdecea; border-color: var(--cinnabar); box-shadow: inset 0 0 0 2px var(--cinnabar); }
.bg-cell.bg-line-win.bg-free,
.bg-cell.bg-line-win.bg-free.bg-hit { background: #c8e6c9; border-color: #2e7d32; color: #1e7d34; }
.bg-cell.bg-line-lose.bg-free,
.bg-cell.bg-line-lose.bg-free.bg-hit { background: #fdecea; border-color: var(--cinnabar); color: var(--cinnabar); }
.bg-side { flex: 1 1 170px; min-width: 170px; text-align: center; }
.bg-status { font-weight: 600; color: var(--ink-soft); margin: 0 0 10px; }
.bg-target {
  font-size: 60px; font-weight: 700; color: var(--ink);
  border: 2px dashed var(--line); border-radius: 16px;
  width: 150px; height: 150px; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--paper);
}
.bg-hear {
  padding: 8px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card);
  color: var(--ink); font-size: 14px; cursor: pointer;
}
.bg-hear:hover { border-color: var(--cinnabar); color: var(--cinnabar); }
.bg-tip { margin-top: 12px; color: var(--ink-soft); font-size: 14px; }
.bg-play-again {
  padding: 8px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--cinnabar); color: #fff;
  font-size: 14px; cursor: pointer; margin-left: 8px;
}

.bg-start-idle {
  background: var(--cinnabar); color: #fff; border-color: var(--cinnabar);
  font-weight: 700; padding: 8px 30px; margin: 0 0 10px;
}
.bg-start-idle:hover { background: var(--cinnabar-dark); color: #fff; }
.bg-ws-row { margin: 12px 0 0; display: flex; justify-content: center; }
.bingo-ws { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.bingo-ws-title { margin: 0 0 6px; font-size: 18px; color: var(--ink); }
.bg-play-again:hover { background: var(--cinnabar-dark); }
.bingo-custom-row {
  display: flex; align-items: center; gap: 6px;
  padding: 4px 0 10px;
}
.bingo-custom-input {
  width: 58px; padding: 6px 8px; border: 1px solid var(--line);
  border-radius: 8px; font-size: 14px; text-align: center;
}
.bingo-custom-row span { color: var(--ink-soft); }
.bingo-custom-ta {
  width: 100%; padding: 6px 8px; border: 1px solid var(--line);
  border-radius: 8px; font-size: 14px; resize: vertical;
}
.bingo-meta {
  display: flex; justify-content: space-between; gap: 10px;
  margin: 0 0 10px; font-size: 12px; color: var(--ink-soft);
}
.bingo-meta input {
  border: none; border-bottom: 1px solid var(--line);
  width: 70px; font-size: 12px; padding: 2px 4px; background: transparent;
  color: var(--ink);
}
.bingo-words { margin: 10px 0 0; font-size: 11px; color: var(--ink-soft); line-height: 1.5; }

.pz-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.pz-head { margin-bottom: 14px; }
.pz-title { margin: 0; font-size: 22px; }
.pz-sub { margin: 4px 0 0; color: var(--ink-soft); font-size: 13px; }
.pz-area { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 10px 0; }
.pz-question { text-align: center; }
.pz-hint { font-size: 20px; color: var(--cinnabar); margin: 0 0 4px; }

.pz-speak {
  font-family: var(--font-sans); font-size: 14px; font-weight: 600;
  color: #fff; background: var(--cinnabar); border: none;
  border-radius: 999px; padding: 8px 18px; cursor: pointer;
  margin: 4px 0 10px;
  transition: opacity .15s ease, transform .15s ease;
}
.pz-speak:hover { opacity: .9; }
.pz-speak:active { transform: scale(.96); }
.pz-en { font-size: 14px; color: var(--en); margin: 0 0 12px; }
.pz-slots { display: flex; gap: 10px; justify-content: center; min-height: 58px; }
.pz-slot {
  width: 68px; height: 68px; border: 2px dashed var(--line); border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 38px; font-family: var(--font-serif); color: var(--ink);
}
.pz-filled { border-style: solid; border-color: var(--cinnabar); color: var(--cinnabar); }
.pz-tiles { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.pz-tile {
  width: 52px; height: 52px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; font-size: 24px; font-family: var(--font-serif); cursor: pointer;
  transition: border-color .15s ease, color .15s ease;
}
.pz-tile:hover { border-color: var(--cinnabar); color: var(--cinnabar); }
.pz-used { opacity: .35; cursor: default; }
.pz-tip { color: var(--ink-soft); font-size: 14px; margin: 0; min-height: 20px; }
.pz-tip.good { color: #2e7d32; font-weight: 600; }
.pz-tip.bad { color: #c62828; font-weight: 600; }
.pz-done { text-align: center; padding: 30px 0; }
.pz-done-title { font-size: 26px; font-weight: 700; color: var(--cinnabar); margin: 0 0 6px; }
.pz-done-sub { color: var(--ink-soft); margin: 0 0 16px; }
.done-shuffle {
  padding: 9px 20px; border-radius: 999px; border: none;
  background: var(--cinnabar); color: #fff; font-size: 14px; font-weight: 600;
  cursor: pointer;
}
.done-shuffle:hover { background: var(--cinnabar-dark); }


.sp-panel.spz { background: transparent; border: none; box-shadow: none; padding: 0; max-width: 560px; margin: 0 auto; }
.sp-topcard {
  background: #fdf6ee; border: 1px solid var(--line); border-radius: 18px;
  padding: 14px 18px 16px; margin-bottom: 14px;
}
.sp-toprow { display: flex; align-items: flex-end; gap: 34px; }
.sp-stat { display: flex; flex-direction: column; gap: 2px; }
.sp-stat-label { font-size: 12px; color: var(--ink-soft); }
.sp-stat-val { font-weight: 600; line-height: 1.1; }
.sp-now { font-size: 36px; font-family: var(--font-serif); color: var(--ink); }
.sp-prog { font-size: 24px; color: var(--ink); font-variant-numeric: tabular-nums; }
.sp-chars { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.sp-char {
  min-width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; font-size: 22px; font-family: var(--font-serif); cursor: pointer;
}
.sp-char.active { background: var(--cinnabar); color: #fff; border-color: var(--cinnabar); }
.sp-pieces-row { display: flex; align-items: center; justify-content: center; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }

.sp-controls { width: fit-content; max-width: 100%; margin: 0 auto 14px; display: flex; flex-direction: column; gap: 8px; }
.sp-ctrl-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sp-label { font-size: 13px; color: var(--ink-soft); margin-right: 4px; }
.sp-pn {
  padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); font-size: 13px; cursor: pointer;
}
.sp-pn.active { background: var(--cinnabar); color: #fff; border-color: var(--cinnabar); }

.sp-set { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.sp-set.hidden { display: none; }
.sp-set-label { font-size: 12px; color: var(--ink-soft); margin-left: 8px; }
.sp-set-label:first-child { margin-left: 2px; }
.sp-step {
  width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); font-size: 15px; line-height: 1; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: border-color .15s ease, color .15s ease;
}
.sp-step:hover { border-color: var(--cinnabar); color: var(--cinnabar); }
.sp-set-val { min-width: 20px; text-align: center; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.sp-boards { display: flex; flex-direction: column; gap: 16px; }
.sp-board {
  border: 1px solid var(--line); border-radius: 18px;
  background: #fff; padding: 18px 14px 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.sp-board-title { margin: 0 0 14px; text-align: center; font-weight: 700; font-size: 16px; color: var(--ink); letter-spacing: .3px; }
.sp-pieces { display: grid; grid-template-columns: repeat(2, 112px); gap: 4px; justify-content: center; align-content: start; min-height: 280px; }
.sp-piece {
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
  padding: 6px; cursor: grab; line-height: 0; user-select: none;
  touch-action: none; display: block; width: 100%; box-sizing: border-box;
  overflow: hidden;
  transition: border-color .15s ease;
}
.sp-piece:hover { border-color: var(--cinnabar); }
.sp-used { opacity: .3; cursor: default; }
.sp-dragging {
  position: fixed; z-index: 1000; pointer-events: none;
  box-shadow: 0 6px 18px rgba(0,0,0,.18); cursor: grabbing;
}
.sp-svg { display: block; }
.sp-slots { display: grid; grid-template-columns: repeat(2, 112px); gap: 4px; justify-content: center; align-content: start; min-height: 280px; }
.sp-slot {
  width: 100%; height: auto; aspect-ratio: 1;
  border: 2px dashed var(--line); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: #fff;
}

.sp-pieces.sp-jig, .sp-slots.sp-jig { gap: 2px; }
.sp-piece.sp-jig-piece {
  overflow: visible; background: transparent; border: none; padding: 0;
}
.sp-piece.sp-jig-piece.sp-used { opacity: .25; }
.sp-slot.sp-jig-slot {
  border: 1px dashed #e3dbcd; background: transparent; overflow: visible;
}
.sp-slot.sp-jig-slot.sp-filled { border-color: transparent; }

.sp-tip.good { color: #2f9e6b; font-weight: 600; }
.sp-tip.bad { color: var(--cinnabar); font-weight: 600; }
.sp-slot.sp-filled { border-color: #2f9e6b; border-style: solid; }
.sp-slot.sp-filled .sp-stroke { fill: #2f9e6b; stroke: #2f9e6b; }
.sp-slot.sp-filled .sp-outline { stroke: #2f9e6b; }
.sp-piece.sp-wrong {
  border-color: var(--cinnabar);
  box-shadow: 0 0 0 2px rgba(169, 50, 38, .16);
}

@media (min-width: 760px) {
  .sp-panel.spz { max-width: 900px; }
  .sp-boards { flex-direction: row; align-items: stretch; gap: 18px; }
  .sp-board { flex: 1 1 0; min-width: 0; }
  .sp-pieces, .sp-slots { grid-template-columns: repeat(2, 104px); }
}
.sp-slot-num { color: var(--ink-soft); font-size: 18px; font-weight: 700; }
.sp-filled { border-style: solid; border-color: var(--cinnabar); }
.sp-tip { margin-top: 12px; color: var(--ink-soft); font-size: 14px; text-align: center; min-height: 20px; }
.sp-nodata { color: var(--ink-soft); text-align: center; }
.sp-done { text-align: center; font-size: 18px; font-weight: 700; color: var(--cinnabar); padding: 30px 0; width: 100%; }
.sp-next-row { text-align: center; margin-top: 10px; }
.sp-next {
  padding: 10px 26px; border-radius: 999px; border: none;
  background: var(--cinnabar); color: #fff; font-size: 15px; font-weight: 600; cursor: pointer;
}
.sp-newcard { border-color: var(--cinnabar); color: var(--cinnabar); font-weight: 600; }
.sp-newcard:hover { background: var(--cinnabar); color: #fff; }

.mm-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.mm-title { margin: 0; font-size: 22px; }
.mm-sub { margin: 4px 0 12px; color: var(--ink-soft); font-size: 13px; }
.mm-status { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.mm-stats { display: flex; gap: 18px; font-size: 14px; color: var(--ink); }
.mm-stat b { font-size: 18px; color: var(--cinnabar); }
.mm-actions { display: flex; gap: 8px; }
.mm-btn {
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); font-size: 13px; cursor: pointer;
}
.mm-btn:hover { border-color: var(--cinnabar); color: var(--cinnabar); }

.mm-time { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.mm-lbl { font-size: 13px; color: var(--ink-soft); }
.mm-opt {
  padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); font-size: 13px; cursor: pointer;
}
.mm-opt:hover { border-color: var(--cinnabar); color: var(--cinnabar); }
.mm-opt.mm-on { background: var(--cinnabar); border-color: var(--cinnabar); color: #fff; }
.mm-num {
  width: 58px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 13px; text-align: center; color: var(--ink); background: #fff;
}
.mm-set { padding: 6px 14px; }
.mm-clock {
  margin-left: auto; font-size: 14px; font-weight: 600; color: var(--cinnabar);
  font-variant-numeric: tabular-nums; min-width: 42px; text-align: right;
}
.mm-timer {
  height: 8px; border-radius: 999px; background: var(--line);
  overflow: hidden; max-width: 360px; margin: 0 auto 14px; display: none;
}
.mm-timer.show { display: block; }
.mm-timer-bar {
  height: 100%; width: 100%; border-radius: 999px;
  background: linear-gradient(90deg, #f0a79b, #b03a2e);
  transition: width .25s linear;
}
.mm-card.locked { pointer-events: none; }
.mm-chars { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.mm-char {
  min-width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; font-size: 20px; font-family: var(--font-serif); cursor: pointer;
}
.mm-char.active { background: #4caf50; color: #fff; border-color: #4caf50; }
.mm-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; max-width: 360px; margin: 0 auto; }
.mm-card {
  position: relative; aspect-ratio: 1; border: none; background: transparent;
  cursor: pointer; padding: 0; perspective: 600px;
}
.mm-inner {
  position: absolute; inset: 0; border-radius: 12px;
  transform-style: preserve-3d; transition: transform .35s ease;
}
.mm-card.flipped .mm-inner { transform: rotateY(180deg); }
.mm-back, .mm-front {
  position: absolute; inset: 0; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.mm-back {
  background: linear-gradient(145deg, #f9ded7, #eebfb3);
  color: #7d4a3f;
  border: 1px solid rgba(176, 58, 46, .18);
}
.mm-back svg { width: 76%; height: 76%; display: block; filter: drop-shadow(0 2px 2px rgba(125, 74, 63, .14)); }
.mm-front {
  background: #fff; border: 1.5px solid var(--line);
  font-size: 30px; font-family: var(--font-serif); color: var(--ink);
  transform: rotateY(180deg);
}
.mm-card.matched .mm-front { border-color: #4caf50; color: #4caf50; }
.mm-tip { margin-top: 12px; text-align: center; color: var(--ink-soft); font-size: 14px; min-height: 20px; }
.mm-overlay {
  position: fixed; inset: 0; z-index: 1200; background: rgba(0,0,0,.45);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.mm-overlay.show { display: flex; }
.mm-dialog {
  background: #fff; border-radius: 18px; padding: 28px 30px; max-width: 320px; width: 100%;
  text-align: center; box-shadow: 0 12px 36px rgba(0,0,0,.25);
  animation: mmPop .25s ease;
}
@keyframes mmPop { from { transform: scale(.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.mm-dialog-icon {
  width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%;
  background: linear-gradient(145deg, #4caf50, #2e7d32); color: #fff;
  font-size: 34px; line-height: 64px; font-weight: 700;
}
.mm-dialog-title { margin: 0 0 4px; font-size: 26px; font-weight: 700; color: var(--ink); }
.mm-dialog-sub { margin: 0 0 18px; font-size: 14px; color: var(--ink-soft); }
.mm-dialog-actions { display: flex; gap: 10px; justify-content: center; }
.mm-done { background: var(--cinnabar); border-color: var(--cinnabar); color: #fff; }
.mm-play { background: #4caf50; border-color: #4caf50; color: #fff; }

.cp-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.cp-title { margin: 0; font-size: 22px; }
.cp-sub { margin: 4px 0 12px; color: var(--ink-soft); font-size: 13px; }
.cp-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.cp-count { font-size: 15px; color: var(--ink); white-space: nowrap; }
.cp-count b { color: var(--cinnabar); font-size: 20px; }
.cp-bar { flex: 1 1 120px; height: 12px; border-radius: 999px; background: var(--line); overflow: hidden; min-width: 100px; }
.cp-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--cinnabar), #f39c12); border-radius: 999px; transition: width .3s ease; }
.cp-btn {
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); font-size: 13px; cursor: pointer;
}
.cp-btn:hover { border-color: var(--cinnabar); color: var(--cinnabar); }
.cp-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; max-width: 460px; margin: 0 auto; }
.cp-cell {
  aspect-ratio: 1; border: 1px solid var(--line); border-radius: 8px; background: #fff;
  font-size: clamp(16px, 4.5vw, 26px); font-family: var(--font-serif); color: var(--ink);
  cursor: pointer; transition: transform .12s ease;
}
.cp-cell:hover { transform: scale(1.06); border-color: var(--cinnabar); }
.cp-cell.popping { animation: cpPop .26s ease forwards; }
@keyframes cpPop {
  0% { transform: scale(1); }
  40% { transform: scale(1.15); background: #fff3cd; border-color: #f39c12; }
  100% { transform: scale(.4); opacity: 0; }
}
.cp-tip { margin-top: 12px; text-align: center; color: var(--ink-soft); font-size: 14px; min-height: 20px; }
.cp-overlay {
  position: fixed; inset: 0; z-index: 1200; background: rgba(0,0,0,.45);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.cp-overlay.show { display: flex; }
.cp-dialog {
  background: #fff; border-radius: 18px; padding: 28px 30px; max-width: 320px; width: 100%;
  text-align: center; box-shadow: 0 12px 36px rgba(0,0,0,.25); animation: mmPop .25s ease;
}
.cp-dialog-icon {
  width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%;
  background: linear-gradient(145deg, #4caf50, #2e7d32); color: #fff;
  font-size: 34px; line-height: 64px; font-weight: 700;
}
.cp-dialog-title { margin: 0 0 4px; font-size: 26px; font-weight: 700; color: var(--ink); }
.cp-dialog-sub { margin: 0 0 18px; font-size: 14px; color: var(--ink-soft); }
.cp-dialog-actions { display: flex; gap: 10px; justify-content: center; }
.cp-done { background: var(--cinnabar); border-color: var(--cinnabar); color: #fff; }
.cp-play { background: #4caf50; border-color: #4caf50; color: #fff; }

.tf-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.tf-title { margin: 0; font-size: 22px; }
.tf-sub { margin: 4px 0 12px; color: var(--ink-soft); font-size: 13px; }
.tf-top { display: flex; align-items: center; gap: 18px; margin-bottom: 10px; flex-wrap: wrap; }
.tf-stat { font-size: 15px; color: var(--ink); }
.tf-stat b { color: var(--cinnabar); font-size: 20px; }
.tf-btn {
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); font-size: 13px; cursor: pointer;
}
.tf-btn:hover { border-color: var(--cinnabar); color: var(--cinnabar); }
.tf-timer { height: 10px; border-radius: 999px; background: var(--line); overflow: hidden; margin-bottom: 16px; }
.tf-fill { height: 100%; width: 100%; background: linear-gradient(90deg, #4caf50, #f39c12); border-radius: 999px; transition: width 1s linear; }
.tf-card {
  border: 1px solid var(--line); border-radius: 16px; padding: 26px 18px;
  text-align: center; margin-bottom: 18px; background: #fdfaf5;
}
.tf-char { font-size: 72px; font-family: var(--font-serif); color: var(--ink); line-height: 1.2; }
.tf-label { font-size: 12px; letter-spacing: 3px; color: var(--ink-soft); margin-top: 8px; }
.tf-shown { font-size: 24px; color: var(--ink); margin-top: 6px; font-weight: 600; }
.tf-shown.tf-good { color: #2f9e6b; }
.tf-shown.tf-bad { color: var(--cinnabar); }
.tf-actions { display: flex; gap: 12px; justify-content: center; margin-bottom: 14px; }
.tf-true { background: #2f9e6b; border-color: #2f9e6b; color: #fff; font-size: 16px; padding: 10px 26px; }
.tf-true:not(:disabled):hover { background: #257a53; color: #fff; }
.tf-false { background: var(--cinnabar); border-color: var(--cinnabar); color: #fff; font-size: 16px; padding: 10px 26px; }
.tf-false:not(:disabled):hover { background: #a93226; color: #fff; }
.tf-true:disabled, .tf-false:disabled { opacity: .45; cursor: not-allowed; }
.tf-tip { text-align: center; color: var(--ink-soft); font-size: 14px; min-height: 20px; }
.tf-tip.tf-good { color: #2f9e6b; font-weight: 600; }
.tf-tip.tf-bad { color: var(--cinnabar); font-weight: 600; }
.tf-overlay {
  position: fixed; inset: 0; z-index: 1200; background: rgba(0,0,0,.45);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.tf-overlay.show { display: flex; }
.tf-dialog {
  background: #fff; border-radius: 18px; padding: 28px 30px; max-width: 320px; width: 100%;
  text-align: center; box-shadow: 0 12px 36px rgba(0,0,0,.25); animation: mmPop .25s ease;
}
.tf-dialog-icon {
  width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%;
  background: linear-gradient(145deg, #4caf50, #2e7d32); color: #fff;
  font-size: 34px; line-height: 64px; font-weight: 700;
}
.tf-dialog-title { margin: 0 0 4px; font-size: 26px; font-weight: 700; color: var(--ink); }
.tf-dialog-sub { margin: 0 0 18px; font-size: 15px; color: var(--ink-soft); }
.tf-dialog-sub b { color: var(--cinnabar); font-size: 22px; }
.tf-dialog-actions { display: flex; gap: 10px; justify-content: center; }
.tf-done { background: var(--cinnabar); border-color: var(--cinnabar); color: #fff; }
.tf-play { background: #4caf50; border-color: #4caf50; color: #fff; }

.mu-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.mu-title { margin: 0; font-size: 22px; }
.mu-sub { margin: 4px 0 12px; color: var(--ink-soft); font-size: 13px; }
.mu-top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.mu-prog { font-size: 15px; color: var(--ink); }
.mu-prog b { color: var(--cinnabar); font-size: 20px; }
.mu-modes { display: flex; gap: 6px; }
.mu-btn {
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); font-size: 13px; cursor: pointer;
}
.mu-btn:hover { border-color: var(--cinnabar); color: var(--cinnabar); }
.mu-mode.active { background: var(--cinnabar); border-color: var(--cinnabar); color: #fff; }
.mu-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mu-col-title { margin: 0 0 8px; font-size: 12px; letter-spacing: 2px; color: var(--ink-soft); text-align: center; }
.mu-list { display: flex; flex-direction: column; gap: 8px; }
.mu-item {
  min-height: 52px; border: 1px solid var(--line); border-radius: 10px; background: #fff;
  font-size: 20px; font-family: var(--font-serif); color: var(--ink);
  cursor: pointer; transition: transform .1s ease;
}
.mu-item:hover { transform: scale(1.03); border-color: var(--cinnabar); }
.mu-item.mu-sel { background: #fdf2d8; border-color: #f39c12; }
.mu-item.mu-matched { background: #e8f5e9; border-color: #4caf50; color: #4caf50; }
.mu-item.mu-bad { background: #fdecea; border-color: #e74c3c; color: #e74c3c; }
.mu-tip { margin-top: 12px; text-align: center; color: var(--ink-soft); font-size: 14px; min-height: 20px; }
.mu-overlay {
  position: fixed; inset: 0; z-index: 1200; background: rgba(0,0,0,.45);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.mu-overlay.show { display: flex; }
.mu-dialog {
  background: #fff; border-radius: 18px; padding: 28px 30px; max-width: 320px; width: 100%;
  text-align: center; box-shadow: 0 12px 36px rgba(0,0,0,.25); animation: mmPop .25s ease;
}
.mu-dialog-icon {
  width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%;
  background: linear-gradient(145deg, #4caf50, #2e7d32); color: #fff;
  font-size: 34px; line-height: 64px; font-weight: 700;
}
.mu-dialog-title { margin: 0 0 4px; font-size: 26px; font-weight: 700; color: var(--ink); }
.mu-dialog-sub { margin: 0 0 18px; font-size: 15px; color: var(--ink-soft); }
.mu-dialog-actions { display: flex; gap: 10px; justify-content: center; }
.mu-done { background: var(--cinnabar); border-color: var(--cinnabar); color: #fff; }
.mu-play { background: #4caf50; border-color: #4caf50; color: #fff; }

.qz-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.qz-title { margin: 0; font-size: 22px; }
.qz-sub { margin: 4px 0 12px; color: var(--ink-soft); font-size: 13px; }
.qz-top { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 10px; }
.qz-stats { display: flex; gap: 16px; flex-wrap: wrap; }
.qz-stats-bottom { justify-content: center; margin-top: 14px; }
.qz-stat { font-size: 14px; color: var(--ink); }
.qz-stat b { color: var(--cinnabar); font-size: 18px; }
.qz-clock {
  width: 54px; height: 54px; border-radius: 50%; background: var(--line);
  display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; color: var(--ink);
  flex-shrink: 0;
}
.qz-controls { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 14px; }
.qz-modes { display: flex; gap: 8px; flex-wrap: nowrap; overflow-x: auto; width: 100%; max-width: 460px; justify-content: flex-start; padding-bottom: 2px; }
.qz-times, .qz-actions { display: flex; gap: 8px; flex-wrap: wrap; width: 100%; max-width: 440px; justify-content: flex-start; }
.qz-custom { display: inline-flex; align-items: center; gap: 6px; }
.qz-custom.hidden { display: none; }
.qz-custom-val { font-size: 13px; color: var(--ink); min-width: 44px; text-align: center; }
.qz-step { width: 30px; padding: 4px 0; font-size: 16px; line-height: 1; }
.qz-btn {
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); font-size: 12px; cursor: pointer;
}
.qz-btn:hover { border-color: var(--cinnabar); color: var(--cinnabar); }
.qz-mode.active, .qz-time.active { background: var(--cinnabar); border-color: var(--cinnabar); color: #fff; }
.qz-q {
  border: 1px solid var(--line); border-radius: 16px; padding: 22px 16px; text-align: center;
  margin-bottom: 16px; background: #fdfaf5;
  display: flex; flex-direction: column; align-items: center;
}
.qz-qtitle { margin: 0 0 10px; font-size: 15px; color: var(--ink-soft); }
.qz-ques { font-size: 52px; font-family: var(--font-serif); color: var(--ink); line-height: 1.2; min-height: 62px; word-break: break-word; }
.qz-hear {
  margin-top: 10px; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); font-size: 13px; cursor: pointer;
}
.qz-hear:hover { border-color: var(--cinnabar); color: var(--cinnabar); }
.qz-skip {
  margin-top: 0; padding: 6px 16px; border-radius: 999px; border: 1px dashed var(--cinnabar);
  background: #fff; color: var(--cinnabar); font-size: 13px; cursor: pointer;
}
.qz-skip:hover { background: var(--cinnabar-soft); }
.qz-skip:disabled { opacity: .45; cursor: not-allowed; border-style: solid; border-color: var(--line); color: var(--ink-soft); background: #fff; }
.qz-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.qz-opt {
  display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 8px 14px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
  font-size: 22px; font-family: var(--font-serif); color: var(--ink); cursor: pointer;
}
.qz-opt:hover { border-color: var(--cinnabar); }
.qz-opt-text { word-break: break-word; font-size: 18px; }
.qz-opt.qz-good { background: #e8f5e9; border-color: #4caf50; color: #4caf50; }
.qz-opt.qz-bad { background: #fdecea; border-color: #e74c3c; color: #e74c3c; }
.qz-opt.qz-reveal { background: #fff8e1; border-color: #f39c12; color: #f39c12; }
.qz-shape { width: 14px; height: 14px; flex-shrink: 0; }
.qz-shape.circle { border-radius: 50%; background: #f39c12; }
.qz-shape.square { background: #3498db; }
.qz-shape.diamond { transform: rotate(45deg); background: #9b59b6; }
.qz-shape.triangle {
  width: 0; height: 0; background: none;
  border-left: 8px solid transparent; border-right: 8px solid transparent; border-bottom: 14px solid #e74c3c;
}
.qz-tip { margin-top: 12px; text-align: center; color: var(--ink-soft); font-size: 14px; min-height: 20px; }
.qz-overlay {
  position: fixed; inset: 0; z-index: 1200; background: rgba(0,0,0,.45);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.qz-overlay.show { display: flex; }
.qz-dialog {
  background: #fff; border-radius: 18px; padding: 28px 30px; max-width: 320px; width: 100%;
  text-align: center; box-shadow: 0 12px 36px rgba(0,0,0,.25); animation: mmPop .25s ease;
}
.qz-dialog-icon {
  width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%;
  background: linear-gradient(145deg, #4caf50, #2e7d32); color: #fff;
  font-size: 34px; line-height: 64px; font-weight: 700;
}
.qz-dialog-title { margin: 0 0 4px; font-size: 26px; font-weight: 700; color: var(--ink); }
.qz-dialog-sub { margin: 0 0 18px; font-size: 15px; color: var(--ink-soft); }
.qz-dialog-sub b { color: var(--cinnabar); font-size: 22px; }
.qz-dialog-actions { display: flex; gap: 10px; justify-content: center; }
.qz-done { background: var(--cinnabar); border-color: var(--cinnabar); color: #fff; }
.qz-play { background: #4caf50; border-color: #4caf50; color: #fff; }
.qz-fb { margin-top: 8px; text-align: center; color: var(--ink-soft); font-size: 14px; min-height: 20px; }
.qz-ques.qz-good, .qz-fb.qz-good { color: #2f9e6b; }
.qz-ques.qz-bad, .qz-fb.qz-bad { color: var(--cinnabar); }
.qz-fb.qz-good, .qz-fb.qz-bad { font-weight: 700; }

.sp-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.sp-title { margin: 0; font-size: 22px; }
.sp-sub { margin: 4px 0 12px; color: var(--ink-soft); font-size: 13px; }
.sp-top { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.sp-round { font-size: 14px; color: var(--ink); }
.sp-round b { color: var(--cinnabar); font-size: 18px; }
.sp-hearts { display: inline-flex; gap: 2px; font-size: 16px; }
.sp-heart { color: #e57373; }
.sp-heart.off { color: #e0d5cc; }
.sp-btn { padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 12px; cursor: pointer; }
.sp-btn:hover { border-color: var(--cinnabar); color: var(--cinnabar); }
.sp-btn.active { background: var(--cinnabar); border-color: var(--cinnabar); color: #fff; }
.sp-grid, .sp-diff { display: inline-flex; gap: 4px; }
.sp-target { border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; text-align: center; margin-bottom: 14px; background: #fdfaf5; }
.sp-qtitle { margin: 0 0 8px; font-size: 14px; color: var(--ink-soft); letter-spacing: 1px; }
.sp-target-row { display: flex; align-items: center; justify-content: center; gap: 16px; }
.sp-big { font-size: 56px; font-family: var(--font-serif); line-height: 1.1; }
.sp-info { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.sp-pinyin { font-size: 18px; color: var(--ink); }
.sp-english { font-size: 14px; color: var(--en); }
.sp-grid-wrap { overflow-x: auto; }
.sp-grid { display: grid; gap: 4px; margin: 0 auto; max-width: 460px; }
.sp-cell {
  position: relative; aspect-ratio: 1; border: 1px solid #eee2d4; border-radius: 8px;
  background: #fffdf8; font-family: var(--font-serif); font-size: 20px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; cursor: pointer; min-width: 0;
}
.sp-cell.sp-start { box-shadow: inset 0 0 0 2px #4caf50; }
.sp-cell.sp-visited { background: #f7ecd9; }
.sp-cell:hover { border-color: var(--cinnabar); }
.sp-player {
  width: 24px; height: 24px; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #d1c4e9 12%, #7e57c2 45%, #512da8 75%);
  box-shadow: 0 2px 5px rgba(0,0,0,.3);
}
.sp-bobo {
  width: 30px; height: 30px; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #ce93d8 12%, #8e24aa 45%, #6a1b9a 75%);
  box-shadow: 0 0 0 3px rgba(142,36,170,.25), 0 2px 6px rgba(0,0,0,.3);
  animation: spBob 2s ease-in-out infinite;
}
@keyframes spBob { 0%,100% { transform: scale(1); } 50% { transform: scale(1.12); } }
.sp-tip { margin-top: 12px; text-align: center; color: var(--ink-soft); font-size: 13px; min-height: 18px; }
.sp-overlay { position: fixed; inset: 0; z-index: 1200; background: rgba(0,0,0,.45); display: none; align-items: center; justify-content: center; padding: 20px; }
.sp-overlay.show { display: flex; }
.sp-dialog { background: #fff; border-radius: 18px; padding: 28px 30px; max-width: 320px; width: 100%; text-align: center; box-shadow: 0 12px 36px rgba(0,0,0,.25); animation: mmPop .25s ease; }
.sp-dialog-icon { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; background: linear-gradient(145deg, #4caf50, #2e7d32); color: #fff; font-size: 34px; line-height: 64px; font-weight: 700; }
.sp-dialog-title { margin: 0 0 4px; font-size: 26px; font-weight: 700; color: var(--ink); }
.sp-dialog-sub { margin: 0 0 18px; font-size: 15px; color: var(--ink-soft); }
.sp-dialog-actions { display: flex; gap: 10px; justify-content: center; }
.sp-done { background: var(--cinnabar); border-color: var(--cinnabar); color: #fff; }
.sp-play { background: #4caf50; border-color: #4caf50; color: #fff; }

.af-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.af-title { margin: 0; font-size: 22px; }
.af-sub { margin: 4px 0 12px; color: var(--ink-soft); font-size: 13px; }
.af-top { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 10px; }
.af-top-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; align-items: center; }
.af-top-row.af-stats { gap: 20px; }
.af-btn { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 12px; cursor: pointer; }
.af-btn:hover { border-color: var(--cinnabar); color: var(--cinnabar); }
.af-btn.active { background: var(--cinnabar); border-color: var(--cinnabar); color: #fff; }
.af-btn-sm { padding: 3px 10px; font-size: 11px; border-radius: 999px; }
.af-info { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; font-size: 14px; }
.af-stat b { color: var(--cinnabar); font-size: 18px; font-variant-numeric: tabular-nums; }
#afkTime { min-width: 40px; display: inline-block; text-align: right; }
.af-p1 b { color: #1565c0; }
.af-p2 b { color: #e65100; }
.af-banner { border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; font-size: 14px; text-align: center; background: #fff3e0; color: #b26a00; }
.af-grid-wrap { overflow-x: auto; }
.af-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; max-width: 420px; margin: 0 auto; }
.af-cell {
  aspect-ratio: 1; border: 1px solid #eee2d4; border-radius: 10px; background: #fffdf8;
  display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer;
}
.af-ch { font-family: var(--font-serif); font-size: 26px; font-weight: 600; color: #444; line-height: 1.1; }
.af-py { font-size: 11px; color: #9a8d7d; }
.af-cell.af-own1 { background: #e3f2fd; border-color: #90caf9; }
.af-cell.af-own1 .af-ch { color: #1565c0; }
.af-cell.af-own2 { background: #fff3e0; border-color: #ffcc80; }
.af-cell.af-own2 .af-ch { color: #e65100; }
.af-cell.af-read { background: #e8f5e9; border-color: #a5d6a7; }
.af-cell.af-read .af-ch { color: #2e7d32; }
.af-last { margin-top: 12px; font-size: 13px; color: var(--ink-soft); min-height: 18px; text-align: center; }
.af-alien { display: flex; align-items: center; gap: 8px; justify-content: flex-end; margin-top: 10px; }
.af-alien-head {
  width: 26px; height: 26px; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #ce93d8 12%, #8e24aa 45%, #6a1b9a 75%);
  position: relative;
}
.af-alien-head::before, .af-alien-head::after {
  content: ''; position: absolute; top: 6px; width: 5px; height: 5px; border-radius: 50%; background: #fff;
}
.af-alien-head::before { left: 6px; }
.af-alien-head::after { right: 6px; }
.af-alien-text { font-size: 11px; color: #8e24aa; letter-spacing: 1px; }
.af-overlay { position: fixed; inset: 0; z-index: 1200; background: rgba(0,0,0,.45); display: none; align-items: center; justify-content: center; padding: 20px; }
.af-overlay.show { display: flex; }
.af-dialog { background: #fff; border-radius: 18px; padding: 28px 30px; max-width: 320px; width: 100%; text-align: center; box-shadow: 0 12px 36px rgba(0,0,0,.25); animation: mmPop .25s ease; }
.af-dialog-icon { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; background: linear-gradient(145deg, #4caf50, #2e7d32); color: #fff; font-size: 34px; line-height: 64px; font-weight: 700; }
.af-dialog-title { margin: 0 0 4px; font-size: 26px; font-weight: 700; color: var(--ink); }
.af-dialog-sub { margin: 0 0 18px; font-size: 15px; color: var(--ink-soft); }
.af-dialog-actions { display: flex; gap: 10px; justify-content: center; }
.af-done { background: var(--cinnabar); border-color: var(--cinnabar); color: #fff; }
.af-play { background: #4caf50; border-color: #4caf50; color: #fff; }

.cc-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.cc-top { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 12px; }

.cc-row { display: grid; grid-template-columns: repeat(3, minmax(92px, 1fr)); gap: 8px; width: 100%; max-width: 430px; }
.cc-row .af-btn { width: 100%; }
.cc-stats { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; align-items: center; margin-bottom: 8px; font-size: 14px; }
.cc-time-btn {
  padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); font-size: 14px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; line-height: 1.7;
}
.cc-time-btn:hover { border-color: var(--cinnabar); color: var(--cinnabar); }
.cc-time-btn.on { border-color: var(--cinnabar); background: #fff6f3; color: var(--cinnabar); }
.cc-time-btn b {
  color: var(--cinnabar); font-size: 18px; font-variant-numeric: tabular-nums;
  min-width: 40px; display: inline-block; text-align: right;
}

.cc-timer { height: 6px; max-width: 430px; margin: 0 auto 12px; border-radius: 999px; background: #f0e9df; overflow: hidden; }
.cc-timer i { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, #f3cbc1, #b03a2e); transition: width .25s linear; }
.cc-stats { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 8px; font-size: 14px; }
.cc-banner { border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; font-size: 14px; text-align: center; background: #fff3e0; color: #b26a00; }
.cc-board { display: flex; gap: 32px; justify-content: center; padding: 2px; }
.cc-side { flex: 1; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; max-width: 260px; align-content: start; padding: 14px; border-radius: 20px; }

#ccLeft, #ccRight {
  position: relative;
  background-repeat: no-repeat, repeat, no-repeat;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 6px 16px rgba(90, 70, 50, .07);
}
#ccLeft {
  border: 2px solid #bcd9f0;
  background-color: #e7f1fc;
  background-image:
    radial-gradient(circle at 22% 16%, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 58%),
    radial-gradient(rgba(255, 255, 255, .72) 1.4px, transparent 1.5px),
    linear-gradient(160deg, #f3f9ff 0%, #e4eefb 55%, #d2e3f7 100%);
  background-size: auto, 16px 16px, auto;
}
#ccRight {
  border: 2px solid #f2d3b3;
  background-color: #fdefe0;
  background-image:
    radial-gradient(circle at 78% 16%, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 58%),
    radial-gradient(rgba(255, 255, 255, .72) 1.4px, transparent 1.5px),
    linear-gradient(160deg, #fffaf4 0%, #ffeedc 55%, #fbe0c8 100%);
  background-size: auto, 16px 16px, auto;
}
.cc-cell {
  aspect-ratio: 1.15; border: 2px solid #f1e7da; border-radius: 14px; background: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,.06);
}
.cc-ch { font-family: var(--font-serif); font-size: 34px; font-weight: 700; line-height: 1.05; }
.cc-py { font-size: 12px; color: #9a8d7d; margin-bottom: 3px; letter-spacing: .3px; }
.cc-cell.cc-good { border-color: #81c784; background: #e8f5e9; animation: ccPop .25s ease; }
.cc-cell.cc-good .cc-ch { color: #2e7d32 !important; }
.cc-cell.cc-bad { border-color: #e57373; background: #ffebee; }
.cc-cell.cc-bad .cc-ch { color: #c62828 !important; }
@keyframes ccPop { 0% { transform: scale(1); } 50% { transform: scale(1.12); } 100% { transform: scale(1); } }

.ct-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.ct-top { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.ct-stats { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 8px; font-size: 14px; }
.ct-stats .af-stat b { color: var(--cinnabar); }
.ct-banner { border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; font-size: 13px; text-align: center; background: #fff3e0; color: #b26a00; }
.ct-target {
  display: flex; align-items: center; gap: 14px; justify-content: center;
  background: #f3f8ff; border: 2px solid #c3d9f2; border-radius: 16px; padding: 12px 14px; margin-bottom: 14px;
}
.ct-find { font-size: 12px; color: #1565c0; font-weight: 700; letter-spacing: .5px; }
.ct-big { font-family: var(--font-serif); font-size: 46px; font-weight: 700; color: #0d47a1; line-height: 1; }
.ct-meta { font-size: 13px; color: #5c7ea8; max-width: 120px; }
.ct-maze {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; padding: 10px;
  background: linear-gradient(145deg, #1a237e, #283593); border-radius: 18px; max-width: 400px; margin: 0 auto;
  touch-action: none;
}
.ct-wall { aspect-ratio: 1; background: transparent; }
.ct-cell {
  aspect-ratio: 1; border-radius: 10px; background: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 4px rgba(0,0,0,.15); position: relative;
}
.ct-ch { font-family: var(--font-serif); font-size: 22px; font-weight: 600; color: #444; }
.ct-cell.ct-done { background: #c8e6c9; }
.ct-cell.ct-done .ct-ch { color: #2e7d32; }
.ct-cell.ct-here { box-shadow: 0 0 0 3px #ffd54f, 0 2px 4px rgba(0,0,0,.2); }
.ct-man { display: block; width: 62%; height: 78%; position: relative; }
.ct-man::before {
  content: ''; position: absolute; left: 50%; top: 0; transform: translateX(-50%);
  width: 34%; height: 34%; border-radius: 50%; background: #ff8a65;
}
.ct-man::after {
  content: ''; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 42%; height: 46%; border-radius: 50% 50% 40% 40%; background: #5c6bc0;
}
.ct-off { color: #ddd; }
.ct-pad { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 14px; }
.ct-pad-row { display: flex; gap: 4px; }
.ct-dir {
  width: 52px; height: 44px; border-radius: 10px; border: 1px solid #c3d9f2; background: #f3f8ff;
  font-size: 18px; color: #1565c0; cursor: pointer;
}
.ct-dir:hover { background: #e3f2fd; }
.ct-dir-player { background: #e8eaf6; border-color: #b39ddb; color: #5c6bc0; font-size: 16px; }
.ct-rules { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 10px; }
.ct-rule { font-size: 12px; background: #e8eaf6; color: #3949ab; border: 1px solid #c5cae9; border-radius: 20px; padding: 4px 10px; }

.fh-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.fh-size { display: flex; gap: 6px; align-items: center; width: 100%; max-width: 430px; margin-bottom: 0; }
.fh-size-label { font-size: 13px; color: #666; margin-right: 4px; }
.fh-size-btn { border: 1px solid #ccc; background: #fff; border-radius: 8px; padding: 4px 10px; font-size: 13px; cursor: pointer; }
.fh-size-btn.fh-size-on { background: #ff7043; border-color: #ff7043; color: #fff; }
.fh-top { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 8px; font-size: 14px; align-items: center; }
.fh-top .af-stat b { color: var(--cinnabar); }

.fh-controls { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 12px; }
.fh-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(92px, 1fr));
  gap: 8px;
  width: 100%;
  max-width: 430px;
  margin-bottom: 0;
  align-items: center;
}
.fh-row .af-btn { width: 100%; }
.fh-row .af-stat { text-align: left; }
.fh-top.fh-row { grid-template-columns: repeat(5, minmax(80px, 1fr)); }
.fh-banner { border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; font-size: 13px; text-align: center; background: #fff3e0; color: #b26a00; }
.fh-targets {
  display: flex; flex-wrap: wrap; gap: 6px 10px; justify-content: center; margin-bottom: 12px;
  border: 2px solid #f2ddd2; background: #fff5ee; border-radius: 14px; padding: 12px 14px;
}
.fh-tgt { padding: 4px 8px; text-align: center; min-width: 44px; border-radius: 10px; }
.fh-tgt-ch { display: block; font-family: var(--font-serif); font-size: 28px; font-weight: 700; line-height: 1.15; color: #555; }
.fh-tgt-py { display: block; font-size: 11px; color: #888; }
.fh-tgt-done { background: #c8e6c9 !important; }
.fh-tgt-done .fh-tgt-ch { color: #2e7d32; }
.fh-grid { display: grid; gap: 4px; max-width: 400px; margin: 0 auto; touch-action: none; }
.fh-cell {
  aspect-ratio: 1; border: 1px solid #d7d7d7; border-radius: 8px; background: #fafafa;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-size: 22px; font-weight: 600; color: #555;
  cursor: pointer; user-select: none;
}
.fh-cell.fh-found { background: #2e7d32; color: #fff; border-color: transparent; }


.pb-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.pb-top { display: flex; justify-content: center; gap: 10px; margin-bottom: 14px; }
.pb-stats { display: flex; justify-content: center; gap: 18px; margin-bottom: 10px; }
.pb-prompt {
  text-align: center; font-size: 20px; font-weight: 600; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 16px; margin-bottom: 14px;
}
.pb-prompt #pbPy { display: block; font-size: 13px; font-weight: 400; color: var(--ink-soft); margin-top: 2px; }
.pb-sky {
  position: relative; height: 400px; border-radius: var(--radius); overflow: hidden;
  background:
    radial-gradient(circle at 78% 22%, rgba(176, 58, 46, .08) 0, transparent 34%),
    radial-gradient(circle at 24% 68%, rgba(90, 143, 174, .08) 0, transparent 32%),
    linear-gradient(180deg, var(--paper) 0%, #f0ece2 52%, var(--paper) 100%);
  border: 1px solid var(--line);
}
.pb-cloud { position: absolute; background: rgba(255, 255, 255, .55); border-radius: 999px; }
.pb-c1 { width: 120px; height: 38px; top: 40px; left: 8%; box-shadow: 22px 10px 0 -6px rgba(255,255,255,.55); opacity: .9; }
.pb-c2 { width: 90px; height: 30px; top: 110px; left: 72%; box-shadow: 18px 8px 0 -5px rgba(255,255,255,.55); opacity: .75; }
.pb-c3 { width: 70px; height: 24px; top: 220px; left: 40%; box-shadow: 14px 6px 0 -4px rgba(255,255,255,.55); opacity: .65; }
.pb-balls { position: absolute; left: 0; right: 0; bottom: 34px; display: flex; justify-content: space-around; align-items: flex-end; padding: 0 14px; }
.pb-balloon { position: static; width: 30%; max-width: 132px; text-align: center; cursor: pointer; animation: pbFloat 6s ease-in-out infinite; user-select: none; }
.pb-ball {
  width: 100%; max-width: 120px; height: 140px; margin: 0 auto; position: relative;
  border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 5px 14px rgba(60,45,30,.12), inset 0 -6px 14px rgba(255,255,255,.35);
  transition: transform .15s ease, opacity .3s ease;
}
.pb-ball::after {
  content: ''; position: absolute; bottom: -12px; left: 50%; transform: translateX(-50%);
  width: 0; height: 0; border: 9px solid transparent; border-top: 12px solid rgba(46, 42, 38, .25);
}
.pb-ball span {
  font-family: var(--font-serif); font-size: 30px; font-weight: 700; color: #fff;
  text-shadow: 0 2px 5px rgba(46, 42, 38, .22); line-height: 1.1;
}
.pb-line { width: 2px; height: 44px; background: rgba(110, 103, 95, .28); margin: 0 auto; }
.pb-balloon:active .pb-ball { transform: scale(.96); }
.pb-ball.pb-popped { transform: scale(1.7); opacity: 0; pointer-events: none; }
.pb-ball.pb-wrong { transform: scale(.85); filter: grayscale(.7) brightness(.9); }
.pb-pop-txt {
  position: absolute; top: 38%; left: 0; right: 0; text-align: center;
  font-size: 64px; font-weight: 800; color: var(--cinnabar); opacity: 0; pointer-events: none;
  text-shadow: 0 3px 10px rgba(176, 58, 46, .25); transform: scale(.4);
}
.pb-pop-txt.show { animation: pbPopTxt .5s ease-out forwards; }
.pb-banner { text-align: center; margin-top: 12px; font-size: 13px; color: var(--ink-soft); min-height: 20px; }
.pb-actions { display: flex; justify-content: center; gap: 10px; margin-top: 12px; }
.pb-overlay { display: none; position: fixed; inset: 0; z-index: 120; background: rgba(46, 42, 38, .45); align-items: center; justify-content: center; }
.pb-overlay.show { display: flex; }
.pb-dialog {
  background: var(--card); border-radius: var(--radius); padding: 30px 38px; text-align: center;
  max-width: 340px; width: 86%; box-shadow: var(--shadow);
}
.pb-dialog-icon { font-size: 54px; line-height: 1.2; margin-bottom: 8px; }
.pb-dialog-icon.ok { color: #4a7c59; }
.pb-dialog-icon.bad { color: var(--cinnabar); }
.pb-dialog-title { font-size: 24px; font-weight: 700; margin-bottom: 8px; color: var(--ink); }
.pb-dialog-sub { font-size: 14px; color: var(--ink-soft); margin-bottom: 18px; }
.pb-dialog-btns { display: flex; justify-content: center; gap: 10px; }
@keyframes pbFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes pbPopTxt { 0% { opacity: 0; transform: scale(.4); } 30% { opacity: 1; transform: scale(1.15); } 100% { opacity: 0; transform: scale(1.6); } }



.wh-target { text-align: center; margin: 8px 0 2px; font-size: 15px; color: #5b4a3a; }

.wh-controls { width: fit-content; max-width: 100%; margin: 0 auto 12px; display: flex; flex-direction: column; gap: 8px; }
.wh-ctl-row { display: flex; align-items: center; justify-content: flex-start; gap: 10px; }
.wh-controls .wh-lbl { min-width: 48px; margin-right: 0; }

#whBanner.ok { color: #2f9e6b; font-weight: 700; }
#whBanner.bad { color: var(--cinnabar); font-weight: 700; }
#whBanner.warn { color: #e67e22; font-weight: 700; }
.wh-target.ok, .wh-target.ok .wh-goal, .wh-target.ok .wh-py { color: #2f9e6b; }
.wh-target.bad, .wh-target.bad .wh-goal, .wh-target.bad .wh-py { color: var(--cinnabar); }
#whPause.wh-paused { background: #e67e22; border-color: #e67e22; color: #fff; }
.wh-goal { font-size: 52px; font-weight: 800; color: #333; margin-left: 8px; vertical-align: middle; line-height: 1; }
.wh-py { font-size: 16px; color: #999; margin-left: 8px; }
.wh-setup { text-align: center; margin: 4px 0 10px; }
.wh-row { margin: 5px 0; display: flex; justify-content: center; align-items: center; gap: 6px; }
.wh-lbl { font-weight: 700; color: #5b4a3a; margin-right: 4px; font-size: 14px; }
.wh-opt { border: 1.5px solid #d8c7ae; background: #fff; color: #5b4a3a; border-radius: 999px; padding: 5px 14px; font-size: 13px; cursor: pointer; }
.wh-opt.on { background: #7fd8be; border-color: #7fd8be; color: #fff; }
.wh-start { margin-top: 6px; }
.wh-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 430px; margin: 0 auto; padding: 0 10px; }
.wh-hole {
  aspect-ratio: 1; border-radius: 50%; cursor: pointer; user-select: none; position: relative;
  background: radial-gradient(circle at 50% 28%, #fff6ea, #efd9be 72%);
  box-shadow: inset 0 -10px 16px rgba(180,130,70,.35), inset 0 4px 10px rgba(255,255,255,.55), 0 3px 6px rgba(0,0,0,.08);
  display: flex; align-items: center; justify-content: center;
}
.wh-ch { font-size: 46px; font-weight: 800; color: #fff; opacity: 0; transform: translateY(6px) scale(.8); transition: opacity .12s, transform .12s; text-shadow: 0 2px 5px rgba(0,0,0,.25); pointer-events: none; }
.wh-hole.show { animation: whPop .18s ease; }
.wh-hole.show .wh-ch { opacity: 1; transform: translateY(0) scale(1); }

.wh-ch.ok { color: #2f9e6b; }
.wh-ch.bad { color: var(--cinnabar); }
@keyframes whPop { 0% { transform: scale(.9); } 100% { transform: scale(1); } }



.mf-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; margin: 4px 0 6px; }
.mf-card { perspective: 1100px; width: 250px; height: 320px; margin: 12px auto; cursor: pointer; user-select: none; }
.mf-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .45s; }
.mf-card.flip .mf-inner { transform: rotateY(180deg); }

.mf-card { transition: transform .33s cubic-bezier(.4,.1,.3,1), opacity .33s ease; }
.mf-card.leaving { transform: translate(30px, 26px) scale(.82) rotate(4deg); opacity: 0; }
.mf-card.leaving .mf-inner { transform: rotateY(200deg); transition-duration: .33s; }
.mf-card.entering .mf-inner { animation: mfFlipIn .34s cubic-bezier(.4,.05,.25,1) both; }
@keyframes mfFlipIn { from { transform: rotateY(-88deg) scale(.94); opacity: 0; } to { transform: rotateY(0) scale(1); opacity: 1; } }
.mf-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.mf-front { background: linear-gradient(160deg, #fff, #fdf6ec); box-shadow: 0 8px 20px rgba(120, 90, 40, .12), inset 0 0 0 2px #f3e6d2; }
.mf-back { transform: rotateY(180deg); background: linear-gradient(160deg, #fff9f0, #fdeeda); box-shadow: 0 8px 20px rgba(120, 90, 40, .14), inset 0 0 0 2px #f5ddb8; }
.mf-ch { font-weight: 500; color: #3c342a; line-height: 1; white-space: nowrap; }
.mf-py { font-size: 30px; color: #c9884a; font-weight: 600; }
.mf-en { font-size: 18px; color: #7a6a55; text-align: center; padding: 0 14px; }
.mf-speak { margin-top: 4px; }
.mf-actions { display: flex; justify-content: center; gap: 14px; margin: 12px 0 4px; }
.mf-actions[hidden] { display: none; }
.mf-know { background: #7fd8be; color: #fff; border: none; }
.mf-know:hover { background: #66c9ab; }
.mf-again { background: #ffd98a; color: #5b4a3a; border: none; }
.mf-again:hover { background: #f7c866; }



.dr-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; margin: 4px 0 6px; }
.dr-setup { text-align: center; margin: 4px 0 10px; }
.dr-opt { border: 1.5px solid #d8c7ae; background: #fff; color: #5b4a3a; border-radius: 999px; padding: 5px 12px; font-size: 13px; cursor: pointer; }
.dr-opt.on { background: #7fd8be; border-color: #7fd8be; color: #fff; }
.dr-track { position: relative; height: 186px; margin: 6px auto; max-width: 560px; }
.dr-lane { position: relative; height: 52px; margin: 8px 0; border-bottom: 1px dashed #e5d9c8; }
.dr-boat { position: absolute; top: 10px; left: 0; width: 60px; height: 28px; border-radius: 999px; transition: left .5s ease; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 11px; font-weight: 700; box-shadow: 0 3px 6px rgba(0,0,0,.15); }
.dr-b0 { background: url('images/sticker/dr-boat1.webp?v=2') center/contain no-repeat; }
.dr-b1 { background: url('images/sticker/dr-boat2.webp?v=2') center/contain no-repeat; }
.dr-b0, .dr-b1 { width: 96px; height: 46px; border-radius: 0; box-shadow: none; }
.dr-lane.on { background: rgba(255, 223, 140, .35); border-radius: 8px; }
.dr-turn { font-weight: 700; }
.dr-lbl { position: absolute; left: 68px; top: 13px; font-size: 12px; color: #7a6a55; }
.dr-flag { position: absolute; right: 4px; top: 10px; bottom: 10px; width: 14px; border-radius: 3px; background: repeating-linear-gradient(45deg, #444 0 7px, #fff 7px 14px); box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.dr-goal { text-align: center; margin: 6px 0 2px; font-size: 46px; font-weight: 600; color: #3c342a; min-height: 56px; line-height: 1.2; }
.dr-hear { display: block; margin: 2px auto; }
.dr-fish { display: flex; justify-content: center; gap: 22px; margin: 12px 0 6px; }
.dr-fish-btn { width: 96px; height: 96px; border-radius: 50%; border: none; color: #fff; font-size: 28px; font-weight: 600; cursor: pointer; box-shadow: 0 5px 12px rgba(0,0,0,.14); }
.dr-f0 { background: radial-gradient(circle at 35% 30%, #ffc1cf, #f796a9); }
.dr-f1 { background: radial-gradient(circle at 35% 30%, #bfeadd, #8ccbb4); }
.dr-f2 { background: radial-gradient(circle at 35% 30%, #ffe3a3, #f2c35f); }



.mb-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; margin: 4px 0 6px; }
.mb-setup { text-align: center; margin: 4px 0 10px; }
.mb-sky { position: relative; background: url('images/misc/magpie-bg.webp') center/cover no-repeat; border-radius: 14px; min-height: 320px; overflow: hidden; box-shadow: inset 0 0 0 2px rgba(255,255,255,.35); }
.mb-star { position: absolute; background: #fff7d6; border-radius: 50%; opacity: .9; box-shadow: 0 0 6px rgba(255,247,214,.9); }
.mb-moon { position: absolute; right: 30px; top: 12px; width: 26px; height: 26px; border-radius: 50%; background: #fff3c4; box-shadow: 0 0 16px rgba(255,243,196,.9); }
.mb-moon::before { content: ''; position: absolute; left: -7px; top: -2px; width: 24px; height: 24px; border-radius: 50%; background: rgba(148,163,255,.55); }
.mb-side { position: absolute; top: 14px; width: 66px; text-align: center; color: #fff; font-size: 12px; font-weight: 600; text-shadow: 0 1px 3px rgba(60,40,120,.6); }
.mb-cloud { width: 64px; height: 22px; background: rgba(255,255,255,.55); border-radius: 999px; margin: 0 auto 4px; box-shadow: 0 3px 6px rgba(0,0,0,.08); }
.mb-left { left: 10px; }
.mb-right { right: 10px; }

.mb-goal-wrap { display: flex; justify-content: center; margin: 12px 0 4px; }
.mb-goal { display: inline-flex; align-items: center; gap: 10px; background: #fff; border-radius: 999px; padding: 6px 26px 6px 10px; box-shadow: 0 6px 16px rgba(60,40,120,.22); font-size: 34px; font-weight: 700; color: #3c2a4a; line-height: 1.3; white-space: nowrap; }
.mb-speak-ico { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 50%; background: #ffd34d; color: #3c2a4a; font-size: 19px; display: inline-flex; align-items: center; justify-content: center; box-shadow: inset 0 -2px 0 rgba(0,0,0,.12); cursor: pointer; transition: transform .12s ease; }
.mb-speak-ico:hover { transform: scale(1.08); }
.mb-speak-ico:active { transform: scale(.94); }

.mb-bridge { position: absolute; left: 0; right: 0; top: 0; bottom: 0; }
.mb-slot { position: absolute; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; border: 2px dashed rgba(255,255,255,.75); background: rgba(255,255,255,.14); }
.mb-slot.done { border-style: solid; border-color: rgba(255,255,255,.9); background: rgba(255,255,255,.28); }

.mb-bird { position: absolute; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: 0 8px 18px rgba(60,40,120,.35); transition: left .9s cubic-bezier(.4,0,.2,1), top .9s cubic-bezier(.4,0,.2,1); z-index: 4; pointer-events: none; }
.mb-bird.launch { left: 44% !important; top: 88% !important; }
.mb-hear { display: block; margin: 2px auto; }
.mb-choices { display: flex; justify-content: center; gap: 28px; margin: 16px 0 6px; }

.mb-magpie { position: relative; width: 134px; height: 134px; border-radius: 50%; border: 4px solid #fff; background: #fdf7ef; color: #1c2752; font-size: 28px; font-weight: 800; cursor: pointer; box-shadow: 0 6px 14px rgba(80,50,140,.25); transition: transform .12s ease; overflow: hidden; }
.mb-magpie::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: url('images/misc/magpie.webp') center/cover no-repeat; filter: brightness(1.25) saturate(.62); }
.mb-magpie .mb-opt-txt { position: absolute; left: 5%; right: 5%; bottom: 8%; text-align: center; line-height: 1.2; z-index: 1; color: #1c2752; font-weight: 900; letter-spacing: .5px; background: rgba(255,255,255,.94); border-radius: 999px; padding: 2px 2px; box-shadow: 0 2px 6px rgba(60,40,120,.28); white-space: nowrap; font-size: 21px; }
.mb-magpie:hover { transform: translateY(-3px) scale(1.03); }
.mb-magpie:active { transform: scale(.97); }
.mb-magpie.wrong { animation: mb-shake .35s ease; border-color: #ff8a80; }
@keyframes mb-shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }


.st-scene { position: relative; border-radius: 14px; min-height: 168px; padding: 10px 8px 54px; overflow: hidden; }
.st-park { background: linear-gradient(180deg, #cdeaff, #bfe8c6 55%, #8fd69f), url('images/sticker/park.webp'); }
.st-beach { background: linear-gradient(180deg, #bfe0ff, #f6dfae 47%, #f0c98a), url('images/sticker/beach.webp'); }
.st-forest { background: linear-gradient(180deg, #d2f0c8, #9fd78f 58%, #77bd63), url('images/sticker/forest.webp'); }
.st-space { background: linear-gradient(180deg, #101a3d, #3c4f9b), url('images/sticker/space.webp'); }
.st-moon { background: linear-gradient(180deg, #1f2440, #56538a), url('images/sticker/moon.webp'); }
.st-scene { background-size: cover, cover; background-position: center, center; }
.st-slots { position: absolute; left: 8px; right: 8px; bottom: 8px; display: flex; gap: 6px; justify-content: center; }
.st-slot { flex: 1; max-width: 86px; border: 2px dashed rgba(90,80,70,.45); border-radius: 10px; background: rgba(255,255,255,.55); text-align: center; padding: 5px 2px 4px; }
.st-slot .st-slot-ch { display: block; font-size: 19px; font-weight: 600; color: #4a4038; }
.st-slot .st-slot-en { display: block; font-size: 10px; color: #8a7f73; }
.st-slot .st-slot-n { display: block; font-size: 11px; font-weight: 600; color: #4a4038; margin-top: 2px; }
.st-slot.got { border-style: solid; border-color: #f2a93b; background: #fff3d9; }
.st-slot.got .st-slot-n { color: #d88a1f; }



.fs-words { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 2px 0 8px; }
.fs-word { width: 46px; height: 46px; border-radius: 10px; border: 2px solid #e3ddd3; background: #fff; font-size: 25px; font-weight: 600; color: #4a4038; cursor: pointer; }
.fs-word.on { border-color: #7fd8be; background: #eafaf4; color: #1d7a5e; }
.fs-nodata { opacity: .35; cursor: default; }
.fs-stage { display: flex; justify-content: center; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.fs-left { display: flex; flex-direction: column; align-items: center; }
.fs-ref-board { width: 280px; height: 280px; border: 2px dashed #d9cfc2; border-radius: 14px; background: #fffdf8; position: relative; }
.fs-ref-board.hide { visibility: hidden; }
.fs-ref { min-height: 30px; font-size: 24px; font-weight: 600; color: #8a7f73; }
.fs-ref-mem { font-size: 30px; color: #d88a1f; }
.fs-board { position: relative; width: 280px; height: 280px; margin: 4px auto; border: 2px dashed #d9cfc2; border-radius: 14px; background: #fffdf8; overflow: hidden; }
.fs-writer { position: relative; z-index: 5; pointer-events: none; }
.fs-writer svg { pointer-events: none; }
.fs-draw { position: absolute; left: 0; top: 0; cursor: crosshair; }


.fs-ref-wrap { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; align-self: center; }
.fs-ref-label { font-size: 13px; font-weight: 700; color: #a08d76; letter-spacing: 0.5px; }
.fs-ref-mini { width: 170px; height: 170px; border: 2px solid #eadfce; border-radius: 16px; background: #faf3e6; overflow: hidden; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(180,150,100,.12); }
.fs-ref-wrap.fs-ref-hidden { visibility: hidden; }
.fs-ref-wrap.fs-ref-off { display: none; }
.fs-target-row { display: flex; justify-content: center; align-items: center; gap: 12px; margin: 2px 0 4px; }
.fs-target-ch { min-width: 64px; height: 64px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; font-size: 40px; font-weight: 800; color: #4a4038; background: #fffdf8; border: 2.5px solid #d8a27a; border-radius: 14px; box-shadow: 0 2px 8px rgba(216,162,122,.18); cursor: pointer; user-select: none; }
.fs-target-hidden { color: #c9bfae; }
.fs-speak { width: 44px; height: 44px; border-radius: 50%; border: none; background: #e4f4f2; font-size: 20px; cursor: pointer; transition: filter .15s; }
.fs-speak:hover { filter: brightness(1.05); }
.fs-instr { text-align: center; font-size: 14px; font-weight: 600; color: #6b5d4d; margin: 4px 0 8px; }

.fs-target-row.ok .fs-target-ch { color: #2f9e6b; border-color: #9fd9bd; box-shadow: 0 2px 8px rgba(47,158,107,.2); }
.fs-target-row.bad .fs-target-ch { color: var(--cinnabar); border-color: #eab6b6; box-shadow: 0 2px 8px rgba(208,88,74,.18); }
.fs-hint.ok { color: #2f9e6b; font-weight: 700; }
.fs-hint.bad { color: var(--cinnabar); font-weight: 700; }
#fsBanner.ok { color: #2f9e6b; font-weight: 700; }
#fsBanner.bad { color: var(--cinnabar); font-weight: 700; }
.fs-hint { font-size: 14px; color: #8a7f73; margin: 2px 0 6px; }
.fs-setup { margin: 6px 0 8px; }
.fs-sec-lbl { font-size: 12px; font-weight: 700; letter-spacing: 0.6px; color: #a08d76; text-align: center; margin: 14px 0 8px; }
.fs-opts { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.fs-top-row { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.fs-top-btn { border: none; border-radius: 999px; padding: 8px 16px; font-size: 13px; font-weight: 700; cursor: pointer; transition: filter .15s, transform .1s; }
.fs-top-btn:hover { filter: brightness(1.06); }
.fs-top-btn:active { transform: translateY(1px); }
.fs-btn-restart { background: #ffd9e0; color: #8a5a63; box-shadow: 0 2px 6px rgba(255, 150, 170, 0.25); }
.fs-btn-change { background: #d5efe0; color: #4f7a66; box-shadow: 0 2px 6px rgba(120, 200, 160, 0.25); }
.fs-btn-start { background: #e4dcf6; color: #5f5591; box-shadow: 0 2px 6px rgba(150, 130, 220, 0.28); }
.hp-play-wrap { text-align: center; margin: 6px 0 12px; }
.hp-play { border: none; border-radius: 999px; padding: 10px 26px; font-size: 15px; font-weight: 700; background: #ffedd5; color: #b26a00; cursor: pointer; box-shadow: 0 2px 6px rgba(178, 106, 0, 0.2); }
.hp-play:hover { filter: brightness(1.05); }
.hp-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; max-width: 420px; margin: 0 auto; }
.hp-cell { aspect-ratio: 2.2/1; border: 2px solid #e6d8c3; border-radius: 14px; background: #fffdf8; font-family: var(--font-serif); font-size: 30px; font-weight: 600; color: #444; cursor: pointer; transition: all 0.12s; }
.hp-cell:hover { border-color: #d8c7ae; background: #fff9ee; }
.hp-cell.ok { background: #c8e6c9; border-color: #4caf50; color: #1b5e20; }
.hp-cell.bad { background: #ffcdd2; border-color: #e57373; color: #b71c1c; }
.hp-banner { min-height: 22px; text-align: center; margin: 10px 0 4px; font-size: 15px; }

.hp-progress, .hp-score { text-align: center; font-size: 13px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.hp-progress { margin-top: 6px; }
.hp-score { margin-bottom: 2px; }
.hp-progress b, .hp-score b { color: var(--cinnabar); font-size: 18px; }
.hp-banner .ok { color: #2e7d32; font-weight: 700; }
.hp-banner .bad { color: #c62828; font-weight: 700; }
.wb-play-wrap { text-align: center; margin: 6px 0 14px; }
.wb-slots { display: flex; justify-content: center; gap: 10px; margin: 6px 0 18px; }
.wb-slot { width: 64px; height: 72px; border: 2px dashed #d8c7ae; border-radius: 12px; background: #fffdf6;
  display: flex; align-items: center; justify-content: center; font-family: var(--font-serif); font-size: 40px; font-weight: 600; color: #444; }
.wb-slot.active { border-color: #ffb74d; background: #fff8e1; }
.wb-slot.filled { border-style: solid; border-color: #8bc34a; background: #e8f5e9; color: #2e7d32; }
.wb-opts { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.wb-opt { width: 88px; height: 76px; border: 2px solid #e6d8c3; border-radius: 14px; background: #fffdf8;
  font-family: var(--font-serif); font-size: 34px; font-weight: 600; color: #444; cursor: pointer; transition: all 0.12s; }
.wb-opt:hover { border-color: #d8c7ae; background: #fff9ee; }
.wb-opt.bad { background: #ffcdd2; border-color: #e57373; color: #b71c1c; }
.sb-slots { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 6px 0 18px; }
.sb-slot { min-width: 84px; min-height: 56px; padding: 6px 12px; border: 2px dashed #d8c7ae; border-radius: 12px; background: #fffdf6;
  display: flex; align-items: center; justify-content: center; font-size: 21px; font-weight: 600; color: #444; }
.sb-slot.active { border-color: #ffb74d; background: #fff8e1; }
.sb-slot.filled { border-style: solid; border-color: #8bc34a; background: #e8f5e9; color: #2e7d32; }
.sb-tiles { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.sb-tile { border: 2px solid #e6d8c3; border-radius: 12px; background: #fffdf8; padding: 10px 16px;
  font-size: 20px; font-weight: 600; color: #444; cursor: pointer; transition: all 0.12s; }
.sb-tile:hover { border-color: #d8c7ae; background: #fff9ee; }
.sb-tile.used { opacity: 0.25; cursor: default; }
.sb-tile.bad { background: #ffcdd2; border-color: #e57373; color: #b71c1c; }
.tq-q { font-size: 26px; color: #4a4038; text-align: center; padding: 22px 14px 6px; min-height: 74px; }
.tq-answers { text-align: center; padding: 4px 0 14px; }
.tq-tf { margin: 6px; min-width: 96px; }
.tq-head { text-align: center; padding: 8px 0 2px; }
.tq-seg { font-size: 15px; color: #b08968; margin-bottom: 8px; font-weight: 600; }
.tq-play { background: #ffe8cc; border-color: #f5c79e; color: #8a5a2b; font-size: 17px; padding: 10px 22px; }
.tq-change { background: #e8f4fd; border-color: #b8ddf0; color: #3a6a8a; font-size: 15px; padding: 8px 16px; margin-left: 8px; }
.tq-fb { font-size: 24px; color: #4a4038; }
.tq-blank { display: inline-block; min-width: 64px; border-bottom: 3px dotted #b08968; color: #b08968; margin: 0 4px; font-size: 24px; }
.tq-fbopt { margin: 6px; min-width: 88px; }
.sb-en { text-align: center; color: #8a7a63; font-size: 15px; background: #faf5ea; border: 1px dashed #e0d2b8;
  border-radius: 10px; padding: 8px 14px; margin: 4px auto 12px; max-width: 92%; width: auto;
  line-height: 1.5; word-break: break-word; overflow-wrap: break-word; }
.fs-ref-done { color: #2e9e6b; font-size: 32px; font-weight: 700; }


.wb-over { text-align: center; padding: 26px 10px; display: flex; flex-direction: column; align-items: center; }
.wb-over-title { font-size: 34px; font-weight: 800; color: #2e9e6b; margin-bottom: 8px; }
.wb-over-score { font-size: 20px; color: #d32f2f; margin-bottom: 18px; font-weight: 700; }
.wb-over-btns { display: flex; justify-content: center; align-items: center; gap: 14px; flex-wrap: wrap; }
.wb-over-btns button { margin: 0 !important; }
.wb-over-btns .af-btn { padding: 9px 26px; border-radius: 999px; font-size: 15px; }

.tq-change-q { background: #e8f6ec; border-color: #bfe3c8; color: #2e7d5b; }
.tq-toggles { display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; }

.tq-bar { display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; margin: 10px 0 0; }

.tq-stats { display: flex; justify-content: center; align-items: center; gap: 22px; flex-wrap: wrap; margin: 10px 0 4px; }
.tq-stats .hp-progress, .tq-stats .hp-score { margin: 0; }

.tq-textpanel { margin: 12px auto 4px; padding: 6px 18px; background: rgba(63, 111, 140, 0.05); border: 1px solid var(--line); border-radius: 14px; max-width: 640px; }
.tq-textpanel .tr-line:last-child { border-bottom: none; }
.tq-en { margin: 8px 0 0; font-size: 15px; font-weight: 400; color: var(--en); }
.tq-q ruby rt { font-size: 12px; font-weight: 400; color: var(--en); }


.afk-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; max-width: 440px; margin: 18px auto 0; }
.afk-card { position: relative; height: 96px; border-radius: 16px; border: 2px solid #cdb9e8; background: #ece5f7; color: #6a4a9e; font-size: 30px; font-weight: 700; cursor: pointer; padding: 0; }
.afk-card .afk-back, .afk-card .afk-face { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; border-radius: 14px; backface-visibility: hidden; transition: transform .28s ease; }
.afk-card .afk-back { background: radial-gradient(circle at 50% 38%, #e4daf5, #d9cdf0); font-size: 34px; }
.afk-card .afk-back svg { width: 66px; height: 66px; display: block; filter: drop-shadow(0 2px 2px rgba(60, 42, 74, .12)); }
.afk-card .afk-face { background: #fff; transform: rotateY(180deg); font-size: 34px; color: #3c2a4a; white-space: nowrap; padding: 0 4px; box-sizing: border-box; }
.afk-card.on .afk-back { transform: rotateY(180deg); }
.afk-card.on .afk-face { transform: rotateY(0deg); }
.afk-card.ok { border-color: #7fd8be; background: #d9f5ea; }
.afk-card.ok .afk-face { color: #2e9e6b; }


.stn-board { display: grid; grid-template-columns: repeat(5, 62px); gap: 6px; justify-content: center; margin: 16px auto 0; }
.stn-cell { width: 62px; height: 62px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 25px; font-weight: 700; background: #fdf6e9; border: 2px solid #f3dca7; color: #6b5b3e; position: relative; }
.stn-cell.wall { background: #e8e3f5; border-color: #cdb9e8; color: #b7a9dd; }
.stn-cell.done { background: #d9f5ea; border-color: #7fd8be; color: #2e9e6b; }
.stn-cell.hit { background: #ffe8cc; border-color: #ffb26b; color: #a35a00; }
.stn-cell.here { border-color: #ff8fa3; }
.stn-here { font-size: 24px; margin-right: 2px; }
.stn-board.stn-shake { animation: stnshake .4s; }
@keyframes stnshake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.stn-dpad { display: flex; gap: 10px; justify-content: center; margin-top: 14px; }
.stn-dpad .af-btn { min-width: 54px; }


.col-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; max-width: 470px; margin: 18px auto 0; }
.col-cell { height: 84px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 700; background: #fdf6e9; border: 2px solid #f3dca7; color: #6b5b3e; cursor: pointer; }
.col-cell:hover { border-color: #cdb9e8; }
.col-cell.ok { background: #d9f5ea; border-color: #7fd8be; color: #2e9e6b; }
.col-cell.bad { background: #ffe0e0; border-color: #ff9f9f; color: #b34a4a; animation: colshake .35s; }
@keyframes colshake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

.stn-cell.goal { background: #fff6de; border-color: #ffc94d; box-shadow: inset 0 0 0 3px #ffd980; }


.stk-canvas { position: relative; height: 440px; border-radius: 22px; margin-top: 14px; overflow: hidden; box-shadow: 0 8px 24px rgba(120,90,40,.18); }
.stk-beach { background: url('images/sticker/beach-bg.webp?v=4') center/cover no-repeat; }
.stk-hint { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); background: rgba(255,255,255,.9); border-radius: 999px; padding: 6px 16px; font-size: 14px; color: #7a5b2e; z-index: 3; box-shadow: 0 3px 10px rgba(120,90,40,.15); white-space: nowrap; }
@media (max-width: 620px) { .stk-hint { white-space: normal; text-align: center; max-width: calc(100% - 24px); border-radius: 14px; } }

.stk-tray { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; max-width: 720px; margin: 14px auto 0; }
@media (max-width: 620px) { .stk-tray { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 430px) { .stk-tray { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.stk-note { max-width: 640px; margin: 0 auto 10px; padding: 6px 14px; border-radius: 12px; background: #fff6e5; border: 1px solid #ffe0b0; color: #a4711c; font-size: 13px; line-height: 1.55; text-align: center; }
.stk-note b { color: #8a5a12; }
.stk-st { position: relative; width: 100%; height: auto; aspect-ratio: 1 / 1; border-radius: 16px; border: 2px solid #ffe0b0; background: rgba(255,255,255,.92); cursor: pointer; padding: 0; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(120,90,40,.16); transition: transform .12s ease; }
.stk-st:hover { transform: translateY(-2px) scale(1.04); }
.stk-st img { width: 72%; height: 72%; object-fit: contain; pointer-events: none; }
.stk-st.done { opacity: .5; border-color: #7fd8be; }
.stk-check { position: absolute; top: -6px; right: -6px; background: #7fd8be; color: #fff; border-radius: 50%; width: 22px; height: 22px; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(0,0,0,.18); }
.stk-quiz { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); background: #fff; border-radius: 20px; padding: 18px 22px; box-shadow: 0 10px 30px rgba(120,90,40,.3); z-index: 5; text-align: center; min-width: 260px; }
.stk-qgoal { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 44px; font-weight: 700; color: #3c2a4a; margin-bottom: 12px; }
.stk-qopts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stk-opt { border-radius: 999px; background: #f4edff; border: 2px solid #d9cdf0; color: #6a4a9e; font-size: 20px; font-weight: 700; padding: 10px 14px; cursor: pointer; }
.stk-opt:hover { background: #ece2ff; }
.stk-opt.bad { background: #ffe0e0; border-color: #ff9f9f; color: #b34a4a; }
.stk-sticker { position: absolute; width: 104px; height: 104px; background: transparent; border: none; display: flex; align-items: center; justify-content: center; cursor: grab; user-select: none; touch-action: none; z-index: 4; }
.stk-sticker img { width: 92px; height: 92px; object-fit: contain; pointer-events: none; }
.stk-sticker.dragging { cursor: grab; z-index: 6; box-shadow: 0 10px 22px rgba(120,90,40,.35); }
.stk-sticker.resizing { z-index: 7; }


.stk-modes { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 10px 0 4px; }
.stk-mode { padding: 5px 12px; border-radius: 999px; border: 1px solid #d9cdf0; background: #fff; color: #6a4a9e; font-size: 12px; cursor: pointer; }
.stk-mode.active { background: #b7a8e8; color: #fff; border-color: #b7a8e8; }
.stk-qbox { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.stk-qlabel { font-size: 11px; color: #a08fc0; text-transform: uppercase; letter-spacing: 1px; }
.stk-qprompt { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 42px; font-weight: 700; color: #3c2a4a; margin-bottom: 12px; min-height: 54px; }
.stk-qprompt .mb-speak-ico { font-size: 40px; cursor: pointer; }
.stk-qpinyin { color: #6a4a9e; font-size: 36px; }
.stk-qchar { color: #3c2a4a; }
.stk-qmean { color: #2e9e6b; font-size: 30px; }
.stk-qprompt .stk-spk { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; cursor: pointer; }
.stk-qprompt .stk-spk svg { pointer-events: none; }
.stk-park { background: url('images/sticker/park-bg.webp?v=1') center/cover no-repeat; }
.stk-themes { display: flex; gap: 8px; justify-content: center; margin-top: 8px; }
.stk-theme { padding: 5px 14px; border-radius: 999px; border: 1px solid #bfe3f2; background: #fff; color: #3d7ea8; font-size: 12px; cursor: pointer; }
.stk-theme.active { background: #a9d4ef; color: #fff; border-color: #a9d4ef; }
.stk-theme[data-t="park"] { border-color: #cde8c4; color: #4a8f3d; }
.stk-theme[data-t="park"].active { background: #a8d8a0; color: #fff; border-color: #a8d8a0; }
.stk-space { background: url('images/sticker/space-bg.webp?v=1') center/cover no-repeat; }
.stk-theme[data-t="space"] { border-color: #e2d5f5; color: #7a5fc0; }
.stk-theme[data-t="space"].active { background: #cbb8f0; color: #fff; border-color: #cbb8f0; }

.stk-zoo { background: url('images/sticker/zoo-bg.jpg?v=3') center/cover no-repeat; }
.stk-theme[data-t="zoo"] { border-color: #f2ddb8; color: #a9711f; }
.stk-theme[data-t="zoo"].active { background: #eebd7a; color: #fff; border-color: #eebd7a; }
.stk-transport { background: url('images/sticker/transport-bg.webp?v=3') center/cover no-repeat; }
.stk-theme[data-t="transport"] { border-color: #f6d0cb; color: #c25b52; }
.stk-theme[data-t="transport"].active { background: #ef9d94; color: #fff; border-color: #ef9d94; }
.stk-canvas { position: relative; overflow: hidden; }
.stk-confetti { position: absolute; top: -14px; border-radius: 2px; opacity: .95; pointer-events: none; animation-name: stkFall; animation-timing-function: ease-in; animation-iteration-count: 1; }
@keyframes stkFall {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(560px) rotate(360deg); }
}
.dr-b2 { background: url('images/sticker/dr-boat3.webp?v=1') center/contain no-repeat; }
.dr-b3 { background: url('images/sticker/dr-boat4.webp?v=1') center/contain no-repeat; }
.dr-b2, .dr-b3 { width: 96px; height: 46px; border-radius: 0; box-shadow: none; }
.dr-num { width: 56px; padding: 4px 6px; border-radius: 8px; border: 1px solid #e0d6c5; font-size: 12px; text-align: center; }
.dr-set { padding: 5px 10px; font-size: 12px; }
.dr-qwrap { text-align: center; margin: 8px 0 0; }
.dr-qmode { display: inline-block; background: #efe9fb; color: #7a5fc0; border-radius: 999px; padding: 3px 14px; font-size: 12px; font-weight: 800; letter-spacing: 1px; margin-bottom: 2px; }
.dr-qwrap .mb-goal { padding: 8px 30px 8px 12px; }
.dr-qwrap .mb-speak-ico { cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.mb-speak-ico svg { display: block; }
.vl-audio { display: inline-flex; align-items: center; justify-content: center; }
.vl-audio svg { display: block; }
.dr-fish { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 460px; margin: 12px auto 6px; }
.dr-optbtn { background: #fff; border: 2px solid #e5dcf5; border-radius: 14px; padding: 12px 6px; font-size: 20px; font-weight: 700; color: #3c2a4a; cursor: pointer; box-shadow: 0 3px 8px rgba(60,40,120,.12); min-height: 54px; }
.dr-optbtn:hover { border-color: #b7a8e8; }
.dr-optbtn:active { transform: scale(.97); }
.dr-qwrap { background: #f2f8ef; border: 2px solid #dcecd3; border-radius: 18px; padding: 12px 10px 14px; margin: 10px auto 4px; max-width: 560px; }
.dr-qwrap .mb-goal { background: #eaf6e4; box-shadow: 0 6px 16px rgba(46,125,50,.22); border: 2px solid #cfe3c6; }
.dr-optbtn { border-color: #cfe3c6; box-shadow: 0 3px 8px rgba(46,125,50,.15); }
.dr-optbtn:hover { border-color: #7fbc6e; }
.dr-opt { border-color: #bcd8b2; color: #3f5d35; }
.dr-opt.on { background: #58b383; border-color: #58b383; color: #fff; }
#drStart { background: #58b383 !important; border-color: #58b383 !important; color: #fff !important; }
#drStart:hover { background: #3e9a6d !important; border-color: #3e9a6d !important; }
.dr-b4 { background: url('images/sticker/dr-boat5.webp?v=1') center/contain no-repeat; width: 96px; height: 46px; border-radius: 0; box-shadow: none; }
.dr-setup-inline { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 16px; margin: 8px 0; }
.dr-setup-inline .wh-row { flex-direction: column; align-items: center; gap: 5px; margin: 0; }
.dr-setup-inline .wh-lbl { text-align: center; font-size: 12px; margin-right: 0; }
.dr-setup-inline #drStart { order: 99; margin: 0; align-self: center; }
.dr-setup-inline .dr-num { width: 46px; }
.dr-setup-inline { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.dr-setup-inline .wh-row { flex-direction: row; justify-content: flex-start; width: 600px; max-width: 94vw; gap: 6px; flex-wrap: wrap; margin: 0; }
.dr-setup-inline .wh-lbl { min-width: 62px; text-align: left; font-size: 13px; margin-right: 2px; }
.dr-setup-inline #drStart { order: 0; margin: 4px auto 0; display: block; }
.dr-setup-inline .dr-num { width: 52px; }
.dr-setup-inline { display: flex; flex-direction: row; justify-content: center; align-items: center; gap: 18px; flex-wrap: wrap; }
.dr-setup-cols { display: flex; flex-direction: column; gap: 7px; }
.dr-setup-cols .wh-row { flex-direction: row; justify-content: flex-start; width: 500px; max-width: 86vw; gap: 6px; flex-wrap: wrap; margin: 0; }
.dr-setup-cols .wh-lbl { min-width: 62px; text-align: left; font-size: 13px; margin-right: 2px; }
#drStart { margin: 0; }
.dr-time-start { display: flex; flex-direction: row; align-items: center; gap: 10px; align-self: center; }
.dr-time-start .wh-row { flex-direction: row; justify-content: flex-start; gap: 6px; margin: 0; width: auto; flex-wrap: nowrap; }
.dr-time-start #drStart { margin: 0; }
.dr-right { display: flex; flex-direction: row; align-items: center; gap: 10px; align-self: center; }
.dr-timer-btn { background: #eaf6e4; border: 2px solid #58b383; color: #2e7d32; font-weight: 800; font-size: 15px; padding: 7px 16px; border-radius: 999px; min-width: 86px; font-variant-numeric: tabular-nums; cursor: default; }
.dr-right #drStart { margin-top: 0 !important; }
.dr-timer-btn { padding: 6px 12px; font-size: 12px; min-width: 74px; line-height: 1.5; }
.dr-right .af-btn { height: 30px; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; }
.wh-board { background: linear-gradient(180deg, #faf6ea, #f2ead7); border-radius: 18px; box-shadow: 0 6px 14px rgba(60,120,60,.18); }
.wh-hole { background: url('images/sticker/wh-hole.webp?v=2') center bottom / 100% auto no-repeat; box-shadow: none; border-radius: 12px; }
.wh-hole.show { animation: whPop .18s ease; }

.wh-clip { position: absolute; left: 25%; right: 31%; top: 52%; bottom: 16%; border-radius: 50%; overflow: hidden; z-index: 1; }
.wh-mole { position: absolute; left: 50%; bottom: -8%; width: 92%; height: auto; transform: translateX(-50%) translateY(115%); opacity: 0; transition: opacity .18s ease, transform .18s ease; pointer-events: none; }
.wh-hole.show .wh-mole { opacity: 1; transform: translateX(-50%) translateY(10%); }

.wh-ch { position: absolute; left: 0; right: 0; bottom: 64%; text-align: center; font-size: 44px; color: #4a2f16; text-shadow: 0 2px 3px rgba(255,255,255,.6); white-space: nowrap; z-index: 2; }

.wh-goal-row { justify-content: center; gap: 16px; }
.wh-goal-row .wh-target { margin: 0; font-size: 14px; display: inline-flex; align-items: center; }
.wh-goal-row .wh-goal { font-size: 38px; }
.wh-goal-row .wh-py { font-size: 14px; }
.wh-setup { display: flex; justify-content: center; align-items: center; gap: 20px; flex-wrap: wrap; }
.wh-cols { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.wh-cols .wh-row { margin: 0; }
.wh-right { display: flex; align-items: center; gap: 10px; }
.wh-timer-btn { background: #eaf6e4; border: 2px solid #58b383; color: #2e7d32; font-weight: 800; font-size: 13px; padding: 6px 12px; border-radius: 999px; min-width: 74px; font-variant-numeric: tabular-nums; cursor: default; display: inline-flex; align-items: center; justify-content: center; height: 30px; box-sizing: border-box; }
.wh-right .wh-start { height: 30px; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; margin-top: 0; }
.wh-setup { flex-direction: column; align-items: center; gap: 8px; }
.wh-cols { align-items: center; }
.wh-confetti { position: fixed; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; z-index: 999; overflow: hidden; }
.wh-confetti .cf-p { position: absolute; top: -14px; width: 10px; height: 14px; border-radius: 2px; opacity: .95; animation: cfFall 1.6s ease-in forwards; }
@keyframes cfFall { 0% { transform: translateY(0) rotate(0); } 100% { transform: translateY(115vh) rotate(760deg); } }


.home-extra { margin-top: 26px; text-align: center; }
.home-extra .home-hw-btn { margin: 6px 6px 0; }


.home-grid {
  margin-top: 44px; width: 100%; max-width: 780px;
  
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px;
}

.home-grid.home-grid-one { grid-template-columns: minmax(0, 360px); justify-content: center; }
.home-grid-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; text-align: center; text-decoration: none; cursor: pointer;
  background: var(--card); color: var(--cinnabar);
  border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 28px 18px; min-height: 132px; position: relative;
  box-shadow: var(--shadow);
  transition: transform .12s ease, border-color .15s ease, box-shadow .15s ease;
}
.home-grid-card:hover { border-color: var(--cinnabar); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(176, 58, 46, .12); }
.home-grid-card:active { transform: translateY(0); }

.hg-ico {
  width: 56px; height: 56px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .03);
}
.home-grid-card[data-hg="manage"] .hg-ico { background: #e8f0fe; }
.home-grid-card[data-hg="books"] .hg-ico { background: #fdeaea; }
.home-grid-card[data-hg="tools"] .hg-ico { background: #e2f4ea; }
.home-grid-card[data-hg="games"] .hg-ico { background: #fff3d6; }
.home-grid-card[data-hg="resources"] .hg-ico { background: #efeafd; }
.home-grid-card[data-hg="classroom"] .hg-ico { background: #fde9f2; }
.home-grid-card[data-hg="games"] .hg-img { background: #fff3d6; padding: 4px; }
.home-grid-card[data-hg="manage"]:hover { border-color: #9db9e8; }
.home-grid-card[data-hg="books"]:hover { border-color: #e8a7a0; }
.home-grid-card[data-hg="tools"]:hover { border-color: #93cdaf; }
.home-grid-card[data-hg="games"]:hover { border-color: #e6c377; }
.home-grid-card[data-hg="resources"]:hover { border-color: #bda7ec; }
.home-grid-card[data-hg="classroom"]:hover { border-color: #eba6c8; }

.hg-img { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; display: block; }
.home-hw-btn .hg-img-sm { width: 24px; height: 24px; border-radius: 7px; object-fit: cover; vertical-align: -5px; margin-right: 4px; }
.hg-title { font-size: 18px; font-weight: 700; letter-spacing: .5px; color: var(--ink); }
.hg-sub { font-size: 11.5px; font-weight: 500; letter-spacing: .2px; color: var(--ink-soft); line-height: 1.5; }
.hg-owner { position: absolute; top: 10px; right: 10px; font-size: 10px; font-weight: 600; color: var(--cinnabar); background: #fdf3f1; border: 1px solid #f0c9c2; border-radius: 999px; padding: 2px 8px; }

.home-grid-card[data-hg="studio"] .hg-ico { background: #fde9f2; }
@media (max-width: 620px) { .home-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } .home-grid-card { min-height: 104px; padding: 20px 12px; } }


.level-btn.level-stroke { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.level-stroke .lb-t { font-family: var(--font-serif); font-size: 19px; letter-spacing: 1px; }
.level-stroke .lb-en { font-size: 11px; font-weight: 500; letter-spacing: 1.5px; color: var(--ink-faint); }
@media (max-width: 480px) { .level-stroke .lb-t { font-size: 16px; } }
.home-hw-btn {
  font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  padding: 11px 26px; border-radius: 999px;
  background: var(--card); color: var(--ink); border: 1px solid var(--line);
  box-shadow: var(--shadow); transition: border-color .15s ease, color .15s ease, transform .12s ease;
}
.home-hw-btn:hover { border-color: var(--cinnabar); color: var(--cinnabar); transform: translateY(-2px); }

.hw-loading, .hw-empty { padding: 40px 20px; text-align: center; color: var(--ink-soft); font-size: 14px; }
.hw-empty .big { font-size: 18px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.hw-empty code { background: #f2efe9; padding: 2px 6px; border-radius: 5px; font-size: 12px; }

.hw-stats { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.hw-stat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 20px; min-width: 132px;
}
.hw-stat b { display: block; font-size: 22px; color: var(--cinnabar); }
.hw-stat span { font-size: 12px; color: var(--ink-soft); }

.hw-toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.hw-hint { font-size: 12px; color: var(--ink-faint); }

.hw-btn {
  font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
  padding: 8px 16px; border-radius: var(--radius-sm);
  background: var(--card); color: var(--ink); border: 1px solid var(--line);
  transition: border-color .15s ease, color .15s ease, opacity .15s ease;
}
.hw-btn:hover { border-color: var(--cinnabar); color: var(--cinnabar); }
.hw-btn:disabled { opacity: .45; cursor: not-allowed; }
.hw-btn-primary { background: var(--cinnabar); border-color: var(--cinnabar); color: #fff; }
.hw-btn-primary:hover { color: #fff; opacity: .9; }
.hw-btn-sm { padding: 5px 12px; font-size: 12px; }
.hw-btn-xs { padding: 4px 10px; font-size: 12px; font-weight: 500; }
.hw-btn.danger:hover { border-color: #b03a2e; color: #b03a2e; }


.hw-form {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; margin-bottom: 22px; box-shadow: var(--shadow);
}
.hw-form h3 { margin: 0 0 16px; font-size: 16px; }
.hw-field { margin-bottom: 15px; }
.hw-field label { display: block; font-size: 12.5px; color: var(--ink-soft); margin-bottom: 6px; }
.hw-field input[type=text], .hw-field input[type=date], .hw-field select, .hw-field textarea {
  font-family: inherit; font-size: 13.5px; width: 100%; max-width: 100%;
  padding: 8px 11px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; color: var(--ink);
}
.hw-field textarea { resize: vertical; line-height: 1.6; }
.hw-field-row { display: flex; gap: 12px; flex-wrap: wrap; }
.hw-field-row .hw-field { flex: 1 1 180px; }

.hw-games {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 7px; max-height: 260px; overflow-y: auto;
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px;
  background: #fffdf9;
}
.hw-game {
  display: flex; align-items: center; gap: 7px; cursor: pointer;
  font-size: 12.5px; padding: 5px 8px; border-radius: 7px;
  border: 1px solid transparent; transition: background .12s ease, border-color .12s ease;
}
.hw-game:hover { background: #f7f3ec; }
.hw-game.on { background: var(--cinnabar-soft); border-color: #e8c4bd; color: var(--cinnabar-dark); font-weight: 600; }
.hw-game input { flex: none; }
.hw-quick { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }

.hw-fsmodes {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  gap: 6px; max-height: 230px; overflow-y: auto; margin-top: 8px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 9px;
  background: #fffdf9;
}
.hw-fsrow { display: flex; align-items: center; gap: 4px; }
.hw-fs-ch {
  flex: none; width: 26px; height: 26px; border-radius: 7px;
  background: #fbe9ec; color: #b4556a; font-family: var(--font-serif);
  font-size: 15px; font-weight: 700; line-height: 26px; text-align: center;
}
.hw-fsopt {
  flex: 1 1 auto; min-width: 0; padding: 3px 0; font-size: 11.5px; cursor: pointer;
  border: 1px solid #d8c7ae; background: #fff; color: #5b4a3a; border-radius: 6px;
  transition: background .12s ease, border-color .12s ease, color .12s ease;
}
.hw-fsopt:hover { border-color: #c9b394; }
.hw-fsopt.on { background: #7fd8be; border-color: #7fd8be; color: #fff; font-weight: 600; }
.hw-fsmodes-view {
  display: flex; align-items: center; flex-wrap: wrap; gap: 5px;
  margin: 0 0 8px; font-size: 11.5px; color: var(--ink-faint);
}
.hw-fsmodes-view b { font-weight: 600; color: var(--ink-soft); margin-right: 4px; }

.hw-res-tools { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.hw-res-tools input[type="text"] {
  flex: 1 1 150px; min-width: 130px; padding: 5px 10px; font-size: 12.5px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink);
}
.hw-res-cnt { font-size: 11.5px; color: var(--ink-faint); margin-left: auto; }
.hw-res-list {
  display: flex; flex-direction: column; gap: 5px;
  max-height: 260px; overflow-y: auto; -webkit-overflow-scrolling: touch;
  margin-top: 8px; padding: 9px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fffdf9;
}
.hw-res {
  display: flex; align-items: center; gap: 7px; cursor: pointer; flex: none;
  font-size: 12.5px; padding: 5px 8px; border-radius: 7px;
  border: 1px solid transparent; transition: background .12s ease, border-color .12s ease;
}
.hw-res:hover { background: #f7f3ec; }
.hw-res.on { background: var(--cinnabar-soft); border-color: #e8c4bd; color: var(--cinnabar-dark); font-weight: 600; }
.hw-res input { flex: none; }
.hw-res-ico { flex: none; font-size: 15px; line-height: 1; }
.hw-res-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hw-res-kind {
  flex: none; font-size: 10.5px; font-weight: 400; padding: 1px 7px; border-radius: 999px;
  background: #f2efe9; color: var(--ink-faint);
}
.hw-res.on .hw-res-kind { background: #fff; color: var(--cinnabar-dark); }

.hw-rescard {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 12px; margin-top: 8px;
  border: 1px solid var(--line); border-radius: 10px; background: #fffdf9;
}
.hw-rescard .hw-res-ico { font-size: 20px; }
.hw-res-txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hw-res-txt b { font-size: 13.5px; color: var(--ink); font-weight: 600; }
.hw-res-txt i { font-style: normal; font-size: 11.5px; color: var(--ink-faint); }
.dr-opt[disabled] { cursor: not-allowed; }
.dr-opt-lock { opacity: .5; }
.dr-opt-lock.on { opacity: .85; }


.hw-field-tip { margin: 8px 0 0; font-size: 11.5px; line-height: 1.75; color: var(--ink-faint); }
.hw-field-tip b { color: var(--ink-soft); font-weight: 600; }
.hw-field-warn { margin: 6px 0 0; font-size: 11.5px; line-height: 1.7; color: #b8860b; }
.hw-field-warn:empty { display: none; }

.hw-field-more { margin-top: 6px; font-size: 11.5px; line-height: 1.75; color: var(--ink-faint); }
.hw-field-more > summary { display: inline-block; cursor: pointer; color: #3f6f8c; list-style: none; }
.hw-field-more > summary::-webkit-details-marker { display: none; }
.hw-field-more > summary::marker { content: ''; }
.hw-field-more[open] > summary { margin-bottom: 2px; }

.hw-form-act { display: flex; gap: 10px; margin-top: 6px; }
.hw-err { color: var(--cinnabar); font-size: 12.5px; min-height: 16px; margin: 0 0 10px; }


.hw-sec { font-size: 16px; margin: 0 0 12px; }
.hw-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 15px 18px; margin-bottom: 12px; box-shadow: var(--shadow); transition: opacity .15s ease;
}
.hw-card.is-done { opacity: .62; background: #fafaf7; }
.hw-card.is-done .hw-card-title { text-decoration: line-through; text-decoration-color: var(--ink-faint); }
.hw-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.hw-card-title { font-size: 15.5px; font-weight: 700; line-height: 1.35; }
.hw-card-sub { font-size: 12px; color: var(--ink-soft); margin-top: 4px; }
.hw-card-act { display: flex; align-items: center; gap: 6px; flex: none; }
.hw-donecount { font-size: 12px; color: var(--green, #2f9e6b); font-weight: 600; margin-right: 2px; }

.hw-due { font-size: 11.5px; padding: 2px 8px; border-radius: 999px; background: #f2efe9; color: var(--ink-soft); }
.hw-due.ok { background: #eef9f3; color: #2f9e6b; }
.hw-due.soon { background: #fdf7e8; color: #d99310; }
.hw-due.over { background: #fdeceb; color: #b03a2e; }

.hw-row { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.hw-label { font-size: 11.5px; color: var(--ink-faint); flex: none; }
.hw-chip {
  font-size: 11.5px; padding: 3px 9px; border-radius: 999px;
  background: #f4f0e8; color: var(--ink-soft); border: 1px solid var(--line);
}
.hw-chip-word { background: #fff; font-size: 12.5px; color: var(--ink); font-weight: 600; }
.hw-note {
  margin-top: 11px; padding: 10px 12px; font-size: 12.5px; line-height: 1.65;
  background: #fffdf9; border-left: 3px solid var(--cinnabar); border-radius: 0 6px 6px 0;
  color: var(--ink-soft); white-space: pre-wrap;
}
.hw-card-foot {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-top: 13px; padding-top: 12px; border-top: 1px solid #f0ece5;
}
.hw-check { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink-soft); cursor: pointer; }





.hw-subcount { font-size: 12px; color: var(--en, #3f6f8c); font-weight: 600; margin-right: 2px; }
.hw-linkrow { align-items: center; }
.hw-linktext {
  flex: 1 1 260px; min-width: 200px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 11.5px; color: var(--ink-soft);
  padding: 6px 9px; border: 1px solid var(--line); border-radius: 7px;
  background: #fbfaf7; text-overflow: ellipsis;
}
.hw-btn-del { color: var(--ink-soft); }
.hw-btn-del:hover { border-color: #b03a2e; color: #b03a2e; }
.hw-btn-lg { padding: 12px 30px; font-size: 15px; border-radius: 999px; }
.hw-chip-bad { background: #fdeceb; border-color: #f3c9c5; color: #b03a2e; }

.hw-inkchip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 6px 2px 3px;
  border: 1px solid #e6e0d6; border-radius: 8px; background: #fff; line-height: 1; }
.hw-inkchip .hw-ink { width: 30px; height: 30px; display: block; }
.hw-inkchip b { font-weight: 600; color: var(--ink); font-size: 13.5px; }
.hw-fb-badcell { white-space: normal; }
.hw-fb-badcell .hw-inkchip { margin: 2px 5px 2px 0; }


.hw-wgrid {
  margin-top: 10px; padding: 12px 14px 8px;
  background: #fffdf8; border: 1px solid var(--line); border-radius: 12px;
}
.hw-wgrid-head { font-size: 13px; font-weight: 700; color: var(--ink); margin: 2px 0 6px; letter-spacing: .3px; }
.hw-wgrid-head i { font-style: normal; font-weight: 400; font-size: 12px; color: var(--ink-faint); margin-left: 8px; }
.hw-wrow { padding: 9px 0 7px; }
.hw-wrow + .hw-wrow { border-top: 1px dashed #efe7d8; }
.hw-wrow-word { display: block; font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.4; }
.hw-wrow-py { font-style: normal; font-weight: 400; font-size: 12px; color: var(--ink-faint); margin-left: 8px; }
.hw-wrow-cells { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 6px; }

.hw-wcell { display: inline-flex; align-items: center; gap: 7px; }
.hw-wcell-pill {
  min-width: 28px; height: 28px; padding: 0 8px; border-radius: 14px;
  background: #fbe9ec; color: #b4556a;
  font-family: var(--font-serif); font-size: 16px; font-weight: 700; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
}
.hw-wcell-box {
  position: relative; box-sizing: border-box;
  width: 54px; height: 54px; border-radius: 9px;
  background-color: #fff; border: 1.5px solid #e6ccd2; overflow: hidden;
  background-image:
    linear-gradient(to right, transparent calc(50% - .5px), #f4e3e7 calc(50% - .5px), #f4e3e7 calc(50% + .5px), transparent calc(50% + .5px)),
    linear-gradient(to bottom, transparent calc(50% - .5px), #f4e3e7 calc(50% - .5px), #f4e3e7 calc(50% + .5px), transparent calc(50% + .5px));
}

.hw-wcell-box i {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-style: normal; font-family: var(--font-serif); font-size: 30px; color: #dcc4ca;
}
.hw-wcell-box .hw-ink {
  position: absolute; top: 2px; left: 2px;
  width: calc(100% - 4px); height: calc(100% - 4px);
  z-index: 1; display: block; background: none;
}

.hw-plate-key { display: inline-flex; align-items: center; gap: 4px; margin-left: 10px; vertical-align: middle; }
.hw-plate-key span { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.hw-plate-key span + span { margin-left: 8px; }
.hw-plate-key .k-base { background: rgba(242,160,160,0.34); border: 1px solid #f2a0a0; }
.hw-plate-key .k-miss { background: rgba(242,160,160,0.10); border: 1.5px dashed #e0687a; }
.hw-plate-key .k-ink { background: #2b6de9; border: 1px solid #2b6de9; }

.hw-chip-tap { cursor: pointer; font-family: inherit; transition: border-color .15s ease, color .15s ease; }
.hw-chip-tap:hover { border-color: var(--cinnabar); color: var(--cinnabar); }
.hw-teacherlink { margin-top: 26px; text-align: center; font-size: 12px; }
.hw-teacherlink a { color: var(--ink-faint); text-decoration: underline dotted; }
.hw-teacherlink a:hover { color: var(--cinnabar); }


.hw-fb { margin-top: 2px; }
.hw-fb-loading { padding: 14px 4px; font-size: 12.5px; color: var(--ink-soft); }
.hw-fb-panel {
  margin-top: 10px; padding: 14px 16px;
  background: #fcfbf8; border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.hw-fb-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.hw-fb-head b { font-size: 13.5px; }
.hw-fb-cnt { font-size: 12px; color: var(--ink-soft); }
.hw-fb-head .hw-btn { margin-left: auto; }
.hw-fb-head .hw-btn + .hw-btn { margin-left: 0; }
.hw-fb-tip { font-size: 12.5px; color: var(--ink-soft); line-height: 1.7; margin: 4px 0 0; }
.hw-fb-common { margin-bottom: 10px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: 12px; color: var(--ink-soft); }

.hw-sub-list { display: flex; flex-direction: column; gap: 8px; }
.hw-sub { background: var(--card); border: 1px solid var(--line); border-radius: 9px; padding: 9px 12px; }
.hw-sub-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12.5px; }
.hw-sub-name { font-weight: 700; font-size: 13.5px; min-width: 62px; }

.fb-mlabel { display: none; font-style: normal; font-weight: 400; font-size: 11px; color: var(--ink-faint); }
.hw-sub-rcell { display: flex; align-items: center; gap: 4px; min-width: 0; }
.hw-sub-rate { font-weight: 700; padding: 2px 9px; border-radius: 999px; font-size: 12px; }
.hw-sub-rate.good { background: #eef9f3; color: #2f9e6b; }
.hw-sub-rate.mid { background: #fdf7e8; color: #d99310; }
.hw-sub-rate.low { background: #fdeceb; color: #b03a2e; }
.hw-sub-score { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.hw-sub-done { color: var(--ink-faint); font-size: 11px; }

.hw-sub-bad { min-width: 0; color: var(--cinnabar); font-size: 12px; line-height: 1.6; word-break: break-word; }
.hw-sub-bad .hw-wsep { font-style: normal; opacity: .5; margin: 0 1px; }
.hw-sub-time { color: var(--ink-faint); font-size: 11.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }

.fb-thead, .hw-sub-row {
  display: grid; gap: 10px; align-items: center;
  grid-template-columns: minmax(80px, 1.1fr) 58px 78px minmax(120px, 2.2fr) 132px 56px;
}

.fb-thead {
  padding: 8px 13px; margin-bottom: 8px; border-radius: 8px;
  background: #f5f7f3; color: var(--ink-soft); font-size: 11.5px; font-weight: 600;
}

.fb-thead.is-plain, .hw-sub-row.is-plain { grid-template-columns: minmax(96px, 1fr) 132px 56px; }
.hw-sub-name i {
  display: block; font-style: normal; font-weight: 400;
  font-size: 11px; color: var(--ink-faint); margin-top: 2px;
}

.hw-pair {
  display: inline-block; padding: 2px 8px; border-radius: 8px; line-height: 1.5;
  background: #fdf3f2; border: 1px solid #f2dcd8; color: #8a4a3e; font-size: 11.5px;
  margin-right: 4px;
}
.fb-read { margin-top: 10px; font-size: 12px; color: var(--ink-faint); }
.hw-sub-note { margin-top: 7px; font-size: 12px; color: var(--ink-soft); }

.hw-sub-detail { margin-top: 8px; }
.hw-sub-detail > summary {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 11px; border-radius: 999px; list-style: none;
  background: #f2f6f9; border: 1px solid #dde8ef; color: #3f6f8c;
  font-size: 11.5px; cursor: pointer; user-select: none;
}
.hw-sub-detail > summary:hover { background: #e9f1f6; }
.hw-sub-detail > summary::-webkit-details-marker { display: none; }
.hw-sub-detail > summary::marker { content: ''; }
.hw-sub-detail .fb-tg-close { display: none; }
.hw-sub-detail[open] > summary .fb-tg-open { display: none; }
.hw-sub-detail[open] > summary .fb-tg-close { display: inline; }
.hw-sub-table { width: 100%; border-collapse: collapse; margin-top: 7px; font-size: 12px; }
.hw-sub-table th, .hw-sub-table td { padding: 5px 8px; border-bottom: 1px solid #f0ece5; text-align: left; }
.hw-sub-table th { color: var(--ink-faint); font-weight: 600; font-size: 11.5px; }
.hw-sub-table td.num { font-weight: 700; }
.hw-sub-table td.ok { color: #2f9e6b; }
.hw-sub-table td.bad { color: var(--cinnabar); }


.fb-hero {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px 20px; box-shadow: var(--shadow); margin-bottom: 16px;
}
.fb-hero-title { margin: 0 0 6px; font-size: 26px; letter-spacing: .5px; color: var(--ink); }
.fb-hero-sub { margin: 0; font-size: 13px; color: var(--ink-soft); }
.fb-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: var(--shadow); margin-bottom: 16px;
}
.fb-card-head { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.fb-list { display: flex; flex-direction: column; gap: 8px; }
.fb-item {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  border: 1px solid #f0ece5; border-radius: 10px; padding: 10px 12px; background: #fff;
}
.fb-item.is-sel { border-color: #cdb9a6; background: #fffcf5; }
.fb-item-main { flex: 1 1 240px; min-width: 0; }
.fb-item-title { font-size: 14px; font-weight: 700; color: var(--ink); }
.fb-item-sub { font-size: 12px; color: var(--ink-soft); margin-top: 2px; }
.fb-item-act { display: flex; gap: 7px; margin-left: auto; }
.fb-btn-green { background: #e8f4ec; border-color: #bfe0cb; color: #2f7d4f; }
.fb-btn-green:hover { background: #dcefe3; }
.fb-btn-red { background: #fdecea; border-color: #f3c4bd; color: #b03a2e; }
.fb-btn-red:hover { background: #fbe0dc; }
.fb-btn-purple { background: #efeafd; border-color: #d5c8f2; color: #6a4bbf; }
.fb-btn-purple:hover { background: #e6defb; }
.fb-detail {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px 18px; box-shadow: var(--shadow);
}
.fb-detail-head { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.fb-badge {
  display: inline-block; flex: 0 0 auto; margin-top: 3px;
  font-size: 11.5px; font-weight: 700; color: #6a4bbf;
  background: #efeafd; border: 1px solid #d5c8f2; border-radius: 20px; padding: 3px 10px;
}
.fb-detail-titewrap { flex: 1 1 220px; min-width: 0; }
.fb-detail-title { margin: 0; font-size: 19px; line-height: 1.35; color: var(--ink); }
.fb-detail-meta { font-size: 12.5px; color: var(--ink-soft); margin-top: 3px; }
.fb-sec-label { font-size: 13px; font-weight: 700; color: var(--ink); margin: 14px 0 8px; }
.fb-badwords { display: flex; gap: 7px; flex-wrap: wrap; }
.fb-nonew { font-size: 12.5px; color: var(--ink-faint); }
.fb-detail-acts { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.fb-detail .hw-subs-kpis { margin-top: 4px; }

.hw-subs-kpis { display: flex; gap: 12px; align-items: stretch; }
.hw-subs-kpi {
  flex: 1 1 0; min-width: 0; text-align: center;
  background: #fffdf9; border: 1px solid #f0ece5; border-radius: 10px; padding: 10px 12px;
}
.hw-subs-kpi b { display: block; font-size: 22px; line-height: 1.25; color: var(--ink); }
.hw-subs-kpi span { font-size: 11.5px; color: var(--ink-faint); }
.fb-detail .hw-sub { border: 1px solid #f0ece5; border-radius: 10px; padding: 9px 12px; background: #fff; }
.hw-bad-n { font-style: normal; font-size: 10.5px; opacity: .75; margin-left: 3px; }


.hw-task-hero {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; box-shadow: var(--shadow); margin-bottom: 20px;
}
.hw-task-badge { display: inline-block; font-size: 11.5px; font-weight: 600; letter-spacing: .3px;
  padding: 3px 11px; border-radius: 999px; background: var(--cinnabar-soft, #f9efec); color: var(--cinnabar); }
.hw-task-title { font-size: 21px; margin: 12px 0 0; line-height: 1.35; }
.hw-task-meta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 10px;
  font-size: 12.5px; color: var(--ink-soft); }
.hw-task-note { margin-top: 12px; padding: 10px 13px; font-size: 13px; line-height: 1.7;
  background: #fffdf9; border-left: 3px solid var(--cinnabar); border-radius: 0 6px 6px 0; color: var(--ink-soft); }
.hw-task-words { margin-top: 12px; }
.hw-task-tiphint { font-size: 11.5px; color: var(--ink-faint); }

.hw-task-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13px; }
.hw-task-bar b { font-size: 14px; }
.hw-task-progress { margin-left: auto; font-size: 12.5px; color: var(--ink-soft); }
.hw-task-pbar { height: 7px; border-radius: 999px; background: #efeae1; overflow: hidden; margin: 10px 0 22px; }
.hw-task-pbar i { display: block; height: 100%; background: var(--cinnabar); border-radius: 999px;
  transition: width .3s ease; }

.hw-task-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 26px; }
.hw-task-game {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 13px 16px;
}
.hw-task-game.is-touched { border-color: #cfe4d8; background: #fcfefd; }
.hw-tg-main { flex: 1 1 200px; min-width: 0; }
.hw-tg-name { font-size: 14px; font-weight: 600; }
.hw-tg-tag { margin-left: 8px; font-size: 10.5px; font-weight: 500; padding: 1px 7px; border-radius: 999px;
  background: #f2efe9; color: var(--ink-faint); vertical-align: 2px; }
.hw-tg-desc { font-size: 12px; color: var(--ink-soft); margin-top: 3px; }
.hw-tg-side { display: flex; align-items: center; gap: 10px; flex: none; }
.hw-tg-ok { font-size: 12px; font-weight: 600; color: #2f9e6b; }
.hw-tg-open { font-size: 12px; color: var(--en, #3f6f8c); }
.hw-tg-none { font-size: 12px; color: var(--ink-faint); }
.hw-tg-locked { font-size: 12px; color: var(--ink-faint); }

.hw-task-start {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; box-shadow: var(--shadow); margin-bottom: 22px;
}
.hw-task-start h3 { margin: 0 0 8px; font-size: 17px; }
.hw-task-start p { font-size: 13px; color: var(--ink-soft); line-height: 1.7; margin: 0 0 14px; }
.hw-task-name-row { display: flex; gap: 10px; flex-wrap: wrap; }
.hw-task-name-row input {
  flex: 1 1 200px; min-width: 160px;
  font-family: inherit; font-size: 15px; padding: 11px 14px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--ink);
}
.hw-task-name-row input:focus { outline: none; border-color: var(--cinnabar); }
.hw-err { color: var(--cinnabar); font-size: 12.5px; min-height: 16px; margin: 8px 0 0; }

.hw-task-submit {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; box-shadow: var(--shadow); text-align: center;
}
.hw-task-sum { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 16px; }
.hw-sum-chip { font-size: 12.5px; padding: 5px 13px; border-radius: 999px; background: #f4f0e8; color: var(--ink-soft); }
.hw-sum-chip.ok { background: #eef9f3; color: #2f9e6b; font-weight: 600; }
.hw-sum-chip.bad { background: #fdeceb; color: #b03a2e; font-weight: 600; }
.hw-task-empty-tip { font-size: 12.5px; color: var(--ink-faint); }
.hw-task-submit .hw-task-tiphint { display: block; margin-top: 11px; }

.hw-task-done {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 24px; box-shadow: var(--shadow); text-align: center; margin-bottom: 20px;
}
.hw-task-done-icon { font-size: 44px; line-height: 1; }
.hw-task-done h3 { font-size: 20px; margin: 12px 0 8px; }
.hw-task-done > p { font-size: 13.5px; color: var(--ink-soft); margin: 0 0 18px; }
.hw-task-badlist { margin-top: 4px; font-size: 12.5px; color: var(--ink-soft);
  display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; align-items: center; }
.hw-task-done-act { margin-top: 22px; display: flex; flex-direction: column; align-items: center; gap: 10px; }


.hw-taskbar {
  position: fixed; right: 20px; bottom: 22px; z-index: 9998;
  font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
  padding: 11px 18px; border-radius: 999px;
  background: var(--cinnabar); color: #fff; border: none;
  box-shadow: 0 6px 20px rgba(176, 58, 46, .35);
  max-width: 62vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hw-taskbar b { font-weight: 700; }
.hw-taskbar:hover { opacity: .92; }

@media (max-width: 640px) {
  .hw-task-game { align-items: flex-start; }
  .hw-tg-side { width: 100%; justify-content: space-between; }
  
  .fb-thead { display: none; }
  .hw-sub-row, .hw-sub-row.is-plain { grid-template-columns: 1fr; gap: 4px; }
  .hw-sub-name i { display: inline; margin-left: 6px; }
  .fb-mlabel { display: inline; }
  .hw-sub-rate.good, .hw-sub-rate.mid, .hw-sub-rate.low { background: none; padding: 0; }
  .hw-sub-score::before { content: '答对 '; font-weight: 400; color: var(--ink-faint); }
  .hw-sub-bad::before { content: '答错 '; font-weight: 400; color: var(--ink-faint); }
  .hw-sub-time::before { content: '提交 '; font-weight: 400; }
  .hw-sub-time { font-size: 11px; }
  .hw-fb-head .hw-btn { margin-left: 0; }
  .hw-taskbar { right: 12px; bottom: 14px; max-width: 78vw; }

  
  .hw-tg-side .hw-btn, .hw-task-start .hw-btn, .hw-task-name-row .hw-btn,
  .hw-task-done-act .hw-btn { min-height: 44px; padding: 11px 20px; font-size: 14px; }
  .hw-task-name-row input { min-height: 46px; font-size: 16px; }  
  .hw-chip-tap { padding: 7px 13px; font-size: 14px; }
  .hw-btn-xs { min-height: 32px; padding: 7px 12px; }
  .hw-taskbar { padding: 13px 20px; font-size: 14px; }
  .hw-task-title { font-size: 19px; }
  .hw-task-game { padding: 14px; }
  .hw-task-hero, .hw-task-start, .hw-task-submit, .hw-task-done { padding: 18px 16px; }
  .hw-sub-row { row-gap: 4px; }

  
  .hw-subs-kpis { gap: 8px; }
  .hw-subs-kpi { padding: 8px 6px; }
  .hw-subs-kpi b { font-size: 18px; }
  .hw-subs-kpi span { font-size: 10.5px; }
  .hw-subs-gact { margin-left: 0; width: 100%; }
  .hw-subs-head { gap: 8px; }
  .hw-subs-acts .hw-btn { min-height: 40px; }
}


@media (max-width: 720px) {
  .hw-two-cols { grid-template-columns: 1fr; gap: 18px; }
  .hw-canvas-wrap { width: min(320px, 100%); margin-left: auto; margin-right: auto; }
  .hw-panel { padding: 18px 12px; }
  .hw-nav-row { flex-wrap: wrap; }
  .hw-actions button { padding: 10px 20px; min-height: 42px; }

  
  .fh-top.fh-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  
  .bg-board { flex: 1 1 100%; min-width: 0; }

  
  .wh-row, .wh-ctl-row { flex-wrap: wrap; }
}

@media (max-width: 380px) {
  .page { padding-left: 10px; padding-right: 10px; }
  .hw-panel { padding: 14px 6px; }
  
  .cc-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  
  .stn-board { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
  .stn-cell { width: auto; height: auto; aspect-ratio: 1 / 1; border-radius: 11px; font-size: 21px; }
}


.pz-done-btns, .mc-done-btns, .sc-done-btns, .fc-done-btns {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; margin-top: 16px; flex-wrap: wrap;
}
.mc-done-btn, .sc-done-btn, .pz-done-btns .done-shuffle, .fc-done-btns .fc-nav-btn {
  padding: 10px 26px; border-radius: 999px; font-size: 15px; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  font-family: var(--font-sans);
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.mc-done-btn:hover, .sc-done-btn:hover, .pz-done-btns .done-shuffle:hover, .fc-done-btns .fc-nav-btn:hover {
  border-color: var(--cinnabar); color: var(--cinnabar);
}
.pz-done-btns .done-shuffle:last-child, .fc-done-btns .fc-replay-btn {
  background: var(--cinnabar); border-color: var(--cinnabar); color: #fff;
}
.pz-done-btns .done-shuffle:last-child:hover, .fc-done-btns .fc-replay-btn:hover { color: #fff; opacity: .9; }



.pb-dialog-mask {
  position: fixed; inset: 0; z-index: 130;
  display: flex; align-items: center; justify-content: center;
  padding: 20px; box-sizing: border-box;
  background: rgba(46, 42, 38, .45);
}

.pb-dialog-float {
  background: var(--card); border-radius: var(--radius); padding: 30px 38px;
  text-align: center; max-width: 340px; width: 86%;
  box-shadow: var(--shadow);
}


.ws-panel { padding: 14px 12px 18px; }
.ws-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 14px;
}
.ws-modes { display: flex; gap: 8px; flex-wrap: wrap; }
.ws-mode {
  font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--ink-soft);
}
.ws-mode.active { background: var(--cinnabar); border-color: var(--cinnabar); color: #fff; }
.ws-ans {
  font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
  padding: 7px 14px; border-radius: 999px; border: 1px dashed var(--line);
  background: #fff; color: var(--ink-soft);
}
.ws-ans.active { background: #2f9e6b; border-color: #2f9e6b; border-style: solid; color: #fff; }
.ws-shapes-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.ws-shape { border-style: dashed; }
.ws-shape.active { background: #2f9e6b; border-color: #2f9e6b; border-style: solid; color: #fff; }
.ws-tools { display: flex; align-items: center; gap: 12px; }
.ws-btn {
  font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
  padding: 7px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--ink);
}
.ws-btn.ws-primary { background: var(--cinnabar); border-color: var(--cinnabar); color: #fff; }
.ws-clock { font-variant-numeric: tabular-nums; font-size: 15px; color: var(--ink); min-width: 52px; text-align: right; }
.ws-stage { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.ws-grid-wrap { flex: 1 1 320px; min-width: 0; }

.ws-board { position: relative; max-width: 420px; margin: 0 auto; }

.ws-outline { position: absolute; left: 0; top: 0; right: 0; bottom: 0; pointer-events: none; z-index: 2; }
.ws-outline svg { width: 100%; height: 100%; }
.ws-grid {
  position: relative; z-index: 1;
  display: grid; gap: 4px;
  max-width: 420px; margin: 0 auto;
  user-select: none; touch-action: none;
}

.ws-grid.ws-grid-lg { gap: 3px; }
.ws-grid.ws-grid-lg .ws-cell { font-size: clamp(12px, 3.6vw, 17px); border-radius: 5px; }
.ws-cell {
  appearance: none; -webkit-appearance: none;
  aspect-ratio: 1 / 1; min-width: 0; min-height: 0;
  font-family: var(--font-serif); font-size: clamp(16px, 4.2vw, 24px);
  font-weight: 600; color: var(--ink);
  background: #fff; border: 1px solid #e8e3da; border-radius: 7px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .12s ease, border-color .12s ease, transform .06s ease;
}
.ws-cell:hover { background: #f9f7f3; border-color: #d9d2c6; }
.ws-cell.ws-sel { background: #fff3cd; border-color: #f0c36d; }
.ws-found { border-color: transparent; color: #fff; }
.ws-cell.ws-c0 { background: #7fb3d5; }
.ws-cell.ws-c1 { background: #f4a688; }
.ws-cell.ws-c2 { background: #90c695; }
.ws-cell.ws-c3 { background: #c8a2c8; }
.ws-cell.ws-c4 { background: #f7dc6f; color: var(--ink) !important; }
.ws-cell.ws-c5 { background: #85c1e2; }
.ws-cell.ws-c6 { background: #f1948a; }
.ws-cell.ws-c7 { background: #82e0aa; }
.ws-blank { aspect-ratio: 1 / 1; min-width: 0; min-height: 0; pointer-events: none; }
.ws-worksheet-table td.ws-blank-td { border: none !important; }
.ws-clues { flex: 1 1 180px; min-width: 0; }
.ws-clues-title { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.ws-clue {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px; margin-bottom: 6px; border-radius: 8px;
  background: #faf8f4; border: 1px solid #f0ece5; font-size: 13.5px;
}
.ws-clue-found { opacity: .5; text-decoration: line-through; background: #eef9f3; border-color: #cfe4d8; }
.ws-clue-no { font-weight: 700; color: var(--cinnabar); min-width: 22px; }
.ws-clue-text { color: var(--ink); }
.ws-clue-target .ws-clue-text { font-weight: 700; color: var(--cinnabar); }
.ws-hint { min-height: 22px; text-align: center; font-size: 13px; margin-top: 10px; color: var(--ink-soft); }
.ws-hint.bad { color: var(--cinnabar); font-weight: 600; }
.ws-overlay {
  position: fixed; inset: 0; z-index: 120;
  display: none; align-items: center; justify-content: center;
  background: rgba(46, 42, 38, .45); padding: 20px;
}
.ws-overlay.show { display: flex; }
.ws-dialog {
  background: var(--card); border-radius: var(--radius); padding: 30px 38px;
  text-align: center; max-width: 340px; width: 86%; box-shadow: var(--shadow);
}
.ws-dialog-title { font-size: 22px; font-weight: 700; color: var(--ink); margin: 0 0 6px; }
.ws-dialog-sub { font-size: 15px; color: var(--ink-soft); margin: 0 0 6px; }
.ws-dialog-time { font-size: 14px; color: var(--ink-faint); margin: 0 0 18px; }
.ws-dialog-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }


.ws-worksheet {
  position: fixed; inset: 0; z-index: 130;
  display: none; align-items: flex-start; justify-content: center;
  background: #fff; padding: 22px; overflow: auto;
}
.ws-worksheet.show { display: flex; }
.ws-worksheet-inner {
  max-width: 720px; width: 100%; margin: 0 auto;
  background: #fff; color: var(--ink);
}
.ws-worksheet-actions {
  display: flex; gap: 10px; justify-content: center;
  margin-bottom: 16px;
}
.ws-png-preview { text-align: center; }
.ws-png-preview img {
  max-width: 100%; height: auto;
  border: 1px solid var(--line); border-radius: 6px;
  background: #fff;
}
.ws-worksheet-header {
  display: flex; justify-content: space-between;
  margin-bottom: 10px; font-size: 15px;
}
.ws-worksheet-box {
  border: 1.5px solid #333; border-radius: 6px;
  padding: 14px 12px;
}
.ws-worksheet-brand { font-size: 13px; font-weight: 700; text-align: left; margin-bottom: 4px; }
.ws-worksheet-title {
  text-align: center; font-size: 22px; font-weight: 700;
  margin: 0 0 14px;
}
.ws-worksheet-note { font-size: 12px; font-weight: 600; text-align: left; margin: 10px 0 0; }
.ws-worksheet-footer { font-size: 12px; color: var(--ink-soft); text-align: left; margin-top: 10px; }
.ws-worksheet-grid-wrap { margin-bottom: 20px; }
.ws-worksheet-table {
  border-collapse: collapse; margin: 0 auto;
  border: 1.5px solid #222;
}
.ws-worksheet-table td {
  width: 34px; height: 34px;
  text-align: center; vertical-align: middle;
  font-size: 20px; font-weight: 500;
  border: 1px solid #222;
}
.ws-worksheet-words {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 24px;
}
.ws-worksheet-word {
  display: flex; align-items: center; gap: 8px;
  font-size: 16px;
}
.ws-worksheet-no { font-weight: 700; color: var(--cinnabar); min-width: 22px; }
.ws-worksheet-clue { color: var(--ink); }
.ws-worksheet-char { font-size: 22px; font-weight: 700; margin-left: 6px; }

#wsPrintRoot { display: none; }
@media print {
  #wsPrintRoot { display: block !important; }
  #wsPrintRoot, #wsPrintRoot * { visibility: visible !important; }
  #wsPrintRoot .ws-worksheet-actions { display: none !important; }
  
  #wsPrintRoot .ws-worksheet-inner { max-width: none; padding-top: 5mm; break-inside: avoid; page-break-inside: avoid; }
  #wsPrintRoot .ws-worksheet-header { font-size: 10pt; margin-bottom: 2mm; }
  
  #wsPrintRoot .ws-worksheet-box { border: 1.5px solid #333 !important; border-radius: 4px; padding: 3mm 3mm; }
  #wsPrintRoot .ws-worksheet-brand { font-size: 9pt; margin-bottom: 1mm; }
  #wsPrintRoot .ws-worksheet-title { font-size: 14pt; margin: 0 0 3mm; }
  
  #wsPrintRoot .ws-worksheet-grid-wrap { margin: 0 auto 2mm; text-align: center; }
  #wsPrintRoot .ws-worksheet-table {
    margin: 0 auto; table-layout: fixed;
    border: 1.5px solid #222 !important;
  }
  #wsPrintRoot .ws-worksheet-table td {
    width: var(--ws-print-cell, 12mm); height: var(--ws-print-cell, 12mm);
    font-size: var(--ws-print-font, 15pt); font-weight: 500;
    text-align: center; vertical-align: middle;
    border: 1px solid #222 !important;
  }
  
  #wsPrintRoot .ws-worksheet-table td.ws-blank-td { border: none !important; background: #fff !important; }
  #wsPrintRoot .ws-worksheet-note { font-size: 8pt; margin: 2mm 0 0; }
  #wsPrintRoot .ws-worksheet-footer { font-size: 8pt; margin-top: 3mm; }
  
  #wsPrintRoot .ws-worksheet-words {
    display: grid !important; grid-template-columns: 1fr 1fr;
    gap: 4mm 6mm; margin-top: 3mm;
  }
  #wsPrintRoot .ws-worksheet-word { font-size: 10pt; }
  #wsPrintRoot .ws-worksheet-no { font-size: 10pt; min-width: auto; }
  #wsPrintRoot .ws-worksheet-char { font-size: 13pt; margin-left: 2mm; }
}

@media (max-width: 640px) {
  .ws-top { flex-direction: column; align-items: stretch; }
  .ws-tools { justify-content: space-between; }
  .ws-stage { flex-direction: column; }
  .ws-grid { max-width: 100%; }
  .ws-cell { font-size: clamp(15px, 5vw, 20px); border-radius: 5px; }
  .ws-clues { width: 100%; }
  .ws-clue { font-size: 13px; }
}


.mp-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 18px; margin: 10px 0 4px; }
.mp-legend-item { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; color: #3b2d5e; font-size: 16px; }
.mp-swatch { width: 22px; height: 22px; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(120,100,170,.25); }
.mp-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 2px; max-width: 420px; margin: 10px auto 6px; }
.mp-cell { aspect-ratio: 1/1; border-radius: 4px; border: 1px solid #fff; background: #ffffff; color: #5b4a82; font-weight: 800; cursor: pointer; box-shadow: none; display: flex; align-items: center; justify-content: center; line-height: 1; transition: transform .1s ease; padding: 0; }
.mp-cell:hover { transform: scale(1.05); }
.mp-cell.filled { color: #4a3a6e; }
.mp-cell.filled.on { color: #ffffff; }
.mp-actions { display: flex; justify-content: center; gap: 12px; margin: 8px 0 4px; flex-wrap: wrap; }
.mp-print-area { display: none; }
.mp-print-title { text-align: center; color: #3b2d5e; margin: 0 0 6px; font-size: 36px; }
.mp-print-sub { text-align: center; color: #6b5a96; margin: 0 0 28px; font-size: 15px; }
.mp-print-legend { text-align: center; margin: 6px 0 12px; }
.mp-print-legend-item { display: inline-block; margin: 0 14px; font-weight: 700; color: #3b2d5e; font-size: 15px; }
.mp-print-swatch { display: inline-block; width: 18px; height: 18px; border-radius: 4px; margin-right: 6px; vertical-align: -3px; box-shadow: inset 0 0 0 1px rgba(120,100,170,.3); }
.mp-print-board { width: 420px; margin: 0 auto; }
.mp-print-row { display: flex; }
.mp-print-cell { flex: 1; height: 46px; display: flex; align-items: center; justify-content: center; border: 1px solid #c9bfdd; background: #fff; color: #6b5a96; font-weight: 700; }
.mp-print-write { text-align: center; color: #6b5a96; margin: 18px 0 6px; font-size: 14px; }
.mp-print-lines { width: 420px; margin: 0 auto; }
.mp-print-line { border-bottom: 1.5px solid #b9aecb; height: 26px; }


.mp-sizes { display: flex; justify-content: center; gap: 10px; margin: 8px 0 2px; }
.mp-size-on { background: #e6d9ff; border-color: #8a5bbf; color: #4a2f7a; box-shadow: 0 0 0 2px rgba(138,91,191,.25); }
.mp-picklist { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; max-width: 560px; margin: 10px auto; padding: 14px; background: #fbf7ff; border: 2px dashed #d5c8ea; border-radius: 18px; }
.mp-picklist[hidden] { display: none; }
.mp-pick { background: #fff; border: 2px solid #e3d9f2; border-radius: 14px; padding: 10px 6px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; transition: transform .1s ease; }
.mp-pick:hover { transform: scale(1.06); border-color: #b59ad8; }
.mp-pick-ico { font-size: 30px; line-height: 1; }
.mp-pick-name { font-size: 13px; font-weight: 700; color: #3b2d5e; }


.cs-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; margin-bottom: 18px; box-shadow: var(--shadow);
}
.cs-card h3 { margin: 0 0 4px; font-size: 16px; }
.cs-course { font-size: 12.5px; color: var(--ink-soft); margin-bottom: 14px; }
.cs-note { font-size: 12.5px; color: var(--ink-soft); margin-top: 10px; line-height: 1.6; }

.cs-code {
  display: inline-block; font-family: var(--font-mono, ui-monospace, Menlo, Consolas, monospace);
  font-size: 30px; font-weight: 700; letter-spacing: 5px; color: var(--cinnabar);
  background: #fdf6f4; border: 1px dashed var(--cinnabar); border-radius: var(--radius-sm);
  padding: 10px 18px 10px 23px; margin: 6px 0 14px; user-select: all;
}
.cs-status {
  display: inline-block; font-size: 12px; color: #2e7d32; background: #f2f7f2;
  border: 1px solid #cfe4d2; border-radius: 999px; padding: 3px 12px; margin-left: 10px;
  vertical-align: middle;
}
.cs-label { font-size: 12.5px; color: var(--ink-soft); margin: 0 0 8px; }

.cs-join { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-start; }
.cs-qr {
  flex: 0 0 auto; padding: 10px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-sm); line-height: 0;
}
.cs-qr svg { display: block; width: 168px; height: 168px; }
.cs-join-side { flex: 1 1 260px; min-width: 240px; }
.cs-link {
  font-family: var(--font-mono, ui-monospace, Menlo, Consolas, monospace);
  font-size: 12px; color: var(--ink); background: #f7f5f0;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 9px 11px; word-break: break-all; line-height: 1.6; margin-bottom: 10px;
  user-select: all;
}
.cs-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.cs-roster { border-top: 1px dashed var(--line); margin-top: 16px; padding-top: 14px; }
.cs-roster h4 { margin: 0 0 10px; font-size: 13px; color: var(--ink-soft); font-weight: 600; }
.cs-stu {
  display: inline-flex; align-items: center; gap: 7px; margin: 0 8px 8px 0;
  background: #f7f5f0; border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 14px; font-size: 13px; color: var(--ink);
}
.cs-stu b { font-weight: 600; }
.cs-stu time { font-size: 11px; color: var(--ink-faint); }

.cs-item {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 15px 18px; margin-bottom: 12px; box-shadow: var(--shadow);
}
.cs-item-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cs-item-name { font-size: 15px; font-weight: 600; margin: 0; }
.cs-item-course { font-size: 12px; color: var(--ink-soft); margin: 3px 0 0; }
.cs-item-side { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.cs-mini-code {
  font-family: var(--font-mono, ui-monospace, Menlo, Consolas, monospace);
  font-size: 13px; letter-spacing: 2px; color: var(--cinnabar);
}
.cs-count { font-size: 12px; color: var(--ink-soft); }


.cs-join-hero { text-align: center; padding: 26px 20px 8px; }
.cs-join-hero .big { font-size: 20px; font-weight: 600; color: var(--ink); margin: 0 0 6px; }
.cs-join-hero .sub { font-size: 13.5px; color: var(--ink-soft); margin: 0; line-height: 1.6; }
.cs-form { max-width: 380px; margin: 0 auto; }
.cs-ok {
  text-align: center; padding: 34px 20px;
}
.cs-ok .seal {
  width: 54px; height: 54px; border-radius: 50%; background: var(--cinnabar); color: #fff;
  font-size: 26px; line-height: 54px; margin: 0 auto 14px;
}
.cs-ok h3 { margin: 0 0 6px; font-size: 19px; }
.cs-ok .sub { font-size: 13.5px; color: var(--ink-soft); margin: 0 0 16px; line-height: 1.6; }
.cs-ok .who {
  display: inline-block; font-size: 15px; color: var(--ink); background: #f7f5f0;
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 20px;
}

@media (max-width: 560px) {
  .cs-code { font-size: 24px; letter-spacing: 3px; }
  .cs-qr svg { width: 140px; height: 140px; }
  .cs-item-side { margin-left: 0; width: 100%; }
}
@media print { .cs-card, .cs-item { display: none !important; } }


.cs-live-host { margin-top: 4px; }
.cs-live { display: flex; flex-direction: column; gap: 14px; }
.cs-live-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 16px 18px; box-shadow: 0 2px 8px rgba(60, 40, 20, .05);
}
.cs-live-h {
  margin: 0 0 12px; font-size: 15px; font-weight: 700; color: var(--ink);
  border-left: 3px solid var(--cinnabar); padding-left: 10px;
}
.cs-live-code { font-size: 30px; letter-spacing: 6px; text-align: center; }
.cs-live-qrbox { display: flex; align-items: center; gap: 18px; margin-top: 16px; flex-wrap: wrap; }
.cs-live-qrbox.center { justify-content: center; text-align: center; }
.cs-live-qr svg { width: 190px; height: 190px; }
.cs-live-qrlabel { font-size: 12.5px; color: var(--ink-soft); margin: 0 0 10px; }
.cs-live-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cs-live-badge {
  display: inline-block; font-size: 12.5px; font-weight: 700; color: #fff;
  background: #9a8f84; border-radius: 999px; padding: 5px 14px;
}
.cs-live-badge.waiting { background: #9a8f84; }
.cs-live-badge.active { background: #2f9e6b; }
.cs-live-badge.ended { background: var(--cinnabar); }
.cs-live-acts { display: flex; flex-direction: column; gap: 6px; }
.cs-live-act {
  display: flex; align-items: center; gap: 10px;
  border: 1px dashed var(--line); border-radius: 10px; padding: 7px 10px;
}
.cs-live-actname { flex: 1; font-size: 13.5px; color: var(--ink); }
.cs-live-now {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: #f7f5f0; border-radius: 10px; padding: 9px 12px; margin-bottom: 10px;
}
.cs-live-now b { font-size: 14px; color: var(--ink); }
.cs-live-list { display: flex; flex-direction: column; gap: 6px; }
.cs-live-stu, .cs-live-res {
  display: flex; align-items: center; gap: 10px;
  border-bottom: 1px dashed var(--line); padding: 7px 2px;
}
.cs-live-stu b, .cs-live-res b { font-size: 14px; font-weight: 600; min-width: 84px; }
.cs-live-dot { font-size: 13px; }
.cs-live-st { font-size: 12px; color: var(--ink-soft); }
.cs-live-score { font-size: 13px; color: var(--cinnabar); font-weight: 700; }
.cs-live-stu time { margin-left: auto; font-size: 11px; color: var(--ink-faint); }

.cs-live-backbar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 12px;
}

.cs-live-mask {
  position: fixed; inset: 0; background: rgba(30, 26, 22, .5); z-index: 9999;
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.cs-live-modal {
  position: relative; background: var(--paper, #fdfaf5); border-radius: 16px;
  padding: 22px 20px; max-width: 420px; width: 100%;
  max-height: 90vh; overflow: auto; box-shadow: 0 12px 32px rgba(0, 0, 0, .25);
}
.cs-live-modal h3 { margin: 0 0 12px; font-size: 17px; }
.cs-live-x {
  position: absolute; right: 10px; top: 8px; border: 0; background: transparent;
  font-size: 24px; line-height: 1; cursor: pointer; color: var(--ink-soft);
}

.cs-live-stu-top { text-align: center; margin-bottom: 14px; }
.cs-live-brand { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: 1px; color: var(--ink); }
.cs-live-sub { margin: 4px 0 0; font-size: 12.5px; color: var(--ink-soft); }
.cs-live-welcome { margin: 10px 0 0; font-size: 26px; color: var(--cinnabar); font-weight: 700; }
.cs-live-foot { text-align: center; font-size: 12.5px; color: var(--ink-faint); margin-top: 14px; }
.cs-live-wait { text-align: center; padding: 26px 10px; }
.cs-live-wait .big { font-size: 18px; font-weight: 700; color: var(--ink); margin: 0 0 8px; }
.cs-live-acttitle {
  text-align: center; font-size: 15px; font-weight: 700; color: var(--ink);
  margin-bottom: 10px;
}
.cs-live-actbody {  }
.cs-live-actfoot { text-align: center; margin-top: 18px; }
.cs-live-tip {
  text-align: center; font-size: 14px; font-weight: 700; margin-top: 12px;
  padding: 8px; border-radius: 10px;
}
.cs-live-tip.good { color: #2f9e6b; background: rgba(47, 158, 107, .1); }
.cs-live-tip.bad { color: var(--cinnabar); background: rgba(176, 58, 46, .08); }
.cs-live-end { text-align: center; padding: 40px 16px; }
.cs-live-end .seal {
  width: 62px; height: 62px; margin: 0 auto 14px; border-radius: 50%;
  background: var(--cinnabar); color: #fff; font-size: 30px; line-height: 62px;
}
.cs-live-end h2 { margin: 0 0 10px; font-size: 24px; }
@media (max-width: 560px) {
  .cs-live-code { font-size: 26px; letter-spacing: 4px; }
  .cs-live-qr svg { width: 160px; height: 160px; }
  .cs-live-welcome { font-size: 22px; }
  .cs-live-stu b, .cs-live-res b { min-width: 64px; }
  .cs-live-modal { padding: 18px 14px; }
  
  .cs-live-card .hw-btn,
  .cs-live-act .hw-btn,
  .cs-live-modal .hw-btn,
  .cs-live-now .hw-btn,
  .cs-live-backbar .hw-btn { min-height: 38px; padding-top: 8px; padding-bottom: 8px; }
  .cs-live-act { flex-wrap: wrap; }
  .cs-live-act .hw-btn { width: 100%; }
}


.cc-wrap { display: flex; flex-direction: column; gap: 14px; }
.cc-head h2 { margin: 0 0 6px; font-size: 22px; color: var(--ink); }
.cc-sub { margin: 0; font-size: 13px; line-height: 1.7; color: var(--ink-soft); max-width: 720px; }
.cc-pick { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.cc-pick-item {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--paper);
}
.cc-pick-item:hover { border-color: var(--cinnabar); }
.cc-pick-ico { font-size: 26px; flex: none; }
.cc-pick-main { flex: 1; min-width: 0; }
.cc-pick-name { font-size: 15.5px; font-weight: 700; color: var(--ink); }
.cc-pick-meta { font-size: 12.5px; color: var(--ink-faint); margin-top: 3px; }
.cc-pick-meta b { color: var(--cinnabar); letter-spacing: 1px; }


.cc-stage {
  display: flex; flex-direction: column; gap: 0;
  background: #3a4149; border-radius: 14px; overflow: hidden;
  color: #e8eaed; min-height: 520px;
  
  height: calc(100vh - 150px);
  box-shadow: 0 14px 40px rgba(0,0,0,.25);
}
.cc-stage-top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px; background: #2f353b; border-bottom: 1px solid #4a5057;
  flex-wrap: wrap;
}
.cc-stage-title { display: flex; align-items: baseline; gap: 10px; flex: 1; min-width: 0; }
.cc-stage-title h2 { margin: 0; font-size: 16px; font-weight: 600; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-stage-code { font-size: 11px; color: #9aa0a6; letter-spacing: 1px; white-space: nowrap; }
.cc-stage-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cc-stage-meta .hw-btn { background: transparent; border-color: #5f6368; color: #e8eaed; font-size: 12.5px; padding: 6px 12px; }
.cc-stage-meta .hw-btn:hover { border-color: #fff; color: #fff; }

.cc-stage-meta .hw-btn[data-cc="invite"] { background: var(--cinnabar); border-color: var(--cinnabar); color: #fff; font-weight: 700; }
.cc-stage-meta .hw-btn[data-cc="invite"]:hover { background: #c0332a; border-color: #fff; }
.cc-stage-meta .hw-btn#ccEnd:hover { border-color: #ff8a80; color: #ff8a80; }

.cc-stage-meta .hw-btn#ccStuBtn { background: rgba(47, 158, 107, .22); border-color: #4e9e78; color: #fff; }
.cc-stage-meta .hw-btn#ccRepBtn { background: rgba(107, 127, 149, .3); border-color: #8fa3b8; color: #fff; }
.cc-badge { padding: 4px 10px; border-radius: 999px; color: #fff; font-size: 11px; font-weight: 700; background: #9a8f84; }
.cc-badge.active { background: #2f9e6b; }
.cc-badge.ended { background: var(--cinnabar); }

.cc-stage.cc-big {
  position: fixed; inset: 0; z-index: 9990; border-radius: 0;
  height: 100vh !important; max-height: none; box-shadow: none;
}
.cc-stage.cc-big .cc-stage-top { padding: 14px 22px; }
.cc-stage.cc-big .cc-stage-title h2 { font-size: 20px; }
.cc-stage.cc-big .cc-stage-code { font-size: 12.5px; }
.cc-stage.cc-big .cc-stage-side { width: 224px; }
.cc-stage.cc-big .cc-side-h { font-size: 13px; padding: 14px; }
.cc-stage.cc-big .cc-thumb-card { min-height: 84px; }
.cc-stage.cc-big .cc-stage-main { padding: 18px 24px; }
.cc-stage.cc-big .cc-stage-bot { padding: 14px 22px; }
.cc-stage.cc-big .cc-stage-no { font-size: 16px; }
.cc-stage.cc-big .cc-badge { font-size: 12.5px; padding: 5px 12px; }
.cc-stage.cc-big .cc-stage-hint { font-size: 12.5px; }
.cc-stage-meta .hw-btn#ccBigBtn:hover,
.cc-stage-meta .hw-btn#ccBigBtn.on { background: rgba(255, 255, 255, .18); border-color: #fff; color: #fff; }
.cc-badge.cc-round { background: #6b7f95; }

.cc-stage-body { display: flex; flex: 1; min-height: 0; overflow: hidden; }

.cc-stage-side {
  width: 196px; flex: none; background: #2f353b; border-right: 1px solid #4a5057;
  display: flex; flex-direction: column; min-height: 0; overflow: hidden;
}
.cc-side-h { padding: 12px 14px; font-size: 12px; font-weight: 700; color: #9aa0a6; letter-spacing: 1px; border-bottom: 1px solid #4a5057; flex: none; }
.cc-side-h span { color: #e8eaed; }

.cc-side-list { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 8px; scrollbar-width: thin; }
.cc-side-list::-webkit-scrollbar { width: 8px; }
.cc-side-list::-webkit-scrollbar-thumb { background: #5f6368; border-radius: 4px; }
.cc-side-list::-webkit-scrollbar-thumb:hover { background: #80868b; }
.cc-side-list::-webkit-scrollbar-track { background: transparent; }


.cc-side-h { padding: 12px 14px; font-size: 12px; font-weight: 700; color: #9aa0a6; letter-spacing: 1px; border-bottom: 1px solid #4a5057; }
.cc-side-h span { color: #e8eaed; }
.cc-side-list { flex: 1; overflow-y: auto; padding: 8px; }
.cc-thumb { padding: 8px 6px; border-radius: 8px; cursor: pointer; margin-bottom: 6px; }
.cc-thumb:hover { background: #3c4043; }
.cc-thumb.on { background: #3c4043; outline: 1.5px solid var(--cinnabar); }
.cc-thumb.live { position: relative; }
.cc-thumb.live::after { content: '●'; position: absolute; top: 4px; right: 4px; font-size: 9px; color: #2f9e6b; }
.cc-thumb-no { font-size: 10px; color: #9aa0a6; margin-bottom: 3px; }
.cc-thumb-card { background: #f8f6f3; border-radius: 6px; padding: 8px 6px; min-height: 68px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; }
.cc-thumb-ico { font-size: 20px; line-height: 1; }
.cc-thumb-txt { width: 100%; }
.cc-thumb-tit { font-size: 10px; color: var(--ink); font-weight: 600; line-height: 1.3; max-height: 26px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cc-thumb-type { font-size: 9px; color: var(--ink-faint); margin-top: 2px; }


.cc-stage-main {
  flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column;
  padding: 14px 16px; background: #3a4149; overflow: hidden;
}
.cc-scroll-note { font-size: 11px; color: #9aa0a6; text-align: center; padding: 4px 0 0; }

.cc-stage-scroll { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; display: flex; flex-direction: column; }
.cc-stage-doc { width: 100%; max-width: 960px; margin: auto; display: flex; flex-direction: column; gap: 12px; }

.cc-stage-main.cc-doc-wide .cc-stage-doc,
.cc-stage-main.cc-doc-wide .cc-stage-answers { max-width: 1200px; }
.cc-stage-page { width: 100%; background: var(--paper); border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,.25); }

.cc-stage-page, .cc-stage-page .c2-stage { color: var(--ink); }
.cc-stage-page .c2-stage { margin: 0; box-shadow: none; border: none; }
.cc-stage-page .hw-empty { background: transparent; border: none; }


.cc-stage-page .fc-panel { padding: 16px 18px 20px; gap: 12px; }
.cc-stage-page .fc-panel-title { font-size: 18px; }
.cc-stage-page .fc-panel-sub { font-size: 12.5px; margin-top: 4px; }
.cc-stage-page .fc-card, .cc-stage-page .fc-inner { min-height: 360px; }
.cc-stage-page .fc-img { height: 180px; }
.cc-stage-page .fc-hanzi-front { font-size: 40px; }
.cc-stage-page .fc-hanzi { font-size: 46px; }

.cc-stage-page .c2-game-slot { display: flex; flex-direction: column; align-items: center; }
.cc-stage-page .c2-game-slot > * { width: 100%; }
.cc-stage-page .c2-game-slot > .fc-panel { max-width: 560px; }

.cc-stage-page .c2-cloze { font-size: 24px; line-height: 2.3; }
.c2-cloze-solo { text-align: left; margin-left: auto; margin-right: auto; }
.cc-stage-page .c2-cloze-solo { max-width: 100%; }

.cc-stage-page .c2-blanks { display: none !important; grid-template-columns: 1fr !important; }



.cc-stage-answers {
  flex: none; align-self: center; width: 100%; max-width: 960px; margin-top: 12px;
  background: #fff; border-radius: 12px; box-shadow: 0 6px 22px rgba(0,0,0,.2);
  overflow: hidden; display: flex; flex-direction: column; max-height: 190px;
}
.cc-ans-h {
  flex: none; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  padding: 10px 14px; font-size: 12.5px; font-weight: 700; color: var(--ink-soft);
  border-bottom: 1px solid var(--line); background: #faf8f5;
}
.cc-ans-h b { color: var(--cinnabar); font-size: 14px; }

.cc-ans-page {
  flex: none; font-size: 11.5px; font-weight: 700; color: #fff; background: #6b7f95;
  border-radius: 999px; padding: 3px 9px;
}
.cc-ans-key { font-weight: 400; color: var(--ink-faint); font-size: 12px; }
.cc-ans-key b { color: #2f9e6b; font-size: 12.5px; }
.cc-ans-list { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 8px 12px; }
.cc-ans-empty { margin: 0; padding: 8px 2px; font-size: 12.5px; color: var(--ink-faint); text-align: center; }

.cc-ans {
  display: flex; align-items: center; gap: 8px; padding: 7px 10px; margin-bottom: 6px;
  border-radius: 8px; font-size: 13px; border: 1px solid var(--line); background: #fcfbf9;
}
.cc-ans:last-child { margin-bottom: 0; }
.cc-ans-ic {
  flex: none; width: 18px; height: 18px; line-height: 18px; text-align: center;
  border-radius: 50%; font-size: 11px; font-weight: 700; color: #fff; background: #2f9e6b;
}
.cc-ans b { font-weight: 600; color: var(--ink); min-width: 62px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-ans-txt, .cc-ans-wrong {
  flex: 1; font-size: 13px; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cc-ans time { flex: none; font-size: 11px; color: var(--ink-faint); }

.cc-ans-n {
  flex: none; font-size: 10.5px; color: var(--ink-soft);
  background: #f1efec; border: 1px solid var(--line); border-radius: 999px; padding: 1px 7px;
}
.cc-ans-arrow { flex: none; font-size: 12px; color: var(--ink-faint); }

.cc-ans-right { flex: none; font-size: 12.5px; color: #2f9e6b; white-space: nowrap; }
.cc-ans-right b { min-width: 0; font-weight: 700; color: #2f9e6b; }
.cc-ans.bad .cc-ans-right, .cc-ans.bad .cc-ans-right b { color: #2f9e6b; }
.cc-ans.ok { background: #eef7f2; border-color: rgba(47, 158, 107, .35); }
.cc-ans.ok .cc-ans-txt { color: #237a52; }
.cc-ans.bad { background: #fdecea; border-color: rgba(176, 58, 46, .45); }
.cc-ans.bad .cc-ans-ic { background: var(--cinnabar); }
.cc-ans.bad b, .cc-ans.bad .cc-ans-txt, .cc-ans.bad .cc-ans-wrong, .cc-ans.bad time { color: var(--cinnabar); }
.cc-ans.bad .cc-ans-txt, .cc-ans.bad .cc-ans-wrong { text-decoration: line-through; text-decoration-color: rgba(176, 58, 46, .6); }


.cc-stage-bot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px; background: #2f353b; border-top: 1px solid #4a5057; flex-wrap: wrap; flex: none;
}
.cc-stage-pager { display: flex; align-items: center; gap: 8px; flex: none; }
.cc-nav {
  padding: 9px 16px; border-radius: 999px; border: 1px solid #5f6368; background: transparent;
  color: #e8eaed; font-size: 13.5px; font-weight: 700; cursor: pointer; font-family: inherit;
  transition: border-color .15s, color .15s, background .15s;
}
.cc-nav:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .08); }
.cc-stage-no { font-size: 14px; font-weight: 700; color: #e8eaed; min-width: 76px; text-align: center; letter-spacing: 1px; }
.cc-stage-modes { display: flex; gap: 10px; flex: none; }
.cc-mode {
  padding: 10px 22px; border-radius: 999px; border: 1.5px solid #4a5057; background: #4a5057;
  color: #e8eaed; font-size: 14px; font-weight: 700; cursor: pointer; font-family: inherit;
  transition: background .15s, border-color .15s, box-shadow .15s;
}
.cc-mode:hover { filter: brightness(1.18); }
.cc-mode.on { color: #fff; box-shadow: 0 0 0 2px rgba(255, 255, 255, .25); }
.cc-mode#ccView.on { background: #2f9e6b; border-color: #2f9e6b; }
.cc-mode#ccAsk.on { background: #c27c3a; border-color: #c27c3a; }
.cc-mode#ccStop.on { background: #6b7280; border-color: #6b7280; }
.cc-stage-hint { font-size: 12px; color: #9aa0a6; text-align: right; }
@media (max-width: 1100px) {
  .cc-stage-hint { display: none; }
  .cc-stage-bot { justify-content: flex-start; }
  .cc-stage-modes { margin-left: auto; }
}


.cc-res-panel { position: fixed; top: 0; right: 0; width: 360px; max-width: 90vw; height: 100vh; background: var(--paper); border-left: 1px solid var(--line); box-shadow: -10px 0 40px rgba(0,0,0,.3); transform: translateX(110%); transition: transform .25s ease; z-index: 1000; display: flex; flex-direction: column; }
.cc-res-panel.open { transform: translateX(0); }
.cc-res-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.cc-res-tabs { display: flex; gap: 6px; }
.cc-res-tab { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-soft); font-size: 12px; cursor: pointer; }
.cc-res-tab.on { background: var(--cinnabar); border-color: var(--cinnabar); color: #fff; font-weight: 600; }
.cc-res-body { flex: 1; overflow-y: auto; padding: 14px 16px; }
.cc-res-body .cc-list { max-height: none; }


.cc-row { display: flex; align-items: center; gap: 8px; padding: 7px 10px; background: #fcfbf9; border: 1px solid var(--line); border-radius: 8px; }
.cc-dot { font-size: 13px; flex: none; }
.cc-row b { font-size: 14px; font-weight: 600; min-width: 72px; color: var(--ink); }
.cc-st { font-size: 12px; color: var(--ink-soft); }
.cc-row time { margin-left: auto; font-size: 11px; color: var(--ink-faint); flex: none; }
.cc-sum { display: flex; gap: 10px; margin-bottom: 12px; }
.cc-sum-i { flex: 1; text-align: center; padding: 8px 6px; border-radius: 8px; background: #faf6f3; }
.cc-sum-i b { display: block; font-size: 19px; color: var(--cinnabar); }
.cc-sum-i span { font-size: 11.5px; color: var(--ink-faint); }
.cc-dist { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.cc-dist-r { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.cc-dist-k { width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.cc-dist-bar { flex: 1; height: 8px; background: #efeae4; border-radius: 999px; overflow: hidden; }
.cc-dist-bar i { display: block; height: 100%; background: var(--cinnabar); border-radius: 999px; }
.cc-dist-n { width: 24px; text-align: right; color: var(--ink-soft); }


.cc-mask { position: fixed; inset: 0; z-index: 9999; background: rgba(30, 26, 22, .55); display: flex; align-items: center; justify-content: center; padding: 18px; }
.cc-modal { position: relative; background: var(--paper); border-radius: 14px; padding: 26px 28px; max-width: 420px; width: 100%; text-align: center; box-shadow: 0 18px 50px rgba(0, 0, 0, .3); }
.cc-modal h3 { margin: 0 0 14px; font-size: 19px; }
.cc-modal .cc-qr { display: flex; justify-content: center; margin: 14px 0; }
.cc-modal .cc-qr svg { width: 260px; height: 260px; }
.cc-modal .cc-link { margin-bottom: 14px; }
.cc-modal .cc-acts { justify-content: center; }
.cc-code { font-size: 24px; font-weight: 700; letter-spacing: 6px; color: var(--cinnabar); background: #fdf6f4; border: 1px dashed var(--cinnabar); border-radius: 8px; padding: 8px 12px; text-align: center; margin-bottom: 12px; }
.cc-code.big { font-size: 32px; }
.cc-link { font-size: 12.5px; color: var(--ink-soft); word-break: break-all; line-height: 1.6; background: #faf8f5; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.cc-x { position: absolute; top: 8px; right: 10px; border: none; background: none; cursor: pointer; font-size: 24px; line-height: 1; color: var(--ink-faint); }



.cc-modal-lg { max-width: 760px; text-align: left; padding: 22px 24px; }
.cc-modal-lg h3 { font-size: 17px; margin-bottom: 12px; }
.cc-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.cc-tab {
  border: none; background: none; cursor: pointer; padding: 8px 12px; font-size: 13px;
  color: var(--ink-faint); border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.cc-tab.on { color: var(--cinnabar); font-weight: 700; border-bottom-color: var(--cinnabar); }
.cc-tabpane { max-height: 52vh; overflow-y: auto; overscroll-behavior: contain; padding-right: 4px; }
.cc-rep-empty { margin: 18px 0; text-align: center; font-size: 13px; color: var(--ink-faint); }
.cc-rep-sum { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.cc-rep-sum span {
  font-size: 12px; color: var(--ink-soft); background: #faf6f3; border: 1px solid var(--line);
  border-radius: 999px; padding: 5px 11px;
}
.cc-rep-sum b { color: var(--cinnabar); font-size: 13.5px; }
.cc-rep-subh {
  font-size: 12px; font-weight: 700; color: var(--ink-soft);
  margin: 12px 0 7px; padding-bottom: 5px; border-bottom: 1px dashed var(--line);
}
.cc-rep-stu {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 8px 10px; margin-bottom: 6px; border: 1px solid var(--line);
  border-radius: 9px; background: #fcfbf9;
}
.cc-rep-stu b { font-size: 13.5px; color: var(--ink); min-width: 64px; }
.cc-rep-tag { font-size: 11px; border-radius: 999px; padding: 2px 8px; }
.cc-rep-tag.on { background: rgba(47, 158, 107, .16); color: #2f9e6b; }
.cc-rep-tag.off { background: #f0efed; color: var(--ink-faint); }
.cc-rep-meta { font-size: 11.5px; color: var(--ink-faint); }
.cc-rep-meta b { color: var(--ink); font-size: 12.5px; }
.cc-rep-meta b.good { color: #2f9e6b; }
.cc-rep-meta b.bad { color: var(--cinnabar); }
.cc-rep-row { padding: 8px 10px; margin-bottom: 6px; border: 1px solid var(--line); border-radius: 9px; background: #fcfbf9; }
.cc-rep-h { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.cc-rep-h b { font-size: 13.5px; color: var(--ink); min-width: 64px; }
.cc-rep-pages { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.cc-pg {
  font-size: 11.5px; font-weight: 700; padding: 3px 7px; border-radius: 6px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-faint);
}
.cc-pg.ok { background: rgba(47, 158, 107, .14); color: #2f9e6b; border-color: rgba(47, 158, 107, .3); }
.cc-pg.no { background: rgba(200, 60, 45, .12); color: var(--cinnabar); border-color: rgba(200, 60, 45, .3); }
.cc-rep-bad {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  font-size: 12px; color: var(--ink-soft); padding: 6px 9px; margin-bottom: 5px;
  border-left: 3px solid var(--cinnabar); background: #fdf6f4; border-radius: 0 7px 7px 0;
}
.cc-rep-bad b { color: var(--ink); min-width: 58px; }
.cc-rep-wrong { color: var(--cinnabar); }
.cc-rep-right { color: #2f9e6b; }
.cc-modal-lg .cc-acts { justify-content: flex-end; }

.cc-stu-top { text-align: center; margin-bottom: 14px; }
.cc-brand { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: 1px; color: var(--ink); }
.cc-stu-top .cc-sub { margin: 4px 0 0; font-size: 12.5px; color: var(--ink-soft); }
.cc-stu-top h2 { margin: 10px 0 0; font-size: 26px; color: var(--cinnabar); font-weight: 700; }
.cc-foot { text-align: center; font-size: 12.5px; color: var(--ink-faint); margin-top: 14px; }
.cc-wait { text-align: center; padding: 26px 10px; }
.cc-wait .big { font-size: 18px; font-weight: 700; color: var(--ink); margin: 0 0 8px; }
.cc-end { text-align: center; padding: 40px 16px; }
.cc-end .seal { width: 62px; height: 62px; margin: 0 auto 14px; border-radius: 50%; background: var(--cinnabar); color: #fff; font-size: 30px; line-height: 62px; }
.cc-end h2 { margin: 0 0 10px; font-size: 24px; }
.cc-acttitle { text-align: center; font-size: 13px; color: var(--ink-faint); letter-spacing: 1px; margin-bottom: 12px; }
.cc-viewtip { text-align: center; font-size: 12.5px; padding: 7px 12px; margin-bottom: 12px; border-radius: 8px; background: rgba(47, 158, 107, .1); color: #2f9e6b; }
.cc-actbody.readonly .c2-opt,
.cc-actbody.readonly .c2-chip,
.cc-actbody.readonly .c2-submit { cursor: default; }
.cc-actfoot { text-align: center; margin-top: 18px; }
.cc-tip { text-align: center; font-size: 14px; font-weight: 700; margin-top: 14px; padding: 9px 12px; border-radius: 8px; }
.cc-tip.good { color: #2f9e6b; background: rgba(47, 158, 107, .1); }
.cc-tip.bad { color: var(--cinnabar); background: rgba(176, 58, 46, .08); }

@media (max-width: 1100px) {
  
  .cc-stage-side { width: 168px; }
}
@media (max-width: 860px) {
  .cc-stage { min-height: 520px; height: auto; border-radius: 0; }
  .cc-stage-top { padding: 10px 12px; }
  .cc-stage-title h2 { font-size: 14px; }
  .cc-stage-body { flex-wrap: wrap; overflow-y: auto; }
  .cc-stage-side { width: 100%; max-height: 150px; border-right: none; border-bottom: 1px solid #4a5057; }
  .cc-side-list { display: flex; gap: 6px; overflow-x: auto; }
  .cc-thumb { min-width: 84px; margin-bottom: 0; }
  .cc-stage-main { flex: 1 1 100%; padding: 12px; overflow: visible; }
  .cc-stage-scroll { overflow: visible; }
  .cc-stage-bot { padding: 10px 12px; gap: 8px; }
  .cc-stage-pager, .cc-stage-modes { width: 100%; justify-content: center; }
}
@media (max-width: 560px) {
  .cc-pick-item { flex-wrap: wrap; }
  .cc-pick-item .hw-btn { width: 100%; }
  .cc-stage-side { width: 88px; padding: 4px; }
  .cc-thumb-ico { font-size: 16px; }
  .cc-thumb-type { display: none; }
  .cc-thumb-tit { display: none; }
}

.c2-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 22px; align-items: stretch; }
@media (max-width: 860px) { .c2-hero { grid-template-columns: 1fr; } }
.c2-hero-text { padding: 26px 26px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.c2-hero-kicker { font-size: 12px; letter-spacing: 2px; color: var(--ink-faint); text-transform: uppercase; }
.c2-hero-title { margin-top: 10px; font-family: var(--font-serif); font-size: 30px; font-weight: 700; line-height: 1.35; }
.c2-hero-title em { font-style: normal; color: var(--cinnabar); }
.c2-hero-sub { margin-top: 10px; font-size: 14px; color: var(--ink-soft); line-height: 1.7; }
.c2-feats { margin-top: 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.c2-feat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; }
.c2-feat b { display: block; font-size: 13px; color: var(--cinnabar); }
.c2-feat span { font-size: 11.5px; color: var(--ink-faint); }

.c2-intro-edit {
  margin-left: 10px; padding: 2px 9px; border-radius: 999px; cursor: pointer;
  border: 1px dashed var(--ink-faint); background: transparent;
  font: inherit; font-size: 11px; letter-spacing: 0; text-transform: none;
  color: var(--ink-soft); opacity: .8;
}
.c2-intro-edit:hover { opacity: 1; color: var(--cinnabar); border-color: var(--cinnabar); }
.c2-imask { position: fixed; inset: 0; z-index: 9998; background: rgba(30, 26, 22, .55); display: flex; align-items: center; justify-content: center; padding: 18px; }
.c2-imodal {
  position: relative; background: var(--paper); border-radius: 14px; padding: 22px 24px;
  width: 100%; max-width: 520px; max-height: 86vh; overflow-y: auto;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .3);
}
.c2-imodal h3 { margin: 0 0 6px; font-size: 17px; }
.c2-itip { margin: 0 0 14px; font-size: 12px; color: var(--ink-faint); line-height: 1.6; }
.c2-irow { margin-bottom: 10px; }
.c2-irow label { display: block; font-size: 12px; color: var(--ink-soft); margin-bottom: 4px; }
.c2-irow input, .c2-irow textarea {
  width: 100%; box-sizing: border-box; font: inherit; font-size: 13.5px; padding: 7px 9px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); resize: vertical;
}
.c2-isec { font-size: 12px; font-weight: 700; color: var(--ink-soft); margin: 14px 0 8px; padding-bottom: 5px; border-bottom: 1px dashed var(--line); }
.c2-iacts { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; }
.c2-ix { position: absolute; top: 8px; right: 10px; border: none; background: none; cursor: pointer; font-size: 24px; line-height: 1; color: var(--ink-faint); }
.c2-create { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.c2-create h3 { margin: 0 0 12px; font-size: 16px; }
.c2-create .hw-field { margin-bottom: 12px; }
.c2-big-btn {
  width: 100%; padding: 13px 18px; border: none; border-radius: var(--radius-sm);
  background: var(--cinnabar); color: #fff; font-size: 15px; font-weight: 700;
  cursor: pointer; letter-spacing: .5px; transition: background .15s ease, transform .1s ease;
}
.c2-big-btn:hover { background: var(--cinnabar-dark); }
.c2-big-btn:active { transform: scale(.98); }
.c2-book-btn {
  width: 100%; margin-top: 10px; padding: 11px 18px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--cinnabar); background: #fff; color: var(--cinnabar);
  font-size: 14px; font-weight: 700; cursor: pointer; font-family: inherit;
  transition: background .15s ease, color .15s ease;
}
.c2-book-btn:hover { background: var(--cinnabar-soft); }


.c2-book-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.c2-book-tab {
  padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  font-size: 13px; cursor: pointer; color: var(--ink); font-family: inherit;
}
.c2-book-tab i { font-style: normal; font-size: 11px; color: var(--ink-faint); margin-left: 5px; }
.c2-book-tab.on { border-color: var(--cinnabar); background: var(--cinnabar-soft); color: var(--cinnabar); font-weight: 700; }
.c2-book-tab.on i { color: var(--cinnabar); }
.c2-book-list { display: grid; gap: 8px; max-height: 46vh; overflow: auto; padding-right: 4px; }
.c2-book-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.c2-book-item:hover { border-color: var(--cinnabar); background: var(--cinnabar-soft); }
.c2-book-item.empty { opacity: .55; cursor: default; }
.c2-book-item.empty:hover { border-color: var(--line); background: #fff; }
.c2-book-no {
  flex: none; width: 30px; height: 30px; border-radius: 8px; background: var(--paper);
  color: var(--ink-soft); font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.c2-book-main { flex: 1; min-width: 0; }
.c2-book-cn { font-size: 14px; font-weight: 600; color: var(--ink); }
.c2-book-meta { font-size: 11.5px; color: var(--ink-faint); margin-top: 2px; }
.c2-book-go { flex: none; font-size: 12.5px; font-weight: 700; color: var(--cinnabar); }
.c2-joinline { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.c2-joinline label { font-size: 12.5px; color: var(--ink-faint); display: block; margin-bottom: 6px; }
.c2-joinrow { display: flex; gap: 8px; }
.c2-joinrow input {
  flex: 1; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 15px; letter-spacing: 2px; outline: none; background: #fff; color: var(--ink);
}
.c2-joinrow input:focus { border-color: var(--cinnabar); }
.c2-joinrow button {
  padding: 10px 22px; border: none; border-radius: 8px; background: var(--ink);
  color: #fff; font-size: 14px; font-weight: 600; cursor: pointer;
}
.c2-classes-head { display: flex; align-items: baseline; justify-content: space-between; margin: 34px 0 14px; }
.c2-classes-head h2 { font-size: 20px; margin: 0; }
.c2-classes-head span { font-size: 12.5px; color: var(--ink-faint); }
.c2-class {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px 20px; margin-bottom: 14px;
}
.c2-class-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.c2-class-ico {
  width: 46px; height: 46px; flex: none; border-radius: 12px;
  background: var(--cinnabar-soft); color: var(--cinnabar);
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.c2-class-name { font-size: 16px; font-weight: 700; }
.c2-class-meta { font-size: 12px; color: var(--ink-faint); margin-top: 3px; }
.c2-class-meta b { color: var(--cinnabar); font-family: ui-monospace, Menlo, monospace; letter-spacing: 2px; }
.c2-class-acts { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.c2-btn {
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); font-size: 13px; font-weight: 600; cursor: pointer;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.c2-btn:hover { border-color: var(--cinnabar); color: var(--cinnabar); }
.c2-btn.primary { background: var(--cinnabar); border-color: var(--cinnabar); color: #fff; }
.c2-btn.primary:hover { background: var(--cinnabar-dark); }
.c2-btn.danger:hover { border-color: var(--cinnabar); background: var(--cinnabar-soft); }


.c2-ed-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.c2-ed-title { font-size: 20px; font-weight: 700; margin-right: auto; }
.c2-ed-title input {
  font-size: 18px; font-weight: 700; border: 1px solid transparent; border-radius: 8px;
  padding: 6px 10px; background: transparent; color: var(--ink); outline: none; min-width: 200px;
}
.c2-ed-title input:hover, .c2-ed-title input:focus { border-color: var(--line); background: #fff; }
.c2-ed { display: grid; grid-template-columns: 200px 1fr; gap: 16px; align-items: start; }
@media (max-width: 860px) { .c2-ed { grid-template-columns: 1fr; } }
.c2-pages { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px; max-height: 72vh; overflow: auto; }
.c2-page {
  position: relative; border: 1.5px solid var(--line); border-radius: 10px;
  padding: 12px 8px; margin-bottom: 8px; cursor: pointer; text-align: center;
  background: var(--paper); transition: border-color .15s ease, background .15s ease;
}
.c2-page:hover { border-color: var(--cinnabar); }
.c2-page.active { border-color: var(--cinnabar); background: var(--cinnabar-soft); }
.c2-page .no { position: absolute; top: 4px; left: 7px; font-size: 11px; color: var(--ink-faint); }
.c2-page .nm { font-size: 13px; font-weight: 600; color: var(--ink); word-break: break-all; }
.c2-page .tp { font-size: 11px; color: var(--ink-faint); margin-top: 2px; }
.c2-addpage {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; border: 1.5px dashed var(--line); border-radius: 10px; padding: 10px;
  margin-bottom: 8px; background: transparent; cursor: pointer; color: var(--ink-soft);
  font-size: 13px; font-family: inherit; transition: border-color .15s, background .15s, color .15s;
}
.c2-addpage:hover { border-color: var(--cinnabar); color: var(--cinnabar); background: var(--cinnabar-soft); }
.c2-add-ico { font-weight: 700; }
.c2-canvas { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px 28px; min-height: 420px; }
.c2-canvas-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; align-items: center; }
.c2-canvas-bar .sp { margin-left: auto; }
.c2-form { display: grid; gap: 12px; }
.c2-form label { font-size: 12.5px; color: var(--ink-soft); display: block; margin-bottom: 4px; }
.c2-form input[type=text], .c2-form textarea, .c2-form select {
  width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 14px; background: #fff; color: var(--ink); outline: none; font-family: inherit;
}
.c2-form textarea { min-height: 90px; resize: vertical; line-height: 1.7; }
.c2-form input:focus, .c2-form textarea:focus, .c2-form select:focus { border-color: var(--cinnabar); }
.c2-rows { display: grid; gap: 8px; }
.c2-row { display: grid; grid-template-columns: 1.1fr 1fr 1.2fr auto auto; gap: 8px; align-items: center; }
.c2-row.opts { grid-template-columns: 26px 1fr auto; }
.c2-row input { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 13.5px; background: #fff; outline: none; width: 100%; }
.c2-row input:focus { border-color: var(--cinnabar); }
.c2-row > .c2-mini { padding: 6px 9px; min-width: 30px; text-align: center; }
.c2-row > .c2-mini:last-child { color: var(--ink-faint); }
.c2-row > .c2-mini:last-child:hover { border-color: #e05a4f; color: #e05a4f; background: #fff5f4; }
.c2-rowbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.c2-paste {
  margin: 4px 0 10px; padding: 12px; border: 1px dashed var(--line); border-radius: 10px;
  background: #fcfcfb; display: grid; gap: 8px;
}
.c2-paste textarea {
  width: 100%; min-height: 130px; resize: vertical; padding: 9px 12px; line-height: 1.8;
  border: 1px solid var(--line); border-radius: 8px; font-size: 13.5px; background: #fff;
  color: var(--ink); outline: none; font-family: inherit; white-space: pre;
}
.c2-paste textarea:focus { border-color: var(--cinnabar); }
.c2-paste .c2-tip { margin: 0; }
@media (max-width: 600px) {
  .c2-row.vocab { grid-template-columns: 1fr 1fr auto auto; }
  .c2-row.vocab > input:first-child { grid-column: 1 / -1; }
}
.c2-mini {
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  font-size: 12.5px; font-weight: 600; cursor: pointer; color: var(--ink-soft); white-space: nowrap;
}
.c2-mini:hover { border-color: var(--cinnabar); color: var(--cinnabar); }
.c2-mini.add { border-style: dashed; }
.c2-sec { font-size: 13px; font-weight: 700; color: var(--ink); border-left: 3px solid var(--cinnabar); padding-left: 8px; margin-top: 6px; }
.c2-tip { font-size: 12.5px; color: var(--ink-faint); line-height: 1.6; }
.c2-preview { margin-top: 20px; border-top: 1px dashed var(--line); padding-top: 16px; }
.c2-preview > .lbl { font-size: 12px; letter-spacing: 2px; color: var(--ink-faint); text-transform: uppercase; margin-bottom: 10px; }


.c2-stage {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 26px 26px 30px; max-width: 720px; margin: 0 auto;
}
.c2-qnav { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-bottom: 18px; }
.c2-qn {
  width: 34px; height: 34px; border-radius: 999px; border: 1.5px solid var(--line);
  background: #fff; font-size: 13px; font-weight: 600; color: var(--ink-soft); cursor: pointer;
}
.c2-qn.cur { border-color: var(--cinnabar); color: var(--cinnabar); }
.c2-qn.done { background: #e8f5e9; border-color: #4caf50; color: #2e7d32; }
.c2-qn.bad { background: var(--cinnabar-soft); border-color: var(--cinnabar); color: var(--cinnabar); }
.c2-ex-tag { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--ink-faint); text-align: center; }
.c2-ex-q { text-align: center; font-family: var(--font-serif); font-size: 24px; font-weight: 700; margin: 10px 0 4px; line-height: 1.4; }
.c2-ex-qsub { text-align: center; font-size: 13px; color: var(--en); margin-bottom: 18px; }

.c2-form-wrap { margin-top: 8px; }
.c2-form-wrap .c2-form { display: grid; gap: 12px; }
.c2-form-wrap label { font-size: 12.5px; color: var(--ink-soft); display: block; margin-bottom: 4px; }
.c2-form-wrap input[type=text], .c2-form-wrap textarea, .c2-form-wrap select {
  width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 14px; background: #fff; color: var(--ink); outline: none; font-family: inherit;
}
.c2-form-wrap textarea { min-height: 90px; resize: vertical; line-height: 1.7; }
.c2-form-wrap input:focus, .c2-form-wrap textarea:focus, .c2-form-wrap select:focus { border-color: var(--cinnabar); }


.c2-cv, .c2-cv-view {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); overflow: hidden;
}
.c2-cv { background: #fffdf8; touch-action: none; }
.c2-cv-view { border: none; background: transparent; }
.c2-cv-empty {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: var(--ink-faint); font-size: 13px;
}
.c2-blk { position: absolute; overflow: hidden; }
.c2-blk.edit { cursor: move; outline: 1px dashed rgba(180,58,46,.35); }
.c2-blk.edit.sel { outline: 2px solid var(--cinnabar); }
.c2-blk-text.editing { outline: 2px dashed var(--cinnabar); cursor: text; background: rgba(255,255,255,.75); }
.c2-blk-text {
  display: flex; align-items: center; font-family: var(--font-serif); font-weight: 700;
  line-height: 1.3; white-space: pre-wrap; word-break: break-word;
}
.c2-blk-img img, .c2-blk-video video { width: 100%; height: 100%; object-fit: contain; display: block; }
.c2-blk-audio { display: flex; align-items: center; justify-content: center; }
.c2-blk-audio audio { width: 100%; }
.c2-blk-ph {
  height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--ink-faint);
}
.c2-blk-hdl {
  position: absolute; right: 0; bottom: 0; width: 13px; height: 13px;
  background: var(--cinnabar); border-radius: 3px 0 0 0; cursor: nwse-resize; display: none;
}
.c2-blk.edit.sel .c2-blk-hdl { display: block; }
.c2-cv-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }

.c2-cv-tools {
  position: absolute; top: 0; left: 0; right: 0; z-index: 6;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  padding: 7px 9px;
  display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-end;
}
.c2-cv-tools .c2-cv-f { flex: 0 1 74px; min-width: 54px; }
.c2-cv-tools .c2-cv-f label { font-size: 10.5px; line-height: 1.25; white-space: nowrap; }
.c2-cv-tools .c2-cv-f input[type=text],
.c2-cv-tools .c2-cv-f input[type=number],
.c2-cv-tools .c2-cv-f select {
  padding: 3px 5px; font-size: 12px; min-height: 26px; border-radius: 6px;
}
.c2-cv-tools .c2-cv-color { height: 26px; padding: 1px; }
.c2-cv-tools .c2-mini { min-height: 26px; padding: 2px 7px; font-size: 12px; }

.c2-cv-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-end; }
.c2-cv-row .c2-cv-f { flex: 0 1 74px; min-width: 56px; }
.c2-cv-row .c2-cv-f label { font-size: 10.5px; line-height: 1.25; white-space: nowrap; }
.c2-cv-row .c2-cv-f input[type=text],
.c2-cv-row .c2-cv-f input[type=number],
.c2-cv-row .c2-cv-f select {
  padding: 3px 5px; font-size: 12px; min-height: 26px; border-radius: 6px;
}
.c2-cv-row .c2-cv-color { height: 26px; padding: 1px; }
.c2-cv-f { display: flex; flex-direction: column; gap: 4px; }
.c2-cv-f label { font-size: 12px; color: var(--ink-soft); }
.c2-cv-f input[type=text], .c2-cv-f input[type=number], .c2-cv-f textarea, .c2-cv-f select {
  width: 100%; padding: 7px 9px; border: 1px solid var(--line); border-radius: 7px;
  font-size: 13.5px; background: #fff; color: var(--ink); outline: none; font-family: inherit;
}
.c2-cv-f textarea { resize: vertical; line-height: 1.6; }
.c2-cv-f input:focus, .c2-cv-f textarea:focus, .c2-cv-f select:focus { border-color: var(--cinnabar); }
.c2-cv-frow { display: flex; gap: 8px; }
.c2-cv-frow input { flex: 1; }
.c2-cv-color {
  width: 100%; height: 34px; padding: 2px; border: 1px solid var(--line);
  border-radius: 7px; background: #fff;
}


.c2-chip, .c2-page { cursor: grab; touch-action: none; }
.c2-chip:active, .c2-page:active { cursor: grabbing; }
.c2-chip.dragging, .c2-page.dragging { opacity: .35; }
.drag-ghost { cursor: grabbing; }
.c2-pagelist { display: grid; gap: 6px; margin-bottom: 8px; }
.c2-order-ans:empty::before {
  content: '把下面的短语拖到这里';
  color: var(--ink-faint); font-size: 13px; line-height: 48px;
}


.c2-thumb {
  position: relative; width: 100%; height: 92px; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: 6px;
}
.c2-thumb-in {
  position: absolute; top: 0; left: 0; width: 720px;
  transform-origin: top left; pointer-events: none; background: var(--paper);
}
.c2-thumb-in .c2-stage {
  margin: 0; border: none; box-shadow: none; border-radius: 0; max-width: 100%;
}
.c2-thumb-err { padding: 8px; font-size: 11px; color: var(--ink-faint); }
.c2-page .c2-thumb { margin-top: 12px; }
.c2-slide-media { margin-bottom: 14px; }
.cc-thumb-card { padding: 3px; min-height: 0; }


.c2-slide-blank { min-height: 320px; }
.c2-slide-blank .c2-slide-media { margin-bottom: 0; }
.c2-slide-blank .c2-cv-view { border: none; background: transparent; }


.c2-tpl-default .c2-ex-q { text-align: center; margin-bottom: 14px; }
.c2-tpl-default .c2-tpl-body p { font-size: 17px; line-height: 2; color: var(--ink); }
.c2-tpl-center { display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 280px; text-align: center; }
.c2-tpl-center .c2-ex-q { margin-bottom: 20px; }
.c2-tpl-center .c2-tpl-body p { font-size: 17px; line-height: 2; color: var(--ink); }
.c2-tpl-topbar { display: flex; flex-direction: column; }
.c2-tpl-topbar .c2-ex-q { background: var(--paper); padding: 12px; border-radius: 10px; margin-bottom: 18px; text-align: left; }
.c2-tpl-topbar .c2-tpl-body p { font-size: 17px; line-height: 2; color: var(--ink); }
.c2-tpl-headtwo { display: flex; flex-direction: column; gap: 12px; }
.c2-tpl-headtwo .c2-ex-q { background: var(--paper); padding: 12px; border-radius: 10px; }
.c2-tpl-headtwo .c2-tpl-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.c2-tpl-headtwo .c2-tpl-rows p { background: var(--paper); padding: 12px; border-radius: 10px; font-size: 17px; line-height: 1.8; color: var(--ink); }
.c2-tpl-twocol { display: grid; grid-template-columns: 1fr 2fr; gap: 16px; align-items: start; }
.c2-tpl-twocol .c2-tpl-side { background: var(--paper); padding: 14px; border-radius: 10px; }
.c2-tpl-twocol .c2-tpl-side .c2-ex-q { margin: 0; text-align: left; }
.c2-tpl-twocol .c2-tpl-body p { font-size: 17px; line-height: 2; color: var(--ink); }
.c2-tpl-headeright { display: grid; grid-template-columns: 1fr 2fr; gap: 16px; align-items: start; }
.c2-tpl-headeright .c2-tpl-side { background: var(--paper); padding: 14px; border-radius: 10px; }
.c2-tpl-headeright .c2-tpl-side .c2-ex-q { margin: 0; text-align: left; }
.c2-tpl-headeright .c2-tpl-body { background: var(--paper); padding: 14px; border-radius: 10px; }
.c2-tpl-headeright .c2-tpl-body p { font-size: 17px; line-height: 2; color: var(--ink); }


.c2-pin-img { position: relative; width: 100%; border-radius: var(--radius-sm); overflow: hidden; background: #f6f3ec; }
.c2-pin-img img { width: 100%; display: block; }
.c2-pin-dot {
  position: absolute; transform: translate(-50%, -50%);
  min-width: 34px; height: 34px; padding: 0 6px; border-radius: 8px;
  border: 1.5px solid rgba(255,255,255,.9); background: rgba(255,255,255,.88);
  font-family: var(--font-serif); font-size: 22px; font-weight: 700; color: var(--ink);
  cursor: pointer; line-height: 1; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.18);
}
.c2-pin-dot:hover { background: #fff; }
.c2-pin-dot.hit { background: #4caf50; color: #fff; border-color: #fff; }
.c2-pin-dot.miss { background: var(--cinnabar); color: #fff; }
.c2-pin-img.edit .c2-pin-dot { cursor: move; }


.c2-cloze-audio { width: 100%; max-width: 420px; margin: 2px auto 10px; display: block; }
.c2-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .c2-opts { grid-template-columns: 1fr; } }
.c2-opt {
  padding: 16px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--paper); font-size: 16px; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; gap: 10px; transition: border-color .15s ease, background .15s ease;
  color: var(--ink); text-align: left; font-family: inherit;
}
.c2-opt .k {
  flex: none; width: 26px; height: 26px; border-radius: 8px; background: #fff;
  border: 1px solid var(--line); display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--ink-faint);
}
.c2-opt:hover { border-color: var(--cinnabar); }
.c2-opt.sel { border-color: var(--cinnabar); background: var(--cinnabar-soft); }
.c2-opt.ok { border-color: #4caf50; background: #e8f5e9; color: #2e7d32; }
.c2-opt.no { border-color: var(--cinnabar); background: #fdecea; animation: ptc-shake .4s; }


.c2-vocab-wrap { display: grid; gap: 14px; }
.c2-vocab-wrap.c2-vocab-2col { grid-template-columns: 1fr 1fr; align-items: start; }
.c2-vocab-stage { max-width: 1180px; }
.cc-stage-page .c2-vocab-stage { max-width: 100%; }

.c2-vocab-2col .c2-vocab-row .w { font-size: 26px; }
.c2-vocab-2col .c2-vocab-row .p { font-size: 15px; }
.c2-vocab-2col .c2-vocab-row .e { font-size: 14px; }
.c2-vocab-2col .c2-vocab-head { font-size: 12px; }

.c2-thumb .c2-vocab-wrap.c2-vocab-2col { grid-template-columns: 1fr; }
@media (max-width: 900px) {
  .c2-vocab-wrap.c2-vocab-2col { grid-template-columns: 1fr; }
  .c2-vocab-2col .c2-vocab-row .w { font-size: 22px; }
}
.c2-vocab-tbl {
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  overflow: hidden; background: var(--paper);
}
.c2-vocab-head, .c2-vocab-row {
  display: grid; grid-template-columns: 0.9fr 1fr 1.5fr; gap: 10px;
  align-items: center; padding: 12px 14px;
}
.c2-vocab-head {
  background: #faf6f3; border-bottom: 1.5px solid var(--line);
  font-size: 12.5px; font-weight: 700; letter-spacing: 1px; color: var(--ink-faint);
}
.c2-vocab-row {
  width: 100%; border: none; border-top: 1px solid var(--line); background: transparent;
  font-family: inherit; text-align: left; cursor: pointer;
  transition: background .15s ease;
}
.c2-vocab-row:nth-of-type(even) { background: #fcfbf9; }
.c2-vocab-row:hover { background: var(--cinnabar-soft); }
.c2-vocab-row .w { display: flex; align-items: center; gap: 6px; font-family: var(--font-serif); font-size: 21px; font-weight: 700; color: var(--ink); }
.c2-vocab-row .w .spk { font-size: 12px; font-style: normal; opacity: .3; }
.c2-vocab-row:hover .w .spk { opacity: .85; }
.c2-vocab-row .p { color: var(--cinnabar); font-size: 14px; }
.c2-vocab-row .e { color: var(--en); font-size: 13.5px; line-height: 1.5; }
.c2-vocab-empty { padding: 18px 14px; text-align: center; font-size: 13px; color: var(--ink-faint); }
@media (max-width: 560px) {
  .c2-vocab-head, .c2-vocab-row { grid-template-columns: 70px 1fr 1.15fr; gap: 8px; padding: 10px; }
  .c2-vocab-head { font-size: 12px; letter-spacing: 0; }
  .c2-vocab-row .w { font-size: 19px; }
  .c2-vocab-row .p { font-size: 13px; }
  .c2-vocab-row .e { font-size: 12.5px; }
}
.c2-submit {
  display: block; margin: 22px auto 0; padding: 12px 44px; border: none; border-radius: 999px;
  background: var(--cinnabar); color: #fff; font-size: 15px; font-weight: 700; cursor: pointer;
}
.c2-submit:disabled { background: var(--ink-faint); cursor: not-allowed; }
.c2-fb { text-align: center; min-height: 26px; margin-top: 14px; font-size: 16px; font-weight: 700; }
.c2-fb.good { color: #2e7d32; }
.c2-fb.bad { color: var(--cinnabar); }
.c2-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.c2-col { display: grid; gap: 8px; align-content: start; }
.c2-chip {
  padding: 11px 8px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper);
  font-size: 14.5px; font-weight: 600; text-align: center; cursor: pointer; color: var(--ink);
  transition: all .15s ease; font-family: inherit;
}
.c2-chip:hover { border-color: var(--cinnabar); }
.c2-chip.sel { border-color: var(--cinnabar); background: var(--cinnabar-soft); color: var(--cinnabar); }
.c2-chip.ok { border-color: #4caf50; background: #e8f5e9; color: #2e7d32; }
.c2-chip.no { border-color: var(--cinnabar); background: #fdecea; }
.c2-chip.gone { visibility: hidden; }
.c2-order-bank, .c2-order-ans { display: flex; flex-wrap: wrap; gap: 8px; min-height: 48px; padding: 10px; border-radius: 10px; }
.c2-order-ans { border: 1.5px dashed var(--line); background: var(--paper); margin-bottom: 10px; }
.c2-order-bank { border: 1.5px solid var(--line); }

.c2-cloze {
  font-family: var(--font-serif); font-size: 20px; line-height: 2.4; font-weight: 600;
  color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px;
}
.c2-cloze input {
  width: 74px; border: none; border-bottom: 2px solid var(--cinnabar); background: transparent;
  font-family: inherit; font-size: 18px; text-align: center; outline: none; color: var(--cinnabar);
  margin: 0 4px;
}
.c2-blanks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
@media (max-width: 560px) { .c2-blanks { grid-template-columns: 1fr; } }
.c2-blanks input {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 15px; outline: none; background: #fff; color: var(--ink);
}
.c2-blanks input:focus { border-color: var(--cinnabar); }
.c2-blanks input.ok { border-color: #4caf50; background: #e8f5e9; }
.c2-blanks input.no { border-color: var(--cinnabar); background: #fdecea; }
.c2-typing-in {
  width: 100%; padding: 14px 16px; font-size: 20px; text-align: center;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); outline: none;
  background: #fff; color: var(--ink); font-family: var(--font-serif);
}
.c2-typing-in:focus { border-color: var(--cinnabar); }

.c2-whack { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 18px; background: linear-gradient(#cdeed3, #a9dfc0); border-radius: var(--radius); }
.c2-hole { text-align: center; }
.c2-mouse {
  font-size: 44px; line-height: 1; cursor: pointer; transition: transform .1s ease;
  background: none; border: none; display: block; margin: 0 auto; filter: drop-shadow(0 3px 3px rgba(0,0,0,.18));
}
.c2-mouse:active { transform: scale(.85); }
.c2-holeword {
  margin-top: 6px; display: inline-block; background: #fff; border: 2px solid var(--cinnabar);
  color: var(--ink); border-radius: 8px; padding: 5px 14px; font-family: var(--font-serif);
  font-size: 18px; font-weight: 700;
}
.c2-hole.ok .c2-holeword { border-color: #4caf50; background: #e8f5e9; }
.c2-hole.no .c2-holeword { animation: ptc-shake .4s; }

.c2-mj { background: #12503a; border-radius: var(--radius); padding: 20px; }
.c2-mj-title { color: #f5e6c4; text-align: center; font-size: 18px; font-weight: 700; letter-spacing: 1px; }
.c2-mj-sub { color: #bcd8c9; text-align: center; font-size: 12.5px; margin: 4px 0 16px; }
.c2-mj-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.c2-tile {
  aspect-ratio: 3/4; border: none; border-radius: 8px; cursor: pointer;
  background: linear-gradient(#fffef8, #f1ead6); box-shadow: 0 3px 0 #b7a87f;
  font-family: var(--font-serif); font-size: 30px; font-weight: 700; color: #2e2a26;
  transition: transform .1s ease;
}
.c2-tile:hover { transform: translateY(-2px); }
.c2-tile.sel { outline: 3px solid #f5c542; }
.c2-tile.gone { visibility: hidden; }

.c2-eggs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 20px; background: linear-gradient(#fdeef7, #fce3ef); border-radius: var(--radius); }
.c2-egg { font-size: 52px; text-align: center; background: none; border: none; cursor: pointer; transition: transform .12s ease; }
.c2-egg:hover { transform: scale(1.1) rotate(-4deg); }
.c2-egg.res { font-size: 20px; font-weight: 700; cursor: default; }

.c2-pin { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; padding: 18px; background: linear-gradient(135deg, #dfe9ff, #f3dcff); border-radius: var(--radius); }
.c2-pin button {
  width: 44px; height: 44px; border: none; background: transparent; cursor: pointer;
  font-family: var(--font-serif); font-size: 26px; color: var(--ink); border-radius: 8px;
}
.c2-pin button.hit { background: #4caf50; color: #fff; }
.c2-pin button.miss { background: var(--cinnabar); color: #fff; }

.c2-say {
  display: inline-flex; align-items: center; gap: 8px; margin: 6px auto 16px;
  padding: 10px 24px; border-radius: 999px; border: 1.5px solid var(--line);
  background: #fff; color: var(--cinnabar); font-size: 15px; font-weight: 700; cursor: pointer;
}
.c2-say:hover { border-color: var(--cinnabar); background: var(--cinnabar-soft); }
.c2-say-wrap { text-align: center; }


.c2-mask { position: fixed; inset: 0; z-index: 1300; background: rgba(40,32,25,.45); display: flex; align-items: center; justify-content: center; padding: 20px; }
.c2-modal { background: #fff; border-radius: 18px; padding: 24px 26px; max-width: 460px; width: 100%; max-height: 88vh; overflow: auto; box-shadow: 0 16px 44px rgba(0,0,0,.25); }
.c2-modal h3 { margin: 0 0 4px; font-size: 18px; }
.c2-modal .sub { font-size: 13px; color: var(--ink-soft); margin: 0 0 14px; }
.c2-modal .qrbox { text-align: center; margin: 12px 0; }
.c2-modal .qrbox svg { width: 180px; height: 180px; }
.c2-modal .acts { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; flex-wrap: wrap; }


.c2-add-modal { width: 100%; }
.c2-add-body { display: flex; gap: 14px; min-height: 320px; }
.c2-add-tabs { display: flex; flex-direction: column; gap: 6px; min-width: 92px; }
.c2-add-tab {
  padding: 8px 10px; border-radius: 8px; border: none; background: transparent;
  text-align: left; cursor: pointer; color: var(--ink); font-size: 13px; font-family: inherit;
  transition: background .15s, color .15s;
}
.c2-add-tab:hover { background: var(--paper); }
.c2-add-tab.on { background: var(--cinnabar-soft); color: var(--cinnabar); font-weight: 700; }
.c2-add-panel { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-content: start; }
.c2-add-card {
  border: 1.5px solid var(--line); border-radius: 12px; padding: 14px 8px; text-align: center;
  cursor: pointer; background: #fff; transition: border-color .15s, background .15s, transform .1s;
}
.c2-add-card:hover { border-color: var(--cinnabar); background: var(--cinnabar-soft); transform: translateY(-2px); }
.c2-add-card-ico { font-size: 28px; line-height: 1; margin-bottom: 8px; }
.c2-add-card-nm { font-size: 14px; font-weight: 700; color: var(--ink); }
.c2-add-card-hint { font-size: 11px; color: var(--ink-faint); margin-top: 4px; }
.c2-add-card { position: relative; }
.c2-add-card-tag {
  position: absolute; top: 8px; left: 8px;
  background: #d6e6ff; color: #1a4b8c;
  font-size: 11px; padding: 2px 7px; border-radius: 6px; font-weight: 700;
}
.c2-add-card.has-preview { padding-top: 60px; }
.c2-add-card-preview {
  height: 48px; margin: 0 auto 6px; display: flex; align-items: center; justify-content: center;
}
.c2-add-card-preview svg { max-width: 100%; max-height: 100%; }
.c2-add-acts { display: flex; justify-content: flex-end; margin-top: 16px; }
@media (max-width: 640px) {
  .c2-add-body { flex-direction: column; }
  .c2-add-tabs { flex-direction: row; flex-wrap: wrap; }
  .c2-add-panel { grid-template-columns: repeat(2, 1fr); }
}


.c2-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.c2-stat { background: var(--cinnabar-soft); border-radius: var(--radius-sm); padding: 16px; text-align: center; }
.c2-stat b { font-size: 26px; color: var(--cinnabar); display: block; }
.c2-stat span { font-size: 12.5px; color: var(--ink-soft); }
.c2-rep-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 700px) { .c2-rep-grid { grid-template-columns: 1fr; } }
.c2-rep-item { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; background: #fff; }
.c2-rep-item .t { font-size: 13.5px; font-weight: 600; }
.c2-rep-item .d { font-size: 12px; color: var(--ink-faint); margin-top: 3px; }
.c2-rep-item .r { float: right; font-size: 14px; font-weight: 700; color: var(--cinnabar); }
.c2-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.c2-table th, .c2-table td { padding: 10px 12px; font-size: 13.5px; border-bottom: 1px solid var(--line); text-align: left; }
.c2-table th { color: var(--ink-faint); font-weight: 600; font-size: 12.5px; }
.c2-result-code {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px;
  font-family: ui-monospace, Menlo, monospace; font-size: 11.5px; color: var(--ink-soft);
  word-break: break-all; background: var(--paper); user-select: all; margin-top: 12px;
}


.c2-classes-head { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.c2-classes-head > span { flex: 1; }
.c2-bkbtns { display: flex; gap: 8px; flex-wrap: wrap; }
.c2-btn.mini { padding: 6px 12px; font-size: 12.5px; }
.c2-btn:disabled { opacity: .45; cursor: default; }
.c2-btn.danger { color: var(--cinnabar); border-color: #e3c4bd; }
.c2-btn.danger:hover:not(:disabled) { border-color: var(--cinnabar); background: var(--cinnabar-soft); }


.c2-modal .qrbox { text-align: center; margin: 12px 0; }
.c2-modal .qrbox svg { width: min(100%, 320px); height: auto; max-width: 100%; background: #fff; }
.c2-modal .qrbox.big { overflow-x: auto; text-align: left; }
.c2-modal .qrbox.big svg { width: min(100%, 520px); min-width: 420px; }
.c2-modal .qr-hint { text-align: center; margin-top: -4px; }
.c2-modal .cs-link {
  font-family: ui-monospace, Menlo, monospace; font-size: 11.5px; line-height: 1.65;
  word-break: break-all; background: var(--paper); border: 1px solid var(--line);
  border-radius: 8px; padding: 10px 12px; margin-top: 12px; color: var(--ink-soft);
}
.c2-modal .cs-actions { display: flex; gap: 10px; justify-content: center; margin-top: 14px; flex-wrap: wrap; }


.c2-warn {
  display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; padding: 12px 14px;
  background: var(--cinnabar-soft); border: 1px solid #e3c4bd; border-radius: var(--radius-sm);
}
.c2-warn b { font-size: 14px; color: var(--cinnabar); }
.c2-warn span { font-size: 13px; line-height: 1.6; color: var(--ink-soft); }


.c2-game-stage { padding-bottom: 8px; }
.c2-game-slot { margin-top: 12px; }
.c2-game-slot .empty-card,
.c2-game-slot .hw-empty { margin: 0; }
.c2-game-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line);
}
.c2-game-stat { flex: 1 1 160px; font-size: 13px; color: var(--ink-soft); min-width: 0; }

.c2-game-slot .hw-canvas-wrap,
.c2-game-slot .fh-grid,
.c2-game-slot .fh-cell { touch-action: none; }


.gm-src { margin-top: 22px; }
.gm-src-head {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1.5px solid var(--line);
}
.gm-src-title { flex: 1; font-size: 15px; font-weight: 700; color: var(--ink); letter-spacing: .3px; }

.gm-summary {
  margin-top: 14px; font-size: 13px; color: var(--ink-soft);
  background: #fffdf9; border: 1.5px dashed var(--line); border-radius: var(--radius-sm);
  padding: 10px 14px;
}

.gm-src-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }

.gm-src.collapsed .gm-src-grid { display: none; }
.gm-src.collapsed { margin-bottom: 0; }
.gm-card {
  background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px 16px; box-shadow: var(--shadow); min-width: 0;
}
.gm-card.on { border-color: var(--cinnabar); }

.gm-card[hidden] { display: none; }
.gm-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.gm-card-title { font-size: 16px; font-weight: 700; color: var(--ink); }
.gm-badge {
  font-size: 11px; font-weight: 600; letter-spacing: .5px;
  background: var(--cinnabar); color: #fff; padding: 2px 9px; border-radius: 999px;
}
.gm-badge[hidden] { display: none; }
.gm-lbl { display: block; font-size: 12px; color: var(--ink-soft); margin: 10px 0 4px; }

.gm-pair {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 12px; align-items: end;
}
.gm-pair > * { min-width: 0; }
.gm-pair .gm-lbl { margin-top: 0; }
.gm-card select, .gm-card textarea {
  width: 100%; font: inherit; font-size: 14px; color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px;
}
.gm-card textarea { resize: vertical; line-height: 1.7; }
.gm-tip { font-size: 12px; color: var(--ink-faint); margin: 10px 0 0; line-height: 1.6; }

.gm-warn { color: var(--cinnabar); }
.gm-warn b { font-weight: 600; }
.gm-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; min-height: 30px; }
.gm-chip {
  font: inherit; font-size: 15px; line-height: 1; padding: 7px 12px; cursor: pointer;
  background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 999px;
}
.gm-chip:hover { border-color: var(--cinnabar); }
.gm-chip.on { background: var(--cinnabar-soft); border-color: var(--cinnabar); color: var(--cinnabar); font-weight: 600; }
.gm-empty { font-size: 12px; color: var(--ink-faint); }
.gm-ops { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.gm-mini {
  font: inherit; font-size: 12.5px; padding: 6px 12px; cursor: pointer; text-decoration: none;
  background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 999px;
}
.gm-mini:hover { border-color: var(--cinnabar); color: var(--cinnabar); }
select.gm-mini { padding: 6px 8px; max-width: 190px; }

.gm-file { font: inherit; font-size: 12.5px; color: var(--ink-soft); max-width: 230px; }
.gm-audio-name {
  font-size: 12px; color: var(--cinnabar); max-width: 220px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.gm-count { font-size: 12px; color: var(--ink-faint); margin-left: auto; }
.gm-count.warn { color: var(--cinnabar); font-weight: 600; }


.gm-src-apply {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-top: 18px; padding: 12px 14px; border-top: 1.5px dashed var(--line);
  
  position: sticky; bottom: 0; z-index: 40;
  background: var(--paper);
  box-shadow: 0 -8px 16px rgba(60, 50, 40, .07);
}

.gm-use { background: #2e9e5b; border-color: #2e9e5b; color: #fff; font-weight: 700; }
.gm-use:hover { background: #278a4e; border-color: #278a4e; color: #fff; }


.gm-sendbtn { font-weight: 700; }
.vs-mask {
  position: fixed; inset: 0; z-index: 3000;
  background: rgba(40, 34, 28, .38);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}

.vs-mask[hidden] { display: none; }

.vs-linkrow[hidden] { display: none; }
.vs-card {
  width: min(520px, 94vw); max-height: 88vh; overflow: auto;
  background: #fff; border-radius: 16px; padding: 20px 22px 22px;
  box-shadow: 0 18px 50px rgba(60, 45, 30, .26);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}
.vs-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.vs-title { flex: 1; font-size: 17px; font-weight: 700; color: #3d3833; }
.vs-x {
  border: 0; background: #f3efe9; color: #7a726a; width: 30px; height: 30px;
  border-radius: 50%; cursor: pointer; font-size: 14px; line-height: 1;
}
.vs-x:hover { background: #ece5db; }
.vs-lbl { display: block; font-size: 13px; color: #8d857d; margin-bottom: 6px; }
.vs-input {
  width: 100%; box-sizing: border-box; padding: 10px 12px; font-size: 14px;
  border: 1.5px solid #e6dfd6; border-radius: 10px; color: #3d3833;
  font-family: inherit; background: #fff;
}
.vs-input:focus { outline: none; border-color: #f2a65e; }
.vs-sec { margin-top: 18px; padding-top: 16px; border-top: 1.5px dashed #eae3d9; }
.vs-strong { font-size: 14.5px; font-weight: 700; color: #3d3833; margin-bottom: 6px; }
.vs-tip { font-size: 12.5px; color: #8d857d; margin: 0 0 10px; line-height: 1.6; }
.vs-btn {
  display: inline-block; border: 1.5px solid #e6dfd6; background: #fff; color: #4a433c;
  padding: 9px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  cursor: pointer; text-decoration: none; font-family: inherit;
}
.vs-btn:hover { border-color: #f2a65e; color: #b9713a; }
.vs-primary { background: #f2a65e; border-color: #f2a65e; color: #fff; }
.vs-primary:hover { background: #e8974b; border-color: #e8974b; color: #fff; }
.vs-primary:disabled { opacity: .6; cursor: default; }
.vs-linkrow { display: flex; gap: 8px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.vs-url { flex: 1; min-width: 200px; font-size: 12.5px; color: #6c645c; background: #faf7f3; }
.vs-copy, .vs-open { flex: none; }
.gm-apply {
  font: inherit; font-size: 15px; font-weight: 700; letter-spacing: .3px;
  cursor: pointer; padding: 11px 26px; border: none; border-radius: 999px;
  background: var(--cinnabar); color: #fff; box-shadow: 0 2px 8px rgba(200, 60, 40, .28);
  transition: transform .12s ease, box-shadow .15s ease, background .15s ease;
}
.gm-apply:hover { background: #d6442f; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(200, 60, 40, .34); }
.gm-apply:active { transform: translateY(0); }
.gm-apply-hint { font-size: 12.5px; color: var(--ink-soft); line-height: 1.6; flex: 1; min-width: 160px; }
.gm-apply-hint.done { color: #2e9e5b; font-weight: 600; }

.gm-list { margin-top: 26px; }
.gm-group { margin-bottom: 26px; }
.gm-group-title {
  display: flex; align-items: center; gap: 8px; margin: 0 0 12px;
  font-size: 13px; font-weight: 700; color: var(--ink-soft); letter-spacing: .5px;
}
.gm-group-n { font-size: 11px; color: var(--ink-faint); font-weight: 500; }

.gm-group-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

@media (max-width: 980px) { .gm-group-btns { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .gm-group-btns { grid-template-columns: 1fr; } }
.gm-game {
  display: flex; flex-direction: column; align-items: stretch; gap: 0;
  font: inherit; text-align: left; cursor: pointer; padding: 14px 14px 16px;
  background: var(--card); color: var(--ink); border: 1px solid #e8eaef;
  border-radius: 16px; box-shadow: 0 1px 3px rgba(17,24,39,.06), 0 10px 24px -16px rgba(17,24,39,.14);
  text-decoration: none;   
  transition: transform .15s ease, box-shadow .18s ease, border-color .15s ease;
}
.gm-game:hover { border-color: #d9dde4; transform: translateY(-3px);
  box-shadow: 0 2px 6px rgba(17,24,39,.07), 0 18px 32px -18px rgba(17,24,39,.24); }
.gm-game.on { border-color: var(--cinnabar); }

.gm-prev {
  position: relative; display: flex; align-items: center; justify-content: center;
  height: 128px; border-radius: 12px; overflow: hidden; margin-bottom: 13px;
}
.gm-prev::after { content: ''; position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 85% -10%, rgba(255,255,255,.6), rgba(255,255,255,0) 55%); }
.gm-prev-emoji { font-size: 52px; line-height: 1;
  filter: drop-shadow(0 4px 8px rgba(17,24,39,.16)); }
.gm-prev-emoji img { width: 62px; height: 62px; border-radius: 16px; object-fit: cover;
  vertical-align: middle; box-shadow: 0 4px 10px rgba(17,24,39,.14);
  background: #fffdf8; }
.gm-prev-no { position: absolute; left: 10px; top: 10px; z-index: 1;
  font-size: 11px; font-weight: 700; color: rgba(17,24,39,.55);
  background: rgba(255,255,255,.8); border-radius: 999px; padding: 2px 8px; }
.gm-free { position: absolute; right: 10px; top: 10px; z-index: 1;
  font-size: 11px; font-weight: 700; color: #1f2937;
  background: rgba(255,255,255,.88); border: 1px solid rgba(17,24,39,.12);
  border-radius: 999px; padding: 2px 8px; }

.gm-pro { position: absolute; right: 10px; top: 10px; z-index: 1;
  font-size: 11px; font-weight: 700; color: #fff; letter-spacing: .3px;
  background: #2563eb; border: 1px solid #1d4ed8;
  border-radius: 999px; padding: 2px 9px; }
.gm-game-cn { font-size: 16.5px; font-weight: 700; line-height: 1.35; }
.gm-game-en { font-size: 11px; color: var(--ink-faint); margin-top: 1px; }
.gm-game-desc { font-size: 13px; color: var(--ink-soft); line-height: 1.65; margin-top: 7px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.gm-play { display: block; margin-top: 13px; padding: 11px 0; border-radius: 12px;
  background: #111827; color: #fff; font-size: 14px; font-weight: 600;
  text-align: center; letter-spacing: .3px; transition: background .15s ease; }
.gm-game:hover .gm-play { background: #000; }

.gm-p1 { background: linear-gradient(135deg, #ffe9c8, #ffd3dc); }
.gm-p2 { background: linear-gradient(135deg, #ddebff, #c9dfff); }
.gm-p3 { background: linear-gradient(135deg, #dff6e7, #c4eed4); }
.gm-p4 { background: linear-gradient(135deg, #fff3c4, #ffe7a3); }
.gm-p5 { background: linear-gradient(135deg, #efe6ff, #dcc8ff); }
.gm-p6 { background: linear-gradient(135deg, #ffe1eb, #ffcddd); }
.gm-p7 { background: linear-gradient(135deg, #dff5f2, #c4e9e4); }
.gm-p8 { background: linear-gradient(135deg, #fce9d4, #f8d6ae); }
.gm-game.off { opacity: .55; cursor: not-allowed; box-shadow: none; }
.gm-game.off:hover { transform: none; border-color: #e8eaef; }
.gm-game.off .gm-play { background: #9aa1ab; }


.gm-game-shot .gm-prev { height: auto; aspect-ratio: 16 / 9; background: #fdf2ec; }
.gm-game-shot .gm-prev > .gm-shot {
  position: absolute; inset: 0; z-index: 0; display: block;
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
  border-radius: 0; box-shadow: none; background: #fffdf8;
}

html:not(.hz-owner) .gm-owner-only { display: none !important; }

.gm-stage { margin-top: 26px; border-top: 2px solid var(--line); padding-top: 18px; }
.gm-stage-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.gm-stage-title { font-size: 17px; font-weight: 700; color: var(--cinnabar); min-width: 0; }

.gm-stage-src {
  flex: 1; min-width: 0; font-size: 12px; color: var(--ink-faint);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.gm-stage-host { min-width: 0; }


.gm-review { margin-top: 26px; border-top: 2px solid var(--line); padding-top: 18px; }
.gm-review-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.gm-review-title { font-size: 17px; font-weight: 700; color: var(--cinnabar); }
.gm-review-hint { font-size: 12.5px; color: var(--ink-faint); }

.gm-review-note {
  display: flex; gap: 9px; align-items: flex-start;
  margin: 0 0 12px; padding: 10px 13px;
  background: var(--cinnabar-soft); border: 1px solid #ecd8cc;
  border-radius: var(--radius-sm);
  font-size: 13px; line-height: 1.65; color: var(--ink-soft);
}
.gm-review-note .rv-note-i {
  flex: 0 0 auto; font-size: 11.5px; font-weight: 700; line-height: 1.5;
  color: #fff; background: var(--cinnabar); border-radius: 6px; padding: 1px 6px; margin-top: 2px;
}
.gm-review-note b { color: var(--ink); font-weight: 700; }
.gm-review-note kbd {
  font: inherit; font-size: 12px; padding: 0 4px; border: 1px solid #d8c9bd;
  border-bottom-width: 2px; border-radius: 4px; background: #fff; color: var(--ink);
}
.gm-review-list { display: flex; flex-direction: column; gap: 6px; }

.rv-row {
  display: grid; align-items: center; gap: 8px;
  grid-template-columns: minmax(84px, 1fr) minmax(104px, 1.05fr) minmax(104px, 1.25fr) 62px 38px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 7px 9px;
}
.rv-headrow { background: transparent; border: 0; padding: 0 9px 2px; }
.rv-hcell { font-size: 12px; color: var(--ink-faint); }
.rv-h-op { text-align: center; }
.rv-thumb {
  position: relative; width: 52px; height: 52px; cursor: pointer;
  border: 1px solid var(--line); border-radius: 9px; background: #faf8f4;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  font-size: 11px; color: var(--ink-faint); line-height: 1.25; text-align: center;
}
.rv-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rv-thumb .rv-edit {
  position: absolute; left: 0; right: 0; bottom: 0; font-style: normal; font-size: 10px;
  text-align: center; color: #fff; background: rgba(0, 0, 0, .45); padding: 1px 0;
  opacity: 0; transition: opacity .12s;
}
.rv-thumb:hover .rv-edit, .rv-thumb:focus .rv-edit { opacity: 1; }
.rv-thumb:hover { border-color: var(--cinnabar); }

.rv-box {
  display: block; min-height: 34px; line-height: 34px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff;
  font-size: 15px; color: var(--ink); cursor: text;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rv-box:hover { border-color: #cfc7b8; background: #fffdf8; }
.rv-box:focus { outline: 0; border-color: var(--cinnabar); box-shadow: 0 0 0 2px rgba(176, 58, 46, .12); }
.rv-b-word { font-weight: 700; }
.rv-b-py { font-size: 13.5px; color: var(--ink-soft); }
.rv-b-en { font-size: 13.5px; color: var(--en); }
.rv-ops { display: flex; justify-content: center; }
.rv-btn {
  font: inherit; font-size: 15px; line-height: 1; padding: 7px 9px; cursor: pointer;
  border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink-soft);
}
.rv-btn:hover { border-color: var(--cinnabar); color: var(--cinnabar); }
.rv-btn.rv-del:hover { border-color: #b03a2e; background: var(--cinnabar-soft); color: #b03a2e; }
.rv-row.is-busy { opacity: .5; pointer-events: none; }
.gm-review-ops { display: flex; align-items: center; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.gm-review-count { font-size: 12.5px; color: var(--ink-faint); margin-left: auto; }
.gm-stage-tools { display: inline-flex; gap: 6px; flex: 0 0 auto; }
@media (max-width: 640px) {
  
  .rv-row { grid-template-columns: minmax(66px, 1fr) minmax(88px, 1.05fr) 56px 36px; }
  .rv-b-en, .rv-row .rv-h-en { display: none; }
  .rv-box { font-size: 14px; padding: 0 8px; }
}


.gm-setup {
  margin-top: 14px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow);
}
.stp-h2 { font-size: 14px; font-weight: 700; margin: 0 0 8px; color: var(--ink); }

.gm-setup.is-locked { opacity: .45; pointer-events: none; user-select: none; }
.stp-hint { font-size: 12px; color: var(--ink-soft); margin: 0 0 10px; line-height: 1.55; }
.stp-hint.is-ok { color: #2f9e6b; }
.stp-note { font-size: 12px; color: var(--ink-soft); margin: 8px 0 0; line-height: 1.55; }
.stp-note b { color: var(--ink); }
.stp-ops { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 12px; }

.gm-start {
  font: inherit; font-size: 15px; font-weight: 700; line-height: 1; padding: 10px 24px;
  border: 1px solid var(--cinnabar); border-radius: 10px;
  background: var(--cinnabar); color: #fff; cursor: pointer;
}
.gm-start:hover { filter: brightness(1.06); }

.gm-src-acts { display: inline-flex; gap: 8px; flex: 0 0 auto; }
.stp-group { display: flex; gap: 12px; align-items: flex-start; padding: 9px 0; }
.stp-group + .stp-group { border-top: 1px dashed var(--line); }
.stp-label { flex: 0 0 148px; font-size: 13px; font-weight: 700; color: var(--ink-soft); padding-top: 9px; }
.stp-opts { display: flex; flex-wrap: wrap; gap: 8px; flex: 1 1 auto; }
.stp-btn {
  font: inherit; font-size: 14px; line-height: 1; padding: 9px 15px; cursor: pointer;
  border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink);
  transition: border-color .12s, background .12s, color .12s;
}
.stp-btn:hover { border-color: var(--cinnabar); color: var(--cinnabar); }
.stp-btn.is-on {
  background: var(--cinnabar); border-color: var(--cinnabar); color: #fff; font-weight: 700;
}
.stp-btn.is-on:hover { color: #fff; }

.stp-input {
  flex: 1 1 auto; min-width: 0; font: inherit; font-size: 14px; line-height: 1;
  color: var(--ink); background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 9px 16px; box-sizing: border-box;
}
.stp-input:focus { outline: none; border-color: var(--cinnabar); }
.stp-input::placeholder { color: #b7b0a8; font-weight: 400; }

body.gm-flow .gm-src.hw2 #gmHwGo {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px;
  grid-column: auto; grid-row: auto;
  margin-top: 14px; padding: 12px 16px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
body.gm-flow .gm-src.hw2 #gmHwGo #gmHwStart { min-width: 180px; }

body.gm-flow .gm-src.hw2 #gmHwGo #gmHwHint {
  flex: 1 0 100%; max-width: none; text-align: center; margin-top: 2px;
}
body.gm-flow .gm-src.hw2 #gmSetup { grid-column: auto; grid-row: auto; margin-top: 14px; }

.gm-ops[hidden] { display: none; }

body.student-view .topbar, body.student-view footer.home-foot { display: none !important; }
body.student-view main.page { max-width: none; padding: 0 16px; }

body.tr-edit .gm-src-grid, body.tr-edit .gm-src-apply { display: none !important; }
body.tr-edit #gmCardText { display: none !important; }
.tr-ed-srcbox { display: none !important; }
.tr-ed-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 12px;
  
  padding-right: 310px; }
@media (max-width: 900px) { .tr-ed-tabs { padding-right: 0; } }

.tr-ed-tabs .tr-ed-lang select { margin-left: 2px; }
.tr-ed-tabs .gm-mini { margin: 0; }
.tr-ed-tab { font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink-soft);
  border-radius: 999px; padding: 8px 18px; }
.tr-ed-tab.on { background: var(--cinnabar); border-color: var(--cinnabar); color: #fff; }
.tr-ed-body { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 14px; align-items: start; }
@media (max-width: 900px) { .tr-ed-body { grid-template-columns: 1fr; } }
.tr-ed-main, .tr-ed-side { background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; }
.tr-ed-side-h { font-size: 15px; font-weight: 700; color: var(--ink); }
.tr-ed-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.tr-ed-tg { font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink-soft);
  border-radius: 999px; padding: 6px 14px; }
.tr-ed-tg.on { background: var(--cinnabar); border-color: var(--cinnabar); color: #fff; }
.tr-ed-bar-gap { flex: 1 1 auto; }
.tr-ed-lang select { font: inherit; font-size: 13.5px; border: 1px solid var(--line);
  border-radius: 8px; padding: 6px 8px; background: #fff; color: var(--ink); }
.tr-ed-table.hide-zh .tr-ed-zh, .tr-ed-table.hide-py .tr-ed-py, .tr-ed-table.hide-en .tr-ed-en { display: none; }

.tr-ed-table { max-height: 62vh; overflow-y: auto; overscroll-behavior: contain; }

.tr-ed-hrow { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 8px; padding: 0 0 6px; border-bottom: 1.5px solid var(--line); margin-bottom: 2px;
  position: sticky; top: 0; z-index: 2; background: var(--card); }
.tr-ed-h { justify-self: start; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink-soft);
  border-radius: 999px; padding: 5px 16px; }
.tr-ed-h.on { background: var(--cinnabar); border-color: var(--cinnabar); color: #fff; }
.tr-ed-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 8px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.tr-ed-row:last-child { border-bottom: none; }
.tr-ed-row textarea, .tr-ed-row input { font: inherit; font-size: 15px; color: var(--ink);
  border: 1px solid transparent; border-radius: 8px; padding: 6px 8px;
  background: transparent; width: 100%; box-sizing: border-box; resize: none; }
.tr-ed-row textarea:focus, .tr-ed-row input:focus { outline: none; border-color: var(--cinnabar); background: #fff; }
.tr-ed-row .tr-ed-zh { font-family: var(--font-serif); }
.tr-ed-status { margin-top: 10px; font-size: 13px; color: var(--ink-soft); }
.tr-ed-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px;
  padding: 12px 16px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); }
#trEdFoot [hidden] { display: none !important; }
.tr-ed-foot-sub { display: flex; gap: 8px; margin-left: auto; }

.tr-ed-foot .gm-badge { margin: 0; }
.tr-ed-foot { justify-content: space-evenly; }
.tr-ed-foot .gm-mini, .tr-ed-foot .gm-apply, .tr-ed-foot .gm-badge {
  height: 38px; box-sizing: border-box; margin: 0;
  display: inline-flex; align-items: center; justify-content: center;
  padding-top: 0; padding-bottom: 0;
}

body.tr-src-builtin .tr-ed-bar, body.tr-src-builtin .tr-ed-table,
body.tr-src-builtin #trEdHintSlot, body.tr-src-builtin .tr-ed-side { display: none; }

body.tr-edit:not(.tr-play) #gmStage { display: none !important; }
body.tr-play #gmSrc { display: none !important; }
body.tr-play .gm-stage-title, body.tr-play .gm-stage-src, body.tr-play .gm-stage-tools { display: none; }
body.tr-play .gm-stage-head { justify-content: flex-end; }
body.tr-play main.page { max-width: 980px; }
body.tr-edit:not(.tr-src-builtin) #trEdBuiltin { display: none; }
@media (max-width: 640px) {
  .stp-group { flex-direction: column; gap: 8px; }
  .stp-label { flex: none; padding-top: 0; }
  .stp-btn { font-size: 13.5px; padding: 8px 12px; }
  .gm-start { width: 100%; padding: 12px 0; }
}


body.hz-cast .gm-src,
body.hz-cast .gm-review,
body.hz-cast .gm-setup,
body.hz-cast .topbar,
body.hz-cast .home-foot,
body.hz-cast #backFab,
body.hz-cast .back-fab { display: none !important; }
body.hz-cast .gm-stage {
  position: fixed; inset: 0; z-index: 9998; margin: 0; padding: 12px 18px;
  border-top: 0; border-radius: 0; background: var(--paper); overflow: auto;
}
body.hz-cast .gm-stage-host { min-height: calc(100vh - 64px); display: flex; align-items: center; justify-content: center; }

body.hz-cast .fc-panel { transform: scale(1.3); transform-origin: center center; }
@media (max-width: 480px) {
  
  .gm-play { padding: 10px 0; }
}



@media (max-width: 860px) {
  .topbar-inner { flex-wrap: wrap; padding: 8px 14px; gap: 8px 10px; }
  .topbar-inner .site-nav { order: 3; flex: 1 1 100%; margin-left: 0; gap: 0; flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; }
  .topbar-inner .lang-switch { order: 1; }
  .topbar-inner .hz-acct-btn { order: 2; }
}
@media (max-width: 730px) {
  .site-header-inner { flex-wrap: wrap; padding: 8px 12px; gap: 8px 10px; }
  .brand-logo { width: 38px; height: 38px; }
  .brand-cn { font-size: 15px; letter-spacing: .5px; }
  .brand-en { display: none; }
  
  .site-header .topbar-inner { order: 2; }
  .site-nav { order: 3; flex: 1 1 100%; margin-left: 0; gap: 0; flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; }
  .site-nav-link { padding: 5px 10px; font-size: 13.5px; white-space: nowrap; }
  .site-nav-link i { font-size: 9px; }
  .lang-switch { order: 1; padding: 2px; }
  .lang-switch-btn { padding: 3px 8px; font-size: 11.5px; }
  .logo-img { width: 72px; height: 72px; }
}
@media (max-width: 640px) {
  .site-header-inner { padding: 8px 12px; gap: 8px; }
  .breadcrumb { display: none; }
  .brand-text { display: none; }
  .topbar .brand-sm .brand-text { display: none; }
}




html:not(.hz-owner) [data-hg="games"],
html:not(.hz-owner) [data-hg="classroom"],
html:not(.hz-owner) [data-hg="studio"],
html:not(.hz-owner) .level-games { display: none !important; }


html.hz-gate-pending body > * { visibility: hidden !important; }
.hz-gate-note {
  position: fixed; inset: 0; z-index: 99999;
  display: none; align-items: center; justify-content: center;
  font-family: inherit; font-size: 15px; letter-spacing: .5px; color: #8a8177;
}
html.hz-gate-pending .hz-gate-note { display: flex !important; visibility: visible !important; }


.home-board { width: 100%; max-width: 780px; margin: 44px auto 4px; }
.hb-head { text-align: center; margin-bottom: 18px; }
.hb-title {
  font-family: var(--font-serif); font-size: 24px; font-weight: 700;
  color: var(--ink); letter-spacing: 1px; margin: 0 0 8px;
}
.hb-sub { font-size: 13px; color: var(--ink-soft); margin: 0; line-height: 1.75; }


.hb-post {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px 18px; margin-bottom: 18px;
}
.hb-ta {
  width: 100%; box-sizing: border-box; min-height: 84px; resize: vertical;
  font: inherit; font-size: 14px; line-height: 1.75; color: var(--ink);
  background: #fdfcfa; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 10px 12px;
}
.hb-ta:focus { outline: none; border-color: #d9b3ad; background: #fff; }
.hb-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.hb-count { font-size: 12px; color: var(--ink-faint); }
.hb-btn {
  font-family: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer;
  border: 1px solid var(--line); background: var(--card); color: var(--ink-soft);
  border-radius: 999px; padding: 8px 20px;
  transition: color .15s ease, background .15s ease, border-color .15s ease;
}
.hb-btn:hover { color: var(--cinnabar); border-color: #e5c9c4; }
.hb-btn[disabled] { opacity: .55; cursor: default; }
.hb-btn-primary { background: var(--cinnabar); border-color: var(--cinnabar); color: #fff; }
.hb-btn-primary:hover { background: var(--cinnabar-dark); border-color: var(--cinnabar-dark); color: #fff; }
.hb-guide {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  flex-wrap: wrap; font-size: 13.5px; color: var(--ink-soft); line-height: 1.75;
}


.hb-list { display: flex; flex-direction: column; gap: 12px; }
.hb-item {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 16px;
}
.hb-meta { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.hb-name { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.hb-time { font-size: 11.5px; color: var(--ink-faint); }
.hb-tag {
  font-size: 10.5px; font-weight: 600; color: var(--cinnabar); background: #fdf3f1;
  border: 1px solid #f0c9c2; border-radius: 999px; padding: 1px 8px;
}
.hb-text { font-size: 14px; line-height: 1.85; color: var(--ink); white-space: pre-wrap; word-break: break-word; }
.hb-reply {
  margin-top: 10px; padding: 10px 12px; background: var(--cinnabar-soft);
  border-left: 3px solid #e5bdb6; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.hb-reply-who { font-size: 12px; font-weight: 700; color: var(--cinnabar); margin-bottom: 4px; }
.hb-reply-txt { font-size: 13.5px; line-height: 1.85; color: var(--ink-soft); white-space: pre-wrap; word-break: break-word; }
.hb-acts { display: flex; gap: 8px; margin-top: 10px; }
.hb-act {
  font: inherit; font-size: 12px; font-weight: 600; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--ink-soft);
  border-radius: 999px; padding: 4px 12px;
}
.hb-act:hover { color: var(--cinnabar); border-color: #e5c9c4; }
.hb-replybox { margin-top: 10px; }
.hb-replybox .hb-ta { min-height: 62px; }
.hb-empty { text-align: center; font-size: 13px; color: var(--ink-faint); padding: 16px 0; }
@media (max-width: 730px) {
  .home-board { margin-top: 32px; }
  .hb-title { font-size: 20px; }
  .hb-guide { flex-direction: column; align-items: flex-start; }
}


.card-badge {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  display: inline-block;
  font-size: 11px; font-weight: 700; line-height: 1;
  letter-spacing: .04em; white-space: nowrap;
  padding: 5px 10px; border-radius: 999px;
  color: #fff; background: #8a8a8a;
  
  box-shadow: 0 2px 6px rgba(40, 30, 20, .22), 0 0 0 2px rgba(255, 255, 255, .78);
  pointer-events: none;
}
.card-badge.badge-free { background: var(--cinnabar); }

.card-badge.badge-part { background: #fffaf3; color: var(--cinnabar); }
.card-badge.badge-pro { background: #185fa5; }
.card-badge.badge-soon { background: #f59f00; }

.card-badge.badge-green { background: #2e7d32; }


.mg-card, .tl-card, .rs-card, .series-btn { position: relative; }

.sr-card { position: relative; }


.series-btn .card-badge { top: 8px; right: 8px; }

@media (max-width: 640px) {
  .card-badge { top: 8px; right: 8px; font-size: 10px; padding: 4px 8px; }
  .series-btn .card-badge { top: 6px; right: 6px; }
}


.hz-lazy-splash {
  position: fixed; inset: 0; z-index: 3000;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: #fdfaf5; color: #7a6a55;
  font-size: 15px; letter-spacing: .02em;
}
.hz-lazy-dot {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid #e3d8c8; border-top-color: #b23a2b;
  animation: hzLazySpin .7s linear infinite;
}
@keyframes hzLazySpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .hz-lazy-dot { animation: none; }
}




:root { --gm-k: 1; }



body.gm-flow main.page,
body.hw-play main.page,
body.tr-play main.page,
body.vc-play main.page,
body.stk-play main.page,
body.gm-playing main.page { max-width: min(1600px, 95vw); padding-left: 14px; padding-right: 14px; }


body.hz-cast .gm-stage { padding: 6px 10px; }
body.hz-cast .fc-panel { transform: none; }

body.hz-cast .gm-stage-host > * { width: min(1560px, 98vw); max-width: none; }



.fc-card { max-width: max(380px, min(720px, 56vw)); min-height: max(500px, min(620px, 62vh)); }
.fc-inner { min-height: max(500px, min(620px, 62vh)); }
.fc-img { height: max(300px, min(340px, 32vh)); }
.fc-hanzi { font-size: max(54px, calc(5.4vw * var(--gm-k))); }
.fc-hanzi-front { font-size: max(46px, calc(4.6vw * var(--gm-k))); }
.fc-pinyin, .fc-english { font-size: max(15px, calc(1.3vw * var(--gm-k))); }
.fc-speak { font-size: max(14px, calc(1.15vw * var(--gm-k))); }


.vl-table { font-size: max(15px, calc(1.2vw * var(--gm-k))); }
.vl-col-zh { font-size: max(20px, calc(1.85vw * var(--gm-k))); }
.vl-col-py { font-size: max(14px, calc(1.15vw * var(--gm-k))); }
.vl-table thead th { font-size: max(14px, calc(1.05vw * var(--gm-k))); }


.tr-zh { font-size: max(22px, calc(2vw * var(--gm-k))); }
.tr-zh .hz-py, .tr-zh rt { font-size: max(12px, calc(1vw * var(--gm-k))); }
.tr-pinyin, .tr-en { font-size: max(14px, calc(1.25vw * var(--gm-k))); }


.mf-card {
  width: max(250px, min(30vw * var(--gm-k), 560px));
  height: max(320px, min(36vw * var(--gm-k), 640px));
}
.mf-py { font-size: max(30px, calc(1.6vw * var(--gm-k))); }


.fs-board, .fs-ref-board { width: var(--fsB, 280px); height: var(--fsB, 280px); }
.fs-word { width: max(46px, calc(3.4vw * var(--gm-k))); height: max(46px, calc(3.4vw * var(--gm-k))); font-size: max(25px, calc(1.9vw * var(--gm-k))); }
.fs-target-ch { font-size: max(40px, calc(2.6vw * var(--gm-k))); min-width: max(64px, calc(4.4vw * var(--gm-k))); height: max(64px, calc(4.4vw * var(--gm-k))); }


.hw-pinyin-en { font-size: max(14px, calc(1.2vw * var(--gm-k))); }
.hw-col-label { font-size: max(13px, calc(1vw * var(--gm-k))); }
.hw-hint { font-size: max(13px, calc(1vw * var(--gm-k))); }


.sp-pieces, .sp-slots { grid-template-columns: repeat(2, max(112px, calc(8vw * var(--gm-k)))); }
.sp-slot-num { font-size: max(18px, calc(1.2vw * var(--gm-k))); }


.mf-en { font-size: max(18px, calc(1vw * var(--gm-k))); }






:root { --gm-k: 1; --gm-b: 1; --gm-d: 1.35; }

.pnl-host:fullscreen,
.pnl-host:-webkit-full-screen { --gm-b: 1.7; --gm-d: 2.1; }

@media (max-width: 700px) { :root { --gm-d: 1; } }


.mm-grid { max-width: min(100%, max(360px, calc(74.12vw * var(--gm-k) * var(--gm-b)))); gap: max(10px, calc(1.2vw * var(--gm-k) * var(--gm-b))); }
.mm-timer { max-width: min(100%, max(360px, calc(74.12vw * var(--gm-k) * var(--gm-b)))); }
.mm-front { font-size: max(30px, calc(6.32vw * var(--gm-k) * var(--gm-b))); }
.mm-char {
  min-width: max(40px, calc(3.27vw * var(--gm-k) * var(--gm-b)));
  height: max(40px, calc(3.27vw * var(--gm-k) * var(--gm-b)));
  font-size: max(20px, calc(1.85vw * var(--gm-k) * var(--gm-b)));
}


.cp-grid { max-width: min(100%, max(460px, calc(74.12vw * var(--gm-k) * var(--gm-b)))); gap: max(6px, calc(0.98vw * var(--gm-k) * var(--gm-b))); }
.cp-cell { font-size: max(26px, calc(3.82vw * var(--gm-k) * var(--gm-b))); }


.af-grid { max-width: min(100%, max(420px, calc(71.94vw * var(--gm-k) * var(--gm-b)))); gap: max(5px, calc(0.98vw * var(--gm-k) * var(--gm-b))); }
.af-ch { font-size: max(26px, calc(6.1vw * var(--gm-k) * var(--gm-b))); }
.af-py { font-size: max(11px, calc(1.74vw * var(--gm-k) * var(--gm-b))); }


.fh-grid { max-width: min(100%, max(400px, calc(69.76vw * var(--gm-k) * var(--gm-b)))); gap: max(4px, calc(0.87vw * var(--gm-k) * var(--gm-b))); }
.fh-cell { font-size: max(22px, calc(3.71vw * var(--gm-k) * var(--gm-b))); }
.fh-tgt-ch { font-size: max(28px, calc(2.83vw * var(--gm-k) * var(--gm-b))); }


.sp-grid { max-width: min(100%, max(460px, calc(69.76vw * var(--gm-k) * var(--gm-b)))); gap: max(4px, calc(0.87vw * var(--gm-k) * var(--gm-b))); }
.sp-cell { font-size: max(20px, calc(3.71vw * var(--gm-k) * var(--gm-b))); }
.sp-big { font-size: max(56px, calc(6.54vw * var(--gm-k) * var(--gm-b))); }
.sp-pinyin { font-size: max(18px, calc(2.18vw * var(--gm-k) * var(--gm-b))); }
.sp-player { width: max(24px, calc(2.18vw * var(--gm-k) * var(--gm-b))); height: max(24px, calc(2.18vw * var(--gm-k) * var(--gm-b))); }
.sp-bobo { width: max(30px, calc(2.62vw * var(--gm-k) * var(--gm-b))); height: max(30px, calc(2.62vw * var(--gm-k) * var(--gm-b))); }


.ws-board, .ws-grid { max-width: min(100%, max(420px, calc(69.76vw * var(--gm-k) * var(--gm-b)))); }
.ws-cell { font-size: max(16px, calc(3.05vw * var(--gm-k) * var(--gm-b))); }
.ws-grid.ws-grid-lg .ws-cell { font-size: max(12px, calc(2.29vw * var(--gm-k) * var(--gm-b))); }


.mp-grid { max-width: min(100%, max(420px, calc(65.4vw * var(--gm-k) * var(--gm-b)))) !important; gap: max(2px, calc(0.44vw * var(--gm-k) * var(--gm-b))); }
.mp-cell { font-size: max(16px, calc(2.83vw * var(--gm-k) * var(--gm-b))) !important; }
.mp-picklist {
  max-width: min(100%, max(560px, calc(50.14vw * var(--gm-k) * var(--gm-b))));
  gap: max(10px, calc(1.09vw * var(--gm-k) * var(--gm-b)));
  padding: max(14px, calc(1.53vw * var(--gm-k) * var(--gm-b)));
}
.mp-pick { padding: max(10px, calc(1.09vw * var(--gm-k) * var(--gm-b))) max(6px, .6vw); }
.mp-pick-ico { font-size: max(30px, calc(3.49vw * var(--gm-k) * var(--gm-b))); }
.mp-pick-name { font-size: max(13px, calc(1.74vw * var(--gm-k) * var(--gm-b))); }
.mp-legend-item { font-size: max(16px, calc(1.85vw * var(--gm-k) * var(--gm-b))); }
.mp-swatch { width: max(22px, calc(2.4vw * var(--gm-k) * var(--gm-b))); height: max(22px, calc(2.4vw * var(--gm-k) * var(--gm-b))); }


.qz-q { padding: max(22px, 2.2vw) max(16px, 1.6vw); }
.qz-ques { font-size: max(52px, calc(7.09vw * var(--gm-k) * var(--gm-b))); min-height: max(62px, calc(7.85vw * var(--gm-k) * var(--gm-b))); }
.qz-opts {
  max-width: min(100%, max(520px, calc(56.68vw * var(--gm-k) * var(--gm-b))));
  margin-left: auto; margin-right: auto;
  gap: max(12px, calc(1.31vw * var(--gm-k) * var(--gm-b)));
}
.qz-opt {
  min-height: max(58px, calc(5.89vw * var(--gm-k) * var(--gm-b)));
  font-size: max(22px, calc(3.27vw * var(--gm-k) * var(--gm-b)));
  padding: max(8px, .8vw) max(14px, 1.4vw);
  border-radius: max(12px, 1.2vw);
}
.qz-opt-text { font-size: max(18px, calc(2.62vw * var(--gm-k) * var(--gm-b))); }


.mu-cols { max-width: min(100%, max(560px, calc(61.04vw * var(--gm-k) * var(--gm-b)))); margin-left: auto; margin-right: auto; gap: max(16px, calc(1.74vw * var(--gm-k) * var(--gm-b))); }
.mu-list { gap: max(8px, calc(0.98vw * var(--gm-k) * var(--gm-b))); }
.mu-item { min-height: max(52px, calc(5.45vw * var(--gm-k) * var(--gm-b))); font-size: max(20px, calc(2.83vw * var(--gm-k) * var(--gm-b))); }


.tf-card { padding: max(26px, 2.4vw) max(18px, 2vw); }
.tf-char { font-size: max(72px, calc(9.81vw * var(--gm-k) * var(--gm-b))); }
.tf-shown { font-size: max(24px, calc(2.62vw * var(--gm-k) * var(--gm-b))); }
.tf-true, .tf-false { font-size: max(16px, calc(1.74vw * var(--gm-k) * var(--gm-b))); padding: max(10px, 1vw) max(26px, 2.6vw); }


.ctp2-word { font-size: max(72px, calc(8.72vw * var(--gm-k) * var(--gm-b))); }
.ctp2-options { max-width: min(100%, max(440px, calc(54.5vw * var(--gm-k) * var(--gm-b)))); gap: max(12px, calc(1.31vw * var(--gm-k) * var(--gm-b))); }
.ctp2-opt { font-size: max(22px, calc(3.05vw * var(--gm-k) * var(--gm-b))); padding: max(18px, 1.8vw) max(12px, 1.2vw); }


.pb-sky { height: max(400px, calc(44vh * var(--gm-b))); }
.pb-balloon { max-width: max(132px, calc(17.44vw * var(--gm-k) * var(--gm-b))); }
.pb-ball { max-width: max(120px, calc(16.35vw * var(--gm-k) * var(--gm-b))); height: max(140px, calc(18.53vw * var(--gm-k) * var(--gm-b))); }
.pb-ball span { font-size: max(30px, calc(4.91vw * var(--gm-k) * var(--gm-b))); }
.pb-prompt { font-size: max(20px, calc(2.4vw * var(--gm-k) * var(--gm-b))); }


.cc-row {
  grid-template-columns: repeat(3, minmax(max(92px, calc(15.26vw * var(--gm-k) * var(--gm-b))), 1fr));
  max-width: min(100%, max(430px, calc(52.32vw * var(--gm-k) * var(--gm-b))));
  gap: max(8px, calc(0.98vw * var(--gm-k) * var(--gm-b)));
}


.stk-canvas { height: max(440px, calc(50vh * var(--gm-b))); }
.stk-quiz {
  min-width: max(260px, calc(28.34vw * var(--gm-k) * var(--gm-b)));
  padding: max(18px, 1.8vw) max(22px, 2.2vw);
  border-radius: max(20px, 2vw);
}
.stk-qlabel { font-size: max(11px, calc(1.42vw * var(--gm-k) * var(--gm-b))); }
.stk-qprompt { font-size: max(42px, calc(5.01vw * var(--gm-k) * var(--gm-b))); min-height: max(54px, calc(6.54vw * var(--gm-k) * var(--gm-b))); }
.stk-qpinyin { font-size: max(36px, calc(4.36vw * var(--gm-k) * var(--gm-b))); }
.stk-qmean { font-size: max(30px, calc(3.49vw * var(--gm-k) * var(--gm-b))); }
.stk-qopts { gap: max(10px, calc(1.09vw * var(--gm-k) * var(--gm-b))); }
.stk-opt { font-size: max(20px, calc(2.4vw * var(--gm-k) * var(--gm-b))); padding: max(10px, 1vw) max(14px, 1.4vw); }
.stk-tray { max-width: min(100%, max(720px, calc(50.14vw * var(--gm-k) * var(--gm-b)))); gap: max(10px, calc(1.09vw * var(--gm-k) * var(--gm-b))); }


.mm-dialog, .cp-dialog, .tf-dialog, .mu-dialog, .qz-dialog, .sp-dialog, .af-dialog, .ptc2-dialog {
  max-width: calc(320px * var(--gm-d));
  padding: calc(28px * var(--gm-d)) calc(30px * var(--gm-d));
  border-radius: calc(18px * var(--gm-d));
}
.mm-dialog-icon, .cp-dialog-icon, .tf-dialog-icon, .mu-dialog-icon, .qz-dialog-icon, .sp-dialog-icon, .af-dialog-icon {
  width: calc(64px * var(--gm-d)); height: calc(64px * var(--gm-d));
  font-size: calc(34px * var(--gm-d)); line-height: calc(64px * var(--gm-d));
}
.mm-dialog-title, .cp-dialog-title, .tf-dialog-title, .mu-dialog-title, .qz-dialog-title, .sp-dialog-title, .af-dialog-title {
  font-size: calc(26px * var(--gm-d));
}
.ptc2-dialog-title { font-size: calc(24px * var(--gm-d)); }
.mm-dialog-sub, .cp-dialog-sub, .tf-dialog-sub, .mu-dialog-sub, .qz-dialog-sub, .sp-dialog-sub,
.af-dialog-sub, .ptc2-dialog-sub, .ptc2-dialog-time { font-size: calc(15px * var(--gm-d)); }
.mm-dialog-actions, .cp-dialog-actions, .tf-dialog-actions, .mu-dialog-actions, .qz-dialog-actions,
.sp-dialog-actions, .af-dialog-actions, .ptc2-dialog-actions,
.pb-dialog-btns, .ws-dialog-btns { gap: calc(10px * var(--gm-d)); }

.pb-dialog, .ws-dialog { max-width: calc(340px * var(--gm-d)); padding: calc(30px * var(--gm-d)) calc(38px * var(--gm-d)); }
.pb-dialog-icon, .ws-dialog-icon { font-size: calc(54px * var(--gm-d)); }
.pb-dialog-title, .ws-dialog-title { font-size: calc(24px * var(--gm-d)); }
.pb-dialog-sub, .ws-dialog-sub { font-size: calc(14px * var(--gm-d)); }

.mm-dialog button, .cp-dialog button, .tf-dialog button, .mu-dialog button, .qz-dialog button,
.sp-dialog button, .af-dialog button, .ptc2-dialog button, .pb-dialog button, .ws-dialog button {
  font-size: calc(14px * var(--gm-d));
  padding: calc(8px * var(--gm-d)) calc(16px * var(--gm-d));
}


.c2-bank-pool { display:flex; flex-wrap:wrap; gap:8px; margin:10px 0 16px; }
.c2-bank-opt { display:flex; align-items:center; gap:8px; background:var(--paper); border:1px solid var(--line); border-radius:var(--radius-sm); padding:7px 12px; font-size:15px; }
.c2-bank-opt b { display:inline-flex; align-items:center; justify-content:center; width:22px; height:22px; border-radius:50%; background:var(--cinnabar); color:#fff; font-size:12px; flex:none; }
.c2-bank-items { display:grid; gap:8px; margin-bottom:14px; }
.c2-bank-line { display:flex; align-items:center; gap:12px; flex-wrap:wrap; background:var(--card); border:1px solid var(--line); border-radius:var(--radius-sm); padding:8px 12px; }
.c2-bank-line.ok { background:#eaf7ee; border-color:#8ac79c; }
.c2-bank-line.no { background:#fdeeee; border-color:#e2a3a3; }
.c2-bank-q { flex:1; min-width:180px; font-size:16px; }
.c2-bank-sel { font-size:15px; padding:5px 10px; border:1px solid var(--line); border-radius:var(--radius-sm); background:#fff; color:var(--ink); }
.c2-dialog-lines { display:grid; gap:10px; margin:12px 0; }
.c2-dialog-line { display:grid; grid-template-columns:78px 1fr; gap:10px; align-items:start; background:var(--paper); border:1px solid var(--line); border-radius:var(--radius-sm); padding:10px 12px; }
.c2-dialog-role { font-weight:700; color:var(--cinnabar); font-size:14px; padding-top:3px; }
.c2-dialog-zh { font-size:20px; line-height:1.6; }
.c2-dialog-py { font-size:13px; color:var(--ink-faint); margin-top:3px; }
.c2-dialog-en { font-size:13px; color:var(--ink-soft); margin-top:3px; font-style:italic; }
.c2-dialog-line.blurred .c2-dialog-zh { filter:blur(6px); cursor:pointer; user-select:none; }
.c2-dialog-line.blurred .c2-dialog-zh.revealed { filter:none; user-select:auto; }
.c2-dialog-tools { display:flex; gap:8px; flex-wrap:wrap; align-items:center; margin:8px 0 14px; }
.c2-sw { display:flex; gap:14px; flex-wrap:wrap; margin:4px 0 10px; }
.c2-sw-item { display:inline-flex; align-items:center; gap:5px; font-size:13px; color:var(--ink-soft); cursor:pointer; }
.c2-task-box { background:var(--paper); border:1px dashed var(--line); border-radius:var(--radius-sm); padding:14px 16px; margin:12px 0; font-size:17px; line-height:1.8; white-space:pre-wrap; }
.c2-task-answer { background:#fff8e6; border:1px solid #e8d29a; border-radius:var(--radius-sm); padding:12px 14px; margin:10px 0; font-size:16px; line-height:1.7; white-space:pre-wrap; }
.c2-task-input { width:100%; min-height:92px; box-sizing:border-box; padding:10px 12px; font-size:16px; line-height:1.7; border:1px solid var(--line); border-radius:var(--radius-sm); background:#fff; color:var(--ink); resize:vertical; }
.c2-save-state { font-size:12px; color:#2e7d4f; background:#eaf7ee; border:1px solid #bfe0c9; border-radius:20px; padding:3px 10px; white-space:nowrap; }
.c2-page-count { font-size:12px; color:var(--ink-faint); white-space:nowrap; }
.c2-toolbar { display:flex; align-items:center; gap:8px; flex-wrap:wrap; background:var(--card); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); padding:9px 12px; margin-bottom:14px; }
.c2-tool-lbl { font-size:12px; font-weight:700; color:var(--ink-soft); }
.c2-tool-tog { font-size:12.5px; padding:5px 12px; border:1px solid var(--line); border-radius:20px; background:var(--paper); color:var(--ink-faint); cursor:pointer; }
.c2-tool-tog.on { background:var(--cinnabar-soft); border-color:var(--cinnabar); color:var(--cinnabar); font-weight:700; }
.c2-toolbar .sp { flex:1; }
.c2-tool-apply { font-size:12.5px; padding:5px 14px; border:1px solid var(--cinnabar); border-radius:20px; background:var(--cinnabar); color:#fff; cursor:pointer; }
.c2-tool-hint { font-size:11.5px; color:var(--ink-faint); }
.c2-ed.has-res { grid-template-columns:190px minmax(0,1fr) 230px; }
@media (max-width:1180px) { .c2-ed.has-res { grid-template-columns:180px minmax(0,1fr); } .c2-res-panel { display:none; } }
@media (max-width:860px) { .c2-ed.has-res { grid-template-columns:1fr; } }
.c2-res-panel { background:var(--card); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); padding:12px; max-height:72vh; overflow:auto; }
.c2-res-head { display:flex; align-items:baseline; justify-content:space-between; font-size:14px; font-weight:700; margin-bottom:10px; padding-bottom:8px; border-bottom:1px dashed var(--line); }
.c2-res-head span { font-size:11.5px; font-weight:400; color:var(--ink-faint); }
.c2-res-list { display:grid; gap:6px; }
.c2-res-item { display:grid; grid-template-columns:1fr; gap:2px; text-align:left; width:100%; background:var(--paper); border:1px solid var(--line); border-radius:var(--radius-sm); padding:8px 10px; cursor:pointer; }
.c2-res-item:hover { border-color:var(--cinnabar); background:var(--cinnabar-soft); }
.c2-res-item b { font-size:16px; color:var(--ink); }
.c2-res-item .py { font-size:11.5px; color:var(--ink-faint); }
.c2-res-item .en { font-size:11px; color:var(--ink-soft); }
.c2-res-acts { display:flex; flex-direction:column; gap:6px; margin-top:12px; padding-top:10px; border-top:1px dashed var(--line); }
.c2-ai-modal h3 { margin:0 0 6px; }
.c2-ai-modal .sub { font-size:12.5px; color:var(--ink-soft); line-height:1.7; margin:0 0 14px; }
.c2-ai-row { margin-bottom:10px; }
.c2-ai-row label { display:block; font-size:12.5px; font-weight:600; color:var(--ink-soft); margin-bottom:5px; }
.c2-ai-row input, .c2-ai-row textarea { width:100%; box-sizing:border-box; padding:8px 10px; font-size:14px; border:1px solid var(--line); border-radius:var(--radius-sm); background:#fff; color:var(--ink); }
.c2-ai-row textarea { resize:vertical; line-height:1.6; }
.c2-ai-sec { font-size:12px; font-weight:700; color:var(--ink-soft); margin:14px 0 8px; padding-bottom:5px; border-bottom:1px dashed var(--line); }
.c2-ai-parts { display:grid; grid-template-columns:repeat(2,1fr); gap:6px; }
.c2-ai-part { display:flex; align-items:center; gap:6px; font-size:13px; background:var(--paper); border:1px solid var(--line); border-radius:var(--radius-sm); padding:6px 9px; cursor:pointer; }
.c2-vocab-tbl.vcols-2 .c2-vocab-head, .c2-vocab-tbl.vcols-2 .c2-vocab-row { grid-template-columns:1fr 1fr; }
.c2-vocab-tbl.vcols-1 .c2-vocab-head, .c2-vocab-tbl.vcols-1 .c2-vocab-row { grid-template-columns:1fr; }
.c2-vocab-row.no-say { cursor:default; }
.c2-vocab-row.no-say .spk { display:none; }

.c2-ai-opt { display:flex; align-items:flex-start; gap:8px; margin:12px 0 4px; padding:9px 11px; background:#f2f7ff; border:1px solid #d9e6fb; border-radius:var(--radius-sm); font-size:12.5px; color:var(--ink-soft); line-height:1.6; }
.c2-ai-opt input { margin-top:3px; flex:none; }
.c2-ai-opt b { color:var(--ink); }
.c2-ai-status { font-size:12px; color:var(--ink-soft); margin:8px 0 0; min-height:16px; }
.c2-ai-status.busy { color:var(--cinnabar); }




.c2-vocab-row.pickable { cursor:pointer; }
.c2-vocab-row.pickable:hover { border-color:var(--cinnabar); background:var(--cinnabar-soft); }
.c2-pick-line { cursor:pointer; border-radius:4px; transition:background .15s; }
.c2-pick-line:hover { background:var(--cinnabar-soft); }
.c2-line-py { display:block; font-size:12px; color:var(--ink-faint); margin-top:2px; }
.c2-wre-head { display:flex; flex-direction:column; gap:3px; margin-bottom:8px; padding-bottom:9px; border-bottom:1px dashed var(--line); }
.c2-wre-head .kicker { font-size:11px; color:var(--ink-faint); }
.c2-wre-head b { font-size:20px; color:var(--ink); }
.c2-wre-form { display:grid; gap:9px; }
.c2-wre-row { display:grid; gap:4px; }
.c2-wre-row label { font-size:11.5px; font-weight:600; color:var(--ink-soft); }
.c2-wre-row input, .c2-wre-row textarea { width:100%; box-sizing:border-box; padding:7px 9px; font-size:13px; line-height:1.5; border:1px solid var(--line); border-radius:var(--radius-sm); background:#fff; color:var(--ink); resize:vertical; }
.c2-wre-imgprev { display:flex; align-items:center; justify-content:center; height:78px; background:var(--paper); border:1px dashed var(--line); border-radius:var(--radius-sm); overflow:hidden; font-size:11.5px; color:var(--ink-faint); }
.c2-wre-imgprev img { max-width:100%; max-height:100%; object-fit:contain; }
.c2-wre-filehint { font-size:11px; color:var(--ink-faint); }
.c2-wre-file { font-size:11px; width:100%; }
.c2-wre-acts { display:flex; flex-direction:column; gap:6px; margin-top:12px; padding-top:10px; border-top:1px dashed var(--line); }
.c2-teach-top { display:flex; align-items:center; gap:10px; flex-wrap:wrap; background:var(--card); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); padding:10px 14px; margin-bottom:14px; }
.c2-teach-name { font-size:16px; font-weight:700; }
.c2-teach-pos { font-size:12px; color:var(--ink-faint); }
.c2-teach-top .sp { flex:1; }
.c2-teach-body { display:grid; grid-template-columns:minmax(0,1fr) 260px; gap:14px; align-items:start; }
.c2-teach-stage { background:var(--card); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); padding:22px; min-height:420px; }
.c2-teach-res { background:var(--card); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); padding:12px; max-height:76vh; overflow:auto; }
@media (max-width:1000px) { .c2-teach-body { grid-template-columns:1fr; } .c2-teach-res { max-height:none; } }


.c2-vw-top { display:flex; align-items:center; gap:16px; flex-wrap:wrap; background:var(--card); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); padding:12px 16px; margin-bottom:14px; }
.c2-vw-cover { width:96px; height:62px; flex:none; background:var(--paper); border:1px solid var(--line); border-radius:6px; overflow:hidden; position:relative; }
.c2-vw-cover .c2-vw-cover-in { width:720px; transform-origin:0 0; }
.c2-vw-head { flex:1; min-width:220px; }
.c2-vw-head h1 { margin:0 0 6px; font-size:20px; font-weight:700; }
.c2-vw-stat { display:inline-flex; align-items:center; gap:6px; flex-wrap:wrap; font-size:12px; color:var(--ink-soft); background:var(--paper); border:1px solid var(--line); border-radius:20px; padding:4px 12px; }
.c2-vw-stat span { color:var(--ink); }
.c2-vw-acts { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.c2-vw-go { background:#2f6bff !important; border-color:#2f6bff !important; color:#fff !important; font-weight:700; }
.c2-vw-body { display:grid; grid-template-columns:190px minmax(0,1fr); gap:14px; align-items:start; }
.c2-vw-side { background:var(--card); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); padding:10px; max-height:74vh; overflow:auto; display:grid; gap:10px; }
.c2-vw-th { position:relative; border:2px solid transparent; border-radius:var(--radius-sm); padding:6px 6px 4px; cursor:pointer; background:var(--paper); }
.c2-vw-th.on { border-color:#2f6bff; background:#f2f7ff; }
.c2-vw-th .no { position:absolute; left:-2px; top:-2px; font-size:11px; color:var(--ink-faint); background:var(--card); border:1px solid var(--line); border-radius:0 0 6px 0; padding:1px 5px; }
.c2-vw-th .tp { font-size:11px; color:var(--ink-soft); text-align:center; margin-top:4px; }
.c2-vw-main { min-width:0; }
.c2-vw-canvas { background:#fff; border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); padding:26px; min-height:430px; }
.c2-vw-foot { display:flex; align-items:center; justify-content:center; gap:14px; margin-top:12px; }
.c2-vw-no { font-size:13px; color:var(--ink-soft); }
.c2-vw-more { display:grid; gap:8px; margin-top:12px; }
@media (max-width:960px) { .c2-vw-body { grid-template-columns:1fr; } .c2-vw-side { max-height:220px; grid-auto-flow:column; grid-auto-columns:150px; } }
.c2-word-card { background:var(--card); border:1px solid var(--line); border-radius:var(--radius); padding:18px 20px; }
.c2-word-top { display:flex; align-items:center; justify-content:center; gap:14px; margin-bottom:12px; }
.c2-word-nav { font-size:12.5px; padding:4px 12px; border:1px solid var(--line); border-radius:18px; background:var(--paper); color:var(--ink-soft); cursor:pointer; }
.c2-word-pos { font-size:12.5px; color:var(--ink-soft); }
.c2-word-main { display:grid; grid-template-columns:minmax(0,1fr) 230px; gap:20px; align-items:center; }
.c2-word-left { display:flex; flex-direction:column; align-items:center; gap:10px; }
.c2-word-py { display:flex; gap:16px; justify-content:center; flex-wrap:wrap; min-height:26px; }
.c2-word-py-i { font-size:20px; color:var(--ink); min-width:34px; text-align:center; }
.c2-word-py-i.on { color:#e8842a; font-weight:700; }
.c2-word-py-i.pickable { cursor:pointer; }
.c2-word-grid { display:flex; gap:0; }
.c2-word-cell { width:86px; height:86px; display:flex; align-items:center; justify-content:center; font-family:var(--font-serif); font-size:52px; color:var(--ink); border:1px solid #d9d3c8; background-image:linear-gradient(to right,transparent 49.5%,#e5ded1 49.5%,#e5ded1 50.5%,transparent 50.5%),linear-gradient(to bottom,transparent 49.5%,#e5ded1 49.5%,#e5ded1 50.5%,transparent 50.5%); }
.c2-word-cell.on { color:#e8842a; background-color:#fff7ed; }
.c2-word-cell.pickable { cursor:pointer; }
.c2-word-en { font-size:17px; color:var(--ink-soft); }
.c2-word-say { width:48px; height:48px; border-radius:50%; border:none; background:#2f6bff; color:#fff; font-size:11px; cursor:pointer; }
.c2-word-img { height:190px; display:flex; align-items:center; justify-content:center; background:var(--paper); border:1px solid var(--line); border-radius:var(--radius-sm); overflow:hidden; }
.c2-word-img img { max-width:100%; max-height:100%; object-fit:contain; }
.c2-word-img-empty { font-size:12px; color:var(--ink-faint); }
.c2-word-edit { margin-top:16px; background:#fff8ee; border:1px solid #f0d9ae; border-radius:var(--radius-sm); padding:12px 14px; display:grid; gap:9px; }
.c2-word-edit-h { font-size:13px; font-weight:700; color:#a5651d; }
.c2-word-edit-row { display:grid; grid-template-columns:88px 1fr; gap:8px; align-items:center; }
.c2-word-edit-row label { font-size:12px; color:var(--ink-soft); }
.c2-word-edit-row input { width:100%; box-sizing:border-box; padding:6px 9px; font-size:13px; border:1px solid var(--line); border-radius:var(--radius-sm); background:#fff; color:var(--ink); }
.c2-word-edit-acts { display:flex; gap:8px; justify-content:flex-end; }
.c2-word-phrases { margin-top:18px; border-top:1px dashed var(--line); padding-top:12px; }
.c2-word-ph-h { display:flex; align-items:center; gap:10px; margin-bottom:10px; }
.c2-word-ph-h b { font-size:14px; }
.c2-word-ph-add { font-size:11.5px; padding:3px 10px; border:1px solid var(--line); border-radius:16px; background:var(--paper); color:var(--ink-soft); cursor:pointer; }
.c2-word-ph-list { display:grid; grid-template-columns:repeat(auto-fill,minmax(190px,1fr)); gap:10px; }
.c2-word-ph-card { position:relative; background:var(--paper); border:1px solid var(--line); border-radius:var(--radius-sm); padding:10px 12px 32px; }
.c2-word-ph-py { font-size:12px; color:#e8842a; }
.c2-word-ph-zh { font-size:17px; margin-top:2px; }
.c2-word-ph-en { font-size:12px; color:var(--ink-soft); margin-top:2px; }
.c2-word-ph-say, .c2-word-ph-edit, .c2-word-ph-del { position:absolute; bottom:7px; font-size:11px; padding:2px 7px; border:1px solid var(--line); border-radius:12px; background:#fff; color:var(--ink-soft); cursor:pointer; }
.c2-word-ph-say { right:8px; background:#2f6bff; color:#fff; border-color:#2f6bff; }
.c2-word-ph-edit { right:52px; }
.c2-word-ph-del { left:8px; }
.c2-word-ph-editor { display:grid; gap:5px; }
.c2-word-ph-editor input { width:100%; box-sizing:border-box; padding:5px 8px; font-size:12px; border:1px solid var(--line); border-radius:var(--radius-sm); }
@media (max-width:860px) { .c2-word-main { grid-template-columns:1fr; } }
.c2-chapter { position:relative; min-height:400px; border-radius:var(--radius); overflow:hidden; display:flex; flex-direction:column; justify-content:center; align-items:center; text-align:center; padding:44px 56px; }
.c2-chapter-art { position:absolute; inset:0; background:repeating-linear-gradient(58deg,rgba(255,255,255,.09) 0 2px,transparent 2px 14px); pointer-events:none; }
.c2-chapter-cover { background:linear-gradient(135deg,#eaf3ff 0%,#d9e9fb 48%,#f4f9ff 100%); color:var(--ink); }
.c2-cover-py { position:relative; font-size:24px; letter-spacing:.28em; color:var(--ink); }
.c2-cover-zh { position:relative; font-family:var(--font-serif); font-size:54px; margin-top:12px; }
.c2-cover-en { position:relative; font-size:16px; color:var(--ink-soft); margin-top:14px; }
.c2-chapter-part { background:linear-gradient(120deg,#1f8f9e 0%,#2bb3a3 45%,#cfe6e8 100%); color:#fff; }
.c2-chapter-no, .c2-chapter-zh, .c2-chapter-en { position:relative; z-index:1; }
.c2-chapter-no { font-size:34px; font-weight:800; letter-spacing:.08em; }
.c2-chapter-zh { font-size:40px; font-weight:600; margin-top:26px; }
.c2-chapter-en { font-size:19px; margin-top:8px; opacity:.92; }
.c2-live-wrap { background:var(--card); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); padding:18px 22px; }
.c2-live-head { display:flex; align-items:center; gap:10px; border-bottom:1px solid var(--line); padding-bottom:12px; }
.c2-live-head h2 { margin:0; font-size:18px; }
.c2-live-head .sp { flex:1; }
.c2-live-banks { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin:16px 0; }
.c2-live-lbl { font-size:12.5px; color:var(--ink-soft); font-weight:600; }
.c2-live-bank { font-size:12.5px; padding:5px 14px; border:1px solid var(--line); border-radius:18px; background:var(--paper); color:var(--ink-soft); cursor:pointer; }
.c2-live-bank.on { background:#2f6bff; border-color:#2f6bff; color:#fff; font-weight:700; }
.c2-live-bank.add { border-style:dashed; }
.c2-live-card { background:var(--paper); border:1px solid var(--line); border-radius:var(--radius); padding:26px; text-align:center; }
.c2-live-wait { font-size:17px; font-weight:600; margin-bottom:20px; }
.c2-live-join { display:flex; align-items:center; justify-content:center; gap:28px; flex-wrap:wrap; }
.c2-live-qr { width:160px; height:160px; display:flex; align-items:center; justify-content:center; background:#fff; border:1px solid var(--line); border-radius:6px; }
.c2-live-qr svg { width:150px; height:150px; }
.c2-live-qr-empty { font-size:12px; color:var(--ink-faint); }
.c2-live-code { text-align:left; }
.c2-live-code span { font-size:12px; color:var(--ink-soft); }
.c2-live-code b { display:block; font-size:34px; letter-spacing:.12em; margin:4px 0 10px; }
.c2-live-code p { font-size:12px; color:var(--ink-faint); margin:0 0 10px; max-width:230px; line-height:1.6; }
.c2-live-tip { font-size:12px; color:var(--ink-faint); margin:20px 0 0; }
.c2-live-foot { display:flex; justify-content:center; margin-top:18px; }
.c2-live-foot .c2-vw-go { padding:9px 34px; font-size:15px; }
