/* Self-hosted Latin subsets of Fredoka and Nunito (SIL Open Font License). */
@font-face {
  font-family: "Fredoka";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("/fonts/fredoka-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/nunito-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Nunito";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/nunito-italic-latin.woff2") format("woff2");
}

:root {
  --bg: #110b16;
  --ink: #faf3e8;
  --muted: #cbb9a6;
  --gold: #f0c14b;
  --gold-deep: #e09a1a;
  --coral: #ff6a55;
  --mint: #5ee0b8;
  --panel: rgba(255, 247, 235, 0.07);
  --panel-edge: rgba(250, 243, 232, 0.16);
  --font-display: "Fredoka", "Trebuchet MS", "Segoe UI", sans-serif;
  --font-body: "Nunito", "Segoe UI", system-ui, sans-serif;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

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

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

html {
  background: var(--bg);
  color: var(--ink);
}

body {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.5;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow-x: hidden;
}

a {
  color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--ink);
}

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

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.7;
}

.glow-a {
  width: 42rem;
  height: 42rem;
  left: 50%;
  top: 18%;
  translate: -50% -30%;
  background: radial-gradient(circle, rgba(240, 193, 75, 0.28), rgba(88, 20, 60, 0.05) 62%, transparent 70%);
}

.glow-b {
  width: 28rem;
  height: 28rem;
  right: -6rem;
  bottom: -8rem;
  background: radial-gradient(circle, rgba(255, 106, 85, 0.22), transparent 70%);
}

.track {
  position: absolute;
  left: 50%;
  top: 46%;
  width: min(52rem, 140vw);
  height: min(28rem, 70vw);
  translate: -50% -50%;
  border: 2px solid rgba(240, 193, 75, 0.18);
  border-radius: 50%;
  box-shadow:
    0 0 0 14px rgba(240, 193, 75, 0.04),
    inset 0 0 60px rgba(94, 224, 184, 0.05);
  transform: rotate(-18deg);
}

.track::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: conic-gradient(from 120deg, transparent 0 72%, var(--coral) 78%, var(--gold) 84%, transparent 90%);
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  animation: orbit 18s linear infinite;
}

.specks {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 18% 28%, #f0c14b 0 0.14rem, transparent 0.16rem),
    radial-gradient(circle at 72% 22%, #ff6a55 0 0.12rem, transparent 0.14rem),
    radial-gradient(circle at 80% 68%, #5ee0b8 0 0.12rem, transparent 0.14rem),
    radial-gradient(circle at 28% 76%, #f0c14b 0 0.1rem, transparent 0.12rem),
    radial-gradient(circle at 58% 14%, #fff6e8 0 0.08rem, transparent 0.1rem);
  opacity: 0.7;
}

.top,
main,
footer {
  position: relative;
  z-index: 1;
}

.top {
  width: min(60rem, calc(100% - 2rem));
  padding: 1.4rem 0 0;
  display: flex;
  position: sticky;
  top: 0;
  z-index: 5;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.top nav,
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.1rem;
}

.top nav a,
footer nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.35rem 0;
}

.top nav a:hover,
footer nav a:hover,
.top nav a:focus-visible,
footer nav a:focus-visible {
  color: var(--gold);
  text-decoration: underline;
}

a:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  background: var(--gold);
  color: #1a1008;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  font-weight: 700;
}

.skip:focus {
  top: 1rem;
}

.mark {
  display: inline-flex;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.35));
}

.mark svg {
  display: block;
}

main {
  width: min(60rem, calc(100% - 2rem));
  flex: 1;
  padding: 1.5rem 0 3rem;
}

.hero {
  min-height: calc(100svh - 8rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding-bottom: 2rem;
}

.eyebrow {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  font-size: 0.82rem;
}

h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: -0.03em;
  font-size: clamp(4.2rem, 16vw, 8.4rem);
  text-wrap: balance;
}

.title-endless,
.title-royale {
  display: block;
}

.title-royale {
  color: var(--gold);
  text-shadow: 0 0 40px rgba(240, 193, 75, 0.25);
}

.tagline {
  margin: 1.25rem 0 0;
  font-size: clamp(1.15rem, 2.6vw, 1.45rem);
  color: var(--muted);
}

.facts {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.4rem 0 0;
  padding: 0;
}

.facts li {
  border: 1px solid var(--panel-edge);
  background: var(--panel);
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
  color: var(--muted);
}

.facts strong {
  color: var(--ink);
  font-family: var(--font-display);
}

