/* =========================================================
   Baykuş Bahis — ön yüz
   Tasarım kuralları: yalnızca 3 renk (siyah / altın / beyaz),
   gradient yok, yuvarlak köşe yok, yumuşak gölge yok — keskin ve düz.
   Soluk yazı ve çizgiler yeni renk değil, siyah/beyazın şeffaf tonudur.
   ========================================================= */

:root {
    --black: #0a0a0a;
    --gold:  #f5b014;
    --white: #ffffff;

    /* Koyu tema (varsayılan) */
    --bg:          var(--black);
    --fg:          var(--white);
    --muted:       rgba(255,255,255,.62);
    --line:        rgba(255,255,255,.14);
    --line-strong: rgba(255,255,255,.32);
    --tint:        rgba(255,255,255,.06);
    --accent-text: var(--gold);   /* küçük vurgu yazıları */

    --gutter:    16px;
    --header-h:  84px;   /* 12px boşluk + 60px kapsül + 12px boşluk */

    --font: "Oxanium", system-ui, -apple-system, "Segoe UI", sans-serif;   /* sitenin tek yazı tipi */

    color-scheme: dark;
}

[data-theme="light"] {
    --bg:          var(--white);
    --fg:          var(--black);
    --muted:       rgba(10,10,10,.62);
    --line:        rgba(10,10,10,.14);
    --line-strong: rgba(10,10,10,.32);
    --tint:        rgba(10,10,10,.05);
    --accent-text: var(--black);  /* beyaz zeminde altın yazı okunmaz */

    color-scheme: light;
}

/* Her iki temada da siyah kalan bloklar (slider, banner kartları, giriş/kayıt bonus kartları, mobil alt menü, oyun ekranı üst çubuğu) */
.banner-slider, .promo-card.has-art, .promo-card.has-img, .auth__bonus, .auth-promo, .tabbar, .play__bar {
    --bg:          var(--black);
    --fg:          var(--white);
    --muted:       rgba(255,255,255,.62);
    --line:        rgba(255,255,255,.14);
    --line-strong: rgba(255,255,255,.32);
    --tint:        rgba(255,255,255,.06);
    --accent-text: var(--gold);
    color: var(--fg);
}
/* Açık temaya özel resmi olan kart açık kalır */
[data-theme="light"] .promo-card.has-light-img {
    --bg: var(--white); --fg: var(--black); --muted: rgba(10,10,10,.62); --accent-text: var(--black);
}

/* ---------- Temel ---------- */

*, *::before, *::after { box-sizing: border-box; }

/* Telefonda yakınlaştırma kapalı: çift dokunuş büyütmez (iki parmak layout.php viewport + app.js ile engellenir) */
html { scroll-behavior: smooth; scroll-padding-top: 16px; touch-action: manipulation; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font: 400 16px/1.6 var(--font);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font); line-height: 1.15; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 860px; }
.muted { color: var(--muted); }
.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; }

.skip-link {
    position: absolute; left: 12px; top: -60px; z-index: 100;
    background: var(--gold); color: var(--black); padding: 10px 16px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* Temaya göre resim / logo */
.only-light { display: none; }
[data-theme="light"] .only-light { display: block; }
[data-theme="light"] .only-dark { display: none; }

/* ---------- Butonlar ---------- */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    min-height: 44px; padding: 0 20px;
    border: 1px solid transparent;
    font: 600 15px/1 var(--font);
    white-space: nowrap;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn--lg { min-height: 52px; padding: 0 26px; font-size: 16px; }
.btn--block { width: 100%; }

.btn--gold { background: var(--gold); border-color: var(--gold); color: var(--black); }
@media (hover: hover) { .btn--gold:hover { background: var(--fg); border-color: var(--fg); color: var(--bg); } }

.btn--ghost { border-color: var(--line-strong); color: var(--fg); }
@media (hover: hover) { .btn--ghost:hover { border-color: var(--gold); background: var(--tint); } }

.btn--link { background: none; border: 0; padding: 0 4px; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; }
@media (hover: hover) { .btn--link:hover { color: var(--fg); text-decoration-color: var(--gold); } }

/* ---------- Başlık parçaları ---------- */

.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font: 600 12px/1 var(--font); letter-spacing: .18em; text-transform: uppercase;
    color: var(--accent-text);
}
.eyebrow::before { content: ""; width: 22px; height: 3px; background: var(--gold); }

/* Başlıklardaki vurgu: koyu temada altın yazı, açık temada altın blok üstünde siyah yazı */
.section__title span, .bslide__title span { color: var(--gold); }
[data-theme="light"] .section__title span {
    color: var(--white); background: var(--gold);
    padding: .5rem; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

.section { padding: 88px 0; position: relative; }
.section--tight { padding: 40px 0 96px; }
.section--alt { border-block: 1px solid var(--line); background: var(--tint); }
.section--page { padding: 32px 0 88px; }

.section__head { text-align: center; max-width: 640px; margin: 0 auto 48px; display: grid; gap: 14px; justify-items: center; }
.section__title { font-size: clamp(28px, 4vw, 44px); font-weight: 700; }
.section__lead { color: var(--muted); font-size: 17px; }

/* ---------- Header: yüzen kapsül ---------- */

.site-header {
    position: relative; z-index: 50; /* sayfanın en üstünde durur, kaydırınca takip etmez */
    height: var(--header-h);
    padding: 12px 0;
}
.site-header > .container { height: 100%; }
.site-header__inner {
    position: relative;
    height: 100%;
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
    padding: 0;
    background: var(--bg);
}

.brand { justify-self: start; display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand__mark { width: auto; height: 36px; }
.brand__word { font: italic 800 23px/1 var(--font); letter-spacing: -.02em; color: var(--fg); }
.brand__word b { color: var(--gold); font-weight: 800; }
[data-theme="light"] .brand__word b { color: var(--gold); padding: 0 .1em; }

/* Menü: düz yazı, açık sayfanın altında altın çizgi */
.nav { justify-self: center; display: flex; align-items: center; gap: 6px; height: 100%; }
.nav__link {
    position: relative;
    display: inline-flex; align-items: center;
    height: 100%; padding: 0 14px;
    color: var(--muted); font: 500 15px/1 var(--font);
    white-space: nowrap;
    transition: color .15s ease;
}
.nav__link::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px;
    background: var(--gold);
    transform: scaleX(0); transition: transform .2s ease;
}
.nav__link.is-active { color: var(--fg); font-weight: 600; }
.nav__link.is-active::after { transform: scaleX(1); }

/* Masaüstü hover: üzerine gelinen başlığın arkası alttan yukarı altınla dolar, yazı siyah olur; açık sayfanın alt çizgisi yerinde kalır */
.nav__link { isolation: isolate; }
.nav__link::before {
    content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: 50%; height: 40px; margin-top: -20px;
    background: var(--gold);
    transform: scaleY(0); transform-origin: bottom; transition: transform .15s ease;
}
@media (min-width: 1101px) and (hover: hover) {
    .nav__link:hover { color: var(--black); }
    .nav__link:hover::before { transform: scaleY(1); }
}
.nav__link:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
@media (prefers-reduced-motion: reduce) { .nav__link::before { transition: none; } }

/* Kayan blok (app.js .nav__ink ekler): dururken açık sayfanın alt çizgisi; fareyle başlığa gelince 40px altın bloğa büyür
   ve başlıklar arasında kayar — gidilen yöndeki kenar önden, öbür kenar peşinden gelir; menüden çıkınca açık sayfaya dönüp çizgiye iner */
.nav { position: relative; isolation: isolate; }
.nav__ink { display: none; }
@media (min-width: 1101px) and (hover: hover) {
    .nav.has-ink .nav__link::before, .nav.has-ink .nav__link::after { display: none; }
    .nav.has-ink .nav__link.is-ink { color: var(--black); transition: color .12s ease .08s; }
    .nav__ink {
        display: block; position: absolute; z-index: -1; pointer-events: none;
        left: var(--l, 0); right: var(--r, 100%); top: calc(100% - 3px); height: 3px;
        background: var(--gold);
        transition: left .32s cubic-bezier(.7, 0, .3, 1) var(--dl, 0s), right .32s cubic-bezier(.7, 0, .3, 1) var(--dr, 0s),
                    top .2s ease, height .2s ease, opacity .2s ease;
    }
    .nav.is-hover .nav__ink { top: calc(50% - 20px); height: 40px; }
    .nav__ink.is-off { opacity: 0; }
    .nav__ink.is-still { transition: none; }
}
@media (prefers-reduced-motion: reduce) { .nav__ink { transition: none !important; } }

.header-actions { justify-self: end; display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.theme-toggle, .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    background: transparent; border: 1px solid var(--line); color: var(--fg);
    transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}
@media (hover: hover) { .theme-toggle:hover, .nav-toggle:hover { border-color: var(--gold); color: var(--gold); } }
@media (hover: hover) { [data-theme="light"] :is(.theme-toggle, .nav-toggle):hover { color: var(--black); background: var(--gold); } }
.theme-toggle .icon { width: 19px; height: 19px; }
.theme-toggle .icon--moon, [data-theme="light"] .theme-toggle .icon--sun { display: none; }
[data-theme="light"] .theme-toggle .icon--moon { display: block; }
.theme-toggle { border-color: var(--gold); }
.nav-toggle { display: none; flex-shrink: 0; }
.nav-toggle .icon { width: 22px; height: 22px; }

/* Giriş + Kayıt Ol: tek birleşik buton */
.auth-pill { display: inline-flex; align-items: stretch; height: 40px; border: 1px solid var(--gold); }
.auth-pill a {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0 18px;
    font: 600 14px/1 var(--font); white-space: nowrap;
    transition: background-color .15s ease, color .15s ease;
}
.auth-pill__login { color: var(--fg); }
@media (hover: hover) { .auth-pill__login:hover { background: var(--tint); } }
.auth-pill__register { background: var(--gold); color: var(--black); }
@media (hover: hover) { .auth-pill__register:hover { background: var(--fg); color: var(--bg); } }

/* Üye girişliyken: Para Yatır */
.hbtn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 40px; padding: 0 18px;
    font: 600 14px/1 var(--font); white-space: nowrap;
    border: 1px solid transparent;
    transition: background-color .15s ease, color .15s ease;
}
.hbtn .icon { width: 17px; height: 17px; }
.hbtn--gold { background: var(--gold); color: var(--black); }
@media (hover: hover) { .hbtn--gold:hover { background: var(--fg); color: var(--bg); } }

/* ---------- Vitrin: banner slider + yan kartlar ---------- */

.showcase { padding: 8px 0; }
.showcase__grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; }

.banner-slider {
    --delay: 6s;
    position: relative; overflow: hidden; isolation: isolate;
    aspect-ratio: 1600 / 650;
    background: var(--bg);
    border: 1px solid var(--line);
}
.bslide {
    position: absolute; inset: 0;
    opacity: 0; visibility: hidden;
    transition: opacity .5s ease, visibility 0s linear .5s;
}
.bslide.is-active { opacity: 1; visibility: visible; transition: opacity .5s ease; }
.bslide__img { width: 100%; height: 100%; object-fit: cover; }

/* Resim yüklenmemişken gösterilen hazır tasarım: solda yazı, sağda hareketli çizim */
.bslide__fallback {
    position: absolute; inset: 0;
    display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 24px;
    padding: 0 4% 0 6%;
    background: var(--black);
}
.bslide__copy { display: grid; gap: 12px; justify-items: start; }
.bslide__title { font-size: clamp(24px, 3.2vw, 44px); font-weight: 800; line-height: 1.08; }
.bslide__title span { display: block; width: fit-content; }
.bslide__text { color: var(--muted); font-size: 16px; max-width: 420px; }
.bslide__copy .btn { margin-top: 4px; pointer-events: none; }
.bslide__visual { height: 100%; display: grid; place-items: center; }
.slide-art { width: 100%; height: 86%; overflow: visible; }
.slide-art text { font-family: var(--font); text-anchor: middle; dominant-baseline: central; }

/* Slot makinesi: makaralar sırayla durur, ödeme çizgisi yanıp söner */
.slots__title { font-size: 20px; font-weight: 800; letter-spacing: .24em; fill: var(--black); }
.slots__seven { font-size: 44px; font-weight: 800; fill: var(--gold); stroke: var(--black); stroke-width: 2px; paint-order: stroke; }
.slots__bar { font-size: 14px; font-weight: 800; fill: var(--white); }
.slots__reel { transform: translateY(-600px); }
:is(.bslide.is-active, .auth-promo) .slots__reel--0 { animation: reel 1.4s cubic-bezier(.2,.65,.25,1) .3s both; }
:is(.bslide.is-active, .auth-promo) .slots__reel--1 { animation: reel 1.8s cubic-bezier(.2,.65,.25,1) .3s both; }
:is(.bslide.is-active, .auth-promo) .slots__reel--2 { animation: reel 2.2s cubic-bezier(.2,.65,.25,1) .3s both; }
:is(.bslide.is-active, .auth-promo) .slots__payline { animation: flash .3s steps(2) 2.5s 6 both; }
.slots__lever { transform-box: view-box; transform-origin: 326px 150px; }
:is(.bslide.is-active, .auth-promo) .slots__lever { animation: lever .5s ease-in-out .05s; }
@keyframes reel { from { transform: translateY(-600px); } to { transform: translateY(0); } }
@keyframes flash { 50% { opacity: 0; } }
@keyframes lever { 50% { transform: rotate(35deg); } }

/* Bonus: altın blok yükselir */
.bonusart__label { font-size: 22px; font-weight: 700; fill: var(--white); }
.bonusart__caption { font-size: 12px; font-weight: 600; letter-spacing: .18em; fill: rgba(255,255,255,.62); }
.bonusart__plus { font-size: 21px; font-weight: 800; fill: var(--black); }
.bonusart__total { font-size: 26px; font-weight: 800; fill: var(--gold); }
.bonusart__grow { transform-box: view-box; transform-origin: 265px 164px; }
:is(.bslide.is-active, .auth-promo) .bonusart__grow { animation: grow .7s cubic-bezier(.3,.7,.3,1) .5s both; }
:is(.bslide.is-active, .auth-promo) .bonusart__total { animation: appear .3s ease 1.2s both; }
:is(.bslide.is-active, .auth-promo) .bonusart__arrow { animation: nudge 1s ease-in-out 1.4s infinite; }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes nudge { 50% { transform: translateX(6px); } }

