/* ============ screens：各屏幕布局 ============ */

/* ---- 首页 ---- */
.hero { text-align: center; padding: 18px 0 10px; position: relative; }
.hero-kana {
  position: absolute; left: 50%; top: -8px;
  transform: translateX(-50%);
  font-family: var(--kana-font);
  font-size: clamp(120px, 30vw, 190px);
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent-soft);
  opacity: 0.55;
  pointer-events: none;
  animation: heroFloat 7s ease-in-out infinite alternate;
  z-index: -1;
}
.hero-sun {
  width: 74px; aspect-ratio: 1; margin: 0 auto 4px;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 32%, var(--sun2), var(--sun1) 72%);
  box-shadow: 0 0 40px var(--sun1), 0 0 110px var(--accent-soft);
  cursor: pointer;
  transition: transform 0.2s ease;
}
.hero-sun:active { transform: scale(0.9); }
.hero-title {
  font-family: var(--kana-font);
  font-size: clamp(40px, 9vw, 58px);
  letter-spacing: 6px;
  background: linear-gradient(120deg, var(--ink) 30%, var(--accent) 60%, var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 18px var(--accent-soft));
}
.hero-sub { color: var(--sub); font-size: 13px; margin-top: 8px; letter-spacing: 1px; }
.hero-badges { display: flex; justify-content: center; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.badge {
  font-size: 12px; font-weight: 600;
  padding: 5px 12px; border-radius: 99px;
  background: var(--panel); border: 1px solid var(--panel-border);
  color: var(--sub);
}
.badge:first-child { color: var(--accent); border-color: var(--accent-soft); }

.daily-card {
  margin-top: 22px;
  background: var(--panel); border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 18px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}
.daily-head { display: flex; align-items: center; justify-content: space-between; }
.daily-head h2 { font-size: 17px; letter-spacing: 2px; }
.buff-tag {
  font-size: 11.5px; font-weight: 700; color: var(--gold);
  border: 1px solid var(--gold); border-radius: 99px; padding: 3px 10px;
  animation: buffPulse 1.8s ease-in-out infinite;
}
.daily-bars { display: grid; gap: 10px; margin-top: 14px; }
.daily-bar { display: grid; grid-template-columns: 74px 1fr 44px; align-items: center; gap: 10px; font-size: 12.5px; color: var(--sub); }
.daily-bar b { text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; }
.bar { height: 8px; background: rgba(255, 255, 255, 0.08); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent2), var(--accent)); transition: width 0.6s ease; }

.omikuji-btn {
  margin-top: 16px; width: 100%;
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px; border-radius: 14px;
  background: var(--panel-strong); border: 1px solid var(--panel-border);
  font-size: 14.5px; font-weight: 600;
  transition: transform 0.16s ease;
}
.omikuji-btn:active { transform: scale(0.97); }
.omikuji-btn.glow { border-color: var(--gold); box-shadow: 0 0 18px rgba(255, 215, 110, 0.2); animation: buffPulse 2.2s ease-in-out infinite; }
.omikuji-btn.done { opacity: 0.85; }
.omikuji-box { font-size: 24px; }

.mode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.mode-card {
  position: relative; text-align: left;
  display: flex; flex-direction: column; gap: 6px;
  padding: 18px 16px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--panel-border);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  overflow: hidden;
}
.mode-card::after {
  content: ''; position: absolute; right: -30px; top: -30px;
  width: 90px; height: 90px; border-radius: 50%;
  background: var(--accent-soft); filter: blur(30px);
  opacity: 0; transition: opacity 0.2s ease;
}
.mode-card:hover { transform: translateY(-3px); border-color: var(--accent-soft); box-shadow: var(--shadow); }
.mode-card:hover::after { opacity: 1; }
.mode-card:active { transform: scale(0.97); }
.mode-icon { font-size: 28px; }
.mode-name { font-size: 16.5px; font-weight: 700; letter-spacing: 1.5px; }
.mode-desc { font-size: 12px; color: var(--sub); line-height: 1.6; }
.mode-meta { font-size: 12px; color: var(--accent2); font-weight: 600; }
.mode-quest .mode-name { color: var(--accent); }
.mode-swift .mode-name { color: var(--accent2); }
.mode-match .mode-name { color: var(--gold); }
.mode-learn .mode-name { color: var(--ok); }

