/* Erteke Studios — site.css
   Tokenlar tasarım canvas'ındaki token tablosuyla birebir. */

:root {
  --night: oklch(0.25 0.08 295);
  --night2: oklch(0.29 0.085 295);
  --night3: oklch(0.33 0.085 295);
  --line: oklch(0.40 0.07 295);
  --moon: oklch(0.45 0.18 295);
  --moonh: oklch(0.50 0.18 295);
  --cream: oklch(0.95 0.02 90);
  --cream2: oklch(0.91 0.022 90);
  --creamline: oklch(0.84 0.02 295);
  --mute: oklch(0.78 0.035 295);
  --mutec: oklch(0.47 0.05 295);
  --oncm: color-mix(in oklch, var(--cream) 85%, var(--moon));

  --cmbg: #12151b; --cmpanel: #191d25; --cmpanel2: #202633; --cmline: #2d3442;
  --cmink: #f1e8d1; --cmmute: #8a909c; --cmdim: #555d6d;
  --cmgold: #e9c64a; --cmgoldh: #f0d266; --cmgolddk: #9c7a22; --cminkdk: #281909;
  --cmframe: #d9cdb4; --cmedge: #b6a583; --cmta: #eef1e4; --cmtb: #a9c6a2; --cmclue: #f4d77a;
  --cmgreen: #1f8542; --cmpanel0: #1b1f28;

  /* HomeScanner: yalnızca kendi sayfasında */
  --hsblue: #17468a; --hsblueh: #1d55a6; --hspaper: #f4f4f2; --hspaper2: #ebebe7; --hsink: #161b24; --hsmute: #575e6b; --hsline: #d9d9d3;

  /* bölge tokenları: ortak bileşenler (çip, mağaza, bağlantı, adımlar) bunları kullanır, her dünya kendi değerini verir */
  --z-ink: var(--cream); --z-mute: var(--mute); --z-line: var(--line); --z-panel: var(--night2); --z-panel0: var(--night2);
  --z-acc: var(--cream); --z-acch: #fff; --z-onacc: var(--night); --z-disp: var(--sans);

  --out: cubic-bezier(.33, 1, .68, 1);      /* easeOutCubic */
  --inout: cubic-bezier(.65, 0, .35, 1);    /* easeInOutCubic */
  --back: cubic-bezier(.34, 1.56, .64, 1);  /* easeOutBack — yalnızca logo */

  --nav-h: 72px;
  --pad: 80px;
  --sans: 'Bricolage Grotesque', system-ui, sans-serif;
  --cm-disp: 'Baloo 2', system-ui, sans-serif;
  --cm-body: 'Nunito', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  color-scheme: dark;
}
@media (max-width: 767px) { :root { --nav-h: 60px; --pad: 20px; } }
@media (min-width: 768px) and (max-width: 1099px) { :root { --pad: 40px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--night); color: var(--cream);
  font-family: var(--sans); font-optical-sizing: auto; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
img, svg { display: block; }
button { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; border-radius: 6px; }
.cz :focus-visible, .apps :focus-visible { outline-color: var(--moon); }
.hz :focus-visible { outline-color: var(--hsblue); }
.gz :focus-visible { outline-color: var(--cmgold); }
main:focus { outline: none; }
.c-cream { fill: var(--cream); }
.c-night { fill: var(--night); }
.s-line { stroke: var(--line); }

.skip { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--cream); color: var(--night); padding: 10px 16px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { max-width: calc(1280px + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }

/* ---------- Gezinme ---------- */
.nav { position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 40; background: var(--night); border-bottom: 1px solid var(--night3); }
.nav-in { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.lock { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--cream); }
.lock svg { width: 32px; height: 32px; flex: none; overflow: visible; }
.lock-w { display: flex; flex-direction: column; }
.lock-e { font-weight: 800; font-size: 24px; line-height: .85; letter-spacing: -0.045em; }
.lock-s { font-weight: 500; font-size: 10.5px; line-height: 1; margin-top: 3px; padding-left: 1px; }
.nlinks { display: flex; align-items: center; gap: 36px; }
.nl { font-size: 15px; font-weight: 500; text-decoration: none; padding: 10px 2px; text-underline-offset: 7px; text-decoration-thickness: 2px; }
.nl.cur { text-decoration: underline; text-decoration-color: var(--cream); }
@media (hover: hover) and (pointer: fine) { .nl:hover { text-decoration: underline; text-decoration-color: var(--moon); } }
.lang { display: inline-flex; padding: 3px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); }
.lang button { min-width: 44px; height: 34px; border: 0; border-radius: 999px; background: transparent; color: var(--mute); font: 600 13px/1 var(--sans); cursor: pointer; transition: background-color 150ms var(--out), color 150ms var(--out); }
.lang button[aria-pressed="true"] { background: var(--cream); color: var(--night); }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; color: var(--cream); align-items: center; justify-content: center; cursor: pointer; }
.menu-btn .i-close { display: none; }
.menu-btn[aria-expanded="true"] .i-open { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: block; }
.msheet { position: absolute; top: var(--nav-h); left: 0; right: 0; background: var(--night); border-bottom: 1px solid var(--night3); padding: 12px 20px 28px; display: flex; flex-direction: column; gap: 4px; animation: sheet 200ms var(--out); }
.msheet a { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; text-decoration: none; padding: 10px 0; }
.msheet .lang { align-self: flex-start; margin-top: 16px; }
.msheet .lang button { height: 38px; }
@keyframes sheet { from { opacity: 0; transform: translateY(-8px); } }
@media (max-width: 767px) {
  .lock { gap: 9px; } .lock svg { width: 28px; height: 28px; } .lock-e { font-size: 21px; } .lock-s { font-size: 9.5px; }
  .nlinks { display: none; }
  .menu-btn { display: flex; }
}
.intro-pending .nav .lock#nav-lock, .intro-on .nav #nav-lock { opacity: 0; }

main { padding-top: var(--nav-h); display: block; }

