/* logo.png and app_logo.png live at both repo root and assets/images/ — root copies are required by download/quizbattle/index.html. */

:root {
  --bg:          #0a0a0a;
  --bg-elev:     #141414;
  --bg-nav:      rgba(10, 10, 10, 0.78);
  --text:        #f0f0f0;
  --text-muted:  #888888;
  --border:      #1f1f1f;
  --border-strong: #2a2a2a;
  --accent:      #4a9eff;
  --radius:      10px;
  --max-w:       1140px;
  --pad-section: clamp(80px, 12vw, 120px);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--text); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--accent); }

h1, h2, h3 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
  color: var(--text);
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background-color .25s ease, border-color .25s ease, padding .25s ease;
  border-bottom: 1px solid transparent;
}

.nav--scrolled {
  background: var(--bg-nav);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom-color: var(--border);
  padding: 12px 0;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.nav__brand img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.nav__links {
  display: none;
  align-items: center;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

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

.nav__toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 10px 8px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}

.nav__toggle span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: var(--text);
  transition: transform .2s ease, opacity .2s ease;
}

.nav--open .nav__toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav--open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav--open .nav__toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (min-width: 768px) {
  .nav__links { display: flex; }
  .nav__toggle { display: none; }
}

/* Mobile menu panel */
.nav__panel {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  padding: 88px 24px 32px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  z-index: 90;
}

.nav--open .nav__panel { display: block; }

.nav__panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav__panel a {
  display: block;
  padding: 14px 4px;
  font-size: 1.1rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

@media (min-width: 768px) {
  .nav__panel { display: none !important; }
}

/* ---------- Page wrapper ---------- */

main { padding-top: 80px; }

/* ---------- Hero ---------- */

.hero {
  min-height: 65vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px 40px;
  position: relative;
}

.hero__logo {
  width: clamp(96px, 18vw, 144px);
  height: auto;
  margin-bottom: 32px;
  border-radius: 18px;
}

.hero h1 {
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  max-width: 720px;
  margin-bottom: 18px;
}

.hero__tagline {
  color: var(--text-muted);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  max-width: 540px;
  margin: 0 auto;
}

.hero__scroll {
  margin-top: 56px;
  width: 22px;
  height: 22px;
  border-right: 1.5px solid var(--text-muted);
  border-bottom: 1.5px solid var(--text-muted);
  transform: rotate(45deg);
  opacity: 0.6;
}

/* ---------- Sections ---------- */

.section {
  padding: var(--pad-section) 0;
  border-top: 1px solid var(--border);
}

.section__head {
  margin-bottom: 56px;
  max-width: 720px;
}

.section__head h2 {
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  margin-bottom: 14px;
}

.section__kicker {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}

/* ---------- Games ---------- */

.games__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .games__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

.game-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color .25s ease, transform .25s ease;
}

.game-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.game-card__icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: #1c1c1c;
  border: 1px solid var(--border);
  object-fit: cover;
}

.game-card__title {
  font-size: 1.5rem;
  font-weight: 600;
}

.game-card__meta {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: -8px 0 4px;
}

.game-card__desc {
  color: #c8c8c8;
  font-size: 0.97rem;
  line-height: 1.65;
  margin: 0;
  flex-grow: 1;
}

.game-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.game-card__platforms {
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.badge {
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
}

/* ---------- About ---------- */

.about__copy {
  max-width: 720px;
  color: #d4d4d4;
}

.about__copy p { font-size: 1.02rem; margin-bottom: 1.2em; }

.about__details {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 56px;
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}

.about__detail {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.about__detail dt {
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
}

.about__detail dd {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
}

/* ---------- Contact ---------- */

.contact__intro {
  max-width: 580px;
  color: #c8c8c8;
  font-size: 1.05rem;
  margin-bottom: 36px;
}

.contact__email {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 4px;
  transition: border-color .2s ease, color .2s ease;
}

.contact__email:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.contact__socials {
  display: flex;
  gap: 16px;
  margin-top: 36px;
}

.contact__socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  transition: color .2s ease, border-color .2s ease;
}

.contact__socials a:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.contact__socials svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__links a { color: var(--text-muted); font-size: 0.85rem; }
.footer__links a:hover { color: var(--text); }

@media (min-width: 768px) {
  .footer__inner { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ---------- Legal pages ---------- */

.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 0 96px;
}

.legal h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 8px;
}

.legal__updated {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 48px;
}

.legal h2 {
  font-size: 1.2rem;
  margin: 44px 0 14px;
  color: var(--text);
}

.legal h2:first-of-type { margin-top: 0; }

.legal p, .legal li {
  color: #c8c8c8;
  font-size: 1rem;
  line-height: 1.75;
}

.legal ul { padding-left: 22px; margin: 0 0 1.2em; }
.legal li { margin-bottom: 10px; }

.legal a {
  color: var(--text);
  border-bottom: 1px solid var(--border-strong);
  transition: color .2s ease, border-color .2s ease;
}

.legal a:hover { color: var(--accent); border-bottom-color: var(--accent); }

.legal strong { color: var(--text); }

/* ---------- Page hero (for non-home pages) ---------- */

.page-hero {
  padding: 64px 0 24px;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
}

.page-hero p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-top: 14px;
  max-width: 600px;
}