.stats-strip { margin-top: 16px; text-align: center; }
.stats-link {
  width: 100%; padding: 13px; border-radius: 14px;
  background: var(--panel); border: 1px dashed var(--panel-border);
  color: var(--sub); font-size: 13.5px; font-weight: 600;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.stats-link:hover { color: var(--accent); border-color: var(--accent); }

.proverb {
  margin-top: 26px; text-align: center;
  font-size: 12px; color: var(--sub); letter-spacing: 1px;
  opacity: 0.85;
}

/* ---- 章节标签 ---- */
.ch-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: none; }
.ch-tabs::-webkit-scrollbar { display: none; }
.ch-tab {
  flex: 0 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 9px 16px; border-radius: 14px;
  background: var(--panel); border: 1px solid var(--panel-border);
  font-size: 13.5px; font-weight: 700; letter-spacing: 1px;
  color: var(--sub);
  transition: all 0.16s ease;
}
.ch-tab small { font-size: 10.5px; font-weight: 500; opacity: 0.8; }
.ch-tab.on { color: var(--ink); border-color: var(--accent); box-shadow: 0 0 14px var(--accent-soft); background: var(--accent-soft); }
.ch-tab.locked { opacity: 0.55; }

/* ---- 冒险地图 ---- */
.ch-info { text-align: center; margin: 4px 0 18px; }
.ch-info h2 { font-family: var(--kana-font); font-size: 23px; letter-spacing: 3px; }
.ch-info p { color: var(--sub); font-size: 13px; margin-top: 5px; }
.ch-progress {
  display: inline-block; margin-top: 9px;
  font-size: 12px; font-weight: 700; color: var(--accent2);
  padding: 3px 12px; border-radius: 99px;
  background: var(--panel); border: 1px solid var(--panel-border);
}
.stage-path { display: flex; flex-direction: column; gap: 10px; position: relative; }
.stage-node {
  display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: 16px;
  background: var(--panel); border: 1px solid var(--panel-border);
  text-align: left;
  transition: transform 0.16s ease, border-color 0.16s ease;
}
.stage-node:not(.locked):hover { transform: translateY(-2px); border-color: var(--accent-soft); }
.stage-node:not(.locked):active { transform: scale(0.98); }
.stage-node.cleared { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.stage-lamp { font-size: 26px; text-align: center; }
.stage-node.cleared .stage-lamp { filter: drop-shadow(0 0 8px var(--accent)); }
.stage-name { font-size: 15px; font-weight: 700; letter-spacing: 1px; }
.stage-meta { display: block; font-size: 11.5px; color: var(--sub); margin-top: 3px; }
.stage-node .stars { font-size: 13px; }

/* ---- 关卡·学习卡 ---- */
.quest-top { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.quest-title { flex: 1; text-align: center; font-size: 17px; letter-spacing: 2px; }
.quest-tag { font-size: 12px; color: var(--sub); white-space: nowrap; }

.learn-card {
  background: var(--panel); border: 1px solid var(--panel-border);
  border-radius: 24px; padding: 30px 22px 24px;
  text-align: center;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}
.learn-script { font-size: 12px; color: var(--sub); letter-spacing: 2px; }
.learn-kana-row { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 8px; }
.learn-kana {
  font-family: var(--kana-font);
  font-size: clamp(84px, 22vw, 120px);
  line-height: 1.15;
  color: var(--ink);
  text-shadow: 0 0 34px var(--accent-soft);
}
.learn-romaji { font-size: 22px; font-weight: 700; color: var(--accent); letter-spacing: 2px; margin-top: 4px; }
.learn-origin { font-size: 12.5px; color: var(--gold); margin-top: 7px; }
.learn-memo { color: var(--sub); font-size: 14.5px; line-height: 1.9; margin: 14px auto 0; max-width: 420px; }
.learn-dots { display: flex; justify-content: center; gap: 7px; margin: 20px 0 6px; }
.learn-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); transition: all 0.2s ease; }
.learn-dots i.done { background: var(--accent2); }
.learn-dots i.on { background: var(--accent); transform: scale(1.35); box-shadow: 0 0 8px var(--accent); }
.learn-actions { display: flex; gap: 10px; justify-content: center; margin-top: 12px; }
.learn-actions .btn { min-width: 140px; }

