.game {
  --accent: #82e8ff;
  --page: #0b1b28;
  --surface: #101f2b;
  --ink: #f5faff;
  --muted: #b9ccd8;
  --line: #2b4657;
  background: var(--page);
  color: var(--ink);
}

.game-hero {
  background: radial-gradient(ellipse at 78% 4%, #1f4e65, transparent 66%), var(--page);
}
.game-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: center;
  padding-block: clamp(3rem, 7vw, 6.75rem);
}
.game-hero h1 {
  margin: .8rem 0 1.2rem;
  font-size: clamp(3.35rem, 6.6vw, 6.25rem);
  letter-spacing: -.075em;
  line-height: .91;
}
.game-hero h1 span { color: var(--accent); }
.game-hero-copy > p:not(.eyebrow) { max-width: 27rem; color: var(--muted); line-height: 1.6; font-size: 1.09rem; margin-bottom: 1.7rem; }
.game-hero-copy strong { color: var(--ink); }
.game-key-art { margin: 0; }
.game-key-art img {
  width: 100%;
  height: auto;
  border: 1px solid #72acc4;
  border-radius: .55rem;
  box-shadow: 0 20px 50px #040e1888;
}
.game-key-art figcaption { margin-top: .6rem; color: var(--muted); font-size: .76rem; text-align: end; }

.pitch-section {
  border-top: 1px solid var(--line);
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}
.pitch-section h2 {
  margin: 0 0 1.25rem;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -.055em;
}
.pitch-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.pitch-card {
  --card-padding: clamp(1.2rem, 3vw, 2rem);
  padding: var(--card-padding);
  border: 1px solid var(--line);
  border-radius: .5rem;
  background: var(--surface);
}
.pitch-card h3 { margin: 0 0 .8rem; font-size: clamp(1.3rem, 2.4vw, 1.75rem); }
.pitch-card p { margin: 0; color: var(--muted); line-height: 1.65; }
.pitch-card p + p { margin-top: .85rem; }
.pitch-card strong, .chapter strong { color: var(--ink); }
.mode-card { padding: 0; overflow: hidden; }
.mode-card-copy { padding: var(--card-padding); }
.mode-art { position: relative; margin: 0; }
.mode-art img { display: block; width: 100%; height: auto; }
.mode-art figcaption {
  position: absolute;
  right: .65rem;
  bottom: .65rem;
  padding: .3rem .55rem;
  border-radius: .2rem;
  background: #09151ee8;
  color: var(--ink);
  font-size: .75rem;
}

