/* LETTERLOOP — oyun sayfası. Oyunun kimliği (src/index.css, Pastel Blok teması): açık pastel zemin, lacivert mürekkep, beyaz taş,
   sarı seçili taş, mercan eylem; Nunito (SIL OFL, kendi klasöründe — dış CDN yok).
   İmza: üst çubuktaki "Sıradaki" taş sırası — sayfa aşağı indikçe LETTERLOOP harfleri sırayla seçilir (page.js), oyundaki gibi.
   tasteskill ev kuralları: gradyan, bulanık gölge, ince çizgi, kart sırası, üst etiket yok; yüzeyler ton adımıyla ayrılır.
   Taşın alt kalınlığı oyundaki gibi düz renk şerit (border-bottom), gölge değil. */

@font-face { font-family: "Nunito"; font-weight: 400; font-display: swap;
  src: url("assets/fonts/nunito-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; font-weight: 400; font-display: swap;
  src: url("assets/fonts/nunito-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: "Nunito"; font-weight: 700; font-display: swap;
  src: url("assets/fonts/nunito-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; font-weight: 700; font-display: swap;
  src: url("assets/fonts/nunito-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: "Nunito"; font-weight: 900; font-display: swap;
  src: url("assets/fonts/nunito-latin-900-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; font-weight: 900; font-display: swap;
  src: url("assets/fonts/nunito-latin-ext-900-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #eef3ff;
  --field: #dbe4fa;
  --field-2: #c9d4ee;
  --peach: #fff0e8;
  --ink: #1f2a44;
  --ink-2: #4a5470;
  --tile: #ffffff;
  --tile-d: #c9d4ee;
  --sun: #ffd166;
  --sun-d: #e0a92e;
  --coral: #ff7a59;
  --coral-d: #e2633f;
  --link: #1f2a44;
  --font: "Nunito", ui-rounded, system-ui, sans-serif;
  --margin: clamp(16px, 4vw, 48px);
  --content: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gap: clamp(112px, 12vw, 192px);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-padding-top: 96px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 18px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--link); }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
h1, h2, h3 { font-weight: 900; letter-spacing: -0.015em; margin: 0; }
b, strong, dt, summary { font-weight: 700; }

.skip-link { position: absolute; left: 16px; top: -48px; z-index: 10; padding: 10px 16px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 700; }
.skip-link:focus { top: 12px; }
.skip-link:not(:focus) { width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- taş (oyundaki harf taşı) ---------- */
.tile { display: inline-grid; place-items: center; width: 1.6em; height: 1.6em; border-radius: 0.36em; background: var(--tile); border-bottom: 0.14em solid var(--tile-d);
  color: var(--ink); font-weight: 900; line-height: 1; transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease); }
.tile.is-on { background: var(--sun); border-bottom-color: var(--sun-d); transform: translateY(-2px); }

/* ---------- üst çubuk + Sıradaki sırası ---------- */
.bar { position: sticky; top: 0; z-index: 5; background: var(--bg); }
.bar-inner { max-width: var(--content); margin: 0 auto; padding: 6px var(--margin); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.bar a, .bar span[aria-current] { color: var(--ink-2); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; font-size: 15px; font-weight: 700; transition: color 0.2s var(--ease); }
.bar a:hover { color: var(--ink); }
.bar-back { gap: 8px; }
.bar-right { display: flex; align-items: center; gap: 28px; }
.bar-links, .langs { display: flex; gap: 18px; }
.langs { gap: 12px; }
.langs [aria-current] { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 3px; text-decoration-color: var(--coral); }
.queue { max-width: var(--content); margin: 0 auto; padding: 0 var(--margin) 8px; display: flex; gap: 5px; font-size: 13px; }

/* ---------- ortak ---------- */
main > section { padding: 0 var(--margin); }
.wrap { max-width: var(--content); margin: 0 auto; }
.shot { margin: 0; background: var(--field); border-radius: 26px; overflow: hidden; }
.shot img, .shot video { display: block; width: 100%; height: auto; }
.h2 { font-size: clamp(36px, 4.6vw, 64px); line-height: 1.02; max-width: 14ch; }
.lead { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.5; max-width: 36em; margin: 24px 0 0; }
.facts { margin: 40px 0 0; display: grid; gap: 28px; }
.facts div { max-width: 36em; }
.facts dt { font-size: 22px; font-weight: 900; line-height: 1.15; color: var(--ink); }
.facts dd { margin: 6px 0 0; }
.button { display: inline-flex; align-items: center; min-height: 54px; padding: 0 28px; border-radius: 18px; background: var(--coral); border-bottom: 5px solid var(--coral-d);
  color: var(--ink); font-weight: 900; font-size: 18px; text-decoration: none; transition: transform 0.2s var(--ease), background-color 0.2s var(--ease); }
.button:hover { background: #ff8a6c; transform: translateY(-2px); }
.button:active { transform: translateY(2px); border-bottom-width: 2px; }

/* ---------- giriş ---------- */
.hero { padding-top: clamp(40px, 6vw, 88px) !important; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: clamp(40px, 6vw, 96px); align-items: center; }
.hero-icon { width: 88px; height: 88px; border-radius: 22px; }
/* Başlık hiçbir genişlikte bölünmez (Genel Lider / kullanıcı 2026-11-18): punto bulunduğu sütunun genişliğine bağlı —
   "LETTERLOOP" Nunito 900'de ~6,36 em genişliğinde, 6,6'ya bölünce payıyla sığar */
.hero-copy { container-type: inline-size; }
.hero h1 { margin-top: 28px; font-size: min(112px, calc(100cqi / 6.6)); line-height: 0.94; letter-spacing: -0.03em; white-space: nowrap; }
.tagline { margin: 20px 0 0; font-size: 22px; font-weight: 900; line-height: 1.25; color: var(--ink); }
.hero .lead { margin-top: 28px; }
.ctas { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.soon { color: var(--ink-2); font-size: 15px; }

/* ---------- nasıl oynanır: metin solda, katlanma gösterimi sağda ---------- */
.play { margin-top: var(--gap); }
.play .wrap { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.demo { margin: 0; background: var(--field); border-radius: 26px; padding: clamp(28px, 4vw, 48px); display: grid; gap: 26px; }
.demo-row { display: grid; gap: 10px; }

.demo-label { margin: 0; font-size: 15px; font-weight: 700; color: var(--ink-2); }
.demo-tiles { display: flex; flex-wrap: wrap; gap: 8px; font-size: 22px; }
.demo-arrow { font-size: 22px; font-weight: 900; color: var(--ink); line-height: 1; }
.demo figcaption { font-size: 15px; color: var(--ink-2); max-width: 30em; }

/* ---------- harita ve günün tahtası: şeftali alan, iki görüntü ---------- */
.journey { margin-top: var(--gap); background: var(--peach); padding-top: clamp(80px, 9vw, 140px) !important; padding-bottom: clamp(80px, 9vw, 140px) !important; }
.journey .wrap { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pair .shot:nth-child(2) { margin-top: 88px; }
.journey .shot { background: #ffe1d4; }
figcaption.cap { padding: 14px 18px 16px; font-size: 15px; color: var(--ink-2); background: inherit; }

/* ---------- sandık ve görünüm ---------- */
.looks { margin-top: var(--gap); }
.looks .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.names { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--ink-2); font-weight: 700; }

/* ---------- dokuz dil: lacivert alan ---------- */
.langs-sec { margin-top: var(--gap); background: var(--ink); color: #fff; padding-top: clamp(80px, 9vw, 140px) !important; padding-bottom: clamp(80px, 9vw, 140px) !important; }
.langs-sec .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px clamp(40px, 6vw, 96px); align-items: center; }
.langs-sec .h2 { max-width: none; }
.langs-sec .lead { color: #dfe5f3; }
.langs-sec a { color: var(--sun); }
.lang-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.lang-list li { display: flex; align-items: center; gap: 14px; background: #2a3654; border-radius: 16px; padding: 14px 16px; font-weight: 700; min-width: 0; }
.lang-list .tile { font-size: 15px; flex: none; width: 2.6em; }
.lang-list span:last-child { overflow-wrap: anywhere; }

/* ---------- adil oyun ---------- */
.fair { margin-top: var(--gap); }
.fair .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: clamp(40px, 6vw, 112px); align-items: center; }
.statement { margin: 28px 0 0; font-size: clamp(19px, 1.6vw, 22px); line-height: 1.45; max-width: 26em; }
.fair-list { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 22px; max-width: 40em; }
.fair-list b { color: var(--ink); }

/* ---------- yardım ---------- */
.help { margin-top: var(--gap); }
.help .wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.help-list { display: grid; gap: 8px; }
.help details { background: var(--field); border-radius: 16px; }
.help summary { cursor: pointer; list-style: none; padding: 18px 56px 18px 22px; position: relative; min-height: 44px; transition: color 0.2s var(--ease); }
.help summary::-webkit-details-marker { display: none; }
.help summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-weight: 900; font-size: 22px; color: var(--ink); transition: transform 0.25s var(--ease); }
.help details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.help summary:hover { text-decoration: underline; text-decoration-color: var(--coral); text-underline-offset: 4px; }
.help details p { margin: 0; padding: 0 22px 20px; max-width: 40em; }
.help details i { font-style: normal; font-weight: 700; }
.help-head { position: sticky; top: 120px; }
.help-mail { margin: 28px 0 0; font-size: clamp(19px, 1.6vw, 22px); line-height: 1.45; max-width: 22em; }

/* ---------- alt bilgi ---------- */
.foot { margin-top: var(--gap); padding: clamp(64px, 8vw, 112px) var(--margin) 40px; background: var(--field); }
.foot > * { max-width: var(--content); margin-left: auto; margin-right: auto; }
.foot-name { margin-top: 0; margin-bottom: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: clamp(30px, 5vw, 64px); }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 40px; }
.foot nav a { color: var(--ink); text-decoration: none; font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; transition: color 0.2s var(--ease); }
.foot nav a:hover { text-decoration: underline; text-decoration-color: var(--coral); text-underline-offset: 6px; }
.foot-small { margin-top: 16px; color: var(--ink-2); font-size: 15px; }

/* ---------- giriş hareketi (/games/site.js; betik yoksa her şey görünür) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.shot img { transition: transform 0.6s var(--ease); }
.shot:hover img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .shot img, .button, .tile, .help summary::after { transition: none; }
  .shot:hover img { transform: none; }
}

/* ---------- dar ekran ---------- */
/* iki sütunda metin sütunu dar kalırsa başlık küçülür → giriş bölümü 1100 px altında tek sütun */
@media (max-width: 1100px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero .shot { max-width: 400px; }
}
@media (max-width: 860px) {
  .hero .wrap, .play .wrap, .journey .wrap, .looks .wrap, .langs-sec .wrap, .fair .wrap, .help .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero .shot { max-width: 400px; }
  .fair .shot { max-width: 360px; }
  .looks .pair, .journey .pair { order: 2; }
  .bar-links { display: none; }
  .help-head { position: static; }
}
@media (max-width: 560px) {
  .pair .shot:nth-child(2) { margin-top: 40px; }
  .pair { gap: 12px; }
  .lang-list { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .queue { gap: 4px; font-size: 11px; }
}
