/* Fizzle Royale landing page.
   The page reads top to bottom like a bath: tiled wall, waterline, then deeper
   and deeper water down to the plughole. Colours and shapes follow the game UI:
   navy panels, white text, one gold action, flat buttons with a darker lip. */

@font-face {
  font-family: "Fredoka";
  src: url("fonts/Fredoka.ttf") format("truetype");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Game palette */
  --ink: #0b2238;
  --card: #0d2642;
  --white: #ffffff;
  --dim: #a9c6dc;
  --gold: #ffc83d;
  --blue: #2f7fc4;
  --pink: #f56b8e;
  --green: #52cf7c;
  --water: #3fa9e0;
  --foam: #8fdcf0;

  /* Site-only helpers derived from the palette */
  --gold-lip: #d99a1c;
  --blue-fill: #2872b5; /* --blue, a touch darker so white button text passes AA */
  --blue-lip: #1c5a94;
  --card-line: #1c4a78;
  --card-raised: #143659;
  --wall: #f3f9fc;
  --grout: #d7e7f0;
  --deep: #1d5a94;
  --abyss: #113a61;
  --slate: #1a4266; /* secondary text on light backgrounds */

  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 12px;
  --gutter: clamp(16px, 4vw, 32px);
  --focus: var(--gold);

  --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 28' preserveAspectRatio='none'%3E%3Cpath d='M0 14Q35 -6 70 14T140 14V28H0z'/%3E%3C/svg%3E");
}

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

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font-family: "Fredoka", ui-rounded, "Arial Rounded MT Bold", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 500;
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, fieldset {
  margin: 0;
  padding: 0;
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
}

fieldset {
  border: 0;
  min-width: 0;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
}

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

.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.sprite {
  position: absolute;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: var(--r-sm);
  background: var(--gold);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  --focus: var(--ink);
}

.skip-link:focus {
  top: 12px;
}

.wrap {
  width: min(100%, 1120px + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--narrow {
  width: min(100%, 860px + 2 * var(--gutter));
}

/* ---------- Buttons: flat, with a slightly darker bottom lip ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.6rem 1.35rem;
  border: 0;
  border-radius: var(--r-md);
  font: inherit;
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 80ms ease, box-shadow 80ms ease, background-color 120ms ease;
}

.btn--gold {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 4px 0 var(--gold-lip);
}

.btn--gold:hover {
  background: #ffd564;
}

.btn--blue {
  background: var(--blue-fill);
  color: var(--white);
  box-shadow: 0 4px 0 var(--blue-lip);
}

.btn--blue:hover {
  background: var(--blue);
}

.btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--gold-lip);
}

.btn--blue:active {
  box-shadow: 0 1px 0 var(--blue-lip);
}

.btn--small {
  min-height: 44px;
  padding: 0.45rem 1rem;
  font-size: 1rem;
  border-radius: 14px;
}

.btn[disabled] {
  cursor: progress;
  opacity: 0.7;
  transform: none;
}

/* ---------- Navy panels, like the game's HUD ---------- */

.card {
  --focus: var(--gold);
  background: var(--card);
  color: var(--white);
  border-radius: var(--r-lg);
  padding: clamp(18px, 3vw, 26px);
  box-shadow: 0 6px 0 rgba(11, 34, 56, 0.22);
}

/* ---------- Header ---------- */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  padding: 14px var(--gutter) 0;
}

.topbar {
  --focus: var(--gold);
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 1120px;
  margin-inline: auto;
  padding: 8px 8px 12px 16px;
  border-radius: 20px;
  background: var(--ink);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
  padding: 2px 6px 2px 0;
  border-radius: 10px;
  color: var(--white);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.brand__duck {
  width: 34px;
  height: auto;
  flex: none;
}

.topnav ul {
  display: flex;
  gap: 2px;
}

.topnav a {
  display: block;
  padding: 0.4rem 0.75rem;
  border-radius: 10px;
  color: var(--dim);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
}

.topnav a:hover {
  background: var(--card-raised);
  color: var(--white);
}

@media (max-width: 860px) {
  .topnav {
    display: none;
  }
}

@media (max-width: 400px) {
  .brand {
    font-size: 1.0625rem;
    gap: 6px;
  }

  .brand__duck {
    width: 28px;
  }

  .topbar .btn--small {
    padding-inline: 0.7rem;
    font-size: 0.9375rem;
  }
}

/* ---------- 1. Hero: the tiled wall above the bath ---------- */

.hero {
  --focus: var(--ink);
  position: relative;
  padding: clamp(112px, 13vw, 150px) 0 clamp(120px, 14vw, 170px);
  background-color: var(--wall);
  background-image:
    linear-gradient(var(--grout) 2px, transparent 2px),
    linear-gradient(90deg, var(--grout) 2px, transparent 2px);
  background-size: 92px 92px;
  background-position: center -2px;
  color: var(--ink);
  overflow: hidden;
}

.hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
}

@media (min-width: 960px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  }
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: default;
}

