/*  Temel: yazi tipleri, tema degiskenleri, sifirlama, kaydirma cubugu, genel animasyonlar  *//* =========================================================================
   VoiceLink v3 - Stil
   Mobil uygulama hedefi icin: safe-area destegi, dokunma hedefleri,
   responsive iki panelli duzen.
   ========================================================================= *//* Ulke bayraklari: Windows'ta bayrak emojisi glifi yok (TR yerine "TR" harfleri cikar).
   Twemoji Country Flags (country-flag-emoji-polyfill, MIT; cizimler Twemoji CC-BY 4.0)
   yalnizca bolgesel gosterge harflerini (U+1F1E6-1F1FF) kapsar - diger karakterlere dokunmaz. */@font-face {
    font-family: 'Twemoji Country Flags';
    src: url('/fonts/TwemojiCountryFlags.woff2') format('woff2');
    unicode-range: U+1F1E6-1F1FF;
    font-display: swap;
}/* Arcade tema yazi tipleri (tanitim sayfasiyla ayni): Onest metin, Jersey 10 piksel basliklar.
   Jersey'de Kiril yok; Rusca basliklar ayni piksel tarzindaki Pixelify Sans'a duser. */@font-face { font-family: 'Jersey 10'; font-display: swap; src: url('/fonts/jersey-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }@font-face { font-family: 'Jersey 10'; font-display: swap; src: url('/fonts/jersey-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }@font-face { font-family: 'Pixelify Sans'; font-display: swap; src: url('/fonts/pixelify-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }@font-face { font-family: 'Onest'; font-weight: 400 700; font-display: swap; src: url('/fonts/onest-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }@font-face { font-family: 'Onest'; font-weight: 400 700; font-display: swap; src: url('/fonts/onest-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }@font-face { font-family: 'Onest'; font-weight: 400 700; font-display: swap; src: url('/fonts/onest-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }/* Tema: <html data-theme="dark|light"> (theme-boot.js ve app.js applyTheme ayarlar) */:root, [data-theme="dark"] {
    --bg-darker: #0c0a17;   /* sohbet alani, giris kutulari */
    --bg-dark:   #141126;   /* kenar cubugu, basliklar, pencereler */
    --bg-panel:  #1b1734;   /* kartlar, secili oge, ikincil dugmeler */
    --bg-hover:  #262140;
    --bg-rail:   #08070f;   /* en soldaki sunucu rayi */
    --text-main: #f1edff;
    --text-muted:#9a94b8;
    --border:    rgba(var(--ov), 0.09);
    --ov:        255,255,255;   /* hover gibi yari saydam katmanlarin rengi */
    --shadow:    0 14px 40px rgba(0,0,0,0.65);
    --auth-glow: #1b1734;
    --primary-ink: var(--primary);   /* sari yazi/simge: koyu zeminde ana renk okunur */
    --ok-text:   #86efac;
    --warn-text: #fcd34d;
    --danger-text: #fca5a5;
    --mention-me: #eab308;
    color-scheme: dark;
}html[data-theme="light"] {   /* :root blogundaki ana renkleri ezebilsin (ozgulluk) */
    --bg-darker: #fffaf0;   /* kagit */
    --bg-dark:   #f7efdc;
    --bg-panel:  #ede2c8;
    --bg-hover:  #e3d5b3;
    --bg-rail:   #efe5cb;
    --text-main: #1a1530;
    --text-muted:#6b6380;
    --border:    rgba(0,0,0,0.1);
    --ov:        0,0,0;
    --shadow:    0 14px 40px rgba(70,55,30,0.18);
    --auth-glow: #ffffff;
    --primary:   #f5b400;   /* acik zeminde biraz koyu jeton sarisi */
    --primary-hover: #ffc21f;
    --primary-shade: #b07d00;
    --primary-ink: #7a5200; /* sari yazi kagit uzerinde okunmaz: koyu hardal */
    --ok-text:   #15803d;
    --warn-text: #b45309;
    --danger-text: #dc2626;
    --mention-me: #a16207;
    color-scheme: light;
}:root {
    /* Arcade tema: tek ana renk jeton sarisi, ustunde koyu yazi (bkz. landing/) */
    --primary:   #ffc83d;
    --primary-hover: #ffd466;
    --primary-shade: #c9921a;   /* arcade tusunun alt kenari */
    --on-primary: #0c0a17;
    --accent:    var(--primary-ink);   /* yazar adi, alinti, surukleme cizgisi: ana renkle ayni aile */
    --danger:    #ef4444;
    --warn:      #f59e0b;
    --success:   #22c55e;
    --text:      var(--text-main);
    --muted:     var(--text-muted);
    --radius:    10px;   /* yumusak kose (11-09 Napol secimi) */
    --font-body: 'Twemoji Country Flags', 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif;
    --font-display: 'Jersey 10', 'Pixelify Sans', 'Onest', 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif;
    /* Kod, adres, davet kodu, sure sayaci: tek es aralikli yigin (eskiden uc farkli yazilisi vardi) */
    --font-mono: ui-monospace, SFMono-Regular, 'Cascadia Mono', Menlo, Consolas, monospace;
    --font-emoji: 'Twemoji Country Flags', 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif;
    --display-tracking: .02em;

    /* Hareket dili (A "Sakin"): giris yavaslayarak durur, cikis hizlanarak kaybolur */
    --d-fast:    120ms;   /* hover, basma, renk */
    --d-base:    200ms;   /* menu, acilir kutu, ikon degisimi */
    --d-slow:    320ms;   /* modal, toast, panel kaymasi */
    --e-out:     cubic-bezier(.2,0,0,1);
    --e-in:      cubic-bezier(.3,0,1,1);

    --safe-top:    env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-left:   env(safe-area-inset-left, 0px);
    --safe-right:  env(safe-area-inset-right, 0px);
}* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }html, body {
    /* Telefon klavyesi acikken (iPhone) sayfa gorunur alandan uzun kalmasin: tarayici onu yukari itip
       yazarken ekrani oynatiyordu (layout.js fitToVisualViewport) */
    height: var(--app-h, 100%);
    overscroll-behavior: none;
}html { font-size: 16px; }html[data-font-size="small"] { font-size: 14.5px; }html[data-font-size="large"] { font-size: 17.5px; }body {
    background-color: var(--bg-darker);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow: hidden;
}
/*
 * Yazi tipi tutarliligi.
 * Tarayicilar dugme, giris kutusu ve secim kutusuna govdenin yazi tipini KENDILIGINDEN vermez (sistem yazi
 * tipiyle cizer). Kurallarin bir kismi bunu tek tek "font-family: inherit" ile duzeltiyor, bir kismi unutuyordu;
 * ayni ekranda Onest ve Segoe UI / Arial yan yana duruyordu. Artik tek kural.
 */button, input, select, textarea, optgroup, option { font-family: inherit; letter-spacing: inherit; }
::placeholder { font-family: inherit; }
h1, h2, h3, h4, h5, h6 { font-family: inherit; line-height: 1.25; }
code, kbd, samp, pre { font-family: var(--font-mono); }
/* Sayac, bakiye, sure gibi degisen rakamlar: genisligi sabit, deger degisince yazi oynamaz */
.slider-val, .voice-ping, .msg-time, .notif-time, .cf-amount, .rec-time { font-variant-numeric: tabular-nums; }
/* ---------- Yukleniyor ---------- */.loading-screen {
    position: fixed; inset: 0; z-index: 3000;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-darker);
}.spinner {
    width: 42px; height: 42px; border-radius: var(--radius);
    border: 3px solid var(--bg-panel); border-top-color: var(--primary);
    animation: spin 0.8s steps(8) infinite;
}@keyframes spin { to { transform: rotate(360deg); } }input, textarea, select {
    background: var(--bg-darker);
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 0.7rem 0.8rem;
    border-radius: var(--radius);
    font-size: 16px; /* iOS'ta otomatik zoom olmasin */
    outline: none;
    font-family: inherit;
    width: 100%;
    transition: border-color var(--d-fast) var(--e-out);
}input:focus, textarea:focus { border-color: var(--primary); }input:disabled { opacity: 0.5; cursor: not-allowed; }textarea { resize: vertical; min-height: 70px; }input[type="range"] {
    flex: 1; height: 6px; -webkit-appearance: none; appearance: none;
    background: var(--bg-panel); border-radius: var(--radius);
    outline: none; border: none; padding: 0; cursor: pointer;
}input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none;
    width: 18px; height: 18px; border-radius: var(--radius);
    background: var(--primary); cursor: pointer; border: 2px solid var(--bg-dark);
}input[type="range"]::-moz-range-thumb {
    width: 18px; height: 18px; border-radius: var(--radius); border: 2px solid var(--bg-dark);
    background: var(--primary); cursor: pointer;
}/* ---------- Scrollbar ---------- */::-webkit-scrollbar { width: 8px; height: 8px; }::-webkit-scrollbar-track { background: transparent; }::-webkit-scrollbar-thumb { background: var(--bg-panel); border-radius: var(--radius); }::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }select {
    background: var(--bg-darker); border: 1px solid var(--border);
    color: var(--text-main); padding: 0.7rem 0.8rem;
    border-radius: var(--radius); font-size: 16px; width: 100%; font-family: inherit;
}/*
 * Hareketi azalt (Ayarlar > Gorunum).
 * ONEMLI: sureyi kisaltmak tek basina YETMEZ. Sonsuz donen animasyonlar (hayvanlar, profil karti susleri,
 * cerceveler) 0.01 ms'lik sureyle saniyede binlerce kez donup "inanilmaz hizli" oynuyordu. Windows'ta
 * "Animasyon efektleri" kapali olan bilgisayarlarda (prefers-reduced-motion) herkes bunu goruyordu; telefonlarda
 * bu ayar genelde acik oldugu icin sorun yalnizca bilgisayarda cikiyordu. Artik:
 *  - Sistem tercihi animasyonlari kendiliginden bozmaz; karar uygulamadaki bu ayarda.
 *  - Ayar acikken animasyonlar hizlanmaz, DURUR (tek tur, son karede kalir).
 */html[data-motion="reduce"] *, html[data-motion="reduce"] *::before, html[data-motion="reduce"] *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important;
    transition-duration: 0.01ms !important; scroll-behavior: auto !important;
}
