/* ==========================================================
 * 《后会友期》友情人格测试 · 样式
 * 手机优先 · 小红书截图友好 · 浅色主题
 * ========================================================== */

:root {
  --bg: #FFF8F3;
  --bg-2: #FDEDE4;
  --card: #FFFFFF;
  --ink: #2B2523;
  --ink-2: #5F544D;
  --ink-3: #A2948B;
  --line: #F1E4DA;
  --line-2: #F8EFE9;
  --primary: #E8674F;
  --primary-2: #FF8A6B;
  --amber: #F2B33D;
  --primary-soft: #FFF0EA;
  --shadow-sm: 0 2px 8px rgba(160, 105, 82, .06);
  --shadow: 0 10px 30px -12px rgba(160, 105, 82, .22);
  --shadow-lg: 0 20px 50px -20px rgba(160, 105, 82, .3);
  --serif: "Songti SC", "STSong", "SimSun", "Noto Serif SC", serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background-color: #FFF9F4;
}

/* 纸面颗粒：极轻的噪点，让大色块不发「塑料」 */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- 背景光斑 ---------- */
.bg-deco {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  /* 多层柔光渐变：模拟「奶油纸面被斜阳照到」的层次 */
  background-image:
    radial-gradient(900px 520px at 88% -8%, rgba(255, 224, 200, .85) 0%, rgba(255, 224, 200, 0) 62%),
    radial-gradient(760px 480px at 6% 16%, rgba(255, 240, 214, .8) 0%, rgba(255, 240, 214, 0) 60%),
    radial-gradient(820px 620px at 96% 98%, rgba(255, 218, 214, .6) 0%, rgba(255, 218, 214, 0) 56%),
    radial-gradient(700px 500px at 10% 94%, rgba(255, 233, 238, .55) 0%, rgba(255, 233, 238, 0) 58%),
    linear-gradient(178deg, #FFFCF9 0%, #FFF8F2 36%, #FDF2EA 100%);
}
.blob {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}
.b1 {
  width: 460px; height: 460px; top: -180px; right: -140px;
  background: radial-gradient(circle at 42% 42%,
    rgba(255, 210, 184, .95) 0%, rgba(255, 210, 184, .42) 38%,
    rgba(255, 210, 184, .12) 68%, rgba(255, 210, 184, 0) 100%);
  opacity: .45;
  animation: drift1 22s ease-in-out infinite alternate;
}
.b2 {
  width: 380px; height: 380px; top: 30%; left: -180px;
  background: radial-gradient(circle at 50% 50%,
    rgba(255, 232, 194, .95) 0%, rgba(255, 232, 194, .4) 40%,
    rgba(255, 232, 194, .1) 70%, rgba(255, 232, 194, 0) 100%);
  opacity: .42;
  animation: drift2 26s ease-in-out infinite alternate;
}
.b3 {
  width: 400px; height: 400px; bottom: -160px; right: -120px;
  background: radial-gradient(circle at 50% 50%,
    rgba(255, 210, 208, .95) 0%, rgba(255, 210, 208, .38) 40%,
    rgba(255, 210, 208, .1) 70%, rgba(255, 210, 208, 0) 100%);
  opacity: .36;
  animation: drift3 24s ease-in-out infinite alternate;
}
.b4 {
  width: 300px; height: 300px; top: 44%; right: 8%;
  background: radial-gradient(circle at 50% 50%,
    rgba(255, 227, 212, .9) 0%, rgba(255, 227, 212, .35) 42%,
    rgba(255, 227, 212, 0) 100%);
  opacity: .28;
  animation: drift2 30s ease-in-out infinite alternate-reverse;
}

@keyframes drift1 {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-36px, 48px, 0) scale(1.1); }
}
@keyframes drift2 {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(42px, -34px, 0) scale(1.08); }
}
@keyframes drift3 {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-28px, -42px, 0) scale(1.12); }
}

