@import url("https://fonts.googleapis.com/css2?family=Anton&family=Barlow+Condensed:wght@600;700&family=Inter:wght@400;600;800&display=swap");

:root {
  --orange: #E8A054;
  --beige: #E8D5B7;
  --dark: #0D1117;
  --ember: #E8653F;
  --ember-deep: #C23F2F;
  --ice: #4A9EFF;
  --straw: #D4A738;
  --ink: #07090d;
  --ash: #1b2029;
  --smoke: rgba(232, 213, 183, 0.72);
  --line: rgba(232, 213, 183, 0.16);
  --font-display: "Anton", Impact, sans-serif;
  --font-head: "Barlow Condensed", Arial, sans-serif;
  --font-body: "Inter", Arial, sans-serif;
}

.runner-page {
  min-height: 100vh;
  overflow: hidden;
  background: #0D1117;
  color: var(--beige);
  touch-action: none;
}

.runner-shell {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: #0D1117;
}

#runnerCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.runner-hud {
  position: absolute;
  top: max(12px, env(safe-area-inset-top));
  left: 12px;
  right: 12px;
  z-index: 5;
  display: grid;
  grid-template-columns: 54px 1fr 1fr 46px;
  gap: 8px;
  align-items: center;
  pointer-events: auto;
}

.runner-stat,
.runner-sound {
  min-height: 54px;
  border: 1px solid rgba(232, 213, 183, 0.14);
  border-radius: 8px;
  background: rgba(7, 9, 13, 0.72);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.24);
}

.runner-stat {
  display: grid;
  place-items: center;
  padding: 7px 8px;
  text-align: center;
}

.runner-stat span {
  color: rgba(232, 213, 183, 0.72);
  font: 800 0.7rem/1 var(--font-head);
  text-transform: uppercase;
}

.runner-stat strong {
  color: var(--beige);
  font: 900 1.3rem/1 var(--font-head);
}

.runner-sound {
  color: var(--beige);
  font: 900 1rem/1 var(--font-head);
}

.runner-meter {
  position: absolute;
  left: 12px;
  right: 12px;
  top: calc(max(12px, env(safe-area-inset-top)) + 64px);
  z-index: 4;
  height: 7px;
  overflow: hidden;
  border: 1px solid rgba(232, 213, 183, 0.18);
  border-radius: 999px;
  background: rgba(7, 9, 13, 0.72);
}

.runner-meter span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--straw), var(--orange), var(--ember));
  transition: transform 140ms ease;
}

.runner-panel,
.runner-name {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: max(92px, env(safe-area-inset-bottom));
  z-index: 6;
  max-width: 520px;
  margin: 0 auto;
  padding: 16px;
  border: 1px solid rgba(232, 213, 183, 0.18);
  border-radius: 8px;
  background: rgba(7, 9, 13, 0.88);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.48);
  text-align: center;
  transition: opacity 180ms ease, transform 180ms ease;
}

.runner-panel.is-hidden,
.runner-name.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
}

.runner-panel h1 {
  margin: 3px 0 8px;
  color: var(--beige);
  font: 900 clamp(2.3rem, 13vw, 4.5rem)/0.9 var(--font-head);
  text-transform: uppercase;
}

.runner-panel p {
  margin: 0 auto 12px;
  max-width: 34rem;
  color: rgba(232, 213, 183, 0.9);
}

.runner-guide {
  height: 148px;
  margin: 12px 0;
  overflow: hidden;
  border: 1px solid rgba(232, 213, 183, 0.16);
  border-radius: 8px;
}

#guideRun {
  width: 100%;
  height: 100%;
  display: block;
}

.runner-pills {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}

.runner-pills span {
  padding: 7px 10px;
  border: 1px solid rgba(232, 213, 183, 0.16);
  border-radius: 999px;
  background: rgba(232, 213, 183, 0.06);
  color: rgba(232, 213, 183, 0.82);
  font: 800 0.78rem/1 var(--font-head);
  text-transform: uppercase;
}

.runner-name {
  bottom: auto;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  gap: 12px;
}

.runner-name.is-hidden {
  transform: translateY(calc(-50% + 16px));
}

.runner-name label {
  display: block;
  margin: 4px 0 8px;
  color: var(--beige);
  font-weight: 800;
}

