/* qixiqfun.com: shared styles for every page */

:root {
  --bg: #05060d;
  --bg-2: #0b1020;
  --panel: rgba(18, 26, 48, 0.72);
  --panel-line: rgba(120, 255, 190, 0.18);
  --text: #eef3ff;
  --muted: #a7b3cf;
  --green: #5dff8f;
  --green-deep: #1fbf63;
  --pink: #ff4fd8;
  --orange: #ffa23a;
  --blue: #3f7dff;
  --radius: 22px;
  --max: 1120px;
  --head: "Bungee", "Arial Black", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(1200px 700px at 15% -10%, rgba(40, 170, 110, 0.22), transparent 60%),
    radial-gradient(900px 600px at 95% 20%, rgba(150, 60, 220, 0.18), transparent 60%),
    radial-gradient(900px 700px at 50% 110%, rgba(30, 120, 220, 0.16), transparent 60%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
#stars { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

a { color: var(--green); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: #b8ffcf; }
img, video { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--head); font-weight: 400; line-height: 1.1; margin: 0 0 0.5em; letter-spacing: 0.01em; }
h1 { font-size: clamp(2.3rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.section { padding: 72px 0; }
.eyebrow { font-family: var(--head); color: var(--green); font-size: 0.85rem; letter-spacing: 0.12em; margin-bottom: 10px; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 40em; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  background: rgba(5, 6, 13, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { font-family: var(--head); font-size: 1.45rem; color: var(--text); text-decoration: none; display: flex; align-items: center; gap: 10px; }
.logo span { color: var(--green); }
.logo-dot { width: 14px; height: 18px; border-radius: 50% 50% 46% 46% / 58% 58% 42% 42%; background: linear-gradient(160deg, #b8ffcf, var(--green-deep)); box-shadow: 0 0 14px rgba(93, 255, 143, 0.7); }
.nav { display: flex; gap: 6px; }
.nav a { color: var(--text); text-decoration: none; font-weight: 800; padding: 8px 14px; border-radius: 999px; }
.nav a:hover, .nav a[aria-current="page"] { background: rgba(93, 255, 143, 0.12); color: var(--green); }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); font-size: 1.6rem; padding: 8px; cursor: pointer; }

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; padding: 10px 16px 18px; background: rgba(5, 6, 13, 0.96); border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--head); font-size: 1rem; letter-spacing: 0.03em;
  padding: 14px 24px; border-radius: 999px; text-decoration: none;
  background: linear-gradient(180deg, #8dffb0, var(--green-deep)); color: #04210f;
  box-shadow: 0 6px 0 #0d6b35, 0 10px 30px rgba(93, 255, 143, 0.35);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { color: #04210f; transform: translateY(-2px); box-shadow: 0 8px 0 #0d6b35, 0 14px 36px rgba(93, 255, 143, 0.45); }
.btn:active { transform: translateY(3px); box-shadow: 0 3px 0 #0d6b35; }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.25); }
.btn-ghost:hover { color: var(--green); box-shadow: inset 0 0 0 2px var(--green); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.store-badge { display: inline-flex; align-items: center; gap: 10px; padding: 10px 20px; border-radius: 14px; background: #000; color: #fff; text-decoration: none; border: 1.5px solid rgba(255, 255, 255, 0.35); line-height: 1.15; }
.store-badge small { display: block; font-size: 0.72rem; opacity: 0.8; }
.store-badge strong { font-size: 1.15rem; }
.store-badge svg { width: 26px; height: 26px; fill: #fff; }
.store-badge.soon { opacity: 0.75; cursor: default; }

/* Hero */
.hero { padding: 64px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero h1 .glow { color: var(--green); text-shadow: 0 0 30px rgba(93, 255, 143, 0.55); }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }

/* Phone frame around the gameplay video */
.phone {
  width: min(320px, 78vw); margin-inline: auto; aspect-ratio: 9 / 19.5;
  border-radius: 44px; padding: 12px; background: linear-gradient(160deg, #2b3550, #0c0f1a);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08), 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 80px rgba(93, 255, 143, 0.18);
}
.phone video, .phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 34px; background: #000; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.card { background: var(--panel); border: 1px solid var(--panel-line); border-radius: var(--radius); padding: 26px; }
.card p:last-child { margin-bottom: 0; }
.game-card { display: grid; grid-template-columns: 120px 1fr; gap: 22px; align-items: center; text-decoration: none; color: var(--text); transition: transform 0.15s ease, border-color 0.15s ease; }
.game-card:hover { transform: translateY(-4px); border-color: rgba(93, 255, 143, 0.5); color: var(--text); }
.game-card img { width: 120px; height: 120px; border-radius: 26px; }
.game-card .tag { display: inline-block; font-size: 0.8rem; font-weight: 800; color: var(--green); background: rgba(93, 255, 143, 0.12); padding: 3px 10px; border-radius: 999px; margin-bottom: 8px; }
.coming { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 172px; border-style: dashed; color: var(--muted); }
@media (max-width: 480px) { .game-card { grid-template-columns: 1fr; } }

.feature-icon { font-size: 2rem; line-height: 1; margin-bottom: 12px; }

/* Screenshot strip */
.shots { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 4px 22px; -webkit-overflow-scrolling: touch; }
.shots img { flex: 0 0 auto; width: 230px; border-radius: 26px; scroll-snap-align: start; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5); }

/* Game page header */
.game-hero { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
.game-hero img.icon { width: 140px; height: 140px; border-radius: 32px; box-shadow: 0 0 50px rgba(93, 255, 143, 0.3); }
@media (max-width: 600px) { .game-hero { grid-template-columns: 1fr; } }

/* Long text pages (privacy, support) */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.45rem; margin-top: 1.8em; }
.prose h3 { font-family: var(--body); font-weight: 900; font-size: 1.1rem; margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }
.prose .updated { color: var(--muted); }
details { background: var(--panel); border: 1px solid var(--panel-line); border-radius: 16px; padding: 16px 20px; margin-bottom: 12px; }
summary { font-weight: 900; cursor: pointer; }
details[open] summary { margin-bottom: 8px; }
.contact-box { margin-top: 32px; }

/* Footer */
.site-footer { border-top: 1px solid rgba(255, 255, 255, 0.07); padding: 34px 0 44px; color: var(--muted); font-size: 0.95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--green); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .game-card { transition: none; }
}

/* QIXIQ logo (white version of the wordmark) */
.logo img { height: 30px; width: auto; }
.footer-brand { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.footer-brand img { height: 24px; width: auto; opacity: 0.9; }

/* Home: the studio statement as the big headline */
.hero-statement { font-family: var(--body); font-weight: 900; font-size: clamp(1.9rem, 4.2vw, 3rem); line-height: 1.22; letter-spacing: 0; color: #fff; }
.hero-statement .glow { display: block; margin-top: 0.4em; }

/* Sound button on the gameplay video */
.phone { position: relative; }
.sound-btn {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  font: 800 0.95rem var(--body); color: #04210f; background: rgba(141, 255, 176, 0.92);
  border: 0; border-radius: 999px; padding: 9px 16px; cursor: pointer; white-space: nowrap;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}
.sound-btn[aria-pressed="true"] { background: rgba(255, 255, 255, 0.85); }

/* Level art gallery */
.worlds { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 4px 22px; -webkit-overflow-scrolling: touch; }
.worlds img { flex: 0 0 auto; width: 210px; aspect-ratio: 1455 / 2576; object-fit: cover; border-radius: 22px; scroll-snap-align: start; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(150, 90, 255, 0.35); }
