:root {
  font-family: Arial, Helvetica, sans-serif;
  color: #fff;
  font-size: 16px;
  color-scheme: dark;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  overflow: hidden;
  background: #9fc5de;
  overscroll-behavior: none;
  user-select: none;
}
button {
  font: inherit;
  cursor: pointer;
  color: inherit;
  border: 0;
  touch-action: manipulation;
  transition:
    filter 0.12s,
    transform 0.12s;
}
button:hover {
  filter: brightness(1.12);
}
button:focus-visible {
  outline: 3px solid #e7ff7c;
  outline-offset: 4px;
}
button:active {
  transform: translateY(3px);
}
button:disabled {
  filter: grayscale(0.7);
  opacity: 0.5;
  cursor: default;
}
h1,
h2,
p {
  margin: 0;
}
canvas#world {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 130px #14233538;
  z-index: -1;
}
.topbar {
  position: fixed;
  top: max(18px, env(safe-area-inset-top));
  left: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}
.topbar > * {
  pointer-events: auto;
}
.brand {
  display: flex;
  gap: 11px;
  align-items: center;
}
.brand-icon {
  width: 44px;
  height: 49px;
  transform: skew(-7deg);
  border: 3px solid #122031;
  background: #bdff48;
  box-shadow: 3px 4px 0 #122031;
  color: #162335;
  font-size: 25px;
  font-weight: 900;
  letter-spacing: -5px;
  padding: 1px 5px;
}
.brand-icon span {
  position: relative;
  top: 14px;
  color: #f7fff2;
}
.brand h1 {
  font-size: 29px;
  line-height: 0.95;
  letter-spacing: -1.6px;
  font-style: italic;
  font-weight: 1000;
  -webkit-text-stroke: 1px #142132;
  paint-order: stroke fill;
  text-shadow: 2px 3px 0 #142132;
}
.brand h1 em {
  color: #bcff56;
  font-style: normal;
}
.brand p {
  font-size: 10px;
  letter-spacing: 3px;
  font-weight: 800;
  margin-top: 8px;
  text-shadow: 1px 1px 3px #112335;
}
.brand b {
  margin-left: 8px;
  font-size: 9px;
  background: #132132cf;
  border: 1px solid #ffffff38;
  padding: 4px 6px;
  color: #d4ff8c;
  letter-spacing: 1px;
}
.wallet {
  margin-left: auto;
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 183px;
  padding: 8px 10px;
  background: #142032ec;
  border: 2px solid #41526a;
  box-shadow: 0 4px 0 #10192777;
  border-radius: 10px;
}
.coin {
  color: #ffe16a;
  width: 34px;
  height: 34px;
  border: 3px solid #bf8c27;
  border-radius: 8px;
  text-align: center;
  font-size: 26px;
  line-height: 29px;
  background: #7b5925;
  transform: rotate(-8deg);
}
.wallet strong {
  font-size: 24px;
  font-weight: 900;
  display: block;
  line-height: 1;
}
.wallet small {
  font-size: 12px;
  color: #b9f974;
  font-weight: 700;
}
.wallet button {
  margin-left: auto;
  background: #b6f251;
  color: #18351f;
  font-weight: 900;
  border: 2px solid #749b34;
  border-radius: 5px;
  width: 29px;
  height: 29px;
  font-size: 21px;
}
.icon-button {
  width: 42px;
  height: 42px;
  background: #172335e8;
  border: 2px solid #506276;
  border-radius: 9px;
  font-weight: 900;
  font-size: 24px;
  box-shadow: 0 4px 0 #111d2b66;
}
#menuButton {
  display: none;
}
.profile {
  position: fixed;
  left: 24px;
  top: 100px;
  padding: 10px 13px 10px 8px;
  display: flex;
  gap: 10px;
  background: linear-gradient(100deg, #142032ed, #142032c7);
  border-left: 4px solid #b5f86c;
  border-radius: 4px 10px 10px 4px;
  box-shadow: 0 4px 0 #10203125;
}
.profile-portrait {
  height: 61px;
  width: 55px;
  background: linear-gradient(135deg, #53677e, #25354c);
  border: 1px solid #75869a;
  border-radius: 5px;
  overflow: hidden;
}
.profile-portrait canvas {
  width: 55px;
  height: 61px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.6px;
  font-weight: 800;
  color: #b7f875;
}
.profile strong {
  display: block;
  margin: 5px 0 6px;
  font-size: 18px;
  font-weight: 800;
}
#hearts {
  font-size: 14px;
  letter-spacing: 0.8px;
  color: #ff6785;
  text-shadow: 0 2px #762742;
}
.event-banner {
  position: fixed;
  top: 100px;
  left: 50%;
  transform: translateX(-50%);
  border: 1px solid #f5d26880;
  background: #162335ec;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 11px;
  letter-spacing: 1px;
  font-weight: 800;
  box-shadow: 0 4px 0 #10203126;
  white-space: nowrap;
}
.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #ffc966;
  box-shadow: 0 0 9px #ffc966;
  border-radius: 50%;
  margin-right: 7px;
}
.event-banner b {
  color: #ffcf6b;
  margin-left: 7px;
}
.event-banner.active {
  border-color: #b7f765;
}
.event-banner.active b {
  color: #c3ff76;
}
.event-banner.active .live-dot {
  background: #b7ff6a;
}
.nav {
  position: fixed;
  left: 24px;
  top: 218px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.nav-heading {
  color: #fff;
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 800;
  text-shadow: 1px 1px 2px #162335;
}
.nav button {
  background: linear-gradient(#283c52, #17283c);
  border: 2px solid #738599;
  border-radius: 9px;
  box-shadow: 0 4px 0 #111e30b0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 7px;
  font-size: 13px;
  font-weight: 800;
  text-shadow: 0 1px #142132;
}
.nav span:not(.nav-heading) {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: #a3e34d;
  color: #1e391f;
  border: 1px solid #d8ff8e;
  border-radius: 6px;
  font-size: 24px;
  text-shadow: none;
}
.nav button:nth-of-type(2) span {
  background: #c6a0ff;
  border-color: #e6d0ff;
  color: #412d69;
}
.nav button:nth-of-type(3) span {
  background: #ffd05c;
  border-color: #ffedb4;
  color: #735225;
}
.nav button:nth-of-type(4) span {
  background: #76d7f4;
  border-color: #cef4ff;
  color: #244e6a;
}
.nav label {
  cursor: pointer;
}
.mission {
  position: fixed;
  right: 24px;
  top: 100px;
  width: 220px;
  padding: 13px 15px;
  background: #142132df;
  border: 1px solid #7d90a259;
  border-top: 3px solid #b5f46b;
  border-radius: 4px 4px 9px 9px;
}
.mission strong {
  display: block;
  margin-top: 7px;
  font-size: 16px;
}
.mission p {
  font-size: 12px;
  color: #c4d1e0;
  line-height: 1.45;
  margin-top: 6px;
}
.mission-track {
  height: 5px;
  background: #425167;
  margin: 12px 0 7px;
  border-radius: 3px;
  overflow: hidden;
}
.mission-track i {
  display: block;
  height: 100%;
  width: 25%;
  background: #b6f96d;
  transition: width 0.3s;
}
.mission small {
  font-size: 11px;
  color: #b8c9d8;
}
.radar-panel {
  position: fixed;
  right: 24px;
  bottom: 189px;
  width: 146px;
  border: 2px solid #688095;
  border-radius: 9px;
  overflow: hidden;
  background: #142132eb;
  box-shadow: 0 4px 0 #13203455;
}
.radar-panel > span {
  display: block;
  padding: 7px 9px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  background: #263b50;
}
.radar-panel canvas {
  display: block;
  width: 100%;
  height: auto;
}
.radar-panel small {
  display: block;
  font-size: 8px;
  text-align: center;
  color: #c9abff;
  padding: 4px 0 7px;
  letter-spacing: 1px;
}
.controls {
  position: fixed;
  left: 28px;
  right: 28px;
  bottom: max(27px, env(safe-area-inset-bottom));
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  pointer-events: none;
}
.controls > * {
  pointer-events: auto;
}
.movement {
  text-align: center;
}
.movement > span {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 800;
  text-shadow: 0 1px 2px #142132;
}
kbd {
  font: inherit;
  margin-left: 5px;
  opacity: 0.6;
}
#joystick {
  width: 112px;
  height: 112px;
  border: 3px solid #ffffff80;
  background: #172b3b42;
  border-radius: 50%;
  position: relative;
  margin-bottom: 10px;
  touch-action: none;
  box-shadow: inset 0 2px 20px #101d2f38;
}
#stick {
  position: absolute;
  left: 28px;
  top: 28px;
  width: 50px;
  height: 50px;
  border: 3px solid #f1f5fc;
  background: #bccad7d9;
  border-radius: 50%;
  box-shadow: 0 4px 0 #15283d55;
  pointer-events: none;
}
.bottom-center {
  text-align: center;
  padding-bottom: 8px;
  text-shadow: 0 1px 3px #142132;
  pointer-events: none;
}
.world-tag {
  font-size: 12px;
  letter-spacing: 2px;
  font-weight: 900;
}
.bottom-center small {
  display: block;
  font-size: 10px;
  color: #ecf0f6;
  margin-top: 7px;
}
.actions {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}
.actions button {
  background: linear-gradient(#394a5c, #223448);
  border: 2px solid #8294a6;
  border-radius: 12px;
  box-shadow: 0 5px 0 #142031b0;
  padding: 10px 12px;
  min-width: 94px;
  min-height: 91px;
}
.actions button > span {
  display: block;
  font-size: 27px;
  margin-bottom: 5px;
  color: #d5e2f0;
  line-height: 1;
}
.actions strong {
  display: block;
  font-size: 11px;
  letter-spacing: 0.5px;
  font-weight: 900;
}
.actions small {
  display: block;
  font-size: 10px;
  color: #c1cfdd;
  margin-top: 5px;
}
.actions #interact {
  min-width: 110px;
  min-height: 104px;
  background: linear-gradient(#c4ff65, #8dc83a);
  border: 2px solid #e0ffae;
  color: #20361f;
  box-shadow: 0 5px 0 #456927;
}
.actions #interact span {
  color: #385a21;
  font-size: 33px;
}
.actions #interact small {
  color: #365127;
}
.actions #lock {
  background: linear-gradient(#9c75e2, #6547a9);
  border-color: #c5a7fa;
}
.actions #lock > span {
  color: #f1ddff;
}
.actions #jump {
  min-width: 70px;
  border-radius: 50%;
  height: 78px;
  min-height: 78px;
  width: 78px;
  padding: 9px;
}
.actions #jump small {
  display: none;
}
.actions #cameraReset {
  min-width: 40px;
  width: 40px;
  min-height: 40px;
  height: 40px;
  border-radius: 50%;
  padding: 0;
  font-size: 24px;
  align-self: center;
  margin-right: 2px;
}
#contextHint {
  position: fixed;
  bottom: 160px;
  left: 50%;
  transform: translateX(-50%);
  background: #142132df;
  border: 1px solid #91a4b24d;
  border-radius: 6px;
  padding: 10px 16px;
  font-size: 12px;
  color: #e5edf5;
  max-width: 90vw;
  text-align: center;
  width: max-content;
  pointer-events: none;
}
#toast {
  position: fixed;
  bottom: 215px;
  left: 50%;
  transform: translate(-50%, 12px);
  max-width: 90vw;
  width: max-content;
  padding: 14px 23px;
  border: 2px solid #b8ff76;
  border-radius: 9px;
  background: #122033f5;
  opacity: 0;
  transition: 0.2s;
  pointer-events: none;
  font-weight: 700;
  font-size: 15px;
  text-align: center;
  z-index: 4;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
