:root {
  --bg: #14161c;
  --bg-raised: #1c1f28;
  --cream: #e9e4d6;
  --cream-dim: #8a8a86;
  --orange: #c1592f;
  --orange-bright: #e2703f;
  --teal: #7fbdb5;
  --red: #a83232;
  --border: #33363f;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: 'Helvetica Neue', Arial, sans-serif;
  height: 100%;
  overflow-x: hidden;
}

#hud {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 24px 40px;
  z-index: 10;
  pointer-events: none;
}

#hud.hidden { display: none; }

.hud-label {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--cream-dim);
  font-weight: 700;
  text-transform: uppercase;
}

.cash-value {
  font-size: 40px;
  font-weight: 700;
  color: var(--orange-bright);
  font-variant-numeric: tabular-nums;
}

.month-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--cream);
  text-align: right;
}

.hud-center { text-align: center; }
.hud-right { text-align: right; }

.rep-stars {
  font-size: 20px;
  letter-spacing: 3px;
  color: var(--orange);
  margin-bottom: 2px;
}
.rep-stars .dim { color: #3a3d47; }

#sidebar {
  position: fixed;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  text-align: center;
}
#sidebar.hidden { display: none; }

.sidebar-label {
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--cream-dim);
  margin-bottom: 10px;
  font-weight: 700;
}

.sidebar-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--orange);
  background: transparent;
  color: var(--orange);
  font-size: 24px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.sidebar-icon:hover {
  background: var(--orange);
  color: var(--bg);
}

#stage {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 40px 100px;
}

.scene {
  max-width: 880px;
  width: 100%;
  text-align: center;
  animation: fadein .35s ease;
}

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

.title-word {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 72px;
  font-weight: 700;
  letter-spacing: 2px;
  border-top: 1px solid var(--orange);
  border-bottom: 1px solid var(--orange);
  padding: 14px 0;
  display: inline-block;
  margin-bottom: 28px;
}

.tagline {
  font-size: 22px;
  color: var(--cream-dim);
  margin-bottom: 40px;
  line-height: 1.5;
}

.headline {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 18px;
}

.body-text {
  font-size: 19px;
  color: var(--cream-dim);
  line-height: 1.6;
  margin-bottom: 20px;
}

