:root {
  --bg: #110d0b;
  --panel: rgba(34, 24, 18, 0.88);
  --panel-soft: rgba(50, 36, 28, 0.72);
  --panel-deep: rgba(20, 15, 12, 0.96);
  --line: rgba(255, 221, 186, 0.12);
  --text: #f8ead7;
  --muted: #a99682;
  --muted-soft: rgba(169, 150, 130, 0.72);
  --panel-quiet: rgba(255, 255, 255, 0.028);
  --accent: #ff9b54;
  --accent-soft: #ffc48a;
  --gold: #f2c178;
  --danger: #ff6d63;
  --good: #98d9a2;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
  font-family: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 193, 120, 0.1), transparent 22%),
    radial-gradient(circle at 85% 12%, rgba(255, 109, 99, 0.08), transparent 24%),
    radial-gradient(circle at top, rgba(255, 155, 84, 0.16), transparent 28%),
    linear-gradient(180deg, #1b1410 0%, #0d0908 100%);
  color: var(--text);
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.7), transparent 88%);
  opacity: 0.35;
}

button {
  font: inherit;
}

.shell {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.screen {
  display: none;
}

.screen.active {
  display: block;
}

.screen-start.active,
.screen-ending.active {
  display: grid;
}

.screen-start,
.screen-ending {
  min-height: calc(100vh - 64px);
}

.screen-start {
  align-items: center;
}

.screen-ending {
  align-items: start;
}

@keyframes float-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes soft-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.04);
    opacity: 1;
  }
}

.hero-card,
.ending-card,
.story-panel,
.phone-panel,
.stats-panel {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  animation: float-rise 0.45s ease;
}

.hero-card,
.ending-card {
  max-width: 980px;
  margin: 10vh auto 0;
  padding: 36px;
  border-radius: 32px;
  background:
    radial-gradient(circle at top right, rgba(255, 196, 138, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(46, 33, 25, 0.94), rgba(24, 17, 13, 0.94));
  position: relative;
  overflow: hidden;
}

.hero-card h1,
.ending-card h2 {
  margin: 10px 0 12px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.04;
}

.hero-hook {
  margin: 0 0 16px;
  color: var(--accent-soft);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.5;
  font-weight: 700;
}

.eyebrow {
  margin: 0;
  color: var(--accent-soft);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
}

.hero-copy,
.ending-tagline {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.78;
}

.hero-copy {
  max-width: 32rem;
  font-size: 1.06rem;
}

.hero-copy p {
  margin: 0 0 10px;
}

.hero-copy p:last-child {
  margin-bottom: 0;
  color: var(--accent-soft);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.8fr);
  gap: 28px;
  position: relative;
  z-index: 1;
}

.hero-main {
  display: grid;
  align-content: start;
}

.hero-side {
  display: grid;
  align-content: start;
  gap: 16px;
}

.start-warning {
  padding: 4px 2px 0;
}

.start-warning-label {
  margin: 0 0 12px;
  color: rgba(255, 196, 138, 0.82);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
}

.start-warning-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.7;
}

.start-warning-list li {
  position: relative;
  padding-left: 18px;
}

.start-warning-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 196, 138, 0.92), rgba(255, 109, 99, 0.82));
  box-shadow: 0 0 12px rgba(255, 155, 84, 0.2);
  transform: translateY(-50%);
}

.directory-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
}

.directory-modal[hidden] {
  display: none !important;
}

.directory-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 6, 5, 0.72);
  backdrop-filter: blur(10px);
}

.directory-panel {
  position: relative;
  width: min(1120px, 100%);
  max-height: min(86vh, 920px);
  overflow: auto;
  padding: 28px;
  border-radius: 30px;
  border: 1px solid rgba(255, 221, 186, 0.14);
  background:
    radial-gradient(circle at top right, rgba(255, 155, 84, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(37, 27, 21, 0.96), rgba(17, 13, 11, 0.98));
  box-shadow: 0 36px 120px rgba(0, 0, 0, 0.46);
}

.directory-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.directory-kicker {
  margin: 0 0 8px;
  color: var(--accent-soft);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.directory-panel h2 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.05;
}

.directory-note {
  margin: 0;
  max-width: 40rem;
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.72;
}

.directory-close {
  flex: none;
  border: 1px solid rgba(255, 221, 186, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 10px 15px;
  border-radius: 999px;
  cursor: pointer;
}

.directory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.directory-card {
  min-width: 0;
  padding: 16px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 221, 186, 0.08);
}

.directory-card-name {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 1.04rem;
  font-weight: 700;
}

.directory-card-role {
  margin: 0 0 10px;
  color: var(--accent-soft);
  font-size: 0.84rem;
}

.directory-card-blurb {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.68;
}

.hero-side-card {
  padding: 18px 18px 16px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(255, 155, 84, 0.16), transparent 38%),
    linear-gradient(180deg, rgba(58, 41, 31, 0.94), rgba(35, 24, 18, 0.94));
  border: 1px solid rgba(255, 221, 186, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.hero-side-label {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
}

.hero-side-list {
  margin: 0;
  padding-left: 18px;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.75;
}

.hero-side-list li + li {
  margin-top: 6px;
}

.hero-orbit {
  position: absolute;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(10px);
  animation: soft-pulse 4.8s ease-in-out infinite;
}

.hero-orbit-a {
  width: 240px;
  height: 240px;
  inset: -70px auto auto 68%;
  background: radial-gradient(circle, rgba(255, 155, 84, 0.22), transparent 70%);
}

.hero-orbit-b {
  width: 180px;
  height: 180px;
  inset: auto auto -40px -30px;
  background: radial-gradient(circle, rgba(255, 109, 99, 0.12), transparent 72%);
  animation-delay: 1.1s;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 28px;
}

.hero-meta span,
.hero-meta-note,
.speaker-tag,
.stat-chip {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
}

.hero-meta-note {
  flex: 1 1 220px;
  min-width: 180px;
  margin: 0;
  display: inline-flex;
  align-items: center;
  line-height: 1.4;
  font-size: 1rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
}

.ghost-button {
  border: 1px solid rgba(255, 221, 186, 0.14);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  padding: 11px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.ghost-button:hover {
  border-color: rgba(255, 196, 138, 0.28);
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.author-credit,
.ending-credit {
  margin: 18px 2px 0;
  color: var(--muted-soft);
  font-size: 0.79rem;
  letter-spacing: 0.04em;
}

.author-credit span,
.ending-credit {
  color: rgba(255, 208, 159, 0.9);
}

.primary-button,
.secondary-button,
.phone-button,
.choice-button,
.phone-tab {
  border: 0;
  cursor: pointer;
  transition: transform 0.18s ease, opacity 0.18s ease, background 0.18s ease;
}

.primary-button:hover,
.secondary-button:hover,
.phone-button:hover,
.choice-button:hover,
.phone-tab:hover {
  transform: translateY(-1px);
}

.primary-button {
  padding: 14px 22px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), #ff7a5c);
  color: #180d08;
  font-weight: 700;
}

.secondary-button {
  padding: 14px 22px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  color: #e8d6c3;
  border: 1px solid var(--line);
}

.save-summary {
  margin: 0 0 18px;
  color: var(--text);
  line-height: 1.7;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 221, 186, 0.08);
}

.start-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
  font-size: 0.88rem;
  padding: 0 2px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
  padding: 18px 20px;
  border-radius: 26px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 155, 84, 0.07), rgba(255, 255, 255, 0.015)),
    rgba(22, 16, 12, 0.74);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.topbar-copy {
  display: grid;
  gap: 12px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: none;
}

.topbar-actions .secondary-button {
  padding: 11px 16px;
  border-radius: 999px;
  white-space: nowrap;
}

.topbar h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.phase-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0;
  padding: 9px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 155, 84, 0.22), rgba(255, 122, 92, 0.14));
  border: 1px solid rgba(255, 196, 138, 0.24);
  color: var(--accent-soft);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.stats-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
  border-radius: 24px;
  margin-bottom: 18px;
  background:
    linear-gradient(180deg, rgba(40, 29, 23, 0.92), rgba(24, 18, 14, 0.9));
}

.stat-card {
  padding: 14px 14px 12px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(64, 46, 36, 0.8), rgba(39, 28, 22, 0.82));
  border: 1px solid rgba(255, 221, 186, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.stat-card strong {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.stat-label {
  color: var(--accent-soft);
  font-size: 0.88rem;
  letter-spacing: 0.03em;
}

.stat-value {
  color: var(--text);
  font-size: 0.98rem;
  font-variant-numeric: tabular-nums;
}

.stat-bar {
  width: 100%;
  height: 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.stat-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #ffd39c);
  box-shadow: 0 0 20px rgba(255, 155, 84, 0.28);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.9fr);
  gap: 18px;
  align-items: start;
}

.story-panel {
  border-radius: 30px;
  padding: 24px 24px 26px;
  min-height: 520px;
  background:
    radial-gradient(circle at top right, rgba(255, 196, 138, 0.05), transparent 28%),
    linear-gradient(180deg, rgba(45, 32, 25, 0.97), rgba(24, 17, 13, 0.97));
}

.story-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 221, 186, 0.09);
}

.story-panel-kicker,
.story-panel-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.76rem;
  letter-spacing: 0.05em;
}

.story-panel-kicker {
  color: var(--gold);
  background: rgba(242, 193, 120, 0.1);
  border: 1px solid rgba(242, 193, 120, 0.18);
}

.story-panel-status {
  color: var(--muted-soft);
  background: rgba(255, 255, 255, 0.022);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.route-whisper {
  margin: 0 0 16px;
  padding: 16px 16px 14px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 155, 84, 0.12), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 155, 84, 0.18);
  color: #e7d5c2;
  line-height: 1.62;
  font-size: 0.89rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  align-items: center;
  scrollbar-width: none;
}

.route-whisper::before {
  content: "会场热搜";
  display: block;
  flex: 0 0 auto;
  margin-right: 4px;
  margin-bottom: 0;
  color: var(--accent-soft);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.whisper-line {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 221, 186, 0.08);
  line-height: 1.32;
  color: var(--muted);
  white-space: nowrap;
}

.gossip-whisper {
  margin: -2px 0 18px;
  padding: 16px 16px 14px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 109, 99, 0.12), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 109, 99, 0.18);
  color: #e7d5c2;
  line-height: 1.64;
  font-size: 0.89rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.gossip-whisper::before {
  content: "隐隐约约有听说";
  display: block;
  margin-bottom: 8px;
  color: #ffb4ab;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.speaker-line {
  margin: 0 0 18px;
}

.speaker-tag {
  background:
    linear-gradient(180deg, rgba(74, 53, 41, 0.92), rgba(53, 37, 29, 0.92));
}

.story-text {
  font-size: 1.15rem;
  line-height: 1.78;
  color: var(--text);
  min-height: 220px;
  padding: 2px 2px 0;
  font-weight: 500;
}

.story-text br + br {
  content: "";
  display: block;
  margin-top: 0.42em;
}

