/* ── OrbitWar Web3 UI ─────────────────────────────────────── */

/* ── Dark modal theme ────────────────────────────────────── */

.modal-content.ow-dark {
  background: #0d0d1a;
  border: 1px solid #252542;
  color: #d8d8ea;
  border-radius: 6px;
}

.ow-dark .modal-header {
  background: #0a0a15;
  border-bottom: 1px solid #252542;
  padding: 10px 15px;
}

.ow-dark .modal-title {
  color: #7070a0;
  font-size: 0.82em;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 400;
}

.ow-dark .close {
  color: #404060;
  opacity: 1;
  text-shadow: none;
}
.ow-dark .close:hover { color: #d8d8ea; }

.ow-dark .modal-body {
  background: #0d0d1a;
  padding: 14px 15px 10px;
}

.ow-dark .modal-footer {
  background: #0a0a15;
  border-top: 1px solid #252542;
}

/* ── Stat cards ──────────────────────────────────────────── */

.ow-section-label {
  font-size: 0.64em;
  letter-spacing: 0.16em;
  color: #7070aa;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.ow-stat-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}

.ow-stat-card {
  flex: 1;
  background: #111126;
  border: 1px solid #1e1e38;
  border-top: 3px solid var(--accent, #555577);
  border-radius: 4px;
  padding: 7px 8px 6px;
  text-align: center;
  min-width: 0;
}

.ow-stat-num {
  display: block;
  font-size: 1.85em;
  font-weight: 700;
  color: var(--accent, #888899);
  line-height: 1;
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.ow-stat-lbl {
  display: block;
  font-size: 0.6em;
  letter-spacing: 0.08em;
  color: #8888aa;
  text-transform: uppercase;
  line-height: 1.4;
}

/* ── Dark divider ────────────────────────────────────────── */

.ow-divider {
  margin: 10px 0;
  border-color: #1e1e38;
}

/* ── Input field labels (match stat card label style) ───── */

.ow-input-lbl {
  display: block;
  font-size: 0.6em;
  letter-spacing: 0.12em;
  color: #8888aa;
  text-transform: uppercase;
  line-height: 1.4;
  margin: 0;
}

.ow-input-lbl-sub {
  display: block;
  font-size: 0.72em;   /* relative to .ow-input-lbl — smaller still */
  letter-spacing: 0.04em;
  color: #555577;
  text-transform: none;
  line-height: 1.3;
}

/* ── "Get OWT to Play" button variant ───────────────────── */

.ow-dark #dialogButton.btn-get-owt {
  background: #1a1a3a;
  border-color: #4a4aaa;
  color: #9999ff;
  font-weight: 700;
  letter-spacing: 0.04em;
  min-width: 90px;
}
.ow-dark #dialogButton.btn-get-owt:hover {
  background: #22226a;
  border-color: #7777cc;
  color: #bbbbff;
}

/* ── Dark form inputs ────────────────────────────────────── */

.ow-dark input[type="text"],
.ow-dark select {
  background: #111126 !important;
  border-color: #252542 !important;
  color: #d8d8ea !important;
  border-radius: 3px;
}

.ow-dark input[type="text"]:focus,
.ow-dark select:focus {
  border-color: #4a4a9a !important;
  box-shadow: 0 0 0 2px rgba(80, 80, 180, 0.2) !important;
  outline: none;
}

.ow-dark input[type="text"]::placeholder { color: #30304a; }

/* ── Dark labels and links ───────────────────────────────── */

.ow-dark label            { color: #7070a0; cursor: pointer; }
.ow-dark a,
.ow-dark a:visited        { color: #5577cc; }
.ow-dark a:hover          { color: #99bbff; text-decoration: none; }

/* ── Achievements bar (between body and footer) ──────────── */

.ow-dark #achievements {
  background: #111126 !important;
  border-top: 1px solid #252542;
  border-bottom: none;
  border-radius: 0;
  margin-top: 0 !important;
  padding: 8px 15px !important;
  color: #d8d8ea;
}

/* ── Dialog action button ────────────────────────────────── */

/* GO! and Connect Wallet → game green */
.ow-dark #dialogButton.btn-primary {
  background: #00bb4a;
  border-color: #00bb4a;
  color: #000;
  font-weight: 700;
  letter-spacing: 0.05em;
  min-width: 90px;
}
.ow-dark #dialogButton.btn-primary:hover:not(:disabled) {
  background: #00dd55;
  border-color: #00dd55;
}
.ow-dark #dialogButton.btn-primary:disabled {
  background: #0d2a1a;
  border-color: #0d2a1a;
  color: #1a5530;
}

/* Buy In → gold */
.ow-dark #dialogButton.btn-success {
  background: #c8950a;
  border-color: #c8950a;
  color: #000;
  font-weight: 700;
  letter-spacing: 0.05em;
  min-width: 90px;
}
.ow-dark #dialogButton.btn-success:hover:not(:disabled) {
  background: #f0b800;
  border-color: #f0b800;
}
.ow-dark #dialogButton.btn-success:disabled {
  background: #1e1800;
  border-color: #1e1800;
  color: #4a3a00;
}