.runner-name input {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid rgba(232, 213, 183, 0.24);
  border-radius: 8px;
  background: rgba(13, 17, 23, 0.94);
  color: var(--beige);
  font: 800 1rem/1 Inter, Arial, sans-serif;
}

.runner-touch {
  position: absolute;
  left: 0;
  right: 0;
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 14px;
  pointer-events: none;
}

.runner-touch button {
  min-height: 56px;
  border: 1px solid rgba(232, 213, 183, 0.14);
  border-radius: 8px;
  background: rgba(7, 9, 13, 0.72);
  color: var(--beige);
  font: 900 1rem/1 var(--font-head);
  pointer-events: auto;
}

.is-playing .runner-touch button:last-child {
  background: rgba(232, 160, 84, 0.88);
  color: #130d09;
}

.game-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.game-link-card {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(232, 213, 183, 0.16);
  border-radius: 8px;
  background: rgba(7, 9, 13, 0.42);
  color: var(--beige);
  text-decoration: none;
}

.game-link-card strong {
  font: 900 1.45rem/0.95 var(--font-head);
  text-transform: uppercase;
}

.game-link-card span {
  color: rgba(232, 213, 183, 0.72);
}

@media (min-width: 761px) {
  .runner-hud {
    left: 18px;
    right: 18px;
    grid-template-columns: 58px 112px 126px 50px;
    justify-content: center;
  }

  .runner-meter {
    left: 50%;
    right: auto;
    width: min(520px, 42vw);
    transform: translateX(-50%);
  }

  .runner-panel {
    bottom: 24px;
  }

  .runner-touch {
    display: none;
  }
}

@media (max-width: 700px) {
  .game-links {
    grid-template-columns: 1fr;
  }
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--dark);
  color: var(--beige);
  font-family: var(--font-body);
}

body {
  min-height: 100%;
  margin: 0;
  background:
    radial-gradient(circle at 50% 112%, rgba(232, 101, 63, 0.35), transparent 34rem),
    radial-gradient(circle at 14% 8%, rgba(74, 158, 255, 0.14), transparent 22rem),
    linear-gradient(180deg, #111722 0%, var(--dark) 46%, #07090d 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.38;
  background-image:
    linear-gradient(rgba(232, 213, 183, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 213, 183, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, black 0%, transparent 76%);
}

a {
  color: inherit;
}

button,
a.button {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font: 800 0.98rem var(--font-body);
  text-decoration: none;
  color: var(--dark);
  background: var(--orange);
  box-shadow: 0 12px 34px rgba(232, 101, 63, 0.22);
}

button.secondary,
a.button.secondary {
  color: var(--beige);
  background: rgba(232, 213, 183, 0.08);
  border: 1px solid var(--line);
  box-shadow: none;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.site-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  min-height: auto;
  display: grid;
  align-content: start;
  gap: 28px;
  padding: 28px 0 24px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.topbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--beige);
  text-decoration: none;
  font: 700 1.1rem var(--font-head);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--dark);
  background: var(--orange);
  font: 400 1.25rem var(--font-display);
}

.brand-logo {
  gap: 7px;
  min-height: 52px;
  border: 1px solid rgba(232, 213, 183, 0.12);
  border-radius: 8px;
  padding: 6px 10px;
  background: rgba(7, 9, 13, 0.46);
}

.brand-logo img {
  display: block;
  width: auto;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
  align-self: center;
}

.brand-logo .brand-logo-hills {
  height: 37px;
}

.brand-logo .brand-logo-fik {
  height: 50px;
  transform: translateY(1px);
}

.brand-logo-word {
  align-self: center;
  color: var(--beige);
  font: 800 1.05rem / 1 var(--font-head);
  text-transform: uppercase;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.64);
  transform: translateY(1px);
}

.brand-logo-word-in {
  font-size: 0.86rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--orange);
  font: 700 1.1rem var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 16px;
  color: var(--beige);
  font: 400 clamp(4rem, 14vw, 11rem) / 0.88 var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 650px;
  color: var(--smoke);
  font-size: clamp(1.05rem, 2.4vw, 1.28rem);
  line-height: 1.55;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
}

.fact {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--beige);
  background: rgba(7, 9, 13, 0.42);
  font: 700 0.98rem var(--font-head);
  text-transform: uppercase;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.meter-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: rgba(7, 9, 13, 0.72);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.32);
}