.choice-guide {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 12px;
  padding: 6px 10px 6px 0;
  color: var(--ink-mid);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.choice-guide::before {
  content: "///";
  color: var(--ink-mid);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
}

.choice-guide::after {
  content: "▾";
  color: var(--ink-mid);
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1;
}

.choice-list {
  display: grid;
  gap: 14px;
  margin-top: 0;
}

.choice-button {
  width: 100%;
  text-align: left;
  padding: 17px 18px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(64, 45, 34, 0.9), rgba(43, 30, 23, 0.9));
  color: var(--text);
  border: 1px solid rgba(255, 221, 186, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  line-height: 1.52;
  font-size: 1rem;
}

.choice-button:hover {
  background:
    linear-gradient(180deg, rgba(78, 55, 42, 0.96), rgba(51, 36, 27, 0.96));
  border-color: rgba(255, 196, 138, 0.22);
}

.choice-list .choice-button {
  animation: float-rise 0.34s ease both;
}

.choice-list .choice-button:nth-child(1) { animation-delay: 0.02s; }
.choice-list .choice-button:nth-child(2) { animation-delay: 0.05s; }
.choice-list .choice-button:nth-child(3) { animation-delay: 0.08s; }
.choice-list .choice-button:nth-child(4) { animation-delay: 0.11s; }
.choice-list .choice-button:nth-child(5) { animation-delay: 0.14s; }
.choice-list .choice-button:nth-child(6) { animation-delay: 0.17s; }

.phone-panel {
  border-radius: 32px;
  padding: 14px;
  position: sticky;
  top: 24px;
  max-height: calc(100vh - 48px);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  background:
    linear-gradient(180deg, rgba(20, 15, 12, 0.98), rgba(13, 10, 8, 0.98));
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.phone-shell-top {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 8px 8px 14px;
}

.phone-camera-bar {
  width: 84px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.phone-title-group {
  width: 100%;
  padding: 14px 14px 12px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(255, 155, 84, 0.12), transparent 40%),
    linear-gradient(180deg, rgba(38, 28, 22, 0.94), rgba(23, 17, 13, 0.96));
  border: 1px solid rgba(255, 221, 186, 0.1);
}

.phone-caption {
  margin: 0 0 6px;
  color: var(--accent-soft);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
}

.phone-title-group h3 {
  margin: 0;
  font-size: 1.22rem;
}

.phone-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.phone-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  padding: 0 4px;
}

.phone-tab {
  position: relative;
  padding: 11px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted-soft);
  border: 1px solid transparent;
  font-size: 0.84rem;
  font-weight: 600;
}

.phone-tab.active {
  background: rgba(255, 155, 84, 0.16);
  color: var(--text);
  border-color: rgba(255, 196, 138, 0.18);
}

.phone-tab.has-unread::after {
  content: "";
  position: absolute;
  top: 7px;
  right: 9px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #ff5b57;
  box-shadow: 0 0 0 2px rgba(34, 24, 18, 0.95);
}

.phone-page-button {
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  border: 1px solid var(--line);
}

.phone-page-button:disabled {
  opacity: 0.4;
  cursor: default;
  transform: none;
}

.phone-page-indicator {
  color: var(--muted-soft);
  font-size: 0.82rem;
  white-space: nowrap;
}

.phone-feed {
  display: grid;
  gap: 12px;
  overflow: auto;
  padding: 4px 6px 4px 2px;
}

.phone-feed[data-tab="moments"] {
  gap: 14px;
}

.phone-feed[data-tab="chat"] {
  gap: 10px;
  background:
    radial-gradient(circle at top, rgba(255, 155, 84, 0.06), transparent 28%);
  border-radius: 22px;
}

.phone-feed[data-tab="twitter"] {
  gap: 10px;
}

.feed-item {
  padding: 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.022);
  border: 1px solid var(--line);
  animation: float-rise 0.3s ease both;
}

.feed-item-moments {
  background:
    radial-gradient(circle at top right, rgba(255, 155, 84, 0.18), transparent 38%),
    linear-gradient(180deg, rgba(62, 46, 35, 0.92), rgba(43, 31, 24, 0.92));
}

.feed-item-chat {
  background: transparent;
  border: 0;
  padding: 0;
  box-shadow: none;
}

.feed-item-twitter {
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(29, 25, 23, 0.94), rgba(21, 18, 17, 0.96));
}

.feed-item-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--muted-soft);
  font-size: 0.79rem;
}

.feed-item-ident {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.feed-avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 196, 138, 0.24), rgba(255, 122, 92, 0.24));
  border: 1px solid rgba(255, 196, 138, 0.18);
  color: var(--accent-soft);
  font-size: 0.86rem;
  font-weight: 700;
  flex: 0 0 auto;
}

.feed-item-moments .feed-item-header strong {
  font-size: 0.92rem;
}

.feed-item-body {
  color: #ead8c5;
  font-size: 0.92rem;
  line-height: 1.66;
}

.feed-item-footer {
  margin-top: 10px;
  color: var(--muted-soft);
  font-size: 0.74rem;
}

.feed-bubble {
  max-width: 88%;
  padding: 12px 14px;
  border-radius: 18px 18px 18px 8px;
  background: rgba(255, 155, 84, 0.12);
  border: 1px solid rgba(255, 196, 138, 0.14);
}

.feed-item-chat.self .feed-bubble {
  margin-left: auto;
  border-radius: 18px 18px 8px 18px;
  background: rgba(255, 255, 255, 0.06);
}

.feed-chat-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.feed-item-chat.self .feed-chat-row {
  justify-content: flex-end;
}

.feed-handle {
  color: var(--accent-soft);
  font-weight: 700;
}

.feed-meta-line {
  margin-top: 8px;
  color: var(--muted-soft);
  font-size: 0.75rem;
  display: flex;
  gap: 16px;
}

.feed-item-twitter .feed-meta-line span {
  position: relative;
}

.feed-item-twitter .feed-meta-line span::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 999px;
  background: rgba(255, 196, 138, 0.45);
  vertical-align: middle;
}

.kol-name {
  background: linear-gradient(135deg, #ffc48a 0%, #ff8a5b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
  text-shadow: 0 0 12px rgba(255, 155, 84, 0.16);
}

.hot-tag {
  display: inline-flex;
  align-items: center;
  margin-right: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(255, 155, 84, 0.14);
  border: 1px solid rgba(255, 196, 138, 0.2);
  color: var(--accent-soft);
  font-size: 0.88em;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.ending-body {
  line-height: 1.92;
  color: var(--text);
  margin: 20px 0 24px;
  font-size: 1.04rem;
}

.ending-body p {
  margin: 0 0 16px;
}

.ending-body p:last-child {
  margin-bottom: 0;
}

.ending-card {
  position: relative;
  overflow: hidden;
}

.ending-phase {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--gold);
  background: rgba(242, 193, 120, 0.08);
  border: 1px solid rgba(242, 193, 120, 0.14);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
}

.ending-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.75fr);
  gap: 28px;
  position: relative;
  z-index: 1;
}

.ending-main {
  min-width: 0;
}

.ending-context {
  margin: 0 0 14px;
  color: var(--accent-soft);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.56;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.ending-spotlight {
  margin: 0 0 16px;
  padding: 16px 18px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 221, 186, 0.08);
}

.ending-spotlight-label {
  margin: 0 0 8px;
  color: var(--accent-soft);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ending-spotlight-text {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.68;
}

.ending-recap {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 221, 186, 0.08);
}

.ending-recap-label {
  margin: 0 0 14px;
  color: var(--accent-soft);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ending-recap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.ending-recap-card {
  padding: 16px 16px 15px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 221, 186, 0.08);
}

.ending-recap-kicker {
  margin: 0 0 10px;
  color: var(--muted-soft);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.ending-recap-text {
  margin: 0;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.65;
}

.ending-side {
  display: grid;
  align-content: start;
  justify-items: start;
}

.ending-side-stack {
  width: 100%;
  display: grid;
  gap: 16px;
  min-height: 100%;
}

.ending-side-footer {
  margin-top: auto;
  display: grid;
  justify-items: end;
  gap: 14px;
}

.ending-art-card {
  width: 100%;
  padding: 8px;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.026), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 221, 186, 0.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.02),
    0 18px 42px rgba(10, 7, 6, 0.18);
}

.ending-art {
  position: relative;
  min-height: 388px;
  border-radius: 26px;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 22%, rgba(255, 196, 138, 0.26), transparent 24%),
    radial-gradient(circle at 18% 80%, rgba(255, 109, 99, 0.18), transparent 22%),
    radial-gradient(circle at 50% 110%, rgba(58, 109, 105, 0.16), transparent 30%),
    linear-gradient(180deg, rgba(28, 33, 45, 0.92), rgba(16, 20, 28, 0.96) 54%, rgba(17, 12, 10, 0.98));
  border: 1px solid rgba(215, 230, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    inset 0 -24px 60px rgba(6, 8, 12, 0.26);
}

.ending-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 24%),
    radial-gradient(circle at 50% 50%, transparent 48%, rgba(5, 6, 10, 0.2) 100%);
  pointer-events: none;
}

.ending-art-noise {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 20px 20px;
}

.ending-art-orb,
.ending-art-line {
  position: absolute;
}

.ending-art-orb {
  border-radius: 999px;
  filter: blur(10px);
}

.ending-art-orb-a {
  width: 156px;
  height: 156px;
  top: 8px;
  right: -12px;
  background: radial-gradient(circle, rgba(255, 196, 138, 0.48), transparent 66%);
}

.ending-art-orb-b {
  width: 118px;
  height: 118px;
  left: -10px;
  bottom: 12px;
  background: radial-gradient(circle, rgba(255, 109, 99, 0.28), transparent 68%);
}

.ending-art-line {
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 221, 186, 0.04), rgba(255, 196, 138, 0.32), rgba(255, 221, 186, 0.04));
}

.ending-art-line-a {
  width: 76%;
  height: 2px;
  left: 8%;
  top: 33%;
}

.ending-art-line-b {
  width: 58%;
  height: 2px;
  left: 22%;
  top: 70%;
}

.ending-art-copy {
  display: none;
}

.ending-art-kicker {
  margin: 0 0 8px;
  color: var(--accent-soft);
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.ending-art-title {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 1.18rem;
  line-height: 1.2;
}

.ending-art-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.ending-art-motif {
  position: absolute;
  inset: -8px;
  pointer-events: none;
  transform: scale(1.2);
  transform-origin: center;
}

.motif-monitor {
  transform: scale(1.34) translateY(12px);
}

.motif-badge,
.motif-door,
.motif-bottle-pier,
.motif-ferry,
.motif-paperboat {
  transform: scale(1.24);
}

.motif-handcuff,
.motif-chat-error,
.motif-flower,
.motif-baton,
.motif-champagne {
  transform: scale(1.28);
}

.motif-ring,
.motif-chain,
.motif-flower-bloom,
.motif-baton-stick,
.motif-baton-handle,
.motif-baton-glow,
.motif-badge-clip,
.motif-badge-card,
.motif-badge-line,
.motif-door-frame,
.motif-door-panel,
.motif-door-light,
.motif-bottle,
.motif-bottle-neck,
.motif-bubble,
.motif-monitor-frame,
.motif-monitor-stand,
.motif-candle,
.motif-boat-left,
.motif-boat-right,
.motif-boat-hull,
.motif-boat-wave,
.motif-petal,
.motif-flower-core,
.motif-chat-bubble,
.motif-chat-dot,
.motif-chat-error-mark,
.motif-pier-line,
.motif-bottle-body,
.motif-bottle-top,
.motif-ferry-body,
.motif-ferry-cabin,
.motif-ferry-window,
.motif-ferry-wave {
  position: absolute;
}

.motif-handcuff .motif-ring {
  width: 84px;
  height: 84px;
  border-radius: 999px;
  border: 10px solid rgba(255, 224, 196, 0.76);
  box-shadow: 0 0 30px rgba(255, 188, 128, 0.16);
}

.motif-handcuff .motif-ring-a {
  left: 22%;
  top: 24%;
}

.motif-handcuff .motif-ring-b {
  right: 18%;
  top: 42%;
}

.motif-handcuff .motif-chain {
  width: 112px;
  height: 12px;
  left: 43%;
  top: 44%;
  transform: rotate(18deg);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 224, 196, 0.14), rgba(255, 224, 196, 0.82), rgba(255, 224, 196, 0.14));
}

