:root {
  --blue: #0566ff;
  --deep-blue: #082b87;
  --lime: #c7ff35;
  --paper: #f5f6f2;
  --white: #ffffff;
  --ink: #151515;
  --muted: #686d72;
  --line: #151515;
  --soft: #d9dcd7;
  --soft-blue: #dce9ff;
  --danger: #ff5c35;
  --yes: #0566ff;
  --no: #151515;
  --irrelevant: #b8bdc2;
  --radius-page: 28px;
  --radius-card: 16px;
  --shadow-card: 0 20px 60px rgba(5, 28, 85, 0.16);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-pop: cubic-bezier(0.34, 1.56, 0.64, 1);
  --sans: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  --display: "Arial Black", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: #dfe1de;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(rgba(21, 21, 21, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 21, 21, 0.035) 1px, transparent 1px),
    #dfe1de;
  background-size: 32px 32px;
  font-family: var(--sans);
  text-rendering: geometricPrecision;
}

body[data-theme="editorial"] {
  --deep-blue: #f5f6f2;
  --paper: #ffffff;
  --soft-blue: #e8eeff;
}

body[data-theme="night"] {
  --paper: #16191d;
  --white: #20242a;
  --ink: #f7f7f3;
  --muted: #aeb4bb;
  --line: #f7f7f3;
  --soft: #343a42;
  --soft-blue: #112e66;
  background-color: #0e1115;
}

body.no-motion *,
body.no-motion *::before,
body.no-motion *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  scroll-behavior: auto !important;
  transition-duration: 0.001ms !important;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
[role="button"] {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 4px solid var(--lime);
  outline-offset: 3px;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.app-frame {
  width: min(1440px, calc(100vw - 40px));
  min-height: min(900px, calc(100vh - 40px));
  margin: 20px auto;
  overflow: hidden;
  border: 2px solid var(--line);
  border-radius: var(--radius-page);
  background: var(--paper);
  box-shadow: 0 28px 80px rgba(12, 28, 61, 0.18);
}

.topbar {
  display: grid;
  grid-template-columns: 220px 1fr 220px;
  align-items: center;
  min-height: 72px;
  padding: 0 28px;
  border-bottom: 2px solid var(--line);
  background: var(--paper);
}

.brand-button,
.nav-link,
.plain-button,
.topic-tab,
.icon-button,
.carousel-arrow,
.ghost-button,
.primary-button,
.secondary-button,
.chip-button,
.choice-card,
.recommend-button,
.report-action {
  min-height: 44px;
  border: 0;
  cursor: pointer;
}

.brand-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  padding: 6px 0;
  background: transparent;
}

.brand-button img {
  width: 72px;
  height: auto;
}

.product-name {
  padding-left: 12px;
  border-left: 2px solid var(--line);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.topnav {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.nav-link,
.plain-button {
  padding: 0 15px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  background: transparent;
  font-size: 13px;
  font-weight: 800;
}

.nav-link:hover,
.nav-link.is-active,
.plain-button:hover {
  border-color: var(--line);
}

.top-actions {
  display: flex;
  justify-content: flex-end;
}

.progress-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.screen {
  animation: screen-in 520ms var(--ease-out) both;
}

@keyframes screen-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.home-screen {
  min-height: calc(900px - 76px);
  color: #fff;
  background: var(--deep-blue);
}

body[data-theme="editorial"] .home-screen {
  color: var(--ink);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  min-height: 540px;
  border-bottom: 2px solid var(--line);
}

.hero-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(42px, 6vw, 82px);
  overflow: hidden;
  border-right: 2px solid var(--line);
  isolation: isolate;
}

.hero-copy::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.17;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.35) 1px, transparent 1px);
  background-size: 48px 48px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  max-width: 100%;
  padding: 9px 14px;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(199, 255, 53, 0.2);
}

.hero-title {
  max-width: 860px;
  margin: 26px 0 18px;
  font-family: var(--display);
  font-size: clamp(64px, 7.5vw, 118px);
  font-weight: 950;
  line-height: 0.88;
  letter-spacing: -0.085em;
  text-wrap: balance;
}