.meter-panel.is-heating {
  animation: heat-pop 900ms ease both;
}

.panel-kicker {
  margin-bottom: 8px;
  color: var(--orange);
  font: 700 1rem var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.meter-wrap {
  position: relative;
  height: min(56svh, 420px);
  min-height: 300px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(232, 160, 84, 0.25);
  background:
    linear-gradient(180deg, rgba(13, 17, 23, 0.26), rgba(7, 9, 13, 0.88)),
    radial-gradient(circle at 50% 100%, rgba(232, 160, 84, 0.22), transparent 55%);
}

.fire-fill {
  position: absolute;
  inset: auto 0 0;
  height: var(--meter-height, 0%);
  min-height: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(232, 213, 183, 0.95), transparent 16%),
    radial-gradient(circle at 70% 10%, rgba(232, 160, 84, 0.95), transparent 22%),
    linear-gradient(180deg, var(--orange) 0%, var(--ember) 42%, var(--ember-deep) 100%);
  transition: height 420ms ease;
}

.fire-fill::before,
.fire-fill::after {
  position: absolute;
  inset: -34px 0 auto;
  height: 70px;
  content: "";
  background:
    radial-gradient(42px 54px at 15% 70%, var(--orange) 0 58%, transparent 60%),
    radial-gradient(48px 68px at 34% 66%, var(--beige) 0 38%, transparent 40%),
    radial-gradient(42px 58px at 57% 70%, var(--ember) 0 56%, transparent 58%),
    radial-gradient(46px 70px at 79% 64%, var(--orange) 0 52%, transparent 54%);
  filter: blur(0.2px);
  animation: flame 1.7s ease-in-out infinite alternate;
}

.fire-fill::after {
  opacity: 0.62;
  transform: translateX(18px) scaleY(0.86);
  animation-duration: 2.2s;
}

@keyframes flame {
  from {
    transform: translateY(5px) scaleX(1);
  }

  to {
    transform: translateY(-2px) scaleX(1.05);
  }
}

.meter-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: grid;
  align-content: space-between;
  padding: 18px;
}

.meter-number {
  font: 400 clamp(3.8rem, 12vw, 7rem) / 0.88 var(--font-display);
  color: var(--beige);
}

.meter-total {
  color: var(--smoke);
  font-weight: 800;
}

.milestones {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.milestone {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 10px;
  align-items: center;
  color: var(--smoke);
  font-size: 0.9rem;
}

.milestone-bar {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(232, 213, 183, 0.12);
}

.milestone-bar span {
  display: block;
  height: 100%;
  width: var(--milestone-progress, 0%);
  background: var(--straw);
  transition: width 520ms ease;
}

@keyframes heat-pop {
  0% {
    border-color: rgba(232, 213, 183, 0.16);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.32);
  }

  38% {
    border-color: rgba(232, 160, 84, 0.8);
    box-shadow: 0 30px 100px rgba(232, 101, 63, 0.32);
  }

  100% {
    border-color: rgba(232, 213, 183, 0.16);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.32);
  }
}

.section {
  padding: 36px 0 56px;
}

.hero + .section {
  padding-top: 18px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.section h2 {
  margin-bottom: 0;
  font: 700 clamp(2.3rem, 7vw, 4.8rem) / 0.92 var(--font-head);
  text-transform: uppercase;
}

.leaderboard {
  display: grid;
  gap: 8px;
}

.leader-row {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(232, 213, 183, 0.055);
}

.rank {
  color: var(--orange);
  font: 700 1.3rem var(--font-head);
}

.handle {
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 800;
}

.score {
  color: var(--beige);
  font: 700 1.1rem var(--font-head);
  text-transform: uppercase;
}

.share-band {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 26px 0 48px;
}

.status {
  min-height: 22px;
  color: var(--straw);
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.muted {
  color: var(--smoke);
}

.error {
  color: #ffb09c;
}

.dashboard-page {
  padding: 28px 0 44px;
}

.dashboard-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(28px, 6vw, 68px) 0 24px;
}

.dashboard-head h1 {
  margin-bottom: 0;
  font-size: clamp(3.8rem, 11vw, 8.4rem);
}

.dashboard-head .status {
  max-width: 36ch;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
  gap: 16px;
  align-items: start;
}

.dashboard-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: rgba(7, 9, 13, 0.72);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.22);
}