.motif-baton-stick {
  width: 164px;
  height: 22px;
  left: 50%;
  top: 42%;
  transform: rotate(-28deg);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(248, 236, 216, 0.84), rgba(255, 132, 104, 0.78));
  box-shadow: 0 0 40px rgba(255, 118, 104, 0.14);
}

.motif-baton-handle {
  width: 36px;
  height: 44px;
  left: calc(50% + 118px);
  top: calc(42% - 6px);
  transform: rotate(-28deg);
  border-radius: 12px;
  background: rgba(30, 20, 16, 0.92);
  border: 1px solid rgba(255, 221, 186, 0.14);
}

.motif-baton-glow {
  width: 110px;
  height: 110px;
  left: 24%;
  top: 20%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 120, 102, 0.32), transparent 72%);
  filter: blur(6px);
}

.motif-badge-clip {
  width: 12px;
  height: 56px;
  left: 50%;
  top: 16%;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(220, 245, 212, 0.72);
}

.motif-badge-card {
  width: 176px;
  height: 228px;
  left: 50%;
  top: 28%;
  transform: translateX(-50%) rotate(-6deg);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(42, 62, 46, 0.96), rgba(24, 30, 24, 0.98));
  border: 1px solid rgba(216, 240, 192, 0.28);
  box-shadow: 0 0 42px rgba(151, 216, 161, 0.14);
}

.motif-badge-line {
  left: 50%;
  transform: translateX(-50%) rotate(-6deg);
  border-radius: 999px;
  background: rgba(216, 240, 192, 0.58);
}

.motif-badge-line-a {
  top: 44%;
  width: 96px;
  height: 10px;
}

.motif-badge-line-b {
  top: 52%;
  width: 72px;
  height: 10px;
}

.motif-door-frame {
  width: 150px;
  height: 230px;
  left: 50%;
  top: 20%;
  transform: translateX(-50%);
  border-radius: 24px;
  border: 1px solid rgba(255, 225, 190, 0.16);
  background: rgba(18, 12, 10, 0.42);
}

.motif-door-panel {
  width: 108px;
  height: 206px;
  left: calc(50% - 22px);
  top: 24%;
  transform-origin: left center;
  transform: rotate(-12deg);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(56, 36, 28, 0.96), rgba(24, 17, 14, 0.98));
  border: 1px solid rgba(255, 221, 186, 0.14);
}

.motif-door-light {
  width: 110px;
  height: 220px;
  left: calc(50% + 8px);
  top: 23%;
  background: linear-gradient(180deg, rgba(255, 218, 162, 0.34), rgba(255, 155, 84, 0.04));
  filter: blur(8px);
}

.motif-bottle {
  width: 112px;
  height: 170px;
  left: 50%;
  bottom: 8%;
  transform: translateX(-50%) rotate(-12deg);
  border-radius: 26px 26px 30px 30px;
  background: linear-gradient(180deg, rgba(72, 38, 22, 0.96), rgba(33, 20, 16, 0.98));
  border: 1px solid rgba(255, 212, 168, 0.16);
}

.motif-bottle-neck {
  width: 34px;
  height: 58px;
  left: calc(50% + 18px);
  bottom: calc(8% + 146px);
  transform: translateX(-50%) rotate(-12deg);
  border-radius: 12px 12px 8px 8px;
  background: linear-gradient(180deg, rgba(255, 170, 96, 0.88), rgba(96, 48, 30, 0.96));
}

.motif-bubble {
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 222, 186, 0.8), rgba(255, 158, 84, 0.1));
  box-shadow: 0 0 24px rgba(255, 155, 84, 0.16);
}

.motif-bubble-a {
  width: 22px;
  height: 22px;
  left: 58%;
  top: 18%;
}

.motif-bubble-b {
  width: 15px;
  height: 15px;
  left: 66%;
  top: 26%;
}

.motif-bubble-c {
  width: 11px;
  height: 11px;
  left: 62%;
  top: 11%;
}

.motif-monitor-frame {
  width: 228px;
  height: 152px;
  left: 50%;
  top: 24%;
  transform: translateX(-50%);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(31, 39, 52, 0.98), rgba(12, 16, 24, 0.98));
  border: 1px solid rgba(215, 230, 255, 0.28);
  box-shadow:
    0 28px 48px rgba(4, 8, 16, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.motif-monitor-stand {
  width: 86px;
  height: 14px;
  left: 50%;
  top: 62.5%;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(215, 230, 255, 0.42);
}

.motif-candle {
  width: 18px;
  border-radius: 7px;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.08);
}

.motif-candle-a {
  height: 56px;
  left: 35%;
  top: 38%;
  background: linear-gradient(180deg, rgba(151, 216, 161, 0.88), rgba(151, 216, 161, 0.28));
}

.motif-candle-b {
  height: 78px;
  left: 43%;
  top: 28%;
  background: linear-gradient(180deg, rgba(137, 174, 232, 0.88), rgba(137, 174, 232, 0.28));
}

.motif-candle-c {
  height: 68px;
  left: 51%;
  top: 36%;
  background: linear-gradient(180deg, rgba(255, 137, 118, 0.88), rgba(255, 137, 118, 0.24));
}

.motif-candle-d {
  height: 92px;
  left: 59%;
  top: 24%;
  background: linear-gradient(180deg, rgba(151, 216, 161, 0.88), rgba(151, 216, 161, 0.24));
}

.motif-boat-left,
.motif-boat-right {
  top: 34%;
  width: 0;
  height: 0;
  border-style: solid;
}

.motif-boat-left {
  left: 34%;
  border-width: 0 66px 78px 0;
  border-color: transparent rgba(255, 214, 170, 0.7) transparent transparent;
}

.motif-boat-right {
  left: 50%;
  border-width: 0 0 78px 66px;
  border-color: transparent transparent rgba(255, 214, 170, 0.54) transparent;
}

.motif-boat-hull {
  width: 164px;
  height: 10px;
  left: 35%;
  top: 60%;
  border-radius: 999px;
  background: rgba(255, 214, 170, 0.78);
}

.motif-boat-wave {
  width: 180px;
  height: 40px;
  left: 34%;
  top: 65%;
  border-bottom: 2px solid rgba(255, 118, 102, 0.42);
  border-radius: 0 0 90px 90px;
}

.motif-petal {
  width: 72px;
  height: 108px;
  left: 50%;
  top: 24%;
  transform-origin: center 86%;
  border-radius: 72px 72px 32px 32px;
  background: linear-gradient(180deg, rgba(255, 232, 212, 0.88), rgba(255, 168, 126, 0.2));
}

.motif-flower-bloom {
  left: 50%;
  top: 50%;
  transform-origin: center center;
}

.motif-flower-bloom .motif-petal,
.motif-flower-bloom .motif-flower-core {
  left: 0;
  top: 0;
}

.motif-flower-bloom .motif-petal-a { transform: translate(-50%, -78%) rotate(0deg); }
.motif-flower-bloom .motif-petal-b { transform: translate(-50%, -78%) rotate(90deg); }
.motif-flower-bloom .motif-petal-c { transform: translate(-50%, -78%) rotate(45deg); }
.motif-flower-bloom .motif-petal-d { transform: translate(-50%, -78%) rotate(-45deg); }

.motif-flower-bloom-main {
  transform: translate(-50%, -50%) scale(1.08);
}

.motif-flower-bloom-small-a {
  opacity: 0.62;
  transform: translate(-12%, -32%) scale(0.76) rotate(14deg);
}

.motif-flower-bloom-small-b {
  opacity: 0.48;
  transform: translate(-92%, -8%) scale(0.58) rotate(-18deg);
}

.motif-flower-bloom-small-a .motif-petal,
.motif-flower-bloom-small-b .motif-petal {
  background: linear-gradient(180deg, rgba(255, 242, 232, 0.74), rgba(255, 168, 126, 0.14));
}

.motif-petal-a { transform: translateX(-50%) rotate(0deg); }
.motif-petal-b { transform: translateX(-50%) rotate(90deg); }
.motif-petal-c { transform: translateX(-50%) rotate(45deg); }
.motif-petal-d { transform: translateX(-50%) rotate(-45deg); }

.motif-flower-core {
  width: 40px;
  height: 40px;
  left: 50%;
  top: 47%;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 208, 159, 0.94), rgba(255, 122, 92, 0.48));
}

.motif-chat-bubble {
  width: 174px;
  height: 112px;
  left: 50%;
  top: 34%;
  transform: translateX(-50%);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(53, 43, 36, 0.96), rgba(26, 20, 17, 0.98));
  border: 1px solid rgba(255, 221, 186, 0.14);
}

.motif-chat-bubble::after {
  content: "";
  position: absolute;
  right: 28px;
  bottom: -14px;
  width: 24px;
  height: 24px;
  background: inherit;
  border-right: 1px solid rgba(255, 221, 186, 0.14);
  border-bottom: 1px solid rgba(255, 221, 186, 0.14);
  transform: rotate(35deg);
}

.motif-chat-dot {
  top: 47%;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 214, 170, 0.72);
}

.motif-chat-dot-a { left: 42%; }
.motif-chat-dot-b { left: 48%; }
.motif-chat-dot-c { left: 54%; }

.motif-chat-error-mark {
  width: 56px;
  height: 56px;
  right: 18%;
  top: 22%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 95, 87, 0.96), rgba(255, 95, 87, 0.38));
  box-shadow: 0 0 24px rgba(255, 95, 87, 0.18);
}

.motif-chat-error-mark::before {
  content: "!";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff4ed;
  font-size: 2rem;
  font-weight: 800;
}

.motif-pier-line {
  width: 62%;
  height: 2px;
  left: 19%;
  top: 66%;
  background: rgba(215, 230, 255, 0.24);
}

.motif-bottle-body {
  width: 94px;
  height: 154px;
  left: 50%;
  top: 26%;
  transform: translateX(-50%) rotate(-8deg);
  border-radius: 22px 22px 28px 28px;
  background: linear-gradient(180deg, rgba(77, 54, 42, 0.96), rgba(26, 20, 17, 0.98));
  border: 1px solid rgba(255, 221, 186, 0.12);
}

