:root {
  --paper: #efe0c4;
  --paper-light: #fff5dc;
  --paper-warm: #f6e8c8;
  --ink: #2a2118;
  --muted: #695b49;
  --faint: rgba(42, 33, 24, 0.14);
  --line: rgba(42, 33, 24, 0.78);
  --night: #1f241f;
  --green: #263d31;
  --moss: #5e744b;
  --heather: #7b3a49;
  --amber: #bd711e;
  --gold: #dda83d;
  --copper: #a8582d;
  --sherry: #813f34;
  --cream: #fff9ea;
  --shadow: rgba(57, 35, 16, 0.2);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 50% -12%, rgba(255, 246, 219, 0.88) 0 20%, transparent 39%),
    radial-gradient(circle at 16% 16%, rgba(189, 113, 30, 0.22) 0 10%, transparent 22%),
    radial-gradient(circle at 88% 12%, rgba(38, 61, 49, 0.22) 0 11%, transparent 24%),
    linear-gradient(90deg, rgba(31, 36, 31, 0.18), transparent 16%, transparent 84%, rgba(31, 36, 31, 0.18)),
    linear-gradient(115deg, rgba(255, 255, 255, 0.25), transparent 42%),
    repeating-linear-gradient(0deg, rgba(42, 33, 24, 0.04) 0 1px, transparent 1px 8px),
    var(--paper);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.42;
  background-image:
    radial-gradient(rgba(42, 33, 24, 0.14) 0.7px, transparent 0.7px),
    radial-gradient(rgba(255, 255, 255, 0.58) 0.8px, transparent 0.8px);
  background-position: 0 0, 8px 9px;
  background-size: 16px 16px;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(38, 61, 49, 0.38);
  outline-offset: 3px;
}

.game-shell {
  width: min(1540px, calc(100vw - 36px));
  margin: 0 auto;
  padding: 24px 0 34px;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(520px, 1fr) 318px;
  gap: 26px;
  align-items: end;
  padding: 6px 4px 20px;
}

.kicker,
.step-kicker,
.timeline-title,
.ledger-title,
.guide-label {
  margin: 0;
  color: var(--heather);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: 0;
}

h1 {
  margin-top: 4px;
  font-size: clamp(2.8rem, 5.2vw, 5.4rem);
  line-height: 0.88;
}

.subtitle {
  max-width: 650px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.progress-panel {
  padding: 13px 15px 15px;
  border: 2.5px solid var(--ink);
  border-radius: 6px;
  background: rgba(255, 249, 234, 0.72);
  box-shadow: 5px 6px 0 var(--shadow);
  transform: rotate(0.35deg);
}

.progress-panel span {
  display: block;
  margin-bottom: 9px;
  font-size: 0.9rem;
  font-weight: 900;
}

.progress-track {
  overflow: hidden;
  height: 16px;
  border: 2px solid var(--ink);
  border-radius: 99px;
  background: #e2d1ae;
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  margin: 0;
  background: linear-gradient(90deg, var(--green), var(--moss), var(--gold), var(--amber));
  transition: width 300ms ease;
}

.game-board {
  display: grid;
  grid-template-columns: 260px minmax(680px, 1fr) 330px;
  gap: 18px;
  align-items: stretch;
}

.timeline,
.ledger,
.stage-paper {
  border: 2.5px solid var(--ink);
  border-radius: 7px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.36), transparent 42%),
    repeating-linear-gradient(-4deg, rgba(42, 33, 24, 0.03) 0 1px, transparent 1px 12px),
    var(--paper-light);
  box-shadow: 6px 7px 0 var(--shadow);
}

.timeline,
.ledger {
  min-height: 720px;
  padding: 18px 15px;
}

.timeline {
  transform: rotate(-0.22deg);
}

.ledger {
  transform: rotate(0.16deg);
}

.timeline-title,
.ledger-title {
  padding-bottom: 13px;
  border-bottom: 2px dashed rgba(42, 33, 24, 0.38);
}

.timeline-step {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 11px;
  width: 100%;
  min-height: 64px;
  margin-top: 12px;
  padding: 9px 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.timeline-step:disabled {
  cursor: default;
  opacity: 0.58;
}

.timeline-step:not(:disabled):hover,
.timeline-step.is-active {
  background: rgba(189, 113, 30, 0.12);
}

.timeline-step.is-done .timeline-index {
  color: var(--cream);
  background: var(--green);
}

.timeline-index {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--cream);
  font-size: 0.72rem;
  font-weight: 900;
}