.round {
  padding-block: clamp(3rem, 7vw, 6rem);
  border-top: 1px solid var(--line);
  background: #09151e;
}
.round-header { margin-bottom: clamp(1.8rem, 4vw, 3.5rem); }
.round-header h2 { max-width: 19ch; }
.round h2, .hospital-compare h2, .demo h2, .game-updates h2 {
  margin: .6rem 0 .9rem;
  font-size: clamp(2.35rem, 5.5vw, 5rem);
  line-height: 1;
  letter-spacing: -.065em;
}
.round-header > p:last-child, .chapter p, .hospital-compare p, .demo-copy p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.55;
}
.round-header > p:last-child { max-width: 43rem; }
.round-grid { display: grid; gap: 2rem; }
.stage-frames {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: .8rem;
}
.stage-frame {
  display: block;
  width: 100%;
  height: auto;
  border-radius: .5rem;
  background: var(--surface);
}
.chapter + .chapter { margin-top: 2.5rem; }
.chapter { scroll-margin-block-start: .6rem; }
.chapter h3 {
  max-width: 18ch;
  margin: .55rem 0 0;
  font-size: clamp(1.85rem, 3.6vw, 3.1rem);
  letter-spacing: -.05em;
  line-height: 1.05;
}
.chapter p { max-width: 31rem; margin-top: .85rem; }
.chapter .chapter-step {
  color: var(--accent);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
@media (min-height: 600px) and (prefers-reduced-motion: no-preference) {
  .story-enabled {
    grid-template-areas: "stage" "chapters";
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .story-enabled .chapters { grid-area: chapters; }
  .story-enabled .story-stage {
    grid-area: stage;
    align-self: start;
    position: sticky;
    top: 0;
    z-index: 2;
    padding-block: .6rem;
    background: #09151e;
  }
  .story-enabled .stage-frames {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    width: min(100%, 67svh);
    margin-inline: auto;
    isolation: isolate;
    overflow: hidden;
    border-radius: .5rem;
    background: var(--surface);
    box-shadow: 0 12px 24px #02091055;
  }
  .story-enabled .stage-frame { grid-area: 1 / 1; opacity: 0; transition: opacity .3s ease-out; }
  .story-enabled .stage-frame.is-active { opacity: 1; z-index: 1; }
  .story-enabled .chapter {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: min(62svh, 34rem);
    padding-block: 2rem;
    margin: 0;
    scroll-margin-block-start: 42svh;
  }
  .story-enabled .chapter + .chapter { border-top: 1px solid var(--line); }
}

@media (min-width: 851px) and (min-height: 600px) and (prefers-reduced-motion: no-preference) {
  .story-enabled {
    grid-template-areas: "stage chapters";
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 5rem);
  }
  .story-enabled .story-stage {
    top: 20svh;
    padding: 0;
    background: transparent;
  }
  .story-enabled .stage-frames { width: 100%; }
  .story-enabled .chapter {
    scroll-margin-block-start: max(.6rem, calc((100svh - min(62svh, 34rem)) / 2 - 1rem));
  }
}

.hospital-compare {
  padding-block: clamp(2.5rem, 7vw, 5rem);
  border-top: 1px solid var(--line);
}
.hospital-compare h2 { margin-top: 0; }
.hospital-compare p { margin: 0 0 1.4rem; }
.comparison-panel {
  padding: clamp(.8rem, 2vw, 1.1rem);
  border: 1px solid var(--line);
  border-radius: .55rem;
  background: var(--surface);
}
.comparison-stage {
  --reveal: 0%;
  --thumb-width: clamp(3.75rem, 6.4vw, 4.65rem);
  position: relative;
  isolation: isolate;
}
.comparison-stage:focus-within { outline: 3px solid var(--accent); outline-offset: 4px; }
.comparison-images {
  position: relative;
  overflow: hidden;
  border-radius: .25rem;
  background: #fafafa;
}
.comparison-images img { width: 100%; height: auto; }
.comparison-clean {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--reveal)) 0 0);
}
.comparison-range {
  position: absolute;
  z-index: 1;
  top: 0;
  left: calc(var(--thumb-width) / -2);
  width: calc(100% + var(--thumb-width));
  height: 100%;
  margin: 0;
  appearance: none;
  opacity: 0;
  cursor: ew-resize;
  touch-action: pan-y;
}
.comparison-range::-webkit-slider-runnable-track { height: 100%; }
.comparison-range::-webkit-slider-thumb { appearance: none; width: var(--thumb-width); height: 100%; }
.comparison-range::-moz-range-track { height: 100%; }
.comparison-range::-moz-range-thumb { border: 0; width: var(--thumb-width); height: 100%; }
.comparison-squeegee {
  position: absolute;
  inset-block: 0;
  left: var(--reveal);
  width: .16rem;
  transform: translateX(-50%);
  background: #c1f1ff;
  box-shadow: 0 0 .3rem #05131e;
  pointer-events: none;
}
.comparison-squeegee::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: clamp(1rem, 2.1vw, 1.55rem);
  height: min(80%, clamp(4.5rem, 66%, 17rem));
  transform: translate(-50%, -50%);
  border: 1px solid #102332;
  border-radius: .24rem;
  background: linear-gradient(90deg, #08151d 38%, #e5f7ff 38% 62%, #3995ad 62%);
  box-shadow: 0 0 .35rem #05131e80;
}
.comparison-squeegee::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  width: clamp(1.75rem, 3.25vw, 2.15rem);
  height: clamp(1.4rem, 2.7vw, 2.05rem);
  transform: translateY(-50%);
  border: 1px solid #102332;
  border-radius: 0 .6rem .6rem 0;
  background: linear-gradient(90deg, #7397a6 32%, #e6a745 32% 91%, #bb7425 91%);
  box-shadow: .1rem .15rem .35rem #05131e80;
}
.comparison-labels {
  display: flex;
  justify-content: space-between;
  margin-top: .65rem;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 700;
}

