/* Wordlie tanitim sitesi (wordlie.web.app, 2026-10-02).
   Palet ve tipografi uygulamayla ayni: mobile/lib/ui/tokens.dart (light),
   Baloo 2 (baslik) + Plus Jakarta Sans (metin). Karo gorunumu uygulamadaki
   "kil karo"nun (alt kenar golgesi) CSS karsiligi. */

:root {
  --ground: #f8f3ea;
  --ground-2: #f1e9da;
  --surface: #fffdf8;
  --surface-low: #f0eadd;
  --outline: #e3dbcb;
  --ink: #1f1a13;
  --ink-soft: #5b5346;
  --ink-muted: #8e8677;
  --coral: #e8615a;
  --coral-deep: #c94a44;
  --coral-soft: #fbe4e1;
  --gold: #e0a72a;
  --gold-soft: #fbefcf;
  --correct: #63a56c;
  --correct-deep: #4e8a57;
  --present: #e2b03a;
  --present-deep: #c2922a;
  --absent: #a49b8c;
  --absent-deep: #877e70;
  --tile-edge: #dcd3c1;
  --sh: 44 36 24; /* golge RGB'si; koyu temada 0 0 0 */
  --absent-deep: #877e70;
  /* Mini oyun tema degiskenleri (uygulama WColors adlari); #game ustunde
     secilen temaya gore yeniden tanimlanir (site.js applyTheme). */
  --tile-idle: #fffdf8;
  --on-tile: #1f1a13;
  --key-idle: #ede6d8;
  --on-key: #1f1a13;
  --surface-high: #ffffff;
  --on-coral: #fff7f2;
  --x-key-bg: #c1baad;
  --x-key-fg: #ffffff;
  --kd: 80%;
  --duel: #3a3f8f;
  --shadow: 0 1px 2px rgb(var(--sh) / .06), 0 10px 30px -12px rgb(var(--sh) / .22);
  --shadow-lg: 0 2px 4px rgb(var(--sh) / .06), 0 30px 60px -24px rgb(var(--sh) / .35);
  --r: 22px;
  --display: "Baloo 2", "Plus Jakarta Sans", system-ui, sans-serif;
  --ui: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
html.i18n-wait body { opacity: 0; }
body { transition: opacity .2s; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--ui);
  line-height: 1.6;
  overflow-x: hidden;
  /* clip: hidden body'yi kaydirma kabi yapip sticky menu/merdiveni bozuyordu (rev. 9) */
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
/* Kagit dokusu: cok hafif gren. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .35;
  background-image: 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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .3 0 0 0 0 .22 0 0 0 .08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
main, header, footer { position: relative; z-index: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
::selection { background: var(--gold-soft); }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Karo ---------- */
.tile {
  --c: var(--surface);
  --e: var(--tile-edge);
  --t: var(--ink);
  width: var(--s, 48px);
  height: var(--s, 48px);
  border-radius: calc(var(--s, 48px) * .2);
  background: var(--c);
  color: var(--t);
  box-shadow: 0 calc(var(--s, 48px) * .08) 0 var(--e), inset 0 0 0 1.5px rgba(0, 0, 0, .04);
  display: grid;
  place-items: center;
  font: 800 calc(var(--s, 48px) * .52) / 1 var(--display);
  text-transform: none;
  user-select: none;
  transform-style: preserve-3d;
}
.tile.g { --c: var(--correct); --e: var(--correct-deep); --t: #fff; }
.tile.y { --c: var(--present); --e: var(--present-deep); --t: #fff; }
.tile.x { --c: var(--absent); --e: var(--absent-deep); --t: #fff; }
.tile.c { --c: var(--coral); --e: var(--coral-deep); --t: #fff; }
.tile.filled { animation: pop .12s ease-out; box-shadow: 0 calc(var(--s, 48px) * .08) 0 var(--e), inset 0 0 0 2px var(--ink-muted); }
.tile.flip { animation: flip .5s ease-in-out both; }
.tile.bounce { animation: bounce .5s ease both; }
@keyframes pop { 50% { transform: scale(1.1); } }
@keyframes flip { 0% { transform: rotateX(0); } 50% { transform: rotateX(90deg); } 100% { transform: rotateX(0); } }
@keyframes bounce { 30% { transform: translateY(-30%); } 55% { transform: translateY(4%); } 75% { transform: translateY(-8%); } }
.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  font: 800 16px/1 var(--ui);
  padding: 14px 22px;
  border-radius: 18px;
  transition: transform .15s ease, box-shadow .15s ease, background .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(2px); }
.btn-store { background: #1f1a13; color: #fff; box-shadow: 0 5px 0 #000; padding: 11px 22px 11px 18px; }
.btn-store:hover { transform: translateY(-2px); box-shadow: 0 7px 0 #000; }
.btn-store small { display: block; font: 600 11px/1.2 var(--ui); opacity: .75; letter-spacing: .02em; }
.btn-store strong { display: block; font: 800 17px/1.15 var(--ui); }
.btn-store svg { width: 26px; height: 26px; flex: none; }
.btn-store.soon { background: var(--surface); color: var(--ink-soft); box-shadow: 0 5px 0 var(--outline), inset 0 0 0 1.5px var(--outline); cursor: default; }
.btn-store.soon:hover { transform: none; box-shadow: 0 5px 0 var(--outline), inset 0 0 0 1.5px var(--outline); }
.btn-coral { background: var(--coral); color: #fff; box-shadow: 0 5px 0 var(--coral-deep); }
.btn-coral:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--coral-deep); }
.btn-ghost { background: var(--surface); color: var(--ink); box-shadow: 0 4px 0 var(--outline), inset 0 0 0 1.5px var(--outline); }
.btn-ghost:hover { transform: translateY(-2px); }
.stores { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Ust cubuk ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background .25s, box-shadow .25s, backdrop-filter .25s;
}
.nav.scrolled { background: color-mix(in srgb, var(--ground) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--outline); }
.nav .container { display: flex; align-items: center; gap: 20px; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo .tile { --s: 34px; }
.logo span.word { font: 800 24px/1 var(--display); letter-spacing: .02em; padding-top: 3px; }
.nav-links { display: flex; gap: 6px; margin-left: auto; }
.nav-links a { text-decoration: none; font-weight: 700; font-size: 15px; color: var(--ink-soft); padding: 8px 12px; border-radius: 12px; transition: background .2s, color .2s; }
.nav-links a:hover { background: var(--surface-low); color: var(--ink); }
.lang {
  border: 0;
  cursor: pointer;
  font: 800 13px/1 var(--ui);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 3px 0 var(--outline), inset 0 0 0 1.5px var(--outline);
  border-radius: 12px;
  padding: 10px 12px;
  letter-spacing: .06em;
}
.nav .btn-coral { padding: 11px 18px; font-size: 15px; border-radius: 14px; }
@media (max-width: 900px) { .nav-links { display: none; } .lang { margin-left: auto; } }
@media (max-width: 420px) { .nav .btn-coral { display: none; } }

/* ---------- Kahraman ---------- */
.hero { padding: clamp(28px, 6vw, 70px) 0 clamp(40px, 7vw, 90px); position: relative; }
.hero-bg { position: absolute; inset: -72px 0 -160px; overflow: hidden; z-index: -1; pointer-events: none; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.hero .container { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; }
.blob.b1 { width: 520px; height: 520px; background: var(--coral-soft); top: -120px; right: -120px; }
.blob.b2 { width: 420px; height: 420px; background: var(--gold-soft); bottom: -140px; left: -160px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--coral-deep);
  background: var(--coral-soft);
  padding: 8px 14px;
  border-radius: 999px;
}
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 4px color-mix(in srgb, var(--coral) 20%, transparent); animation: ping 2s infinite; }
@keyframes ping { 50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--coral) 0%, transparent); } }
h1 {
  font: 800 clamp(44px, 7.2vw, 92px)/.95 var(--display);
  letter-spacing: -.03em;
  margin: 24px 0 22px;
  text-wrap: balance;
}
h1 .hl { color: var(--coral); white-space: nowrap; }
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-soft); max-width: 34em; margin: 0 0 30px; }