.pill__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--dim);
}

.pill__dot--pink { background: var(--pink); }
.pill__dot--green { background: var(--green); }

/* The game's title lettering: chunky fill, thick navy outline, a lip underneath. */
.logo {
  position: relative;
  margin-left: 0.06em;
  padding-bottom: 0.12em;
  color: var(--white);
  font-weight: 700;
  font-size: clamp(4.6rem, 22vw, 7.25rem);
  line-height: 0.88;
  letter-spacing: 0.01em;
  -webkit-text-stroke: 0.14em var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 0.07em 0 var(--ink);
}

.logo span {
  display: block;
}

.logo__b {
  color: var(--gold);
}

.tagline {
  margin-top: 14px;
  font-weight: 700;
  font-size: clamp(1.4rem, 3.4vw, 1.9rem);
  line-height: 1.2;
}

.pitch {
  margin-top: 10px;
  max-width: 34rem;
  color: var(--slate);
  font-size: clamp(1.0625rem, 2vw, 1.2rem);
}

.hero__shot figcaption {
  margin-top: 16px;
  color: var(--slate);
  font-size: 0.9375rem;
  text-align: center;
}

.frame {
  display: block;
  border: 6px solid var(--ink);
  border-radius: var(--r-lg);
  background: var(--ink);
  overflow: hidden;
  box-shadow: 0 8px 0 rgba(11, 34, 56, 0.2);
}

.frame img {
  width: 100%;
  border-radius: calc(var(--r-lg) - 7px);
}

@media (min-width: 960px) {
  .hero__shot .frame {
    transform: rotate(1.4deg);
  }
}

/* Bubbles drifting up the wall */
.hero__bubbles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero__bubbles span {
  position: absolute;
  width: var(--s, 40px);
  height: var(--s, 40px);
  border: 3px solid var(--foam);
  border-radius: 50%;
  background: rgba(143, 220, 240, 0.2);
  animation: bob var(--t, 7s) ease-in-out infinite alternate;
}

.hero__bubbles span::after {
  content: "";
  position: absolute;
  top: 16%;
  left: 18%;
  width: 26%;
  height: 26%;
  border-radius: 50%;
  background: var(--white);
}

.hero__bubbles span:nth-child(1) { --s: 54px; --t: 8s; left: 1%; top: 52%; }
.hero__bubbles span:nth-child(2) { --s: 22px; --t: 6s; left: 9%; top: 62%; }
.hero__bubbles span:nth-child(3) { --s: 34px; --t: 9s; left: 46%; top: 16%; }
.hero__bubbles span:nth-child(4) { --s: 18px; --t: 5s; left: 51%; top: 78%; }
.hero__bubbles span:nth-child(5) { --s: 62px; --t: 10s; right: 3%; top: 14%; }
.hero__bubbles span:nth-child(6) { --s: 26px; --t: 7s; right: 10%; bottom: 20%; }
.hero__bubbles span:nth-child(7) { --s: 40px; --t: 8s; left: 30%; bottom: 9%; }

@media (max-width: 959px) {
  .hero__bubbles span:nth-child(3),
  .hero__bubbles span:nth-child(4),
  .hero__bubbles span:nth-child(6),
  .hero__bubbles span:nth-child(7) {
    display: none;
  }

  /* Keep the remaining bubbles in the gap beside the logo, clear of the text. */
  .hero__bubbles span:nth-child(1) { top: 150px; left: auto; right: 18%; --s: 26px; }
  .hero__bubbles span:nth-child(2) { top: 268px; left: auto; right: 9%; --s: 18px; }
  .hero__bubbles span:nth-child(5) { top: 190px; right: 4%; --s: 44px; }}

@keyframes bob {
  from { transform: translateY(8px); }
  to { transform: translateY(-14px); }
}