.timeline-name {
  display: block;
  font-size: 0.93rem;
  font-weight: 900;
  line-height: 1.12;
}

.timeline-note {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.25;
}

.stage-paper {
  min-height: 720px;
  padding: 24px;
}

.stage-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 2px dashed rgba(42, 33, 24, 0.34);
}

.step-number {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 62px;
  height: 62px;
  border: 2.5px solid var(--ink);
  border-radius: 50%;
  color: var(--cream);
  background: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.28rem;
  font-weight: 800;
}

#stepTitle {
  margin-top: 2px;
  font-size: clamp(1.9rem, 3vw, 3.3rem);
  line-height: 0.98;
}

.guide-card {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(260px, 0.9fr);
  gap: 16px;
  align-items: stretch;
  margin-top: 18px;
}

.guide-main,
.guide-checklist {
  border: 2px solid rgba(42, 33, 24, 0.76);
  border-radius: 7px;
  background: rgba(255, 249, 234, 0.68);
  box-shadow: 3px 3px 0 rgba(42, 33, 24, 0.1);
}

.guide-main {
  padding: 15px 16px;
}

.guide-main h3 {
  margin-top: 3px;
  font-size: 1.45rem;
}

.guide-main p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.42;
}

.guide-checklist {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.guide-step {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.22;
}

.guide-step span:first-child {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 2px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: var(--paper-warm);
  font-size: 0.72rem;
}

.scene {
  position: relative;
  min-height: 390px;
  margin-top: 18px;
  overflow: hidden;
  border: 2.5px solid var(--line);
  border-radius: 7px;
  background:
    radial-gradient(circle at 52% 48%, rgba(255, 218, 129, 0.32), transparent 34%),
    linear-gradient(180deg, rgba(213, 219, 190, 0.86), rgba(238, 211, 159, 0.9) 54%, rgba(106, 74, 43, 0.45)),
    var(--paper);
  box-shadow: inset 0 0 0 8px rgba(255, 249, 234, 0.16), inset 0 -42px 70px rgba(42, 33, 24, 0.16);
}

.scene svg {
  display: block;
  width: 100%;
  height: 390px;
}

.scene::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 48% 38%, transparent 0 48%, rgba(42, 33, 24, 0.1) 78%),
    linear-gradient(180deg, rgba(255, 249, 234, 0.08), transparent 45%, rgba(42, 33, 24, 0.12));
}

