:root {
  --bg: #251b4a;
  --bg-deep: #17102f;
  --bg-soft: #352a66;

  --card: #3a2f72;
  --card-light: #4a3d8f;

  --purple: #7b61ff;
  --purple-dark: #5d42de;

  --yellow: #ffd95a;
  --yellow-dark: #ffb632;

  --green: #6ee7a8;

  --pink: #ff77b7;

  --blue: #61c9ff;

  --orange: #ff9661;

  --white: #ffffff;

  --text-soft: #ded8f6;

  --outline: #17102f;

  --shadow: #120b28;

  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;

  --font-display:
    "Baloo 2",
    system-ui,
    sans-serif;

  --font-ui:
    "Nunito",
    system-ui,
    sans-serif;
}


* {
  box-sizing: border-box;
}


html {
  scroll-behavior: smooth;
}


body {
  margin: 0;

  min-width: 320px;

  font-family: var(--font-ui);

  color: var(--white);

  background:
    radial-gradient(
      circle at top left,
      rgba(123, 97, 255, 0.22),
      transparent 30%
    ),
    radial-gradient(
      circle at 90% 10%,
      rgba(255, 119, 183, 0.15),
      transparent 28%
    ),
    var(--bg);
}


body::before {
  content: "";

  position: fixed;

  inset: 0;

  pointer-events: none;

  opacity: 0.17;

  background-image:
    radial-gradient(
      circle at 15% 20%,
      #fff 0 1.3px,
      transparent 1.6px
    ),
    radial-gradient(
      circle at 75% 40%,
      #fff 0 1.1px,
      transparent 1.4px
    ),
    radial-gradient(
      circle at 35% 80%,
      #fff 0 1.2px,
      transparent 1.5px
    );

  background-size:
    130px 130px,
    180px 180px,
    210px 210px;
}


button,
a,
input {
  font: inherit;
}


a {
  color: inherit;

  text-decoration: none;
}


button {
  color: inherit;
}


.section-shell {
  width:
    min(
      1180px,
      calc(100% - 32px)
    );

  margin-inline: auto;
}


/* HEADER */


.site-header {
  position: sticky;

  top: 0;

  z-index: 100;

  width:
    min(
      1180px,
      calc(100% - 24px)
    );

  margin:
    12px auto 0;

  display: flex;

  align-items: center;

  gap: 22px;

  padding:
    10px 12px
    10px 14px;

  border:
    3px solid
    var(--outline);

  border-radius: 20px;

  background:
    rgba(
      49,
      38,
      96,
      0.93
    );

  box-shadow:
    0 7px 0
    var(--shadow);

  backdrop-filter:
    blur(14px);
}


.brand {
  display:
    inline-flex;

  align-items: center;

  gap: 10px;

  font-family:
    var(--font-display);

  font-size: 24px;

  font-weight: 800;

  white-space: nowrap;
}


.brand-text strong {
  color:
    var(--yellow);
}


.brand-mark {
  position: relative;

  width: 38px;

  height: 38px;

  flex:
    0 0 38px;

  border:
    3px solid
    var(--outline);

  border-radius:
    11px;

  background:
    var(--green);

  box-shadow:
    inset
    0 -5px 0
    rgba(
      0,
      0,
      0,
      0.08
    );

  transform:
    rotate(-5deg);
}


.brand-eye,
.hero-eye,
.preview-eye {
  position: absolute;

  width: 5px;

  height: 7px;

  border-radius:
    50%;

  background:
    var(--outline);
}


.brand-eye.left {
  left: 9px;

  top: 10px;
}


.brand-eye.right {
  right: 9px;

  top: 10px;
}


.brand-mouth {
  position: absolute;

  left: 50%;

  bottom: 8px;

  width: 12px;

  height: 6px;

  border-bottom:
    3px solid
    var(--outline);

  border-radius:
    0 0 12px 12px;

  transform:
    translateX(-50%);
}


.main-nav {
  display: flex;

  align-items: center;

  gap: 8px;

  margin-left: auto;
}


.main-nav a {
  padding:
    9px 12px;

  border-radius:
    12px;

  color:
    var(--text-soft);

  font-weight: 800;

  transition:
    transform
    0.15s ease,
    background
    0.15s ease,
    color
    0.15s ease;
}


