:root {
  --bg: #07111f;
  --bg-2: #0c1728;
  --panel: rgba(13, 24, 40, 0.88);
  --panel-2: rgba(19, 32, 54, 0.82);
  --text: #ecf5ff;
  --muted: #97a9c4;
  --line: rgba(255, 255, 255, 0.08);
  --glow: rgba(92, 225, 230, 0.22);
  --green: #22c55e;
  --red: #ef4444;
  --amber: #f59e0b;
  --blue: #38bdf8;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.10), transparent 24%),
    linear-gradient(180deg, #030814 0%, var(--bg) 100%);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.site-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.site-header,
.hero,
.game-card,
.panel-card,
.content-card,
.site-footer {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(10, 18, 32, 0.76);
  box-shadow: var(--shadow);
  position: sticky;
  top: 14px;
  z-index: 20;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.brand {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.brand-tag {
  color: var(--muted);
  font-size: 0.95rem;
}

.top-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.top-nav a {
  color: var(--muted);
  font-weight: 600;
}

.top-nav a:hover {
  color: var(--text);
}

.hero {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 24px;
  margin-top: 24px;
  padding: 34px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(13, 24, 40, 0.9), rgba(9, 17, 30, 0.82));
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  left: -100px;
  top: -80px;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.18), transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -100px;
  width: 280px;
  height: 280px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.14), transparent 72%);
  pointer-events: none;
}

.hero-copy,
.hero-side {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--blue);
  font-weight: 800;
}

.hero h1,
.content-card h2,
.game-head h2 {
  margin: 0;
  line-height: 1.05;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  max-width: 13ch;
}

.hero-text {
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.7;
  max-width: 60ch;
  margin: 18px 0 22px;
}

.hero-actions,
.control-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 13px 18px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease, opacity 140ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, #f7fbff, #dbf3ff);
  color: #05111c;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border-color: var(--line);
}

.btn-tertiary {
  background: transparent;
  color: var(--muted);
  border-color: var(--line);
}

.trust-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.trust-row span {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.hero-side {
  display: grid;
  gap: 16px;
  align-content: start;
}

.ad-box,
.mini-card,
.panel-card,
.content-card,
.game-card {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.ad-box,
.mini-card {
  border-radius: var(--radius-lg);
  padding: 20px;
}

.ad-box strong,
.inline-ad strong,
.panel-card strong {
  display: block;
  margin-bottom: 8px;
}

.ad-box p,
.mini-card,
.panel-card p,
.content-card p,
.inline-ad p,
.rank-list li span,
.muted {
  color: var(--muted);
  line-height: 1.65;
}

.mini-card {
  background: linear-gradient(180deg, rgba(18, 32, 54, 0.95), rgba(12, 22, 39, 0.92));
  font-size: 1rem;
}

.mini-label,
.feedback-label,
.stat-label {
  display: block;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.74rem;
  margin-bottom: 6px;
}

.game-section {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1.25fr 0.55fr;
  gap: 22px;
  align-items: start;
}

.game-card {
  padding: 24px;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(10, 20, 34, 0.94), rgba(7, 14, 25, 0.94));
  position: relative;
  overflow: hidden;
}

.game-card::before {
  content: "";
  position: absolute;
  top: -90px;
  left: -60px;
  width: 230px;
  height: 230px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.16), transparent 72%);
  pointer-events: none;
}

.game-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.game-head h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  max-width: 18ch;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(100px, 1fr));
  gap: 12px;
}

.stat-card {
  min-width: 105px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
}

.stat-value {
  font-weight: 900;
  font-size: 1.08rem;
}

.arena {
  margin-top: 20px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 24px;
  min-height: 420px;
  background: linear-gradient(180deg, rgba(17, 29, 48, 0.9), rgba(12, 20, 36, 0.95));
  color: var(--text);
  padding: 30px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
  text-align: center;
}

.arena:hover {
  transform: translateY(-1px);
}

.arena-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
}

.arena::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(255,255,255,0.08), transparent 42%);
  pointer-events: none;
}

.arena-badge {
  display: inline-block;
  margin-bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: #d7efff;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.arena h3 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.05;
}

.arena p {
  margin: 14px auto 0;
  color: rgba(236, 245, 255, 0.92);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 58ch;
}

.arena-waiting {
  background:
    radial-gradient(circle at top, rgba(239, 68, 68, 0.15), transparent 30%),
    linear-gradient(180deg, #6f1420, #56121a);
}

.arena-ready {
  background:
    radial-gradient(circle at top, rgba(74, 222, 128, 0.22), transparent 33%),
    linear-gradient(180deg, #127b3d, #156337);
  animation: readyPulse 0.85s ease-in-out infinite alternate;
}

.arena-too-soon {
  background:
    radial-gradient(circle at top, rgba(245, 158, 11, 0.18), transparent 33%),
    linear-gradient(180deg, #964010, #7b3510);
}

.arena-result {
  background:
    radial-gradient(circle at top, rgba(56, 189, 248, 0.15), transparent 34%),
    linear-gradient(180deg, #102235, #0c1728);
}

@keyframes readyPulse {
  from { transform: scale(1); }
  to { transform: scale(1.004); }
}

.feedback-row {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 12px;
}

.feedback-card,
.inline-ad {
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

.feedback-card strong {
  font-size: 1rem;
  line-height: 1.5;
}

.control-row {
  margin-top: 16px;
}

.inline-ad {
  margin-top: 18px;
  background: rgba(255, 255, 255, 0.035);
}

.side-panel {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 92px;
}

.panel-card {
  border-radius: var(--radius-lg);
  padding: 20px;
}

.panel-card h3 {
  margin-top: 0;
  margin-bottom: 14px;
}

.attempt-list {
  display: grid;
  gap: 10px;
}

.attempt-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255,255,255,0.04);
}

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

.rank-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.content-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.content-card {
  border-radius: var(--radius-lg);
  padding: 24px;
  background: linear-gradient(180deg, rgba(12, 22, 38, 0.96), rgba(8, 16, 28, 0.96));
}

.content-card h2 {
  margin-bottom: 12px;
  font-size: 1.55rem;
}

.site-footer {
  margin-top: 28px;
  padding: 20px 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(9, 17, 30, 0.84);
  color: var(--muted);
}

@media (max-width: 1080px) {
  .hero,
  .game-section,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .side-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .site-shell {
    width: min(100% - 18px, 1240px);
    padding-top: 12px;
  }

  .site-header,
  .hero,
  .game-card,
  .content-card,
  .panel-card {
    border-radius: 18px;
  }

  .hero,
  .game-card,
  .content-card {
    padding: 20px;
  }

  .arena {
    min-height: 340px;
    padding: 24px 18px;
  }

  .stats-grid,
  .feedback-row {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }

  .top-nav {
    gap: 12px;
  }
}
