/* Çetele tanıtım sitesi. Zemin iki doku: yeşil çuha (masa) ve Kareli tema kâğıdı (çetele).
   Vurgu: okey taşlarının dört rengi, az ve yerinde. Yazı: Young Serif (başlık), Figtree (gövde),
   Patrick Hand (çetele sayıları). Hepsi yerelde, OFL (assets/fonts/*.OFL.txt). */
@font-face { font-family: "Young Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/young-serif.woff2) format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap; src: url(../fonts/figtree-wght.woff2) format("woff2"); }
@font-face { font-family: "Patrick Hand"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/patrick-hand.woff2) format("woff2"); }

:root {
  --felt: #1F4031;
  --felt-2: #2E5A46;
  --felt-deep: #12261C;
  --paper: #F4F6F2;
  --paper-2: #FCFDFA;
  --grid: #CED6C8;
  --ink: #161A15;
  --ink-2: #5C6459;
  --ivory: #F4EEDD;
  --ivory-2: #B9CCBF;
  --edge: #D2C6A6;
  --red: #B8352A;
  --black: #2A2622;
  --blue: #1D5C94;
  --yellow: #C58B12;
  --gold: #E9C46A;
  --good: #2B6A4B;
  --bad: #9C3B2E;
  --pad: clamp(16px, 4vw, 56px);
  --radius: 14px;
  --display: "Young Serif", "Iowan Old Style", Georgia, serif;
  --body: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --hand: "Patrick Hand", "Chalkboard SE", "Comic Sans MS", cursive;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ivory); font: 17px/1.6 var(--body); font-weight: 450;
  background-color: var(--felt);
  background-image:
    radial-gradient(1100px 760px at 72% 30%, #2f5d48 0%, transparent 62%),
    radial-gradient(1400px 900px at 50% 120%, #10231a 0%, transparent 60%);
  background-attachment: fixed;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
em { font-style: normal; color: var(--gold); }
.display { font-family: var(--display); font-weight: 400; letter-spacing: -0.015em; line-height: 1.04; }
.eyebrow { font: 700 12px/1.2 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin: 0 0 18px; }
.lead { font-size: clamp(17px, 1.45vw, 20px); color: var(--ivory-2); max-width: 32em; margin: 0 0 32px; }
.hand-note { font: 400 22px/1.2 var(--hand); color: var(--ivory-2); margin: 0; transform: rotate(-2deg); }
.text-link { font-weight: 650; text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 1px; }
.text-link::after { content: " →"; }

/* 3D tuval tüm sayfanın arkasında sabit; çuha dokusu üstünde ince bir kumlanma */
#gl { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100lvh; z-index: 0; pointer-events: none; }
.felt-grain {
  position: fixed; inset: -50%; z-index: 1; pointer-events: none; opacity: .16; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
main, .footer, .nav { position: relative; z-index: 2; }

/* Taş görünümü (yükleme, yedek giriş görseli, 404): CSS'le fildişi taş */
.loader-tiles i, .rack-css i {
  display: grid; place-items: center; font: 800 28px/1 var(--body); font-style: normal;
  width: 46px; height: 64px; border-radius: 7px; position: relative;
  background: linear-gradient(170deg, #fbf7ec, #ece3cc);
  box-shadow: 0 4px 0 var(--edge), 0 10px 18px -6px #0008, inset 0 1px 0 #fff;
}
.loader-tiles i::after, .rack-css i::after { content: ""; position: absolute; bottom: 10px; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: currentColor; }
.t-red { color: var(--red); } .t-black { color: var(--black); } .t-blue { color: var(--blue); } .t-yellow { color: var(--yellow); }

/* Yükleniyor */
.loader { position: fixed; inset: 0; z-index: 50; display: grid; place-content: center; background: var(--felt); transition: opacity .6s ease, visibility .6s; }
.loader-tiles { display: flex; gap: 8px; }
.loader-tiles i { animation: tap 1.2s ease-in-out infinite; }
.loader-tiles i:nth-child(2) { animation-delay: .15s; }
.loader-tiles i:nth-child(3) { animation-delay: .3s; }
body:not(.is-loading) .loader { opacity: 0; visibility: hidden; }
@keyframes tap { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(-10px); } }

/* Üst çubuk */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: max(12px, env(safe-area-inset-top)) var(--pad) 12px;
  transition: background .3s, box-shadow .3s;
}
.nav.scrolled { background: #1a3729e6; backdrop-filter: saturate(1.3) blur(12px); -webkit-backdrop-filter: saturate(1.3) blur(12px); box-shadow: 0 1px 0 #ffffff14; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-size: 21px; }
.brand img { border-radius: 22%; box-shadow: 0 4px 10px -4px #0009; }
.nav-right { display: flex; align-items: center; gap: 10px; }
.lang { display: flex; background: #00000026; border-radius: 99px; padding: 3px; }
.lang button { border: 0; background: none; font: 650 12px/1 var(--body); padding: 8px 10px; border-radius: 99px; color: var(--ivory-2); cursor: pointer; min-width: 36px; min-height: 30px; }
.lang button[aria-pressed="true"] { background: var(--ivory); color: var(--ink); }
.pill { text-decoration: none; background: var(--ivory); color: var(--ink); font-weight: 700; font-size: 14px; padding: 8px 15px; border-radius: 8px; box-shadow: 0 3px 0 var(--edge); }
.pill:not(.is-soon):hover { transform: translateY(-1px); }
.pill.is-soon { background: transparent; color: var(--ivory-2); box-shadow: inset 0 0 0 1.5px #ffffff30; cursor: default; }

/* App Store düğmesi: fildişi bir taş gibi; yayından önce "Yakında" */
.cta-row { display: flex; align-items: center; gap: 22px 28px; flex-wrap: wrap; }
.store {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none;
  background: linear-gradient(175deg, #fbf7ec, #ebe2ca); color: var(--ink); padding: 10px 22px 10px 11px; border-radius: 12px;
  box-shadow: 0 5px 0 var(--edge), 0 18px 30px -14px #000a, inset 0 1px 0 #fff;
  transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s;
}
.store:not(.is-soon):hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--edge), 0 24px 36px -16px #000b, inset 0 1px 0 #fff; }
.store:not(.is-soon):active { transform: translateY(3px); box-shadow: 0 2px 0 var(--edge), 0 10px 20px -12px #000a; }
.store img { border-radius: 22%; }
.store span { display: grid; line-height: 1.15; }
.store small { font-size: 11.5px; color: var(--ink-2); font-weight: 600; letter-spacing: .01em; }
.store strong { font-size: 17px; font-weight: 750; }
.store.is-soon { cursor: default; }
/* Resmî rozet: değiştirilmez; çevresinde en az yüksekliğin 1/4'ü boşluk, ekranda 48 px yükseklik */
.store.is-badge { background: none; box-shadow: none; padding: 0; margin: 12px; border-radius: 0; transform: none; }
.store.is-badge:hover, .store.is-badge:active { transform: none; box-shadow: none; }
.store-badge { display: block; height: 48px; width: auto; }
.soon-tag { font: 400 24px/1 var(--hand); color: var(--gold); transform: rotate(-4deg); margin-left: -6px; }

/* Giriş */
.hero { min-height: 100svh; display: grid; align-items: center; padding: 110px var(--pad) 90px; position: relative; }
.hero-copy { max-width: 760px; }
.hero h1 { font-size: clamp(46px, 6.1vw, 92px); margin: 0 0 24px; }
.line { display: block; overflow: hidden; padding-bottom: .08em; }
.line > span { display: block; will-change: transform; }
.hero-tiles { display: none; }
.scroll-cue { position: absolute; left: var(--pad); bottom: 28px; display: flex; align-items: center; gap: 12px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ivory-2); }
.scroll-cue i { width: 22px; height: 34px; border: 2px solid #ffffff40; border-radius: 12px; position: relative; order: -1; }
.scroll-cue i::after { content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 7px; margin-left: -2px; border-radius: 2px; background: var(--gold); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(12px); opacity: 0; } }

/* Okey hikâyesi: yapışkan sahne, altı başlık, dizim sayacı, hesap kâğıdı */
.story { height: 760vh; position: relative; }
.story-stage { position: sticky; top: 0; height: 100svh; padding: 13svh var(--pad) 0; }
.captions { display: grid; max-width: 600px; }
.caption { grid-area: 1 / 1; opacity: 0; }
.caption .display { margin: 0 0 14px; font-size: clamp(32px, 3.9vw, 58px); text-shadow: 0 2px 24px #12261ccc; }
.caption .sub { margin: 0; color: var(--ivory-2); font-size: clamp(16px, 1.25vw, 18px); max-width: 30em; text-shadow: 0 1px 12px #12261c; }

.captions { position: relative; z-index: 2; }

/* B: telefon. Ekranı saydam, arkasındaki 3D ıstaka görünür; çevresi karartılır (dev gölge) */
.scan-phone {
  --k: 0; --bz: 12px;
  position: absolute; z-index: 1; box-sizing: content-box; margin: calc(var(--bz) * -1) 0 0 calc(var(--bz) * -1);
  border: var(--bz) solid #101211; border-radius: 38px; pointer-events: none;
  box-shadow: inset 0 0 0 1px #ffffff24, 0 0 0 1.5px #4a4d4b, 0 0 0 3px #1c1e1d, 0 40px 80px -24px #000e,
    0 0 0 200vmax #09140e94;
  opacity: var(--k); transform: translateY(calc((1 - var(--k)) * 60px)) scale(calc(1.06 - var(--k) * .06)); visibility: hidden;
}
.scan-phone.on { visibility: visible; }
/* Yatay telefonun kamera adası: sol kenarda */
.scan-phone::before {
  content: ""; position: absolute; left: calc(var(--bz) * -1 + 3px); top: 50%; width: 6px; height: 64px; transform: translateY(-50%);
  border-radius: 6px; background: #000;
}
.scan-screen { position: absolute; inset: 0; border-radius: 26px; overflow: hidden; }
.scan-screen::before {
  /* vizör köşeleri */
  content: ""; position: absolute; inset: 14px 56px 14px 18px; opacity: .85;
  background:
    linear-gradient(#fff, #fff) left top / 22px 2px, linear-gradient(#fff, #fff) left top / 2px 22px,
    linear-gradient(#fff, #fff) right top / 22px 2px, linear-gradient(#fff, #fff) right top / 2px 22px,
    linear-gradient(#fff, #fff) left bottom / 22px 2px, linear-gradient(#fff, #fff) left bottom / 2px 22px,
    linear-gradient(#fff, #fff) right bottom / 22px 2px, linear-gradient(#fff, #fff) right bottom / 2px 22px;
  background-repeat: no-repeat;
}
.scan-mode {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%); padding: 4px 12px; border-radius: 999px;
  background: #0009; color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .02em; white-space: nowrap;
}
.scan-shutter {
  position: absolute; right: 12px; top: 50%; width: 38px; height: 38px; transform: translateY(-50%); border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 3px #0006, 0 0 0 5px #fffc;
}
.scan-chip {
  position: absolute; left: 50%; bottom: 12px; display: flex; align-items: center; gap: 12px;
  background: #0d1a13e6; color: var(--ivory); border-radius: 999px; padding: 7px 18px; font-weight: 600; font-size: 15px; white-space: nowrap;
  box-shadow: inset 0 0 0 1px #ffffff1c; opacity: 0; transform: translate(-50%, 10px) scale(.96);
  transition: opacity .35s ease, transform .45s cubic-bezier(.2,.8,.2,1); pointer-events: none;
}
.scan-chip.on { opacity: 1; transform: translate(-50%, 0) scale(1); }
.scan-chip b { font: 400 28px/1 var(--hand); color: var(--gold); min-width: 2.2em; text-align: right; font-variant-numeric: tabular-nums; }
.scan-chip .scan-label { color: var(--ivory-2); }
.scan-chip .scan-opens { color: #7fc3a2; opacity: 0; transition: opacity .3s; }
.scan-chip.done .scan-opens { opacity: 1; }

/* Kareli kâğıt dokusu: hikâyedeki kâğıt ve sayfadaki büyük kâğıtlar ortak */
.story-sheet, .paper {
  background-color: var(--paper);
  background-image: linear-gradient(#ced6c87a 1px, transparent 1px), linear-gradient(90deg, #ced6c87a 1px, transparent 1px);
  background-size: 22px 22px; color: var(--ink);
}
.story-sheet {
  position: absolute; right: max(var(--pad), 5vw); bottom: 11svh; width: min(380px, 34vw);
  border-radius: 4px; padding: 20px 24px 22px; box-shadow: 0 30px 60px -20px #000c, 0 2px 0 #d9dfd3;
  opacity: 0; transform: translateY(40px) rotate(2.5deg); transition: opacity .45s ease, transform .6s cubic-bezier(.2,.8,.2,1);
  pointer-events: none;
}
.story-sheet.on { opacity: 1; transform: rotate(-1.5deg); }
.sheet-head { margin: 0 0 10px; font: 400 22px/1.2 var(--display); display: flex; justify-content: space-between; align-items: baseline; }
.sheet-head small { font: 400 19px var(--hand); color: var(--ink-2); }
.sheet-calc ol { list-style: none; margin: 0; padding: 0; font: 400 21px/1.35 var(--hand); }
.sheet-calc li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border-bottom: 1px solid #ced6c8; opacity: 0; transform: translateX(-10px); transition: opacity .35s, transform .35s; }
.sheet-calc li.on { opacity: 1; transform: none; }
.sheet-calc li.sub-row { padding-left: 18px; color: var(--ink-2); font-size: 19px; }
.sheet-calc li b { font-weight: 400; white-space: nowrap; }
.good { color: var(--good); } .bad { color: var(--bad); }
.sheet-chart { display: none; }
.chart-mode .sheet-calc { display: none; }
.chart-mode .sheet-chart { display: block; }
.chart { width: 100%; height: auto; overflow: visible; }
.chart .grid line { stroke: #b9c3b3; stroke-width: 1; stroke-dasharray: 3 4; }
.chart .grid line.zero { stroke: #8d9689; stroke-dasharray: none; }
.chart .grid text { font: 400 11px var(--hand); fill: var(--ink-2); text-anchor: end; }
.chart path { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.chart path.red { stroke: var(--red); } .chart path.black { stroke: var(--black); } .chart path.blue { stroke: var(--blue); } .chart path.yellow { stroke: var(--yellow); }
.legend { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 18px; font-size: 14px; font-weight: 600; }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend b { margin-left: auto; font: 400 19px var(--hand); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot.red { background: var(--red); } .dot.black { background: var(--black); } .dot.blue { background: var(--blue); } .dot.yellow { background: var(--yellow); }

/* Büyük kâğıtlar: çuhanın üstüne bırakılmış kareli sayfalar */
.paper { position: relative; margin: 0 clamp(0px, 2.2vw, 36px); border-radius: 6px; box-shadow: 0 40px 90px -30px #000d, 0 2px 0 #dfe5da; color-scheme: light; }
.paper em { color: var(--red); }
.paper .lead { color: var(--ink-2); }
.eyebrow.ink { color: var(--red); }
#paper-1 { padding-top: 10vh; }

/* Özellikler: yapışkan telefon + kayan adımlar */
.features { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4vw; padding: 0 var(--pad); max-width: 1240px; margin: 0 auto; }
.phone-col { position: sticky; top: 0; height: 100svh; display: grid; place-items: center; order: 2; perspective: 1400px; }
.phone {
  --h: min(76svh, 720px);
  height: var(--h); width: calc(var(--h) * 1320 / 2868 + 22px);
  padding: 11px; border-radius: calc(var(--h) * .085);
  background: linear-gradient(145deg, #2c3a32, #0d1310 45%, #26302a);
  box-shadow: 0 50px 90px -40px #0b1a12cc, 0 0 0 1.5px #56645a inset, 0 0 0 4px #101713 inset;
  position: relative; transform-style: preserve-3d;
}
.phone::before { content: ""; position: absolute; top: calc(11px + var(--h) * .012); left: 50%; width: 30%; height: calc(var(--h) * .034); transform: translateX(-50%); background: #000; border-radius: 99px; z-index: 3; }
.phone-screen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: calc(var(--h) * .072); background: var(--paper); }
.phone-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity .55s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.phone-screen img.on { opacity: 1; transform: none; }
.steps-col { padding: 22vh 0 30vh; }
.steps-col > .eyebrow { margin-bottom: 0; }
.step { min-height: 80svh; display: flex; flex-direction: column; justify-content: center; opacity: .28; transition: opacity .5s; }
.step.on { opacity: 1; }
.step .num { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; color: var(--red); font: 400 20px/1 var(--hand); }
.tally { stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; fill: none; }
.step h3 { font-size: clamp(34px, 3.6vw, 54px); margin: 0 0 18px; }
.step p { font-size: 18px; color: var(--ink-2); max-width: 30em; margin: 0; }

/* Kurallar */
.rules { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 80px); padding: 14vh var(--pad) 16vh; max-width: 1240px; margin: 0 auto; align-items: start; }
.rules h2 { font-size: clamp(36px, 4.6vw, 64px); margin: 0 0 20px; }
.mini { font: 700 13px/1.2 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); margin: 34px 0 12px; }
.mini .count { font: 400 22px var(--hand); color: var(--red); letter-spacing: 0; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.chips li { display: flex; align-items: center; gap: 8px; background: var(--paper-2); border: 1px solid var(--grid); border-radius: 8px; padding: 7px 12px; font-weight: 600; font-size: 15px; }
.sets { margin: 0 0 10px; font-weight: 600; line-height: 1.7; }
.note { margin: 0; color: var(--ink-2); font-size: 15.5px; max-width: 34em; }
.rules-table { margin: 0; position: sticky; top: 14vh; }
.rules-table table { width: 100%; border-collapse: collapse; background: var(--paper-2); border-radius: 10px; overflow: hidden; box-shadow: 0 1px 0 #fff inset, 0 24px 40px -30px #1f403166, 0 0 0 1px var(--grid); }
.rules-table th, .rules-table td { padding: 11px 16px; text-align: right; border-bottom: 1px solid #e3e8df; }
.rules-table thead th { font: 700 12px/1.2 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); background: #e8ece3; }
.rules-table thead th:first-child, .rules-table tbody th { text-align: left; }
.rules-table tbody th { font-weight: 600; font-size: 15.5px; }
.rules-table td { font: 400 23px/1 var(--hand); white-space: nowrap; }
.rules-table tbody tr { transition: background .2s; }
.rules-table tbody tr:hover { background: #f1f4ec; }
.rules-table tbody tr:last-child th, .rules-table tbody tr:last-child td { border-bottom: 0; }
.rules-table figcaption { margin-top: 14px; font-size: 14.5px; color: var(--ink-2); }

/* Reklamsız ve ücretsiz: iki kâğıdın arasında, çuhanın üstünde */
.free { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); padding: 22vh var(--pad); max-width: 1240px; margin: 0 auto; align-items: center; }
.free h2 { font-size: clamp(44px, 6.4vw, 92px); margin: 0 0 24px; }
.free .text-link { color: var(--ivory); }
.free-list .hand-note { font-size: 26px; margin-bottom: 18px; color: var(--gold); }
.struck { list-style: none; margin: 0; padding: 0; }
.struck li { font: 400 clamp(26px, 2.8vw, 38px)/1.2 var(--display); padding: 10px 0; border-bottom: 1px solid #ffffff1c; color: var(--ivory); }
.struck span { position: relative; display: inline-block; }
.struck span::after {
  content: ""; position: absolute; left: -6px; right: -6px; top: 52%; height: 4px; border-radius: 3px; background: var(--red);
  transform: scaleX(0) rotate(-2deg); transform-origin: left center; transition: transform .5s cubic-bezier(.6,.05,.3,1);
}
.struck li:nth-child(even) span::after { transform: scaleX(0) rotate(1.5deg); }
.struck.on span::after { transform: scaleX(1) rotate(-2deg); }
.struck.on li:nth-child(even) span::after { transform: scaleX(1) rotate(1.5deg); }
.struck.on li:nth-child(2) span::after { transition-delay: .12s; } .struck.on li:nth-child(3) span::after { transition-delay: .24s; }
.struck.on li:nth-child(4) span::after { transition-delay: .36s; } .struck.on li:nth-child(5) span::after { transition-delay: .48s; }
.struck.on li:nth-child(6) span::after { transition-delay: .6s; }
.struck.on span { color: var(--ivory-2); transition: color .4s .3s; }

/* Ek özellikler */
.extras { padding: 16vh var(--pad) 8vh; max-width: 1240px; margin: 0 auto; }
.extras h2 { font-size: clamp(34px, 4.4vw, 60px); margin: 0 0 56px; max-width: 18ch; }
.extras-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card {
  background: var(--paper-2); border-radius: var(--radius); padding: 26px; box-shadow: 0 0 0 1px var(--grid), 0 18px 30px -26px #1f403166;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--grid), 0 26px 40px -26px #1f403188; }
.card[data-key="elsayisi"] { grid-row: span 2; display: flex; flex-direction: column; }
.card .ic {
  width: 44px; height: 58px; border-radius: 7px; display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(170deg, #fbf7ec, #ece3cc); box-shadow: 0 3px 0 var(--edge), inset 0 1px 0 #fff;
}
.card .ic svg { width: 22px; height: 22px; }
.ic.red { color: var(--red); } .ic.black { color: var(--black); } .ic.blue { color: var(--blue); } .ic.yellow { color: var(--yellow); }
.card h3 { font: 400 23px/1.2 var(--display); margin: 0 0 8px; }
.card p { margin: 0; color: var(--ink-2); font-size: 16px; }
.counter { margin-top: auto; padding-top: 26px; display: flex; align-items: center; gap: 12px; }
.counter output { flex: 1; text-align: center; font: 400 34px/1 var(--hand); background: #e8ece3; border-radius: 10px; padding: 12px 0; }
.counter output b { font-weight: 400; }
.counter output .total { color: var(--red); }
.counter output span { font-size: 22px; color: var(--ink-2); }
.counter button { width: 48px; height: 48px; border-radius: 10px; border: 0; background: var(--felt); color: var(--ivory); font: 600 24px/1 var(--body); cursor: pointer; }
.counter button:hover { background: var(--felt-2); }

/* SSS */
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 4vw; padding: 8vh var(--pad) 16vh; max-width: 1240px; margin: 0 auto; }
.faq h2 { font-size: clamp(34px, 4.4vw, 60px); margin: 0; }
.faq details { border-bottom: 1px solid var(--grid); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-weight: 650; font-size: 19px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font: 400 30px/1 var(--hand); color: var(--red); transition: transform .25s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: -6px 0 20px; color: var(--ink-2); max-width: 40em; }
.faq .text-link { display: inline-block; margin-top: 26px; color: var(--felt); }

/* Kapanış: yazı solda, sahne sağda */
.final { min-height: 100svh; display: grid; align-items: center; padding: 16vh var(--pad) 10vh; }
.final-copy { max-width: 620px; }
.final h2 { font-size: clamp(48px, 7.4vw, 110px); margin: 0 0 24px; }

.footer { padding: 36px var(--pad) max(36px, env(safe-area-inset-bottom)); display: flex; justify-content: space-between; gap: 18px 40px; flex-wrap: wrap; font-size: 14px; color: var(--ivory-2); border-top: 1px solid #ffffff14; background: #12261ccc; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer nav a { text-decoration: none; font-weight: 650; color: var(--ivory); }
.footer nav a:hover, .footer p a:hover { text-decoration: underline; }
.footer p { margin: 0; line-height: 1.7; }
.footer p a { text-decoration: none; color: var(--ivory); }
.footer .tm { font-size: 12.5px; opacity: .8; }

.debug-hidden { visibility: hidden; }
.reveal { opacity: 0; transform: translateY(36px); }
.no-js-anim .reveal { opacity: 1; transform: none; }

/* 3D yoksa: girişte CSS taşlarla küçük bir ıstaka */
.no-gl #gl { display: none; }
.no-gl .hero-tiles { display: grid; position: absolute; right: var(--pad); top: 50%; transform: translateY(-40%) rotate(-4deg); }
.rack-css { display: flex; gap: 6px; padding: 14px 16px 16px; border-radius: 6px; background: linear-gradient(180deg, #9a6236, #6f4220); box-shadow: 0 30px 50px -20px #000c; }
.rack-css i { width: 58px; height: 80px; font-size: 34px; }
.no-gl-note { position: fixed; bottom: 12px; left: 12px; z-index: 30; font-size: 12px; background: var(--ivory); color: var(--ink); padding: 6px 10px; border-radius: 8px; margin: 0; }

/* Tablet */
@media (max-width: 1024px) {
  .extras-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rules { grid-template-columns: 1fr; }
  .rules-table { position: static; }
  .free { grid-template-columns: 1fr; }
}

/* Telefon: tek sütun; telefon üstte yapışkan, adım kartları alttan üstüne kayar */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .brand span { display: none; }
  .hero { align-items: end; padding: 90px var(--pad) max(56px, calc(env(safe-area-inset-bottom) + 32px)); }
  .scroll-cue { display: none; }
  .hero h1 { font-size: clamp(42px, 12vw, 62px); }
  .lead { margin-bottom: 26px; }
  .store { padding-right: 16px; }
  .store strong { font-size: 16px; }
  .no-gl .hero-tiles { top: 90px; right: 50%; transform: translateX(50%) rotate(-4deg); }
  .rack-css i { width: 42px; height: 58px; font-size: 24px; }
  .story { height: 680vh; }
  .story-stage { padding-top: 11svh; }
  .caption .display { font-size: clamp(28px, 8vw, 40px); }
  .caption .sub { font-size: 15px; }
  .story-sheet { left: var(--pad); right: var(--pad); width: auto; bottom: max(4svh, 18px); padding: 14px 16px 16px; }
  .sheet-calc ol { font-size: 18px; }
  .sheet-calc li.sub-row { font-size: 16px; }
  .sheet-head { font-size: 19px; }
  .scan-phone { --bz: 9px; border-radius: 28px; }
  .scan-screen { border-radius: 19px; }
  .scan-screen::before { inset: 10px 12px; }
  .scan-shutter { display: none; }
  .scan-mode { top: 8px; font-size: 11px; }
  .scan-chip { font-size: 12px; padding: 5px 12px; gap: 7px; bottom: 8px; }
  .scan-chip b { font-size: 21px; }
  .paper { margin: 0 8px; }
  #paper-1 { padding-top: 6vh; }
  .features { grid-template-columns: 1fr; gap: 0; padding: 0; }
  .phone-col { order: 0; top: 56px; height: calc(100svh - 56px); align-items: start; padding-top: 2svh; z-index: 1; }
  .phone { --h: min(62svh, 540px); }
  .steps-col { margin-top: -60svh; padding: 0 var(--pad) 10svh; position: relative; z-index: 2; }
  .steps-col > .eyebrow { display: none; }
  .step { min-height: 90svh; justify-content: flex-end; padding-bottom: 4svh; opacity: 1; }
  .step .inner { background: #fcfdfaf0; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-radius: var(--radius); padding: 20px 20px 22px; box-shadow: 0 0 0 1px var(--grid), 0 20px 40px -20px #1f403188; }
  .step:not(.on) .inner { opacity: .6; }
  .step .num { margin-bottom: 10px; }
  .step h3 { font-size: 29px; margin-bottom: 10px; }
  .step p { font-size: 16px; }
  .rules { padding-top: 10vh; }
  .rules-table th, .rules-table td { padding: 10px 10px; }
  .rules-table tbody th { font-size: 14px; }
  .rules-table td { font-size: 20px; }
  .free { padding: 16vh var(--pad); }
  .extras { padding-top: 12vh; }
  .extras h2 { margin-bottom: 36px; }
  .extras-grid { grid-template-columns: 1fr; gap: 12px; }
  .card { padding: 20px; display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; align-items: start; }
  .card[data-key="elsayisi"] { display: grid; }
  .card .ic { margin: 0; grid-row: span 2; }
  .card h3 { font-size: 21px; margin-bottom: 4px; }
  .counter { grid-column: 1 / -1; padding-top: 18px; }
  .faq { grid-template-columns: 1fr; }
  .final { align-items: end; min-height: 110svh; padding-bottom: 12vh; }
  .final h2 { font-size: clamp(44px, 12.5vw, 70px); }
  .footer { flex-direction: column; }
}

/* 3D yoksa hikâye düz başlık listesi; kâğıtta hesap satırları görünür */
.no-gl .story { height: auto; }
.no-gl .scan-phone { display: none; }
.no-gl .story-stage { position: static; height: auto; padding: 16vh var(--pad); }
.no-gl .captions { gap: 48px; max-width: 760px; }
.no-gl .caption { grid-area: auto; opacity: 1; }
.no-gl .story-sheet { position: relative; right: auto; bottom: auto; opacity: 1; transform: none; margin-top: 48px; width: min(380px, 100%); }
.no-gl .sheet-calc li { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .loader-tiles i, .scroll-cue i::after { animation: none; }
  .story { height: auto; }
  .scan-phone { display: none; }
  .story-stage { position: static; height: auto; padding: 18vh var(--pad); }
  .captions { gap: 48px; max-width: 760px; }
  .caption { grid-area: auto; opacity: 1; }
  .story-sheet { position: relative; right: auto; bottom: auto; opacity: 1; transform: none; margin-top: 48px; width: min(380px, 100%); }
  .sheet-calc li { opacity: 1; transform: none; }
  .reveal { opacity: 1; transform: none; }
  .struck span::after { transition: none; }
}
.debug-s .story-stage { position: fixed; inset: 0; z-index: 5; }