.main-nav a:hover {
  color:
    var(--white);

  background:
    rgba(
      255,
      255,
      255,
      0.08
    );

  transform:
    translateY(-1px);
}


.header-play-button {
  padding:
    10px 18px;

  border:
    3px solid
    var(--outline);

  border-radius:
    14px;

  background:
    linear-gradient(
      #ffe67b,
      #ffc839
    );

  color:
    #3c2a09;

  font-weight: 900;

  box-shadow:
    0 4px 0
    var(--outline);
}


/* HERO */


.hero {
  min-height: 670px;

  display: grid;

  grid-template-columns:
    1.02fr 0.98fr;

  align-items: center;

  gap: 54px;

  padding-block:
    92px 74px;
}


.hero-copy h1,
.section-heading h2,
.how-card h2 {
  font-family:
    var(--font-display);

  margin: 0;
}


.hero-copy h1 {
  max-width: 720px;

  font-size:
    clamp(
      64px,
      8vw,
      112px
    );

  line-height: 0.83;

  letter-spacing:
    -0.055em;

  text-shadow:
    0 7px 0
    rgba(
      23,
      16,
      47,
      0.4
    );
}


.hero-copy h1 span {
  display: block;

  color:
    var(--yellow);
}


.hero-copy > p {
  max-width: 640px;

  margin:
    26px 0 0;

  color:
    var(--text-soft);

  font-size: 18px;

  line-height: 1.7;

  font-weight: 700;
}


.eyebrow-chip {
  display:
    inline-flex;

  align-items: center;

  min-height: 34px;

  margin-bottom: 18px;

  padding:
    6px 12px;

  border:
    2px solid
    var(--outline);

  border-radius:
    999px;

  background:
    var(--green);

  color:
    #14281f;

  font-size: 12px;

  font-weight: 1000;

  letter-spacing:
    0.08em;

  box-shadow:
    0 3px 0
    var(--outline);
}


.eyebrow-chip.pink {
  background:
    var(--pink);

  color:
    #4a1830;
}


.eyebrow-chip.yellow {
  background:
    var(--yellow);

  color:
    #42310a;
}


.eyebrow-chip.green {
  background:
    var(--green);

  color:
    #163426;
}


.eyebrow-chip.blue {
  background:
    var(--blue);

  color:
    #112f45;
}


.hero-actions {
  display: flex;

  flex-wrap: wrap;

  gap: 14px;

  margin-top: 30px;
}


/* BUTTONS */


.cartoon-button,
.mini-button {
  border:
    3px solid
    var(--outline);

  cursor: pointer;

  font-weight: 1000;

  text-transform:
    uppercase;

  letter-spacing:
    0.04em;

  transition:
    transform
    0.12s ease,
    box-shadow
    0.12s ease,
    filter
    0.12s ease;
}


.cartoon-button {
  padding:
    13px 24px;

  border-radius:
    16px;

  box-shadow:
    0 6px 0
    var(--outline);
}


.cartoon-button.large {
  padding:
    15px 28px;

  font-size: 16px;
}


.cartoon-button.primary {
  background:
    linear-gradient(
      #ffe87c,
      #ffc638
    );

  color:
    #3d2a07;
}


.cartoon-button.secondary {
  background:
    linear-gradient(
      #836cff,
      #6348e9
    );

  color:
    var(--white);
}


.cartoon-button:hover,
.mini-button:hover {
  transform:
    translateY(-2px);

  filter:
    brightness(1.04);
}


.cartoon-button:active,
.mini-button:active {
  transform:
    translateY(3px);

  box-shadow:
    0 2px 0
    var(--outline);
}


/* HERO STATS */


.hero-stats {
  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 12px;

  margin-top: 34px;
}


.hero-stat-card {
  padding:
    14px 16px;

  border:
    3px solid
    var(--outline);

  border-radius:
    18px;

  background:
    linear-gradient(
      #473a86,
      #342a69
    );

  box-shadow:
    0 5px 0
    var(--outline);
}


.hero-stat-card.accent {
  background:
    linear-gradient(
      #ff8fc4,
      #ef69a8
    );

  color:
    #3e1730;
}


