:root {
  color-scheme: dark;
  --bg-0: #09080d;
  --bg-1: #14111c;
  --surface: rgba(24, 19, 34, 0.82);
  --surface-strong: rgba(31, 24, 44, 0.94);
  --text-main: #fff5ef;
  --text-soft: rgba(255, 245, 239, 0.68);
  --accent-primary: #ff7a59;
  --accent-secondary: #ffb36b;
  --accent-cool: #7fe7ff;
  --line-soft: rgba(255, 255, 255, 0.08);
  --bg: var(--bg-0);
  --panel: var(--surface);
  --panel-strong: var(--surface-strong);
  --line: var(--line-soft);
  --text: var(--text-main);
  --muted: var(--text-soft);
  --accent: var(--accent-primary);
  --accent-soft: rgba(255, 122, 89, 0.16);
  --accent-strong: #ffd6b3;
  --success: #82f0cb;
  --danger: #ff6c88;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.03);
  --glow: 0 0 0 1px rgba(255, 255, 255, 0.05), 0 18px 42px rgba(255, 122, 89, 0.12);
  --radius-xl: 26px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --font-display: "Sora", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  scroll-padding-top: 112px;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top, rgba(255, 122, 89, 0.16), transparent 28%),
    radial-gradient(circle at 78% 14%, rgba(127, 231, 255, 0.1), transparent 24%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 100%);
  color: var(--text);
  font-family: var(--font-body);
  padding-bottom: env(safe-area-inset-bottom);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
  border: 0;
}

.background-orb {
  position: fixed;
  width: 38vw;
  height: 38vw;
  min-width: 260px;
  min-height: 260px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.orb-left {
  top: -8vw;
  left: -10vw;
  animation: float-orb 10s ease-in-out infinite;
}

.orb-right {
  right: -12vw;
  bottom: -12vw;
  animation: float-orb 12s ease-in-out infinite reverse;
}

.app-shell {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  padding: 24px 18px calc(96px + env(safe-area-inset-bottom));
}

.screen {
  position: relative;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.topbar-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.level-switcher-shell {
  position: relative;
}

.level-switcher-trigger {
  min-width: 132px;
}

.level-switcher-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(92vw, 420px);
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(17, 14, 27, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(18px);
  z-index: 40;
}

.level-switcher-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.level-switcher-filter {
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.78rem;
}

.level-switcher-filter.is-active {
  color: rgba(255, 237, 224, 0.96);
  border-color: rgba(255, 179, 107, 0.22);
  background: rgba(255, 179, 107, 0.1);
}

.level-switcher-head strong {
  font-family: var(--font-display);
  font-size: 0.96rem;
}

.level-switcher-head span {
  color: var(--muted);
  font-size: 0.82rem;
}

.level-switcher-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-height: min(56vh, 520px);
  overflow: auto;
  padding-right: 2px;
}

.level-switcher-item {
  display: grid;
  gap: 6px;
  padding: 12px 13px;
  border-radius: 16px;
  text-align: left;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-main);
}

.level-switcher-item:hover,
.level-switcher-item:focus-visible {
  background: rgba(255, 255, 255, 0.06);
}

.level-switcher-item.is-current {
  background: rgba(255, 179, 107, 0.1);
  border-color: rgba(255, 179, 107, 0.22);
}

.level-switcher-item.is-completed .level-switcher-item-index {
  color: rgba(255, 214, 179, 0.96);
}

.level-switcher-item.is-live {
  border-color: rgba(127, 231, 255, 0.18);
}

.level-switcher-item-index {
  color: var(--accent-cool);
  font-family: var(--font-display);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
}

.level-switcher-item-title {
  font-family: var(--font-display);
  font-size: 0.94rem;
  line-height: 1.3;
}

.level-switcher-item-meta {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.level-switcher-return {
  min-height: 40px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
}

.level-switcher-empty {
  padding: 12px 14px;
  border-radius: 16px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
  background: rgba(255, 255, 255, 0.035);
  border: 1px dashed rgba(255, 255, 255, 0.08);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 0.92rem;
}

.chip strong {
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
}

.ghost-button {
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 160ms ease, transform 160ms ease;
}

.ghost-button:hover,
.ghost-button:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.card {
  padding: 28px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-card {
  min-height: calc(100vh - 120px);
  display: grid;
  align-content: space-between;
  gap: 28px;
}

.screen--content-update {
  min-height: calc(100vh - 140px);
  display: grid;
  place-items: center;
}

.content-update-card {
  width: min(760px, 100%);
  display: grid;
  gap: 24px;
}

.content-update-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.content-update-panel div,
.content-update-note {
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.content-update-panel span,
.content-update-note p {
  color: var(--muted);
}

.content-update-panel span {
  display: block;
  margin-bottom: 8px;
  font-size: 0.86rem;
}

.content-update-panel strong {
  font-family: var(--font-display);
  font-size: 1.12rem;
}

.content-update-note strong {
  color: var(--accent-strong);
  font-family: var(--font-display);
}

.content-update-note p {
  margin: 8px 0 0;
  line-height: 1.7;
}

.action-dock--content-update {
  position: static;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.screen--access,
.screen--policy {
  min-height: calc(100vh - 140px);
  display: grid;
  place-items: center;
}

.access-card,
.policy-card {
  width: min(920px, 100%);
  display: grid;
  gap: 24px;
}

.access-hero {
  display: grid;
  gap: 12px;
}

.access-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 18px;
  align-items: stretch;
}

.access-copy,
.access-form,
.policy-body {
  padding: 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.access-form {
  display: grid;
  gap: 14px;
}

.access-field {
  display: grid;
  gap: 8px;
}

.access-field span {
  color: var(--accent-strong);
  font-family: var(--font-display);
  font-size: 0.92rem;
}

.access-hint,
.access-error {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.access-error {
  color: #ffd6b3;
}

.compliance-strip,
.policy-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.compliance-strip span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  color: rgba(255, 245, 239, 0.72);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
}

.policy-link-row {
  justify-content: center;
}

.policy-link-row .ghost-link {
  min-height: 34px;
}

.policy-body {
  display: grid;
  gap: 14px;
}

.policy-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.eyebrow {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 0.88rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 9vw, 5.2rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
}

.subtitle {
  max-width: 36rem;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.8;
}

.hero-footer {
  display: grid;
  gap: 18px;
}

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

.rule {
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.rule strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: 1rem;
}

.rule span {
  color: var(--muted);
  line-height: 1.7;
}

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

.scoreboard-shell {
  display: grid;
  gap: 12px;
}

.scoreboard-headline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.scoreboard-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.scoreboard-title span:first-child {
  color: var(--accent-strong);
  font-family: var(--font-display);
}

.scoreboard-reason-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(127, 231, 255, 0.1);
  border: 1px solid rgba(127, 231, 255, 0.14);
  color: #d2f7ff;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scoreboard-alert {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  animation: card-swipe-in 420ms ease;
}

.scoreboard-alert strong {
  font-family: var(--font-display);
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scoreboard-alert span {
  color: var(--text-main);
  line-height: 1.5;
}

.scoreboard-alert--overtake {
  background: linear-gradient(135deg, rgba(127, 231, 255, 0.14), rgba(255, 255, 255, 0.02));
  border-color: rgba(127, 231, 255, 0.16);
}

.scoreboard-alert--lockbox {
  background: linear-gradient(135deg, rgba(255, 179, 107, 0.18), rgba(255, 122, 89, 0.12), rgba(127, 231, 255, 0.08));
  border-color: rgba(255, 179, 107, 0.16);
}

.scoreboard-shell--overtake .player-track-grid span {
  background: rgba(127, 231, 255, 0.06);
}

.scoreboard-shell--lockbox .player-track-grid span {
  background: rgba(255, 179, 107, 0.06);
}

.track-scale {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  color: rgba(246, 239, 231, 0.45);
  font-size: 0.78rem;
  text-align: center;
}

.name-card,
.player-card {
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.name-card {
  display: grid;
  gap: 10px;
}

.name-card .ghost-link--name-random {
  justify-self: start;
}

.name-card-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

.name-card span,
.player-card strong {
  display: block;
  font-family: var(--font-display);
}

.name-card span {
  color: var(--accent-strong);
  font-size: 0.92rem;
}

.name-card-note,
.player-role-line,
.muted-copy {
  color: var(--muted);
}

.name-card-note {
  font-size: 0.88rem;
}

.name-input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  outline: none;
}

.name-input:focus {
  border-color: rgba(255, 208, 168, 0.38);
  box-shadow: 0 0 0 3px rgba(255, 208, 168, 0.08);
}

.ghost-link--name-random {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 245, 239, 0.72);
  font-size: 0.84rem;
}

.ghost-link--name-random:hover,
.ghost-link--name-random:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
}

.player-card {
  display: grid;
  gap: 12px;
}

.player-card--winner {
  background: rgba(255, 208, 168, 0.08);
  border-color: rgba(255, 208, 168, 0.22);
  box-shadow: 0 0 0 1px rgba(255, 208, 168, 0.08), 0 18px 40px rgba(255, 208, 168, 0.1);
}

.player-card--leader:not(.player-card--winner) {
  border-color: rgba(255, 208, 168, 0.18);
}

.player-card-head,
.player-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.player-card-head span,
.player-card-meta {
  color: var(--muted);
}

.player-role-line {
  margin-top: 4px;
  font-size: 0.82rem;
}

.player-meter {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.player-meter-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #f7c8a6 0%, #ee8374 100%);
  box-shadow: 0 0 22px rgba(247, 200, 166, 0.28);
  transition: width 320ms ease;
}

.player-meter-flag {
  position: absolute;
  right: 0;
  top: -18px;
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.45);
}

.player-token {
  position: absolute;
  top: -9px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #f6c6a2 0%, #ef8a78 100%);
  color: #2d1317;
  font-size: 0.8rem;
  box-shadow: 0 10px 20px rgba(239, 138, 120, 0.26);
  transition: left 320ms ease;
  animation: token-float 2.2s ease-in-out infinite;
}

.challenge-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: rgba(255, 208, 168, 0.06);
  border: 1px solid rgba(255, 208, 168, 0.14);
}

