:root {
  color-scheme: dark;
  --ink: #10112b;
  --ink-2: #181a3e;
  --paper: #f5f3ff;
  --violet: #5146ff;
  --violet-2: #8d63ff;
  --lime: #d9ff43;
  --coral: #ff665c;
  --cyan: #7ff4eb;
  --muted: #aba9c8;
  --line: rgba(245, 243, 255, .18);
  --safe-bottom: max(18px, env(safe-area-inset-bottom));
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background: var(--ink);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { background: #050611; scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: #050611; color: var(--paper); }
button, input { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }

#app {
  width: 100%; max-width: 430px; min-height: 100dvh; margin: 0 auto; overflow: hidden;
  container-type: inline-size; background: var(--ink); box-shadow: 0 0 80px rgba(81,70,255,.12);
}
.screen { min-height: 100dvh; position: relative; isolation: isolate; }
.noise::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .055; z-index: 20;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
}
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 22px; height: 4px; background: var(--lime); }

/* 起始任务台 */
.intro {
  display: grid; grid-template-rows: auto 1fr auto; min-height: 100dvh;
  background:
    radial-gradient(circle at 78% 16%, rgba(141, 99, 255, .35), transparent 27rem),
    linear-gradient(145deg, #11122d 0 64%, #191b46 64%);
}
.intro-header { padding: 26px 22px 0; display: flex; justify-content: space-between; align-items: center; }
.brand-mark { font-size: .76rem; font-weight: 900; letter-spacing: .16em; }
.duration-pill { border: 1px solid var(--line); padding: 9px 12px; border-radius: 999px; color: var(--muted); font-size: .8rem; }
.intro-stage { position: relative; display: grid; align-content: center; padding: 44px 22px 28px; max-width: 720px; width: 100%; margin: 0 auto; }
.intro-stage::before {
  content: ""; position: absolute; width: 290px; height: 290px; right: -135px; top: 2%; border: 1px solid rgba(217,255,67,.35); border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(81,70,255,.12), 0 0 0 88px rgba(81,70,255,.07);
}
.intro h1 { margin: 18px 0 12px; max-width: 620px; font-size: clamp(2.85rem, 12vw, 6.8rem); line-height: .9; letter-spacing: -.075em; font-weight: 950; }
.intro h1 .cut { color: var(--ink); -webkit-text-stroke: 1px var(--paper); position: relative; }
.intro h1 .cut::after { content: ""; position: absolute; left: -2%; right: -4%; top: 54%; height: 12px; background: var(--lime); transform: rotate(-4deg); z-index: -1; }
.intro-lede { max-width: 560px; color: #c7c5de; font-size: 1.02rem; line-height: 1.7; margin: 0 0 28px; }
.task-prompt { display: flex; justify-content: space-between; align-items: end; margin: 0 0 12px; }
.task-prompt strong { font-size: 1.1rem; }
.task-prompt span { color: var(--muted); font-size: .78rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.custom-task-wrap { position: relative; display: block; margin-bottom: 12px; }
.custom-task-input {
  width: 100%; min-height: 54px; border: 1px solid var(--line); border-radius: 0; padding: 0 92px 0 16px;
  background: rgba(16,17,43,.78); color: white; outline: 0;
}
.custom-task-input::placeholder { color: rgba(245,243,255,.5); }
.custom-task-wrap > i { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--lime); font-size: .78rem; font-style: normal; font-weight: 900; }
.scenario-deck { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.scenario-chip {
  min-height: 72px; border: 1px solid var(--line); background: rgba(16,17,43,.72); text-align: left; padding: 12px 14px;
  display: grid; grid-template-columns: 32px 1fr; align-items: center; gap: 8px; cursor: pointer; transform: skewX(-3deg); transition: .2s ease;
}
.scenario-chip > * { transform: skewX(3deg); }
.scenario-chip i { font-style: normal; color: var(--lime); font-size: 1.25rem; }
.scenario-chip b { font-size: .92rem; }
.scenario-chip[aria-pressed="true"] { background: var(--lime); color: var(--ink); border-color: var(--lime); transform: skewX(-3deg) translateY(-3px); box-shadow: 8px 8px 0 var(--violet); }
.scenario-chip[aria-pressed="true"] i { color: var(--ink); }
.intro-footer { padding: 12px 22px var(--safe-bottom); background: linear-gradient(transparent, rgba(16,17,43,.96) 28%); }
.primary-action {
  width: 100%; min-height: 58px; border: 0; background: var(--lime); color: var(--ink); font-weight: 950; letter-spacing: .03em; cursor: pointer;
  clip-path: polygon(0 0, 96% 0, 100% 22%, 100% 100%, 4% 100%, 0 78%); transition: transform .18s ease, filter .18s ease;
}
.primary-action:hover { filter: brightness(1.06); transform: translateY(-2px); }
.primary-action:disabled { opacity: .38; cursor: not-allowed; transform: none; }
.micro-note { text-align: center; color: var(--muted); font-size: .76rem; margin: 10px 0 0; }

/* 情境录像带 */
.quiz-screen { background: var(--paper); color: var(--ink); display: grid; grid-template-rows: auto 1fr auto; }
.quiz-screen::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 7px; background: repeating-linear-gradient(to bottom, var(--violet) 0 18px, var(--lime) 18px 26px); }
.quiz-top { padding: 18px 18px 8px 25px; display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 12px; }
.icon-button { width: 42px; height: 42px; border: 1px solid rgba(16,17,43,.18); background: transparent; cursor: pointer; font-size: 1.2rem; }
.progress-track { height: 8px; background: #dedbea; position: relative; overflow: hidden; transform: skewX(-12deg); }
.progress-fill { position: absolute; inset: 0 auto 0 0; background: var(--violet); transition: width .35s ease; }
.progress-count { font-size: .82rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.question-stage { display: grid; align-content: center; padding: 20px 20px 24px 29px; max-width: 760px; width: 100%; margin: 0 auto; }
.scene-stamp { display: flex; align-items: center; gap: 10px; color: var(--violet); font-weight: 900; font-size: .76rem; letter-spacing: .12em; }
.scene-stamp::after { content: ""; height: 1px; flex: 1; background: rgba(81,70,255,.24); }
.question-stage h2 { font-size: clamp(2rem, 8vw, 4rem); line-height: 1.12; letter-spacing: -.045em; margin: 18px 0 30px; max-width: 650px; }
.tape-options { display: grid; gap: 12px; }
.tape-option {
  position: relative; min-height: 74px; border: 0; padding: 16px 50px 16px 17px; text-align: left; color: var(--ink); cursor: pointer;
  background: #e3e0ef; clip-path: polygon(0 0, 97% 0, 100% 16%, 97% 100%, 3% 100%, 0 84%); transition: .18s ease; font-weight: 720; line-height: 1.45;
}
.tape-option:nth-child(2) { margin-left: 12px; background: #d9d5ee; }
.tape-option:nth-child(3) { margin-right: 12px; background: #cfcae7; }
.tape-option::after { content: attr(data-key); position: absolute; right: 17px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; font-weight: 950; color: rgba(16,17,43,.19); }
.tape-option:hover, .tape-option.selected { background: var(--lime); transform: translateX(6px); box-shadow: -8px 8px 0 var(--violet); }
.quiz-foot { padding: 11px 20px var(--safe-bottom) 29px; display: flex; justify-content: space-between; align-items: center; color: #69677f; font-size: .78rem; }
.pulse-line { width: 76px; height: 16px; background: linear-gradient(90deg, transparent, var(--violet), transparent); background-size: 200% 100%; animation: scan 2s linear infinite; }

/* 结果揭示 */
.reveal-screen { background: var(--ink); }
.reveal-hero { min-height: 100dvh; display: grid; align-content: center; padding: 30px 22px; position: relative; overflow: hidden; }
.reveal-loop { position: absolute; width: 470px; height: 470px; right: -260px; top: -70px; border: 44px solid var(--violet); border-radius: 48% 52% 50% 46%; transform: rotate(23deg); opacity: .76; }
.reveal-loop::after { content: ""; position: absolute; width: 110px; height: 80px; background: var(--lime); left: 5px; bottom: 52px; transform: rotate(-31deg); }
.reveal-kicker { color: var(--lime); font-weight: 900; letter-spacing: .12em; font-size: .78rem; }
.reveal-hero h1 { font-size: clamp(3.2rem, 14vw, 7rem); line-height: .88; letter-spacing: -.075em; margin: 20px 0; max-width: 760px; }
.reveal-hero h1 small { display: block; font-size: .27em; letter-spacing: .05em; color: var(--muted); margin-bottom: 9px; }
.reveal-summary { color: #cfcee2; font-size: 1.02rem; line-height: 1.7; max-width: 620px; }
.score-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; margin: 27px 0; max-width: 620px; align-items: end; height: 110px; }
.score-pillar { position: relative; background: rgba(245,243,255,.1); height: 100%; display: flex; align-items: end; }
.score-pillar i { display: block; width: 100%; background: var(--bar); height: var(--h); min-height: 4px; }
.score-pillar b { position: absolute; bottom: -24px; width: 100%; text-align: center; font-size: .63rem; color: var(--muted); }
.reveal-actions { display: grid; gap: 10px; margin-top: 24px; max-width: 620px; }
.secondary-action { min-height: 54px; border: 1px solid var(--line); background: transparent; font-weight: 850; cursor: pointer; }

/* 连续检修图，而非卡片堆 */
.report { background: var(--paper); color: var(--ink); overflow: clip; }
.report-nav { position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: rgba(16,17,43,.94); color: var(--paper); backdrop-filter: blur(14px); }
.report-nav strong { font-size: .8rem; letter-spacing: .08em; }
.report-nav button { border: 1px solid rgba(255,255,255,.25); background: transparent; min-height: 38px; padding: 0 12px; cursor: pointer; }
.report-section { position: relative; padding: 68px 20px; }
.report-section > .inner { max-width: 840px; margin: 0 auto; }
.report-number { display: inline-block; padding: 6px 9px; background: var(--ink); color: var(--lime); font-weight: 950; transform: rotate(-2deg); font-size: .72rem; }
.report h2 { font-size: clamp(2.25rem, 10vw, 5rem); line-height: .95; letter-spacing: -.06em; margin: 18px 0; }
.report h3 { font-size: 1.25rem; margin: 0 0 9px; }
.report p { line-height: 1.72; }
.report-intro { background: var(--violet); color: white; min-height: 78dvh; display: grid; align-content: center; }
.report-intro::after { content: ""; position: absolute; right: -10%; bottom: -70px; width: 58%; height: 160px; background: var(--lime); transform: rotate(-7deg); }
.report-intro .meta-line { display: flex; gap: 8px; flex-wrap: wrap; }
.meta-tag { border: 1px solid rgba(255,255,255,.4); padding: 7px 10px; font-size: .76rem; }
.loop-board { background: var(--ink); color: var(--paper); padding-top: 90px; padding-bottom: 90px; }
.loop-diagram { margin: 28px auto 0; width: min(100%, 680px); display: block; }
.loop-diagram text { font-family: inherit; }
.loop-path { stroke-dasharray: 12 8; animation: dash 20s linear infinite; }
.chart-band { background: #e2dfff; }
.split-grid { display: grid; gap: 26px; }
.polar-wrap { background: var(--paper); border: 2px solid var(--ink); padding: 16px; box-shadow: 10px 10px 0 var(--ink); }
.polar-chart { width: 100%; display: block; }
.ranking-list { display: grid; gap: 10px; }
.rank-line { display: grid; grid-template-columns: 90px 1fr 38px; gap: 10px; align-items: center; }
.rank-track { height: 13px; background: rgba(16,17,43,.12); overflow: hidden; }
.rank-track i { display: block; height: 100%; background: var(--color); width: var(--value); }
.fault-line { background: var(--lime); }
.fault-pipeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 32px; }
.pipe-step { min-height: 124px; padding: 12px 9px; background: rgba(16,17,43,.11); display: flex; flex-direction: column; justify-content: space-between; }
.pipe-step.active { background: var(--ink); color: var(--paper); transform: translateY(-12px); }
.pipe-step b { font-size: .72rem; }
.pipe-step span { font-size: .84rem; line-height: 1.35; }
.evidence-section { background: var(--ink); color: var(--paper); }
.evidence-reel { border-left: 4px solid var(--lime); margin-top: 30px; }
.evidence-frame { padding: 20px 0 22px 20px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 38px 1fr; gap: 13px; }
.evidence-frame em { width: 34px; height: 34px; display: grid; place-items: center; background: var(--lime); color: var(--ink); font-style: normal; font-weight: 950; }
.evidence-frame p { margin: 5px 0 0; color: #bcbad2; }
.heat-section { background: #ff9b91; }
.heat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 26px; }
.heat-cell { min-height: 108px; padding: 10px; background: rgba(255,255,255,var(--heat)); display: flex; flex-direction: column; justify-content: space-between; border: 1px solid rgba(16,17,43,.3); }
.heat-cell b { font-size: .75rem; }
.heat-cell strong { font-size: 1.5rem; }
.dual-section { background: #d9d5ff; }
.dual-rail { display: grid; grid-template-columns: 1fr 54px 1fr; align-items: stretch; margin: 28px 0; }
.dual-side { padding: 22px 14px; border: 2px solid var(--ink); }
.dual-side strong { font-size: 1.2rem; display: block; margin-bottom: 12px; }
.dual-joint { background: var(--violet); color: white; writing-mode: vertical-rl; display: grid; place-items: center; font-weight: 950; letter-spacing: .1em; }
.timeline-section { background: var(--paper); }
.energy-line { display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; gap: 4px; height: 180px; margin-top: 32px; border-bottom: 3px solid var(--ink); }
.energy-column { height: var(--h); background: var(--violet); min-height: 18px; position: relative; }
.energy-column.hot { background: var(--coral); }
.energy-column span { position: absolute; bottom: -34px; left: 50%; transform: translateX(-50%); font-size: .68rem; white-space: nowrap; }
.scenario-table { width: 100%; border-collapse: collapse; margin-top: 26px; }
.scenario-table th, .scenario-table td { border: 1px solid var(--ink); padding: 14px; text-align: left; vertical-align: top; }
.scenario-table th { background: var(--ink); color: var(--paper); }
.anti-section { background: var(--coral); }
.anti-list { margin: 26px 0 0; padding: 0; list-style: none; counter-reset: anti; }
.anti-list li { counter-increment: anti; padding: 18px 0 18px 55px; border-top: 2px solid rgba(16,17,43,.35); position: relative; font-weight: 750; }
.anti-list li::before { content: counter(anti); position: absolute; left: 0; top: 12px; width: 38px; height: 38px; border: 2px solid var(--ink); display: grid; place-items: center; font-weight: 950; }
.runway-section { background: var(--ink); color: var(--paper); }
.runway { margin-top: 28px; display: grid; gap: 8px; }
.runway-step { display: grid; grid-template-columns: 54px 1fr; min-height: 86px; background: rgba(255,255,255,.08); }
.runway-step b { display: grid; place-items: center; background: var(--violet); color: white; }
.runway-step p { padding: 0 14px; align-self: center; }
.runway-step:first-child { background: var(--lime); color: var(--ink); transform: translateX(8px); }
.action-switch { background: var(--lime); min-height: 70dvh; display: grid; align-content: center; }
.action-box { border: 3px solid var(--ink); padding: 24px 18px; background: var(--paper); box-shadow: 12px 12px 0 var(--violet); }
.action-box .action-text { font-size: clamp(1.45rem, 6vw, 2.5rem); font-weight: 900; line-height: 1.26; margin: 15px 0 22px; }
.action-toggle { width: 100%; min-height: 62px; border: 2px solid var(--ink); background: var(--ink); color: var(--paper); font-weight: 950; cursor: pointer; }
.action-toggle.done { background: var(--lime); color: var(--ink); }
.seven-section { background: #d9d5ff; }
.seven-grid { display: grid; grid-template-columns: repeat(7, 1fr); border: 2px solid var(--ink); margin-top: 25px; }
.day { min-height: 102px; border-right: 1px solid var(--ink); padding: 8px 5px; }
.day:last-child { border-right: 0; }
.day b { display: block; font-size: .7rem; margin-bottom: 8px; }
.day span { font-size: .65rem; line-height: 1.25; display: block; writing-mode: vertical-rl; }
.share-section { background: var(--violet); color: white; }
.share-preview { display: grid; grid-template-columns: repeat(4, 78%); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 26px -20px 0; padding: 0 20px 18px; scrollbar-width: none; }
.share-preview canvas { width: 100%; height: auto; scroll-snap-align: center; box-shadow: 0 12px 30px rgba(0,0,0,.25); }
.share-actions { display: grid; gap: 10px; margin-top: 18px; }
.share-actions .primary-action { background: var(--lime); }
.share-actions .secondary-action { border-color: rgba(255,255,255,.45); }
.boundary { background: var(--ink); color: #bbb9d1; padding: 48px 20px 80px; font-size: .8rem; }
.boundary strong { color: var(--paper); }

/* 激活 */
.activation-dialog { width: min(100% - 24px, 406px); padding: 0; border: 0; background: transparent; color: var(--ink); }
.activation-dialog::backdrop { background: rgba(7,8,26,.8); backdrop-filter: blur(8px); }
.activation-sheet { position: relative; background: var(--paper); padding: 28px 22px 22px; border: 3px solid var(--ink); box-shadow: 12px 12px 0 var(--violet); }
.activation-sheet h2 { font-size: 2rem; line-height: 1.02; margin: 14px 0; }
.activation-sheet p { color: #5f5c75; line-height: 1.6; }
.activation-sheet label { display: block; font-weight: 850; margin: 18px 0 7px; }
.activation-sheet input { width: 100%; min-height: 54px; border: 2px solid var(--ink); background: white; color: var(--ink); padding: 0 14px; text-transform: uppercase; margin-bottom: 12px; }
.activation-sheet small { display: block; color: #77748b; line-height: 1.5; margin-top: 10px; }
.close-dialog { position: absolute; right: 12px; top: 12px; width: 38px; height: 38px; border: 1px solid rgba(16,17,43,.25); background: transparent; cursor: pointer; }
.form-error { color: #b42318 !important; background: #fee4e2; padding: 10px; margin: 0 0 10px !important; }
#toast { position: fixed; z-index: 100; left: 50%; bottom: calc(var(--safe-bottom) + 12px); transform: translate(-50%, 20px); background: var(--ink); color: white; padding: 12px 16px; opacity: 0; pointer-events: none; transition: .25s ease; border: 1px solid rgba(255,255,255,.2); max-width: calc(100% - 32px); }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

@keyframes scan { to { background-position: -200% 0; } }
@keyframes dash { to { stroke-dashoffset: -160; } }

@container (max-width: 430px) {
  .scenario-table, .scenario-table tbody, .scenario-table tr, .scenario-table th, .scenario-table td { display: block; }
  .scenario-table thead { display: none; }
  .scenario-table tr { border: 2px solid var(--ink); margin-bottom: 10px; }
  .scenario-table td { border: 0; border-bottom: 1px solid rgba(16,17,43,.2); padding: 10px 12px; }
  .scenario-table td::before { content: attr(data-label); display: block; font-size: .68rem; color: #6f6c82; font-weight: 900; margin-bottom: 4px; }
  .scenario-table td:last-child { border-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition-duration: .01ms !important; }
}

/* v2：摄影场景主导，撤掉网页组件式色块 */
.noise::before { opacity: .025; }
.intro {
  display: block;
  background: #080919 url("./assets/hero-desk.png") center / cover no-repeat;
}
.intro::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(5,6,20,.88) 0%, rgba(5,6,20,.35) 28%, rgba(5,6,20,.12) 50%, rgba(5,6,20,.92) 100%);
}
.intro-header { position: absolute; z-index: 2; inset: 0 0 auto; }
.duration-pill { border: 0; background: rgba(8,9,25,.42); backdrop-filter: blur(10px); }
.intro-stage { min-height: 100dvh; align-content: start; padding-top: 106px; padding-bottom: 190px; }
.intro-stage::before { display: none; }
.intro h1 { font-size: clamp(2.35rem, 10vw, 5rem); line-height: .94; max-width: 520px; text-shadow: 0 3px 28px rgba(0,0,0,.6); }
.intro h1 .cut { color: var(--lime); -webkit-text-stroke: 0; }
.intro h1 .cut::after { display: none; }
.intro-lede { max-width: 420px; color: rgba(245,243,255,.78); font-size: .94rem; line-height: 1.58; text-shadow: 0 2px 18px rgba(0,0,0,.85); }
.task-prompt { position: absolute; left: 22px; right: 22px; bottom: 238px; margin: 0; text-shadow: 0 2px 12px #000; }
.task-prompt strong { font-size: .92rem; }
.task-prompt span { color: rgba(245,243,255,.72); }
.custom-task-wrap { position: absolute; z-index: 3; left: 22px; right: 22px; bottom: 174px; margin: 0; }
.custom-task-input {
  min-height: 52px; border: 1px solid rgba(217,255,67,.58); border-radius: 15px; padding-left: 17px;
  background: rgba(7,8,24,.7); box-shadow: 0 12px 28px rgba(0,0,0,.28), inset 0 1px rgba(255,255,255,.08); backdrop-filter: blur(14px);
}
.custom-task-input:focus { border-color: var(--lime); box-shadow: 0 0 0 3px rgba(217,255,67,.18), 0 12px 28px rgba(0,0,0,.35); }
.scenario-deck {
  position: absolute; left: 0; right: 0; bottom: 93px; display: flex; gap: 18px; overflow-x: auto; padding: 6px 22px 10px; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.scenario-chip {
  flex: 0 0 64px; min-height: 64px; padding: 0; border: 0; background: transparent; display: grid; grid-template-columns: 1fr; place-items: center; gap: 2px; transform: none; scroll-snap-align: center;
}
.scenario-chip > * { transform: none; }
.scenario-chip i { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: white; background: rgba(8,9,25,.48); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.32); }
.scenario-chip b { font-size: .69rem; white-space: nowrap; text-shadow: 0 2px 10px #000; }
.scenario-chip[aria-pressed="true"] { background: transparent; color: white; border: 0; transform: translateY(-5px); box-shadow: none; }
.scenario-chip[aria-pressed="true"] i { background: var(--lime); color: var(--ink); box-shadow: 0 0 28px rgba(217,255,67,.48); }
.intro-footer { position: absolute; z-index: 2; bottom: 0; left: 0; right: 0; padding-top: 46px; }
.intro-footer .primary-action { min-height: 52px; width: min(100%, 470px); display: block; margin: 0 auto; clip-path: none; border-radius: 999px; background: rgba(217,255,67,.94); box-shadow: 0 8px 34px rgba(0,0,0,.35); }
.micro-note { font-size: .68rem; }

.quiz-screen {
  display: block; color: #18152e; background: #11122b url("./assets/question-desk.png") center / cover no-repeat;
}
.quiz-screen::after { display: none; }
.quiz-screen::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,9,25,.62), transparent 31%, transparent 88%, rgba(8,9,25,.42)); pointer-events: none; }
.quiz-top { position: absolute; z-index: 3; inset: 10px 10px auto; color: white; grid-template-columns: 42px 1fr auto; padding: 8px; }
.quiz-top .icon-button { color: white; border: 0; background: rgba(8,9,25,.36); border-radius: 50%; backdrop-filter: blur(9px); }
.progress-track { height: 3px; background: rgba(255,255,255,.28); transform: none; }
.progress-fill { background: var(--lime); }
.question-stage { display: block; min-height: 100dvh; padding: 0; position: relative; }
.scene-stamp { position: absolute; top: 72px; left: 24px; right: 24px; color: var(--lime); text-shadow: 0 2px 12px #000; }
.scene-stamp::after { background: rgba(217,255,67,.4); }
.question-stage h2 {
  position: absolute; z-index: 2; top: 100px; left: 24px; right: 24px; margin: 0; color: white; font-size: clamp(1.35rem, 5.5vw, 2.5rem); line-height: 1.24; letter-spacing: -.02em; text-shadow: 0 3px 20px rgba(0,0,0,.85);
}
.tape-options { position: absolute; inset: 36.8% 5.5% 7%; display: block; }
.tape-option {
  position: absolute; left: 0; right: 0; height: 18%; min-height: 0; padding: 0 46px 0 30px; display: flex; align-items: center; border: 0; background: transparent !important; clip-path: none; box-shadow: none !important; color: #201b32; font-size: clamp(.78rem, 3.3vw, 1rem); font-weight: 750; line-height: 1.38; transform: rotate(-1.2deg);
}
.tape-option:nth-child(1) { top: 2%; }
.tape-option:nth-child(2) { top: 34%; margin: 0; transform: rotate(-2.5deg); }
.tape-option:nth-child(3) { top: 65.5%; margin: 0; transform: rotate(-2deg); }
.tape-option::after { right: 18px; color: rgba(81,70,255,.42); font-size: 1.15rem; }
.tape-option:hover, .tape-option.selected { transform: translateX(4px) rotate(-1deg); color: #4a34ce; text-shadow: 0 0 1px rgba(81,70,255,.2); }
.tape-option.selected::before { content: ""; position: absolute; left: 10px; width: 9px; height: 9px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 0 5px rgba(81,70,255,.16); }
.quiz-foot { position: absolute; z-index: 3; inset: auto 14px max(4px, env(safe-area-inset-bottom)); color: rgba(255,255,255,.72); padding: 8px 12px; text-shadow: 0 2px 10px #000; }
.pulse-line { background: linear-gradient(90deg, transparent, var(--lime), transparent); }

.reveal-screen { background: #080918; }
.reveal-hero { background: #080918 url("./assets/result-loop.png") center / cover no-repeat; align-content: start; padding-top: 84px; }
.reveal-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5,6,20,.86), rgba(5,6,20,.08) 42%, rgba(5,6,20,.92) 88%); }
.reveal-loop { display: none; }
.reveal-kicker { font-size: .72rem; text-shadow: 0 2px 12px #000; }
.reveal-hero h1 { font-size: clamp(2.35rem, 10vw, 5rem); max-width: 540px; text-shadow: 0 4px 28px #000; }
.reveal-summary { position: absolute; left: 22px; right: 22px; bottom: 236px; color: rgba(255,255,255,.86); text-shadow: 0 3px 18px #000; }
.score-strip { position: absolute; left: 22px; right: 22px; bottom: 128px; height: 76px; margin: 0; padding: 0 4px; }
.score-pillar { background: rgba(255,255,255,.12); backdrop-filter: blur(7px); }
.score-pillar b { color: rgba(255,255,255,.76); text-shadow: 0 2px 8px #000; }
.reveal-actions { position: absolute; left: 22px; right: 22px; bottom: var(--safe-bottom); grid-template-columns: 1fr; margin: 0; }
.reveal-actions .primary-action { border-radius: 999px; clip-path: none; }
.reveal-actions .secondary-action { min-height: 44px; border: 0; text-decoration: underline; color: rgba(255,255,255,.78); }

.report { background: #0b0c20; color: #f5f3ff; }
.report-section { background: transparent !important; color: inherit !important; border-top: 1px solid rgba(255,255,255,.12); padding-top: 84px; padding-bottom: 84px; }
.report-section::before { content: ""; position: absolute; left: 20px; top: 0; width: 1px; height: 100%; background: linear-gradient(transparent, rgba(217,255,67,.25), transparent); }
.report-number { padding: 0; background: transparent; color: var(--lime); transform: none; letter-spacing: .18em; }
.report h2 { font-size: clamp(2rem, 8vw, 4.4rem); max-width: 720px; }
.report p { color: rgba(245,243,255,.72); }
.report-intro {
  min-height: 100dvh; background: #080918 url("./assets/result-loop.png") center / cover no-repeat !important; align-content: end; padding-bottom: 78px;
}
.report-intro::before { inset: 0; width: auto; background: linear-gradient(180deg, rgba(5,6,20,.78), rgba(5,6,20,.1) 44%, rgba(5,6,20,.9)); }
.report-intro::after { display: none; }
.meta-tag { border: 0; border-bottom: 1px solid rgba(255,255,255,.35); padding-left: 0; }
.loop-board { background: radial-gradient(circle at 50% 45%, rgba(81,70,255,.22), transparent 35%) !important; }
.polar-wrap { background: transparent; border: 0; padding: 0; box-shadow: none; filter: invert(1) hue-rotate(180deg); opacity: .9; }
.ranking-list { border-top: 1px solid rgba(255,255,255,.18); padding-top: 18px; }
.rank-track { height: 4px; background: rgba(255,255,255,.14); }
.fault-pipeline { position: relative; gap: 0; grid-template-columns: repeat(4,1fr); padding-top: 32px; }
.fault-pipeline::before { content: ""; position: absolute; left: 8%; right: 8%; top: 42px; height: 2px; background: rgba(255,255,255,.28); }
.pipe-step, .pipe-step.active { min-height: 150px; background: transparent; color: inherit; transform: none; padding: 0 10px; position: relative; }
.pipe-step::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: #5b5872; border: 3px solid #0b0c20; box-shadow: 0 0 0 1px rgba(255,255,255,.3); margin: 0 auto 28px; z-index: 2; }
.pipe-step.active::before { background: var(--lime); box-shadow: 0 0 28px rgba(217,255,67,.6); }
.pipe-step b, .pipe-step span { text-align: center; }
.evidence-reel { border-left: 0; }
.evidence-frame { border-bottom: 1px solid rgba(255,255,255,.15); }
.evidence-frame em { border-radius: 50%; background: transparent; color: var(--lime); border: 1px solid var(--lime); }
.heat-grid { gap: 18px; }
.heat-cell { aspect-ratio: 1; min-height: 0; border-radius: 50%; border: 1px solid rgba(255,255,255,.26); background: radial-gradient(circle, rgba(255,102,92,var(--heat)), rgba(255,102,92,.04) 68%, transparent 70%); text-align: center; align-items: center; justify-content: center; gap: 8px; color: white; }
.dual-rail { grid-template-columns: 1fr 36px 1fr; }
.dual-side { padding: 20px 6px; border: 0; border-top: 1px solid rgba(255,255,255,.28); border-bottom: 1px solid rgba(255,255,255,.28); }
.dual-joint { background: transparent; color: var(--lime); }
.energy-line { border-bottom-color: rgba(255,255,255,.35); }
.energy-column { width: 6px; justify-self: center; border-radius: 99px 99px 0 0; box-shadow: 0 0 18px rgba(81,70,255,.65); }
.scenario-table th, .scenario-table td { border-color: rgba(255,255,255,.18); }
.scenario-table th { background: transparent; color: var(--lime); }
.anti-list li { border-top-color: rgba(255,255,255,.18); }
.anti-list li::before { border-color: rgba(255,255,255,.45); }
.runway-step, .runway-step:first-child { background: transparent; color: inherit; transform: none; border-bottom: 1px solid rgba(255,255,255,.16); }
.runway-step b { background: transparent; color: var(--lime); border-right: 1px solid rgba(255,255,255,.2); }
.action-switch { min-height: 82dvh; background: #080918 url("./assets/hero-desk.png") center / cover no-repeat !important; }
.action-switch::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(5,6,20,.72); }
.action-box { border: 0; background: transparent; box-shadow: none; padding: 24px 0; }
.action-box .action-text { color: white; text-shadow: 0 3px 24px #000; }
.action-toggle { border: 1px solid rgba(255,255,255,.4); border-radius: 999px; background: rgba(8,9,25,.45); backdrop-filter: blur(12px); }
.seven-grid { border: 0; gap: 8px; }
.day { min-height: 84px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: 11px 4px; text-align: center; }
.day span { writing-mode: vertical-rl; margin: auto; }
.share-preview canvas { border-radius: 20px; }
.boundary { border-top: 1px solid rgba(255,255,255,.12); }

@container (max-width: 430px) {
  .scenario-table tr { border-color: rgba(255,255,255,.2); }
  .scenario-table td { border-bottom-color: rgba(255,255,255,.13); }
  .scenario-table td::before { color: var(--lime); }
}

@media (min-width: 431px) {
  #app { border-left: 1px solid rgba(255,255,255,.07); border-right: 1px solid rgba(255,255,255,.07); }
}
