:root {
  --gold: #f0b90b;
  --ink: #f5f5f5;
  --muted: #a7a7a7;
  --line: #f0b90b2e;
  --glass: #15171bd9;
  --binance-yellow: #f0b90b;
  --binance-yellow-soft: #ffd75a;
  --binance-black: #0b0e11;
  --binance-panel: #171a1f;
}

body {
  background:
    radial-gradient(circle at 49% 42%, #3b331266 0, transparent 27%),
    radial-gradient(ellipse at 47% 38%, #182024 0, #10151a 38%, #090d12 72%, #05070a 100%);
}

.vignette {
  background:
    linear-gradient(to top, #030507a8, transparent 31%, transparent 77%, #03050752),
    radial-gradient(ellipse at 50% 40%, transparent 42%, #02030582 100%);
}

.binance-mark {
  position: relative;
  display: block;
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 0 10px #f0b90b55);
  transform: rotate(45deg) scale(1.12);
  transform-origin: 16px 16px;
}

.binance-mark i {
  position: absolute;
  width: 8px;
  height: 8px;
  border: 1px solid #ffe486;
  background: linear-gradient(135deg, #ffe36a, #f0b90b 72%);
  box-shadow: inset 0 0 4px #fff5, 0 0 9px #f0b90b45;
}

.binance-mark i:nth-child(1) { left: 12px; top: 1px; }
.binance-mark i:nth-child(2) { left: 1px; top: 12px; }
.binance-mark i:nth-child(3) { left: 12px; top: 12px; }
.binance-mark i:nth-child(4) { right: 1px; top: 12px; }
.binance-mark i:nth-child(5) { left: 12px; bottom: 1px; }

.brand {
  color: #fff8dd;
  font-size: 14px;
  letter-spacing: .17em;
  text-shadow: 0 0 18px #f0b90b33;
}

.edition {
  color: #e3ba39;
  font-size: 8px;
  letter-spacing: .19em;
}

.icon-button,
.journal-button {
  border-color: #f0b90b2e;
  background: linear-gradient(145deg, #202329bd, #0b0e11d6);
  box-shadow: inset 0 1px 0 #fff1, 0 8px 28px #0005;
  color: #d5d7d9;
}

.icon-button:hover,
.journal-button:hover {
  border-color: #f0b90b75;
  background: linear-gradient(145deg, #302a17e8, #15171bea);
  color: #fff5c2;
}

.icon-button[aria-pressed="true"] {
  color: var(--binance-yellow);
  border-color: #f0b90b7a;
  box-shadow: inset 0 0 18px #f0b90b12, 0 0 18px #f0b90b18;
}

.mine-button {
  position: fixed;
  right: 168px;
  bottom: 28px;
  z-index: 7;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid #f0b90b78;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #3b3319, #111318 68%);
  color: #ffd75a;
  box-shadow: inset 0 1px 0 #fff2, 0 8px 28px #0008, 0 0 18px #f0b90b18;
  transition: color .2s, border-color .2s, background .2s, transform .2s;
}

.mine-button:hover {
  color: #fff2a8;
  border-color: #f0b90bc7;
  background: radial-gradient(circle at 35% 28%, #554718, #171a1f 70%);
  transform: translateY(-2px);
}

.mine-button svg {
  width: 22px;
  height: 22px;
}

.mine-button > span {
  position: absolute;
  right: -4px;
  bottom: -3px;
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border: 1px solid #f0b90b75;
  border-radius: 5px;
  background: #0b0e11;
  color: #f0b90b;
  font-size: 7px;
  font-weight: 700;
}

.mine-button[aria-pressed="true"] {
  color: #171a1f;
  border-color: #ffe27b;
  background: #f0b90b;
  box-shadow: 0 0 28px #f0b90b66, 0 8px 28px #0008;
}

.mine-button[aria-pressed="true"] svg {
  animation: drill-vibration .1s steps(2, end) infinite;
}

.mine-button[aria-pressed="true"] > span {
  display: grid;
  width: auto;
  min-width: 19px;
  padding: 0 4px;
  color: #171a1f;
  background: #f0b90b;
  border-color: #171a1f66;
}

.is-mining .interact-button {
  opacity: .38;
  pointer-events: none;
}

.journal-button svg,
.tiny-spark,
.journey-dot {
  color: var(--binance-yellow);
}

.journal-caption,
.eyebrow {
  color: #d8ae2e;
}

.region h1 {
  color: #fff8e1;
  text-shadow: 0 2px 14px #000, 0 0 20px #f0b90b20;
}

.region p {
  color: #c6c7c8;
}

.is-follow .region {
  border-color: #f0b90b24;
  background: linear-gradient(90deg, #080a0ee8, #171a1fd4 76%, #171a1f62);
}

.control-strip,
.journey {
  border-color: #f0b90b2e;
  background: #0b0e11d9;
  color: #c5c6c8;
  box-shadow: inset 0 1px 0 #fff1, 0 10px 32px #0005;
}

.interact-button {
  border-color: #f0b90b80;
  background: linear-gradient(135deg, #443811f2, #171a1ff2);
  box-shadow: 0 10px 38px #0009, 0 0 26px #f0b90b18, inset 0 1px 0 #ffe98422;
}

.interact-button:hover {
  background: linear-gradient(135deg, #5a4813f2, #242018f2);
}

.keycap {
  border-color: #f0b90b7a;
  background: #f0b90b1a;
  color: #ffdf6b;
}

.toast,
.panel {
  border-color: #f0b90b38;
  background: linear-gradient(155deg, #202329f2, #0b0e11f5);
  box-shadow: 0 35px 120px #000b, inset 0 1px 0 #fff1;
}

.toast strong {
  color: var(--binance-yellow);
}

.primary-button {
  background: linear-gradient(135deg, #ffd75a, #f0b90b);
  color: #171a1f;
  box-shadow: 0 8px 26px #f0b90b29;
}

.primary-button:hover {
  background: linear-gradient(135deg, #ffe483, #ffc928);
}

.loading {
  gap: 12px;
  background:
    radial-gradient(circle at 50% 42%, #f0b90b1f 0, transparent 35%),
    radial-gradient(ellipse at 50% 45%, #171a1f 0, #090d12 62%, #040608 100%);
}

.loading-visual {
  position: relative;
  width: min(390px, 62vw, 50vh);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 24px 55px #0009);
}

.loading-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  -webkit-mask-image: radial-gradient(circle, #000 0 66%, transparent 73%);
  mask-image: radial-gradient(circle, #000 0 66%, transparent 73%);
}

.loading-orbit {
  position: absolute;
  inset: 11%;
  border: 1px solid #f0b90b66;
  border-radius: 50%;
  box-shadow: 0 0 24px #f0b90b28, inset 0 0 18px #f0b90b18;
  transform: rotateX(67deg) rotateZ(-18deg);
  animation: brand-orbit 6s linear infinite;
}

.loading-orbit::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -5px;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--binance-yellow);
  box-shadow: 0 0 16px #f0b90b;
  transform: translateY(-50%) rotate(45deg);
}

.loading p {
  color: #fff8df;
  font-family: Inter, "PingFang SC", sans-serif;
  font-size: clamp(20px, 2.4vw, 30px);
  letter-spacing: -.02em;
}

.loading p span {
  color: #b7a257;
  font-size: 9px;
  letter-spacing: .18em;
}

.loading-network {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #776d47;
  font-size: 7px;
  letter-spacing: .22em;
}

.loading-network i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--binance-yellow);
  box-shadow: 0 0 10px var(--binance-yellow);
  animation: network-pulse 1.5s ease-in-out infinite;
}

.loading.fade {
  transition-delay: .75s;
}

.concept-badge {
  position: fixed;
  right: 34px;
  bottom: 82px;
  z-index: 4;
  display: grid;
  grid-template-columns: 7px auto;
  gap: 2px 8px;
  align-items: center;
  pointer-events: none;
  color: #9a8d5f;
  text-align: right;
}

.concept-badge > span {
  grid-row: 1 / 3;
  width: 7px;
  height: 7px;
  background: var(--binance-yellow);
  transform: rotate(45deg);
  box-shadow: 0 0 11px #f0b90b77;
}

.concept-badge strong {
  color: #d7b63e;
  font-size: 8px;
  letter-spacing: .18em;
  font-weight: 600;
}

.concept-badge small {
  font-size: 5px;
  letter-spacing: .15em;
  color: #706a55;
}

@keyframes brand-orbit {
  to { transform: rotateX(67deg) rotateZ(342deg); }
}

@keyframes network-pulse {
  50% { opacity: .35; transform: scale(.75); }
}

@keyframes drill-vibration {
  50% { transform: translate(1px, -1px) rotate(2deg); }
}

@media (max-width: 650px) {
  .binance-mark {
    width: 26px;
    height: 26px;
    transform: rotate(45deg) scale(.82);
    transform-origin: center;
  }

  .brand { font-size: 9px; letter-spacing: .12em; }
  .edition { font-size: 5px; letter-spacing: .12em; }
  .loading-visual { width: min(300px, 78vw, 43vh); }
  .concept-badge { display: none; }

  .mine-button {
    right: max(96px, calc(env(safe-area-inset-right) + 96px));
    bottom: max(42px, env(safe-area-inset-bottom));
    width: 55px;
    height: 55px;
  }

  .mine-button > span { display: none; }
  .mine-button[aria-pressed="true"] > span { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  .loading-orbit,
  .loading-network i {
    animation: none;
  }
}

/* Multiplayer combat HUD */
.network-hud {
  position: fixed;
  z-index: 7;
  top: 84px;
  right: 33px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 33px;
  padding: 7px 11px;
  border: 1px solid rgba(240, 185, 11, .2);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(18, 24, 29, .9), rgba(9, 17, 21, .78));
  box-shadow: 0 10px 30px rgba(0, 0, 0, .28);
  backdrop-filter: blur(12px);
  color: #d6dbd2;
  font-size: 9px;
  letter-spacing: .04em;
  pointer-events: none;
}

.network-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #718078;
  box-shadow: 0 0 0 3px rgba(113, 128, 120, .12);
}

.network-hud[data-state="online"] .network-dot {
  background: #33d17a;
  box-shadow: 0 0 0 3px rgba(51, 209, 122, .12), 0 0 10px rgba(51, 209, 122, .45);
}

.network-hud[data-state="connecting"] .network-dot { background: #f0b90b; }
.network-hud[data-state="offline"] .network-dot { background: #e06565; }
.network-hud strong { color: #f0b90b; font-size: 9px; font-weight: 650; }
.network-score { padding-left: 8px; border-left: 1px solid rgba(255,255,255,.1); color: #929d97; }
.network-score b { color: #fff0ae; font-weight: 700; }

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

.player-name-tag {
  position: absolute;
  display: inline-flex;
  align-items: center;
  max-width: 180px;
  min-height: 22px;
  padding: 4px 9px 4px 18px;
  border: 1px solid rgba(240, 185, 11, .3);
  border-radius: 999px;
  background: rgba(7, 13, 17, .8);
  box-shadow: 0 5px 18px rgba(0, 0, 0, .35);
  color: #fff3c4;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: .035em;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  transform: translate(-50%, -100%);
  transition: opacity .16s ease-out;
  will-change: left, top;
}

.player-name-tag::before {
  content: "";
  position: absolute;
  left: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #33d17a;
  box-shadow: 0 0 7px rgba(51, 209, 122, .65);
}

.aim-hint {
  position: fixed;
  z-index: 7;
  left: 50%;
  bottom: 68px;
  display: flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 11px;
  border: 1px solid rgba(240, 185, 11, .2);
  border-radius: 999px;
  background: rgba(7, 15, 20, .76);
  backdrop-filter: blur(10px);
  color: #bbc4bd;
  font-size: 8px;
  letter-spacing: .075em;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 7px);
  transition: opacity .2s ease-out, transform .2s ease-out, border-color .2s ease-out;
}

.aim-hint kbd { margin-right: 4px; color: #f6d769; }
.aim-active { display: none; color: #fff0ae; font-weight: 700; }
.aim-active b { margin: 0 6px; color: #f0b90b; }
.is-armed .aim-hint { opacity: .92; transform: translate(-50%, 0); }
.is-aiming .aim-hint { border-color: rgba(240, 185, 11, .48); }
.is-aiming .aim-idle { display: none; }
.is-aiming .aim-active { display: inline-flex; align-items: center; }

.combat-crosshair {
  position: fixed;
  z-index: 7;
  left: 50%;
  top: 50%;
  width: 42px;
  height: 42px;
  transform: translate(-50%, -50%) scale(.82);
  opacity: 0;
  pointer-events: none;
  transition: opacity .16s, transform .16s;
}

.is-armed .combat-crosshair { opacity: .88; transform: translate(-50%, -50%) scale(1); }
.is-aiming .combat-crosshair {
  opacity: 1;
  filter: drop-shadow(0 0 5px rgba(240, 185, 11, .45));
}
.combat-crosshair i { position: absolute; background: #f0b90b; box-shadow: 0 0 8px rgba(240,185,11,.65); }
.combat-crosshair i:nth-child(1), .combat-crosshair i:nth-child(2) { width: 7px; height: 1px; top: 20px; }
.combat-crosshair i:nth-child(1) { left: 4px; }
.combat-crosshair i:nth-child(2) { right: 4px; }
.combat-crosshair i:nth-child(3), .combat-crosshair i:nth-child(4) { width: 1px; height: 7px; left: 20px; }
.combat-crosshair i:nth-child(3) { top: 4px; }
.combat-crosshair i:nth-child(4) { bottom: 4px; }
.combat-crosshair span { position: absolute; left: 19px; top: 19px; width: 3px; height: 3px; border-radius: 50%; background: #fff6cf; }
.did-shoot .combat-crosshair { transform: translate(-50%, -50%) scale(1.22); }
.confirmed-hit .combat-crosshair { transform: translate(-50%, -50%) scale(.86); }
.confirmed-hit .combat-crosshair i,
.confirmed-hit .combat-crosshair span {
  background: #fff7d1;
  box-shadow: 0 0 5px #fff, 0 0 14px rgba(240, 185, 11, .95);
}

.respawn-overlay {
  position: fixed;
  z-index: 16;
  inset: 0;
  place-content: center;
  justify-items: center;
  background: radial-gradient(circle, rgba(20,28,28,.35), rgba(3,8,12,.82));
  backdrop-filter: grayscale(.85) blur(2px);
  text-align: center;
  pointer-events: all;
}

.respawn-overlay:not([hidden]) { display: grid; }
.respawn-overlay span { color: #f0b90b; font-size: 10px; font-weight: 650; letter-spacing: .24em; }
.respawn-overlay strong { margin: 11px 0 5px; color: #fff5ca; font-family: Georgia, serif; font-size: 76px; line-height: 1; font-weight: 400; text-shadow: 0 0 30px rgba(240,185,11,.35); }
.respawn-overlay small { color: #adb6af; font-size: 11px; }
.is-armed #interact-button { opacity: .28; transform: translateY(8px); pointer-events: none; }
.is-downed .network-hud { opacity: .55; }

.profile-panel {
  position: fixed;
  z-index: 12;
  top: 84px;
  right: 33px;
  left: auto;
  width: min(350px, calc(100vw - 32px));
  margin: 0;
  padding: 26px;
  border-radius: 18px;
}

.profile-panel h2 { margin-top: 10px; font-size: 25px; }
.profile-form { display: grid; gap: 10px; }
.profile-form label { color: #e4e9df; font-size: 10px; font-weight: 650; letter-spacing: .06em; }
.profile-form label small { margin-left: 5px; color: #8e9a94; font-size: 8px; font-weight: 500; text-transform: uppercase; }
.profile-form input {
  width: 100%;
  height: 43px;
  padding: 0 13px;
  border: 1px solid rgba(240, 185, 11, .25);
  border-radius: 10px;
  outline: none;
  background: rgba(4, 12, 16, .66);
  color: #fff5ce;
  font: 500 13px/1 Inter, ui-sans-serif, sans-serif;
  transition: border-color .18s ease-out, box-shadow .18s ease-out;
}
.profile-form input::placeholder { color: #74827c; }
.profile-form input:focus-visible { border-color: #f0b90b; box-shadow: 0 0 0 3px rgba(240, 185, 11, .14); }
.profile-status { min-height: 16px; margin: 0; color: #96a49d; font-size: 9px; line-height: 1.55; }
.profile-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
.profile-actions .primary-button { margin: 0; padding: 12px; }
.secondary-button {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 10px;
  background: rgba(255, 255, 255, .035);
  color: #b7c1ba;
  font-size: 10px;
  transition: border-color .18s ease-out, background .18s ease-out;
}
.secondary-button:hover { border-color: rgba(240, 185, 11, .32); background: rgba(240, 185, 11, .07); }
.secondary-button:focus-visible { outline: 2px solid #f0b90b; outline-offset: 2px; }

@media (max-width: 650px) {
  .view-button { display: none; }
  .network-hud { top: 72px; right: 17px; max-width: calc(100vw - 34px); }
  .network-hud #network-label, .network-score { display: none; }
  .combat-crosshair { width: 36px; height: 36px; }
  .aim-hint { display: none; }
  .player-name-tag { max-width: 120px; font-size: 8px; }
  .profile-panel { top: 69px; right: 16px; padding: 23px 20px; }
  .profile-actions { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .combat-crosshair, .aim-hint, .player-name-tag { transition: none; }
}
