:root{
  --bg:#0f1724;
  --card:#0b1220;
  --accent:#7c3aed;
  --muted:#9aa4b2;
  --glass:rgba(255,255,255,0.04);
  --radius:14px;
  --maxw:1400px;
  --fw-sans:Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}
*{box-sizing:border-box}
html,body{height:100%;}
body{
  margin:0;
  /* base color: start black so initial paint is pure black */
  background-color:#000000;
  color:#e6eef6; font-family:var(--fw-sans); -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale;
}

/* overlay gradient that fades/flows in on top of the black base; this makes the page start black then move to cosmic blue */
body::before{
  content: '';
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(-45deg, #000000 0%, #001428 30%, #062A66 65%, #000000 100%);
  background-size: 800% 800%;
  opacity: 0; /* start invisible so base is black */
  transform: translateZ(0);
  animation: gradientFade 20s ease-in-out infinite;
}

@keyframes gradientFade{
  0%{ opacity: 0; background-position: 0% 50%; }
  15%{ opacity: 0.45; }
  40%{ opacity: 0.9; background-position: 50% 50%; }
  60%{ opacity: 1; background-position: 100% 50%; }
  85%{ opacity: 0.6; }
  100%{ opacity: 0; background-position: 0% 50%; }
}

/* Respect reduced-motion preferences: show a static cosmic gradient on top of black */
@media (prefers-reduced-motion: reduce){
  body::before{ animation: none; opacity: 1; background-position: 50% 50%; }
}
.container{
  /* allow the container to grow closer to the viewport on wide screens but keep a sensible cap */
  max-width: min(var(--maxw), 96vw);
  margin:20px auto; padding:0 14px;
}
.header{display:flex;align-items:center;justify-content:space-between;padding:18px 0}
.brand{display:flex;align-items:center;gap:12px}
.logo{width:56px;height:56px;border-radius:10px;background:linear-gradient(135deg,var(--accent),#06b6d4);display:flex;align-items:center;justify-content:center;font-weight:700;color:white;box-shadow:0 6px 20px rgba(124,58,237,0.15)}
.brand h1{font-size:18px;margin:0}
.nav{display:flex;gap:18px;align-items:center}
.nav a{color:var(--muted);text-decoration:none;padding:8px 12px;border-radius:10px}
.nav a:hover{background:var(--glass);color:white}
.hero{display:grid;grid-template-columns:1fr 380px;gap:20px;align-items:center;margin-top:14px}
.hero .intro{padding:28px;background:linear-gradient(180deg, rgba(255,255,255,0.02), transparent);border-radius:var(--radius);}
.hero h2{margin:0 0 8px 0;font-size:28px}
.hero p{color:var(--muted);line-height:1.5}
.cta{margin-top:16px}
.cta .btn{display:inline-block;padding:10px 16px;background:var(--accent);color:white;border-radius:10px;text-decoration:none;font-weight:600}
.feature-card{background:linear-gradient(180deg, rgba(255,255,255,0.02), transparent);padding:16px;border-radius:12px;display:flex;gap:14px;align-items:center}
.feature-card img{width:120px;height:80px;object-fit:cover;border-radius:8px}
.games{display:grid;grid-template-columns:repeat(auto-fit,minmax(416px,1fr));gap:18px;margin-top:22px}
.game{background:var(--card);border-radius:12px;padding:14px;overflow:hidden;border:1px solid rgba(255,255,255,0.02); position:relative; padding-bottom:50px}
.game .media{height:272px;border-radius:10px;overflow:hidden;background:#06101a;display:flex;align-items:center;justify-content:center}
.game .media{height:272px;border-radius:10px;overflow:hidden;background:#06101a;display:flex;align-items:center;justify-content:center;position:relative}
.game h3{margin:12px 0 6px 0;font-size:16px}
.game .media img, .game .media video{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.feature-card img{flex-shrink:0;object-fit:cover}
.game p{color:var(--muted);font-size:14px;line-height:1.4}
.footer{margin:40px 0 60px 0;color:var(--muted);font-size:13px;text-align:center}
.grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.card{background:var(--card);padding:18px;border-radius:12px}
.about-hero{padding:28px;border-radius:14px;background:linear-gradient(90deg, rgba(124,58,237,0.06), rgba(6,182,212,0.02))}
/* compact variant used for small section headings so the box isn't only slightly taller than its text */
.about-hero--compact{
  padding:6px 8px;
  border-radius:8px;
  margin-top:8px;
}

/* tighten the heading inside the compact hero so the box wraps closely to the text */
.about-hero--compact h3{
  margin:0;
  font-size:15px;
  line-height:1.15;
  font-weight:600;
}
.contact-form input,.contact-form textarea{width:100%;padding:12px;border-radius:10px;border:1px solid rgba(255,255,255,0.04);background:transparent;color:inherit}
.contact-form button{background:var(--accent);color:white;border:none;padding:10px 14px;border-radius:10px}
.small{font-size:13px;color:var(--muted)}
@media (max-width:900px){
  .hero{grid-template-columns:1fr;}
  .grid{grid-template-columns:1fr}
  /* Show navigation on mobile: wrap into multiple lines and increase touch target */
  .nav{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
  .nav a{padding:10px 12px;border-radius:10px;background:transparent}
  .logo{width:48px;height:48px}
}

/* Header / logo shared styles (sourced from index.html inline rules) */
.brand{ display:flex; align-items:center; gap:20px; margin-left:12px; }
/* keep logo size bounded but preserve aspect ratio to avoid vertical stretching */
.site-logo{ max-height:120px; height:auto; width:auto; display:block; max-width:55vw; object-fit:contain; }
/* keep the logo link layout stable and visible when focused */
.brand-link{ display:inline-flex; align-items:center; gap:9px; text-decoration:none; color:inherit }
.brand-link:focus{ outline:2px solid rgba(124,58,237,0.25); outline-offset:4px; border-radius:8px }
@media (max-width:900px){ .site-logo{ max-height:72px; height:auto; width:auto; max-width:40vw; object-fit:contain; } .brand{ gap:12px; margin-left:8px; } }
/* ensure linked brand images keep proportions */
.brand-link img{ display:block; max-width:100%; height:auto; width:auto }
.sr-only{ position:absolute !important; height:1px; width:1px; overflow:hidden; clip:rect(1px,1px,1px,1px); white-space:nowrap; border:0; padding:0; margin:-1px; }
.social-x{ display:inline-flex; align-items:center; margin-left:6px; }
.social-x img{ height:18px; width:auto; display:block; }
.social-discord{ display:inline-flex; align-items:center; margin-left:6px; }
.social-discord img{ height:18px; width:auto; display:block; }
.nav{ display:flex; align-items:center; gap:9px; }

/* Facebook header icon (same sizing as X) */
.social-fb{ display:inline-flex; align-items:center; margin-left:6px; }
.social-fb img{ height:18px; width:auto; display:block; }

/* Guard against oversized social/logo images uploaded to the server.
  Constrain any image inside the header nav to a reasonable max height. */
.nav a img{ max-height:20px; height:auto; width:auto; display:block; }
.nav a .social-fb img, .nav a .social-x img{ max-height:20px; height:auto; }

/* Lightweight button used on contact/press actions */
.btn{display:inline-block;padding:8px 12px;background:var(--accent);color:white;border-radius:10px;text-decoration:none;font-weight:600}
.btn:hover{filter:brightness(1.05)}

/* Press kit button variant */
.press-download{background:linear-gradient(90deg,var(--accent),#06b6d4);box-shadow:0 8px 20px rgba(6,182,212,0.08)}

/* Slight card tuning for contact area to make it feel denser */
.contact-card{padding:16px}

/* Social list (used in contact card) */
.social-list a{display:inline-flex;align-items:center;gap:8px;color:var(--muted);text-decoration:none}
.social-list a:hover{color:white}

/* About page: make team cards more prominent and playful */
/* target the grid directly after the Team heading so other grids stay unchanged */
.about-hero + .grid{ grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap:20px }
.about-hero + .grid .card{
  padding:20px;
  border-radius:12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(6,10,18,0.02));
  border: 1px solid rgba(255,255,255,0.03);
  box-shadow: 0 8px 28px rgba(2,6,23,0.55);
  position:relative; overflow:hidden; transition: transform 180ms ease, box-shadow 180ms ease;
}
.about-hero + .grid .card:hover{ transform: translateY(-6px); box-shadow: 0 18px 40px rgba(2,6,23,0.55); }

/* soft accent stripe on the left to add personality */
.about-hero + .grid .card::after{
  content: '';
  position: absolute; left:0; top:0; bottom:0; width:6px;
  background: linear-gradient(180deg, var(--accent), #06b6d4);
  opacity:0.12;
}

/* playful watermark icon (low opacity) */
.about-hero + .grid .card::before{
  content: '🎨';
  position:absolute; right:12px; top:8px; font-size:38px; line-height:1;
  opacity:0.08; pointer-events:none;
}

.about-hero + .grid .card .small{ font-size:15px; line-height:1.55; color: #dfeeff; }
.about-hero + .grid .card b{ display:inline-block; font-size:16px; color:var(--accent); margin-bottom:8px }

@media (max-width:900px){
  .about-hero + .grid .card{ padding:14px }
  .about-hero + .grid .card::before{ font-size:30px; right:8px; top:6px }
}