.hero-stat-card span,
.hud-bubble small,
.card-label,
.result-score span,
.result-details small {
  display: block;

  text-transform:
    uppercase;

  font-size: 11px;

  font-weight: 1000;

  letter-spacing:
    0.08em;

  opacity: 0.82;
}


.hero-stat-card strong {
  display: block;

  margin-top: 3px;

  font-family:
    var(--font-display);

  font-size: 25px;
}


/* HERO ART */


.hero-art {
  position: relative;

  min-height: 500px;

  overflow: hidden;

  border:
    4px solid
    var(--outline);

  border-radius:
    34px;

  background:
    linear-gradient(
      #6fd4ff 0 60%,
      #9de67d 60% 66%,
      #6f4f9f 66% 100%
    );

  box-shadow:
    0 12px 0
    var(--shadow),
    0 28px 70px
    rgba(
      10,
      6,
      28,
      0.38
    );
}


.hero-art::after {
  content: "";

  position: absolute;

  inset: 0;

  pointer-events: none;

  background:
    linear-gradient(
      to bottom,
      rgba(
        255,
        255,
        255,
        0.15
      ),
      transparent 30%
    );
}


.hero-sun {
  position: absolute;

  top: 52px;

  right: 64px;

  width: 92px;

  aspect-ratio: 1;

  border:
    4px solid
    var(--outline);

  border-radius: 50%;

  background:
    var(--yellow);

  box-shadow:
    0 0 0 12px
    rgba(
      255,
      217,
      90,
      0.17
    );
}


.hero-cloud,
.hero-cloud::before,
.hero-cloud::after {
  position: absolute;

  border:
    3px solid
    var(--outline);

  background:
    white;
}


.hero-cloud {
  width: 95px;

  height: 36px;

  border-radius:
    40px;
}


.hero-cloud::before,
.hero-cloud::after {
  content: "";

  bottom: -3px;

  border-radius: 50%;
}


.hero-cloud::before {
  left: 16px;

  width: 40px;

  height: 40px;
}


.hero-cloud::after {
  right: 10px;

  width: 50px;

  height: 50px;
}


.cloud-one {
  top: 95px;

  left: 38px;

  transform:
    scale(0.85);
}


.cloud-two {
  top: 175px;

  right: 42px;

  transform:
    scale(0.62);
}


.hero-hill {
  position: absolute;

  bottom: 148px;

  border:
    4px solid
    var(--outline);

  border-bottom: 0;

  border-radius:
    50% 50% 0 0;
}


.hill-back {
  left: -80px;

  width: 360px;

  height: 150px;

  background:
    #7ac86c;
}


.hill-front {
  right: -120px;

  width: 430px;

  height: 190px;

  background:
    #5dbd68;
}


.hero-track {
  position: absolute;

  left: 0;

  right: 0;

  bottom: 110px;

  height: 44px;

  border-top:
    4px solid
    var(--outline);

  border-bottom:
    4px solid
    var(--outline);

  background:
    repeating-linear-gradient(
      90deg,
      #ffcc5c 0 44px,
      #ffb93f 44px 88px
    );
}


.hero-mascot {
  position: absolute;

  left: 90px;

  bottom: 161px;

  width: 92px;

  height: 92px;

  border:
    5px solid
    var(--outline);

  border-radius:
    24px;

  background:
    var(--green);

  box-shadow:
    inset
    0 -10px 0
    rgba(
      0,
      0,
      0,
      0.07
    ),
    0 9px 0
    rgba(
      23,
      16,
      47,
      0.22
    );

  transform:
    rotate(-10deg);
}


.hero-eye.left {
  left: 22px;

  top: 24px;

  width: 10px;

  height: 13px;
}


.hero-eye.right {
  right: 22px;

  top: 24px;

  width: 10px;

  height: 13px;
}


.hero-smile {
  position: absolute;

  left: 50%;

  bottom: 21px;

  width: 30px;

  height: 14px;

  border-bottom:
    5px solid
    var(--outline);

  border-radius:
    0 0 25px 25px;

  transform:
    translateX(-50%);
}


.hero-obstacle {
  position: absolute;

  bottom: 158px;

  width: 56px;

  border:
    4px solid
    var(--outline);

  border-radius:
    14px 14px 5px 5px;

  background:
    var(--pink);

  box-shadow:
    inset
    0 -8px 0
    rgba(
      0,
      0,
      0,
      0.08
    );
}


