/* Ballioz site. Colors follow Tibblo's design tokens (scripts/ui/tokens.gd). */

@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/Nunito-Variable.ttf") format("truetype");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --bg: #FFF6EA;
  --surface: #FFFFFF;
  --surface-alt: #FFF0DC;
  --line: #E9D9C6;
  --text: #2E2240;
  --muted: #6B5F80;
  --primary: #E8572E;
  --primary-press: #C9441C;
  --secondary: #11968C;
  --secondary-deep: #0B6F68;
  --accent: #FFC23D;
  --focus: #2F6BFF;
  --shadow: 0 2px 0 var(--line), 0 10px 30px rgba(46, 34, 64, 0.08);
  --radius: 22px;
  --max: 1080px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1E1729;
    --surface: #2A2138;
    --surface-alt: #332844;
    --line: #42365A;
    --text: #F6EEFF;
    --muted: #BDB0D3;
    --primary: #FF7A50;
    --primary-press: #E8572E;
    --secondary: #3CC4B8;
    --secondary-deep: #7FDCD3;
    --shadow: 0 2px 0 var(--line), 0 10px 30px rgba(0, 0, 0, 0.3);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 18px;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--secondary-deep); font-weight: 700; text-underline-offset: 3px; }
a:hover { color: var(--primary); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 8px; }

/* Language: every bilingual piece is written twice, the other one is hidden. */
html[data-lang="en"] .l-tr,
html[data-lang="tr"] .l-en { display: none !important; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* Header */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: 18px; padding-bottom: 18px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none; font-weight: 900; font-size: 22px; letter-spacing: -0.01em;
}
.brand-mark {
  width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center;
  background: var(--primary); color: #fff; font-size: 20px; box-shadow: 0 3px 0 var(--primary-press);
}
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.top-right { display: flex; align-items: center; gap: 6px; }
.nav-link { color: var(--muted); text-decoration: none; font-weight: 700; padding: 8px 10px; border-radius: 12px; }
.nav-link:hover { color: var(--text); background: var(--surface-alt); }

.lang {
  display: inline-flex; background: var(--surface); border: 2px solid var(--line); border-radius: 999px; padding: 3px;
}
.lang button {
  font: inherit; font-size: 14px; font-weight: 800; border: 0; background: transparent; color: var(--muted);
  padding: 4px 11px; border-radius: 999px; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--secondary); color: #fff; }

/* Hero */
.hero { padding-top: 40px; padding-bottom: 24px; }
.eyebrow {
  display: inline-block; font-size: 14px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--secondary-deep); background: color-mix(in srgb, var(--secondary) 14%, transparent);
  padding: 4px 12px; border-radius: 999px;
}
h1 { font-size: clamp(36px, 7vw, 64px); line-height: 1.05; letter-spacing: -0.02em; margin: 16px 0 12px; font-weight: 900; }
h2 { font-size: clamp(26px, 4vw, 36px); line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 12px; font-weight: 900; }
h3 { font-size: 20px; margin: 0 0 6px; font-weight: 800; }
.lead { font-size: clamp(18px, 2.4vw, 22px); color: var(--muted); max-width: 620px; margin: 0; }

section { padding-top: 36px; padding-bottom: 36px; }

/* Game card on the studio page */
.game-card {
  display: grid; grid-template-columns: 1fr; overflow: hidden;
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  color: inherit; text-decoration: none; transition: transform .15s ease;
}
.game-card:hover { transform: translateY(-3px); color: inherit; }
.game-card .art { background: #FFEFD9; }
.game-card .body { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.game-card .title-row { display: flex; align-items: center; gap: 12px; }
.game-card .title-row img { width: 56px; height: 56px; border-radius: 14px; }
.game-card p { margin: 0; color: var(--muted); }
@media (min-width: 760px) {
  .game-card { grid-template-columns: 1.35fr 1fr; }
  .game-card .art img { height: 100%; object-fit: cover; }
  .game-card .body { padding: 32px; justify-content: center; }
}

.pill {
  display: inline-flex; align-items: center; gap: 6px; width: fit-content;
  font-size: 14px; font-weight: 800; padding: 5px 12px; border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 30%, transparent); color: var(--text);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 800; text-decoration: none; cursor: pointer;
  padding: 12px 22px; border-radius: 16px; border: 0;
  background: var(--primary); color: #fff; box-shadow: 0 4px 0 var(--primary-press);
}
.btn:hover { color: #fff; filter: brightness(1.05); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--primary-press); }
.btn.ghost { background: var(--surface); color: var(--text); box-shadow: 0 4px 0 var(--line); }
.btn.ghost:hover { color: var(--text); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* Tibblo page */
.hero-art { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-top: 28px; background: #FFEFD9; }

.shots {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 6px 16px 18px; margin: 0 -16px; scrollbar-width: thin;
}
.shots img {
  flex: 0 0 auto; width: 220px; border-radius: 20px; scroll-snap-align: start;
  box-shadow: var(--shadow);
}
@media (min-width: 760px) { .shots img { width: 240px; } }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card { background: var(--surface); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card p { margin: 0; color: var(--muted); }
.card .ico {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; margin-bottom: 12px;
}

.family { background: var(--surface-alt); border-radius: var(--radius); padding: 28px; }
.family ul { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.family li { display: flex; gap: 10px; align-items: flex-start; }
.family li::before { content: "✓"; color: var(--secondary); font-weight: 900; }

/* Long text pages: privacy, support */
.doc { max-width: 760px; padding-bottom: 32px; }
.doc h1 { font-size: clamp(32px, 6vw, 48px); }
.doc h2 { font-size: 24px; margin-top: 36px; }
.doc p, .doc li { color: var(--text); }
.doc .meta { color: var(--muted); font-size: 16px; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.summary { background: var(--surface); border-radius: var(--radius); padding: 20px 24px; box-shadow: var(--shadow); margin: 24px 0; }
.summary ul { margin: 0; }

.contact-box {
  background: var(--surface); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin: 24px 0;
}
.contact-box .mail { font-size: 22px; font-weight: 900; word-break: break-all; }

details { background: var(--surface); border-radius: 16px; padding: 14px 18px; margin: 10px 0; box-shadow: 0 2px 0 var(--line); }
summary { font-weight: 800; cursor: pointer; }
details p { margin: 10px 0 0; }

/* Footer */
.foot { border-top: 2px solid var(--line); margin-top: 40px; padding: 28px 0 40px; color: var(--muted); font-size: 16px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot a { color: var(--muted); font-weight: 700; }
.foot a:hover { color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

@media (max-width: 520px) {
  .nav-link.hide-sm { display: none; }
  .brand { font-size: 20px; }
}