.hero-title .marker {
  color: var(--lime);
}

.hero-subtitle {
  max-width: 580px;
  margin: 0;
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.65;
  text-wrap: pretty;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 800;
}

.meta-number {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}

.hero-host {
  position: relative;
  display: grid;
  min-height: 540px;
  place-items: end center;
  overflow: hidden;
  background: var(--blue);
}

.host-sticker {
  position: absolute;
  top: 30px;
  right: 28px;
  display: grid;
  width: 132px;
  height: 132px;
  place-items: center;
  border: 2px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: var(--lime);
  font-size: 14px;
  font-weight: 950;
  line-height: 1.25;
  text-align: center;
  transform: rotate(8deg);
}

.host-orbit {
  position: absolute;
  inset: 56px 40px 72px;
  border: 2px dashed rgba(255, 255, 255, 0.65);
  border-radius: 50%;
  animation: orbit 26s linear infinite;
}

@keyframes orbit { to { transform: rotate(360deg); } }

.host-hero-image {
  position: relative;
  z-index: 1;
  width: min(88%, 480px);
  filter: drop-shadow(0 30px 18px rgba(1, 21, 68, 0.22));
  mix-blend-mode: multiply;
  transform: translateY(8%);
}

.choice-strip {
  display: grid;
  grid-template-columns: 1fr 1fr 260px;
  color: var(--ink);
  background: var(--paper);
}

.choice-card {
  position: relative;
  min-height: 220px;
  padding: 30px;
  border-right: 2px solid var(--line);
  text-align: left;
  background: var(--paper);
  transition: color 220ms ease, background 220ms ease;
}

.choice-card:hover,
.choice-card:focus-visible {
  color: #fff;
  background: var(--blue);
}

.choice-card .choice-index {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.choice-card h2 {
  max-width: 460px;
  margin: 34px 0 12px;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.choice-card p {
  max-width: 460px;
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
}

.choice-arrow {
  position: absolute;
  top: 28px;
  right: 28px;
  font-size: 38px;
  transition: transform 240ms var(--ease-out);
}

.choice-card:hover .choice-arrow { transform: translate(5px, -5px); }

.rule-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
  padding: 30px;
  background: var(--lime);
}

.rule-card strong {
  font-family: var(--display);
  font-size: 52px;
  line-height: 0.9;
  letter-spacing: -0.07em;
}

.rule-card span {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
}

.content-screen {
  min-height: calc(900px - 76px);
  padding: 32px;
  background: var(--paper);
}

.section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--line);
}

.section-title {
  margin: 8px 0 0;
  font-family: var(--display);
  font-size: clamp(42px, 5vw, 76px);
  line-height: 0.95;
  letter-spacing: -0.07em;
}

.section-title small {
  display: block;
  margin-bottom: 14px;
  color: var(--blue);
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.14em;
}

.mode-tabs {
  display: flex;
  gap: 8px;
}

.topic-tab {
  padding: 0 18px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font-size: 13px;
  font-weight: 900;
}

.topic-tab.is-active {
  color: #fff;
  background: var(--ink);
}

.carousel-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
  padding-top: 22px;
}

.carousel-shell {
  position: relative;
  min-height: 590px;
  overflow: hidden;
  border: 2px solid var(--line);
  border-radius: 22px;
  background: var(--blue);
  touch-action: pan-y;
}

.carousel-counter {
  position: absolute;
  top: 22px;
  left: 24px;
  z-index: 5;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.carousel-viewport {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  perspective: 1200px;
}

.topic-card {
  position: absolute;
  display: flex;
  width: min(620px, 72%);
  min-height: 430px;
  flex-direction: column;
  justify-content: space-between;
  padding: 34px;
  border: 2px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: var(--shadow-card);
  transition: transform 420ms var(--ease-out), opacity 300ms ease, filter 300ms ease;
  user-select: none;
}

.topic-card.is-current { z-index: 3; transform: translateX(0) rotate(0deg) scale(1); opacity: 1; }
.topic-card.is-prev { z-index: 2; transform: translateX(-72%) rotate(-7deg) scale(0.82); opacity: 0.68; filter: saturate(0.55); }
.topic-card.is-next { z-index: 2; transform: translateX(72%) rotate(7deg) scale(0.82); opacity: 0.68; filter: saturate(0.55); }
.topic-card.is-hidden { z-index: 1; transform: translateX(0) scale(0.66); opacity: 0; pointer-events: none; }

.card-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.09em;
}

