/* ══════════════════════════════════════════════════════════════
 * RitmiQ tanıtım sayfası (/). Sitenin tasarım diliyle aynı: koyu zemin, Outfit, mod renkleri.
 * Performans kuralları (docs/05-frontend.md → Yakınlaştırma): büyük alanlara blur yok, animasyonlar
 * sadece transform/opacity ve sadece ekrandayken (.is-live) çalışır.
 * ══════════════════════════════════════════════════════════════ */

:root {
    --bg: #050505;
    --card: #0e0e0f;
    --card-2: #141416;
    --line: rgba(255,255,255,0.07);
    --line-2: rgba(255,255,255,0.12);
    --txt: #fff;
    --dim: rgba(255,255,255,0.66);
    --mute: rgba(255,255,255,0.42);

    --g: #1DB954; --lime: #C6FF3D;
    --coral: #FF4D6D; --amber: #FFB020; --violet: #9B7BFF; --cyan: #22D3EE; --pink: #FF6AD5;
    --gold: #FFD166; --silver: #D5DCE4; --bronze: #E59866;

    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --r: 28px;
    --gutter: clamp(16px, 4vw, 40px);
    --maxw: calc(1200px + 2 * var(--gutter));
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; -webkit-text-size-adjust: 100%; }
body {
    min-height: 100vh;
    background: var(--bg); color: var(--txt);
    font-family: 'Outfit', system-ui, sans-serif; line-height: 1.5;
    -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
    overflow-x: hidden; overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
svg { flex-shrink: 0; }
:focus-visible { outline: 2px solid var(--g); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Arka plan: filtresiz yumuşak ışıklar + hafif gren (sitedekiyle aynı) */
.aura { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.aura i { position: absolute; border-radius: 50%; background: radial-gradient(closest-side, var(--c) 0%, var(--c) 38%, transparent 100%); }
.aura i:nth-child(1) { --c: var(--g); width: 900px; height: 900px; top: -420px; left: -300px; opacity: 0.16; }
.aura i:nth-child(2) { --c: var(--coral); width: 700px; height: 700px; top: 20%; right: -380px; opacity: 0.08; }
.aura i:nth-child(3) { --c: var(--violet); width: 600px; height: 600px; bottom: -320px; left: 20%; opacity: 0.07; }
body::after {
    content: ""; position: fixed; inset: 0; z-index: 999; pointer-events: none; opacity: 0.06;
    background: url("/static/img/grain.png?v=2") 0 0 / 160px 160px repeat;
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* ── Ortak ── */
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--c, var(--g)); box-shadow: 0 0 10px var(--c, var(--g)); }
.hl-g { color: var(--g); } .hl-coral { color: var(--coral); } .hl-amber { color: var(--amber); } .hl-violet { color: var(--violet); }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 52px; padding: 14px 26px; border-radius: 999px;
    font: inherit; font-weight: 700; font-size: 1rem; white-space: nowrap; cursor: pointer; border: 0;
    transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.25s;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-g { background: var(--g); color: #000; box-shadow: 0 10px 34px rgba(29,185,84,0.35); }
.btn-g:hover { box-shadow: 0 14px 40px rgba(29,185,84,0.5); }
/* Paylaşılan sonuç bağlantısı (body[data-challenge]): buton ve çağrı kutusu o oyunun renginde */
body[data-challenge] { --ch: var(--amber); --ch-rgb: 255,176,32; }
body[data-challenge="survival"] { --ch: var(--coral); --ch-rgb: 255,77,109; }
body[data-challenge="year"] { --ch: var(--violet); --ch-rgb: 155,123,255; }
.btn-challenge { background: var(--ch); color: #000; box-shadow: 0 10px 34px rgba(var(--ch-rgb),0.35); }
.btn-challenge:hover { box-shadow: 0 14px 40px rgba(var(--ch-rgb),0.5); }
.btn-ghost { background: rgba(255,255,255,0.04); color: #fff; box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-ghost:hover { background: rgba(255,255,255,0.08); }
.btn-sm { min-height: 42px; padding: 10px 18px; font-size: 0.92rem; }

.tag {
    display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px;
    font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
    background: rgba(255,255,255,0.07); color: var(--dim);
}

.section { padding: clamp(72px, 10vw, 128px) 0 0; }
.sec-head { max-width: 680px; margin-bottom: clamp(32px, 5vw, 52px); }
.sec-head h2 { text-wrap: balance; margin-top: 14px; font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; }
.sec-head p { text-wrap: pretty; margin-top: 14px; font-size: 1.08rem; color: var(--dim); }

.card {
    position: relative; overflow: hidden; isolation: isolate;
    border-radius: var(--r); border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.01)), var(--card);
}

/* Kaydırınca belirme (JS yoksa ya da hareket azaltılmışsa içerik doğrudan görünür) */
.js-reveal .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: var(--d, 0s); }
.js-reveal .reveal.in { opacity: 1; transform: none; }

/* ═══════════════ ÜST MENÜ ═══════════════ */
.nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(5,5,5,0.9); border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; padding-block: 8px; font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; }
.logo b { color: var(--g); font-weight: 800; }
.eq { display: flex; align-items: flex-end; gap: 2px; height: 16px; }
.eq i { width: 3px; height: 16px; border-radius: 2px; background: var(--g); transform-origin: bottom; animation: eq 0.9s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -0.3s; } .eq i:nth-child(3) { animation-delay: -0.6s; } .eq i:nth-child(4) { animation-delay: -0.15s; }
@keyframes eq { 0%, 100% { transform: scaleY(0.25); } 50% { transform: scaleY(1); } }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { padding: 10px 14px; border-radius: 999px; font-weight: 600; font-size: 0.95rem; color: var(--dim); transition: color 0.2s, background 0.2s; }
.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.05); }
.nav-right { display: flex; align-items: center; gap: 8px; }