/* Blackjack: kartlar açılır, 21 rozeti çıkar */
.cards__rank { font-size: 24px; font-weight: 800; fill: var(--black); }
.cards__21 { font-size: 28px; font-weight: 800; fill: var(--black); }
.cards__card { transform-box: fill-box; transform-origin: 50% 100%; }
.cards__card--a { transform: translateX(-38px) rotate(-14deg); }
.cards__card--k { transform: translateX(38px) rotate(12deg); }
:is(.bslide.is-active, .auth-promo) .cards__card--a { animation: deal-a .7s cubic-bezier(.3,.7,.3,1) .3s both; }
:is(.bslide.is-active, .auth-promo) .cards__card--k { animation: deal-k .7s cubic-bezier(.3,.7,.3,1) .6s both; }
.cards__badge { transform-box: fill-box; transform-origin: center; }
:is(.bslide.is-active, .auth-promo) .cards__badge { animation: pop .35s cubic-bezier(.3,1.6,.5,1) 1.3s both; }
@keyframes deal-a { from { transform: translate(120px, -160px) rotate(40deg); opacity: 0; } }
@keyframes deal-k { from { transform: translate(120px, -160px) rotate(40deg); opacity: 0; } }
@keyframes pop { from { transform: scale(0); } }

.banner-slider__arrow {
    position: absolute; bottom: 12px; z-index: 2;
    width: 34px; height: 34px;
    display: grid; place-items: center;
    background: var(--black); border: 1px solid var(--gold); color: var(--gold);
    opacity: 0; transition: opacity .2s ease, background-color .15s ease, color .15s ease;
}
.banner-slider__arrow .icon { width: 18px; height: 18px; }
/* Oklar sağ alt köşede yan yana: yazının ve çizimin üstüne binmez */
.banner-slider__arrow--prev { right: 52px; }
.banner-slider__arrow--next { right: 12px; }
.banner-slider__arrow:focus-visible { opacity: 1; }
@media (hover: hover) { .banner-slider:hover .banner-slider__arrow { opacity: 1; } }
@media (hover: hover) { .banner-slider__arrow:hover { background: var(--gold); color: var(--black); } }

.banner-slider__dots {
    position: absolute; left: 50%; bottom: 14px; z-index: 2; transform: translateX(-50%);
    display: flex; gap: 6px; padding: 7px 8px;
    background: var(--black);
}
.bdot {
    position: relative; overflow: hidden;
    width: 10px; height: 4px; padding: 0; border: 0;
    background: rgba(255,255,255,.4);
    transition: width .3s ease;
}
.bdot.is-active { width: 32px; }
.bdot.is-active::after { /* otomatik geçiş ilerlemesi */
    content: ""; position: absolute; inset: 0;
    background: var(--gold); transform-origin: left;
    animation: fill var(--delay) linear forwards;
}
.banner-slider.is-paused .bdot::after { animation-play-state: paused; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Sağ sütun slider'ın yüksekliğini alır: satır yüksekliğini yalnızca slider belirler */
.showcase__side { display: grid; grid-template-rows: 1fr 1fr; gap: 20px; height: 0; min-height: 100%; }
.promo-card {
    position: relative; overflow: hidden; isolation: isolate;
    display: flex; align-items: center;
    min-height: 0;
    padding: 14px 22px;
    background: var(--bg); color: var(--fg);
    border: 1px solid var(--line);
    transition: border-color .15s ease;
}
@media (hover: hover) { .promo-card:hover { border-color: var(--gold); } }
.promo-card__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.promo-card.has-img::before { /* yazı okunsun diye düz karartma */
    content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(10,10,10,.5);
}
[data-theme="light"] .promo-card.has-light-img::before { background: rgba(255,255,255,.6); }
.promo-card__icon { position: absolute; right: -14px; top: 50%; z-index: -1; transform: translateY(-50%); color: var(--line-strong); }
.promo-card__icon .icon { width: 150px; height: 150px; stroke-width: 1.2; }
.promo-card__body { position: relative; display: grid; gap: 6px; max-width: 75%; }
.promo-card.has-art .promo-card__body { max-width: 62%; }
.promo-card__eyebrow { display: inline-flex; align-items: center; font: 600 11px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); }
.promo-card__title {
    font: 600 clamp(15px, 1.4vw, 19px)/1.25 var(--font);
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.promo-card__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font: 500 14px/1 var(--font); }
.promo-card__link .icon { width: 16px; height: 16px; color: var(--gold); transition: transform .2s ease; }
@media (hover: hover) { .promo-card:hover .promo-card__link .icon { transform: translateX(3px); } }

/* Canlı rozeti */
.live-dot { width: 8px; height: 8px; margin-right: 8px; background: var(--gold); animation: blink 1.2s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }

/* Hazır çizimler */
.promo-art { position: absolute; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.roulette { position: absolute; right: -62px; top: 50%; width: 210px; height: 210px; transform: translateY(-50%); }
.roulette__wheel, .roulette__ball { transform-box: view-box; transform-origin: 150px 150px; }
.roulette__wheel { animation: spin 40s linear infinite; }
.roulette__ball { animation: spin 9s linear infinite reverse; }
.roulette__num { font: 700 11px/1 var(--font); text-anchor: middle; dominant-baseline: central; }
@keyframes spin { to { transform: rotate(360deg); } }

.crash { position: absolute; right: 0; bottom: 0; width: 72%; height: 100%; }
.crash__line { stroke-dasharray: 100; stroke-dashoffset: 100; animation: draw 1.6s cubic-bezier(.5,0,.3,1) .2s forwards; }
.crash__area { opacity: 0; animation: appear .3s ease 1.5s forwards; }
.crash__rocket { opacity: 0; transform-box: fill-box; animation: appear .3s ease 1.5s forwards, bob 2.4s ease-in-out 1.8s infinite; }
.crash__flame { transform-box: fill-box; transform-origin: right center; animation: flame .2s steps(2) infinite alternate; }
.crash__stars { animation: twinkle 3s steps(2) infinite; }
.crash__mult {
    position: absolute; right: 14px; top: 12px;
    padding: 5px 10px;
    font: italic 800 18px/1 var(--font);
    color: var(--black); background: var(--gold);
    opacity: 0; animation: appear .3s ease 1.6s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: 1; } }
@keyframes flame { from { transform: scaleX(.7); } to { transform: scaleX(1.1); } }
@keyframes bob { 50% { transform: translate(4px, -4px); } }
@keyframes twinkle { 50% { opacity: .4; } }

/* ---------- Oyun sıraları ve oyun kartı ---------- */

.game-rows { padding: 40px 0 24px; }
.game-rows + .game-rows { padding-top: 0; }   /* ard arda satırlar arasında tek boşluk */
/* Ana sayfa sağlayıcı satırı: kendiliğinden akan kartlar (app.js data-marquee) — yalnızca ortalanmış logo (logosu olmayan
   stüdyoda adı). Sağ ve sol kenar soluklaşarak kaybolur (kullanıcı istedi; sitedeki tek geçişli maske). */
.studios { display: flex; gap: 24px; margin: 0; padding: 0 0 4px; list-style: none; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent); }
.studios::-webkit-scrollbar { display: none; }
.studios li { flex: none; }
.studio { display: grid; place-items: center; width: 220px; height: 70px; padding: 10px 16px; white-space: nowrap;
    border: 1px solid var(--line); background: var(--tint); color: var(--fg); transition: border-color .15s; }
/* Renkli logolar (SoftSwiss): koyu temada isim.svg (koyu parçaları beyaz), açık temada isim-light.svg (açık parçaları siyah) */
.studio__logo { width: 140px; height: 48px; object-fit: contain; }
.studio__name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; font: 600 16px/1.1 var(--font); }
@media (hover: hover) {
    .studio:hover { border-color: var(--gold); }
}
.row-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.row-head__title { display: flex; align-items: center; gap: 10px; font: 600 22px/1.2 var(--font); letter-spacing: 0; }
.row-head__title .icon { width: 24px; height: 24px; color: var(--gold); }
.row-head__actions { display: flex; align-items: center; gap: 8px; }
.row-head__all { display: inline-flex; align-items: center; gap: 2px; margin-right: 8px; font: 500 14px/1 var(--font); color: var(--fg); }
.row-head__all .icon { width: 16px; height: 16px; }
@media (hover: hover) { .row-head__all:hover { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; } }
.row-btn {
    width: 36px; height: 36px; display: grid; place-items: center;
    background: transparent; border: 1px solid var(--line-strong); color: var(--fg);
    transition: background-color .15s ease, color .15s ease, border-color .15s ease, opacity .15s ease;
}
@media (hover: hover) { .row-btn:hover:not(:disabled) { background: var(--gold); border-color: var(--gold); color: var(--black); } }
.row-btn:disabled { opacity: .35; cursor: default; }
.row-btn .icon { width: 18px; height: 18px; }

.game-row {
    display: grid; grid-auto-flow: column;
    grid-auto-columns: calc((100% - 4 * 14px) / 5);
    gap: 14px;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
    scrollbar-width: none; overscroll-behavior-x: contain;
}
.game-row::-webkit-scrollbar { display: none; }
.game-row .game { scroll-snap-align: start; min-width: 0; }

.games { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.game[hidden] { display: none; }
/* Kartın oranı görselin kendi oranıdır (game-card.php satır içi aspect-ratio verir); boyutu bilinmeyen görselde 4:3 */
.game__thumb {
    position: relative; overflow: hidden;
    aspect-ratio: 4 / 3;
    display: grid; place-items: center;
}
.game__thumb--t0 { background: var(--gold);  color: var(--black); }
.game__thumb--t1 { background: var(--black); color: var(--gold); }
.game__thumb--t2 { background: var(--white); color: var(--black); }
/* Görsel kırpılmadan, orijinal oranında kartı doldurur. Yüklenemezse kaldırılır, baş harfler görünür. */
.game__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
/* İSTİSNA — Crash lobisi ve ana sayfadaki Crash satırı: tüm kartlar Aviator görselinin oranında (450×345) eşit boyda, görsel kartı kırparak doldurur */
[data-lobby="crash"] .game__thumb, .game-rows--crash .game__thumb { aspect-ratio: 450 / 345 !important; }
[data-lobby="crash"] .game__thumb img, .game-rows--crash .game__thumb img { object-fit: cover; }
.game__initials { font: italic 800 36px/1 var(--font); letter-spacing: -.03em; }
.game__badge {
    position: absolute; left: 8px; top: 8px;
    padding: 5px 8px;
    font: 600 11px/1 var(--font); text-transform: uppercase; letter-spacing: .06em;
}
.game__badge--new { background: var(--black); color: var(--gold); }
.game__thumb--t1 .game__badge--new { background: var(--gold); color: var(--black); }
/* Düğmeler görselin üstünde katman: fareyle gelince (veya klavyeyle odaklanınca) siyah perde + ortada Oyna ve Eğlencesine.
   Katmanın boş yeri tıklamayı alttaki görsele (Oyna) geçirir; dokunmatik ekranda ilk dokunuş katmanı açar (app.js, .is-open). */
.game__media { position: relative; }
.game__actions {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
    background: rgba(10, 10, 10, .78);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .15s, visibility .15s;
}
.game__btn { pointer-events: auto; display: grid; place-items: center; width: 70%; max-width: 160px; height: 36px; padding: 0 6px;
    border: 1px solid var(--white); color: var(--white);
    font: 600 12px/1 var(--font); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    transition: background .15s, border-color .15s, color .15s; }
.game__btn--play { height: 40px; background: var(--gold); border-color: var(--gold); color: var(--black); }
.game__media:focus-within .game__actions,
.game__media.is-open .game__actions { opacity: 1; visibility: visible; }
@media (hover: hover) {
    .game__media:hover .game__actions { opacity: 1; visibility: visible; }
    .game__btn:hover { border-color: var(--gold); color: var(--gold); }
    .game__btn--play:hover { background: var(--white); border-color: var(--white); color: var(--black); }
}
/* Oyun ekranı: üst çubuk + sağlayıcının oyunu (iframe) ekranın kalanını doldurur */
.play { border-top: 1px solid var(--line); }
.is-bare .play { border-top: 0; }
.play__bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; height: 56px; padding: 0 16px; padding-top: env(safe-area-inset-top); box-sizing: content-box; border-bottom: 1px solid var(--line); background: var(--bg); }
[data-theme="light"] .play__bar .only-dark { display: block; }
[data-theme="light"] .play__bar .only-light { display: none; }
.play__back { display: inline-flex; align-items: center; gap: 6px; font: 600 15px/1 var(--font); color: var(--fg); white-space: nowrap; }
.play__back .icon { width: 20px; height: 20px; }
@media (hover: hover) { .play__back:hover { color: var(--gold); } }
.play__start { display: flex; align-items: center; gap: 14px; min-width: 0; }
.play__brand { padding-left: 14px; border-left: 1px solid var(--line); }
.play__brand .brand__mark { height: 30px; }
.play__short { display: none; }
.play__skip { margin-top: 16px; }
.play__frame { display: block; width: 100%; height: calc(100dvh - 57px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); min-height: 360px; border: 0; background: #0a0a0a; }
.play__error { padding: 40px 16px; }
.game__name { margin-top: 10px; font: 600 14px/1.3 var(--font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game__provider { font-size: 13px; color: var(--muted); }

/* ---------- Oyun kategorileri ---------- */

.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cat {
    display: grid; gap: 10px; align-content: start;
    padding: 28px;
    border: 1px solid var(--line);
    transition: border-color .15s ease, background-color .15s ease;
}
@media (hover: hover) { .cat:hover { border-color: var(--gold); background: var(--tint); } }

/* Ortak ikon kutusu: altın zemin, siyah ikon */
.cat__icon, .page-head__icon, .loyalty__icon {
    flex-shrink: 0; display: grid; place-items: center;
    background: var(--gold); color: var(--black);
}
.cat__icon { width: 52px; height: 52px; margin-bottom: 8px; }
.cat__icon .icon { width: 26px; height: 26px; }
.cat__title { font-size: 21px; font-weight: 700; }
.cat__text { color: var(--muted); font-size: 15px; }
.cat__more { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; color: var(--accent-text); font-weight: 600; font-size: 14px; }
.cat__more .icon { width: 16px; height: 16px; transition: transform .2s ease; }
@media (hover: hover) { .cat:hover .cat__more .icon { transform: translateX(4px); } }

/* ---------- Sağlayıcı şeridi ---------- */

.providers { overflow: hidden; padding: 24px 0; border-block: 1px solid var(--line); }
.providers__track { display: flex; width: max-content; animation: marquee 45s linear infinite; }
@media (hover: hover) { .providers:hover .providers__track { animation-play-state: paused; } }
.providers__list { display: flex; margin: 0; padding: 0; list-style: none; }
.providers__list li {
    position: relative; padding: 0 40px;
    font: 700 20px/1 var(--font); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
    color: var(--muted); transition: color .15s ease;
}
.providers__list li::after { content: ""; position: absolute; right: -4px; top: 50%; width: 8px; height: 8px; transform: translateY(-50%); background: var(--gold); }
@media (hover: hover) { .providers__list li:hover { color: var(--fg); } }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Bonuslar ---------- */

.bonuses { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.bonus {
    grid-column: span 2;
    position: relative;
    display: flex; flex-direction: column; gap: 8px;
    padding: 28px 24px 24px;
    background: var(--bg);
    border: 1px solid var(--line); border-top: 4px solid var(--gold);
    transition: border-color .15s ease;
}
.bonus--half { grid-column: span 3; }
.bonus--full { grid-column: 1 / -1; }
@media (hover: hover) { .bonus:hover { border-color: var(--gold); } }
.bonus__tag {
    align-self: flex-start; padding: 5px 10px;
    font: 600 11px/1 var(--font); letter-spacing: .12em; text-transform: uppercase;
    background: var(--gold); color: var(--black);
}
.bonus__amount { margin-top: 10px; font: italic 800 56px/1 var(--font); letter-spacing: -.03em; color: var(--accent-text); }
.bonus__title { font-size: 20px; font-weight: 700; }
.bonus__text { color: var(--muted); font-size: 15px; flex: 1; }
.bonus__actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 14px; }

/* Baykuş Puan: bonusların altında tam genişlik kart */
.loyalty {
    grid-column: 1 / -1;
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 32px;
    padding: 28px 32px;
    background: var(--bg);
    border: 2px solid var(--gold);
}
.loyalty__amca { width: 170px; height: auto; }
.loyalty__body { display: grid; gap: 8px; justify-items: start; }
.loyalty__title { font-size: 26px; font-weight: 800; }
.loyalty__text { color: var(--muted); font-size: 15px; max-width: 640px; }
.loyalty__features { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; width: 100%; }
.loyalty__features li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); line-height: 1.45; }
/* Açıklamalar en fazla 2 satır: metin uzasa da kart yüksekliği bozulmaz */
.loyalty__desc { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.loyalty__features strong { display: block; color: var(--fg); font: 600 15px/1.3 var(--font); margin-bottom: 2px; }
.loyalty__icon { width: 36px; height: 36px; }
.loyalty__icon .icon { width: 19px; height: 19px; }

/* Bonus şartları penceresi */
.dialog {
    width: min(460px, calc(100vw - 32px));
    padding: 24px;
    background: var(--bg); color: var(--fg);
    border: 1px solid var(--line-strong); border-top: 4px solid var(--gold);
}
.dialog::backdrop { background: rgba(10,10,10,.8); }
.dialog__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.dialog__head h3 { font-size: 22px; }
.dialog__close { width: 38px; height: 38px; border: 1px solid var(--line-strong); background: none; display: grid; place-items: center; }
@media (hover: hover) { .dialog__close:hover { background: var(--gold); border-color: var(--gold); color: var(--black); } }
.dialog__list { margin: 0 0 22px; padding: 0; list-style: none; display: grid; gap: 10px; }
.dialog__list li { position: relative; padding-left: 22px; }
.dialog__list li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 8px; height: 8px; background: var(--gold); }

/* ---------- SSS ---------- */

.faq { display: grid; gap: 10px; }
.faq__item { border: 1px solid var(--line); transition: border-color .15s ease; }
.faq__item[open] { border-color: var(--gold); border-left-width: 4px; }
.faq__item summary {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 20px 22px;
    font: 600 17px/1.4 var(--font);
    cursor: pointer; list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon { color: var(--gold); transition: transform .2s ease; }
[data-theme="light"] .faq__icon { color: var(--black); }
.faq__item[open] .faq__icon { transform: rotate(45deg); }
.faq__item p { padding: 0 22px 20px; color: var(--muted); }

/* ---------- Ödeme yöntemleri ---------- */

.payments { padding: 28px 0; border-top: 1px solid var(--line); }
.payments__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px 28px; }
.payments__label { font: 600 13px/1 var(--font); letter-spacing: .16em; text-transform: uppercase; color: var(--accent-text); }
.payments__list { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.payments__list li {
    display: inline-flex; align-items: center; gap: 8px;
    height: 42px; padding: 0 16px;
    border: 1px solid var(--line);
    font: 500 14px/1 var(--font);
}
.payments__list .icon { width: 18px; height: 18px; color: var(--gold); }
[data-theme="light"] .payments__list .icon { color: var(--black); }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); }
.site-footer .payments { border-top: 0; border-bottom: 1px solid var(--line); }
.site-footer__grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 40px; padding-top: 56px; padding-bottom: 48px; }
.site-footer__brand { display: grid; gap: 16px; align-content: start; }
.site-footer__brand p { color: var(--muted); max-width: 380px; font-size: 15px; }
.site-footer__trust { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; }
.site-footer__trust li {
    display: inline-flex; align-items: center; gap: 6px;
    height: 32px; padding: 0 10px;
    border: 1px solid var(--line);
    font: 500 12px/1 var(--font); letter-spacing: .04em; text-transform: uppercase;
}
.site-footer__trust .icon { width: 15px; height: 15px; color: var(--gold); }
[data-theme="light"] .site-footer__trust .icon { color: var(--black); }
.site-footer__col { display: grid; gap: 10px; align-content: start; font-size: 15px; }
.site-footer__col h3 { font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 6px; }
.site-footer__col h3 button {
    display: flex; align-items: center; justify-content: space-between; width: 100%;
    padding: 0; background: none; border: 0;
    font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit;
    pointer-events: none;   /* yalnızca mobilde açılır */
}
.site-footer__col h3 .icon { display: none; width: 18px; height: 18px; transition: transform .2s ease; }
.site-footer__links { display: grid; gap: 10px; align-content: start; }
.site-footer__col a { color: var(--muted); transition: color .15s ease; justify-self: start; }
@media (hover: hover) { .site-footer__col a:hover { color: var(--fg); } }
.site-footer__wa { white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; color: var(--fg) !important; font-weight: 600; }
.site-footer__wa .icon { color: var(--gold); }
[data-theme="light"] .site-footer__wa .icon { color: var(--black); }