.challenge-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.challenge-panel-head strong {
  font-family: var(--font-display);
  color: var(--accent-strong);
}

.challenge-panel-head span,
.challenge-note {
  color: var(--muted);
}

.challenge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.challenge-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 0.92rem;
}

.challenge-note {
  margin: 0;
  line-height: 1.7;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.role-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 208, 168, 0.1);
  border: 1px solid rgba(255, 208, 168, 0.18);
  color: var(--accent-strong);
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-style: normal;
  letter-spacing: 0.06em;
}

.role-pill--inline {
  width: fit-content;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.primary-button,
.secondary-button,
.danger-button {
  min-height: 54px;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 1rem;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.primary-button {
  color: #291114;
  background: linear-gradient(135deg, #f6c6a2 0%, #ef8a78 100%);
  box-shadow: 0 14px 40px rgba(239, 138, 120, 0.28);
}

.secondary-button {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.danger-button {
  color: #fff4f4;
  background: rgba(241, 117, 117, 0.18);
  border: 1px solid rgba(241, 117, 117, 0.28);
}

.primary-button:hover,
.primary-button:focus-visible,
.secondary-button:hover,
.secondary-button:focus-visible,
.danger-button:hover,
.danger-button:focus-visible {
  transform: translateY(-1px);
}

.primary-button:disabled,
.secondary-button:disabled,
.danger-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.consent-list,
.meta-list {
  display: grid;
  gap: 14px;
  margin: 24px 0 0;
}

.consent-card .consent-list,
.chapter-card .meta-list {
  gap: 12px;
  margin-top: 18px;
}

.checkline {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.consent-card .checkline,
.chapter-card .checkline {
  padding: 14px 16px;
}

.checkline input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: #f3a18d;
}

.checkline strong,
.section-title,
.task-title,
.ending-title,
.feedback-title {
  font-family: var(--font-display);
}

.checkline p,
.meta-copy,
.body-copy,
.task-copy,
.ending-copy,
.pause-copy {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.8;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.section-title {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.02;
}

.section-subtitle {
  margin: 12px 0 0;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.8;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.progress-wrap {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.95rem;
}

.progress-track {
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #f7c8a6 0%, #ee8374 100%);
  box-shadow: 0 0 32px rgba(247, 200, 166, 0.35);
  transition: width 260ms ease;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  border: 1px solid rgba(255, 208, 168, 0.18);
  font-size: 0.9rem;
}

.task-card,
.feedback-card,
.ending-card,
.pause-card,
.consent-card,
.chapter-card {
  display: grid;
  gap: 22px;
}

.task-card {
  gap: 18px;
}

.chapter-card {
  gap: 24px;
}

.chapter-card > div:first-child {
  display: grid;
  gap: 10px;
}

.chapter-card .eyebrow {
  margin-bottom: 0;
  color: rgba(255, 214, 179, 0.96);
  font-size: clamp(1.06rem, 2.3vw, 1.42rem);
  font-weight: 800;
  letter-spacing: 0.14em;
}

.chapter-card .section-title {
  font-size: clamp(3rem, 7vw, 4.8rem);
  line-height: 0.92;
  letter-spacing: -0.07em;
}

.chapter-card .section-subtitle {
  max-width: 48rem;
  margin-top: 6px;
  color: rgba(255, 245, 239, 0.7);
  font-size: clamp(1.18rem, 2.1vw, 1.48rem);
  line-height: 1.72;
}

.chapter-card .summary-strip {
  background: rgba(255, 255, 255, 0.022);
  border-color: rgba(255, 255, 255, 0.05);
}

.chapter-card .summary-pill strong {
  color: rgba(255, 245, 239, 0.5);
}

.chapter-card .summary-pill span {
  font-size: 0.96rem;
}

.chapter-card .task-block {
  padding: 22px 22px 24px;
}

.chapter-card .task-block-label {
  margin-bottom: 14px;
  font-size: 1rem;
  letter-spacing: 0.16em;
}

.chapter-card .task-copy {
  font-size: clamp(1.18rem, 2vw, 1.42rem);
  line-height: 1.78;
  color: rgba(255, 245, 239, 0.78);
}

.task-title,
.feedback-title,
.ending-title {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3.1rem);
  line-height: 1.06;
}

.task-grid {
  display: grid;
  gap: 18px;
}

.task-stage-bar {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.task-stage-bar--compact {
  gap: 8px;
}

.task-stage-chip {
  display: grid;
  gap: 5px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.task-stage-chip strong,
.step-progress-head strong,
.judge-choice-title {
  font-family: var(--font-display);
}

.task-stage-chip strong {
  color: var(--text-main);
  font-size: 0.98rem;
}

.task-stage-chip span:last-child {
  color: var(--muted);
  font-size: 0.86rem;
}

.task-stage-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-cool) 0%, var(--accent-primary) 100%);
  box-shadow: 0 0 0 6px rgba(127, 231, 255, 0.08);
  animation: pulse-dot 1.4s ease-in-out infinite;
}

.step-progress-shell {
  display: grid;
  gap: 10px;
}

.step-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.86rem;
}

.step-progress,
.split-review-grid {
  display: grid;
  gap: 12px;
}

.step-progress {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.step-pill {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

.step-pill.is-active {
  background: rgba(255, 208, 168, 0.08);
  border-color: rgba(255, 208, 168, 0.18);
  color: var(--text);
}

.step-pill.is-complete {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.step-pill-index {
  font-family: var(--font-display);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  color: var(--accent-strong);
}

.task-block {
  padding: 18px 18px 20px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.task-block-label {
  margin: 0 0 10px;
  color: var(--accent-strong);
  font-family: var(--font-display);
  font-size: 0.86rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.task-copy {
  margin: 0;
  font-size: 1.02rem;
}

.task-directive {
  margin: 0;
  color: var(--text);
  font-size: 1.2rem;
  line-height: 1.7;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.split-task-block {
  display: grid;
  gap: 12px;
}

.split-review-card strong {
  font-family: var(--font-display);
}

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

.split-review-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.task-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.task-meta .chip {
  background: rgba(255, 255, 255, 0.04);
}

.reward-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.reward-box {
  padding: 16px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.reward-box strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.65rem;
}

.reward-box span {
  color: var(--muted);
}

.callout {
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  background: rgba(255, 208, 168, 0.08);
  border: 1px solid rgba(255, 208, 168, 0.14);
}

.callout strong {
  font-family: var(--font-display);
}

.winner-callout {
  background: rgba(255, 208, 168, 0.12);
  animation: pulse-glow 1.6s ease-in-out infinite;
}

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

.journey-step {
  display: grid;
  gap: 5px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

.journey-step strong,
.journey-index {
  font-family: var(--font-display);
}

.journey-index {
  color: rgba(255, 245, 239, 0.46);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
}

.journey-step strong {
  color: var(--text-main);
  font-size: 0.98rem;
}

.journey-step span:last-child {
  font-size: 0.84rem;
  line-height: 1.45;
}

.journey-step.is-done {
  background: rgba(127, 231, 255, 0.08);
  border-color: rgba(127, 231, 255, 0.12);
}

.journey-step.is-active {
  background: linear-gradient(135deg, rgba(255, 179, 107, 0.16), rgba(255, 122, 89, 0.12));
  border-color: rgba(255, 179, 107, 0.16);
  box-shadow: 0 16px 28px rgba(255, 122, 89, 0.12);
}

.final-transition-banner,
.reveal-banner {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.final-transition-banner strong,
.reveal-banner strong {
  font-family: var(--font-display);
  font-size: 1.02rem;
}

.final-transition-banner--locked {
  background: linear-gradient(135deg, rgba(255, 179, 107, 0.14), rgba(255, 255, 255, 0.03));
}

.final-transition-banner--opening {
  background: linear-gradient(135deg, rgba(255, 122, 89, 0.18), rgba(127, 231, 255, 0.08));
  animation: pulse-glow 1.15s ease-in-out infinite;
}

.reveal-banner {
  background: linear-gradient(135deg, rgba(127, 231, 255, 0.12), rgba(255, 122, 89, 0.12));
}

.blindbox-shell {
  display: grid;
  gap: 26px;
}

.blindbox-shell--minimal {
  gap: 22px;
}

.blindbox-hero,
.ending-hero {
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
}

.blindbox {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top, rgba(255, 211, 173, 0.18), transparent 40%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.1);
  min-height: 240px;
}

.blindbox--final {
  min-height: 320px;
  background:
    radial-gradient(circle at top, rgba(255, 196, 132, 0.22), transparent 38%),
    radial-gradient(circle at 82% 20%, rgba(127, 231, 255, 0.1), transparent 26%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018));
}

.blindbox--opening {
  animation: blindbox-shake 0.28s ease-in-out 4;
}

.blindbox::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: calc(var(--radius-xl) - 8px);
  border: 1px dashed rgba(255, 255, 255, 0.12);
}

.blindbox-mark {
  position: absolute;
  right: 26px;
  top: 24px;
  font-family: var(--font-display);
  color: rgba(255, 255, 255, 0.26);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.blindbox-content {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: space-between;
  min-height: 184px;
}

.blindbox-content--centered {
  align-content: center;
  justify-items: center;
  text-align: center;
  gap: 14px;
  min-height: 240px;
}

.blindbox-kicker {
  margin: 0;
  color: rgba(255, 245, 239, 0.7);
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.blindbox-final-title {
  color: var(--text-main);
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.2rem);
  line-height: 0.96;
  max-width: 9ch;
}

.blindbox-burst {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.blindbox-burst span {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f6c6a2 0%, #ef8a78 100%);
  opacity: 0;
}

.blindbox--opening .blindbox-burst span {
  animation: burst-pop 1.2s ease-out forwards;
}

.blindbox-burst span:nth-child(1) { top: 20%; left: 24%; animation-delay: 0.05s; }
.blindbox-burst span:nth-child(2) { top: 26%; right: 22%; animation-delay: 0.12s; }
.blindbox-burst span:nth-child(3) { top: 48%; left: 18%; animation-delay: 0.2s; }
.blindbox-burst span:nth-child(4) { top: 54%; right: 18%; animation-delay: 0.28s; }
.blindbox-burst span:nth-child(5) { bottom: 18%; left: 34%; animation-delay: 0.36s; }
.blindbox-burst span:nth-child(6) { bottom: 20%; right: 32%; animation-delay: 0.44s; }

.celebration-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255, 208, 168, 0.18), rgba(239, 138, 120, 0.12));
  border: 1px solid rgba(255, 208, 168, 0.16);
}

.celebration-banner strong,
.celebration-kicker {
  font-family: var(--font-display);
}

.celebration-kicker {
  color: var(--accent-strong);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.confetti-strip {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  min-height: 32px;
}

.confetti-strip span {
  width: 10px;
  height: 28px;
  border-radius: 999px;
  opacity: 0.82;
  animation: confetti-fall 2.8s ease-in-out infinite;
}

.confetti-strip span:nth-child(odd) {
  background: linear-gradient(180deg, #f6c6a2 0%, #ef8a78 100%);
}

.confetti-strip span:nth-child(even) {
  background: linear-gradient(180deg, #ffd9b7 0%, #f4b2a3 100%);
}

.confetti-strip span:nth-child(1) { animation-delay: 0s; }
.confetti-strip span:nth-child(2) { animation-delay: 0.18s; }
.confetti-strip span:nth-child(3) { animation-delay: 0.36s; }
.confetti-strip span:nth-child(4) { animation-delay: 0.54s; }
.confetti-strip span:nth-child(5) { animation-delay: 0.72s; }
.confetti-strip span:nth-child(6) { animation-delay: 0.9s; }
.confetti-strip span:nth-child(7) { animation-delay: 1.08s; }
.confetti-strip span:nth-child(8) { animation-delay: 1.26s; }

.muted-note {
  color: var(--muted);
  line-height: 1.8;
}

.footer-note {
  margin: 0 auto;
  max-width: 34rem;
  color: rgba(246, 239, 231, 0.54);
  font-size: 0.92rem;
  line-height: 1.7;
  text-align: center;
  text-wrap: balance;
}

.footer-note--landing {
  margin: 0;
  max-width: none;
  color: rgba(246, 239, 231, 0.42);
  font-size: 0.84rem;
  text-align: left;
}

.footer-note--landing-subtle {
  color: rgba(246, 239, 231, 0.32);
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.landing-actions--panel {
  align-items: stretch;
  flex-direction: column;
}

.status-stack {
  display: grid;
  gap: 14px;
}

.divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.inline-kicker {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--accent-strong);
}

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

.mini-box {
  padding: 16px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mini-box strong {
  display: block;
  font-family: var(--font-display);
  margin-bottom: 6px;
}

[data-theme="dusk"] {
  --accent: #f08d7d;
  --accent-soft: rgba(240, 141, 125, 0.14);
  --accent-strong: #ffd2ae;
}

[data-theme="velvet"] {
  --accent: #ef978b;
  --accent-soft: rgba(239, 151, 139, 0.14);
  --accent-strong: #ffd8c4;
}

[data-theme="amber"] {
  --accent: #f1a06a;
  --accent-soft: rgba(241, 160, 106, 0.15);
  --accent-strong: #ffe0af;
}

[data-theme="heat"] {
  --accent: #ff8b72;
  --accent-soft: rgba(255, 139, 114, 0.16);
  --accent-strong: #ffd3b7;
}

[data-theme="eclipse"] {
  --accent: #ff7a8d;
  --accent-soft: rgba(255, 122, 141, 0.14);
  --accent-strong: #ffd1df;
}

[data-theme="midnight"] {
  --accent: #f2a6aa;
  --accent-soft: rgba(242, 166, 170, 0.14);
  --accent-strong: #ffe1dc;
}

@keyframes float-orb {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(0, 24px, 0) scale(1.06);
  }
}

@keyframes token-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-2px);
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 208, 168, 0.06);
  }

  50% {
    box-shadow: 0 0 0 6px rgba(255, 208, 168, 0.02);
  }
}

@keyframes finale-reveal {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
    filter: blur(10px);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes finale-firework-bloom {
  0% {
    opacity: 0;
    transform: scale(0.22);
  }

  20% {
    opacity: 0.82;
  }

  100% {
    opacity: 0;
    transform: scale(1.08);
  }
}

@keyframes finale-spark-fall {
  0% {
    opacity: 0;
    transform: translateY(-10px) rotate(10deg);
  }

  20% {
    opacity: 0.78;
  }

  100% {
    opacity: 0;
    transform: translateY(90px) rotate(10deg);
  }
}

@keyframes blindbox-shake {
  0%,
  100% { transform: translateX(0) rotate(0deg); }
  25% { transform: translateX(-3px) rotate(-1deg); }
  50% { transform: translateX(3px) rotate(1deg); }
  75% { transform: translateX(-2px) rotate(-0.6deg); }
}

@keyframes burst-pop {
  0% {
    transform: translateY(0) scale(0.3);
    opacity: 0;
  }
  18% {
    opacity: 1;
  }
  100% {
    transform: translateY(-42px) scale(1.15);
    opacity: 0;
  }
}

@keyframes confetti-fall {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.9;
  }
  50% {
    transform: translateY(10px) rotate(18deg);
    opacity: 0.45;
  }
}

.ghost-link,
.text-link {
  color: var(--text-main);
  text-decoration: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.ghost-link:hover,
.text-link:hover {
  opacity: 0.86;
  transform: translateY(-1px);
}

.ghost-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.03);
}

.footer-link-row {
  margin-top: 12px;
  text-align: center;
}

.ghost-link--favorite {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 0.82rem;
}

.ghost-link--favorite.is-active {
  color: rgba(255, 230, 214, 0.96);
  border-color: rgba(255, 179, 107, 0.24);
  background: rgba(255, 179, 107, 0.08);
}

.task-utility-row,
.ending-utility-row {
  display: flex;
  justify-content: flex-end;
  margin-top: -2px;
}

.footer-link-row--landing {
  margin-top: 0;
  text-align: left;
}

.ops-screen {
  gap: 22px;
}

.ops-hero {
  min-height: auto;
}

.ops-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.ops-status {
  margin-top: 16px;
  border-radius: 18px;
  padding: 14px 16px;
  border: 1px solid var(--line-soft);
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.035);
}

.ops-status--success {
  border-color: rgba(146, 224, 183, 0.25);
  background: rgba(146, 224, 183, 0.08);
}

.ops-status--warning {
  border-color: rgba(255, 199, 126, 0.25);
  background: rgba(255, 199, 126, 0.08);
}

.ops-status--error {
  border-color: rgba(255, 121, 121, 0.25);
  background: rgba(255, 121, 121, 0.08);
}

.ops-section {
  display: grid;
  gap: 18px;
}

.ops-section-fold {
  border-radius: inherit;
  overflow: hidden;
}

.ops-section-summary {
  cursor: pointer;
  list-style: none;
}

.ops-section-summary::-webkit-details-marker {
  display: none;
}

.ops-section-body {
  padding-top: 6px;
}

.ops-section-head {
  display: grid;
  gap: 8px;
}

.ops-stack {
  display: grid;
  gap: 14px;
}

.ops-detail {
  border-radius: 24px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.025);
  overflow: hidden;
}

.ops-detail summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 20px;
  font-size: 1rem;
  font-weight: 700;
  display: grid;
  gap: 6px;
}

.ops-detail summary::-webkit-details-marker {
  display: none;
}

.ops-detail-body {
  display: grid;
  gap: 16px;
  padding: 0 20px 20px;
}

.ops-grid {
  display: grid;
  gap: 14px;
}

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

.ops-field {
  display: grid;
  gap: 8px;
  color: var(--text-soft);
  font-size: 0.94rem;
}

.ops-field--checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
}

.ops-field input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

.ops-textarea {
  width: 100%;
  min-height: 112px;
  resize: vertical;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-main);
  padding: 14px 16px;
  font: inherit;
}