.sketch-line {
  fill: none;
  stroke: var(--ink);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.thin-line {
  fill: none;
  stroke: rgba(42, 33, 24, 0.74);
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.label-text {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 700;
  fill: var(--ink);
}

.small-text {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 900;
  fill: var(--heather);
}

.steam {
  fill: none;
  stroke: rgba(255, 249, 234, 0.72);
  stroke-width: 2.2;
  stroke-linecap: round;
  animation: floatSteam 2.3s ease-in-out infinite;
  filter: drop-shadow(0 2px 2px rgba(42, 33, 24, 0.18));
}

.steam:nth-child(2n),
.bubble:nth-child(2n) {
  animation-delay: 0.35s;
}

.bubble {
  animation: bubble 1.7s ease-in-out infinite;
}

@keyframes floatSteam {
  0%,
  100% {
    transform: translateY(3px);
    opacity: 0.35;
  }
  50% {
    transform: translateY(-9px);
    opacity: 0.82;
  }
}

@keyframes bubble {
  0%,
  100% {
    transform: translateY(4px);
    opacity: 0.36;
  }
  50% {
    transform: translateY(-9px);
    opacity: 0.9;
  }
}

.controls {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.action-coach {
  position: sticky;
  top: 10px;
  z-index: 6;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 2.4px solid var(--ink);
  border-radius: 7px;
  background:
    linear-gradient(90deg, rgba(221, 168, 61, 0.28), rgba(255, 249, 234, 0.95)),
    var(--cream);
  box-shadow: 4px 4px 0 rgba(42, 33, 24, 0.16);
}

.action-coach.is-ready {
  background:
    linear-gradient(90deg, rgba(94, 116, 75, 0.2), rgba(255, 249, 234, 0.95)),
    var(--cream);
}

.coach-arrow {
  position: relative;
  width: 30px;
  height: 30px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--amber);
}

.coach-arrow::after {
  position: absolute;
  top: 8px;
  left: 10px;
  width: 9px;
  height: 9px;
  border-right: 3px solid var(--cream);
  border-bottom: 3px solid var(--cream);
  content: "";
  transform: rotate(45deg);
}

.action-coach span {
  display: block;
  color: var(--heather);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.action-coach strong {
  display: block;
  margin-top: 2px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
  line-height: 1.1;
}

.action-coach p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.32;
}

.coach-btn {
  white-space: nowrap;
}

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

.choice-card {
  min-height: 128px;
  padding: 14px 13px;
  border: 2.2px solid var(--ink);
  border-radius: 7px;
  background: rgba(255, 249, 234, 0.72);
  box-shadow: 3px 3px 0 rgba(42, 33, 24, 0.13);
  text-align: left;
  cursor: pointer;
}

.choice-card:nth-child(2n) {
  transform: rotate(0.28deg);
}

.choice-card:nth-child(3n) {
  transform: rotate(-0.25deg);
}

.choice-card:hover,
.choice-card.is-selected {
  background: rgba(221, 168, 61, 0.22);
  box-shadow: 4px 4px 0 rgba(42, 33, 24, 0.19);
}

.choice-card.is-selected {
  border-color: var(--heather);
}

.choice-card strong {
  display: block;
  font-size: 1rem;
  line-height: 1.12;
}

.choice-card span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.36;
}

.choice-card em {
  display: inline-block;
  margin-top: 10px;
  color: var(--heather);
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.choice-grid.is-hotspot .choice-card,
.tool-btn.is-hotspot,
.range-row.is-hotspot {
  border-color: var(--amber);
  background:
    linear-gradient(135deg, rgba(221, 168, 61, 0.25), rgba(255, 249, 234, 0.86)),
    var(--cream);
  box-shadow: 0 0 0 4px rgba(221, 168, 61, 0.25), 5px 5px 0 rgba(42, 33, 24, 0.17);
  animation: pulseTarget 1.25s ease-in-out infinite;
}

.choice-grid.is-urgent .choice-card,
.tool-btn.is-urgent,
.range-row.is-urgent {
  animation: pulseTarget 0.9s ease-in-out infinite, nudgeShake 0.34s ease-in-out 2;
}

.range-row {
  display: grid;
  grid-template-columns: 1fr minmax(250px, 42%);
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 2px dashed rgba(42, 33, 24, 0.42);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.2);
}

.range-row label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.range-row b {
  color: var(--ink);
  font-size: 1.06rem;
  text-transform: none;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--amber);
}

.mini-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.primary-btn,
.ghost-btn,
.tool-btn {
  min-height: 43px;
  padding: 10px 16px;
  border: 2.2px solid var(--ink);
  border-radius: 6px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 3px 3px 0 rgba(42, 33, 24, 0.16);
}

.primary-btn {
  color: var(--cream);
  background: var(--green);
}

.primary-btn.needs-input {
  color: var(--ink);
  background: var(--gold);
}

.ghost-btn,
.tool-btn {
  background: var(--cream);
}

.tool-btn {
  color: var(--ink);
}

.primary-btn:hover:not(:disabled),
.ghost-btn:hover:not(:disabled),
.tool-btn:hover:not(:disabled) {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 rgba(42, 33, 24, 0.22);
}

.primary-btn.needs-input:hover {
  background: #e6ba54;
}

.primary-btn:disabled,
.ghost-btn:disabled,
.tool-btn:disabled {
  cursor: default;
  opacity: 0.48;
  box-shadow: none;
}

@keyframes pulseTarget {
  0%,
  100% {
    box-shadow: 0 0 0 3px rgba(221, 168, 61, 0.22), 4px 4px 0 rgba(42, 33, 24, 0.17);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(221, 168, 61, 0.34), 5px 5px 0 rgba(42, 33, 24, 0.2);
  }
}

/* Restore the original game flow; use the reference only for the cool dark art direction. */
.site-nav,
.site-footer {
  display: none;
}

.game-shell {
  width: min(1540px, calc(100vw - 36px));
  min-height: auto;
  padding: 24px 0 34px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(520px, 1fr) 318px;
  gap: 26px;
  align-items: end;
  padding: 6px 4px 20px;
}

h1 {
  max-width: none;
  margin-top: 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 5.2vw, 5.4rem);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: 0;
  text-transform: none;
}

.subtitle {
  max-width: 650px;
  margin-top: 12px;
  font-size: 1.02rem;
}

