:root {
  --font-primary: "Roboto", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;

  --bg: #08111f;
  --bg-elevated: #101b2d;
  --bg-card: rgba(16, 27, 45, 0.88);
  --bg-soft: rgba(255, 255, 255, 0.05);
  --text: #edf4ff;
  --text-muted: #aac0df;
  --heading: #ffffff;
  --line: rgba(255, 255, 255, 0.12);

  --primary: #54c7ff;
  --primary-strong: #2aa8e8;
  --secondary: #8f7bff;
  --accent: #19e0b3;
  --warning: #ffb84d;
  --danger: #ff6b81;

  --shadow-sm: 0 8px 20px rgba(0, 0, 0, 0.18);
  --shadow-md: 0 18px 40px rgba(0, 0, 0, 0.24);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.34);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --container: 1180px;
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

html:focus-within {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(84, 199, 255, 0.16), transparent 30%),
    radial-gradient(circle at 85% 20%, rgba(143, 123, 255, 0.14), transparent 25%),
    radial-gradient(circle at 50% 100%, rgba(25, 224, 179, 0.08), transparent 30%),
    linear-gradient(180deg, #08111f 0%, #0b1424 45%, #09111c 100%);
  min-height: 100vh;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at center, black 45%, transparent 95%);
  opacity: 0.35;
  z-index: -1;
}

img,
iframe {
  max-width: 100%;
  display: block;
}

img {
  height: auto;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition), transform var(--transition), background-color var(--transition), border-color var(--transition), box-shadow var(--transition);
}

a:hover,
a:focus-visible {
  color: #8bdcff;
}

p,
ul,
ol {
  margin-top: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  line-height: 1.15;
  color: var(--heading);
  font-weight: 700;
}

h1 {
  font-size: clamp(2.1rem, 6vw, 4.5rem);
}

h2 {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
}

h3 {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
}

ul {
  padding-left: 1.2rem;
}

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin-inline: auto;
}

main {
  display: block;
}

/* Header / Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(8, 17, 31, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-sm);
}

nav {
  width: min(var(--container), calc(100% - 1rem));
  margin-inline: auto;
  padding: 0.85rem 0 0.55rem;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
}

nav li {
  margin: 0;
}

nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid transparent;
  font-size: 0.96rem;
  font-weight: 500;
  text-align: center;
}

nav a:hover,
nav a:focus-visible,
nav a[aria-current="page"] {
  color: #04121f;
  background: linear-gradient(135deg, var(--primary), #8bdcff);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 10px 26px rgba(84, 199, 255, 0.24);
  transform: translateY(-1px);
}

.age-warning {
  background: linear-gradient(90deg, rgba(255, 184, 77, 0.16), rgba(255, 107, 129, 0.14));
  color: #ffd99b;
  text-align: center;
  padding: 0.8rem 1rem;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Hero */
.hero {
  width: min(var(--container), calc(100% - 2rem));
  margin: 1.1rem auto 0;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  min-height: clamp(420px, 72vh, 780px);
  display: grid;
  align-content: end;
  padding: clamp(1.5rem, 4vw, 4rem);
  box-shadow: var(--shadow-lg);
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(7, 13, 24, 0.1) 0%, rgba(7, 13, 24, 0.55) 55%, rgba(7, 13, 24, 0.9) 100%),
    linear-gradient(135deg, rgba(84, 199, 255, 0.18), rgba(143, 123, 255, 0.12));
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -3;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 20% 20%, rgba(84, 199, 255, 0.2), transparent 20%),
    radial-gradient(circle at 80% 30%, rgba(143, 123, 255, 0.24), transparent 25%),
    linear-gradient(180deg, rgba(4, 9, 17, 0.16), rgba(4, 9, 17, 0.82));
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 35%;
  z-index: -1;
  background: linear-gradient(180deg, transparent, rgba(8, 17, 31, 0.9));
}

.hero h1 {
  max-width: 12ch;
  margin-bottom: 0.8rem;
  text-shadow: 0 6px 22px rgba(0, 0, 0, 0.45);
}

.hero h1 span {
  color: var(--primary);
}

.hero p {
  max-width: 720px;
  margin-bottom: 0;
  font-size: clamp(1rem, 2.3vw, 1.25rem);
  color: #e6f1ff;
}

/* Shared sections */
.section,
.game-section,
.disclaimer,
.responsible-short {
  padding: 3rem 0;
}

.content,
.disclaimer,
.responsible-short,
.game-container {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
}

.content {
  padding: 1.5rem;
}

.content h2 + p,
.content h2 + img,
.content h2 + ul {
  margin-top: 0;
}

.content p {
  color: var(--text-muted);
}

.content h2 {
  margin-bottom: 1rem;
  margin-top: 2rem;
}

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

.page-img {
  width: 100%;
  border-radius: var(--radius-md);
  margin: 1.4rem 0 1.6rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-sm);
  object-fit: cover;
}

.list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 1.5rem;
  display: grid;
  gap: 0.8rem;
}

.list li {
  position: relative;
  padding: 0.95rem 1rem 0.95rem 3rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.list li::before {
  content: "✦";
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 1rem;
  font-weight: 700;
}

/* Index game area */
.game-section {
  text-align: center;
}

.game-section h2,
.disclaimer h2,
.responsible-short h2 {
  margin-bottom: 1rem;
}

.game-section > p,
.disclaimer p,
.responsible-short p {
  color: var(--text-muted);
}

.game-container {
  overflow: hidden;
  padding: 0.85rem;
}

.game-container iframe {
  width: 100%;
  min-height: 320px;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: calc(var(--radius-lg) - 8px);
  background: #02060d;
}

.disclaimer,
.responsible-short {
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.disclaimer {
  border-left: 4px solid var(--warning);
}

.responsible-short {
  border-left: 4px solid var(--accent);
}

.disclaimer strong,
.responsible-short strong {
  color: var(--heading);
}

/* Footer */
footer {
  margin-top: 2rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
    #060d18;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

footer .container {
  padding: 1.75rem 0 2rem;
}

footer p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

footer a {
  display: inline-flex;
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border: 1px solid transparent;
}

footer a:hover,
footer a:focus-visible {
  background: rgba(84, 199, 255, 0.14);
  border-color: rgba(84, 199, 255, 0.35);
  color: #ffffff;
}

/* Utility states */
:focus-visible {
  outline: 3px solid rgba(84, 199, 255, 0.55);
  outline-offset: 3px;
}

::selection {
  background: rgba(84, 199, 255, 0.25);
  color: #ffffff;
}

/* Larger screens */
@media (min-width: 640px) {
  nav {
    padding-top: 1rem;
    padding-bottom: 0.7rem;
  }

  .content,
  .disclaimer,
  .responsible-short {
    padding: 2rem;
  }

  .game-container {
    padding: 1rem;
  }

  .game-container iframe {
    min-height: 420px;
  }
}

@media (min-width: 900px) {
  .section,
  .game-section,
  .disclaimer,
  .responsible-short {
    padding: 4rem 0;
  }

  .content {
    padding: 2.5rem;
  }

  .disclaimer,
  .responsible-short {
    padding: 2rem 2.25rem;
  }

  footer .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
  }

  footer p {
    margin-bottom: 0;
    max-width: 720px;
  }

  .game-container iframe {
    min-height: 560px;
  }
}

@media (min-width: 1100px) {
  .hero {
    margin-top: 1.5rem;
  }

  .content {
    padding: 3rem;
  }

  nav ul {
    gap: 0.7rem;
  }

  nav a {
    padding-inline: 1.05rem;
  }
}

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

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