.ops-textarea:focus,
.ops-field .name-input:focus {
  outline: none;
  border-color: rgba(255, 213, 188, 0.26);
  box-shadow: 0 0 0 4px rgba(255, 213, 188, 0.08);
}

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

.ops-split-card {
  border-radius: 20px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.03);
  padding: 16px;
  display: grid;
  gap: 14px;
}

@media (max-width: 720px) {
  .app-shell {
    padding: 16px 14px 36px;
  }

  .hero-card {
    min-height: auto;
  }

  .card {
    padding: 22px;
  }

  .rules,
  .name-grid,
  .scoreboard-grid,
  .mini-grid,
  .reward-grid,
  .split-review-grid,
  .ops-grid--two,
  .ops-split-grid {
    grid-template-columns: 1fr;
  }

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

  .ghost-button,
  .primary-button,
  .secondary-button,
  .danger-button,
  .ghost-link {
    width: 100%;
  }

  .ops-toolbar {
    flex-direction: column;
  }

  .task-stage-bar,
  .step-progress {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .task-stage-chip,
  .step-pill {
    padding: 12px 10px;
  }

  .task-stage-chip strong,
  .step-progress-head strong {
    font-size: 0.92rem;
  }

  .task-stage-chip span:last-child,
  .step-progress-head span,
  .step-pill span:last-child {
    font-size: 0.78rem;
  }

  .flow-card--stage-compact {
    gap: 10px;
  }
}

/* ========================================================================
   视觉装饰层（覆盖上面的基础结构层）
   ------------------------------------------------------------------------
   上面的样式定义了 positioning / flex / dimensions 等结构属性，
   这里集中补齐颜色、阴影、模糊、sticky 顶栏等视觉表现。
   修改时请确认上层结构定义仍然生效，避免误删。
   ======================================================================== */

body {
  letter-spacing: 0.01em;
}

.background-orb {
  filter: blur(28px);
  opacity: 0.34;
}

.orb-left {
  background: radial-gradient(circle, rgba(255, 122, 89, 0.96), transparent 68%);
}

.orb-right {
  background: radial-gradient(circle, rgba(127, 231, 255, 0.72), transparent 72%);
}

.app-shell {
  width: min(100%, 920px);
  padding: 24px 18px calc(104px + env(safe-area-inset-bottom));
}

.screen {
  padding-top: 24px;
}

.topbar {
  position: sticky;
  top: 12px;
  z-index: 5;
  padding: 8px 12px;
  border-radius: 20px;
  background: rgba(12, 10, 18, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.chip {
  padding: 10px 16px;
  border-color: rgba(127, 231, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.ghost-button {
  min-height: 46px;
  border-color: rgba(127, 231, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
}

.ghost-button:hover,
.ghost-button:focus-visible {
  background: rgba(127, 231, 255, 0.1);
}

.card {
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
    var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow);
}

.hero-card {
  min-height: calc(100vh - 92px);
  display: grid;
  gap: 24px;
  align-content: space-between;
}

.consent-card,
.chapter-card,
.task-card,
.feedback-card,
.ending-card,
.pause-card {
  margin-top: 8px;
}

.hero-brand {
  gap: 10px;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 34px;
  align-items: stretch;
  min-height: clamp(560px, calc(100vh - 220px), 760px);
}

.hero-brand-column {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 12px 10px 12px 4px;
}

.hero-action-column {
  display: grid;
  align-content: center;
}

.hero-action-card {
  display: grid;
  gap: 22px;
  padding: 26px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
    rgba(18, 16, 27, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.2);
}

.hero-action-head {
  display: grid;
  gap: 6px;
}

.session-config-panel {
  display: grid;
  gap: 16px;
}

.session-config-group {
  display: grid;
  gap: 10px;
}

.session-config-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.session-config-head strong {
  color: var(--text-main);
  font-family: var(--font-display);
  font-size: 0.92rem;
}

.session-config-head span {
  color: var(--muted);
  font-size: 0.8rem;
}

.session-config-options {
  display: grid;
  gap: 10px;
}

.session-config-pill {
  display: grid;
  gap: 4px;
  align-items: start;
  justify-items: start;
  min-height: 76px;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 179, 107, 0.12);
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 240, 226, 0.82);
  text-align: left;
}

.session-config-pill strong {
  font-size: 0.92rem;
  font-family: var(--font-display);
  font-weight: 700;
}

.session-config-pill small {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.session-config-pill.is-active {
  color: #1b1210;
  background: linear-gradient(135deg, rgba(255, 179, 107, 0.98), rgba(255, 122, 89, 0.94));
  border-color: transparent;
}

.session-config-pill.is-active small {
  color: rgba(35, 19, 14, 0.78);
}

.hero-kicker {
  margin: 0 0 12px;
  color: rgba(255, 214, 179, 0.88);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.title,
.section-title,
.task-title,
.ending-title,
.feedback-title {
  letter-spacing: -0.06em;
}

.title {
  font-size: clamp(3.4rem, 10vw, 6rem);
  line-height: 0.88;
  text-transform: uppercase;
}

.hero-tagline {
  max-width: 26rem;
  margin: 20px 0 0;
  color: rgba(255, 245, 239, 0.7);
  font-size: clamp(1rem, 1.8vw, 1.16rem);
  line-height: 1.75;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-highlight-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 208, 168, 0.05);
  border: 1px solid rgba(255, 208, 168, 0.12);
  color: rgba(255, 235, 219, 0.84);
  font-family: var(--font-display);
  font-size: 0.84rem;
  letter-spacing: 0.08em;
}

.hero-journey {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
  padding: 16px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-journey-step {
  position: relative;
  display: grid;
  gap: 8px;
  color: rgba(255, 245, 239, 0.68);
  font-family: var(--font-display);
  font-size: 0.88rem;
  letter-spacing: 0.08em;
}

.hero-journey-step::before {
  content: "";
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 210, 174, 0.55), rgba(127, 231, 255, 0.12));
  box-shadow: 0 0 18px rgba(255, 210, 174, 0.08);
}

.hero-ambient-ornaments {
  position: relative;
  min-height: 132px;
  margin-top: 18px;
  overflow: hidden;
}

.hero-ambient-line,
.hero-ambient-float {
  position: absolute;
}

.hero-ambient-line {
  left: 0;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 208, 168, 0.16), rgba(127, 231, 255, 0.02));
}

.hero-ambient-line--short {
  top: 24px;
  width: 28%;
}

.hero-ambient-line--medium {
  top: 58px;
  width: 46%;
}

.hero-ambient-line--long {
  top: 94px;
  width: 62%;
}

.hero-ambient-float {
  color: rgba(255, 245, 239, 0.2);
  font-family: var(--font-display);
  font-size: 0.84rem;
  letter-spacing: 0.2em;
}

.hero-ambient-float--one {
  top: 8px;
  left: 42%;
}

.hero-ambient-float--two {
  top: 42px;
  left: 63%;
}

.hero-ambient-float--three {
  top: 78px;
  left: 80%;
}

.ops-title {
  display: grid;
  gap: 4px;
  font-size: clamp(2.3rem, 6vw, 4rem);
  line-height: 0.92;
  letter-spacing: -0.07em;
  text-transform: none;
}

.subtitle,
.section-subtitle,
.task-copy,
.ending-copy,
.pause-copy,
.rule span {
  color: var(--muted);
  line-height: 1.78;
}

.hero-footer {
  gap: 16px;
}

.hero-panel-note {
  color: rgba(255, 245, 239, 0.5);
  font-size: 0.88rem;
}

.hero-meta-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-meta-rail span {
  color: rgba(255, 245, 239, 0.46);
  font-size: 0.84rem;
  line-height: 1.6;
}

.hero-footer--landing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.name-grid,
.scoreboard-grid {
  gap: 16px;
}

.name-card,
.player-card {
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
    rgba(19, 17, 29, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.name-card {
  padding: 18px;
}

.name-card-head span {
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.name-card-focus {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1;
  color: var(--text-main);
}

.name-input {
  min-height: 56px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.08);
  font-size: 1.06rem;
  font-weight: 700;
}

.name-input:focus {
  border-color: rgba(127, 231, 255, 0.28);
  box-shadow: 0 0 0 4px rgba(127, 231, 255, 0.08);
}

.scoreboard-shell {
  gap: 16px;
}

.task-card .scoreboard-grid,
.feedback-card .scoreboard-grid,
.blindbox-shell .scoreboard-grid,
.ending-card .scoreboard-grid,
.pause-card .scoreboard-grid {
  grid-template-columns: 1fr;
}

.scoreboard-title {
  align-items: center;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.scoreboard-title span:last-child {
  color: rgba(255, 245, 239, 0.44);
  font-size: 0.74rem;
}

.player-card {
  gap: 14px;
  position: relative;
  overflow: hidden;
}

.player-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 122, 89, 0.1), transparent 45%, rgba(127, 231, 255, 0.06) 100%);
  opacity: 0;
  transition: opacity 220ms ease;
  pointer-events: none;
}

.player-card--leader::after,
.player-card--winner::after {
  opacity: 1;
}

.player-card--overtake-to {
  animation: overtake-card-in 520ms ease;
}

.player-card--overtake-from {
  animation: overtake-card-out 520ms ease;
}

.player-card--lockbox {
  box-shadow:
    0 0 0 1px rgba(255, 179, 107, 0.12),
    0 18px 42px rgba(255, 179, 107, 0.12),
    0 0 46px rgba(127, 231, 255, 0.08);
}

.player-card-head {
  align-items: start;
}

.player-card-identity {
  display: grid;
  gap: 4px;
}

.player-card-name {
  font-size: 1.4rem;
  line-height: 1;
  color: var(--text-main);
}

.player-score-stack {
  display: grid;
  justify-items: end;
  gap: 2px;
}

.leader-burst {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(127, 231, 255, 0.14);
  color: var(--accent-cool);
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.player-score {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 0.92;
  color: var(--text-main);
  animation: score-spark 420ms ease;
}

.player-score-delta-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255, 122, 89, 0.16);
  border: 1px solid rgba(255, 122, 89, 0.18);
  color: var(--accent-strong);
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  animation: score-pop 420ms ease;
}