.motif-bottle-top {
  width: 28px;
  height: 48px;
  left: calc(50% + 14px);
  top: 17%;
  transform: translateX(-50%) rotate(-8deg);
  border-radius: 10px 10px 6px 6px;
  background: linear-gradient(180deg, rgba(255, 196, 138, 0.92), rgba(93, 64, 50, 0.98));
}

.motif-ferry-body {
  width: 172px;
  height: 48px;
  left: 50%;
  top: 56%;
  transform: translateX(-50%);
  border-radius: 24px 24px 16px 16px;
  background: linear-gradient(180deg, rgba(219, 240, 235, 0.82), rgba(118, 162, 178, 0.42));
}

.motif-ferry-cabin {
  width: 92px;
  height: 44px;
  left: 50%;
  top: 42%;
  transform: translateX(-50%);
  border-radius: 14px 14px 10px 10px;
  background: rgba(219, 240, 235, 0.74);
}

.motif-ferry-window {
  width: 14px;
  height: 14px;
  top: 50%;
  border-radius: 999px;
  background: rgba(37, 54, 63, 0.74);
}

.motif-ferry-window-a { left: 46%; }
.motif-ferry-window-b { left: 52%; }

.motif-ferry-wave {
  width: 162px;
  height: 28px;
  left: 50%;
  transform: translateX(-50%);
  border-bottom: 2px solid rgba(151, 216, 161, 0.36);
  border-radius: 0 0 80px 80px;
}

.motif-ferry-wave-a { top: 72%; }
.motif-ferry-wave-b { top: 78%; width: 132px; }

.ending-traits-card {
  width: 100%;
  padding: 18px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 221, 186, 0.08);
}

.ending-traits-label {
  margin: 0 0 12px;
  color: var(--accent-soft);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ending-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ending-trait {
  display: inline-flex;
  align-items: center;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 221, 186, 0.1);
  color: var(--text);
  font-size: 0.82rem;
  line-height: 1.2;
}

.ending-glow {
  position: absolute;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(12px);
  animation: soft-pulse 4.2s ease-in-out infinite;
}

.ending-glow-a {
  inset: -28px auto auto 62%;
  width: 210px;
  height: 210px;
  background: radial-gradient(circle, rgba(255, 155, 84, 0.22), transparent 68%);
}

.ending-glow-b {
  inset: auto auto -52px -36px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(255, 109, 99, 0.14), transparent 70%);
  animation-delay: 1.2s;
}

.ending-tagline {
  margin: 8px 0 18px;
  padding-top: 0;
  border-top: 0;
  color: var(--accent-soft);
  line-height: 1.8;
  font-size: 0.96rem;
  max-width: 32rem;
}

.ending-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 0;
  position: relative;
  z-index: 1;
}

.ending-credit {
  margin-top: 0;
  text-align: right;
  position: relative;
  z-index: 1;
}

.screen-ending[data-ending="exchange"] .ending-card {
  background:
    radial-gradient(circle at top right, rgba(152, 217, 162, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(39, 33, 26, 0.96), rgba(22, 18, 14, 0.96));
}

.screen-ending[data-ending="meme"] .ending-card,
.screen-ending[data-ending="kol"] .ending-card {
  background:
    radial-gradient(circle at top right, rgba(255, 155, 84, 0.16), transparent 30%),
    radial-gradient(circle at bottom left, rgba(255, 109, 99, 0.1), transparent 28%),
    linear-gradient(180deg, rgba(43, 29, 22, 0.96), rgba(22, 17, 14, 0.96));
}

.screen-ending[data-ending="prison"] .ending-card,
.screen-ending[data-ending="myanmar"] .ending-card,
.screen-ending[data-ending="rug"] .ending-card {
  background:
    radial-gradient(circle at top right, rgba(255, 109, 99, 0.14), transparent 32%),
    linear-gradient(180deg, rgba(39, 25, 23, 0.97), rgba(18, 12, 11, 0.97));
}

.screen-ending[data-ending="exchange"] .ending-art {
  background:
    radial-gradient(circle at 72% 28%, rgba(152, 217, 162, 0.24), transparent 28%),
    linear-gradient(160deg, rgba(46, 48, 39, 0.96), rgba(22, 24, 19, 0.98));
}

.screen-ending[data-ending="meme"] .ending-art,
.screen-ending[data-ending="kol"] .ending-art {
  background:
    radial-gradient(circle at 72% 28%, rgba(255, 155, 84, 0.28), transparent 28%),
    radial-gradient(circle at 22% 78%, rgba(255, 109, 99, 0.2), transparent 24%),
    linear-gradient(160deg, rgba(72, 42, 30, 0.96), rgba(25, 16, 14, 0.98));
}

.screen-ending[data-ending="prison"] .ending-art,
.screen-ending[data-ending="myanmar"] .ending-art,
.screen-ending[data-ending="rug"] .ending-art {
  background:
    radial-gradient(circle at 72% 28%, rgba(255, 109, 99, 0.24), transparent 26%),
    radial-gradient(circle at 22% 78%, rgba(255, 196, 138, 0.1), transparent 24%),
    linear-gradient(160deg, rgba(56, 28, 25, 0.96), rgba(20, 13, 12, 0.98));
}

.screen-ending[data-ending="trader"] .ending-art,
.screen-ending[data-ending="tourist"] .ending-art,
.screen-ending[data-ending="leave"] .ending-art {
  background:
    radial-gradient(circle at 72% 28%, rgba(137, 174, 232, 0.22), transparent 28%),
    radial-gradient(circle at 22% 78%, rgba(151, 216, 161, 0.14), transparent 24%),
    linear-gradient(160deg, rgba(30, 34, 43, 0.96), rgba(14, 16, 20, 0.98));
}

@media (max-width: 1180px) {
  .shell {
    width: min(100% - 28px, 1120px);
  }

  .content-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.88fr);
  }

  .story-text {
    font-size: 1.08rem;
  }

  .choice-button {
    padding: 16px 17px;
  }
}

@media (max-width: 920px) {
  .screen-game.active {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "top"
      "stats"
      "content";
    align-items: start;
    row-gap: 14px;
  }

  .topbar {
    grid-area: top;
    margin-bottom: 0;
    min-width: 0;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .stats-panel {
    grid-area: stats;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 14px;
    margin-bottom: 14px;
    border: 1px solid var(--line);
    background:
      linear-gradient(180deg, rgba(40, 29, 23, 0.92), rgba(24, 18, 14, 0.9));
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
  }

  .stat-card {
    padding: 12px 12px 10px;
    border-radius: 14px;
    background:
      linear-gradient(180deg, rgba(64, 46, 36, 0.8), rgba(39, 28, 22, 0.82));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }

  .stat-card strong {
    margin-bottom: 8px;
  }

  .stat-label {
    font-size: 0.82rem;
    letter-spacing: 0.02em;
  }

  .stat-value {
    font-size: 0.92rem;
  }

  .content-grid {
    grid-area: content;
  }

  .hero-layout,
  .ending-layout {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-wrap: wrap;
  }

  .hero-actions .primary-button,
  .hero-actions .secondary-button,
  .hero-actions .ghost-button {
    flex: 1 1 220px;
    justify-content: center;
  }

  .directory-grid {
    grid-template-columns: 1fr;
  }

  .directory-panel-head {
    flex-direction: column;
  }

  .ending-side-footer {
    justify-items: stretch;
  }

  .ending-recap-grid {
    grid-template-columns: 1fr;
  }

  .phase-badge {
    font-size: 0.9rem;
  }

  .story-panel {
    min-height: auto;
  }

  .phone-panel {
    position: static;
    max-height: none;
  }

  .phone-feed {
    overflow: visible;
  }

  .story-panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .screen-start,
  .screen-ending {
    min-height: auto;
  }

  .hero-card,
  .ending-card {
    margin-top: 32px;
  }

  .ending-actions {
    justify-content: stretch;
    flex-direction: column-reverse;
  }

  .ending-actions .primary-button,
  .ending-actions .secondary-button {
    width: 100%;
  }

  .ending-credit {
    text-align: left;
  }
}

@media (max-width: 720px) {
  .screen-game.active {
    row-gap: 12px;
  }

  .topbar {
    flex-direction: column;
    align-items: stretch;
    padding: 16px 18px;
  }

  .topbar-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .stats-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 12px;
  }

  .stat-card {
    padding: 11px 11px 10px;
  }

  .story-panel,
  .phone-panel {
    border-radius: 24px;
  }

  .story-panel {
    padding: 20px 18px 22px;
  }

  .story-text {
    min-height: 0;
    font-size: 1.02rem;
    line-height: 1.72;
  }

  .choice-list {
    gap: 12px;
    margin-top: 22px;
  }

  .choice-button {
    padding: 15px 16px;
    border-radius: 18px;
    font-size: 0.98rem;
  }

  .route-whisper,
  .gossip-whisper {
    padding: 14px 14px 13px;
    border-radius: 18px;
  }

  .phone-panel {
    padding: 12px;
  }

  .phone-tabs {
    gap: 6px;
  }

  .phone-tab {
    padding: 10px 8px;
    font-size: 0.8rem;
  }

  .phone-pager {
    padding: 0;
  }

  .phone-page-button {
    padding: 8px 10px;
  }

  .ending-card,
  .hero-card {
    padding: 28px 24px;
    border-radius: 28px;
  }

  .ending-art {
    min-height: 260px;
  }

  .ending-recap-card,
  .ending-traits-card,
  .ending-art-card {
    border-radius: 20px;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 20px, 100%);
    padding-top: 14px;
    padding-bottom: 28px;
  }

  .screen-game.active {
    column-gap: 10px;
  }

  .topbar {
    padding: 14px 16px;
    border-radius: 22px;
  }

  .topbar-copy {
    gap: 10px;
  }

  .topbar h2 {
    font-size: 1.8rem;
  }

  .phase-badge {
    padding: 7px 11px;
    font-size: 0.76rem;
  }

  .stats-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding: 10px;
  }

  .stat-card {
    padding: 10px 10px 9px;
    border-radius: 12px;
  }

  .stat-label {
    display: inline;
    font-size: 0.76rem;
  }

  .stat-value {
    font-size: 0.88rem;
  }

  .hero-card,
  .ending-card {
    padding: 24px 18px;
    border-radius: 24px;
  }

  .hero-card h1,
  .ending-card h2 {
    font-size: clamp(1.75rem, 9vw, 2.4rem);
  }

  .hero-hook,
  .ending-context {
    font-size: 1rem;
    line-height: 1.6;
  }

  .hero-copy,
  .ending-tagline,
  .ending-body {
    font-size: 0.96rem;
    line-height: 1.72;
  }

  .ending-spotlight {
    padding: 14px 14px 13px;
    border-radius: 18px;
  }

  .ending-spotlight-text {
    font-size: 0.94rem;
  }

  .hero-side-card,
  .start-warning {
    padding-left: 0;
    padding-right: 0;
  }

  .hero-meta {
    margin: 18px 0 22px;
    gap: 8px;
  }

  .hero-actions {
    gap: 10px;
  }

  .hero-actions .primary-button,
  .hero-actions .secondary-button,
  .hero-actions .ghost-button,
  .directory-close {
    width: 100%;
  }

  .primary-button,
  .secondary-button,
  .ghost-button {
    padding: 13px 16px;
  }

  .directory-modal {
    padding: 14px;
  }

  .directory-panel {
    padding: 22px 16px;
    border-radius: 24px;
  }

  .directory-panel h2 {
    font-size: 1.7rem;
  }

  .directory-card {
    padding: 14px;
    border-radius: 18px;
  }

  .story-panel {
    padding: 18px 14px 20px;
    border-radius: 22px;
  }

  .story-panel-kicker,
  .story-panel-status,
  .speaker-tag {
    font-size: 0.72rem;
  }

  .route-whisper {
    gap: 6px;
  }

  .whisper-line {
    padding: 7px 10px;
    font-size: 0.8rem;
  }

  .gossip-whisper {
    font-size: 0.84rem;
  }

  .story-text {
    font-size: 0.98rem;
    line-height: 1.7;
  }

  .choice-button {
    padding: 14px 14px;
    font-size: 0.95rem;
    line-height: 1.46;
  }

  .phone-panel {
    padding: 10px;
    border-radius: 22px;
  }

  .phone-shell-top {
    padding-bottom: 10px;
  }

  .phone-pager {
    flex-wrap: wrap;
    justify-content: center;
  }

  .phone-page-indicator {
    order: -1;
    width: 100%;
    text-align: center;
  }

  .feed-bubble {
    max-width: 100%;
  }

  .feed-chat-row {
    gap: 8px;
  }

  .ending-layout {
    gap: 18px;
  }

  .ending-head {
    margin-bottom: 4px;
  }

  .ending-art {
    min-height: 220px;
  }

  .ending-art-copy {
    display: none;
  }

  .ending-recap {
    margin-top: 20px;
    padding-top: 18px;
  }

  .ending-recap-card {
    padding: 14px;
  }
}