.hero-obstacle span {
  position: absolute;

  top: 14px;

  width: 8px;

  height: 10px;

  border-radius:
    50%;

  background:
    var(--outline);
}


.hero-obstacle span:first-child {
  left: 12px;
}


.hero-obstacle span:last-child {
  right: 12px;
}


.obstacle-one {
  right: 130px;

  height: 76px;
}


.obstacle-two {
  right: 50px;

  height: 110px;

  background:
    var(--orange);
}


.hero-star {
  position: absolute;

  color:
    var(--yellow);

  font-size: 34px;

  text-shadow:
    0 3px 0
    var(--outline);
}


.star-one {
  left: 42%;

  top: 36%;

  transform:
    rotate(-12deg);
}


.star-two {
  left: 54%;

  top: 28%;

  transform:
    scale(.7)
    rotate(10deg);
}


/* SECTIONS */


.game-section,
.leaderboard-section,
.info-section,
.how-section {
  padding-block:
    68px;
}


.section-heading {
  display: flex;

  align-items: end;

  justify-content:
    space-between;

  gap: 30px;

  margin-bottom: 26px;
}


.section-heading h2,
.how-card h2 {
  font-size:
    clamp(
      42px,
      5vw,
      68px
    );

  line-height:
    0.95;

  letter-spacing:
    -0.035em;
}


.section-heading > p {
  max-width: 520px;

  margin: 0;

  color:
    var(--text-soft);

  font-size: 16px;

  line-height: 1.65;

  font-weight: 700;
}


/* GAME */


.game-card {
  border:
    4px solid
    var(--outline);

  border-radius:
    30px;

  overflow: hidden;

  background:
    #30265f;

  box-shadow:
    0 10px 0
    var(--shadow),
    0 28px 80px
    rgba(
      10,
      6,
      28,
      0.38
    );
}


.game-topbar,
.game-footer {
  display: flex;

  align-items: center;

  justify-content:
    space-between;

  gap: 20px;

  padding: 14px;

  background:
    linear-gradient(
      #443783,
      #372d6e
    );
}


.game-topbar {
  border-bottom:
    3px solid
    var(--outline);
}


.game-footer {
  border-top:
    3px solid
    var(--outline);
}


.game-hud {
  display: flex;

  gap: 10px;

  flex-wrap: wrap;
}


.hud-bubble {
  display: flex;

  align-items: center;

  gap: 10px;

  min-width: 132px;

  padding:
    9px 13px;

  border:
    3px solid
    var(--outline);

  border-radius:
    17px;

  box-shadow:
    0 4px 0
    var(--outline),
    inset
    0 2px 0
    rgba(
      255,
      255,
      255,
      .15
    );
}


.score-bubble {
  background:
    linear-gradient(
      #ffdf69,
      #ffc53d
    );

  color:
    #3c2b09;
}


.best-bubble {
  background:
    linear-gradient(
      #ff8fc3,
      #ec69a7
    );

  color:
    #3d1630;
}


.speed-bubble {
  background:
    linear-gradient(
      #75dbff,
      #53bff5
    );

  color:
    #123044;
}


.hud-icon {
  display: grid;

  place-items: center;

  width: 34px;

  height: 34px;

  flex:
    0 0 34px;

  border:
    2px solid
    var(--outline);

  border-radius:
    10px;

  background:
    rgba(
      255,
      255,
      255,
      .45
    );

  font-size: 17px;
}


.hud-bubble strong {
  display: block;

  font-family:
    var(--font-display);

  font-size: 23px;

  line-height: 1;
}


.game-status-panel {
  min-width: 160px;

  text-align: right;
}


.game-status-panel > span {
  display:
    inline-block;

  margin-bottom: 7px;

  font-size: 12px;

  font-weight: 1000;

  letter-spacing:
    0.09em;
}


.speed-meter {
  width: 160px;

  height: 14px;

  padding: 2px;

  border:
    2px solid
    var(--outline);

  border-radius:
    999px;

  background:
    #201944;

  overflow: hidden;
}


.speed-meter-fill {
  width: 10%;

  height: 100%;

  border-radius: inherit;

  background:
    linear-gradient(
      90deg,
      var(--green),
      var(--yellow),
      var(--pink)
    );

  transition:
    width .2s ease;
}


