@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;700&family=Rajdhani:wght@400;600&display=swap");

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Rajdhani", sans-serif;
  color: #d5f5ff;
  background: radial-gradient(circle at top, #0b1224 0%, #04070f 55%, #02050b 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: #7ad5ff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

main {
  padding: 32px 6vw 64px;
}

.scanlines {
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.02) 1px,
    transparent 1px,
    transparent 4px
  );
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.35;
  z-index: 1;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 6vw;
  background: rgba(3, 6, 15, 0.85);
  border-bottom: 1px solid rgba(96, 225, 255, 0.2);
  backdrop-filter: blur(8px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Orbitron", sans-serif;
  letter-spacing: 2px;
  font-size: 14px;
}

.brand-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #5df4ff;
  box-shadow: 0 0 12px #5df4ff;
}

.wallet {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  background: linear-gradient(135deg, #29f1ff, #7a5cff);
  color: #02101a;
  border: none;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  font-family: "Rajdhani", sans-serif;
  letter-spacing: 0.5px;
  box-shadow: 0 0 18px rgba(41, 241, 255, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 22px rgba(122, 92, 255, 0.35);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.btn.ghost {
  background: transparent;
  color: #a5f3ff;
  border: 1px solid rgba(93, 244, 255, 0.4);
  box-shadow: none;
}

.btn.large {
  padding: 14px 24px;
  font-size: 15px;
}

.status {
  font-size: 12px;
  color: #84f0ff;
}

.badge {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(93, 244, 255, 0.4);
  color: #9ee9ff;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  align-items: center;
  padding: 40px 0 48px;
  position: relative;
  z-index: 2;
}

.hero-copy h1 {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(32px, 5vw, 56px);
  margin: 8px 0 12px;
  text-shadow: 0 0 18px rgba(93, 244, 255, 0.4);
}

.subtle {
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #6ee7ff;
}

.lead {
  max-width: 480px;
  line-height: 1.6;
  color: #b9e9ff;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 24px 0;
}

.meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #5bb9d8;
}

.value {
  font-size: 16px;
  font-weight: 600;
  color: #d5f5ff;
}

.hero-panel {
  border: 1px solid rgba(93, 244, 255, 0.35);
  border-radius: 16px;
  padding: 24px;
  background: rgba(10, 24, 45, 0.65);
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.4);
}

.panel-title {
  font-family: "Orbitron", sans-serif;
  font-size: 12px;
  letter-spacing: 3px;
  color: #7ad5ff;
  margin-bottom: 12px;
}

.panel-body p {
  margin-top: 0;
  line-height: 1.6;
}

.panel-body ul {
  padding-left: 18px;
  margin: 12px 0 0;
  color: #a7d8ef;
}

.arena {
  margin-top: 24px;
  border: 1px solid rgba(93, 244, 255, 0.25);
  border-radius: 18px;
  padding: 24px;
  background: rgba(5, 12, 24, 0.85);
  position: relative;
  z-index: 2;
}

.arena-header {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.arena-title {
  font-family: "Orbitron", sans-serif;
  letter-spacing: 3px;
  font-size: 14px;
}

.stats {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.arena-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.score-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.arena-canvas {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(93, 244, 255, 0.2);
}

canvas {
  width: 100%;
  height: auto;
  display: block;
  background: radial-gradient(circle at bottom, #0f1f34, #07111f 60%, #04070f 100%);
}

.arena-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(2, 5, 12, 0.6);
}

.overlay-card {
  text-align: center;
  padding: 24px;
  border-radius: 16px;
  background: rgba(8, 18, 32, 0.9);
  border: 1px solid rgba(93, 244, 255, 0.35);
  max-width: 320px;
}

.run-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  padding: 18px;
  margin-top: 16px;
  border-radius: 14px;
  border: 1px solid rgba(93, 244, 255, 0.18);
  background: rgba(6, 14, 26, 0.75);
}

.dashboard {
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.panel {
  border-radius: 16px;
  border: 1px solid rgba(93, 244, 255, 0.25);
  background: rgba(8, 18, 32, 0.75);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

#agwPanel {
  min-height: 320px;
}

.agw-card {
  display: grid;
  gap: 14px;
}

.agw-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.agw-status {
  font-size: 13px;
  color: #c5f3ff;
}

.agw-field {
  display: grid;
  gap: 6px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #6bd8f5;
}

.panel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.leaderboard {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.leaderboard li {
  display: flex;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(11, 24, 40, 0.8);
  border: 1px solid rgba(93, 244, 255, 0.15);
  font-size: 14px;
}

.profile {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #6bd8f5;
}

.field.inline {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}

.input {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(93, 244, 255, 0.3);
  background: rgba(5, 10, 18, 0.9);
  color: #d5f5ff;
  font-family: "Rajdhani", sans-serif;
  font-size: 14px;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}

.settings {
  display: grid;
  gap: 12px;
}

.objective {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(93, 244, 255, 0.25);
  background: rgba(10, 22, 40, 0.8);
}

.subtle-text {
  color: #7fc9e6;
  font-size: 12px;
}

.note {
  line-height: 1.4;
}

.grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.card {
  padding: 20px;
  border-radius: 14px;
  border: 1px solid rgba(93, 244, 255, 0.2);
  background: rgba(8, 18, 32, 0.7);
}

footer {
  padding: 24px 6vw 40px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #6fd6ff;
  letter-spacing: 2px;
  border-top: 1px solid rgba(93, 244, 255, 0.2);
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(3, 6, 15, 0.7);
  z-index: 20;
}

.modal.hidden {
  display: none;
}

.modal-card {
  padding: 24px;
  max-width: 420px;
  border-radius: 16px;
  background: #0b1326;
  border: 1px solid rgba(93, 244, 255, 0.3);
}

@media (max-width: 720px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .wallet {
    width: 100%;
    flex-wrap: wrap;
  }

  footer {
    flex-direction: column;
    gap: 8px;
  }
}
