/* Sıcak Koltuk — kurulum (açık, sitenin normal görünümü) + sahne (koyu, projeksiyon).
   Sahne kabuğu yaris.css'teki düzenin aynısıdır ama kasıtlı olarak kopyalanmıştır:
   iki uygulama birbirine bağlanmasın, birinde yapılan değişiklik diğerini bozmasın.
   Ayrım rengindedir — Yarış lacivert, Sıcak Koltuk sıcak (amber/turuncu).

   Şıkların altıgen hissi, gerilim ve defter şeridi sinav.css'teki Kim Milyoner
   görünümünden alındı. */

.sk {
    --sk-sicak: #f59e0b;
    --sk-sicak-koyu: #b45309;
    --sk-alev: #fb923c;
}

.sk-gizli {
    display: none !important;
}

/* ================= KURULUM ================= */

.sk-banner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: clamp(16px, 3vw, 40px);
    align-items: center;
    padding: clamp(20px, 3vw, 38px);
    margin-bottom: clamp(18px, 3vh, 32px);
    border-radius: 1.3rem;
    background:
        radial-gradient(900px 420px at 95% -30%, hsl(32 92% 60% / .16) 0%, transparent 60%),
        linear-gradient(135deg, hsl(32 90% 97%), hsl(24 80% 94%));
    border: 1px solid hsl(32 60% 84%);
}

.sk-etiket {
    display: inline-block;
    padding: 4px 11px;
    border-radius: 999px;
    background: hsl(32 80% 90%);
    border: 1px solid hsl(32 60% 78%);
    color: var(--sk-sicak-koyu);
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.sk-banner h1 {
    margin: .5rem 0 .4rem;
    font-size: clamp(1.8rem, 3.4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -.03em;
}

.sk-banner p {
    max-width: 46rem;
    color: var(--muted-foreground);
    line-height: 1.65;
}

.sk-adimlar {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}

.sk-adimlar li {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .4rem .8rem;
    border-radius: 999px;
    background: var(--card);
    border: 1px solid hsl(32 50% 86%);
    font-size: .88rem;
    font-weight: 600;
}

.sk-adimlar b {
    display: grid;
    place-items: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    background: var(--sk-sicak-koyu);
    color: #fff;
    font-size: .76rem;
}

.sk-banner-gorsel svg {
    width: clamp(130px, 16vw, 200px);
    height: auto;
}

.sk-banner-gorsel .s { fill: var(--sk-sicak-koyu); }
.sk-banner-gorsel .g2 { fill: var(--sk-sicak); }
.sk-banner-gorsel .g1 { fill: hsl(32 60% 80%); }
.sk-banner-gorsel .c { fill: none; stroke: var(--sk-sicak-koyu); stroke-width: 3; stroke-linecap: round; }

/* ---- Dosya yükleme ---- */

.sk-yukle {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: clamp(16px, 2.4vw, 30px);
    align-items: start;
}

.sk-birak {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .55rem;
    padding: clamp(22px, 3.4vw, 40px) clamp(16px, 2.4vw, 28px);
    border-radius: 1.1rem;
    border: 2px dashed hsl(32 55% 76%);
    background: hsl(32 70% 98%);
    text-align: center;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease;
}

.sk-birak:hover,
.sk-birak.over {
    background: hsl(32 80% 95%);
    border-color: var(--sk-sicak);
}

.sk-birak-ikon { font-size: 3rem; line-height: 1; }
.sk-birak b { font-size: 1.2rem; }

.sk-birak-not {
    max-width: 26rem;
    font-size: .89rem;
    line-height: 1.6;
    color: var(--muted-foreground);
}

.sk-birak-dugme {
    margin-top: .4rem;
    padding: .5rem 1.1rem;
    border-radius: var(--radius);
    background: var(--sk-sicak-koyu);
    color: #fff;
    font-weight: 700;
    font-size: .92rem;
}

.sk-sag { min-width: 0; }

.sk-alt-baslik {
    display: flex;
    align-items: center;
    gap: .7rem;
    margin: 0 0 .35rem;
    font-size: 1rem;
    font-weight: 800;
    color: var(--foreground);
}

.sk-alt-baslik::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
}

.sk-alt-not {
    margin: 0 0 .8rem;
    font-size: .84rem;
    color: var(--muted-foreground);
}

.sk-ornek-liste { display: grid; gap: .5rem; }

.sk-ornek-kart {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: .75rem;
    padding: .6rem .8rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--card);
}

.sk-ornek-kart:hover { border-color: hsl(32 60% 78%); }
.sk-ornek-ikon { font-size: 1.5rem; }
.sk-ornek-yazi { display: grid; min-width: 0; }
.sk-ornek-yazi b { font-size: .93rem; }

.sk-ornek-yazi span {
    font-size: .8rem;
    color: var(--muted-foreground);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sk-ornek-islem { display: flex; gap: .35rem; }

.sk-bicim {
    margin-top: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card);
}

.sk-bicim summary {
    padding: .7rem .9rem;
    font-weight: 700;
    font-size: .92rem;
    cursor: pointer;
}