/* CANVAS */


.canvas-wrap {
  position: relative;

  width: 100%;

  aspect-ratio:
    16 / 7.6;

  min-height: 380px;

  overflow: hidden;

  background:
    #75d9ff;
}


#gameCanvas {
  display: block;

  width: 100%;

  height: 100%;

  touch-action: none;
}


/* OVERLAYS */


.game-overlay {
  position: absolute;

  inset: 0;

  display: grid;

  place-items: center;

  padding: 20px;

  background:
    rgba(
      22,
      14,
      48,
      0.28
    );

  opacity: 0;

  pointer-events: none;

  transition:
    opacity .18s ease;
}


.game-overlay.visible {
  opacity: 1;

  pointer-events: auto;
}


.overlay-card {
  width:
    min(
      430px,
      92%
    );

  padding: 28px;

  text-align: center;

  border:
    4px solid
    var(--outline);

  border-radius:
    26px;

  background:
    linear-gradient(
      #51459a,
      #3a3074
    );

  box-shadow:
    0 9px 0
    var(--outline),
    0 24px 60px
    rgba(
      22,
      16,
      47,
      .34
    );
}


.overlay-card h3 {
  margin:
    4px 0 8px;

  font-family:
    var(--font-display);

  font-size: 42px;

  line-height: .95;
}


.overlay-card > p:not(.result-kicker) {
  color:
    var(--text-soft);

  line-height: 1.55;

  font-weight: 700;
}


.mascot-preview {
  position: relative;

  width: 82px;

  height: 82px;

  margin:
    0 auto 14px;

  border:
    4px solid
    var(--outline);

  border-radius:
    23px;

  background:
    var(--green);

  box-shadow:
    0 6px 0
    rgba(
      23,
      16,
      47,
      .28
    ),
    inset
    0 -8px 0
    rgba(
      0,
      0,
      0,
      .07
    );

  transform:
    rotate(-5deg);
}


.preview-eye.left {
  left: 20px;

  top: 22px;

  width: 9px;

  height: 12px;
}


.preview-eye.right {
  right: 20px;

  top: 22px;

  width: 9px;

  height: 12px;
}


.preview-mouth {
  position: absolute;

  left: 50%;

  bottom: 19px;

  width: 26px;

  height: 12px;

  border-bottom:
    4px solid
    var(--outline);

  border-radius:
    0 0 18px 18px;

  transform:
    translateX(-50%);
}


.result-kicker {
  margin: 0;

  color:
    var(--yellow);

  font-size: 12px;

  font-weight: 1000;

  letter-spacing:
    .14em;

  text-transform:
    uppercase;
}


.control-hint {
  display: block;

  margin-top: 14px;

  color:
    #cfc7ee;

  font-size: 12px;

  font-weight: 900;

  letter-spacing:
    .05em;
}


.result-face {
  font-size: 56px;

  line-height: 1;

  margin-bottom: 4px;
}


.result-score {
  margin:
    18px 0 12px;

  padding: 12px;

  border:
    3px solid
    var(--outline);

  border-radius:
    18px;

  background:
    linear-gradient(
      #ffe273,
      #ffc83c
    );

  color:
    #3b2908;

  box-shadow:
    0 4px 0
    var(--outline);
}


.result-score strong {
  display: block;

  margin-top: 2px;

  font-family:
    var(--font-display);

  font-size: 40px;

  line-height: 1;
}


.result-details {
  display: grid;

  grid-template-columns:
    1fr 1fr;

  gap: 10px;

  margin-bottom: 20px;
}


.result-details > div {
  padding: 11px;

  border:
    3px solid
    var(--outline);

  border-radius:
    15px;

  background:
    rgba(
      255,
      255,
      255,
      .09
    );
}


.result-details strong {
  display: block;

  margin-top: 3px;

  font-family:
    var(--font-display);

  font-size: 22px;
}


.pause-icon {
  width: 70px;

  height: 70px;

  display: grid;

  place-items: center;

  margin:
    0 auto 12px;

  border:
    4px solid
    var(--outline);

  border-radius:
    22px;

  background:
    var(--blue);

  color:
    #163046;

  font-size: 34px;

  font-weight: 1000;

  box-shadow:
    0 5px 0
    var(--outline);
}