.game-board {
  display: grid;
  grid-template-columns: 260px minmax(680px, 1fr) 330px;
  gap: 18px;
  align-items: stretch;
  border: 0;
}

.timeline,
.ledger,
.stage-paper {
  min-height: 720px;
  border: 1px solid #30343a;
  border-radius: 7px;
  background: #181a1e;
  box-shadow: 6px 7px 0 rgba(0, 0, 0, 0.34);
}

.timeline,
.ledger {
  padding: 18px 15px;
}

.timeline {
  border-right: 1px solid #3b3f46;
}

.ledger {
  border-left: 1px solid #3b3f46;
}

.timeline-title,
.ledger-title {
  padding-bottom: 13px;
  border-bottom: 1px solid #353940;
}

.timeline-step {
  display: grid;
  width: 100%;
  min-height: 64px;
  margin-top: 12px;
  padding: 9px 8px;
  border-left: 2px solid transparent;
}

.stage-paper {
  padding: 24px;
  border-left: 1px solid #3b3f46;
  border-right: 1px solid #3b3f46;
  box-shadow: 6px 7px 0 rgba(0, 0, 0, 0.34);
}

.stage-heading {
  padding-bottom: 14px;
  border-bottom: 1px solid #353940;
}

#stepTitle {
  font-size: clamp(1.9rem, 3vw, 3.3rem);
  line-height: 0.98;
}

.guide-card {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(260px, 0.9fr);
  gap: 16px;
  align-items: stretch;
  margin-top: 18px;
}

.guide-main,
.guide-checklist {
  border: 1px solid #353940;
  border-radius: 7px;
  background: #202227;
}

.guide-checklist {
  border-left: 1px solid #353940;
}

.scene {
  min-height: 390px;
  margin-top: 18px;
  border-color: #4b515a;
  border-radius: 7px;
}

.photo-scene {
  min-height: 390px;
  border-radius: 7px;
}

.photo-title {
  top: 48px;
}

.photo-hud,
.scene-cta {
  bottom: 18px;
}

.controls {
  margin-top: 18px;
}

.action-coach {
  position: sticky;
  top: 10px;
  z-index: 6;
}

.choice-card {
  min-height: 128px;
}

.stage-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.feedback {
  margin-top: 16px;
}

.flavour-summary {
  display: grid;
  gap: 11px;
  margin-top: 14px;
}

.current-palette {
  margin-top: 16px;
}

@media (max-width: 1220px) {
  .game-shell {
    width: min(100% - 24px, 1180px);
  }

  .game-board {
    grid-template-columns: 230px 1fr;
  }

  .ledger {
    grid-column: 1 / -1;
    min-height: auto;
    border-top: 1px solid #353940;
    border-left: 0;
  }

  .flavour-summary {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 900px) {
  .game-shell {
    width: min(100% - 20px, 760px);
  }

  .topbar,
  .game-board,
  .guide-card,
  .choice-grid,
  .range-row,
  .result-wrap,
  .taste-grid,
  .recommend-grid {
    grid-template-columns: 1fr;
  }

  .timeline,
  .ledger,
  .stage-paper {
    min-height: auto;
  }

  .timeline,
  .ledger {
    border: 1px solid #30343a;
  }

  .stage-paper {
    padding: 18px;
  }

  .flavour-summary {
    grid-template-columns: 1fr 1fr;
  }
}

@keyframes nudgeShake {
  0%,
  100% {
    transform: translateX(0);
  }
  33% {
    transform: translateX(-4px);
  }
  66% {
    transform: translateX(4px);
  }
}

.cut-bar {
  position: relative;
  height: 76px;
  overflow: hidden;
  border: 2.2px solid var(--ink);
  border-radius: 7px;
  background: linear-gradient(90deg, #c28a62 0 34%, #e4b248 34% 69%, #806b51 69% 100%);
}

.cut-labels {
  display: grid;
  grid-template-columns: 34% 35% 31%;
  height: 100%;
  color: rgba(42, 33, 24, 0.86);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  font-weight: 800;
  text-align: center;
}

.cut-labels span {
  display: grid;
  place-items: center;
}

.cut-marker {
  position: absolute;
  top: -7px;
  bottom: -7px;
  left: 0;
  width: 5px;
  border: 2px solid var(--ink);
  border-radius: 99px;
  background: var(--cream);
  box-shadow: 0 0 0 4px rgba(255, 249, 234, 0.58);
  transform: translateX(-50%);
}

.feedback {
  min-height: 78px;
  margin-top: 16px;
  padding: 14px 15px;
  border-left: 6px solid var(--amber);
  background:
    linear-gradient(90deg, rgba(221, 168, 61, 0.2), transparent),
    rgba(255, 249, 234, 0.62);
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.45;
}

.feedback strong {
  display: block;
  margin-bottom: 3px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.24rem;
}

.stage-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.flavour-summary {
  display: grid;
  gap: 11px;
  margin-top: 14px;
}

.flavour-row {
  display: grid;
  grid-template-columns: 96px 1fr 28px;
  gap: 8px;
  align-items: center;
}

.flavour-row span:first-child {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.flavour-track {
  overflow: hidden;
  height: 10px;
  border: 1.5px solid rgba(42, 33, 24, 0.58);
  border-radius: 99px;
  background: #e8dac0;
}

.flavour-track b {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--moss), var(--gold), var(--heather));
}

.flavour-row strong {
  font-size: 0.76rem;
  text-align: right;
}

.current-palette {
  margin-top: 16px;
  padding: 12px;
  border: 2px dashed rgba(42, 33, 24, 0.34);
  border-radius: 7px;
  background: rgba(255, 249, 234, 0.54);
}

.current-palette h3 {
  font-size: 1.15rem;
}

.current-palette p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.38;
}

