:root {
  --bg: #050b14;
  --surface: #0d141d;
  --surface-low: #151c26;
  --surface-card: #0d1526;
  --surface-lowest: #080f18;
  --surface-highest: #2e353f;
  --on-surface: #dce3f0;
  --on-surface-variant: #b9cacb;
  --neon-cyan: #00f0ff;
  --neon-magenta: #ff007f;
  --primary-dim: #00dbe9;
  --divider: #1a2438;
  --max-width: 1280px;
  --margin: 32px;
  --gutter: 16px;
  --font-display: "Orbitron", sans-serif;
  --font-body: "Rajdhani", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--on-surface);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  padding-bottom: 88px;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--margin);
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--neon-cyan);
  color: #00363a;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 12px;
}

.skip-link:focus {
  top: 16px;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--divider);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.logo img {
  height: 40px;
  width: auto;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.live-badge {
  display: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--neon-cyan);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, filter 0.2s ease;
}

.btn:active {
  transform: scale(0.96);
}

.btn-cyan {
  background: var(--neon-cyan);
  color: #00363a;
  padding: 10px 24px;
}

.btn-cyan:hover {
  background: var(--primary-dim);
}

.btn-play {
  width: 100%;
  margin-top: 16px;
  padding: 12px 16px;
  background: var(--neon-magenta);
  color: #fff;
}

.btn-play:hover {
  filter: brightness(1.08);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--neon-cyan);
  color: var(--neon-cyan);
  padding: 10px 20px;
  font-weight: 800;
}

.btn-ghost:hover {
  background: rgba(0, 240, 255, 0.15);
}

/* Hero */
main {
  padding-top: 96px;
}

.hero {
  padding: 48px 0 24px;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  padding: 48px 24px;
  text-align: center;
  border: 1px solid var(--divider);
  background:
    linear-gradient(rgba(5, 11, 20, 0.82), rgba(5, 11, 20, 0.88)),
    url("../images/hero-bg.webp") center / cover no-repeat;
}

.pill {
  display: inline-block;
  margin-bottom: 16px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.pill-magenta {
  background: #fff;
  color: var(--neon-magenta);
  border: 1px solid rgba(255, 0, 127, 0.2);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #fff;
  line-height: 1.2;
}

.hero p {
  margin: 24px auto 0;
  max-width: 720px;
  color: #bfdbfe;
  font-size: clamp(14px, 2vw, 16px);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.chip {
  padding: 8px 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.chip-cyan {
  background: var(--neon-cyan);
  color: #000;
}

.chip-outline {
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  background: transparent;
}

.chip-magenta {
  background: var(--neon-magenta);
  color: #fff;
}

/* Games */
.games {
  padding: 40px 0;
}

.games-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gutter);
}

.game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  background: var(--surface-card);
  border: 1px solid var(--divider);
  transition: border-color 0.2s ease;
}

.game-card:hover {
  border-color: rgba(0, 240, 255, 0.55);
}

.card-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  padding: 4px 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid rgba(0, 240, 255, 0.35);
}

.game-card-body {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 28px;
}

.game-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.game-thumb {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.rating {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.score {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--neon-cyan);
  line-height: 1;
}

.stars {
  display: flex;
  gap: 2px;
  margin-top: 4px;
}

.stars svg {
  width: 12px;
  height: 12px;
  fill: var(--neon-cyan);
}

.game-name {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
}

.game-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.game-genre {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--neon-cyan);
}

.game-info h4 {
  margin-top: 8px;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.game-info p {
  margin-top: 4px;
  font-size: 14px;
  color: #bfdbfe;
}

.disclaimer {
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 10px;
  font-style: italic;
  text-align: center;
  color: rgba(185, 202, 203, 0.55);
}

/* Panorama */
.panorama {
  padding: 40px 0;
  background: rgba(21, 28, 38, 0.5);
  border-top: 1px solid rgba(219, 252, 255, 0.1);
  border-bottom: 1px solid rgba(219, 252, 255, 0.1);
}

.panorama-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: stretch;
}


.panorama-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.panorama-copy p {
  margin-top: 16px;
  color: var(--on-surface-variant);
  max-width: 520px;
}

.stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gutter);
  width: 100%;
}

.stat-card {
  background: var(--surface-card);
  border: 1px solid var(--divider);
  padding: 24px;
  text-align: center;
  transition: border-color 0.2s ease;
}

.stat-card:hover {
  border-color: rgba(0, 240, 255, 0.45);
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  line-height: 1;
}

.stat-value.cyan {
  color: var(--neon-cyan);
}

.stat-value.magenta {
  color: var(--neon-magenta);
}

.stat-label {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
}

/* Protocol */
.protocol {
  padding: 40px 0;
}

.section-title {
  margin-bottom: 48px;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.protocol-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

.protocol-step {
}

.protocol-step h3 {
  padding-top: 16px;
  margin-bottom: 16px;
  font-size: 24px;
  font-weight: 600;
  text-transform: uppercase;
  color: #dbfcff;
  border-top: 1px solid rgba(0, 240, 255, 0.3);
}

.protocol-step h3.border-magenta {
  border-top-color: rgba(255, 0, 127, 0.3);
}

.protocol-step p {
  color: var(--on-surface-variant);
}

/* Features */
.features {
  padding: 40px 0 64px;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gutter);
}

.feature-card {
  padding: 32px;
  text-align: center;
  background: var(--surface-low);
  border: 1px solid rgba(219, 252, 255, 0.1);
  transition: border-color 0.3s ease;
}

.feature-card.hover-cyan:hover {
  border-color: var(--neon-cyan);
}