/* The waterline: a back wave, a rubber duck, and the next section's front wave. */
.hero__water {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 110px;
  z-index: 1;
  pointer-events: none;
}

.hero__wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 54px;
  background: var(--water);
  -webkit-mask: var(--wave) repeat-x 60px 0 / 190px 100%;
  mask: var(--wave) repeat-x 60px 0 / 190px 100%;
  animation: drift 14s linear infinite;
}

@keyframes drift {
  to {
    -webkit-mask-position: 250px 0;
    mask-position: 250px 0;
  }
}

.hero__duck {
  position: absolute;
  right: max(6%, calc(50% - 520px));
  bottom: 12px;
  width: clamp(72px, 9vw, 104px);
  height: auto;
  transform-origin: 50% 90%;
  animation: float 3.6s ease-in-out infinite alternate;
}

@keyframes float {
  from { transform: translateY(2px) rotate(-4deg); }
  to { transform: translateY(-5px) rotate(3deg); }
}

/* ---------- Waitlist form ---------- */

.waitlist {
  margin-top: 28px;
  max-width: 34rem;
}

.waitlist--plain {
  margin-top: 28px;
}

.waitlist__title {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.2;
}

.waitlist__lede {
  margin-top: 4px;
  color: var(--dim);
}

.waitlist__label {
  display: block;
  margin: 14px 0 6px;
  color: var(--dim);
  font-size: 0.9375rem;
  font-weight: 600;
}

.waitlist--plain .waitlist__label {
  margin-top: 0;
}

.waitlist__row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 10px;
  padding-bottom: 4px; /* room for the button's lip */
}

.input {
  flex: 1 1 13rem;
  min-width: 0;
  min-height: 52px;
  padding: 0.55rem 1rem;
  border: 3px solid transparent;
  border-radius: var(--r-md);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 1.0625rem;
}

.input::placeholder {
  color: #5b7790;
  opacity: 1;
}

.input[aria-invalid="true"] {
  border-color: var(--pink);
}

.waitlist__row .btn {
  flex: 1 0 auto;
}

@media (min-width: 520px) {
  .waitlist__row .btn {
    flex: 0 0 auto;
  }
}

.waitlist__help {
  margin-top: 10px;
  color: var(--dim);
  font-size: 0.9375rem;
}

.form-status {
  margin-top: 12px;
  padding: 0.55rem 0.85rem;
  border-radius: var(--r-sm);
  background: var(--ink);
  border-left: 5px solid var(--dim);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.band--ink .form-status {
  background: var(--card);
}

.form-status:empty {
  display: none;
}

.form-status.is-ok {
  border-left-color: var(--green);
}

.form-status.is-error {
  border-left-color: var(--pink);
}

.form-dev {
  margin-top: 8px;
  padding: 0.4rem 0.7rem;
  border: 2px dashed var(--card-line);
  border-radius: var(--r-sm);
  color: var(--dim);
  font-size: 0.875rem;
  overflow-wrap: anywhere;
}

.form-dev a {
  color: var(--white);
}

/* Honeypot: off-screen for people, still in the DOM for bots. */
.hp {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Bands of bath water ---------- */

.band {
  position: relative;
  padding: clamp(64px, 9vw, 112px) 0 clamp(80px, 10vw, 128px);
  background: var(--band-bg);
  color: var(--band-fg, var(--white));
}

/* Each band starts with a wave that laps over the one above it. */
.band::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% - 1px);
  height: 28px;
  background: var(--band-bg);
  -webkit-mask: var(--wave) repeat-x 0 0 / 140px 100%;
  mask: var(--wave) repeat-x 0 0 / 140px 100%;
  pointer-events: none;
}