/* ═══════════════ HERO ═══════════════ */
.hero { padding: clamp(40px, 7vw, 88px) 0 0; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-top: 18px; font-size: clamp(2.9rem, 7vw, 5.6rem); font-weight: 900; line-height: 0.98; letter-spacing: -0.04em; }
.hero h1 .outline { color: transparent; -webkit-text-stroke: 2px var(--g); }
.hero .lead { margin-top: 22px; max-width: 520px; font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--dim); }
.hero .lead b { color: #fff; font-weight: 600; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
/* Paylaşılan sonuç bağlantısıyla gelen ziyaretçiye: arkadaşının sonucu (/?gr=&s=, /?sv=, /?yt=) */
.challenge { display: inline-flex; align-items: center; gap: 14px; max-width: 100%; padding: 10px 20px 10px 10px; border-radius: 20px;
    background: rgba(var(--ch-rgb),0.09); box-shadow: inset 0 0 0 1px rgba(var(--ch-rgb),0.28); font-size: 0.95rem; line-height: 1.35; color: var(--dim); }
.challenge b { display: block; color: var(--ch); font-weight: 800; }
.challenge-score { flex: none; display: inline-flex; align-items: baseline; justify-content: center; line-height: 58px; min-width: 58px; height: 58px; padding: 0 10px; border-radius: 14px;
    background: var(--ch); color: #000; font-size: 1.6rem; font-weight: 900; letter-spacing: -0.04em; white-space: nowrap; }
.challenge-score small { font-size: 0.62em; font-weight: 800; opacity: 0.6; }

/* Canlı oyun önizlemesi (Survival turu): 7 sn'lik döngü, .is-live iken oynar */
.demo-wrap { position: relative; max-width: 460px; width: 100%; justify-self: end; }
.demo { position: relative; padding: 22px 22px 34px; border-radius: 26px; background: linear-gradient(180deg, rgba(255,77,109,0.08), rgba(255,255,255,0.01) 40%), var(--card);
    border: 1px solid rgba(255,77,109,0.22); box-shadow: 0 30px 80px rgba(0,0,0,0.55); }
.demo-hud { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--line); font-size: 0.82rem; font-weight: 600; color: var(--dim); }
.demo-hud b { color: var(--coral); }
.hearts { display: flex; gap: 5px; color: var(--coral); }
.hearts svg { width: 18px; height: 18px; }
.demo-pts { display: flex; align-items: center; gap: 6px; }
.demo-pts .n { position: relative; display: inline-grid; min-width: 2ch; color: var(--coral); font-weight: 800; }
.demo-pts .n span { grid-area: 1 / 1; text-align: right; }
.demo-pts .mult { padding: 2px 7px; border-radius: 999px; background: rgba(255,77,109,0.15); color: var(--coral); font-size: 0.7rem; font-weight: 800; }
.demo-player { display: flex; align-items: center; gap: 14px; margin: 18px 0 14px; }
.demo-play { position: relative; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--coral); color: #000;
    box-shadow: 0 8px 26px rgba(255,77,109,0.4); }