.difficulty {
  padding: 7px 12px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--lime);
  letter-spacing: 0;
}

.topic-card h2 {
  max-width: 530px;
  margin: 38px 0;
  font-size: clamp(34px, 4.3vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.065em;
  text-wrap: balance;
}

.card-bottom {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 22px;
}

.card-bottom p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.primary-button,
.secondary-button,
.ghost-button,
.recommend-button,
.report-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 22px;
  border: 2px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
  transition: transform 180ms var(--ease-out), box-shadow 180ms ease, background 180ms ease;
}

.primary-button {
  color: #fff;
  background: var(--blue);
  box-shadow: 4px 4px 0 var(--line);
}

.primary-button:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--line); }
.primary-button:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--line); }
.primary-button:disabled { cursor: not-allowed; opacity: 0.48; box-shadow: none; transform: none; }

.secondary-button { background: var(--lime); }
.ghost-button, .recommend-button, .report-action { background: var(--paper); }
.ghost-button:hover, .recommend-button:hover, .report-action:hover { background: var(--soft-blue); }

.carousel-arrows {
  position: absolute;
  right: 24px;
  bottom: 22px;
  z-index: 5;
  display: flex;
}

.carousel-arrow {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 2px solid var(--line);
  background: var(--paper);
  font-size: 22px;
}

.carousel-arrow:first-child { border-radius: 999px 0 0 999px; }
.carousel-arrow:last-child { margin-left: -2px; border-radius: 0 999px 999px 0; }
.carousel-arrow:hover { color: #fff; background: var(--ink); }

.carousel-side {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 18px;
}

.side-note,
.swipe-hint {
  padding: 24px;
  border: 2px solid var(--line);
  border-radius: 20px;
}

.side-note {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--ink);
  background: var(--lime);
}

.side-note strong {
  font-family: var(--display);
  font-size: 46px;
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.side-note p,
.swipe-hint p {
  margin: 20px 0 0;
  font-size: 13px;
  line-height: 1.7;
}

.swipe-hint {
  background: var(--paper);
}

.swipe-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 28px;
}

.case-intro {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  padding-top: 22px;
}

.case-prompt,
.case-rules {
  min-height: 570px;
  border: 2px solid var(--line);
  border-radius: 22px;
}

.case-prompt {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(30px, 5vw, 64px);
  color: #fff;
  background: var(--blue);
}

.case-prompt blockquote {
  max-width: 760px;
  margin: 34px 0;
  font-size: clamp(34px, 4vw, 60px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.case-prompt footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.case-prompt footer span {
  max-width: 460px;
  font-size: 13px;
  line-height: 1.7;
}

.case-rules {
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 28px;
  background: var(--paper);
}

.host-intro {
  display: grid;
  grid-template-columns: 96px 1fr;
  align-items: center;
  gap: 18px;
  padding-bottom: 22px;
  border-bottom: 2px solid var(--line);
}

.host-avatar {
  display: grid;
  width: 96px;
  height: 96px;
  overflow: hidden;
  place-items: center;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: #fff;
}

.host-avatar img {
  width: 88%;
  height: 88%;
  object-fit: contain;
}

.host-intro h3 {
  margin: 0 0 7px;
  font-size: 22px;
  letter-spacing: -0.04em;
}

.host-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.rules-list {
  display: grid;
  gap: 0;
  align-content: center;
  margin: 20px 0;
  padding: 0;
  list-style: none;
}

.rules-list li {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: start;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1.5px solid var(--line);
}

.rules-list li:first-child { border-top: 1.5px solid var(--line); }

.rule-index {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: var(--lime);
  font-size: 12px;
  font-weight: 900;
}

.rules-list strong { display: block; margin-bottom: 5px; }
.rules-list span:last-child { color: var(--muted); font-size: 13px; line-height: 1.55; }