.band--foam { --band-bg: var(--foam); --band-fg: var(--ink); --band-soft: var(--slate); --focus: var(--ink); }
.band--water { --band-bg: var(--water); --band-fg: var(--ink); --band-soft: var(--ink); --focus: var(--ink); }
.band--deep { --band-bg: var(--deep); --band-soft: #d6e8f5; }
.band--abyss { --band-bg: var(--abyss); --band-soft: var(--dim); }
.band--ink { --band-bg: var(--ink); --band-soft: var(--dim); }

.band--water::before { -webkit-mask-position: 70px 0; mask-position: 70px 0; }
.band--abyss::before { -webkit-mask-position: 70px 0; mask-position: 70px 0; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  color: var(--band-soft);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.band__title {
  font-weight: 700;
  font-size: clamp(2.1rem, 5.6vw, 3.2rem);
  line-height: 1.06;
  text-wrap: balance;
}

.band__lede {
  margin-top: 12px;
  max-width: 40rem;
  color: var(--band-soft);
  font-size: clamp(1.0625rem, 2vw, 1.2rem);
}

/* ---------- 2. Feature cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: 18px;
  margin-top: 36px;
}

.feature h3 {
  margin-top: 14px;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
}

.feature p {
  margin-top: 6px;
  color: var(--dim);
}

.feature__icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: var(--r-md);
  background: var(--card-raised);
}

.feature__icon svg {
  width: 40px;
  height: 40px;
}

.fleet {
  margin-top: 44px;
}

.fleet__title {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.2;
}

.fleet__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 18px;
  margin-top: 16px;
}

.ship {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-block: 16px;
}

.ship__art {
  flex: none;
  width: 72px;
  height: auto;
  padding: 8px;
  border-radius: var(--r-md);
  background: var(--card-raised);
}

.ship h4 {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
}

.ship p {
  color: var(--dim);
}

/* ---------- 3. How a round goes ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 18px;
  margin-top: 36px;
}

.step {
  position: relative;
}

.step__map {
  width: 96px;
  height: 96px;
  border-radius: 18px;
  border: 3px solid var(--card-line);
}

.step__count {
  position: absolute;
  top: 12px;
  right: 24px;
  color: var(--card-line);
  font-weight: 700;
  font-size: 4.5rem;
  line-height: 1;
}

.step h3 {
  margin-top: 16px;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.step--plug h3 { color: var(--gold); }
.step--last h3 { color: var(--pink); }

.step p:not(.step__count) {
  margin-top: 6px;
  color: var(--dim);
}

/* ---------- 4. Screenshots ---------- */

.gallery {
  display: grid;
  gap: 28px 24px;
  margin-top: 36px;
}

@media (min-width: 760px) {
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.shot a.frame {
  transition: transform 120ms ease;
}

.shot a.frame:hover {
  transform: translateY(-3px);
}

.shot figcaption {
  margin-top: 14px;
  color: var(--white);
}

/* ---------- 5. Leaderboard ---------- */

.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 1.6s ease-in-out infinite alternate;
}

@keyframes pulse {
  from { opacity: 1; }
  to { opacity: 0.35; }
}

.board {
  margin-top: 32px;
  border: 2px solid var(--card-line);
  box-shadow: none;
}

.board__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tabs,
.switch {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 4px;
  padding: 4px 4px 7px;
  border-radius: var(--r-md);
  background: var(--ink);
}

.tabs {
  flex: 1 1 100%;
}

@media (min-width: 720px) {
  .tabs {
    flex: 0 1 auto;
  }
}

.tab,
.switch__label {
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: 0.35rem 0.9rem;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--dim);
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.15;
  text-align: center;
  cursor: pointer;
}

.tab:hover,
.switch__label:hover {
  color: var(--white);
}

.tab[aria-selected="true"],
.switch__input:checked + .switch__label {
  background: var(--blue-fill);
  color: var(--white);
  box-shadow: 0 3px 0 var(--blue-lip);
}

.switch__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.switch__input:focus-visible + .switch__label {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.switch__label {
  min-height: 40px;
  font-size: 0.9375rem;
  white-space: nowrap;
}

.board__panel {
  display: flex;
  flex-direction: column;
  min-height: 34.5rem;
  margin-top: 14px;
}

.board__table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0 6px;
  font-variant-numeric: tabular-nums;
}

.board__table th,
.board__table td {
  padding: 0.5rem 0.75rem;
  text-align: left;
  vertical-align: middle;
}

.board__table thead th {
  padding-block: 0.15rem;
  color: var(--dim);
  font-weight: 600;
  font-size: 0.8125rem;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.board__table .col-rank { width: 64px; }
.board__table .col-num { width: 104px; text-align: right; }
.board__table .col-score { width: 132px; }

.board__table tbody th,
.board__table tbody td {
  height: 46px;
  background: var(--ink);
}

.board__table tbody tr > :first-child { border-radius: var(--r-sm) 0 0 var(--r-sm); }
.board__table tbody tr > :last-child { border-radius: 0 var(--r-sm) var(--r-sm) 0; }

.board__table tbody th {
  font-weight: 600;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.board__table tbody td.col-num {
  color: var(--dim);
}

.board__table tbody td.col-score {
  color: var(--white);
  font-weight: 700;
  font-size: 1.125rem;
}

.rank {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  padding: 0 6px;
  border-radius: 999px;
  color: var(--dim);
  font-weight: 700;
}

tr[data-rank="1"] .rank { background: var(--gold); color: var(--ink); }
tr[data-rank="2"] .rank,
tr[data-rank="3"] .rank { background: var(--blue-fill); color: var(--white); }

@media (max-width: 560px) {
  .board__table .col-num:not(.col-score) {
    display: none;
  }

  .board__table .col-rank { width: 52px; }
  .board__table .col-score { width: 96px; }

  .board__table th,
  .board__table td {
    padding-inline: 0.55rem;
  }
}

/* Loading: placeholder rows */
.skel {
  display: block;
  height: 14px;
  width: var(--w, 60%);
  border-radius: 999px;
  background: var(--card-line);
  animation: pulse 0.9s ease-in-out infinite alternate;
}

td.col-num .skel {
  margin-left: auto;
}

.board__state {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin: auto;
  padding: 32px 12px;
  max-width: 26rem;
  color: var(--dim);
  text-align: center;
}

.board__state-art {
  width: 84px;
  height: auto;
}

.board__state-art--sunk {
  transform: rotate(160deg);
  opacity: 0.85;
}

.board__state-title {
  color: var(--white);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.2;
}

.board__state .btn {
  margin-top: 8px;
}

.board__noscript {
  margin: auto;
  color: var(--dim);
  text-align: center;
}

.board__meta {
  margin-top: 10px;
  color: var(--dim);
  font-size: 0.9375rem;
  text-align: right;
}

/* ---------- 6. Closing ---------- */

.closing__grid {
  display: grid;
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
}

@media (min-width: 920px) {
  .closing__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }
}

.status {
  border: 2px solid var(--card-line);
  box-shadow: none;
}

.status h3 {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.2;
}

.status__list {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.status__list dd {
  margin-top: 6px;
  color: var(--dim);
}

.tag {
  display: inline-block;
  padding: 0.15rem 0.7rem;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9375rem;
}

.tag--green { background: var(--green); }
.tag--pink { background: var(--pink); }
.tag--blue { background: var(--foam); }

/* ---------- Footer: the plughole ---------- */

.site-footer {
  padding: 8px 0 56px;
  background: var(--ink);
  color: var(--dim);
  text-align: center;
}

.site-footer__inner {
  display: grid;
  justify-items: center;
  gap: 4px;
}

.site-footer__inner::before {
  content: "";
  width: 100%;
  height: 2px;
  margin-bottom: 40px;
  border-radius: 2px;
  background: var(--card-line);
}

.drain {
  width: 72px;
  height: 72px;
  margin-bottom: 12px;
}

.site-footer__name {
  color: var(--white);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.2;
}

.site-footer__credits {
  margin-top: 14px;
  max-width: 40rem;
  font-size: 0.9375rem;
}

/* ---------- Message after following a waitlist email link ---------- */

.notice {
  position: fixed;
  top: 12px;
  left: 50%;
  z-index: 60;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: min(580px, calc(100% - 24px));
  padding: 14px 12px 16px 16px;
  border: 3px solid var(--dim);
  border-radius: var(--r-lg);
  background: var(--card);
  color: var(--white);
  box-shadow: 0 6px 0 rgba(11, 34, 56, 0.35);
  transform: translateX(-50%);
  animation: drop 260ms ease-out;
}

@keyframes drop {
  from { transform: translate(-50%, -24px); opacity: 0; }
}

.notice[data-tone="ok"] { border-color: var(--green); }
.notice[data-tone="error"] { border-color: var(--pink); }
.notice[data-tone="info"] { border-color: var(--foam); }

.notice__dot {
  flex: none;
  width: 14px;
  height: 14px;
  margin-top: 0.4em;
  border-radius: 50%;
  background: var(--dim);
}

.notice[data-tone="ok"] .notice__dot { background: var(--green); }
.notice[data-tone="error"] .notice__dot { background: var(--pink); }
.notice[data-tone="info"] .notice__dot { background: var(--foam); }

.notice__text {
  flex: 1;
  font-weight: 600;
  line-height: 1.4;
}

.notice__close {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: var(--r-sm);
  background: var(--card-raised);
  color: var(--white);
  cursor: pointer;
}

.notice__close:hover {
  background: var(--card-line);
}

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