@media (max-width: 420px) {
  .shell {
    width: calc(100% - 16px);
    padding-top: 10px;
  }

  .topbar {
    padding: 14px;
    border-radius: 20px;
  }

  .topbar h2 {
    font-size: 1.55rem;
  }

  .stats-panel {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-card {
    padding: 9px 9px 8px;
  }

  .stat-value {
    font-size: 0.84rem;
  }

  .hero-card,
  .ending-card {
    padding: 20px 14px;
    border-radius: 20px;
  }

  .hero-copy,
  .start-warning-list,
  .hero-side-list,
  .ending-body {
    font-size: 0.92rem;
  }

  .hero-hook,
  .ending-context {
    font-size: 0.92rem;
  }

  .ending-spotlight-text {
    font-size: 0.9rem;
  }

  .story-panel,
  .phone-panel {
    border-radius: 20px;
  }

  .story-panel {
    padding: 16px 12px 18px;
  }

  .route-whisper,
  .gossip-whisper {
    padding: 12px;
  }

  .choice-list {
    gap: 10px;
  }

  .choice-button {
    border-radius: 16px;
  }

  .phone-tabs {
    grid-template-columns: 1fr;
  }

  .phone-tab.has-unread::after {
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
  }

  .feed-item {
    padding: 12px;
    border-radius: 16px;
  }

  .feed-item-body,
  .ending-recap-text {
    font-size: 0.88rem;
  }

  .ending-art {
    min-height: 200px;
    border-radius: 18px;
  }

  .ending-trait {
    font-size: 0.78rem;
    padding: 8px 10px;
  }
}

:root {
  --bg: #f5f3ee;
  --panel: rgba(255, 255, 255, 0.96);
  --panel-soft: rgba(255, 255, 255, 0.92);
  --panel-deep: rgba(255, 255, 255, 0.98);
  --line: rgba(8, 8, 8, 0.28);
  --text: #101010;
  --muted: #4d4d4d;
  --muted-soft: rgba(16, 16, 16, 0.56);
  --panel-quiet: rgba(0, 0, 0, 0.02);
  --accent: #111111;
  --accent-soft: #111111;
  --gold: #111111;
  --danger: #111111;
  --good: #111111;
  --shadow: none;
  font-family: "Arial Narrow", "Helvetica Neue", "PingFang SC", sans-serif;
}

body {
  background:
    radial-gradient(circle at 50% 0%, rgba(0, 0, 0, 0.035), transparent 28%),
    linear-gradient(180deg, #faf9f5 0%, #f0ede6 100%);
  color: var(--text);
}

body::before {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: none;
  opacity: 0.22;
}

button {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.shell {
  width: min(1280px, calc(100% - 24px));
  padding: 12px 0 28px;
}

.hero-card,
.ending-card,
.story-panel,
.phone-panel,
.stats-panel,
.topbar,
.directory-panel,
.directory-card,
.hero-side-card,
.start-warning,
.start-disclaimer,
.ending-traits-card,
.ending-art-card,
.ending-spotlight,
.feed-item,
.stat-card,
.choice-button,
.secondary-button,
.primary-button,
.ghost-button,
.phone-page-button,
.phone-tab,
.save-summary {
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.hero-card,
.ending-card,
.story-panel,
.phone-panel,
.stats-panel,
.directory-panel,
.directory-card,
.hero-side-card,
.start-warning,
.start-disclaimer,
.ending-traits-card,
.ending-art-card,
.ending-spotlight,
.stat-card,
.feed-item,
.save-summary {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 248, 242, 0.98));
  border: 1.5px solid rgba(0, 0, 0, 0.45);
}

.hero-card,
.ending-card {
  max-width: 1160px;
  margin: 0 auto;
  padding: 26px;
  overflow: visible;
}

.hero-card::before,
.ending-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  pointer-events: none;
}

.hero-orbit,
.ending-glow,
.ending-art-orb {
  display: none;
}

.eyebrow,
.directory-kicker,
.story-panel-kicker,
.story-panel-status,
.start-warning-label,
.hero-side-label,
.ending-context,
.ending-spotlight-label,
.ending-traits-label,
.phase-badge,
.route-whisper::before,
.gossip-whisper::before {
  color: #111111;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-card h1,
.ending-card h2,
.topbar h2 {
  font-family: "Arial Black", "Arial Narrow", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #0d0d0d;
}

.hero-card h1 {
  font-size: clamp(2.4rem, 5vw, 4.9rem);
  line-height: 0.98;
  max-width: 11ch;
  text-wrap: balance;
}

.topbar h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 0.94;
}

.ending-card h2 {
  font-size: clamp(2.5rem, 5vw, 5.3rem);
  line-height: 0.9;
}

.hero-hook,
.ending-context,
.ending-spotlight-text {
  color: #111111;
}

.hero-copy,
.ending-tagline,
.ending-body,
.start-warning-list,
.hero-side-list,
.directory-note,
.directory-card-blurb,
.feed-item-body,
.gossip-whisper,
.route-whisper,
.story-text,
.phone-page-indicator {
  color: var(--muted);
}

.hero-layout {
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
  gap: 20px;
}

.hero-main,
.hero-side,
.ending-layout,
.content-grid {
  position: relative;
}

.hero-side {
  gap: 12px;
  grid-template-rows: auto auto 1fr;
}

.hero-side-card,
.start-warning,
.start-disclaimer {
  padding: 18px;
  min-height: 100%;
}

.hero-side-list,
.start-warning-list {
  padding-left: 0;
  list-style: none;
}

.hero-side-list li,
.start-warning-list li {
  padding: 10px 0 0 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  position: relative;
}

.hero-side-list li:first-child,
.start-warning-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.hero-side-list li::before,
.start-warning-list li::before {
  content: "///";
  position: absolute;
  left: 0;
  top: 10px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero-side-list li:first-child::before,
.start-warning-list li:first-child::before {
  top: 0;
}

.hero-meta {
  gap: 0;
  margin: 22px 0 24px;
  border: 1.5px solid rgba(0, 0, 0, 0.45);
}

.hero-meta span,
.speaker-tag,
.stat-chip {
  border: 0;
  border-right: 1.5px solid rgba(0, 0, 0, 0.45);
  background: transparent;
  color: #111111;
  padding: 10px 14px;
  border-radius: 0;
  font-weight: 700;
}

.hero-meta span:last-child {
  border-right: 0;
}

.hero-actions {
  gap: 10px;
  flex-wrap: wrap;
}

.primary-button,
.secondary-button,
.ghost-button,
.phone-page-button,
.phone-tab,
.choice-button {
  border: 1.5px solid rgba(0, 0, 0, 0.65);
  background: #ffffff;
  color: #111111;
  padding: 13px 16px;
}

.primary-button {
  background: #111111;
  color: #f8f7f3;
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.phone-page-button:hover,
.phone-tab:hover,
.choice-button:hover {
  background: #111111;
  color: #f8f7f3;
  border-color: #111111;
  transform: none;
}

.author-credit,
.ending-credit {
  color: rgba(0, 0, 0, 0.72);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.author-credit span {
  color: #f09a52;
  font-weight: 800;
}

.directory-backdrop {
  background: rgba(245, 243, 238, 0.78);
  backdrop-filter: blur(2px);
}

.directory-panel {
  padding: 22px;
}

.directory-panel-head {
  padding-bottom: 14px;
  border-bottom: 1.5px solid rgba(0, 0, 0, 0.45);
}

.directory-close {
  border-radius: 0;
  border: 1.5px solid rgba(0, 0, 0, 0.6);
  background: #111111;
  color: #faf8f3;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.directory-grid {
  gap: 10px;
}

.directory-card {
  padding: 14px;
}

.directory-card-name,
.directory-card-role {
  text-transform: uppercase;
}

.topbar {
  padding: 16px 18px;
  margin-bottom: 12px;
  background: #fbfaf5;
}

.phase-badge {
  padding: 7px 12px;
  border-radius: 0;
  border: 1.5px solid rgba(0, 0, 0, 0.55);
  background: #111111;
  color: #faf8f3;
}

.stats-panel {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  margin-bottom: 12px;
}

.stat-card {
  padding: 12px 12px 10px;
  border: 0;
  border-right: 1.5px solid rgba(0, 0, 0, 0.45);
}

.stat-card:last-child {
  border-right: 0;
}

.stat-label,
.stat-value {
  color: #111111;
  text-transform: uppercase;
  font-weight: 800;
}

.stat-bar {
  height: 8px;
  border-radius: 0;
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.14) 0 10px, rgba(0, 0, 0, 0.02) 10px 20px);
  border: 1px solid rgba(0, 0, 0, 0.26);
}

.stat-fill {
  border-radius: 0;
  background: #111111;
  box-shadow: none;
}

.content-grid {
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.78fr);
  gap: 12px;
}

.story-panel {
  min-height: 560px;
  padding: 18px;
}

.story-panel-head {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1.5px solid rgba(0, 0, 0, 0.4);
}

.story-panel-kicker,
.story-panel-status {
  border-radius: 0;
  border: 1.5px solid rgba(0, 0, 0, 0.45);
  background: #ffffff;
  padding: 7px 10px;
}

.route-whisper,
.gossip-whisper,
.ending-spotlight,
.save-summary {
  border-radius: 0;
  background: #fcfbf7;
  border: 1.5px solid rgba(0, 0, 0, 0.35);
}

.route-whisper {
  display: flex;
  gap: 0;
  padding: 0;
  overflow-x: auto;
  background:
    linear-gradient(180deg, rgba(88, 28, 28, 0.12), rgba(68, 18, 18, 0.08));
  border-color: rgba(104, 29, 29, 0.45);
}

.route-whisper::before {
  display: inline-flex;
  align-items: center;
  padding: 12px 14px;
  border-right: 1.5px solid rgba(104, 29, 29, 0.45);
  margin-right: 0;
  background: rgba(94, 24, 24, 0.92);
  color: #f6dfdf;
}

.whisper-line {
  border-radius: 0;
  border: 0;
  border-right: 1px solid rgba(0, 0, 0, 0.12);
  background: transparent;
  padding: 12px 14px;
  color: #5a1515;
}

.gossip-whisper {
  padding: 14px;
}

.speaker-tag {
  font-weight: 800;
}

.story-text {
  min-height: 240px;
  font-size: 1.06rem;
  line-height: 1.9;
}

.choice-list {
  gap: 0;
  border: 1.5px solid rgba(0, 0, 0, 0.45);
}

.choice-button {
  border: 0;
  border-bottom: 1.5px solid rgba(0, 0, 0, 0.45);
  padding: 16px 18px;
  font-size: 0.98rem;
}

.choice-button:last-child {
  border-bottom: 0;
}

.phone-panel {
  padding: 10px;
  position: sticky;
  top: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 246, 241, 0.98));
}