.site-footer__legal { padding-top: 28px; padding-bottom: 28px; border-top: 1px solid var(--line); font-size: 13px; }
.license a { color: var(--fg); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; white-space: nowrap; }
@media (hover: hover) { .license a:hover { color: var(--accent-text); } }

.site-footer__bottom { border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.site-footer__bottom-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px; padding-top: 18px; padding-bottom: 18px; }
.site-footer__bottom nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
@media (min-width: 901px) { .site-footer__bottom-inner { padding-right: 104px; } }   /* yüzen destek butonuna yer */
.site-footer__bottom a { transition: color .15s ease; }
@media (hover: hover) { .site-footer__bottom a:hover { color: var(--fg); } }
.license { display: flex; gap: 16px; align-items: flex-start; color: var(--muted); }
.license strong { color: var(--fg); font-weight: 600; }
/* 18+ rozeti: tanınırlık için bilinçli istisna — kırmızı ve yuvarlak */
.badge-18 {
    flex-shrink: 0; width: 44px; height: 44px;
    display: grid; place-items: center;
    border-radius: 50%;
    border: 2px solid #dc2626; color: #dc2626;
    font: 800 14px/1 var(--font);
}

/* ---------- Kurumsal / yasal sayfalar ---------- */

.legal { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 48px; align-items: start; }
.legal__nav { position: sticky; top: calc(var(--header-h) + 16px); display: grid; border: 1px solid var(--line); }
.legal__nav a {
    display: flex; align-items: center; gap: 10px;
    padding: 13px 16px;
    font: 500 14px/1.2 var(--font); color: var(--muted);
    border-left: 3px solid transparent;
    transition: color .15s ease, background-color .15s ease, border-color .15s ease;
}
.legal__nav a + a { border-top: 1px solid var(--line); }
.legal__nav a .icon { width: 18px; height: 18px; }
@media (hover: hover) { .legal__nav a:hover { color: var(--fg); border-left-color: var(--gold); } }
.legal__nav a.is-active { background: var(--gold); border-left-color: var(--gold); color: var(--black); font-weight: 600; }

.legal__body { max-width: 780px; }
.legal__updated {
    display: inline-flex; align-items: center; gap: 8px;
    font: 500 13px/1 var(--font); color: var(--muted);
    padding-bottom: 20px; margin-bottom: 8px;
}
.legal__updated .icon { width: 16px; height: 16px; color: var(--gold); }
[data-theme="light"] .legal__updated .icon { color: var(--black); }

/* Yasal metin tipografisi: numaralı başlıklar (altın kare), kare madde işaretleri */
.prose { counter-reset: prose-h; color: var(--muted); font-size: 16px; line-height: 1.75; }
.prose h2 {
    counter-increment: prose-h;
    display: flex; align-items: center; gap: 14px;
    margin: 40px 0 14px; padding-top: 28px; border-top: 1px solid var(--line);
    font-size: 21px; font-weight: 700; color: var(--fg);
}
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h2::before {
    content: counter(prose-h, decimal-leading-zero);
    flex-shrink: 0; width: 34px; height: 34px;
    display: grid; place-items: center;
    background: var(--gold); color: var(--black);
    font: 700 13px/1 var(--font);
}
.prose p + p, .prose p + ul, .prose ul + p { margin-top: 14px; }
.prose ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.prose li { position: relative; padding-left: 22px; }
.prose li::before { content: ""; position: absolute; left: 2px; top: .68em; width: 7px; height: 7px; background: var(--gold); }
.prose strong { color: var(--fg); font-weight: 600; }
.prose a { color: var(--fg); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 3px; }
@media (hover: hover) { .prose a:hover { color: var(--accent-text); } }

/* ---------- Affiliate başvurusu ---------- */

.aff { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; align-items: start; }
.aff__card { position: sticky; top: calc(var(--header-h) + 16px); padding: 26px 26px 24px; border: 1px solid var(--line-strong); border-top: 4px solid var(--gold); background: var(--bg); }
.aff__title { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 700; }
.aff__title .icon { width: 22px; height: 22px; color: var(--gold); }
.aff__sub { margin: 6px 0 20px; color: var(--muted); font-size: 15px; }
.aff__note { margin-top: 18px; font-size: 14px; color: var(--muted); }
.aff__trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- Canlı destek penceresi ---------- */

