/* ============================================
   One stylesheet to rule them all.
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300;1,400&display=swap');

@font-face {
  font-family: LanaPixel;
  src: url('https://meiri.neocities.org/fonts/LanaPixel.ttf');
}

:root {
  --bg:           #07031a;
  --bg-surface:   #0f0a2a;
  --bg-raised:    #15104080;
  --border:       rgba(120, 100, 240, 0.25);
  --border-bright:rgba(140, 120, 255, 0.5);

  --text:         #ede8ff;
  --text-muted:   #a89dc9;
  --text-faint:   #6b5f8a;

  --accent:       #9b7ff5;
  --accent-bright:#c4a8ff;
  --accent-glow:  rgba(155, 127, 245, 0.3);
  --accent-hover: #7b5fd4;

  --heading:      #c4a8ff;
  --link:         #a989f5;

  --max-width:    960px;
  --radius:       10px;
  --radius-lg:    16px;
  --gap:          1.5rem;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(100, 60, 220, 0.18) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(80, 40, 180, 0.1) 0%, transparent 60%);
  min-height: 100vh;
}

a {
  color: var(--link);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: var(--accent-bright);
  text-decoration: underline;
}

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

ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: 'Syne', sans-serif;
  color: var(--heading);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(1.5rem, 4vw, 2.2rem); font-weight: 800; }
h2 { font-size: clamp(1.1rem, 3vw, 1.5rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 600; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

strong { color: var(--accent-bright); font-weight: 600; }

blockquote {
  border-left: 3px solid var(--border-bright);
  padding: 0.75rem 1.25rem;
  margin: 1rem 0;
  background: var(--bg-raised);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-muted);
  font-style: italic;
}

/* --- Layout Wrapper --- */
#site-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* --- Navigation --- */
#navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 3, 26, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

#navbar .nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

#navbar .nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--accent-bright);
  text-decoration: none;
  letter-spacing: 0.02em;
}
#navbar .nav-logo:hover { color: white; text-decoration: none; }

#navbar ul {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

#navbar li a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  text-decoration: none;
}
#navbar li a:hover,
#navbar li a.active {
  color: var(--accent-bright);
  background: var(--accent-glow);
  text-decoration: none;
}

/* --- Page Header --- */
.page-header {
  padding: 3rem 0 2rem;
  text-align: center;
}
.page-header h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--heading);
}
.page-header .subtitle {
  color: var(--text-muted);
  margin-top: 0.5rem;
  font-size: 1rem;
}

/* --- Hero (index only) --- */
.hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  padding: 4rem 0 3rem;
}
.hero-text .eyebrow {
  font-family: 'Syne', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.hero-text h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 1.25rem;
}
.hero-text h1 em {
  color: var(--accent-bright);
  font-style: normal;
}
.hero-text p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 540px;
  line-height: 1.8;
}
.hero-logo {
  width: 180px;
  height: auto;
}

/* --- Section Titles --- */
.section-title {
  font-family: 'Syne', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

/* --- Cards / Surfaces --- */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.card:hover {
  border-color: var(--border-bright);
  box-shadow: 0 4px 24px rgba(100, 60, 220, 0.12);
}

/* --- Games Section --- */
.games-grid {
  display: grid;
  gap: var(--gap);
  margin-bottom: 2.5rem;
}

.game-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.game-card:hover {
  border-color: var(--border-bright);
  box-shadow: 0 4px 32px rgba(100, 60, 220, 0.15);
}
.game-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}
.game-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.steam-embed {
  width: 100%;
  max-width: 646px;
  height: 190px;
  border: none;
  border-radius: var(--radius);
  display: block;
}

/* --- Support Section --- */
.support-section {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  margin-bottom: 2.5rem;
}
.support-section h2 {
  margin-bottom: 0.5rem;
}
.support-section > p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.support-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

/* --- Social Links --- */
.social-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}
.social-links img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 8px;
  transition: transform 0.2s, filter 0.2s;
  display: inline-block;
}
.social-links a:hover img {
  transform: translateY(-2px);
  filter: brightness(1.2);
}

/* --- Page Layout (sidebar pages) --- */
.page-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--gap);
  padding: 2rem 0 3rem;
  align-items: start;
}

/* --- Sidebar --- */
.sidebar {
  position: sticky;
  top: 72px;
}
.sidebar-section {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.sidebar-section h3 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.sidebar-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.sidebar-nav a {
  display: block;
  color: var(--text-muted);
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  font-size: 0.9rem;
  transition: color 0.2s, background 0.2s;
}
.sidebar-nav a:hover,
.sidebar-nav a.active {
  color: var(--accent-bright);
  background: var(--accent-glow);
  text-decoration: none;
}
.sidebar-bio {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}
.sidebar-bio p { margin-bottom: 0.75rem; }

/* --- Main Content Area --- */
.main-content {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  min-width: 0;
}
.main-content h1 {
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.main-content h2 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--accent);
}
.main-content h2:first-child { margin-top: 0; }
.main-content p { color: var(--text-muted); }
.main-content strong { color: var(--accent-bright); }
.main-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.main-content li {
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

/* --- FAQ --- */
.faq-item {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.faq-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.faq-item .question {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 0.5rem;
}
.faq-item p { font-size: 0.95rem; }

/* --- Contact Page --- */
.contact-method {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.contact-method:last-child { border-bottom: none; margin-bottom: 0; }
.contact-method .email-address {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-bright);
  background: var(--bg-raised);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  display: inline-block;
  border: 1px solid var(--border-bright);
  margin: 0.5rem 0 0.75rem;
}

/* --- Terms Page --- */
.terms-section {
  margin-bottom: 2rem;
}
.terms-section h2 {
  margin-bottom: 0.75rem;
}

/* --- 404 Page --- */
.not-found {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1rem;
}
.not-found .error-code {
  font-family: 'Syne', sans-serif;
  font-size: clamp(5rem, 15vw, 9rem);
  font-weight: 800;
  color: var(--border-bright);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.not-found h1 {
  margin-bottom: 1rem;
  color: var(--text);
}
.not-found p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  border: none;
}
.btn-primary {
  background: var(--accent);
  color: white;
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--accent-glow);
}
.btn-outline {
  background: transparent;
  color: var(--accent-bright);
  border: 1px solid var(--border-bright);
}
.btn-outline:hover {
  background: var(--accent-glow);
  color: var(--accent-bright);
  text-decoration: none;
}

/* --- Footer --- */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.25rem;
  text-align: center;
  color: var(--text-faint);
  font-size: 0.85rem;
}
footer a { color: var(--text-muted); }
footer a:hover { color: var(--accent-bright); }

/* --- Extra / Fun Pages --- */
.extra-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.extra-tile {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}
.extra-tile:hover {
  border-color: var(--border-bright);
  transform: translateY(-2px);
}
.extra-tile a {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
}

/* --- Responsive --- */
@media (max-width: 720px) {
  #navbar ul { gap: 0; }
  #navbar li a { padding: 0.4rem 0.5rem; font-size: 0.8rem; }
  #navbar .nav-logo { font-size: 0.95rem; }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 2.5rem 0 2rem;
  }
  .hero-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    order: -1;
  }
  .hero-text p { margin: 0 auto 1rem; }

  .page-layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
  }

  .steam-embed { height: 150px; }
}

@media (max-width: 480px) {
  #navbar .nav-inner { flex-direction: column; height: auto; padding: 0.75rem 1rem; gap: 0.5rem; }
  #navbar ul { flex-wrap: wrap; justify-content: center; }
}