.sk-bicim-ic { padding: 0 .9rem .9rem; }
.sk-bicim-ic p { font-size: .87rem; line-height: 1.65; }

.sk-bicim-ic pre {
    margin: .6rem 0;
    padding: .8rem;
    border-radius: var(--radius);
    background: hsl(222 32% 14%);
    color: hsl(220 30% 90%);
    font-size: .8rem;
    line-height: 1.55;
    overflow: auto;
}

/* ---- Hazır kartı ---- */

.sk-hazir-kart {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .55rem;
    padding: clamp(24px, 4vw, 44px);
    border-radius: 1.2rem;
    border: 1px solid hsl(32 55% 84%);
    background: linear-gradient(160deg, hsl(32 85% 98%), var(--card));
    text-align: center;
}

.sk-hazir-ikon { font-size: 3.2rem; line-height: 1; }
.sk-hazir-kart h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); letter-spacing: -.02em; }
.sk-hazir-aciklama { max-width: 44rem; color: var(--muted-foreground); font-size: .92rem; line-height: 1.6; }
.sk-hazir-bilgi { font-weight: 700; color: var(--sk-sicak-koyu); }

.sk-joker-onizleme {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    justify-content: center;
    margin-top: .3rem;
}

.sk-joker-mini {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .35rem .75rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--muted);
    font-size: .82rem;
    font-weight: 700;
}

.sk-hazir-not {
    max-width: 40rem;
    font-size: .83rem;
    line-height: 1.6;
    color: var(--muted-foreground);
}

@media (max-width: 860px) {
    .sk-banner { grid-template-columns: minmax(0, 1fr); }
    .sk-banner-gorsel { justify-self: center; }
    .sk-yukle { grid-template-columns: minmax(0, 1fr); }
}

/* ================= SAHNE ================= */

