:root {
  --font-copy: "Manrope", "SF Pro Text", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Manrope", "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-wordmark: "SF Compact Display", "SF Pro Display", "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-system: -apple-system, "Helvetica Neue", Arial, sans-serif;
  --safe-top: env(safe-area-inset-top);
  --safe-bottom: env(safe-area-inset-bottom);
  --bg-color: #0B0D10;
  --bg-secondary: #171A21;
  --bg-tertiary: #2A3043;
  --bg-gradient: #0B0D10;
  --bg-glow: rgba(91, 103, 184, 0.18);
  --bg-wash: rgba(169, 90, 64, 0.16);
  --text: #EEE6D8;
  --text-muted: rgba(222, 213, 199, 0.72);
  --text-surface: #EEE6D8;
  --text-surface-muted: rgba(222, 213, 199, 0.58);
  --card: #181B22;
  --card-border: rgba(238, 230, 216, 0.1);
  --overlay: rgba(15, 17, 22, 0.95);
  --overlay-text: #EEE6D8;
  --button-primary-bg: #C9A84A;
  --button-primary-start: #C9A84A;
  --button-primary-end: #C9A84A;
  --button-primary-text: #101216;
  --button-secondary-border: rgba(238, 230, 216, 0.12);
  --button-secondary-text: #EEE6D8;
  --transition-overlay: rgba(8, 10, 14, 0.84);
  --accent: #C9A84A;
  --accuracy-bad: #A96A52;
  --utility-surface: rgba(18, 20, 26, 0.72);
  --utility-surface-strong: rgba(18, 20, 26, 0.84);
  --utility-border: rgba(238, 230, 216, 0.1);
  --utility-border-strong: rgba(238, 230, 216, 0.14);
  --surface-sheen-top: rgba(255, 255, 255, 0.032);
  --surface-sheen-bottom: rgba(255, 255, 255, 0.008);
  --surface-sheen-strong-top: rgba(255, 255, 255, 0.045);
  --surface-sheen-strong-bottom: rgba(255, 255, 255, 0.012);
  --ceremony-surface-start: rgba(23, 25, 32, 0.98);
  --ceremony-surface-end: rgba(13, 15, 20, 0.94);
  --ceremony-border: rgba(238, 230, 216, 0.1);
  --ceremony-glow: rgba(91, 103, 184, 0.12);
  --modal-surface: rgba(16, 18, 24, 0.96);
  --modal-border: rgba(238, 230, 216, 0.12);
  --point-color: #8B93E7;
  --point-secondary-color: #C96A4A;
  --point-center-color: #EEE6D8;
  --point-glow: rgba(91, 103, 184, 0.24);
  --point-secondary-glow: rgba(201, 106, 74, 0.2);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  font-family: var(--font-system);
  color: var(--text);
}

body {
  background:
    radial-gradient(92% 72% at 82% 10%, var(--bg-glow) 0%, rgba(0, 0, 0, 0) 40%),
    radial-gradient(82% 76% at 14% 88%, var(--bg-wash) 0%, rgba(0, 0, 0, 0) 44%),
    linear-gradient(145deg, rgba(28, 31, 40, 0.84) 0%, rgba(13, 15, 20, 0) 28%),
    linear-gradient(180deg, #151820 0%, var(--bg-color) 42%, var(--bg-secondary) 100%);
}

#app {
  position: fixed;
  inset: 0;
  overflow: hidden;
  touch-action: none;
  background:
    linear-gradient(144deg, rgba(27, 30, 39, 0.74) 0 18%, rgba(0, 0, 0, 0) 18% 100%),
    linear-gradient(-148deg, rgba(66, 46, 40, 0.5) 0 18%, rgba(0, 0, 0, 0) 18% 100%),
    radial-gradient(92% 74% at 82% 10%, var(--bg-glow) 0%, rgba(0, 0, 0, 0) 38%),
    radial-gradient(78% 78% at 14% 88%, var(--bg-wash) 0%, rgba(0, 0, 0, 0) 42%),
    linear-gradient(180deg, var(--bg-color) 0%, var(--bg-secondary) 56%, #0B0D10 100%);
}

#app::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(135deg, rgba(238, 230, 216, 0.045) 0 10%, rgba(238, 230, 216, 0) 10% 100%),
    linear-gradient(154deg, rgba(91, 103, 184, 0.12) 0 16%, rgba(91, 103, 184, 0) 16% 100%),
    linear-gradient(-26deg, rgba(169, 90, 64, 0.12) 0 15%, rgba(169, 90, 64, 0) 15% 100%),
    radial-gradient(circle at 50% 18%, rgba(238, 230, 216, 0.06) 0%, rgba(238, 230, 216, 0) 18%),
    linear-gradient(180deg, rgba(5, 7, 11, 0) 0%, rgba(5, 7, 11, 0.24) 100%);
  opacity: 0.82;
}

#app::before {
  content: "";
  position: fixed;
  inset: 0;
  opacity: 0.038;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='256' height='256' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  background-size: 240px 240px;
  z-index: 1;
}

#game-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  z-index: 2;
  touch-action: none;
}

#game-canvas.active {
  opacity: 1;
  pointer-events: auto;
}

#ui-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}

#transition-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: var(--transition-overlay);
  z-index: 4;
}

#transition-overlay.play-game {
  animation: fadeInGame 220ms ease;
}

#transition-overlay.level-out {
  animation: fadeLevelOut 140ms ease-in forwards;
}

#transition-overlay.level-in {
  animation: fadeLevelIn 180ms ease-out forwards;
}

@keyframes fadeInGame {
  0% { opacity: 0; }
  45% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes fadeLevelOut {
  0% { opacity: 0; }
  100% { opacity: 0.88; }
}

@keyframes fadeLevelIn {
  0% { opacity: 0.88; }
  100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  #transition-overlay.level-out,
  #transition-overlay.level-in {
    animation: none;
    opacity: 0;
  }
}

.screen {
  position: absolute;
  inset: 0;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  padding: calc(var(--safe-top) + 18px) 18px calc(var(--safe-bottom) + 20px);
}

.screen-content {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.screen-content.centered {
  justify-content: center;
  align-items: center;
  text-align: center;
}

.screen-content.scroll {
  overflow-y: auto;
  gap: 16px;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

.settings-screen .screen-content,
.history-screen .screen-content,
.help-screen .screen-content,
.daily-review-screen .screen-content {
  padding-top: 4px;
}

.screen.enter-fade {
  animation: enterFade 220ms ease forwards;
}

.screen.exit-fade {
  animation: exitFade 220ms ease forwards;
}

.screen.enter-slide-left {
  animation: enterLeft 240ms ease forwards;
}

.screen.exit-slide-left {
  animation: exitLeft 240ms ease forwards;
}

.screen.enter-slide-right {
  animation: enterRight 240ms ease forwards;
}

.screen.exit-slide-right {
  animation: exitRight 240ms ease forwards;
}

@keyframes enterFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes exitFade {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes enterLeft {
  from { opacity: 0; transform: translateX(8%); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes exitLeft {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(-8%); }
}

@keyframes enterRight {
  from { opacity: 0; transform: translateX(-8%); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes exitRight {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(8%); }
}

.title-screen .game-title,
.game-title {
  margin: 0;
  font-weight: 200;
  font-size: clamp(3rem, 12vw, 6.4rem);
  letter-spacing: 0.18em;
  text-indent: 0.18em;
  color: var(--text);
  text-shadow: 0 18px 36px rgba(0, 0, 0, 0.2);
}

.title-screen .screen-content {
  position: relative;
  padding: 52px 24px 72px;
}

.title-screen .screen-content::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  width: min(72vw, 360px);
  height: min(72vw, 360px);
  transform: translateX(-50%);
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--bg-glow) 0%, rgba(88, 122, 219, 0.1) 28%, rgba(88, 122, 219, 0) 66%);
  filter: blur(10px);
  opacity: 0.9;
  pointer-events: none;
}

.subtitle {
  margin-top: 16px;
  font-weight: 500;
  font-size: clamp(0.72rem, 3vw, 1rem);
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-transform: none;
}

.title-motif {
  margin-top: 22px;
  display: flex;
  gap: 14px;
  align-items: center;
  position: relative;
}

.title-motif::before,
.title-motif::after {
  content: "";
  width: 54px;
  height: 1px;
  background: linear-gradient(90deg, rgba(243, 235, 221, 0), rgba(243, 235, 221, 0.58), rgba(243, 235, 221, 0));
}

.motif-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(200, 154, 75, 0.28);
}

.motif-marker {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 2px solid var(--accent);
  background: rgba(10, 24, 46, 0.88);
  box-shadow:
    0 0 0 3px rgba(243, 235, 221, 0.08),
    0 0 22px rgba(200, 154, 75, 0.22);
}

.tap-to-begin {
  position: absolute;
  bottom: calc(var(--safe-bottom) + 34px);
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  animation: tapPulse 3s ease-in-out infinite;
}

html[data-midpoint-lifecycle="inactive"] .tap-to-begin {
  animation-play-state: paused;
}

@keyframes tapPulse {
  0% { opacity: 0.2; }
  50% { opacity: 0.7; }
  100% { opacity: 0.2; }
}

.route-identity-stage {
  position: relative;
  width: min(100%, 470px);
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.route-identity-stage::before,
.route-identity-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.route-identity-stage::before {
  clip-path: polygon(0 12%, 12% 0, 86% 0, 100% 13%, 100% 88%, 90% 100%, 12% 100%, 0 88%);
  border: 1px solid rgba(238, 230, 216, 0.1);
  background:
    linear-gradient(136deg, rgba(91, 103, 184, 0.14) 0 16%, rgba(0, 0, 0, 0) 16% 100%),
    linear-gradient(-28deg, rgba(169, 90, 64, 0.12) 0 18%, rgba(0, 0, 0, 0) 18% 100%),
    linear-gradient(180deg, rgba(28, 31, 40, 0.96) 0%, rgba(13, 14, 18, 0.98) 100%);
  box-shadow:
    0 28px 56px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  z-index: -2;
}

.route-identity-stage::after {
  inset: 16px 16px 12px;
  clip-path: polygon(0 16%, 16% 0, 100% 0, 100% 84%, 84% 100%, 0 100%);
  border: 1px solid rgba(238, 230, 216, 0.04);
  background:
    linear-gradient(145deg, rgba(238, 230, 216, 0.03) 0 12%, rgba(0, 0, 0, 0) 12% 100%),
    linear-gradient(180deg, rgba(5, 7, 10, 0.24) 0%, rgba(5, 7, 10, 0) 100%);
  opacity: 0.86;
  z-index: -3;
}

.route-identity-stage-title {
  justify-content: center;
  min-height: min(74vh, 580px);
}

.route-identity-stage-menu {
  margin-bottom: 20px;
  gap: 12px;
}

.route-identity-stage-home-compact {
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 12px;
  padding: 2px 2px 0;
}

.route-identity-stage .tap-to-begin {
  position: static;
  left: auto;
  bottom: auto;
  transform: none;
  margin-top: 2px;
}

.route-identity-stage .title-motif {
  margin-top: 0;
}

.route-identity-detail {
  max-width: 24ch;
  font-size: 0.78rem;
  line-height: 1.55;
  letter-spacing: 0.03em;
  color: rgba(238, 230, 216, 0.64);
}

.route-identity-motif-menu {
  transform: scale(0.92);
  transform-origin: center;
}

.route-section-kicker {
  margin-bottom: 10px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(201, 168, 74, 0.9);
}

.home-compact-kicker {
  margin-bottom: 0;
}

.menu-title {
  margin: 22px 0 18px;
  font-size: clamp(2rem, 9vw, 4rem);
  font-weight: 200;
  letter-spacing: 0.14em;
  text-indent: 0.14em;
  text-align: center;
  color: var(--text);
  text-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
}

.menu-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.main-menu-screen .screen-content {
  justify-content: center;
  gap: 0;
  padding-top: 12px;
}

.main-menu-screen {
  background: transparent;
}

.main-menu-screen .screen-content.home-screen-content {
  position: relative;
  align-items: stretch;
  justify-content: flex-start;
  overflow: hidden;
  gap: clamp(12px, 2.2vh, 18px);
  padding-top: calc(var(--safe-top) + 18px);
  padding-bottom: calc(var(--safe-bottom) + 16px);
}

.home-menu-header {
  width: min(100%, 426px);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.home-menu-symbol {
  width: min(46vw, 164px);
}

.home-menu-stack {
  width: min(100%, 392px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  align-content: start;
  padding: 0 0 clamp(12px, 2.6vh, 20px);
  transform: none;
}

.home-utility-menu {
  position: absolute;
  top: 4px;
  right: 0;
  z-index: 2;
}

.home-gear-button {
  width: 56px;
  min-width: 56px;
  height: 56px;
  padding: 0;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  opacity: 0.46;
  background: transparent;
}

.home-gear-icon {
  width: 30px;
  height: 30px;
  display: block;
  fill: rgba(238, 230, 216, 0.92);
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.24));
}

.home-tagline {
  text-align: center;
  margin-top: -8px;
  margin-bottom: 22px;
  letter-spacing: 0.12em;
}

.menu-actions.short {
  margin-top: 12px;
}

.menu-card {
  pointer-events: auto;
  width: 100%;
  border-radius: 20px;
  border: 1px solid var(--utility-border);
  background:
    linear-gradient(180deg, var(--surface-sheen-top) 0%, var(--surface-sheen-bottom) 100%),
    var(--utility-surface);
  color: var(--text);
  padding: 16px 18px;
  text-align: center;
  font: inherit;
  font-size: clamp(1rem, 4vw, 1.7rem);
  letter-spacing: 0.04em;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    border-color 140ms ease,
    background 180ms ease,
    opacity 140ms ease;
  will-change: transform;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

.menu-card:active {
  transform: translateY(1px) scale(0.995);
}

.menu-card.secondary {
  background:
    linear-gradient(180deg, var(--surface-sheen-top) 0%, var(--surface-sheen-bottom) 100%),
    var(--utility-surface);
  border-color: var(--utility-border);
  color: var(--text);
}

.menu-card.hero {
  padding: 26px 20px 22px;
  border-radius: 22px;
  font-size: clamp(1.4rem, 5.5vw, 2.2rem);
  letter-spacing: 0.06em;
}

.menu-card-kicker {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.menu-card.hero .menu-card-label {
  font-size: clamp(1.4rem, 5.5vw, 2.2rem);
  letter-spacing: 0.08em;
  font-weight: 500;
}

.menu-card.hero .menu-card-subtitle {
  margin-top: 6px;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  text-transform: none;
}

.menu-card-helper {
  display: block;
  margin-top: 6px;
  font-size: 0.82rem;
  line-height: 1.45;
  letter-spacing: 0.03em;
  color: rgba(238, 229, 216, 0.82);
}

.menu-card.home-primary {
  padding: 22px 18px 20px;
  border-color: var(--utility-border-strong);
  background:
    linear-gradient(180deg, var(--surface-sheen-strong-top) 0%, var(--surface-sheen-strong-bottom) 100%),
    var(--utility-surface-strong);
  color: var(--text);
  box-shadow:
    0 18px 36px rgba(6, 12, 24, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  align-items: flex-start;
  text-align: left;
  gap: 6px;
}

.menu-card.home-primary .menu-card-label {
  font-size: clamp(2.4rem, 10vw, 3.4rem);
  letter-spacing: 0.02em;
  font-weight: 640;
  text-transform: uppercase;
}

.menu-card.home-primary .menu-card-subtitle {
  color: var(--text-muted);
  font-size: 0.84rem;
  letter-spacing: 0.03em;
  text-transform: none;
}

.menu-card.home-secondary {
  padding: 18px 18px 16px;
  border-radius: 18px;
  align-items: flex-start;
  text-align: left;
  gap: 5px;
}

.menu-card.home-secondary .menu-card-label {
  font-size: clamp(2.4rem, 10vw, 3.4rem);
  letter-spacing: 0.02em;
  font-weight: 640;
  text-transform: uppercase;
}

.menu-card.home-secondary .menu-card-subtitle {
  color: var(--text-muted);
  font-size: 0.84rem;
  letter-spacing: 0.03em;
  text-transform: none;
}

.menu-card.home-secondary .menu-card-helper {
  margin-top: 4px;
  font-size: 0.76rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.menu-card.home-packs-card {
  border-color: var(--utility-border-strong);
}

.menu-card.home-daily-card {
  border-color: rgba(238, 230, 216, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.024) 0%, rgba(255, 255, 255, 0.006) 100%),
    rgba(7, 21, 38, 0.12);
}

.menu-card.home-daily-card .menu-card-kicker,
.menu-card.home-daily-card .menu-card-helper {
  color: rgba(238, 229, 216, 0.64);
}

.menu-card.home-daily-card .menu-card-label {
  font-size: clamp(2.2rem, 9vw, 3.1rem);
  letter-spacing: 0.01em;
  font-weight: 640;
  text-transform: uppercase;
}

.home-mode-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 124px;
  padding: 0;
  border-radius: 0;
  clip-path: polygon(0 12%, 11% 0, 100% 0, 100% 88%, 89% 100%, 0 100%);
  border-color: rgba(238, 230, 216, 0.11);
  background:
    linear-gradient(140deg, rgba(104, 118, 198, 0.13) 0 17%, rgba(0, 0, 0, 0) 17% 100%),
    linear-gradient(-26deg, rgba(161, 92, 66, 0.12) 0 22%, rgba(0, 0, 0, 0) 22% 100%),
    linear-gradient(180deg, rgba(27, 29, 38, 0.98) 0%, rgba(10, 11, 15, 0.995) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    0 20px 38px rgba(0, 0, 0, 0.24);
  justify-content: flex-end;
  align-items: stretch;
  text-align: left;
  gap: 0;
}

.home-mode-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.008) 18%, rgba(255, 255, 255, 0) 44%),
    radial-gradient(circle at 18% 22%, rgba(117, 136, 221, 0.12) 0%, rgba(117, 136, 221, 0) 42%);
  opacity: 0.95;
  z-index: 0;
  pointer-events: none;
}

.home-mode-card::after {
  content: "";
  position: absolute;
  left: 22px;
  bottom: 18px;
  width: 0;
  height: 3px;
  border-radius: 999px;
  background: var(--home-card-accent, rgba(201, 168, 74, 0.7));
  opacity: 0;
  z-index: 1;
  pointer-events: none;
}

.home-mode-card.hero::after {
  width: 108px;
  opacity: 0.92;
}

.home-mode-card.home-daily-card {
  background:
    linear-gradient(140deg, rgba(104, 118, 198, 0.08) 0 16%, rgba(0, 0, 0, 0) 16% 100%),
    linear-gradient(-26deg, rgba(161, 92, 66, 0.07) 0 18%, rgba(0, 0, 0, 0) 18% 100%),
    linear-gradient(180deg, rgba(24, 26, 34, 0.95) 0%, rgba(10, 11, 15, 0.985) 100%);
}

.home-mode-card-copy {
  position: relative;
  z-index: 1;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 18px 20px;
}

.home-mode-card-title {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 7.8vw, 2.5rem);
  font-weight: 640;
  line-height: 0.94;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(244, 236, 223, 0.98);
}

.home-mode-card.hero {
  min-height: 124px;
}

.home-mode-card.home-secondary {
  min-height: 100px;
}

.home-mode-card.hero .home-mode-card-copy {
  justify-content: center;
  gap: 6px;
}

.home-mode-card.hero .home-mode-card-title {
  font-size: clamp(1.8rem, 7.8vw, 2.5rem);
  font-weight: 640;
  letter-spacing: 0.02em;
  text-shadow: 0 0 36px rgba(201, 168, 74, 0.18);
}

.home-mode-card.home-daily-card .home-mode-card-title {
  max-width: 5ch;
  line-height: 0.94;
}

.home-mode-card.home-levels-card .home-mode-card-title {
  max-width: 7.4ch;
  line-height: 0.94;
}

.home-mode-card-subtitle {
  display: block;
  font-size: clamp(0.9rem, 3.2vw, 1.05rem);
  font-weight: 400;
  line-height: 1.24;
  letter-spacing: 0.03em;
  color: rgba(238, 230, 216, 0.62);
}

.home-mode-card.hero .home-mode-card-subtitle {
  font-size: clamp(0.9rem, 3.2vw, 1.05rem);
  color: rgba(238, 230, 216, 0.7);
}

.home-mode-card-detail {
  display: block;
  margin-top: 4px;
  font-size: 0.74rem;
  line-height: 1.35;
  letter-spacing: 0.03em;
  color: rgba(238, 230, 216, 0.48);
}

.home-mode-card-subtitle-tail {
  color: var(--home-card-accent, var(--accent));
}

.menu-card-label {
  display: block;
  font-size: clamp(1.12rem, 4.6vw, 1.85rem);
  letter-spacing: 0.07em;
}

.menu-card-subtitle {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  text-transform: none;
}

.menu-card.secondary .menu-card-subtitle {
  color: var(--text-muted);
}

.menu-card.compact {
  padding: 12px 8px;
  font-size: clamp(0.58rem, 2.4vw, 0.72rem);
  letter-spacing: 0.06em;
  border-radius: 12px;
  background:
    linear-gradient(180deg, var(--surface-sheen-top) 0%, var(--surface-sheen-bottom) 100%),
    var(--utility-surface);
  border-color: var(--utility-border);
  color: var(--text);
}

.menu-card.compact .menu-card-label {
  font-size: inherit;
  letter-spacing: inherit;
  font-weight: 500;
}

.menu-card.compact .menu-card-subtitle {
  margin-top: 4px;
  font-size: 0.54rem;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.menu-card.utility {
  padding: 12px 10px;
  background:
    linear-gradient(180deg, var(--surface-sheen-top) 0%, var(--surface-sheen-bottom) 100%),
    var(--utility-surface);
  border-color: var(--utility-border);
  color: var(--text);
}

.menu-card.utility .menu-card-label {
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.menu-secondary-row {
  display: flex;
  gap: 10px;
}

.menu-secondary-row .menu-card {
  flex: 1;
}

.menu-settings-link {
  margin-top: 22px;
  text-align: center;
}

.menu-settings-link .text-link {
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  opacity: 0.5;
}

.home-metrics-row {
  margin-top: 2px;
}

.home-status-line {
  text-align: center;
  font-size: 0.8rem;
  line-height: 1.45;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  margin-top: 4px;
  margin-bottom: 4px;
}

.home-campaign-total {
  margin-top: 2px;
  margin-bottom: 0;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: rgba(238, 230, 216, 0.5);
}

.home-campaign-total-label {
  opacity: 0.86;
}

.home-campaign-total-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 7px;
  min-width: 86px;
}

.home-campaign-total-value.all-sealed {
  border: 1px solid var(--home-perfect-run-accent, rgba(201, 168, 74, 0.54));
  border-radius: 999px;
  padding: 1px 8px;
}

.home-perfect-runs-total {
  margin-top: 1px;
  margin-bottom: 0;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: rgba(238, 230, 216, 0.46);
}

.home-utility-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 2px;
  padding-top: 8px;
}

.home-utility-link {
  color: var(--text-muted);
  opacity: 0.86;
}

.home-briefing-card {
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--utility-border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0%, rgba(255, 255, 255, 0.018) 100%),
    rgba(7, 21, 38, 0.22);
  padding: 14px 16px;
  text-align: left;
}

