/* =========================================================
   STATİK SAYFALAR — nasıl oynanır, gizlilik
   Oyunun kabuğu (src/styles/style.css) bu sayfalara yüklenmiyor; onun
   body kuralları uygulamaya göre. Token adları ve değerleri style.css
   ile aynı, dört tema da burada: oyunda hangi tema seçildiyse sayfa da
   o temada açılıyor (temayı her sayfanın <head>'indeki küçük script
   uyguluyor). Bir tema rengi değişirse burası da güncellenmeli.
   ========================================================= */
:root {
  --font-display: "Baloo 2", "Segoe UI", sans-serif;
  --font-body: "Nunito", "Segoe UI", sans-serif;
  --text-1: #23202f;
  --text-2: #5a5a6b;
  --text-muted: #8b8b99;
  --surface: #ffffff;
  --ok: #1a7a3a;
  --ok-bg: #ddefe1;
  --warn: #8a6209;
  --warn-bg: #faf0d2;
  --bad: #a32222;
  --bad-bg: #fbe3e3;
  --r-xs: 8px;
  --r-sm: 10px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-pill: 999px;
  --line: rgba(var(--shadow-rgb), 0.1);
  --shadow-lg: 0 12px 28px rgba(var(--shadow-rgb), 0.22);
  --shadow-bubble: 0 2px 6px rgba(var(--shadow-rgb), 0.09);
  --bubble-border: rgba(var(--shadow-rgb), 0.09);
  --pattern-size: 240px;
}