/* GAME FOOTER */


.control-strip,
.game-settings {
  display: flex;

  align-items: center;

  flex-wrap: wrap;

  gap: 10px;
}


.control-strip span {
  color:
    var(--text-soft);

  font-size: 12px;

  font-weight: 800;
}


kbd {
  display:
    inline-flex;

  align-items: center;

  justify-content: center;

  min-width: 27px;

  padding:
    3px 7px;

  margin-right: 3px;

  border:
    2px solid
    var(--outline);

  border-radius:
    7px;

  background:
    #5d50a4;

  color: white;

  box-shadow:
    0 2px 0
    var(--outline);

  font: inherit;

  font-size: 10px;

  font-weight: 1000;
}


.toggle-pill {
  display:
    inline-flex;

  align-items: center;

  gap: 6px;

  padding:
    7px 9px;

  border:
    2px solid
    var(--outline);

  border-radius:
    999px;

  background:
    rgba(
      255,
      255,
      255,
      .07
    );

  font-size: 11px;

  font-weight: 900;
}


.toggle-pill input {
  accent-color:
    var(--green);
}


.mini-button {
  padding:
    7px 11px;

  border-radius:
    999px;

  background:
    var(--yellow);

  color:
    #3f2e08;

  box-shadow:
    0 3px 0
    var(--outline);

  font-size: 11px;
}


/* SIDE CARDS */


.game-side-grid {
  display: grid;

  grid-template-columns:
    1fr 1fr;

  gap: 18px;

  margin-top: 22px;
}


.site-card {
  padding: 24px;

  border:
    3px solid
    var(--outline);

  border-radius:
    var(--radius-lg);

  background:
    linear-gradient(
      #433784,
      #342a69
    );

  box-shadow:
    0 7px 0
    var(--outline);
}


.site-card h3,
.feature-card h3 {
  margin:
    8px 0 10px;

  font-family:
    var(--font-display);

  font-size: 28px;

  line-height: 1;
}


.site-card p,
.feature-card p {
  margin: 0;

  color:
    var(--text-soft);

  line-height: 1.6;

  font-weight: 700;
}


.stat-list {
  display: grid;

  grid-template-columns:
    1fr 1fr;

  gap: 10px;

  margin-top: 18px;
}


.stat-list > div {
  padding: 13px;

  border:
    2px solid
    var(--outline);

  border-radius:
    14px;

  background:
    rgba(
      255,
      255,
      255,
      .07
    );
}


.stat-list span {
  display: block;

  color:
    var(--text-soft);

  font-size: 11px;

  font-weight: 900;

  text-transform:
    uppercase;
}


.stat-list strong {
  display: block;

  margin-top: 3px;

  font-family:
    var(--font-display);

  font-size: 23px;
}


.tip-badges {
  display: flex;

  flex-wrap: wrap;

  gap: 8px;

  margin-top: 18px;
}


.tip-badges span {
  padding:
    7px 10px;

  border:
    2px solid
    var(--outline);

  border-radius:
    999px;

  background:
    var(--pink);

  color:
    #42172f;

  font-size: 11px;

  font-weight: 1000;
}


/* LEADERBOARD */


.podium {
  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 16px;

  margin-bottom: 18px;
}


.podium-card {
  display: flex;

  align-items: center;

  justify-content:
    space-between;

  gap: 16px;

  padding: 18px;

  border:
    3px solid
    var(--outline);

  border-radius:
    20px;

  background:
    linear-gradient(
      #55489b,
      #3c3277
    );

  box-shadow:
    0 6px 0
    var(--outline);
}


.podium-card.primary {
  background:
    linear-gradient(
      #ffe479,
      #ffc941
    );

  color:
    #3a2909;
}


.podium-name {
  font-family:
    var(--font-display);

  font-size: 25px;

  font-weight: 800;
}


.podium-score {
  font-size: 12px;

  font-weight: 900;

  opacity: .76;
}


.podium-rank {
  font-family:
    var(--font-display);

  font-size: 46px;

  font-weight: 800;

  opacity: .85;
}


.table-wrap {
  overflow-x: auto;
}


table {
  width: 100%;

  border-collapse:
    collapse;

  min-width: 720px;
}