.home-briefing-title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: none;
  color: var(--text-muted);
}

.home-rules-header {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(238, 229, 216, 0.08);
}

.home-rules-header-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--text-muted);
}

.home-briefing-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.home-briefing-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid rgba(238, 229, 216, 0.08);
}

.home-briefing-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.home-briefing-row.active {
  margin: 0 -8px;
  padding: 10px 8px;
  border-radius: 12px;
  border-top-color: transparent;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px rgba(238, 229, 216, 0.06);
}

.home-briefing-range {
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.home-briefing-body {
  min-width: 0;
}

.home-briefing-headline {
  font-size: 0.92rem;
  line-height: 1.3;
  color: var(--text);
}

.home-briefing-detail {
  margin-top: 2px;
  font-size: 0.76rem;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: var(--text-muted);
}


.settings-group {
  margin-bottom: 36px;
}

.settings-group:last-child {
  margin-bottom: 0;
}

.settings-label {
  margin-bottom: 14px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  text-transform: none;
}

.sound-toggle {
  display: flex;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--utility-border);
  background: var(--utility-surface);
}

.sound-toggle button {
  pointer-events: auto;
  flex: 1;
  min-height: 48px;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  transition: background 180ms ease, color 140ms ease, opacity 140ms ease;
}

.sound-toggle button + button {
  border-left: 1px solid var(--button-secondary-border);
}

.sound-toggle button.active {
  background: var(--button-primary-bg);
  color: var(--button-primary-text);
}

.settings-name-input {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid var(--utility-border);
  background: var(--utility-surface);
  color: var(--text);
  padding: 14px 16px;
  font: inherit;
  font-size: 0.92rem;
}

.settings-name-input::placeholder {
  color: var(--text-muted);
}

.settings-helper {
  margin-top: 8px;
  font-size: 0.76rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.menu-card.locked {
  opacity: 0.35;
  pointer-events: auto;
}

.menu-card.locked .menu-card-label {
  opacity: 1;
}

.menu-card.locked .menu-card-subtitle {
  color: var(--text-muted);
}

.section-title {
  margin: 0;
  font-size: clamp(1.5rem, 7vw, 2.6rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text);
}

.section-subtitle {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: clamp(0.78rem, 3vw, 1rem);
  letter-spacing: 0.03em;
}

.hero-score {
  margin-top: 10px;
  font-size: clamp(3.1rem, 18vw, 8.5rem);
  font-weight: 100;
  letter-spacing: 0.04em;
}

.hero-score.personal-best {
  animation: personalBestGlow 1.8s ease-out 1;
  animation-delay: 1.2s;
}

.summary-hero-content {
  max-width: 460px;
  min-height: 100%;
  padding: 42px 22px 34px;
  position: relative;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  gap: 14px;
  isolation: isolate;
  overflow: hidden;
}

.summary-hero-content > * {
  width: 100%;
  position: relative;
  z-index: 1;
}

.summary-hero-content .hero-score {
  margin-top: 0;
  line-height: 0.92;
}

.summary-hero-content.full-clear-state {
  gap: 12px;
}

.summary-full-clear-field {
  position: absolute;
  inset: 16% 8% 10%;
  border-radius: 28px;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transform: scale(1.08);
  background:
    radial-gradient(circle at 50% 34%, rgba(238, 230, 216, 0.14) 0%, rgba(238, 230, 216, 0) 32%),
    radial-gradient(circle at 22% 72%, rgba(169, 90, 64, 0.18) 0%, rgba(169, 90, 64, 0) 48%),
    radial-gradient(circle at 78% 28%, rgba(91, 103, 184, 0.2) 0%, rgba(91, 103, 184, 0) 48%),
    linear-gradient(180deg, rgba(238, 230, 216, 0.035) 0%, rgba(238, 230, 216, 0) 48%),
    radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0) 28%, rgba(0, 0, 0, 0.16) 100%);
}

.summary-full-clear-seal {
  width: min(42vw, 132px);
  aspect-ratio: 1;
  margin: 2px auto 0;
  position: relative;
  opacity: 0;
  transform: scale(0.82);
  pointer-events: none;
}

.summary-full-clear-ring,
.summary-full-clear-diamond,
.summary-full-clear-axis,
.summary-full-clear-core,
.summary-full-clear-bracket {
  position: absolute;
  display: block;
}

.summary-full-clear-ring.outer {
  inset: 14px;
  border-radius: 999px;
  border: 1px solid rgba(201, 168, 74, 0.44);
  transform: scale(1.14);
}

.summary-full-clear-ring.inner {
  inset: 28px;
  border-radius: 999px;
  border: 1px solid rgba(242, 235, 224, 0.3);
  transform: scale(0.92);
}

.summary-full-clear-diamond {
  inset: 33px;
  border: 1px solid rgba(242, 235, 224, 0.54);
  transform: rotate(45deg) scale(1.12);
}

.summary-full-clear-axis.horizontal {
  left: 14px;
  right: 14px;
  top: 50%;
  height: 1px;
  margin-top: -0.5px;
  background: linear-gradient(90deg, rgba(242, 235, 224, 0) 0%, rgba(242, 235, 224, 0.42) 20%, rgba(242, 235, 224, 0.42) 80%, rgba(242, 235, 224, 0) 100%);
  transform: scaleX(0.72);
  transform-origin: center;
}

.summary-full-clear-axis.vertical {
  top: 14px;
  bottom: 14px;
  left: 50%;
  width: 1px;
  margin-left: -0.5px;
  background: linear-gradient(180deg, rgba(242, 235, 224, 0) 0%, rgba(242, 235, 224, 0.38) 22%, rgba(242, 235, 224, 0.38) 78%, rgba(242, 235, 224, 0) 100%);
  transform: scaleY(0.72);
  transform-origin: center;
}

.summary-full-clear-core {
  width: 10px;
  height: 10px;
  left: 50%;
  top: 50%;
  margin-left: -5px;
  margin-top: -5px;
  border-radius: 999px;
  background: rgba(242, 235, 224, 0.94);
  box-shadow:
    0 0 16px rgba(242, 235, 224, 0.2),
    0 0 22px rgba(201, 168, 74, 0.18);
  transform: scale(0.2);
}

.summary-full-clear-bracket {
  width: 16px;
  height: 16px;
  border-color: rgba(201, 168, 74, 0.56);
  opacity: 0.72;
}

.summary-full-clear-bracket.tl {
  left: 16px;
  top: 16px;
  border-left: 1.5px solid currentColor;
  border-top: 1.5px solid currentColor;
  color: rgba(201, 168, 74, 0.56);
  transform: translate(-10px, -10px);
}

.summary-full-clear-bracket.tr {
  right: 16px;
  top: 16px;
  border-right: 1.5px solid currentColor;
  border-top: 1.5px solid currentColor;
  color: rgba(201, 168, 74, 0.56);
  transform: translate(10px, -10px);
}

.summary-full-clear-bracket.bl {
  left: 16px;
  bottom: 16px;
  border-left: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  color: rgba(201, 168, 74, 0.56);
  transform: translate(-10px, 10px);
}

.summary-full-clear-bracket.br {
  right: 16px;
  bottom: 16px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  color: rgba(201, 168, 74, 0.56);
  transform: translate(10px, 10px);
}

.summary-hero-content.full-clear-state .section-title {
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
}

.summary-hero-content.full-clear-state .summary-compact-line {
  color: rgba(242, 235, 224, 0.82);
}

