/* ---- Wild MMO client styles (v0.1.0 — survival HUD + mobile) ---- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  height: 100dvh;
  background: #050912;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #e6f0ff;
  overflow: hidden;
  touch-action: none;
  overscroll-behavior: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

#game-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  touch-action: none;
}

#game-canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: crosshair;
  touch-action: none;
}

button { font: inherit; color: inherit; }

/* ---------- HUD base ---------- */
#hud { user-select: none; -webkit-user-select: none; }

#damage-flash, #night-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
#damage-flash {
  box-shadow: inset 0 0 90px rgba(255, 45, 45, 0);
  transition: box-shadow 180ms ease-out;
}
#damage-flash.active { box-shadow: inset 0 0 120px rgba(255, 40, 30, 0.65); }
#damage-flash.starving { box-shadow: inset 0 0 140px rgba(255, 120, 30, 0.35); }
#night-vignette {
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0) 45%, rgba(2, 6, 20, 0.55) 100%);
  opacity: 0;
  transition: opacity 1.5s linear;
}

#world-labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.entity-tag {
  position: absolute;
  transform: translate(-50%, -100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  pointer-events: none;
  white-space: nowrap;
}
.entity-tag-name {
  font-size: 11px;
  font-weight: 600;
  color: #f4f8ff;
  background: rgba(6, 14, 26, 0.76);
  padding: 1px 6px;
  border-radius: 4px;
  text-shadow: 0 1px 2px #000;
}
.entity-tag-name.hostile { color: #ffb3ad; }
.entity-tag-bar {
  width: 44px;
  height: 5px;
  background: rgba(15, 10, 10, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.9);
  border-radius: 3px;
  overflow: hidden;
}
.entity-tag-fill { height: 100%; background: #48d258; transition: width 90ms linear; }
.entity-tag-fill.hostile { background: #f0544f; }

.float-pop {
  position: absolute;
  transform: translate(-50%, -50%);
  font-size: 15px;
  font-weight: 800;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95);
  pointer-events: none;
  white-space: nowrap;
}

.hud-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(8, 16, 32, 0.76);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(130, 195, 255, 0.22);
  border-radius: 10px;
  padding: 7px 13px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
  font-size: 13px;
}
.brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7ef7a4;
  box-shadow: 0 0 8px #7ef7a4;
}
.brand-name { font-weight: 800; letter-spacing: 1.5px; }
.sep { opacity: 0.45; }
#biome-badge { color: #9df2b0; font-weight: 600; }
#day-badge { font-weight: 600; }

#hud-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: calc(12px + env(safe-area-inset-top, 0px)) calc(16px + env(safe-area-inset-right, 0px)) 0 calc(16px + env(safe-area-inset-left, 0px));
  pointer-events: none;
}

/* ---------- Minimap ---------- */
#minimap-wrap {
  position: absolute;
  top: calc(56px + env(safe-area-inset-top, 0px));
  left: calc(16px + env(safe-area-inset-left, 0px));
  background: rgba(8, 16, 32, 0.78);
  border: 1px solid rgba(130, 195, 255, 0.25);
  border-radius: 50%;
  padding: 5px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}
#minimap { display: block; border-radius: 50%; background: #0a192e; }
.compass-n {
  position: absolute;
  top: 2px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 2px #000;
}

/* ---------- Objectives ---------- */
#objectives {
  position: absolute;
  top: calc(56px + env(safe-area-inset-top, 0px));
  right: calc(16px + env(safe-area-inset-right, 0px));
  width: 270px;
  background: rgba(8, 16, 32, 0.78);
  border: 1px solid rgba(126, 247, 164, 0.3);
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  pointer-events: auto;
  overflow: hidden;
}
#obj-header-row {
  display: flex;
  align-items: center;
  background: rgba(126, 247, 164, 0.12);
}
#obj-head {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  border: none;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
#obj-open-modal {
  background: rgba(245, 208, 97, 0.2);
  border: 1px solid rgba(245, 208, 97, 0.45);
  border-radius: 6px;
  color: #ffdf7c;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  margin-right: 8px;
  cursor: pointer;
}
#obj-progress { color: #9df2b0; font-variant-numeric: tabular-nums; }
#obj-list { list-style: none; padding: 6px 10px 8px; display: grid; gap: 4px; }
#objectives.collapsed #obj-list { display: none; }
#obj-list li { font-size: 12px; line-height: 1.35; color: #c6d6f0; display: flex; gap: 6px; }
#obj-list li.done { color: #6f8aa8; text-decoration: line-through; }
#obj-list li.current { color: #fff; font-weight: 600; }
#obj-list li .chk { width: 14px; flex: none; }