/* ---------- 布局 ---------- */
.app {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto;
  padding: 40px 22px 64px;
}

.screen { display: none; }
.screen.active { display: block; animation: screenIn .4s ease both; }

#screen-intro { position: relative; }
/* 标题背后的暖光晕，让首屏有「被照亮」的感觉 */
#screen-intro::before {
  content: "";
  position: absolute;
  top: -70px;
  left: -80px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 203, 160, .42) 0%, rgba(255, 203, 160, 0) 66%);
  pointer-events: none;
  z-index: -1;
}

@keyframes screenIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* ==========================================================
 * 首页
 * ========================================================== */
.brand {
  display: inline-block;
  font-size: 11.5px;
  letter-spacing: .22em;
  color: var(--primary);
  background: rgba(255, 255, 255, .7);
  border: 1px solid rgba(232, 103, 79, .22);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 26px;
}

.title {
  font-size: 36px;
  line-height: 1.42;
  font-weight: 800;
  letter-spacing: .01em;
  margin: 0 0 22px;
}
.title span {
  color: var(--primary);
  position: relative;
  white-space: nowrap;
}
.title span::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  height: 9px;
  background: linear-gradient(90deg, rgba(255, 179, 61, .38), rgba(255, 138, 107, .18));
  border-radius: 6px;
  z-index: -1;
}

.intro-sub {
  font-size: 15px;
  line-height: 2;
  color: var(--ink-2);
  margin: 0 0 30px;
}

