@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #090b14;
  --panel: #111522;
  --border: #252a3d;
  --text: #f5f6ff;
  --muted: #969db5;
  --purple: #a855f7;
  --cyan: #22d3ee;
  --green: #4ade80;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input {
  font: inherit;
}

button {
  cursor: pointer;
}

.navbar {
  height: 78px;
  padding: 0 7%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: #090b14ed;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
}

.logo {
  font-family: Orbitron, sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 1px;
}

.logo span {
  color: var(--cyan);
}

.navbar nav {
  display: flex;
  gap: 30px;
}

.navbar nav a {
  color: var(--muted);
  font-size: 14px;
  transition: color .2s;
}

.navbar nav a:hover {
  color: var(--cyan);
}

.nav-btn, .secondary-btn {
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 10px 16px;
  font-size: 13px;
}

.hero {
  min-height: 550px;
  padding: 80px 9%;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 35px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 75% 50%, #4c1d9530, transparent 45%),
    linear-gradient(135deg, #090b14, #101326);
}

.eyebrow {
  color: var(--cyan);
  font-family: Orbitron, sans-serif;
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 700;
  margin-bottom: 18px;
}

.hero h1 {
  font-family: Orbitron, sans-serif;
  font-size: clamp(42px, 5.5vw, 76px);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -2px;
}

.hero h1 span, .section-heading h2 span,
.arcade-copy h2 span {
  color: var(--purple);
}

.hero-description {
  max-width: 470px;
  margin: 22px 0 28px;
  color: var(--muted);
  font-size: 15px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.primary-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 13px 20px;
  border: 0;
  border-radius: 7px;
  background: linear-gradient(110deg, #7c3aed, #a855f7);
  color: white;
  font-size: 13px;
  font-weight: 700;
  transition: transform .2s, filter .2s;
}

.primary-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.15);
}

.secondary-btn:hover, .nav-btn:hover {
  border-color: var(--cyan);
}

.stats {
  display: flex;
  gap: 35px;
  margin-top: 44px;
}

.stats div {
  display: grid;
  gap: 3px;
}

.stats strong {
  font: 700 23px Orbitron, sans-serif;
}

.stats span {
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 1px;
}

.hero-art {
  min-height: 340px;
  position: relative;
  display: grid;
  place-items: center;
}

.orbit {
  position: absolute;
  width: 300px;
  height: 300px;
  border: 1px solid #a855f745;
  border-radius: 50%;
}

.orbit-two {
  width: 230px;
  height: 230px;
  border-color: #22d3ee50;
}

.controller {
  font-size: 130px;
  z-index: 1;
  filter: drop-shadow(0 0 25px #a855f780);
  animation: float 4s ease-in-out infinite;
}

.hero-symbol {
  position: absolute;
  top: 24px;
  right: 14%;
  color: var(--cyan);
  font-size: 38px;
}

.floating-tag {
  position: absolute;
  padding: 9px 13px;
  background: #171a2b;
  border: 1px solid var(--border);
  border-radius: 6px;
  font: 10px Orbitron, sans-serif;
  letter-spacing: 1px;
  z-index: 2;
}

.tag-one {
  top: 65px;
  left: 0;
  color: var(--cyan);
}

.tag-two {
  bottom: 55px;
  right: 0;
  color: #c084fc;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-14px) rotate(5deg); }
}

.games-section {
  padding: 80px 9%;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 30px;
}

.section-heading .eyebrow {
  margin-bottom: 8px;
}

.section-heading h2, .arcade-copy h2 {
  font: 700 clamp(25px, 3vw, 37px)/1.35 Orbitron, sans-serif;
}

.game-total {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 1px;
}

.game-tools {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 25px;
}

#search {
  background: var(--panel);
  color: white;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 12px 15px;
  min-width: 220px;
  outline: none;
}

#search:focus {
  border-color: var(--purple);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter {
  padding: 9px 14px;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 12px;
}

.filter.active, .filter:hover {
  color: white;
  border-color: var(--purple);
  background: #7c3aed30;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.game-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 11px;
  overflow: hidden;
  transition: transform .25s, border-color .25s;
}

.game-card:hover {
  transform: translateY(-5px);
  border-color: #a855f780;
}

