/* Dream Big Quest website. One stylesheet for every page. */
:root {
  --bg: #2b1d3a;
  --bg-2: #22172f;
  --card: #382750;
  --line: #4a3566;
  --text: #f4effa;
  --muted: #c3b5d6;
  --yellow: #ffcc33;
  --pink: #ff5a6e;
  --cyan: #3cc8e6;
  --orange: #ff9a3c;
  --green: #45d17a;
  --radius: 18px;
  --wrap: 1040px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 17px/1.6 "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--yellow); }
a:hover { color: #fff; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 10; background: rgba(34, 23, 47, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 900; font-size: 19px; letter-spacing: .2px; }
.brand svg { width: 34px; height: 34px; flex: none; }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 700; font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
@media (max-width: 560px) { .nav { gap: 14px; } .nav a { font-size: 14px; } .brand span { display: none; } }

/* Hero */
.hero { padding: 84px 0 64px; text-align: center; background: radial-gradient(ellipse at 50% 0%, #5a3a86 0%, var(--bg) 70%); }
.hero h1 { font-size: clamp(36px, 6vw, 60px); line-height: 1.1; margin: 0 0 16px; font-weight: 900; }
.hero h1 em { font-style: normal; color: var(--yellow); }
.hero p { color: var(--muted); font-size: 19px; max-width: 620px; margin: 0 auto; }

/* Sections and cards */
section { padding: 56px 0; }
h2 { font-size: 30px; font-weight: 900; margin: 0 0 22px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.game-card { display: grid; grid-template-columns: 1.2fr 1fr; overflow: hidden; }
.game-card .art { background: #4b2c79; }
.game-card .art { display: flex; align-items: center; }
.game-card .art img { width: 100%; height: auto; }
.game-card .body { padding: 30px; display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.game-card h3 { margin: 0; font-size: 26px; font-weight: 900; }
.game-card p { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .game-card { grid-template-columns: 1fr; } }
.tag { display: inline-block; align-self: flex-start; font-size: 13px; font-weight: 800; padding: 3px 10px; border-radius: 99px; background: rgba(255, 204, 51, .15); color: var(--yellow); }
.soon { margin-top: 18px; padding: 22px 26px; color: var(--muted); border-style: dashed; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 14px; font-weight: 900; text-decoration: none; background: var(--yellow); color: #2b1d3a; box-shadow: 0 4px 0 #c99a12; }
.btn:hover { color: #2b1d3a; transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--text); border: 2px solid var(--line); box-shadow: none; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.btn[aria-disabled="true"] { opacity: .65; pointer-events: none; }

/* Game page */
.game-hero { padding: 56px 0 24px; }
.game-hero .wrap { display: flex; gap: 28px; align-items: center; }
.game-hero img.icon { width: 128px; height: 128px; border-radius: 28px; flex: none; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.game-hero h1 { margin: 0 0 6px; font-size: clamp(32px, 5vw, 48px); font-weight: 900; line-height: 1.1; }
.game-hero p { margin: 0; color: var(--muted); font-size: 19px; }
@media (max-width: 560px) { .game-hero .wrap { flex-direction: column; text-align: center; } .game-hero .btns { justify-content: center; } }
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.shots img { width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 22px; border: 1px solid var(--line); }
@media (max-width: 640px) { .shots { grid-template-columns: repeat(3, 70%); overflow-x: auto; scroll-snap-type: x mandatory; } .shots img { scroll-snap-align: center; } }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.features .card { padding: 22px; }
.features h3 { margin: 0 0 6px; font-size: 19px; }
.features p { margin: 0; color: var(--muted); font-size: 16px; }
.dot { display: inline-block; width: 14px; height: 14px; border-radius: 4px; margin-right: 8px; vertical-align: -1px; }

/* Long-form pages (privacy, terms, support) */
.doc { max-width: 760px; margin: 0 auto; padding: 48px 22px 72px; }
.doc h1 { font-size: clamp(30px, 5vw, 42px); font-weight: 900; line-height: 1.15; margin: 0 0 6px; }
.doc .meta { color: var(--muted); margin: 0 0 28px; }
.doc h2 { font-size: 23px; margin: 36px 0 10px; }
.doc h3 { font-size: 18px; margin: 22px 0 6px; }
.doc p, .doc li { color: #e4dbef; }
.doc ul { padding-left: 22px; }
.doc li { margin: 4px 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.doc th { color: var(--text); background: var(--card); }
.doc .summary { padding: 18px 22px; margin: 0 0 8px; }
.doc .summary p { margin: 6px 0; }
.toc { padding: 14px 22px; margin: 20px 0; }
.toc ol { margin: 6px 0; padding-left: 20px; columns: 2; }
@media (max-width: 560px) { .toc ol { columns: 1; } }
details.card { padding: 14px 20px; margin: 10px 0; }
details summary { cursor: pointer; font-weight: 800; }
details p { margin: 10px 0 4px; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); background: var(--bg-2); padding: 34px 0; color: var(--muted); font-size: 15px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot a:hover { color: var(--text); }