/* ---------- Toasts & event log ---------- */
#toasts {
  position: absolute;
  top: calc(64px + env(safe-area-inset-top, 0px));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  pointer-events: none;
  z-index: 30;
}
.toast {
  background: rgba(8, 16, 32, 0.9);
  border: 1px solid rgba(130, 195, 255, 0.3);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  animation: toast-in 180ms ease-out;
  transition: opacity 400ms ease, transform 400ms ease;
  white-space: nowrap;
}
.toast.good { border-color: rgba(126, 247, 164, 0.6); }
.toast.warn { border-color: rgba(255, 190, 90, 0.7); color: #ffd99a; }
.toast.big { font-size: 15px; padding: 9px 20px; border-color: rgba(142, 246, 255, 0.8); color: #c9fbff; }
.toast.fade { opacity: 0; transform: translateY(-8px); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px) scale(0.95); } to { opacity: 1; transform: none; } }

#event-log {
  position: absolute;
  bottom: calc(150px + env(safe-area-inset-bottom, 0px));
  right: calc(16px + env(safe-area-inset-right, 0px));
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
  text-align: right;
  pointer-events: none;
}
#event-log div {
  background: rgba(6, 14, 28, 0.8);
  border-right: 3px solid #6fe381;
  border-radius: 6px;
  padding: 5px 10px;
}

