:root {
  --ink: #2c241c;
  --sky: #79c8f8;
  --sky-deep: #4eace8;
  --cream: #fff6e4;
  --yellow: #ffd45a;
  --yellow-deep: #f0b429;
  --olive: #c5dd78;
  --lime: #8fce4a;
  --leaf: #6eae38;
  --lavender: #d9cff5;
  --lavender-deep: #b7a6e8;
  --purple: #6a54d6;
  --red: #ef5b4c;
  --water: #4eb6ea;
  --white: #fffcf7;
  --font-pixel: "Press Start 2P", "Courier New", monospace;
  --font-body: "Nunito", "Trebuchet MS", sans-serif;
  --edge: 4px solid var(--ink);
  --shadow: 0 6px 0 var(--ink);
  --mx: 0;
  --my: 0;
  --cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' shape-rendering='crispEdges'%3E%3Cpath fill='%232c241c' d='M1 1h2v2H1zm1 2h2v2H2zm1 2h2v2H3zm1 2h2v2H4zm1 2h2v2H5zm1 2h3v2H6zM1 3h1v8H1zm1 8h1v1H2zm1 1h1v1H3z'/%3E%3Cpath fill='%23fff6e4' d='M2 2h1v1H2zm1 2h1v1H3zm1 2h1v1H4zm1 2h1v1H5zm1 2h1v1H6z'/%3E%3C/svg%3E") 1 1, auto;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--sky);
}

img {
  max-width: 100%;
  height: auto;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
}

h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}

button,
summary {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 3px;
}

::selection {
  background: #c9b6f0;
  color: var(--ink);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 80;
  background: var(--yellow);
  color: var(--ink);
  border: var(--edge);
  padding: 10px 12px;
  font-family: var(--font-pixel);
  font-size: 10px;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.eyebrow {
  font-family: var(--font-pixel);
  font-size: 10px;
  line-height: 1.7;
  margin-bottom: 10px;
}

.section-lead {
  font-size: clamp(18px, 2.4vw, 22px);
  font-weight: 800;
  margin: 10px auto 0;
  max-width: 34rem;
}

.band-head {
  text-align: center;
  margin-bottom: 26px;
}

h2 {
  font-family: var(--font-pixel);
  font-size: clamp(16px, 3vw, 26px);
  line-height: 1.55;
  font-weight: 400;
}

/* Buttons */

.btn,
.nav-link,
.nav-toggle {
  font-family: var(--font-pixel);
  line-height: 1.6;
  text-decoration: none;
  color: var(--ink);
  border: var(--edge);
  box-shadow: var(--shadow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: var(--cursor), pointer;
  background: var(--cream);
  transition: transform 0.08s linear, box-shadow 0.08s linear, background-color 0.08s linear;
}

.btn:hover,
.nav-link:hover,
.nav-toggle:hover {
  background: #fff;
}

.btn:active,
.nav-link:active,
.nav-toggle:active {
  transform: translateY(6px);
  box-shadow: 0 0 0 var(--ink);
}

.btn:visited,
.nav-link:visited {
  color: var(--ink);
}

.btn {
  font-size: 12px;
  min-height: 52px;
  padding: 12px 16px;
  gap: 6px;
}

.btn-buy {
  background: var(--yellow);
}

.btn-buy:hover {
  background: #ffe58a;
}

.btn-chart {
  background: var(--lavender);
}

.btn-chart:hover {
  background: #e6defb;
}

.btn-cream {
  background: var(--white);
}

.btn.is-copied {
  background: #c9ef9a;
}

.nav-link,
.nav-toggle {
  font-size: 10px;
  min-height: 44px;
  padding: 10px 12px;
  box-shadow: 0 4px 0 var(--ink);
}

.nav-link:active,
.nav-toggle:active {
  transform: translateY(4px);
}

.nav-buy {
  background: var(--yellow);
}

.nav-chart {
  background: var(--lavender);
}

.nav-x {
  background: #c7ecff;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: var(--cream);
  border-bottom: var(--edge);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
  color: var(--ink);
}

.brand img {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  object-fit: contain;
  border: 3px solid var(--ink);
  background: #efe8ff;
}

.brand-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-pixel);
  font-size: 11px;
  line-height: 1.4;
}