.player-lock-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(127, 231, 255, 0.18);
  border: 1px solid rgba(127, 231, 255, 0.16);
  color: #d7f7ff;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  animation: pulse-glow 1.15s ease-in-out infinite;
}

.player-card-meta {
  font-size: 0.88rem;
}

.player-track-shell {
  display: grid;
  gap: 10px;
}

.player-track-lane {
  position: relative;
  padding: 8px 0 0;
}

.player-track-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(14, minmax(0, 1fr));
  gap: 6px;
  pointer-events: none;
}

.player-track-grid span {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.player-meter {
  height: 12px;
  background: rgba(255, 255, 255, 0.06);
  isolation: isolate;
}

.player-meter-fill,
.progress-fill {
  background: linear-gradient(90deg, var(--accent-secondary) 0%, var(--accent-primary) 55%, #ff8b86 100%);
}

.player-meter-flag {
  right: 2px;
  top: -16px;
  color: rgba(255, 245, 239, 0.34);
}

.player-token {
  top: -8px;
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, var(--accent-secondary) 0%, var(--accent-primary) 100%);
  box-shadow: 0 10px 24px rgba(255, 122, 89, 0.34);
}

.player-token--scored {
  animation: token-surge 560ms ease;
}

.player-token--locked {
  background: linear-gradient(135deg, var(--accent-cool) 0%, var(--accent-primary) 100%);
  color: #11131b;
  box-shadow: 0 0 0 6px rgba(127, 231, 255, 0.06), 0 10px 24px rgba(127, 231, 255, 0.24);
}

.player-track-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.82rem;
}

.track-scale {
  color: rgba(255, 245, 239, 0.36);
}

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

.mini-grid--compact .mini-box {
  min-height: 100%;
}

.mini-box {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
}

.badge-row {
  gap: 8px;
}

.badge-row--task {
  margin-bottom: 14px;
}

.badge {
  padding: 9px 14px;
  border-color: rgba(127, 231, 255, 0.12);
  background: rgba(127, 231, 255, 0.08);
  color: #d7f7ff;
}

.task-card,
.feedback-card,
.ending-card,
.pause-card,
.consent-card,
.chapter-card {
  gap: 18px;
}

.feedback-card {
  gap: 14px;
}

.consent-card,
.chapter-card {
  gap: 16px;
}