/* Telefon */
.stage { position: relative; display: grid; place-items: center; min-height: 600px; }
.phone {
  position: relative;
  width: min(330px, 78vw);
  aspect-ratio: 9 / 19.2;
  background: #1d1915;
  border-radius: 52px;
  padding: 12px;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px #3a332b, 0 0 0 1px #00000014;
  transform: rotate(-3deg);
  transition: transform .3s;
}
.phone::before { content: ""; position: absolute; top: 22px; left: 50%; width: 92px; height: 26px; transform: translateX(-50%); background: #1d1915; border-radius: 20px; z-index: 3; }
.screen {
  height: 100%;
  border-radius: 41px;
  background: var(--ground);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 56px 16px 16px;
  gap: 12px;
}
.screen-top { display: flex; align-items: center; justify-content: space-between; }
.screen-top .pill { font: 800 12px/1 var(--ui); background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--outline); padding: 8px 10px; border-radius: 10px; display: flex; gap: 6px; align-items: center; }
.screen-top .pill img { width: 18px; height: 18px; }
.screen-title { font: 800 16px/1 var(--display); text-align: center; color: var(--ink-soft); }
.board { display: grid; gap: 6px; margin: 4px auto 0; }
.board .row { display: grid; grid-auto-flow: column; gap: 6px; }

.float img { width: 100%; }
@keyframes float { 0%, 100% { translate: 0 0; rotate: var(--r0, 0deg); } 50% { translate: 0 -14px; rotate: var(--r1, 4deg); } }
.toast {
  position: absolute;
  left: 50%;
  top: 92px;
  transform: translate(-50%, -10px);
  background: var(--ink);
  color: var(--ground);
  font: 800 13px/1 var(--ui);
  padding: 10px 14px;
  border-radius: 12px;
  opacity: 0;
  transition: opacity .3s, transform .3s;
  z-index: 4;
  white-space: nowrap;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .lede { margin-left: auto; margin-right: auto; }
  .stores { justify-content: center; }
  .stage { min-height: 560px; }
}


/* ---------- Bolumler ---------- */
section.block { padding: clamp(64px, 9vw, 120px) 0; }
.kicker { font: 800 13px/1 var(--ui); letter-spacing: .12em; text-transform: uppercase; color: var(--coral-deep); }
h2 { font: 800 clamp(32px, 4.6vw, 54px)/1.04 var(--display); letter-spacing: -.015em; margin: 14px 0 16px; }
.sub { color: var(--ink-soft); font-size: 18px; max-width: 40em; margin: 0; }
.head { margin-bottom: clamp(32px, 5vw, 56px); }
.head.center { text-align: center; }
.head.center .sub { margin: 0 auto; }