.demo-play svg { width: 22px; height: 22px; margin-left: 3px; }
.demo-play::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--coral); opacity: 0; }
.demo-player b { display: block; font-size: 1rem; }
.demo-player small { font-size: 0.82rem; color: var(--mute); }
.stages { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.stages div { display: grid; gap: 6px; }
.stages i { position: relative; overflow: hidden; height: 6px; border-radius: 3px; background: rgba(255,255,255,0.08); }
.stages i::after { content: ""; position: absolute; inset: 0; background: var(--coral); transform: scaleX(0); transform-origin: left; }
.stages span { text-align: center; font-size: 0.7rem; font-weight: 600; color: var(--mute); }
.stages div:first-child span { color: var(--coral); }
.demo-input { position: relative; margin-top: 18px; height: 48px; padding: 0 16px; border-radius: 14px; background: rgba(255,255,255,0.05);
    display: flex; align-items: center; font-size: 0.95rem; color: var(--mute); }
.demo-input .ph, .demo-input .typed { position: absolute; left: 16px; right: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-input .typed { color: #fff; opacity: 0; }
.demo-reveal { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; min-height: 28px; }
.pill { display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; opacity: 0; transform: translateY(6px); }
.pill.ok { background: rgba(29,185,84,0.15); color: var(--g); }
.pill.pts { background: rgba(255,77,109,0.15); color: var(--coral); }
.demo-song { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 10px; border-radius: 14px; border: 1px solid var(--line);
    background: rgba(255,255,255,0.03); opacity: 0; }
.demo-song .cover { width: 44px; height: 44px; border-radius: 10px; background: linear-gradient(135deg, #F472B6, #FFB020); flex-shrink: 0; }
.demo-song b { display: block; font-size: 0.95rem; }
.demo-song small { color: var(--mute); font-size: 0.8rem; }

/* Önizlemenin yanındaki küçük kartlar */
.floats { position: relative; z-index: 1; display: flex; justify-content: center; gap: 12px; margin-top: -22px; padding: 0 12px; }
.float { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 16px;
    background: rgba(20,20,22,0.96); border: 1px solid var(--line-2); box-shadow: 0 16px 40px rgba(0,0,0,0.5); font-size: 0.82rem; }
.float small { display: block; color: var(--mute); font-size: 0.72rem; white-space: nowrap; }
.float b { white-space: nowrap; }
.float b { font-weight: 700; }
.float-char { transform: rotate(-3deg); }
.float-daily { transform: rotate(2.5deg); }
.float-char img { width: 40px; height: 40px; border-radius: 50%; background: var(--g); }
.sq { display: flex; gap: 4px; }
.sq i { width: 14px; height: 14px; border-radius: 4px; background: var(--g); }
.sq i.y { background: var(--amber); } .sq i.x { background: #2a2a2e; }

/* Döngü: 0-8% çal, 8-40% dinle çubuğu, 40-55% yaz, 55% cevap, 88% sıfırla */
.is-live .stages div:first-child i::after { animation: stageFill 7s var(--ease) infinite; }
.is-live .demo-play::after { animation: ring 7s ease-out infinite; }
.is-live .demo-input .ph { animation: phOut 7s infinite; }
.is-live .demo-input .typed { animation: typedIn 7s infinite; }
.is-live .pill.ok { animation: popIn 7s var(--ease) infinite; }
.is-live .pill.pts { animation: popIn2 7s var(--ease) infinite; }
.is-live .demo-song { animation: songIn 7s var(--ease) infinite; }
.is-live .demo-pts .n .a { animation: numOut 7s infinite; }
.is-live .demo-pts .n .b { animation: numIn 7s infinite; }
.demo-pts .n .b { opacity: 0; }
@keyframes stageFill { 0%, 6% { transform: scaleX(0); } 14%, 88% { transform: scaleX(1); } 96%, 100% { transform: scaleX(0); } }
@keyframes ring { 0%, 4% { opacity: 0; transform: scale(0.9); } 6% { opacity: 0.8; } 18%, 100% { opacity: 0; transform: scale(1.35); } }
@keyframes phOut { 0%, 30% { opacity: 1; } 34%, 90% { opacity: 0; } 96%, 100% { opacity: 1; } }
@keyframes typedIn { 0%, 32% { opacity: 0; clip-path: inset(0 100% 0 0); } 36% { opacity: 1; } 50%, 88% { opacity: 1; clip-path: inset(0 0 0 0); } 94%, 100% { opacity: 0; } }
@keyframes popIn { 0%, 54% { opacity: 0; transform: translateY(6px); } 58%, 88% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; } }
@keyframes popIn2 { 0%, 58% { opacity: 0; transform: translateY(6px); } 62%, 88% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; } }
@keyframes songIn { 0%, 55% { opacity: 0; transform: translateY(8px); } 60%, 88% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; } }
@keyframes numOut { 0%, 58% { opacity: 1; } 60%, 92% { opacity: 0; } 96%, 100% { opacity: 1; } }
@keyframes numIn { 0%, 58% { opacity: 0; transform: translateY(6px); } 62%, 90% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; } }

/* ── Öne çıkanlar şeridi ── */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: clamp(48px, 7vw, 88px); }
.fact { padding: 20px 22px; border-radius: 22px; border: 1px solid var(--line); background: rgba(255,255,255,0.02); }
.fact b { display: block; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.fact span { font-size: 0.9rem; color: var(--dim); }

/* ═══════════════ NASIL OYNANIR ═══════════════ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { display: flex; flex-direction: column; padding: 28px; }
.step-no { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(29,185,84,0.12); color: var(--g); font-weight: 800; }
.step h3 { margin-top: 18px; font-size: 1.35rem; font-weight: 800; letter-spacing: -0.01em; }
.step p { margin-top: 8px; color: var(--dim); }
.step-vis { margin-top: auto; padding-top: 22px; }
.mini-stages { display: flex; gap: 6px; }
.mini-stages i { flex: 1; height: 8px; border-radius: 4px; background: rgba(255,255,255,0.08); }
.mini-stages i:first-child { background: var(--coral); }
.mini-search { display: grid; gap: 6px; }
.mini-search div { padding: 9px 12px; border-radius: 12px; background: rgba(255,255,255,0.04); font-size: 0.85rem; color: var(--dim); }
.mini-search div:first-child { box-shadow: inset 0 0 0 1px rgba(29,185,84,0.5); background: rgba(29,185,84,0.08); color: #fff; }
.mini-search small { color: var(--mute); }

/* Puan merdiveni */
.ladder { margin-top: 16px; padding: 26px 28px; display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
.ladder h3 { font-size: 1.3rem; font-weight: 800; }
.ladder p { margin-top: 6px; color: var(--dim); font-size: 0.95rem; max-width: 300px; }
.rungs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; align-items: end; }
.rung { display: grid; gap: 8px; justify-items: center; }
.rung .bar { width: 100%; height: calc(var(--h) * 1px); min-height: 6px; border-radius: 12px 12px 6px 6px;
    background: linear-gradient(180deg, var(--coral), rgba(255,77,109,0.25)); }
.rung b { font-size: 1.25rem; font-weight: 800; }
.rung span { font-size: 0.8rem; color: var(--mute); font-weight: 600; }
.rung.zero .bar { background: rgba(255,255,255,0.08); }
.ladder-note { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 20px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 0.92rem; color: var(--dim); }
.ladder-note b { color: #fff; }

/* ═══════════════ OYUNLAR ═══════════════ */
.games { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.game { display: flex; flex-direction: column; padding: 28px; transition: transform 0.35s var(--ease), border-color 0.35s; }
.game:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--c) 40%, transparent); }
.game::before { content: ""; position: absolute; inset: 0; z-index: -1;
    background: radial-gradient(70% 60% at 100% 0%, color-mix(in srgb, var(--c) 22%, transparent), transparent 70%); }
.game-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.game .tag { background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--c); }
.game-vis { display: grid; place-items: center; min-height: 150px; margin: 18px 0 20px; }
.game h3 { font-size: clamp(1.7rem, 3vw, 2.1rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; }
.game p { margin-top: 8px; color: var(--dim); }
.game-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: auto; padding-top: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,0.06); font-size: 0.78rem; font-weight: 600; color: var(--dim); }
.go { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 999px; background: var(--c); color: #000; font-weight: 700; font-size: 0.92rem; transition: transform 0.25s var(--ease); }
.go svg { width: 16px; height: 16px; }
.game:hover .go { transform: translateX(3px); }

/* Oyun kartı görselleri */
.v-hearts { display: flex; gap: 10px; color: var(--coral); }
.v-hearts svg { width: 42px; height: 42px; }
.v-hearts svg:last-child { opacity: 0.25; }
.v-squares { display: grid; gap: 12px; justify-items: center; }
.v-squares .sq i { width: 34px; height: 34px; border-radius: 9px; }
.v-squares small { color: var(--mute); font-size: 0.82rem; font-weight: 600; }
.v-year { width: min(100%, 300px); text-align: center; }
.v-year b { font-size: 3.4rem; font-weight: 900; letter-spacing: -0.03em; line-height: 1; background: linear-gradient(180deg, #fff, var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.v-year .track { position: relative; height: 6px; margin-top: 18px; border-radius: 3px; background: rgba(255,255,255,0.08); }
.v-year .track i { position: absolute; left: 0; top: 0; bottom: 0; width: 42%; border-radius: 3px; background: var(--violet); }
.v-year .track i::after { content: ""; position: absolute; right: -9px; top: -6px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(155,123,255,0.35); }
.v-year .ticks { display: flex; justify-content: space-between; margin-top: 10px; font-size: 0.72rem; color: var(--mute); font-weight: 600; }
.v-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: min(100%, 320px); }
.v-opts span { padding: 11px 12px; border-radius: 12px; background: rgba(255,255,255,0.05); font-size: 0.85rem; font-weight: 600; color: var(--dim); text-align: center; }
.v-opts span.ok { background: rgba(29,185,84,0.14); color: var(--g); box-shadow: inset 0 0 0 1px rgba(29,185,84,0.45); }

.soon { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.soon .card { display: flex; align-items: center; gap: 16px; padding: 20px 24px; }
.soon .ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--c); }
.soon .ico svg { width: 24px; height: 24px; }
.soon b { display: block; font-size: 1.1rem; }
.soon span { font-size: 0.9rem; color: var(--dim); }
.soon .tag { margin-left: auto; }

/* ═══════════════ REKABET ═══════════════ */
.compete { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 16px; }
.compete .card { display: flex; flex-direction: column; padding: 28px; }
.compete h3 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.01em; }
.compete p { margin-top: 8px; color: var(--dim); }
.lb { display: grid; gap: 8px; margin-top: 22px; }
.lb-row { display: grid; grid-template-columns: 26px 40px 1fr auto; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255,255,255,0.02); }
.lb-row .rk { font-weight: 800; color: var(--mute); text-align: center; }
.lb-row img { width: 40px; height: 40px; border-radius: 50%; }
.lb-row b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.lb-row .sc { font-weight: 800; text-align: right; }
.lb-row .sc small { display: block; font-size: 0.7rem; color: var(--mute); font-weight: 600; }
.lb-row.me { border-color: rgba(29,185,84,0.4); background: rgba(29,185,84,0.06); }
.lb-row.me .rk { color: var(--g); }
.lb-row:nth-child(1) .rk { color: var(--gold); }
.lb-foot { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: auto; padding-top: 18px; font-size: 0.9rem; color: var(--dim); }
.lb-foot span { display: inline-flex; align-items: center; gap: 7px; }
.lb-foot svg { width: 16px; height: 16px; color: var(--amber); }