.feature-card.hover-magenta:hover {
  border-color: var(--neon-magenta);
}

.feature-card img {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  object-fit: cover;
}

.feature-card h3 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.feature-card.hover-cyan h3 {
  color: var(--neon-cyan);
}

.feature-card.hover-magenta h3 {
  color: var(--neon-magenta);
}

.feature-card p {
  margin-top: 16px;
  font-size: 14px;
  color: var(--on-surface-variant);
}

/* Footer */
.site-footer {
  position: relative;
  padding: 40px 0;
  background: var(--surface-lowest);
  border-top: 1px solid rgba(219, 252, 255, 0.2);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.footer-brand img {
  height: 40px;
  width: auto;
  margin-bottom: 16px;
}

.footer-brand p,
.footer-grid ul a,
.contact-box p {
  font-size: 14px;
  color: var(--on-surface-variant);
}

.footer-grid h6 {
  margin-bottom: 24px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--neon-cyan);
}

.footer-grid ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-grid ul a:hover {
  color: var(--neon-cyan);
}

.contact-box {
  padding: 20px;
  border: 1px solid rgba(0, 240, 255, 0.2);
  background: rgba(5, 11, 20, 0.5);
}

.contact-box a {
  display: block;
  margin: 8px 0 4px;
  font-weight: 700;
  color: var(--neon-cyan);
}

.contact-box a:hover {
  color: var(--primary-dim);
}

.site-url {
  font-size: 12px;
  color: var(--on-surface-variant);
}

.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(219, 252, 255, 0.1);
  text-align: center;
}

.footer-bottom p {
  font-size: 14px;
  color: var(--on-surface-variant);
}

/* Cookie bar */
.cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: var(--surface-card);
  border-top: 1px solid var(--divider);
}

.cookie-bar.is-hidden {
  display: none;
}

.cookie-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 16px var(--margin);
}

.cookie-text {
  text-align: center;
}

.cookie-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
}

.cookie-title a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-title a:hover {
  color: var(--neon-cyan);
}

.cookie-text p:last-child {
  font-size: 12px;
  color: var(--on-surface);
  max-width: 320px;
}

/* Responsive */
@media (min-width: 640px) {
  .live-badge {
    display: block;
  }

  .cookie-inner {
    flex-direction: row;
    justify-content: space-between;
  }

  .cookie-text {
    text-align: left;
  }

  .stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) {
  .game-card-body {
    flex-direction: row;
    margin-top: 8px;
  }

  .game-meta {
    width: 128px;
    flex-shrink: 0;
  }

  .protocol-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 950px) {
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .panorama-inner {
    flex-direction: row;
    align-items: center;
  }

  .panorama-copy,
  .stats {
    width: 50%;
  }

  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  }
}

@media (max-width: 767px) {
  :root {
    --margin: 16px;
  }
}

/* Inner pages */
.page-main {
  padding-top: 96px;
  padding-bottom: 64px;
}

.page-hero {
  padding: 40px 0 24px;
}

.page-hero-panel {
  padding: 40px 24px;
  border: 1px solid var(--divider);
  background:
    linear-gradient(rgba(5, 11, 20, 0.88), rgba(5, 11, 20, 0.92)),
    url("../images/hero-bg.webp") center / cover no-repeat;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #fff;
}

.page-meta {
  margin-top: 12px;
  color: var(--on-surface-variant);
  font-size: 14px;
}

.page-content {
  margin: 0 auto;
  padding: 24px 0 8px;
}

.page-content h2 {
  margin: 36px 0 12px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #dbfcff;
  border-top: 1px solid rgba(0, 240, 255, 0.25);
  padding-top: 20px;
}

.page-content h2:first-child {
  margin-top: 0;
}

.page-content p,
.page-content li {
  color: var(--on-surface-variant);
  font-size: 16px;
  line-height: 1.65;
}

.page-content p + p {
  margin-top: 12px;
}

.page-content ul,
.page-content ol {
  margin: 12px 0 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-content ul {
  list-style: disc;
}

.page-content ol {
  list-style: decimal;
}

.page-content a {
  color: var(--neon-cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-content a:hover {
  color: var(--primary-dim);
}

.page-content .note {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(0, 240, 255, 0.2);
  background: rgba(13, 21, 38, 0.7);
  font-size: 14px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin: 0 auto;
  padding: 24px 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  background: var(--surface-card);
  border: 1px solid rgba(0, 240, 255, 0.3);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--neon-cyan);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--divider);
  color: var(--on-surface);
  font-family: var(--font-body);
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--neon-cyan);
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

.form-hint {
  font-size: 13px;
  color: var(--on-surface-variant);
}

.form-status {
  display: none;
  padding: 12px 14px;
  border: 1px solid rgba(0, 240, 255, 0.35);
  background: rgba(0, 240, 255, 0.08);
  color: var(--neon-cyan);
  font-size: 14px;
}

.form-status.is-visible {
  display: block;
}

.contact-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-card {
  padding: 20px;
  background: rgba(13, 21, 38, 0.8);
  border: 1px solid rgba(0, 240, 255, 0.2);
}

.contact-card h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #dbfcff;
}

.contact-card p,
.contact-card li {
  color: var(--on-surface-variant);
  font-size: 15px;
  line-height: 1.55;
}

.contact-card ul {
  margin-top: 10px;
  padding-left: 18px;
  list-style: disc;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-card a {
  color: var(--neon-cyan);
  font-weight: 700;
}

@media (min-width: 900px) {
  .contact-layout {
    grid-template-columns: 1.3fr 0.9fr;
    align-items: start;
  }
}


/* Focus & motion */
:focus-visible {
  outline: 2px solid var(--neon-cyan);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