.brand-ticker {
  font-family: var(--font-pixel);
  font-size: 8px;
  line-height: 1.4;
  background: var(--yellow);
  border: 2px solid var(--ink);
  padding: 3px 4px;
}

.nav-wrap {
  position: static;
}

.nav-check {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-check:focus-visible + .nav-toggle {
  outline: 3px solid var(--purple);
  outline-offset: 3px;
}

.nav-toggle .label-close {
  display: none;
}

.nav-check:checked + .nav-toggle .label-open {
  display: none;
}

.nav-check:checked + .nav-toggle .label-close {
  display: inline;
}

.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 10px;
  right: 10px;
  z-index: 40;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  background: var(--cream);
  border: var(--edge);
  box-shadow: 6px 6px 0 var(--ink);
}

.nav-check:checked ~ .site-nav {
  display: flex;
}

.site-nav .nav-link {
  width: 100%;
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #6ec4f8 0%, #d7f4ff 78%);
}

.sky {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.cloud-shift,
.hill-shift {
  position: absolute;
  inset: 0;
}

.cloud-shift {
  transform: translate3d(calc(var(--mx) * -22px), calc(var(--my) * -12px), 0);
  transition: transform 0.25s linear;
}

.hill-shift {
  transform: translate3d(calc(var(--mx) * -8px), calc(var(--my) * -4px), 0);
  transition: transform 0.25s linear;
}

.hill {
  position: absolute;
  bottom: 128px;
  background: #9ed86a;
  border: 4px solid var(--ink);
  border-bottom: 0;
}

.hill-a {
  left: 6%;
  width: min(180px, 28vw);
  height: 46px;
}

.hill-b {
  left: 28%;
  width: min(84px, 16vw);
  height: 72px;
  background: #b7e48a;
}

.hill-c {
  right: 7%;
  width: min(210px, 34vw);
  height: 58px;
  background: #8ecf55;
}

.cloud {
  position: absolute;
  width: 14px;
  height: 14px;
  background: #fff;
  box-shadow:
    14px 0 #fff,
    28px 0 #fff,
    42px 0 #fff,
    56px 0 #fff,
    7px -14px #fff,
    21px -14px #fff,
    35px -14px #fff,
    49px -14px #fff,
    21px -28px #fff,
    35px -28px #fff;
  filter: drop-shadow(3px 3px 0 #2c241c);
  animation: drift 50s linear infinite;
}

.cloud.small {
  width: 10px;
  height: 10px;
  box-shadow:
    10px 0 #fff,
    20px 0 #fff,
    30px 0 #fff,
    5px -10px #fff,
    15px -10px #fff,
    25px -10px #fff,
    10px -20px #fff;
}

.cloud-a { left: 8%; top: 28px; animation-duration: 46s; }
.cloud-b { left: 36%; top: 86px; animation-duration: 62s; animation-delay: -28s; }
.cloud-c { left: 60%; top: 24px; animation-duration: 54s; animation-delay: -14s; }
.cloud-d { left: 18%; top: 120px; animation-duration: 70s; animation-delay: -46s; }

@keyframes drift {
  0% { transform: translateX(-35vw); }
  100% { transform: translateX(75vw); }
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  grid-template-areas:
    "copy mascot"
    "actions mascot"
    "ca mascot";
  column-gap: 36px;
  row-gap: 16px;
  align-items: center;
  padding: 42px 0 8px;
}

.hero-copy { grid-area: copy; min-width: 0; }
.hero-mascot { grid-area: mascot; min-width: 0; align-self: end; }
.hero-actions { grid-area: actions; min-width: 0; }
.ca-bar { grid-area: ca; }

.hero-mascot {
  transform: translate3d(calc(var(--mx) * 14px), calc(var(--my) * 8px), 0);
  transition: transform 0.25s linear;
}

.hero h1 {
  font-family: var(--font-pixel);
  font-weight: 400;
  font-size: clamp(26px, 4.4vw, 46px);
  line-height: 1.4;
  margin-bottom: 12px;
}

.ticker-badge {
  display: inline-block;
  margin-bottom: 16px;
  padding: 8px 10px;
  font-family: var(--font-pixel);
  font-size: clamp(14px, 2vw, 20px);
  line-height: 1.5;
  background: var(--yellow);
  border: var(--edge);
  box-shadow: 4px 4px 0 var(--ink);
}

.lede {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  line-height: 1.2;
}

.lede span {
  display: block;
}

.lede .rest {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 10px;
  font-size: clamp(16px, 2.2vw, 22px);
  background: var(--cream);
  border: var(--edge);
  box-shadow: 4px 4px 0 var(--ink);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.float {
  position: relative;
  width: min(100%, 540px);
  margin-inline: auto;
  animation: float 4.8s ease-in-out infinite;
}

.float img {
  display: block;
  width: 100%;
  height: auto;
}

.sigh-bubble,
.bubble {
  font-family: var(--font-pixel);
  font-size: 10px;
  line-height: 1.5;
  color: var(--ink);
  background: #fff;
  border: 3px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  padding: 6px 8px;
}

.sigh-bubble {
  position: absolute;
  top: 6%;
  left: 12%;
  animation: sigh-pop 8s ease-in-out infinite;
}

.sigh-bubble::after,
.bubble::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  background: #fff;
  border-right: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
}

.sigh-bubble::after {
  left: 18px;
  bottom: -8px;
}

@keyframes sigh-pop {
  0%, 60%, 100% { opacity: 0; transform: translateY(8px); }
  70%, 90% { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.ca-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px;
  background: var(--cream);
  border: var(--edge);
  box-shadow: var(--shadow);
}

.ca-label {
  font-family: var(--font-pixel);
  font-size: 10px;
  background: var(--lavender);
  border: 3px solid var(--ink);
  padding: 6px 7px;
}

.ca-value {
  flex: 1 1 120px;
  min-width: 0;
  padding: 4px 6px;
  font-family: ui-monospace, "Courier New", monospace;
  font-size: 16px;
  font-weight: 700;
  overflow-wrap: anywhere;
  user-select: all;
}

.ground {
  position: relative;
  z-index: 1;
}

.shore {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 28px;
  min-height: 128px;
  padding: 42px 16px 10px;
  background: linear-gradient(#c6e88a, #98d25a);
}

.flowers {
  position: absolute;
  inset: 14px 8% auto;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.flowers i {
  position: relative;
  width: 8px;
  height: 8px;
  background: #fff;
  border: 2px solid var(--ink);
}

.flowers i::before {
  content: "";
  position: absolute;
  left: 1px;
  top: -6px;
  width: 4px;
  height: 4px;
  background: var(--yellow);
  border: 2px solid var(--ink);
}

.flowers i:nth-child(odd)::before {
  background: #ffb0c4;
}

.flowers i::after {
  content: "";
  position: absolute;
  left: 1px;
  top: 8px;
  width: 2px;
  height: 8px;
  background: var(--leaf);
}

.mini-duck {
  position: relative;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: var(--cursor), pointer;
  -webkit-tap-highlight-color: rgba(106, 84, 214, 0.28);
}

.mini-duck img {
  display: block;
  width: 56px;
  height: 56px;
  object-fit: contain;
  border: 3px solid var(--ink);
  background: #efe8ff;
}

.bubble {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(6px);
  white-space: nowrap;
  z-index: 2;
}

.bubble::after {
  left: 50%;
  bottom: -8px;
  margin-left: -4px;
}

.mini-duck.is-sighing .bubble {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

@media (hover: hover) {
  .mini-duck:hover img {
    transform: translateY(-6px);
  }

  .mini-duck:active img {
    transform: translateY(2px);
  }
}

.pond {
  position: relative;
  height: 58px;
  overflow: hidden;
  background-color: var(--water);
  background-image: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.18) 0 16px,
    transparent 16px 34px
  );
  background-size: 68px 100%;
  border-top: 4px solid var(--ink);
  animation: water 3.2s linear infinite;
}

.pond span {
  position: absolute;
  top: 20px;
  height: 6px;
  width: 28px;
  background: rgba(255, 255, 255, 0.75);
  animation: ripple 2.8s ease-in-out infinite;
}

.pond span:nth-child(1) { left: 10%; }
.pond span:nth-child(2) { left: 32%; width: 44px; animation-delay: 0.5s; }
.pond span:nth-child(3) { left: 56%; animation-delay: 1s; }
.pond span:nth-child(4) { left: 76%; width: 18px; animation-delay: 0.3s; }

@keyframes water {
  from { background-position: 0 0; }
  to { background-position: 68px 0; }
}

@keyframes ripple {
  0%, 100% { transform: translateX(0); opacity: 0.35; }
  50% { transform: translateX(12px); opacity: 1; }
}

/* Banner */

.panorama {
  background: #b6e184;
  padding: 22px 0 32px;
}

.panorama-frame {
  background: var(--cream);
  border: var(--edge);
  box-shadow: 8px 8px 0 var(--ink);
}

.panorama-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.panorama-frame figcaption {
  padding: 14px 12px 16px;
  font-family: var(--font-pixel);
  font-size: clamp(9px, 2.4vw, 12px);
  line-height: 1.8;
  text-align: center;
  overflow-wrap: anywhere;
}

/* Sigh loop */

.loop {
  background: #e5f6c4;
  padding: 64px 0;
}

.frames {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.frame {
  min-width: 0;
  background: var(--cream);
  border: var(--edge);
  box-shadow: 6px 6px 0 var(--ink);
  padding: 10px 10px 14px;
}

.frame h3 {
  margin-top: 12px;
  font-family: var(--font-pixel);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.65;
}

.frame p {
  margin-top: 8px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
}

.scene {
  position: relative;
  height: 168px;
  overflow: hidden;
  background: linear-gradient(#9ad8fb 0 92px, #b5e07c 92px);
  border: 4px solid var(--ink);
}

.scene::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 46px;
  height: 3px;
  background: var(--ink);
  opacity: 0.35;
}

.sun {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 18px;
  height: 18px;
  background: var(--yellow);
  border: 3px solid var(--ink);
}

.candle {
  position: absolute;
  bottom: 49px;
  width: 12px;
  height: 24px;
  background: var(--lime);
  border: 2px solid var(--ink);
  box-sizing: border-box;
}

.candle::before {
  content: "";
  position: absolute;
  left: 3px;
  top: -7px;
  width: 2px;
  height: 6px;
  background: var(--ink);
}

.candle.flat { background: var(--yellow); }
.candle.down { background: var(--red); }
.candle.runner { background: #67c23a; height: 84px; }
.candle.ghost { opacity: 0.4; }
.candle.tall { height: 64px; }

.scene-watch .c1 { left: 46%; height: 20px; }
.scene-watch .c2 { left: 60%; height: 34px; }
.scene-watch .c3 { left: 74%; height: 16px; }
.scene-watch .c4 { left: 86%; height: 26px; }

.scene-miss .c1 { left: 42%; height: 18px; }
.scene-miss .c2 { left: 56%; height: 22px; }
.scene-miss .c3 { left: 78%; }

.scene-chase .c1 { left: 58%; height: 36px; }
.scene-chase .c2 { left: 80%; }

.duck {
  position: absolute;
  left: 8px;
  bottom: 34px;
  width: 72px;
  height: auto;
}

.scene-chase .duck {
  left: 18%;
}

.scene-sigh {
  overflow: visible;
}

.scene-duck {
  position: absolute;
  left: 50%;
  bottom: 30px;
  width: 72px;
  height: 72px;
  transform: translateX(-50%);
}

.scene-duck img {
  width: 72px;
  height: 72px;
}

.puff {
  position: absolute;
  top: 28px;
  right: 22%;
  width: 16px;
  height: 12px;
  background: #fff;
  border: 3px solid var(--ink);
  animation: puff 2.6s ease-in-out infinite;
}

.puff-b {
  width: 10px;
  height: 8px;
  top: 14px;
  right: 14%;
  animation-delay: 0.25s;
}

.puff-c {
  width: 8px;
  height: 8px;
  top: 6px;
  right: 28%;
  animation-delay: 0.45s;
}

@keyframes puff {
  0%, 100% { opacity: 0.25; transform: translateY(4px); }
  50% { opacity: 1; transform: translateY(-6px); }
}

/* About */

.about {
  background: var(--cream);
  padding: 64px 0;
}

.about-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

.portrait img {
  display: block;
  width: min(180px, 100%);
  height: auto;
  border: var(--edge);
  box-shadow: 6px 6px 0 var(--ink);
  background: #efe8ff;
}

.dialogue {
  min-width: 0;
  background: #fffdf8;
  border: var(--edge);
  box-shadow: 8px 8px 0 var(--ink);
  padding: 18px 18px 16px;
}

.dialogue-name {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 8px;
  font-family: var(--font-pixel);
  font-size: 10px;
  line-height: 1.5;
  background: var(--lavender);
  border: 3px solid var(--ink);
}

.dialogue h2 {
  margin-bottom: 14px;
}

.speech {
  position: relative;
  margin-bottom: 14px;
  padding-left: 22px;
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 800;
  line-height: 1.45;
}

.speech::before {
  content: ">";
  position: absolute;
  left: 0;
  top: 2px;
  font-family: var(--font-pixel);
  font-size: 12px;
}

.bio {
  margin-bottom: 16px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
}

.plan {
  display: inline-block;
  margin-bottom: 12px;
  padding: 12px 14px;
  font-family: var(--font-pixel);
  font-size: clamp(13px, 2vw, 18px);
  line-height: 1.7;
  background: var(--yellow);
  border: var(--edge);
  box-shadow: 4px 4px 0 var(--ink);
}

.plan span {
  display: block;
}

.plan-note {
  font-size: 17px;
  font-weight: 800;
}

.caret {
  display: inline-block;
  width: 10px;
  height: 16px;
  margin-left: 6px;
  vertical-align: -2px;
  background: var(--ink);
  animation: blink 1.05s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* Ticker moment */

.moment {
  padding: 72px 0 64px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0) 28%),
    #b9e7ff;
}

.moment-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px 22px;
  margin: 8px 0 22px;
  font-weight: 400;
}

.cartridge {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 100%;
  padding: 12px 14px 14px;
  border: var(--edge);
  box-shadow: 8px 8px 0 var(--ink);
}

.name-cart { background: #e7f7ff; }
.ticker-cart { background: #fff1b8; }

.cart-label {
  margin-bottom: 8px;
  font-family: var(--font-pixel);
  font-size: 9px;
  line-height: 1.5;
}

.name-word,
.kept-word {
  display: inline-block;
  max-width: 100%;
  font-family: var(--font-pixel);
  line-height: 1.25;
  paint-order: stroke fill;
}

.name-word { -webkit-text-stroke: 2px var(--ink); }
.kept-word { -webkit-text-stroke: 4px var(--ink); }

.name-word { font-size: clamp(22px, 4.8vw, 44px); }
.kept-word { font-size: clamp(36px, 8vw, 80px); }

.name-word span,
.kept-word span {
  display: inline-block;
}

.name-word span:nth-child(1),
.kept-word span:nth-child(1) { color: #ff5a45; }
.name-word span:nth-child(2),
.kept-word span:nth-child(2) { color: #ff8d2a; }
.name-word span:nth-child(3),
.kept-word span:nth-child(3) { color: #e6b400; }
.name-word span:nth-child(4),
.kept-word span:nth-child(4) { color: #5cbf32; }
.name-word span:nth-child(5) { color: #2fce8a; }
.name-word span:nth-child(6) { color: #7d6ad8; }
.name-word span:nth-child(7) { color: #3aa8f0; }
.name-word span:nth-child(8) { color: #ff7eb6; }

.sigh-bridge {
  display: inline-block;
  padding: 10px 12px;
  font-family: var(--font-pixel);
  font-size: 11px;
  line-height: 1.5;
  background: #fff;
  border: var(--edge);
  box-shadow: 4px 4px 0 var(--ink);
}

.moment.is-playing .leave {
  animation: leave 1.15s ease forwards;
}

.moment.is-playing .name-word span:nth-child(5) { animation-delay: 0.05s; }
.moment.is-playing .name-word span:nth-child(6) { animation-delay: 0.16s; }
.moment.is-playing .name-word span:nth-child(7) { animation-delay: 0.28s; }
.moment.is-playing .name-word span:nth-child(8) { animation-delay: 0.4s; }

.moment.is-playing .sigh-bridge {
  animation: bridge 1.5s ease forwards;
}

@keyframes leave {
  to {
    opacity: 0.28;
    transform: translateY(-20px);
  }
}

@keyframes bridge {
  0% { transform: translateY(6px); }
  45% { transform: translateY(-12px); }
  100% { transform: translateY(-4px); }
}

.sound {
  display: inline-block;
  max-width: 100%;
  margin-bottom: 14px;
  padding: 14px 16px;
  font-family: var(--font-pixel);
  font-size: clamp(11px, 2vw, 16px);
  line-height: 1.7;
  background: #fff;
  border: var(--edge);
  box-shadow: 6px 6px 0 var(--ink);
}

.fit {
  margin: 0 auto 18px;
  max-width: 36rem;
  font-size: clamp(18px, 2.4vw, 22px);
  font-weight: 800;
}

.stamps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.stamps li {
  padding: 8px 10px;
  font-family: var(--font-pixel);
  font-size: 10px;
  line-height: 1.65;
  background: var(--cream);
  border: 3px solid var(--ink);
}

.stamps li:nth-child(2) { background: var(--lavender); }
.stamps li:nth-child(3) { background: #ffd5ce; }

.signoff {
  margin-inline: auto;
  max-width: 28rem;
  font-size: 18px;
  font-weight: 800;
}

/* Tape */

.tape {
  padding: 64px 0;
  background-color: #efe8ff;
  background-image: radial-gradient(#d4c6f3 2px, transparent 2px);
  background-size: 16px 16px;
}

.monitor {
  width: min(960px, 100%);
  margin: 0 auto 16px;
  background: var(--cream);
  border: var(--edge);
  box-shadow: 8px 8px 0 var(--ink);
}

.monitor-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  font-family: var(--font-pixel);
  font-size: 10px;
  line-height: 1.5;
  background: var(--olive);
  border-bottom: 4px solid var(--ink);
}

.dots {
  display: flex;
  gap: 6px;
}

.dots i {
  display: block;
  width: 10px;
  height: 10px;
  background: var(--yellow);
  border: 2px solid var(--ink);
}

.dots i:nth-child(2) { background: #fff; }
.dots i:nth-child(3) { background: var(--red); }

.tape-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 320px;
  background: #e7f6ff;
}

.tape-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  background:
    linear-gradient(#bfe8ff 0 62%, #b7e07a 62%);
}

.tape-fallback .candle {
  position: static;
}

.tape-fallback .candle:nth-child(1) { height: 28px; }
.tape-fallback .candle:nth-child(2) { height: 18px; }
.tape-fallback .candle:nth-child(3) { height: 70px; }
.tape-fallback .candle:nth-child(4) { height: 34px; }
.tape-fallback .candle:nth-child(5) { height: 42px; }

.tape-screen iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
}

.tape-note {
  width: min(960px, 100%);
  margin: 0 auto 16px;
  font-size: 16px;
  font-weight: 800;
  text-align: center;
}

.tape .btn {
  display: flex;
  width: min(280px, 100%);
  margin-inline: auto;
}

/* Contract */

.contract {
  padding: 64px 0;
  background: #ffe7a3;
}

.pocket {
  width: min(680px, 100%);
  margin-inline: auto;
  padding: 20px;
  background: var(--cream);
  border: var(--edge);
  box-shadow: 8px 8px 0 var(--ink);
}

.pocket h2 {
  margin-bottom: 12px;
}

.big-ticker {
  display: inline-block;
  margin-bottom: 16px;
  padding: 10px 12px;
  font-family: var(--font-pixel);
  font-size: clamp(22px, 5vw, 40px);
  line-height: 1.45;
  background: var(--yellow);
  border: var(--edge);
  box-shadow: 4px 4px 0 var(--ink);
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.action-row .btn {
  flex: 1 1 140px;
}

/* Footer */

.site-footer {
  background: #d3eb96;
  border-top: var(--edge);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
  padding: 28px 0;
}

.footer-id p + p {
  margin-top: 4px;
}

.footer-name {
  font-family: var(--font-pixel);
  font-size: 14px;
  line-height: 1.5;
}

.footer-ticker {
  display: inline-block;
  font-family: var(--font-pixel);
  font-size: 10px;
  line-height: 1.5;
  padding: 4px 6px;
  background: var(--yellow);
  border: 3px solid var(--ink);
}

.footer-chain,
.footer-plan {
  font-weight: 800;
}

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

.footer-plan {
  flex: 1 1 100%;
  margin: 0;
  font-size: 20px;
}

/* Layout shifts */

@media (max-width: 980px) {
  .frames {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "mascot"
      "actions"
      "ca";
    row-gap: 18px;
    padding-top: 28px;
  }

  .hero-mascot {
    align-self: center;
    justify-self: center;
    width: min(100%, 460px);
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

@media (min-width: 801px) {
  .nav-check,
  .nav-toggle {
    display: none;
  }

  .site-nav,
  .nav-check:checked ~ .site-nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
  }

  .site-nav .nav-link {
    width: auto;
  }
}

@media (max-width: 720px) {
  .about-layout {
    grid-template-columns: 1fr;
  }

  .portrait img {
    width: 128px;
  }

  .tape-screen {
    aspect-ratio: 3 / 4;
    min-height: 460px;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(1120px, calc(100% - 24px));
  }

  .loop,
  .about,
  .moment,
  .tape,
  .contract {
    padding: 48px 0;
  }

  .frames {
    grid-template-columns: 1fr;
  }

  .brand img {
    width: 42px;
    height: 42px;
  }

  .brand-name {
    font-size: 10px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    width: 100%;
  }

  .footer-links .nav-link {
    flex: 1 1 30%;
  }
}

@media (max-width: 380px) {
  .btn {
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .sigh-bubble,
  .puff {
    opacity: 1;
    transform: none;
  }

  .mini-duck:hover img,
  .mini-duck:active img {
    transform: none;
  }

  .leave {
    opacity: 0.32;
    transform: translateY(-16px);
  }

  .cloud-shift,
  .hill-shift,
  .hero-mascot {
    transform: none;
  }
}
