/* MiroGames site: dark studio shell, each game page tints it with its own accent. */
/* Fonts are served from this site (no Google Fonts request); both are SIL OFL 1.1, licences in /assets/fonts. */
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900; src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900; src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-display: swap; font-weight: 300 700; src: url("../fonts/space-grotesk-latin-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-display: swap; font-weight: 300 700; src: url("../fonts/space-grotesk-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #07090c;
  --surface: #0d1317;
  --surface-2: #121a1f;
  --line: rgba(255, 255, 255, .08);
  --text: #e8eef0;
  --muted: #8e9ea5;
  --accent: #2fd6c9;
  --accent-soft: rgba(47, 214, 201, .14);
  --glow: rgba(47, 214, 201, .22);
  --radius: 18px;
  --wrap: 1080px;
  --display: "Space Grotesk", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
.theme-ghost { --accent: #3fe0f0; --accent-soft: rgba(63, 224, 240, .13); --glow: rgba(40, 170, 220, .28); }
.theme-lost {
  --bg: #0c0907; --surface: #16110c; --surface-2: #1d1610;
  --text: #f3eadb; --muted: #b19f86;
  --accent: #e4b462; --accent-soft: rgba(228, 180, 98, .14); --glow: rgba(214, 140, 60, .25);
}

/* Only the chosen language's copy is shown. */
html[data-lang="tr"] .en, html[data-lang="en"] .tr { display: none !important; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 16px; }
.brand { flex-shrink: 0; }
.brand img { height: 56px; width: auto; }
.nav { display: flex; align-items: center; gap: 12px; font-weight: 500; font-size: 15px; }
.nav-left { margin-right: auto; }
.nav-link { color: var(--text); opacity: .85; white-space: nowrap; }
.nav-link:hover { opacity: 1; text-decoration: none; color: var(--accent); }
/* Pill buttons that open a dropdown (games, language). */
.nav-pill {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px;
  font: 600 15px/1 var(--body); color: var(--text); cursor: pointer; white-space: nowrap;
  background: color-mix(in srgb, var(--surface-2) 70%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line)); border-radius: 999px;
  transition: border-color .2s ease, background .2s ease;
}
.nav-pill:hover, .dropdown.open > .nav-pill { border-color: color-mix(in srgb, var(--accent) 75%, transparent); background: color-mix(in srgb, var(--accent) 10%, var(--surface-2)); }
.nav-pill .chev { transition: transform .2s ease; opacity: .8; }
.dropdown.open > .nav-pill .chev { transform: rotate(180deg); }
.lang-pill { color: var(--accent); padding: 0 14px; font-size: 14px; letter-spacing: .06em; }
.dropdown { position: relative; }
.menu {
  position: absolute; top: calc(100% + 12px); left: 0; z-index: 20;
  padding: 12px; border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 97%, var(--accent) 3%);
  backdrop-filter: blur(18px);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--line));
  box-shadow: 0 18px 50px rgba(0, 0, 0, .5);
}
.menu[hidden] { display: none; }
/* Games: two columns, each game with its own colored dot. */
.games-menu { display: grid; grid-template-columns: repeat(2, minmax(200px, 1fr)); column-gap: 14px; }
.menu-game {
  display: flex; align-items: center; gap: 14px; padding: 13px 16px; border-radius: 10px;
  color: var(--text); font-size: 15px; font-weight: 500; white-space: nowrap;
  border-bottom: 1px solid var(--line);
}
.menu-game::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px color-mix(in srgb, var(--c) 70%, transparent); }
.menu-game:hover { text-decoration: none; color: var(--c); background: color-mix(in srgb, var(--c) 8%, transparent); }
.menu-game.is-current { color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); border-color: transparent; }
/* "Uygulamalar / Apps" group under the games, across both columns. */
.menu-heading { grid-column: 1 / -1; margin: 10px 0 2px; padding: 8px 16px 4px; font: 600 12px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.lang-menu { left: auto; right: 0; display: flex; flex-direction: column; min-width: 150px; padding: 8px; }
.lang-menu button {
  font: 500 15px/1 var(--body); color: var(--text); background: none; border: 0; border-radius: 8px;
  padding: 11px 12px; text-align: left; cursor: pointer;
}
.lang-menu button:hover { background: var(--accent-soft); }
.lang-menu button[aria-pressed="true"] { color: var(--accent); font-weight: 600; }
/* The game whose pages we are on, next to the Games button. */
.nav-game {
  display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 18px; border-radius: 999px;
  color: var(--c); font-weight: 600; font-size: 15px; white-space: nowrap;
  border: 1px solid color-mix(in srgb, var(--c) 35%, transparent);
  background: color-mix(in srgb, var(--c) 9%, transparent);
}
.nav-game::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
.nav-game:hover { text-decoration: none; background: color-mix(in srgb, var(--c) 18%, transparent); border-color: color-mix(in srgb, var(--c) 70%, transparent); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 20px 0 24px; border-radius: 999px;
  color: var(--text); font-weight: 600; font-size: 15px; white-space: nowrap;
  border: 1.5px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 35%, transparent), inset 0 0 12px color-mix(in srgb, var(--accent) 12%, transparent);
  transition: background .2s ease, transform .15s ease;
}
.nav-cta:hover { text-decoration: none; background: color-mix(in srgb, var(--accent) 18%, transparent); transform: translateY(-1px); }