.chat { position: fixed; right: 20px; bottom: 20px; z-index: 80; display: grid; justify-items: end; gap: 12px; }
/* Buton: siyah kare + altın çerçeve içinde amca logosu, köşede konuşma rozeti (iki temada da siyah) */
.chat__fab {
    position: relative;
    width: 64px; height: 64px;
    display: grid; place-items: center;
    background: var(--black); color: var(--white); border: 2px solid var(--gold);
    transition: border-color .15s ease, background-color .15s ease;
}
.chat__fab img { width: 48px; height: 48px; transition: transform .15s ease; }
@media (hover: hover) { .chat__fab:hover img { transform: scale(1.08); } }
.chat__fab > .icon { width: 26px; height: 26px; }
.chat.is-open .chat__fab { border-color: var(--white); }
@media (hover: hover) { .chat__fab:hover { border-color: var(--white); } }
[data-theme="light"] .chat.is-open .chat__fab { border-color: var(--gold); background: var(--gold); color: var(--black); }
@media (hover: hover) { [data-theme="light"] .chat__fab:hover { border-color: var(--gold); background: var(--gold); color: var(--black); } }
.chat__fab-close, .chat.is-open .chat__fab-open, .chat.is-open .chat__fab-tag { display: none; }
.chat.is-open .chat__fab-close { display: block; }
.chat__fab-tag {
    position: absolute; top: -10px; right: -10px;
    width: 26px; height: 26px;
    display: grid; place-items: center;
    background: var(--gold); color: var(--black); border: 2px solid var(--black);
}
.chat__fab-tag .icon { width: 16px; height: 16px; }
.chat__badge { position: absolute; top: -6px; left: -6px; width: 14px; height: 14px; background: #dc2626; border: 2px solid var(--black); }

.chat__panel {
    width: 380px; height: min(600px, calc(100dvh - 110px));
    display: flex; flex-direction: column;
    background: var(--bg); border: 1px solid var(--line-strong); border-top: 3px solid var(--gold);
}
.chat__panel[hidden] { display: none; }

.chat__head { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; border-bottom: 1px solid var(--line); }
.chat__avatar { flex-shrink: 0; width: 42px; height: 42px; display: grid; place-items: center; background: var(--black); border: 1px solid var(--gold); }
.chat__avatar img { width: 32px; height: 32px; }
.chat__title { flex: 1; min-width: 0; display: grid; gap: 3px; line-height: 1; }
.chat__title strong { font: 700 16px/1 var(--font); }
.chat__title span { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.chat__title span::before { content: ""; width: 7px; height: 7px; background: var(--gold); }
.chat[data-status="waiting"] .chat__title span::before { animation: chat-blink 1s steps(2) infinite; }
.chat.is-closed .chat__title span::before { background: var(--muted); }
.chat__close { width: 36px; height: 36px; display: grid; place-items: center; background: none; border: 1px solid transparent; color: var(--muted); }
@media (hover: hover) { .chat__close:hover { border-color: var(--gold); color: var(--fg); } }
.chat__end { height: 32px; padding: 0 10px; background: none; border: 1px solid var(--line); color: var(--muted); font: 600 12px/1 var(--font); white-space: nowrap; }
.chat__end[hidden] { display: none; }
.chat__end.is-confirm { border-color: var(--gold); color: var(--fg); }
@media (hover: hover) { .chat__end:hover { border-color: var(--gold); color: var(--fg); } }

.chat__log { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 6px; padding: 16px 14px; scrollbar-width: thin; }
.chat__msg { display: grid; gap: 4px; max-width: 86%; }
.chat__msg + .chat__msg:not(.chat__msg--user, :has(.chat__name)) { margin-top: -2px; }
.chat__msg--user { align-self: flex-end; justify-items: end; margin-top: 6px; }
.chat__msg--user + .chat__msg--user { margin-top: 0; }
.chat__name { margin-top: 6px; font: 600 11px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); }
.chat__bubble { padding: 10px 13px; font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.chat__msg--bot .chat__bubble, .chat__msg--agent .chat__bubble { background: var(--tint); border: 1px solid var(--line); }
.chat__msg--agent .chat__bubble { border-left: 3px solid var(--gold); }
.chat__msg--user .chat__bubble { background: var(--gold); color: var(--black); white-space: pre-wrap; }
.chat__msg.is-pending { opacity: .6; }
.chat__bubble p + p, .chat__bubble p + ul, .chat__bubble ul + p { margin-top: 8px; }
.chat__bubble ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.chat__bubble li { position: relative; padding-left: 15px; }
.chat__bubble li::before { content: ""; position: absolute; left: 1px; top: .62em; width: 5px; height: 5px; background: var(--gold); }
[data-theme="light"] .chat__bubble li::before { background: var(--black); }
.chat__bubble strong { font-weight: 700; color: var(--fg); }
.chat__bubble a { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.chat__sys {
    display: flex; align-items: center; gap: 10px;
    margin: 10px 0; font-size: 12px; line-height: 1.4; color: var(--muted); text-align: center;
}
.chat__sys::before, .chat__sys::after { content: ""; flex: 1; min-width: 16px; height: 1px; background: var(--line); }

/* Kapanışta puanlama: kare yıldız butonları, üzerine gelinen ve öncekiler altın */
.chat__rate { display: grid; justify-items: center; gap: 10px; margin: 6px 0 4px; padding: 14px; border: 1px solid var(--line); text-align: center; }
.chat__rate p { font: 600 14px/1.3 var(--font); }
.chat__stars { display: flex; gap: 6px; }
.chat__stars button { width: 38px; height: 38px; display: grid; place-items: center; background: none; border: 1px solid var(--line-strong); color: var(--muted); font-size: 18px; line-height: 1; }
.chat__stars button.is-on, .chat__stars button:focus-visible { background: var(--gold); border-color: var(--gold); color: var(--black); }
.chat__stars button:disabled { cursor: wait; }

/* Canlı destek kapalı: mesaj bırakma formu (sohbet alanları gizli) */
.chat.is-closed .chat__log, .chat.is-closed .chat__quick, .chat.is-closed .chat__wait, .chat.is-closed .chat__form { display: none; }
.chat__leave { flex: 1; min-height: 0; overflow-y: auto; display: grid; align-content: start; gap: 12px; padding: 16px 14px; }
.chat__leave[hidden] { display: none; }
.chat__leave--inline { flex: none; overflow: visible; margin: 6px 0 4px; padding: 14px; border: 1px solid var(--line); border-left: 3px solid var(--gold); }
.chat__leave--inline .chat__leave-lead { display: none; }
.chat__leave-lead { font-size: 13px; line-height: 1.5; color: var(--muted); }
.chat__leave-lead strong { display: block; margin-bottom: 2px; font-size: 15px; color: var(--fg); }
.chat__leave label { display: grid; gap: 6px; font: 600 13px/1.2 var(--font); }
.chat__leave label small { font-weight: 400; color: var(--muted); }
.chat__leave input, .chat__leave textarea { width: 100%; padding: 10px 12px; background: var(--bg); border: 1px solid var(--line-strong); outline: 0; color: var(--fg); font: 400 14px/1.4 var(--font); resize: vertical; }
.chat__leave input { height: 42px; padding-block: 0; }
.chat__leave input:focus, .chat__leave textarea:focus { border-color: var(--gold); }
.chat__leave label.is-invalid input, .chat__leave label.is-invalid textarea { border: 2px solid #dc2626; }
.chat__leave-error { padding-left: 10px; border-left: 3px solid #dc2626; font-size: 13px; }
.chat__leave-error[hidden] { display: none; }
.chat__leave-done { flex: 1; display: grid; align-content: center; justify-items: center; gap: 12px; padding: 24px; text-align: center; font-size: 14px; line-height: 1.5; color: var(--muted); }
.chat__leave-done[hidden] { display: none; }
.chat__leave-done strong { display: block; color: var(--fg); font-size: 16px; }
.chat__leave-done .icon { width: 40px; height: 40px; padding: 8px; background: var(--gold); color: var(--black); }
@media (max-width: 600px) { .chat__leave input, .chat__leave textarea { font-size: 16px; } }

/* Şifremi unuttum: sohbetteki güvenli şifre alanı */
.chat__reset { display: grid; gap: 8px; margin: 6px 0 4px; padding: 14px; border: 1px solid var(--line); border-left: 3px solid var(--gold); }
.chat__reset-title { font: 600 14px/1.3 var(--font); }
.chat__reset input { height: 42px; padding: 0 12px; background: var(--bg); border: 1px solid var(--line-strong); outline: 0; color: var(--fg); font: 400 14px var(--font); }
.chat__reset input:focus { border-color: var(--gold); }
.chat__reset-hint { font-size: 12px; color: var(--muted); }
.chat__reset-error { padding-left: 10px; border-left: 3px solid var(--red, #dc2626); font-size: 13px; }
.chat__reset-error[hidden] { display: none; }
@media (max-width: 600px) { .chat__reset input { font-size: 16px; } }

.chat__dots { display: inline-flex; gap: 4px; padding: 4px 0; }
.chat__dots i { width: 6px; height: 6px; background: var(--gold); animation: chat-dot 1.2s infinite; }
.chat__dots i:nth-child(2) { animation-delay: .2s; }
.chat__dots i:nth-child(3) { animation-delay: .4s; }
[data-theme="light"] .chat__dots i { background: var(--black); }
@keyframes chat-dot { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }
@keyframes chat-blink { 50% { opacity: 0; } }

.chat__quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 12px; }
.chat__quick[hidden] { display: none; }
.chat__quick button {
    height: 32px; padding: 0 11px;
    background: none; border: 1px solid var(--line-strong);
    font: 500 13px/1 var(--font);
}
@media (hover: hover) { .chat__quick button:hover { border-color: var(--gold); background: var(--tint); } }

.chat__wait { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.4; color: var(--muted); }
.chat__wait[hidden] { display: none; }
.chat__wait strong { color: var(--accent-text); font-size: 14px; }

.chat__form { display: flex; align-items: flex-end; border-top: 1px solid var(--line); }
.chat__form textarea {
    flex: 1; min-width: 0; max-height: 120px; resize: none;
    padding: 15px 14px; background: none; border: 0; outline: 0; color: var(--fg);
    font: 400 14px/1.4 var(--font);
}
.chat__form textarea::placeholder { color: var(--muted); }
.chat__form:focus-within { border-top-color: var(--gold); }
.chat__send { flex-shrink: 0; width: 50px; height: 50px; margin: 0; display: grid; place-items: center; background: var(--gold); color: var(--black); border: 0; }
@media (hover: hover) { .chat__send:hover { background: var(--fg); color: var(--bg); } }
.chat__send:disabled { opacity: .5; cursor: wait; }
.chat__send .icon { width: 20px; height: 20px; }

/* ---------- Mobil menü (soldan açılan çekmece) ---------- */

.drawer { display: none; position: fixed; inset: 0; z-index: 95; visibility: hidden; transition: visibility 0s linear .25s; }
.drawer.is-open { visibility: visible; transition: none; }
.drawer__overlay { position: absolute; inset: 0; background: rgba(10,10,10,.72); opacity: 0; transition: opacity .25s ease; }
.drawer.is-open .drawer__overlay { opacity: 1; }
.drawer__panel {
    position: absolute; top: 0; bottom: 0; left: 0;
    width: min(330px, 86vw);
    display: flex; flex-direction: column; gap: 16px;
    padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
    overflow-y: auto; overscroll-behavior: contain;
    background: var(--bg); border-right: 1px solid var(--line-strong);
    transform: translateX(-100%); transition: transform .25s ease;
}
.drawer.is-open .drawer__panel { transform: none; }
body.has-drawer { overflow: hidden; }

.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.drawer__head .brand__mark { height: 34px; }
.drawer__head .brand__word { font-size: 21px; }
.drawer__close { width: 40px; height: 40px; display: grid; place-items: center; background: none; border: 1px solid var(--line-strong); color: var(--fg); }
.drawer__close .icon { width: 20px; height: 20px; }

.drawer__user { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); }
.drawer__user div { display: grid; gap: 4px; line-height: 1.1; min-width: 0; }
.drawer__user strong { font-size: 15px; }
.drawer__user span:not(.account__avatar) { font-size: 12px; color: var(--muted); }
.drawer__auth { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.drawer__auth .btn { min-height: 46px; padding: 0 10px; font-size: 14px; }
.drawer__auth .btn--ghost { border-color: var(--gold); }
.drawer__auth .icon { width: 18px; height: 18px; }

.drawer__nav { display: grid; }
.drawer__link {
    display: flex; align-items: center; gap: 14px;
    height: 52px; padding: 0 12px 0 13px;
    border-left: 3px solid transparent; border-bottom: 1px solid var(--line);
    font: 500 15px/1 var(--font); color: var(--fg);
}
.drawer__link .icon { width: 21px; height: 21px; color: var(--muted); }
.drawer__link .drawer__chev { width: 16px; height: 16px; margin-left: auto; }
.drawer__link.is-active { background: var(--tint); border-left-color: var(--gold); color: var(--gold); font-weight: 600; }
.drawer__link.is-active .icon { color: var(--gold); }
[data-theme="light"] .drawer__link.is-active, [data-theme="light"] .drawer__link.is-active .icon { background: var(--gold); color: var(--black); }
[data-theme="light"] .drawer__link.is-active { border-left-color: var(--black); }

.drawer__foot { margin-top: auto; display: grid; gap: 12px; padding-top: 8px; }
.drawer__theme { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.drawer__theme > span { font: 600 12px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); }
.seg { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line-strong); }
.seg button {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    height: 38px; padding: 0 14px;
    background: none; border: 0; color: var(--muted);
    font: 500 13px/1 var(--font);
}
.seg button .icon { width: 16px; height: 16px; }
.seg button[aria-pressed="true"] { background: var(--gold); color: var(--black); font-weight: 600; }

/* ---------- Mobil alt menü ---------- */

.tabbar { display: none; }
.tabbar__item {
    position: relative;
    display: grid; justify-items: center; align-content: center; gap: 5px;
    height: var(--tabbar-h); padding: 0 2px;
    background: none; border: 0;
    font: 500 11px/1 var(--font); color: var(--muted); white-space: nowrap;
}
.tabbar__item > .icon { width: 22px; height: 22px; }
.tabbar__item.is-active { color: var(--gold); font-weight: 600; }

/* Ortadaki destek: çubuğun üstüne taşan büyük amca */
.tabbar__support { align-content: end; padding-bottom: 12px; }   /* yazı diğer sekmelerle aynı hizada */
.tabbar__amca {
    position: absolute; left: 50%; top: -24px; transform: translateX(-50%);
    width: 60px; height: 60px;
    display: grid; place-items: center;
    background: var(--black); border: 2px solid var(--gold);
    transition: background-color .15s ease;
}
.tabbar__amca img { width: 46px; height: 46px; }
.tabbar__tag {
    position: absolute; top: -9px; right: -9px;
    width: 22px; height: 22px;
    display: grid; place-items: center;
    background: var(--gold); color: var(--black); border: 2px solid var(--black);
}
.tabbar__tag .icon { width: 13px; height: 13px; }
.tabbar__amca .chat__badge { top: -7px; left: -7px; width: 13px; height: 13px; }
.tabbar__support.is-active { color: var(--gold); }
.tabbar__support.is-active .tabbar__amca { background: var(--gold); }

/* ---------- 404 ---------- */

.notfound { text-align: center; }
.notfound .container { display: grid; gap: 16px; justify-items: center; }
.notfound__amca { width: 200px; height: auto; }
.notfound h1 { font-size: 96px; color: var(--gold); }
[data-theme="light"] .notfound h1 { color: var(--black); }
.notfound p { color: var(--muted); font-size: 18px; margin-bottom: 8px; }

/* ---------- Üye alanı (header) ---------- */

.balance { display: grid; justify-items: end; gap: 3px; padding: 0 6px; line-height: 1; }
.balance__label { font: 500 11px/1 var(--font); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.balance__value { font: 600 15px/1 var(--font); white-space: nowrap; }

.account { position: relative; }
.account__btn {
    display: inline-flex; align-items: center; gap: 4px;
    height: 40px; padding: 0 8px 0 0;
    background: transparent; border: 1px solid var(--line-strong);
}
@media (hover: hover) { .account__btn:hover { border-color: var(--gold); } }
.account__avatar {
    width: 38px; height: 38px;
    display: grid; place-items: center;
    background: var(--gold); color: var(--black);
    font: 700 15px/1 var(--font);
}
.account__chev { width: 16px; height: 16px; color: var(--muted); transition: transform .2s ease; }
.account.is-open .account__chev { transform: rotate(180deg); }
.account__menu {
    position: absolute; right: 0; top: calc(100% + 18px); z-index: 60;
    width: 230px;
    background: var(--bg); border: 1px solid var(--line-strong); border-top: 3px solid var(--gold);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .15s ease, transform .15s ease, visibility 0s linear .15s;
}
.account.is-open .account__menu { opacity: 1; visibility: visible; transform: none; transition: opacity .15s ease, transform .15s ease; }
.account__head { display: grid; gap: 2px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.account__head strong { font: 600 15px/1.2 var(--font); }
.account__head span { font-size: 13px; color: var(--accent-text); }
.account__menu .account__points { display: flex; align-items: center; gap: 8px; padding: 9px 14px; background: var(--gold); color: var(--black); font: 600 13px/1 var(--font); }
.account__menu .account__points .icon { width: 16px; height: 16px; color: var(--black); }
.account__points b { margin-left: auto; font-weight: 800; }
@media (hover: hover) { .account__menu .account__points:hover { background: var(--black); color: var(--gold); } .account__menu .account__points:hover .icon { color: var(--gold); } }
.account__menu a, .account__menu button {
    display: flex; align-items: center; gap: 10px; width: 100%;
    padding: 12px 14px; background: none; border: 0; text-align: left;
    font: 500 14px/1 var(--font); color: var(--fg);
}
.account__menu a .icon, .account__menu button .icon { width: 17px; height: 17px; color: var(--muted); }
@media (hover: hover) { .account__menu a:hover, .account__menu button:hover { background: var(--gold); color: var(--black); } }
@media (hover: hover) { .account__menu a:hover .icon, .account__menu button:hover .icon { color: var(--black); } }
.account__menu .account__logout { border-top: 1px solid var(--line); }
.account__btn { position: relative; }
.account__dot { position: absolute; top: -4px; right: -4px; width: 10px; height: 10px; background: var(--gold); border: 2px solid var(--bg); }
.account__dot[hidden], .account__badge[hidden] { display: none; }
.account__menu .account__notif, .account__dot { display: none; }   /* yalnızca mobilde (zil gizliyken) */
.account__theme .icon--moon, [data-theme="light"] .account__theme .icon--sun { display: none; }
[data-theme="light"] .account__theme .icon--moon { display: block; }

/* ---------- Bildirimler: zil + açılır liste ---------- */

.notif { position: relative; }
.notif__btn {
    position: relative; display: grid; place-items: center;
    width: 40px; height: 40px; padding: 0;
    background: transparent; border: 1px solid var(--line-strong); color: var(--fg);
}
.notif__btn .icon { width: 20px; height: 20px; }
@media (hover: hover) { .notif__btn:hover { border-color: var(--gold); } }
.notif.is-open .notif__btn { border-color: var(--gold); }
.notif__count {
    position: absolute; top: -7px; right: -7px;
    min-width: 18px; height: 18px; padding: 0 4px;
    display: grid; place-items: center;
    background: var(--gold); color: var(--black); font: 700 11px/1 var(--font);
}
.notif__count[hidden] { display: none; }
.notif__menu {
    position: absolute; right: 0; top: calc(100% + 18px); z-index: 60;
    width: 340px; max-height: min(480px, calc(100dvh - 120px)); display: flex; flex-direction: column;
    background: var(--bg); border: 1px solid var(--line-strong); border-top: 3px solid var(--gold);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .15s ease, transform .15s ease, visibility 0s linear .15s;
}
.notif.is-open .notif__menu { opacity: 1; visibility: visible; transform: none; transition: opacity .15s ease, transform .15s ease; }
.notif__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.notif__head strong { font: 600 15px/1.2 var(--font); }
.notif__acts { display: flex; gap: 14px; }
.notif__all { padding: 0; background: none; border: 0; font: 500 12px/1 var(--font); color: var(--muted); }
@media (hover: hover) { .notif__all:hover { color: var(--accent-text); } }
.notif__push { display: grid; gap: 10px; padding: 12px 14px; background: var(--tint); border-bottom: 1px solid var(--line); font-size: 13px; line-height: 1.45; }
.notif__push[hidden] { display: none; }
.notif__push .btn { justify-self: start; }
.notif__list { margin: 0; padding: 0; list-style: none; overflow-y: auto; }
.notif__list li + li { border-top: 1px solid var(--line); }
.notif__row { position: relative; display: flex; align-items: stretch; }
.notif__row .notif__item { flex: 1; min-width: 0; padding-right: 40px; }
.notif__row.is-out { opacity: .4; }
.notif__del { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; background: none; border: 1px solid transparent; color: var(--muted); cursor: pointer; }
.notif__del .icon { width: 15px; height: 15px; }
@media (hover: hover) { .notif__del:hover { border-color: var(--red, #dc2626); color: var(--red, #dc2626); } .notif__row:not(:hover) .notif__del { opacity: .5; } }
.notif__empty { padding: 22px 14px; font-size: 13px; color: var(--muted); text-align: center; }
.notif__item {
    position: relative; display: grid; gap: 4px; width: 100%;
    padding: 12px 14px 12px 26px; background: none; border: 0; text-align: left; color: var(--fg);
}
.notif__item strong { font: 600 14px/1.3 var(--font); }
.notif__item span { font-size: 13px; line-height: 1.45; color: var(--muted); }
.notif__item small { font-size: 11px; color: var(--muted); }
.notif__item.is-unread::before { content: ''; position: absolute; left: 11px; top: 17px; width: 7px; height: 7px; background: var(--gold); }
.notif__item:not(.is-unread) strong { font-weight: 500; }
@media (hover: hover) { .notif__item:hover { background: var(--tint); } }

/* Bildirim kartı: yeni bildirim gelince sağ üstte; alttaki süre çubuğu bitince kapanır, üzerine gelince durur */
.toasts { position: fixed; top: calc(var(--header-h) + 10px); right: 16px; z-index: 90; display: grid; gap: 10px; width: min(380px, calc(100vw - 32px)); pointer-events: none; }
.toast {
    position: relative; display: grid; pointer-events: auto; overflow: hidden;
    background: var(--bg); border: 1px solid var(--gold); color: var(--fg);
    animation: toast-in .25s ease-out;
}
.toast.is-out { opacity: 0; transform: translateX(16px); transition: opacity .22s ease, transform .22s ease; }
@keyframes toast-in { from { opacity: 0; transform: translateX(24px); } }
.toast__bar { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 4px 0 12px; background: var(--gold); color: var(--black); font: 700 11px/1 var(--font); letter-spacing: .1em; text-transform: uppercase; }
.toast__bar > .icon { width: 15px; height: 15px; }
.toast__bar small { margin-left: auto; font: 500 11px/1 var(--font); letter-spacing: 0; text-transform: none; opacity: .75; }
.toast__close { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; background: none; border: 0; color: var(--black); cursor: pointer; }
.toast__close .icon { width: 16px; height: 16px; }
@media (hover: hover) { .toast__close:hover { background: var(--black); color: var(--gold); } }
.toast__main { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; padding: 16px 16px 4px; }
.toast__icon { width: 44px; height: 44px; display: grid; place-items: center; border: 2px solid var(--gold); color: var(--gold); }
[data-theme="light"] .toast__icon { color: var(--black); }
.toast__icon .icon { width: 22px; height: 22px; }
.toast__text strong { display: block; font: 700 17px/1.25 var(--font); }
.toast__text p { margin: 6px 0 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.toast__acts { display: flex; justify-content: flex-end; padding: 10px 16px 16px; }
.toast__acts .btn .icon { width: 15px; height: 15px; }
.toast > :last-child:not(.toast__acts):not(.toast__time) { padding-bottom: 16px; }
.toast__main:has(+ .toast__time) { padding-bottom: 18px; }
.toast__time { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--gold); transform-origin: left; animation: toast-time var(--toast-ms, 8s) linear forwards; }
@keyframes toast-time { to { transform: scaleX(0); } }
.toast:hover .toast__time { animation-play-state: paused; }
/* Ret / iade bildirimi: kırmızı */
.toast--bad { border-color: var(--red, #dc2626); }
.toast--bad .toast__bar, .toast--bad .toast__time { background: var(--red, #dc2626); color: #fff; }
.toast--bad .toast__close { color: #fff; }
.toast--bad .toast__icon { border-color: var(--red, #dc2626); color: var(--red, #dc2626); }
@media (prefers-reduced-motion: reduce) { .toast { animation: none; } .toast.is-out { transition: none; } .toast__time { animation-duration: var(--toast-ms, 8s); } }
@media (max-width: 600px) {
    .toasts { left: 8px; right: 8px; width: auto; top: calc(var(--header-h) + 6px); }
    @keyframes toast-in { from { opacity: 0; transform: translateY(-16px); } }
}

/* ---------- İç sayfa başlığı ---------- */

.page-head { padding: 40px 0; border-bottom: 1px solid var(--line); }
.page-head__inner { display: flex; align-items: center; gap: 18px; }
.page-head__icon { width: 56px; height: 56px; }
.page-head__icon .icon { width: 28px; height: 28px; }
.page-head__title { font-size: clamp(26px, 4vw, 36px); font-weight: 700; }
.page-head__lead { color: var(--muted); margin-top: 4px; }

/* ---------- Oyun lobisi ---------- */

.lobby-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
    flex-shrink: 0; height: 38px; padding: 0 16px;
    background: transparent; border: 1px solid var(--line); color: var(--fg);
    font: 500 14px/1 var(--font);
    transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
@media (hover: hover) { .tab:hover { border-color: var(--gold); } }
.tab[hidden] { display: none; }
.tab.is-active { background: var(--gold); border-color: var(--gold); color: var(--black); }

.lobby-bar__filters { display: flex; gap: 10px; }
.search {
    display: flex; align-items: center; gap: 8px;
    height: 40px; padding: 0 12px; width: 240px;
    border: 1px solid var(--line-strong); color: var(--muted);
}
.search:focus-within { border-color: var(--gold); }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--fg); font: 400 14px var(--font); }
.search .icon { width: 18px; height: 18px; }
.select {
    height: 40px; padding: 0 34px 0 12px;
    background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f5b014' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 16px;
    border: 1px solid var(--line-strong);
    color: var(--fg); font: 400 14px var(--font);
    appearance: none; -webkit-appearance: none; cursor: pointer;
}
.select:focus { outline: 0; border-color: var(--gold); }
/* ---------- Para yatır / çek ---------- */

.pay { display: grid; gap: 20px; max-width: 860px; }
.pay__balance { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; padding: 18px 20px; border: 1px solid var(--line-strong); }
.pay__split { margin-left: auto; font-size: 13px; color: var(--muted); }
.pay__split b { color: var(--fg); font-weight: 600; }
.pay__balance span { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.pay__balance strong { font-size: 22px; }
.pay__notice { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border: 1px solid var(--line); border-left: 4px solid var(--gold); }
.pay__notice .icon { width: 22px; height: 22px; margin-top: 2px; color: var(--gold); }
[data-theme="light"] .pay__notice .icon { color: var(--black); }
.pay__notice p { color: var(--muted); font-size: 15px; }
.pay__notice strong { display: block; margin-bottom: 4px; color: var(--fg); }
.pay__notice a, .pay__note a { color: var(--fg); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }

.pay__card { display: grid; gap: 16px; padding: 22px; border: 1px solid var(--line-strong); }
.pay__card h2 { display: flex; align-items: center; gap: 10px; font-size: 19px; }
.pay__card h2 .icon { width: 22px; height: 22px; color: var(--gold); }
[data-theme="light"] .pay__card h2 .icon { color: var(--black); }
.pay__card--hot { border-top: 4px solid var(--gold); }
.pay__card--wait { border-left: 4px solid var(--gold); }
.pay__card--wait p { color: var(--muted); }
.pay__card--wait strong { color: var(--fg); }

.pay__options { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.pay__options[hidden] { display: none; }
.pay__option { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line-strong); cursor: pointer; }
.pay__option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pay__option:has(input:checked) { border-color: var(--gold); background: var(--tint); }
.pay__option:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
.pay__option > span:last-child { display: grid; gap: 3px; }
.pay__option small { font-size: 12px; color: var(--muted); }
.pay__icon { flex-shrink: 0; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line-strong); }
.pay__icon .icon { width: 20px; height: 20px; }
.pay__option:has(input:checked) .pay__icon { background: var(--gold); border-color: var(--gold); color: var(--black); }
.input--money input { font: 600 18px var(--font); }
.input--money span { font: 600 18px var(--font); color: var(--muted); }
.pay__quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.pay__quick button { height: 34px; padding: 0 12px; background: none; border: 1px solid var(--line-strong); color: var(--fg); font: 500 13px/1 var(--font); }
@media (hover: hover) { .pay__quick button:hover { border-color: var(--gold); } }
.pay__quick--fit { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
.pay__quick--fit button { min-width: 0; padding: 0 4px; white-space: nowrap; }
@media (max-width: 380px) { .pay__quick--fit button { font-size: 12px; } }
.pay__note { font-size: 13px; color: var(--muted); }

/* Adımlar: 1 tür, 2 firma, 3 tutar */
.pay__step { display: grid; gap: 10px; min-width: 0; margin: 0; padding: 0; border: 0; }
.pay__step legend, .pay__step + .field .field__label { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; padding: 0; font: 600 15px/1 var(--font); }
.pay__step legend b, .pay__num { display: inline-grid; place-items: center; width: 22px; height: 22px; background: var(--gold); color: var(--black); font: 700 12px/1 var(--font); }
.pay__cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.pay__cat { position: relative; display: grid; justify-items: center; gap: 6px; padding: 16px 10px 14px; border: 1px solid var(--line-strong); text-align: center; cursor: pointer; }
.pay__cat input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pay__cat .icon { width: 26px; height: 26px; color: var(--gold); }
.pay__cat strong { font-size: 14px; }
.pay__cat small { font-size: 11px; color: var(--muted); }
@media (hover: hover) { .pay__cat:not(.is-soon):hover { border-color: var(--gold); } }
.pay__cat:has(input:checked) { background: var(--gold); border-color: var(--gold); color: var(--black); }
.pay__cat:has(input:checked) .icon, .pay__cat:has(input:checked) small { color: var(--black); }
.pay__cat:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
.pay__cat.is-soon { opacity: .45; cursor: not-allowed; }
.pay__cat.is-soon small { text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
[data-theme="light"] .pay__cat .icon { color: var(--black); }
.pay__icon--logo { background: #0a0a0a; border-color: #0a0a0a; }
.pay__icon--logo img { width: 34px; height: 34px; object-fit: contain; }
.pay__option:has(input:checked) .pay__icon--logo { background: #0a0a0a; border-color: var(--gold); }
.pay__warn { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-left: 3px solid var(--gold); font-size: 13px; color: var(--fg); }
.pay__warn[hidden] { display: none; }
.pay__warn .icon { flex-shrink: 0; width: 16px; height: 16px; color: var(--gold); }
[data-theme="light"] .pay__warn .icon, [data-theme="light"] .pay__notice--warn .icon { color: var(--black); }

.pay__steps { margin: 0; padding-left: 20px; display: grid; gap: 4px; color: var(--muted); }
.pay__steps strong { color: var(--fg); }
.pay__bank { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 0; border: 1px solid var(--line); }
.pay__bank div { display: grid; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.pay__bank div:nth-child(odd):not(.is-wide) { border-right: 1px solid var(--line); }
.pay__bank .is-wide { grid-column: 1 / -1; }
.pay__bank dt { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.pay__bank dd { margin: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.pay__ref { color: var(--accent-text); font-size: 18px; letter-spacing: .08em; }
.pay__copy { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; background: none; border: 1px solid var(--line-strong); color: var(--fg); font: 500 12px/1 var(--font); }
.pay__copy .icon { width: 14px; height: 14px; }
@media (hover: hover) { .pay__copy:hover { border-color: var(--gold); } }
.pay__timer { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.pay__timer .icon { width: 18px; height: 18px; }
.pay__timer strong { color: var(--fg); font-variant-numeric: tabular-nums; }
.pay__actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
/* Otomatik firma: USDT (TRC20) ödeme bilgisi — QR + adres; hesap hazırlanırken bekleme */
.pay__crypto { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 16px; align-items: start; }
.pay__qr { width: 168px; aspect-ratio: 1; padding: 10px; background: #fff; border: 1px solid var(--line-strong); }
.pay__qr svg { display: block; width: 100%; height: 100%; }
.pay__addr { font-size: 14px; word-break: break-all; }
@media (max-width: 560px) { .pay__crypto { grid-template-columns: minmax(0, 1fr); } .pay__qr { width: 180px; justify-self: center; } }
.pay__wait { display: flex; align-items: center; gap: 12px; color: var(--muted); }
.pay__spin { flex-shrink: 0; width: 20px; height: 20px; border: 2px solid var(--line-strong); border-top-color: var(--gold); border-radius: 50%; animation: pay-spin .8s linear infinite; }
@keyframes pay-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .pay__spin { animation-duration: 2.4s; } }

.pay__history { list-style: none; margin: 0; padding: 0; }
.pay__history li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.pay__h-main { display: grid; gap: 3px; min-width: 0; }
.pay__h-main small { font-size: 12px; color: var(--muted); }
.pay__reason { color: var(--fg) !important; }
.pay__h-end { display: grid; justify-items: end; gap: 4px; white-space: nowrap; }
.pay__status { font-style: normal; font: 600 11px/1 var(--font); padding: 4px 6px; border: 1px solid var(--line-strong); color: var(--muted); }
.pay__status--approved { border-color: var(--gold); color: var(--accent-text); }
.pay__status--sent { border-color: var(--ok); color: var(--ok); }
.pay__status--waiting, .pay__status--pending { color: var(--fg); }
.pay__status--rejected { color: #dc2626; border-color: #dc2626; }
.pay__empty { color: var(--muted); }

/* ---------- Hesabım ---------- */

.acct { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; max-width: 640px; margin-inline: auto; }
.acct__group { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.acct__card { border: 1px solid var(--line-strong); }
.acct__card h2 { padding: 16px 20px; border-bottom: 1px solid var(--line); font-size: 17px; }
.acct__info { display: grid; grid-template-columns: max-content 1fr; gap: 12px 24px; margin: 0; padding: 20px; font-size: 15px; }
.acct__info dt { color: var(--muted); }
.acct__info dd { margin: 0; overflow-wrap: anywhere; }
.acct__body { padding: 20px; }
.acct__note { padding: 0 20px 18px; font-size: 13px; color: var(--muted); }
.acct__bonus { display: grid; gap: 12px; padding: 20px 20px 0; }
.acct__bonus .acct__info { padding: 4px 0 20px; }
.acct__meter { display: block; height: 8px; background: var(--line); }
.acct__meter > i { display: block; height: 100%; background: var(--gold); }
.acct__note a { color: var(--fg); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.acct__loss { display: grid; gap: 16px; }
.acct__loss .alert { margin: 0; }
.acct__loss-empty { margin: 0; font-size: 14px; color: var(--muted); }
.acct__empty .btn { margin-top: 16px; }
.acct__offer { display: grid; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.acct__offer:last-of-type { padding-bottom: 0; border-bottom: 0; }
.acct__offer .acct__info { padding: 0; }
.acct__offer-amount { color: var(--accent-text); font-size: 17px; }
.acct__games { display: flex; flex-wrap: wrap; gap: 10px; padding-bottom: 20px; }
.acct__cancel { padding: 0 20px 20px; }
.acct__hist { padding: 2px 20px 6px; }
.acct__hist li:first-child { border-top: 0; }
/* Hesabım: bilgiler ve şifre yan yana (900px üstü), üstte Hesap bilgileri | İşlem geçmişi sekmeleri */
.acct--wide { max-width: none; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.acct--wide > .acct__card { display: flex; flex-direction: column; }
.acct--wide .acct__note { margin-top: auto; }
.acct--wide > :not(.acct__card) { grid-column: 1 / -1; }
.acct-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line-strong); }
.acct-tabs__item { display: inline-flex; align-items: center; gap: 8px; height: 48px; margin-bottom: -1px; padding: 0 18px; border-bottom: 3px solid transparent; color: var(--muted); font: 600 15px/1 var(--font); white-space: nowrap; }
.acct-tabs__item .icon { width: 18px; height: 18px; }
.acct-tabs__item.is-active { color: var(--fg); border-bottom-color: var(--gold); }
@media (hover: hover) { .acct-tabs__item:not(.is-active):hover { color: var(--fg); } }
@media (max-width: 900px) { .acct--wide { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .acct-tabs { gap: 0; } .acct-tabs__item { flex: 1; justify-content: center; padding: 0 8px; } }
.bonus__soon { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--line-strong); color: var(--muted); font: 600 14px/1 var(--font); }
.bonus__soon .icon { width: 18px; height: 18px; }
.alert--ok { border-left-color: var(--gold); font-weight: 600; }
.lobby-empty { padding: 60px 0; text-align: center; color: var(--muted); }
.lobby-count { margin: -8px 0 16px; color: var(--muted); font-size: 14px; }
.lobby-more { display: flex; justify-content: center; margin-top: 28px; }
.lobby-more .btn[aria-busy="true"] { opacity: .6; pointer-events: none; }
.games.is-loading { opacity: .5; }

/* ---------- Giriş / Kayıt: solda büyük bonus kartı, sağda form (mobilde yalnızca form) ---------- */

.auth { padding: 48px var(--gutter) 88px; }
.auth__wrap {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 20px; align-items: stretch;
    max-width: 1060px; margin: 0 auto;
}
.auth__wrap--wide { grid-template-columns: minmax(0, 1fr) minmax(0, 640px); max-width: 1220px; }
.auth__card { display: flex; flex-direction: column; border: 1px solid var(--line-strong); background: var(--bg); }
.auth__card .auth__body { flex: 1; display: flex; flex-direction: column; justify-content: center; }   /* yandaki kart uzunsa form ortada durur */
.auth__card .auth__bonus { display: none; }   /* masaüstünde soldaki büyük kart gösterir */

.auth-promo {
    position: relative; overflow: hidden;
    display: flex; flex-direction: column; align-items: flex-start;
    padding: 40px 40px 36px;
    background: var(--black); color: var(--fg);
    border: 1px solid var(--line-strong); border-top: 4px solid var(--gold);
}
.auth-promo__tag { padding: 6px 10px; background: var(--gold); color: var(--black); font: 700 12px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; }
.auth-promo__amount { margin: 24px 0 6px; font: italic 800 clamp(84px, 9vw, 128px)/.9 var(--font); color: var(--gold); letter-spacing: -.04em; }
/* Çizim, avantaj listesinin altında kalan boşluğa göre büyür/küçülür (kartın boyunu form belirler) */
.auth-promo__art { flex: 1 1 0; align-self: stretch; min-height: 150px; max-height: 300px; margin-top: 24px; }
.auth-promo__art .slide-art { display: block; width: 100%; height: 100%; }
.auth-promo__title { font-size: 30px; font-weight: 800; text-transform: uppercase; letter-spacing: .01em; }
.auth-promo__text { margin-top: 10px; max-width: 440px; color: var(--muted); font-size: 16px; }
.auth-promo__perks { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; }
.auth-promo__perks li { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.auth-promo__perks li > span { width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid var(--gold); color: var(--gold); }
.auth-promo__perks .icon { width: 15px; height: 15px; stroke-width: 3; }
.auth-promo__link {
    padding-top: 24px;
    display: inline-flex; align-items: center; gap: 8px;
    font: 600 15px/1 var(--font); color: var(--gold);
}
.auth-promo__link .icon { width: 18px; height: 18px; transition: transform .2s ease; }
@media (hover: hover) { .auth-promo__link:hover .icon { transform: translateX(4px); } }

.auth__bonus {
    display: flex; align-items: center; gap: 16px;
    padding: 16px 18px;
    background: var(--black); border-bottom: 1px solid var(--line-strong);
}
.auth__bonus-amount { flex-shrink: 0; min-width: 88px; font: italic 800 36px/1 var(--font); color: var(--gold); letter-spacing: -.02em; }
.auth__bonus-text { display: grid; gap: 4px; min-width: 0; }
.auth__bonus-text strong { font: 700 15px/1.2 var(--font); }
.auth__bonus-text small { font-size: 13px; line-height: 1.4; color: var(--muted); }
.auth__bonus > .icon { width: 18px; height: 18px; margin-left: auto; color: var(--gold); transition: transform .2s ease; }
@media (hover: hover) { .auth__bonus:hover > .icon { transform: translateX(4px); } }

.auth__body { padding: 28px 32px 30px; }
.auth__title { font-size: 28px; font-weight: 700; }
.auth__sub { color: var(--muted); margin: 6px 0 24px; font-size: 15px; }
.auth__switch { margin-top: 22px; text-align: center; font-size: 14px; color: var(--muted); }
.auth__switch a { margin-left: 4px; }
.auth__legal {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 18px; border-top: 1px solid var(--line);
    font-size: 12px; color: var(--muted); text-align: left;
}
.auth__legal .badge-18 { width: 30px; height: 30px; font-size: 10px; border-width: 2px; }

.auth__switch a, .form__link { color: var(--fg); font-weight: 600; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 3px; }
@media (hover: hover) { .auth__switch a:hover, .form__link:hover { background: var(--gold); color: var(--black); text-decoration: none; } }

.alert {
    margin-bottom: 20px; padding: 12px 14px;
    border: 1px solid var(--line); border-left: 4px solid var(--gold);
    font-size: 14px;
}

.form { display: grid; gap: 18px; }
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; align-items: start; }
.field--full { grid-column: 1 / -1; }
.form__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; }

.field { display: grid; gap: 7px; min-width: 0; align-content: start; }
.field__label { font: 500 14px/1 var(--font); }
.field[hidden] { display: none; }
[data-login-kind="user"] .login__phone, [data-login-kind="phone"] .login__user { display: none; }

/* Aranabilir seçim listesi (kayıttaki il) */
.combo { position: relative; }
.combo[hidden], .combo__native[hidden], .combo__panel[hidden], .combo__quick[hidden], .combo__empty[hidden], .combo__list [hidden] { display: none; }
.combo__trigger { width: 100%; background: none; cursor: pointer; font: 400 15px var(--font); text-align: left; }
.combo__value { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.field.has-value .combo__value { color: var(--fg); }
.combo__chev { width: 18px !important; height: 18px !important; color: var(--gold); transition: transform .2s ease; }
[data-theme="light"] .combo__chev { color: var(--fg); }
.field.is-open .combo__chev { transform: rotate(180deg); }
.field.is-open .combo__trigger { border-color: var(--fg); }

.combo__panel {
    position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30;
    display: flex; flex-direction: column;
    max-height: 340px;
    background: var(--bg); border: 1px solid var(--line-strong); border-top: 3px solid var(--gold);
}
.combo__search { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; border-bottom: 1px solid var(--line); color: var(--muted); flex-shrink: 0; }
.combo__search .icon { width: 17px; height: 17px; }
.combo__search input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: 0; color: var(--fg); font: 400 15px var(--font); }
.combo__search input::placeholder { color: var(--muted); opacity: .75; }
.combo__quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.combo__quick button { height: 30px; padding: 0 10px; background: none; border: 1px solid var(--line-strong); color: var(--fg); font: 500 13px/1 var(--font); }
@media (hover: hover) { .combo__quick button:hover { border-color: var(--gold); } }
.combo__list { list-style: none; margin: 0; padding: 4px 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.combo__list li { display: flex; align-items: center; justify-content: space-between; height: 40px; padding: 0 14px; font-size: 15px; cursor: pointer; }
.combo__list li.is-active { background: var(--tint); }
@media (hover: hover) { .combo__list li:hover { background: var(--tint); } }
.combo__list li[aria-selected="true"] { background: var(--gold); color: var(--black); font-weight: 600; }
.combo__empty { padding: 16px 14px; color: var(--muted); font-size: 14px; }
.reveal {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 0; background: none; border: 0;
    font: 600 14px/1 var(--font); color: var(--fg);
}
.reveal .icon { width: 18px; height: 18px; padding: 2px; background: var(--gold); color: var(--black); stroke-width: 3; }
.reveal__close, .reveal[aria-expanded="true"] .reveal__open { display: none; }
.reveal[aria-expanded="true"] .reveal__close { display: block; }
@media (hover: hover) { .reveal:hover { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 4px; } }
.field__error { font-size: 13px; color: var(--fg); padding-left: 10px; border-left: 3px solid var(--gold); }
.field__error:empty { display: none; }
/* Kullanıcı adı uygun: yeşil çerçeve + kutunun içinde "Uygun" (3 renk kuralına bilinçli istisna, kullanıcı isteği) */
:root { --ok: #22c55e; }
[data-theme="light"] { --ok: #16a34a; }
.field.is-available .input { border-color: var(--ok); }
.input__ok { flex-shrink: 0; display: inline-flex; align-items: center; gap: 3px; margin-left: -4px; font: 600 13px/1 var(--font); color: var(--ok); }
.input__ok[hidden] { display: none; }
.input__ok .icon { width: 16px; height: 16px; stroke-width: 3; }

.input {
    display: flex; align-items: center; gap: 10px;
    height: 48px; padding: 0 14px;
    border: 1px solid var(--line-strong);
    color: var(--muted);
    transition: border-color .15s ease;
}
.input > .icon { width: 18px; height: 18px; }
.input:focus-within { border-color: var(--fg); }
.input input {
    flex: 1; min-width: 0; width: 100%; height: 100%;
    background: none; border: 0; outline: 0;
    color: var(--fg); font: 400 15px var(--font);
}
.input input::placeholder { color: var(--muted); opacity: .75; }
.input select {
    flex: 1; min-width: 0; height: 100%; padding-right: 26px;
    background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f5b014' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right center / 16px;
    border: 0; outline: 0; appearance: none; -webkit-appearance: none; cursor: pointer;
    color: var(--fg); font: 400 15px var(--font);
}
.input select:invalid { color: var(--muted); }   /* "İlini seç" yer tutucusu */
.input select option { color: var(--fg); background: var(--bg); }
.input--area { height: auto; align-items: flex-start; padding: 13px 14px; }
.input--area > .icon { margin-top: 2px; }
.input textarea {
    flex: 1; min-width: 0; min-height: 46px; max-height: 160px; resize: vertical;
    padding: 0; background: none; border: 0; outline: 0;
    color: var(--fg); font: 400 15px/1.45 var(--font);
}
.input textarea::placeholder { color: var(--muted); opacity: .75; }
.input input[type="date"]::-webkit-calendar-picker-indicator { cursor: pointer; }
[data-theme="dark"] .input input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(1); }
.input__prefix { font: 600 15px/1 var(--font); color: var(--fg); padding-right: 10px; border-right: 1px solid var(--line-strong); }
.input__toggle { background: none; border: 0; padding: 4px; color: var(--muted); display: grid; place-items: center; }
@media (hover: hover) { .input__toggle:hover { color: var(--fg); } }
.input__toggle .icon { width: 18px; height: 18px; }
.input__toggle .icon--hide, .input__toggle[aria-pressed="true"] .icon--show { display: none; }
.input__toggle[aria-pressed="true"] .icon--hide { display: block; }
.field.is-invalid .input { border: 2px solid var(--gold); }

.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; cursor: pointer; line-height: 1.45; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check__box {
    flex-shrink: 0; margin-top: 1px;
    width: 20px; height: 20px;
    display: grid; place-items: center;
    border: 1px solid var(--line-strong); color: transparent;
    transition: background-color .15s ease, border-color .15s ease;
}
.check__box .icon { width: 14px; height: 14px; stroke-width: 3; }
.check input:checked + .check__box { background: var(--gold); border-color: var(--gold); color: var(--black); }
.check input:focus-visible + .check__box { outline: 2px solid var(--gold); outline-offset: 2px; }
.field.is-invalid .check__box { border: 2px solid var(--gold); }

/* =========================================================
   Duyarlı
   ========================================================= */

/* Masaüstünde header'da Para Yatır butonu yok (hesap menüsünde var); mobilde ikon olarak kalır */
@media (min-width: 1101px) {
    .header-deposit { display: none; }
}

/* Üye girişliyken masaüstü header'a sığsın */
@media (max-width: 1480px) {
    .site-header--user .nav__link { padding: 0 11px; }
    .site-header--user .nav__link::after { left: 11px; right: 11px; }
}

/* Dar ekranda slider tam genişlik, yan kartlar altında yan yana (yazılar kesilmesin) */
@media (max-width: 1180px) {
    .showcase__grid { grid-template-columns: 1fr; gap: 14px; }
    .showcase__side { grid-template-rows: none; grid-template-columns: 1fr 1fr; gap: 14px; height: auto; min-height: 0; }
    .promo-card { min-height: 130px; }
    .promo-card__title { -webkit-line-clamp: 3; }
}

@media (max-width: 1100px) {
    .site-header__inner { display: flex; }
    .header-actions { margin-left: auto; }
    .nav-toggle { display: inline-flex; }
    .nav { display: none; }                     /* menü soldan açılan çekmecede */
    .header-actions .theme-toggle { display: none; }   /* tema seçimi çekmecede */
    .drawer { display: block; }
    .site-header--user .header-deposit .hide-sm { display: none; }
    .site-header--user .header-deposit { width: 40px; padding: 0; }
}

@media (max-width: 1080px) {
    .bonuses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bonus, .bonus--half, .bonus--full { grid-column: auto; }
    .bonus--odd-last { grid-column: 1 / -1; }
    .loyalty { grid-template-columns: auto minmax(0, 1fr); }
    .loyalty__cta { grid-column: 1 / -1; justify-self: start; }
    .game-row { grid-auto-columns: calc((100% - 3 * 14px) / 4); }
    .games { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .pay__split { margin-left: 0; flex-basis: 100%; }
    .pay__cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pay__bank { grid-template-columns: 1fr; }
    .pay__bank div:nth-child(odd):not(.is-wide) { border-right: 0; }
    .pay__card { padding: 18px 16px; }
    :root { --header-h: 76px; }
    .site-header { padding: 8px 0; }

    .game-row { grid-auto-columns: calc((100% - 2 * 12px) / 3.3); gap: 12px; }
    .games { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }

    .cats { grid-template-columns: repeat(2, 1fr); }

    .payments__inner { justify-content: center; text-align: center; }
    .payments__list { justify-content: center; }


    .auth__wrap, .auth__wrap--wide { grid-template-columns: minmax(0, 1fr); max-width: 460px; }
    .auth__wrap--wide { max-width: 640px; }
    .auth-promo { display: none; }
    .auth__card .auth__bonus { display: flex; }

    .site-footer__grid { grid-template-columns: repeat(3, 1fr); gap: 32px 24px; padding-top: 40px; }
    .site-footer__brand { grid-column: 1 / -1; }

    /* Alt menü çubuğu; canlı destek bu çubuktaki Destek sekmesinden açılır */
    :root { --tabbar-h: 62px; }
    .play__bar { gap: 10px; padding-left: 12px; padding-right: 12px; }
    .play__start { gap: 10px; }
    .play__brand { padding-left: 10px; }
    .play__brand .brand__word { font-size: 17px; }
    .play__brand .brand__mark { height: 26px; }
    body.is-bare { padding-bottom: env(safe-area-inset-bottom); }
    body { padding-bottom: calc(var(--tabbar-h) + 28px + env(safe-area-inset-bottom)); }   /* +28px: çubuktan taşan amca footer'ı örtmesin */
    .tabbar {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
        display: grid; grid-template-columns: repeat(5, 1fr);
        padding-bottom: env(safe-area-inset-bottom);
        background: var(--bg); border-top: 1px solid var(--line-strong);
    }
    .chat { bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 36px); }   /* yükseltilmiş amcanın üstünde */
    .chat__fab { display: none; }

    .legal { grid-template-columns: 1fr; gap: 28px; }
    .aff { grid-template-columns: 1fr; gap: 28px; }
    .aff__card { position: static; order: -1; }
    .legal__nav { position: static; display: flex; overflow-x: auto; scrollbar-width: none; border: 0; gap: 6px; }
    .legal__nav::-webkit-scrollbar { display: none; }
    .legal__nav a { flex-shrink: 0; height: 40px; padding: 0 14px; border: 1px solid var(--line); white-space: nowrap; }
    .legal__nav a + a { border-top: 1px solid var(--line); }
    @media (hover: hover) { .legal__nav a:hover { border-color: var(--gold); } }
    .legal__nav a.is-active { border-color: var(--gold); }


    .lobby-bar__filters { width: 100%; }
    .search { flex: 1; width: auto; }
}

@media (max-width: 600px) {
    .section { padding: 64px 0; }
    .section--page { padding: 20px 0 64px; }

    /* Canlı destek mobilde tam ekran */
    /* Yükseklik ekranın görünen kısmına sabitlenir (chat.js klavye açılınca --chat-h / --chat-top'u günceller),
       böylece mesajlar uzayınca liste kendi içinde kayar, yazma kutusu hep görünür kalır. */
    .chat.is-open {
        left: 0; right: 0; bottom: auto; top: var(--chat-top, 0px);
        display: block; height: 100vh; height: var(--chat-h, 100dvh); z-index: 90;
    }
    .chat.is-open .chat__fab { display: none; }
    .chat__panel { width: 100%; height: 100%; border: 0; border-top: 3px solid var(--gold); }
    body.has-chat { overflow: hidden; }   /* sohbet açıkken arkadaki sayfa kaymaz */
    .chat__form textarea { font-size: 16px; }   /* iOS'ta yakınlaştırmayı önler */
    .section__head { margin-bottom: 32px; }

    .brand__mark { height: 30px; }
    .brand__word { font-size: 21px; }
    .site-header__inner { gap: 10px; }
    .header-actions { gap: 6px; }
    .hbtn { height: 38px; padding: 0 14px; }
    .theme-toggle, .nav-toggle { width: 38px; height: 38px; }

    .hide-sm { display: none; }
    .balance { padding: 0; }
    .balance__label { display: none; }
    .balance__value { font-size: 14px; }
    .header-actions .hbtn--gold:has(.hide-sm) { width: 38px; padding: 0; }
    .account__btn { height: 38px; }
    .account__avatar { width: 36px; height: 36px; }
    .notif__btn { display: none; }   /* bildirimler profil menüsünde */
    .account__menu .account__notif { display: flex; }
    .account__dot:not([hidden]) { display: block; }
    .notif { position: static; }   /* liste ekran genişliğinde açılsın */
    .notif__menu { left: 0; right: 0; width: auto; top: calc(100% + 8px); }

    .cats { gap: 10px; }
    .cat { display: flex; flex-direction: column; gap: 12px; padding: 16px; }
    .cat__icon { width: 40px; height: 40px; margin: 0; }
    .cat__icon .icon { width: 22px; height: 22px; }
    .cat__title { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 15px; line-height: 1.2; }
    .cat__title::after { content: "›"; color: var(--accent-text); font-size: 20px; line-height: 1; }
    .cat__text, .cat__more { display: none; }

    .site-footer__grid { grid-template-columns: 1fr; gap: 0; padding-bottom: 0; }
    .license { flex-direction: column; align-items: center; gap: 12px; }   /* 18+ rozeti ortada */
    .license p { align-self: stretch; }
    .site-footer__bottom-inner { flex-direction: column; align-items: center; text-align: center; }
    .site-footer__bottom nav { justify-content: center; }
    .site-footer__brand { padding-bottom: 28px; }
    .site-footer__col { gap: 0; border-top: 1px solid var(--line); }
    .site-footer__col h3 { margin: 0; }
    .site-footer__col h3 button { height: 54px; pointer-events: auto; cursor: pointer; }
    .site-footer__col h3 .icon { display: block; }
    .site-footer__col.is-open h3 .icon { transform: rotate(45deg); }
    .site-footer__links { display: none; padding-bottom: 20px; }
    .site-footer__col.is-open .site-footer__links { display: grid; }

    .page-head { padding: 28px 0; }
    .page-head__icon { width: 46px; height: 46px; }

    .auth { padding: 20px var(--gutter) 48px; }
    .auth__body { padding: 22px 18px 24px; }
    .auth__title { font-size: 24px; }
    .auth__sub { margin-bottom: 20px; font-size: 14px; }
    .auth__bonus { gap: 12px; padding: 14px; }
    .auth__bonus-amount { min-width: 0; font-size: 30px; }
    .form__grid { grid-template-columns: 1fr; }
    .lobby-bar__filters { flex-direction: column; }
    .search { flex: none; width: 100%; height: 44px; }
    .select { width: 100%; }
    .games { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .game__initials { font-size: 28px; }
    .game__btn { height: 32px; font-size: 11px; letter-spacing: .02em; }
    .game__btn--play { height: 34px; }
}

@media (max-width: 480px) {
    /* Oyun ekranı: logo adı sığsın — "Geri dön" yalnızca ok, sağdaki düğme kısa yazı */
    .play__back span { display: none; }
    .play__start { gap: 8px; }
    .play__brand { gap: 6px; padding-left: 8px; }
    .play__brand .brand__word { font-size: 16px; }
    .play__long { display: none; }
    .play__short { display: inline; }
    .site-header .brand { gap: 6px; }
    .site-header .brand__mark { height: 28px; }
    .site-header .brand__word { font-size: 17px; }
    .auth-pill { height: 38px; }
    .auth-pill a { padding: 0 12px; font-size: 13px; }

    .showcase { padding-top: 6px; }
    .banner-slider { aspect-ratio: 16 / 9; }
    .bslide__fallback { grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); padding: 0 12px 0 18px; gap: 8px; }
    .bslide__text, .bslide__copy .btn { display: none; }
    .bslide__title { font-size: 22px; }
    .banner-slider__arrow { display: none; }
    .showcase__side { grid-template-columns: 1fr; }
    .promo-card { min-height: 112px; padding: 16px 18px; }
    .roulette { width: 180px; height: 180px; right: -50px; }

    .game-rows { padding-top: 28px; }
    .row-head__title { font-size: 18px; }
    .row-btn { display: none; }
    .row-head__all { margin-right: 0; }
    .game-row { grid-auto-columns: calc((100% - 12px) / 2.3); gap: 12px; }

    .providers { padding: 18px 0; }
    .providers__list li { font-size: 16px; padding: 0 26px; }
    .payments__list li { height: 38px; padding: 0 12px; font-size: 13px; }

    .bonuses { grid-template-columns: 1fr; }
    .bonus--odd-last { grid-column: auto; }
    .loyalty { grid-template-columns: 1fr; padding: 24px 20px; gap: 16px; }
    .loyalty__amca { width: 110px; }
    .loyalty__features { grid-template-columns: 1fr; gap: 14px; }
    .loyalty__cta { width: 100%; }


    .chat { right: 12px; bottom: 12px; }
    .prose h2 { font-size: 18px; gap: 12px; }
    .prose h2::before { width: 30px; height: 30px; font-size: 12px; }
}

/* Header'da "Baykuş Bahis" yazısı sığmadığında yalnızca amca kalır (üye header'ında bakiye ve butonlar daha fazla yer kaplar) */
@media (max-width: 384px) { .site-header--user .brand__word { display: none; } }   /* zil mobilde profil menüsünde, 44px yer açıldı */
@media (max-width: 359px) { .site-header .brand__word { display: none; } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
    .crash__line { stroke-dashoffset: 0; }
    .crash__area, .crash__rocket, .crash__mult { opacity: 1; }
    .slots__reel { transform: none; }
}

/* Açılır liste (js/dropdown.js): gerçek select gizli kalır, yerine düğme + liste */
.dd__native, .input .dd__native { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.dd { display: flex; align-items: center; gap: 10px; min-width: 0; text-align: left; cursor: pointer; font: inherit; color: var(--fg); }
.input > .dd { flex: 1; height: 100%; padding: 0; background: none; border: 0; outline: 0; }
.dd.select, .dd.mini-select { background-image: none; padding-right: 10px; }
.dd.select:focus-visible, .dd.mini-select:focus-visible, .dd.select.is-open, .dd.mini-select.is-open, .input.is-open { border-color: var(--gold); }
.dd--box { height: 36px; padding: 0 10px; background: var(--bg); border: 1px solid var(--line-strong); font-size: 13px; }
.dd--box:focus-visible, .dd--box.is-open { outline: 0; border-color: var(--fg); }
.dd:disabled { cursor: not-allowed; opacity: .6; }
.dd__value { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd__chev { width: 16px; height: 16px; flex-shrink: 0; color: var(--gold); transition: transform .2s ease; }
[data-theme="light"] .dd__chev { color: var(--fg); }
.dd.is-open .dd__chev { transform: rotate(180deg); }
.dd__panel {
    position: fixed; z-index: 200;
    display: flex; flex-direction: column; max-width: calc(100vw - 16px);
    background: var(--bg); border: 1px solid var(--line-strong); border-top: 3px solid var(--gold);
}
.dd__panel.is-up { border-top-width: 1px; border-bottom: 3px solid var(--gold); }
.dd__panel[hidden], .dd__search[hidden], .dd__empty[hidden], .dd__list [hidden] { display: none; }
.dd__search { display: flex; align-items: center; height: 42px; padding: 0 14px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.dd__search input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: 0; color: var(--fg); font: 400 14px var(--font); }
.dd__search input::placeholder { color: var(--muted); }
.dd__list { min-height: 0; margin: 0; padding: 4px 0; list-style: none; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.dd__list li { display: flex; align-items: center; min-height: 38px; padding: 6px 14px; font-size: 14px; white-space: nowrap; cursor: pointer; }
.dd__list li.is-active { background: var(--tint); }
.dd__list li[aria-selected="true"] { background: var(--gold); color: var(--black); font-weight: 600; }
.dd__list li[aria-disabled="true"] { color: var(--muted); cursor: default; }
.dd__empty { padding: 14px; color: var(--muted); font-size: 14px; }

/* ---------- Uygulamayı indir ---------- */

/* Mobilde üstteki indirme şeridi */
.appbar { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 12px; background: var(--bg); border-bottom: 1px solid var(--line); }
.appbar[hidden] { display: none; }
.appbar img { width: 40px; height: 40px; flex-shrink: 0; }
.appbar__text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.appbar__text strong { font: 600 14px/1.2 var(--font); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.appbar__text span { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.appbar__close { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; background: none; border: 0; color: var(--muted); }
.appbar__close .icon { width: 16px; height: 16px; }

/* Mobil menüdeki buton */
.drawer__app { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--gold); background: var(--tint); color: var(--fg); }
.drawer__app[hidden] { display: none; }
.drawer__app > .icon { width: 22px; height: 22px; color: var(--accent-text); }
.drawer__app span { flex: 1; display: grid; gap: 2px; }
.drawer__app strong { font: 700 15px/1.2 var(--font); }
.drawer__app small { font-size: 12px; color: var(--muted); }

/* Alt bilgi */
.footer-app { margin-top: 22px; }
.footer-app[hidden] { display: none; }
.footer-app p { margin-bottom: 10px; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text); }
.footer-app__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-app__btns a { display: inline-flex; align-items: center; gap: 9px; height: 46px; padding: 0 14px 0 12px; border: 1px solid var(--line-strong); color: var(--fg); }
.footer-app__btns .icon { width: 22px; height: 22px; }
.footer-app__btns span { display: grid; font: 600 13px/1.2 var(--font); }
.footer-app__btns small { font-size: 10px; font-weight: 500; color: var(--muted); }
@media (hover: hover) { .footer-app__btns a:hover { border-color: var(--gold); } }

/* /uygulama sayfası */
.appdl { display: grid; gap: 22px; max-width: 720px; }
.appdl__hero { display: flex; align-items: center; gap: 18px; padding: 22px; border: 1px solid var(--line-strong); border-top: 4px solid var(--gold); }
.appdl__icon { width: 96px; height: 96px; flex-shrink: 0; }
.appdl__hero h2 { font-size: 24px; }
.appdl__hero p { margin-top: 6px; color: var(--muted); line-height: 1.5; }
.appdl__done { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-left: 4px solid var(--gold); background: var(--tint); font-weight: 600; }
.appdl__done[hidden] { display: none; }
.appdl__done .icon { width: 20px; height: 20px; color: var(--accent-text); }
.appdl__tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line-strong); }
.appdl__tab { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 10px; background: none; border: 0; color: var(--muted); font: 600 15px/1 var(--font); cursor: pointer; }
.appdl__tab + .appdl__tab { border-left: 1px solid var(--line-strong); }
.appdl__tab .icon { width: 20px; height: 20px; }
.appdl__tab.is-active { background: var(--gold); color: var(--black); }
@media (hover: hover) { .appdl__tab:not(.is-active):hover { color: var(--fg); background: var(--tint); } }
.appdl__panel { display: grid; gap: 16px; }
.appdl__panel[hidden] { display: none; }
.appdl__or { text-align: center; font-size: 13px; color: var(--muted); }
.appdl__warn { display: flex; gap: 10px; padding: 12px 14px; border-left: 4px solid var(--gold); background: var(--tint); font-size: 14px; }
.appdl__warn[hidden] { display: none; }
.appdl__warn .icon { flex-shrink: 0; width: 18px; height: 18px; color: var(--accent-text); }
.appdl__steps { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); }
.appdl__steps li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; font-size: 15px; line-height: 1.45; }
.appdl__steps li + li { border-top: 1px solid var(--line); }
.appdl__steps li > span:nth-child(2) { flex: 1; }
.appdl__num { flex-shrink: 0; width: 30px; height: 30px; display: grid; place-items: center; background: var(--gold); color: var(--black); font: 700 15px/1 var(--font); }
.appdl__key { flex-shrink: 0; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line-strong); color: var(--accent-text); }
.appdl__key .icon { width: 20px; height: 20px; }
.appdl__note { display: flex; gap: 10px; font-size: 14px; color: var(--muted); }
.appdl__note .icon { flex-shrink: 0; width: 18px; height: 18px; color: var(--accent-text); }
.appdl__status { padding: 12px 14px; border-left: 4px solid var(--gold); background: var(--tint); font-weight: 600; }
.appdl__status[hidden], .appdl__manual[hidden] { display: none; }
.appdl__manual { display: grid; gap: 10px; }
.appdl__perks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.appdl__perks li { display: grid; gap: 6px; padding: 16px; border: 1px solid var(--line); }
.appdl__perks .icon { width: 22px; height: 22px; color: var(--accent-text); }
.appdl__perks strong { font: 600 15px/1.2 var(--font); }
.appdl__perks span { font-size: 13px; color: var(--muted); line-height: 1.45; }
@media (max-width: 600px) {
    .appdl__hero { padding: 16px; gap: 14px; }
    .appdl__icon { width: 72px; height: 72px; }
    .appdl__hero h2 { font-size: 20px; }
    .appdl__tab { flex-direction: column; gap: 4px; height: 64px; font-size: 13px; }
    .appdl__perks { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Kimlik doğrulaması (Para Çek) ---------- */
.kyc__lead { color: var(--muted); line-height: 1.55; }
.kyc__sides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.kyc__pick { position: relative; display: grid; place-items: center; aspect-ratio: 1.58; overflow: hidden; border: 2px dashed var(--line-strong); background: var(--tint); cursor: pointer; }
.kyc__pick input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.kyc__pick.is-set { border-style: solid; border-color: var(--gold); }
.kyc__pick.is-missing { border-color: #dc2626; }
@media (hover: hover) { .kyc__pick:hover { border-color: var(--gold); } }
.kyc__ph { display: grid; justify-items: center; gap: 6px; padding: 12px; text-align: center; pointer-events: none; }
.kyc__ph[hidden] { display: none; }
.kyc__card { width: 96px; height: auto; color: var(--accent-text); }
.kyc__ph strong { font: 700 16px/1.2 var(--font); }
.kyc__ph small { font-size: 12px; color: var(--muted); }
.kyc__preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.kyc__preview[hidden], .kyc__change[hidden] { display: none; }
.kyc__change { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 6px; background: rgba(0, 0, 0, .75); color: #fff; font: 600 13px/1 var(--font); pointer-events: none; }
.kyc__change .icon { width: 15px; height: 15px; }
.kyc__tips { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.kyc__tips li { display: flex; gap: 8px; align-items: flex-start; }
.kyc__tips .icon { flex-shrink: 0; width: 16px; height: 16px; margin-top: 2px; color: var(--accent-text); }
@media (max-width: 600px) { .kyc__sides { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Şans çarkı (/cark) ---------- */
.wheelpage { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.wheelbox { position: relative; width: 100%; max-width: 520px; margin: 0 auto; aspect-ratio: 1; }
.wheel { display: block; width: 100%; height: 100%; transform-origin: 50% 50%; will-change: transform; }   /* çarkın tamamı döner; ok ve düğme ayrı */
.wheel__label { font: 700 15px/1 var(--font); letter-spacing: .02em; }
.wheel__label--grand { font-size: 14px; font-weight: 800; }
.wheelbox__pointer { position: absolute; z-index: 2; top: -6px; left: 50%; width: 0; height: 0; margin-left: -18px; border-left: 18px solid transparent; border-right: 18px solid transparent; border-top: 36px solid var(--gold); }
.wheelbox__spin { position: absolute; top: 50%; left: 50%; width: 24%; aspect-ratio: 1; transform: translate(-50%, -50%); display: grid; place-items: center; align-content: center; gap: 2px; padding: 0; background: #0a0a0a; border: 4px solid var(--gold); color: #fff; cursor: pointer; }
.wheelbox__spin img { width: 52%; height: auto; }
.wheelbox__spin span { font: 800 13px/1 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.wheelbox__spin:disabled { cursor: not-allowed; border-color: #555; }
.wheelbox__spin:disabled img { opacity: .45; }
.wheelbox__spin:disabled span { color: #888; }
@media (hover: hover) { .wheelbox__spin:not(:disabled):hover { background: var(--gold); } .wheelbox__spin:not(:disabled):hover span { color: #0a0a0a; } }
.is-spinning .wheelbox__spin { pointer-events: none; }
.wheelside { display: grid; gap: 18px; }
.wheelside__count { display: grid; gap: 6px; padding: 20px; border: 1px solid var(--line-strong); border-top: 4px solid var(--gold); }
.wheelside__count span { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.wheelside__count strong { font: 800 54px/1 var(--font); }
.wheelside__count small { font-size: 14px; line-height: 1.5; color: var(--muted); }
.wheelside__count .btn { margin-top: 8px; }
.wheelside h2 { margin-bottom: 10px; font-size: 16px; }
.wheelside__rules ul, .wheelside__history ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.wheelside__rules li { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); line-height: 1.45; }
.wheelside__rules .icon { flex-shrink: 0; width: 18px; height: 18px; color: var(--accent-text); }
.wheelside__history li { display: flex; justify-content: space-between; gap: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.wheelside__history small { color: var(--muted); }
.wheel-res { font-weight: 700; }
.wheel-res--cash, .wheel-res--freespin { color: var(--accent-text); }
.wheel-res--pass { color: var(--muted); font-weight: 500; }
.account__badge { margin-left: auto; padding: 2px 6px; background: var(--gold); color: var(--black); font: 700 11px/1.2 var(--font); }
@media (max-width: 900px) { .wheelpage { grid-template-columns: minmax(0, 1fr); } }

/* ---------- İşlem geçmişi (/hesabim/islemler) ---------- */
.htabs { display: flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--line-strong); }
.htab { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 16px; color: var(--muted); font: 600 14px/1 var(--font); white-space: nowrap; }
.htab + .htab { border-left: 1px solid var(--line-strong); }
.htab .icon { width: 17px; height: 17px; }
.htab.is-active { background: var(--gold); color: var(--black); }
@media (hover: hover) { .htab:not(.is-active):hover { color: var(--fg); background: var(--tint); } }
.htotal { margin-left: auto; font: 500 13px/1 var(--font); color: var(--muted); }
.pay__h-end b.is-pos { color: var(--accent-text); }
.pay__h-end b.is-neg { color: var(--fg); }
.hpager { display: flex; align-items: center; justify-content: center; gap: 14px; padding-top: 6px; font-size: 14px; color: var(--muted); }
@media (max-width: 700px) {
    .htabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .htab { justify-content: center; border-left: 0 !important; border-top: 1px solid var(--line-strong); }
    .htab:nth-child(-n+2) { border-top: 0; }
    .htab:nth-child(even) { border-left: 1px solid var(--line-strong) !important; }
    .htab:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* Baykuş Puan sayfası (/puan) */
.lpage { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.lpage__main { display: grid; gap: 14px; }
.lpage__card { display: grid; gap: 12px; padding: 24px; border: 1px solid var(--line-strong); border-top: 4px solid var(--gold); }
.lpage__label { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.lpage__points { font: 800 64px/1 var(--font); }
.lpage__bar { height: 12px; border: 1px solid var(--line-strong); }
.lpage__bar i { display: block; height: 100%; background: var(--gold); }
.lpage__hint { margin: 0; font-size: 15px; line-height: 1.5; color: var(--muted); }
.lpage__hint b { color: var(--fg); }
.lpage__ok { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: var(--gold); color: var(--black); font-weight: 600; }
.lpage__ok .icon { width: 20px; height: 20px; }
@media (max-width: 900px) { .lpage { grid-template-columns: minmax(0, 1fr); } .lpage__points { font-size: 52px; } }

/* Müşteri gözünden bakış şeridi (partials/impersonation-bar.php): yalnızca panelden müşteri hesabına giren yetkili görür */
.impbar { position: relative; z-index: 60; background: var(--gold); color: var(--black); font-size: 13px; }
.impbar__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding-block: 6px; }
.impbar__text { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.impbar__text .icon { width: 16px; height: 16px; }
.impbar form { margin: 0; }
.impbar .btn { background: var(--black); color: var(--gold); border-color: var(--black); }

/* Oyun açılamadı → sağlayıcı bakım ekranı (play.php): bulanık oyun görseli üstünde dönen dişliler, yanında açıklama ve düğmeler */
.maint { padding-block: 40px 56px; }
.maint__card { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); border: 1px solid var(--line-strong); border-top: 4px solid var(--gold); background: var(--bg); overflow: hidden; }
.maint__art { position: relative; min-height: 300px; display: grid; place-items: center; overflow: hidden; background: var(--black); }
.maint__art--t0 { background: linear-gradient(135deg, var(--gold), #b77f00); }
.maint__art--t2 { background: linear-gradient(135deg, #2a2a2a, var(--black)); }
.maint__bg { position: absolute; inset: -24px; width: calc(100% + 48px); max-width: none; height: calc(100% + 48px); object-fit: cover; filter: blur(14px) saturate(.6) brightness(.45); transform: scale(1.05); }
.maint__art::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, rgba(245,176,20,.12) 0 14px, transparent 14px 28px); pointer-events: none; }
.maint__gear { position: relative; z-index: 1; display: inline-flex; color: var(--gold); filter: drop-shadow(0 6px 18px rgba(0,0,0,.55)); }
.maint__gear .icon { width: 100%; height: 100%; stroke-width: 1.5; }
.maint__gear--big { width: 128px; height: 128px; animation: maint-spin 9s linear infinite; }
.maint__gear--small { position: absolute; z-index: 1; width: 64px; height: 64px; margin: 118px 0 0 132px; color: var(--white); animation: maint-spin 6s linear infinite reverse; }
.maint__art--t0 .maint__gear { color: var(--black); }
.maint__art--t0 .maint__gear--small { color: var(--white); }
@keyframes maint-spin { to { transform: rotate(360deg); } }
@keyframes maint-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(245,176,20,.7); } 70% { box-shadow: 0 0 0 8px rgba(245,176,20,0); } }

.maint__body { display: grid; align-content: center; gap: 14px; padding: 36px 40px; }
.maint__tag { justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--gold); color: var(--accent-text); font: 600 12px/1 var(--font); letter-spacing: .12em; text-transform: uppercase; }
.maint__tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); animation: maint-pulse 1.8s ease-out infinite; }
.maint__title { font: 700 clamp(24px, 3.2vw, 34px)/1.15 var(--font); }
.maint__text { color: var(--muted); font-size: 16px; line-height: 1.6; max-width: 56ch; }
.maint__text b { color: var(--fg); }
.maint__safe { display: flex; align-items: center; gap: 8px; color: var(--fg); font-size: 15px; }
.maint__safe .icon { width: 20px; height: 20px; color: var(--gold); }
[data-theme="light"] .maint__safe .icon { color: var(--black); }
.maint__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.maint__help { color: var(--muted); font-size: 14px; }
.maint__help a { color: var(--fg); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.maint__more { margin-top: 44px; display: grid; gap: 18px; }

@media (max-width: 860px) {
    .maint { padding-block: 20px 40px; }
    .maint__card { grid-template-columns: 1fr; }
    .maint__art { min-height: 190px; }
    .maint__gear--big { width: 96px; height: 96px; }
    .maint__gear--small { width: 48px; height: 48px; margin: 88px 0 0 100px; }
    .maint__body { padding: 24px 20px 26px; }
    .maint__actions .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { .maint__gear, .maint__tag i { animation: none; } }