dialog {
  width: min(720px, 94vw);
  max-height: 86dvh;
  border: 2px solid #7e91a8;
  border-radius: 15px;
  padding: 24px;
  background: #182536;
  color: #fff;
  box-shadow: 0 20px 100px #050f23b0;
  user-select: text;
}
dialog::backdrop {
  background: #0d192c88;
  backdrop-filter: blur(6px);
}
.modal-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.modal-heading h2 {
  font-size: 29px;
  font-weight: 900;
  letter-spacing: -1px;
  margin-top: 6px;
}
.modal-note {
  font-size: 14px;
  line-height: 1.55;
  color: #c0cedb;
  margin-bottom: 17px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.card {
  padding: 14px;
  border-radius: 10px;
  background: #26384d;
  border: 1px solid #60768c5c;
}
.card canvas {
  display: block;
  width: 100%;
  height: 110px;
  background: radial-gradient(ellipse, #719ec329, transparent 70%);
}
.card h3 {
  font-size: 16px;
  margin: 8px 0 6px;
}
.card small {
  font-size: 10px;
  letter-spacing: 1.2px;
  font-weight: 800;
}
.card p {
  font-size: 12px;
  color: #bdcede;
  margin: 8px 0 12px;
}
.card button,
.wide-button {
  width: 100%;
  border: 1px solid #dcffad;
  border-bottom: 4px solid #618c2c;
  background: linear-gradient(#c0fa6d, #9ad649);
  color: #203717;
  font-size: 13px;
  font-weight: 900;
  padding: 11px 8px;
  border-radius: 6px;
}
.upgrade-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #26384d;
  border: 1px solid #60768c5c;
  padding: 16px;
  margin: 10px 0;
  border-radius: 10px;
}
.upgrade-row h3 {
  font-size: 16px;
  margin: 0 0 7px;
}
.upgrade-row p {
  font-size: 13px;
  color: #bdcede;
  line-height: 1.4;
}
.upgrade-row button {
  font-size: 13px;
  font-weight: 900;
  color: #203717;
  background: #b9f467;
  border: 1px solid #dcffad;
  border-bottom: 4px solid #618c2c;
  border-radius: 6px;
  padding: 11px 15px;
  white-space: nowrap;
}
.help-copy {
  color: #cfdae6;
  font-size: 15px;
  line-height: 1.7;
}
.help-copy p {
  margin: 12px 0;
}
.help-copy strong {
  color: #bdf47a;
}
.help-copy small {
  font-size: 11px;
  overflow-wrap: anywhere;
}
.hack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 24px 0;
}
.hack-grid button {
  padding: 25px;
  font-size: 29px;
  font-weight: 900;
  border: 2px solid #6b8297;
  border-radius: 8px;
  background: #344b60;
  box-shadow: 0 4px 0 #0d1a29;
}
.hack-grid button.lit {
  color: #264019;
  background: #bfff75;
  border-color: #eeffc9;
  box-shadow: 0 0 25px #baff6c60;
}
.welcome {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 5vw;
  background: linear-gradient(90deg, #0e1a2be8, #0f1e2b7d 46%, transparent 78%);
  z-index: 5;
}
.welcome-card {
  width: 550px;
  padding: 35px 10px;
  background: none;
  border: 0;
}
.welcome-card .eyebrow {
  font-size: 12px;
  letter-spacing: 4px;
  color: #d1e3f2;
}
.welcome-card h2 {
  font-size: clamp(45px, 5.1vw, 74px);
  line-height: 0.98;
  letter-spacing: -3px;
  font-weight: 1000;
  font-style: italic;
  margin: 23px 0;
  text-shadow: 3px 5px 0 #0b1626;
}
.welcome-card h2 em {
  color: #beff62;
  font-style: normal;
}
.welcome-card p {
  font-size: 17px;
  line-height: 1.6;
  color: #e4edf6;
  max-width: 435px;
  text-shadow: 0 2px 5px #142132;
}
.welcome-perks {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 26px 0;
}
.welcome-perks span {
  font-size: 11px;
  font-weight: 700;
  padding: 8px 10px;
  border: 1px solid #a5b9ce66;
  border-radius: 5px;
  background: #17293ac9;
}
.welcome-card button {
  display: flex;
  justify-content: space-between;
  width: min(425px, 100%);
  padding: 18px 21px;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: #1b341a;
  background: linear-gradient(#c6ff6c, #91d242);
  border: 2px solid #e2ffb8;
  border-bottom: 5px solid #557f2c;
  border-radius: 8px;
  box-shadow: 0 5px 30px #06111d55;
}
.welcome-card button > span {
  font-size: 21px;
}
.welcome-card > small {
  display: block;
  margin-top: 18px;
  font-size: 11px;
  line-height: 1.6;
  color: #c3d2df;
}
#welcome[hidden] {
  display: none;
}
@media (max-width: 900px) {
  .bottom-center {
    display: none;
  }
  .mission {
    width: 190px;
  }
  .brand h1 {
    font-size: 25px;
  }
  .actions button {
    min-width: 82px;
  }
  .actions #interact {
    min-width: 94px;
  }
  .actions {
    gap: 8px;
  }
  .event-banner {
    top: 87px;
  }
  .profile {
    top: 92px;
  }
  .mission {
    top: 137px;
  }
  .radar-panel {
    width: 112px;
    bottom: 193px;
  }
  .radar-panel > span {
    font-size: 9px;
  }
  .radar-panel small {
    font-size: 7px;
  }
  .welcome-card {
    max-width: 480px;
  }
}
@media (max-width: 600px) {
  .topbar {
    top: max(12px, env(safe-area-inset-top));
    left: 12px;
    right: 12px;
    gap: 7px;
  }
  .brand-icon {
    width: 32px;
    height: 38px;
    font-size: 19px;
    border-width: 2px;
    padding: 1px 2px;
    letter-spacing: -4px;
  }
  .brand-icon span {
    top: 11px;
  }
  .brand {
    gap: 7px;
  }
  .brand h1 {
    font-size: 20px;
    letter-spacing: -1px;
  }
  .brand p {
    font-size: 7px;
    letter-spacing: 1.7px;
    margin-top: 6px;
  }
  .brand b {
    display: none;
  }
  .wallet {
    min-width: 112px;
    padding: 6px;
    gap: 6px;
    border-radius: 7px;
  }
  .coin {
    width: 25px;
    height: 25px;
    border-width: 2px;
    font-size: 20px;
    line-height: 21px;
  }
  .wallet strong {
    font-size: 19px;
  }
  .wallet small {
    font-size: 9px;
  }
  .wallet button {
    width: 22px;
    height: 23px;
    font-size: 16px;
  }
  .topbar .icon-button {
    width: 34px;
    height: 36px;
    font-size: 20px;
  }
  #menuButton {
    display: block;
  }
  #help {
    display: none;
  }
  .profile {
    left: 12px;
    top: 79px;
    gap: 7px;
    padding: 7px 9px 7px 6px;
  }
  .profile-portrait {
    width: 33px;
    height: 42px;
  }
  .profile-portrait canvas {
    width: 38px;
    height: 42px;
  }
  .profile .eyebrow {
    font-size: 7px;
    letter-spacing: 0.5px;
  }
  .profile strong {
    font-size: 13px;
    margin: 4px 0;
  }
  #hearts {
    font-size: 10px;
    letter-spacing: 0;
  }
  .event-banner {
    top: 81px;
    left: auto;
    right: 12px;
    transform: none;
    padding: 8px;
    font-size: 8px;
    letter-spacing: 0;
  }
  .event-banner b {
    margin-left: 3px;
  }
  .live-dot {
    width: 5px;
    height: 5px;
    margin-right: 4px;
  }
  .mission {
    right: 12px;
    top: 126px;
    width: 139px;
    padding: 8px;
    border-top-width: 2px;
  }
  .mission .eyebrow {
    font-size: 8px;
    letter-spacing: 0.5px;
  }
  .mission strong {
    font-size: 12px;
    margin-top: 5px;
  }
  .mission p {
    font-size: 10px;
    margin-top: 4px;
  }
  .mission-track {
    margin-top: 8px;
  }
  .mission small {
    font-size: 9px;
  }
  .nav {
    left: 12px;
    top: 149px;
    gap: 9px;
    display: none;
  }
  .menu-open .nav {
    display: flex;
    background: #142132f0;
    padding: 12px;
    border: 1px solid #61768c;
    border-radius: 9px;
    z-index: 3;
  }
  .nav button {
    min-height: 45px;
    padding: 6px 11px 6px 6px;
  }
  .nav label {
    font-size: 12px;
  }
  .nav span:not(.nav-heading) {
    width: 30px;
    height: 30px;
    font-size: 22px;
  }
  .radar-panel {
    right: 12px;
    bottom: 184px;
    width: 88px;
    border-radius: 6px;
    opacity: 0.88;
  }
  .radar-panel > span {
    font-size: 8px;
    padding: 5px;
    letter-spacing: 1px;
  }
  .radar-panel small {
    display: none;
  }
  .controls {
    left: 17px;
    right: 12px;
    bottom: max(24px, env(safe-area-inset-bottom));
  }
  #joystick {
    width: 100px;
    height: 100px;
  }
  #stick {
    left: 22px;
    top: 22px;
  }
  .movement > span {
    font-size: 8px;
  }
  kbd {
    display: none;
  }
  .actions {
    gap: 7px;
    flex-wrap: wrap;
    width: 194px;
    justify-content: flex-end;
  }
  .actions button {
    min-width: 83px;
    min-height: 77px;
    padding: 9px 7px;
    border-radius: 10px;
  }
  .actions button > span {
    font-size: 24px;
  }
  .actions strong {
    font-size: 10px;
  }
  .actions small {
    font-size: 8px;
  }
  .actions #interact {
    min-width: 96px;
    min-height: 85px;
  }
  .actions #jump {
    width: 51px;
    height: 51px;
    min-width: 51px;
    min-height: 51px;
    position: absolute;
    right: 0;
    bottom: 103px;
    border-radius: 50%;
    padding: 5px;
  }
  .actions #jump span {
    font-size: 23px;
    margin-bottom: 2px;
  }
  .actions #jump strong {
    font-size: 8px;
  }
  .actions #cameraReset {
    position: absolute;
    right: 61px;
    bottom: 107px;
    width: 38px;
    min-width: 38px;
    min-height: 38px;
    height: 38px;
  }
  #contextHint {
    bottom: 154px;
    font-size: 10px;
    max-width: calc(100vw - 127px);
    left: 14px;
    transform: none;
    padding: 8px 10px;
    text-align: left;
  }
  #toast {
    bottom: 263px;
    font-size: 13px;
    padding: 11px 16px;
  }
  .cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
  }
  .card {
    padding: 10px;
  }
  .card canvas {
    height: 100px;
  }
  .card h3 {
    font-size: 14px;
  }
  .card p {
    font-size: 11px;
  }
  .card button {
    font-size: 12px;
  }
  dialog {
    padding: 17px;
  }
  .modal-heading h2 {
    font-size: 24px;
  }
  .modal-note {
    font-size: 13px;
  }
  .upgrade-row {
    padding: 12px;
    gap: 10px;
  }
  .upgrade-row h3 {
    font-size: 14px;
  }
  .upgrade-row p {
    font-size: 12px;
  }
  .upgrade-row button {
    font-size: 11px;
    padding: 9px;
  }
  .welcome {
    padding: 24px;
    background: linear-gradient(0deg, #0d192cf5 10%, #0d192cbd 70%, #0d192c44);
    align-items: flex-end;
  }
  .welcome-card {
    width: 100%;
    padding: 25px 0 14px;
  }
  .welcome-card h2 {
    font-size: 49px;
    letter-spacing: -2px;
    margin: 20px 0;
  }
  .welcome-card .eyebrow {
    font-size: 9px;
    letter-spacing: 2px;
  }
  .welcome-card p {
    font-size: 15px;
  }
  .welcome-perks {
    margin: 20px 0;
    gap: 7px;
  }
  .welcome-perks span {
    font-size: 9px;
    padding: 7px 8px;
  }
  .welcome-card button {
    font-size: 14px;
    padding: 16px;
  }
  .welcome-card > small {
    font-size: 10px;
  }
  .help-copy {
    font-size: 14px;
  }
}
@media (max-height: 540px) {
  .topbar {
    top: 10px;
    left: 15px;
    right: 15px;
  }
  .brand h1 {
    font-size: 22px;
  }
  .brand-icon {
    height: 39px;
    width: 35px;
    font-size: 22px;
  }
  .brand p {
    font-size: 8px;
    margin-top: 5px;
  }
  .wallet {
    padding: 6px;
    min-width: 140px;
  }
  .wallet strong {
    font-size: 20px;
  }
  .profile {
    top: 74px;
    left: 15px;
    padding: 6px;
  }
  .profile-portrait {
    width: 32px;
    height: 42px;
  }
  .profile-portrait canvas {
    width: 38px;
    height: 42px;
  }
  .profile strong {
    font-size: 13px;
    margin: 3px 0;
  }
  .profile .eyebrow {
    font-size: 8px;
  }
  #hearts {
    font-size: 10px;
  }
  .mission,
  .radar-panel {
    display: none;
  }
  .event-banner {
    top: 73px;
  }
  .nav {
    top: 144px;
    left: 15px;
    flex-direction: row;
    gap: 7px;
  }
  .nav-heading,
  .nav label {
    display: none;
  }
  .nav button {
    padding: 5px;
  }
  .nav span:not(.nav-heading) {
    width: 29px;
    height: 29px;
    font-size: 21px;
  }
  .controls {
    bottom: 15px;
    left: 18px;
    right: 18px;
  }
  .movement > span {
    display: none;
  }
  #joystick {
    height: 84px;
    width: 84px;
    margin-bottom: 0;
  }
  #stick {
    left: 14px;
    top: 14px;
  }
  .actions button {
    min-height: 74px;
    padding: 8px;
  }
  .actions #interact {
    min-height: 84px;
  }
  .actions #jump {
    height: 65px;
    min-height: 65px;
    width: 65px;
    min-width: 65px;
  }
  .actions #cameraReset {
    height: 37px;
    width: 37px;
    min-height: 37px;
    min-width: 37px;
  }
  #contextHint {
    bottom: 110px;
    font-size: 10px;
  }
  .welcome {
    padding: 20px 40px;
  }
  .welcome-card {
    width: 480px;
    padding: 0;
  }
  .welcome-card h2 {
    font-size: 40px;
    margin: 12px 0;
  }
  .welcome-card p {
    font-size: 13px;
    max-width: 390px;
  }
  .welcome-perks {
    margin: 13px 0;
  }
  .welcome-card button {
    padding: 12px;
    max-width: 390px;
  }
  .welcome-card > small {
    margin-top: 10px;
    font-size: 9px;
  }
  .welcome-card .eyebrow {
    font-size: 9px;
  }
  .welcome-perks span {
    font-size: 10px;
  }
}