/* ---- 关卡·答题 ---- */
.quiz-hud { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--sub); }
.q-combo { font-weight: 800; color: var(--accent2); }
.q-combo.hot { color: var(--accent); text-shadow: 0 0 12px var(--accent); animation: comboPulse 0.5s ease; }
.q-bar { height: 6px; background: rgba(255, 255, 255, 0.08); border-radius: 99px; overflow: hidden; margin: 10px 0 22px; }
.q-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent2)); border-radius: 99px; transition: width 0.4s ease; }

.q-prompt-label { text-align: center; font-size: 13px; color: var(--sub); letter-spacing: 2px; }
.q-prompt {
  font-family: var(--kana-font);
  text-align: center;
  font-size: clamp(64px, 17vw, 100px);
  line-height: 1.3;
  margin: 6px 0 10px;
  text-shadow: 0 0 30px var(--accent-soft);
}
.q-prompt.q-romaji { font-family: var(--ui-font); font-weight: 800; color: var(--accent2); letter-spacing: 4px; }
.q-prompt.q-listen {
  font-family: var(--ui-font);
  font-size: 54px; width: 108px; height: 108px; line-height: 1;
  display: grid; place-items: center; margin: 10px auto 16px;
  border-radius: 50%;
  background: var(--panel-strong); border: 1px solid var(--panel-border);
  animation: listenPulse 1.6s ease-in-out infinite;
}

.q-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.q-opt {
  padding: 20px 10px; border-radius: 18px;
  background: var(--panel); border: 1.5px solid var(--panel-border);
  font-size: 21px; font-weight: 700; letter-spacing: 1px;
  transition: transform 0.14s ease, border-color 0.14s ease, background 0.14s ease;
}
.q-opt:not(:disabled):hover { transform: translateY(-2px); border-color: var(--accent-soft); }
.q-opt:not(:disabled):active { transform: scale(0.96); }
.q-opt.right {
  border-color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, var(--panel));
  color: var(--ok); animation: rightPop 0.4s ease;
}
.q-opt.wrong {
  border-color: var(--bad); background: color-mix(in srgb, var(--bad) 14%, var(--panel));
  color: var(--bad); animation: shakeIt 0.3s ease;
}
.q-feedback { min-height: 56px; margin-top: 16px; text-align: center; font-size: 14.5px; line-height: 1.8; }
.fb-ok { color: var(--ok); font-weight: 700; }
.fb-bad { color: var(--bad); }
.fb-bad b { color: var(--ink); }
.fb-bad small, .fb-bad { display: block; }
.fb-bad { font-size: 13.5px; }

/* ---- 极速挑战 ---- */
.swift-intro, .match-intro {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  background: var(--panel); border: 1px solid var(--panel-border);
  border-radius: var(--radius); padding: 26px 22px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.swift-best { font-size: 14px; color: var(--sub); }
.swift-best b { color: var(--gold); font-size: 17px; }
.swift-rules { list-style: none; display: grid; gap: 7px; }
.swift-rules li { font-size: 13px; color: var(--sub); padding-left: 18px; position: relative; }
.swift-rules li::before { content: '🌸'; position: absolute; left: -4px; font-size: 11px; }
.swift-intro .btn-big { margin-top: 6px; }

.swift-hud { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.swift-score { font-size: 16px; color: var(--sub); }
.swift-score b { font-size: 26px; color: var(--gold); font-variant-numeric: tabular-nums; margin-left: 6px; }
.swift-combo { min-width: 70px; text-align: right; font-weight: 800; color: var(--accent); }
.swift-timebar { height: 7px; background: rgba(255, 255, 255, 0.08); border-radius: 99px; overflow: hidden; margin: 12px 0 20px; }
.swift-timebar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--accent2), var(--accent)); border-radius: 99px; }