.phone-shell-top {
  padding: 0 0 10px;
}

.phone-camera-bar {
  width: 64px;
  height: 4px;
  border-radius: 0;
  background: rgba(0, 0, 0, 0.65);
}

.phone-tabs {
  gap: 0;
  margin-bottom: 8px;
  border: 1.5px solid rgba(0, 0, 0, 0.45);
}

.phone-tab {
  border: 0;
  border-right: 1.5px solid rgba(0, 0, 0, 0.45);
  border-radius: 0;
}

.phone-tab:last-child {
  border-right: 0;
}

.phone-tab.active {
  background: #111111;
  color: #faf8f3;
  border-color: rgba(0, 0, 0, 0.45);
}

.phone-pager {
  padding: 0;
  margin-bottom: 8px;
}

.phone-page-button {
  border-radius: 0;
  padding: 8px 10px;
}

.phone-feed {
  gap: 8px;
  padding: 0;
}

.phone-feed[data-tab="chat"],
.phone-feed[data-tab="twitter"],
.phone-feed[data-tab="moments"] {
  background: transparent;
  border-radius: 0;
}

.feed-item {
  padding: 12px;
  background: #ffffff;
  border: 1.5px solid rgba(0, 0, 0, 0.3);
}

.feed-item-chat {
  background: transparent;
  border: 0;
  padding: 0;
}

.feed-bubble {
  border-radius: 0;
  background: #ffffff;
  border: 1.5px solid rgba(0, 0, 0, 0.4);
  color: #111111;
}

.feed-item-chat.self .feed-bubble {
  background: #f3f0e7;
  color: #111111;
  border-color: rgba(0, 0, 0, 0.56);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.feed-avatar {
  border-radius: 0;
  background: #111111;
  border: 0;
  color: #faf8f3;
}

.feed-meta-line,
.feed-item-header {
  color: rgba(0, 0, 0, 0.56);
}

.kol-name,
.feed-handle,
.hot-tag {
  background: none;
  color: #111111;
  text-shadow: none;
}

.hot-tag {
  padding: 0;
  margin-right: 8px;
  border: 0;
}

.ending-layout {
  grid-template-columns: minmax(0, 1.22fr) minmax(300px, 0.78fr);
  gap: 16px;
}

.ending-body {
  margin: 18px 0 20px;
  font-size: 1rem;
}

.ending-spotlight {
  padding: 14px 16px;
}

.ending-side-stack {
  gap: 10px;
}

.ending-art-card,
.ending-traits-card {
  padding: 10px;
}

.ending-art {
  min-height: 420px;
  border-radius: 0;
  border: 1.5px solid rgba(0, 0, 0, 0.35);
  background:
    radial-gradient(circle at 78% 22%, rgba(0, 0, 0, 0.1), transparent 18%),
    linear-gradient(180deg, #ffffff, #f7f5ef);
  box-shadow: none;
  filter: grayscale(1) contrast(1.08);
}

.ending-art::before {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.02), transparent 20%);
}

.ending-art-noise {
  opacity: 0.14;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.08) 1px, transparent 1px);
}

.ending-art-line {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.04));
}

.ending-traits {
  gap: 0;
  display: flex;
  flex-wrap: wrap;
  border: 1.5px solid rgba(0, 0, 0, 0.35);
}

.ending-trait {
  border-radius: 0;
  border: 0;
  border-right: 1px solid rgba(0, 0, 0, 0.24);
  padding: 10px 12px;
  color: #111111;
  background: #ffffff;
  font-weight: 700;
  text-transform: uppercase;
}

.ending-trait:last-child {
  border-right: 0;
}

.ending-actions {
  gap: 8px;
}

.kol-name {
  display: inline-flex;
  align-items: center;
  margin: 0 0.12em;
  padding: 0.08em 0.38em 0.02em;
  border: 1.5px solid rgba(0, 0, 0, 0.8);
  background: #111111;
  color: #faf8f3;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.15;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.14);
  vertical-align: baseline;
  text-transform: uppercase;
}

.story-text .kol-name,
.ending-body .kol-name,
.ending-tagline .kol-name {
  transform: translateY(-0.03em);
}

.route-whisper .kol-name,
.gossip-whisper .kol-name,
.feed-item-body .kol-name,
.feed-item-header .kol-name {
  background: transparent;
  color: #111111;
  box-shadow: none;
}

@media (max-width: 920px) {
  .hero-layout,
  .ending-layout,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .hero-meta,
  .choice-list,
  .phone-tabs,
  .stats-panel {
    display: grid;
  }

  .stats-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-card:nth-child(2n) {
    border-right: 0;
  }
}

@media (max-width: 640px) {
  .hero-card,
  .ending-card,
  .story-panel,
  .phone-panel,
  .topbar,
  .directory-panel {
    padding: 14px;
  }

  .hero-card::before,
  .ending-card::before,
  .story-panel::before,
  .phone-panel::before,
  .directory-panel::before {
    inset: 6px;
  }

  .hero-card h1,
  .ending-card h2,
  .topbar h2 {
    letter-spacing: 0.02em;
  }

  .hero-actions,
  .ending-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .stats-panel {
    grid-template-columns: 1fr;
  }

  .stat-card {
    border-right: 0;
    border-bottom: 1.5px solid rgba(0, 0, 0, 0.45);
  }

  .stat-card:last-child {
    border-bottom: 0;
  }
}

:root {
  --ink-strong: rgba(0, 0, 0, 0.82);
  --ink-mid: rgba(0, 0, 0, 0.46);
  --ink-soft: rgba(0, 0, 0, 0.18);
  --paper: #fcfbf7;
  --paper-alt: #f3f0e8;
}

.hero-card,
.story-panel,
.phone-panel,
.stats-panel,
.topbar,
.ending-card,
.directory-panel,
.ending-art-card,
.ending-traits-card {
  position: relative;
}

.hero-card::after,
.ending-card::after,
.story-panel::after,
.phone-panel::after,
.directory-panel::after {
  content: none;
}

.hero-card::before,
.ending-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  pointer-events: none;
}

.hero-card > .hero-layout::before,
.content-grid::before,
.ending-layout::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(100% - 31.5%);
  width: 1.5px;
  background: var(--ink-soft);
  pointer-events: none;
}

.hero-card > .hero-layout::after,
.topbar::before,
.story-panel-head::before,
.phone-tabs::before,
.ending-side-stack::before {
  content: "///";
  position: absolute;
  top: -11px;
  right: 0;
  padding: 0 8px;
  background: var(--paper);
  color: #111;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  pointer-events: none;
}

.hero-card > .hero-layout::after {
  right: calc(31.5% + 8px);
}

.topbar::before,
.story-panel-head::before,
.phone-tabs::before,
.ending-side-stack::before {
  top: -10px;
  right: 10px;
}

.hero-card .hero-main::before,
.hero-side::before,
.story-panel::before,
.phone-panel::before,
.ending-main::before,
.ending-side::before,
.stats-panel::before,
.directory-panel::before {
  content: "";
  position: absolute;
  top: -11px;
  left: 12px;
  inset: auto;
  right: auto;
  bottom: auto;
  width: auto;
  height: auto;
  padding: 0 8px;
  background: var(--paper);
  border: 0;
  color: #111;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-card .hero-main::before { content: "ENTRY / 001"; }
.hero-side::before { content: "BRIEF / LIVE"; }
.stats-panel::before { content: "METRICS / CORE"; }
.story-panel::before { content: "SCENE / ACTIVE"; }
.phone-panel::before { content: "FEED / LIVE"; inset: 8px; border: 1px solid rgba(0,0,0,0.12); }
.ending-main::before { content: "RESULT / FINAL"; }
.ending-side::before { content: "DOSSIER / SIDE"; }
.directory-panel::before { content: "DIRECTORY / 028"; }

.phone-panel::before {
  content: "FEED / LIVE";
  display: inline-block;
  width: auto;
  bottom: auto;
  right: auto;
  border: 0;
  pointer-events: none;
}

.phone-tabs,
.phone-pager,
.phone-feed {
  position: relative;
  z-index: 1;
}

.ending-art-card::before,
.ending-art-card::after,
.story-panel::after,
.phone-feed::before,
.ending-traits-card::before {
  pointer-events: none;
}

.ending-art-card::before,
.ending-art-card::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--ink-mid);
  border-style: solid;
}

.ending-art-card::before {
  top: 10px;
  left: 10px;
  border-width: 1.5px 0 0 1.5px;
}

.ending-art-card::after {
  right: 10px;
  bottom: 10px;
  border-width: 0 1.5px 1.5px 0;
}

.ending-art::after,
.hero-card h1::after {
  content: "";
  display: block;
  margin-top: 10px;
  height: 12px;
  background:
    repeating-linear-gradient(90deg, var(--ink-mid) 0 1px, transparent 1px 18px);
  opacity: 0.4;
}

.hero-card h1::after {
  width: min(100%, 34rem);
}

.phone-feed::before {
  content: "";
  display: block;
  height: 12px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--ink-soft);
  background:
    repeating-linear-gradient(90deg, var(--ink-mid) 0 1px, transparent 1px 16px);
  opacity: 0.5;
}

.hero-meta span {
  position: relative;
  padding-top: 18px;
}

.hero-meta span::before {
  position: absolute;
  top: 4px;
  left: 10px;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  color: var(--ink-mid);
}

.hero-meta span:nth-child(1)::before { content: "TIME_"; }
.hero-meta span:nth-child(2)::before { content: "DAYS_"; }
.hero-meta span:nth-child(3)::before { content: "END_"; }