.demo {
  border-block: 1px solid var(--line);
  background: radial-gradient(ellipse at 75% 15%, #152f40, transparent 72%), #0a1721;
}
.demo-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr);
  gap: clamp(1.5rem, 6vw, 5rem);
  align-items: center;
  padding-block: clamp(2.5rem, 7vw, 5rem);
}
.demo-tool {
  min-width: 0;
  padding: clamp(.65rem, 2vw, 1.1rem);
  border: 1px solid var(--line);
  border-radius: .55rem;
  background: var(--surface);
  box-shadow: 0 12px 28px #02091066;
}
.cleaning-controls, .cleaning-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .4rem;
}
.cleaning-controls { justify-content: space-between; margin-bottom: .7rem; }
.cleaning-controls button {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: 2.75rem;
  padding: .35rem .65rem;
  border: 1px solid #557687;
  border-radius: .3rem;
  background: #152c3a;
  color: var(--ink);
  font: inherit;
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
}
.cleaning-controls button:hover { border-color: var(--accent); }
.cleaning-controls button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: var(--page); }
.window-art {
  position: relative;
  overflow: hidden;
  border-radius: .25rem;
  background: #c39c77;
  user-select: none;
}
.window-art img { width: 100%; height: auto; }
.cleaning-pane {
  position: absolute;
  /* The inner edge of the glass in window.jpg. */
  inset: 11.23% 14.26% 17.58% 14.32%;
  touch-action: none;
  cursor: crosshair;
  overflow: hidden;
}
.cleaning-pane:focus-visible { outline-offset: 2px; }
.cleaning-pane canvas { display: block; width: 100%; height: 100%; pointer-events: none; }
.glass-sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  visibility: hidden;
}
.cleaning-pane.is-spotless .glass-sparkles { visibility: visible; }
.glass-sparkles span {
  position: absolute;
  width: clamp(.9rem, 3vw, 2.3rem);
  aspect-ratio: 1;
  opacity: 0;
  filter: drop-shadow(0 0 5px #94e9ff) drop-shadow(0 0 2px #fff);
}
.glass-sparkles span::before {
  content: "";
  display: block;
  height: 100%;
  background: #f7fcff;
  clip-path: polygon(50% 0, 61% 37%, 100% 50%, 61% 63%, 50% 100%, 39% 63%, 0 50%, 39% 37%);
}
.glass-sparkles span:nth-child(1) { top: 13%; left: 17%; }
.glass-sparkles span:nth-child(2) { top: 42%; left: 36%; --delay: .16s; }
.glass-sparkles span:nth-child(3) { top: 19%; left: 69%; --delay: .29s; }
.glass-sparkles span:nth-child(4) { top: 64%; left: 81%; --delay: .42s; }
.cleaning-pane.is-spotless .glass-sparkles span {
  animation: glass-glint 1.15s ease-out var(--delay, 0s) both;
}
@keyframes glass-glint {
  0% { opacity: 0; transform: scale(.2) rotate(-14deg); }
  34% { opacity: 1; transform: scale(1.25); }
  68% { opacity: .2; transform: scale(.55); }
  100% { opacity: .68; transform: scale(.55); }
}
@media (prefers-reduced-motion: reduce) {
  .cleaning-pane.is-spotless .glass-sparkles span { animation: none; opacity: .68; transform: scale(.55); }
}
.tool-shape {
  position: relative;
  display: inline-block;
  width: 1.25rem;
  height: 1rem;
  flex: none;
}
.tool-shape::before, .tool-shape::after { content: ""; position: absolute; }
.tool-shape::before {
  inset: 26% 0 auto;
  height: 41%;
  z-index: 1;
  border-radius: .35em;
  background: linear-gradient(#eefcff, #8ed5e0 75%, #5babbe);
  box-shadow: 0 0 0 1px #193642;
}
.tool-shape::after {
  width: 14%;
  min-width: 3px;
  inset: 62% auto 1% 43%;
  border-radius: 0 0 .2em .2em;
  background: #17516b;
  box-shadow: 0 0 0 1px #193642;
}
[data-tool="squeegee"] > .tool-shape::before {
  height: 27%;
  top: 34%;
  border-radius: .12em;
  background: linear-gradient(#ecf5f9 0 62%, #182a33 62%);
}
[data-tool="squeegee"] > .tool-shape::after { top: 56%; background: #ebad55; }
.tool-marker {
  position: absolute;
  width: 26%;
  height: clamp(1.05rem, 6vw, 3.2rem);
  transform: translate(-50%, -50%);
  pointer-events: none;
  filter: drop-shadow(0 3px 4px #092c3b72);
}
.tool-marker[hidden] { display: none; }
.cleaning-progress {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
  margin-top: .75rem;
}
.cleaning-progress label { font-size: .8rem; font-weight: 700; }
.cleaning-progress span { float: right; }
.cleaning-progress progress { display: block; width: 100%; height: .55rem; margin-top: .3rem; accent-color: var(--accent); }
.cleaning-status { margin: .75rem 0 0; font-size: .86rem; font-weight: 700; line-height: 1.45; }
.cleaning-keys { margin: .25rem 0 0; color: var(--muted); font-size: .75rem; line-height: 1.45; }

.updates-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  padding-block: clamp(2.3rem, 5vw, 4.2rem);
}
.game-updates h2 { margin-top: 0; font-size: clamp(2rem, 4vw, 3.4rem); }
.game-updates p { margin: 0; line-height: 1.55; color: var(--muted); }

@media (max-width: 760px) {
  .game-hero-inner, .demo-inner, .pitch-columns { grid-template-columns: 1fr; }
  .game-hero h1 { max-width: 10ch; }
}