.dashboard-card-main {
  grid-column: 1;
  grid-row: 1;
}

.dashboard-card-tall {
  grid-column: 2;
  grid-row: 1 / span 4;
}

.dashboard-card-play,
.dashboard-card-starter {
  grid-column: 1;
}

.dashboard-card-play {
  grid-row: 2;
}

.dashboard-card-starter {
  grid-row: 3;
}

.dashboard-card-share {
  grid-column: 1 / -1;
  grid-row: 5;
}

.dashboard-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.dashboard-card h2 {
  margin-bottom: 0;
  font: 700 clamp(2.2rem, 6vw, 4.4rem) / 0.9 var(--font-head);
  text-transform: uppercase;
}

.dashboard-pill {
  flex: 0 0 auto;
  border: 1px solid rgba(232, 160, 84, 0.36);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--orange);
  background: rgba(232, 160, 84, 0.08);
  font: 800 0.88rem var(--font-body);
}

.dashboard-fire {
  height: 92px;
  overflow: hidden;
  margin: 18px 0;
  border: 1px solid rgba(232, 160, 84, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(232, 160, 84, 0.06), rgba(74, 158, 255, 0.08)),
    rgba(232, 213, 183, 0.04);
}

.dashboard-fire span {
  display: block;
  width: var(--meter-width, 0%);
  height: 100%;
  background:
    radial-gradient(circle at 20% 100%, rgba(232, 213, 183, 0.86), transparent 24px),
    radial-gradient(circle at 52% 92%, rgba(232, 160, 84, 0.92), transparent 38px),
    linear-gradient(90deg, var(--ember-deep), var(--orange), var(--ice));
  box-shadow: 0 0 28px rgba(232, 101, 63, 0.38);
  transition: width 420ms ease;
}

.dashboard-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--smoke);
}

.dashboard-line strong {
  color: var(--beige);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.metric {
  min-width: 0;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.metric span {
  display: block;
  margin-bottom: 6px;
  color: var(--smoke);
  font-size: 0.78rem;
}

.metric strong {
  color: var(--beige);
  font: 700 clamp(1.45rem, 4vw, 2.4rem) / 1 var(--font-head);
  overflow-wrap: anywhere;
}

.dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.dashboard-cta-card {
  display: grid;
  gap: 12px;
}

.dashboard-cta-card h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.dashboard-cta-card p {
  margin-bottom: 0;
}

.dashboard-card-share {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.dashboard-card-share .dashboard-actions {
  justify-content: end;
  margin-top: 0;
}

.leaderboard.compact {
  margin-top: 14px;
}

.leaderboard.compact .leader-row {
  grid-template-columns: 42px minmax(0, 1fr) auto;
  padding: 11px 0;
}

.game-page {
  min-height: 100svh;
  overflow: hidden;
  background: var(--dark);
  touch-action: none;
  user-select: none;
}

.game-shell {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
}

#gameCanvas {
  position: fixed;
  inset: 0;
  display: block;
  width: 100vw;
  height: 100svh;
}

.game-hud {
  position: fixed;
  inset: 14px 14px auto;
  z-index: 4;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  pointer-events: none;
}

.game-brand {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--beige);
  text-decoration: none;
  background: rgba(7, 9, 13, 0.72);
  pointer-events: auto;
}

.game-brand span:last-child {
  font: 700 0.98rem var(--font-head);
  text-transform: uppercase;
}

.game-app-icon {
  width: 54px;
  height: 54px;
  min-width: 54px;
  min-height: 54px;
  padding: 0;
  overflow: hidden;
  border-radius: 13px;
  background: #050505;
}

.game-app-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-brand-logo {
  gap: 5px;
  min-height: 52px;
  padding: 6px 8px;
}

.game-brand-logo img {
  height: 27px;
}

.game-brand-logo .brand-logo-hills {
  height: 30px;
}

.game-brand-logo .brand-logo-fik {
  height: 27px;
}

.game-brand-logo .brand-logo-word {
  font-size: 0.88rem;
}

.game-brand-logo .brand-logo-word-in {
  font-size: 0.72rem;
}

.game-stats {
  justify-self: center;
  display: grid;
  grid-template-columns: repeat(3, minmax(76px, 110px));
  gap: 8px;
}

.game-stats div {
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(7, 9, 13, 0.74);
  text-align: center;
}

.game-stats span {
  display: block;
  margin-bottom: 2px;
  color: var(--smoke);
  font: 700 0.72rem var(--font-body);
  text-transform: uppercase;
}

.game-stats strong {
  color: var(--beige);
  font: 700 1.45rem / 1 var(--font-head);
}

.icon-button {
  width: 48px;
  min-height: 48px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--beige);
  background: rgba(7, 9, 13, 0.74);
  box-shadow: none;
  pointer-events: auto;
}