.sk-sahne-kat {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    flex-direction: column;
    color: #fff4e6;
    background:
        radial-gradient(1200px 700px at 12% -10%, #5b2a06 0%, transparent 60%),
        radial-gradient(1000px 650px at 88% 110%, #45210a 0%, transparent 62%),
        linear-gradient(160deg, #190d05 0%, #241206 48%, #190d05 100%);
    font-family: var(--font-display, Inter, system-ui, sans-serif);
    overflow: hidden;
}

/* Ekran ölü durmasın diye çok hafif, sürekli kayan bir ocak ışığı. */
.sk-sahne-kat::before {
    content: "";
    position: absolute;
    inset: -30%;
    width: 70vmax;
    height: 70vmax;
    background: radial-gradient(closest-side, hsl(32 92% 55% / .16), transparent);
    animation: skIsik 22s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes skIsik {
    from { transform: translate(-6%, -4%) scale(1); }
    to { transform: translate(18%, 12%) scale(1.25); }
}

@media (prefers-reduced-motion: reduce) {
    .sk-sahne-kat::before { animation: none; }
}

/* ---- Üst şerit ---- */

.sahne-ust {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: clamp(10px, 1.4vw, 20px);
    padding: clamp(10px, 1.4vh, 18px) clamp(14px, 2.2vw, 34px);
    border-bottom: 1px solid hsl(32 50% 70% / .16);
    flex-wrap: wrap;
}

.sahne-ust .baslik {
    font-weight: 800;
    font-size: clamp(14px, 1.3vw, 20px);
    letter-spacing: -.02em;
    color: #ffe2bd;
}

.sahne-ust .bosluk { flex: 1; }

.sahne-rozet {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    background: hsl(32 60% 60% / .14);
    border: 1px solid hsl(32 60% 70% / .2);
    font-size: clamp(12px, 1vw, 15px);
    font-weight: 700;
    color: #ffe9cf;
    white-space: nowrap;
}

.sahne-rozet.kod {
    font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
    letter-spacing: .18em;
    font-weight: 800;
}

.sahne-rozet.seri {
    background: linear-gradient(135deg, var(--sk-alev), var(--sk-sicak));
    border-color: transparent;
    color: #2a1301;
    font-weight: 800;
}

.sahne-rozet.canli::before,
.sahne-rozet.kopuk::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 12px #34d399;
    animation: skNabiz 1.8s ease-in-out infinite;
}

.sahne-rozet.kopuk::before {
    background: #f87171;
    box-shadow: 0 0 12px #f87171;
    animation: none;
}

@keyframes skNabiz { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

.sahne-dugme {
    border: 1px solid hsl(32 60% 70% / .24);
    background: hsl(32 60% 60% / .1);
    color: #ffe9cf;
    border-radius: 10px;
    padding: 8px 14px;
    font: 700 clamp(12px, 1vw, 15px)/1 inherit;
    cursor: pointer;
}

.sahne-dugme:hover { background: hsl(32 60% 60% / .2); }

/* ---- Orta alan: ana sahne + defter şeridi ---- */

.sahne-govde {
    position: relative;
    z-index: 2;
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(190px, 17vw, 270px);
    gap: clamp(14px, 2vw, 32px);
    padding: clamp(16px, 2.6vh, 36px) clamp(16px, 3vw, 48px);
    overflow: hidden;
}

.sahne-ana {
    min-width: 0;
    min-height: 0;
    overflow: auto;
    display: flex;
    flex-direction: column;
    justify-content: safe center;
}

/* ---- Alt şerit: kürsünün düğmeleri ---- */

.sahne-alt {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: clamp(10px, 1.6vh, 20px);
    border-top: 1px solid hsl(32 50% 70% / .16);
    background: hsl(28 60% 12% / .45);
}

.sahne-ana-dugme {
    border: 0;
    border-radius: 14px;
    padding: clamp(11px, 1.5vh, 16px) clamp(20px, 2.4vw, 34px);
    font: 800 clamp(14px, 1.25vw, 19px)/1 inherit;
    cursor: pointer;
    color: #2a1301;
    background: linear-gradient(135deg, #fcd34d, #fde8b0);
    box-shadow: 0 10px 30px hsl(32 90% 45% / .3);
    transition: transform .1s ease, filter .15s ease;
}

.sahne-ana-dugme:hover { filter: brightness(1.06); }
.sahne-ana-dugme:active { transform: translateY(1px); }
.sahne-ana-dugme:disabled { opacity: .4; cursor: default; box-shadow: none; filter: none; }

.sahne-ana-dugme.sessiz {
    background: hsl(32 60% 60% / .12);
    color: #ffe2bd;
    border: 1px solid hsl(32 60% 70% / .22);
    box-shadow: none;
}

/* Geri alma: kısa süre duran, dikkat çeken ama ana eylem olmayan düğme. */
.sahne-ana-dugme.geri {
    background: hsl(0 60% 60% / .16);
    color: #ffd9d9;
    border: 1px solid hsl(0 60% 70% / .35);
    box-shadow: none;
}

.sahne-kisayol {
    width: 100%;
    text-align: center;
    font-size: clamp(10px, .8vw, 12px);
    color: hsl(32 30% 70% / .6);
}

/* ---- LOBİ ---- */

.lobi {
    display: grid;
    grid-template-columns: minmax(280px, 34%) minmax(0, 1fr);
    gap: clamp(20px, 3vw, 46px);
    align-items: center;
}

.lobi-karekod { text-align: center; }

.karekod-cerceve {
    display: inline-block;
    padding: clamp(10px, 1.2vw, 18px);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 24px 70px hsl(28 80% 6% / .6), 0 0 0 1px hsl(32 60% 80% / .2);
}

.karekod-cerceve svg {
    display: block;
    width: clamp(170px, 20vw, 300px);
    height: auto;
}

.lobi-kod {
    margin-top: clamp(14px, 2vh, 24px);
    display: flex;
    gap: clamp(5px, .6vw, 10px);
    justify-content: center;
}

.lobi-kod span {
    display: grid;
    place-items: center;
    width: clamp(38px, 4.2vw, 62px);
    height: clamp(48px, 5.4vw, 80px);
    border-radius: 12px;
    background: hsl(32 60% 60% / .13);
    border: 1px solid hsl(32 60% 70% / .24);
    font: 800 clamp(24px, 2.9vw, 42px)/1 ui-monospace, "Cascadia Code", Consolas, monospace;
    color: #fff;
}

.lobi-ipucu { margin: clamp(8px, 1.2vh, 14px) 0 0; color: #e4b483; font-size: clamp(13px, 1.05vw, 17px); }
.lobi-adres { margin-top: 4px; font-size: clamp(11px, .85vw, 14px); color: #b58a5f; word-break: break-all; }
.lobi-sag { min-width: 0; }
.lobi-sayac { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }

.lobi-sayac b {
    font-size: clamp(50px, 7vw, 100px);
    line-height: .95;
    letter-spacing: -.05em;
    background: linear-gradient(135deg, #fff, #fcd34d);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.lobi-sayac span { font-size: clamp(16px, 1.5vw, 24px); font-weight: 700; color: #e9c79f; }

.lobi-not {
    margin: .4rem 0 .8rem;
    font-size: clamp(12px, .95vw, 15px);
    line-height: 1.6;
    color: #c79a6c;
    max-width: 34rem;
}

.lobi-isimler {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: 42vh;
    overflow: auto;
}

.lobi-isim {
    padding: 7px 14px;
    border-radius: 999px;
    background: hsl(32 60% 60% / .14);
    border: 1px solid hsl(32 60% 70% / .2);
    color: #ffe9cf;
    font: 700 clamp(13px, 1.1vw, 17px)/1 inherit;
    cursor: pointer;
    animation: skGir .3s ease-out;
}

.lobi-isim:hover { background: var(--sk-sicak); border-color: transparent; color: #2a1301; }
.lobi-bos { color: #a67c53; font-size: clamp(13px, 1vw, 16px); }

@keyframes skGir {
    from { opacity: 0; transform: scale(.8); }
    to { opacity: 1; transform: scale(1); }
}

/* ---- ÇARK ---- */

.cark { text-align: center; }

.cark-etiket {
    font-size: clamp(14px, 1.4vw, 22px);
    font-weight: 700;
    color: #e4b483;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.cark-sahne {
    position: relative;
    display: grid;
    place-items: center;
    margin: clamp(14px, 2.4vh, 30px) auto;
    padding: clamp(24px, 5vh, 60px) clamp(20px, 4vw, 60px);
    max-width: min(100%, 60rem);
    border-radius: 28px;
    border: 1px solid hsl(32 60% 70% / .22);
    background: hsl(28 60% 14% / .6);
    overflow: hidden;
}

.cark-parilti {
    position: absolute;
    inset: -40%;
    background: radial-gradient(closest-side, hsl(32 92% 60% / .3), transparent);
    animation: skIsik 6s ease-in-out infinite alternate;
}

.cark-sahne > .cark-ad {
    position: relative;
    font-size: clamp(34px, 7vw, 92px);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.05;
    color: #fff;
    overflow-wrap: anywhere;
}

.cark-sahne.donuyor { border-color: hsl(32 70% 60% / .4); }
.cark-sahne.donuyor > .cark-ad { animation: skCakma .12s ease-out; }

.cark-sahne.secildi {
    border-color: var(--sk-sicak);
    background: linear-gradient(135deg, hsl(32 85% 30% / .8), hsl(14 80% 24% / .8));
    animation: skPat .6s cubic-bezier(.2, 1.6, .4, 1);
}

@keyframes skCakma { from { opacity: .4; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes skPat { 0% { transform: scale(.92); } 60% { transform: scale(1.04); } 100% { transform: scale(1); } }

.cark-not { font-size: clamp(14px, 1.3vw, 20px); color: #e9c79f; font-weight: 600; }

/* ---- KOLTUK ---- */

.koltuk {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    text-align: center;
}

.koltuk-ikon { font-size: clamp(42px, 6vw, 80px); line-height: 1; }

.koltuk-etiket {
    font-size: clamp(13px, 1.2vw, 18px);
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #e4b483;
}

.koltuk-ad {
    font-size: clamp(32px, 6vw, 80px);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.05;
    color: #fff;
    overflow-wrap: anywhere;
}

.koltuk-durum {
    padding: .45rem 1.1rem;
    border-radius: 999px;
    background: hsl(32 60% 60% / .14);
    border: 1px solid hsl(32 60% 70% / .2);
    font-size: clamp(13px, 1.1vw, 17px);
    font-weight: 700;
    color: #e9c79f;
}

.koltuk.hazir .koltuk-durum {
    background: linear-gradient(135deg, #34d399, #a7f3d0);
    border-color: transparent;
    color: #04281c;
}

.koltuk-not { max-width: 38rem; font-size: clamp(12px, 1vw, 16px); line-height: 1.65; color: #c79a6c; }

.koltuk-pas-iz { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: .4rem; }

.koltuk-pas-iz span {
    padding: 4px 10px;
    border-radius: 999px;
    background: hsl(32 30% 40% / .25);
    border: 1px dashed hsl(32 40% 60% / .3);
    font-size: clamp(11px, .9vw, 14px);
    color: #c79a6c;
}

/* ---- OYUN: soru, şıklar, jokerler ---- */

.oyun { display: flex; flex-direction: column; gap: clamp(10px, 1.6vh, 20px); }

.oyun-ust { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.oyun-koltuk {
    padding: 6px 14px;
    border-radius: 999px;
    background: hsl(32 60% 60% / .14);
    border: 1px solid hsl(32 60% 70% / .2);
    font-size: clamp(12px, 1.05vw, 17px);
    color: #ffe9cf;
}

.oyun-sayac {
    margin-left: auto;
    padding: 6px 14px;
    border-radius: 999px;
    background: hsl(200 60% 50% / .16);
    border: 1px solid hsl(200 60% 60% / .28);
    font-size: clamp(12px, 1.05vw, 17px);
    font-weight: 700;
    color: #bfe4ff;
}

.oyun-sayac.kesin {
    background: hsl(160 60% 40% / .22);
    border-color: hsl(160 60% 55% / .4);
    color: #a7f3d0;
}

.soru-metni {
    margin: 0;
    font-size: clamp(18px, 2.2vw, 36px);
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -.01em;
    color: #fff;
}

.soru-metni code,
.aciklama code,
.ozet-metin code {
    padding: .1em .35em;
    border-radius: 6px;
    background: hsl(32 60% 60% / .18);
    font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
    font-size: .88em;
}

.sikler { display: grid; gap: clamp(6px, 1vh, 12px); }

/* Kim Milyoner'in kesik köşeli şık hissi. */
.sik {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(10px, 1.4vw, 20px);
    padding: clamp(9px, 1.3vh, 16px) clamp(14px, 1.8vw, 24px);
    border: 1px solid hsl(32 60% 70% / .22);
    background: hsl(28 55% 16% / .6);
    clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
    transition: background .2s ease, border-color .2s ease, opacity .25s ease;
}

.sik .harf {
    font-size: clamp(16px, 1.8vw, 28px);
    font-weight: 800;
    color: var(--sk-sicak);
    min-width: 1.2em;
}

.sik .govde {
    font-size: clamp(14px, 1.5vw, 24px);
    line-height: 1.35;
    color: #ffeeda;
}

.sik .oy {
    position: relative;
    display: grid;
    place-items: center;
    width: clamp(70px, 8vw, 130px);
    height: clamp(26px, 3vh, 36px);
    border-radius: 8px;
    background: hsl(32 30% 50% / .18);
    overflow: hidden;
}

.sik .oy i {
    position: absolute;
    inset: 0 auto 0 0;
    background: linear-gradient(90deg, hsl(200 70% 50% / .7), hsl(200 80% 65% / .7));
    transition: width .6s cubic-bezier(.2, .8, .2, 1);
}

.sik .oy b { position: relative; font-size: clamp(12px, 1.1vw, 17px); font-weight: 800; color: #fff; }

.sik.elendi { opacity: .22; filter: grayscale(1); }
.sik.secili { border-color: var(--sk-sicak); background: hsl(32 70% 26% / .75); }

.sik.dogru {
    border-color: #34d399;
    background: linear-gradient(135deg, hsl(160 70% 28% / .9), hsl(160 60% 20% / .9));
}

.sik.dogru .harf { color: #a7f3d0; }

.sik.yanlis {
    border-color: #f87171;
    background: linear-gradient(135deg, hsl(0 60% 30% / .9), hsl(0 50% 22% / .9));
}

.sik.yanlis .harf { color: #fecaca; }

/* ---- Jokerler ---- */

.jokerler { display: flex; align-items: center; gap: clamp(6px, 1vw, 12px); flex-wrap: wrap; }

.joker {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: clamp(7px, 1vh, 11px) clamp(12px, 1.4vw, 18px);
    border-radius: 999px;
    border: 1px solid hsl(32 60% 70% / .28);
    background: hsl(32 60% 60% / .12);
    color: #ffe9cf;
    font: 700 clamp(12px, 1.05vw, 16px)/1 inherit;
    cursor: pointer;
    transition: background .15s ease, opacity .2s ease;
}

.joker:hover { background: hsl(32 70% 55% / .28); }
.joker .j-ico { font-size: 1.15em; }

/* Bu turda kapalı: hak doldu ama joker duruyor — sonraki soruda döner. */
.joker.tur-kapali {
    opacity: .45;
    cursor: default;
    background: hsl(32 20% 40% / .14);
}

.joker.tur-kapali::after {
    content: "⏳";
    font-size: .95em;
}

/* Tükendi: oyun boyunca bitti, geri gelmez. İki durum karışmasın. */
.joker.tukendi {
    opacity: .3;
    cursor: default;
    background: hsl(28 20% 20% / .5);
    border-style: dashed;
    text-decoration: line-through;
}

.joker.tukendi::after { content: "✕"; font-size: .95em; text-decoration: none; }

.joker.acik-joker {
    background: linear-gradient(135deg, var(--sk-alev), var(--sk-sicak));
    border-color: transparent;
    color: #2a1301;
    text-decoration: none;
    opacity: 1;
}

.joker-bilgi {
    margin-left: auto;
    font-size: clamp(11px, .95vw, 15px);
    color: #c79a6c;
    font-weight: 600;
}

/* ---- Bekleyen joker isteği ---- */

.istek {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    padding: clamp(10px, 1.4vh, 16px) clamp(14px, 1.8vw, 22px);
    border-radius: 14px;
    border: 1px solid var(--sk-sicak);
    background: hsl(32 70% 22% / .7);
    animation: skPat .4s ease-out;
}

.istek-metin { font-size: clamp(14px, 1.3vw, 20px); color: #fff; }
.istek-dugmeler { margin-left: auto; display: flex; gap: .4rem; }

/* ---- Arkadaşını ara ---- */

.arama {
    padding: clamp(10px, 1.4vh, 16px) clamp(14px, 1.8vw, 22px);
    border-radius: 14px;
    border: 1px solid hsl(260 60% 70% / .35);
    background: hsl(260 50% 22% / .6);
}

.arama-ust { display: flex; align-items: center; gap: 10px; font-size: clamp(13px, 1.2vw, 19px); }
.arama-ikon { font-size: 1.5em; }
.arama-ust small { display: block; font-size: .78em; color: #c9b8f0; font-weight: 600; }

.arama-balon {
    position: relative;
    margin: .7rem 0 .4rem;
    padding: clamp(10px, 1.4vh, 16px) clamp(14px, 1.8vw, 20px);
    border-radius: 16px 16px 16px 4px;
    background: hsl(260 60% 70% / .18);
    font-size: clamp(14px, 1.4vw, 22px);
    color: #fff;
}

.arama-balon b { color: #ddd0ff; font-size: 1.15em; }
.arama-balon span { display: block; margin-top: .25rem; font-size: .85em; color: #e6dcff; }
.arama-balon.bekliyor { color: #b9a8e0; font-style: italic; }
.arama-not { margin: 0; font-size: clamp(11px, .9vw, 14px); color: #b9a8e0; }

/* ---- Doğru cevap açıklaması ---- */

.aciklama {
    padding: clamp(12px, 1.6vh, 20px) clamp(14px, 2vw, 26px);
    border-radius: 16px;
    border: 1px solid hsl(32 60% 70% / .24);
    background: hsl(28 55% 16% / .7);
    animation: skGir .35s ease-out;
}

.aciklama.d { border-color: #34d399; background: hsl(160 50% 16% / .75); }
.aciklama.y { border-color: #f87171; background: hsl(0 45% 18% / .75); }

.aciklama-ust {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: .5rem;
    font-size: clamp(16px, 1.6vw, 26px);
    font-weight: 800;
}

.aciklama-ust small { font-weight: 600; font-size: .62em; color: #e9c79f; margin-left: auto; }
.aciklama p { margin: 0; font-size: clamp(13px, 1.25vw, 20px); line-height: 1.6; color: #ffeeda; }

/* ---- KOLTUK DEFTERİ ---- */

.defter {
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    padding: clamp(10px, 1.4vh, 16px);
    border-radius: 16px;
    border: 1px solid hsl(32 50% 70% / .16);
    background: hsl(28 60% 10% / .5);
}

.defter h3 {
    margin: 0;
    font-size: clamp(11px, .95vw, 14px);
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #c79a6c;
    text-align: center;
}

.defter-liste { flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 3px; }

.defter-satir {
    display: grid;
    grid-template-columns: 1.6em 1.2em minmax(0, 1fr);
    align-items: center;
    gap: 6px;
    padding: clamp(4px, .7vh, 8px) 8px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-size: clamp(11px, .95vw, 15px);
    color: #c79a6c;
}

.defter-satir .no { font-weight: 800; text-align: right; opacity: .65; }
.defter-satir .kim { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.defter-satir .pas {
    display: block;
    font-size: .8em;
    opacity: .6;
    overflow: hidden;
    text-overflow: ellipsis;
}

.defter-satir.dogru { background: hsl(160 50% 25% / .3); color: #a7f3d0; }
.defter-satir.yanlis { background: hsl(0 50% 30% / .3); color: #fecaca; }
.defter-satir.atlandi { background: hsl(28 20% 30% / .25); color: #9b7a5a; }
.defter-satir.atlandi .kim { font-style: italic; }

.defter-satir.simdi {
    background: linear-gradient(135deg, var(--sk-alev), var(--sk-sicak));
    border-color: #fff;
    color: #2a1301;
    font-weight: 800;
}

.defter-satir.simdi .no { opacity: 1; }

/* ---- DERSİN ÖZETİ ---- */

.ozet { overflow: auto; }
.ozet h2 { font-size: clamp(22px, 3vw, 40px); letter-spacing: -.03em; margin: 0 0 .25rem; }
.ozet-ust { margin: 0 0 1rem; color: #e9c79f; font-size: clamp(13px, 1.15vw, 18px); }

.ozet-govde {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: clamp(12px, 2vw, 28px);
    align-items: start;
}

.ozet-yan { display: grid; gap: clamp(10px, 1.6vh, 18px); }

.ozet-blok {
    padding: clamp(12px, 1.6vh, 18px);
    border-radius: 16px;
    border: 1px solid hsl(32 50% 70% / .16);
    background: hsl(28 60% 12% / .5);
}

.ozet-blok h3 { margin: 0 0 .6rem; font-size: clamp(13px, 1.15vw, 18px); color: #ffe2bd; }
.ozet-not { margin: 0; font-size: clamp(11px, .95vw, 14px); color: #a67c53; line-height: 1.55; }

.ozet-soru { padding: .6rem 0; border-top: 1px solid hsl(32 40% 60% / .14); }
.ozet-soru:first-of-type { border-top: 0; }
.ozet-soru-ust { display: flex; align-items: center; gap: 10px; margin-bottom: .3rem; }

.ozet-no {
    display: grid;
    place-items: center;
    width: 1.7em;
    height: 1.7em;
    border-radius: 50%;
    background: hsl(32 60% 60% / .16);
    font-size: clamp(11px, .95vw, 14px);
    font-weight: 800;
    color: #e9c79f;
}

.ozet-oran { font-size: clamp(15px, 1.5vw, 24px); font-weight: 800; }
.ozet-oran.kotu { color: #fca5a5; }
.ozet-oran.orta { color: #fcd34d; }
.ozet-oran.iyi { color: #6ee7b7; }
.ozet-soru-ust small { margin-left: auto; font-size: clamp(10px, .85vw, 13px); color: #a67c53; }

.ozet-metin { margin: 0; font-size: clamp(12px, 1.05vw, 16px); line-height: 1.5; color: #ffeeda; }

.ozet-celdirici {
    margin: .35rem 0 0;
    font-size: clamp(11px, .95vw, 15px);
    color: #fca5a5;
    line-height: 1.5;
}

.ozet-celdirici b { color: #fecaca; }
.ozet-celdirici span { opacity: .7; }

.ozet-oturanlar { display: flex; flex-wrap: wrap; gap: 6px; }

.ozet-oturan {
    padding: 5px 11px;
    border-radius: 999px;
    font-size: clamp(11px, .95vw, 15px);
    font-weight: 700;
}

.ozet-oturan.d { background: hsl(160 50% 25% / .35); color: #a7f3d0; }
.ozet-oturan.y { background: hsl(0 50% 30% / .35); color: #fecaca; }

.ozet-atlanan {
    margin: .4rem 0 0;
    font-size: clamp(11px, .95vw, 15px);
    line-height: 1.5;
    color: #c79a6c;
}

/* ---- İsim seçme katmanı ---- */

.sk-ov {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: grid;
    place-items: center;
    padding: 20px;
    background: hsl(28 60% 6% / .8);
    backdrop-filter: blur(4px);
}

.sk-ov-kutu {
    max-width: min(100%, 44rem);
    max-height: 80vh;
    overflow: auto;
    padding: clamp(16px, 2.4vw, 30px);
    border-radius: 20px;
    border: 1px solid hsl(32 60% 70% / .28);
    background: linear-gradient(160deg, hsl(28 55% 16%), hsl(28 60% 11%));
    text-align: center;
}

.sk-ov-kutu h3 { margin: 0 0 .3rem; font-size: clamp(17px, 1.8vw, 26px); color: #fff; }
.sk-ov-kutu p { margin: 0 0 1rem; font-size: clamp(12px, 1vw, 15px); color: #c79a6c; }
.sk-ov-isimler { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 1rem; }

.sk-ov-isim {
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid hsl(32 60% 70% / .24);
    background: hsl(32 60% 60% / .14);
    color: #ffe9cf;
    font: 700 clamp(12px, 1.05vw, 16px)/1 inherit;
    cursor: pointer;
}

.sk-ov-isim:hover { background: var(--sk-sicak); border-color: transparent; color: #2a1301; }

/* Daraldığında defter şeridi alta iner. */
@media (max-width: 1000px) {
    .sahne-govde { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
    .defter { max-height: 24vh; }
    .defter-liste { flex-direction: row; flex-wrap: wrap; }
    .defter-satir { grid-template-columns: auto auto; }
    .defter-satir .kim { display: none; }
    .lobi { grid-template-columns: minmax(0, 1fr); }
    .ozet-govde { grid-template-columns: minmax(0, 1fr); }
}

/* ================= TELEFON ================= */

.sk-tel { max-width: 34rem; margin: 0 auto; }

.tel-giris { display: flex; flex-direction: column; gap: .4rem; text-align: center; padding: 1.6rem 1.2rem; }
.tel-giris .ikon { font-size: 3rem; line-height: 1; }
.tel-giris h1 { font-size: 1.6rem; letter-spacing: -.02em; }
.tel-giris label { margin-top: .6rem; text-align: left; font-size: .85rem; font-weight: 700; }
.tel-giris input { width: 100%; }

.tel-giris .kod {
    font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
    font-size: 1.5rem;
    letter-spacing: .3em;
    text-align: center;
    text-transform: uppercase;
}

.tel-giris .btn { margin-top: 1rem; }

.tel-ust {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: .8rem;
    padding: .7rem .9rem;
    border-radius: var(--radius);
    background: var(--card);
    border: 1px solid var(--border);
}

.tel-ust .ad { font-weight: 800; }
.tel-ust .oda { font-size: .78rem; color: var(--muted-foreground); }

.tel-rozet {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--muted);
    font-size: .74rem;
    font-weight: 700;
    color: var(--muted-foreground);
}

.tel-rozet::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--slate);
}

.tel-rozet.canli::before { background: #10b981; }
.tel-rozet.kopuk::before { background: var(--destructive); }

.tel-bekle, .tel-koltuk { text-align: center; padding: 1.8rem 1.2rem; display: flex; flex-direction: column; gap: .5rem; }
.tel-bekle .buyuk, .tel-koltuk .buyuk, .tel-sonuc .buyuk, .tel-arama .buyuk { font-size: 3.2rem; line-height: 1; }
.tel-bekle h2, .tel-koltuk h2 { font-size: 1.35rem; letter-spacing: -.02em; }
.tel-bekle p, .tel-koltuk p { color: var(--muted-foreground); font-size: .9rem; line-height: 1.6; }

.tel-koltuk {
    border-color: hsl(32 60% 76%);
    background: linear-gradient(160deg, hsl(32 85% 97%), var(--card));
}

.tel-koltuk-tuslar { display: grid; gap: .5rem; margin-top: .5rem; }
.tel-koltuk-tuslar .btn.secilen { background: #10b981; border-color: #10b981; color: #fff; }

.tel-soru { padding: 1rem; }
.tel-soru .no { font-size: .78rem; font-weight: 800; color: var(--muted-foreground); letter-spacing: .06em; }
.tel-soru .metin { margin: .3rem 0 .9rem; font-size: 1.08rem; font-weight: 600; line-height: 1.5; }

.tel-soru .metin code, .tel-sik code, .tel-sonuc code {
    padding: .1em .35em;
    border-radius: 5px;
    background: var(--muted);
    font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
    font-size: .88em;
}

.tel-sikler { display: grid; gap: .45rem; }

.tel-sik {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: .7rem;
    width: 100%;
    padding: .8rem .9rem;
    border-radius: var(--radius);
    border: 1px solid var(--input);
    background: var(--card);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, opacity .2s ease;
}

.tel-sik:disabled { cursor: default; }
.tel-sik:not(:disabled):hover { border-color: var(--sk-sicak); background: hsl(32 80% 97%); }

.tel-sik .harf {
    display: grid;
    place-items: center;
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 50%;
    background: var(--muted);
    font-weight: 800;
    font-size: .92rem;
    color: var(--sk-sicak-koyu);
}

.tel-sik .govde { font-size: .95rem; line-height: 1.4; }
.tel-sik .tel-oy { font-size: .78rem; font-weight: 700; color: var(--muted-foreground); white-space: nowrap; }

.tel-sik.elendi { opacity: .35; text-decoration: line-through; }
.tel-sik.secilen { border-color: var(--sk-sicak); background: hsl(32 85% 94%); }
.tel-sik.secilen .harf { background: var(--sk-sicak); color: #fff; }
.tel-sik.dogru { border-color: #10b981; background: hsl(160 60% 95%); }
.tel-sik.dogru .harf { background: #10b981; color: #fff; }
.tel-sik.yanlis { border-color: var(--destructive); background: hsl(354 70% 96%); }
.tel-sik.yanlis .harf { background: var(--destructive); color: #fff; }

.tel-bilgi {
    margin: .7rem 0 0;
    min-height: 1.2em;
    font-size: .85rem;
    font-weight: 600;
    color: var(--muted-foreground);
}

.tel-koltuk-islem {
    margin-top: .9rem;
    padding-top: .9rem;
    border-top: 1px dashed var(--border);
    display: grid;
    gap: .55rem;
}

.tel-jokerler { display: grid; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); gap: .4rem; }

.tel-joker {
    padding: .6rem .5rem;
    border-radius: var(--radius);
    border: 1px solid var(--input);
    background: var(--card);
    font: 700 .82rem/1.2 inherit;
    cursor: pointer;
}

.tel-joker span { display: block; font-size: 1.25em; }
.tel-joker:not(:disabled):hover { border-color: var(--sk-sicak); background: hsl(32 80% 97%); }
.tel-joker.tur-kapali { opacity: .45; cursor: default; }
.tel-joker.tukendi { opacity: .3; cursor: default; border-style: dashed; text-decoration: line-through; }

.tel-joker-not { margin: 0; font-size: .78rem; line-height: 1.5; color: var(--muted-foreground); }

.tel-arama {
    text-align: center;
    padding: 1.4rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: .55rem;
    border-color: hsl(260 60% 80%);
    background: linear-gradient(160deg, hsl(260 80% 98%), var(--card));
}

.tel-arama h2 { font-size: 1.3rem; }
.tel-arama p { font-size: .88rem; color: var(--muted-foreground); line-height: 1.55; }
.tel-arama input { width: 100%; }
.tel-arama-sikler { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; }

.tel-arama-sikler button {
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 50%;
    border: 1px solid var(--input);
    background: var(--card);
    font: 800 1.05rem/1 inherit;
    cursor: pointer;
}

.tel-arama-sikler button.secilen { background: #6366f1; border-color: #6366f1; color: #fff; }
.tel-arama-sikler button:disabled { opacity: .3; cursor: default; }

.tel-sonuc {
    text-align: center;
    padding: 1.6rem 1.2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--card);
    display: flex;
    flex-direction: column;
    gap: .45rem;
}

.tel-sonuc h2 { font-size: 1.45rem; letter-spacing: -.02em; }
.tel-sonuc p { font-size: .95rem; }
.tel-sonuc .aciklama { font-size: .86rem; line-height: 1.6; color: var(--muted-foreground); text-align: left; }
.tel-sonuc.d { border-color: #10b981; background: hsl(160 60% 97%); }
.tel-sonuc.y { border-color: var(--destructive); background: hsl(354 70% 98%); }
.tel-sonuc.bos { border-style: dashed; }
.tel-sonuc.bitti { border-color: hsl(32 60% 76%); background: linear-gradient(160deg, hsl(32 85% 97%), var(--card)); }

.tel-seri {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    margin-top: .8rem;
    padding: .6rem;
    border-radius: 999px;
    background: linear-gradient(135deg, hsl(32 90% 94%), hsl(24 85% 96%));
    border: 1px solid hsl(32 60% 84%);
    font-size: .85rem;
    font-weight: 700;
    color: var(--sk-sicak-koyu);
}

.tel-seri b { font-size: 1.3rem; }
.tel-seri::after { content: "🔥"; }

.tel-secim {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: grid;
    place-items: center;
    padding: 1.2rem;
    background: hsl(222 32% 14% / .6);
}

.tel-secim-ic {
    width: 100%;
    max-width: 24rem;
    max-height: 80vh;
    overflow: auto;
    padding: 1.2rem;
    border-radius: 1rem;
    background: var(--card);
    text-align: center;
}

.tel-secim-ic h3 { margin: 0 0 .8rem; font-size: 1.15rem; }
.tel-secim-liste { display: grid; gap: .35rem; margin-bottom: .8rem; }

.tel-secim-liste button {
    padding: .7rem;
    border-radius: var(--radius);
    border: 1px solid var(--input);
    background: var(--card);
    font: 700 .95rem/1 inherit;
    cursor: pointer;
}

.tel-secim-liste button:hover { border-color: var(--sk-sicak); background: hsl(32 80% 97%); }