.meta-row {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
}
.meta-row > div {
  flex: 1;
  background: rgba(255, 255, 255, .78);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 8px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.meta-row b {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}
.meta-row span {
  font-size: 11.5px;
  color: var(--ink-3);
  letter-spacing: .06em;
}

/* ---------- 按钮 ---------- */
.btn {
  display: block;
  width: 100%;
  border: none;
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: .08em;
  border-radius: 999px;
  padding: 0 22px;
  height: 54px;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn.primary {
  color: #fff;
  background: linear-gradient(122deg, #FF8A6B 0%, #E8674F 52%, #E85A3F 100%);
  box-shadow: 0 14px 28px -12px rgba(232, 103, 79, .75);
}
.btn.primary:active { transform: scale(.98); }
.btn.ghost {
  background: #fff;
  color: var(--ink-2);
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.btn.big { height: 58px; font-size: 16.5px; }

.intro-tip {
  text-align: center;
  font-size: 12px;
  color: var(--ink-3);
  margin: 14px 0 30px;
  letter-spacing: .04em;
}

/* ---------- 角色卡司 ---------- */
.cast {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
  margin-bottom: 26px;
}
.cast-item {
  background: rgba(255, 255, 255, .8);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 11px 4px 9px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.cast-item i {
  display: block;
  font-style: normal;
  font-size: 19px;
  margin-bottom: 5px;
}
.cast-item span {
  font-size: 11px;
  color: var(--ink-2);
  letter-spacing: .02em;
}

.intro-foot {
  text-align: center;
  font-size: 11px;
  color: #C1B3AA;
  margin: 0;
  letter-spacing: .05em;
}

/* ==========================================================
 * 答题
 * ========================================================== */
.quiz-top {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0 14px;
  margin-bottom: 10px;
  background: linear-gradient(180deg, rgba(255, 248, 243, .97) 62%, rgba(255, 248, 243, 0));
  backdrop-filter: blur(6px);
}
.back {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  font-size: 20px;
  line-height: 1;
  padding-bottom: 3px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: opacity .2s;
}
.back:disabled { opacity: .25; cursor: default; }

.q-progress {
  flex: 1;
  height: 5px;
  background: #F4E5DC;
  border-radius: 999px;
  overflow: hidden;
}
.q-progress > div {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #FFB86B, #E8674F);
  transition: width .45s cubic-bezier(.4, 0, .2, 1);
}

.q-count {
  flex: none;
  font-size: 12px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
}
.q-count b { color: var(--primary); font-size: 14px; font-weight: 800; }
.q-count span { margin: 0 1px; }

.q-card {
  background: var(--card);
  border-radius: 26px;
  padding: 30px 22px 26px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, .9);
}
.q-card.entering { animation: cardIn .32s cubic-bezier(.2, .9, .3, 1) both; }
@keyframes cardIn {
  from { opacity: 0; transform: translateY(14px) scale(.995); }
  to   { opacity: 1; transform: none; }
}

.q-title {
  font-size: 19.5px;
  font-weight: 700;
  line-height: 1.72;
  margin: 0 0 24px;
  letter-spacing: .01em;
}
.q-title::before {
  content: "Q";
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: .3em;
  margin-bottom: 10px;
  opacity: .75;
}

.options { display: flex; flex-direction: column; gap: 11px; }

.option {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  width: 100%;
  text-align: left;
  font-family: inherit;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink);
  background: #FFFCFA;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color .18s, background .18s, transform .12s, box-shadow .18s;
}
.option-key {
  flex: none;
  width: 25px;
  height: 25px;
  border-radius: 9px;
  border: 1.5px solid #EBDCD1;
  background: #FFFDFB;
  color: #A8968A;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .02em;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .18s, border-color .18s, color .18s, box-shadow .18s, transform .18s;
}
.option-text { flex: 1; min-width: 0; }
.option:active { transform: scale(.987); }
@media (hover: hover) {
  .option:hover {
    border-color: #F3C4B3;
    background: #FFF7F3;
  }
  .option:hover .option-key {
    border-color: #F0B7A3;
    color: var(--primary);
  }
}
.option.selected {
  border-color: var(--primary);
  background: var(--primary-soft);
  box-shadow: 0 8px 20px -12px rgba(232, 103, 79, .8);
}
.option.selected .option-key {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: scale(1.04);
  box-shadow: 0 4px 10px -4px rgba(232, 103, 79, .85);
}

.quiz-foot {
  text-align: center;
  font-size: 11.5px;
  color: #C1B3AA;
  margin: 20px 0 0;
  letter-spacing: .04em;
}

/* ==========================================================
 * 结果页
 * ========================================================== */
.hero {
  background: linear-gradient(170deg, #FFFFFF 0%, #FFF7F1 62%, #FDEEE4 100%);
  border-radius: 30px;
  padding: 34px 22px 28px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, .9);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -70px; left: 50%;
  transform: translateX(-50%);
  width: 260px; height: 200px;
  background: radial-gradient(circle, rgba(255, 184, 107, .35), transparent 68%);
  pointer-events: none;
}
.hero-top {
  font-size: 46px;
  line-height: 1;
  margin-bottom: 14px;
  filter: drop-shadow(0 6px 12px rgba(200, 130, 100, .22));
}
.hero-eyebrow {
  font-size: 11.5px;
  letter-spacing: .22em;
  color: var(--ink-3);
  margin-bottom: 8px;
}
.hero-type {
  font-size: 33px;
  font-weight: 800;
  margin: 0 0 10px;
  letter-spacing: .02em;
  background: linear-gradient(120deg, #E8674F, #D9502F 55%, #E8944A);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-name {
  font-size: 13px;
  color: var(--ink-2);
  letter-spacing: .04em;
}
.hero-name span { color: #D3C2B7; margin: 0 4px; }

.ring {
  position: relative;
  width: 124px;
  height: 124px;
  margin: 22px auto 18px;
}
.ring svg { width: 100%; height: 100%; display: block; }
.ring-fg { transition: stroke-dashoffset 1.1s cubic-bezier(.2, .8, .3, 1); }
.ring-num {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.ring-line {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 1px;
}
.ring-num b {
  font-size: 33px;
  font-weight: 800;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}
.ring-num span {
  font-size: 11.5px;
  color: var(--ink-3);
  font-weight: 600;
}
.ring-num em {
  font-size: 10.5px;
  font-style: normal;
  color: var(--ink-3);
  letter-spacing: .16em;
  margin-top: 5px;
}

.hero-tagline {
  font-family: var(--serif);
  font-size: 16.5px;
  line-height: 1.9;
  color: #B2523A;
  margin: 0 0 18px;
  padding: 0 6px;
}

.kw-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: center;
}
.kw {
  font-size: 11.5px;
  color: #C05A40;
  background: #FFF1EA;
  border: 1px solid rgba(232, 103, 79, .14);
  border-radius: 999px;
  padding: 5px 12px;
  letter-spacing: .04em;
}

/* ---------- 卡片 ---------- */
.card {
  background: var(--card);
  border-radius: 24px;
  padding: 24px 21px 26px;
  margin-top: 15px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, .8);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .3, 1);
}
.card.in { opacity: 1; transform: none; }

.card h3 {
  display: flex;
  align-items: center;
  font-size: 16.5px;
  font-weight: 800;
  margin: 0 0 16px;
  letter-spacing: .01em;
}
.card h3.mt { margin-top: 4px; }
.card h3 .ico {
  font-size: 15px;
  margin-right: 8px;
  filter: saturate(1.1);
}

.para {
  font-size: 14.5px;
  line-height: 2.05;
  color: #4A4038;
  margin: 0 0 15px;
}
.para:last-child { margin-bottom: 0; }

.lead {
  font-size: 13px;
  line-height: 1.95;
  color: var(--ink-3);
  margin: -4px 0 16px;
}

.divider {
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--line) 0 5px, transparent 5px 10px);
  margin: 22px 0;
}

/* ---------- 雷达图 ---------- */
.radar-wrap { padding: 2px 0 4px; }
.radar {
  display: block;
  width: 100%;
  max-width: 290px;
  margin: 0 auto;
  overflow: visible;
}
.radar-label {
  font-size: 11px;
  fill: #A2948B;
  letter-spacing: .06em;
  font-family: inherit;
}
.radar-shape {
  transform: scale(.18);
  transition: transform 1s cubic-bezier(.2, .9, .2, 1);
}

/* ---------- 维度条 ---------- */
.axis-list { margin-top: 6px; }
.axis-row { margin-top: 20px; }
.axis-row:first-child { margin-top: 4px; }
.axis-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}
.axis-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: .04em;
}
.axis-val {
  font-size: 13px;
  font-weight: 800;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}