.chars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 22px 0; }
.chars figure { display: grid; justify-items: center; gap: 6px; }
.chars img { width: 100%; max-width: 88px; height: auto; aspect-ratio: 1; border-radius: 50%; background: var(--c); transition: transform 0.3s var(--ease); }
.chars figure:hover img { transform: translateY(-4px) rotate(-4deg) scale(1.04); }
.chars figcaption { font-size: 0.75rem; font-weight: 600; color: var(--mute); text-align: center; line-height: 1.25; }
.fire { display: flex; align-items: center; gap: 14px; margin-top: auto; padding: 14px 16px; border-radius: 16px; background: rgba(255,140,60,0.07); border: 1px solid rgba(255,140,60,0.18); }
.fire .flames { display: flex; gap: 4px; }
.fire .flames svg { width: 20px; height: 20px; color: #ff8a3c; }
.fire .flames svg.off { color: rgba(255,255,255,0.14); }
.fire span { font-size: 0.9rem; color: var(--dim); }

/* ═══════════════ KAPANIŞ ═══════════════ */
.final { margin-top: clamp(72px, 10vw, 128px); padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 64px); text-align: center;
    background: radial-gradient(60% 90% at 50% 0%, rgba(29,185,84,0.2), transparent 70%), var(--card); }
.final h2 { text-wrap: balance; overflow-wrap: anywhere; font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 900; letter-spacing: -0.03em; line-height: 1.05; }
.final p { max-width: 560px; margin: 14px auto 0; color: var(--dim); font-size: 1.08rem; }
.final .hero-ctas { justify-content: center; }