.prompt {
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 30px 0 20px;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.btn-primary {
  background: var(--orange);
  color: var(--bg);
  border: none;
  padding: 14px 36px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 3px;
  transition: background .15s;
}
.btn-primary:hover { background: var(--orange-bright); }

.btn-text {
  background: none;
  border: none;
  color: var(--orange);
  font-size: 17px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 6px 4px;
}
.btn-text:hover { color: var(--orange-bright); }

.options-row {
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.option-card {
  background: var(--bg-raised);
  border: 2px solid var(--border);
  border-radius: 6px;
  padding: 22px 26px;
  width: 240px;
  cursor: pointer;
  transition: border-color .15s, transform .15s;
  text-align: left;
}
.option-card:hover { border-color: var(--orange); transform: translateY(-3px); }
.option-card.selected { border-color: var(--teal); }

.option-title {
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
  letter-spacing: .5px;
}
.option-card.selected .option-title { color: var(--teal); }

.option-price {
  font-size: 22px;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 10px;
}

.option-desc {
  font-size: 14px;
  color: var(--cream-dim);
  line-height: 1.5;
}

.simple-choices {
  display: flex;
  justify-content: center;
  gap: 44px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.choice-link {
  background: none;
  border: none;
  color: var(--orange);
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  text-align: center;
  line-height: 1.4;
}
.choice-link:hover, .choice-link.selected { color: var(--teal); }
.choice-sub {
  display: block;
  font-size: 13px;
  color: var(--cream-dim);
  font-weight: 400;
  text-transform: none;
  margin-top: 4px;
}

/* Slider scene */
.slider-numbers {
  display: flex;
  justify-content: center;
  gap: 50px;
  font-size: 26px;
  margin: 20px 0 10px;
  flex-wrap: wrap;
}
.slider-numbers .num-block { text-align: left; }
.slider-numbers .num-label {
  font-size: 12px;
  color: var(--cream-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.slider-numbers .num-value { color: var(--orange-bright); font-weight: 700; }

.slider-track-wrap {
  margin: 30px auto;
  max-width: 640px;
  position: relative;
}
.slider-endpoints {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--cream-dim);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.slider-track {
  position: relative;
  height: 2px;
  background: var(--border);
  margin: 30px 20px;
}
.slider-handle {
  position: absolute;
  top: 50%;
  width: 44px;
  height: 44px;
  margin-left: -22px;
  margin-top: -22px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(45deg);
  background: var(--cream);
  border: 2px solid var(--orange);
  cursor: grab;
  display: flex;
  align-items: center;
  justify-content: center;
}
.slider-handle:active { cursor: grabbing; }
.slider-handle-inner {
  transform: rotate(-45deg);
  font-size: 18px;
}

/* Result modal */
.result-circle {
  width: 460px;
  height: 460px;
  max-width: 90vw;
  max-height: 90vw;
  border-radius: 50%;
  background: var(--teal);
  color: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  padding: 40px;
  text-align: center;
}
.result-circle.bad { background: var(--red); color: var(--cream); }
.result-title {
  font-size: 30px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 2px solid rgba(0,0,0,.2);
  padding-bottom: 12px;
  margin-bottom: 18px;
}
.result-circle.bad .result-title { border-bottom-color: rgba(255,255,255,.3); }
.result-body {
  font-size: 18px;
  line-height: 1.5;
  margin-bottom: 10px;
}
.result-delta {
  font-size: 26px;
  font-weight: 700;
  margin: 10px 0;
}
.result-fact {
  font-size: 13px;
  font-style: italic;
  opacity: .8;
  margin-top: 14px;
  line-height: 1.4;
}
.result-circle .btn-primary {
  margin-top: 20px;
  background: var(--bg);
  color: var(--cream);
}
.result-circle .btn-primary:hover { background: #000; }

/* Month recap */
.recap-table {
  max-width: 480px;
  margin: 20px auto;
  text-align: left;
}
.recap-row {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-size: 16px;
}
.recap-row.total {
  font-weight: 700;
  font-size: 19px;
  border-bottom: none;
  border-top: 2px solid var(--cream-dim);
  margin-top: 6px;
  padding-top: 12px;
}
.recap-row .neg { color: var(--red); }
.recap-row .pos { color: var(--teal); }

/* Modal overlay (need cash) */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}
.modal-overlay.hidden { display: none; }
.modal-content {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 40px;
  max-width: 640px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}
.modal-close {
  float: right;
  background: none;
  border: none;
  color: var(--cream-dim);
  font-size: 20px;
}
.cash-option {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 18px 20px;
  margin-bottom: 14px;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s;
}
.cash-option:hover { border-color: var(--orange); }
.cash-option.disabled { opacity: .4; cursor: not-allowed; }
.cash-option-title { font-weight: 700; color: var(--orange); margin-bottom: 6px; }
.cash-option-desc { font-size: 14px; color: var(--cream-dim); line-height: 1.5; }
.cash-option-status { font-size: 13px; color: var(--teal); margin-top: 6px; }

#siteFooter {
  position: fixed;
  bottom: 20px;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 5;
}
.wordmark {
  font-family: Georgia, serif;
  font-size: 20px;
  letter-spacing: 2px;
  color: var(--cream-dim);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 4px 14px;
}

.log-list {
  text-align: left;
  max-width: 560px;
  margin: 24px auto;
  font-size: 14px;
  color: var(--cream-dim);
  line-height: 1.8;
  max-height: 260px;
  overflow-y: auto;
}
.log-list .log-cash { color: var(--orange-bright); font-weight: 700; }

@media (max-width: 700px) {
  .cash-value { font-size: 28px; }
  .title-word { font-size: 44px; }
  .headline { font-size: 26px; }
  #hud { padding: 16px 18px; }
  #sidebar { left: 10px; }
  .result-circle { width: 92vw; height: 92vw; padding: 24px; }
}