.ticket {
  margin: 2rem auto 0;
  width: min(34rem, 100%);
  padding: 1.15rem 1.15rem 1.05rem;
  text-align: left;
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  border-radius: 1.35rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.ticket label {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  margin: 0 0 0.45rem 0.15rem;
}

.row {
  display: flex;
  gap: 0.55rem;
}

input[type="email"] {
  flex: 1;
  min-width: 0;
  appearance: none;
  border: 1px solid rgba(250, 243, 232, 0.16);
  background: rgba(10, 7, 14, 0.55);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.85rem 1.05rem;
  font: inherit;
  font-size: 1rem;
}

input[type="email"]::placeholder {
  color: rgba(203, 185, 166, 0.7);
}

input[type="email"]:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-color: var(--gold);
}

button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.2rem;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: #1a1008;
  background: linear-gradient(180deg, #ffd978, var(--gold) 45%, var(--gold-deep));
  box-shadow: 0 8px 20px rgba(240, 193, 75, 0.25);
  cursor: pointer;
  white-space: nowrap;
}

button:hover {
  filter: brightness(1.05);
}

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

button:disabled {
  opacity: 0.7;
  cursor: wait;
}

.status {
  min-height: 1.4em;
  margin: 0.8rem 0 0;
  font-weight: 700;
}

.status.is-ok {
  color: var(--mint);
}

.status.is-err {
  color: #ffb3a8;
}

.agree {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin: 0.85rem 0 0;
}

.agree input {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  margin: 0;
  accent-color: var(--gold, #f0c14b);
}

.ticket .agree label {
  margin: 0;
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.4;
}

.privacy {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

footer {
  width: min(60rem, calc(100% - 2rem));
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--panel-edge);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.92rem;
}

footer p {
  margin: 0;
}

/* Content sections */
.band {
  padding: 3rem 0 0;
}

h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 4.5vw, 2.5rem);
  line-height: 1.1;
  margin: 0 0 1rem;
}

h3 {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.3rem;
  margin: 0 0 0.4rem;
}

.lede {
  color: var(--muted);
  font-size: 1.1rem;
  margin: 0 0 1.4rem;
  max-width: 44rem;
}

.cards {
  display: grid;
  gap: 1rem;
}

.cards.two {
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.card,
.steps li,
.role,
details {
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  border-radius: 1.1rem;
  padding: 1.15rem 1.2rem;
}

.card p,
.steps p,
.role p {
  margin: 0;
  color: var(--muted);
}

.card h3 {
  font-size: 2rem;
  color: var(--gold);
}

.kicker {
  margin: 0 0 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--mint) !important;
}

.also {
  color: var(--muted);
  margin: 1rem 0 0;
}

.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}

.steps li {
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--gold);
  color: #1a1008;
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.roles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
}

.role {
  border-top: 4px solid var(--role, var(--gold));
}

.role h3 {
  color: var(--role, var(--gold));
}

