:root {
  --bg: #FFF9EE;
  --bg-dot: #F2E4CB;
  --card: #FFFFFF;
  --card-soft: #FFF4DF;
  --ink: #3A2D28;
  --ink-soft: #7A655A;
  --pink: #FF6B8B;
  --pink-dark: #DF4B6D;
  --mint: #38C9A4;
  --mint-dark: #219E7E;
  --honey: #FFC857;
  --honey-dark: #DC9C1B;
  --lavender: #9B7BFF;
  --lavender-dark: #7453DE;
  --sky: #5BB8FF;
  --danger: #FF5964;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --border: 3px solid var(--ink);
  --shadow-pop: 0 4px 0 var(--ink);
  --shadow-sm: 0 3px 0 var(--ink);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
  margin: 0;
  font-family: 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', sans-serif;
  color: var(--ink);
  background-color: var(--bg);
  background-image: radial-gradient(var(--bg-dot) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
  min-height: 100vh;
  line-height: 1.55;
}

button, input, select, textarea { font-family: inherit; color: var(--ink); }
.hidden { display: none !important; }
.muted { color: var(--ink-soft); font-size: 0.92rem; }

.app-shell {
  max-width: 1040px;
  margin: 0 auto;
  padding: 12px 14px 48px;
}
.app-shell.projector-wide {
  max-width: 1040px;
}

/* 頂部列 */
.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--card);
  border: var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop);
  padding: 10px 14px;
  margin-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-badge {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--honey);
  border: 2.5px solid var(--ink);
  display: grid;
  place-items: center;
}
.brand-title { font-weight: 900; font-size: 1.15rem; letter-spacing: 0.02em; }
.top-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.quick-switcher { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.quick-squad-dropdown { position: relative; display: inline-flex; }
.quick-squad-popover {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 148px;
  padding: 6px;
  background: var(--card);
  border: 2.5px solid var(--ink);
  border-radius: 14px;
  box-shadow: var(--shadow-pop);
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 60;
}
.quick-squad-popover.open { display: flex; }
.quick-squad-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 7px 10px;
  border: 2px solid transparent;
  border-radius: 10px;
  background: transparent;
  font-weight: 800;
  font-size: 0.86rem;
  cursor: pointer;
  text-align: left;
  transition: background 0.12s, border-color 0.12s;
}
.quick-squad-option:hover { background: var(--card-soft); border-color: rgba(58, 45, 40, 0.25); }
.quick-squad-option.is-active { background: #FFE0E7; border-color: var(--ink); color: var(--pink-dark); }
.quick-squad-check { font-weight: 900; }

/* 膠囊與按鈕 */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--card-soft);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
}
.pill-mint { background: #D7F8ED; }
.pill-honey { background: #FFF0BE; }
.pill-pink { background: #FFE0E7; }
.pill-lavender { background: #EDE5FF; }
.pill-sky { background: #DDF0FF; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 15px;
  border-radius: 14px;
  border: 2.5px solid var(--ink);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  font-weight: 800;
  font-size: 0.94rem;
  cursor: pointer;
  transition: transform 0.08s ease;
}
.btn:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.btn:disabled, .btn-disabled { opacity: 0.55; cursor: not-allowed; }
.btn-sm { padding: 6px 11px; font-size: 0.84rem; border-radius: 11px; }
.btn-primary { background: var(--pink); color: #FFF; }
.btn-mint { background: var(--mint); color: #FFF; }
.btn-honey { background: var(--honey); color: var(--ink); }
.btn-lavender { background: var(--lavender); color: #FFF; }
.btn-sky { background: var(--sky); color: #FFF; }
.btn-pink { background: #FFE0E7; }
.btn-danger { background: var(--danger); color: #FFF; }
.btn-soft { background: var(--card-soft); }

.input-field, .input-sm, .answer-textarea {
  width: 100%;
  border: 2.5px solid var(--ink);
  border-radius: 12px;
  padding: 9px 12px;
  background: #FFFDF8;
  font-size: 0.96rem;
}
.input-sm { width: auto; padding: 6px 10px; font-size: 0.86rem; font-weight: 700; }
.answer-textarea { resize: vertical; line-height: 1.65; }
.field-label { display: flex; flex-direction: column; gap: 5px; font-weight: 700; font-size: 0.9rem; }

/* 卡片與首頁 */
.card-box, .hero-card, .squad-banner-card, .step-content-card, .pad-discuss-panel,
.pad-submitted-card, .pad-present-card, .pad-settle-card, .proj-toolbar, .proj-feed-card {
  background: var(--card);
  border: var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop);
  padding: 16px;
}
.hero-card { padding: 24px; }
.hero-badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.hero-title { margin: 4px 0 10px; font-size: 1.75rem; font-weight: 900; }
.hero-desc { margin: 0 0 18px; color: var(--ink-soft); max-width: 72ch; }
.landing-wrap { display: flex; flex-direction: column; gap: 16px; }
.landing-mode-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.mode-card {
  background: var(--card);
  border: var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mode-card.sandbox { background: #F5EEFF; }
.mode-card.live { background: #FFFDF8; }
.mode-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mode-card-tag { font-size: 0.8rem; font-weight: 900; color: var(--ink-soft); }
.mode-card h2 { margin: 0; font-size: 1.15rem; font-weight: 900; }
.mode-card p { margin: 0; font-size: 0.93rem; color: var(--ink-soft); }
.mode-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 4px; }
.form-row-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sandbox-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 18px;
  background: #F5EEFF;
  border: var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop);
}
.sandbox-strip-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}

/* 首頁公告與常用連結（仿墨卷編輯室公佈欄風格） */
.ann-editorial-surface {
  padding: 16px 20px;
  background: var(--card);
  border: var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop);
}
.ann-editorial-surface.is-collapsed .ann-editorial-grid { display: none; }
.ann-masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 2px dashed rgba(58, 45, 40, 0.16);
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.ann-editorial-surface.is-collapsed .ann-masthead {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.ann-masthead-left { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.ann-masthead-title { margin: 0; font-size: 1.15rem; font-weight: 900; color: var(--ink); line-height: 1.25; }
.ann-masthead-sub { font-size: 0.82rem; color: var(--ink-soft); font-weight: 800; }
.ann-masthead-actions { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ann-editorial-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 2px 8px;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-color: rgba(58, 45, 40, 0.28) transparent;
  scrollbar-width: thin;
}
.ann-editorial-col {
  flex: 0 0 min(296px, calc(100% - 14px));
  width: min(296px, calc(100% - 14px));
  max-height: 210px;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 18px;
  border-right: 2px dashed rgba(58, 45, 40, 0.15);
  scroll-snap-align: start;
}
.ann-editorial-col:last-child { border-right: none; padding-right: 0; }
.ann-col-head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ann-seal-tag {
  font-size: 0.72rem;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 999px;
  background: #E2F8F1;
  border: 1.5px solid var(--ink);
  color: var(--mint-dark);
  flex-shrink: 0;
}
.ann-seal-tag.is-pinned {
  background: #FFF1C9;
  color: #9C6700;
}
.ann-col-title {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 900;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ann-col-time { font-size: 0.75rem; color: var(--ink-soft); margin-left: auto; white-space: nowrap; flex-shrink: 0; }
.ann-col-body {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  gap: 6px;
  padding-right: 4px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
}
.ann-note-box {
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.45;
  padding: 7px 10px;
  border-radius: 10px;
  background: #F6FBF9;
  border-left: 3px solid var(--mint);
  flex-shrink: 0;
}
.ann-index-list { display: flex; flex-direction: column; gap: 3px; }
.ann-index-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 700;
  min-width: 0;
  transition: background 0.15s, color 0.15s;
}
.ann-index-item:hover { background: #FFF4DF; color: var(--pink-dark); }
.ann-index-ico {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: #E2F8F1;
  color: var(--mint-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ann-editorial-col.is-pinned .ann-index-ico { background: #FFF1C9; color: #9C6700; }
.ann-index-ico svg { width: 14px; height: 14px; display: block; }
.ann-index-label { line-height: 1.35; overflow-wrap: anywhere; }
.ann-index-arr { margin-left: auto; font-size: 0.75rem; color: var(--pink-dark); flex-shrink: 0; opacity: 0.8; }
.ann-empty { color: var(--ink-soft); font-size: 0.9rem; padding: 8px 0; }
.announcement-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  margin-top: 4px;
  padding-top: 6px;
  border-top: 1.5px dashed rgba(58, 45, 40, 0.14);
  flex-shrink: 0;
}
.ann-action-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 2px solid var(--ink);
  background: var(--card);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}
.ann-action-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.ann-action-btn.pinned-active { background: var(--honey); }
.ann-action-btn.danger { background: #FFE6E8; color: var(--danger); }
.ann-modal-form { display: flex; flex-direction: column; gap: 12px; }
.ann-pin-check { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; cursor: pointer; }
.ann-pin-check input { width: 18px; height: 18px; margin: 0; }
.ann-links-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 4px; }
.announcement-link-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 10px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: #FFFDF8;
  margin-bottom: 8px;
}
.announcement-link-row-fields { flex: 1; display: grid; grid-template-columns: 1fr 1.3fr; gap: 8px; min-width: 0; }
.ann-row-btns { display: inline-flex; gap: 4px; flex-shrink: 0; }

/* 頂部 15% 緊湊魔王戰況列 */
.boss-compact-bar {
  position: relative;
  overflow: hidden;
  border: var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop);
  background: linear-gradient(135deg, #2D223C 0%, #4A3548 100%);
  color: #FFF;
  padding: 10px 16px;
  margin-bottom: 14px;
}
.raid-bg-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.boss-compact-inner { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; }
.boss-mini-avatar { width: 76px; height: 64px; flex: 0 0 76px; }
.boss-compact-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.boss-compact-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.boss-name-badge { font-weight: 900; font-size: 1.05rem; color: #FFE896; }
.hp-track {
  position: relative;
  height: 22px;
  background: rgba(0, 0, 0, 0.42);
  border: 2px solid #FFF8E7;
  border-radius: 999px;
  overflow: hidden;
}
.hp-fill {
  height: 100%;
  background: linear-gradient(90deg, #FF6B8B, #FFC857);
  transition: width 0.35s ease;
}
.hp-fill.rage { background: linear-gradient(90deg, #D90429, #9D4EDD); }
.hp-text {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 900;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}
.event-ticker-line {
  font-size: 0.86rem;
  font-weight: 700;
  color: #FFF5D6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 講義題目渲染區（高對比護眼白紙區） */
.step-content-card { margin-bottom: 14px; background: #FFFFFF; }
.step-head-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 10px; }
.step-title-h2 { margin: 0; font-size: 1.25rem; font-weight: 900; }
.step-html-prompt { font-size: 1rem; color: var(--ink); }
.step-html-prompt p { margin: 0 0 4px; }
.step-html-prompt p:last-child { margin-bottom: 0; }
.step-html-prompt details.hint {
  margin: 10px 0;
  padding: 10px 14px;
  background: #FFFBF0;
  border: 2px dashed #C7A876;
  border-radius: 12px;
}
.step-html-prompt details.hint summary { cursor: pointer; font-weight: 800; color: #7C5220; }
.handout-table-wrap { overflow-x: auto; margin: 4px 0 10px; }
.handout-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.handout-table th, .handout-table td { border: 2px solid var(--ink); padding: 9px 11px; vertical-align: top; }
.handout-table th { background: var(--card-soft); font-weight: 900; text-align: left; }
.inline-blank-input {
  width: 110px;
  border: 2px solid var(--pink-dark);
  border-radius: 8px;
  padding: 3px 7px;
  background: #FFF7FA;
  font-weight: 800;
}
.blank-slot { border-bottom: 2px solid var(--ink); padding: 0 6px; font-weight: 800; color: var(--pink-dark); }
.blank-reveal { background: #D7F8ED; padding: 1px 8px; border-radius: 6px; font-weight: 800; }
.blank-click-btn {
  border-top: none;
  border-left: none;
  border-right: none;
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  transition: transform 0.1s ease, background 0.15s ease;
}
.blank-click-btn.blank-slot { background: #FFF7DB; border-radius: 6px 6px 0 0; }
.blank-click-btn:hover { transform: translateY(-1px); filter: brightness(0.97); }
.qa-prompt-box.is-clickable { cursor: pointer; transition: background 0.15s ease; }
.qa-prompt-box.is-clickable:hover { background: #F1FAF6; }
.qa-click-hint { display: inline-block; margin-top: 4px; font-size: 0.78rem; font-weight: 800; color: #268C68; }
.qa-rubric-reveal.is-clickable { cursor: pointer; transition: filter 0.15s ease; }
.qa-rubric-reveal.is-clickable:hover { filter: brightness(0.98); }
.qa-collapse-hint { font-size: 0.78rem; color: #2D7A5E; opacity: 0.85; }
.handout-qa-list { display: flex; flex-direction: column; gap: 18px; margin-top: 14px; }
.handout-qa-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  border: 2px solid #D5C8B8;
  border-radius: 14px;
  background: #FFFDFA;
  box-shadow: 0 2px 6px rgba(58, 45, 40, 0.06);
}
.handout-qa-item .qa-prompt-box { margin-top: 0; }
.qa-num-badge {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #2DB689;
  color: #FFF;
  font-size: 0.82rem;
  font-weight: 900;
  margin-right: 4px;
}
.qa-inline-excerpt { padding: 8px 12px; background: var(--card-soft); border-radius: 10px; font-size: 0.92rem; }
.mcq-pick-btn {
  text-align: left;
  padding: 8px 12px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: #FFFDF8;
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 700;
  cursor: pointer;
}
.mcq-pick-btn.is-picked { background: #DCFCE7; border-color: var(--mint-dark); font-weight: 900; }
.mcq-opt-chip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.mcq-voters-row { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.mcq-voter-pill {
  padding: 1px 8px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: var(--honey);
  font-size: 0.78rem;
  font-weight: 900;
}
.mcq-preview-box.is-clickable { cursor: pointer; }
.teacher-write-area {
  margin-top: 10px;
  min-height: 170px;
  border: 1.5px dashed #D5CAB4;
  border-radius: 12px;
  background: #FFFEFA;
}
.item-action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}
.qa-group-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}
@media (max-width: 780px) {
  .qa-group-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 500px) {
  .qa-group-cards { grid-template-columns: 1fr; }
}
.qa-group-card {
  background: #FFFDF8;
  border: 2px solid #D8CEB8;
  border-radius: 12px;
  padding: 7px 9px;
  display: flex;
  flex-direction: column;
}
.qa-group-card.has-ans { border-color: var(--ink); background: #FFFFFF; }
.qa-group-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  font-size: 0.88rem;
}
.qa-group-card-body {
  flex: 1 1 auto;
  font-size: 0.94rem;
  line-height: 1.5;
  white-space: pre-wrap;
}
.qa-prompt-box {
  background: #FAF8F5;
  border-left: 4px solid #6DD3AF;
  padding: 10px 14px;
  border-radius: 0 12px 12px 0;
  margin-top: 10px;
}
.qa-line { margin: 4px 0; font-weight: 700; font-size: 1.02rem; }
.qa-rubric-reveal {
  margin-top: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #EAF9F2;
  border: 2px solid #78CFAF;
  color: #1F5E45;
  font-weight: 700;
  line-height: 1.55;
}
.mcq-opt-chip.is-correct {
  background: #EAF9F2;
  border: 2px solid #78CFAF;
  color: #1F5E45;
  border-radius: 8px;
  padding: 4px 8px;
  font-weight: 900;
}
.proj-answers-hidden-bar {
  padding: 16px;
  text-align: center;
  border: 2px dashed var(--ink-soft);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
  font-weight: 800;
  color: var(--ink-soft);
}
.mcq-preview-box { margin-top: 10px; padding: 10px 12px; background: var(--card-soft); border-radius: 12px; }
.mcq-q-title { font-weight: 800; margin-bottom: 6px; }
.mcq-opt-list { display: grid; gap: 4px; font-size: 0.92rem; }

/* 小組平板 */
.pad-wrap, .proj-wrap, .admin-wrap { display: flex; flex-direction: column; gap: 14px; padding-bottom: 84px; }
.squad-banner-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.squad-title-block { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.squad-name-h2 { margin: 0; font-size: 1.3rem; font-weight: 900; }
.squad-pets-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.squad-pet-chip {
  position: relative;
  border: 2.5px solid var(--ink);
  border-radius: 16px;
  padding: 8px 6px 10px;
  background: var(--card-soft);
  text-align: center;
  transition: transform 0.12s ease, background 0.15s ease;
}
.squad-pet-chip.is-holder { background: #FFF2C6; box-shadow: 0 0 0 3px var(--honey); }
.squad-pet-chip.is-stamped, .squad-pet-chip.is-mvp { background: #DCFCE7; border-color: var(--mint-dark); }
.squad-pet-chip.is-absent { opacity: 0.45; filter: grayscale(0.6); }
.squad-pet-chip.is-clickable { cursor: pointer; }
.squad-pet-chip.is-clickable:hover { transform: translateY(-2px); }
.squad-pet-svg { width: 78px; height: 74px; margin: 0 auto; }
.squad-pet-stu { font-weight: 900; font-size: 0.92rem; }
.squad-pet-meta { font-size: 0.76rem; color: var(--ink-soft); font-weight: 700; }
.holder-crown, .absent-tag, .stamp-seal {
  position: absolute;
  top: 5px;
  left: 6px;
  font-size: 0.7rem;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: var(--honey);
}
.stamp-seal { left: auto; right: 6px; background: var(--mint); color: #FFF; }
.stamp-seal.mvp { background: var(--pink); }
.absent-tag { background: #E5E7EB; }

.holder-spotlight {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 8px 12px;
  border-radius: 12px;
  background: #FFF9E6;
  border: 2px dashed var(--honey-dark);
}
.holder-mini-svg { width: 46px; height: 44px; flex: 0 0 46px; }

.pad-lock-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #F4F7FA;
  border: var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
}
.lock-icon { font-size: 2rem; }
.pad-lock-banner h3, .pad-discuss-panel h3, .pad-present-card h3, .pad-settle-card h3 { margin: 0 0 4px; }
.discuss-head, .discuss-foot, .present-top-row, .section-head-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.discuss-foot { margin-top: 10px; }
.stamp-hint-row, .mvp-quick-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.submitted-preview {
  margin-top: 10px;
  padding: 12px;
  border-radius: 12px;
  background: #FAF8F5;
  border: 2px solid #E5DEC9;
  white-space: pre-wrap;
  font-size: 0.98rem;
}
.ai-feedback-box, .idiom-badge-box {
  margin-top: 8px;
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 0.92rem;
}
.ai-feedback-box { background: #E8F5FF; border: 2px solid #93C5FD; }
.idiom-badge-box { background: #FFF2CC; border: 2px solid var(--honey-dark); }
.receipt-mini-list { margin-top: 12px; padding-top: 10px; border-top: 2px dashed #DDD; }
.receipt-row { display: flex; justify-content: space-between; padding: 4px 0; font-weight: 700; font-size: 0.92rem; }

/* 投影端 */
.proj-toolbar { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; }
.toolbar-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.phase-stepper { display: flex; flex-wrap: wrap; gap: 6px; }
.phase-step-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 12px;
  border: 2px solid var(--ink);
  background: var(--card-soft);
  font-weight: 800;
  cursor: pointer;
}
.phase-step-btn.active { background: var(--pink); color: #FFF; box-shadow: 0 2px 0 var(--ink); }
.toolbar-selects, .timer-btn-group, .gm-global-group { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

.projector-paper-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.projector-ink-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 20;
  touch-action: none;
  pointer-events: none;
}
.proj-squad-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px;
}
.proj-squad-card {
  background: #FFFFFF;
  border: var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.proj-squad-card.gold-quote { box-shadow: 0 0 0 4px var(--honey), var(--shadow-pop); }
.proj-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.proj-group-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-weight: 900; font-size: 1.08rem; }
.proj-holder-line { font-size: 0.82rem; color: var(--ink-soft); font-weight: 700; }
.proj-pets-strip { display: flex; align-items: center; gap: 2px; }
.proj-pet-mini { position: relative; width: 38px; height: 36px; }
.proj-pet-mini.absent { opacity: 0.35; filter: grayscale(0.8); }
.mini-crown { position: absolute; top: -6px; left: 9px; font-size: 0.7rem; }

.proj-answer-paper {
  flex: 1;
  background: #FCFAF5;
  border: 2px solid #E5DEC9;
  border-radius: 14px;
  padding: 12px;
  min-height: 92px;
}
.proj-answer-text { margin: 0; font-size: 1.04rem; white-space: pre-wrap; line-height: 1.65; }
.proj-blanks-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.proj-waiting-text { margin: 0; color: var(--ink-soft); font-style: italic; }
.proj-ai-note { margin-top: 8px; font-size: 0.86rem; background: #E8F5FF; padding: 6px 9px; border-radius: 8px; }
.proj-idiom-note { margin-top: 6px; font-size: 0.86rem; background: #FFF2CC; padding: 6px 9px; border-radius: 8px; font-weight: 700; }

.proj-card-actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.score-dot-row { display: flex; align-items: center; gap: 4px; }
.score-label { font-size: 0.8rem; font-weight: 800; color: var(--ink-soft); margin-right: 2px; }
.score-dot-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--card-soft);
  font-weight: 900;
  cursor: pointer;
}
.score-dot-btn.active { background: var(--mint); color: #FFF; }
.gm-btn-row { display: flex; flex-wrap: wrap; gap: 4px; }
.feed-list { display: flex; flex-direction: column; gap: 4px; font-size: 0.9rem; }
.proj-feed-card h4 { margin: 0 0 6px; }
.proj-top-arena {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.85fr);
  gap: 10px;
  align-items: stretch;
  margin-bottom: 10px;
}
.proj-top-arena .boss-compact-bar { margin-bottom: 0; height: 100%; }
.proj-feed-aside {
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
  min-height: 0;
  background: linear-gradient(135deg, #2D223C 0%, #4A3548 100%);
  color: #FFFDF6;
  border: var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop);
}
.proj-feed-aside h4 { margin: 0 0 6px; color: #FFE896; font-size: 0.95rem; }
.proj-feed-aside .feed-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  gap: 5px;
  font-size: 0.84rem;
  color: rgba(255, 253, 246, 0.92);
}
.proj-feed-aside .feed-item {
  padding: 3px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 248, 231, 0.16);
}
@media (max-width: 900px) {
  .proj-top-arena { grid-template-columns: 1fr; }
}

/* 後台管理 */
.admin-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.synergy-preview-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
.synergy-preview-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--card-soft);
}
.roster-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr)); gap: 10px; }
.roster-item-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  padding: 8px 10px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: #FFFDF9;
}
.roster-item-row.absent { opacity: 0.65; background: #F3F4F6; }
.roster-pet-mini { width: 44px; height: 42px; flex: 0 0 44px; }
.roster-info { flex: 1 1 140px; min-width: 0; display: flex; flex-direction: column; }
.absent-check-label { display: inline-flex; align-items: center; gap: 4px; font-size: 0.82rem; font-weight: 700; cursor: pointer; }
.import-box { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.boards-list { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.board-item-card {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: var(--card-soft);
}
.board-item-card h3, .board-item-card p { margin: 2px 0; }
.board-item-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.settings-grid { display: flex; flex-direction: column; gap: 12px; margin-top: 10px; }
.reward-mini-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.settings-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

/* 結算預覽與彈窗 */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(34, 24, 20, 0.55);
  display: none;
  place-items: center;
  padding: 16px;
  z-index: 120;
}
.modal-backdrop.open { display: grid; }
.modal-panel {
  width: min(560px, 100%);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--card);
  border: var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop);
  padding: 18px;
}
.modal-panel.is-wide {
  width: min(780px, 100%);
}
.modal-head { display: flex; justify-content: space-between; align-items: center; font-weight: 900; font-size: 1.1rem; margin-bottom: 10px; flex-shrink: 0; }
#modalBody { flex: 1; min-height: 0; overflow-y: auto; padding-right: 4px; }
.modal-msg { margin: 6px 0; }
.modal-footer { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1.5px dashed #E5DAC4; flex-shrink: 0; }
.settle-preview-list { display: flex; flex-direction: column; gap: 8px; }
.settle-preview-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 9px 12px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--card-soft);
}
.settle-preview-row > div:first-child { min-width: 0; flex: 1; }
.settle-preview-nums {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
  white-space: nowrap;
  gap: 2px;
  font-weight: 900;
  font-size: 0.88rem;
  color: var(--mint-dark);
}

/* 浮動教師畫筆工具箱 */
.floating-ink-dock {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 45;
  display: none;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.floating-ink-dock.open { display: flex; }
.ink-dock-panel {
  width: 196px;
  background: var(--card);
  border: var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-pop);
  padding: 10px;
}
.ink-dock-panel.collapsed { display: none; }
.ink-panel-top { display: flex; gap: 6px; margin-bottom: 8px; }
.ink-power-btn {
  flex: 1;
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: 5px 8px;
  font-weight: 800;
  background: var(--card-soft);
  cursor: pointer;
}
.ink-power-btn.active { background: var(--pink); color: #FFF; }
.ink-collapse-btn {
  width: 30px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: var(--card-soft);
  font-weight: 900;
  cursor: pointer;
}
.ink-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.ink-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; justify-items: center; }
.ink-tool-btn, .ink-width-btn {
  border: 2px solid var(--ink);
  border-radius: 9px;
  padding: 4px 6px;
  font-size: 0.8rem;
  font-weight: 800;
  background: #FFFDF8;
  cursor: pointer;
}
.ink-tool-btn.active, .ink-width-btn.active { background: var(--honey); }
.ink-tool-btn.danger { background: #FFE0E7; }
.ink-divider { height: 1px; background: #E5DEC9; margin: 7px 0; }
.ink-swatch {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2.5px solid var(--ink);
  cursor: pointer;
}
.ink-swatch.active { transform: scale(1.15); box-shadow: 0 0 0 2px #FFF, 0 0 0 4px var(--ink); }
.ink-icon-fab {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: var(--border);
  background: var(--card);
  box-shadow: var(--shadow-pop);
  font-weight: 900;
  font-size: 1rem;
  cursor: pointer;
}
.ink-icon-fab.active { background: var(--pink); color: #FFF; }
.ink-icon-color-dot {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--ink);
}
.empty-box { padding: 16px; text-align: center; color: var(--ink-soft); font-weight: 700; }

/* 墨卷極簡畫筆快速列 */
.ink-quick-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: var(--card);
  border: var(--border);
  border-radius: 999px;
  padding: 8px 6px;
  box-shadow: var(--shadow-pop);
}
.ink-quick-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--card-soft);
  font-weight: 900;
  font-size: 0.85rem;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.ink-quick-btn.active { background: var(--honey); transform: scale(1.08); }
.ink-quick-color { width: 26px; height: 26px; }
.ink-quick-color.active { box-shadow: 0 0 0 2px #FFF, 0 0 0 4px var(--ink); }

/* 狂熱光環、魔王震動與飄浮傷害 */
.boss-compact-bar.fever-active {
  box-shadow: 0 0 0 4px var(--honey), var(--shadow-pop);
}
.boss-compact-bar.is-casting {
  border-color: #FF4D6D;
}
.pill-danger { background: #FFE0E7; color: #B91C1C; }
.boss-float-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 15;
  overflow: visible;
}
.boss-float-dmg {
  position: absolute;
  left: 95px;
  top: 28px;
  font-size: 1.35rem;
  font-weight: 900;
  color: #FFE066;
  text-shadow: 0 2px 0 #3A2D28, 0 0 8px rgba(0,0,0,0.6);
  animation: floatUpDmg 1.35s ease-out forwards;
}
.boss-float-dmg.is-crit { font-size: 1.65rem; color: #FF6B8B; }
.boss-float-dmg.is-aoe { color: #FCA5A5; }
@keyframes floatUpDmg {
  0% { opacity: 1; transform: translateY(0) scale(0.9); }
  25% { opacity: 1; transform: translateY(-12px) scale(1.12); }
  100% { opacity: 0; transform: translateY(-48px) scale(1); }
}
.boss-hit-shake { animation: bossShake 0.42s ease; }
@keyframes bossShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px) rotate(-4deg); filter: brightness(1.5); }
  40% { transform: translateX(8px) rotate(4deg); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
}

/* 戰意墨水即時榜與主場轉盤 */
.ink-rank-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}
.ink-rank-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1.5px solid rgba(255, 248, 231, 0.55);
  font-size: 0.78rem;
  color: #FFFDF6;
  white-space: nowrap;
}
.ink-rank-pill.is-spot { background: rgba(255, 107, 139, 0.45); border-color: #FFE066; }
.proj-squad-card.is-spotlight { box-shadow: 0 0 0 4px var(--pink), var(--shadow-pop); }

/* 成語翻牌、轉盤、頒獎典禮台 */
.idiom-flip-card {
  background: linear-gradient(135deg, #FFF7E0, #FFE8B5);
  border: var(--border);
  border-radius: 18px;
  padding: 18px;
  text-align: center;
  box-shadow: var(--shadow-pop);
}
.idiom-flip-title { font-size: 1.7rem; font-weight: 900; color: var(--ink); }
.idiom-flip-gloss { margin: 8px 0; color: var(--ink-soft); font-weight: 700; }
.idiom-flip-effect {
  display: inline-block;
  margin-top: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--card);
  border: 2px solid var(--ink);
  font-weight: 900;
  color: var(--pink-dark);
}

.roulette-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-top: 12px; }
.roulette-item {
  border: var(--border);
  border-radius: 14px;
  padding: 12px 8px;
  text-align: center;
  background: var(--card-soft);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.roulette-item.active { background: var(--honey); transform: scale(1.06); box-shadow: var(--shadow-pop); }

.podium-stage {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  align-items: end;
  margin: 8px 0 12px;
}
.podium-col {
  border: var(--border);
  border-radius: 16px;
  padding: 10px 6px;
  text-align: center;
  background: var(--card-soft);
}
.podium-col.rank-1 { background: #FFF0BE; padding-top: 18px; order: 2; }
.podium-col.rank-2 { background: #F1F5F9; order: 1; }
.podium-col.rank-3 { background: #FFEDD5; order: 3; }
.podium-medal { font-size: 1.5rem; }
.podium-name { font-weight: 900; font-size: 0.98rem; }
.podium-ink { font-size: 0.82rem; font-weight: 800; color: var(--pink-dark); }
.podium-honors { display: flex; flex-direction: column; gap: 6px; }
.honor-pill {
  padding: 6px 10px;
  border-radius: 10px;
  background: #E8F5FF;
  border: 2px solid #93C5FD;
  font-weight: 800;
  font-size: 0.88rem;
}

@media (max-width: 680px) {
  .form-row-grid { grid-template-columns: 1fr; }
  .boss-compact-inner { flex-direction: column; align-items: flex-start; }
  .proj-squad-grid { grid-template-columns: 1fr; }
}

/* 極簡 5 鍵投影遙控條與破壁舉手橫幅 */
.proj-clicker-bar {
  position: sticky;
  top: 8px;
  z-index: 45;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  background: var(--card);
  border: var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop);
  padding: 8px 12px;
}
.clicker-left, .clicker-right { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.clicker-left .btn, .clicker-right .btn { white-space: nowrap; }
.proj-clicker-bar .btn-sm { padding: 5px 8px; font-size: 0.82rem; }
.clicker-main-btn { font-weight: 900; }
.step-nav-group { display: inline-flex; align-items: center; gap: 4px; }
.step-quick-select { max-width: 220px; text-overflow: ellipsis; }

.challenge-alert-bar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #FFF0BE;
  border: var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-pop);
  padding: 10px 14px;
}
.challenge-alert-item {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 0.98rem;
}
.challenge-btns { display: flex; gap: 6px; }
.more-toggle-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }

/* 平板互動：字數提醒、成語寶箱三選一、匿名金句投票、破壁舉手 */
.submitted-badges-row { display: flex; flex-wrap: wrap; gap: 6px; }
.char-counter-line { margin-top: 4px; font-size: 0.84rem; color: var(--ink-soft); font-weight: 700; }

.idiom-chest-panel {
  background: linear-gradient(135deg, #FFF7DB, #FFE8A3);
  border: var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop);
  padding: 16px;
}
.chest-title-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.chest-title-row h3 { margin: 0; }
.chest-cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 10px; }
.chest-pick-card {
  border: var(--border);
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow-sm);
  padding: 12px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform 0.1s ease;
}
.chest-pick-card:hover { transform: translateY(-2px); }
.chest-pick-card.selected { background: #FFE0E7; box-shadow: 0 0 0 3px var(--pink); }
.chest-card-name { font-size: 1.12rem; font-weight: 900; color: var(--ink); }
.chest-card-effect { font-size: 0.88rem; font-weight: 800; color: var(--pink-dark); }
.chest-card-gloss { font-size: 0.8rem; color: var(--ink-soft); }
.discuss-head-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chest-mystery-card {
  border: var(--border);
  border-radius: 16px;
  background: linear-gradient(155deg, #FFF3CC, #FFD97D);
  box-shadow: var(--shadow-sm);
  padding: 18px 12px;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 122px;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.chest-mystery-card:hover:not(:disabled) {
  transform: translateY(-3px) rotate(-0.8deg);
  box-shadow: var(--shadow-pop);
}
.chest-mystery-card.is-locked-out {
  background: #F1EFEA;
  opacity: 0.55;
  cursor: not-allowed;
}
.mystery-seal {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2.5px solid var(--ink);
  background: #FFFDF8;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  font-weight: 900;
}
.mystery-title { font-size: 1.14rem; font-weight: 900; color: var(--ink); }
.mystery-sub { font-size: 0.8rem; font-weight: 700; color: var(--ink-soft); }
.chest-target-picker { margin-top: 12px; padding-top: 10px; border-top: 2px dashed var(--honey-dark); }
.target-btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

.peer-vote-panel {
  background: #F4EEFF;
  border: var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop);
  padding: 16px;
}
.peer-vote-panel h3 { margin: 0; }
.peer-vote-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-top: 10px; }
.peer-vote-card {
  background: var(--card);
  border: 2.5px solid var(--ink);
  border-radius: 14px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.peer-vote-card.voted { background: #DCFCE7; border-color: var(--mint-dark); }
.peer-vote-label { font-weight: 900; font-size: 0.9rem; color: var(--lavender-dark); }
.peer-vote-text { margin: 0; font-size: 0.92rem; flex: 1; white-space: pre-wrap; }
.challenge-raise-row { margin-top: 12px; display: flex; justify-content: flex-end; }

/* 學生選組與組員彈窗 */
.squad-picker-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.entry-roster-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.entry-roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 8px;
  max-height: 330px;
  overflow-y: auto;
  padding: 2px;
}
.entry-roster-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: #FFFDF8;
  cursor: pointer;
  text-align: left;
  transition: transform 0.1s ease, background 0.15s ease;
}
.entry-roster-pill:hover { transform: translateY(-1px); }
.entry-roster-pill.selected { background: #DCFCE7; border-color: var(--mint-dark); box-shadow: 0 2px 0 var(--mint-dark); }
.entry-roster-pill.other-group { background: #F4EFE6; opacity: 0.88; }
.entry-pet-mini { width: 34px; height: 34px; flex: 0 0 34px; }
.entry-stu-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.entry-stu-meta strong { font-size: 0.88rem; }
.entry-stu-meta small { font-size: 0.74rem; color: var(--ink-soft); font-weight: 700; }
.entry-badge {
  font-size: 0.72rem;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: var(--card);
  white-space: nowrap;
}
.entry-roster-pill.selected .entry-badge { background: var(--mint); color: #FFF; }
.entry-roster-pill.other-group .entry-badge { background: var(--honey); }
.entry-error-line { min-height: 20px; font-weight: 800; color: #B91C1C; font-size: 0.88rem; }

/* 抽組／抽人雙模式轉盤 */
.roulette-mode-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.roulette-squad-btn { cursor: pointer; font-family: inherit; transition: transform 0.1s ease; }
.roulette-squad-btn:hover:not(:disabled) { transform: translateY(-2px); background: #FFF2C6; }
.roulette-student-card { align-items: center; padding: 10px 6px; }
.roulette-pet-mini { width: 46px; height: 44px; margin: 0 auto; }
.roulette-winner-card {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
  border: var(--border);
  border-radius: 16px;
  background: linear-gradient(135deg, #FFF7DB, #FFE8A3);
  box-shadow: var(--shadow-sm);
}
.winner-main { display: flex; align-items: center; gap: 12px; }
.winner-main h3 { margin: 0 0 4px; }
.winner-main p { margin: 0; font-size: 0.86rem; }
.winner-pet-big { width: 64px; height: 60px; flex: 0 0 64px; }
.winner-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* 墨卷完整講義功能移植樣式：離線心智圖、逐題微按鈕、空白對照徽章、底部浮動翻頁列、QR 與排行榜 */
.handout-banner-row { justify-content: space-between; gap: 8px; }
.step-title-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.table-top-tools { display: flex; justify-content: flex-end; margin: -4px 0 4px; }
.qa-stem-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.qa-stem-row .qa-prompt-box, .qa-stem-row .mcq-q-title { flex: 1; min-width: 0; }
.item-micro-tools { display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; padding-top: 2px; }
.qa-icon-btn {
  min-width: 28px;
  height: 28px;
  padding: 0 7px;
  border-radius: 8px;
  border: 2px solid var(--ink);
  background: var(--card);
  font-weight: 900;
  font-size: 0.78rem;
  cursor: pointer;
}
.qa-icon-btn.active { background: #2DB689; color: #FFF; }
.qa-icon-btn.off { background: #E5E7EB; color: #4B5563; }

.blank-ov-wrap { position: relative; display: inline-flex; align-items: center; gap: 3px; }
.blank-ov-badge {
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: var(--honey);
  font-size: 0.72rem;
  font-weight: 900;
  cursor: pointer;
  padding: 0 5px;
}
.ans-editable { outline: 2px dashed var(--pink); background: #FFF5F7; padding: 2px 6px; border-radius: 6px; min-width: 48px; display: inline-block; }
.edit-answers-banner, .sync-notice-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: var(--border);
  border-radius: var(--radius-md);
  background: #FFF0BE;
  box-shadow: var(--shadow-sm);
}
.item-closed-note {
  margin-top: 6px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1.5px dashed #CBD5E1;
  background: #F8FAFC;
  color: var(--ink-soft);
  font-weight: 800;
  font-size: 0.88rem;
}

.qa-card-ai-note {
  margin-top: 6px;
  padding: 5px 8px;
  border-radius: 8px;
  background: #E8F5FF;
  font-size: 0.82rem;
  font-weight: 700;
}
.qa-card-idiom-note {
  margin-top: 4px;
  padding: 4px 8px;
  border-radius: 8px;
  background: #FFF2CC;
  font-size: 0.8rem;
  font-weight: 800;
}
.item-feedback-box {
  margin-top: 6px;
  padding: 7px 10px;
  border-radius: 10px;
  background: #E8F5FF;
  border: 1.5px solid #93C5FD;
  font-size: 0.86rem;
  font-weight: 700;
}
.qa-inline-grade { display: flex; align-items: center; gap: 4px; margin-top: 6px; padding-top: 6px; border-top: 1px dashed #E5DEC9; }
.score-dot-mini {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  background: var(--card-soft);
  font-size: 0.75rem;
  font-weight: 900;
  cursor: pointer;
}
.score-dot-mini.active { background: var(--mint); color: #FFF; }
.score-dot-mini.praise { width: auto; padding: 0 6px; border-radius: 999px; background: var(--honey); }
.score-dot-mini.is-picked { background: var(--mint); color: #FFF; }
.score-dot-mini.is-picked { background: var(--mint); color: #FFF; }
.qa-grade-stepper {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 6px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #FFFDF9;
}
.score-step-btn {
  border: none;
  background: transparent;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
  padding: 1px 5px;
  cursor: pointer;
  color: var(--ink);
}
.score-step-btn:hover { color: var(--mint); }
.qa-grade-value {
  min-width: 1.1em;
  text-align: center;
  font-weight: 900;
  font-size: 0.86rem;
}

.handout-ref-table-wrap { margin-top: 12px; }
.handout-ref-table { width: 100%; border-collapse: collapse; background: #FAF8F5; border: 2px solid #E5DEC9; border-radius: 12px; }
.handout-ref-table td { padding: 10px 12px; border-bottom: 1px solid #E5DEC9; font-size: 0.92rem; }
.handout-ref-body { margin-top: 4px; color: var(--ink-soft); white-space: pre-line; line-height: 1.65; }

/* 離線心智圖 */
.mindmap-card {
  margin: 10px 0;
  padding: 14px;
  border: var(--border);
  border-radius: var(--radius-md);
  background: #FFFEFA;
}
.mindmap-root-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--honey);
  font-weight: 900;
  margin-bottom: 12px;
}
.mindmap-branches-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.mindmap-branch { border: 2px solid var(--ink); border-radius: 14px; overflow: hidden; background: var(--card); }
.mindmap-branch-head { padding: 8px 10px; font-weight: 900; color: #FFF; display: flex; align-items: center; gap: 6px; border-bottom: 2px solid var(--ink); }
.mm-ord { background: rgba(0, 0, 0, 0.25); padding: 1px 6px; border-radius: 6px; font-size: 0.82rem; }
.mindmap-leaves { padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; }
.mindmap-leaf { font-size: 0.88rem; }
.mm-leaf-name { font-weight: 900; display: block; margin-bottom: 3px; }
.mm-chip-row { display: flex; flex-wrap: wrap; gap: 4px; }
.mm-chip { background: var(--card-soft); border: 1.5px solid #D8CEB8; border-radius: 999px; padding: 1px 8px; font-size: 0.78rem; font-weight: 700; }
.mindmap-locked-box { display: flex; align-items: center; gap: 10px; padding: 12px; border: 2px dashed var(--ink-soft); border-radius: 14px; background: #F4F7FA; margin: 10px 0; }
.mindmap-locked-icon { font-size: 1.6rem; }

/* 底部浮動翻頁膠囊 */
.floating-page-nav {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 52;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: var(--border);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: var(--shadow-pop);
}
body.has-modal-open .floating-page-nav,
body.has-modal-open .floating-ink-dock {
  display: none !important;
}
.page-picker { position: relative; }
.page-picker-menu {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: min(320px, 86vw);
  max-height: 280px;
  overflow-y: auto;
  background: var(--card);
  border: var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-pop);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 65;
}
.page-picker-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 10px;
  border: none;
  background: transparent;
  font-family: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}
.page-picker-item:hover, .page-picker-item.active { background: var(--honey); }
.page-picker-no { width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #FFF; font-size: 0.75rem; display: grid; place-items: center; flex-shrink: 0; }
.page-picker-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* QR 與排行榜 */
.qr-share-box { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.qr-share-img { width: 200px; height: 200px; border: var(--border); border-radius: 14px; background: #FFF; padding: 6px; }
.leaderboard-list { display: flex; flex-direction: column; gap: 8px; }
.leaderboard-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 2px solid var(--ink); border-radius: 14px; background: var(--card-soft); }
.leaderboard-row.rank-1 { background: #FFF2C6; }
.lb-rank { font-size: 1.35rem; font-weight: 900; min-width: 32px; text-align: center; }
.lb-pets { display: flex; align-items: center; gap: 2px; }
.lb-pet-mini { width: 34px; height: 34px; }
.lb-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lb-dmg { font-size: 1.15rem; font-weight: 900; color: var(--pink-dark); }
.passage-reader-box { max-height: 60vh; overflow-y: auto; line-height: 1.85; font-size: 1.05rem; padding: 12px; background: #FFFEFA; border: 2px solid #E5DEC9; border-radius: 12px; }


/* 阿墨書院結算頒獎舞台（墨卷夫子場景 ＋ 可愛墨寵登台） */
.award-overlay {
  position: fixed;
  inset: 0;
  z-index: 950;
  background: rgba(31, 26, 23, 0.72);
  backdrop-filter: blur(4px);
  overflow: hidden;
}
.award-scene {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1400px;
  height: 787.5px;
  transform-origin: center center;
  transform: translate(-50%, -50%) scale(1);
  overflow: hidden;
  background: #F3EAD8;
  border: 4px double #1F1A17;
  border-radius: 18px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
  color: #1F1A17;
}
.award-bg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.award-content {
  position: absolute;
  inset: 0;
  padding: 18px 26px 14px;
  display: flex;
  flex-direction: column;
  z-index: 3;
}
.award-head { display: flex; align-items: flex-start; gap: 14px; }
.award-vertical-title {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-size: 46px;
  font-weight: 900;
  letter-spacing: 0.2em;
  line-height: 1;
  background: rgba(243, 234, 216, 0.8);
  padding: 8px 6px;
  border-radius: 6px;
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.5s cubic-bezier(0.2, 1.4, 0.4, 1);
}
.award-vertical-title.in { opacity: 1; transform: scale(1); }
.award-head-right { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.award-sub {
  font-size: 15px;
  font-weight: 800;
  color: #5C5145;
  letter-spacing: 0.08em;
  background: rgba(243, 234, 216, 0.84);
  padding: 5px 12px;
  border-radius: 8px;
}
.award-seal {
  width: 72px;
  height: 72px;
  border: 4px solid #A62B1F;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #A62B1F;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.08;
  text-align: center;
  background: rgba(243, 234, 216, 0.9);
  opacity: 0;
  transform: scale(1.7) rotate(-12deg);
  transition: all 0.5s cubic-bezier(0.2, 1.7, 0.4, 1);
}
.award-seal.in { opacity: 1; transform: scale(1) rotate(-4deg); }
.award-stage {
  margin-top: auto;
  display: grid;
  grid-template-columns: 260px 1fr;
  align-items: end;
  gap: 14px;
}
.award-sage-slot { position: relative; display: flex; align-items: flex-end; justify-content: center; }
.award-sage {
  transform: translateX(-340px);
  opacity: 0;
  transition: transform 1.6s cubic-bezier(0.25, 0.8, 0.3, 1), opacity 0.8s ease;
}
.award-sage.in { transform: translateX(0); opacity: 1; }
.award-sage.walking .award-bob { animation: awardBob 0.3s steps(2, end) infinite; }
@keyframes awardBob { 0% { transform: translateY(0); } 50% { transform: translateY(-6px); } 100% { transform: translateY(0); } }
.award-bubble {
  position: absolute;
  left: 6px;
  top: -54px;
  background: #FBF6EA;
  border: 3px solid #1F1A17;
  border-radius: 14px;
  padding: 9px 18px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.06em;
  white-space: nowrap;
  opacity: 0;
  transform: scale(0.5) translateY(8px);
  transform-origin: right bottom;
  transition: all 0.65s cubic-bezier(0.2, 1.5, 0.4, 1);
}
.award-bubble.in { opacity: 1; transform: scale(1) translateY(0); }
.award-bubble::after {
  content: "";
  position: absolute;
  right: 32px;
  bottom: -13px;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 13px solid #1F1A17;
}
.award-bubble::before {
  content: "";
  position: absolute;
  right: 35px;
  bottom: -8px;
  z-index: 1;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 9px solid #FBF6EA;
}
.award-right-col { min-width: 0; }
.award-podium { display: flex; align-items: flex-end; gap: 16px; height: 420px; }
.award-pod {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  transform: translateY(180px);
  transition: opacity 0.55s ease, transform 0.95s cubic-bezier(0.2, 1.05, 0.35, 1);
}
.award-pod.in { opacity: 1; transform: translateY(0); }
.award-pets-row {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 6px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.award-pet-pod {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  animation: awardPetHop 2.2s ease-in-out infinite;
}
.award-pet-pod:nth-child(2n) { animation-delay: 0.35s; }
@keyframes awardPetHop { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.award-pet-svg { width: 58px; height: 58px; }
.award-pet-svg svg { width: 100%; height: 100%; }
.award-pet-name {
  font-size: 12px;
  font-weight: 900;
  background: #FFFDF7;
  border: 2px solid #1F1A17;
  border-radius: 999px;
  padding: 1px 7px;
  margin-top: -5px;
}
.award-mvp-tag {
  position: absolute;
  top: -15px;
  font-size: 11px;
  font-weight: 900;
  background: #FFE066;
  border: 1.5px solid #1F1A17;
  border-radius: 999px;
  padding: 0 5px;
  white-space: nowrap;
}
.award-plate {
  background: #FBF6EA;
  border: 2.5px solid #1F1A17;
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  padding: 10px 14px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.award-plate.win { border-color: #A62B1F; background: #FFF8EA; }
.award-plate-top { font-size: 13px; font-weight: 900; letter-spacing: 0.14em; color: #6E6357; }
.award-plate.win .award-plate-top { color: #A62B1F; }
.award-plate-name { font-size: 21px; font-weight: 900; margin-top: 2px; }
.award-plate-num { font-size: 38px; font-weight: 900; line-height: 1.05; color: #A62B1F; font-variant-numeric: tabular-nums; }
.award-plate-num i { font-size: 14px; font-style: normal; color: #6E6357; margin-left: 3px; }
.award-block {
  border: 2.5px solid #1F1A17;
  border-top: none;
  border-radius: 0 0 6px 6px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 10px;
  font-size: 26px;
  font-weight: 900;
  color: #FBF6EA;
  position: relative;
  overflow: hidden;
}
.award-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.12) 0 1px, transparent 1px 8px);
}
.award-pod.p1 .award-block { height: 148px; background: #B8873A; border-color: #7A5820; }
.award-pod.p2 .award-block { height: 104px; background: #8F949A; border-color: #5C6066; }
.award-pod.p3 .award-block { height: 72px; background: #8C5A32; border-color: #5E3A1D; }
.award-shine {
  position: absolute;
  top: -30%;
  left: -70%;
  width: 44%;
  height: 170%;
  background: rgba(255, 255, 255, 0.62);
  transform: rotate(14deg);
  opacity: 0;
}
.award-pod.p1.in .award-shine { animation: awardSweep 1.1s ease-in-out 0.35s 2; }
@keyframes awardSweep { 0% { left: -70%; opacity: 0; } 25% { opacity: 1; } 100% { left: 120%; opacity: 0; } }
.award-fourth {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 900;
  color: #5C5145;
  background: rgba(243, 234, 216, 0.85);
  padding: 4px 12px;
  border-radius: 8px;
  display: inline-block;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.4s ease;
}
.award-fourth.in { opacity: 1; transform: translateY(0); }
.award-fourth b { color: #1F1A17; }
.award-note {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13.5px;
  font-weight: 800;
  color: #5C5145;
  background: rgba(243, 234, 216, 0.86);
  padding: 5px 12px;
  border-radius: 8px;
}
.award-note b { color: #1F1A17; }
.award-actions {
  position: absolute;
  right: 26px;
  bottom: 56px;
  display: flex;
  gap: 8px;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.award-actions.in { opacity: 1; }
.award-btn {
  padding: 7px 16px;
  border-radius: 999px;
  border: 2.5px solid #1F1A17;
  background: #FBF6EA;
  color: #1F1A17;
  font-size: 13.5px;
  font-weight: 900;
  cursor: pointer;
}
.award-btn.primary { background: #A62B1F; color: #FFFDF7; border-color: #1F1A17; }
.award-confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 30; }
.award-confetti i {
  position: absolute;
  top: -24px;
  width: 9px;
  height: 14px;
  display: block;
  border-radius: 2px;
  animation-name: awardFall;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
}
@keyframes awardFall { to { transform: translateY(820px) rotate(560deg); } }
.award-flash { position: absolute; inset: 0; background: #FFFDF3; opacity: 0; pointer-events: none; z-index: 40; }
.award-flash.go { animation: awardFlash 0.55s ease-out; }
@keyframes awardFlash { 0% { opacity: 0; } 12% { opacity: 0.85; } 100% { opacity: 0; } }
.award-sway { transform-origin: 50% 0; animation: awardSway 3.6s ease-in-out infinite; }
@keyframes awardSway { 0%, 100% { transform: rotate(-2.4deg); } 50% { transform: rotate(2.4deg); } }

/* 讚賞爆擊按鈕即時反應與上浮提示 */
.score-dot-mini.praise.is-praised {
  background: linear-gradient(135deg, #FF9E44, #FF5E6C);
  color: #FFFDF7;
  border-color: #1F1A17;
  box-shadow: 0 0 0 2px #FFE066;
}
.praise-float-pop {
  position: fixed;
  transform: translate(-50%, -100%);
  z-index: 1200;
  pointer-events: none;
  padding: 5px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #FF7A45, #E0314B);
  color: #FFFDF7;
  border: 2px solid #1F1A17;
  font-size: 0.88rem;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.22);
  animation: praiseFloatUp 1.1s cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
}
@keyframes praiseFloatUp {
  0% { opacity: 0; transform: translate(-50%, -60%) scale(0.75); }
  20% { opacity: 1; transform: translate(-50%, -115%) scale(1.06); }
  100% { opacity: 0; transform: translate(-50%, -190%) scale(0.95); }
}

/* 首頁各課入口面板 */
.trial-arena-box {
  padding: 16px 20px;
  border: var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop);
  background: var(--card);
}
.trial-arena-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.trial-arena-head h2 { margin: 0; font-size: 1.15rem; font-weight: 900; }
.trial-boards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.trial-board-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  border: 2.5px solid var(--ink);
  border-radius: 16px;
  background: #FFFDF8;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.trial-board-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 0 var(--ink);
}
.trial-board-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}
.trial-board-card h3 { margin: 0; font-size: 1.02rem; font-weight: 900; }
.trial-board-desc { margin: 0; font-size: 0.85rem; flex: 1; }
.trial-board-foot { margin-top: auto; padding-top: 4px; display: flex; }
.trial-board-foot .btn { width: 100%; justify-content: center; }

/* 墨韻課堂進度條與匿名押寶、3×3 文心盲盒盤 */
.classroom-badge-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: #FFF9EC;
  border: 2.5px solid var(--ink);
  border-radius: 14px;
}
.classroom-progress-fill {
  background: linear-gradient(90deg, #4DB6AC, #81C784);
}
.betting-panel {
  margin-top: 12px;
  padding: 14px 16px;
  border: 2.5px solid var(--ink);
  border-radius: 16px;
  background: #FFF7F9;
}
.bet-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.bet-choice-card {
  text-align: left;
  padding: 12px 14px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: #FFFFFF;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.bet-choice-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 0 var(--ink);
}
.bet-choice-card.is-picked {
  border-color: #D81B60;
  background: #FCE4EC;
  box-shadow: 0 3px 0 #D81B60;
}
.bet-choice-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.bet-choice-body {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink);
  white-space: pre-wrap;
  word-break: break-word;
}
.bb-picker-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.bb-group-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.blind-box-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.blind-box-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 92px;
  padding: 10px;
  border: 2.5px solid var(--ink);
  border-radius: 14px;
  text-align: center;
}
.blind-box-cell.is-closed {
  background: linear-gradient(135deg, #FFF3D6, #FFE0B2);
  cursor: pointer;
  box-shadow: 0 3px 0 var(--ink);
}
.blind-box-cell.is-closed:hover {
  transform: translateY(-2px);
}
.blind-box-cell.is-opened {
  background: #E8F5E9;
  border-style: dashed;
}
.bb-icon { font-size: 1.7rem; line-height: 1.1; }
.bb-num, .bb-label { font-weight: 700; font-size: 0.92rem; margin-top: 4px; }
.bb-hint, .bb-owner { font-size: 0.78rem; color: var(--muted); margin-top: 2px; }
.bb-footer-tools {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
}
.blank-compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
}
.blank-compare-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 10px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--card-soft);
}
.blank-compare-card strong {
  font-size: 0.8rem;
  color: var(--muted);
}
.blank-compare-card span {
  font-size: 0.96rem;
  font-weight: 800;
  word-break: break-word;
}

/* 行為徽章 */
.badge-btn-row {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  align-items: center;
}

.badge-btn-row .btn {
  padding: 2px 6px;
  font-size: 0.95rem;
  line-height: 1.2;
}

/* 投影台三鍵評分列：單列小晶片，不佔講義版面 */
.proj-grade-rail {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  margin: 8px 0 0;
  padding: 6px 8px;
  overflow-x: auto;
  border-radius: 12px;
  background: rgba(255, 253, 249, 0.85);
}

.grade-rail-label {
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: 900;
  color: #8C5A32;
}

.grade-rail-item {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #FFFDF9;
}

.grade-rail-name {
  font-weight: 900;
  font-size: 0.86rem;
  white-space: nowrap;
}

.grade-rail-contrib {
  font-size: 0.76rem;
  font-weight: 800;
  color: #8C5A32;
  white-space: nowrap;
}

.grade-rail-keys {
  display: inline-flex;
  gap: 3px;
}

.grade-rail-keys .score-dot-btn {
  padding: 1px 6px;
  font-size: 0.74rem;
  line-height: 1.5;
}

.grade-rail-item .js-praise-btn {
  padding: 1px 6px;
  font-size: 0.8rem;
}

/* 投影台緊湊化、平板極簡狀態列與畫筆讓位 */
.projector-wide .projector-paper-stage { padding-bottom: 64px; }
.proj-compact-bar { padding: 8px 14px; margin-bottom: 0; }
.proj-compact-bar .boss-mini-avatar { width: 48px; height: 44px; flex: 0 0 48px; font-size: 1.5rem; }
.proj-compact-bar .hp-track { height: 24px; }
.proj-compact-bar .hp-text { font-size: 0.78rem; line-height: 1; }
.proj-compact-details { margin-top: 4px; display: flex; flex-direction: column; gap: 4px; }
.proj-compact-details.is-collapsed { display: none; }
.proj-toggle-arena-btn { margin-left: auto; border: 1.5px solid rgba(255,248,231,0.45); background: rgba(255,255,255,0.12); color: #FFF8E7; border-radius: 999px; padding: 2px 9px; font-size: 0.75rem; font-weight: 800; cursor: pointer; }
.proj-toggle-arena-btn:hover { background: rgba(255,255,255,0.22); }

.pad-mini-status-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #2D223C 0%, #4A3548 100%);
  color: #FFFDF6;
  border: var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.pad-mini-left { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
.pad-mini-track {
  position: relative;
  width: 164px;
  height: 22px;
  background: rgba(0, 0, 0, 0.42);
  border: 1.5px solid #FFF8E7;
  border-radius: 999px;
  overflow: hidden;
}
.pad-mini-fill { height: 100%; background: linear-gradient(90deg, #FF6B8B, #FFC857); transition: width 0.35s ease; }
.pad-mini-pct { position: absolute; inset: 0; display: grid; place-items: center; font-size: 0.72rem; line-height: 1; font-weight: 900; text-shadow: 0 1px 2px rgba(0,0,0,0.8); }

.explore-unlock-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 14px;
  margin-bottom: 8px;
  background: linear-gradient(90deg, #FFF3B0, #FFE0E7);
  border: var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  font-weight: 900;
  color: var(--ink);
  animation: fadeSlideIn 0.25s ease;
}
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.bet-champion-spotlight {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #FFF5CC 0%, #FFE4EC 100%);
  border: var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.bet-champion-pet { width: 56px; height: 56px; flex-shrink: 0; animation: championBounce 1.1s ease infinite; }
@keyframes championBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.idiom-quiz-box {
  margin-top: 12px;
  padding: 12px 14px;
  background: #FFF9E8;
  border: 2px dashed var(--ink);
  border-radius: 14px;
}
.idiom-quiz-opts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px;
  margin-top: 8px;
}

@media (min-width: 900px) {
  .projector-wide .floating-ink-dock { right: 10px; bottom: 10px; }
  .projector-wide .step-content-card { padding-right: 18px; }
}

/* 墨寵陣型小劇場、利他成語英雄播報、差最後一組與黑馬逆襲 */
.hp-track.is-almost-done {
  border-color: #FFE066;
  animation: almostPulse 1s ease-in-out infinite;
}
@keyframes almostPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 224, 102, 0.7); }
  50% { box-shadow: 0 0 0 6px rgba(255, 224, 102, 0); }
}

.idiom-hero-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  margin-bottom: 8px;
  background: linear-gradient(90deg, #FFD166, #FF9F1C, #FFD166);
  color: var(--ink);
  border: var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-pop);
  font-weight: 900;
  font-size: 1.05rem;
  animation: fadeSlideIn 0.25s ease;
}

.squad-theater-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #FFF7DC 0%, #FFE8F0 100%);
  border: var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop);
  animation: fadeSlideIn 0.25s ease;
}
.theater-pets-stage { display: flex; align-items: flex-end; gap: 10px; }
.theater-pet-actor {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  animation: championBounce 0.9s ease infinite;
}
.theater-pet-actor svg { width: 46px; height: 46px; }
.theater-pet-actor span { font-size: 0.74rem; font-weight: 900; color: var(--ink); }
.theater-copy { flex: 1; min-width: 200px; }
.theater-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.theater-title { font-weight: 900; font-size: 1rem; color: var(--ink); }
.theater-line { font-size: 0.88rem; font-weight: 700; color: #5C4738; margin-top: 2px; }

.dark-horse-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.dark-horse-pill {
  padding: 4px 10px;
  border-radius: 999px;
  background: #FFFDF8;
  border: 2px solid var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--ink);
}

/* 投影台全螢幕《墨林遊歷棋盤》 */
.board-stage-wrap {
  background: linear-gradient(180deg, #FFFDF7 0%, #F7EFDD 100%);
  border: var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop);
  padding: 10px 12px;
  transition: box-shadow 0.35s ease, background 0.35s ease;
}
.board-stage-wrap.is-festival-lit {
  background: linear-gradient(180deg, #FFF9E6 0%, #FFEBD6 100%);
  box-shadow: 0 0 0 3px #FF9F1C, var(--shadow-pop);
}
.board-stage-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.board-stage-title-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.board-stage-title-block h2 { margin: 0; font-size: 1.15rem; font-weight: 900; }
.board-stage-sub { font-size: 0.84rem; }

.board-stage-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.5fr) minmax(260px, 1fr);
  gap: 12px;
  align-items: start;
}
@media (max-width: 1020px) {
  .board-stage-layout { grid-template-columns: 1fr; }
}

.board-grid-16 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(102px, auto);
  gap: 8px;
}
.board-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 6px 8px;
  border: 2.5px solid var(--ink);
  border-radius: 14px;
  background: #FFFFFF;
  box-shadow: 0 3px 0 rgba(58, 45, 40, 0.14);
  min-height: 102px;
  overflow: hidden;
}
.board-tile.has-tokens { box-shadow: 0 4px 0 rgba(58, 45, 40, 0.28); }
.tile-start { background: #E9F7EC; }
.tile-scene { background: #FFFDF8; }
.tile-tea { background: #E3F6EF; border-color: #2E7D6B; }
.tile-chest { background: #FFF5D6; border-color: #C77C1B; }
.tile-boost { background: #E6F3FF; border-color: #2E6F9E; }
.tile-festival { background: #FFE6EE; border-color: #C93B6B; }
.tile-goal { background: linear-gradient(135deg, #FFE89E, #FFD166); border-color: #8C5A12; }

.board-tile-head {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 800;
}
.board-tile-no {
  background: var(--ink);
  color: #FFF;
  border-radius: 999px;
  padding: 1px 6px;
  font-size: 0.68rem;
}
.board-tile-kind { color: #6B5B53; }
.board-tile-arrow { margin-left: auto; font-size: 0.95rem; font-weight: 900; color: #9E6B43; }

.board-tile-title {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 4px 0;
  font-weight: 900;
  font-size: 0.9rem;
  color: var(--ink);
}
.board-tile-icon { font-size: 1.05rem; }
.board-tile-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.board-tile-tokens {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: flex-end;
  min-height: 44px;
}
.board-token {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 2px 4px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: #FFFFFF;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.board-token:hover { transform: translateY(-2px); }
.board-token.is-selected {
  border-color: var(--pink);
  box-shadow: 0 0 0 2px rgba(235, 76, 118, 0.35);
  background: #FFF6F9;
}
.board-token.is-hopping { animation: tokenHop 0.32s ease infinite; }
@keyframes tokenHop {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
.board-token-pet svg { width: 34px; height: 34px; display: block; }
.board-token.is-compact .board-token-pet svg { width: 26px; height: 26px; }
.board-token-tag {
  font-size: 0.66rem;
  font-weight: 900;
  color: var(--ink);
  line-height: 1.1;
}
.board-token-crown {
  position: absolute;
  top: -10px;
  right: -6px;
  font-size: 0.85rem;
}

.board-side-panel { display: flex; flex-direction: column; gap: 10px; }
.board-side-card {
  background: #FFFFFF;
  border: var(--border);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  box-shadow: var(--shadow-sm);
}
.board-side-card h3 { margin: 0 0 8px; font-size: 0.98rem; font-weight: 900; }
.board-rank-list { display: flex; flex-direction: column; gap: 5px; }
.board-rank-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 5px 8px;
  border: 2px solid #E5DAC4;
  border-radius: 10px;
  background: #FFFDF9;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}
.board-rank-row.is-selected { border-color: var(--pink); background: #FFF2F6; }
.board-rank-no {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ink);
  color: #FFF;
  font-size: 0.72rem;
  font-weight: 900;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.board-rank-pet svg { width: 28px; height: 28px; display: block; flex-shrink: 0; }
.board-rank-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.board-rank-meta strong { font-size: 0.84rem; color: var(--ink); }
.board-rank-meta small { font-size: 0.72rem; color: #6B5B53; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board-rank-pts { display: flex; flex-direction: column; align-items: flex-end; flex-shrink: 0; }
.board-rank-pts strong { font-size: 0.82rem; color: var(--mint-dark); }
.board-rank-pts small { font-size: 0.68rem; color: #6B5B53; }

.board-focus-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px; margin-bottom: 6px; }
.board-focus-head h3 { margin: 0 0 4px; }
.board-focus-tile-info { padding: 6px 8px; background: #FFFBF0; border-radius: 10px; border: 1.5px dashed #D8C7A6; margin-bottom: 8px; }
.board-focus-tile-info p { margin: 3px 0 0; font-size: 0.8rem; }
.board-focus-members { display: flex; flex-wrap: wrap; gap: 6px; }
.board-focus-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px 6px;
  border: 1.5px solid #D8CEB8;
  border-radius: 10px;
  background: #FFFDF8;
  font-size: 0.72rem;
  font-weight: 800;
}
.board-focus-member.is-leader { border-color: var(--honey); background: #FFF6DA; }
.board-focus-member svg { width: 32px; height: 32px; }

/* 旗幟、最新戰報、平板行動鈕與骰子事件彈窗 */
.board-tile-flag {
  padding: 1px 6px;
  border-radius: 999px;
  background: #FFE5EC;
  border: 1.5px solid #D93860;
  color: #9C1B3B;
  font-size: 0.66rem;
  font-weight: 900;
  white-space: nowrap;
}
.board-last-roll-bar {
  margin-bottom: 8px;
  padding: 6px 12px;
  border-radius: 12px;
  background: #FFF6DA;
  border: 2px solid var(--ink);
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--ink);
}
.pad-mini-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.btn-pulse-glow { animation: almostPulse 1.1s ease-in-out infinite; }

.dice-stage-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 16px 12px;
  background: #FFFDF8;
  border: 2.5px dashed #D8C7A6;
  border-radius: 18px;
}
.dice-meta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.dice-cube-display {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  border: 3px solid var(--ink);
  background: linear-gradient(135deg, #FFF7DC, #FFE599);
  box-shadow: var(--shadow-pop);
  display: grid;
  place-items: center;
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--ink);
}
.dice-cube-display.dice-rolling {
  animation: diceShake 0.14s linear infinite;
  background: linear-gradient(135deg, #FFE0E7, #FFD166);
}
@keyframes diceShake {
  0% { transform: rotate(-8deg) scale(1.04); }
  50% { transform: rotate(8deg) scale(1.08); }
  100% { transform: rotate(-8deg) scale(1.04); }
}
.board-roll-result-pill {
  margin-bottom: 10px;
  padding: 7px 12px;
  border-radius: 12px;
  background: #E9F7EC;
  border: 2px solid #2E7D6B;
  font-weight: 900;
  color: #1B5447;
  text-align: center;
}
.board-event-card {
  padding: 14px 16px;
  border-radius: 16px;
  border: 2.5px solid var(--ink);
  background: #FFFDF8;
}
.board-event-title { font-size: 1.12rem; font-weight: 900; color: var(--ink); margin-bottom: 4px; }
.board-event-desc { margin: 0 0 12px; line-height: 1.55; font-size: 0.96rem; color: var(--ink); }
.board-choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }

/* 6 組大富翁領地插旗代表色與醒目色帶 */
.flag-g1, .token-g1 { --g-color: #E63963; --g-tint: #FFF0F4; }
.flag-g2, .token-g2 { --g-color: #2577B8; --g-tint: #EDF6FF; }
.flag-g3, .token-g3 { --g-color: #218C62; --g-tint: #EAFAF3; }
.flag-g4, .token-g4 { --g-color: #D97706; --g-tint: #FFF6E6; }
.flag-g5, .token-g5 { --g-color: #7C3AED; --g-tint: #F5F0FF; }
.flag-g6, .token-g6 { --g-color: #0F8B8D; --g-tint: #EBFAFA; }

.board-tile.has-flag {
  background: var(--g-tint, #FFF0F4);
  border: 3px solid var(--g-color, #E63963);
  box-shadow: 0 4px 0 rgba(58, 45, 40, 0.22);
}
.board-flag-banner {
  margin: -6px -8px 4px;
  padding: 3px 8px;
  background: var(--g-color, #E63963);
  color: #FFFFFF;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 4px;
}
.board-token[class*="token-g"] {
  border-color: var(--g-color, var(--ink));
}
.board-token[class*="token-g"] .board-token-tag {
  color: var(--g-color, var(--ink));
}

/* 教師講解階段：學生平板專注聽講鎖定畫面 */
.pad-focus-lock-screen {
  min-height: 62vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
  padding: 28px 20px;
  background: linear-gradient(160deg, #FFFDF7 0%, #FFF3DA 100%);
  border: 3px solid var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop);
}
.pad-focus-pets-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.pad-focus-pet-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  border-radius: 16px;
  border: 2px solid var(--ink);
  background: #FFFFFF;
}
.pad-focus-pet-item svg { width: 54px; height: 54px; }
.pad-focus-pet-item span { font-size: 0.82rem; font-weight: 900; color: var(--ink); }
.pad-focus-title {
  margin: 0;
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
  font-weight: 900;
  color: var(--ink);
}
.pad-focus-sub {
  margin: 0;
  max-width: 520px;
  font-size: 1.02rem;
  line-height: 1.6;
  font-weight: 700;
  color: #5C4738;
}
.pad-focus-meta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
