:root {
  --ink: #17323b;
  --lake: #36aeca;
  --deep: #0d6175;
  --cream: #fff7df;
  --paper: #fffdf4;
  --lemon: #ffd447;
  --tomato: #ef5b48;
  --leaf: #74b66b;
  --line: 3px solid var(--ink);
  font-family: Inter, Avenir, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 16%, rgba(255, 212, 71, .25), transparent 22rem),
    linear-gradient(135deg, #e9fbf6 0%, #fff7df 54%, #f6fcff 100%);
  font-weight: 800;
}

button, a { font: inherit; }

.rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: 118px;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: center;
  background: var(--ink);
  color: var(--paper);
  border-right: 5px solid var(--lemon);
  z-index: 5;
}

.mark {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  background: var(--paper);
  border: var(--line);
  border-radius: 50%;
}

.mark img { width: 44px; height: 44px; }

.rail nav {
  display: grid;
  gap: 10px;
  width: 100%;
}

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

.rail nav a {
  min-height: 38px;
  display: grid;
  place-items: center;
  padding: 6px 4px;
  border: 2px solid rgba(255,255,255,.28);
  border-radius: 999px;
  font-size: 12px;
  text-align: center;
}

.rail nav a.active,
.rail nav a:hover {
  color: var(--ink);
  background: var(--lemon);
  border-color: var(--lemon);
}

.lang {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
}

.lang button {
  width: 54px;
  height: 36px;
  border: 2px solid var(--paper);
  background: transparent;
  color: var(--paper);
  cursor: pointer;
}

.lang button.active {
  background: var(--paper);
  color: var(--ink);
}

.cast-stage {
  min-height: 100vh;
  margin-left: 118px;
  padding: 34px clamp(20px, 4vw, 58px);
  display: grid;
  grid-template-columns: minmax(230px, .72fr) minmax(440px, 1.35fr) minmax(210px, .58fr);
  gap: 28px;
  align-items: center;
}

.game-copy,
.postcard,
.lake-card,
.tap-pad,
.score-strip span,
.content-page article {
  background: rgba(255, 253, 244, .88);
  border: var(--line);
  box-shadow: 10px 10px 0 rgba(23, 50, 59, .12);
}

.game-copy {
  padding: 28px;
  transform: rotate(-1.5deg);
}

.kicker {
  display: inline-block;
  margin: 0 0 16px;
  padding: 8px 12px;
  background: var(--tomato);
  color: white;
  border: var(--line);
  text-transform: uppercase;
  font-size: 13px;
}

h1 {
  margin: 0;
  font-size: clamp(48px, 7vw, 110px);
  line-height: .86;
  letter-spacing: 0;
}

.game-copy p:not(.kicker),
.page-hero p:not(.kicker) {
  max-width: 760px;
  color: #52676c;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.45;
}

.sun-button,
.tap-pad button {
  border: var(--line);
  background: var(--lemon);
  color: var(--ink);
  min-height: 54px;
  padding: 0 22px;
  cursor: pointer;
  box-shadow: 6px 6px 0 var(--ink);
}

.lake-wrap {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.score-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.score-strip span {
  min-height: 72px;
  padding: 12px;
  display: grid;
  align-content: center;
}

.score-strip b {
  color: #63777c;
  font-size: 11px;
  text-transform: uppercase;
}

.score-strip strong {
  font-size: 32px;
}

.lake-card {
  position: relative;
  overflow: hidden;
  border-radius: 50%;
  aspect-ratio: 1 / .82;
  background: var(--lake);
}

canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.lake-message {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  max-width: 78%;
  padding: 12px 18px;
  background: var(--paper);
  border: var(--line);
  text-align: center;
  box-shadow: 6px 6px 0 var(--ink);
}

.tap-pad {
  padding: 16px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
}

.tap-pad p {
  margin: 0;
  color: #52676c;
  line-height: 1.35;
}

.postcard {
  padding: 24px;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transform: rotate(1.3deg);
}

.postcard img {
  width: min(100%, 180px);
}

.postcard h2,
.content-page h2 {
  margin: 14px 0 8px;
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1;
}

.postcard p,
.content-page p {
  color: #52676c;
  line-height: 1.48;
}

.content-page {
  margin-left: 118px;
  padding: 56px clamp(22px, 6vw, 88px);
}

.page-hero {
  min-height: 310px;
  display: grid;
  align-content: center;
  border-bottom: var(--line);
  margin-bottom: 34px;
}

.page-hero.narrow {
  min-height: 250px;
}

.story-river {
  display: grid;
  grid-template-columns: 1.2fr .9fr 1.05fr;
  gap: 22px;
  align-items: start;
}

.story-river article,
.steps article,
.text-columns article,
.contact-board article {
  padding: 24px;
}

.story-river img {
  width: 94px;
  height: 94px;
  object-fit: contain;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.steps span {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: var(--line);
  background: var(--lemon);
  font-size: 28px;
}

.contact-board {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 20px;
}

.text-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 1050px) {
  .cast-stage {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .postcard,
  .game-copy {
    transform: none;
  }

  .story-river,
  .steps,
  .text-columns,
  .contact-board {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .rail {
    position: static;
    display: grid;
    grid-template-columns: 54px 1fr;
    width: 100%;
    max-width: 100svw;
    min-height: auto;
    padding: 12px;
    border-right: 0;
    border-bottom: 5px solid var(--lemon);
    align-items: center;
  }

  .mark {
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
  }

  .rail nav {
    grid-column: 1 / -1;
    grid-row: 3;
    width: min(100%, 354px);
    flex-basis: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    min-width: 0;
  }

  .rail nav a {
    min-width: 0;
  }

  .lang {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: start;
    margin: 0;
    grid-template-columns: repeat(2, 42px);
    align-self: center;
  }

  .lang button {
    width: 42px;
  }

  .cast-stage,
  .content-page {
    margin-left: 0;
    width: 100%;
    max-width: 100svw;
  }

  .cast-stage {
    padding: 18px;
    display: block;
  }

  .cast-stage > * {
    width: min(100%, 354px);
    max-width: 354px;
    min-width: 0;
    margin-bottom: 18px;
  }

  h1 {
    font-size: 42px;
    line-height: .96;
  }

  .game-copy p:not(.kicker),
  .page-hero p:not(.kicker),
  .tap-pad p,
  .postcard p,
  .content-page p {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .score-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .lake-card {
    border-radius: 28px;
    aspect-ratio: 1 / .92;
  }

  .tap-pad {
    grid-template-columns: 1fr;
  }

  .content-page {
    padding: 28px 18px;
  }
}

@media (max-width: 420px) {
  .cast-stage > * {
    width: min(100%, 354px);
    max-width: 354px;
  }

  .game-copy,
  .postcard,
  .tap-pad,
  .score-strip span {
    box-shadow: 6px 6px 0 rgba(23, 50, 59, .12);
  }

  .game-copy,
  .postcard {
    padding: 22px;
  }

  .score-strip {
    grid-template-columns: 1fr 1fr;
  }

  h1 {
    font-size: 42px;
    line-height: .96;
  }
}