th,
td {
  padding:
    14px 12px;

  text-align: left;

  border-bottom:
    2px solid
    rgba(
      255,
      255,
      255,
      .07
    );
}


th {
  color:
    #bdb5dd;

  font-size: 11px;

  text-transform:
    uppercase;

  letter-spacing:
    .08em;
}


td {
  font-weight: 900;
}


.rank-cell {
  color:
    var(--yellow);
}


.player-badge {
  display:
    inline-flex;

  align-items: center;

  gap: 9px;
}


.avatar {
  display:
    inline-grid;

  place-items: center;

  width: 34px;

  height: 34px;

  border:
    2px solid
    var(--outline);

  border-radius:
    10px;

  background:
    var(--green);

  color:
    #173227;

  font-size: 11px;
}


.status-badge {
  display:
    inline-flex;

  padding:
    5px 8px;

  border:
    2px solid
    var(--outline);

  border-radius:
    999px;

  background:
    var(--blue);

  color:
    #123247;

  font-size: 10px;

  font-weight: 1000;

  text-transform:
    uppercase;
}


.status-badge.you {
  background:
    var(--yellow);

  color:
    #3a290a;
}


/* FEATURES */


.feature-grid {
  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 18px;
}


.feature-card {
  padding: 26px;

  border:
    3px solid
    var(--outline);

  border-radius:
    22px;

  box-shadow:
    0 7px 0
    var(--outline);

  color:
    #251c3f;
}


.feature-card p {
  color:
    rgba(
      37,
      28,
      63,
      .76
    );
}


.yellow-card {
  background:
    linear-gradient(
      #ffe680,
      #ffc94b
    );
}


.pink-card {
  background:
    linear-gradient(
      #ff9dcc,
      #f078b5
    );
}


.green-card {
  background:
    linear-gradient(
      #91efbd,
      #69dca1
    );
}


.feature-icon {
  width: 56px;

  height: 56px;

  display: grid;

  place-items: center;

  border:
    3px solid
    var(--outline);

  border-radius:
    16px;

  background:
    rgba(
      255,
      255,
      255,
      .42
    );

  box-shadow:
    0 4px 0
    var(--outline);

  font-size: 27px;
}


/* HOW TO PLAY */


.how-card {
  display: grid;

  grid-template-columns:
    .9fr 1.1fr;

  gap: 34px;

  align-items: center;

  padding: 34px;

  border:
    4px solid
    var(--outline);

  border-radius:
    28px;

  background:
    linear-gradient(
      #493c8c,
      #342a6a
    );

  box-shadow:
    0 8px 0
    var(--outline);
}


.how-card p {
  max-width: 520px;

  color:
    var(--text-soft);

  line-height: 1.7;

  font-weight: 700;
}


.controls-grid {
  display: grid;

  grid-template-columns:
    1fr 1fr;

  gap: 12px;
}


.control-card {
  padding: 16px;

  border:
    3px solid
    var(--outline);

  border-radius:
    17px;

  background:
    rgba(
      255,
      255,
      255,
      .08
    );
}


.control-card strong {
  display: block;

  color:
    var(--yellow);

  font-family:
    var(--font-display);

  font-size: 20px;
}


.control-card span {
  display: block;

  margin-top: 3px;

  color:
    var(--text-soft);

  font-size: 13px;

  font-weight: 800;
}


/* FOOTER */


.site-footer {
  display: flex;

  justify-content:
    space-between;

  align-items: center;

  gap: 20px;

  padding-block:
    40px 54px;

  color:
    var(--text-soft);
}


.site-footer strong {
  display: block;

  color:
    var(--white);

  font-family:
    var(--font-display);

  font-size: 22px;
}


.site-footer a {
  font-weight: 900;

  color:
    var(--yellow);
}


/* SHAKE */


.shake {
  animation:
    gameShake
    .28s ease;
}


@keyframes gameShake {

  0%,
  100% {
    transform:
      translate(
        0,
        0
      )
      rotate(0);
  }

  20% {
    transform:
      translate(
        -6px,
        3px
      )
      rotate(-.3deg);
  }

  40% {
    transform:
      translate(
        6px,
        -3px
      )
      rotate(.3deg);
  }

  60% {
    transform:
      translate(
        -4px,
        2px
      )
      rotate(-.2deg);
  }

  80% {
    transform:
      translate(
        4px,
        -2px
      )
      rotate(.2deg);
  }

}