:root,
[data-theme="sarap"] {
  --brand: #1e1b5c;
  --brand-deep: #8e1537;
  --brand-tint: #e9e7f5;
  --grad-app: linear-gradient(135deg, #8e1537, #1e1b5c);
  --grad-brand: linear-gradient(135deg, #8e1537, #1e1b5c);
  --btn-primary-bg: var(--grad-brand);
  --accent: #ffb020;
  --accent-ink: #b57a00;
  --accent-on: #4a2e00;
  --accent-bg: #fff3da;
  --shadow-rgb: 30, 27, 92;
  --surface-sunken: #f2f0f6;
  --chat-bg: #f7f4fa;
  --mark-bg: var(--brand-deep);
  --mark-on: white;
  --pattern-color: rgba(255, 255, 255, 0.07);
  --score-0: #8e1537;
  --score-0-bg: #f9e6ec;
  --score-0-line: #edb8c7;
  --score-0-chip: #8e1537;
  --score-5: #7a5200;
  --score-5-bg: #fff3da;
  --score-5-line: #ffd27a;
  --score-5-chip: #ffb020;
  --score-5-chip-on: #4a2e00;
  --score-10: #144a75;
  --score-10-bg: #e4f1fb;
  --score-10-line: #a3cdee;
  --score-10-chip: #2475b3;
}

[data-theme="gece"] {
  --brand: #332878;
  --brand-deep: #221b5e;
  --brand-tint: #e9e8f7;
  --grad-app: linear-gradient(135deg, #14113f, #332878);
  --grad-brand: linear-gradient(135deg, #221b5e, #332878);
  --btn-primary-bg: #e0344f;
  --accent: #e0344f;
  --accent-ink: #c42440;
  --accent-on: #ffffff;
  --accent-bg: #fce7ea;
  --shadow-rgb: 20, 17, 63;
  --surface-sunken: #f1f1f9;
  --chat-bg: #f5f5fc;
  --mark-bg: var(--accent);
  --mark-on: var(--accent-on);
  --pattern-color: rgba(178, 168, 255, 0.1);
  --score-0: #b0213b;
  --score-0-bg: #fce7ea;
  --score-0-line: #f4b3be;
  --score-0-chip: #d62c47;
  --score-5: #745300;
  --score-5-bg: #fdf4d8;
  --score-5-line: #f0cf72;
  --score-5-chip: #f2b632;
  --score-5-chip-on: #3d2a00;
  --score-10: #23488a;
  --score-10-bg: #e6eefc;
  --score-10-line: #a9c3f2;
  --score-10-chip: #3b6fd0;
}

[data-theme="nane"] {
  --brand: #35495e;
  --brand-deep: #347474;
  --brand-tint: #e4f1ec;
  --grad-app: linear-gradient(135deg, #347474, #35495e);
  --grad-brand: linear-gradient(135deg, #347474, #35495e);
  --btn-primary-bg: var(--grad-brand);
  --accent: #ff7e67;
  --accent-ink: #c9533f;
  --accent-on: #4a1a10;
  --accent-bg: #ffebe7;
  --shadow-rgb: 53, 73, 94;
  --surface-sunken: #eef3f3;
  --chat-bg: #f2f7f6;
  --mark-bg: #42b883;
  --mark-on: #0e3b27;
  --pattern-color: rgba(66, 184, 131, 0.12);
  --score-0: #b23a2a;
  --score-0-bg: #fde9e5;
  --score-0-line: #f5bcb0;
  --score-0-chip: #e0553d;
  --score-5: #7a5200;
  --score-5-bg: #fff3da;
  --score-5-line: #ffd27a;
  --score-5-chip: #ffb020;
  --score-5-chip-on: #4a2e00;
  --score-10: #1f4e78;
  --score-10-bg: #e4f0f9;
  --score-10-line: #a6cbe6;
  --score-10-chip: #2f7bb8;
}

[data-theme="seker"] {
  --brand: #1b3c73;
  --brand-deep: #40679e;
  --brand-tint: #ffe6ec;
  --grad-app: linear-gradient(135deg, #40679e, #1b3c73);
  --grad-brand: linear-gradient(135deg, #40679e, #1b3c73);
  --btn-primary-bg: #ff407d;
  --accent: #ff407d;
  --accent-ink: #c8215a;
  --accent-on: #ffffff;
  --accent-bg: #ffe6ec;
  --shadow-rgb: 27, 60, 115;
  --surface-sunken: #f1f3f9;
  --chat-bg: #f6f4f9;
  --mark-bg: var(--accent);
  --mark-on: var(--accent-on);
  --pattern-color: rgba(255, 202, 212, 0.13);
  --score-0: #b0213b;
  --score-0-bg: #fce7ea;
  --score-0-line: #f4b3be;
  --score-0-chip: #d62c47;
  --score-5: #745300;
  --score-5-bg: #fdf4d8;
  --score-5-line: #f0cf72;
  --score-5-chip: #f2b632;
  --score-5-chip-on: #3d2a00;
  --score-10: #1b3c73;
  --score-10-bg: #e6eefc;
  --score-10-line: #a9c3f2;
  --score-10-chip: #3b6fd0;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background: var(--brand);
}

body {
  min-height: 100svh;
  background: var(--grad-app) fixed;
  font-family: var(--font-body);
  color: var(--text-1);
  padding: max(24px, env(safe-area-inset-top))
    max(16px, env(safe-area-inset-right))
    max(32px, env(safe-area-inset-bottom))
    max(16px, env(safe-area-inset-left));
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Oyunun doodle deseni */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: var(--pattern-color);
  -webkit-mask-image: url("/assets/bg/doodle-pattern.svg");
  mask-image: url("/assets/bg/doodle-pattern.svg");
  -webkit-mask-size: var(--pattern-size);
  mask-size: var(--pattern-size);
}

@media (max-width: 480px) {
  :root {
    --pattern-size: 200px;
  }
}

.page {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

a {
  color: var(--brand-deep);
  font-weight: 700;
}

a:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- Üst: marka + başlık ---------- */
.top {
  color: white;
  text-align: center;
  padding: 4px 0 8px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: white;
  text-decoration: none;
  margin-bottom: 18px;
}

.wordmark-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}

.wordmark-mark {
  padding: 4px 8px 2px;
  transform: rotate(-5deg);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.14em;
  text-indent: 0.14em;
  color: var(--mark-on);
  background: var(--mark-bg);
  border-radius: var(--r-xs);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.25);
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 8vw, 46px);
  font-weight: 800;
  line-height: 1.05;
  text-wrap: balance;
}

.lead {
  max-width: 34em;
  margin: 12px auto 0;
  font-size: 16px;
  line-height: 1.55;
  opacity: 0.88;
}

/* ---------- Basamaklı buton (oyundaki .btn-chunky) ---------- */
.btn {
  --ledge: rgba(var(--shadow-rgb), 0.5);
  display: inline-block;
  padding: 13px 30px;
  border-radius: var(--r-md);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.35),
    0 4px 0 var(--ledge);
  transition:
    transform 0.08s ease,
    box-shadow 0.08s ease,
    filter 0.15s ease;
}

.btn:active {
  transform: translateY(3px);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.35),
    0 1px 0 var(--ledge);
}

.btn-accent {
  background: var(--accent);
  color: var(--accent-on);
  --ledge: var(--accent-ink);
}

.btn-primary {
  background: var(--btn-primary-bg);
  color: white;
  --ledge: rgba(var(--shadow-rgb), 0.62);
}

.top .btn {
  margin-top: 20px;
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    filter: brightness(1.05);
  }
}

/* ---------- Ana kart ---------- */
main {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 8px 22px 28px;
}

@media (min-width: 600px) {
  main {
    padding: 12px 40px 36px;
  }
}

section {
  padding-top: 26px;
}

section + section {
  margin-top: 26px;
  border-top: 1px solid var(--line);
}

h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--brand);
  text-wrap: balance;
  margin-bottom: 10px;
}

h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  color: var(--text-1);
  margin: 18px 0 4px;
}

p,
li {
  font-size: 16px;
  line-height: 1.65;
  color: #3a3748;
}

p + p,
ul + p {
  margin-top: 10px;
}

/* Gradyan üstündeki metinler beyaz; genel p rengi kart içi için */
.top p,
.bottom p {
  color: white;
}

main ul {
  padding-left: 20px;
  margin-top: 8px;
}

main li + li {
  margin-top: 6px;
}

strong {
  color: var(--text-1);
}

/* ---------- Alt ---------- */
.bottom {
  text-align: center;
  color: white;
  padding: 8px 0 0;
}

.bottom-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
}

.bottom .btn {
  margin-top: 14px;
}

.bottom-links {
  margin-top: 22px;
  font-size: 14px;
  opacity: 0.8;
}

.bottom-links a {
  color: white;
  font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