.role-vanguard { --role: #8fc7ff; }
.role-striker { --role: #ff8a91; }
.role-skirmisher { --role: #6bffcc; }
.role-controller { --role: #c3a5ff; }
.role-support { --role: #ffd166; }

.wip p {
  max-width: 44rem;
  color: var(--muted);
  margin: 0;
}

.wip {
  border-left: 4px solid var(--coral);
  padding-left: 1.2rem;
  margin-top: 3rem;
}

details {
  margin: 0 0 0.75rem;
}

summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05rem;
}

details p {
  color: var(--muted);
  margin: 0.6rem 0 0;
}

.cta {
  text-align: center;
  padding-bottom: 1rem;
}

.button-link {
  display: inline-block;
  border-radius: 999px;
  padding: 0.85rem 1.4rem;
  font-family: var(--font-display);
  font-weight: 650;
  color: #1a1008;
  text-decoration: none;
  background: linear-gradient(180deg, #ffd978, var(--gold) 45%, var(--gold-deep));
}

.button-link:hover {
  color: #1a1008;
  filter: brightness(1.05);
}

/* Inner pages */
.page {
  width: min(44rem, calc(100% - 2rem));
}

.page-title {
  font-size: clamp(2.6rem, 9vw, 4rem);
  line-height: 1;
  margin: 0 0 1rem;
}

.page h2 {
  font-size: 1.5rem;
  margin: 2rem 0 0.6rem;
}

.page p,
.page li,
.page dd {
  color: var(--muted);
}

.page code {
  font-size: 0.92em;
  overflow-wrap: anywhere;
}

.list {
  padding-left: 1.2rem;
}

.list li {
  margin: 0 0 0.4rem;
}

.sheet {
  display: grid;
  grid-template-columns: minmax(7rem, auto) 1fr;
  gap: 0.5rem 1.2rem;
  margin: 0;
}

.sheet dt {
  font-weight: 700;
}

.sheet dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.note,
.fine {
  font-size: 0.92rem;
  color: var(--muted);
}

.draft-banner {
  background: rgba(255, 106, 85, 0.15);
  border: 1px solid var(--coral);
  border-radius: 0.8rem;
  padding: 0.75rem 1rem;
  color: var(--ink) !important;
}

.missing {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.missing h1 {
  font-size: clamp(2.2rem, 8vw, 4rem);
  line-height: 1.05;
}

@keyframes orbit {
  to {
    transform: rotate(1turn);
  }
}

@media (max-width: 640px) {
  .row {
    flex-direction: column;
  }

  .top nav {
    gap: 0.25rem 0.8rem;
  }

  .top nav a {
    font-size: 0.88rem;
  }

  button,
  input[type="email"] {
    width: 100%;
  }

  h1 {
    font-size: clamp(3.4rem, 22vw, 5.4rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .track::after,
  .glow,
  .arena-art *,
  .mode-art *,
  .missing-art * {
    animation: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}

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

/* ---------- 2026-11 visual refresh ---------- */

/* Sticky, full-width header with a soft backdrop; content stays in the 60rem column. */
.top {
  width: 100%;
  margin-top: 0;
  padding: 0.9rem max(1rem, calc((100% - 60rem) / 2));
  background: linear-gradient(180deg, rgba(17, 11, 22, 0.92), rgba(17, 11, 22, 0.72));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(250, 243, 232, 0.06);
}

.mark {
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
}

.mark:hover {
  color: var(--ink);
}

.mark-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.top nav {
  align-items: center;
}

.top nav a.nav-cta {
  color: #1a1008;
  background: linear-gradient(180deg, #ffd978, var(--gold) 45%, var(--gold-deep));
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  text-decoration: none;
}

.top nav a.nav-cta:hover,
.top nav a.nav-cta:focus-visible {
  color: #1a1008;
  text-decoration: none;
  filter: brightness(1.06);
}

section[id],
form[id] {
  scroll-margin-top: 5.5rem;
}

/* Hero: copy and form, plus the arena illustration. */
.hero {
  display: grid;
  align-content: center;
  gap: 1rem;
}

.hero-copy {
  display: flex;
  flex-direction: column;
}

.hero-art {
  width: min(36rem, 100%);
  margin: 0 auto;
}

.arena-art {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 640 / 420;
  overflow: visible;
}

.title-royale {
  background: linear-gradient(180deg, #ffe08a 10%, var(--gold) 55%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 0 28px rgba(240, 193, 75, 0.28));
}

@media (forced-colors: active) {
  .title-royale {
    color: CanvasText;
    background: none;
  }
}

@media (min-width: 60rem) {
  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    text-align: left;
    gap: 2rem;
  }

  .hero .facts {
    justify-content: flex-start;
  }

  .hero .ticket {
    margin-left: 0;
  }

  .hero {
    align-items: center;
  }

  .hero-art {
    width: 118%;
    margin: 0 0 0 -6%;
  }
}

/* Section labels */
.section-kicker {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--coral);
}

.band {
  padding-top: 4.5rem;
}

/* Mode cards with illustrations */
.mode-card {
  position: relative;
  overflow: hidden;
  padding-top: 1rem;
}

.mode-card::after {
  content: "";
  position: absolute;
  inset: auto -30% -60% auto;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 193, 75, 0.12), transparent 70%);
  pointer-events: none;
}

.mode-art {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 320 / 150;
  margin: 0 0 1rem;
}

.mode-art-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  fill: #1a1008;
}

.mode-art-label.small {
  fill: var(--muted);
  font-size: 14px;
}

.card {
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  border-color: rgba(240, 193, 75, 0.4);
}

/* Team Power band */
.power {
  display: grid;
  gap: 0.5rem 2rem;
  align-items: center;
  margin-top: 4.5rem;
  padding: 2rem 1.5rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(240, 193, 75, 0.28);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(240, 193, 75, 0.16), transparent 55%),
    radial-gradient(100% 120% at 100% 100%, rgba(255, 106, 85, 0.14), transparent 60%),
    var(--panel);
}

.power h2 {
  margin-bottom: 0.6rem;
}

.power p:not(.section-kicker) {
  margin: 0;
  color: var(--muted);
  max-width: 36rem;
}

.power-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.6rem, 13vw, 6.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, #ffe08a, var(--gold) 50%, var(--coral));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (min-width: 44rem) {
  .power {
    grid-template-columns: auto 1fr;
    padding: 2.25rem 2.5rem;
  }
}

@media (forced-colors: active) {
  .power-num {
    color: CanvasText;
    background: none;
  }
}

/* Role icons */
.role-icon {
  width: 2.6rem;
  height: 2.6rem;
  padding: 0.55rem;
  margin: 0 0 0.7rem;
  border-radius: 0.85rem;
  fill: none;
  stroke: var(--role, var(--gold));
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  background: color-mix(in srgb, var(--role, var(--gold)) 16%, transparent);
  display: block;
}

.role {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--role, var(--gold)) 10%, transparent), transparent 55%),
    var(--panel);
}

/* Steps: numbered, with a connecting rail on wide screens */
.steps li {
  position: relative;
}

/* FAQ disclosure marker */
summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  flex: none;
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1;
  color: var(--gold);
  transition: transform 0.2s ease;
}

