@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@700;800;900&family=DM+Sans:wght@400;500;600;700&display=swap");
:root {
  font-family: "DM Sans", system-ui, sans-serif;
  color: #fff9f0;
  background: #07070d;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid #ffa754;
  outline-offset: 5px;
}
[hidden] {
  display: none !important;
}
header {
  height: 78px;
  max-width: 1480px;
  margin: auto;
  padding: 0 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  color: #fff9f0;
  font-size: 24px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -1px;
}
.brand img {
  width: 39px;
  height: 39px;
  object-fit: contain;
  margin-right: 10px;
}
.brand span {
  opacity: 0.45;
}
nav {
  display: flex;
  gap: 26px;
  align-items: center;
}
nav a,
footer a {
  color: #a6a2b6;
  text-decoration: none;
  font-size: 12px;
}
nav a:hover,
footer a:hover {
  color: #fff9f0;
}
.nav-pill {
  font-size: 10px;
  letter-spacing: 2px;
  border: 1px solid #ffffff20;
  padding: 9px 13px;
  border-radius: 50px;
  color: #ffad67;
}
#arena {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  height: min(780px, calc(100svh - 135px));
  min-height: 580px;
  margin: 0 24px;
  border: 1px solid #ffffff13;
  border-radius: 18px;
  background:
    radial-gradient(ellipse at 74% 46%, #32204b88, transparent 57%),
    radial-gradient(ellipse at 35% 120%, #152d4670, transparent 70%), #090914;
}
#space {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  touch-action: none;
  outline: none;
}
.orbit-label {
  position: absolute;
  top: 24px;
  left: 30px;
  font:
    9px ui-monospace,
    monospace;
  letter-spacing: 2px;
  color: #79748b;
  pointer-events: none;
}
.orbit-label span {
  margin-left: 30px;
  color: #4c485d;
}
.overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
}
.intro-copy {
  position: absolute;
  left: 7%;
  top: 13%;
  z-index: 2;
  width: 48%;
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.4px;
}
.orange {
  color: #ff9b54;
}
h1 {
  font-family: "Barlow Condensed", Impact, "Arial Narrow", sans-serif;
  font-size: clamp(90px, 10vw, 160px);
  line-height: 0.83;
  letter-spacing: -3px;
  margin: 23px 0 24px;
  font-weight: 900;
}
h1 em {
  font-style: normal;
  color: #ff8a3c;
}
.lead {
  font-size: 17px;
  color: #bcb5ca;
  line-height: 1.6;
}
.instructions {
  display: flex;
  gap: 18px;
  margin: 27px 0;
  font-size: 11px;
  color: #d6cedf;
}
.instructions b {
  display: block;
  font:
    10px ui-monospace,
    monospace;
  color: #ff995d;
  margin-bottom: 6px;
}
.primary {
  border: 1px solid #ffb477;
  background: #ff8a3c;
  color: #1f100a;
  border-radius: 9px;
  padding: 17px 28px;
  min-height: 54px;
  letter-spacing: 1.4px;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 8px 35px #ff752a20;
  transition:
    transform 0.15s,
    background 0.15s;
}
.primary:hover {
  transform: translateY(-2px);
  background: #ffac6c;
}
.controls {
  font:
    9px ui-monospace,
    monospace;
  letter-spacing: 1px;
  color: #888199;
  margin-top: 16px;
}
.controls i,
.intro-bottom i {
  font-style: normal;
  margin: 0 8px;
  color: #ff8a3c;
}
.touch-controls {
  display: none;
}
#load-status {
  color: #bcadb9;
  font-size: 11px;
}
.hero-art {
  position: absolute;
  left: 49%;
  right: 3%;
  top: 8%;
  bottom: 13%;
  pointer-events: none;
}
.hero-chonk {
  position: absolute;
  object-fit: contain;
  width: 85%;
  height: 85%;
  left: 5%;
  top: 5%;
  filter: drop-shadow(0 18px 35px #ff863b20);
  animation: float 6s ease-in-out infinite;
  transform: rotate(-12deg);
}
.planet-orbit {
  position: absolute;
  top: 13%;
  left: 0;
  width: 100%;
  height: 75%;
  border: 1px solid #b893ee20;
  border-radius: 50%;
  transform: rotate(-30deg);
}
.orbit-two {
  transform: rotate(38deg);
  width: 108%;
  height: 65%;
  top: 20%;
  left: -6%;
  border-style: dashed;
}
.star {
  position: absolute;
  color: #fdc89a;
  font-size: 45px;
}
.cross-one {
  left: 18%;
  top: 3%;
}
.cross-two {
  right: 8%;
  bottom: 9%;
  font-size: 26px;
}
.hero-tag {
  position: absolute;
  bottom: 5%;
  left: 20%;
  font:
    8px ui-monospace,
    monospace;
  letter-spacing: 2px;
  color: #bdb0cf;
}
.satellite {
  position: absolute;
  text-align: center;
  animation: float 7s ease-in-out infinite reverse;
}
.satellite img {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border: 4px solid #d7b48a;
  border-radius: 50%;
  box-shadow:
    0 0 0 5px #b08a6330,
    0 14px 30px #0008;
}
.satellite span {
  display: block;
  margin-top: 10px;
  font:
    10px ui-monospace,
    monospace;
  letter-spacing: 1px;
  color: #ddd0ef;
}
.sat-one {
  right: 0;
  top: 9%;
  transform: rotate(15deg);
}
.sat-two {
  left: 1%;
  bottom: 16%;
  transform: rotate(-15deg);
}
.sat-two img {
  width: 45px;
  height: 45px;
}
.sat-three {
  left: 17%;
  top: 0;
}
.sat-three img {
  width: 48px;
  height: 48px;
}
.intro-bottom {
  position: absolute;
  bottom: 68px;
  left: 7%;
  right: 7%;
  display: flex;
  justify-content: space-between;
  color: #82798f;
  font:
    9px ui-monospace,
    monospace;
  letter-spacing: 1px;
}
.utility {
  position: absolute;
  z-index: 5;
  bottom: 15px;
  left: 25px;
  right: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}
#data-status {
  font:
    9px ui-monospace,
    monospace;
  letter-spacing: 0.7px;
  color: #b7a0bf;
}
.utility button {
  pointer-events: auto;
}
.icon-btn {
  background: #171322aa;
  border: 1px solid #ffffff20;
  border-radius: 8px;
  min-width: 40px;
  min-height: 40px;
  color: #c8bdd3;
  font-size: 12px;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 42px;
  font:
    9px ui-monospace,
    monospace;
  letter-spacing: 1px;
  color: #716b80;
}
footer a {
  font: inherit;
}
.hud-top {
  position: absolute;
  top: 25px;
  left: 30px;
  right: 25px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}