.axis-bar {
  height: 8px;
  background: #F6EAE2;
  border-radius: 999px;
  overflow: hidden;
}
.axis-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #FFC08B, #E8674F);
  transition: width 1.1s cubic-bezier(.2, .8, .3, 1);
}
.axis-ends {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 10.5px;
  color: #BFAFA5;
  letter-spacing: .04em;
}
.axis-desc {
  font-size: 13px;
  line-height: 1.9;
  color: var(--ink-2);
  margin: 8px 0 0;
}

/* ---------- 友情语法 ---------- */
.grammar { margin-top: 4px; }
.grammar-item {
  border-left: 3px solid #FBD9CB;
  padding: 2px 0 2px 15px;
  margin-bottom: 18px;
}
.grammar-item:last-child { margin-bottom: 0; }
.grammar-item h4 {
  font-size: 13.5px;
  font-weight: 800;
  color: #C05A40;
  margin: 0 0 6px;
  letter-spacing: .06em;
}
.grammar-item p {
  font-size: 14px;
  line-height: 1.95;
  color: #4A4038;
  margin: 0;
}

/* ---------- 阴影面（深色卡） ---------- */
.card.dark {
  background: linear-gradient(160deg, #322B28 0%, #241F1D 100%);
  border-color: rgba(255, 255, 255, .07);
}
.card.dark h3 { color: #FFF3EC; }
.card.dark .para { color: #D6C8BF; }

/* ---------- 人物行 ---------- */
.person-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #FBF4EF;
  border: 1px solid var(--line-2);
  margin-bottom: 13px;
}
.person-row.good { background: #FFF8E9; border-color: #F8E6C0; }
.p-emoji { font-size: 24px; line-height: 1; }
.person-row b { font-size: 14.5px; display: block; line-height: 1.5; }
.person-row em {
  display: block;
  font-size: 11px;
  font-style: normal;
  color: var(--ink-3);
  letter-spacing: .04em;
}

/* ---------- 相处说明书 ---------- */
.manual {
  list-style: none;
  margin: 0;
  padding: 0;
}
.manual li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
  font-size: 14px;
  line-height: 1.95;
  color: #4A4038;
}
.manual .num {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 3px;
}
.self-note {
  margin-top: 20px;
  padding: 16px 16px 17px;
  border-radius: 16px;
  background: linear-gradient(140deg, #FFF6EC, #FFF1E8);
  border: 1px solid #F7E4D3;
}
.self-label {
  display: block;
  font-size: 10.5px;
  letter-spacing: .16em;
  color: #C98B5E;
  margin-bottom: 8px;
}
.self-note p {
  margin: 0;
  font-family: var(--serif);
  font-size: 15.5px;
  line-height: 1.95;
  color: #8A4C33;
}

/* ---------- 台词 ---------- */
blockquote.quote {
  margin: 0;
  padding: 4px 0 4px 18px;
  border-left: 3px solid var(--primary);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 2;
  color: #2B2523;
}
.quote-src {
  margin: 12px 0 0 21px;
  font-size: 11.5px;
  color: var(--ink-3);
  letter-spacing: .04em;
}

/* ---------- 排行 ---------- */
.rank-list { margin-top: 4px; }
.rank-row {
  display: grid;
  grid-template-columns: 78px 1fr 42px;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-2);
}
.rank-row:last-child { border-bottom: none; }
.rank-name b {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.5;
}
.rank-name em {
  display: block;
  font-size: 10px;
  font-style: normal;
  color: var(--ink-3);
  letter-spacing: .02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rank-bar {
  height: 6px;
  background: #F6EAE2;
  border-radius: 999px;
  overflow: hidden;
}
.rank-bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #FFD3A8, #F1B79B);
  transition: width .9s cubic-bezier(.2, .8, .3, 1);
}
.rank-pct {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-3);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.rank-top .rank-name b { color: var(--primary); }
.rank-top .rank-bar i { background: linear-gradient(90deg, #FFB86B, #E8674F); }
.rank-top .rank-pct { color: var(--primary); }

/* ---------- 底部操作 ---------- */
.actions {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s, transform .6s;
}
.actions.in { opacity: 1; transform: none; }

.disclaimer {
  font-size: 11px;
  line-height: 1.95;
  color: #BFB0A6;
  text-align: center;
  margin: 20px 6px 0;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 38px;
  transform: translate(-50%, 14px);
  background: rgba(43, 37, 35, .94);
  color: #FFF6F1;
  font-size: 13px;
  padding: 12px 22px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s, transform .28s;
  z-index: 50;
  white-space: nowrap;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .45);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================
 * 响应式 & 无障碍
 * ========================================================== */
@media (max-width: 400px) {
  .app { padding: 30px 18px 54px; }
  .title { font-size: 31px; }
  .hero-type { font-size: 28px; }
  .q-card { padding: 26px 18px 22px; }
  .q-title { font-size: 18px; }
  .option { font-size: 14px; padding: 14px; }
  .cast { grid-template-columns: repeat(4, 1fr); gap: 7px; }
  .rank-row { grid-template-columns: 70px 1fr 40px; gap: 8px; }
}

@media (min-width: 720px) {
  .app { padding-top: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .card, .actions { opacity: 1; transform: none; }
  .radar-shape { transform: none; }
}
