:root {
  --bg: #07080a;
  --surface: #0a0b0d;
  --text: #edf0f2;
  --body: #c3c8cf;
  --muted: #8a9088;
  --faint: #565b63;
  --neutral: #9aa0a8;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.1);
  --divider: rgba(255, 255, 255, 0.07);
  --dot: #34373d;
  --accent: #43f5a5;
  --accent-soft: rgba(67, 245, 165, 0.16);
  --accent-faint: rgba(67, 245, 165, 0.08);
  --red: #ff5b4d;
  --red-soft: rgba(255, 91, 77, 0.14);
  --warning: #ffd23f;
  --info: #5cbfff;
  --odds: #ff5b8a;
  --card-radius: 14px;
  --radius: 10px;
  --font: "IBM Plex Mono", ui-monospace, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--font);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

button {
  font: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.page-wrap {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
}

.terminal-card {
  width: 100%;
  max-width: 680px;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}

.window-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--divider);
}

.window-dot {
  width: 11px;
  height: 11px;
  flex: 0 0 11px;
  border-radius: 50%;
  background: var(--dot);
}

.window-title {
  margin-left: 8px;
  color: var(--faint);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.site-header,
.game-hero {
  padding: 26px 30px 6px;
}

.site-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  color: var(--faint);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 6px;
  color: var(--faint);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

main {
  min-width: 0;
  padding: 22px 30px 28px;
}

.hero {
  padding: 0 0 28px;
}

.terminal-prompt {
  margin-bottom: 8px;
  color: var(--faint);
  font-size: 12px;
}

h1 {
  margin-bottom: 8px;
  color: var(--text);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.05;
}

h2 {
  margin-bottom: 15px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

h3 {
  margin-bottom: 6px;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0;
}

.subtitle,
.game-subtitle {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 12.5px;
}

.status-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.intro-copy,
.game-intro {
  max-width: 590px;
  margin-bottom: 0;
  color: var(--body);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.section {
  padding: 24px 0;
  border-top: 1px solid var(--divider);
}

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

.link-list a,
.button,
.secondary-button {
  display: inline-flex;
  min-height: 43px;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: all 0.14s;
}

.link-list a {
  padding: 0 13px;
  border: 1px solid rgba(154, 160, 168, 0.35);
  background: rgba(154, 160, 168, 0.08);
  color: var(--neutral);
}

.link-list a:hover {
  border-color: rgba(67, 245, 165, 0.7);
  background: var(--accent-faint);
  color: var(--accent);
}

.link-list a[data-placeholder="true"]::after {
  content: "placeholder";
  margin-left: 9px;
  color: var(--faint);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.project-list {
  display: grid;
  gap: 10px;
}

.game-list {
  display: grid;
  gap: 10px;
}

.project-list article {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.project-list p,
.game-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12.5px;
}

.game-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.button {
  padding: 0 17px;
  border: 0;
  background: var(--accent);
  color: var(--bg);
}

.button:hover {
  color: var(--bg);
  opacity: 0.9;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 13px 18px;
  border-top: 1px solid var(--divider);
  color: var(--faint);
  font-size: 11px;
  letter-spacing: 0.03em;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.game-page .page-wrap {
  align-items: center;
}

.game-page main {
  padding-top: 16px;
}

.game-hero h1 {
  margin-bottom: 6px;
}

.game-intro {
  margin-bottom: 18px;
  color: var(--muted);
}

.game-panel {
  animation: eoe-fade 0.25s ease;
}

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

.stat-label,
.kicker {
  color: var(--faint);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.bankroll-line {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.bankroll {
  color: var(--text);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.bankroll-unit {
  color: var(--faint);
  font-size: 12px;
}

.round-count {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.round-markers {
  display: flex;
  gap: 5px;
}

.round-marker {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.round-marker.done {
  background: var(--accent);
}

.round-marker.current {
  background: rgba(67, 245, 165, 0.5);
}

.prop-box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  padding: 15px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
}

.player {
  margin: 4px 0 3px;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
}

.prop-text {
  margin: 0;
  color: var(--body);
  font-size: 13.5px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.odds {
  color: var(--odds);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

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

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

.stat {
  min-width: 0;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.stat-value {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-size: 23px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stat-value.odds-value {
  color: var(--odds);
}

.stat-sub {
  display: block;
  margin-top: 5px;
  color: var(--faint);
  font-size: 10.5px;
}

.guidance {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.guidance p {
  margin-bottom: 4px;
}

.cheat-sheet-wrap {
  margin-top: 14px;
}

.cheat-sheet-toggle {
  display: flex;
  width: 100%;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border: 1px solid rgba(67, 245, 165, 0.58);
  border-radius: 8px;
  background: rgba(67, 245, 165, 0.055);
  color: var(--accent);
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
  transition: border-color 0.14s, background 0.14s, color 0.14s;
}

.cheat-sheet-toggle:hover,
.cheat-sheet-toggle[aria-expanded="true"] {
  border-color: rgba(67, 245, 165, 0.78);
  background: var(--accent-faint);
  color: var(--accent);
}

.cheat-sheet {
  margin-top: 8px;
}

.cheat-sheet .stat {
  border-color: rgba(92, 191, 255, 0.22);
  background: rgba(92, 191, 255, 0.04);
}

.decision-row,
.next-row,
.summary-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.choice-button,
.secondary-button {
  min-height: 48px;
  padding: 0 16px;
  border-radius: 9px;
  cursor: pointer;
}

.choice-button {
  flex: 1;
  border: 1px solid rgba(67, 245, 165, 0.45);
  background: var(--accent-faint);
  color: var(--accent);
}

.choice-button.pass,
.secondary-button {
  border: 1px solid rgba(154, 160, 168, 0.35);
  background: rgba(154, 160, 168, 0.08);
  color: var(--neutral);
}

.choice-button.solid {
  border: 0;
  background: var(--accent);
  color: var(--bg);
}

.choice-button:hover {
  border-color: rgba(67, 245, 165, 0.7);
  background: var(--accent-soft);
}

.choice-button.solid:hover {
  color: var(--bg);
  opacity: 0.9;
}

.choice-button.pass:hover,
.secondary-button:hover {
  border-color: rgba(154, 160, 168, 0.62);
  background: rgba(154, 160, 168, 0.16);
  color: var(--neutral);
}

.home-page .choice-button,
.game-page .choice-button {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.reveal-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.verdict-icon {
  display: inline-flex;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 15px;
  font-weight: 700;
}

.reveal-strip.positive {
  color: var(--accent);
}

.reveal-strip.negative {
  color: var(--red);
}

.reveal-strip.positive .verdict-icon {
  background: var(--accent-soft);
}

.reveal-strip.negative .verdict-icon {
  background: var(--red-soft);
}

.verdict-text {
  font-size: 13.5px;
  font-weight: 600;
}

.edge-meter,
.outcome-block,
.profile-card,
.bankroll-card,
.risk-profile {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.02);
}

.edge-meter {
  margin-top: 16px;
  padding: 15px;
}

.meter-title {
  margin-bottom: 12px;
  color: var(--faint);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.meter-row {
  display: grid;
  grid-template-columns: 96px 1fr 52px;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.meter-label {
  color: var(--faint);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.meter-track {
  height: 9px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
}

.meter-fill {
  height: 100%;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.55);
}

.meter-fill.implied {
  background: rgba(255, 255, 255, 0.2);
}

.meter-value {
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.meter-caption {
  margin: 12px 0 0;
  font-size: 12.5px;
  font-weight: 600;
}

.outcome-block {
  margin-top: 12px;
  padding: 15px;
}

.outcome-main {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
  color: var(--body);
  font-size: 15px;
  font-weight: 600;
}

.outcome-main strong {
  color: var(--text);
  font-size: 24px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.outcome-caption {
  margin: 0;
  color: var(--faint);
  font-size: 11.5px;
}

.positive {
  color: var(--accent);
}

.negative {
  color: var(--red);
}

.thin {
  color: var(--warning);
}

.info {
  color: var(--info);
}

.eyebrow {
  margin-bottom: 9px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ladder-window {
  max-width: 720px;
}

.ladder-hero {
  padding-bottom: 4px;
}

.ladder-panel {
  animation: eoe-fade 0.25s ease;
}

.ladder-screen {
  min-width: 0;
}

.ladder-copy {
  margin-bottom: 16px;
  color: var(--body);
  font-size: 13.5px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.ladder-rules {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 4px 0 18px;
}

.ladder-cell {
  min-width: 0;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.ladder-cell span,
.ladder-readouts span,
.odds-panel-head strong {
  display: block;
  color: var(--faint);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ladder-cell strong,
.ladder-readouts strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.ladder-cell strong.positive,
.ladder-readouts strong.positive,
.ladder-option strong.positive {
  color: var(--accent);
}

.ladder-readouts strong.current {
  color: var(--text);
}

.ladder-cell strong.negative {
  color: var(--red);
}

.ladder-cell strong.thin {
  color: var(--warning);
}

.ladder-cell em,
.ladder-readouts em {
  display: block;
  margin-top: 5px;
  color: var(--faint);
  font-size: 10.5px;
  font-style: normal;
}

.ladder-coaching,
.ladder-prompt {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.ladder-coaching {
  margin-bottom: 20px;
}

.ladder-note {
  margin: 14px 0 0;
  color: var(--faint);
  font-size: 11px;
  letter-spacing: 0.03em;
  text-align: center;
}

.ladder-primary {
  width: 100%;
}

.choice-button:disabled {
  border-color: rgba(86, 91, 99, 0.3);
  background: rgba(255, 255, 255, 0.04);
  color: var(--faint);
  cursor: default;
  opacity: 1;
}

.choice-button:disabled:hover {
  border-color: rgba(86, 91, 99, 0.3);
  background: rgba(255, 255, 255, 0.04);
  color: var(--faint);
}

.ladder-status {
  margin-bottom: 20px;
}

.ladder-readouts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.bankroll-bar-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 7px;
  color: var(--faint);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.bankroll-bar-labels span:first-child {
  color: var(--red);
}

.bankroll-bar-labels .goal-label {
  color: var(--accent);
}

.bankroll-track {
  position: relative;
  height: 12px;
  overflow: hidden;
  border: 1px solid var(--divider);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
}

.bankroll-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  border-radius: 7px;
  background: var(--accent);
  transition: width 0.5s ease;
}

.bankroll-marker {
  position: absolute;
  top: -2px;
  bottom: -2px;
  z-index: 1;
  width: 2px;
}

.bankroll-bust-marker {
  left: 0;
  background: var(--red);
}

.bankroll-start-tick {
  background: var(--warning);
}

.bankroll-goal-marker {
  right: 0;
  background: var(--accent);
}

.bankroll-bar p {
  margin: 6px 0 0;
  color: var(--faint);
  font-size: 10.5px;
}

.bankroll-bar p span {
  color: var(--warning);
}

.ladder-pips {
  display: flex;
  gap: 5px;
  margin-top: 12px;
}

.ladder-pips span {
  height: 6px;
  flex: 1;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.12);
}

.ladder-pips .is-complete {
  background: var(--accent);
}

.ladder-pips .is-current {
  background: rgba(67, 245, 165, 0.5);
}

.ladder-step-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.ladder-step-head strong {
  color: var(--text);
  font-size: 13px;
}

.ladder-step-head span {
  color: var(--faint);
  font-size: 11px;
}

.ladder-prompt {
  margin-bottom: 15px;
}

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

.ladder-option,
.ladder-skip {
  font: inherit;
  cursor: pointer;
  transition: all 0.14s;
}

.ladder-option {
  min-width: 0;
  padding: 14px 15px 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--body);
  text-align: left;
}

.ladder-option:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.035);
}

.ladder-option:focus-visible,
.ladder-skip:focus-visible {
  outline: 2px solid rgba(67, 245, 165, 0.7);
  outline-offset: 3px;
}

.ladder-option.is-selected {
  border-color: rgba(67, 245, 165, 0.65);
  background: rgba(67, 245, 165, 0.1);
  box-shadow: 0 0 0 1px rgba(67, 245, 165, 0.35);
}

.ladder-option span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 0;
}

.ladder-option .ladder-option-head {
  align-items: center;
  margin-bottom: 10px;
  padding: 0;
}

.ladder-option-title {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  min-width: 0;
  padding: 0 !important;
}

.ladder-swatch {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 8px;
  flex: 0 0 18px;
  border-radius: 3px;
  background: var(--neutral);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  opacity: 0.9;
  transition: transform 0.14s, box-shadow 0.14s, opacity 0.14s;
}

.ladder-swatch::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 2px;
  background: rgba(7, 8, 10, 0.22);
}

.ladder-swatch.is-controlled {
  background: var(--warning);
}

.ladder-swatch.is-balanced {
  background: var(--accent);
}

.ladder-swatch.is-aggressive {
  background: var(--red);
}

.ladder-swatch.is-neutral {
  background: var(--neutral);
}

.ladder-option:hover .ladder-swatch,
.ladder-skip:hover .ladder-swatch,
.ladder-option:focus-visible .ladder-swatch,
.ladder-skip:focus-visible .ladder-swatch {
  opacity: 1;
  transform: translateY(-1px);
}

.ladder-option.is-selected .ladder-swatch,
.ladder-skip.is-selected .ladder-swatch {
  opacity: 1;
  box-shadow: 0 0 12px currentColor, inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.ladder-option-small .ladder-swatch,
.ladder-option-small.is-selected .ladder-option-head strong {
  color: var(--warning);
}

.ladder-option-medium .ladder-swatch,
.ladder-option-medium.is-selected .ladder-option-head strong {
  color: var(--accent);
}

.ladder-option-big .ladder-swatch,
.ladder-option-big.is-selected .ladder-option-head strong {
  color: var(--red);
}

.ladder-option strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.ladder-option-head strong {
  font-size: 15px;
  font-weight: 700;
}

.ladder-option em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.ladder-option-head em {
  color: var(--faint);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ladder-ev-row {
  margin-top: 8px;
  padding-top: 8px !important;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.ladder-skip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 46px;
  margin-top: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ladder-skip .ladder-swatch {
  color: var(--neutral);
}

.ladder-skip:hover,
.ladder-skip.is-selected {
  border-color: rgba(154, 160, 168, 0.6);
  background: rgba(154, 160, 168, 0.16);
  color: var(--body);
}

.ladder-skip + .ladder-primary {
  margin-top: 15px;
}

.ladder-outcome {
  margin-bottom: 16px;
  padding: 18px;
  border-radius: 12px;
}

.ladder-outcome.is-win {
  border: 1px solid rgba(67, 245, 165, 0.4);
  background: rgba(67, 245, 165, 0.07);
}

.ladder-outcome.is-loss {
  border: 1px solid rgba(255, 91, 77, 0.4);
  background: rgba(255, 91, 77, 0.07);
}

.ladder-outcome.is-skip {
  border: 1px solid rgba(154, 160, 168, 0.28);
  background: rgba(154, 160, 168, 0.06);
}

.ladder-outcome div:first-child {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
}

.ladder-outcome-title {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.ladder-outcome strong {
  color: var(--text);
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
}

.ladder-outcome.is-win div:first-child strong {
  color: var(--accent);
}

.ladder-outcome.is-loss div:first-child strong {
  color: var(--red);
}

.ladder-outcome.is-skip div:first-child strong {
  color: var(--muted);
}

.ladder-outcome span {
  color: var(--muted);
  font-size: 13.5px;
}

.ladder-reveal-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.ladder-style-pill {
  padding: 4px 9px;
  border-radius: 20px;
  font-size: 10px !important;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ladder-style-pill.is-conservative {
  border: 1px solid rgba(255, 210, 63, 0.4);
  background: rgba(255, 210, 63, 0.12);
  color: var(--warning);
}

.ladder-style-pill.is-balanced {
  border: 1px solid rgba(67, 245, 165, 0.4);
  background: rgba(67, 245, 165, 0.12);
  color: var(--accent);
}

.ladder-style-pill.is-aggressive {
  border: 1px solid rgba(255, 91, 77, 0.4);
  background: rgba(255, 91, 77, 0.12);
  color: var(--red);
}

.ladder-feedback {
  margin-bottom: 18px;
  padding-left: 12px;
  border-left: 2px solid rgba(67, 245, 165, 0.5);
  color: var(--body);
  font-size: 13px;
  line-height: 1.6;
}

.risk-profile-card {
  margin-bottom: 14px;
}

.risk-profile-card strong {
  display: block;
  margin-top: 6px;
  color: var(--accent);
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
}

.risk-profile-card.is-aggressive {
  border-color: rgba(255, 91, 77, 0.45);
  background: rgba(255, 91, 77, 0.09);
}

.risk-profile-card.is-aggressive strong {
  color: var(--red);
}

.risk-profile-card.is-conservative {
  border-color: rgba(255, 210, 63, 0.45);
  background: rgba(255, 210, 63, 0.09);
}

.risk-profile-card.is-conservative strong {
  color: var(--warning);
}

.ladder-end-grid .ladder-cell strong {
  font-size: 22px;
}

.odds-panel {
  margin-top: 16px;
  padding: 14px 16px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

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

.odds-panel-head span {
  color: var(--faint);
  font-size: 10.5px;
}

.odds-panel p {
  margin: 6px 0 12px;
  color: var(--body);
  font-size: 12.5px;
  line-height: 1.5;
}

.odds-bar {
  display: flex;
  height: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.odds-bar span {
  border-right: 1px solid rgba(7, 8, 10, 0.6);
  opacity: 0.3;
}

.odds-bar span.is-active {
  opacity: 1;
}

.odds-bar .is-clear,
.odds-legend i.is-clear {
  background: var(--accent);
}

.odds-panel .is-clear {
  color: var(--accent);
}

.odds-bar .is-ended,
.odds-legend i.is-ended {
  background: var(--warning);
}

.odds-panel .is-ended {
  color: var(--warning);
}

.odds-bar .is-bust,
.odds-legend i.is-bust {
  background: var(--red);
}

.odds-panel .is-bust {
  color: var(--red);
}

.odds-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 16px;
  margin-top: 10px;
}

.odds-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--faint);
  font-size: 11px;
}

.odds-legend span.is-active {
  color: var(--body);
  font-weight: 600;
}

.odds-legend i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  opacity: 0.4;
}

.odds-legend span.is-active i {
  opacity: 1;
}

.end-kicker {
  margin-bottom: 4px;
  color: var(--faint);
  font-size: 12px;
}

.end-title {
  margin-bottom: 16px;
  color: var(--text);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.profile-card,
.bankroll-card,
.risk-profile {
  margin-top: 12px;
  padding: 16px;
}

.profile-card {
  border-color: rgba(67, 245, 165, 0.45);
  background: var(--accent-faint);
}

.profile-name,
.risk-profile strong {
  display: block;
  margin-top: 6px;
  color: var(--accent);
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
}

.profile-copy,
.bankroll-card p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
}

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

.summary-grid .stat-value {
  font-size: 22px;
}

.detail-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.detail-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--divider);
}

.detail-row span:first-child {
  color: var(--faint);
  font-size: 11px;
}

.detail-row strong {
  color: var(--text);
  font-size: 13px;
  text-align: right;
}

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

@keyframes eoe-fade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 680px) {
  .page-wrap {
    align-items: flex-start;
    padding: 16px 12px;
  }

  .site-header,
  .game-hero,
  main {
    padding-right: 18px;
    padding-left: 18px;
  }

  .site-header,
  .game-card {
    flex-direction: column;
    align-items: flex-start;
  }

  nav {
    justify-content: flex-start;
  }

  .window-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

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

  .prop-box {
    display: block;
    min-height: 76px;
  }

  .prop-box > div:first-child {
    padding-right: 100px;
  }

  .odds {
    position: absolute;
    top: 15px;
    right: 18px;
    text-align: right;
  }

  .stat-grid,
  .summary-grid,
  .ladder-options {
    grid-template-columns: 1fr;
  }

  .ladder-rules,
  .ladder-readouts,
  .ladder-end-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ladder-step-head,
  .odds-panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .decision-row,
  .next-row,
  .summary-actions {
    flex-direction: column;
  }

  .choice-button,
  .secondary-button,
  .button {
    width: 100%;
  }

  .meter-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .meter-value {
    text-align: left;
  }
}

/* Claude Design handoff: homepage composition and utility components */
.home-page .page-wrap {
  min-height: 100vh;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 24px clamp(20px, 5vw, 64px);
}

.home-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 40px;
  width: 100%;
  max-width: 1240px;
  margin: 0;
}

.home-main {
  display: flex;
  min-width: 0;
  flex: 1.5 1 440px;
  flex-direction: column;
  padding: 0;
}

.home-rail {
  display: flex;
  min-width: 280px;
  flex: 1 1 300px;
  flex-direction: column;
  align-self: stretch;
  padding: 0;
  position: sticky;
  top: 52px;
}

.home-hero {
  padding: 0;
  margin-bottom: 16px;
}

.home-identity {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 14px;
}

.home-hero h1 {
  margin: 0;
  color: var(--text);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
}

.home-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.home-intro {
  max-width: 60ch;
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.home-games .section-label {
  margin-bottom: 13px;
}

.home-game-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.home-game-shell,
.home-game,
.inline-game-window {
  min-width: 0;
}

.home-game,
.inline-game-window,
.pitch-widget,
.look-card {
  border-color: rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  background: #0a0b0d;
  box-shadow: none;
}

.home-page .window-chrome {
  min-height: 0;
  padding: 11px 15px;
}

.home-page .window-title {
  max-width: none;
  margin-left: 7px;
  font-size: 11px;
}

.collapsed-game-body {
  align-items: center;
  gap: 20px;
  padding: 18px 20px;
}

.game-card-copy {
  min-width: 200px;
  flex: 1;
}

.game-card-copy h2 {
  margin: 0 0 6px;
  font-size: 18px;
  letter-spacing: -0.01em;
  text-transform: none;
}

.game-card-copy p {
  margin: 0 0 16px;
  font-size: 12.5px;
  line-height: 1.6;
}

.home-primary {
  min-width: 0;
  min-height: 0;
  padding: 15px 30px;
  border: 0;
  border-radius: 11px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.home-primary span {
  font-size: 13px;
}

.game-preview {
  flex: none;
  width: 230px;
  min-width: 230px;
  padding: 12px 14px;
  border-radius: 10px;
}

.preview-line {
  min-height: 0;
  margin-top: 0;
}

.preview-line > div {
  margin-bottom: 10px;
}

.edge-preview .preview-line strong {
  top: 15px;
  right: 14px;
  font-size: 23px;
}

.preview-line span {
  font-size: 11px;
}

.preview-stats {
  gap: 6px;
  margin-top: 0;
  margin-bottom: 10px;
}

.preview-stats > div {
  padding: 6px 7px;
}

.preview-stats strong {
  font-size: 12px;
}

.preview-chips {
  gap: 5px;
  margin-top: 0;
}

.preview-chips span {
  padding: 5px 0;
  font-size: 9px;
}

.ladder-preview-head {
  margin-top: 0;
  margin-bottom: 10px;
}

.ladder-preview-head strong {
  font-size: 15px;
}

.mini-ladder {
  height: 40px;
  margin: 0 0 11px;
}

.expanded-toolbar {
  min-height: 0;
  margin-bottom: 9px;
  font-size: 11px;
}

.expanded-toolbar .secondary-button {
  min-height: 30px;
  padding: 7px 13px;
}

.inline-game-hero {
  padding: 24px 30px 4px;
}

.inline-edge-root,
.inline-ladder-root {
  padding: 20px 30px 26px;
}

.rail-section {
  margin-bottom: 16px;
}

.profile-links {
  gap: 8px;
}

.profile-links a {
  min-height: 0;
  padding: 10px 13px;
  border-radius: 8px;
}

.look-section {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.look-card {
  min-width: 0;
  flex: 1;
  padding: 13px 14px;
}

.look-card h2 {
  margin: 0 0 9px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.look-card div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.look-card span {
  color: var(--body);
  font-size: 11px;
  line-height: 1.25;
}

.pitch-widget {
  min-height: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.home-page .pitch-widget-chrome {
  min-height: 0;
  padding: 11px 15px;
}

.pitch-widget-chrome .window-title {
  margin-left: 7px;
}

.pitch-widget-body {
  gap: 9px;
  padding: 15px 16px;
}

.pitch-field {
  min-height: 0;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 12px;
}

.pitch-message {
  min-height: 72px;
  margin: 0;
  resize: none;
}

.pitch-dropzone {
  min-height: 88px;
  padding: 20px 16px;
  border: 1.5px dashed rgba(67, 245, 165, 0.4);
  border-radius: 10px;
  background: rgba(67, 245, 165, 0.04);
  transition: all 0.15s;
}

.pitch-dropzone.is-dragging,
.pitch-dropzone:hover,
.pitch-dropzone:focus-within {
  border-color: rgba(67, 245, 165, 0.8);
  background: rgba(67, 245, 165, 0.12);
}

.pitch-upload-icon {
  margin-bottom: 5px;
  font-size: 20px;
}

.pitch-dropzone strong {
  font-size: 12px;
}

.pitch-dropzone span:last-of-type {
  margin-top: 3px;
  font-size: 10px;
}

.pitch-file-chip {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
  margin-bottom: 3px;
  padding: 10px 12px;
  border: 1px solid rgba(67, 245, 165, 0.4);
  border-radius: 10px;
  background: rgba(67, 245, 165, 0.06);
}

.pitch-file-badge {
  display: flex;
  width: 28px;
  height: 34px;
  flex: none;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: var(--odds);
  color: var(--bg);
  font-size: 8px;
  font-weight: 700;
}

.pitch-file-meta {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 2px;
}

.pitch-file-meta strong {
  overflow: hidden;
  color: var(--text);
  font-size: 11.5px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pitch-file-meta small {
  color: var(--faint);
  font-size: 10px;
}

.pitch-file-remove {
  flex: none;
  padding: 0;
  border: 0;
  background: none;
  color: var(--faint);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
}

.pitch-submit {
  min-height: 0;
  padding: 16px;
  border: 0;
  border-radius: 11px;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-transform: none;
}

.pitch-submit span {
  font-size: 13px;
}

.pitch-submit:disabled {
  cursor: wait;
  opacity: 0.7;
}

.pitch-error {
  margin-top: 0;
  color: var(--red);
  font-size: 11px;
  text-align: center;
}

.pitch-sent {
  display: flex;
  min-height: 230px;
  flex: 1;
  align-items: center;
  justify-content: center;
  padding: 24px;
  flex-direction: column;
  text-align: center;
}

.pitch-sent-icon {
  display: flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  border: 1px solid rgba(67, 245, 165, 0.6);
  border-radius: 50%;
  background: rgba(67, 245, 165, 0.1);
  color: var(--accent);
  font-size: 20px;
}

.pitch-sent h2 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 18px;
  text-transform: none;
}

.pitch-sent p {
  max-width: 36ch;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.pitch-reset {
  margin-top: 16px;
  padding: 8px 15px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--neutral);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pitch-reset:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--body);
}

.home-footer {
  width: auto;
  margin: auto 0 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.doodle-pad {
  width: 100%;
  max-width: 1240px;
  margin-top: 18px;
}

.doodle-toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 11px;
  flex-wrap: wrap;
}

.doodle-toolbar-row .section-label {
  margin: 0;
}

.doodle-toolbar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: #0a0b0d;
}

.doodle-color {
  width: 19px;
  height: 19px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.doodle-color[data-doodle-color="#43f5a5"] { background: #43f5a5; }
.doodle-color[data-doodle-color="#ff5b8a"] { background: #ff5b8a; }
.doodle-color[data-doodle-color="#edf0f2"] { background: #edf0f2; }
.doodle-color.is-active { outline-color: var(--text); }
.doodle-color[data-doodle-color="#edf0f2"].is-active { outline-color: var(--faint); }

.doodle-separator {
  width: 1px;
  height: 18px;
  margin: 0 2px;
  background: rgba(255, 255, 255, 0.12);
}

.doodle-tool,
.doodle-clear {
  height: 22px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--neutral);
  cursor: pointer;
  font: inherit;
  line-height: 1;
}

.doodle-tool {
  width: 26px;
  font-size: 12px;
}

.doodle-tool.is-active {
  border-color: rgba(67, 245, 165, 0.55);
  background: rgba(67, 245, 165, 0.14);
  color: var(--accent);
}

.doodle-clear {
  padding: 0 9px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.doodle-canvas {
  display: block;
  width: 100%;
  height: clamp(150px, 22vh, 240px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  background: #0a0b0d;
  cursor: crosshair;
  touch-action: none;
}

@media (max-width: 680px) {
  .home-page .page-wrap {
    padding: 24px 20px;
  }

  .home-layout {
    flex-direction: column;
    gap: 0;
  }

  .home-main,
  .home-rail {
    width: 100%;
    min-width: 0;
    flex: none;
  }

  .home-rail {
    position: static;
  }

  .home-identity {
    gap: 9px;
  }

  .collapsed-game-body {
    align-items: flex-start;
  }

  .game-card-copy {
    min-width: 0;
    flex-basis: 100%;
  }

  .game-preview {
    width: 230px;
    min-width: 0;
  }

  .home-primary {
    width: auto;
  }

  .home-footer {
    margin-top: 24px;
  }

  .doodle-toolbar-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .doodle-toolbar {
    align-self: flex-start;
  }
}

/* Final cascade for the handoff layout (kept after the legacy homepage rules). */
.home-page .page-wrap { min-height:100vh; align-items:flex-start; justify-content:flex-start; padding:24px clamp(20px,5vw,64px); }
.home-layout { display:flex; flex-wrap:wrap; align-items:stretch; gap:40px; width:100%; max-width:1240px; margin:0; }
.home-main { flex:1.5 1 440px; min-width:0; }
.home-rail { flex:1 1 300px; min-width:280px; position:sticky; top:52px; align-self:stretch; padding:0; }
.home-hero { padding:0; margin-bottom:16px; }
.home-identity { display:flex; align-items:baseline; flex-wrap:wrap; gap:14px; }
.home-hero h1 { margin:0; }
.home-status { display:inline-flex; align-items:center; gap:7px; margin:0; font-size:13px; }
.home-intro { margin:11px 0 0; font-size:13px; line-height:1.6; }
.home-games .section-label { margin-bottom:13px; }
.home-game-stack { display:flex; flex-direction:column; gap:14px; }
.home-page .window-chrome { padding:11px 15px; }
.home-page .window-title { max-width:none; margin-left:7px; font-size:11px; }
.collapsed-game-body { align-items:center; gap:20px; padding:18px 20px; }
.game-card-copy { min-width:200px; flex:1; }
.game-card-copy h2 { margin:0 0 6px; font-size:18px; letter-spacing:-.01em; text-transform:none; }
.game-card-copy p { margin:0 0 16px; font-size:12.5px; line-height:1.6; }
.home-primary { min-width:0; min-height:0; padding:15px 30px; border:0; border-radius:11px; font-size:15px; font-weight:700; letter-spacing:.02em; text-transform:none; }
.game-preview { flex:none; width:230px; min-width:230px; padding:12px 14px; border-radius:10px; }
.preview-line { min-height:0; margin-top:0; }
.preview-line > div { margin-bottom:10px; }
.edge-preview .preview-line strong { top:15px; right:14px; font-size:23px; }
.preview-stats { gap:6px; margin:0 0 10px; }
.preview-stats > div { padding:6px 7px; }
.preview-stats strong { font-size:12px; }
.preview-chips { gap:5px; margin:0; }
.preview-chips span { padding:5px 0; font-size:9px; }
.ladder-preview-head { margin:0 0 10px; }
.ladder-preview-head strong { font-size:15px; }
.mini-ladder { height:40px; margin:0 0 11px; }
.expanded-toolbar { min-height:0; margin-bottom:9px; }
.inline-game-hero { padding:24px 30px 4px; }
.inline-edge-root, .inline-ladder-root { padding:20px 30px 26px; }
.profile-links { gap:8px; }
.profile-links a { min-height:0; padding:10px 13px; border-radius:8px; }
.look-section { display:flex; gap:10px; margin-bottom:12px; }
.look-card { min-width:0; flex:1; padding:13px 14px; }
.look-card h2 { margin:0 0 9px; font-size:10px; font-weight:500; letter-spacing:.12em; text-transform:uppercase; }
.look-card div { display:flex; flex-direction:column; gap:6px; }
.look-card span { font-size:11px; line-height:1.25; }
.look-card-description { margin:0 0 10px; color:var(--muted); font-size:11px; line-height:1.4; }
.pitch-widget { flex:1 1 auto; min-height:0; border-radius:12px; }
.pitch-widget-body { gap:9px; padding:15px 16px; }
.pitch-field { min-height:0; padding:10px 12px; border-radius:8px; font-size:12px; }
.pitch-message { min-height:72px; resize:none; }
.pitch-dropzone { min-height:88px; padding:20px 16px; flex-direction:column; border:1.5px dashed rgba(67,245,165,.4); border-radius:10px; background:rgba(67,245,165,.04); }
.pitch-dropzone.is-dragging { border-color:rgba(67,245,165,.8); background:rgba(67,245,165,.12); }
.pitch-upload-icon { margin-bottom:5px; font-size:20px; }
.pitch-dropzone strong { font-size:12px; }
.pitch-dropzone span:last-of-type { margin-top:3px; font-size:10px; }
.pitch-submit { min-height:0; padding:16px; border-radius:11px; font-size:15px; letter-spacing:.02em; text-transform:none; }
.pitch-error { margin-top:0; font-size:11px; }
.home-footer { width:auto; margin:auto 0 0; padding-top:24px; border-top:1px solid rgba(255,255,255,.07); }
.doodle-pad { width:100%; max-width:1240px; margin-top:18px; }
.doodle-toolbar-row { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:11px; flex-wrap:wrap; }
.doodle-toolbar-row .section-label { margin:0; }

@media (max-width:680px) {
  .home-page .page-wrap { padding:24px 20px; }
  .home-layout { flex-direction:column; gap:0; }
  .home-main, .home-rail { width:100%; min-width:0; flex:none; }
  .home-rail { position:static; }
  .home-identity { gap:9px; }
  .collapsed-game-body { align-items:flex-start; }
  .game-card-copy { min-width:0; flex-basis:100%; }
  .game-preview { width:230px; min-width:0; }
  .home-primary { width:auto; }
  .home-footer { margin-top:24px; }
}

/* Final homepage handoff */
.home-page {
  background: var(--bg);
}

.home-page .page-wrap {
  min-height: 100svh;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  padding: 40px 24px 64px;
}

.home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: stretch;
  column-gap: 48px;
  width: min(100%, 1240px);
  max-width: none;
  margin-inline: auto;
}

.home-main {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 0;
}

.home-rail {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding-top: 0;
}

.home-hero {
  padding: 3px 0 22px;
}

.home-hero h1 {
  margin-bottom: 10px;
  color: var(--text);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
}

.home-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12.5px;
}

.home-intro {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
}

.section-label {
  margin: 0 0 14px;
  color: var(--faint);
  font-size: 11px;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.home-games {
  min-width: 0;
  margin: 0;
}

.home-games .section-label {
  margin-bottom: 14px;
}

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

.home-game-shell {
  min-width: 0;
}

.home-game,
.inline-game-window {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
}

.home-page .window-chrome {
  min-height: 36px;
  padding: 10px 15px;
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.home-page .window-dot {
  width: 10px;
  height: 10px;
  flex-basis: 10px;
}

.home-page .window-title {
  max-width: 190px;
  margin-left: 4px;
  font-size: 10px;
  line-height: 1.2;
}

.collapsed-game-body {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
}

.game-card-copy {
  min-width: 250px;
  flex: 1 1 280px;
}

.game-card-copy h2 {
  margin-bottom: 10px;
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-transform: none;
}

.game-card-copy p {
  max-width: 530px;
  margin-bottom: 15px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
}

.home-primary {
  min-width: 180px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid rgba(67, 245, 165, 0.65);
  border-radius: 9px;
  background: var(--accent);
  color: var(--bg);
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.home-primary:hover {
  background: #7dffc0;
  border-color: #7dffc0;
  color: var(--bg);
  transform: translateY(-1px);
}

.game-preview {
  position: relative;
  display: flex;
  width: 260px;
  min-width: 240px;
  min-height: 0;
  flex-direction: column;
  padding: 18px 18px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 11px;
  background: var(--bg);
}

.preview-label,
.game-preview small,
.ladder-preview-head small {
  display: block;
  color: var(--faint);
  font-size: 8px;
  letter-spacing: 0.14em;
  line-height: 1.35;
  text-transform: uppercase;
}

.preview-line {
  display: block;
  min-height: 31px;
  margin-top: 18px;
}

.preview-line span {
  display: block;
  max-width: 164px;
  margin-top: 2px;
  color: var(--body);
  font-size: 11.5px;
  line-height: 1.2;
}

.preview-line strong {
  color: var(--odds);
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}

.edge-preview .preview-line strong {
  position: absolute;
  top: 11px;
  right: 14px;
}

.preview-stats,
.preview-chips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.preview-stats > div {
  min-width: 0;
  padding: 8px 9px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
}

.preview-stats strong {
  display: block;
  margin-top: 2px;
  color: var(--text);
  font-size: 14px;
  line-height: 1;
}

.preview-stats > div:last-child strong {
  color: var(--accent);
}

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

.preview-chips span {
  padding: 7px 4px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 5px;
  color: var(--faint);
  font-size: 10px;
  text-align: center;
}

.preview-chips span.is-active {
  border-color: rgba(67, 245, 165, 0.65);
  color: var(--accent);
}

.ladder-preview-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
}

.ladder-preview-head strong {
  display: block;
  margin-top: 2px;
  color: var(--text);
  font-size: 16px;
  line-height: 1;
}

.ladder-preview-head strong:last-child,
.ladder-preview-head div:last-child strong {
  color: var(--accent);
}

.ladder-preview-head em {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 400;
}

.mini-ladder {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 68px;
  margin-top: auto;
}

.mini-ladder i {
  display: block;
  height: 30%;
  flex: 1;
  border-radius: 2px 2px 0 0;
  background: var(--accent);
}

.mini-ladder i:nth-child(2) { height: 44%; }
.mini-ladder i:nth-child(3) { height: 58%; }
.mini-ladder i:nth-child(4) { height: 72%; opacity: 0.55; }
.mini-ladder i:nth-child(5) { height: 86%; background: #34373d; }
.mini-ladder i:nth-child(6) { height: 100%; background: #34373d; }

.game-expanded {
  min-width: 0;
}

.expanded-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  color: var(--faint);
  font-size: 11px;
  letter-spacing: 0.16em;
  line-height: 1.3;
  text-transform: uppercase;
}

.expanded-toolbar > span {
  max-width: 300px;
}

.expanded-toolbar .secondary-button {
  min-width: 101px;
  min-height: 30px;
  padding: 5px 13px;
  border-radius: 8px;
  font-size: 10px;
  letter-spacing: 0.12em;
}

.inline-game-window {
  min-width: 0;
}

.inline-chrome {
  display: flex;
  align-items: center;
  gap: 7px;
}

.chrome-palette {
  display: flex;
  gap: 7px;
  margin-left: auto;
}

.chrome-palette i {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--swatch);
  box-shadow: 0 0 7px var(--swatch);
}

.inline-game-hero {
  padding: 26px 30px 5px;
}

.inline-game-hero h2 {
  margin-bottom: 8px;
  color: var(--text);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.05;
  text-transform: none;
}

.inline-game-hero .game-subtitle {
  margin-bottom: 0;
}

.inline-game-hero .eyebrow {
  margin-bottom: 9px;
}

.inline-edge-root,
.inline-ladder-root {
  padding: 22px 30px 28px;
}

.inline-game-window .prop-box {
  margin-top: 10px;
}

.game-page .game-panel,
.home-page .game-panel,
.ladder-panel {
  font-family: var(--font);
}

.game-page:not(.bankroll-risk-ladder-page) .prop-box .player {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.game-page:not(.bankroll-risk-ladder-page) .prop-box .prop-text {
  font-size: 13px;
  line-height: 1.55;
}

.game-page:not(.bankroll-risk-ladder-page) .choice-button {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.rail-section {
  margin-bottom: 16px;
}

.profile-links {
  display: grid;
  gap: 7px;
}

.profile-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  color: var(--body);
  font-size: 12.5px;
  transition: all 0.15s ease;
}

.profile-links a span {
  color: var(--faint);
  font-size: 12px;
}

.profile-links a:hover {
  border-color: rgba(67, 245, 165, 0.55);
  background: rgba(67, 245, 165, 0.04);
  color: var(--accent);
}

.pitch-widget {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface);
}

.home-page .pitch-widget-chrome {
  min-height: 46px;
  padding: 11px 15px;
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.pitch-widget-chrome .window-title {
  max-width: none;
  margin-left: 8px;
  color: var(--faint);
  font-size: 11px;
}

.pitch-widget-body {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
}

.pitch-widget-body > .pitch-field,
.pitch-widget-body > label:not(.pitch-dropzone),
.pitch-submit {
  flex: 0 0 auto;
}

.pitch-field {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 11px 13px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  outline: none;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 12.5px;
  line-height: 1.4;
  transition: border-color 0.14s ease, box-shadow 0.14s ease;
}

.pitch-field::placeholder {
  color: var(--muted);
  opacity: 1;
}

.pitch-field:focus {
  border-color: rgba(67, 245, 165, 0.7);
  box-shadow: 0 0 0 3px rgba(67, 245, 165, 0.08);
}

.pitch-message {
  min-height: 80px;
  resize: vertical;
}

.pitch-dropzone {
  display: flex;
  min-height: 88px;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  padding: 18px;
  border: 2px dashed rgba(67, 245, 165, 0.48);
  border-radius: 12px;
  background: rgba(67, 245, 165, 0.035);
  color: var(--muted);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.14s ease, background 0.14s ease;
}

.pitch-dropzone:hover,
.pitch-dropzone:focus-within {
  border-color: var(--accent);
  background: rgba(67, 245, 165, 0.07);
}

.pitch-dropzone strong,
.pitch-dropzone span {
  display: block;
}

.pitch-upload-icon {
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
}

.pitch-dropzone strong {
  color: var(--body);
  font-size: 13px;
  font-weight: 500;
}

.pitch-dropzone span:last-of-type {
  margin-top: 6px;
  color: var(--faint);
  font-size: 10.5px;
}

.pitch-submit {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(67, 245, 165, 0.65);
  border-radius: 11px;
  background: var(--accent);
  color: var(--bg);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.pitch-submit:hover {
  border-color: #7dffc0;
  background: #7dffc0;
  transform: translateY(-1px);
}

.pitch-submit:focus-visible,
.pitch-dropzone:focus-within {
  outline: 2px solid rgba(67, 245, 165, 0.7);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}


.home-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: min(100%, 1240px);
  margin: 18px auto 0;
  padding-top: 0;
  border-top: 0;
  color: var(--faint);
  font-size: 11px;
  letter-spacing: 0.03em;
}

.footer-caret {
  display: inline-block;
  width: 8px;
  height: 13px;
  margin-left: 4px;
  vertical-align: -2px;
  background: var(--faint);
  animation: rrh-blink 1.1s step-end infinite;
}

@keyframes rrh-fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

@keyframes rrh-blink {
  0%, 48% { opacity: 1; }
  49%, 100% { opacity: 0; }
}

@media (max-width: 680px) {
  .home-page .page-wrap {
    align-items: stretch;
    justify-content: flex-start;
    padding: 12px;
  }

  .home-layout {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    max-width: none;
    margin-left: 0;
  }

  .home-rail {
    width: 100%;
    min-width: 0;
    padding-top: 0;
  }

  .home-main {
    min-height: 0;
  }

  .home-footer {
    width: 100%;
    margin: 20px 0 0;
  }

  .home-primary {
    min-width: 0;
  }

  .pitch-widget-body {
    padding: 16px;
  }
}

/* End-of-file handoff overrides */
.home-page .page-wrap { min-height:100vh; align-items:flex-start; justify-content:flex-start; padding:24px clamp(20px,5vw,64px); }
.home-layout { display:flex; flex-wrap:wrap; align-items:stretch; gap:40px; width:100%; max-width:1240px; margin:0; }
.home-main { flex:1.5 1 440px; min-width:0; }
.home-rail { flex:1 1 300px; min-width:280px; position:sticky; top:52px; align-self:stretch; padding:0; }
.home-hero { padding:0; margin-bottom:16px; }
.home-identity { display:flex; align-items:baseline; flex-wrap:wrap; gap:14px; }
.home-hero h1 { margin:0; }
.home-status { display:inline-flex; align-items:center; gap:7px; margin:0; font-size:13px; }
.home-intro { margin:11px 0 0; font-size:13px; line-height:1.6; }
.home-games .section-label { margin-bottom:13px; }
.home-game-stack { display:flex; flex-direction:column; gap:14px; }
.home-page .window-chrome { padding:11px 15px; }
.home-page .window-title { max-width:none; margin-left:7px; font-size:11px; }
.collapsed-game-body { align-items:center; gap:20px; padding:18px 20px; }
.game-card-copy { min-width:200px; flex:1; }
.game-card-copy h2 { margin:0 0 6px; font-size:18px; letter-spacing:-.01em; text-transform:none; }
.game-card-copy p { margin:0 0 16px; font-size:12.5px; line-height:1.6; }
.home-primary { min-width:0; min-height:0; padding:15px 30px; border:0; border-radius:11px; font-size:15px; font-weight:700; letter-spacing:.02em; text-transform:none; }
.game-preview { flex:none; width:230px; min-width:230px; padding:12px 14px; border-radius:10px; }
.preview-line { min-height:0; margin-top:0; }
.preview-line > div { margin-bottom:10px; }
.edge-preview .preview-line strong { top:15px; right:14px; font-size:23px; }
.preview-stats { gap:6px; margin:0 0 10px; }
.preview-stats > div { padding:6px 7px; }
.preview-stats strong { font-size:12px; }
.preview-chips { gap:5px; margin:0; }
.preview-chips span { padding:5px 0; font-size:9px; }
.ladder-preview-head { margin:0 0 10px; }
.ladder-preview-head strong { font-size:15px; }
.mini-ladder { height:40px; margin:0 0 11px; }
.expanded-toolbar { min-height:0; margin-bottom:9px; }
.inline-game-hero { padding:24px 30px 4px; }
.inline-edge-root, .inline-ladder-root { padding:20px 30px 26px; }
.profile-links { gap:8px; }
.profile-links a { min-height:0; padding:10px 13px; border-radius:8px; }
.look-section { display:flex; gap:10px; margin-bottom:12px; }
.look-card { min-width:0; flex:1; padding:13px 14px; }
.look-card h2 { margin:0 0 9px; font-size:10px; font-weight:500; letter-spacing:.12em; text-transform:uppercase; }
.look-card div { display:flex; flex-direction:column; gap:6px; }
.look-card span { font-size:11px; line-height:1.25; }
.pitch-widget { flex:1 1 auto; min-height:0; border-radius:12px; }
.pitch-widget-body { gap:9px; padding:15px 16px; }
.pitch-field { min-height:0; padding:10px 12px; border-radius:8px; font-size:12px; }
.pitch-message { min-height:72px; resize:none; }
.pitch-dropzone { min-height:88px; padding:20px 16px; flex-direction:column; border:1.5px dashed rgba(67,245,165,.4); border-radius:10px; background:rgba(67,245,165,.04); }
.pitch-dropzone.is-dragging { border-color:rgba(67,245,165,.8); background:rgba(67,245,165,.12); }
.pitch-upload-icon { margin-bottom:5px; font-size:20px; }
.pitch-dropzone strong { font-size:12px; }
.pitch-dropzone span:last-of-type { margin-top:3px; font-size:10px; }
.pitch-submit { min-height:0; padding:16px; border-radius:11px; font-size:15px; letter-spacing:.02em; text-transform:none; }
.pitch-error { margin-top:0; font-size:11px; }
.home-footer { width:auto; margin:auto 0 0; padding-top:24px; border-top:1px solid rgba(255,255,255,.07); }
.doodle-pad { width:100%; max-width:1240px; margin-top:18px; }

@media (max-width:680px) {
  .home-page .page-wrap { padding:24px 20px; }
  .home-layout { flex-direction:column; gap:0; }
  .home-main, .home-rail { width:100%; min-width:0; flex:none; }
  .home-rail { position:static; }
  .home-identity { gap:9px; }
  .collapsed-game-body { align-items:flex-start; }
  .game-card-copy { min-width:0; flex-basis:100%; }
  .game-preview { width:230px; min-width:0; }
  .home-primary { width:auto; }
  .home-footer { margin-top:24px; }
}

/* Production pitch states keep the approved widget geometry intact. */
.pitch-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.pitch-upload-progress {
  margin: -2px 0 0;
  color: rgba(237, 240, 242, .62);
  font-size: 10px;
  letter-spacing: .03em;
  text-align: center;
}

.pitch-file-remove:disabled {
  cursor: wait;
  opacity: .45;
}