.game-panel {
  position: fixed;
  left: 50%;
  bottom: clamp(96px, 13svh, 148px);
  z-index: 5;
  width: min(520px, calc(100% - 28px));
  transform: translateX(-50%);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: rgba(7, 9, 13, 0.84);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  text-align: center;
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.game-panel.is-hidden {
  visibility: hidden;
  opacity: 0;
  transform: translate(-50%, 14px);
}

.game-panel h1 {
  margin-bottom: 8px;
  font-size: clamp(2.8rem, 10vw, 5.2rem);
}

.panel-eyebrow {
  display: none;
}

.game-panel h1.panel-title-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(4px, 1vw, 7px);
  width: 100%;
  margin: 4px auto 12px;
  color: var(--beige);
  font: 900 clamp(0.88rem, 2.3vw, 1.08rem) / 1 var(--font-head);
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

.panel-title-logo img {
  display: block;
  width: auto;
  height: clamp(54px, 10.5vw, 76px);
  object-fit: contain;
  filter: drop-shadow(0 5px 14px rgba(0, 0, 0, 0.58));
}

.panel-title-logo .panel-logo-hills {
  height: clamp(54px, 10.5vw, 76px);
}

.panel-title-logo .panel-logo-fik {
  height: clamp(54px, 10.5vw, 76px);
}

.panel-title-logo span {
  align-self: center;
  transform: translateY(1px);
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.68);
}

.panel-title-logo .panel-title-in {
  color: var(--orange);
  font-size: 0.94em;
  font-weight: 900;
  text-transform: uppercase;
}

.panel-tagline {
  margin: 0 auto 8px;
  color: var(--orange);
  font: 700 clamp(1.05rem, 3vw, 1.3rem) / 1.05 var(--font-head);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.game-panel p:not(.eyebrow, .status) {
  margin-inline: auto;
  max-width: 420px;
  color: var(--smoke);
  line-height: 1.45;
}

.game-guide {
  width: min(100%, 430px);
  aspect-ratio: 16 / 7;
  margin: 14px auto 16px;
  overflow: hidden;
  border: 1px solid rgba(232, 160, 84, 0.22);
  border-radius: 8px;
  background: rgba(7, 9, 13, 0.72);
}

.game-guide canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.game-panel .actions {
  justify-content: center;
}

.throw-meter {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 4;
  width: min(460px, calc(100% - 148px));
  height: 12px;
  overflow: hidden;
  border: 1px solid rgba(232, 213, 183, 0.24);
  border-radius: 999px;
  background: rgba(7, 9, 13, 0.78);
  transform: translateX(-50%);
  pointer-events: none;
}

.throw-meter span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--ice), var(--orange), var(--ember));
  transform: scaleX(0);
  transform-origin: left;
}

.touch-pad {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 4;
  width: 112px;
  min-height: 64px;
  padding: 0 12px;
  color: var(--dark);
  background: var(--orange);
  pointer-events: auto;
  touch-action: none;
}

.touch-pad span {
  overflow-wrap: anywhere;
}

.game-page .brand-mark {
  flex: 0 0 auto;
}

@media (pointer: fine) and (min-width: 761px) {
  .touch-pad {
    display: none;
  }

  .throw-meter {
    width: min(520px, calc(100% - 48px));
  }
}

.game-missing {
  width: min(680px, calc(100% - 32px));
  min-height: 100svh;
  margin: 0 auto;
  display: grid;
  place-items: center;
  text-align: center;
}

.game-missing h1 {
  font-size: clamp(3.2rem, 14vw, 6.5rem);
}