.note-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.note-chip {
  max-width: 100%;
  padding: 6px 9px;
  border: 1.8px solid rgba(42, 33, 24, 0.7);
  border-radius: 99px;
  background: rgba(221, 168, 61, 0.16);
  font-size: 0.75rem;
  font-weight: 900;
}

.result-wrap {
  display: grid;
  grid-template-columns: minmax(210px, 0.46fr) minmax(460px, 1.54fr);
  gap: 18px;
  align-items: start;
  margin-top: 18px;
}

.bottle-card,
.result-copy,
.taste-card,
.recommend-card {
  border: 2.2px solid var(--ink);
  border-radius: 7px;
  background: rgba(255, 249, 234, 0.72);
  box-shadow: 4px 4px 0 rgba(42, 33, 24, 0.14);
}

.bottle-card {
  display: grid;
  place-items: center;
  min-height: 510px;
  padding: 18px;
}

.bottle-card svg {
  width: min(210px, 90%);
  height: auto;
}

.result-copy {
  padding: 22px;
}

.result-copy h3 {
  margin-bottom: 8px;
  font-size: clamp(2rem, 3vw, 3.35rem);
  line-height: 0.95;
}

.result-style {
  margin: 0 0 14px;
  color: var(--heather);
  font-size: 1rem;
  font-weight: 900;
}

.result-copy p {
  color: var(--muted);
  line-height: 1.48;
}

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

.taste-card {
  min-height: 95px;
  padding: 11px;
}

.taste-card span,
.recommend-card span {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.taste-card b,
.recommend-card b {
  display: block;
  margin-top: 5px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.02rem;
}

.recommend-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 12px;
}

.recommend-card {
  min-height: 96px;
  padding: 12px;
}

.recommend-card p {
  margin: 7px 0 0;
  font-size: 0.84rem;
}

.final-actions {
  justify-content: flex-start;
  margin-top: 16px;
}

@media (max-width: 1220px) {
  .game-board {
    grid-template-columns: 230px 1fr;
  }

  .ledger {
    grid-column: 1 / -1;
    min-height: auto;
  }
}

@media (max-width: 900px) {
  .game-shell {
    width: min(100% - 24px, 760px);
    padding-top: 18px;
  }

  .topbar,
  .game-board,
  .guide-card,
  .choice-grid,
  .range-row,
  .result-wrap,
  .taste-grid,
  .recommend-grid {
    grid-template-columns: 1fr;
  }

  .timeline,
  .ledger,
  .stage-paper {
    min-height: auto;
  }

  .stage-paper {
    padding: 18px;
  }
}

/* Final palette pass: cool charcoal only, with no warm yellow UI accents. */
:root {
  --paper: #151619;
  --paper-light: #18191c;
  --paper-warm: #222429;
  --ink: #e5e7ea;
  --muted: #8c929a;
  --faint: rgba(229, 231, 234, 0.1);
  --line: rgba(210, 216, 223, 0.24);
  --night: #0f1012;
  --green: #25292e;
  --moss: #69717a;
  --heather: #a0767d;
  --amber: #aeb5bd;
  --gold: #d3d7dc;
  --copper: #6f7781;
  --sherry: #744e55;
  --cream: #f0f1f2;
  --shadow: rgba(0, 0, 0, 0.55);
}