.swift-stage {
  position: relative;
  background: var(--panel); border: 1.5px solid var(--panel-border);
  border-radius: 24px; padding: 34px 18px;
  text-align: center;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.swift-stage.frenzy { border-color: var(--accent); box-shadow: 0 0 34px var(--accent-soft), inset 0 0 30px var(--accent-soft); animation: buffPulse 1s ease-in-out infinite; }
.swift-stage.buffed::before {
  content: '加护中 ×2'; position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  font-size: 11px; font-weight: 700; color: var(--gold);
  background: var(--bg0); border: 1px solid var(--gold); border-radius: 99px; padding: 2px 10px;
}
.swift-stage .q-prompt { font-size: clamp(72px, 20vw, 110px); margin: 0 0 18px; }
.q-options.q-fast { gap: 10px; }
.q-options.q-fast .q-opt { padding: 16px 8px; font-size: 19px; }

.swift-count {
  position: fixed; inset: 0; z-index: 46;
  display: grid; place-items: center;
  font-family: var(--kana-font);
  font-size: clamp(60px, 16vw, 110px);
  color: var(--accent);
  text-shadow: 0 0 40px var(--accent);
  pointer-events: none;
  animation: countZoom 0.7s ease;
}

.swift-result { text-align: center; padding-top: 8vh; }
.swift-final {
  font-size: clamp(60px, 16vw, 96px);
  font-weight: 800; color: var(--gold);
  text-shadow: 0 0 40px rgba(255, 215, 110, 0.35);
  margin: 10px 0 4px;
}
.swift-result .result-grid { max-width: 420px; margin: 22px auto 0; }
.swift-result .modal-actions { max-width: 420px; margin: 22px auto 0; }

/* ---- 配对消除 ---- */
.match-best { display: flex; gap: 16px; font-size: 13px; color: var(--sub); }
.match-best b { color: var(--accent2); }
.match-hud { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; font-size: 13.5px; color: var(--sub); }
.match-hud b { color: var(--ink); }
.match-moves, .match-time { font-variant-numeric: tabular-nums; }
.match-left { margin-left: auto; }

.match-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; perspective: 900px; }
.mcard { aspect-ratio: 3/3.6; background: none; }
.mcard-inner {
  position: relative; display: block; width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.4s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.mcard.flipped .mcard-inner, .mcard.matched .mcard-inner { transform: rotateY(180deg); }
.mcard-face {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  border-radius: 14px;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  font-size: clamp(20px, 6vw, 30px);
}
.mcard-back {
  background: linear-gradient(145deg, var(--panel-strong), var(--panel));
  border: 1px solid var(--panel-border);
  font-size: 22px;
  opacity: 0.9;
}
.mcard-front {
  transform: rotateY(180deg);
  background: var(--panel-strong);
  border: 1.5px solid var(--panel-border);
  font-family: var(--kana-font);
}
.mcard-front.romaji { font-family: var(--ui-font); font-weight: 800; font-size: clamp(15px, 4.6vw, 22px); color: var(--accent2); letter-spacing: 1px; }
.mcard.matched .mcard-front { border-color: var(--ok); color: var(--ok); box-shadow: 0 0 16px color-mix(in srgb, var(--ok) 25%, transparent); }
.mcard.matched { animation: matchPop 0.45s ease; }

/* ---- 图鉴 ---- */
.kana-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px;
}
.kana-card {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 12px 4px 9px; border-radius: 15px;
  background: var(--panel); border: 1px solid var(--panel-border);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.kana-card:hover { transform: translateY(-2px); border-color: var(--accent-soft); }
.kana-card:active { transform: scale(0.94); }
.kana-card-char { font-family: var(--kana-font); font-size: clamp(24px, 6.6vw, 34px); line-height: 1.25; }
.kana-card-romaji { font-size: 10.5px; color: var(--accent2); font-weight: 700; }
.kana-card-stars { font-size: 10px; color: var(--gold); min-height: 13px; }
.kana-card.new { opacity: 0.6; }
.kana-card.new .kana-card-stars { color: var(--sub); }

.kdetail { text-align: center; }
.kdetail-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.knav {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--panel); border: 1px solid var(--panel-border);
  font-size: 22px; color: var(--sub);
}
.knav:hover { color: var(--ink); }
.kdetail-kana-wrap { display: flex; align-items: center; gap: 12px; }
.kdetail-kana { font-family: var(--kana-font); font-size: clamp(74px, 20vw, 104px); line-height: 1.2; text-shadow: 0 0 30px var(--accent-soft); }
.kdetail-romaji { font-size: 20px; font-weight: 700; color: var(--accent); margin-top: 6px; }
.kdetail-script { font-size: 11.5px; color: var(--sub); font-weight: 500; margin-left: 8px; }
.kdetail-origin { font-size: 12.5px; color: var(--gold); margin-top: 7px; }
.kdetail-memo { color: var(--sub); font-size: 14.5px; line-height: 1.9; margin: 14px auto; max-width: 400px; }
.kdetail-meta { font-size: 13px; color: var(--sub); }
.kdetail-sim { margin-top: 10px; font-size: 13px; color: var(--sub); }
.kdetail-sim span { font-family: var(--kana-font); font-size: 19px; color: var(--bad); letter-spacing: 6px; }