.ending-traits-card::after {
  content: "THREAT_ ●●●○○    STATUS_ SHARP";
  display: block;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--ink-soft);
  color: #111;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.author-credit::before,
.ending-credit::before {
  content: "RITA / WEB3 HK SIM";
  margin-right: 12px;
  color: var(--ink-mid);
}

.hero-card,
.ending-card {
  padding: 18px;
}

.hero-layout,
.ending-layout {
  align-items: start;
  gap: 14px;
}

.hero-main,
.ending-main,
.hero-side,
.ending-side,
.stats-panel,
.story-panel-head,
.phone-tabs,
.ending-side-stack,
.content-grid,
.hero-card > .hero-layout,
.ending-layout {
  min-width: 0;
  position: relative;
}

.hero-main,
.ending-main {
  display: grid;
  gap: 10px;
  padding: 12px 14px 14px;
  border: 1.5px solid var(--ink-strong);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(251, 250, 245, 0.98));
}

.hero-side,
.ending-side {
  padding: 10px;
  border: 1.5px solid var(--ink-mid);
  background:
    linear-gradient(180deg, rgba(249, 247, 241, 0.98), rgba(242, 239, 231, 0.98));
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  padding: 4px 8px;
  border: 1.5px solid var(--ink-strong);
  background: #fff;
}

.hero-card h1 {
  margin: 4px 0 2px;
  font-size: clamp(2.2rem, 4.8vw, 5.2rem);
  line-height: 0.9;
  max-width: none;
}

.hero-hook {
  margin: 2px 0 0;
  padding-top: 10px;
  border-top: 1.5px solid var(--ink-strong);
  font-size: 1rem;
  line-height: 1.55;
}

.hero-copy {
  max-width: 46rem;
  padding: 4px 0 0;
  font-size: 0.98rem;
  line-height: 1.74;
}

.hero-copy p:last-child {
  padding-top: 8px;
  border-top: 1px solid var(--ink-soft);
}

.hero-side-card,
.start-warning,
.start-disclaimer,
.ending-art-card,
.ending-traits-card,
.ending-spotlight {
  background: var(--paper);
  border-color: var(--ink-mid);
}

.hero-side-card,
.start-warning,
.start-disclaimer {
  padding: 14px;
}

.hero-side-label,
.start-warning-label,
.start-disclaimer-label {
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1.5px solid var(--ink-strong);
}

.start-disclaimer {
  position: relative;
  border: 1.5px solid var(--ink-mid);
  min-height: 100%;
  display: grid;
  align-content: start;
  gap: 10px;
}

.start-disclaimer-label {
  margin-top: 0;
  color: #111111;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.start-disclaimer-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.68;
}

.start-disclaimer::before {
  display: none;
}

.hero-side-list li,
.start-warning-list li {
  padding-left: 16px;
}

.hero-side-list li::before,
.start-warning-list li::before {
  content: ">";
  top: 11px;
  font-size: 0.82rem;
}

.hero-side-list li:first-child::before,
.start-warning-list li:first-child::before {
  top: 1px;
}

.hero-meta {
  margin: 18px 0 20px;
  background: #fff;
}

.hero-meta span {
  display: grid;
  place-items: center;
  min-height: 48px;
  font-size: 0.78rem;
}

.hero-meta span.hero-meta-note {
  font-size: 1rem;
  font-weight: 800;
}

.hero-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.primary-button,
.secondary-button,
.ghost-button {
  min-height: 52px;
  font-size: 0.82rem;
  font-weight: 800;
}

.author-credit,
.ending-credit {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--ink-soft);
}

.topbar {
  padding: 0;
  overflow: hidden;
}

.topbar-copy,
.topbar-actions {
  padding: 14px 16px;
}

.topbar-copy {
  gap: 10px;
  flex: 1 1 auto;
  border-right: 1.5px solid var(--ink-mid);
}

.topbar h2 {
  font-size: clamp(1.8rem, 3.6vw, 3.4rem);
  line-height: 0.96;
}

.phase-badge {
  min-height: 34px;
  font-size: 0.74rem;
}

.stats-panel {
  background: #fff;
  border-color: var(--ink-strong);
}

.stat-card {
  position: relative;
  padding: 14px 12px 12px;
}

.stat-card::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 0;
  width: 44px;
  height: 4px;
  background: #111;
}