body {
  color: #e5e7ea;
  background: #101113;
}

body::before {
  opacity: 0.11;
  background-image:
    linear-gradient(90deg, rgba(220, 225, 231, 0.03) 1px, transparent 1px),
    linear-gradient(rgba(220, 225, 231, 0.02) 1px, transparent 1px);
}

.game-shell {
  background: #17181b;
  border-color: #303238;
}

.site-nav,
.game-board {
  border-color: #2e3035;
}

.brand-seal {
  border-color: #aeb5bd;
  color: #d3d7dc;
}

.brand-mark b,
.brand-mark strong,
.site-links,
.nav-start {
  color: #cdd1d6;
}

.site-links a:hover,
.nav-start:hover,
.site-footer span:nth-child(2) {
  color: #ffffff;
}

.kicker,
.step-kicker,
.timeline-title,
.ledger-title,
.guide-label,
.photo-eyebrow,
.result-style {
  color: #aeb5bd;
}

h1,
h2,
h3,
h4,
#stepTitle,
.photo-title strong,
.result-copy h3 {
  color: #f0f1f2;
}

.subtitle,
.timeline-note,
.guide-main p,
.guide-step,
.guide-step b,
.photo-title small,
.action-coach p,
.choice-card span,
.result-copy p,
.recommend-card p,
.current-palette p {
  color: #868c94;
}

.progress-panel,
.guide-main,
.guide-checklist,
.action-coach,
.range-row,
.feedback,
.current-palette,
.taste-card,
.recommend-card,
.result-copy {
  border-color: #35383e;
  background: #1d1f23;
}

.progress-panel span,
.hud-label,
.hud-caption,
.flavour-row span:first-child,
.flavour-row strong,
.taste-card span,
.recommend-card span {
  color: #8b9199;
}

.progress-track,
.flavour-track,
.hud-rule {
  background: #3d4148;
}

.progress-track span,
.flavour-track b,
.hud-rule span {
  background: #b8bec5;
}

.timeline,
.ledger,
.stage-paper {
  background: #17181b;
}

.timeline-step:not(:disabled):hover,
.timeline-step.is-active {
  border-left-color: #c3c8ce;
  background: rgba(190, 196, 204, 0.08);
}

.timeline-step.is-done .timeline-index {
  color: #17181b;
  border-color: #c3c8ce;
  background: #c3c8ce;
}

.step-number {
  border-color: #aeb5bd;
  color: #d8dce0;
}

.photo-scene {
  background-image: linear-gradient(90deg, rgba(7, 9, 12, 0.94) 0%, rgba(9, 11, 14, 0.46) 50%, rgba(7, 9, 12, 0.87) 100%), var(--scene-photo);
  filter: saturate(0.58) brightness(0.67) contrast(1.12);
}

.photo-scene::before {
  background: linear-gradient(180deg, rgba(8, 10, 13, 0.76), transparent 39%, rgba(7, 9, 11, 0.95));
}

.photo-hud {
  border-color: #555b63;
  background: rgba(15, 17, 20, 0.9);
}

.scene-cta,
.primary-btn,
.primary-btn.needs-input {
  border-color: #c1c6cc;
  color: #141518;
  background: #c1c6cc;
}

.scene-cta:hover,
.primary-btn:hover:not(:disabled) {
  background: #f0f1f2;
}

.choice-grid {
  background: #35383e;
}

.choice-card {
  color: #e4e7ea;
  background: #202226;
}

.choice-card:hover,
.choice-card.is-selected {
  background: #2b2e33;
  box-shadow: inset 0 0 0 1px #c1c6cc;
}

.choice-card em,
.note-chip {
  color: #b9bfc6;
}

.primary-btn,
.ghost-btn,
.tool-btn {
  border-color: #50555c;
}

.ghost-btn,
.tool-btn {
  color: #d7dade;
}

.ghost-btn:hover:not(:disabled),
.tool-btn:hover:not(:disabled) {
  color: #111216;
  background: #c1c6cc;
}

.feedback {
  border-left-color: #a0767d;
  color: #979da5;
}

.feedback strong {
  color: #e8eaed;
}

.note-chip {
  border-color: #4a4f56;
  background: transparent;
}

.result-wrap {
  background: #35383e;
}

.bottle-card {
  background: #0e1012;
}

.bottle-photo {
  filter: saturate(0.42) brightness(0.68) contrast(1.12);
}

