/* Quasova Games (game.quasova.com): the games we make. Arcade identity: gold -> orange -> pink (tools/build_brand.py, SUBS 'games'). */
:root {
  --bg: #0b0712; --bg-2: #130c1f; --card: #1a1128; --line: #2c1f40; --text: #fbf6ff; --muted: #b5a8c8; --dim: #7d6f92;
  --gold: #ffd25a; --orange: #ff7a3d; --pink: #ff3d8b; --green: #3ddc84;
  --arcade: linear-gradient(100deg, var(--gold), var(--orange) 50%, var(--pink));
  --display: 'Unbounded', 'Inter', system-ui, sans-serif; --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 18px; --wrap: 1180px; --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}
:root[lang="ar"] { --display: 'Noto Kufi Arabic', 'Unbounded', sans-serif; --body: 'IBM Plex Sans Arabic', 'Inter', system-ui, sans-serif; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--text); font: 400 16px/1.65 var(--body); overflow-x: hidden;
  background: radial-gradient(900px 520px at 85% -10%, rgb(255 122 61 / .16), transparent 60%),
              radial-gradient(760px 460px at -10% 20%, rgb(255 61 139 / .12), transparent 60%), var(--bg); }
a { color: inherit; }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
:root[lang="ar"] h1, :root[lang="ar"] h2, :root[lang="ar"] h3 { line-height: 1.5; letter-spacing: 0; font-weight: 700; }
h1 em, h2 em { font-style: normal; background: var(--arcade); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }

/* header and footer */
.top { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(12px); background: rgb(11 7 18 / .78); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 22px; min-height: 64px; }
.logo { line-height: 0; flex: none; }
.logo img { height: 24px; width: auto; }
.bar nav { display: flex; gap: 20px; margin-inline-start: auto; }
.bar nav a, .lang { text-decoration: none; color: var(--muted); font-weight: 600; font-size: .95rem; }
.bar nav a:hover, .lang:hover { color: var(--text); }
.lang { border: 1px solid var(--line); border-radius: 99px; padding: 4px 12px; }
.foot { border-top: 1px solid var(--line); margin-top: 40px; padding: 34px 0 40px; color: var(--muted); }
.foot img { height: 22px; width: auto; }
.foot nav { display: flex; flex-wrap: wrap; gap: 18px; margin: 10px 0; }
.foot nav a { color: var(--muted); }
.small { font-size: .85rem; color: var(--dim); }

/* buttons, badges */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 99px; font-weight: 700; text-decoration: none;
  color: #1b0d10; background: var(--arcade); box-shadow: 0 10px 26px -12px rgb(255 122 61 / .8); transition: transform .2s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); box-shadow: none; }
.btn.big { padding: 13px 24px; font-size: 1.05rem; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px; }
.badge { font: 700 .72rem var(--body); text-transform: uppercase; letter-spacing: .06em; padding: 3px 9px; border-radius: 99px; }
:root[lang="ar"] .badge { letter-spacing: 0; text-transform: none; font-size: .8rem; }
.badge.web { background: rgb(255 210 90 / .14); color: var(--gold); }
.badge.android { background: rgb(61 220 132 / .14); color: var(--green); }
.dl { font-size: .8rem; color: var(--muted); }

/* home */
.hero { padding: 54px 0 26px; }
.hero-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 30px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.6rem); }
.lead { color: var(--muted); font-size: 1.12rem; max-width: 36em; }
.mascot { width: min(300px, 60vw); height: auto; justify-self: center; filter: drop-shadow(0 24px 40px rgb(255 61 139 / .3)); }
.stats { list-style: none; display: flex; flex-wrap: wrap; gap: 28px; padding: 0; margin: 22px 0 0; }
.stats b { display: block; font: 600 1.9rem var(--display); background: var(--arcade); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats span { color: var(--muted); font-size: .9rem; }
.band { padding: 40px 0; }
.band.alt { background: linear-gradient(180deg, transparent, rgb(26 17 40 / .55) 15%, rgb(26 17 40 / .55) 85%, transparent); }
.band h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
.sub { color: var(--muted); margin: -4px 0 20px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card);
  transition: transform .25s var(--ease), border-color .25s; }