/* ---- Buttons and chips ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 15px/1 var(--body);
  padding: 13px 20px; border-radius: 12px;
  border: 1px solid var(--line); color: var(--text); background: var(--surface-2);
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.btn.primary { background: var(--accent); color: #041214; border-color: transparent; }
.btn.primary:hover { background: color-mix(in srgb, var(--accent) 88%, white); }
.theme-lost .btn.primary { color: #1c1206; }
.btn.soon { cursor: default; opacity: .9; }
.btn.soon:hover { transform: none; }
/* Store QR codes next to the store buttons; wide screens only (on a phone the button is enough). */
.store-qr { display: flex; align-items: center; gap: 14px; margin-top: 22px; }
.store-qr figure { margin: 0; text-align: center; }
.store-qr .qr {
  width: 112px; height: 112px; padding: 9px; border-radius: 14px; background: #fff;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent), 0 10px 30px rgba(0, 0, 0, .35);
}
.store-qr .qr svg { display: block; width: 100%; height: 100%; }
.store-qr figcaption { margin-top: 7px; font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.store-qr p { margin: 0 0 22px; max-width: 16ch; font-size: 14px; color: var(--muted); }
@media (max-width: 860px) { .store-qr { display: none; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.chips li {
  font-size: 13px; font-weight: 500; color: var(--text);
  background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  padding: 5px 11px; border-radius: 999px;
}
.eyebrow {
  display: inline-block; font: 600 12px/1 var(--body); letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}

/* ---- Studio home ---- */
.hero { position: relative; padding: 96px 0 72px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto; height: 720px; z-index: -1;
  background:
    radial-gradient(40% 50% at 30% 40%, var(--glow), transparent 70%),
    radial-gradient(30% 40% at 75% 30%, rgba(90, 120, 255, .12), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(36px, 6vw, 64px); max-width: 15ch; }
/* App icons float together over a soft glow: 3 per row, the last row centred (3 + 3 for six games). */
.hero-art { --gap: 24px; display: flex; flex-wrap: wrap; gap: var(--gap); justify-content: center; max-width: calc(3 * 140px + 2 * var(--gap)); margin: 0 auto; }
.hero-art a { display: block; width: calc((100% - 2 * var(--gap)) / 3); }
/* Each icon's glow color comes from _data/games.yml (glow). */
.hero-art img {
  display: block; width: 100%; height: auto; aspect-ratio: 1; border-radius: 22%;
  animation: float 6s ease-in-out infinite;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .08), 0 0 80px var(--g, transparent);
}
@keyframes float { 50% { translate: 0 -12px; } }
.hero .lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 52ch; margin: 0 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.section { padding: 56px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 36px); margin: 0; }

.games { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.game-card {
  --card-accent: var(--accent);
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .2s ease, border-color .2s ease;
}
.game-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--card-accent) 45%, transparent); }
.game-card.ghost { --card-accent: #3fe0f0; }
.game-card.lost { --card-accent: #e4b462; }
.game-card.alchemy { --card-accent: #c9a2ff; }
.card-art {
  position: relative; aspect-ratio: 16 / 9; display: block; padding: 22px;
  background: radial-gradient(60% 70% at 50% 45%, color-mix(in srgb, var(--card-accent) 26%, transparent), transparent 75%), #0a0e11;
}
.game-card.lost .card-art { background: radial-gradient(60% 70% at 50% 45%, rgba(228, 180, 98, .30), transparent 75%), #140e09; }
/* Absolutely placed so a tall logo can't stretch the 16:9 frame. */
.card-art img { position: absolute; inset: 22px; width: calc(100% - 44px); height: calc(100% - 44px); object-fit: contain; filter: drop-shadow(0 12px 30px rgba(0, 0, 0, .5)); }
.card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.card-title { display: flex; align-items: center; gap: 12px; }
.card-title img { width: 48px; height: 48px; border-radius: 12px; }
.card-title h3 { font-size: 22px; margin: 0; }
.card-title small { display: block; color: var(--muted); font: 500 13px/1.3 var(--body); }
.card-body p { margin: 0; color: var(--muted); }
.card-body .chips li { background: color-mix(in srgb, var(--card-accent) 12%, transparent); border-color: color-mix(in srgb, var(--card-accent) 25%, transparent); }
.card-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 6px; }
.card-links .btn.primary { background: var(--card-accent); }
.status {
  position: absolute; top: 14px; right: 14px;
  font: 600 12px/1 var(--body); letter-spacing: .04em;
  background: rgba(0, 0, 0, .55); color: #fff; border: 1px solid rgba(255, 255, 255, .15);
  padding: 7px 10px; border-radius: 999px; backdrop-filter: blur(6px);
}
.status::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--card-accent); margin-right: 7px; vertical-align: 1px; }

.contact-card {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 32px; border-radius: var(--radius);
  background: linear-gradient(120deg, var(--accent-soft), transparent 70%), var(--surface);
  border: 1px solid var(--line);
}
.contact-card h2 { margin: 0 0 4px; font-size: 26px; }
.contact-card p { margin: 0; color: var(--muted); }

/* ---- Game page ---- */
.game-hero { position: relative; padding: 72px 0 48px; overflow: hidden; }
.game-hero::before {
  content: ""; position: absolute; inset: -30% -20% auto; height: 760px; z-index: -1;
  background: radial-gradient(45% 55% at 30% 45%, var(--glow), transparent 72%);
}
.game-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.game-logo { width: min(460px, 100%); margin: 0 0 18px -6px; filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .55)); }
.game-title { margin: 0 0 18px; font-family: var(--display); font-size: clamp(40px, 6vw, 64px); line-height: 1.05; letter-spacing: -.01em; }
.game-hero .lead { font-size: 19px; color: var(--text); opacity: .9; margin: 0 0 22px; max-width: 46ch; }
.game-hero .chips { margin-bottom: 28px; }
.phone {
  justify-self: center; width: min(300px, 80vw); aspect-ratio: 9 / 16;
  border-radius: 34px; padding: 10px; background: #000;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 30px 80px rgba(0, 0, 0, .6), 0 0 120px var(--glow);
  transform: rotate(2.5deg);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 26px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.feature b { display: block; font-family: var(--display); font-size: 17px; margin-bottom: 6px; color: var(--text); }
.feature span { color: var(--muted); font-size: 15px; }
.feature .num { color: var(--accent); font: 700 13px/1 var(--display); letter-spacing: .1em; margin-bottom: 10px; display: block; }

/* Optional "games inside the app" grid (page.mini_games), e.g. Kafamatik's new games */
.minis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mini { display: grid; grid-template-columns: 72px 1fr; gap: 16px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.mini img { width: 72px; height: 72px; border-radius: 16px; display: block; }
.mini b { display: block; font-family: var(--display); font-size: 17px; margin-bottom: 4px; color: var(--text); }
.mini p { margin: 0; color: var(--muted); font-size: 15px; }
.mini small { display: inline-block; margin-top: 8px; color: var(--accent); font: 700 12px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; }
.minis-note { color: var(--muted); margin: -12px 0 24px; max-width: 760px; }
@media (max-width: 960px) { .minis { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .minis { grid-template-columns: 1fr; } .mini { grid-template-columns: 60px 1fr; padding: 16px; } .mini img { width: 60px; height: 60px; border-radius: 14px; } }

.shots { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 18px; overflow-x: auto; padding: 6px 2px 18px; scroll-snap-type: x mandatory; }
.shots figure { margin: 0; scroll-snap-align: start; }
.shots img { border-radius: 18px; border: 1px solid var(--line); aspect-ratio: 9 / 16; object-fit: cover; width: 100%; background: var(--surface); }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.facts div { background: var(--surface); padding: 18px 20px; }
.facts dt { color: var(--muted); font-size: 13px; }
.facts dd { margin: 4px 0 0; font-weight: 600; font-family: var(--display); font-size: 17px; }

.quote { font-family: var(--display); font-size: clamp(20px, 2.6vw, 26px); text-align: center; color: var(--text); opacity: .85; max-width: 32ch; margin: 0 auto; }

/* ---- Text pages (privacy, support) ---- */
.doc { padding: 48px 0 72px; max-width: 760px; }
.doc h1 { font-size: clamp(28px, 4vw, 40px); }
.doc h2 { font-size: 22px; margin-top: 2em; }
.doc p, .doc li { color: color-mix(in srgb, var(--text) 86%, var(--muted)); }
.doc hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
.doc em { color: var(--muted); }
.back-link { display: inline-block; margin-bottom: 22px; font-weight: 500; font-size: 15px; }
.doc .contact-line { margin-top: 2em; padding: 16px 18px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.dev-games { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.dev-games li { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--c, var(--accent)); }
.dev-game { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; font-family: var(--display); color: var(--text); }
.dev-game img { width: 40px; height: 40px; border-radius: 10px; }
.dev-links { display: flex; gap: 16px; font-size: 15px; }
.beta-games .btn { border-color: color-mix(in srgb, var(--c) 45%, transparent); }
.beta-games .btn:hover { border-color: var(--c); }

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 40px; margin-top: 40px; }
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-logo { height: 40px; width: auto; margin-bottom: 6px; }
.site-footer p { margin: 0; font-size: 14px; }
.footer-links { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 14px; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 16px; }
.mail { font-weight: 600; }

/* ---- Small screens ---- */
@media (max-width: 860px) {
  .games, .game-hero-grid, .hero-grid { grid-template-columns: 1fr; }
  .hero-art { --gap: 14px; flex-wrap: nowrap; justify-content: start; max-width: none; margin: 0; }
  /* One row on small screens, however many games: icons share the width, up to 110 px each. */
  .hero-art a { flex: 1 1 0; min-width: 0; max-width: 110px; width: auto; }
  .features { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .phone { transform: none; width: min(260px, 70vw); }
  .hero { padding: 64px 0 48px; }
}
@media (max-width: 960px) {
  .nav-link { display: none; }
}
@media (max-width: 720px) {
  .nav-left > .nav-game { display: none; }
}
@media (max-width: 560px) {
  .header-row { gap: 8px; }
  .nav { gap: 8px; font-size: 14px; }
  .nav-pill { height: 38px; padding: 0 12px; font-size: 14px; }
  .nav-cta { height: 38px; padding: 0 12px 0 14px; font-size: 14px; gap: 6px; }
  .dropdown:not(:has(.lang-menu)) { position: static; }
  .games-menu { left: 16px; right: 16px; top: calc(100% + 4px); grid-template-columns: 1fr; }
  .brand img { height: 44px; }
  .features { grid-template-columns: 1fr; }
  .shots { grid-auto-columns: 62%; }
  .footer-links { align-items: flex-start; }
  .footer-nav { justify-content: flex-start; }
  .contact-card { padding: 24px; }
}
@media (max-width: 480px) {
  .nav-cta { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