/* Merdiven */
.ladder-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; }
.tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  background: var(--surface);
  box-shadow: 0 3px 0 var(--outline), inset 0 0 0 1.5px var(--outline);
  border-radius: 14px;
  padding: 8px 14px 8px 8px;
  font: 800 14px/1 var(--ui);
  color: var(--ink);
  transition: transform .15s, background .2s;
}
.tab img { width: 30px; height: 30px; }
.tab[aria-selected="true"] { background: var(--ink); color: var(--ground); box-shadow: 0 3px 0 #000; }
.ladder { display: grid; gap: 10px; }
.step { display: flex; align-items: center; gap: clamp(8px, 2vw, 14px); transition: opacity .5s, transform .5s; }
.step .n { width: 26px; flex: none; font: 800 15px/1 var(--display); color: var(--ink-muted); text-align: right; }
.step .tiles { display: flex; gap: 5px; }
.step .tile { --s: clamp(20px, 6.2vw, 40px); }
.step .tiles { gap: clamp(3px, 1vw, 5px); }
.step.top .n { color: var(--gold); }
@media (max-width: 960px) { .ladder-wrap { grid-template-columns: 1fr; } }
.ladder-wrap > *, .play-wrap > *, .duel-sec .container > *, .hero .container > * { min-width: 0; }

/* Oyna */
.play-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.legend { display: grid; gap: 16px; margin-top: 28px; }
.legend .item { display: flex; gap: 16px; align-items: center; }
.legend .tile { --s: 44px; flex: none; }
.legend p { margin: 0; color: var(--ink-soft); }
.legend b { color: var(--ink); }
.game {
  background: var(--surface);
  border-radius: 30px;
  padding: clamp(18px, 3vw, 30px);
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px var(--outline);
  position: relative;
}
.game-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; gap: 10px; }
.game-head .t { font: 800 20px/1 var(--display); }
.game-head .meta { font: 700 13px/1 var(--ui); color: var(--ink-muted); }
.result { display: none; text-align: center; margin-top: 18px; }
.result.on { display: block; animation: rise .4s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.result h4 { font: 800 26px/1.1 var(--display); margin: 0 0 6px; }
.result p { margin: 0 0 16px; color: var(--ink-soft); }
.result .row-btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
@media (max-width: 960px) { .play-wrap { grid-template-columns: 1fr; } }

/* Duello */
.duel-sec { background: #1f1a13; color: #fff; border-radius: clamp(28px, 4vw, 44px); margin: 0 var(--gutter); overflow: hidden; position: relative; }
.duel-sec .container { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.duel-sec .kicker { color: #ffb4ad; }
.duel-sec .sub { color: #cfc7b8; }
.duel-sec ul { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.duel-sec li { display: flex; gap: 12px; align-items: flex-start; color: #e9e2d4; }
.duel-sec li i { flex: none; width: 26px; height: 26px; border-radius: 8px; background: var(--coral); display: grid; place-items: center; font-style: normal; font: 800 14px/1 var(--display); color: #fff; margin-top: 1px; }
.arena { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; }
.side { background: #2a2420; border-radius: 22px; padding: 18px; box-shadow: inset 0 0 0 1.5px #3b342c; }
.side .who { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-weight: 800; }
.side .av { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 18px; background: #3b342c; }
.side .prog { margin-left: auto; font: 800 13px/1 var(--ui); color: #b9b0a0; }
.side .board .tile { --s: clamp(22px, 2.8vw, 32px); --c: #3b342c; --e: #2a2420; --t: #fff; }
.side .board .tile.g { --c: var(--correct); --e: var(--correct-deep); }
.side .board .tile.y { --c: var(--present); --e: var(--present-deep); }
.side .board .tile.x { --c: #6b6255; --e: #4a443c; }
.side.win { box-shadow: inset 0 0 0 2px var(--correct), 0 0 40px -6px rgba(99, 165, 108, .6); }
.vs { width: 64px; height: 64px; border-radius: 20px; background: var(--coral); display: grid; place-items: center; font: 800 26px/1 var(--display); box-shadow: 0 5px 0 var(--coral-deep); transform: rotate(-6deg); }
@media (max-width: 960px) {
  .duel-sec .container { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .arena { grid-template-columns: 1fr; }
  .vs { margin: -6px auto; }
}

/* SSS */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border-radius: 18px; box-shadow: inset 0 0 0 1.5px var(--outline); padding: 0 22px; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow), inset 0 0 0 1.5px var(--outline); }
.faq summary { list-style: none; cursor: pointer; font: 800 18px/1.3 var(--ui); padding: 20px 36px 20px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font: 800 26px/1 var(--display); color: var(--coral); transition: transform .25s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--ink-soft); }

/* Son cagri */
.cta {
  position: relative;
  background: linear-gradient(140deg, var(--gold-soft), var(--coral-soft));
  border-radius: clamp(28px, 4vw, 44px);
  padding: clamp(40px, 6vw, 80px);
  overflow: hidden;
  box-shadow: inset 0 0 0 1.5px var(--outline);
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 30px;
  align-items: center;
}
.cta h2 { margin-top: 0; }
.cta .sub { margin-bottom: 28px; }
.cta .chest { width: min(280px, 60vw); justify-self: center; filter: drop-shadow(0 24px 24px rgb(var(--sh) / .25)); animation: float 6s ease-in-out infinite; }
@media (max-width: 860px) { .cta { grid-template-columns: 1fr; text-align: center; } .cta .stores { justify-content: center; } .cta .sub { margin-left: auto; margin-right: auto; } }

/* Alt bilgi */
footer { padding: 56px 0 40px; color: var(--ink-soft); font-size: 14px; }
footer .container { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 28px; }
footer h5 { font: 800 13px/1 var(--ui); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); margin: 0 0 14px; }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--coral-deep); }
footer .fine { grid-column: 1 / -1; border-top: 1.5px solid var(--outline); padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; color: var(--ink-muted); font-size: 13px; }
@media (max-width: 760px) { footer .container { grid-template-columns: 1fr; } }

/* Kaydirinca gorunme */
/* Yalnizca JS calisiyorsa gizlenir (html.js, index.html <head>); JS yoksa her sey gorunur. */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal, .step { opacity: 1; transform: none; }
}

/* ---------- Premium katman (2026-10-02 rev. 2) ---------- */
.try-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-weight: 700; color: var(--ink-soft); text-decoration: none; border-bottom: 1.5px solid var(--outline); padding-bottom: 2px; transition: color .2s, border-color .2s; }
.try-link:hover { color: var(--coral-deep); border-color: var(--coral); }
.try-link b { display: inline-block; animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(3px); } }

/* Telefon: gercekci govde, yan tuslar, cam yansimasi, arka isik */
.glow { position: absolute; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--coral) 28%, transparent), color-mix(in srgb, var(--gold) 14%, transparent) 45%, transparent 70%); filter: blur(10px); z-index: 0; }
.phone { background: linear-gradient(145deg, #2c2620, #15120f); box-shadow: 0 50px 90px -30px rgb(var(--sh) / .55), 0 18px 30px -12px rgb(var(--sh) / .35), inset 0 0 0 1.5px #4a4138, inset 0 0 0 6px #1a1612; z-index: 1; }
.phone::after { content: ""; position: absolute; inset: 12px; border-radius: 41px; pointer-events: none; background: linear-gradient(115deg, rgba(255, 255, 255, .22) 0%, rgba(255, 255, 255, 0) 32%); z-index: 3; }
.btn-side { position: absolute; width: 4px; border-radius: 2px; background: #3a332b; }
.btn-side.s1 { left: -3px; top: 22%; height: 46px; }
.btn-side.s2 { left: -3px; top: 31%; height: 46px; }
.btn-side.s3 { right: -3px; top: 26%; height: 72px; }

/* Mini oyun bolumu: kahramanin hemen altinda, panel gorunumu */
.play-sec { padding-top: clamp(24px, 4vw, 48px); }
.play-sec .container { background: linear-gradient(160deg, color-mix(in srgb, var(--gold-soft) 40%, var(--surface)), var(--surface)); border-radius: clamp(28px, 4vw, 44px); padding: clamp(28px, 5vw, 64px); box-shadow: var(--shadow), inset 0 0 0 1.5px var(--outline); max-width: calc(1180px - 2 * var(--gutter)); }
@media (max-width: 1240px) { .play-sec .container { margin: 0 var(--gutter); width: auto; } }
.play-sec .game { box-shadow: 0 30px 60px -28px rgb(var(--sh) / .4), inset 0 0 0 1.5px var(--outline); }

/* Kartlar: daha yumusak cerceve, daha sakin golge */
.card { border-radius: 26px; box-shadow: 0 1px 2px rgb(var(--sh) / .05), 0 16px 40px -24px rgb(var(--sh) / .25), inset 0 0 0 1px var(--outline); }
.card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgb(var(--sh) / .05), 0 30px 60px -28px rgb(var(--sh) / .35), inset 0 0 0 1px var(--outline); }
h2 { text-wrap: balance; }
.sub { text-wrap: pretty; }

/* Mobil: mini bulmaca ilk ekrana yakin olsun diye telefon demosu gizli
   (oynanabilir tahta zaten en iyi gorsel); baglanti tek satir. */
@media (max-width: 760px) {
  .stage { display: none; }
  .hero { padding-bottom: 8px; }
  .try-link { font-size: 14px; border-bottom: 0; }
  .play-sec { padding-top: 16px; }
}


@media (max-width: 600px) {
  .play-sec .container { background: none; box-shadow: none; padding: 0 var(--gutter); margin: 0; border-radius: 0; }
  .game { padding: 16px 12px; border-radius: 24px; }
}

/* ===================== Mini oyun = uygulama (rev. 3) =====================
   Olculer: tile.dart (kenar 2px, radius %20, font %52, kabartma %6),
   keyboard.dart (olu bosluksuz dokunma kutusu, 50-58 px tus, 3 px derinlik,
   GONDER genisligi %58 [180-300]), hint_dock.dart (42 px kapsul, 3 px
   derinlik, 40 px cizim, rozet sagda). */
.game { padding: clamp(16px, 2.6vw, 26px); }
.mboard { --t: 58px; display: grid; gap: 6px; justify-content: center; margin: 4px auto 0; width: 100%; }
.mrow { display: grid; grid-template-columns: repeat(5, var(--t)); gap: 6px; justify-content: center; }
.mrow.shake { animation: shake .4s; }
.mt {
  width: var(--t); height: var(--t);
  border-radius: calc(var(--t) * .2);
  background: var(--tile-idle);
  border: 2px solid var(--tile-edge);
  display: grid; place-items: center;
  color: var(--on-tile);
  font: 800 calc(var(--t) * .52) / 1 var(--display);
  position: relative;
  transition: border-color .09s, box-shadow .09s;
  transform-style: preserve-3d;
}
.mt b { font: inherit; line-height: 1; padding-top: .08em; }
.mt.cursor { border: 2.5px solid color-mix(in srgb, var(--coral) 70%, transparent); }
.mt.typed { border-color: color-mix(in srgb, var(--on-tile) 55%, transparent); box-shadow: 0 2px 4px rgb(var(--sh) / .1); }
.mt.locked { background: color-mix(in srgb, var(--correct) 16%, transparent); color: var(--correct); border-color: color-mix(in srgb, var(--correct) 55%, transparent); box-shadow: 0 2px 4px rgb(var(--sh) / .1); }
.mt.rev { border: 0; color: #fff; box-shadow: inset 0 calc(max(2px, var(--t) * .06) * -1) 0 var(--edge), 0 2px 4px rgb(var(--sh) / .1); }
.mt.rev.g { background: var(--correct); --edge: color-mix(in srgb, var(--correct) 82%, #000); }
.mt.rev.y { background: var(--present); --edge: color-mix(in srgb, var(--present) 82%, #000); }
.mt.rev.x { background: var(--absent); --edge: color-mix(in srgb, var(--absent) 82%, #000); }
.mt.pop { animation: mpop .16s ease-out; }
@keyframes mpop { 0% { transform: scale(.88); } 45% { transform: scale(1.04); } 100% { transform: scale(1); } }
.mt.reveal { animation: mreveal .42s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes mreveal { 0% { transform: scale(.4); } 100% { transform: scale(1); } }
.mt.flip { animation: mflip .42s ease-in-out both; }
@keyframes mflip { 0% { transform: perspective(600px) rotateX(0); } 50% { transform: perspective(600px) rotateX(90deg); } 100% { transform: perspective(600px) rotateX(0); } }
.mt.jump { animation: mjump .52s ease both; }
@keyframes mjump { 0% { transform: translateY(0) scale(1.1, .9); } 15% { transform: translateY(0) scale(1); } 50% { transform: translateY(calc(var(--t) * -.34)); } 85% { transform: translateY(0) scale(1); } 100% { transform: scale(1.1, .9) translateY(0); } }

/* Tarif karti (WrittenHintCard) */
.clue { display: flex; gap: 8px; align-items: center; background: var(--surface-high); border: 1px solid var(--outline); border-radius: 18px; padding: 7px 12px 8px 8px; margin: 0 0 12px; box-shadow: 0 1px 2px rgb(var(--sh) / .05), 0 8px 18px -10px rgb(var(--sh) / .25); }
.clue[hidden] { display: none; }
.clue.in { animation: cluein .45s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes cluein { from { opacity: 0; transform: translateY(-12px) scale(.94); } }
.clue img { width: 38px; height: 38px; flex: none; }
.clue .kick { display: block; font: 800 11px/1.2 var(--ui); letter-spacing: .08em; color: var(--gold); }
.clue .txt { margin: 2px 0 0; font: 700 14px/1.3 var(--ui); color: var(--ink); }

/* Ipucu kapsulleri (HintDock) */
.dock { display: flex; gap: 12px; margin: 16px 0 12px; }
.pu { flex: 1; position: relative; height: 45px; border: 0; padding: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; font: inherit; }
.pu::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 42px; border-radius: 16px; background: color-mix(in srgb, var(--outline) 92%, #000); }
.pu .face { position: absolute; left: 0; right: 0; top: 0; height: 42px; border-radius: 16px; background: var(--surface-high); border: 1.5px solid var(--outline); display: flex; align-items: center; gap: 4px; padding: 0 6px 0 46px; transition: top .07s; }
.pu:active .face { top: 3px; }
.pu img { position: absolute; left: 2px; top: -5px; width: 40px; height: 40px; z-index: 1; transition: transform .2s; }
.pu:hover img { transform: rotate(-8deg); }
.pu .lbl { flex: 1; text-align: left; font: 800 13px/1 var(--ui); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pu .badge { margin: 0; flex: none; padding: 4px 8px; font: 800 13px/1 var(--ui); border-radius: 999px; background: color-mix(in srgb, var(--correct) 18%, var(--surface-high)); color: var(--correct); }
.pu .badge.done { background: var(--surface-low); color: var(--ink-muted); }
.pu:disabled { cursor: default; opacity: .5; }
.pu:disabled .face { top: 0; }

/* Klavye (GameKeyboard) */
.mkb { --boxW: 32px; --keyW: 29px; --keyH: 52px; --delW: 64px; --enterW: 220px; --keyFont: 18px; --rowGap: 8px; display: grid; gap: var(--rowGap); }
.mkrow { display: flex; justify-content: center; }
.mk { width: var(--boxW); height: var(--keyH); padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; -webkit-tap-highlight-color: transparent; touch-action: manipulation; user-select: none; }
.mk .cap {
  --bg: var(--key-idle); --fg: var(--on-key); --edge: color-mix(in srgb, var(--bg) var(--kd), #000);
  width: var(--keyW); height: calc(var(--keyH) - 3px);
  border-radius: 12px;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--bg), #fff 14%) 0%, var(--bg) 42%);
  box-shadow: 0 3px 0 var(--edge);
  color: var(--fg);
  display: grid; place-items: center;
  font: 800 var(--keyFont) / 1 var(--display);
  transform: translateY(-1.5px);
  transition: transform .06s, box-shadow .06s, background .25s;
}
.mk.down .cap, .mk:active .cap { transform: translateY(1.5px); box-shadow: 0 0 0 var(--edge); }
.mk.g .cap { --bg: var(--correct); --fg: #fff; }
.mk.y .cap { --bg: var(--present); --fg: #fff; }
.mk.x .cap { --bg: var(--x-key-bg); --fg: var(--x-key-fg); }
.mk.act { width: var(--delW); }
.mk.act .cap { width: calc(var(--delW) - 3px); --bg: var(--surface-high); --fg: var(--ink); --edge: var(--outline); border: 1px solid var(--outline); }
.mk.act svg { width: 22px; height: 22px; }
.mk.ent { width: var(--enterW); height: calc(var(--keyH) - 4px); }
.mk.ent .cap { width: var(--enterW); height: calc(var(--keyH) - 8px); --fg: var(--ink-soft); box-shadow: 0 4px 0 var(--edge); transform: translateY(-2px); display: flex; gap: 8px; justify-content: center; font: 800 15px/1 var(--ui); letter-spacing: 1.2px; }
.mk.ent svg { width: 18px; height: 18px; }
.mk.ent.cta .cap { --bg: var(--coral); --fg: var(--on-coral); }
.mk.ent.down .cap { transform: translateY(2px); box-shadow: 0 0 0 var(--edge); }
.mk:focus-visible { outline: none; }
.mk:focus-visible .cap { outline: 2.5px solid var(--coral); outline-offset: 2px; }

.mtoast { position: absolute; left: 50%; top: 64px; transform: translate(-50%, -6px); background: var(--ink); color: var(--ground); font: 700 13px/1.35 var(--ui); padding: 10px 14px; border-radius: 12px; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 5; max-width: 88%; text-align: center; }
.mtoast.on { opacity: 1; transform: translate(-50%, 0); }
#miniPlay[hidden] { display: none; }

/* Karsilastirma */
.cmp { max-width: 980px; margin: 0 auto; background: var(--surface); border-radius: 28px; box-shadow: 0 1px 2px rgb(var(--sh) / .05), 0 24px 60px -30px rgb(var(--sh) / .35), inset 0 0 0 1px var(--outline); overflow: hidden; }
.cmp-row { display: grid; grid-template-columns: 1.5fr 1fr 1fr; align-items: center; border-top: 1px solid var(--outline); }
.cmp-row > span { padding: 18px 22px; }
.cmp-head { border-top: 0; background: var(--surface-low); }
.cmp-head > span { padding: 16px 22px; font: 800 14px/1.2 var(--ui); color: var(--ink-soft); }
.cmp-head .us { display: flex; align-items: center; gap: 10px; color: var(--ink); font: 800 20px/1 var(--display); }
.cmp-head .us .tile { --s: 28px; }
.cmp-row [role="rowheader"] b { display: block; font: 800 16px/1.3 var(--ui); }
.cmp-row [role="rowheader"] small { display: block; color: var(--ink-muted); font-size: 13.5px; margin-top: 3px; line-height: 1.45; }
.cmp-row .us { background: linear-gradient(180deg, color-mix(in srgb, var(--coral) 7%, transparent), color-mix(in srgb, var(--coral) 4%, transparent)); font-weight: 800; color: var(--ink); align-self: stretch; display: flex; align-items: center; gap: 10px; }
.cmp-row .them { color: var(--ink-muted); font-weight: 600; display: flex; align-items: center; gap: 10px; }
.cmp i { flex: none; width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; font-style: normal; font: 800 14px/1 var(--ui); color: #fff; }
.cmp i.ok { background: var(--correct); box-shadow: inset 0 -2px 0 #4e8a57; }
.cmp i.ok::after { content: "✓"; }
.cmp i.no { background: #c1baad; box-shadow: inset 0 -2px 0 #9a958a; }
.cmp i.no::after { content: "✕"; font-size: 12px; }
.cmp i.mid { background: var(--present); box-shadow: inset 0 -2px 0 #c2922a; }
.cmp i.mid::after { content: "~"; }
@media (max-width: 720px) {
  .cmp-row { grid-template-columns: 1fr 1fr; }
  .cmp-head > span:first-child { display: none; }
  .cmp-head .us { font-size: 17px; }
  .cmp-head > span { padding: 14px 16px; }
  .cmp-row [role="rowheader"] { grid-column: 1 / -1; padding-bottom: 6px; }
  .cmp-row > span { padding: 14px 16px; }
  .cmp-row .us, .cmp-row .them { padding-top: 10px; padding-bottom: 14px; font-size: 14px; align-items: flex-start; }
  .cmp-row .us { border-radius: 0; }
}

@media (max-width: 960px) { .play-sec .legend { display: none; } }

/* Telefon demosu: mini oyunla ayni bilesenler, kisa ekran olcusu */
.phone .screen { padding: 52px 14px 14px; gap: 10px; }
.phone .mboard { margin-top: 2px; }
.phone .mkb { margin-top: auto; pointer-events: none; }
.phone .mt.cursor { border-width: 2px; }

/* Sosyal kanit (Play puani + indirme), kahramanda ve son cagrida */
.proof { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 26px; padding: 12px 18px; border-radius: 18px; background: color-mix(in srgb, var(--surface) 70%, transparent); box-shadow: inset 0 0 0 1px var(--outline), 0 10px 24px -18px rgb(var(--sh) / .35); }
.proof > span { display: inline-flex; align-items: baseline; gap: 6px; font-weight: 600; font-size: 14px; color: var(--ink-soft); white-space: nowrap; }
.proof b { font: 800 20px/1 var(--display); color: var(--ink); }
.proof .rating { align-items: center; gap: 8px; }
.proof .sep { width: 1px; height: 22px; background: var(--outline); }
.stars { display: inline-flex; gap: 2px; }
.stars i { width: 16px; height: 16px; display: block; background: linear-gradient(90deg, var(--gold) calc(var(--f) * 100%), #e3dbcb calc(var(--f) * 100%)); -webkit-mask: var(--star) center / contain no-repeat; mask: var(--star) center / contain no-repeat; --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.9 6 6.6.9-4.8 4.6 1.2 6.5L12 17.4l-5.9 3.1 1.2-6.5L2.5 9.4l6.6-.9z'/%3E%3C/svg%3E"); }
.cta-proof { margin: 18px 0 0; color: var(--ink-soft); font-weight: 600; }
.cta-proof .star { color: var(--gold); }
@media (max-width: 960px) { .proof { justify-content: center; } }
@media (max-width: 420px) { .proof { padding: 10px 14px; gap: 8px 12px; } .proof .sep { display: none; } }
/* Duello artik modlardan sonra degil, farklardan hemen sonra */
#duello { margin-bottom: 0; }

.hero-top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.proof.top { margin-top: 0; padding: 7px 14px; border-radius: 999px; gap: 8px 12px; }
.proof.top b { font-size: 16px; }
.proof.top > span { font-size: 13px; }
.proof.top .stars i { width: 14px; height: 14px; }
.proof.top .sep { height: 16px; }
h1 { font-size: clamp(42px, 6.4vw, 84px); margin: 20px 0 18px; }
@media (max-width: 960px) { .hero-top { justify-content: center; } }
@media (max-width: 420px) {
  .proof.top { flex-wrap: nowrap; padding: 7px 12px; gap: 8px; }
  .proof.top > span { font-size: 12px; gap: 4px; }
  .proof.top b { font-size: 14px; }
  .proof.top .stars i { width: 11px; height: 11px; }
  .proof.top .sep { display: block; height: 14px; }
}
@media (max-width: 350px) { .proof.top .stars { display: none; } }

/* Dile ozel icerik */
html[lang="en"] [data-only="tr"], html[lang="tr"] [data-only="en"] { display: none !important; }

/* ===== Oyun modlari: uygulamanin gercek sahneleri (rev. 5) ===== */
.modes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.mode h3 { font: 800 22px/1.15 var(--display); margin: 16px 4px 4px; }
.mode p { margin: 0 4px; color: var(--ink-soft); font-size: 15px; }
.sc {
  container-type: inline-size;
  position: relative; margin: 0;
  aspect-ratio: 9 / 16;
  border-radius: 28px; overflow: hidden;
  background: var(--ground) center top / 100% auto no-repeat;
  box-shadow: 0 1px 2px rgb(var(--sh) / .05), 0 26px 50px -26px rgb(var(--sh) / .45), inset 0 0 0 1px var(--outline);
  transition: transform .4s cubic-bezier(.2, .8, .2, 1);
}
.mode:hover .sc { transform: translateY(-6px) rotate(-.6deg); }
.sc-chip { position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; font: 800 4.6cqw/1 var(--ui); background: var(--surface-high); color: var(--ink); padding: 3cqw 5cqw; border-radius: 999px; box-shadow: 0 6px 14px -8px rgb(var(--sh) / .4), inset 0 0 0 1px var(--outline); }
.sc-btn { position: absolute; left: 10cqw; right: 10cqw; bottom: 9cqw; text-align: center; font: 800 4.6cqw/1 var(--ui); letter-spacing: .06em; color: #fff7f2; background: var(--coral); padding: 5cqw 0; border-radius: 4.5cqw; box-shadow: 0 1.2cqw 0 #ba4e48; }

/* gunun kelimesi */
.sc-daily { background: radial-gradient(120% 70% at 50% 18%, var(--gold-soft), var(--ground) 60%); }
.sc-daily .sc-chip:first-child { top: 8cqw; }
.sc-daily .sc-art { position: absolute; left: 50%; top: 20cqw; width: 46cqw; transform: translateX(-50%); filter: drop-shadow(0 3cqw 3cqw rgb(var(--sh) / .2)); }
.sc-grid { position: absolute; left: 50%; top: 74cqw; transform: translateX(-50%); display: grid; gap: 1.6cqw; }
.sg-row { display: flex; gap: 1.6cqw; }
.sc-grid .tile { --s: 10.5cqw; }
.sc-daily .sc-chip.fire { bottom: 9cqw; background: var(--coral-soft); color: var(--coral-deep); box-shadow: none; }
.sc-daily .sc-chip.fire b { font-family: var(--display); font-size: 5.4cqw; }

/* harf carki: scene_wheel cemberi kart genisliginin %75,7'sinde, cap %75 */
.sc-wheel { background-image: url('/assets/scene_wheel.webp'); }
.wheel { position: absolute; left: 13cqw; top: 38.7cqw; width: 74cqw; height: 74cqw; }
.w-plate { position: absolute; inset: 0; width: 100%; height: 100%; }
.w-disc {
  position: absolute; inset: 7.5%; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, #fff8ea 0 30deg, #fbefcf 30deg 60deg);
  box-shadow: inset 0 0 0 .6cqw color-mix(in srgb, var(--gold) 35%, transparent);
  animation: wspin 9s cubic-bezier(.5, 0, .2, 1) infinite;
}
.w-l { position: absolute; left: 50%; top: 50%; font: 800 6.4cqw/1 var(--display); color: var(--ink); transform: translate(-50%, -50%) rotate(var(--a)) translateY(-24cqw) rotate(calc(var(--a) * -1)); }
.w-hub { position: absolute; left: 50%; top: 50%; width: 22%; transform: translate(-50%, -50%); filter: drop-shadow(0 1cqw 1.4cqw rgb(var(--sh) / .3)); }
.w-pointer { position: absolute; left: 50%; top: -9%; width: 18%; transform: translateX(-50%); filter: drop-shadow(0 1cqw 1cqw rgb(var(--sh) / .3)); z-index: 2; }
@keyframes wspin { 0% { transform: rotate(0); } 55%, 100% { transform: rotate(-1065deg); } }
.w-pick { position: absolute; left: 50%; top: 124cqw; transform: translateX(-50%); display: flex; align-items: center; gap: 3cqw; font: 800 4.8cqw/1 var(--ui); color: var(--ink-soft); background: var(--surface-high); padding: 2cqw 2cqw 2cqw 5cqw; border-radius: 999px; box-shadow: 0 6px 14px -8px rgb(var(--sh) / .4), inset 0 0 0 1px var(--outline); white-space: nowrap; }
.w-pick .tile { --s: 10cqw; }

/* koleksiyon + arsiv: sahnenin ortasinda buzlu panel */
.sc-coll { background-image: url('/assets/scene_collection.webp'); }
.sc-arch { background-image: url('/assets/scene_archive.webp'); background-position: center bottom; background-size: 100% auto; }
.sc-panel { position: absolute; left: 8cqw; right: 8cqw; top: 24cqw; padding: 5cqw; border-radius: 6cqw; background: color-mix(in srgb, var(--surface) 86%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 4cqw 8cqw -5cqw rgb(var(--sh) / .45), inset 0 0 0 1px rgba(255, 255, 255, .8); }
.sc-panel-t { display: flex; justify-content: space-between; align-items: baseline; font: 800 5.4cqw/1.1 var(--display); color: var(--ink); margin-bottom: 4cqw; text-transform: capitalize; }
.sc-panel-t b { font-size: 4.6cqw; color: var(--correct-deep); }
.coll { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.8cqw; }
.coll .tile { --s: 12cqw; width: 100%; font-size: 6cqw; }
.coll .tile:not(.g) { color: var(--ink-muted); background: var(--surface-low); box-shadow: inset 0 0 0 .4cqw var(--outline); }
.sc-arch .sc-panel { top: 30cqw; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1.4cqw; text-align: center; }
.cal-h { font: 800 3.4cqw/1 var(--ui); color: var(--ink-muted); padding-bottom: 1cqw; }
.cal-d { aspect-ratio: 1; display: grid; place-items: center; border-radius: 2.2cqw; font: 800 3.6cqw/1 var(--ui); color: var(--ink-soft); background: var(--surface-low); }
.cal-d.empty { background: none; }
.cal-d.won { background: var(--correct); color: #fff; box-shadow: inset 0 -.6cqw 0 #518759; }
.cal-d.today { background: var(--surface-high); color: var(--coral-deep); box-shadow: inset 0 0 0 .6cqw var(--coral); }
.cal-d.future { opacity: .35; }

@media (max-width: 960px) {
  .modes { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(62%, 280px); overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--gutter) * -1); padding: 6px var(--gutter) 18px; scrollbar-width: none; overscroll-behavior-x: contain; }
  .modes::-webkit-scrollbar { display: none; }
  .mode { scroll-snap-align: center; }
}

/* ===== Kategoriler: uygulamanin merdiven sahnesi arkada ===== */
.ladder-stage {
  position: relative; border-radius: 30px; overflow: hidden;
  min-height: 520px; display: grid; place-items: center;
  padding: 36px 20px;
  background: var(--ground) center / cover no-repeat;
  box-shadow: 0 1px 2px rgb(var(--sh) / .05), 0 30px 60px -30px rgb(var(--sh) / .45), inset 0 0 0 1px var(--outline);
  transition: background-image .3s;
}
.ladder-stage::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 55% at 50% 50%, color-mix(in srgb, var(--ground) 90%, transparent), color-mix(in srgb, var(--ground) 55%, transparent) 70%, color-mix(in srgb, var(--ground) 15%, transparent)); }
.ladder-stage[data-cat="football"]::before { background: radial-gradient(60% 55% at 50% 50%, color-mix(in srgb, var(--ground) 78%, transparent), color-mix(in srgb, var(--ground) 35%, transparent) 70%, color-mix(in srgb, var(--ground) 0%, transparent)); }
.ladder-stage .ladder { position: relative; }
@media (max-width: 600px) { .ladder-stage { min-height: 440px; padding: 28px 12px; } }
.ladder-stage .step .n { background: color-mix(in srgb, var(--surface) 85%, transparent); border-radius: 8px; padding: 4px 0; text-align: center; color: var(--ink-soft); }
.ladder-stage .step.top .n { color: #9a6f10; }

/* Modlar: mobil kaydirma gostergeleri (rev. 7). Masaustunde 4'lu izgara, gizli. */
.modes { position: relative; }
.modes-nav { display: none; }
.swipe-hint { display: none; }
@media (max-width: 960px) {
  .modes { grid-auto-columns: min(74%, 300px); scroll-padding-inline: var(--gutter); -webkit-overflow-scrolling: touch; }
  .modes-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 6px; }
  .mn { width: 40px; height: 40px; border-radius: 14px; border: 0; cursor: pointer; display: grid; place-items: center; color: var(--ink); background: var(--surface-high); box-shadow: 0 3px 0 var(--outline), inset 0 0 0 1px var(--outline); -webkit-tap-highlight-color: transparent; }
  .mn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--outline), inset 0 0 0 1px var(--outline); }
  .mn svg { width: 20px; height: 20px; }
  .dots { display: flex; gap: 8px; }
  .dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: var(--outline); cursor: pointer; transition: width .25s, background .25s; }
  .dot[aria-selected="true"] { width: 24px; background: var(--coral); }
  .swipe-hint {
    display: inline-flex; align-items: center; gap: 6px;
    position: absolute; z-index: 3; right: calc(var(--gutter) + 8px); top: 18px;
    font: 800 12px/1 var(--ui); color: #fff; background: rgba(31, 26, 19, .78);
    padding: 8px 12px; border-radius: 999px; pointer-events: none;
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    transition: opacity .3s;
  }
  .swipe-hint b { display: inline-block; animation: nudgeX 1.4s ease-in-out infinite; }
  .swipe-hint.gone { opacity: 0; }
}
@keyframes nudgeX { 50% { transform: translateX(4px); } }

.tb-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 4px; margin: 0 -2px; }
.tb-row::-webkit-scrollbar { display: none; }
.tb-label { position: sticky; left: 0; z-index: 1; background: var(--surface); padding: 8px 6px 8px 2px; box-shadow: 8px 0 8px -4px var(--surface); flex: none; align-self: center; font: 800 11px/1 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); margin-right: 2px; min-width: 52px; }
.tc {
  flex: none; display: inline-flex; align-items: center; gap: 7px;
  border: 0; cursor: pointer; padding: 6px 11px 6px 6px; border-radius: 999px;
  font: 700 13px/1 var(--ui); color: var(--ink); background: var(--surface-low);
  box-shadow: inset 0 0 0 1px var(--outline);
  transition: box-shadow .15s, transform .15s;
  -webkit-tap-highlight-color: transparent;
}
.tc:hover { transform: translateY(-1px); }
.tc[aria-checked="true"] { box-shadow: inset 0 0 0 2px var(--coral); background: var(--surface-high); }
.tc .sw { display: inline-grid; grid-template-columns: 1fr 1fr; width: 22px; height: 22px; border-radius: 7px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); flex: none; }
.tc .sw i:first-child { grid-row: span 2; }
.tc .tag { font-size: 11px; line-height: 1; }

/* ===== Site temalari (uygulamanin temalari, 2026-10-02) ===== */
body, .card, .game, .phone .screen { transition: background-color .35s, color .35s; }
html.theme-dark .btn-store { box-shadow: 0 5px 0 #000, inset 0 0 0 1px rgb(255 255 255 / .14); }
html.theme-dark .duel-sec { box-shadow: inset 0 0 0 1px var(--outline); }
html.theme-dark body::before { opacity: .12; }
html.theme-dark .blob { opacity: .28; }
/* koyu temada coralDeep, coralSoft uzerinde okunmuyor (kontrast ~2.4) */
html.theme-dark .eyebrow, html.theme-dark .sc-daily .sc-chip.fire { color: var(--ink); }

.theme-btn {
  display: inline-flex; align-items: center; gap: 6px;
  border: 0; cursor: pointer; padding: 6px 10px 6px 6px; border-radius: 12px;
  background: var(--surface-high); color: var(--ink);
  box-shadow: 0 3px 0 var(--outline), inset 0 0 0 1.5px var(--outline);
  font: 800 13px/1 var(--ui);
}
.theme-btn .sw, .tc .sw { display: inline-grid; grid-template-columns: 1fr 1fr; width: 22px; height: 22px; border-radius: 7px; overflow: hidden; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .12); flex: none; }
.theme-btn .sw i:first-child, .tc .sw i:first-child { grid-row: span 2; }
@media (max-width: 900px) { .lang { margin-left: 0; } .theme-btn { margin-left: auto; } }
@media (max-width: 420px) { .theme-btn .tb-name { display: none; } .theme-btn { padding: 6px; } }

.theme-panel {
  position: absolute; top: calc(100% + 8px); right: var(--gutter);
  width: min(420px, calc(100vw - 2 * var(--gutter)));
  background: var(--surface-high); color: var(--ink);
  border-radius: 22px; padding: 16px;
  box-shadow: 0 30px 60px -20px rgb(var(--sh) / .45), inset 0 0 0 1px var(--outline);
  display: grid; gap: 10px; z-index: 60;
}
.theme-panel[hidden] { display: none; }
.theme-panel h4 { margin: 2px 2px 0; font: 800 12px/1 var(--ui); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); }
.theme-panel .tp-row { display: flex; flex-wrap: wrap; gap: 8px; }
.theme-panel .tp-note { margin: 2px; font-size: 12.5px; color: var(--ink-muted); }
.nav .container { position: relative; }
.tc {
  flex: none; display: inline-flex; align-items: center; gap: 7px;
  border: 0; cursor: pointer; padding: 6px 11px 6px 6px; border-radius: 999px;
  font: 700 13px/1 var(--ui); color: var(--ink); background: var(--surface-low);
  box-shadow: inset 0 0 0 1px var(--outline);
  transition: box-shadow .15s, transform .15s;
  -webkit-tap-highlight-color: transparent;
}
.tc:hover { transform: translateY(-1px); }
.tc[aria-checked="true"] { box-shadow: inset 0 0 0 2px var(--coral); background: var(--surface); }
.tc .tag { font-size: 11px; line-height: 1; }

/* ===== Odul katmani (rev. 9, 2026-10-02) =====
   1) Basliktaki kelime karo olarak doner  2) Merdiven kaydirdikca yanar
   3) Tema degisimi tiklanan yerden daire acilir */

/* 1) Baslik karolari */
h1 .tw { display: inline-flex; gap: .05em; vertical-align: .06em; white-space: nowrap; perspective: 600px; }
h1 .ht {
  display: inline-grid; place-items: center; width: .86em; height: .9em; border-radius: .16em;
  font-size: .78em; line-height: 1; letter-spacing: 0;
  background: var(--correct); color: #fff; box-shadow: 0 .08em 0 var(--correct-deep);
}
.js h1 .ht { animation: htflip .62s cubic-bezier(.4, 0, .2, 1) calc(var(--d, .35s) + var(--i) * .09s) both; }
h1 .tw.again .ht { animation-name: htflip2; }
@keyframes htflip {
  0%, 10% { transform: rotateX(0); background: var(--tile-idle); color: var(--ink); box-shadow: 0 .08em 0 var(--tile-edge), inset 0 0 0 .04em var(--outline); }
  49.9% { transform: rotateX(90deg); background: var(--tile-idle); color: var(--ink); box-shadow: 0 .08em 0 var(--tile-edge), inset 0 0 0 .04em var(--outline); }
  50% { transform: rotateX(90deg); background: var(--correct); color: #fff; box-shadow: 0 .08em 0 var(--correct-deep); }
  100% { transform: rotateX(0); background: var(--correct); color: #fff; box-shadow: 0 .08em 0 var(--correct-deep); }
}
@keyframes htflip2 { 0% { transform: rotateX(0); } 50% { transform: rotateX(90deg); background: var(--present); box-shadow: 0 .08em 0 var(--present-deep); } 100% { transform: rotateX(0); } }

/* 2) Kaydirmali merdiven: bos karolar, basamak gelince yesile doner */
.ladder .tile { background: var(--tile-idle); color: transparent; box-shadow: 0 calc(var(--s, 48px) * .08) 0 var(--tile-edge), inset 0 0 0 1.5px var(--outline); }
.ladder .step.on .tile { animation: ladflip .5s ease-in-out calc(var(--i) * 45ms) both; }
@keyframes ladflip {
  0% { transform: rotateX(0); }
  49.9% { transform: rotateX(90deg); background: var(--tile-idle); color: transparent; box-shadow: 0 calc(var(--s, 48px) * .08) 0 var(--tile-edge), inset 0 0 0 1.5px var(--outline); }
  50% { transform: rotateX(90deg); background: var(--correct); color: #fff; box-shadow: 0 calc(var(--s, 48px) * .08) 0 var(--correct-deep); }
  100% { transform: rotateX(0); background: var(--correct); color: #fff; box-shadow: 0 calc(var(--s, 48px) * .08) 0 var(--correct-deep); }
}
.ladder-stage .step .n { transition: background .3s, color .3s; }
.ladder-stage .step.on .n { background: var(--correct); color: #fff; }
.ladder-stage .step.top.on .n { background: var(--gold); color: #fff; }
.ladder-stage { transition: background-image .3s, box-shadow .5s; }
.ladder-stage.done { box-shadow: 0 1px 2px rgb(var(--sh) / .05), 0 30px 60px -30px rgb(var(--sh) / .45), inset 0 0 0 1px var(--outline), 0 0 0 4px color-mix(in srgb, var(--gold) 55%, transparent); }
.ladder-run { height: 0; }
#merdiven.pin .ladder-wrap { position: sticky; top: var(--pinTop, 88px); }
#merdiven.pin .ladder-run { height: var(--run, 0px); }
.climb { display: flex; align-items: center; gap: 12px; margin-top: 22px; font-weight: 800; color: var(--ink-soft); }
.climb .bar { flex: 1; max-width: 220px; height: 8px; border-radius: 99px; background: var(--surface-low); box-shadow: inset 0 0 0 1px var(--outline); overflow: hidden; }
.climb .bar i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: linear-gradient(90deg, var(--correct), var(--gold)); border-radius: inherit; transition: width .25s; }
.climb b { font: 800 22px/1 var(--display); color: var(--ink); min-width: 2ch; text-align: right; }
@media (max-width: 960px) { .climb { justify-content: center; } }

/* 3) Tema: tiklanan noktadan daire (View Transitions; desteklemeyen aninda gecer) */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

