/* =======================================================
   EXPANSA — GATE / LOBBY / AUTH STANDALONE UI THEME
   (Safe for VPS. Does NOT affect game UI.)
======================================================= */

/* ===== Vars ===== */
:root {
  --bg: #000;
  --panel: rgba(0, 0, 0, 0.65);
  --panel-b: #0f8;
  --text: #aefccf;
  --muted: #6fd99f;
  --ui: #00ff80;
}

/* ===== Base ===== */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: "Lucida Console", Monaco, Consolas, monospace;
  text-shadow: 0 0 4px rgba(0, 255, 128, 0.20);
}

/* ===== Top-right nav ===== */
.topbar {
  position: fixed;
  top: 10px;
  right: 14px;
  display: flex;
  gap: 10px;
  z-index: 9999;
}

.btn {
  border: 1px solid var(--panel-b);
  background: transparent;
  color: var(--ui);
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s ease, filter .15s ease;
}

.btn:hover {
  background: rgba(0,255,128,0.08);
  filter: drop-shadow(0 0 6px rgba(0,255,128,0.45));
}

.btn.primary {
  background: rgba(0,255,128,0.10);
  border-color: var(--panel-b);
  color: #cfffec;
}

.btn.primary:hover {
  background: rgba(0,255,128,0.18);
}

/* ===== Panels ===== */
.panel {
  max-width: 640px;
  margin: 80px auto 0;
  background: var(--panel);
  border: 1px solid var(--panel-b);
  padding: 24px;
  text-align: center;
}

.panel h2 {
  margin: 0 0 10px;
  color: var(--ui);
  text-shadow: 0 0 6px rgba(0,255,128,0.35);
}

.panel p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.footer-note {
  margin-top: 20px;
  font-size: 12px;
  color: var(--muted);
}

.actions {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 14px;
}

/* Starfield canvas behind UI */
#stars-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
}

body > * {
  position: relative;
  z-index: 2;
}

/* No border radius anywhere */
:where(.btn, .panel) {
  border-radius: 0 !important;
}

/* ===== Fix mobile overflow for typing line ===== */
#gate-dynamic-text {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-wrap: break-word;
  white-space: normal; /* allow wrapping instead of staying on one line */
  font-size: clamp(13px, 3.5vw, 16px); /* responsive text */
  line-height: 1.4;
}

@media (max-width: 420px) {
  .panel {
    margin: 40px 12px;
    padding: 18px;
  }
}