.task-title,
.feedback-title,
.ending-title {
  font-size: clamp(2.3rem, 6vw, 3.7rem);
  line-height: 0.98;
}

.task-grid {
  gap: 16px;
}

.task-flow {
  display: grid;
  gap: 12px;
}

.task-score-shell {
  display: grid;
  gap: 10px;
}

.task-block--with-timer {
  position: relative;
  padding-top: 70px;
}

.task-timer-anchor {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 3;
}

.task-timer-toolbar {
  display: inline-grid;
  grid-template-columns: 76px 92px 122px;
  align-items: center;
  min-height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  background: rgba(10, 13, 23, 0.9);
  box-shadow: 0 10px 22px rgba(5, 8, 14, 0.16);
  backdrop-filter: blur(14px);
  overflow: visible;
}

.task-timer-toolbar--running {
  border-color: rgba(127, 231, 255, 0.1);
}

.task-timer-toolbar--finished {
  border-color: rgba(255, 179, 107, 0.12);
}

.task-timer-menu-shell {
  position: relative;
}

.task-timer-menu-shell.is-open .task-timer-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.task-timer-menu-shell.is-editing .task-timer-custom-editor {
  display: grid;
}

.task-timer-select {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: 44px;
  width: 100%;
  padding: 0 14px 0 16px;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 0 14px 14px 0;
  background: rgba(16, 19, 32, 0.94);
  color: var(--text-main);
}

.task-timer-select--running {
  background: rgba(14, 24, 42, 0.96);
}

.task-timer-select--finished {
  background: rgba(46, 28, 27, 0.94);
}

.task-timer-select-time {
  font-family: var(--font-display);
  font-size: 1.24rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
  min-width: 4.8ch;
  text-align: center;
}

.task-timer-select-caret {
  font-size: 0.82rem;
  color: rgba(255, 245, 239, 0.62);
  transform: translateY(-7px);
}

.task-timer-select-status {
  grid-column: 1 / span 2;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 245, 239, 0.6);
  white-space: nowrap;
  margin-top: -4px;
}

.task-timer-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 132px;
  display: grid;
  gap: 4px;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.045);
  background: rgba(11, 14, 24, 0.94);
  box-shadow: 0 10px 20px rgba(5, 8, 14, 0.15);
  backdrop-filter: blur(20px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.task-timer-menu--running {
  border-color: rgba(127, 231, 255, 0.1);
}

.task-timer-menu--finished {
  border-color: rgba(255, 179, 107, 0.12);
}

.timer-button {
  min-height: 44px;
  width: 100%;
  padding: 0 14px;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.055);
  background: transparent;
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
}

.timer-button--main {
  background: linear-gradient(135deg, rgba(45, 93, 173, 0.28), rgba(20, 39, 86, 0.48));
  border-right: 1px solid rgba(132, 178, 255, 0.12);
  color: #eff7ff;
}

.timer-button--ghost {
  color: rgba(255, 245, 239, 0.74);
}

.timer-button--state-finished {
  color: #ffd7bf;
}

.task-timer-option {
  min-height: 34px;
  width: 100%;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  color: rgba(255, 245, 239, 0.82);
  font-size: 0.84rem;
  font-weight: 700;
}

.task-timer-option--custom {
  color: rgba(255, 245, 239, 0.68);
}

.task-timer-option--confirm {
  color: #eff7ff;
  background: rgba(45, 93, 173, 0.26);
}

.task-timer-custom-editor {
  display: none;
  gap: 8px;
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.task-timer-custom-input {
  min-height: 36px;
  width: 100%;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-main);
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
}

.task-timer-custom-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.task-timer-custom-hint {
  color: rgba(255, 245, 239, 0.54);
  font-size: 0.7rem;
  line-height: 1.35;
}

.flow-card {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 0;
  animation: card-swipe-in 420ms ease both;
}

.flow-card::before {
  content: "";
  position: absolute;
  inset: 6px 12px auto 12px;
  height: calc(100% - 12px);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.008));
  opacity: 0.55;
  filter: blur(0.2px);
  transform: translateY(8px) scale(0.985);
  z-index: 0;
  pointer-events: none;
}

.flow-card > * {
  position: relative;
  z-index: 1;
}

.flow-card:nth-child(1) { animation-delay: 0.02s; }
.flow-card:nth-child(2) { animation-delay: 0.08s; }
.flow-card:nth-child(3) { animation-delay: 0.14s; }
.flow-card:nth-child(4) { animation-delay: 0.2s; }
.flow-card:nth-child(5) { animation-delay: 0.26s; }

.flow-card--hero .turn-banner,
.flow-card--stage .task-stage-bar,
.flow-card--stage .step-progress-shell,
.flow-card--task .task-block,
.flow-card--meta .task-meta,
.flow-card--judge .task-block,
.flow-card--judge .challenge-panel,
.flow-card--review .task-block {
  position: relative;
}

.flow-card--stage-compact {
  display: grid;
  gap: 12px;
}

.flow-card--hero .turn-banner {
  padding-block: 18px;
}

.flow-card--hero {
  z-index: 4;
}

.flow-card--task .task-block {
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(255, 255, 255, 0.06);
}