/* ---------- Status bars ---------- */
#status-cluster {
  position: absolute;
  left: calc(16px + env(safe-area-inset-left, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 6px;
  pointer-events: none;
}
.bar {
  position: relative;
  width: 240px;
  height: 20px;
  background: rgba(14, 18, 28, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 7px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}
.bar.thin { height: 16px; }
.bar-fill { height: 100%; width: 100%; transition: width 150ms linear; }
#hp-bar-inner { background: linear-gradient(90deg, #2fb84c, #6fe381); }
#hunger-fill { background: linear-gradient(90deg, #c46a22, #f0a24a); }
#thirst-fill { background: linear-gradient(90deg, #2a7fd0, #5cc4ff); }
#warmth-fill { background: linear-gradient(90deg, #3da5d9, #a6eaff); }
#alt-bar-inner { width: 0%; background: linear-gradient(90deg, #3da5d9, #f5d061); }
.bar.low { animation: pulse 0.9s ease-in-out infinite; border-color: rgba(255, 120, 90, 0.8); }
@keyframes pulse { 50% { box-shadow: 0 0 14px rgba(255, 90, 60, 0.8); } }
.bar-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding-left: 8px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

/* ---------- Resources & hotbar ---------- */
#bottom-center {
  position: absolute;
  left: 50%;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}
#res-strip {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 460px;
}
.res-chip {
  background: rgba(8, 16, 32, 0.8);
  border: 1px solid rgba(130, 195, 255, 0.2);
  border-radius: 8px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.res-chip.bump { animation: bump 260ms ease-out; }
@keyframes bump { 40% { transform: scale(1.25); border-color: #7ef7a4; } }
#hotbar { display: flex; gap: 6px; pointer-events: auto; }
.slot {
  position: relative;
  width: 54px;
  height: 54px;
  border-radius: 10px;
  background: rgba(8, 16, 32, 0.84);
  border: 2px solid rgba(130, 195, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 80ms ease, border-color 120ms ease;
}
.slot:active { transform: scale(0.94); }
.slot.empty { opacity: 0.45; }
.slot.selected { border-color: #7ef7a4; box-shadow: 0 0 14px rgba(126, 247, 164, 0.55); }
.slot-icon { font-size: 24px; }
.slot-key {
  position: absolute;
  top: 2px;
  left: 5px;
  font-size: 10px;
  font-weight: 800;
  color: #9db4d8;
}
.slot-count {
  position: absolute;
  bottom: 2px;
  right: 5px;
  font-size: 11px;
  font-weight: 800;
}
.slot-craft { border-color: rgba(245, 208, 97, 0.5); }
.slot-craft .slot-count { font-size: 9px; color: #f5d061; }
.slot-milestone { border-color: rgba(142, 246, 255, 0.5); }
.slot-milestone .slot-count { font-size: 9px; color: #8ef6ff; }
#hotbar-hint {
  font-size: 11px;
  color: #b7cae8;
  background: rgba(8, 16, 32, 0.68);
  border-radius: 999px;
  padding: 3px 10px;
  visibility: hidden;
}
#hotbar-hint.show { visibility: visible; }

#hud-meta {
  position: absolute;
  right: calc(16px + env(safe-area-inset-right, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: grid;
  gap: 3px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}
#alt { font-size: 15px; font-weight: 700; color: #ffdf7c; }
#peak-alt { font-size: 11px; color: #9bd4ff; }
#gear { font-size: 15px; letter-spacing: 2px; }

#keys-help {
  position: absolute;
  top: calc(16px + env(safe-area-inset-top, 0px));
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  color: #b7cae8;
  background: rgba(8, 16, 32, 0.6);
  border-radius: 999px;
  padding: 4px 12px;
  pointer-events: none;
  white-space: nowrap;
}

/* ---------- Crafting, Milestone & Hub panels ---------- */
#craft-panel, #milestone-panel, #hub-panel {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2, 6, 14, 0.45);
  z-index: 40;
  pointer-events: auto;
}
#craft-panel.hidden, #milestone-panel.hidden, #hub-panel.hidden { display: none; }
#milestone-close, #hub-close {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  border-radius: 8px;
  width: 34px;
  height: 34px;
  cursor: pointer;
  font-size: 16px;
}
.tribe-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.tribe-bar input {
  background: #050a16;
  color: #e6f0ff;
  border: 1px solid #2b426b;
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 13px;
  width: 170px;
  outline: none;
}
.tribe-bar button {
  padding: 7px 12px;
  border: none;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(90deg, #6fe381, #9df2b0);
  color: #06130b;
}
#tribe-status { font-size: 12px; color: #9df2b0; font-weight: 600; }
#trade-list, #leaderboard-list { display: grid; gap: 6px; }
.lb-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(130, 195, 255, 0.16);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
}
.lb-name { font-weight: 700; color: #fff; }
.lb-stats { color: #a6badb; font-variant-numeric: tabular-nums; }
.slot-mount { border-color: rgba(255, 190, 90, 0.5); }
.slot-mount .slot-count { font-size: 9px; color: #ffd99a; }
.slot-hub { border-color: rgba(185, 145, 255, 0.5); }
.slot-hub .slot-count { font-size: 9px; color: #d8bfff; }
#milestone-list { display: grid; gap: 8px; }
.ms-row {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(130, 195, 255, 0.16);
  border-radius: 10px;
  padding: 8px 12px;
}
.ms-row.done {
  border-color: rgba(126, 247, 164, 0.6);
  background: rgba(126, 247, 164, 0.08);
}
.ms-badge { font-size: 26px; text-align: center; }
.ms-title { font-weight: 700; font-size: 14px; color: #fff; }
.ms-desc { font-size: 11px; color: #a6badb; margin: 2px 0 4px; }
.ms-reward { font-size: 11px; font-weight: 600; color: #ffdf7c; }
.ms-prog-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  min-width: 78px;
}
.ms-prog-txt { font-size: 11px; font-weight: 800; font-variant-numeric: tabular-nums; color: #9df2b0; }
.ms-prog-bar {
  width: 74px;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
}
.ms-prog-fill {
  height: 100%;
  background: linear-gradient(90deg, #3da5d9, #7ef7a4);
}
.panel-card {
  width: min(560px, 94vw);
  max-height: 86vh;
  overflow-y: auto;
  background: linear-gradient(165deg, #0c1b38, #071022);
  border: 1px solid rgba(126, 247, 164, 0.45);
  border-radius: 16px;
  padding: 16px 18px 18px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.75);
  touch-action: pan-y;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 8px;
}
#craft-close {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  border-radius: 8px;
  width: 34px;
  height: 34px;
  cursor: pointer;
  font-size: 16px;
}
.panel-sub {
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #8ea8cf;
  margin: 10px 0 6px;
}
#inv-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.inv-item {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(130, 195, 255, 0.2);
  border-radius: 8px;
  padding: 5px 9px;
  font-size: 13px;
}
.inv-item b { font-variant-numeric: tabular-nums; }
.inv-empty { font-size: 12px; color: #8ea8cf; }
#recipe-list { display: grid; gap: 8px; }
.recipe {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(130, 195, 255, 0.16);
  border-radius: 10px;
  padding: 8px 10px;
}
.recipe.can { border-color: rgba(126, 247, 164, 0.5); }
.recipe.owned { opacity: 0.55; }
.recipe-icon { font-size: 26px; text-align: center; }
.recipe-name { font-weight: 700; font-size: 14px; }
.recipe-desc { font-size: 11px; color: #a6badb; margin: 2px 0 4px; }
.costs { display: flex; flex-wrap: wrap; gap: 4px; }
.cost {
  font-size: 11px;
  font-weight: 700;
  border-radius: 6px;
  padding: 1px 6px;
  background: rgba(126, 247, 164, 0.14);
  color: #b9f7cb;
}
.cost.miss { background: rgba(255, 107, 107, 0.15); color: #ffb0b0; }
.recipe button {
  min-width: 74px;
  padding: 9px 10px;
  border: none;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(90deg, #6fe381, #9df2b0);
  color: #06130b;
}
.recipe button:disabled { background: rgba(255, 255, 255, 0.1); color: #8ea8cf; cursor: default; }

/* ---------- Mobile Touch Controls ---------- */
#touch-joystick-zone,
#mobile-actions { display: none; }

#touch-joystick-zone {
  position: absolute;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  left: calc(20px + env(safe-area-inset-left, 0px));
  width: 156px;
  height: 156px;
  align-items: center;
  justify-content: center;
  touch-action: none;
  z-index: 20;
}
#joy-base {
  position: relative;
  width: 126px;
  height: 126px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 34, 58, 0.45) 0%, rgba(8, 18, 34, 0.72) 100%);
  border: 2px solid rgba(126, 247, 164, 0.45);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45), inset 0 0 18px rgba(126, 247, 164, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
#joy-knob {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #b8f5c2, #5ab86b);
  border: 2px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.55);
  transition: transform 40ms ease-out;
  pointer-events: none;
}
#joy-knob.dragging { transition: none; }

#mobile-actions {
  position: absolute;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  right: calc(18px + env(safe-area-inset-right, 0px));
  width: 200px;
  height: 196px;
  pointer-events: none;
  z-index: 20;
}
.mob-btn {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(175, 230, 190, 0.55);
  background: rgba(10, 22, 42, 0.84);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  font-weight: 800;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
  pointer-events: auto;
  touch-action: none;
  cursor: pointer;
  transition: transform 70ms ease, background 100ms ease;
}
.mob-btn:active, .mob-btn.active {
  transform: scale(0.92);
  background: rgba(46, 112, 68, 0.92);
  border-color: #b4f0be;
}
.mob-btn-lg {
  width: 84px;
  height: 84px;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 35% 35%, rgba(235, 90, 70, 0.92), rgba(145, 32, 28, 0.92));
  border-color: rgba(255, 185, 165, 0.75);
}
.mob-btn-md {
  width: 70px;
  height: 70px;
  right: 94px;
  bottom: 4px;
  background: radial-gradient(circle at 35% 35%, rgba(65, 165, 225, 0.9), rgba(24, 72, 128, 0.92));
  border-color: rgba(160, 225, 255, 0.75);
}
#mob-use { width: 58px; height: 58px; right: 12px; bottom: 96px; }
#mob-craft { width: 58px; height: 58px; right: 84px; bottom: 90px; background: rgba(60, 46, 12, 0.88); border-color: rgba(245, 208, 97, 0.7); }
#mob-cam-reset { width: 44px; height: 44px; right: 150px; bottom: 150px; }
.mob-icon { font-size: 20px; line-height: 1; }
.mob-btn-lg .mob-icon { font-size: 26px; }
.mob-txt { font-size: 9px; letter-spacing: 0.5px; }

@media (pointer: coarse), (max-width: 860px) {
  #touch-joystick-zone, #mobile-actions { display: flex; }
}
body.touch-enabled #touch-joystick-zone,
body.touch-enabled #mobile-actions { display: flex; }

@media (pointer: coarse), (max-width: 860px) {
  #keys-help { display: none !important; }
  .hud-pill { font-size: 11px; padding: 5px 9px; gap: 5px; }
  #minimap { width: 92px; height: 92px; }
  #minimap-wrap { top: calc(46px + env(safe-area-inset-top, 0px)); }
  #status-cluster {
    left: 50%;
    transform: translateX(-50%);
    top: calc(46px + env(safe-area-inset-top, 0px));
    bottom: auto;
    gap: 3px;
  }
  .bar { width: 150px; height: 15px; }
  .bar.thin { height: 12px; }
  .bar-label { font-size: 9.5px; }
  #objectives { width: 190px; top: calc(46px + env(safe-area-inset-top, 0px)); }
  #objectives #obj-list li:not(.current) { display: none; }
  #obj-head { padding: 6px 10px; font-size: 11px; }
  #obj-list li { font-size: 11px; }
  #bottom-center { bottom: calc(196px + env(safe-area-inset-bottom, 0px)); }
  .slot { width: 46px; height: 46px; }
  .slot-icon { font-size: 20px; }
  #res-strip { max-width: 92vw; }
  .res-chip { font-size: 11px; padding: 2px 6px; }
  #hud-meta { display: none; }
  #event-log { display: none; }
  #toasts { top: calc(118px + env(safe-area-inset-top, 0px)); }
  #hotbar-hint { display: none; }
}
body.touch-enabled #keys-help { display: none !important; }

/* ---------- Overlays ---------- */
.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: radial-gradient(circle at center, rgba(10, 24, 48, 0.68), rgba(3, 6, 14, 0.88));
  backdrop-filter: blur(6px);
  z-index: 50;
}
.card {
  background: linear-gradient(165deg, #0c1b38, #071022);
  border: 1px solid rgba(126, 247, 164, 0.45);
  border-radius: 16px;
  padding: 30px 34px;
  width: 420px;
  max-width: 92vw;
  display: flex;
  flex-direction: column;
  gap: 15px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.75);
}
.version-tag {
  align-self: flex-start;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: #07140d;
  background: #7ef7a4;
  padding: 3px 9px;
  border-radius: 999px;
}
.card h1 { font-size: 28px; letter-spacing: 3px; color: #fff; }
.card .sub { color: #a6badb; font-size: 13px; line-height: 1.45; }
.card label { display: grid; gap: 6px; font-size: 12px; font-weight: 600; color: #9cb4db; }
.card input, .card select {
  background: #050a16;
  color: #e6f0ff;
  border: 1px solid #2b426b;
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  font-size: 16px;
  outline: none;
}
.card input:focus, .card select:focus { border-color: #7ef7a4; }
.card button {
  margin-top: 6px;
  padding: 13px;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: #06130b;
  background: linear-gradient(90deg, #6fe381, #9df2b0);
  border: none;
  border-radius: 9px;
  cursor: pointer;
}
.card button:disabled { opacity: 0.6; cursor: default; }