.card:hover { transform: translateY(-4px); border-color: rgb(255 122 61 / .55); }
.card-img img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.card h3 a { text-decoration: none; }
.card p { color: var(--muted); margin: 0 0 14px; flex: 1; font-size: .95rem; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.where { width: 100%; border-collapse: collapse; min-width: 560px; }
.where th, .where td { padding: 12px 16px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: middle; }
.where thead th { font-size: .82rem; color: var(--dim); text-transform: uppercase; letter-spacing: .06em; }
:root[lang="ar"] .where thead th { letter-spacing: 0; text-transform: none; }
.where tbody th a { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 600; }
.where tbody th img { width: 40px; height: 40px; border-radius: 10px; }
.where tr:last-child > * { border-bottom: 0; }
.chip { display: inline-flex; flex-direction: column; gap: 0; margin: 4px; padding: 6px 12px; border-radius: 12px; border: 1px solid var(--line);
  text-decoration: none; font-size: .88rem; font-weight: 600; background: var(--bg-2); }
.chip small { color: var(--dim); font-weight: 500; font-size: .72rem; }
.chip:hover { border-color: var(--orange); }

/* game page */
.game-hero { padding: 26px 0 10px; }
.crumbs { display: flex; gap: 8px; color: var(--dim); font-size: .9rem; margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.game-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center; }
.shot img { display: block; width: 100%; height: auto; border-radius: 22px; border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgb(0 0 0 / .9); }
.game-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.genre { color: var(--orange); font-weight: 700; margin: -6px 0 8px; }
.game-cols { display: grid; grid-template-columns: 1.4fr .8fr; gap: 32px; align-items: start; }
.prose h2 { font-size: 1.25rem; margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: #ded4ec; }
.feats { padding: 0; list-style: none; display: grid; gap: 8px; }
.feats li { padding-inline-start: 26px; position: relative; }
.feats li::before { content: '★'; position: absolute; inset-inline-start: 0; color: var(--gold); }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin-top: 22px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.facts dt { color: var(--dim); font-weight: 600; }
.facts dd { margin: 0; }
.where-box { position: sticky; top: 86px; border: 1px solid rgb(255 122 61 / .4); border-radius: var(--radius); padding: 20px;
  background: linear-gradient(160deg, rgb(255 122 61 / .1), var(--card) 55%); }
.where-box h2 { font-size: 1.15rem; }
.where-box ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.where-box a { display: grid; grid-template-columns: 1fr auto; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-2); text-decoration: none; }
.where-box a:hover { border-color: var(--orange); }
.where-box small { grid-row: 2; color: var(--dim); font-size: .78rem; }
.where-box i { grid-row: 1 / 3; grid-column: 2; align-self: center; font-style: normal; color: var(--orange); }
.minis { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 18px; }
.mini { display: grid; justify-items: center; gap: 6px; text-align: center; text-decoration: none; font-size: .85rem; font-weight: 600; }
.mini img { width: 64px; height: 64px; border-radius: 16px; border: 1px solid var(--line); }

/* play page */
body.playing { overflow: hidden; }
body.playing .top, body.playing .foot { display: none; }
.player-bar { height: 48px; display: flex; align-items: center; gap: 16px; padding: 0 16px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.player-bar a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .92rem; }
.player-bar b { margin-inline: auto; font-family: var(--display); font-size: .95rem; }
.player-bar button { font: 600 .88rem var(--body); color: var(--text); background: transparent; border: 1px solid var(--line); border-radius: 99px; padding: 5px 12px; cursor: pointer; }
.player { position: fixed; inset: 48px 0 0 0; background: #000; }
.player iframe { width: 100%; height: 100%; border: 0; display: block; }

@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .game-grid, .game-cols, .hero-grid { grid-template-columns: 1fr; }
  .where-box { position: static; }
  .minis { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 620px) {
  .bar nav { display: none; }
  .lang { margin-inline-start: auto; }
  .grid { grid-template-columns: 1fr; }
  .mascot { width: 180px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* where-box groups: play and download, community, Snapchat lenses */
.where-box h3 { font-size: .82rem; color: var(--dim); text-transform: uppercase; letter-spacing: .06em; margin: 18px 0 8px; }
.where-box h3:first-of-type { margin-top: 4px; }
:root[lang="ar"] .where-box h3 { letter-spacing: 0; text-transform: none; font-size: .92rem; }
.where-box p.small { margin: -2px 0 10px; }
.where-box h3#lenses { scroll-margin-top: 90px; color: #fffc00; }
.chip.lens { border-color: rgb(255 252 0 / .35); }