.summary-strip {
  display: grid;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.summary-strip-stats {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.summary-strip--task,
.summary-strip--task-open {
  gap: 10px;
  padding: 12px 14px;
}

.summary-strip--task-judge,
.summary-strip--task-judge-open {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: 10px 12px;
}

.summary-pill {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.summary-pill strong,
.summary-strip-action-title,
.task-detail-head-title {
  font-family: var(--font-display);
}

.summary-pill strong {
  color: rgba(255, 245, 239, 0.62);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.summary-pill span {
  color: var(--text-main);
  font-size: 1rem;
}

.summary-strip--task .summary-pill,
.summary-strip--task-open .summary-pill {
  gap: 2px;
  padding: 10px 12px;
}

.summary-strip--task-judge .summary-strip-stats,
.summary-strip--task-judge-open .summary-strip-stats {
  display: flex;
  flex-wrap: wrap;
  grid-template-columns: none;
  gap: 8px;
}

.summary-strip--task-judge .summary-pill,
.summary-strip--task-judge-open .summary-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.018);
}

.summary-strip--task-judge .summary-pill strong,
.summary-strip--task-judge-open .summary-pill strong {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

.summary-strip--task-judge .summary-pill span,
.summary-strip--task-judge-open .summary-pill span {
  font-size: 0.92rem;
}

.summary-strip--task .summary-pill span,
.summary-strip--task-open .summary-pill span {
  font-size: 0.95rem;
}

.summary-strip-action {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(127, 231, 255, 0.08);
  border: 1px solid rgba(127, 231, 255, 0.14);
  color: var(--text-main);
  text-align: left;
}

.summary-strip-action-title {
  font-size: 0.98rem;
}

.summary-strip-action-meta {
  color: var(--muted);
  font-size: 0.84rem;
}

.summary-strip--task .summary-strip-action,
.summary-strip--task-open .summary-strip-action {
  background: linear-gradient(135deg, rgba(127, 231, 255, 0.12), rgba(255, 255, 255, 0.03));
}

.summary-strip--task-judge .summary-strip-action,
.summary-strip--task-judge-open .summary-strip-action {
  min-width: 184px;
  padding: 10px 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(127, 231, 255, 0.08), rgba(255, 255, 255, 0.02));
}

.summary-strip--task-judge .summary-strip-action-title,
.summary-strip--task-judge-open .summary-strip-action-title {
  font-size: 0.92rem;
}

.summary-strip--task-judge .summary-strip-action-meta,
.summary-strip--task-judge-open .summary-strip-action-meta {
  font-size: 0.78rem;
}

.summary-strip--landing .summary-strip-action {
  background: linear-gradient(135deg, rgba(255, 179, 107, 0.16), rgba(255, 122, 89, 0.12));
}

.task-detail-panel {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.task-detail-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  color: inherit;
  text-align: left;
}

.task-detail-head {
  display: grid;
  gap: 4px;
  width: 100%;
}

.task-detail-head-title {
  color: var(--text-main);
  font-size: 1rem;
}

.task-detail-head-meta {
  color: var(--muted);
  font-size: 0.84rem;
}

.task-detail-toggle-icon {
  color: rgba(255, 245, 239, 0.74);
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.task-detail-body {
  display: grid;
  gap: 12px;
}

.task-detail-stage {
  display: grid;
  gap: 12px;
  padding: 14px 14px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.task-detail-judge {
  display: grid;
  gap: 10px;
}

.turn-swap-rail {
  display: grid;
  gap: 10px;
  margin-bottom: 2px;
}

.task-scoreboard-drawer {
  display: grid;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.task-scoreboard-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.task-scoreboard-kicker,
.task-score-role,
.task-scoreboard-pill strong {
  color: rgba(255, 245, 239, 0.62);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.task-scoreboard-title {
  display: block;
  color: var(--text-main);
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.1;
}

.task-scoreboard-meta {
  color: rgba(255, 245, 239, 0.62);
  font-size: 0.84rem;
  white-space: nowrap;
}

.task-scoreboard-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.task-score-card {
  display: grid;
  gap: 10px;
  padding: 12px 13px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.task-score-card--leader {
  background: linear-gradient(135deg, rgba(255, 122, 89, 0.12), rgba(255, 255, 255, 0.03));
  border-color: rgba(255, 179, 107, 0.18);
}

.task-score-card-head,
.task-score-main,
.task-score-foot,
.task-scoreboard-rail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.task-score-card-head {
  align-items: flex-start;
}

.task-score-name {
  display: block;
  color: var(--text-main);
  font-family: var(--font-display);
  font-size: 1.08rem;
  line-height: 1.04;
}

.task-score-badge,
.task-score-delta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.74rem;
  white-space: nowrap;
}

.task-score-badge {
  background: rgba(127, 231, 255, 0.12);
  border: 1px solid rgba(127, 231, 255, 0.16);
  color: #d7f7ff;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.task-score-main strong {
  color: var(--text-main);
  font-family: var(--font-display);
  font-size: 1.9rem;
  line-height: 0.92;
}

.task-score-main span,
.task-score-foot span {
  color: rgba(255, 245, 239, 0.62);
  font-size: 0.84rem;
}

.task-score-delta {
  background: rgba(255, 122, 89, 0.14);
  border: 1px solid rgba(255, 122, 89, 0.16);
  color: rgba(255, 226, 212, 0.96);
}

.task-scoreboard-rail {
  flex-wrap: wrap;
  justify-content: flex-start;
}

.task-scoreboard-pill {
  display: grid;
  gap: 2px;
  min-width: 120px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.028);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.task-scoreboard-pill span {
  color: var(--text-main);
  font-size: 0.9rem;
}

.turn-swap-card {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.turn-swap-card strong,
.turn-swap-label {
  font-family: var(--font-display);
}

.turn-swap-label {
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.turn-swap-card--exit {
  animation: turn-card-out 380ms ease both;
}

.turn-swap-card--enter {
  background: linear-gradient(135deg, rgba(127, 231, 255, 0.12), rgba(255, 122, 89, 0.08));
  animation: turn-card-in 420ms ease 70ms both;
}

.task-stage-bar {
  gap: 12px;
}

.task-stage-chip {
  background:
    linear-gradient(180deg, rgba(127, 231, 255, 0.08), rgba(255, 255, 255, 0.025)),
    rgba(19, 17, 29, 0.94);
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.16);
}

.turn-banner {
  display: grid;
  gap: 4px;
  padding: 18px 20px;
  border-radius: 20px;
  background:
    linear-gradient(90deg, rgba(255, 122, 89, 0.22), rgba(255, 179, 107, 0.12) 55%, rgba(127, 231, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 12px 30px rgba(255, 122, 89, 0.14);
  animation: entrance-rise 420ms ease;
  z-index: 4;
}

.turn-banner-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 18px;
}

.turn-banner-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.turn-banner-timer {
  justify-self: end;
  align-self: start;
}

.turn-banner-timer .task-timer-anchor {
  position: static;
  top: auto;
  right: auto;
}

.turn-banner--male {
  background:
    linear-gradient(90deg, rgba(127, 231, 255, 0.2), rgba(255, 255, 255, 0.05) 58%, rgba(255, 122, 89, 0.08));
  box-shadow: 0 14px 28px rgba(127, 231, 255, 0.12);
}

.turn-banner--female {
  background:
    linear-gradient(90deg, rgba(255, 122, 89, 0.24), rgba(255, 179, 107, 0.12) 55%, rgba(255, 255, 255, 0.05));
  box-shadow: 0 14px 28px rgba(255, 122, 89, 0.14);
}

.turn-banner--swap-in {
  animation: turn-banner-swap-in 420ms ease;
}

.turn-banner-label {
  color: rgba(255, 245, 239, 0.62);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.turn-banner-name {
  color: var(--text-main);
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 5vw, 2.5rem);
  line-height: 0.95;
}

.turn-banner-meta {
  color: rgba(255, 245, 239, 0.72);
  font-size: 0.94rem;
}

.turn-banner--shared .turn-banner-name,
.turn-banner--judge .turn-banner-name,
.turn-banner--result .turn-banner-name {
  font-size: clamp(1.35rem, 4vw, 2rem);
}

.step-progress {
  gap: 10px;
}

.step-progress-head strong {
  color: var(--text-main);
  font-size: 1rem;
}

.step-pill {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
}

.step-pill.is-active {
  background: rgba(255, 122, 89, 0.14);
  border-color: rgba(255, 122, 89, 0.26);
  box-shadow: 0 10px 20px rgba(255, 122, 89, 0.12);
}

.step-pill.is-complete {
  background: rgba(127, 231, 255, 0.08);
  border-color: rgba(127, 231, 255, 0.12);
}

.step-pill-index {
  color: var(--accent-cool);
}

.task-block,
.challenge-panel,
.reward-box,
.split-review-card,
.callout {
  border-radius: 20px;
}

.task-block {
  background: rgba(255, 255, 255, 0.025);
}

.task-block--feedback-compact {
  padding: 14px 16px 16px;
  gap: 10px;
}

.task-block--judge-review {
  padding: 16px 18px 18px;
}

.task-block-label,
.inline-kicker {
  letter-spacing: 0.14em;
}

.task-directive {
  font-size: clamp(1.26rem, 3vw, 1.56rem);
  line-height: 1.68;
}

.challenge-panel {
  background: linear-gradient(180deg, rgba(255, 122, 89, 0.08), rgba(255, 255, 255, 0.02));
  border-color: rgba(255, 122, 89, 0.16);
}

.challenge-panel-head strong {
  font-size: 1.28rem;
}

.challenge-chip {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.07);
}

.judge-focus-card {
  display: grid;
  gap: 12px;
  padding: 18px 20px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 122, 89, 0.18), rgba(255, 255, 255, 0.03) 48%, rgba(127, 231, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 32px rgba(255, 122, 89, 0.12);
}

.judge-focus-kicker,
.judge-focus-pill {
  color: rgba(255, 245, 239, 0.66);
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.judge-focus-title {
  color: var(--text-main);
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  line-height: 0.96;
}

.judge-focus-copy {
  margin: 0;
  color: rgba(255, 245, 239, 0.72);
  font-size: 1rem;
  line-height: 1.62;
}

.judge-focus-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.judge-focus-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.feedback-result-card {
  display: grid;
  gap: 14px;
  padding: 18px 18px 16px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 122, 89, 0.1), rgba(127, 231, 255, 0.06)),
    rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.feedback-result-head {
  display: grid;
  gap: 4px;
}

.feedback-result-kicker,
.feedback-score-role,
.feedback-result-pill strong {
  color: rgba(255, 245, 239, 0.62);
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.feedback-result-title {
  color: var(--text-main);
  font-family: var(--font-display);
  font-size: clamp(1.42rem, 3vw, 1.9rem);
  line-height: 1.02;
}

.feedback-result-copy {
  color: rgba(255, 245, 239, 0.72);
  font-size: 0.96rem;
}

.feedback-score-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feedback-score-card {
  display: grid;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.028);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.feedback-score-card--leader {
  background:
    linear-gradient(135deg, rgba(255, 122, 89, 0.16), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 179, 107, 0.22);
  box-shadow: 0 10px 22px rgba(255, 122, 89, 0.1);
}

.feedback-score-card--winner {
  box-shadow: inset 0 0 0 1px rgba(127, 231, 255, 0.08);
}

.feedback-score-card-head,
.feedback-result-rail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.feedback-score-card-head {
  align-items: flex-start;
}

.feedback-score-identity {
  display: grid;
  gap: 4px;
}

.feedback-score-name {
  display: block;
  color: var(--text-main);
  font-family: var(--font-display);
  font-size: 1.32rem;
  line-height: 1.02;
}

.feedback-score-delta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.075);
  color: rgba(255, 245, 239, 0.96);
  font-family: var(--font-display);
  font-size: 0.9rem;
  white-space: nowrap;
}

.feedback-score-versus {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.feedback-score-main {
  color: var(--text-main);
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  line-height: 0.88;
  letter-spacing: -0.05em;
}

.feedback-score-divider,
.feedback-score-meta {
  color: rgba(255, 245, 239, 0.62);
  font-size: 0.86rem;
}

.feedback-score-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.feedback-score-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.feedback-score-badge--leader {
  background: rgba(127, 231, 255, 0.12);
  border: 1px solid rgba(127, 231, 255, 0.16);
  color: #daf7ff;
}

.feedback-score-badge--winner {
  background: rgba(255, 179, 107, 0.14);
  border: 1px solid rgba(255, 179, 107, 0.18);
  color: rgba(255, 236, 214, 0.94);
}

.feedback-result-rail {
  flex-wrap: wrap;
  justify-content: flex-start;
}

.feedback-result-pill {
  display: grid;
  gap: 3px;
  min-width: 132px;
  padding: 11px 13px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.feedback-result-pill span {
  color: var(--text-main);
  font-size: 0.95rem;
}

.feedback-result-pill--accent {
  background: linear-gradient(135deg, rgba(255, 179, 107, 0.16), rgba(255, 122, 89, 0.08));
  border-color: rgba(255, 179, 107, 0.18);
}

.feedback-challenge-title {
  color: var(--text-main);
  font-family: var(--font-display);
  font-size: 1.08rem;
}

.judge-actions {
  align-items: stretch;
}

.judge-choice {
  min-height: 72px;
  justify-content: flex-start;
  align-content: center;
  gap: 4px;
  text-align: left;
  font-size: 1.02rem;
  font-weight: 700;
}

.judge-choice-title,
.judge-choice-meta {
  display: block;
}

.judge-choice-title {
  font-size: 1rem;
  line-height: 1.2;
}

.judge-choice-meta {
  color: inherit;
  opacity: 0.88;
  font-size: 0.82rem;
  line-height: 1.25;
}

.judge-choice--warm {
  background: linear-gradient(135deg, #ffb86f 0%, #ff7d68 56%, #ff6868 100%);
  color: #1b1213;
  border-color: rgba(255, 214, 172, 0.42);
  box-shadow: 0 20px 40px rgba(255, 122, 89, 0.32);
}

.judge-choice--cool {
  background: linear-gradient(135deg, rgba(44, 99, 255, 0.76) 0%, rgba(47, 170, 255, 0.72) 100%);
  border-color: rgba(138, 201, 255, 0.44);
  color: #f7fbff;
  box-shadow: 0 20px 40px rgba(46, 111, 255, 0.28);
}

.judge-choice--tie {
  background: linear-gradient(135deg, rgba(154, 74, 255, 0.8) 0%, rgba(102, 64, 225, 0.78) 100%);
  border-color: rgba(203, 162, 255, 0.44);
  color: #faf5ff;
  box-shadow: 0 20px 40px rgba(132, 102, 242, 0.24);
}

.button-row {
  gap: 12px;
}

.action-dock {
  position: sticky;
  bottom: calc(env(safe-area-inset-bottom) + 12px);
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  align-items: stretch;
  padding: 14px;
  border-radius: 22px;
  background: rgba(11, 9, 16, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.26);
}

.action-dock::before {
  content: "CONTROL DECK";
  position: absolute;
  left: 18px;
  top: -12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(9, 8, 13, 0.96);
  border: 1px solid rgba(127, 231, 255, 0.12);
  color: rgba(255, 245, 239, 0.66);
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
}

.action-dock::after {
  content: "";
  position: absolute;
  inset: -32px 0 auto;
  height: 36px;
  background: linear-gradient(180deg, transparent 0%, rgba(11, 9, 16, 0.42) 100%);
  pointer-events: none;
}

.action-dock > * {
  width: 100%;
}

.action-dock .ghost-button {
  min-height: 52px;
}

.task-meta {
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.primary-button,
.secondary-button,
.danger-button,
.ghost-button,
.ghost-link {
  min-height: 56px;
}

.primary-button {
  color: #1f1110;
  border-color: rgba(255, 203, 165, 0.34);
  background: linear-gradient(135deg, var(--accent-secondary) 0%, var(--accent-primary) 58%, #ff8b86 100%);
  box-shadow: 0 16px 34px rgba(255, 122, 89, 0.24);
}

.primary-button--landing,
.screen--landing .primary-button:not(:disabled) {
  color: #1d0e0f;
  border-color: rgba(255, 221, 187, 0.48);
  background: linear-gradient(135deg, #ffc06d 0%, #ff9366 44%, #ff6c7b 100%);
  box-shadow: 0 24px 48px rgba(255, 124, 86, 0.34);
}

.primary-button--consent,
.screen--consent .primary-button:not(:disabled) {
  color: #1c0f10;
  border-color: rgba(255, 212, 176, 0.42);
  background: linear-gradient(135deg, #ffb878 0%, #ff8769 58%, #ff7a74 100%);
  box-shadow: 0 20px 40px rgba(255, 125, 92, 0.28);
}

.primary-button--chapter,
.screen--chapter .primary-button:not(:disabled) {
  color: #1a0e10;
  border-color: rgba(255, 223, 189, 0.5);
  background: linear-gradient(135deg, #ffc56f 0%, #ff9d64 50%, #ff7f74 100%);
  box-shadow: 0 24px 46px rgba(255, 138, 92, 0.32);
}

.primary-button--task,
.screen--task .primary-button:not(:disabled) {
  background: linear-gradient(135deg, #ffb06d 0%, #ff8667 58%, #ff747f 100%);
  box-shadow: 0 18px 38px rgba(255, 122, 89, 0.24);
}

.primary-button--feedback,
.screen--feedback .primary-button:not(:disabled) {
  background: linear-gradient(135deg, #ffad7c 0%, #ff8d79 56%, #ff7c8f 100%);
  box-shadow: 0 18px 36px rgba(247, 126, 102, 0.22);
}

.primary-button--blindbox,
.screen--blindbox .primary-button:not(:disabled) {
  color: #1d0e14;
  border-color: rgba(255, 201, 188, 0.42);
  background: linear-gradient(135deg, #ff9d86 0%, #ff7f95 46%, #ff72b7 100%);
  box-shadow: 0 20px 42px rgba(255, 114, 183, 0.26);
}

.primary-button--ending,
.screen--ending .primary-button:not(:disabled) {
  color: #221314;
  border-color: rgba(255, 211, 190, 0.34);
  background: linear-gradient(135deg, #efb18d 0%, #d98d83 58%, #c77d8f 100%);
  box-shadow: 0 16px 30px rgba(183, 111, 120, 0.18);
}

.primary-button--pause,
.screen--pause .primary-button:not(:disabled) {
  color: #211415;
  border-color: rgba(255, 208, 186, 0.28);
  background: linear-gradient(135deg, #d9a98a 0%, #bf8880 58%, #a86e77 100%);
  box-shadow: 0 14px 26px rgba(143, 91, 99, 0.16);
}

.primary-button--hero {
  min-width: min(100%, 340px);
  font-size: 1.08rem;
}

.text-link--subtle {
  color: rgba(255, 245, 239, 0.44);
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.text-link--subtle:hover,
.text-link--subtle:focus-visible {
  color: rgba(255, 245, 239, 0.72);
}

.secondary-button {
  color: #eff7ff;
  border-color: rgba(132, 178, 255, 0.34);
  background: linear-gradient(135deg, rgba(40, 78, 172, 0.58) 0%, rgba(22, 42, 91, 0.74) 100%);
  box-shadow: 0 16px 32px rgba(22, 32, 58, 0.26);
}

.secondary-button--skip {
  color: rgba(255, 245, 239, 0.94);
  border-color: rgba(255, 255, 255, 0.16);
  background: linear-gradient(135deg, rgba(39, 34, 49, 0.98) 0%, rgba(19, 17, 27, 1) 100%);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
}

.danger-button {
  color: #fff7f7;
  background: linear-gradient(135deg, rgba(176, 57, 89, 0.72) 0%, rgba(111, 22, 47, 0.9) 100%);
  border-color: rgba(255, 126, 159, 0.26);
  box-shadow: 0 16px 34px rgba(128, 28, 54, 0.24);
}

.ghost-button {
  color: rgba(255, 245, 239, 0.94);
  border-color: rgba(88, 233, 206, 0.34);
  background: linear-gradient(135deg, rgba(9, 33, 43, 0.98) 0%, rgba(7, 19, 29, 1) 100%);
  box-shadow: 0 16px 32px rgba(7, 31, 42, 0.26);
}

.primary-button:hover,
.primary-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(255, 122, 89, 0.28);
}

.secondary-button:hover,
.secondary-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(52, 102, 214, 0.28);
}

.secondary-button--skip:hover,
.secondary-button--skip:focus-visible {
  box-shadow: 0 20px 38px rgba(0, 0, 0, 0.34);
}

.danger-button:hover,
.danger-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(128, 28, 54, 0.26);
}

.ghost-button:hover,
.ghost-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(28, 126, 114, 0.24);
}

.judge-choice--warm .judge-choice-meta {
  color: rgba(31, 17, 16, 0.82);
  opacity: 1;
}

.judge-choice--cool .judge-choice-meta,
.judge-choice--tie .judge-choice-meta,
.secondary-button.judge-choice .judge-choice-meta {
  color: rgba(244, 251, 255, 0.86);
  opacity: 1;
}

.judge-review-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.judge-review-card {
  display: grid;
  gap: 10px;
  min-height: 100%;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.032);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.judge-review-name {
  color: var(--text-main);
  font-family: var(--font-display);
  font-size: 1.08rem;
  line-height: 1.04;
}

.judge-review-copy {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.7;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.callout {
  background: linear-gradient(180deg, rgba(255, 122, 89, 0.1), rgba(255, 179, 107, 0.05));
  border-color: rgba(255, 122, 89, 0.18);
}

.winner-callout {
  animation: pulse-glow 1.35s ease-in-out infinite;
}

.reward-box strong {
  font-size: 1.95rem;
  color: var(--text-main);
  animation: score-spark 420ms ease;
}

.blindbox {
  min-height: 280px;
  background:
    radial-gradient(circle at top, rgba(255, 122, 89, 0.24), transparent 38%),
    radial-gradient(circle at 88% 24%, rgba(127, 231, 255, 0.16), transparent 26%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}

.blindbox--opening {
  animation: blindbox-shake 0.2s ease-in-out 6;
}

.blindbox-mark {
  color: rgba(255, 245, 239, 0.32);
}

.blindbox-burst span {
  width: 12px;
  height: 12px;
  background: linear-gradient(135deg, var(--accent-secondary) 0%, var(--accent-primary) 65%, var(--accent-cool) 100%);
}

.celebration-banner {
  background: linear-gradient(135deg, rgba(255, 122, 89, 0.22), rgba(255, 179, 107, 0.14), rgba(127, 231, 255, 0.08));
}

.ending-card--finale {
  position: relative;
  overflow: hidden;
  gap: 26px;
  isolation: isolate;
  justify-items: center;
  align-content: start;
  padding-block: 32px 22px;
}

.ending-card--finale .ending-title {
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 0.94;
  max-width: 10ch;
  text-align: center;
}

.screen--ending .topbar {
  position: sticky;
  top: 10px;
  z-index: 2;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  margin-bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(10, 9, 15, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(10px);
  opacity: 0.68;
}

.screen--ending .topbar-stats {
  align-items: center;
  gap: 8px;
}

.screen--ending .chip {
  gap: 6px;
  padding: 0 10px 0 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 245, 239, 0.42);
  font-size: 0.8rem;
}

.screen--ending .chip strong {
  color: rgba(255, 245, 239, 0.62);
  font-weight: 600;
}

.screen--ending .topbar .ghost-button {
  min-height: 34px;
  padding-inline: 12px;
  background: transparent;
  border-color: rgba(88, 233, 206, 0.1);
  color: rgba(255, 245, 239, 0.62);
  box-shadow: none;
}

.screen--ending .chip:last-child {
  padding-right: 0;
  border-right: 0;
}

.ending-card--finale::before {
  content: "";
  position: absolute;
  inset: 8% 18% auto;
  height: 240px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 151, 109, 0.2) 0%, rgba(255, 151, 109, 0.02) 62%, transparent 72%);
  filter: blur(10px);
  z-index: 0;
}

.ending-card--finale > * {
  position: relative;
  z-index: 1;
}

.ending-winner-tag {
  color: rgba(255, 245, 239, 0.62);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ending-winner-name {
  color: #fff3ea;
  font-family: var(--font-display);
  font-size: clamp(3.1rem, 9vw, 6.6rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.ending-task-hero {
  display: grid;
  gap: 14px;
  justify-items: center;
  width: min(100%, 900px);
  padding: 40px clamp(28px, 5vw, 72px) 44px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 181, 116, 0.26), transparent 42%),
    radial-gradient(circle at 50% 110%, rgba(127, 231, 255, 0.06), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.016)),
    rgba(20, 18, 29, 0.9);
  border: 1px solid rgba(255, 212, 164, 0.14);
  box-shadow:
    0 28px 60px rgba(255, 122, 89, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  text-align: center;
  animation: finale-reveal 640ms ease both;
}

.ending-task-kicker {
  color: rgba(255, 235, 214, 0.74);
  font-family: var(--font-display);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ending-task-copy {
  max-width: 22ch;
  margin: 0;
  color: var(--text-main);
  font-size: clamp(1.34rem, 2.9vw, 1.96rem);
  line-height: 1.96;
  text-wrap: pretty;
}

.action-dock--final {
  width: min(100%, 860px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 10px;
  border-radius: 20px;
  background: rgba(11, 9, 16, 0.72);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2);
}

.action-dock--final::before {
  top: -10px;
  min-height: 22px;
  font-size: 0.64rem;
}

.action-dock--final .primary-button,
.action-dock--final .secondary-button,
.action-dock--final .ghost-button {
  min-height: 50px;
}

.finale-fireworks {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.finale-firework,
.finale-spark {
  position: absolute;
  opacity: 0;
}

.finale-firework {
  width: 180px;
  aspect-ratio: 1;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(255, 211, 173, 0.34) 0 12%, transparent 13% 100%),
    radial-gradient(circle, rgba(255, 122, 89, 0.24) 0 42%, transparent 43% 100%);
  filter: blur(1px);
  animation: finale-firework-bloom 1.2s ease-out forwards;
}

.finale-firework--left {
  top: 5%;
  left: -2%;
  animation-delay: 0.04s;
}

.finale-firework--center {
  top: 0%;
  left: 42%;
  width: 210px;
  animation-delay: 0.18s;
}

.finale-firework--right {
  top: 7%;
  right: -3%;
  animation-delay: 0.32s;
}

.finale-spark {
  width: 10px;
  height: 32px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 205, 156, 0.9), rgba(255, 122, 89, 0.14));
  animation: finale-spark-fall 1.6s ease-out forwards;
}

.finale-spark--1 { top: 18%; left: 10%; animation-delay: 0.12s; }
.finale-spark--2 { top: 15%; left: 28%; animation-delay: 0.24s; }
.finale-spark--3 { top: 12%; left: 48%; animation-delay: 0.34s; }
.finale-spark--4 { top: 16%; right: 30%; animation-delay: 0.44s; }
.finale-spark--5 { top: 20%; right: 14%; animation-delay: 0.56s; }
.finale-spark--6 { top: 10%; right: 4%; animation-delay: 0.68s; }

.ops-screen {
  gap: 18px;
}

.ops-hero {
  min-height: auto;
}

.ops-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  align-items: start;
}

.ops-sidebar {
  position: sticky;
  top: 88px;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
    rgba(18, 15, 27, 0.92);
}

.ops-sidebar-links {
  display: grid;
  gap: 10px;
}

.ops-nav-link {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 16px;
  text-decoration: none;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.ops-nav-link strong {
  font-family: var(--font-display);
}

.ops-nav-link span {
  color: var(--muted);
  font-size: 0.9rem;
}

.ops-nav-link:hover,
.ops-nav-link:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(127, 231, 255, 0.16);
  background: rgba(127, 231, 255, 0.06);
}

.ops-content-stack {
  display: grid;
  gap: 18px;
}

.ops-section {
  scroll-margin-top: 98px;
}

.ops-detail summary {
  font-family: var(--font-display);
}

.ops-detail-title {
  display: block;
}

.ops-detail-hint {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.45;
  color: rgba(255, 245, 239, 0.52);
}

.ops-field span {
  color: rgba(255, 245, 239, 0.78);
  font-weight: 600;
}

.ops-textarea {
  min-height: 124px;
}

.footer-link-row,
.landing-actions {
  justify-content: center;
}

@keyframes score-spark {
  0% {
    transform: translateY(6px) scale(0.94);
    opacity: 0.65;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes score-pop {
  0% {
    transform: translateY(10px) scale(0.7);
    opacity: 0;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes overtake-card-in {
  0% {
    transform: translateX(-10px) scale(0.985);
    opacity: 0.78;
  }
  60% {
    transform: translateX(4px) scale(1.01);
  }
  100% {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
}

@keyframes overtake-card-out {
  0% {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateX(8px) scale(0.99);
    opacity: 0.9;
  }
}

@keyframes entrance-rise {
  0% {
    transform: translateY(10px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes card-swipe-in {
  0% {
    transform: translateY(18px) scale(0.985);
    opacity: 0;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes turn-card-out {
  0% {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateX(-22px) scale(0.96);
    opacity: 0;
  }
}

@keyframes turn-card-in {
  0% {
    transform: translateY(22px) scale(0.96);
    opacity: 0;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes turn-banner-swap-in {
  0% {
    transform: translateY(18px) scale(0.98);
    opacity: 0;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes pulse-dot {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(127, 231, 255, 0.12);
  }
  50% {
    transform: scale(1.12);
    box-shadow: 0 0 0 8px rgba(127, 231, 255, 0.04);
  }
}

@keyframes token-surge {
  0% {
    transform: translateY(12px) scale(0.84);
    opacity: 0.4;
  }
  60% {
    transform: translateY(-4px) scale(1.08);
    opacity: 1;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@media (max-width: 980px) {
  .hero-layout,
  .access-panel,
  .ops-layout {
    grid-template-columns: 1fr;
  }

  .journey-ribbon {
    grid-template-columns: 1fr;
  }

  .task-stage-bar {
    grid-template-columns: 1fr;
  }

  .ops-sidebar {
    position: static;
  }

  .hero-layout {
    min-height: auto;
    gap: 24px;
  }

  .hero-brand-column {
    padding-right: 0;
  }
}

@media (max-width: 720px) {
  .app-shell {
    width: 100%;
    padding: 16px 14px calc(116px + env(safe-area-inset-bottom));
  }

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

  .topbar-stats,
  .topbar-actions {
    width: 100%;
  }

  .topbar-actions {
    justify-content: space-between;
  }

  .level-switcher-trigger {
    min-width: 124px;
  }

  .level-switcher-panel {
    left: 0;
    right: auto;
    width: min(92vw, 360px);
  }

  .level-switcher-grid {
    grid-template-columns: 1fr;
  }

  .hero-rules,
  .rules,
  .content-update-panel,
  .summary-strip-stats {
    grid-template-columns: 1fr;
  }

  .summary-strip--task .summary-strip-stats,
  .summary-strip--task-open .summary-strip-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .summary-strip--task .summary-pill,
  .summary-strip--task-open .summary-pill {
    padding: 10px 10px;
  }

  .summary-strip--task .summary-pill strong,
  .summary-strip--task-open .summary-pill strong {
    font-size: 0.72rem;
  }

  .summary-strip--task .summary-pill span,
  .summary-strip--task-open .summary-pill span {
    font-size: 0.9rem;
  }

  .summary-strip--task .summary-strip-action,
  .summary-strip--task-open .summary-strip-action {
    padding: 12px 14px;
  }

  .summary-strip--task .summary-strip-action-title,
  .summary-strip--task-open .summary-strip-action-title {
    font-size: 0.92rem;
  }

  .summary-strip--task-judge,
  .summary-strip--task-judge-open {
    grid-template-columns: 1fr;
  }

  .summary-strip--task-judge .summary-strip-stats,
  .summary-strip--task-judge-open .summary-strip-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .summary-strip--task-judge .summary-pill,
  .summary-strip--task-judge-open .summary-pill {
    display: grid;
    gap: 2px;
    padding: 8px 10px;
  }

  .summary-strip--task-judge .summary-pill strong,
  .summary-strip--task-judge-open .summary-pill strong {
    font-size: 0.68rem;
  }

  .summary-strip--task-judge .summary-pill span,
  .summary-strip--task-judge-open .summary-pill span {
    font-size: 0.88rem;
  }

  .task-detail-toggle,
  .task-scoreboard-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .task-scoreboard-grid {
    grid-template-columns: 1fr;
  }

  .task-block--with-timer {
    padding-top: 84px;
  }

  .task-timer-anchor {
    left: 16px;
    right: 16px;
  }

  .turn-banner-shell {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .turn-banner-timer {
    justify-self: stretch;
  }

  .turn-banner-timer .task-timer-toolbar {
    width: 100%;
  }

  .task-timer-toolbar {
    width: 100%;
    grid-template-columns: 72px 1fr 114px;
  }

  .task-timer-menu {
    width: 120px;
  }

  .judge-review-grid {
    grid-template-columns: 1fr;
  }

  .task-scoreboard-meta {
    white-space: normal;
  }

  .scoreboard-headline,
  .step-progress-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .title {
    font-size: clamp(3rem, 17vw, 4.6rem);
  }

  .chapter-card {
    gap: 20px;
  }

  .chapter-card .eyebrow {
    font-size: clamp(0.98rem, 4.6vw, 1.16rem);
    letter-spacing: 0.12em;
  }

  .chapter-card .section-title {
    font-size: clamp(2.6rem, 13vw, 3.6rem);
    line-height: 0.96;
  }

  .chapter-card .section-subtitle {
    font-size: clamp(1.06rem, 4.7vw, 1.22rem);
    line-height: 1.68;
  }

  .chapter-card .task-block {
    padding: 20px 18px 22px;
  }

  .chapter-card .task-block-label {
    font-size: 0.92rem;
    margin-bottom: 12px;
  }

  .chapter-card .task-copy {
    font-size: 1.08rem;
    line-height: 1.72;
  }

  .hero-card {
    min-height: auto;
  }

  .hero-layout {
    gap: 20px;
  }

  .hero-brand-column {
    gap: 14px;
    padding: 0;
  }

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

  .hero-ambient-ornaments {
    min-height: 104px;
  }

  .hero-action-card {
    gap: 18px;
    padding: 22px;
  }

  .hero-meta-rail,
  .hero-footer--landing {
    flex-direction: column;
    align-items: flex-start;
  }

  .ops-title {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .turn-banner-name {
    font-size: clamp(1.4rem, 7vw, 2rem);
  }

  .landing-actions {
    flex-direction: column;
  }

  .action-dock {
    bottom: calc(env(safe-area-inset-bottom) + 10px);
    grid-template-columns: 1fr;
    padding: 12px;
    border-radius: 20px;
    background: rgba(9, 8, 13, 0.92);
    box-shadow: 0 20px 34px rgba(0, 0, 0, 0.32);
  }

  .action-dock::before {
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
