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

:root {
  --bg-darkest: #030508;
  --bg-deep: #0a0f1a;
  --bg-mid: #121c2e;
  --surface: rgba(8, 16, 32, 0.9);
  --border: rgba(0, 245, 255, 0.28);
  --text: #e8f6ff;
  --muted: #7eb8d8;
  --accent: #00f5ff;
  --accent-2: #ff2a8a;
  --warning: #ffd600;
  --radius: 12px;
}

body {
  background:
    radial-gradient(820px 430px at 50% -4%, rgba(0, 245, 255, 0.12), transparent 48%),
    radial-gradient(720px 420px at 12% 10%, rgba(255, 42, 138, 0.1), transparent 54%),
    radial-gradient(760px 420px at 88% 16%, rgba(255, 214, 0, 0.08), transparent 48%),
    linear-gradient(180deg, var(--bg-darkest) 0%, var(--bg-deep) 50%, var(--bg-mid) 100%) !important;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 245, 255, 0.02) 1px, transparent 1px),
    linear-gradient(0deg, rgba(0, 245, 255, 0.02) 1px, transparent 1px),
    radial-gradient(circle at 18% 20%, rgba(0, 245, 255, 0.3) 0 3px, transparent 4px),
    radial-gradient(circle at 70% 22%, rgba(255, 42, 138, 0.25) 0 3px, transparent 4px),
    linear-gradient(115deg, transparent 22%, rgba(0, 245, 255, 0.05) 45%, transparent 68%);
  background-size: 36px 36px, 36px 36px, auto, auto, auto;
  animation: gridSweep 14s ease-in-out infinite;
}

body,
button {
  font-family: "Rajdhani", "DM Sans", system-ui, sans-serif !important;
  letter-spacing: 0.02em;
}

a {
  color: var(--accent);
}

a:hover {
  color: var(--accent-2);
}

.game-top {
  background: linear-gradient(180deg, rgba(3, 5, 10, 0.96), rgba(10, 18, 36, 0.9)) !important;
  border-bottom: 1px solid rgba(0, 245, 255, 0.25) !important;
  backdrop-filter: blur(18px);
}

.game-top::after {
  content: "▮ ▮ ▮";
  margin-left: auto;
  opacity: 0.35;
  letter-spacing: 0.2rem;
  font-size: 0.9rem;
  color: var(--accent);
}

.back,
.back:hover {
  color: var(--text) !important;
}

.game-title {
  font-family: "Orbitron", system-ui, sans-serif !important;
  background: linear-gradient(135deg, #e8f6ff 0%, #00f5ff 40%, #ff2a8a 68%, #ffd600 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.game-notice {
  background: linear-gradient(135deg, rgba(0, 245, 255, 0.06), rgba(255, 42, 138, 0.05)) !important;
  border-bottom: 1px solid rgba(0, 245, 255, 0.14) !important;
  color: var(--muted) !important;
  letter-spacing: 0.02em;
}

.panel {
  max-width: 460px;
  background: linear-gradient(155deg, rgba(8, 18, 38, 0.96), rgba(14, 28, 52, 0.88)) !important;
  border-color: rgba(0, 245, 255, 0.28) !important;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 245, 255, 0.08), inset 0 1px 0 rgba(0, 245, 255, 0.1) !important;
  overflow: hidden;
}

.panel::before {
  background: radial-gradient(circle at 100% 0%, rgba(0, 245, 255, 0.12), transparent 66%) !important;
}

.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(118deg, transparent 18%, rgba(0, 245, 255, 0.12) 42%, transparent 64%);
  transform: translateX(-120%);
  animation: panelShimmer 10s ease-in-out infinite;
  pointer-events: none;
}

.game-main::after {
  content: "🏙️   ⚡   🌃";
  position: fixed;
  right: 20px;
  bottom: 18px;
  font-size: 1.2rem;
  opacity: 0.15;
  letter-spacing: 0.35rem;
  pointer-events: none;
}

.stat-line,
.row-stats {
  background: rgba(0, 245, 255, 0.06) !important;
  border: 1px solid rgba(0, 245, 255, 0.18) !important;
  color: var(--muted) !important;
  border-radius: 8px;
  padding: 12px 14px;
}

.stat-line strong,
.row-stats strong {
  color: var(--accent) !important;
  letter-spacing: 0.04em;
}

.btn {
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 24%, rgba(255, 255, 255, 0.34) 46%, transparent 68%);
  transform: translateX(-120%);
  transition: transform 0.7s ease;
}

.btn:hover::before {
  transform: translateX(120%);
}

@keyframes gridSweep {
  0%,
  100% {
    transform: translateX(-2%) translateY(0);
  }
  50% {
    transform: translateX(2%) translateY(-4px);
  }
}

@keyframes panelShimmer {
  0%,
  72%,
  100% {
    transform: translateX(-120%);
  }
  84% {
    transform: translateX(120%);
  }
}