/* ═══════════════ ALT BİLGİ ═══════════════ */
.foot { margin-top: clamp(56px, 8vw, 96px); border-top: 1px solid var(--line); padding: 32px 0 40px; color: var(--mute); font-size: 0.9rem; }
.foot-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot nav a { padding-block: 8px; transition: color 0.2s; }
.foot nav a:hover { color: #fff; }
.coffee { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(255,213,79,0.25); color: #FFD54F; font-weight: 600; }
.coffee svg { width: 16px; height: 16px; }
.legal { margin-top: 22px; max-width: 900px; font-size: 0.78rem; line-height: 1.6; }
.legal a { color: rgba(255,255,255,0.7); text-decoration: underline; text-underline-offset: 3px; }
/* İletişim: e-posta (adres düz metin görünür ki kopyalanabilsin) ve Instagram */
.foot nav { align-items: center; }
.foot-mail { display: inline-flex; align-items: center; gap: 6px; }
.foot-mail svg { width: 15px; height: 15px; flex: none; }
.foot-cta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.insta { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(255,106,213,0.28); color: var(--pink); font-weight: 600; }
.insta svg { width: 16px; height: 16px; }
/* Paragraf gibi akar: simge metnin başında, hesap adı bölünmez */
.follow-line { color: var(--mute); font-size: 0.92rem; line-height: 1.6; text-align: center; text-wrap: balance; }
.final p.follow-line { margin-top: 22px; color: var(--mute); font-size: 0.92rem; }
.follow-line svg { display: inline-block; width: 16px; height: 16px; margin-right: 6px; vertical-align: -3px; color: var(--pink); }
.follow-line a { color: var(--pink); font-weight: 600; white-space: nowrap; padding-block: 8px; margin-block: -8px; }

/* ═══════════════ TABLET ═══════════════ */
@media (max-width: 1000px) {
    .hero-grid { grid-template-columns: 1fr; }
    .demo-wrap { justify-self: center; margin-top: 12px; }
    .facts { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: 1fr; }
    .step { display: grid; grid-template-columns: auto 1fr; column-gap: 18px; align-items: start; }
    .step h3 { margin-top: 6px; }
    .step p, .step .step-vis { grid-column: 2; }
    .ladder { grid-template-columns: 1fr; }
    .ladder p { max-width: none; }
    .compete { grid-template-columns: 1fr; }
}

/* ═══════════════ TELEFON ═══════════════ */
@media (max-width: 680px) {
    .nav-links { display: none; }
    .nav-right { margin-left: auto; }
    .nav .wrap { height: 60px; }
    .hero h1 .outline { -webkit-text-stroke-width: 1.5px; }
    .hero-ctas .btn { flex: 1 1 100%; }
    .demo { padding: 18px; }
    .facts { gap: 10px; }
    .fact { padding: 16px; }
    .step { padding: 22px; column-gap: 14px; }
    .ladder { padding: 22px; gap: 20px; }
    .rungs { gap: 6px; }
    .rung b { font-size: 1.05rem; }
    .games { grid-template-columns: 1fr; }
    .game { padding: 22px; }
    .game-vis { min-height: 120px; }
    .soon { grid-template-columns: 1fr; }
    .soon .card { align-items: flex-start; padding: 18px; padding-right: 96px; }
    .soon .tag { position: absolute; top: 16px; right: 16px; padding: 4px 8px; font-size: 0.62rem; }
    .float { gap: 8px; }
    .float-char img { width: 34px; height: 34px; }
    .float .sq i { width: 11px; height: 11px; border-radius: 3px; }
    .compete .card { padding: 22px; }
    .chars { grid-template-columns: repeat(4, 1fr); gap: 8px; }
    .final .hero-ctas .btn { flex: 1 1 100%; }
    .foot-top { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 380px) {
    .facts { grid-template-columns: 1fr 1fr; }
    .fact b { font-size: 1.4rem; }
    .floats { gap: 8px; padding: 0; }
    .float { padding: 8px 10px; }
}

/* Yakınlaştırırken (zoom-guard.js → html.is-zoomed) animasyonlar durur, gren gizlenir */
html.is-zoomed *, html.is-zoomed *::before, html.is-zoomed *::after { animation-play-state: paused !important; }
html.is-zoomed body::after { display: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition-duration: 0.001ms !important; }
    html { scroll-behavior: auto; }
    /* Önizleme döngüsü yerine son hâli durağan: şarkı bulunmuş, puan kazanılmış */
    .stages div:first-child i::after { transform: scaleX(1); }
    .demo-input .ph, .demo-pts .n .a { opacity: 0; }
    .demo-input .typed, .pill, .demo-song, .demo-pts .n .b { opacity: 1; transform: none; }
}