.game-art {
  height: 175px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.game-art::before, .game-art::after {
  content: "";
  position: absolute;
  border: 1px solid #ffffff25;
  border-radius: 50%;
  width: 190px;
  height: 190px;
}

.game-art::after {
  width: 125px;
  height: 125px;
}

.art-icon {
  font-size: 75px;
  filter: drop-shadow(0 0 18px #ffffff55);
  z-index: 1;
  transition: transform .3s;
}

.game-card:hover .art-icon {
  transform: scale(1.13) rotate(-5deg);
}

.art-action {
  background: radial-gradient(circle, #7c3aed, #17122f 70%);
}

.art-racing {
  background: radial-gradient(circle, #ea580c, #26131b 70%);
}

.art-puzzle {
  background: radial-gradient(circle, #0891b2, #101d36 70%);
}

.art-arcade {
  background: radial-gradient(circle, #db2777, #291126 70%);
}

.art-fantasy {
  background: radial-gradient(circle, #16a34a, #10241f 70%);
}

.art-space {
  background: radial-gradient(circle, #4f46e5, #13152f 70%);
}

.game-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 8px;
  border-radius: 4px;
  background: #090b14c9;
  font-size: 9px;
  letter-spacing: 1px;
  z-index: 2;
}

.game-info {
  padding: 17px;
}

.game-info h3 {
  font-size: 16px;
  margin-bottom: 5px;
}

.game-info p {
  color: var(--muted);
  font-size: 12px;
  min-height: 39px;
}

.game-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 15px;
}

.category-label {
  color: var(--cyan);
  font-size: 10px;
}

.play-btn {
  color: white;
  background: transparent;
  border: 1px solid #a855f780;
  padding: 8px 12px;
  border-radius: 5px;
  font-size: 11px;
}

.play-btn:hover {
  background: var(--purple);
}

.empty-message {
  padding: 40px;
  text-align: center;
  color: var(--muted);
}

.arcade-section {
  margin: 20px 9% 85px;
  padding: 45px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 45px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 15px;
  background:
    radial-gradient(ellipse at 10% 90%, #7c3aed20, transparent 50%),
    #101321;
}

.arcade-copy > p:not(.eyebrow) {
  margin-top: 15px;
  color: var(--muted);
  font-size: 14px;
  max-width: 390px;
}

.best-score {
  display: grid;
  margin-top: 28px;
  gap: 5px;
}

.best-score span, .reaction-top, .reaction-footnote {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 1px;
}

.best-score strong {
  font: 700 25px Orbitron, sans-serif;
  color: var(--cyan);
}

.reaction-panel {
  padding: 20px;
  background: #090b14;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.reaction-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}

.live-dot {
  color: var(--green);
}

.reaction-button {
  width: 100%;
  min-height: 190px;
  padding: 20px;
  border: 1px solid #7c3aed60;
  border-radius: 8px;
  background: #18112b;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 9px;
}

.reaction-button span {
  font-size: 30px;
}

.reaction-button strong {
  font: 600 17px Orbitron, sans-serif;
  text-align: center;
}

.reaction-button small {
  color: #b5b2ca;
}

.reaction-button.waiting {
  background: #9f1239;
  border-color: #fb7185;
}

.reaction-button.go {
  background: #166534;
  border-color: var(--green);
}

.start-btn {
  width: 100%;
  margin-top: 14px;
}

.reaction-footnote {
  text-align: center;
  margin-top: 12px;
  font-size: 9px;
}

.game-dialog {
  width: min(500px, calc(100% - 30px));
  margin: auto;
  padding: 35px;
  background: #111522;
  color: white;
  border: 1px solid #a855f780;
  border-radius: 14px;
}

.game-dialog::backdrop {
  background: #000b;
  backdrop-filter: blur(5px);
}

.close-dialog {
  float: right;
  border: 0;
  color: white;
  background: transparent;
  font-size: 20px;
}

.dialog-art {
  font-size: 65px;
  margin: 20px 0;
}

.game-dialog h2 {
  font: 700 24px Orbitron, sans-serif;
}

.game-dialog p {
  color: var(--muted);
  margin: 12px 0 20px;
}

footer {
  padding: 28px 9%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  border-top: 1px solid var(--border);
}

footer p, footer > span {
  color: var(--muted);
  font-size: 11px;
}

@media (max-width: 850px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 65px 7%;
  }

  .hero-art {
    min-height: 280px;
  }

  .games-section {
    padding: 60px 7%;
  }

  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .arcade-section {
    margin: 10px 7% 60px;
    padding: 28px;
    grid-template-columns: 1fr;
  }

  .navbar {
    padding: 0 5%;
  }
}

@media (max-width: 520px) {
  .navbar {
    height: 68px;
  }

  .navbar nav {
    gap: 12px;
  }

  .navbar nav a {
    font-size: 11px;
  }

  .nav-btn {
    display: none;
  }

  .logo {
    font-size: 18px;
  }

  .hero {
    padding-top: 55px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-art {
    min-height: 240px;
  }

  .controller {
    font-size: 95px;
  }

  .orbit {
    width: 235px;
    height: 235px;
  }

  .orbit-two {
    width: 175px;
    height: 175px;
  }

  .stats {
    gap: 20px;
  }

  .stats strong {
    font-size: 18px;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .game-tools {
    flex-direction: column;
  }

  #search {
    width: 100%;
  }

  .filters {
    gap: 6px;
  }

  .filter {
    padding: 8px 10px;
  }

  .game-grid {
    grid-template-columns: 1fr;
  }

  .game-art {
    height: 190px;
  }

  .arcade-section {
    padding: 20px;
  }

  footer {
    flex-direction: column;
    text-align: center;
  }
}

button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}