/* ============================================================
   refinement.css — Case Files / 2026 visual refresh
   层叠增强，不覆盖剧情逻辑和原有插画资源
   ============================================================ */
:root {
  --paper: #F8F6F0;
  --paper-2: #F0EDE5;
  --paper-3: #E6E2D8;
  --card: #FFFEFB;
  --ink: #20353B;
  --ink-2: #54656A;
  --ink-3: #74878A;
  --ink-4: #9BA7A6;
  --stroke: #20353B;
  --orange: #F4B269;
  --coral: #E8755B;
  --red: #CE6255;
  --green: #367F75;
  --cyan: #5A9FA8;
  --night: #183943;
  --bubble-self: #DCF0E8;
  --stroke-w: 1.5px;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 24px;
  --sh-1: 0 2px 8px rgba(20,47,52,.055);
  --sh-2: 0 5px 18px rgba(20,47,52,.09);
  --sh-3: 0 20px 60px rgba(9,23,29,.22);
  --sh-soft: 0 14px 34px rgba(20,47,52,.10);
  --ease: cubic-bezier(.2,.75,.25,1);
}
:focus-visible { outline: 3px solid #DE8D5E; outline-offset: 3px; }
.scrollable { scrollbar-color: rgba(41,83,84,.22) transparent; }
.scrollable::-webkit-scrollbar-thumb { background: rgba(41,83,84,.22); }
.device-screen::after { opacity: .038; }
.device-screen::before { opacity: .35; }
.app { background: var(--paper); }

/* === DESKTOP · 沉浸式案件展台 === */
.desk {
  background:
    radial-gradient(ellipse 50% 62% at 48% 48%, rgba(35,98,104,.38), transparent 75%),
    radial-gradient(ellipse 34% 46% at 0% 8%, rgba(213,119,87,.16), transparent 86%),
    radial-gradient(ellipse 32% 44% at 100% 95%, rgba(111,158,145,.17), transparent 84%),
    linear-gradient(135deg, #10272D, #0E2027 56%, #172E32);
}
.desk-art {
  background-image:
    linear-gradient(rgba(239,249,241,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(239,249,241,.028) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse at center, #000 18%, transparent 84%);
}
.desk-bokeh { filter: blur(95px); opacity: .18; }
.desk-bokeh--a { background: #D38A67; }
.desk-bokeh--b { background: #78D4CA; }
.desk-bokeh--c { background: #A5B0EE; }

/* Sidebar copy is meaningful, not decorative, to desktop visitors. */
.sp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 700 10px/1.6 var(--ff-num);
  letter-spacing: .24em;
  color: #E5B78B;
  text-transform: uppercase;
}
.sp-eyebrow::before { content: ""; display: block; width: 18px; height: 1px; background: currentColor; }
.sp-lead { max-width: 27ch; }
.sp-steps { display: grid; gap: 13px; counter-reset: chapter; }
.sp-step {
  display: flex; gap: 12px; align-items: flex-start;
  color: rgba(235,241,235,.75);
  font-size: 12px; line-height: 1.65;
}
.sp-step-index {
  display: grid; place-items: center;
  width: 29px; height: 29px; flex: 0 0 auto;
  border-radius: 10px;
  color: #ECC59B; border: 1px solid rgba(236,197,155,.38);
  font: 800 11px var(--ff-num);
}
.sp-step strong { display: block; color: #F6F8F2; font-size: 13px; margin: -2px 0 1px; }
.sp-step span { display: block; color: #A9BBBA; }
.sp-guide {
  border: 1px solid rgba(219,238,231,.16);
  border-radius: 18px;
  padding: 18px;
  background: rgba(247,251,247,.055);
}
.sp-guide-head {
  color: #D9E9E2; font: 800 11px var(--ff);
  letter-spacing: .18em; margin-bottom: 15px;
}
.sp-guide-foot { margin-top: 16px; font-size: 11px; line-height: 1.75; color: #AFC1BD; }
.sp-tipcard { transition: opacity .3s ease; }
.sp-tipcard-tag { letter-spacing: .08em; }

@media (min-width: 768px) {
  .stage {
    min-height: 0;
    gap: clamp(20px, 3.2vw, 64px);
    padding: 22px clamp(22px, 3.6vw, 76px);
  }
  .stage-panel { gap: 25px; width: 100%; max-width: 350px; }
  .stage-panel--left, .stage-panel--right { align-self: center; }
  .sp-brand { align-items: center; gap: 14px; }
  .sp-mark { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 18px; background: rgba(243,183,133,.12); border: 1px solid rgba(243,183,133,.22); padding: 9px; }
  .sp-mark-svg path:first-child { stroke: #F8E6CC; }
  .sp-title { color: #FFFAEE; font-size: clamp(32px,2.5vw,40px); letter-spacing: .18em; }
  .sp-sub { color: #9AB5B4; letter-spacing: .25em; }
  .sp-slogan { color: #F7F6EE; font-size: clamp(27px, 2.5vw, 39px); line-height: 1.47; letter-spacing: -.02em; }
  .sp-desc { color: #A9BFBB; font-size: 14px; line-height: 1.95; }
  .sp-facts {
    display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0;
    padding: 19px 0;
    border-top: 1px solid rgba(235,245,239,.16);
    border-bottom: 1px solid rgba(235,245,239,.16);
  }
  .sp-facts li { gap: 6px; padding-left: 17px; border-left: 1px solid rgba(235,245,239,.14); }
  .sp-facts li:first-child { border-left: 0; padding-left: 0; }
  .sp-facts b { color: #F2B983; font-size: clamp(23px, 2.1vw, 31px); letter-spacing: -.035em; }
  .sp-facts span { margin: 0; color: #9AB5B4; }
  .sp-note { color: #94ACA9; font-size: 11px; }
  .sp-h2 { color: #F6F7F1; font-size: 21px; letter-spacing: .06em; border-color: rgba(235,245,239,.18); border-bottom-style: solid; padding-bottom: 16px; }
  .sp-tipcard {
    padding: 21px 22px; transform: none;
    background: linear-gradient(145deg, #FFFDF7, #F4F0E5);
    border: 1px solid rgba(255,255,255,.66); border-radius: 18px;
    box-shadow: 0 16px 34px rgba(7,23,27,.19);
  }
  .sp-tipcard-tag { border-radius: 7px; padding: 5px 10px; background: #CE705A; }
  .sp-tipcard-text { font-size: 16px; line-height: 1.8; font-weight: 700; }
  .device { min-width: 0; width: auto; }
  .device-frame {
    width: min(390px, 100%);
    min-height: 0;
    height: min(820px, calc(100dvh - 48px));
    border: 8px solid #08171D;
    border-radius: 48px;
    box-shadow:
      0 0 0 1px rgba(221,240,235,.22),
      0 0 0 6px rgba(8,24,29,.46),
      0 38px 100px rgba(1,11,15,.47),
      0 8px 30px rgba(0,0,0,.22);
    overflow: hidden;
  }
  .device-frame::before {
    content: ""; position: absolute; inset: 0; z-index: 53; pointer-events: none;
    border: 1px solid rgba(255,255,255,.20); border-radius: 40px;
  }
  .device-notch {
    top: 10px; width: 103px; height: 24px;
    background: #071318; border-radius: 99px;
    box-shadow: 0 1px 1px rgba(255,255,255,.06), 0 0 0 2px #071318;
  }
  .device-notch::after {
    content: ""; display: block; position: absolute; right: 18px; top: 10px;
    width: 5px; height: 5px; border-radius: 50%; background: #29444B;
    box-shadow: 0 0 0 2px #10262A;
  }
  .device-screen { border-radius: 40px; }
  .device-screen::before, .device-screen::after { border-radius: 40px; }
  .home .bar-top { padding-top: 37px; }
  .result .bar-top { padding-top: 37px; }
}
@media (min-width: 768px) and (max-width: 1059px) {
  .stage { display: flex; justify-content: center; align-items: center; padding: 20px; }
  .stage-panel { display: none; }
  .device-frame { width: min(390px, 100%); height: min(820px, calc(100dvh - 40px)); }
}
@media (min-width: 1060px) and (max-width: 1379px) {
  .stage { grid-template-columns: minmax(240px, 360px) 390px; justify-content: center; }
  .stage-panel--right { display: none; }
}
@media (min-width: 1380px) {
  .stage { grid-template-columns: minmax(220px, 350px) 390px minmax(220px, 350px); }
}
@media (min-width: 1600px) {
  .device-frame { width: 405px; height: min(866px, calc(100dvh - 56px)); }
  .stage { grid-template-columns: minmax(245px, 360px) 405px minmax(245px, 360px); }
}

/* === MOBILE · 真实 H5 沉浸体验，抹平旧版 700px 交叉查询 === */
@media (max-width: 767px) {
  .desk, .stage-panel { display: none !important; }
  .stage { display: block; height: 100dvh; padding: 0; }
  .device, .device-frame, .device-screen {
    display: block; width: 100%; height: 100%; min-height: 0;
    padding: 0; border: 0; border-radius: 0; box-shadow: none;
  }
  .device-notch, .device-frame::before { display: none; }
}
/* Leave the host viewport to CSS on desktop, including when resizing/zooming. */
@media (max-height: 670px) and (min-width: 768px) {
  .stage { padding-top: 12px; padding-bottom: 12px; }
  .device-frame { height: calc(100dvh - 24px); }
  .stage-panel { gap: 14px; }
  .sp-note { display: none; }
  .sp-slogan { font-size: 25px; }
}

/* === APP SHELL === */
.bar-top {
  padding: calc(var(--sat) + 10px) 18px 11px;
  color: var(--ink);
  background: rgba(249,248,243,.93);
  border-bottom: 1px solid rgba(32,53,59,.085);
  box-shadow: 0 1px 10px rgba(15,49,55,.025);
}
.bar-top > div { min-height: 24px; }
.bar-top svg { color: #387D79; }
.bar-bottom {
  padding: 12px 16px calc(var(--sab) + 12px);
  background: rgba(252,251,247,.96);
  border-top: 1px solid rgba(32,53,59,.09);
  box-shadow: 0 -6px 22px rgba(30,66,68,.035);
}
.screen { background: var(--paper); }
.btn, .paper { border-width: 1px; box-shadow: 0 4px 18px rgba(18,49,54,.07); }
.btn {
  min-height: 48px; border-radius: 13px;
  transition: transform .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.btn--primary {
  color: #fff; background: linear-gradient(115deg, #266C6A, #164F58);
  border-color: #1C6666; box-shadow: 0 6px 13px rgba(27,92,92,.20);
}
.btn--ghost { border-color: rgba(32,53,59,.16); box-shadow: none; }
.btn:hover { box-shadow: 0 7px 20px rgba(26,69,71,.12); }
.btn:active { transform: scale(.98); box-shadow: 0 2px 6px rgba(26,69,71,.1); }

/* === 首页 / 档案库 === */
.home { background: #F7F6F1; }
.home-hero {
  padding: 26px 22px 28px;
  background:
    radial-gradient(circle at 90% 14%, rgba(139,218,194,.24), transparent 32%),
    radial-gradient(circle at 6% 94%, rgba(238,163,112,.16), transparent 50%),
    linear-gradient(135deg, #17434A 0%, #1B4E56 52%, #15353F 100%);
  border-bottom: none;
  border-radius: 0 0 26px 26px;
  color: #fff;
  isolation: isolate;
  box-shadow: 0 12px 26px rgba(24,77,84,.15);
}
.home-hero::before {
  content: ""; position: absolute; width: 240px; height: 240px;
  right: -106px; top: -111px; border: 1px solid rgba(238,248,236,.15);
  border-radius: 50%; box-shadow: 0 0 0 37px rgba(245,249,240,.025), 0 0 0 76px rgba(245,249,240,.025);
  pointer-events: none;
}
.home-hero::after {
  content: "CASE FILES  /  反诈行动";
  position: absolute; right: 22px; bottom: 10px;
  font: 700 9px/1.5 var(--ff-num);
  letter-spacing: .14em; color: rgba(223,246,232,.38);
  pointer-events: none;
}
.home-hero-art { opacity: .12; mix-blend-mode: screen; }
.home-kicker {
  padding: 5px 11px; margin-bottom: 17px; border-radius: 99px;
  font-size: 10px; letter-spacing: .12em;
  background: rgba(230,250,235,.10);
  color: #E7EFD9; border: 1px solid rgba(230,250,235,.24);
}
.home-kicker svg { width: 13px; height: 13px; }
.home-title { font-size: clamp(37px, 10.5vw, 46px); letter-spacing: .11em; gap: 12px; color: #FFFDF5; line-height: 1.18; }
.home-title small {
  font-size: 11px; color: #B6D2CF; letter-spacing: .13em;
  font-weight: 600; white-space: nowrap;
}
.home-slogan { color: #F4CBA6; margin-top: 12px; font-size: 14px; font-weight: 700; }
.home-slogan i { opacity: .8; }
.home-hot {
  margin-top: 21px; padding: 12px 13px; gap: 8px; align-items: flex-start;
  border-radius: 13px; border: 1px solid rgba(227,247,237,.16);
  color: #DAEBE3; background: rgba(3,24,31,.27);
  font-size: 11px; line-height: 1.7;
}
.home-hot .dot { margin-top: 5px; background: #EFB587; box-shadow: 0 0 0 4px rgba(239,181,135,.10); }
.home-hot b { color: #FFD39C; font-family: var(--ff); font-size: 11px; white-space: nowrap; font-weight: 800; }
.home-body { padding: 23px 16px 30px; }
.case-index { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 10px; margin: 0 3px 16px; }
.case-index-kicker { display: block; font: 800 10px var(--ff-num); color: #AD7A57; letter-spacing: .17em; margin-bottom: 6px; }
.case-index h2 { font-size: 22px; letter-spacing: .04em; color: #203A41; }
.case-index-note { max-width: 130px; text-align: right; font-size: 10px; line-height: 1.65; color: #819091; }
.script-card {
  overflow: hidden; border-radius: 19px;
  margin-bottom: 12px; padding: 15px;
  background: #FFFEFA; border: 1px solid #E1E7E2;
  box-shadow: 0 3px 12px rgba(25,65,66,.045), 0 10px 28px rgba(25,65,66,.035);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.script-card::before {
  content: ""; position: absolute; left: 0; top: 17px; bottom: 17px; width: 3px;
  background: linear-gradient(#EFB187,#377E79);
  border-radius: 0 4px 4px 0; opacity: .88;
}
.script-card:hover { border-color: #9BC5BA; box-shadow: 0 12px 32px rgba(25,65,66,.12); transform: translateY(-2px); }
.script-card:active { transform: translateY(0) scale(.99); }
.sc-top { gap: 13px; }
.sc-cover {
  width: 82px; height: 88px; border-radius: 12px;
  border: 1px solid rgba(28,65,64,.10); box-shadow: 0 4px 12px rgba(18,50,55,.08);
}
.sc-badges { gap: 5px; margin-bottom: 8px; }
.sc-badge {
  padding: 4px 7px; font-size: 9px; line-height: 1.2;
  border-width: 1px; letter-spacing: .01em; border-radius: 6px;
}
.sc-badge--no { color: #A47357; border-color: #F4DCC6; background: #FFF3E7; }
.sc-badge--hot { color: #B25B4D; background: #FFF2EE; border-color: #F3D2CB; }
.sc-badge--new { color: #367F75; background: #EDF7F0; border-color: #D2E9DC; }
.sc-badge--type { color: #647875; background: #F2F6F3; border-color: #DAE4DD; }
.sc-badge--diff { color: #A17A45; background: #FFF9EB; border-color: #F0E6CE; }
.sc-title { font-size: 18px; font-weight: 850; letter-spacing: -.02em; line-height: 1.4; }
.sc-no { color: #203A41; font-family: var(--ff); font-size: inherit; font-weight: inherit; }
.sc-desc { margin-top: 6px; font-size: 11.5px; line-height: 1.67; color: #75817F; }
.sc-progress { height: 5px; margin-top: 15px; background: #EDF0EB; }
.sc-progress-fill { background: linear-gradient(90deg,#4EA096,#B8CDA4); }
.sc-cta { margin-top: 13px; border-top: 1px solid #F0F0EA; padding-top: 12px; }
.sc-cta-btn {
  padding: 8px 14px; border-radius: 10px;
  background: #205D60; font-size: 11px; box-shadow: 0 4px 10px rgba(31,89,94,.12);
}
.sc-cta-hint { font-size: 10px; color: #7D8C8B; }
.sc-ring-txt { color: #537A72; }
.home-tiles { gap: 9px; margin: 18px 0 14px; }
.home-tile {
  min-height: 81px; padding: 13px 5px; border: 1px solid #E1E9E1;
  border-radius: 15px; background: #FFFEFA; font-size: 11px; gap: 7px;
}
.home-tile svg { color: #32766F; width: 23px; height: 23px; }
.home-tile--danger svg { color: #CF7865; }
.home-tile:hover { background: #F1F7F1; transform: translateY(-2px); }
.home-hotline {
  min-height: 69px; gap: 11px; padding: 10px 12px; border-radius: 14px;
  border: 1px solid #F0D9CB; background: linear-gradient(115deg,#FFF2E7,#FFF7EE);
}
.home-hotline svg { color: #C76756; }
.home-hotline-txt b { color: #7B4038; }
.home-hotline-txt span { color: #936C62; }
.home-hotline a { background: #C96857; border-radius: 10px; padding: 9px 13px; }
.home-credit { margin: 9px 0 0; font-size: 9px; color: #87908C; }
@media (max-width: 360px) {
  .home-title { font-size: 35px; }
  .home-title small { font-size: 9px; }
  .home-hero { padding: 23px 16px 26px; }
  .home-body { padding-left: 12px; padding-right: 12px; }
  .script-card { padding: 12px; }
  .sc-cover { width: 67px; height: 78px; }
  .sc-badge { font-size: 8px; }
  .home-hot { flex-wrap: wrap; }
}

/* === GAME · 沉浸叙事与关键抉择 === */
.game { background: #F8F9F5; }
.game .bar-top { padding: 10px 15px 11px; }
.stage-scene {
  height: clamp(176px, 29dvh, 285px); min-height: 0; max-height: none;
  border-bottom: none; box-shadow: inset 0 -16px 24px rgba(9,37,44,.14);
}
.stage-scene::after {
  content: ""; position: absolute; inset: 45% 0 0;
  z-index: 11; pointer-events: none;
  background: linear-gradient(0deg,rgba(7,25,32,.33),transparent 70%);
}
.act-tag {
  top: 12px; left: 12px; border-radius: 9px;
  padding: 6px 10px; font-size: 10px; letter-spacing: .06em;
  background: rgba(15,46,52,.82); border: 1px solid rgba(255,255,255,.19);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.act-tag i { color: #F8C398; }
.scene-tools { top: 12px; right: 12px; gap: 7px; }
.scene-tool {
  width: 35px; height: 35px; border-radius: 11px;
  background: rgba(253,255,248,.88); border: 1px solid rgba(255,255,255,.55);
  box-shadow: 0 3px 10px rgba(10,41,45,.14);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.scene-tool:hover { background: #fff; }
.gauges { gap: 9px; }
.gauge-head { color: #5B706E; margin-bottom: 5px; font-size: 10px; }
.gauge-head b { color: #2A514E; font-size: 12px; }
.gauge-track { height: 6px; background: #E2EAE4; box-shadow: none; }
.wallet {
  min-width: 83px; padding: 6px 5px 5px 9px; align-items: flex-end;
  border-left: 1px solid #DCE6DE; background: linear-gradient(90deg,rgba(255,247,236,.5),rgba(255,247,236,0));
}
.wallet small { font-size: 9px; color: #81918C; }
.wallet b { font-size: 15px; color: #C86354; font-variant-numeric: tabular-nums; }
.game-story { background: linear-gradient(180deg,#F5F7F3,#FAF9F4 36%); padding: 19px 17px 16px; }
.log { gap: 17px; }
.log-narr {
  padding: 9px 12px; border-left: 2px solid #BED5CB;
  border-radius: 0 8px 8px 0; background: rgba(236,242,236,.64);
  line-height: 1.9; font-size: var(--fs-md); color: #5B7272;
}
.bubble { max-width: 93%; gap: 9px; }
.bubble-avatar { width: 35px; height: 35px; border-width: 1px; border-color: #C8D7D0; }
.bubble-name { margin: 0 1px 4px; color: #687F7D; font-size: 10px; }
.bubble-text {
  border-width: 1px; border-color: #E2E9E3;
  border-radius: 7px 16px 16px 16px;
  padding: 10px 13px; box-shadow: 0 3px 11px rgba(20,62,62,.055);
  line-height: 1.87; background: #FFFEFA;
}
.bubble-avatar + .bubble-body .bubble-text::before {
  border-left-width: 1px; border-bottom-width: 1px;
  border-color: #E2E9E3; left: -6px;
}
.bubble--self .bubble-text { background: #E0F1E9; border-color: #C7E5D5; border-radius: 16px 7px 16px 16px; }
.bubble--self .bubble-avatar + .bubble-body .bubble-text::before { border-color: #C7E5D5; right: -6px; left: auto; }
.bubble--scam .bubble-text { background: #FFFAF5; border-color: #F1E0D1; }
.bubble--scam .bubble-avatar + .bubble-body .bubble-text::before { border-color: #F1E0D1; }
.bubble--ally .bubble-text { background: #F2FAF4; border-color: #D6E8DA; }
.bubble--ally .bubble-avatar + .bubble-body .bubble-text::before { border-color: #D6E8DA; }
.ui-mock { max-width: 100%; border: 1px solid #D6E3DE; border-radius: 14px; box-shadow: 0 8px 18px rgba(12,50,51,.08); }
.ui-mock-bar { border-bottom: 1px solid #E1E8E3; background: #F2F5F0; }
.anchor-card { border-width: 1px; border-color: #A5D2BE; border-radius: 15px; }
.sys-note { max-width: 100%; font-size: 10px; color: #7E8D87; background: #ECF1EB; }
.game .bar-bottom { background: rgba(255,254,250,.97); }
.choices { gap: 9px; }
.choices-prompt { margin-bottom: 3px; color: #315A56; font-size: 12px; }
.choice {
  align-items: center; min-height: 57px; padding: 12px 13px;
  border: 1px solid #D7E4DC; border-radius: 13px;
  box-shadow: 0 3px 0 rgba(42,94,88,.06), 0 4px 14px rgba(30,73,72,.035);
  background: #FFFEFB; font-size: var(--fs-md); line-height: 1.65;
  transition: background .2s, border-color .2s, box-shadow .2s, transform .2s;
}
.choice:hover { background: #F2F8F4; border-color: #8BBAAC; box-shadow: 0 6px 16px rgba(39,94,90,.1); }
.choice:active { box-shadow: 0 0 0 rgba(42,94,88,.06); transform: scale(.99); }
.choice-idx {
  width: 28px; height: 28px; font-size: 11px; margin-top: 0;
  border-radius: 9px; color: #31756E; background: #EDF5EF;
}
.choice-label { color: #294A4A; }
.choice-hint { color: #7B8F88; margin-top: 3px; }
/* The visual style must not reveal the "correct" answer before choosing. */
.choice--risky, .choice--wise { background: #FFFEFB; border-color: #D7E4DC; }
.choice--risky .choice-idx, .choice--wise .choice-idx { color: #31756E; background: #EDF5EF; }
.choice--risky::before, .choice--risky::after { display: none; animation: none; }
.choice--risky:hover, .choice--wise:hover { border-color: #8BBAAC; background: #F2F8F4; }
.choice--locked { opacity: .45; }
.continue-cue {
  display: flex; align-items: center; justify-content: center;
  min-height: 43px; border-radius: 10px; cursor: pointer;
  background: #F0F5F0; margin-top: 0;
}
.continue-cue svg { color: #31766F; }
@media (max-height: 700px) {
  .stage-scene { height: clamp(148px, 24dvh, 210px); min-height: 0; }
  .game-story { padding-top: 13px; }
}

/* === RESULT · 清晰复盘 === */
.result { background: #F8F7F1; }
.result-hero {
  padding: 27px 18px 23px; border-bottom: 0; border-radius: 0 0 24px 24px;
  background: linear-gradient(130deg, #EAF1E9 0%, #FCF3E7 100%);
}
.result-hero-art { opacity: .35; }
.result-ending-tag { font-size: 10px; letter-spacing: .17em; color: #55827E; }
.result-title { font-size: clamp(27px,8vw,36px); letter-spacing: .10em; }
.result-sub { line-height: 1.75; }
.result-loss {
  transform: none; padding: 10px 30px; border: 1px solid #DDE5DC; border-radius: 15px;
  background: rgba(255,255,255,.86); box-shadow: 0 5px 17px rgba(27,66,62,.08);
}
.result-loss b { font-size: 32px; }
.result-body { gap: 13px; padding: 18px 15px 32px; }
.panel { padding: 17px; border: 1px solid #E1E9DF; border-radius: 17px; background: #FFFEFA; box-shadow: 0 5px 17px rgba(23,65,64,.045); }
.panel-title { font-size: 14px; color: #244E4B; margin-bottom: 12px; }
.panel-title .rule { border-top: 1px solid #E0E8E1; }
.panel p { font-size: 12px; line-height: 1.85; }
.chart-wrap { overflow: hidden; border-radius: 10px; }
.trap-item { border-radius: 9px; background: #FFF5EE; }
.trap-item--ok { background: #ECF7F1; }
.kcard { border-radius: 13px; padding: 14px; background: #F6F8F2; box-shadow: none; border-color: #DDE8DF; cursor: pointer; }
.kcard-term { font-size: 20px; }
.kcard-kicker { color: #397C74; }
.kcard-quote { border-left-color: #7FB5A1; }
.kcard-dots i.on { background: #307D74; }
.act-item { border: 1px solid #E2EAE2; background: #F9FBF8; border-radius: 12px; min-height: 48px; }
.act-item:hover { background: #EFF7F1; }
.act-item svg { color: #367F75; }
.gal-item { border: 1px solid #E1E9DF; border-radius: 15px; }
.sheet-host { background: rgba(5,25,29,.55); }
.sheet { border: 1px solid #D9E5DC; border-radius: 24px 24px 0 0; }
@media (min-width: 768px) { .sheet { border-radius: 22px; } }
@media (prefers-reduced-motion: reduce) {
  .script-card:hover, .home-tile:hover, .choice:hover { transform: none; }
}

/* 末端补丁：窄桌面固定手机宽度、继续按钮语义化 */
@media (min-width: 768px) and (max-width: 1059px) { .device { width: min(390px, 100%); flex: 0 1 390px; } }
.continue-cue { width: 100%; gap: 9px; font-size: 12px; font-weight: 800; color: #31766F; }
.continue-cue:focus-visible { outline: 3px solid #DE8D5E; }
.home-hero .home-kicker svg { flex: 0 0 auto; }