.bottle-product::after {
  background: linear-gradient(180deg, rgba(8, 10, 12, 0.15), rgba(8, 10, 12, 0.56));
}

.bottle-label-overlay {
  color: #22252a;
  background: rgba(216, 220, 223, 0.9);
}

.bottle-label-overlay span,
.bottle-label-overlay small {
  color: #66565b;
}

.taste-card b,
.recommend-card b {
  color: #e5e7ea;
}

.photo-result-notes span {
  border-color: #737a83;
  color: #d4d8dd;
  background: rgba(14, 16, 19, 0.84);
}

.site-footer {
  color: #6e747c;
}

.choice-grid.is-hotspot .choice-card,
.tool-btn.is-hotspot,
.range-row.is-hotspot,
.choice-grid.is-urgent .choice-card,
.tool-btn.is-urgent,
.range-row.is-urgent {
  border-color: #c1c6cc;
  color: #e7e9ec;
  background: #2a2d32;
  box-shadow: 0 0 0 3px rgba(193, 198, 204, 0.12);
}

.cut-bar {
  border-color: #50555c;
  background: linear-gradient(90deg, #545a62 0 34%, #b2b8bf 34% 69%, #3b4148 69% 100%);
}

.cut-labels {
  color: #17191c;
}

.cut-marker {
  border-color: #15171a;
  background: #f0f1f2;
  box-shadow: 0 0 0 4px rgba(240, 241, 242, 0.32);
}

@keyframes pulseTarget {
  0%,
  100% {
    box-shadow: 0 0 0 3px rgba(193, 198, 204, 0.12);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(193, 198, 204, 0.22);
  }
}

.bottle-card {
  position: relative;
  min-height: 510px;
  padding: 0;
  overflow: hidden;
  border-color: rgba(215, 170, 97, 0.55);
  background: #18251f;
  box-shadow: 0 16px 30px rgba(14, 22, 18, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.bottle-product {
  position: relative;
  min-height: 510px;
  overflow: hidden;
  aspect-ratio: 2 / 3;
}

.bottle-photo {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 510px;
  object-fit: cover;
  object-position: center;
}

.bottle-product::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(180deg, transparent 55%, rgba(11, 20, 16, 0.22));
}

.bottle-label-overlay {
  position: absolute;
  z-index: 2;
  top: 43%;
  left: 35.5%;
  display: grid;
  width: 29%;
  min-height: 27%;
  padding: 8px 5px;
  align-content: center;
  justify-items: center;
  color: #27342d;
  background: rgba(247, 240, 224, 0.9);
  box-shadow: 0 2px 7px rgba(10, 18, 14, 0.18);
  text-align: center;
}

.bottle-label-overlay span {
  color: #855044;
  font-size: clamp(0.38rem, 0.8vw, 0.58rem);
  font-weight: 900;
  letter-spacing: 0.11em;
}

.bottle-label-overlay strong {
  margin-top: 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.65rem, 1.45vw, 1.05rem);
  line-height: 1.02;
}

.bottle-label-overlay small {
  margin-top: 7px;
  color: #855044;
  font-size: clamp(0.38rem, 0.76vw, 0.54rem);
  font-weight: 900;
  letter-spacing: 0.05em;
}

.result-copy {
  background: rgba(247, 241, 228, 0.86);
}

.result-copy h3 {
  color: #203b32;
}

/* Dark bottle-site direction inspired by the supplied reference page. */
:root {
  --paper: #1b1c1f;
  --paper-light: #1b1c1f;
  --paper-warm: #242528;
  --ink: #ebe7dc;
  --muted: #929197;
  --faint: rgba(235, 231, 220, 0.12);
  --line: rgba(235, 231, 220, 0.22);
  --night: #121315;
  --green: #252629;
  --moss: #5e5e61;
  --heather: #b18b22;
  --amber: #c49b25;
  --gold: #c49b25;
  --copper: #936e1a;
  --sherry: #7b4437;
  --cream: #f1ede3;
  --shadow: rgba(0, 0, 0, 0.38);
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--ink);
  background: #141517;
}

body::before {
  opacity: 0.14;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
}

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

.game-shell {
  width: min(1280px, calc(100vw - 68px));
  min-height: 100vh;
  padding: 0 0 58px;
  border-right: 1px solid #414247;
  border-bottom: 1px solid #414247;
  border-left: 1px solid #414247;
  background: #1b1c1f;
  box-shadow: 0 0 70px rgba(0, 0, 0, 0.25);
}