/* ---- 收藏室 ---- */
.col-sec { margin-bottom: 30px; }
.col-sec h2 { font-size: 17px; letter-spacing: 2px; margin-bottom: 12px; }
.col-sec h2 small { color: var(--accent2); font-size: 12.5px; margin-left: 6px; }
.col-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.col-sec-head h2 { margin-bottom: 0; }
.col-tip { font-size: 12px; color: var(--sub); margin: 8px 0 14px; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.stat-cell {
  background: var(--panel); border: 1px solid var(--panel-border);
  border-radius: 14px; padding: 13px 6px; text-align: center;
}
.stat-cell b { display: block; font-size: 17px; color: var(--accent); }
.stat-cell span { font-size: 11px; color: var(--sub); }

.gacha-btn { padding: 9px 16px; font-size: 13.5px; }

.kt-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.kt-card {
  position: relative; border-radius: 15px; padding: 13px 6px 10px;
  text-align: center; border: 1px solid var(--panel-border);
  background: var(--panel); overflow: hidden;
  min-height: 96px;
}
.kt-card.r-c { border-color: color-mix(in srgb, var(--accent2) 40%, transparent); }
.kt-card.r-r { border-color: color-mix(in srgb, var(--accent) 55%, transparent); background: color-mix(in srgb, var(--accent) 8%, var(--panel)); }
.kt-card.r-e { border-color: var(--gold); background: linear-gradient(160deg, color-mix(in srgb, var(--gold) 16%, var(--panel)), var(--panel)); box-shadow: 0 0 18px rgba(255, 215, 110, 0.15); }
.kt-card.unknown { opacity: 0.55; }
.kt-word { display: block; font-family: var(--kana-font); font-size: 19px; }
.kt-zh { display: block; font-size: 11.5px; color: var(--ink); margin-top: 3px; font-weight: 700; }
.kt-rarity { display: block; font-size: 10px; color: var(--accent2); margin-top: 3px; }
.kt-flavor { display: block; font-size: 9.5px; color: var(--sub); margin-top: 5px; line-height: 1.5; }

.achv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.achv-cell {
  border-radius: 15px; padding: 15px 8px; text-align: center;
  background: var(--panel); border: 1px dashed var(--panel-border);
}
.achv-cell.got { border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent); background: color-mix(in srgb, var(--accent) 7%, var(--panel)); }
.achv-stamp {
  display: inline-grid; place-items: center;
  width: 46px; height: 46px; border-radius: 9px;
  font-family: var(--kana-font); font-size: 21px;
  margin-bottom: 8px;
  background: transparent; border: 2px dashed var(--panel-border); color: var(--sub);
  transform: rotate(-4deg);
}
.achv-cell.got .achv-stamp {
  background: linear-gradient(145deg, #d43d2a, #a92818);
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: #fff5ec; transform: rotate(-6deg);
  box-shadow: 0 4px 14px rgba(212, 61, 42, 0.4);
  animation: stampIn 0.4s ease;
}
.achv-cell b { display: block; font-size: 13px; }
.achv-cell small { display: block; font-size: 10.5px; color: var(--sub); margin-top: 4px; line-height: 1.5; }

/* 言灵弹卡 */
.gacha { text-align: center; }
.gacha-card {
  border-radius: 20px; padding: 30px 18px;
  border: 1.5px solid var(--panel-border); background: var(--panel-strong);
}
.gacha-card.r-r { border-color: var(--accent); }
.gacha-card.r-e { border-color: var(--gold); background: linear-gradient(160deg, color-mix(in srgb, var(--gold) 18%, var(--panel-strong)), var(--panel-strong)); box-shadow: 0 0 30px rgba(255, 215, 110, 0.25); }
.gacha-rarity { font-size: 11px; letter-spacing: 3px; color: var(--accent2); }
.gacha-word { display: block; font-family: var(--kana-font); font-size: 46px; margin: 12px 0 4px; text-shadow: 0 0 26px var(--accent-soft); }
.gacha-zh { font-size: 17px; font-weight: 700; color: var(--accent); }
.gacha-flavor { display: block; font-size: 12.5px; color: var(--sub); margin-top: 10px; }

/* ---- 御神签 ---- */
.omikuji-stage { text-align: center; padding: 10px 0 4px; }
.omikuji-box {
  width: 120px; height: 120px; border-radius: 24px;
  font-size: 58px;
  background: var(--panel-strong); border: 1.5px solid var(--panel-border);
  transition: transform 0.15s ease;
}
.omikuji-box:active { transform: scale(0.93); }
.omikuji-box.shaking { animation: boxShake 0.9s ease; }
.omikuji-stage .col-tip { margin-top: 14px; }

.omikuji-paper {
  text-align: center;
  background: linear-gradient(175deg, #fff9f0, #f7ead8);
  color: #4a3526;
  border-radius: 14px;
  padding: 30px 20px 26px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(120, 80, 40, 0.18);
  position: relative;
}
.omikuji-paper::before, .omikuji-paper::after {
  content: ''; position: absolute; top: 10px; width: 46px; height: 8px;
  background: #d43d2a; opacity: 0.85; border-radius: 2px;
}
.omikuji-paper::before { left: 14px; transform: rotate(-24deg); }
.omikuji-paper::after { right: 14px; transform: rotate(24deg); }
.omikuji-fortune { display: block; font-family: var(--kana-font); font-size: 44px; letter-spacing: 8px; }
.f-best .omikuji-fortune { color: #d43d2a; }
.f-good .omikuji-fortune { color: #c2571f; }
.f-mid .omikuji-fortune { color: #8a6a3a; }
.f-bad .omikuji-fortune { color: #4a5a8a; }
.omikuji-line { font-size: 14px; margin-top: 12px; line-height: 1.9; color: #6a5240; }
.omikuji-buff {
  margin-top: 14px; font-size: 12.5px; font-weight: 700;
  color: #d43d2a; border-top: 1px dashed rgba(120, 80, 40, 0.3); padding-top: 12px;
}

/* ---- 设置 ---- */
.set-h { font-size: 13px; color: var(--sub); letter-spacing: 3px; margin: 18px 0 9px; font-weight: 600; }
.set-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 14px;
  background: var(--panel); border: 1px solid var(--panel-border);
  cursor: pointer; margin-bottom: 8px;
}
.set-row span { flex: 1; }
.set-row b { font-size: 14px; display: block; }
.set-row small { font-size: 11px; color: var(--sub); }
.set-row input { display: none; }
.set-switch {
  flex: 0 0 auto; width: 44px; height: 25px; border-radius: 99px;
  background: rgba(255, 255, 255, 0.12); position: relative; transition: background 0.2s ease;
}
.set-switch::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 19px; height: 19px; border-radius: 50%;
  background: #fff; transition: transform 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}
.set-row input:checked + .set-switch { background: var(--accent); }
.set-row input:checked + .set-switch::after { transform: translateX(19px); }

.theme-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.theme-opt {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 12px; border-radius: 14px;
  background: var(--panel); border: 1.5px solid var(--panel-border);
  font-size: 13.5px; font-weight: 700;
}
.theme-opt.on { border-color: var(--accent); box-shadow: 0 0 12px var(--accent-soft); }
.theme-opt small { margin-left: auto; font-size: 10.5px; color: var(--sub); font-weight: 500; }
.theme-swatch { width: 22px; height: 22px; border-radius: 7px; flex: 0 0 auto; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); }
.theme-neon .theme-swatch { background: linear-gradient(135deg, #ff7eb6, #7ee8fa); }
.theme-dawn .theme-swatch { background: linear-gradient(135deg, #ffd3e0, #ff8fa8); }
.theme-matcha .theme-swatch { background: linear-gradient(135deg, #9dffb0, #2e5c3a); }
.theme-sumi .theme-swatch { background: linear-gradient(135deg, #f0eee8, #26262c); }

.set-danger { margin-top: 20px; text-align: center; }
.btn-danger.armed, .set-danger .btn-danger:active { color: #fff; background: var(--bad); }
.set-credit { font-size: 11px; color: var(--sub); text-align: center; margin-top: 16px; line-height: 1.7; }

/* 读音气泡 */
.reading-chip {
  position: fixed; z-index: 70;
  transform: translate(-50%, -130%);
  display: flex; align-items: baseline; gap: 7px;
  padding: 8px 14px; border-radius: 12px;
  background: color-mix(in srgb, var(--bg1) 90%, transparent);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
  font-family: var(--kana-font);
  font-size: 18px;
  pointer-events: none;
  animation: chipPop 1.5s ease forwards;
}
.reading-chip b { color: var(--accent); font-family: var(--ui-font); font-size: 16px; letter-spacing: 1px; }
.reading-chip small { color: var(--sub); font-size: 10px; }

/* 设置里的说明与存档码 */
.set-note {
  font-size: 11.5px; color: var(--sub); line-height: 1.8;
  background: var(--panel); border: 1px dashed var(--panel-border);
  border-radius: 12px; padding: 9px 12px; margin-bottom: 8px;
}
.save-code {
  width: 100%; resize: none;
  background: var(--panel); border: 1px solid var(--panel-border);
  border-radius: 12px; padding: 10px 12px;
  color: var(--ink); font-size: 11px; font-family: ui-monospace, monospace;
  line-height: 1.6;
}
.save-code:focus { outline: none; border-color: var(--accent-soft); }

/* 答题页朗读按钮 */
.q-prompt-speak { display: flex; justify-content: center; margin: -4px 0 12px; }

/* ---- 小屏适配 ---- */
@media (max-width: 560px) {
  .kana-grid { grid-template-columns: repeat(4, 1fr); }
  .kt-grid { grid-template-columns: repeat(3, 1fr); }
  .achv-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .bg-torii { bottom: 20%; }
}
@media (max-width: 380px) {
  .kana-grid { grid-template-columns: repeat(3, 1fr); }
}