/* ── Wallet footer text ──────────────────────────────────── */

.ow-dark #ow-wallet-addr { color: #383858; }
.ow-dark #ow-dw-status   { color: #5566aa; }

/* ── Web3 modal backdrop ─────────────────────────────────── */

#ow-backdrop {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1040;
}

/* ── Death modal ─────────────────────────────────────────── */

#ow-death-modal {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1050;
  overflow-y: auto;
  -webkit-user-select: text;
  user-select: text;
}

/* ── Airdrop counter bar ─────────────────────────────────── */

#ow-airdrop-bar {
  background: #0d0d1a;
  border-bottom: 1px solid #1e1e38;
  padding: 7px 14px 5px;
  text-align: center;
  font-size: 0.82em;
  color: #a0a0c8;
  letter-spacing: 0.04em;
  position: relative;
  z-index: 10;
}

#ow-airdrop-counter {
  font-size: 1.08em;
  font-weight: 700;
  color: #ff4444;
  letter-spacing: 0.02em;
}

#ow-airdrop-counter.going-fast { color: #ff8800; }
#ow-airdrop-counter.almost-gone { color: #ffcc00; }
#ow-airdrop-counter.final-spots { color: #ff2222; }
#ow-airdrop-counter.cap-reached { color: #7070a0; font-weight: 400; }

/* ── Activity feed ───────────────────────────────────────── */

#ow-airdrop-feed {
  margin: 0;
  padding: 4px 0 0;
  list-style: none;
  max-height: 60px;
  overflow: hidden;
  font-size: 0.77em;
  color: #5566aa;
  line-height: 1.6;
}

#ow-airdrop-feed li {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  animation: ow-feed-in 0.35s ease;
}

@keyframes ow-feed-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Airdrop celebration modal ───────────────────────────── */

#ow-airdrop-modal {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1060;
  overflow-y: auto;
  -webkit-user-select: text;
  user-select: text;
}

#ow-airdrop-modal .modal-content {
  background: #0a0a15;
  border: 1px solid #252542;
  color: #d8d8ea;
  border-top: 3px solid #00dd55;
}

#ow-airdrop-modal .modal-header {
  background: #060610;
  border-bottom: 1px solid #1e1e38;
}

#ow-airdrop-modal .modal-title {
  color: #00dd55;
  font-size: 1.1em;
  font-weight: 700;
  letter-spacing: 0.06em;
}

#ow-airdrop-modal .modal-body {
  background: #0a0a15;
  text-align: center;
  padding: 22px 20px 18px;
}

#ow-airdrop-player-num {
  font-size: 3.2em;
  font-weight: 900;
  color: #00dd55;
  line-height: 1;
  display: block;
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}

#ow-airdrop-modal .modal-footer {
  background: #060610;
  border-top: 1px solid #1e1e38;
  text-align: center;
}

/* confetti burst */
.ow-confetti {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 0;
  pointer-events: none;
  z-index: 1070;
  overflow: visible;
}

.ow-confetti-piece {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  opacity: 0;
  animation: ow-confetti-fall 2.2s ease-in forwards;
}

@keyframes ow-confetti-fall {
  0%   { transform: translateY(-20px) rotate(0deg);   opacity: 1; }
  80%  { opacity: 1; }
  100% { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}