.stat-card strong {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.stat-label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.stat-value {
  font-size: 1.14rem;
  letter-spacing: 0.02em;
}

.content-grid {
  gap: 10px;
}

.story-panel {
  padding: 16px;
  border-color: var(--ink-strong);
}

.story-panel-head {
  margin-bottom: 12px;
  padding-bottom: 10px;
}

.story-panel-kicker,
.story-panel-status {
  min-height: 34px;
  font-size: 0.72rem;
  font-weight: 800;
}

.route-whisper,
.gossip-whisper {
  margin-bottom: 10px;
}

.route-whisper::before,
.gossip-whisper::before {
  font-size: 0.68rem;
}

.whisper-line {
  min-height: 46px;
  align-items: center;
  display: inline-flex;
}

.speaker-line {
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.speaker-line::after {
  content: "";
  width: 1px;
  height: 26px;
  background: var(--ink-mid);
  flex: 0 0 auto;
}

.speaker-tag {
  display: inline-flex;
  align-items: center;
  min-height: 0;
  padding: 0;
  border: 0;
  border-right: 0;
  background: transparent;
  color: var(--ink-mid);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: none;
}

.story-text {
  max-width: none;
  min-height: 260px;
  font-size: 1rem;
  line-height: 1.88;
  color: #171717;
}

.choice-guide {
  margin: 18px 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px 6px 0;
  color: var(--ink-mid);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.choice-guide::before {
  content: "///";
  color: var(--ink-mid);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
}

.choice-guide::after {
  content: "↓";
  color: var(--ink-mid);
  font-size: 0.9rem;
  line-height: 1;
}

.choice-list {
  margin-top: 18px;
  background: #fff;
  gap: 0;
  border: 1.5px solid rgba(0, 0, 0, 0.45);
}

.choice-button {
  position: relative;
  border: 0;
  border-bottom: 1.5px solid rgba(0, 0, 0, 0.45);
  padding: 15px 16px 15px 52px;
  font-size: 0.94rem;
  line-height: 1.55;
  transition:
    background-color 140ms ease,
    color 140ms ease,
    box-shadow 140ms ease;
}

.choice-button::before {
  content: "///";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--ink-mid);
}

.choice-button:last-child {
  border-bottom: 0;
}

.choice-button:hover {
  background:
    linear-gradient(90deg, rgba(17, 17, 17, 0.96) 0 4px, rgba(243, 240, 231, 0.98) 4px 100%);
  border-color: rgba(0, 0, 0, 0.45);
  color: #111111;
  transform: none;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.choice-button:hover::before {
  color: #111111;
}

.choice-button:focus-visible {
  outline: 2px solid #111;
  outline-offset: 3px;
}

.phone-panel {
  padding: 8px;
  border-color: var(--ink-mid);
  background:
    linear-gradient(180deg, rgba(245, 243, 237, 0.98), rgba(238, 235, 227, 0.98));
}

.phone-panel::before {
  inset: 8px;
}

.phone-tabs,
.phone-pager {
  background: #fff;
}

.phone-tab {
  min-height: 42px;
  font-size: 0.74rem;
  font-weight: 800;
}

.phone-page-button {
  min-height: 38px;
  font-size: 0.7rem;
}

.phone-page-indicator {
  font-size: 0.72rem;
  font-weight: 700;
}

.phone-feed {
  background: #fff;
  border: 1.5px solid var(--ink-mid);
  padding: 8px;
}

.feed-item {
  background: #fff;
}

.feed-item-header {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.feed-item-body {
  font-size: 0.9rem;
  line-height: 1.62;
}

.feed-bubble {
  max-width: 92%;
}

.ending-main {
  gap: 8px;
}

.ending-context {
  margin-bottom: 4px;
  padding-bottom: 10px;
  border-bottom: 1.5px solid var(--ink-strong);
  font-size: 0.94rem;
}

.ending-card h2 {
  margin: 2px 0 4px;
  font-size: clamp(2.4rem, 4.8vw, 5rem);
  line-height: 0.88;
}

#ending-title {
  font-size: clamp(2rem, 4.1vw, 4.2rem);
  line-height: 0.94;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.ending-tagline {
  font-size: 0.98rem;
  line-height: 1.7;
}

.ending-body {
  max-width: 58ch;
  margin: 10px 0 14px;
  font-size: 0.98rem;
  line-height: 1.84;
}

.ending-spotlight {
  padding: 12px 14px;
}

.ending-spotlight-label,
.ending-traits-label {
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1.5px solid var(--ink-strong);
}

.ending-art-card {
  padding: 8px;
}

.ending-art {
  min-height: 392px;
}

.ending-traits-card {
  padding: 12px;
}

.ending-traits {
  background: #fff;
}

.ending-side-footer {
  gap: 8px;
}

.ending-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.screen-ending {
  background: transparent;
}

.ending-card {
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(250, 248, 242, 0.98), rgba(241, 237, 228, 0.98));
  border: 1.5px solid var(--ink-strong);
}

.ending-card::before {
  inset: 8px;
  border-color: var(--ink-soft);
}

.ending-layout {
  gap: 12px;
  align-items: start;
}

.ending-main {
  padding: 14px 16px 16px;
  background: rgba(255, 255, 255, 0.92);
  border: 1.5px solid var(--ink-strong);
}

.ending-side {
  padding: 8px;
  background: rgba(248, 245, 238, 0.98);
  border: 1.5px solid var(--ink-mid);
}

.ending-context,
.ending-card h2,
.ending-tagline,
.ending-body,
.ending-spotlight-text,
.ending-traits-label,
.ending-credit {
  color: #111111;
}

.ending-tagline {
  opacity: 1;
  display: inline-block;
  width: 100%;
  margin: 6px 0 10px;
  padding: 10px 14px 10px 18px;
  border-top: 2px solid var(--ink-strong);
  border-left: 6px solid #111111;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.055), rgba(255, 255, 255, 0.12));
  color: #111111;
  font-size: clamp(0.72rem, 1vw, 0.94rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: visible;
}

.ending-body {
  max-width: none;
  width: 100%;
  display: grid;
  gap: 12px;
  margin: 12px 0 16px;
  background: transparent;
  font-size: 1.02rem;
  line-height: 1.9;
  text-wrap: pretty;
}

.ending-body p {
  max-width: none;
  margin: 0;
}

.ending-spotlight {
  background: #fff;
  border: 1.5px solid var(--ink-mid);
}

.ending-art-card,
.ending-traits-card {
  background: #fff;
  border: 1.5px solid var(--ink-mid);
}

.ending-side-footer {
  justify-items: stretch;
}

.ending-actions {
  width: 100%;
}

.ending-credit {
  text-align: right;
}

@media (max-width: 920px) {
  .hero-card > .hero-layout::before,
  .content-grid::before,
  .ending-layout::before,
  .hero-card > .hero-layout::after {
    display: none;
  }

  .hero-main,
  .ending-main,
  .hero-side,
  .ending-side {
    padding: 12px;
  }

  .hero-actions {
    grid-template-columns: 1fr;
  }

  .topbar-copy {
    border-right: 0;
    border-bottom: 1.5px solid var(--ink-mid);
  }

  .story-text,
  .ending-body {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .hero-card h1,
  .ending-card h2 {
    font-size: clamp(2rem, 13vw, 3.8rem);
  }

  .choice-button {
    padding-left: 44px;
  }

  .ending-actions {
    grid-template-columns: 1fr;
  }
}

/* Final responsive pass for launch: keep major screens stable across laptops, tablets, and phones. */
@media (min-width: 1440px) {
  .shell {
    width: min(1320px, calc(100% - 64px));
  }

  .content-grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(360px, 0.82fr);
    gap: 24px;
  }

  .hero-card,
  .ending-card {
    max-width: 1100px;
  }
}

@media (max-width: 1100px) {
  .shell {
    width: min(100%, calc(100% - 24px));
    padding: 18px 0 28px;
  }

  .hero-card,
  .ending-card {
    margin-top: 24px;
    padding: 24px;
    border-radius: 26px;
  }

  .hero-layout,
  .content-grid,
  .ending-layout {
    gap: 18px;
  }

  .phone-panel {
    top: 18px;
    max-height: calc(100vh - 36px);
  }
}

@media (max-width: 920px) {
  .screen-start,
  .screen-ending {
    min-height: auto;
  }

  .hero-card,
  .ending-card {
    margin-top: 12px;
    padding: 20px;
  }

  .hero-layout,
  .content-grid,
  .ending-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .topbar-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .stats-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .story-panel,
  .phone-panel {
    min-height: 0;
  }

  .phone-panel {
    position: relative;
    top: auto;
    max-height: none;
    overflow: visible;
  }

  .phone-feed {
    max-height: min(60vh, 560px);
  }

  .ending-side {
    justify-items: stretch;
  }

  .ending-art {
    min-height: 340px;
  }

  .directory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(100%, calc(100% - 16px));
    padding: 12px 0 20px;
  }

  .hero-card,
  .ending-card,
  .story-panel,
  .phone-panel,
  .stats-panel,
  .topbar,
  .directory-panel {
    border-radius: 22px;
  }

  .hero-card,
  .ending-card {
    padding: 18px 16px;
  }

  .hero-actions {
    flex-wrap: wrap;
    align-items: stretch;
  }

  .hero-actions > button {
    flex: 1 1 100%;
    width: 100%;
  }

  .topbar {
    padding: 16px;
  }

  .stats-panel {
    padding: 14px;
    gap: 10px;
  }

  .story-panel {
    padding: 18px 16px 20px;
    min-height: 0;
  }

  .story-panel-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .route-whisper,
  .gossip-whisper {
    padding: 14px 14px 12px;
    border-radius: 16px;
  }

  .story-text {
    min-height: 0;
    font-size: 1.03rem;
    line-height: 1.72;
  }

  .choice-list {
    margin-top: 20px;
    gap: 0;
  }

  .choice-button {
    position: relative;
    padding: 15px 14px 15px 44px;
    border-radius: 0;
    font-size: 0.94rem;
  }

  .phone-panel {
    padding: 12px;
  }

  .phone-pager {
    padding: 0;
    gap: 8px;
  }

  .phone-page-button {
    padding: 8px 10px;
    font-size: 0.8rem;
  }

  .phone-page-indicator {
    font-size: 0.78rem;
  }

  .phone-feed {
    max-height: 52vh;
    padding-right: 2px;
  }

  .ending-context {
    font-size: 0.98rem;
    line-height: 1.5;
  }

  .ending-tagline {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .ending-body {
    font-size: 0.96rem;
    line-height: 1.76;
  }

  .ending-art {
    min-height: 300px;
  }

  .ending-side-footer {
    justify-items: stretch;
  }

  .ending-credit {
    text-align: left;
  }

  .directory-modal {
    padding: 12px;
  }

  .directory-panel {
    padding: 18px 16px;
    max-height: min(88vh, 920px);
  }

  .directory-panel-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .directory-close {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .topbar,
  .stats-panel,
  .phone-panel,
  .story-panel-head,
  .route-whisper,
  .gossip-whisper,
  .speaker-line {
    display: none !important;
  }

  .content-grid {
    display: block;
  }

  .story-panel {
    padding: 18px 14px 20px;
    border-radius: 18px;
  }

  .story-panel::before,
  .story-panel::after,
  .content-grid::before {
    content: none !important;
  }

  .story-text {
    min-height: 0;
    font-size: 1.02rem;
    line-height: 1.82;
  }

  .choice-guide {
    margin-top: 18px;
  }

  .choice-list {
    margin-top: 14px;
  }

  .hero-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin: 16px 0 18px;
  }

  .hero-meta span,
  .speaker-tag,
  .stat-chip {
    font-size: 0.72rem;
    padding: 9px 6px;
  }

  .hero-meta span.hero-meta-note {
    grid-column: 1 / -1;
    font-size: 0.92rem;
    min-width: 0;
    padding: 10px 8px;
  }

  .hero-meta span:not(.hero-meta-note) {
    min-height: 40px;
    padding-top: 9px;
    text-align: center;
  }

  .hero-meta span:not(.hero-meta-note)::before {
    content: none;
  }

  .topbar-copy {
    gap: 8px;
  }

  .topbar h2 {
    font-size: clamp(1.5rem, 7.6vw, 2rem);
  }

  .phase-badge {
    font-size: 0.76rem;
    letter-spacing: 0.06em;
    padding: 8px 10px;
  }

  .stats-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .stat-card {
    padding: 12px;
  }

  .phone-tabs {
    gap: 6px;
  }

  .phone-tab {
    padding: 10px 8px;
    font-size: 0.78rem;
  }

  .phone-feed {
    max-height: 48vh;
  }

  .feed-item {
    padding: 12px;
    border-radius: 16px;
  }

  .feed-item-body {
    font-size: 0.9rem;
    line-height: 1.58;
  }

  .directory-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .directory-card {
    padding: 14px;
  }
}

@media (max-width: 420px) {
  .shell {
    width: min(100%, calc(100% - 12px));
    padding: 8px 0 16px;
  }

  .hero-card,
  .ending-card,
  .story-panel,
  .phone-panel,
  .stats-panel,
  .topbar,
  .directory-panel {
    border-radius: 18px;
  }

  .hero-card,
  .ending-card {
    padding: 14px 12px;
  }

  .topbar,
  .story-panel,
  .phone-panel,
  .stats-panel,
  .directory-panel {
    padding-left: 12px;
    padding-right: 12px;
  }

  .hero-card h1,
  .ending-card h2 {
    font-size: clamp(1.85rem, 11vw, 2.8rem);
  }

  .hero-hook,
  .ending-context,
  .ending-tagline,
  .story-text,
  .ending-body {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .story-text {
    font-size: 0.96rem;
  }

  .choice-list {
    margin-top: 20px;
    gap: 12px;
  }

  .choice-button {
    padding: 15px 14px 15px 44px;
    border-radius: 16px;
    font-size: 0.96rem;
  }

  .phone-pager {
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
  }

  .phone-page-indicator {
    flex: 1 1 auto;
    min-width: 0;
    order: 0;
    text-align: center;
  }

  .ending-art {
    min-height: 240px;
  }
}

/* Final unification for the three right-side homepage panels. */
.hero-side > .hero-side-panel {
  display: grid;
  align-content: start;
  gap: 0;
  min-height: 0;
  padding: 18px !important;
  border: 1.5px solid rgba(0, 0, 0, 0.45) !important;
  border-radius: 0 !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 248, 242, 0.98)) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.hero-side > .hero-side-panel > .hero-side-panel-label {
  margin: 0 0 12px !important;
  padding: 0 0 10px !important;
  border-bottom: 1.5px solid var(--ink-strong) !important;
  color: #111111 !important;
  font-size: 0.82rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
}

.hero-side > .hero-side-panel > .hero-side-list,
.hero-side > .hero-side-panel > .start-warning-list {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  color: var(--muted) !important;
  font-size: 0.95rem !important;
  line-height: 1.75 !important;
}

.hero-side > .hero-side-panel > .hero-side-panel-list {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  color: var(--muted) !important;
  font-size: 0.95rem !important;
  line-height: 1.75 !important;
}

.hero-side > .hero-side-panel > .hero-side-list li,
.hero-side > .hero-side-panel > .start-warning-list li {
  position: relative !important;
  margin: 0 !important;
  padding: 10px 0 0 20px !important;
  border-top: 1px solid rgba(0, 0, 0, 0.12) !important;
}

.hero-side > .hero-side-panel > .hero-side-panel-list li {
  position: relative !important;
  margin: 0 !important;
  padding: 10px 0 0 20px !important;
  border-top: 1px solid rgba(0, 0, 0, 0.12) !important;
}

.hero-side > .hero-side-panel > .hero-side-list li:first-child,
.hero-side > .hero-side-panel > .start-warning-list li:first-child {
  padding-top: 0 !important;
  border-top: 0 !important;
}

.hero-side > .hero-side-panel > .hero-side-panel-list li:first-child {
  padding-top: 0 !important;
  border-top: 0 !important;
}

.hero-side > .hero-side-panel > .hero-side-list li::before,
.hero-side > .hero-side-panel > .start-warning-list li::before {
  content: "///" !important;
  position: absolute !important;
  left: 0 !important;
  top: 10px !important;
  width: auto !important;
  height: auto !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--ink-mid) !important;
  font-size: 0.7rem !important;
  font-weight: 800 !important;
  box-shadow: none !important;
  transform: none !important;
}

.hero-side > .hero-side-panel > .start-warning-list li::before {
  content: "✦" !important;
  font-size: 0.76rem !important;
  letter-spacing: 0 !important;
}

.hero-side > .start-warning.hero-side-panel > .start-warning-list.hero-side-panel-list li::before {
  content: "✦" !important;
  font-size: 0.76rem !important;
  letter-spacing: 0 !important;
}

.hero-side > .start-disclaimer.hero-side-panel > .hero-side-panel-list li::before {
  content: "▸" !important;
  font-size: 0.78rem !important;
  letter-spacing: 0 !important;
}

.hero-side > .hero-side-panel > .hero-side-panel-list li::before {
  content: "///" !important;
  position: absolute !important;
  left: 0 !important;
  top: 10px !important;
  width: auto !important;
  height: auto !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--ink-mid) !important;
  font-size: 0.7rem !important;
  font-weight: 800 !important;
  box-shadow: none !important;
  transform: none !important;
}

.hero-side > .hero-side-panel > .hero-side-list li:first-child::before,
.hero-side > .hero-side-panel > .start-warning-list li:first-child::before {
  top: 0 !important;
}

.hero-side > .hero-side-panel > .hero-side-panel-list li:first-child::before {
  top: 0 !important;
}

.hero-side > .hero-side-panel > .hero-side-panel-copy {
  margin: 0 !important;
  color: var(--muted) !important;
  font-size: 0.92rem !important;
  line-height: 1.7 !important;
}
