/* Mister Myster site pages: home (/), play (/play/), studio (/studio/). Lead A, 2026-10-19, site v1.
   Builds on mm.css (tokens, mm- components) and the engine's site.css (header .ts-ust, footer .ts-alt). Loaded only by the site template
   (marka.json > site.ekCss), never by the book. Layout first for 1440 and 1920; narrow screens only kept from breaking (phone pass later).
   One light theme, no glass, no backdrop blur. Motion: transform and opacity, only under html.motion. */

html { background: var(--c-lilac); scroll-padding-top: 100px; }   /* anchor jumps and focus moves land below the sticky header */
body { min-height: 100vh; background: linear-gradient(180deg, #F6F2FC 0%, #F3EEFB 40%, #EEE6FA 100%); }
.wrap { width: min(1280px, 100% - 2 * var(--kenar)); }
@media (min-width: 1800px) { .wrap { width: min(1440px, 100% - 2 * var(--kenar)); } }
.ts-main p { max-width: 40em; }
.mm-link { font: 700 15px/1.3 var(--f-body); color: var(--c-myster); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .28em; text-decoration-color: color-mix(in srgb, var(--c-myster) 35%, transparent); }
.mm-link:hover { text-decoration-color: var(--c-myster); }
:focus-visible { outline-color: var(--c-iris); }
.mm-dugmeler { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------------------------------------------------------------- header (engine .ts-ust): solid, no blur */
.ts-ust { background: #F6F2FC; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 1px solid var(--c-line); }
.ts-ust-ic { min-height: 80px; gap: 12px 22px; }
.ts-logo { width: auto; display: flex; align-items: center; gap: 12px; padding: 8px 0; text-decoration: none; border-radius: 16px; }
.ts-logo .mm-yuz { box-shadow: 0 6px 14px rgba(42, 17, 96, .18); }
.ts-logo .mm-ust-logo { width: 112px; }
.ts-menu a { font: 700 15px/1 var(--f-body); padding: 0 16px; color: var(--c-night); }
.ts-menu a:hover { background: rgba(141, 49, 234, .1); }
.ts-menu a[aria-current="page"] { background: var(--c-night); color: #fff; }
.mm-abone { flex: none; }
.mm-ses { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 0; border-radius: var(--r-pill); background: transparent; color: var(--c-night); font: 700 14px/1 var(--f-body); cursor: pointer; }
.mm-ses:hover { background: rgba(141, 49, 234, .1); }
.mm-ses svg { width: 18px; height: 18px; }
.mm-ses[aria-pressed="false"] { color: var(--c-night-soft); }
.mm-ses[aria-pressed="false"] svg path:last-child { opacity: .25; }
/* header face icon: static webp only (blinks on hover, imza.js); no second live 3D instance (home page character audit, 2026-10-20) */
/* captions of the shared layer that have no anchor bubble (MysterSes #mm-balonlar), in the Sunny pop style */
#mm-balonlar .mm-balon { border-radius: 22px; padding: 12px 20px; font: 700 16px/1.35 var(--f-body); color: var(--c-night); box-shadow: 0 10px 26px rgba(42, 17, 96, .18); }
/* logo birth (imza.js): letters hidden until the drop starts */
html.mm-dogus .ts-logo marka-logo svg text, html.mm-dogus .ts-logo .mm-yuz { opacity: 0; }

/* ---------------------------------------------------------------- Myster anchors (shared contract): the box is Myster standing (head to feet, body
   width), i.e. x 567-1543, y 391-1623 of the 2048 px pose render (aspect 976:1232), the rect the live layer fits him into. Wider poses (arms,
   laughing, crying) overflow the box on purpose so Myster keeps one size; the -poz crops are placed per pose below. */
.mm-capa { position: relative; aspect-ratio: 976 / 1232; }
.mm-capa-poster { position: absolute; max-width: none; filter: var(--shadow-pose); transition: opacity .2s; user-select: none; -webkit-user-drag: none; }
.mm-capa-video { position: absolute; left: -58.09%; top: -31.74%; width: 209.84%; height: 166.23%; max-width: none; pointer-events: none; filter: var(--shadow-pose); }
.mm-capa.video .mm-capa-poster { opacity: 0; }
/* the live 3D layer marks the anchor it renders at; the fallback steps aside */
.mm-capa[data-canli] .mm-capa-poster, .mm-capa[data-canli] .mm-capa-video { opacity: 0; }
.mm-capa-dokun { pointer-events: auto; position: absolute; left: 2%; right: 2%; top: 0; bottom: 0; z-index: 3; padding: 0; border: 0; border-radius: 46% 46% 34% 34%; background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.mm-capa-dokun:focus-visible { outline: 3px solid var(--c-iris); outline-offset: 4px; }
.motion .mm-capa.pop .mm-capa-poster { animation: mm-pop .42s var(--e-pop); }
@keyframes mm-pop { 0% { transform: scale(.92, 1.06); } 55% { transform: scale(1.05, .96); } 100% { transform: none; } }
.mm-capa-poster[data-poz="neseli"] { left: -14.04%; top: -10.55%; width: 127.05%; height: 101.14%; }
.mm-capa-poster[data-poz="asik"] { left: 1.95%; top: -0.08%; width: 92.93%; height: 100.08%; }
.mm-capa-poster[data-poz="saskin"] { left: -0.41%; top: -0.16%; width: 101.95%; height: 100.16%; }
.mm-capa-poster[data-poz="dusunceli"] { left: 0%; top: 0%; width: 100%; height: 100%; }
.mm-capa-poster[data-poz="korkmus"] { left: 0.61%; top: 1.38%; width: 96.41%; height: 97.16%; }
.mm-capa-poster[data-poz="kizgin"] { left: -2.87%; top: 0.08%; width: 100.1%; height: 99.92%; }
.mm-capa-poster[data-poz="aglayan"] { left: -31.76%; top: 0.24%; width: 159.22%; height: 107.22%; }
.mm-capa-poster[data-poz="igrenmis"] { left: -15.57%; top: 20.37%; width: 124.8%; height: 78.9%; }
.mm-capa-poster[data-poz="kahkaha"] { left: -22.64%; top: -0.32%; width: 150.82%; height: 100.32%; }
.mm-capa-poster[data-poz="uyku"] { left: -7.99%; top: -0.97%; width: 115.98%; height: 100.97%; }
.mm-capa-poster[data-poz="gozetleme"] { left: -38.63%; top: 31.82%; width: 187.3%; height: 102.68%; }
.mm-capa-poster[data-poz="selam"] { left: -17.83%; top: -6.09%; width: 125.51%; height: 100.89%; }
.mm-capa-poster[data-poz="onay"] { left: 0.31%; top: -3.49%; width: 96.21%; height: 100.97%; }
.mm-capa-poster[data-poz="isaret"] { left: -13.01%; top: -0.32%; width: 136.17%; height: 100.32%; }
.mm-capa-poster[data-poz="uyanma"] { left: -6.97%; top: -5.44%; width: 105.94%; height: 104.38%; }
.mm-capa-poster[data-poz="konusma"] { left: -2.05%; top: -8.36%; width: 100.41%; height: 100.89%; }
.mm-capa-poster[data-poz="gozetleme-yan"] { left: 2.36%; top: 7.87%; width: 149.39%; height: 126.62%; }
.mm-capa-poster[data-poz="bakis-imlec"] { left: -10.45%; top: -0.16%; width: 120.49%; height: 100.16%; }
.mm-capa-poster[data-poz="wink"] { left: -17.21%; top: -0.32%; width: 120.49%; height: 100.32%; }
.mm-capa-poster[data-poz="mahcup"] { left: -14.24%; top: 1.7%; width: 114.24%; height: 98.3%; }
/* Myster's caption bubble next to an anchor (fallback captions; the shared layer shows its own) */
[data-mm-balon] { position: absolute; z-index: 4; width: max-content; max-width: 300px; }
.motion [data-mm-balon]:not([hidden]) { animation: mm-balon .36s var(--e-pop) both; }
@keyframes mm-balon { from { opacity: 0; transform: translateY(10px) scale(.94); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- sections */
.mm-bolum { position: relative; padding: clamp(72px, 7.5vw, 128px) 0; }
.mm-bolum-bas { display: grid; gap: 16px; max-width: 980px; margin-bottom: clamp(32px, 3.4vw, 52px); }
.mm-bolum-bas .mm-lead { margin-top: 2px; }

/* ---------------------------------------------------------------- hero */
.mm-giris { position: relative; overflow: clip; }
.mm-giris-ic { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); align-items: center; gap: 24px; min-height: min(calc(100svh - 80px), 940px); padding: clamp(28px, 3vw, 56px) 0; }
.mm-giris-metin { position: relative; z-index: 2; display: grid; gap: 24px; justify-items: start; padding-bottom: 24px; }
.mm-giris .mm-display { font-size: clamp(64px, 6.9vw, 122px); }
.mm-giris .mm-lead { max-width: 25em; }
.mm-giris .mm-dugmeler { margin-top: 6px; }
.mm-giris-sahne { position: relative; align-self: stretch; min-height: 560px; }
.mm-giris-gunes { width: clamp(600px, 56vw, 920px); left: calc(50% + 70px); top: 50%; transform: translate(-50%, -46%); }
.mm-capa-giris { position: absolute; left: calc(50% + 70px); top: 50%; width: clamp(300px, 30vw, 460px); transform: translate(-50%, -46%); transform-origin: 50% 100%; z-index: 2; }
/* hero entrance (imza.js > heroKoreo): until it plays the anchor waits below the fold (independent translate property, so it never fights the transform above) */
html.mm-giris-bekle .mm-capa-giris { translate: 0 100vh; }
html.mm-giris-bekle .mm-giris-chip { opacity: 0; }
.mm-giris [data-mm-balon] { left: 0; top: 8%; }
.mm-giris-chip { position: absolute; left: 50%; bottom: 3%; z-index: 3; transform: translateX(-50%); transition: opacity var(--sure-orta) ; }
.mm-giris-chip.gitti { opacity: 0; pointer-events: none; }

/* ---------------------------------------------------------------- the show */
.mm-adimlar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 24px; }
.mm-adim { display: grid; gap: 10px; align-content: start; padding: 26px 28px 30px; border-radius: var(--r-card); background: var(--g-surface); box-shadow: var(--shadow-card); }
.mm-adim-no { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 6px; border-radius: 50%; background: var(--g-sun); color: var(--c-night); font: 800 22px/1 var(--f-head); }
.mm-adim p, .mm-format p:not(.mm-label), .mm-studyo-kart p { color: var(--c-night-soft); font-size: 16.5px; line-height: 1.5; }
.mm-show-kart { display: grid; grid-template-columns: minmax(0, 1fr) clamp(260px, 22vw, 340px); gap: 20px; padding: clamp(24px, 2.4vw, 40px); }
.mm-show-ust { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; margin-bottom: 18px; }
.mm-show-myster { position: relative; align-self: end; margin-bottom: calc(-1 * clamp(24px, 2.4vw, 40px)); }
.mm-show-myster .mm-sun.yarim { width: 128%; left: -14%; bottom: 0; }
.mm-show-myster .mm-capa { width: 70%; margin: 0 auto; }
.mm-show-myster [data-mm-balon] { left: -40px; top: -12px; }
/* the show poster is not a live anchor: the layer's html.mm-canli rule must not hide it */
.mm-poz-host .mm-capa-poster { visibility: visible; }

/* ---------------------------------------------------------------- formats */
.mm-format-izgara { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.mm-format { display: grid; gap: 10px; align-content: start; margin: 0; }
.mm-format .mm-thumb-g { margin-bottom: 12px; }

/* ---------------------------------------------------------------- meet Myster */
.mm-meet { background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .55) 30%, rgba(255, 255, 255, 0) 100%); }
/* the big reaction card on the left (the live Myster, 330 px), the three mood cards as a stack of poster cards on the right: the live one is the biggest Myster on the page */
.mm-meet-izgara { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.mm-tepki { grid-column: 1; grid-row: 1 / span 3; }
.mm-duygu { position: relative; grid-column: 2; display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 1fr); align-items: center; margin: 0; padding: 0; overflow: hidden; background: var(--g-surface); box-shadow: var(--shadow-card); }
.mm-duygu-sahne { position: relative; display: flex; align-items: flex-end; justify-content: center; align-self: stretch; min-height: 184px; overflow: hidden; }
.mm-duygu-sahne .mm-sun.yarim { width: 92%; left: 4%; bottom: 0; }
/* mood card: a small poster box (same anchor geometry as the live one), WebM plays once on hover or tap (imza.js > duyguKarti); the layer's poster hiding does not apply here */
.mm-duygu-capa { position: relative; width: 116px; margin-bottom: 12px; transition: transform var(--sure-kisa) var(--e-pop); }
.mm-duygu-capa .mm-capa-poster { visibility: visible; }
.motion .mm-duygu:hover .mm-duygu-capa { transform: translateY(-6px) rotate(-2deg); }
.mm-duygu-dugme { position: absolute; inset: 0; z-index: 3; padding: 0; border: 0; border-radius: inherit; background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.mm-duygu-dugme:focus-visible { outline: 3px solid var(--c-iris); outline-offset: -6px; }
.mm-duygu-dugme .mm-chip { position: absolute; right: 18px; bottom: 16px; min-height: 0; padding: 7px 14px; font-size: 12px; }
.mm-duygu.sec { box-shadow: 0 0 0 3px var(--c-night), var(--shadow-card); }
.mm-duygu figcaption { display: grid; gap: 4px; padding: 18px 24px 40px 8px; }
.mm-duygu figcaption span { color: var(--c-night-soft); font-size: 15.5px; }
.mm-tepki { display: grid; grid-template-rows: auto 1fr auto; gap: 6px; padding-bottom: 26px; }
.mm-tepki-sahne { position: relative; min-height: 460px; }
.mm-tepki-sahne .mm-sun { width: min(72%, 440px); left: 50%; top: 4%; translate: -50% 0; }
.mm-tepki-sahne .mm-capa { position: absolute; left: 50%; bottom: 0; width: min(62%, 330px); transform: translateX(-50%); transform-origin: 50% 100%; }   /* bigger than the poster cards beside it; imza.js squashes it in and out with the independent scale property */
.mm-tepki-sahne [data-mm-balon] { right: 0; top: 0; }
.mm-tepki-alt { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mm-tepki-ad { display: grid; gap: 2px; }
.mm-tepki-ad span { font: 800 12px/1.2 var(--f-body); letter-spacing: .18em; text-transform: uppercase; }
.mm-tepki-ad b { display: block; font: 800 30px/1 var(--f-head); color: #fff; }

/* ---------------------------------------------------------------- watch */
.mm-watch-ic { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(32px, 4.4vw, 80px); align-items: center; }
.mm-watch-metin { display: grid; gap: 22px; justify-items: start; }
.mm-watch-sahne { min-height: 540px; padding: 0; }
.mm-watch-sahne .mm-sun { width: 54%; right: -6%; bottom: -46%; }
.mm-watch-tel { position: absolute; left: 6%; top: 9%; z-index: 2; transform: rotate(-4deg); }
.mm-watch-bolum { position: absolute; right: 5%; top: 24%; width: 51%; z-index: 2; color: #fff; }
.mm-watch-bolum .mm-thumb-meta { color: #fff; font-weight: 600; }
.mm-kitap-serit { display: flex; align-items: center; gap: 22px; margin-top: clamp(56px, 5.4vw, 88px); padding: 22px 28px; text-decoration: none; transition: transform var(--sure-kisa) var(--e-out); }
.mm-kitap-serit > span:nth-child(2) { flex: 1; display: grid; gap: 4px; }
.mm-kitap-serit .mm-thumb-meta { font-size: 16px; }
.motion .mm-kitap-serit:hover { transform: translateY(-3px); }

/* ---------------------------------------------------------------- play page */
.mm-oyna, .mm-studyo { padding: clamp(40px, 4.4vw, 76px) 0 clamp(72px, 7vw, 120px); }
.mm-oyna-bas { display: grid; gap: 14px; max-width: 820px; margin-bottom: clamp(28px, 3vw, 44px); }
.mm-oyna-izgara { display: grid; grid-template-columns: minmax(0, 1fr) clamp(280px, 24vw, 380px); gap: 28px; align-items: start; }
.mm-oyna-kart { padding: clamp(24px, 2.4vw, 40px); }
.mm-oyna-myster { position: relative; padding-top: 72px; }
.mm-oyna-myster .mm-sun { width: 92%; left: 4%; top: 20px; }
.mm-oyna-myster .mm-capa { width: 74%; margin: 0 auto; }
.mm-oyna-myster [data-mm-balon] { left: -24px; top: -8px; }
.mm-oyna-not { margin-top: 22px; color: var(--c-night-soft); font-size: 15px; }
.mm-tus { display: inline-grid; place-items: center; min-width: 30px; height: 28px; padding: 0 8px; border-radius: 8px; background: #fff; box-shadow: inset 0 -2px 0 var(--c-line), 0 0 0 1px var(--c-line); color: var(--c-night); font: 700 13px/1 var(--f-body); }

/* ---------------------------------------------------------------- studio page (v1 skeleton) */
.mm-studyo-izgara { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.mm-studyo-kart { display: grid; gap: 14px; align-content: start; justify-items: start; }
.mm-studyo-gorsel { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r-tile); background: var(--g-screen); margin-bottom: 6px; }
.mm-studyo-gorsel .mm-thumb-g { box-shadow: none; border-radius: 0; height: 100%; }
.mm-studyo-kare { position: absolute; inset: 0; }
.mm-studyo-kare .mm-label { position: absolute; left: 18px; top: 14px; color: var(--c-night); letter-spacing: .02em; text-transform: none; font: 800 18px/1 var(--f-head); }
.mm-studyo-kare .mm-sun.yarim { width: 70%; left: 15%; bottom: 0; }
.mm-studyo-kare .mm-poz { position: absolute; left: 50%; bottom: 16px; height: 74%; width: auto; transform: translateX(-50%); }
.mm-studyo-kare .mm-ilerleme { z-index: 2;  position: absolute; left: 16px; right: 16px; bottom: 14px; }
.mm-studyo-alt3 { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 18px; background: radial-gradient(circle at 80% 120%, #FFE27A 0%, #FFC928 30%, rgba(255, 201, 40, 0) 31%), var(--g-screen); }

/* ---------------------------------------------------------------- footer (engine .ts-alt on Night) */
.ts-alt { background: var(--c-night); }
.ts-alt-logo { width: auto; display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.ts-alt-logo .mm-alt-logo { width: 132px; }
.ts-alt-b { letter-spacing: .18em; }
.ts-alt-not { max-width: none; }
.tw-aile-saydam .tw-aile-ic { width: min(1280px, 100% - 2 * var(--kenar)); }
@media (min-width: 1800px) { .tw-aile-saydam .tw-aile-ic { width: min(1440px, 100% - 2 * var(--kenar)); } }

/* ---------------------------------------------------------------- narrow screens: keep from breaking (phone pass later) */
@media (max-width: 1100px) {
  .mm-meet-izgara { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .mm-tepki { grid-column: 1; grid-row: 1; }
  .mm-duygu { grid-column: 1; }
}
@media (max-width: 900px) {
  .mm-giris-ic, .mm-watch-ic, .mm-show-kart, .mm-oyna-izgara { grid-template-columns: minmax(0, 1fr); }
  .mm-giris-sahne { min-height: 440px; }
  .mm-adimlar, .mm-format-izgara, .mm-studyo-izgara { grid-template-columns: minmax(0, 1fr); }
  .mm-show-myster, .mm-oyna-myster { max-width: 340px; justify-self: center; }
  .mm-watch-sahne { min-height: 460px; }
  .mm-kitap-serit { flex-wrap: wrap; }
}
@media (max-width: 760px) {
  .ts-ust-ic { gap: 6px 10px; }
  .ts-logo .mm-ust-logo { width: 92px; }
  .ts-logo .mm-yuz { --yuz: 38px !important; }
  .mm-ses { margin-left: auto; padding: 0 10px; }
  .mm-ses span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