.site-nav {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
  gap: 24px;
  align-items: center;
  min-height: 78px;
  padding: 0 32px;
  border-bottom: 1px solid #36373b;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
}

.brand-seal {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.brand-mark b,
.brand-mark strong {
  display: block;
  line-height: 1.05;
}

.brand-mark b {
  color: #8e8d91;
  font-size: 0.52rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.brand-mark strong {
  color: var(--cream);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
}

.site-links {
  display: flex;
  gap: 28px;
  align-items: center;
  color: #b2b0b0;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.site-links a:hover,
.nav-start:hover {
  color: var(--gold);
}

.nav-start {
  justify-self: end;
  color: var(--gold);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.nav-start span {
  margin-left: 8px;
  font-size: 1rem;
}

.topbar {
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 30px;
  align-items: end;
  padding: 52px 52px 36px;
}

.kicker,
.step-kicker,
.timeline-title,
.ledger-title,
.guide-label {
  color: var(--gold);
  font-size: 0.62rem;
  letter-spacing: 0.15em;
}

h1,
h2,
h3,
h4 {
  color: var(--cream);
}

h1 {
  max-width: 680px;
  margin-top: 10px;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(2.5rem, 5vw, 5.1rem);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.subtitle {
  max-width: 520px;
  margin-top: 16px;
  color: #8d8c91;
  font-size: 0.83rem;
  line-height: 1.55;
}

.progress-panel {
  border: 1px solid #48494e;
  border-radius: 0;
  background: #202124;
  box-shadow: none;
  transform: none;
}

.progress-panel span {
  color: #dedad0;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.progress-track {
  height: 3px;
  border: 0;
  border-radius: 0;
  background: #4a4a4c;
}

.progress-track span {
  background: var(--gold);
}

.game-board {
  grid-template-columns: 215px minmax(0, 1fr) 245px;
  gap: 0;
  border-top: 1px solid #36373b;
  border-bottom: 1px solid #36373b;
}

.timeline,
.ledger,
.stage-paper {
  min-height: 790px;
  border: 0;
  border-radius: 0;
  background: #1b1c1f;
  box-shadow: none;
  transform: none;
}

.timeline {
  padding: 28px 18px;
  border-right: 1px solid #36373b;
}

.ledger {
  padding: 28px 18px;
  border-left: 1px solid #36373b;
}

.timeline-title,
.ledger-title {
  padding-bottom: 16px;
  border-bottom: 1px solid #3b3c40;
}

.timeline-step {
  grid-template-columns: 32px 1fr;
  gap: 9px;
  min-height: 68px;
  margin-top: 9px;
  padding: 10px 7px;
  border-left: 2px solid transparent;
  border-radius: 0;
}

.timeline-step:not(:disabled):hover,
.timeline-step.is-active {
  border-left-color: var(--gold);
  background: rgba(196, 155, 37, 0.08);
}

.timeline-index {
  width: 29px;
  height: 29px;
  border: 1px solid #56575b;
  border-radius: 50%;
  color: #929197;
  background: transparent;
  font-size: 0.63rem;
}

.timeline-step.is-done .timeline-index {
  color: #1b1c1f;
  border-color: var(--gold);
  background: var(--gold);
}

.timeline-name {
  color: #d8d4cb;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

.timeline-note {
  color: #77777c;
  font-size: 0.64rem;
}

.stage-paper {
  padding: 28px 32px 36px;
}

.stage-heading {
  align-items: center;
  padding-bottom: 19px;
  border-bottom: 1px solid #36373b;
}

.step-number {
  width: 50px;
  height: 50px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  background: transparent;
  box-shadow: none;
  transform: none;
}

#stepTitle {
  color: var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1.7rem, 3vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  text-transform: uppercase;
}

.guide-card {
  gap: 0;
  margin-top: 22px;
}

.guide-main,
.guide-checklist {
  border: 1px solid #3b3c40;
  border-radius: 0;
  background: #202124;
  box-shadow: none;
}

.guide-main {
  padding: 16px 18px;
}

.guide-main h3 {
  color: var(--cream);
  font-size: 1.2rem;
  font-weight: 500;
}

.guide-main p,
.guide-step,
.guide-step b {
  color: #9b999d;
}

.guide-checklist {
  border-left: 0;
}

.guide-step span:first-child {
  border: 1px solid #67676c;
  color: #c4c1b8;
  background: transparent;
}