details[open] > summary::after {
  transform: rotate(45deg);
}

summary:focus-visible,
input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
  border-radius: 6px;
}

.cta {
  margin-top: 4.5rem;
  padding: 2.5rem 1.25rem 2.75rem;
  border-radius: 1.5rem;
  background:
    radial-gradient(80% 120% at 50% 0%, rgba(240, 193, 75, 0.18), transparent 65%),
    var(--panel);
  border: 1px solid var(--panel-edge);
}

.cta h2 {
  font-size: clamp(2rem, 6vw, 3rem);
}

.cta-sub {
  color: var(--muted);
  margin: 0 0 1.25rem;
}

.cta p:last-child {
  margin: 0;
}

/* Press downloads */
.downloads {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
}

.download {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  height: 100%;
  padding: 0.8rem;
  border-radius: 1rem;
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  color: var(--ink);
  text-decoration: none;
}

.download:hover {
  border-color: rgba(240, 193, 75, 0.5);
  color: var(--ink);
}

.download img {
  width: 100%;
  height: 7.5rem;
  object-fit: contain;
  border-radius: 0.6rem;
  background: rgba(10, 7, 14, 0.55);
}

.download span {
  font-size: 0.92rem;
  color: var(--muted);
}

.download strong {
  color: var(--ink);
  margin-right: 0.3rem;
}

.devlog-card .list {
  margin: 0.6rem 0 0.9rem;
}

/* 404 */
.missing {
  min-height: auto;
  flex: 1;
  padding: 3rem 1rem 4rem;
  align-items: center;
}

.missing-art {
  width: min(18rem, 80vw);
  height: auto;
  aspect-ratio: 240 / 150;
  margin: 0 auto 1rem;
  overflow: visible;
}

.missing-code {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  fill: #f0c14b;
  opacity: 0.85;
}

/* Small screens */
@media (max-width: 34rem) {
  .mark-name {
    display: none;
  }

  .top nav a.nav-cta {
    display: none;
  }

  .sheet {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .sheet dd {
    margin-bottom: 0.6rem;
  }

  .power {
    text-align: left;
  }
}

/* Motion: only when the visitor hasn't asked for less. */
@media (prefers-reduced-motion: no-preference) {
  .ar-island {
    animation: bob 7s ease-in-out infinite;
  }

  .ar-crown {
    animation: crown 5s ease-in-out infinite;
  }

  .ar-drift-a {
    animation: bob 9s ease-in-out infinite reverse;
  }

  .ar-drift-b {
    animation: bob 8s ease-in-out -3s infinite;
  }

  .ar-burst {
    transform-box: fill-box;
    transform-origin: center;
    animation: burst 2.4s ease-in-out infinite;
  }

  .ar-sparks use,
  .minions circle {
    animation: twinkle 3s ease-in-out infinite;
  }

  .ar-sparks use:nth-child(2n),
  .minions circle:nth-child(2n) {
    animation-delay: -1.5s;
  }

  .ar-sparks use:nth-child(3n) {
    animation-delay: -0.8s;
  }

  .float-slow {
    animation: bob 6s ease-in-out infinite;
  }

  .float-fast {
    animation: bob 4.5s ease-in-out -2s infinite;
  }

  .dmg-bar {
    animation: dmg 4s ease-in-out infinite;
    transform-box: fill-box;
    transform-origin: left center;
  }

  .missing-fly {
    animation: crown 3.5s ease-in-out infinite;
  }

  .card:hover {
    transform: translateY(-3px);
  }

  /* Sections fade up as they scroll in (CSS only; browsers without
     scroll timelines simply show them). */
  @supports (animation-timeline: view()) {
    .reveal {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 35%;
    }
  }
}

@keyframes bob {
  50% {
    transform: translateY(-6px);
  }
}

@keyframes crown {
  50% {
    transform: translateY(-8px);
  }
}

@keyframes burst {
  50% {
    transform: scale(1.15) rotate(8deg);
  }
}

@keyframes twinkle {
  50% {
    opacity: 0.35;
  }
}

@keyframes dmg {
  0%,
  100% {
    transform: scaleX(0.35);
  }
  60% {
    transform: scaleX(1);
  }
}

@keyframes reveal {
  from {
    transform: translateY(28px) scale(0.98);
  }
}