.summary-hero-content.full-clear-active .summary-full-clear-field {
  animation: fullClearFieldBloom 1400ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.summary-hero-content.full-clear-active .summary-full-clear-seal {
  animation: fullClearSealIntro 760ms cubic-bezier(0.24, 0.82, 0.2, 1) 120ms forwards;
}

.summary-hero-content.full-clear-active .summary-full-clear-ring.outer {
  animation: fullClearRingOuter 780ms cubic-bezier(0.24, 0.82, 0.2, 1) 120ms forwards;
}

.summary-hero-content.full-clear-active .summary-full-clear-ring.inner,
.summary-hero-content.full-clear-active .summary-full-clear-diamond {
  animation: fullClearRingInner 760ms cubic-bezier(0.24, 0.82, 0.2, 1) 150ms forwards;
}

.summary-hero-content.full-clear-active .summary-full-clear-axis.horizontal,
.summary-hero-content.full-clear-active .summary-full-clear-axis.vertical {
  animation: fullClearAxisSettle 720ms cubic-bezier(0.24, 0.82, 0.2, 1) 170ms forwards;
}

.summary-hero-content.full-clear-active .summary-full-clear-core {
  animation: fullClearCorePulse 700ms cubic-bezier(0.24, 0.82, 0.2, 1) 220ms forwards;
}

.summary-hero-content.full-clear-active .summary-full-clear-bracket {
  animation: fullClearBracketSettle 720ms cubic-bezier(0.24, 0.82, 0.2, 1) 150ms forwards;
}

.summary-hero-content.full-clear-active .full-clear-score {
  animation: fullClearScoreSettle 980ms cubic-bezier(0.2, 0.82, 0.2, 1) 220ms both;
}

@keyframes fullClearFieldBloom {
  0% {
    opacity: 0;
    transform: scale(1.08);
  }
  24% {
    opacity: 0.34;
  }
  62% {
    opacity: 0.82;
    transform: scale(1);
  }
  100% {
    opacity: 0.56;
    transform: scale(1);
  }
}

@keyframes fullClearSealIntro {
  0% {
    opacity: 0;
    transform: scale(0.82);
  }
  28% {
    opacity: 0.86;
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fullClearRingOuter {
  0% {
    opacity: 0;
    transform: scale(1.18);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fullClearRingInner {
  0% {
    opacity: 0;
    transform: rotate(45deg) scale(1.16);
  }
  100% {
    opacity: 1;
    transform: rotate(45deg) scale(1);
  }
}

@keyframes fullClearAxisSettle {
  0% {
    opacity: 0;
    transform: scale(0.7);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fullClearCorePulse {
  0% {
    opacity: 0;
    transform: scale(0.2);
  }
  60% {
    opacity: 1;
    transform: scale(1.22);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fullClearBracketSettle {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 0.82;
    transform: translate(0, 0);
  }
}

@keyframes fullClearScoreSettle {
  0% {
    letter-spacing: 0.08em;
    text-shadow: 0 0 0 rgba(201, 168, 74, 0);
  }
  45% {
    letter-spacing: 0.1em;
    text-shadow: 0 0 24px rgba(201, 168, 74, 0.18);
  }
  100% {
    letter-spacing: 0.04em;
    text-shadow: 0 0 0 rgba(201, 168, 74, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .summary-hero-content.full-clear-active .summary-full-clear-field,
  .summary-hero-content.full-clear-active .summary-full-clear-seal,
  .summary-hero-content.full-clear-active .summary-full-clear-ring.outer,
  .summary-hero-content.full-clear-active .summary-full-clear-ring.inner,
  .summary-hero-content.full-clear-active .summary-full-clear-diamond,
  .summary-hero-content.full-clear-active .summary-full-clear-axis.horizontal,
  .summary-hero-content.full-clear-active .summary-full-clear-axis.vertical,
  .summary-hero-content.full-clear-active .summary-full-clear-core,
  .summary-hero-content.full-clear-active .summary-full-clear-bracket,
  .summary-hero-content.full-clear-active .full-clear-score {
    animation: none;
  }

  .summary-hero-content.full-clear-active .summary-full-clear-field {
    opacity: 0.56;
    transform: scale(1);
  }

  .summary-hero-content.full-clear-active .summary-full-clear-seal,
  .summary-hero-content.full-clear-active .summary-full-clear-ring.outer,
  .summary-hero-content.full-clear-active .summary-full-clear-ring.inner,
  .summary-hero-content.full-clear-active .summary-full-clear-axis.horizontal,
  .summary-hero-content.full-clear-active .summary-full-clear-axis.vertical,
  .summary-hero-content.full-clear-active .summary-full-clear-core,
  .summary-hero-content.full-clear-active .summary-full-clear-bracket {
    opacity: 1;
    transform: none;
  }

  .summary-hero-content.full-clear-active .summary-full-clear-diamond {
    opacity: 1;
    transform: rotate(45deg);
  }
}

.summary-hero-content .menu-actions.short {
  width: min(100%, 300px);
  margin-top: 6px;
  gap: 10px;
}

.summary-compact-line {
  max-width: 22ch;
  margin: 2px auto 0;
  font-size: 0.92rem;
  line-height: 1.55;
  letter-spacing: 0.02em;
  color: var(--text-muted);
}

.summary-secondary-links {
  display: flex;
  justify-content: center;
  gap: 14px;
  padding-bottom: 6px;
}

.card-block,
.list-card {
  border: 1px solid var(--utility-border);
  border-radius: 18px;
  background:
    linear-gradient(180deg, var(--surface-sheen-top) 0%, var(--surface-sheen-bottom) 100%),
    var(--utility-surface);
  padding: 12px;
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.campaign-summary-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.campaign-summary-title {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.campaign-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.94rem;
}

.campaign-summary-label {
  color: var(--text-muted);
}

.campaign-summary-value {
  color: var(--text);
  text-align: right;
}

.campaign-pack-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.campaign-pack-card {
  width: 100%;
  padding: 14px;
  text-align: left;
  cursor: pointer;
}

.campaign-pack-card.locked {
  opacity: 0.72;
}

.campaign-pack-topline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.campaign-pack-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.campaign-pack-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.campaign-pack-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.05;
  color: var(--text);
}

.campaign-pack-detail {
  color: var(--text-muted);
  font-size: 0.94rem;
}

.campaign-pack-lock {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  text-align: right;
}

.campaign-pack-score {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 560;
  letter-spacing: 0.04em;
}

.campaign-pack-card.locked .campaign-pack-lock {
  color: var(--text-muted);
}

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

.campaign-summary-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--utility-border);
  background: rgba(255, 255, 255, 0.02);
}

.campaign-summary-stat-value {
  font-family: var(--font-display);
  font-size: 1.08rem;
  color: var(--text);
}

.campaign-summary-stat-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.campaign-levels-content {
  gap: 24px;
}

.campaign-levels-header {
  position: relative;
  padding: 8px 2px 4px;
}

.campaign-levels-header-copy {
  position: relative;
  overflow: hidden;
  padding: 16px 18px 14px;
  border: 1px solid var(--campaign-header-border, rgba(238, 230, 216, 0.12));
  clip-path: polygon(0 12%, 9% 0, 100% 0, 100% 88%, 91% 100%, 0 100%);
  background:
    linear-gradient(140deg, var(--campaign-header-cool, rgba(104, 118, 198, 0.12)) 0 16%, rgba(0, 0, 0, 0) 16% 100%),
    linear-gradient(-26deg, var(--campaign-header-warm, rgba(161, 92, 66, 0.12)) 0 18%, rgba(0, 0, 0, 0) 18% 100%),
    linear-gradient(180deg, rgba(24, 26, 34, 0.88) 0%, rgba(10, 11, 15, 0.96) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 16px 30px rgba(0, 0, 0, 0.16);
}

.campaign-levels-header-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.campaign-levels-title {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: clamp(1.82rem, 6.4vw, 2.06rem);
  font-weight: 600;
  line-height: 1;
  color: var(--text);
  text-shadow: 0 0 24px var(--campaign-header-cool, rgba(104, 118, 198, 0.12));
}

.campaign-levels-title-seal {
  opacity: 0.92;
}

.campaign-levels-subtitle {
  font-size: 0.82rem;
  color: rgba(238, 230, 216, 0.4);
}

.campaign-set-strip {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 10px;
  row-gap: 18px;
  padding: 16px 12px 14px;
  border: 1px solid rgba(238, 230, 216, 0.08);
  clip-path: polygon(0 12%, 9% 0, 100% 0, 100% 88%, 91% 100%, 0 100%);
  background:
    linear-gradient(140deg, rgba(104, 118, 198, 0.08) 0 15%, rgba(0, 0, 0, 0) 15% 100%),
    linear-gradient(-26deg, rgba(161, 92, 66, 0.07) 0 18%, rgba(0, 0, 0, 0) 18% 100%),
    linear-gradient(180deg, rgba(22, 24, 31, 0.94) 0%, rgba(10, 11, 15, 0.98) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 16px 30px rgba(0, 0, 0, 0.18);
}

.campaign-set-strip::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  top: calc(50% + 2px);
  height: 1px;
  background: rgba(238, 230, 216, 0.1);
  pointer-events: none;
}

.campaign-set-chip {
  min-height: 48px;
  padding: 7px 4px 6px;
  border: 1px solid var(--campaign-pack-border, rgba(238, 230, 216, 0.08));
  clip-path: polygon(0 18%, 14% 0, 100% 0, 100% 82%, 86% 100%, 0 100%);
  background:
    linear-gradient(140deg, var(--campaign-pack-cool-facet, rgba(104, 118, 198, 0.12)) 0 17%, rgba(0, 0, 0, 0) 17% 100%),
    linear-gradient(-26deg, var(--campaign-pack-warm-facet, rgba(161, 92, 66, 0.12)) 0 18%, rgba(0, 0, 0, 0) 18% 100%),
    linear-gradient(180deg, var(--campaign-pack-sheen, rgba(255, 255, 255, 0.03)) 0%, rgba(255, 255, 255, 0) 48%),
    rgba(255, 255, 255, 0.015);
  color: rgba(238, 230, 216, 0.46);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.campaign-set-chip.selected {
  color: rgba(238, 230, 216, 0.84);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 12px 18px rgba(0, 0, 0, 0.12);
}

.campaign-set-chip.locked {
  opacity: 0.44;
}

.campaign-set-chip-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  text-transform: none;
  color: inherit;
}

.campaign-set-chip-name {
  position: relative;
}

.campaign-set-chip.current .campaign-set-chip-name::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2.5px;
  border-radius: 999px;
  background: var(--campaign-pack-accent, var(--accent));
  box-shadow: 0 0 12px var(--campaign-pack-accent, var(--accent));
}

.campaign-set-chip-detail {
  min-height: 0;
  font-size: 0.65rem;
  font-weight: 400;
  line-height: 1.25;
  color: rgba(238, 230, 216, 0.34);
}

.campaign-set-chip.no-detail {
  gap: 2px;
}

.campaign-level-progress {
  padding: 0;
  font-size: 0.77rem;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0.04em;
  color: rgba(238, 230, 216, 0.34);
}

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

.campaign-level-tile {
  min-height: 116px;
  border-radius: 0;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  display: grid;
  place-items: center;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0;
  cursor: pointer;
  box-shadow: none;
  overflow: visible;
}

.campaign-level-surface {
  position: absolute;
  inset: 0;
  clip-path: polygon(0 12%, 12% 0, 100% 0, 100% 88%, 88% 100%, 0 100%);
  border: 1px solid rgba(238, 230, 216, 0.08);
  background:
    linear-gradient(140deg, var(--campaign-level-cool-facet, rgba(104, 118, 198, 0.15)) 0 16%, rgba(0, 0, 0, 0) 16% 100%),
    linear-gradient(-26deg, var(--campaign-level-warm-facet, rgba(161, 92, 66, 0.16)) 0 22%, rgba(0, 0, 0, 0) 22% 100%),
    linear-gradient(180deg, rgba(24, 26, 34, 0.96) 0%, rgba(10, 11, 15, 0.99) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 14px 24px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  transition: box-shadow 140ms ease, transform 140ms ease;
}

.campaign-level-surface::before,
.campaign-level-surface::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 140ms ease;
}

.campaign-level-surface::before {
  background:
    radial-gradient(circle at 50% 50%, var(--campaign-level-good-wash, rgba(201, 168, 74, 0.08)) 0%, rgba(201, 168, 74, 0.02) 52%, rgba(201, 168, 74, 0) 80%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.015) 0%, rgba(255, 255, 255, 0) 40%);
}

.campaign-level-surface::after {
  inset: 6px;
  clip-path: polygon(0 12%, 12% 0, 100% 0, 100% 88%, 88% 100%, 0 100%);
  border: 2px solid var(--campaign-level-ring-color, rgba(201, 168, 74, 0.48));
  box-sizing: border-box;
}

.campaign-level-tile.state-pass .campaign-level-surface::before {
  opacity: 0.7;
}

.campaign-level-tile.state-perfect .campaign-level-surface::before {
  background:
    radial-gradient(circle at 50% 50%, var(--campaign-level-perfect-wash, rgba(201, 168, 74, 0.32)) 0%, rgba(201, 168, 74, 0.15) 42%, rgba(201, 168, 74, 0.05) 72%, rgba(201, 168, 74, 0) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0) 44%);
  opacity: 1;
}

.campaign-level-tile.state-perfect .campaign-level-surface::after {
  opacity: 1;
}

.campaign-level-seat {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 16px;
  height: 4px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, var(--campaign-level-seat-color, rgba(201, 168, 74, 0.84)) 28%, var(--campaign-level-seat-color, rgba(201, 168, 74, 0.84)) 72%, rgba(255, 255, 255, 0) 100%);
  opacity: 0;
  transform: scaleX(0.72);
  transition: opacity 140ms ease, transform 140ms ease;
}

.campaign-level-tile.state-pass .campaign-level-seat,
.campaign-level-tile.state-perfect .campaign-level-seat {
  opacity: 0;
}

.campaign-level-corner {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 18px;
  height: 18px;
  border-top: 2px solid var(--campaign-level-current-line, rgba(201, 168, 74, 0.82));
  border-left: 2px solid var(--campaign-level-current-line, rgba(201, 168, 74, 0.82));
  opacity: 0;
  filter: drop-shadow(0 0 8px rgba(201, 168, 74, 0.12));
  transition: opacity 140ms ease;
}

.campaign-level-tile.current .campaign-level-corner {
  opacity: 1;
}

.campaign-level-tile.current .campaign-level-surface {
  background:
    radial-gradient(circle at 50% 42%, var(--campaign-level-good-wash, rgba(201, 168, 74, 0.08)) 0%, rgba(201, 168, 74, 0.02) 44%, rgba(201, 168, 74, 0) 76%),
    linear-gradient(140deg, var(--campaign-level-cool-facet, rgba(104, 118, 198, 0.15)) 0 16%, rgba(0, 0, 0, 0) 16% 100%),
    linear-gradient(-26deg, var(--campaign-level-warm-facet, rgba(161, 92, 66, 0.16)) 0 22%, rgba(0, 0, 0, 0) 22% 100%),
    linear-gradient(180deg, rgba(24, 26, 34, 0.96) 0%, rgba(10, 11, 15, 0.99) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    0 16px 28px rgba(0, 0, 0, 0.22);
}

.campaign-level-tile.current .campaign-level-number {
  color: rgba(248, 238, 223, 0.99);
}

.campaign-level-tile.locked {
  opacity: 0.28;
  cursor: default;
}

.campaign-level-tile.state-pass .campaign-level-number {
  color: rgba(252, 244, 232, 1);
}

.campaign-level-tile.state-perfect .campaign-level-number {
  color: var(--campaign-level-accent, rgba(201, 168, 74, 1));
  text-shadow: 0 0 28px var(--campaign-level-bloom-r1, rgba(201, 168, 74, 0.24));
}

.campaign-level-number {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(2rem, 8.4vw, 2.42rem);
  font-weight: 520;
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: rgba(242, 234, 222, 0.96);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
}

.campaign-level-bloom {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.campaign-level-bloom-ring-inner,
.campaign-level-bloom-ring-outer {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  box-sizing: border-box;
  border-style: solid;
  border-color: var(--campaign-level-accent, rgba(201, 168, 74, 1));
  opacity: 0;
  transition: opacity 220ms ease, box-shadow 220ms ease;
}

.campaign-level-bloom-ring-inner {
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  border-width: 1.5px;
}

.campaign-level-bloom-ring-outer {
  width: 82px;
  height: 82px;
  margin: -41px 0 0 -41px;
  border-width: 1px;
}

.campaign-level-bloom-ember {
  position: absolute;
  left: 50%;
  bottom: 14px;
  width: 30px;
  height: 2px;
  margin-left: -15px;
  background: var(--campaign-level-accent, rgba(201, 168, 74, 1));
  border-radius: 999px;
  opacity: 0;
  box-shadow: 0 0 12px var(--campaign-level-good-wash, rgba(201, 168, 74, 0.12));
  transition: opacity 220ms ease;
}

.campaign-level-tile.state-pass .campaign-level-bloom-ember {
  opacity: 0.55;
}

.campaign-level-tile.state-perfect .campaign-level-bloom-ring-inner {
  opacity: 1;
  border-width: 2.25px;
  box-shadow: 0 0 22px -4px var(--campaign-level-accent);
}

.campaign-level-tile.state-perfect .campaign-level-bloom-ring-outer {
  opacity: 0.48;
  border-width: 1px;
}

.campaign-summary-stat-value {
  min-height: 20px;
}

.campaign-summary-stat-value.has-verdict-glyph {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.campaign-summary-stat-value-text {
  display: block;
}

.verdict-glyph {
  position: relative;
  width: var(--verdict-glyph-footprint, 5px);
  height: var(--verdict-glyph-footprint, 5px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.verdict-glyph-dot,
.verdict-glyph-ring,
.verdict-glyph-seal-inner {
  display: block;
  box-sizing: border-box;
  border-radius: 999px;
}

.verdict-glyph-dot {
  width: var(--verdict-glyph-dot, 2px);
  height: var(--verdict-glyph-dot, 2px);
  background: var(--verdict-glyph-color, rgba(238, 230, 216, 0.6));
}

.verdict-glyph-ring {
  width: var(--verdict-glyph-footprint, 5px);
  height: var(--verdict-glyph-footprint, 5px);
  border: var(--verdict-glyph-stroke, 1.5px) solid var(--verdict-glyph-color, rgba(201, 168, 74, 0.4));
}

.verdict-glyph-seal-inner {
  position: absolute;
  width: calc(var(--verdict-glyph-footprint, 5px) - (var(--verdict-glyph-seal-gap, 1px) * 2));
  height: calc(var(--verdict-glyph-footprint, 5px) - (var(--verdict-glyph-seal-gap, 1px) * 2));
  border: var(--verdict-glyph-stroke, 1.5px) solid var(--verdict-glyph-color, rgba(201, 168, 74, 0.4));
}

@media (max-width: 420px) {
  .home-menu-stack {
    gap: 8px;
    padding-top: 0;
  }

  .home-menu-symbol {
    width: min(42vw, 148px);
  }

  .home-mode-card {
    min-height: 116px;
  }

  .home-mode-card-subtitle {
    font-size: 0.9rem;
  }

  .campaign-levels-content {
    gap: 18px;
  }

  .campaign-set-strip {
    column-gap: 8px;
    row-gap: 14px;
    padding: 14px 10px 12px;
  }

  .campaign-set-chip {
    min-height: 42px;
    padding: 5px 2px 4px;
  }

  .campaign-set-chip-label,
  .campaign-set-chip-detail,
  .campaign-level-progress {
    font-size: 0.72rem;
  }

  .campaign-level-tile {
    min-height: 104px;
  }
}

.top-bar {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 0;
  font-size: 0.92rem;
}

.stat-label {
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.stat-value {
  color: var(--text);
  text-align: right;
}

.divider {
  height: 1px;
  background: var(--text);
  opacity: 0.08;
}

.mini-title {
  margin: 2px 0 0;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

.list-row {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text);
}

.review-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 10px;
}

.review-row {
  border: 1px solid var(--utility-border);
  border-radius: 14px;
  background:
    linear-gradient(180deg, var(--surface-sheen-top) 0%, var(--surface-sheen-bottom) 100%),
    var(--utility-surface);
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.review-row-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1 1 auto;
}

.review-row.interactive {
  width: 100%;
  text-align: left;
  font: inherit;
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    border-color 140ms ease,
    background 180ms ease;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

.review-row.interactive:active {
  transform: translateY(1px) scale(0.995);
}

.review-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  color: var(--text);
}

.review-level {
  font-weight: 600;
  color: var(--text);
}

.review-verdict {
  flex: 0 0 auto;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.review-row-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  flex: 1 1 auto;
}

.review-note {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--text-muted);
}

.review-row-indicator {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text);
  text-transform: none;
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--utility-border);
  background: rgba(255, 255, 255, 0.025);
}

.fingerprint-row {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex-wrap: nowrap;
  max-width: min(92vw, 640px);
  overflow: hidden;
}

.ritual-artifact {
  margin-top: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
}

.ritual-artifact.compact {
  gap: 10px;
}

.ritual-artifact-group {
  display: flex;
  gap: 6px;
}

.ritual-artifact.compact .ritual-artifact-group {
  gap: 5px;
}

.ritual-artifact-cell {
  width: 18px;
  height: 18px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.ritual-artifact.compact .ritual-artifact-cell {
  width: 11px;
  height: 11px;
  border-radius: 4px;
}

.ritual-artifact-cell.rhythm {
  background: rgba(82, 160, 183, 0.22);
}

.ritual-artifact-cell.rely {
  background: rgba(168, 129, 94, 0.2);
}

.ritual-artifact-cell.exact {
  background: rgba(228, 220, 206, 0.18);
}

.ritual-artifact-cell.perfect {
  background: rgba(200, 154, 75, 0.58);
  border-color: rgba(200, 154, 75, 0.56);
}

.ritual-artifact-cell.great {
  border-color: rgba(255, 255, 255, 0.24);
}

.ritual-artifact-cell.good {
  border-color: rgba(255, 255, 255, 0.16);
}

.ritual-artifact-cell.off,
.ritual-artifact-cell.timeout {
  background: rgba(255, 255, 255, 0.04);
}

.movement-average-strip {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}

.movement-average-strip.compact {
  margin-top: 10px;
  gap: 8px;
}

.movement-average-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 8px;
  border-radius: 12px;
  border: 1px solid var(--utility-border);
  background: rgba(255, 255, 255, 0.03);
}

.movement-average-strip.compact .movement-average-item {
  padding: 8px 6px;
}

.movement-average-label {
  font-size: 0.58rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.movement-average-value {
  font-size: 1rem;
  color: var(--text);
}

.meta-metric-strip {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}

.meta-metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 8px;
  border-radius: 12px;
  border: 1px solid var(--utility-border);
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
}

.meta-metric-value {
  font-size: 0.96rem;
  color: var(--text);
  letter-spacing: 0.04em;
}

.meta-metric-label {
  font-size: 0.58rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: none;
}

.summary-metric-strip {
  margin-top: 14px;
}

.summary-artifact-card {
  width: min(92vw, 640px);
  margin-top: 18px;
  padding: 18px 16px 14px;
  border-radius: 20px;
  border: 1px solid var(--utility-border-strong);
  background:
    linear-gradient(180deg, var(--surface-sheen-strong-top) 0%, var(--surface-sheen-strong-bottom) 100%),
    var(--utility-surface-strong);
  box-shadow:
    0 20px 40px rgba(6, 12, 24, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.summary-warmth {
  margin-top: 12px;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-transform: none;
}

.history-hero-artifact {
  margin-top: 16px;
}

.history-hero-note {
  margin-top: 10px;
  font-size: 0.76rem;
  line-height: 1.45;
  letter-spacing: 0.03em;
  color: var(--text-muted);
}

.history-row-artifact {
  margin-top: 10px;
  justify-content: flex-start;
}

.history-row-note {
  margin-top: 6px;
}

.lock-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.lock-mark svg {
  display: block;
  overflow: visible;
}

.review-lock {
  width: 28px;
  height: 28px;
}

.review-lock svg {
  width: 28px;
  height: 28px;
}

.finger-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--accent);
  transition: opacity 200ms ease;
}

.summary-board-card {
  margin-top: 16px;
  width: min(92vw, 420px);
  border-radius: 22px;
  border: 1px solid var(--ceremony-border);
  background:
    radial-gradient(circle at top right, var(--ceremony-glow) 0%, rgba(197, 154, 86, 0) 36%),
    linear-gradient(180deg, var(--ceremony-surface-start) 0%, var(--ceremony-surface-end) 100%);
  padding: 16px 18px;
  text-align: left;
  color: var(--text-surface);
  box-shadow:
    0 18px 40px rgba(6, 12, 24, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.summary-board-label {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: rgba(11, 23, 21, 0.54);
}

.summary-board-headline {
  margin-top: 8px;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  color: var(--text-surface);
}

.summary-board-detail {
  margin-top: 6px;
  font-size: 0.76rem;
  line-height: 1.5;
  color: rgba(11, 23, 21, 0.62);
}

.summary-board-card .action-button {
  margin-top: 14px;
}

.summary-insight {
  margin-top: 10px;
  max-width: min(86vw, 360px);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  line-height: 1.5;
  color: var(--text-muted);
}

@keyframes personalBestGlow {
  0% {
    text-shadow: 0 0 0 rgba(0, 0, 0, 0);
  }

  50% {
    text-shadow: 0 0 28px rgba(197, 154, 86, 0.38);
  }

  100% {
    text-shadow: 0 0 0 rgba(0, 0, 0, 0);
  }
}

.help-card {
  border-radius: 18px;
  border: 1px solid var(--utility-border);
  background:
    linear-gradient(180deg, var(--surface-sheen-top) 0%, var(--surface-sheen-bottom) 100%),
    var(--utility-surface);
  padding: 20px;
  text-align: left;
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.help-illustration {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  margin-bottom: 14px;
}

.help-progress-text {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.help-example {
  position: relative;
  width: min(100%, 220px);
  height: 64px;
}

.help-example-line {
  position: absolute;
  left: 20px;
  right: 20px;
  top: 50%;
  height: 2px;
  transform: translateY(-50%);
  background: rgba(238, 229, 216, 0.24);
  border-radius: 999px;
}

.help-example.tilted .help-example-line {
  left: 26px;
  right: 26px;
  transform: translateY(-50%) rotate(-18deg);
}

.help-example-point {
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 4px rgba(238, 229, 216, 0.06);
}

.help-example-point.left {
  left: 26px;
  background: var(--point-fill);
}

.help-example-point.right {
  right: 14px;
  left: auto;
  transform: translate(50%, -50%);
  background: var(--accent);
}

.help-example.tilted .help-example-point.left {
  top: 38%;
}

.help-example.tilted .help-example-point.right {
  top: 62%;
}

.help-example-middle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 0 4px rgba(197, 154, 86, 0.08);
}

.help-example-mark {
  position: absolute;
  left: calc(50% + 26px);
  top: calc(50% + 8px);
  width: 10px;
  height: 10px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--text);
}

.help-example-tag {
  position: absolute;
  font-size: 0.62rem;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--text-muted);
}

.help-example-tag.answer {
  left: 50%;
  top: calc(50% - 24px);
  transform: translateX(-50%);
}

.help-example-tag.yours {
  left: calc(50% + 24px);
  top: calc(50% + 18px);
}

.help-score-row {
  display: flex;
  gap: 14px;
  align-items: flex-end;
  justify-content: center;
  flex-wrap: wrap;
}

.help-score-sample {
  min-width: 54px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.help-score-marker {
  position: relative;
  width: 16px;
  height: 16px;
  border-radius: 50%;
}

.help-score-marker.perfect {
  border: 2px solid var(--accent);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 0 4px rgba(197, 154, 86, 0.08);
}

.help-score-marker.good {
  background: var(--point-fill);
  box-shadow: 12px 0 0 rgba(238, 229, 216, 0.2);
}

.help-score-marker.off {
  background: var(--accuracy-bad);
  opacity: 0.82;
}

.help-score-label {
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  color: var(--text-muted);
}

.help-card-title {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text);
  margin-bottom: 8px;
}

.help-card-body {
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--text-muted);
  white-space: pre-line;
}

.help-card-body strong {
  color: var(--text);
}

.help-example-point.right {
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.12);
}

.help-example-point,
.help-example-middle,
.help-example-mark,
.help-score-marker {
  pointer-events: none;
}

.help-screen-content {
  gap: 14px;
}

.help-screen-subtitle {
  margin: -4px 0 2px;
  max-width: 34ch;
  font-size: 0.92rem;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--text-muted);
}

.help-primer {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--utility-border-strong);
  background:
    linear-gradient(180deg, var(--surface-sheen-strong-top) 0%, var(--surface-sheen-strong-bottom) 100%),
    var(--utility-surface-strong);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 14px 28px rgba(0, 0, 0, 0.12);
}

.help-primer .help-card-title {
  margin-bottom: 0;
}

.help-board {
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: 1.6;
  align-self: center;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(83, 132, 149, 0.26);
  background:
    radial-gradient(circle at 50% 50%, rgba(238, 229, 216, 0.05) 0%, rgba(238, 229, 216, 0) 22%),
    linear-gradient(180deg, rgba(14, 36, 39, 0.96) 0%, rgba(9, 24, 28, 0.94) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 12px 24px rgba(0, 0, 0, 0.18);
}

.help-board-grid,
.help-board-point,
.help-board-mark,
.help-board-answer,
.help-board-line {
  position: absolute;
  pointer-events: none;
}

.help-board-grid {
  inset: 0;
  background-image:
    linear-gradient(rgba(238, 229, 216, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(238, 229, 216, 0.08) 1px, transparent 1px);
  background-size: 12.5% 12.5%;
  opacity: 0.42;
}

.help-board-point,
.help-board-mark,
.help-board-answer {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.help-board-point {
  top: 38%;
  background: var(--point-fill);
  box-shadow: 0 0 0 5px rgba(238, 229, 216, 0.06);
}

.help-board-point.left {
  left: 24%;
}

.help-board-point.right {
  left: 76%;
}

.help-board-mark {
  left: 56%;
  top: 58%;
  background: var(--text);
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.22),
    0 0 0 4px rgba(16, 25, 23, 0.14);
  z-index: 2;
}

.help-board-answer {
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  border: 2px solid var(--accent);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 0 5px rgba(197, 154, 86, 0.08);
  z-index: 2;
}

.help-board-line {
  left: 56%;
  top: 58%;
  width: 50px;
  border-top: 2px dashed rgba(238, 229, 216, 0.58);
  transform-origin: left center;
  transform: rotate(-130deg);
  z-index: 1;
}

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

.help-legend-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(238, 229, 216, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.help-legend-swatch {
  position: relative;
  width: 12px;
  height: 12px;
  margin-top: 2px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.help-legend-swatch.point {
  background: var(--point-fill);
  box-shadow: 0 0 0 4px rgba(238, 229, 216, 0.05);
}

.help-legend-swatch.yours {
  background: var(--text);
  box-shadow: 0 0 0 4px rgba(16, 25, 23, 0.12);
}

.help-legend-swatch.answer {
  width: 14px;
  height: 14px;
  border: 2px solid var(--accent);
  background: rgba(255, 255, 255, 0.04);
}

.help-legend-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.help-legend-title {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
}

.help-guide {
  width: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  border: 1px solid var(--utility-border);
  background:
    linear-gradient(180deg, var(--surface-sheen-top) 0%, var(--surface-sheen-bottom) 100%),
    var(--utility-surface);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.help-guide-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  border-top: 1px solid rgba(238, 229, 216, 0.08);
}

.help-guide-row:first-child {
  border-top: 0;
}

.help-guide-title {
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.3;
  color: var(--text);
}

.help-guide-body {
  font-size: 0.84rem;
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: var(--text-muted);
}

.help-legend-label {
  font-size: 0.72rem;
  letter-spacing: 0.01em;
  color: var(--text-muted);
}

.help-actions {
  margin-top: 2px;
}

.help-actions .action-button {
  width: min(100%, 430px);
  align-self: center;
}

@media (max-width: 520px) {
  .help-primer {
    padding: 16px;
  }

  .help-board {
    border-radius: 18px;
  }

  .help-legend {
    grid-template-columns: 1fr;
  }

  .help-legend-item {
    padding: 11px 12px;
  }

  .help-guide-title {
    font-size: 0.88rem;
  }

  .help-guide-body {
    font-size: 0.8rem;
  }

  .help-guide-row {
    padding: 14px 16px;
  }
}

.stats-hero {
  text-align: center;
  margin-bottom: 4px;
}

.stats-metrics-row {
  display: flex;
  gap: 10px;
  justify-content: center;
}

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

.history-summary-item {
  min-width: 0;
  text-align: center;
}

.history-summary-value {
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
}

.history-summary-label {
  margin-top: 4px;
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.history-list-card {
  padding: 4px 16px;
}

.history-empty {
  padding: 18px 0;
  text-align: center;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.mini-metric {
  flex: 1;
  max-width: 140px;
  border-radius: 14px;
  border: 1px solid var(--utility-border);
  background:
    linear-gradient(180deg, var(--surface-sheen-top) 0%, var(--surface-sheen-bottom) 100%),
    rgba(8, 23, 47, 0.28);
  padding: 14px 8px;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.mini-metric-value {
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--text);
  letter-spacing: 0.02em;
}

.mini-metric-label {
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  text-transform: none;
  margin-top: 4px;
}

.stats-section-card {
  border-radius: 14px;
  border: 1px solid var(--utility-border);
  background:
    linear-gradient(180deg, var(--surface-sheen-top) 0%, var(--surface-sheen-bottom) 100%),
    var(--utility-surface);
  padding: 14px 16px;
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.stats-section-card .stat-row {
  color: var(--text);
}

.stats-section-card .stat-label {
  color: var(--text-muted);
}

.stats-section-card .stat-value {
  color: var(--text);
}

.stats-section-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 10px;
  text-transform: none;
}

.stats-section-body {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.lb-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(238, 229, 216, 0.08);
}

.lb-row:last-child {
  border-bottom: none;
}

.lb-row.best .lb-score {
  color: var(--accent);
}

.lb-topline {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}

.lb-heading {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.lb-date-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.lb-date-label {
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
}

.lb-badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid var(--utility-border);
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.lb-badge.best {
  color: var(--accent);
  border-color: rgba(201, 168, 74, 0.28);
  background: rgba(201, 168, 74, 0.08);
}

.lb-score {
  margin-left: auto;
  flex: 0 0 auto;
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
}

.lb-status {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  line-height: 1.45;
}

.history-row-button {
  width: 100%;
  border: 0;
  background: transparent;
  font: inherit;
  text-align: left;
}

.lb-row.interactive {
  border-radius: 16px;
  padding: 14px 10px;
  margin: 0 -10px;
  transition: transform 140ms ease, background 140ms ease;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

.lb-row.interactive.pressed {
  transform: translateY(1px);
  background: rgba(255, 255, 255, 0.04);
}

.history-row-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.history-row-indicator {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--utility-border);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.lb-status.queued {
  color: var(--accent);
}

.board-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid rgba(238, 229, 216, 0.08);
  color: var(--text);
}

.board-row:first-of-type {
  border-top: 0;
}

.board-row.self {
  color: var(--accent);
  font-weight: 600;
}

.board-rank {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.board-name {
  font-size: 0.84rem;
  letter-spacing: 0.04em;
}

.board-score {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.result-controls {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: calc(var(--safe-top) + 16px) 18px calc(var(--safe-bottom) + 16px);
  pointer-events: auto;
  animation: resultControlsIn 280ms ease 90ms both;
}

@keyframes resultControlsIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.result-controls.tone-perfect {
  animation: resultControlsPerfectIn 360ms cubic-bezier(0.2, 0.85, 0.18, 1) 120ms both;
}

@keyframes resultControlsPerfectIn {
  from { opacity: 0; transform: translateY(10px) scale(0.985); }
  55% { opacity: 1; transform: translateY(0) scale(1.01); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.result-controls.fade-out {
  animation: exitFade 200ms ease forwards;
}

.result-controls-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  max-width: 100%;
}

.result-summary-card {
  width: min(90vw, 400px);
  padding: 14px 15px 13px;
  border-radius: 20px;
  border: 1px solid var(--utility-border-strong);
  background:
    linear-gradient(180deg, var(--surface-sheen-strong-top) 0%, var(--surface-sheen-strong-bottom) 100%),
    var(--utility-surface-strong);
  box-shadow:
    0 18px 40px rgba(6, 12, 24, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  text-align: left;
}

.result-summary-card.tone-perfect {
  border-color: rgba(201, 168, 74, 0.34);
  box-shadow:
    0 22px 48px rgba(22, 16, 8, 0.26),
    0 0 0 1px rgba(201, 168, 74, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.result-summary-card.tone-pass .campaign-result-title {
  color: var(--text);
}

.result-summary-card.tone-miss .campaign-result-title {
  color: var(--text-muted);
}

.campaign-result-eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.campaign-result-header {
  margin-top: 8px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}


.campaign-result-heading {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.campaign-result-title {
  font-family: var(--font-display);
  font-size: 1.08rem;
  line-height: 1.05;
  color: var(--text);
}

.result-summary-card.tone-perfect .campaign-result-title {
  color: #f1dfaf;
}

.campaign-result-detail {
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--text-muted);
}

.campaign-result-note {
  margin-top: 10px;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.result-summary-card.tone-perfect .campaign-result-note {
  color: rgba(232, 216, 173, 0.78);
}

.result-continue-hint {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--utility-border-strong);
  background: rgba(12, 14, 18, 0.76);
  color: var(--text);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
}

.result-retry-locked-caption {
  margin: 6px 0 0;
  padding: 0 16px;
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: var(--text-secondary, rgba(255,255,255,0.45));
}

.result-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.action-button {
  pointer-events: auto;
  border-radius: 50px;
  min-height: 44px;
  min-width: 114px;
  padding: 14px 36px;
  font: inherit;
  font-size: clamp(0.72rem, 3vw, 0.92rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  border: 1.5px solid transparent;
  color: var(--text);
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    opacity 140ms ease,
    background 180ms ease,
    border-color 140ms ease;
  will-change: transform;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

.action-button:active {
  transform: translateY(1px) scale(0.99);
}

.action-button.primary {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.02) 54%, rgba(16, 25, 23, 0.08) 100%),
    var(--button-primary-bg);
  color: var(--button-primary-text);
  border-color: transparent;
  box-shadow:
    0 14px 28px rgba(70, 52, 22, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.action-button.secondary {
  background:
    linear-gradient(180deg, var(--surface-sheen-top) 0%, var(--surface-sheen-bottom) 100%),
    var(--utility-surface);
  border-color: var(--utility-border);
  color: var(--button-secondary-text);
}

.result-controls .action-button.secondary {
  background:
    linear-gradient(180deg, var(--surface-sheen-top) 0%, var(--surface-sheen-bottom) 100%),
    var(--utility-surface-strong);
  color: var(--text);
  border-color: var(--utility-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.result-controls .text-link {
  color: var(--text-muted);
  opacity: 0.88;
}

.result-links {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.summary-board-card .action-button.secondary {
  background: rgba(16, 25, 23, 0.04);
  color: var(--text-surface);
  border-color: rgba(16, 25, 23, 0.14);
}

.modal .action-button.secondary {
  color: var(--text);
  border-color: var(--utility-border);
}

.action-button.small {
  min-height: 44px;
  min-width: 94px;
  padding: 12px 20px;
  font-size: 0.66rem;
}

.action-button.disabled {
  opacity: 0.3;
  pointer-events: none;
}

.text-link {
  pointer-events: auto;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: none;
  font-size: 0.72rem;
  transition: opacity 140ms ease, transform 140ms ease, background 140ms ease, color 140ms ease;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

.campaign-back-link {
  padding-left: 0;
  padding-right: 0;
  border-radius: 0;
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: rgba(238, 230, 216, 0.7);
}

.text-link:active {
  opacity: 1;
  transform: translateY(1px);
}

.auto-advance-chip {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(var(--safe-bottom) + 96px);
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--utility-border);
  background: var(--modal-surface);
  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  pointer-events: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.72);
  pointer-events: auto;
  padding: 16px;
}

.modal-backdrop.pause-backdrop {
  background: rgba(0, 0, 0, 0.9);
}

.modal {
  width: min(100%, 420px);
  border-radius: 20px;
  border: 1px solid var(--modal-border);
  background:
    linear-gradient(180deg, var(--surface-sheen-strong-top) 0%, var(--surface-sheen-strong-bottom) 100%),
    var(--modal-surface);
  padding: 18px;
  box-shadow:
    0 22px 50px rgba(5, 12, 24, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.modal-title {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--text);
}

.modal-copy {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.pause-modal {
  width: min(100%, 360px);
  text-align: center;
}

.pause-modal .modal-title {
  font-weight: 200;
  letter-spacing: 0.08em;
}

.modal-actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pause-actions {
  flex-direction: column;
  align-items: center;
}

.pause-actions .action-button {
  width: min(260px, 100%);
}

.toast {
  position: absolute;
  left: 50%;
  bottom: calc(var(--safe-bottom) + 20px);
  transform: translateX(-50%);
  border-radius: 999px;
  border: 1px solid var(--utility-border);
  background: var(--modal-surface);
  color: var(--text);
  padding: 10px 16px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  pointer-events: none;
}

.threshold-notice {
  position: absolute;
  left: 50%;
  top: calc(var(--safe-top) + 18px);
  transform: translateX(-50%);
  width: min(320px, calc(100vw - 32px));
  border-radius: 18px;
  border: 1px solid var(--utility-border);
  background: var(--modal-surface);
  color: var(--text);
  padding: 14px 16px 15px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}

.threshold-notice-title {
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.threshold-notice-body {
  font-size: 0.98rem;
  letter-spacing: 0.04em;
  color: var(--text);
}

.threshold-notice-detail {
  font-size: 0.66rem;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  text-transform: none;
}

.intersection-screen {
  overflow: hidden;
  background:
    radial-gradient(88% 64% at 80% 10%, rgba(91, 103, 184, 0.22) 0%, rgba(91, 103, 184, 0) 42%),
    radial-gradient(80% 76% at 14% 88%, rgba(169, 90, 64, 0.18) 0%, rgba(169, 90, 64, 0) 44%),
    linear-gradient(146deg, rgba(31, 34, 44, 0.6) 0 18%, rgba(0, 0, 0, 0) 18% 100%),
    linear-gradient(-150deg, rgba(70, 48, 42, 0.42) 0 16%, rgba(0, 0, 0, 0) 16% 100%),
    linear-gradient(180deg, #0B0D10 0%, #171A21 56%, #0B0D10 100%);
}

html[data-midpoint-tier="geometric"] .intersection-screen {
  background:
    radial-gradient(88% 66% at 82% 8%, rgba(91, 103, 184, 0.26) 0%, rgba(91, 103, 184, 0) 42%),
    radial-gradient(78% 78% at 14% 88%, rgba(169, 90, 64, 0.2) 0%, rgba(169, 90, 64, 0) 44%),
    linear-gradient(146deg, rgba(34, 38, 49, 0.72) 0 18%, rgba(0, 0, 0, 0) 18% 100%),
    linear-gradient(-150deg, rgba(78, 52, 45, 0.5) 0 17%, rgba(0, 0, 0, 0) 17% 100%),
    linear-gradient(180deg, #0B0D10 0%, #171A21 54%, #0B0D10 100%);
}

.intersection-screen::before,
.intersection-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.intersection-screen::before {
  background:
    linear-gradient(136deg, rgba(238, 230, 216, 0.05) 0 9%, rgba(238, 230, 216, 0) 9% 100%),
    linear-gradient(154deg, rgba(91, 103, 184, 0.12) 0 15%, rgba(91, 103, 184, 0) 15% 100%),
    linear-gradient(-22deg, rgba(169, 90, 64, 0.12) 0 15%, rgba(169, 90, 64, 0) 15% 100%);
  opacity: 0.88;
}

html[data-midpoint-tier="geometric"] .intersection-screen::before {
  background:
    linear-gradient(136deg, rgba(238, 230, 216, 0.055) 0 9%, rgba(238, 230, 216, 0) 9% 100%),
    linear-gradient(154deg, rgba(91, 103, 184, 0.14) 0 15%, rgba(91, 103, 184, 0) 15% 100%),
    linear-gradient(-22deg, rgba(169, 90, 64, 0.14) 0 15%, rgba(169, 90, 64, 0) 15% 100%);
  opacity: 0.92;
}

.intersection-screen::after {
  background:
    radial-gradient(circle at 50% 54%, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.22) 70%, rgba(0, 0, 0, 0.44) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.018) 0%, rgba(255, 255, 255, 0) 24%);
  opacity: 1;
}

html[data-midpoint-tier="geometric"] .intersection-screen::after {
  background:
    radial-gradient(circle at 50% 56%, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.24) 68%, rgba(0, 0, 0, 0.48) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.014) 0%, rgba(255, 255, 255, 0) 22%);
}

.intersection-screen .screen-content {
  position: relative;
  z-index: 1;
  isolation: isolate;
}

.intersection-screen.info-screen .screen-content.centered,
.intersection-screen.daily-summary-screen .screen-content.centered,
.intersection-screen.daily-summary-screen .summary-hero-content {
  max-width: 460px;
  padding: 42px 22px 30px;
}

.intersection-screen.info-screen .screen-content.centered::before,
.intersection-screen.daily-summary-screen .screen-content.centered::before,
.intersection-screen.daily-summary-screen .summary-hero-content::before,
.intersection-history-screen .screen-content::before,
.intersection-review-screen .screen-content::before,
.intersection-settings-screen .screen-content::before {
  content: "";
  position: absolute;
  inset: 8px 0 0;
  clip-path: polygon(0 11%, 12% 0, 88% 0, 100% 12%, 100% 89%, 90% 100%, 12% 100%, 0 88%);
  border: 1px solid rgba(238, 230, 216, 0.08);
  background:
    linear-gradient(138deg, rgba(91, 103, 184, 0.12) 0 15%, rgba(0, 0, 0, 0) 15% 100%),
    linear-gradient(-24deg, rgba(169, 90, 64, 0.11) 0 18%, rgba(0, 0, 0, 0) 18% 100%),
    linear-gradient(180deg, rgba(26, 29, 38, 0.92) 0%, rgba(11, 12, 16, 0.98) 100%);
  box-shadow:
    0 28px 60px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  z-index: -2;
}

.intersection-screen.info-screen .screen-content.centered::after,
.intersection-screen.daily-summary-screen .screen-content.centered::after,
.intersection-screen.daily-summary-screen .summary-hero-content::after,
.intersection-history-screen .screen-content::after,
.intersection-review-screen .screen-content::after,
.intersection-settings-screen .screen-content::after {
  content: "";
  position: absolute;
  inset: 24px 16px 12px;
  clip-path: polygon(0 16%, 16% 0, 100% 0, 100% 84%, 84% 100%, 0 100%);
  border: 1px solid rgba(238, 230, 216, 0.04);
  background:
    linear-gradient(145deg, rgba(238, 230, 216, 0.028) 0 12%, rgba(0, 0, 0, 0) 12% 100%),
    linear-gradient(180deg, rgba(5, 7, 10, 0.24) 0%, rgba(5, 7, 10, 0) 100%);
  opacity: 0.82;
  z-index: -3;
}

html[data-midpoint-tier="geometric"] .title-screen .screen-content::before,
html[data-midpoint-tier="geometric"] .main-menu-screen .screen-content::before {
  content: "";
  position: absolute;
  inset: 20px 0 18px;
  clip-path: polygon(0 11%, 12% 0, 88% 0, 100% 12%, 100% 89%, 90% 100%, 12% 100%, 0 88%);
  border: 1px solid rgba(238, 230, 216, 0.08);
  background:
    linear-gradient(134deg, rgba(91, 103, 184, 0.14) 0 16%, rgba(0, 0, 0, 0) 16% 100%),
    linear-gradient(-28deg, rgba(169, 90, 64, 0.12) 0 18%, rgba(0, 0, 0, 0) 18% 100%),
    linear-gradient(180deg, rgba(26, 29, 38, 0.94) 0%, rgba(11, 12, 16, 0.97) 100%);
  box-shadow:
    0 34px 72px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  z-index: -2;
}

html[data-midpoint-tier="geometric"] .title-screen .screen-content::after,
html[data-midpoint-tier="geometric"] .main-menu-screen .screen-content::after {
  content: "";
  position: absolute;
  inset: 48px 18px 0;
  clip-path: polygon(0 16%, 15% 0, 100% 0, 100% 84%, 85% 100%, 0 100%);
  border: 1px solid rgba(238, 230, 216, 0.04);
  background:
    linear-gradient(138deg, rgba(238, 230, 216, 0.02) 0 14%, rgba(0, 0, 0, 0) 14% 100%),
    linear-gradient(180deg, rgba(6, 7, 10, 0.28) 0%, rgba(6, 7, 10, 0) 100%);
  transform: translateY(16px);
  opacity: 0.84;
  z-index: -3;
}

html[data-midpoint-tier="geometric"] .main-menu-screen .screen-content.home-screen-content::before {
  inset: -8% -12% 12%;
  clip-path: none;
  border: 0;
  background:
    radial-gradient(56% 42% at 50% 34%, rgba(7, 9, 13, 0.16) 0%, rgba(7, 9, 13, 0.1) 28%, rgba(7, 9, 13, 0.02) 50%, rgba(7, 9, 13, 0) 72%),
    radial-gradient(48% 40% at 14% 18%, rgba(91, 103, 184, 0.08) 0%, rgba(91, 103, 184, 0) 62%),
    radial-gradient(42% 36% at 86% 84%, rgba(169, 90, 64, 0.08) 0%, rgba(169, 90, 64, 0) 66%);
  box-shadow: none;
  opacity: 1;
}

html[data-midpoint-tier="geometric"] .main-menu-screen .screen-content.home-screen-content::after {
  inset: 0;
  clip-path: none;
  border: 0;
  background:
    linear-gradient(180deg, rgba(6, 8, 11, 0.04) 0%, rgba(6, 8, 11, 0) 28%, rgba(6, 8, 11, 0) 72%, rgba(6, 8, 11, 0.08) 100%),
    radial-gradient(58% 26% at 50% 42%, rgba(238, 230, 216, 0.015) 0%, rgba(238, 230, 216, 0) 72%);
  transform: none;
  opacity: 0.75;
}

.intersection-title-content {
  max-width: 560px;
  gap: 14px;
  padding: 52px 28px 76px;
}

html[data-midpoint-tier="geometric"] .intersection-title-content {
  max-width: 540px;
  gap: 12px;
  padding: 56px 28px 76px;
}

.intersection-menu-content {
  justify-content: center;
  gap: 16px;
  padding-top: 34px;
  padding-bottom: 42px;
}

html[data-midpoint-tier="geometric"] .intersection-menu-content {
  gap: 14px;
  padding-top: 32px;
}

.intersection-support-content {
  gap: 16px;
}

.intersection-showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

html[data-midpoint-tier="geometric"] .intersection-showcase {
  gap: 14px;
}

.intersection-eyebrow {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(201, 168, 74, 0.88);
}

.intersection-caption {
  max-width: 340px;
  font-size: 0.82rem;
  line-height: 1.55;
  letter-spacing: 0.04em;
  color: rgba(238, 230, 216, 0.58);
}

.intersection-display-title {
  margin: 0;
  font-size: clamp(3rem, 12vw, 4.8rem);
  font-weight: 560;
  letter-spacing: 0.03em;
  text-indent: 0;
  text-transform: none;
  color: #F2EBDD;
  text-shadow: 0 18px 36px rgba(0, 0, 0, 0.42);
}

.intersection-display-subtitle {
  margin-top: 0;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: rgba(238, 230, 216, 0.62);
}

.concept-geometric-display-title {
  font-size: clamp(3rem, 10vw, 4.6rem);
  font-weight: 560;
  letter-spacing: 0.02em;
}

.concept-geometric-display-subtitle {
  letter-spacing: 0.08em;
  color: rgba(238, 230, 216, 0.6);
}

.intersection-menu-title {
  margin: 6px 0 0;
}

.intersection-menu-subtitle {
  margin-top: -2px;
  margin-bottom: 2px;
}

.intersection-start-prompt {
  position: static;
  left: auto;
  bottom: auto;
  transform: none;
  margin-top: 18px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: rgba(238, 230, 216, 0.54);
  text-transform: none;
}

.concept-geometric-start-prompt {
  margin-top: 16px;
  font-size: 0.72rem;
}

.intersection-icon-shell {
  width: min(68vw, 286px);
}

.intersection-icon-shell.menu {
  width: min(62vw, 238px);
}

.intersection-icon-shell.home-menu-symbol {
  width: min(46vw, 152px);
}

.intersection-icon-shell.support {
  width: 92px;
  flex-shrink: 0;
}

html[data-midpoint-tier="geometric"] .intersection-icon-shell.support {
  width: 74px;
}

.intersection-icon-shell.bare .intersection-icon-panel {
  border: 0;
  background: none;
  box-shadow: none;
  overflow: visible;
}

.intersection-icon-shell.bare .intersection-icon-panel::before,
.intersection-icon-shell.bare .intersection-icon-panel::after {
  display: none;
}

.intersection-icon-shell.bare .intersection-orb-left,
.intersection-icon-shell.bare .intersection-orb-right {
  width: 74%;
  height: 74%;
  box-shadow: 0 0 34px rgba(0, 0, 0, 0.14);
}

.intersection-icon-shell.bare .intersection-orb-center {
  width: 32%;
  height: 70%;
  box-shadow:
    0 0 26px rgba(238, 229, 216, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

html[data-midpoint-tier="geometric"] .intersection-icon-shell.bare {
  width: min(46vw, 168px);
}

html[data-midpoint-tier="geometric"] .intersection-icon-shell.support.bare {
  width: 68px;
}

.intersection-icon-panel {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid rgba(238, 230, 216, 0.1);
  background:
    linear-gradient(135deg, rgba(91, 103, 184, 0.18) 0 18%, rgba(0, 0, 0, 0) 18% 100%),
    linear-gradient(-28deg, rgba(169, 90, 64, 0.16) 0 16%, rgba(0, 0, 0, 0) 16% 100%),
    radial-gradient(circle at 50% 50%, rgba(238, 230, 216, 0.06) 0%, rgba(238, 230, 216, 0) 18%),
    linear-gradient(180deg, rgba(24, 27, 35, 0.96) 0%, rgba(12, 13, 17, 0.98) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 26px 54px rgba(0, 0, 0, 0.36);
}

html[data-midpoint-tier="geometric"] .intersection-icon-panel {
  border-radius: 28px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 18px 38px rgba(0, 0, 0, 0.28);
}

.intersection-icon-panel::before,
.intersection-icon-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.intersection-icon-panel::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.065) 0%, rgba(255, 255, 255, 0) 34%),
    linear-gradient(90deg, rgba(238, 230, 216, 0.035) 0%, rgba(238, 230, 216, 0) 22%, rgba(238, 230, 216, 0) 78%, rgba(238, 230, 216, 0.03) 100%);
}

.intersection-icon-panel::after {
  inset: auto 12% 7%;
  height: 22%;
  border-radius: 999px;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.32) 0%, rgba(0, 0, 0, 0) 72%);
  filter: blur(18px);
}

.intersection-orb {
  position: absolute;
  top: 50%;
  border-radius: 50%;
  transform: translateY(-50%);
  opacity: 0.94;
}

.intersection-orb-left,
.intersection-orb-right {
  width: 70%;
  height: 70%;
}

.intersection-orb-left {
  left: 8%;
  background: var(--point-color);
}

.intersection-orb-right {
  right: 8%;
  background: var(--point-secondary-color);
}

.intersection-orb-center {
  left: 50%;
  width: 30%;
  height: 66%;
  transform: translate(-50%, -50%);
  background: var(--point-center-color);
  box-shadow:
    0 0 24px rgba(238, 230, 216, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.26);
  z-index: 1;
}

.intersection-menu-screen .home-status-line {
  display: inline-flex;
  align-self: center;
  justify-content: center;
  margin-top: 4px;
  margin-bottom: 0;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid rgba(238, 230, 216, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 100%),
    rgba(14, 16, 22, 0.78);
  color: rgba(238, 229, 216, 0.7);
  box-shadow:
    0 16px 28px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.intersection-menu-screen .home-status-line.home-campaign-total {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: rgba(238, 229, 216, 0.52);
}

.intersection-menu-screen .route-identity-stage-home-compact .home-status-line {
  align-self: flex-start;
}

.intersection-screen .home-utility-row {
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(238, 230, 216, 0.08);
}

html[data-midpoint-tier="geometric"] .main-menu-screen.intersection-screen .menu-actions {
  gap: 14px;
}

html[data-midpoint-tier="geometric"] .main-menu-screen.intersection-screen .menu-card,
html[data-midpoint-tier="geometric"] .main-menu-screen.intersection-screen .home-briefing-card {
  border-radius: 24px;
  border: 1px solid rgba(238, 230, 216, 0.1);
  background:
    linear-gradient(136deg, rgba(91, 103, 184, 0.1) 0 14%, rgba(0, 0, 0, 0) 14% 100%),
    linear-gradient(-28deg, rgba(169, 90, 64, 0.09) 0 18%, rgba(0, 0, 0, 0) 18% 100%),
    linear-gradient(180deg, rgba(27, 29, 38, 0.92) 0%, rgba(12, 13, 17, 0.97) 100%);
  box-shadow:
    0 24px 44px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

html[data-midpoint-tier="geometric"] .main-menu-screen.intersection-screen .menu-card.home-primary {
  border-color: rgba(238, 230, 216, 0.14);
  background:
    linear-gradient(135deg, rgba(91, 103, 184, 0.14) 0 16%, rgba(0, 0, 0, 0) 16% 100%),
    linear-gradient(-28deg, rgba(169, 90, 64, 0.12) 0 20%, rgba(0, 0, 0, 0) 20% 100%),
    linear-gradient(180deg, rgba(31, 34, 44, 0.96) 0%, rgba(14, 15, 19, 0.98) 100%);
  box-shadow:
    0 30px 56px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

html[data-midpoint-tier="geometric"] .main-menu-screen.intersection-screen .home-briefing-card {
  padding: 16px 18px;
}

html[data-midpoint-tier="geometric"] .main-menu-screen.intersection-screen .home-rules-header {
  border-bottom-color: rgba(238, 230, 216, 0.08);
}

html[data-midpoint-tier="geometric"] .main-menu-screen.intersection-screen .home-briefing-row {
  border-top-color: rgba(238, 230, 216, 0.08);
}

html[data-midpoint-tier="geometric"] .main-menu-screen.intersection-screen .home-briefing-row.active {
  background: rgba(238, 230, 216, 0.04);
  box-shadow: inset 0 0 0 1px rgba(238, 230, 216, 0.08);
}

html[data-midpoint-tier="geometric"] .main-menu-screen.intersection-screen .home-status-line {
  padding: 9px 16px;
  border: 1px solid rgba(238, 230, 216, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 100%),
    rgba(15, 17, 23, 0.76);
  box-shadow:
    0 18px 30px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

html[data-midpoint-tier="geometric"] .main-menu-screen.intersection-screen .home-utility-row {
  padding-top: 14px;
  border-top: 1px solid rgba(238, 230, 216, 0.08);
}

html[data-midpoint-tier="geometric"] .main-menu-screen.intersection-screen .home-utility-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(238, 230, 216, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.024) 0%, rgba(255, 255, 255, 0) 100%),
    rgba(16, 18, 24, 0.46);
  color: rgba(238, 230, 216, 0.74);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 12px 22px rgba(0, 0, 0, 0.12);
}

.intersection-screen .menu-card,
.intersection-screen .help-card,
.intersection-screen .stats-section-card,
.intersection-screen .summary-board-card,
.intersection-screen .review-row,
.intersection-screen .mini-metric,
.intersection-screen .card-block,
.intersection-screen .list-card,
.intersection-settings-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 24px;
  border: 1px solid rgba(238, 230, 216, 0.1);
  background:
    linear-gradient(136deg, rgba(91, 103, 184, 0.11) 0 14%, rgba(0, 0, 0, 0) 14% 100%),
    linear-gradient(-28deg, rgba(169, 90, 64, 0.1) 0 18%, rgba(0, 0, 0, 0) 18% 100%),
    linear-gradient(180deg, rgba(31, 34, 43, 0.96) 0%, rgba(13, 14, 18, 0.98) 100%);
  color: #f0e9dd;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 20px 40px rgba(0, 0, 0, 0.24);
}

html[data-midpoint-tier="geometric"] .intersection-screen .menu-card,
html[data-midpoint-tier="geometric"] .intersection-screen .help-card,
html[data-midpoint-tier="geometric"] .intersection-screen .stats-section-card,
html[data-midpoint-tier="geometric"] .intersection-screen .summary-board-card,
html[data-midpoint-tier="geometric"] .intersection-screen .review-row,
html[data-midpoint-tier="geometric"] .intersection-screen .mini-metric,
html[data-midpoint-tier="geometric"] .intersection-screen .card-block,
html[data-midpoint-tier="geometric"] .intersection-screen .list-card,
html[data-midpoint-tier="geometric"] .intersection-settings-card {
  background:
    linear-gradient(138deg, rgba(91, 103, 184, 0.14) 0 15%, rgba(0, 0, 0, 0) 15% 100%),
    linear-gradient(-24deg, rgba(169, 90, 64, 0.12) 0 18%, rgba(0, 0, 0, 0) 18% 100%),
    linear-gradient(180deg, rgba(29, 31, 41, 0.95) 0%, rgba(14, 15, 19, 0.98) 100%);
  border-color: rgba(238, 230, 216, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 34px rgba(0, 0, 0, 0.22);
}

.intersection-screen .menu-card > *,
.intersection-screen .help-card > *,
.intersection-screen .stats-section-card > *,
.intersection-screen .summary-board-card > *,
.intersection-screen .review-row > *,
.intersection-screen .mini-metric > *,
.intersection-screen .card-block > *,
.intersection-screen .list-card > *,
.intersection-settings-card > * {
  position: relative;
  z-index: 1;
}

.intersection-screen .menu-card.home-primary {
  background:
    linear-gradient(135deg, rgba(91, 103, 184, 0.18) 0 18%, rgba(0, 0, 0, 0) 18% 100%),
    linear-gradient(-26deg, rgba(169, 90, 64, 0.16) 0 22%, rgba(0, 0, 0, 0) 22% 100%),
    linear-gradient(180deg, rgba(34, 37, 47, 0.98) 0%, rgba(15, 16, 21, 0.98) 100%);
  border-color: rgba(238, 230, 216, 0.13);
  box-shadow:
    0 24px 46px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.intersection-screen .menu-card.home-daily-card {
  border-color: rgba(238, 230, 216, 0.08);
  background:
    linear-gradient(136deg, rgba(91, 103, 184, 0.07) 0 12%, rgba(0, 0, 0, 0) 12% 100%),
    linear-gradient(-28deg, rgba(169, 90, 64, 0.05) 0 14%, rgba(0, 0, 0, 0) 14% 100%),
    linear-gradient(180deg, rgba(25, 27, 35, 0.9) 0%, rgba(12, 13, 17, 0.95) 100%);
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.intersection-screen .help-guide {
  border-color: rgba(238, 230, 216, 0.1);
  background:
    linear-gradient(138deg, rgba(91, 103, 184, 0.09) 0 14%, rgba(0, 0, 0, 0) 14% 100%),
    linear-gradient(-24deg, rgba(169, 90, 64, 0.08) 0 16%, rgba(0, 0, 0, 0) 16% 100%),
    linear-gradient(180deg, rgba(30, 32, 41, 0.92) 0%, rgba(14, 15, 19, 0.96) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 16px 30px rgba(0, 0, 0, 0.2);
}

.intersection-screen .help-guide-row {
  border-top-color: rgba(238, 229, 216, 0.06);
}

html[data-midpoint-tier="geometric"] .intersection-screen .menu-card.home-primary {
  background:
    linear-gradient(136deg, rgba(91, 103, 184, 0.2) 0 18%, rgba(0, 0, 0, 0) 18% 100%),
    linear-gradient(-24deg, rgba(169, 90, 64, 0.16) 0 20%, rgba(0, 0, 0, 0) 20% 100%),
    linear-gradient(180deg, rgba(34, 37, 49, 0.98) 0%, rgba(14, 15, 19, 0.99) 100%);
  border-color: rgba(238, 230, 216, 0.14);
  box-shadow:
    0 24px 46px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

html[data-midpoint-tier="geometric"] .intersection-screen .help-guide {
  border-color: rgba(238, 230, 216, 0.1);
  background:
    linear-gradient(138deg, rgba(91, 103, 184, 0.11) 0 14%, rgba(0, 0, 0, 0) 14% 100%),
    linear-gradient(-24deg, rgba(169, 90, 64, 0.1) 0 16%, rgba(0, 0, 0, 0) 16% 100%),
    linear-gradient(180deg, rgba(30, 32, 41, 0.94) 0%, rgba(14, 15, 19, 0.98) 100%);
}

.intersection-screen .menu-card-label {
  letter-spacing: 0.08em;
  font-weight: 600;
  text-transform: none;
}

.intersection-screen .menu-card.home-primary .menu-card-label {
  font-size: clamp(2.4rem, 10vw, 3.4rem);
  letter-spacing: 0.02em;
  font-weight: 640;
  text-transform: uppercase;
}

.intersection-screen .menu-card.home-secondary .menu-card-label {
  font-size: clamp(2.4rem, 10vw, 3.4rem);
  letter-spacing: 0.02em;
  font-weight: 640;
  text-transform: uppercase;
}

.intersection-screen .menu-card.home-daily-card .menu-card-label {
  font-size: clamp(2.2rem, 9vw, 3.1rem);
  letter-spacing: 0.01em;
  font-weight: 640;
  text-transform: uppercase;
}

.intersection-screen .menu-card.hero .menu-card-label {
  font-size: clamp(2.4rem, 10vw, 3.4rem);
  letter-spacing: 0.02em;
  font-weight: 640;
  text-transform: uppercase;
}

.intersection-screen .menu-card-kicker,
.intersection-screen .menu-card-subtitle,
.intersection-screen .menu-card-helper,
.intersection-screen .help-card-body,
.intersection-screen .help-screen-subtitle,
.intersection-screen .help-guide-body,
.intersection-screen .help-legend-label,
.intersection-screen .settings-helper,
.intersection-screen .settings-label,
.intersection-screen .mini-title,
.intersection-screen .section-subtitle {
  color: rgba(238, 229, 216, 0.62);
}

.intersection-screen .menu-card.compact {
  border-radius: 18px;
}

.intersection-screen .menu-card.utility .menu-card-label,
.intersection-screen .menu-card.compact .menu-card-label {
  font-size: 0.76rem;
  letter-spacing: 0.05em;
}

.intersection-screen .section-title,
.intersection-screen .hero-score,
.intersection-screen .summary-board-headline,
.intersection-screen .home-briefing-headline,
.intersection-screen .lb-score,
.intersection-screen .board-name,
.intersection-screen .board-score,
.intersection-screen .review-label,
.intersection-screen .stat-value,
.intersection-screen .mini-metric-value {
  color: #f2ebe0;
}

.intersection-screen .summary-board-label,
.intersection-screen .summary-board-detail,
.intersection-screen .section-subtitle,
.intersection-screen .summary-insight,
.intersection-screen .review-note,
.intersection-screen .review-row-indicator,
.intersection-screen .lb-date,
.intersection-screen .lb-status,
.intersection-screen .board-rank,
.intersection-screen .mini-metric-label,
.intersection-screen .stat-label {
  color: rgba(238, 229, 216, 0.62);
}

.intersection-screen.daily-summary-screen .section-title,
.intersection-screen.info-screen .section-title {
  font-size: clamp(1.18rem, 5vw, 1.7rem);
  font-weight: 560;
  letter-spacing: 0.05em;
  text-transform: none;
  color: #f2ebe0;
}

.intersection-screen.daily-summary-screen .hero-score,
.intersection-screen.info-screen .hero-score {
  margin-top: 4px;
}

.intersection-screen .summary-board-card {
  width: min(92vw, 420px);
  border-radius: 24px;
  background:
    linear-gradient(138deg, rgba(91, 103, 184, 0.16) 0 16%, rgba(0, 0, 0, 0) 16% 100%),
    linear-gradient(-26deg, rgba(169, 90, 64, 0.14) 0 18%, rgba(0, 0, 0, 0) 18% 100%),
    linear-gradient(180deg, rgba(33, 36, 46, 0.98) 0%, rgba(15, 16, 20, 0.99) 100%);
  color: #f2ebe0;
  box-shadow:
    0 22px 44px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.intersection-screen .summary-artifact-card {
  border-radius: 24px;
  border: 1px solid rgba(238, 230, 216, 0.1);
  background:
    linear-gradient(138deg, rgba(91, 103, 184, 0.12) 0 15%, rgba(0, 0, 0, 0) 15% 100%),
    linear-gradient(-24deg, rgba(169, 90, 64, 0.1) 0 18%, rgba(0, 0, 0, 0) 18% 100%),
    linear-gradient(180deg, rgba(29, 31, 41, 0.96) 0%, rgba(14, 15, 19, 0.99) 100%);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.intersection-screen .review-row,
.intersection-screen .stats-section-card,
.intersection-screen .mini-metric {
  border-radius: 20px;
}

.intersection-screen .board-row,
.intersection-screen .lb-row {
  border-top-color: rgba(238, 230, 216, 0.08);
  border-bottom-color: rgba(238, 230, 216, 0.08);
}

.intersection-screen .history-summary-value,
.intersection-screen .lb-date-label {
  color: #f2ebe0;
}

.intersection-screen .history-summary-label,
.intersection-screen .lb-badge,
.intersection-screen .lb-status {
  color: rgba(238, 229, 216, 0.62);
}

.intersection-screen .lb-badge.best {
  color: rgba(216, 183, 98, 0.96);
  border-color: rgba(216, 183, 98, 0.28);
  background: rgba(216, 183, 98, 0.1);
}

.intersection-screen .divider {
  background: rgba(238, 230, 216, 0.14);
  opacity: 1;
}

.intersection-support-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 26px;
  border: 1px solid rgba(238, 230, 216, 0.1);
  background:
    linear-gradient(138deg, rgba(91, 103, 184, 0.14) 0 16%, rgba(0, 0, 0, 0) 16% 100%),
    linear-gradient(-24deg, rgba(169, 90, 64, 0.12) 0 18%, rgba(0, 0, 0, 0) 18% 100%),
    linear-gradient(180deg, rgba(31, 34, 42, 0.96) 0%, rgba(14, 15, 19, 0.98) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 20px 38px rgba(0, 0, 0, 0.24);
}

html[data-midpoint-tier="geometric"] .intersection-support-header {
  padding: 16px 18px;
  border: 1px solid rgba(238, 230, 216, 0.1);
  background:
    linear-gradient(138deg, rgba(91, 103, 184, 0.14) 0 16%, rgba(0, 0, 0, 0) 16% 100%),
    linear-gradient(-24deg, rgba(169, 90, 64, 0.12) 0 18%, rgba(0, 0, 0, 0) 18% 100%),
    linear-gradient(180deg, rgba(31, 34, 42, 0.96) 0%, rgba(14, 15, 19, 0.98) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 20px 38px rgba(0, 0, 0, 0.24);
  gap: 12px;
}

html[data-midpoint-tier="geometric"] .intersection-support-copy {
  gap: 2px;
}

html[data-midpoint-tier="geometric"] .intersection-support-detail {
  max-width: 34ch;
}

.intersection-support-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.intersection-support-title {
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #f2ebe0;
}

.intersection-support-detail {
  font-size: 0.8rem;
  line-height: 1.55;
  color: rgba(238, 229, 216, 0.62);
}

.intersection-settings-card {
  margin-bottom: 0;
  padding: 18px;
}

.intersection-screen .top-bar .text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(238, 230, 216, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025) 0%, rgba(255, 255, 255, 0) 100%),
    rgba(15, 17, 22, 0.72);
  color: rgba(238, 229, 216, 0.74);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 12px 22px rgba(0, 0, 0, 0.1);
}

html[data-midpoint-tier="geometric"] .intersection-screen .top-bar .text-link {
  min-height: 40px;
  padding: 10px 16px;
  border: 1px solid rgba(238, 230, 216, 0.1);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025) 0%, rgba(255, 255, 255, 0) 100%),
    rgba(15, 17, 22, 0.72);
  color: rgba(238, 229, 216, 0.64);
}

.intersection-screen .top-bar .campaign-back-link,
html[data-midpoint-tier="geometric"] .intersection-screen .top-bar .campaign-back-link {
  min-height: 40px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: rgba(238, 230, 216, 0.7);
}

html[data-midpoint-tier="geometric"] .intersection-menu-screen .home-status-line {
  padding: 9px 16px;
  border: 1px solid rgba(238, 230, 216, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 100%),
    rgba(15, 17, 23, 0.76);
  box-shadow:
    0 18px 30px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  color: rgba(238, 229, 216, 0.68);
}

html[data-midpoint-tier="geometric"] .intersection-screen .home-utility-row {
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(238, 230, 216, 0.08);
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

html[data-midpoint-tier="geometric"] .intersection-screen .home-utility-row .home-utility-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(238, 230, 216, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.024) 0%, rgba(255, 255, 255, 0) 100%),
    rgba(15, 17, 23, 0.46);
  color: rgba(238, 229, 216, 0.74);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 12px 22px rgba(0, 0, 0, 0.12);
}

html[data-midpoint-tier="geometric"] .intersection-screen .help-card,
html[data-midpoint-tier="geometric"] .intersection-settings-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  column-gap: 14px;
  row-gap: 4px;
  align-items: center;
  text-align: left;
  padding: 16px;
  border: 1px solid rgba(238, 230, 216, 0.1);
  border-radius: 22px;
  background:
    linear-gradient(138deg, rgba(91, 103, 184, 0.12) 0 14%, rgba(0, 0, 0, 0) 14% 100%),
    linear-gradient(-24deg, rgba(169, 90, 64, 0.1) 0 16%, rgba(0, 0, 0, 0) 16% 100%),
    linear-gradient(180deg, rgba(30, 32, 41, 0.94) 0%, rgba(14, 15, 19, 0.98) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 32px rgba(0, 0, 0, 0.2);
}

html[data-midpoint-tier="geometric"] .intersection-screen .intersection-help-illustration {
  grid-row: 1 / span 2;
  margin-bottom: 0;
  height: 72px;
}

html[data-midpoint-tier="geometric"] .intersection-screen .help-card-title {
  margin: 0;
}

html[data-midpoint-tier="geometric"] .intersection-screen .help-card-body {
  margin: 0;
}

html[data-midpoint-tier="geometric"] .intersection-settings-card > :first-child {
  grid-column: 1 / -1;
}

html[data-midpoint-tier="geometric"] .intersection-settings-card .settings-helper,
html[data-midpoint-tier="geometric"] .intersection-settings-card .sound-toggle,
html[data-midpoint-tier="geometric"] .intersection-settings-card .settings-name-input {
  grid-column: 2;
}

html[data-midpoint-tier="geometric"] .intersection-settings-card .settings-label {
  grid-column: 1;
  margin: 0;
  align-self: start;
  padding-top: 12px;
}

html[data-midpoint-tier="geometric"] .stats-metrics-row {
  gap: 10px;
  padding: 10px;
  border-radius: 20px;
  border: 1px solid rgba(238, 230, 216, 0.1);
  background:
    linear-gradient(138deg, rgba(91, 103, 184, 0.12) 0 14%, rgba(0, 0, 0, 0) 14% 100%),
    linear-gradient(-24deg, rgba(169, 90, 64, 0.1) 0 16%, rgba(0, 0, 0, 0) 16% 100%),
    linear-gradient(180deg, rgba(29, 31, 40, 0.92) 0%, rgba(14, 15, 19, 0.96) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 32px rgba(0, 0, 0, 0.2);
}

html[data-midpoint-tier="geometric"] .intersection-screen .mini-metric {
  max-width: none;
  border: 1px solid rgba(238, 230, 216, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  padding: 12px 10px;
}

html[data-midpoint-tier="geometric"] .intersection-screen .mini-metric + .mini-metric {
  border-left: 1px solid rgba(238, 230, 216, 0.08);
}

html[data-midpoint-tier="geometric"] .intersection-screen .stats-section-card {
  padding: 16px 18px 12px;
  border: 1px solid rgba(238, 230, 216, 0.1);
  border-radius: 22px;
  background:
    linear-gradient(138deg, rgba(91, 103, 184, 0.12) 0 14%, rgba(0, 0, 0, 0) 14% 100%),
    linear-gradient(-24deg, rgba(169, 90, 64, 0.1) 0 16%, rgba(0, 0, 0, 0) 16% 100%),
    linear-gradient(180deg, rgba(29, 31, 40, 0.94) 0%, rgba(14, 15, 19, 0.98) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 32px rgba(0, 0, 0, 0.2);
}

html[data-midpoint-tier="geometric"] .intersection-screen .history-summary-strip,
html[data-midpoint-tier="geometric"] .intersection-screen .history-list-card {
  border: 1px solid rgba(238, 230, 216, 0.1);
  border-radius: 22px;
  background:
    linear-gradient(138deg, rgba(91, 103, 184, 0.12) 0 14%, rgba(0, 0, 0, 0) 14% 100%),
    linear-gradient(-24deg, rgba(169, 90, 64, 0.1) 0 16%, rgba(0, 0, 0, 0) 16% 100%),
    linear-gradient(180deg, rgba(29, 31, 40, 0.94) 0%, rgba(14, 15, 19, 0.98) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 32px rgba(0, 0, 0, 0.2);
}

html[data-midpoint-tier="geometric"] .intersection-screen .history-summary-strip {
  padding: 12px 14px;
}

html[data-midpoint-tier="geometric"] .intersection-screen .history-list-card {
  padding: 4px 16px;
}

html[data-midpoint-tier="geometric"] .intersection-screen .review-row {
  padding: 14px 16px;
  border: 1px solid rgba(238, 230, 216, 0.1);
  border-radius: 20px;
  background:
    linear-gradient(138deg, rgba(91, 103, 184, 0.12) 0 14%, rgba(0, 0, 0, 0) 14% 100%),
    linear-gradient(-24deg, rgba(169, 90, 64, 0.1) 0 16%, rgba(0, 0, 0, 0) 16% 100%),
    linear-gradient(180deg, rgba(29, 31, 40, 0.94) 0%, rgba(14, 15, 19, 0.98) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 16px 30px rgba(0, 0, 0, 0.18);
}

html[data-midpoint-tier="geometric"] .intersection-screen .summary-board-card {
  background:
    linear-gradient(138deg, rgba(91, 103, 184, 0.18) 0 16%, rgba(0, 0, 0, 0) 16% 100%),
    linear-gradient(-26deg, rgba(169, 90, 64, 0.15) 0 18%, rgba(0, 0, 0, 0) 18% 100%),
    linear-gradient(180deg, rgba(34, 37, 47, 0.98) 0%, rgba(15, 16, 21, 0.99) 100%);
  border-color: rgba(238, 230, 216, 0.12);
  box-shadow:
    0 22px 44px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

html[data-midpoint-family="concept"] .screen,
html[data-midpoint-family="concept"] .screen button,
html[data-midpoint-family="concept"] .screen input {
  font-family: var(--font-copy);
}

html[data-midpoint-family="concept"] .game-title,
html[data-midpoint-family="concept"] .menu-title,
html[data-midpoint-family="concept"] .intersection-display-title {
  font-family: var(--font-wordmark);
  font-weight: 600;
  letter-spacing: 0.04em;
}

html[data-midpoint-family="concept"] .menu-title,
html[data-midpoint-family="concept"] .game-title {
  text-indent: 0;
}

html[data-midpoint-family="concept"] .section-title,
html[data-midpoint-family="concept"] .help-card-title,
html[data-midpoint-family="concept"] .help-guide-title,
html[data-midpoint-family="concept"] .menu-card-label,
html[data-midpoint-family="concept"] .home-briefing-headline,
html[data-midpoint-family="concept"] .hero-score,
html[data-midpoint-family="concept"] .summary-board-headline,
html[data-midpoint-family="concept"] .summary-board-label {
  font-family: var(--font-display);
}

html[data-midpoint-family="concept"] .subtitle,
html[data-midpoint-family="concept"] .section-subtitle,
html[data-midpoint-family="concept"] .menu-card-subtitle,
html[data-midpoint-family="concept"] .menu-card-helper,
html[data-midpoint-family="concept"] .menu-card-kicker,
html[data-midpoint-family="concept"] .help-screen-subtitle,
html[data-midpoint-family="concept"] .help-guide-body,
html[data-midpoint-family="concept"] .help-legend-label,
html[data-midpoint-family="concept"] .settings-label,
html[data-midpoint-family="concept"] .settings-helper,
html[data-midpoint-family="concept"] .home-briefing-title,
html[data-midpoint-family="concept"] .home-briefing-detail,
html[data-midpoint-family="concept"] .home-status-line,
html[data-midpoint-family="concept"] .text-link {
  font-family: var(--font-copy);
}

html[data-midpoint-family="concept"] .midpoint-wordmark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  line-height: 0;
  color: #f2ebe0;
  filter: drop-shadow(0 14px 32px rgba(0, 0, 0, 0.22));
}

html[data-midpoint-family="concept"] .midpoint-wordmark-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  shape-rendering: geometricPrecision;
}

html[data-midpoint-family="concept"] .game-title.midpoint-wordmark-title,
html[data-midpoint-family="concept"] .menu-title.midpoint-wordmark-title,
html[data-midpoint-family="concept"] .intersection-display-title.midpoint-wordmark-title {
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0;
  text-indent: 0;
}

html[data-midpoint-family="concept"] .game-title.midpoint-wordmark-title .midpoint-wordmark {
  width: clamp(18rem, 68vw, 34rem);
}

html[data-midpoint-family="concept"] .menu-title.midpoint-wordmark-title {
  margin: 20px 0 14px;
}

html[data-midpoint-family="concept"] .menu-title.midpoint-wordmark-title .midpoint-wordmark {
  width: clamp(14rem, 62vw, 27rem);
}

html[data-midpoint-family="concept"] .intersection-display-title.midpoint-wordmark-title .midpoint-wordmark {
  width: clamp(15rem, 60vw, 28rem);
}

html[data-midpoint-tier="geometric"] .intersection-display-title.midpoint-wordmark-title .midpoint-wordmark {
  width: clamp(14.5rem, 56vw, 25rem);
}

.intersection-screen .help-card-title,
.intersection-screen .section-title {
  color: #f2ebe0;
}

.intersection-screen .help-card {
  padding: 22px 20px;
}

.intersection-help-card .help-card-title {
  letter-spacing: 0.05em;
}

.intersection-help-illustration {
  position: relative;
  height: 64px;
  gap: 0;
}

.intersection-help-orb {
  position: absolute;
  top: 50%;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  transform: translateY(-50%);
  opacity: 0.92;
}

.intersection-help-orb.left {
  left: calc(50% - 46px);
  background: var(--point-color);
  box-shadow: 0 0 18px rgba(49, 89, 136, 0.16);
}

.intersection-help-orb.right {
  left: calc(50% - 6px);
  background: var(--point-secondary-color);
  box-shadow: 0 0 18px rgba(169, 90, 64, 0.18);
}

.intersection-help-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 48px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: var(--point-center-color);
  box-shadow:
    0 0 18px rgba(238, 229, 216, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
  z-index: 1;
}

.intersection-help-line {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 88px;
  height: 2px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--point-color) 0%, var(--point-center-color) 50%, var(--point-secondary-color) 100%);
  opacity: 0.56;
}

.intersection-help-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 26px;
  height: 26px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px solid rgba(238, 163, 43, 0.82);
  box-shadow: 0 0 14px rgba(238, 163, 43, 0.18);
  z-index: 2;
}

.intersection-illus-lopsided .intersection-help-orb.left {
  transform: translate(-4px, -60%);
}

.intersection-illus-lopsided .intersection-help-orb.right {
  transform: translate(4px, -40%);
}

.intersection-illus-score .intersection-help-orb.left {
  left: calc(50% - 38px);
}

.intersection-illus-score .intersection-help-orb.right {
  left: calc(50% - 14px);
}

.intersection-illus-review .intersection-help-core {
  height: 52px;
}

.intersection-screen .finger-dot {
  width: 16px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--point-color) 0%, var(--point-center-color) 50%, var(--point-secondary-color) 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.intersection-screen .action-button.primary {
  background:
    radial-gradient(circle at 18% 12%, rgba(91, 103, 184, 0.18) 0%, rgba(91, 103, 184, 0) 18%),
    radial-gradient(circle at 82% 14%, rgba(169, 90, 64, 0.16) 0%, rgba(169, 90, 64, 0) 18%),
    linear-gradient(180deg, rgba(255, 228, 166, 0.18) 0%, rgba(255, 228, 166, 0) 42%),
    linear-gradient(180deg, #d4a64f 0%, #b97c48 100%);
  color: #120f0d;
  box-shadow:
    0 14px 30px rgba(77, 48, 20, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.intersection-screen .action-button.secondary {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025) 0%, rgba(255, 255, 255, 0) 100%),
    rgba(15, 17, 22, 0.84);
  border-color: rgba(238, 230, 216, 0.1);
  color: #eee5d8;
}

.intersection-screen .text-link {
  color: rgba(238, 229, 216, 0.68);
}

.intersection-screen .sound-toggle {
  border-radius: 16px;
  border-color: rgba(238, 230, 216, 0.1);
  background: rgba(15, 17, 22, 0.54);
}

.intersection-screen .sound-toggle button {
  color: rgba(238, 229, 216, 0.62);
}

.intersection-screen .sound-toggle button + button {
  border-left-color: rgba(238, 230, 216, 0.1);
}

.intersection-screen .sound-toggle button.active {
  background: linear-gradient(180deg, rgba(126, 135, 211, 0.96) 0%, rgba(182, 106, 82, 0.94) 100%);
  color: #f2ebe0;
}

.intersection-screen .settings-name-input {
  border-radius: 16px;
  border-color: rgba(238, 230, 216, 0.1);
  background: rgba(15, 17, 22, 0.54);
  color: #f2ebe0;
}

.intersection-screen .settings-name-input::placeholder {
  color: rgba(238, 229, 216, 0.46);
}

html[data-midpoint-tier="geometric"] .intersection-screen .sound-toggle {
  border-color: rgba(238, 230, 216, 0.1);
  background: rgba(15, 17, 22, 0.42);
}

html[data-midpoint-tier="geometric"] .intersection-screen .sound-toggle button + button {
  border-left-color: rgba(238, 230, 216, 0.1);
}

html[data-midpoint-tier="geometric"] .intersection-screen .sound-toggle button.active {
  background: linear-gradient(180deg, rgba(126, 135, 211, 0.94) 0%, rgba(182, 106, 82, 0.9) 100%);
}

html[data-midpoint-tier="geometric"] .intersection-screen .settings-name-input {
  border-color: rgba(238, 230, 216, 0.1);
  background: rgba(15, 17, 22, 0.42);
}

html[data-midpoint-family="concept"] .result-controls .action-button.secondary,
html[data-midpoint-family="concept"] .modal .action-button.secondary {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025) 0%, rgba(255, 255, 255, 0) 100%),
    rgba(15, 17, 22, 0.84);
  border-color: rgba(238, 230, 216, 0.1);
  color: #eee5d8;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

html[data-midpoint-family="concept"] .result-controls .text-link,
html[data-midpoint-family="concept"] .text-link {
  color: rgba(238, 229, 216, 0.68);
}

html[data-midpoint-family="concept"] .modal-backdrop {
  background: rgba(5, 7, 11, 0.78);
}

html[data-midpoint-family="concept"] .modal-backdrop.pause-backdrop {
  background: rgba(5, 7, 11, 0.9);
}

html[data-midpoint-family="concept"] .modal {
  border-color: rgba(238, 230, 216, 0.1);
  background:
    linear-gradient(138deg, rgba(91, 103, 184, 0.14) 0 16%, rgba(0, 0, 0, 0) 16% 100%),
    linear-gradient(-24deg, rgba(169, 90, 64, 0.12) 0 18%, rgba(0, 0, 0, 0) 18% 100%),
    linear-gradient(180deg, rgba(31, 34, 42, 0.98) 0%, rgba(14, 15, 19, 0.98) 100%);
  box-shadow:
    0 22px 50px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

html[data-midpoint-family="concept"] .modal-title,
html[data-midpoint-family="concept"] .toast,
html[data-midpoint-family="concept"] .auto-advance-chip,
html[data-midpoint-family="concept"] .threshold-notice {
  color: #f2ebe0;
}

html[data-midpoint-family="concept"] .modal-copy,
html[data-midpoint-family="concept"] .auto-advance-chip,
html[data-midpoint-family="concept"] .toast,
html[data-midpoint-family="concept"] .threshold-notice {
  border-color: rgba(238, 230, 216, 0.1);
  background: rgba(17, 19, 25, 0.94);
}

html[data-midpoint-family="concept"] .auto-advance-chip,
html[data-midpoint-family="concept"] .toast,
html[data-midpoint-family="concept"] .threshold-notice,
html[data-midpoint-family="concept"] .result-controls .text-link {
  color: rgba(238, 229, 216, 0.74);
}

html[data-midpoint-tier="geometric"] .result-controls .action-button.secondary,
html[data-midpoint-tier="geometric"] .modal .action-button.secondary {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0) 100%),
    rgba(15, 17, 22, 0.4);
  border-color: rgba(238, 230, 216, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

html[data-midpoint-tier="geometric"] .modal-backdrop {
  background: rgba(5, 7, 11, 0.78);
}

html[data-midpoint-tier="geometric"] .modal-backdrop.pause-backdrop {
  background: rgba(5, 7, 11, 0.9);
}

html[data-midpoint-tier="geometric"] .modal,
html[data-midpoint-tier="geometric"] .toast,
html[data-midpoint-tier="geometric"] .auto-advance-chip,
html[data-midpoint-tier="geometric"] .threshold-notice {
  border-color: rgba(238, 230, 216, 0.1);
  background:
    linear-gradient(138deg, rgba(91, 103, 184, 0.14) 0 16%, rgba(0, 0, 0, 0) 16% 100%),
    linear-gradient(-24deg, rgba(169, 90, 64, 0.12) 0 18%, rgba(0, 0, 0, 0) 18% 100%),
    rgba(17, 19, 25, 0.94);
}

.daily-lab-shell {
  max-width: 980px;
}

.lab-meta {
  margin-top: 10px;
  margin-bottom: 18px;
  color: var(--text-muted);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

.lab-report-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 30px;
}

.lab-report-card {
  border-radius: 16px;
  border: 1px solid var(--utility-border);
  background:
    linear-gradient(180deg, var(--surface-sheen-top) 0%, var(--surface-sheen-bottom) 100%),
    var(--utility-surface);
  padding: 14px;
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.lab-report-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
}

.lab-report-date {
  font-size: 1rem;
  letter-spacing: 0.08em;
}

.lab-report-version {
  color: var(--text-muted);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
}

.lab-strip {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(238, 229, 216, 0.08);
  background: rgba(16, 25, 23, 0.36);
  margin: 10px 0 12px;
}

.lab-flags {
  margin-top: 10px;
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.menu-card.pressed,
.menu-card.is-pressing,
.home-menu-entry.pressed,
.home-menu-entry.is-pressing,
.review-row.interactive.pressed,
.review-row.interactive.is-pressing,
.action-button.secondary.pressed,
.action-button.secondary.is-pressing,
.campaign-pack-card.pressed,
.campaign-pack-card.is-pressing,
.campaign-level-tile.pressed,
.campaign-level-tile.is-pressing,
.campaign-set-chip.pressed,
.campaign-set-chip.is-pressing {
  border-color: var(--utility-border-strong);
}

.action-button.primary.pressed,
.action-button.primary.is-pressing {
  box-shadow:
    0 10px 20px rgba(70, 52, 22, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

.text-link.pressed,
.text-link.is-pressing {
  opacity: 1;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.home-menu-entry.pressed,
.home-menu-entry.is-pressing {
  opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .menu-card.pressed,
  .menu-card.is-pressing,
  .home-menu-entry.pressed,
  .home-menu-entry.is-pressing,
  .review-row.interactive.pressed,
  .review-row.interactive.is-pressing,
  .action-button.pressed,
  .action-button.is-pressing,
  .campaign-pack-card.pressed,
  .campaign-pack-card.is-pressing,
  .campaign-level-tile.pressed,
  .campaign-level-tile.is-pressing,
  .campaign-set-chip.pressed,
  .campaign-set-chip.is-pressing,
  .text-link.pressed,
  .text-link.is-pressing {
    transform: translateY(2px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .menu-card:active,
  .home-menu-entry:active,
  .action-button:active,
  .text-link:active {
    transform: none;
  }
}

@media (max-width: 420px) {
  .history-summary-strip {
    gap: 8px;
    padding: 11px 12px;
  }

  .history-summary-value {
    font-size: 0.9rem;
  }

  .lb-topline {
    align-items: flex-start;
  }

  .lb-score {
    font-size: 1.04rem;
  }

  .action-button {
    min-width: 100px;
    padding: 12px 22px;
  }

  .campaign-pack-stats,
  .campaign-level-summary {
    grid-template-columns: 1fr;
  }

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