/* TABLET */


@media (max-width: 980px) {

  .main-nav {
    display: none;
  }


  .site-header {
    justify-content:
      space-between;
  }


  .hero {
    grid-template-columns:
      1fr;

    padding-top:
      70px;
  }


  .hero-art {
    min-height:
      430px;
  }


  .section-heading {
    align-items:
      flex-start;

    flex-direction:
      column;
  }


  .game-topbar,
  .game-footer {
    align-items:
      flex-start;

    flex-direction:
      column;
  }


  .game-status-panel {
    width: 100%;

    text-align: left;
  }


  .speed-meter {
    width: 100%;
  }


  .how-card {
    grid-template-columns:
      1fr;
  }

}


/* MOBILE */


@media (max-width: 760px) {

  .section-shell {
    width:
      min(
        100% - 20px,
        1180px
      );
  }


  .site-header {
    width:
      calc(
        100% - 16px
      );

    margin-top:
      8px;
  }


  .brand-text {
    font-size:
      19px;
  }


  .header-play-button {
    padding:
      9px 12px;

    font-size:
      12px;
  }


  .hero {
    padding-block:
      58px 42px;
  }


  .hero-copy h1 {
    font-size:
      clamp(
        58px,
        19vw,
        86px
      );
  }


  .hero-stats,
  .game-side-grid,
  .podium,
  .feature-grid {
    grid-template-columns:
      1fr;
  }


  .hero-art {
    min-height:
      360px;
  }


  .hero-mascot {
    left: 48px;

    bottom: 143px;

    width: 75px;

    height: 75px;
  }


  .hero-track {
    bottom: 95px;
  }


  .hero-hill {
    bottom: 133px;
  }


  .hero-obstacle {
    bottom: 143px;
  }


  .canvas-wrap {
    aspect-ratio: auto;

    min-height: 470px;
  }


  .game-hud {
    width: 100%;
  }


  .hud-bubble {
    min-width:
      calc(
        50% - 5px
      );

    flex: 1;
  }


  .game-settings,
  .control-strip {
    width: 100%;
  }


  .controls-grid {
    grid-template-columns:
      1fr;
  }


  .how-card {
    padding: 24px;
  }

}


/* SMALL MOBILE */


@media (max-width: 480px) {

  .brand-mark {
    width: 32px;

    height: 32px;

    flex-basis:
      32px;
  }


  .brand-text {
    font-size:
      17px;
  }


  .header-play-button {
    display: none;
  }


  .hero-copy h1 {
    font-size:
      58px;
  }


  .hero-actions {
    flex-direction:
      column;
  }


  .hero-actions .cartoon-button {
    text-align: center;
  }


  .hero-stats {
    grid-template-columns:
      1fr 1fr;
  }


  .hero-stat-card.accent {
    grid-column:
      1 / -1;
  }


  .hero-art {
    min-height:
      310px;
  }


  .hero-sun {
    width: 68px;

    top: 30px;

    right: 30px;
  }


  .hero-cloud {
    transform:
      scale(.55);
  }


  .cloud-one {
    left: 6px;

    top: 75px;
  }


  .cloud-two {
    right: 8px;

    top: 120px;
  }


  .hero-mascot {
    left: 28px;

    bottom: 126px;

    width: 68px;

    height: 68px;
  }


  .hero-track {
    bottom: 80px;

    height: 38px;
  }


  .hero-hill {
    bottom: 115px;
  }


  .hero-obstacle {
    bottom: 126px;

    width: 48px;
  }


  .obstacle-one {
    right: 82px;

    height: 62px;
  }


  .obstacle-two {
    right: 24px;

    height: 88px;
  }


  .section-heading h2,
  .how-card h2 {
    font-size:
      44px;
  }


  .hud-bubble {
    min-width: 100%;
  }


  .overlay-card {
    padding: 22px;
  }


  .overlay-card h3 {
    font-size: 36px;
  }


  .result-details {
    grid-template-columns:
      1fr;
  }


  .stat-list {
    grid-template-columns:
      1fr;
  }

}