@media (max-width: 760px) {
  .site-shell {
    width: min(100% - 24px, 640px);
  }

  .hero {
    min-height: auto;
    padding-top: 18px;
  }

  .hero-grid,
  .share-band {
    grid-template-columns: 1fr;
  }

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

  .topbar-actions {
    width: 100%;
  }

  .brand-logo {
    width: 100%;
    justify-content: center;
    gap: 6px;
  }

  .brand-logo img {
    height: 26px;
  }

  .brand-logo .brand-logo-hills {
    height: 29px;
  }

  .brand-logo .brand-logo-fik {
    height: 40px;
  }

  .brand-logo-word {
    font-size: 0.86rem;
  }

  .brand-logo-word-in {
    font-size: 0.7rem;
  }

  .meter-panel {
    padding: 12px;
  }

  .meter-wrap {
    height: 58svh;
    min-height: 330px;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .actions,
  .share-band button,
  .share-band .button {
    width: 100%;
  }

  button,
  a.button {
    width: 100%;
  }

  .dashboard-page {
    width: min(100% - 24px, 640px);
  }

  .dashboard-head {
    align-items: start;
    flex-direction: column;
    padding-top: 28px;
  }

  .dashboard-head .status {
    max-width: 100%;
  }

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

  .dashboard-card-main,
  .dashboard-card-tall {
    grid-column: auto;
    grid-row: auto;
  }

  .dashboard-card-play,
  .dashboard-card-starter,
  .dashboard-card-share {
    grid-column: auto;
  }

  .dashboard-line,
  .dashboard-card-head {
    align-items: start;
    flex-direction: column;
  }

  .dashboard-card-share {
    grid-template-columns: 1fr;
  }

  .dashboard-card-share .dashboard-actions {
    justify-content: stretch;
    margin-top: 2px;
  }

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

  .game-hud {
    inset: 10px 10px auto;
    width: auto;
    grid-template-columns: 1fr auto;
  }

  .game-brand {
    padding: 6px;
  }

  .game-app-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    padding: 0;
    border-radius: 12px;
  }

  .game-brand-logo {
    width: auto;
    max-width: max-content;
    min-height: 42px;
    gap: 3px;
    justify-self: start;
  }

  .game-brand-logo img {
    height: 16px;
  }

  .game-brand-logo .brand-logo-hills {
    height: 18px;
  }

  .game-brand-logo .brand-logo-fik {
    height: 16px;
  }

  .game-brand-logo .brand-logo-word {
    font-size: 0.62rem;
  }

  .game-brand-logo .brand-logo-word-in {
    font-size: 0.54rem;
  }

  .game-stats {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    order: 3;
  }

  .game-stats div {
    min-width: 0;
    min-height: 48px;
    padding: 7px 6px;
    overflow: hidden;
  }

  .game-stats strong {
    font-size: 1.25rem;
    overflow-wrap: anywhere;
  }

  .icon-button {
    justify-self: end;
    width: 48px;
  }

  .game-panel {
    left: 8px;
    right: 8px;
    width: auto;
    max-width: none;
    bottom: 88px;
    padding: 14px;
    transform: none;
  }

  .game-panel.is-hidden {
    transform: translateY(14px);
  }

  .game-panel h1 {
    font-size: clamp(2.3rem, 13vw, 3.5rem);
  }

  .game-panel h1.panel-title-logo {
    gap: 3px;
    width: calc(100% + 8px);
    margin-left: -4px;
    margin-right: -4px;
    margin-bottom: 8px;
    font-size: 0.66rem;
  }

  .panel-tagline {
    margin-bottom: 8px;
    font-size: 1.02rem;
  }

  .panel-title-logo img {
    height: clamp(44px, 13vw, 56px);
  }

  .panel-title-logo .panel-logo-hills {
    height: clamp(44px, 13vw, 56px);
  }

  .panel-title-logo .panel-logo-fik {
    height: clamp(44px, 13vw, 56px);
  }

  .game-panel p:not(.eyebrow, .status) {
    font-size: 0.94rem;
    line-height: 1.36;
  }

  .game-guide {
    aspect-ratio: 16 / 6.8;
    margin: 10px auto 12px;
  }

  .throw-meter {
    left: 16px;
    right: 140px;
    width: auto;
    transform: none;
  }

  .touch-pad {
    width: 112px;
  }
}