.hud-top .eyebrow {
  display: block;
  color: #ada2bd;
  font-size: 9px;
}
.score-block strong,
.clock strong {
  display: block;
  font:
    800 36px "Barlow Condensed",
    Impact,
    sans-serif;
  letter-spacing: 1px;
}
.clock {
  text-align: center;
}
#combo {
  font-size: 10px;
  color: #ffb56d;
  letter-spacing: 1px;
}
.hud-right {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.hud-right button {
  pointer-events: auto;
}
#hearts {
  color: #ff9b68;
  font-size: 20px;
  letter-spacing: 3px;
  white-space: nowrap;
}
.appetite {
  position: absolute;
  bottom: 70px;
  width: 260px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}
.appetite > div {
  display: flex;
  justify-content: space-between;
  font:
    9px ui-monospace,
    monospace;
  margin-bottom: 9px;
  letter-spacing: 1px;
}
#next {
  color: #baa9cd;
  max-width: 140px;
  text-align: right;
}
progress {
  appearance: none;
  width: 100%;
  height: 6px;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff15;
}
progress::-webkit-progress-bar {
  background: #ffffff15;
}
progress::-webkit-progress-value {
  background: #ff954b;
  border-radius: 10px;
}
progress::-moz-progress-bar {
  background: #ff954b;
}
.dash {
  position: absolute;
  right: 30px;
  bottom: 80px;
  width: 74px;
  height: 74px;
  background: #ff944514;
  border: 1px solid #ffac6950;
  color: #ffb676;
  border-radius: 50%;
  touch-action: none;
}
.dash span {
  font-size: 24px;
  display: block;
}
.dash b {
  font-size: 9px;
  letter-spacing: 1px;
  display: block;
}
.dash small {
  display: block;
  font-size: 7px;
  opacity: 0.6;
  margin-top: 2px;
}
.dash:disabled {
  opacity: 0.5;
  cursor: default;
}
#joystick {
  position: absolute;
  border: 1px solid #ffd3a955;
  border-radius: 50%;
  width: 100px;
  height: 100px;
  background: #ffffff06;
  display: none;
  pointer-events: none;
}
#joystick i {
  position: absolute;
  left: 30px;
  top: 30px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffad6b70;
}
#toast {
  position: absolute;
  top: 24%;
  left: 15%;
  right: 15%;
  text-align: center;
  pointer-events: none;
  font:
    800 30px "Barlow Condensed",
    Impact,
    sans-serif;
  letter-spacing: 1px;
  color: #ffcc8c;
  text-shadow: 0 2px 15px #000;
}
.modal {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: #080812c9;
  backdrop-filter: blur(12px);
  z-index: 6;
  overflow: auto;
}
.panel {
  width: 460px;
  max-width: 100%;
  text-align: center;
  padding: 30px;
  border: 1px solid #ffffff18;
  background: linear-gradient(145deg, #21182d, #11111b);
  border-radius: 20px;
  box-shadow: 0 25px 100px #0008;
}
.panel h2 {
  font:
    800 48px/0.95 "Barlow Condensed",
    Impact,
    sans-serif;
  margin: 16px 0;
}
.panel p {
  color: #b9acc6;
  font-size: 13px;
}
.panel .eyebrow {
  font-size: 10px;
  color: #ffac6c;
}
.panel .primary,
.panel .secondary {
  width: 100%;
  margin-top: 12px;
}
.secondary {
  padding: 15px;
  border: 1px solid #ffffff25;
  border-radius: 9px;
  background: transparent;
  color: #fff9f0;
  font-size: 11px;
  letter-spacing: 1px;
}
.text-btn {
  border: 0;
  background: none;
  color: #bdaec8;
  font-size: 11px;
  margin-top: 20px;
}
.final-score {
  font:
    800 72px "Barlow Condensed",
    Impact,
    sans-serif;
  color: #ffb06e;
  line-height: 1;
}
.stats {
  display: flex;
  justify-content: space-around;
  border-block: 1px solid #ffffff12;
  padding: 18px 0;
  margin: 20px 0;
}
.stats strong {
  display: block;
  font:
    700 25px "Barlow Condensed",
    Impact,
    sans-serif;
}
.stats span {
  font-size: 10px;
  color: #b7a9c5;
}
#record {
  color: #ffb56e;
  font-size: 11px;
}
details {
  margin-top: 24px;
  text-align: left;
  font-size: 12px;
}
summary {
  cursor: pointer;
  color: #e6d5ed;
}
#roster {
  max-height: 155px;
  overflow: auto;
}
#roster a {
  display: flex;
  justify-content: space-between;
  text-decoration: none;
  color: #c8b6d5;
  padding: 7px 0;
  border-bottom: 1px solid #ffffff0a;
}
#roster .edible {
  color: #add8b3;
}
.data-note {
  font-size: 9px !important;
  line-height: 1.6;
}
body.playing .orbit-label {
  display: none;
}
@keyframes float {
  50% {
    translate: 0 -14px;
  }
}
@media (pointer: coarse) {
  .desktop-controls {
    display: none;
  }
  .touch-controls {
    display: block;
  }
  .dash small {
    display: none;
  }
}
@media (min-width: 1600px) {
  #arena {
    max-width: 1432px;
    margin-inline: auto;
  }
}
@media (max-width: 700px) {
  header {
    height: 62px;
    padding: 0 20px;
  }
  .brand {
    font-size: 21px;
  }
  .brand img {
    width: 31px;
    height: 31px;
  }
  nav {
    gap: 12px;
  }
  nav a {
    font-size: 10px;
  }
  .nav-pill {
    font-size: 8px;
    padding: 7px 9px;
    letter-spacing: 1px;
  }
  #arena {
    margin: 0 9px;
    border-radius: 13px;
    min-height: 650px;
    height: calc(100svh - 118px);
  }
  .orbit-label {
    top: 18px;
    left: 18px;
    font-size: 7px;
    letter-spacing: 1px;
  }
  .orbit-label span {
    display: none;
  }
  .intro-copy {
    top: 8%;
    left: 7%;
    width: 88%;
  }
  .intro-copy .eyebrow {
    font-size: 8px;
    letter-spacing: 1.5px;
  }
  h1 {
    font-size: 92px;
    margin: 20px 0;
    letter-spacing: -1px;
  }
  .lead {
    font-size: 13px;
    width: 65%;
  }
  .hero-art {
    left: 43%;
    right: -10%;
    top: 13%;
    bottom: 36%;
    opacity: 0.9;
    z-index: -1;
  }
  .hero-chonk {
    width: 110%;
    height: 110%;
    left: -5%;
    top: 0;
  }
  .hero-tag,
  .sat-one,
  .cross-two {
    display: none;
  }
  .sat-two {
    bottom: 2%;
    left: 8%;
  }
  .sat-three {
    top: 10%;
    left: 30%;
  }
  .satellite img {
    width: 38px !important;
    height: 38px !important;
  }
  .satellite span {
    font-size: 8px;
  }
  .instructions {
    margin: 32px 0 22px;
    gap: 20px;
    font-size: 10px;
  }
  .primary {
    width: 100%;
  }
  .controls {
    font-size: 8px;
    letter-spacing: 0.4px;
    text-align: center;
  }
  .intro-bottom {
    bottom: 75px;
    font-size: 8px;
    gap: 16px;
    flex-direction: column;
  }
  .utility {
    left: 17px;
    right: 14px;
  }
  #data-status {
    font-size: 8px;
    max-width: 240px;
    line-height: 1.5;
  }
  footer {
    padding: 15px 20px;
    font-size: 8px;
  }
  footer > span:first-child {
    display: none;
  }
  .hud-top {
    left: 18px;
    right: 15px;
    top: 20px;
  }
  .score-block strong,
  .clock strong {
    font-size: 30px;
  }
  .hud-right {
    gap: 6px;
  }
  #hearts {
    font-size: 15px;
    letter-spacing: 0;
  }
  .appetite {
    width: 190px;
    bottom: 77px;
    left: 20px;
    transform: none;
  }
  .appetite > div {
    font-size: 8px;
  }
  .dash {
    right: 18px;
    bottom: 68px;
    width: 66px;
    height: 66px;
  }
  .panel {
    padding: 24px;
  }
  .panel h2 {
    font-size: 40px;
  }
  .modal {
    padding: 16px;
  }
  #toast {
    font-size: 24px;
    left: 8%;
    right: 8%;
  }
}
@media (max-height: 600px) and (min-width: 600px) {
  header {
    height: 50px;
  }
  #arena {
    min-height: 320px;
    height: calc(100svh - 90px);
    margin: 0 12px;
  }
  .orbit-label {
    display: none;
  }
  .intro-copy {
    top: 4%;
    left: 6%;
  }
  .intro-copy .eyebrow {
    font-size: 8px;
  }
  h1 {
    font-size: 75px;
    margin: 10px 0;
  }
  .lead {
    font-size: 12px;
    margin: 8px 0;
  }
  .instructions {
    margin: 12px 0;
    gap: 20px;
  }
  .instructions b {
    display: inline;
    margin-right: 5px;
  }
  .primary {
    padding: 10px 20px;
    min-height: 40px;
  }
  .controls {
    margin: 9px 0;
  }
  .intro-bottom {
    display: none;
  }
  .hero-art {
    top: 3%;
    bottom: 7%;
  }
  .utility {
    bottom: 8px;
  }
  .icon-btn {
    min-height: 32px;
  }
  .hud-top {
    top: 12px;
  }
  .appetite {
    bottom: 50px;
  }
  .dash {
    bottom: 48px;
    width: 60px;
    height: 60px;
  }
  .modal {
    align-items: flex-start;
    padding: 12px;
  }
  .panel {
    padding: 16px;
    width: 520px;
  }
  .panel h2 {
    font-size: 32px;
    margin: 8px;
  }
  .final-score {
    font-size: 42px;
  }
  .stats {
    margin: 8px 0;
    padding: 8px;
  }
  .panel p {
    margin: 8px 0;
  }
  .result-panel .primary,
  .result-panel .secondary {
    width: 48%;
    margin-inline: 0.5%;
  }
  footer {
    padding: 12px 25px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
@media (min-width: 701px) and (min-height: 601px) and (max-height: 820px) {
  .intro-copy {
    top: 9%;
  }
  h1 {
    font-size: clamp(85px, 12vh, 112px);
    margin: 16px 0;
  }
  .lead {
    font-size: 14px;
    margin: 12px 0;
  }
  .instructions {
    margin: 20px 0;
  }
  .controls {
    margin-top: 12px;
  }
  .intro-bottom {
    bottom: 65px;
  }
}
@media (max-width: 700px) {
  .hero-art {
    left: 56%;
    right: -7%;
    top: 20%;
    bottom: auto;
    height: 230px;
  }
  .hero-chonk {
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
  }
  .sat-two {
    bottom: 0;
    left: 4%;
  }
  .sat-three {
    top: 0;
    left: 12%;
  }
  .cross-one {
    display: none;
  }
}
#hud {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.dash {
  pointer-events: auto;
}
@media (max-width: 700px) {
  .intro-copy .lead {
    width: 58%;
  }
  .hero-art .satellite {
    display: none;
  }
  body.playing #arena {
    min-height: 0;
    height: calc(100svh - 118px);
  }
}
@media (max-width: 420px) {
  header { padding-inline: 12px; }
  nav { gap: 9px; }
  .nav-pill { display: none; }
}