/* ---------- Tipografi, butonlar ---------- */
.over { font-size: 15px; font-weight: 600; color: var(--mute); margin: 0 0 20px; }
.h-xl { font-weight: 800; font-size: clamp(50px, 7.2vw, 104px); line-height: .95; letter-spacing: -0.04em; margin: 0; text-wrap: balance; }
.h-l { font-weight: 800; font-size: clamp(42px, 5vw, 72px); line-height: 1; letter-spacing: -0.035em; margin: 0; text-wrap: balance; }
.lead { font-size: clamp(18px, 1.4vw, 20px); line-height: 1.55; color: var(--mute); margin: 0; max-width: 34em; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 24px; border: 0; border-radius: 12px; font: 600 16px/1 var(--sans); text-decoration: none; cursor: pointer; transition: transform 120ms var(--out), background-color 150ms var(--out), box-shadow 150ms var(--out); }
.btn:active { transform: scale(.97); }
.btn-p { background: var(--moon); color: var(--cream); }
.btn-g { background: transparent; color: var(--cream); box-shadow: inset 0 0 0 1px var(--line); }
.btn-dark { background: var(--night); color: var(--cream); }
@media (hover: hover) and (pointer: fine) {
  .btn-p:hover { background: var(--moonh); }
  .btn-g:hover { box-shadow: inset 0 0 0 1px var(--mute); }
  .btn-dark:hover { background: var(--night3); }
}

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: min(780px, calc(100svh - var(--nav-h))); display: flex; align-items: center; padding: 56px 0; background: var(--night); }
.hero-in { transform: translateY(calc(var(--p, 0) * -56px)) scale(calc(1 - var(--p, 0) * .06)); opacity: calc(1 - var(--p, 0) * 1.1); transform-origin: 50% 30%; width: 100%; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px; align-items: center; }
.hero-copy .lead { margin-top: 32px; }
.hero-cta { display: flex; align-items: center; gap: 16px; margin-top: 44px; flex-wrap: wrap; }
.hero-eye { position: relative; justify-self: end; width: min(400px, 30vw); aspect-ratio: 1; }
.eye { width: 100%; height: 100%; overflow: visible; }
#eye-moon, #eye-pupil { transition: transform 180ms var(--out); }
.pupil { transform-box: fill-box; transform-origin: center; }
.pupil.blink { animation: blink 200ms linear; }
@keyframes blink { 50% { transform: scaleY(.1); } }
@media (max-width: 767px) {
  .hero { min-height: 0; padding: 40px 0 80px; }
  .hero-in { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .hero-eye { order: -1; justify-self: start; width: 152px; margin-bottom: 36px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
}

/* ---------- ChessMine dünyası (ortak) ---------- */
.gz { --z-ink: var(--cmink); --z-mute: var(--cmmute); --z-line: var(--cmline); --z-panel: var(--cmpanel); --z-panel0: var(--cmpanel0); --z-acc: var(--cmgold); --z-acch: var(--cmgoldh); --z-onacc: var(--cminkdk); --z-disp: var(--cm-disp);
  background: var(--cmbg); color: var(--cmink); font-family: var(--cm-body); }
.gz .over { color: var(--cmmute); font-family: var(--cm-body); font-weight: 700; }
.cm-t { font-family: var(--cm-disp); font-weight: 800; letter-spacing: -0.01em; line-height: .95; margin: 0; }
.p-tag { font-size: clamp(18px, 1.6vw, 22px); font-weight: 600; color: var(--z-mute); margin: 14px 0 0; }
.cm-p { font-size: 18px; line-height: 1.6; margin: 28px 0 0; max-width: 30em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.chip { height: 32px; padding: 0 14px; border-radius: 999px; background: var(--z-panel); box-shadow: inset 0 0 0 1px var(--z-line); font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.store { display: inline-flex; align-items: center; gap: 12px; height: 56px; padding: 0 20px 0 16px; border-radius: 14px; text-decoration: none; transition: transform 120ms var(--out), background-color 150ms var(--out); }
.store:active { transform: scale(.97); }
.store-l { display: flex; flex-direction: column; gap: 2px; line-height: 1; }
.store-s { font-size: 11.5px; font-weight: 700; opacity: .8; }
.store-b { font-size: 17px; font-weight: 800; }
.store-p { background: var(--z-acc); color: var(--z-onacc); }
.store-soon { color: var(--z-ink); box-shadow: inset 0 0 0 1px var(--z-line); cursor: default; }
.store-soon:active { transform: none; }
@media (hover: hover) and (pointer: fine) { .store-p:hover { background: var(--z-acch); } }
@media (max-width: 767px) { .stores { flex-direction: column; } .store { width: 100%; } }
.p-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; color: var(--z-acc); font-weight: 800; font-size: 17px; text-decoration: none; padding: 8px 0; }
.p-link svg { transition: transform 200ms var(--out); }
@media (hover: hover) and (pointer: fine) { .p-link:hover { text-decoration: underline; text-underline-offset: 6px; } .p-link:hover svg { transform: translateX(3px); } }

/* telefon çerçevesi + oyun ekranı */
.phone { background: #0b0d11; padding: 10px; border-radius: 46px; box-shadow: 0 0 0 1px var(--cmline); }
.phone-crop { border-bottom-left-radius: 0; border-bottom-right-radius: 0; padding-bottom: 0; }
.phone-in { overflow: hidden; border-radius: 36px; position: relative; }
.phone-crop .phone-in { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.phone-sc { transform-origin: 0 0; width: 390px; height: 844px; }

.cs { width: 390px; height: 844px; background: var(--cmbg); color: var(--cmink); font-family: var(--cm-body); padding: 64px 24px 28px; display: flex; flex-direction: column; align-items: center; }
.cs-disp { font-family: var(--cm-disp); font-weight: 800; letter-spacing: -0.01em; }
.cs-mut { color: var(--cmmute); }
.cs-frame { background: var(--cmframe); border: 1px solid var(--cmedge); padding: 8px; display: grid; }
.cs-t { display: flex; align-items: center; justify-content: center; font-family: var(--cm-disp); font-weight: 800; color: var(--cminkdk); }
.cs-a { background: var(--cmta); } .cs-b { background: var(--cmtb); } .cs-c { background: var(--cmclue); }
.cs-t img { width: 74%; height: 74%; object-fit: contain; }
.cs-bar { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.cs-round { width: 44px; height: 44px; border-radius: 22px; background: var(--cmpanel); border: 1px solid var(--cmline); display: flex; align-items: center; justify-content: center; }
.cs-tool { position: relative; width: 74px; height: 64px; border-radius: 16px; background: var(--cmpanel); border: 1px solid var(--cmline); display: flex; align-items: center; justify-content: center; }
.cs-badge { position: absolute; top: -8px; right: -6px; min-width: 28px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--cmpanel2); border: 1px solid var(--cmline); font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.cs-gold, .cs-ghost { border-radius: 16px; height: 56px; width: 100%; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 800; }
.cs-gold { background: var(--cmgold); color: var(--cminkdk); }
.cs-ghost { background: var(--cmpanel); border: 1px solid var(--cmline); font-weight: 700; font-size: 17px; }
.cs-lv { height: 58px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font: 800 22px/1 var(--cm-disp); }
.cs-lv.done { background: var(--cmgold); color: var(--cminkdk); }
.cs-lv.cur { background: var(--cmpanel); box-shadow: inset 0 0 0 2px var(--cmgold); }
.cs-lv.open { background: var(--cmpanel); border: 1px solid var(--cmline); }
.cs-lv.lock { border: 1px solid #242a35; color: var(--cmdim); }

/* ---------- Öne çıkan kart ---------- */
.games { position: relative; z-index: 1; overflow-x: clip; padding: 112px 0 176px; background: var(--night) radial-gradient(color-mix(in oklch, var(--line) 75%, transparent) 1px, transparent 1.3px) 0 0 / 28px 28px; }
.cmcard { transform: perspective(1600px) rotateX(calc((1 - var(--e, 1)) * 16deg)) scale(calc(.92 + var(--e, 1) * .08)); transform-origin: 50% 0; border-radius: 28px; overflow: hidden; box-shadow: 0 0 0 1px var(--night3); transition: translate 200ms var(--out); }
@media (hover: hover) and (pointer: fine) { .cmcard:hover { translate: 0 -2px; } }
.cmcard-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; padding: 72px 72px 0; }
.cmcard-copy { padding-bottom: 72px; }
.cm-t-card { font-size: clamp(60px, 6.2vw, 88px); }
.cmcard-ph { transform: translateY(calc((1 - var(--e, 1)) * 140px)); align-self: end; justify-self: center; }
@media (max-width: 899px) {
  .games { padding: 72px 0 112px; }
  .cmcard { border-radius: 24px; }
  .cmcard-in { grid-template-columns: minmax(0, 1fr); padding: 32px 24px 0; }
  .cmcard-copy { padding-bottom: 40px; }
}

/* ---------- Oyunlar ızgarası ---------- */
.sec-h .lead { margin-top: 20px; }
.cat-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 128px 0 36px; }
.cat-t { font-size: clamp(28px, 2.6vw, 36px); font-weight: 700; letter-spacing: -0.02em; margin: 0; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter { height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--mute); box-shadow: inset 0 0 0 1px var(--line); font: 600 14px/1 var(--sans); cursor: pointer; transition: background-color 150ms var(--out), color 150ms var(--out), transform 120ms var(--out); }
.filter:active { transform: scale(.97); }
.filter[aria-pressed="true"] { background: var(--cream); color: var(--night); box-shadow: none; }
.ggrid { perspective: 1400px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.gc { position: relative; transition: translate 200ms var(--out), rotate 300ms var(--out); display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; text-decoration: none; color: var(--cream); min-height: 420px; }
.gc { background: var(--night2); box-shadow: inset 0 0 0 1px var(--night3); }
.gc-soon .gc-th { background: var(--night3); }
.gc::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 0%), color-mix(in oklch, var(--cream) 16%, transparent), transparent 60%); opacity: 0; transition: opacity 200ms var(--out); }
.gc.tilt::after { opacity: 1; }
.gc-th { height: 260px; display: flex; align-items: center; justify-content: center; }
.gc-on .gc-th { background: var(--cmbg); }
.gc-b { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.gc-n { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; margin: 0; }
.gc-n-soon, .gc-d { color: var(--mute); }
.gc-d { font-size: 16px; margin: 0; }
.gc-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; font-weight: 500; color: var(--mute); margin-top: auto; }
.dot { display: inline-flex; align-items: center; gap: 8px; }
.dot::before { content: ""; width: 8px; height: 8px; border-radius: 4px; background: var(--cream); }
.mini { display: grid; grid-template-columns: repeat(4, 30px); grid-auto-rows: 30px; padding: 7px; border-radius: 12px; background: var(--cmframe); box-shadow: inset 0 0 0 1px var(--cmedge); transition: transform 300ms var(--out); }
.mt { display: flex; align-items: center; justify-content: center; font: 800 17px/1 var(--cm-disp); color: var(--cminkdk); }
.mt.a { background: var(--cmta); } .mt.b { background: var(--cmtb); } .mt.c { background: var(--cmclue); }
.empty { color: var(--mutec); margin: 24px 0 0; }
@media (hover: hover) and (pointer: fine) {
  .gc-on:hover { translate: 0 -4px; box-shadow: 0 32px 60px -32px oklch(0.25 0.08 295 / .7); }
  .gc-on:hover .mini { transform: rotate(-2deg); }
}
@media (min-width: 768px) and (max-width: 1099px) { .ggrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) {
  .cat-h { flex-direction: column; align-items: flex-start; margin: 88px 0 28px; }
  .filter { height: 44px; }
  .ggrid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .gc { min-height: 0; } .gc-th { height: 200px; }
}

/* ---------- İletişim ---------- */
.contact { background: var(--moon); z-index: 3; padding: 128px 0; }
.contact .lead { margin-top: 16px; }
.mail { display: inline-block; margin-top: 36px; font-size: clamp(26px, 3.2vw, 44px); font-weight: 700; letter-spacing: -0.025em; text-decoration: none; word-break: break-word; }
.mail-u { background: linear-gradient(var(--cream), var(--cream)) 0 100% / 100% 3px no-repeat; padding-bottom: 6px; }
.press-m { font-size: 16px; color: var(--oncm); margin: 20px 0 0; }
@media (max-width: 767px) { .contact { padding: 80px 0 96px; } }

/* ---------- Alt bilgi ---------- */
.foot { position: relative; z-index: 3; overflow: hidden; padding: 72px 0 0; background: var(--night); color: var(--cream); font-family: var(--sans); }
.foot .lock svg { width: 40px; height: 40px; }
.foot-pupil { transform-box: fill-box; transform-origin: center; }
.foot.seen .foot-pupil { animation: blink 200ms linear 400ms; }
.foot-tag { font-size: 16px; color: var(--mute); margin: 20px 0 0; max-width: 22em; }
.foot-top { display: flex; justify-content: space-between; gap: 48px; }
.foot-cols { display: flex; gap: 72px; }
.foot-col { display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.foot-col a { text-decoration: none; color: var(--mute); padding: 2px 0; transition: color 150ms var(--out); }
@media (hover: hover) and (pointer: fine) { .foot-col a:hover { color: var(--cream); text-decoration: underline; text-decoration-color: var(--moon); text-underline-offset: 5px; } }
.foot-k { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.foot-bot { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--night3); font-size: 14px; color: var(--mute); }
@media (max-width: 767px) {
  .foot { padding: 48px 0 0; }
  .foot-top, .foot-cols { flex-direction: column; } .foot-top { gap: 40px; } .foot-cols { gap: 32px; }
  .foot-bot { flex-direction: column-reverse; align-items: flex-start; margin-top: 40px; }
  .foot .lang button { height: 38px; }
}

/* ---------- ChessMine sayfası ---------- */
.phead { padding-top: 56px; overflow: hidden; }
.phead-in { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 24px; min-height: 584px; }
.phead-copy { padding-bottom: 72px; }
.phead h1 { transform: translateY(calc(var(--p, 0) * 48px)); opacity: calc(1 - var(--p, 0) * .7); }
.cm-t-page { font-size: clamp(72px, 8.9vw, 128px); margin-top: 32px; }
.phead-ph { transform: translateY(calc(var(--p, 0) * 90px)); align-self: end; justify-self: center; }
.crumb { font-size: 14px; font-weight: 700; color: var(--z-mute); display: flex; gap: 8px; align-items: center; }
.crumb a { text-decoration: none; padding: 6px 0; }
.crumb [aria-current] { color: var(--z-ink); }
@media (hover: hover) and (pointer: fine) { .crumb a:hover { color: var(--z-ink); text-decoration: underline; } }
.phead.enter .phead-copy > *, .phead.enter .phead-ph { animation: rise 320ms var(--out) both; }
.phead.enter .phead-copy > :nth-child(2) { animation-delay: 40ms; }
.phead.enter .phead-copy > :nth-child(3) { animation-delay: 80ms; }
.phead.enter .phead-copy > :nth-child(4) { animation-delay: 120ms; }
.phead.enter .phead-copy > :nth-child(5) { animation-delay: 160ms; }
.phead.enter .phead-copy > :nth-child(n+6) { animation-delay: 200ms; }
.phead.enter .phead-ph { animation-duration: 360ms; animation-delay: 120ms; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.psec { padding: 120px 0; border-top: 1px solid var(--z-line); overflow-x: clip; }
.psec:nth-of-type(even) { background: var(--z-panel0); }
.ph2 { font-family: var(--z-disp); font-weight: 800; font-size: clamp(36px, 3.6vw, 52px); line-height: 1.02; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
.pp { font-size: 19px; line-height: 1.65; margin: 0 0 20px; }
.two { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 1fr) minmax(0, 6fr); gap: 24px; }
.two > :first-child { grid-column: 1; } .two > .two-r { grid-column: 3; padding-top: 40px; }
@media (max-width: 767px) {
  .phead { padding-top: 28px; }
  .phead-in { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .phead-copy { padding-bottom: 40px; }
  .psec { padding: 72px 0; }
  .pp { font-size: 17px; }
  .two { grid-template-columns: minmax(0, 1fr); }
  .two > .two-r { grid-column: 1; padding-top: 28px; }
}

/* tahta */
.bd { --cell: 72px; position: relative; display: inline-block; padding: 10px; border-radius: 20px; background: var(--cmframe); box-shadow: inset 0 0 0 1px var(--cmedge); }
.bd.sm { --cell: 54px; padding: 8px; border-radius: 16px; }
@media (max-width: 767px) { .bd { --cell: 56px; } .bd.sm { --cell: 52px; } }
.bd-g { position: relative; display: grid; grid-template-columns: repeat(5, var(--cell)); grid-auto-rows: var(--cell); border-radius: 8px; overflow: hidden; }
.bt { display: flex; align-items: center; justify-content: center; transition: background-color 300ms var(--out), box-shadow 300ms var(--out); }
.bt.a { background: var(--cmta); } .bt.b { background: var(--cmtb); }
.bt .num { font: 800 calc(var(--cell) * .56)/1 var(--cm-disp); color: var(--cminkdk); opacity: 0; transform: scale(.6); transition: opacity 300ms var(--out), transform 300ms var(--out); transition-delay: inherit; }
.bd:is([data-step="0"], [data-step="1"], [data-step="2"]) .clue { background: var(--cmclue); }
.bd:is([data-step="0"], [data-step="1"], [data-step="2"]) .clue .num { opacity: 1; transform: none; }
.bd:is([data-step="1"], [data-step="2"]) .hit { box-shadow: inset 0 0 0 999px rgba(233, 198, 74, .30); }
.bd[data-step="2"] .clue { box-shadow: inset 0 0 0 4px var(--cmgreen); }
.ln { position: absolute; background: var(--cmgolddk); border-radius: 3px; opacity: .9; transition: transform 400ms var(--inout); pointer-events: none; }
.ln.h { height: 5px; left: calc(var(--cell) * .5); width: calc(var(--cell) * 4); top: calc(var(--cell) * 2.5 - 2.5px); transform: scaleX(0); transform-origin: 75% 50%; }
.ln.v { width: 5px; top: calc(var(--cell) * .5); height: calc(var(--cell) * 4); left: calc(var(--cell) * 3.5 - 2.5px); transform: scaleY(0); transform-origin: 50% 50%; }
.bd:is([data-step="1"], [data-step="2"]) .ln { transform: none; }
.rook { position: absolute; width: var(--cell); height: var(--cell); left: calc(var(--cell) * 3); top: calc(var(--cell) * 2); display: flex; align-items: center; justify-content: center; opacity: 0; transform: translateY(-12px); transition: opacity 300ms var(--out), transform 300ms var(--out); }
.rook img { width: 72%; height: 72%; object-fit: contain; }
.bd[data-step="1"] .rook { opacity: .5; transform: translateY(-8px); }
.bd[data-step="2"] .rook { opacity: 1; transform: none; }

/* kaydırmalı demo */
.how { padding-bottom: 0; }
.how-run { position: relative; height: calc((100svh - var(--nav-h)) * 2.8); }
.how-stick { position: sticky; top: var(--nav-h); height: calc(100svh - var(--nav-h)); display: flex; align-items: center; }
.how-grid { width: 100%; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 1fr) minmax(0, 6fr); gap: 24px; align-items: center; }
.how-stage { grid-column: 3; display: flex; justify-content: center; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.step { width: 100%; display: flex; gap: 20px; text-align: left; padding: 20px 22px; border: 0; border-radius: 18px; background: transparent; color: var(--z-ink); font-family: inherit; cursor: pointer; opacity: .45; transition: opacity 250ms var(--out), background-color 250ms var(--out); }
.step[aria-current="step"] { opacity: 1; background: var(--z-panel); }
.step-n { flex: none; width: 34px; height: 34px; border-radius: 17px; box-shadow: inset 0 0 0 2px var(--z-acc); color: var(--z-acc); font: 800 16px/34px var(--z-disp); text-align: center; }
.step-t { display: block; font-size: 21px; font-weight: 800; margin: 3px 0 6px; }
.step-d { display: block; font-size: 16px; line-height: 1.55; color: var(--z-mute); margin: 0; }
.step[aria-current="step"] .step-d { color: var(--z-ink); }
.how-still { display: none; }
.st3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 56px; padding-bottom: 120px; }
.st-cap { display: flex; gap: 16px; margin-top: 20px; }
.st-cap .step-d { color: var(--z-ink); }
@media (max-width: 1099px) {
  .how-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .how-stage { grid-column: 1; order: -1; }
  .step { padding: 12px 14px; gap: 14px; }
  .step-t { font-size: 18px; margin-bottom: 4px; } .step-d { font-size: 15px; }
  .step:not([aria-current="step"]) .step-d { display: none; }
  .st3 { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-bottom: 72px; }
}
@media (max-width: 1099px) and (max-height: 700px) { .bd { --cell: 46px; } }
@media (prefers-reduced-motion: reduce) {
  .how { padding-bottom: 0; }
  .how-run { display: none; }
  .how-still { display: block; }
}

/* özellikler, görüntüler */
.feats { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 24px; margin-top: 56px; }
.fi { padding-top: 24px; border-top: 1px solid var(--z-line); }
.fi svg { stroke: var(--z-acc); }
.fi-t { font-size: 21px; font-weight: 800; margin: 18px 0 8px; }
.fi-d { font-size: 16px; line-height: 1.55; color: var(--z-mute); margin: 0; }
.shots { display: flex; gap: 24px; margin-top: 56px; }
@media (min-width: 1100px) { .shots { transform: translateX(calc((.5 - var(--e, .5)) * 180px)); } }
/* ChessMine: 8 mağaza görseli, geniş ekranda 4'lü iki satır */
@media (min-width: 1100px) { .shots[data-shots="cm"] { display: grid; grid-template-columns: repeat(4, max-content); justify-content: center; gap: 32px 24px; } }
.shot { flex: none; margin: 0; }
.shot-c { font-size: 14px; font-weight: 700; color: var(--z-mute); margin-top: 14px; }
@media (max-width: 1099px) {
  .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shots { overflow-x: auto; scroll-snap-type: x mandatory; margin: 36px calc(var(--pad) * -1) 0; padding: 0 var(--pad) 8px; gap: 16px; }
  .shot { scroll-snap-align: start; }
}
@media (max-width: 767px) { .feats { grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 36px; } }

/* ---------- Okuma sayfaları ---------- */
.cz, .apps { --z-ink: var(--night); --z-mute: var(--mutec); --z-line: var(--creamline); --z-panel: transparent; --z-acc: var(--moon); --z-acch: var(--moonh); --z-onacc: var(--cream); }
.cz { background: var(--cream); color: var(--night); }
.read { max-width: 680px; margin: 0 auto; padding: 112px 0 128px; }
.read h1 { font-weight: 800; font-size: clamp(44px, 5vw, 72px); line-height: 1; letter-spacing: -0.035em; margin: 0; }
.read .meta { font-size: 15px; color: var(--mutec); margin-top: 18px; }
.read .rlead { font-size: clamp(20px, 1.8vw, 24px); line-height: 1.5; margin: 40px 0 24px; }
.read h2 { font-weight: 700; font-size: clamp(25px, 2.2vw, 30px); line-height: 1.15; letter-spacing: -0.015em; margin: 64px 0 16px; }
.read p { font-size: 18px; line-height: 1.7; margin: 0 0 18px; }
.read .btn { margin-top: 32px; }
.toc { margin: 44px 0 0; padding: 24px 0; border-top: 1px solid var(--creamline); border-bottom: 1px solid var(--creamline); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; font-size: 16px; }
.toc a { text-decoration: none; padding: 4px 0; }
@media (hover: hover) and (pointer: fine) { .toc a:hover { text-decoration: underline; text-decoration-color: var(--moon); } }
.prin-i { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; padding: 20px 0; border-top: 1px solid var(--creamline); }
.prin-i p { margin: 0; }
.prin-k { font-weight: 700; font-size: 20px; }
.rows { border-top: 1px solid var(--creamline); }
.row { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--creamline); font-size: 18px; }
.row-k { color: var(--mutec); }
.row a { color: var(--moon); }
@media (max-width: 767px) {
  .read { padding: 56px 20px 80px; }
  .read h2 { margin-top: 48px; }
  .toc { grid-template-columns: minmax(0, 1fr); }
  .prin-i { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .row { flex-direction: column; gap: 4px; }
}

/* ---------- 404 ---------- */
.nf { min-height: calc(100svh - var(--nav-h)); display: flex; align-items: center; justify-content: center; text-align: center; padding: 64px 20px; }
.nf .lead { margin: 20px auto 0; }
.nf .btn { margin-top: 40px; }
.nf-eye { width: clamp(132px, 13vw, 180px); aspect-ratio: 1; margin: 0 auto 48px; }
.nf-p { transform-box: fill-box; transform-origin: center; }
.nf-run .nf-p { animation: nf 2200ms var(--inout) 300ms both; }
@keyframes nf { 0% { transform: scaleY(1); } 18% { transform: scaleY(.08); } 45% { transform: scaleY(.08); } 53% { transform: scaleY(.55); } 60% { transform: scaleY(.08); } 82%, 100% { transform: scaleY(1); } }

/* ---------- Intro ---------- */
.intro { display: none; position: fixed; inset: 0; z-index: 60; cursor: pointer; }
.intro-pending .intro, .intro-on .intro { display: block; }
.intro-bg { position: absolute; inset: 0; background: var(--night); }
.intro-lock { position: absolute; transform-origin: 0 0; opacity: 0; will-change: transform; }
.intro-run .intro-lock { opacity: 1; animation: lockMove 2450ms linear both; }
/* Logo büyük boyutta gerçekten çizilir, animasyon sadece küçültür: büyütülen raster pikselleşir, küçültülen pikselleşmez.
   opsz nav boyutuna sabit: yoksa Bricolage büyük puntoda daha dar çizilir ve bitişte yazı zıplar. */
.intro-run .intro-lock { gap: calc(10px * var(--s)); }
.intro-run .intro-lock svg { width: calc(32px * var(--s)); height: calc(32px * var(--s)); }
.intro-run .intro-lock .lock-e { font-size: calc(24px * var(--s)); font-variation-settings: "opsz" 24; }
.intro-run .intro-lock .lock-s { font-size: calc(10.5px * var(--s)); margin-top: calc(3px * var(--s)); padding-left: calc(1px * var(--s)); font-variation-settings: "opsz" 10.5; }
@media (max-width: 767px) {
  .intro-run .intro-lock { gap: calc(9px * var(--s)); }
  .intro-run .intro-lock svg { width: calc(28px * var(--s)); height: calc(28px * var(--s)); }
  .intro-run .intro-lock .lock-e { font-size: calc(21px * var(--s)); font-variation-settings: "opsz" 21; }
  .intro-run .intro-lock .lock-s { font-size: calc(9.5px * var(--s)); font-variation-settings: "opsz" 9.5; }
}
.intro-run .i-outer { animation: pop 600ms var(--back) 100ms both; }
.intro-run .i-moon { animation: moonIn 450ms var(--out) 450ms both; }
.intro-run .i-pg { animation: pop 380ms var(--back) 700ms both; }
.intro-run .i-p { animation: blink 200ms linear 1750ms both; }
.intro-run .intro-lock .lock-w { animation: clip 600ms var(--inout) 950ms both; }
.intro-run .intro-lock .lock-e { animation: up 550ms var(--out) 1050ms both; }
.intro-run .intro-lock .lock-s { animation: sub 450ms var(--out) 1250ms both; }
.intro-run .intro-bg { animation: fade 450ms var(--inout) 2000ms both; }
.intro-skip .intro-bg { opacity: 0; transition: opacity 200ms var(--out); }
.intro-skip .intro-lock { display: none; }
.i-outer, .i-pg, .i-p, .i-moon { transform-box: fill-box; transform-origin: center; }
@keyframes pop { from { transform: scale(0); } }
@keyframes moonIn { from { transform: translate(-22px, 18px) scale(0); } }
@keyframes clip { from { clip-path: inset(-30% 100% -30% 0); } to { clip-path: inset(-30% -30% -30% 0); } }
@keyframes up { from { transform: translateY(110%); } }
@keyframes sub { from { opacity: 0; transform: translateY(calc(6px * var(--s, 1))); } }
@keyframes fade { to { opacity: 0; } }
@keyframes lockMove {
  0%, 38.8% { transform: translate(var(--dx0), var(--dy)) scale(1); animation-timing-function: cubic-bezier(.65, 0, .35, 1); }
  63.3%, 81.6% { transform: translate(var(--dx1), var(--dy)) scale(1); animation-timing-function: cubic-bezier(.65, 0, .35, 1); }
  100% { transform: translate(0, 0) scale(calc(1 / var(--s))); }
}

/* ---------- Kart → oyun sayfası (View Transitions) ---------- */
::view-transition-group(p-hero) { animation-duration: 420ms; animation-timing-function: var(--inout); }
::view-transition-old(p-hero), ::view-transition-new(p-hero) { animation-duration: 420ms; animation-timing-function: var(--inout); height: 100%; object-fit: cover; object-position: top; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 200ms; animation-timing-function: var(--out); }
::view-transition-group(site-nav) { animation: none; }
.nav { view-transition-name: site-nav; }

/* ---------- Sahne: bölümler, ray, ilerleme ---------- */
/* doku: çok hafif gren */
body::after { content: ""; position: fixed; inset: 0; z-index: 80; pointer-events: none; opacity: .05; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* kaydırma ilerlemesi (nav altı) */
.sprog { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: linear-gradient(90deg, var(--moon), var(--cream)); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }

/* bölüm etiketi: 01 —— METİN */
.eb { display: flex; align-items: center; gap: 14px; margin: 0 0 24px; font: 500 13px/1.2 var(--mono); letter-spacing: .02em; color: var(--mute); }
.eb[data-n]::before { content: attr(data-n); font-weight: 700; color: var(--cream); }
.eb[data-n]::after { content: ""; order: 1; width: 48px; height: 1px; background: currentColor; transform-origin: 0 50%; }
.eb > span { order: 2; }
.js .eb.rv::after { transform: scaleX(0); transition: transform 700ms var(--inout) calc(var(--d, 0ms) + 150ms); }
.js .eb.rv.in::after { transform: none; }
.gz .eb { color: var(--z-mute); } .gz .eb::before { color: var(--cmgold); }
.apps .eb { color: var(--mutec); } .apps .eb::before { color: var(--moon); }
.hz .eb { color: var(--z-mute); } .hz .eb::before { color: var(--z-acc); }
.contact .eb { color: var(--oncm); }
.eb-live::before { content: ""; width: 8px; height: 8px; border-radius: 4px; background: var(--cream); animation: pulse 2400ms var(--out) infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 oklch(0.95 0.02 90 / .6); } 70%, 100% { box-shadow: 0 0 0 10px oklch(0.95 0.02 90 / 0); } }

/* hero sahnesi: yıldızlar, ızgara, ışıma, yörüngeler */
.stars { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background-image: linear-gradient(oklch(0.40 0.07 295 / .35) 1px, transparent 1px), linear-gradient(90deg, oklch(0.40 0.07 295 / .35) 1px, transparent 1px); background-size: 64px 64px; -webkit-mask-image: radial-gradient(ellipse 60% 70% at 72% 50%, #000 10%, transparent 72%); mask-image: radial-gradient(ellipse 60% 70% at 72% 50%, #000 10%, transparent 72%); }
.hero::after { content: ""; position: absolute; z-index: -2; width: min(70vw, 900px); aspect-ratio: 1; right: max(-12vw, -160px); top: 50%; translate: 0 -50%; background: radial-gradient(closest-side, oklch(0.45 0.18 295 / .55), transparent); }
.hero.pin { position: sticky; top: var(--nav-h); z-index: 0; }
/* Oyunlar bölümü sabit hero'nun üstüne kayarken üst kenarı kesik görünmesin: yukarıdan yumuşayan buzlu bant. */
.games::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 128px; pointer-events: none; background: linear-gradient(to bottom, transparent 35%, var(--night)); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); -webkit-mask-image: linear-gradient(to bottom, transparent, #000 70%); mask-image: linear-gradient(to bottom, transparent, #000 70%); }
@media (max-width: 767px) { .games::before { height: 72px; } }
.orbit { position: absolute; left: -14%; top: -14%; width: 128%; height: 128%; overflow: visible; fill: none; stroke: var(--line); stroke-width: .3; stroke-dasharray: .5 1.5; animation: spin 60s linear infinite; }
.orbit.o2 { left: -30%; top: -30%; width: 160%; height: 160%; stroke-width: .2; stroke-dasharray: none; opacity: .6; animation-duration: 95s; animation-direction: reverse; }
.orbit .sat { fill: var(--cream); stroke: none; }
.eye { position: relative; }
@keyframes spin { to { transform: rotate(1turn); } }
@media (max-width: 767px) { .hero::after { width: 120vw; right: auto; left: -40vw; top: 20%; } .hero::before { background-size: 44px 44px; } }

/* kayan şerit */
.mq { position: relative; z-index: 1; overflow: hidden; background: var(--moon); color: var(--cream); padding: 30px 0; }
.mq-track { display: flex; width: max-content; will-change: transform; }
.mq-i { display: inline-flex; align-items: center; gap: .45em; padding-right: .45em; font-weight: 800; font-size: clamp(34px, 5.2vw, 80px); line-height: 1.05; letter-spacing: -0.035em; white-space: nowrap; }
.mq-i svg { width: .62em; height: .62em; flex: none; }
.c-moon { fill: var(--moon); }
@media (max-width: 767px) { .mq { padding: 18px 0; } }

/* sayaçlar */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 72px 0 0; border-top: 1px solid var(--night3); }
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 12px; padding: 32px 24px 0; border-left: 1px solid var(--night3); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat dd { margin: 0; font-weight: 800; font-size: clamp(48px, 6vw, 88px); line-height: .9; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.stat dd small { font-size: .36em; font-weight: 600; letter-spacing: 0; margin-left: 6px; color: var(--mute); }
.stat dt { font: 500 12px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
@media (max-width: 767px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 48px; }
  .stat { padding: 24px 0 8px 16px; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
}

/* üst üste binen yapraklar */
.sheet { position: relative; z-index: 2; border-radius: 48px 48px 0 0; margin-top: -48px; }
.contact.sheet { z-index: 3; }
@media (max-width: 767px) { .sheet { border-radius: 28px 28px 0 0; margin-top: -28px; } }
.h-xxl { font-weight: 800; font-size: clamp(64px, 11vw, 184px); line-height: .9; letter-spacing: -0.05em; margin: 0; }
.contact .lead { color: var(--oncm); }

/* bölüm rayı */
.rail { position: fixed; right: 20px; top: 50%; translate: 0 -50%; z-index: 30; display: flex; flex-direction: column; gap: 6px; color: var(--cream); mix-blend-mode: difference; }
.rail-i { position: relative; display: flex; align-items: center; justify-content: flex-end; gap: 10px; height: 28px; padding: 0; border: 0; background: none; color: inherit; font: 500 11px/1 var(--mono); letter-spacing: .04em; cursor: pointer; opacity: .45; transition: opacity 200ms var(--out); }
.rail-i::after { content: ""; width: 24px; height: 1px; background: currentColor; transform: scaleX(.5); transform-origin: 100% 50%; transition: transform 250ms var(--out); }
.rail-l { position: absolute; right: calc(100% + 10px); pointer-events: none; opacity: 0; translate: 6px 0; transition: opacity 200ms var(--out), translate 200ms var(--out); white-space: nowrap; }
.rail-i[aria-current="true"] { opacity: 1; }
.rail-i[aria-current="true"]::after { transform: none; }
.rail-i:focus-visible .rail-l { opacity: 1; translate: 0 0; }
@media (hover: hover) and (pointer: fine) { .rail-i:hover { opacity: 1; } .rail-i:hover .rail-l { opacity: 1; translate: 0 0; } }
@media (max-width: 1199px) { .rail { display: none; } }

/* alt bilgi: dev yazı */
.foot-mark { display: flex; justify-content: space-between; margin-top: 48px; overflow: hidden; font-weight: 800; font-size: calc(min(100vw - 2 * var(--pad), 1280px) * .305); line-height: .8; letter-spacing: -0.05em; padding-top: .06em; user-select: none; -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%); }
.foot-mark span { display: inline-block; color: oklch(0.50 0.18 295); }
.js .foot-mark span { transform: translateY(100%); transition: transform 1000ms var(--out); }
.js .foot-mark.in span { transform: none; }
.foot-mark span:nth-child(2) { transition-delay: 60ms; } .foot-mark span:nth-child(3) { transition-delay: 120ms; }
.foot-mark span:nth-child(4) { transition-delay: 180ms; } .foot-mark span:nth-child(5) { transition-delay: 240ms; } .foot-mark span:nth-child(6) { transition-delay: 300ms; }

/* kartlar: 3B yükselme */
.js .gc.rv { transform: translateY(56px) scale(.96); transition: opacity 600ms var(--out) var(--d, 0ms), transform 800ms var(--out) var(--d, 0ms), translate 200ms var(--out), rotate 300ms var(--out), box-shadow 200ms var(--out); }
.js .gc.rv.in { transform: none; }

/* ---------- Kaydırmayla beliren alt bölümler ---------- */
.js .rv { opacity: 0; transform: translateY(16px); transition: opacity 500ms var(--out) var(--d, 0ms), transform 500ms var(--out) var(--d, 0ms), translate 200ms var(--out), box-shadow 200ms var(--out); }
.js .rv.in { opacity: 1; transform: none; }
.rv-t .w { display: inline-block; overflow: clip; vertical-align: top; padding: .12em .04em .14em; margin: -.12em -.04em -.14em; }
.js .rv-t .wi { display: inline-block; transform: translateY(115%); transition: transform 800ms var(--out) calc(var(--i, 0) * 55ms); }
.js .rv-t.in .wi { transform: none; }
.js .mail.rv .mail-u { background-size: 0% 3px; transition: background-size 700ms var(--inout) 250ms; }
.js .mail.rv.in .mail-u { background-size: 100% 3px; }
.js .gc-soon.rv .phase-moon { transform: var(--from); transition: transform 900ms var(--inout) 200ms; }
.js .gc-soon.rv.in .phase-moon { transform: none; }
.js .fi.rv path, .js .fi.rv circle, .js .fi.rv rect { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 700ms var(--inout) calc(var(--d, 0ms) + 150ms); }
.js .fi.rv.in path, .js .fi.rv.in circle, .js .fi.rv.in rect { stroke-dashoffset: 0; }

@media (prefers-reduced-motion: reduce) {
  .js .rv, .js .rv-t .wi, .js .foot-mark span, .js .gc-soon.rv .phase-moon { transform: none !important; clip-path: none !important; }
  .js .eb.rv::after { transform: none; }
  .orbit, .eb-live::before { animation: none; }
  .js .rv { transition: opacity 200ms linear; }
  .js .fi.rv path, .js .fi.rv circle, .js .fi.rv rect { stroke-dasharray: none; stroke-dashoffset: 0; }
  .js .mail.rv .mail-u { background-size: 100% 3px; }
  .phead.enter .phead-copy > *, .phead.enter .phead-ph, .nf-run .nf-p, .foot.seen .foot-pupil { animation: none; }
  ::view-transition-group(p-hero), ::view-transition-old(p-hero), ::view-transition-new(p-hero) { animation-duration: 0s; }
}

/* ---------- Ürün şeridi (ChessMine'a ait; başka oyun kendi metni ve rengiyle kullanır) ---------- */
.mq-cm { background: var(--cmgold); color: var(--cminkdk); font-family: var(--cm-disp); }
.mq-cm .mq-i { letter-spacing: -0.01em; gap: .4em; padding-right: .4em; }
.mq-sep { height: .7em; width: auto; flex: none; }
.games .mq-cm { margin: 64px 0 72px; }
@media (max-width: 767px) { .games .mq-cm { margin: 44px 0 48px; } }

/* ---------- Uygulamalar (ana sayfa): kâğıt zemin, ince ızgara, daha sakin ---------- */
.apps { color: var(--night); padding: 128px 0 176px; background-color: var(--cream);
  background-image: linear-gradient(oklch(0.84 0.02 295 / .36) 1px, transparent 1px), linear-gradient(90deg, oklch(0.84 0.02 295 / .36) 1px, transparent 1px);
  background-size: 48px 48px; background-position: -1px -1px; }
.apps .lead { color: var(--mutec); }
.apcard { margin-top: 56px; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 24px; padding: 64px 64px 0; border-radius: 28px; overflow: hidden;
  background: oklch(0.985 0.008 90); box-shadow: 0 0 0 1px var(--creamline), 0 40px 80px -56px oklch(0.25 0.08 295 / .45); }
@media (hover: hover) and (pointer: fine) { .apcard:hover { translate: 0 -2px; } }
.apcard-copy { padding-bottom: 64px; }
.ap-id { display: flex; align-items: center; gap: 18px; }
.ap-icon { width: 64px; height: 64px; border-radius: 15px; flex: none; }
.ap-n { font-size: clamp(30px, 4.2vw, 60px); min-width: 0; font-weight: 800; letter-spacing: -0.035em; line-height: 1; margin: 0; }
.ap-k { font: 500 13px/1.2 var(--mono); letter-spacing: .02em; color: var(--mutec); margin: 8px 0 0; }
.apps .p-tag { color: var(--night); margin-top: 28px; }
.ap-p { font-size: 18px; line-height: 1.6; color: var(--mutec); margin: 14px 0 0; max-width: 32em; }
.apcard-ph { position: relative; align-self: end; justify-self: center; display: grid; }
.apcard-ph > .phone { grid-area: 1 / 1; }
.apcard-ph .phone-in { width: clamp(200px, 20vw, 268px); aspect-ratio: 268 / 470; }
.ph-back { transform: translate(-46%, 56px); opacity: .9; }
@media (max-width: 899px) {
  .apcard { grid-template-columns: minmax(0, 1fr); padding: 32px 24px 0; border-radius: 24px; }
  .apcard-copy { padding-bottom: 40px; }
  .ph-back { display: none; }
}
@media (max-width: 767px) { .apps { padding: 80px 0 112px; background-size: 32px 32px; } .ap-icon { width: 56px; height: 56px; border-radius: 13px; } }

/* ekran görüntüsü taşıyan telefon */
.ph-img .phone-in img { display: block; width: 100%; height: auto; }
.phead-ph .ph-img .phone-in { width: clamp(220px, 23vw, 300px); aspect-ratio: 300 / 548; }

/* ---------- HomeScanner dünyası: kâğıt + mavi plan ---------- */
.hz { --z-ink: var(--hsink); --z-mute: var(--hsmute); --z-line: var(--hsline); --z-panel: #fff; --z-panel0: var(--hspaper2); --z-acc: var(--hsblue); --z-acch: var(--hsblueh); --z-onacc: #fff; --z-disp: var(--sans);
  background: var(--hspaper); color: var(--hsink); color-scheme: light; }
.hz .phead { --z-ink: #fff; --z-mute: rgb(255 255 255 / .8); --z-line: rgb(255 255 255 / .34); --z-panel: rgb(255 255 255 / .1); --z-acc: #fff; --z-acch: #e6edf8; --z-onacc: var(--hsblue);
  color: #fff; background-color: var(--hsblue);
  background-image: linear-gradient(rgb(255 255 255 / .15) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .15) 1px, transparent 1px),
    linear-gradient(rgb(255 255 255 / .06) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .06) 1px, transparent 1px);
  background-size: 160px 160px, 160px 160px, 32px 32px, 32px 32px; background-position: -1px -1px; }
.hz .phead :focus-visible { outline-color: #fff; }
.hs-icon { width: 76px; height: 76px; border-radius: 18px; margin-top: 36px; box-shadow: 0 0 0 1px rgb(255 255 255 / .4), 0 16px 32px -12px rgb(0 0 0 / .4); }
.hs-t { font-size: clamp(56px, 7vw, 104px); font-weight: 800; letter-spacing: -0.045em; line-height: .95; margin: 22px 0 0; }
.hz .ph2 { font-weight: 700; letter-spacing: -0.025em; }
.hz .feats { --cols: 3; row-gap: 48px; }
.hz .fi-t { font-weight: 700; }
.hs-stage { height: min(660px, calc(100svh - var(--nav-h) - 96px)); }
.hs-stage .phone-in { height: 100%; aspect-ratio: 570 / 1240; }
.hs-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 400ms var(--inout); }
.hs-stage:is([data-step="-1"], [data-step="0"]) img:nth-child(1), .hs-stage[data-step="1"] img:nth-child(2), .hs-stage[data-step="2"] img:nth-child(3) { opacity: 1; }
.still-ph { width: fit-content; max-width: 100%; }
.still-ph .phone-in { width: min(240px, 100%); }
.shot-ph { padding: 8px; border-radius: 38px; }
.shot-img { display: block; width: 240px; height: auto; border-radius: 28px; box-shadow: 0 0 0 1px rgb(255 255 255 / .08), 0 24px 48px -24px rgb(0 0 0 / .6); }
.cm-icon { display: block; margin-bottom: 24px; }
.shot-ph .phone-in { width: 210px; border-radius: 30px; }
@media (max-width: 1099px) { .hs-stage { height: clamp(260px, calc(100svh - var(--nav-h) - 330px), 520px); } }
@media (max-width: 767px) { .hs-icon { width: 64px; height: 64px; border-radius: 15px; margin-top: 28px; } .shot-ph .phone-in { width: 190px; } .shot-img { width: 200px; border-radius: 24px; } }

/* yasal bağlantılar (ürün sayfası, gizlilik sayfası) */
.legal { display: flex; flex-wrap: wrap; gap: 0 28px; margin-top: 20px; }
.legal .p-link { margin-top: 0; font-size: 16px; }
.read .legal { margin: -4px 0 0; }