@media (max-width: 600px) {
  .event-banner {
    font-size: 11px;
  }
  .actions strong {
    font-size: 11px;
  }
  #contextHint {
    font-size: 12px;
  }
  .profile strong {
    font-size: 14px;
  }
}

.sprite-art {
  position: relative;
  width: 100%;
  height: 175px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(ellipse, #586a8533, transparent 70%);
}
.sprite-art img {
  height: 100%;
  width: 100%;
  object-fit: contain;
}
.finish-silver img {
  filter: grayscale(1) brightness(1.15);
}
.finish-gold img {
  filter: sepia(1) saturate(2.8) hue-rotate(2deg) brightness(1.12);
}
.finish-diamond img {
  filter: grayscale(0.8) sepia(0.45) saturate(3) hue-rotate(135deg)
    brightness(1.25);
}
.finish-rainbow img {
  animation: prism 6s linear infinite;
  filter: saturate(1.8);
}
@keyframes prism {
  to {
    filter: saturate(1.8) hue-rotate(360deg);
  }
}
.finish-tabs {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.finish-tabs button {
  background: #25384a;
  border: 1px solid var(--finish);
  color: var(--finish);
  padding: 10px 12px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 800;
}
.finish-tabs button.selected {
  box-shadow: 0 0 0 2px var(--finish);
}
.shop-actions {
  display: flex;
  gap: 10px;
  margin: 15px 0;
  flex-wrap: wrap;
}
.shop-actions button {
  padding: 12px 15px;
  background: #b8f274;
  color: #243d1b;
  border-radius: 7px;
  font-weight: 800;
}
.coin-packs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.coin-pack {
  padding: 24px 18px;
  background: linear-gradient(145deg, #354354, #1d2b3c);
  border: 1px solid #aab8c94d;
  border-radius: 12px;
  text-align: center;
}
.pack-coin {
  display: block;
  font-size: 50px;
  color: #ffdb66;
}
.coin-pack h3 {
  font-size: 22px;
  margin: 15px 0;
}
.coin-pack > strong {
  font-size: 27px;
  color: #e9f0f8;
}
.coin-pack p {
  font-size: 13px;
  color: #c1d0de;
  margin: 13px 0;
}
.coin-pack button {
  width: 100%;
  padding: 13px 6px;
  border-radius: 7px;
  background: #baf477;
  color: #243c18;
  font-weight: 800;
}
.coin-pack button:disabled {
  background: #647483;
  color: #fff;
  opacity: 0.75;
}
#accountForm label,
#ownerForm label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin: 16px 0;
}
#accountForm input,
#ownerForm input {
  display: block;
  margin-top: 8px;
  width: 100%;
  padding: 13px;
  border: 1px solid #8398aa;
  border-radius: 7px;
  background: #101c2a;
  color: white;
  font: 16px Arial;
  user-select: text;
}
#accountError {
  color: #ff9d9d;
  font-size: 14px;
}
details {
  padding: 15px 0;
  margin-bottom: 15px;
}
summary {
  cursor: pointer;
  color: #c7e5ff;
  font-size: 14px;
}
#modalContent > .sprite-art {
  height: 260px;
}
@media (max-width: 600px) {
  .sprite-art {
    height: 145px;
  }
  .coin-packs {
    gap: 9px;
  }
  .coin-pack {
    padding: 17px 10px;
  }
  .coin-pack h3 {
    font-size: 19px;
  }
  .coin-pack > strong {
    font-size: 22px;
  }
  .finish-tabs button {
    font-size: 12px;
    padding: 9px;
  }
  .nav {
    gap: 6px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .finish-rainbow img {
    animation: none;
  }
}

.actions #cameraReset {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.ultra-card {
  margin: 18px 0;
  padding: 20px;
  border: 2px solid #e3c564;
  border-radius: 16px;
  background: linear-gradient(135deg, #2a2142, #172639);
  color: #fff1b5;
}
.ultra-card p {
  color: #e1dfeb;
  line-height: 1.5;
}
.floor-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.floor-picker button {
  min-height: 44px;
  padding: 10px 14px;
}
body.hack-event .topbar,
body.hack-event .event-banner {
  background: #03130b;
  border-color: #5cff5c;
  box-shadow: 0 0 22px #42ff5866;
}
body.hack-event .world-tag {
  color: #7cff77;
}

/* The browser-only trial adds a name and a public founder entrance. */
.welcome {
  overflow-y: auto;
}
.welcome-card {
  margin-block: auto;
}
.start-name,
#renameForm label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  max-width: 425px;
}
#startName,
#renamePlayer {
  min-height: 48px;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #8cabc0;
  border-radius: 8px;
  background: #101d2d;
  color: #fff;
  font: inherit;
  font-size: 16px;
  padding: 12px;
}
#startName:focus,
#renamePlayer:focus {
  outline: 3px solid #b6f76d;
  outline-offset: 2px;
}
.welcome-card .name-error {
  color: #ffd2ba;
  font-size: 14px;
  margin: 6px 0;
  min-height: 20px;
}
.founder-link,
.mode-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #ffe087;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  margin-block: 4px 12px;
}
.founder-link:hover,
.mode-link:hover {
  text-decoration: underline;
}
.founder-link {
  box-sizing: border-box;
  width: min(425px, 100%);
  padding: 10px 14px;
  border: 1px solid #ffe08799;
  border-radius: 8px;
  background: #392c20cc;
}
#deviceIntro[hidden] {
  display: none;
}
@media (max-height: 720px) {
  .welcome {
    align-items: flex-start;
  }
  .welcome-card {
    margin-block: 0;
  }
  .welcome-card h2 {
    font-size: clamp(30px, 6vh, 48px);
    margin: 12px 0;
  }
  .welcome-perks {
    margin: 12px 0;
  }
}
