/* =========================================================
   Akın Öğretmen - Oyunlar
   ========================================================= */
.oyun-sayfa {
    --o-turuncu: #ef6c00;
    --o-turuncu-koyu: #d65f00;
    --o-lacivert: #1f3b73;
    --o-yumusak: #fff6ee;
    --o-koyu: #202b3c;
    --o-gri: #687386;
    --o-cizgi: #ece6df;
    color: var(--o-koyu);
    padding-bottom: 24px;
}

.oyun-baslik h2,
.oyun-ust h2 {
    margin: 0 0 6px;
    font-size: 26px;
    font-weight: 800;
}

.oyun-baslik h2 i {
    color: var(--o-turuncu);
}

.oyun-baslik p {
    margin: 0 0 22px;
    color: var(--o-gri);
}

/* ---------- Oyun kartları (liste) ---------- */
.oyun-kart {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--o-cizgi);
    border-radius: 16px;
    color: var(--o-koyu) !important;
    text-decoration: none !important;
    transition: transform .2s ease, box-shadow .2s ease;
}

a.oyun-kart:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(32, 43, 60, .12);
}

.oyun-kart-gorsel {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    padding: 22px 48px;
    background: linear-gradient(135deg, #fff1e3, #fde3c8);
}

.oyun-kart-gorsel span {
    aspect-ratio: 1;
    border-radius: 5px;
    background: rgba(255, 255, 255, .85);
}

.oyun-kart-gorsel span.e { background: #5b4636; }
.oyun-kart-gorsel span.t1 { background: radial-gradient(circle at 35% 30%, #ffb46b, var(--o-turuncu) 60%); border-radius: 50%; }
.oyun-kart-gorsel span.t2 { background: radial-gradient(circle at 35% 30%, #6d8fd1, var(--o-lacivert) 60%); border-radius: 50%; }

.oyun-kart-bos {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 210px;
    color: #e2c6aa;
    font-size: 64px;
}

.oyun-kart-icerik {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 18px;
}

.oyun-kart-icerik h3 {
    margin: 0 0 6px;
    font-size: 21px;
    font-weight: 800;
}

.oyun-kart-icerik p {
    flex: 1;
    margin: 0 0 14px;
    color: var(--o-gri);
    font-size: 14px;
}

.oyun-kart-etiketler {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.oyun-kart-etiketler span {
    padding: 3px 9px;
    border-radius: 999px;
    background: #f2f4f7;
    color: #475467;
    font-size: 11.5px;
    font-weight: 600;
}

.oyun-kart-etiketler span.canli {
    background: #ecfdf3;
    color: #067647;
}

.oyun-kart-btn {
    align-self: flex-start;
    padding: 9px 18px;
    border-radius: 999px;
    background: var(--o-turuncu);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
}

.oyun-kart-btn.is-disabled {
    background: #e4e7ec;
    color: #98a2b3;
}

.oyun-kart-yakinda {
    opacity: .75;
}

/* ---------- Oyun sayfası üst kısım ---------- */
.oyun-ust {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.oyun-geri {
    display: inline-block;
    margin-bottom: 4px;
    color: var(--o-gri) !important;
    font-size: 13px;
    text-decoration: none !important;
}

.oyun-modlar {
    display: inline-flex;
    padding: 4px;
    border-radius: 12px;
    background: #f1ece6;
}

.oyun-mod {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #5d6676;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.oyun-mod.is-active {
    background: #fff;
    color: var(--o-turuncu);
    box-shadow: 0 2px 8px rgba(32, 43, 60, .1);
}

/* ---------- Düzen ---------- */
.abluka-duzen {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 22px;
    align-items: start;
}

.abluka-sol {
    min-width: 0;
}

/* ---------- Oyuncu kartları ---------- */
.abluka-oyuncular {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 560px;
    margin: 0 auto 10px;
}

.abluka-oyuncu {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 10px;
    min-width: 0;
    padding: 10px 12px;
    background: #fff;
    border: 2px solid var(--o-cizgi);
    border-radius: 14px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.abluka-oyuncu.sag {
    justify-content: flex-end;
    text-align: right;
}

.abluka-oyuncu > div {
    min-width: 0;
}

.abluka-oyuncu strong {
    display: block;
    overflow: hidden;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.abluka-oyuncu small {
    display: block;
    color: var(--o-gri);
    font-size: 11.5px;
}

.abluka-oyuncu.sirada {
    border-color: var(--o-turuncu);
    box-shadow: 0 0 0 4px rgba(239, 108, 0, .14);
}

.abluka-oyuncu[data-koltuk="1"].sirada {
    border-color: var(--o-lacivert);
    box-shadow: 0 0 0 4px rgba(31, 59, 115, .14);
}

.abluka-oyuncu.kazandi {
    border-color: #12b76a;
    box-shadow: 0 0 0 4px rgba(18, 183, 106, .16);
}

.abluka-tas-mini {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    border-radius: 50%;
}

.abluka-skor {
    min-width: 28px;
    padding: 2px 8px;
    border-radius: 8px;
    background: #f2f4f7;
    font-weight: 800;
    text-align: center;
}

.abluka-orta {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    gap: 2px;
}

.abluka-vs {
    color: #b8a898;
    font-size: 12px;
    font-weight: 800;
}

.abluka-sure {
    padding: 2px 8px;
    border-radius: 8px;
    background: var(--o-yumusak);
    color: var(--o-turuncu);
    font-size: 13px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.abluka-sure.az {
    background: #fef3f2;
    color: #d92d20;
    animation: abNabiz 1s ease-in-out infinite;
}

@keyframes abNabiz {
    50% { transform: scale(1.08); }
}

.abluka-ipucu {
    max-width: 560px;
    min-height: 40px;
    margin: 0 auto 10px;
    padding: 9px 12px;
    border-radius: 10px;
    background: var(--o-yumusak);
    color: #5b4a3b;
    font-size: 13.5px;
    text-align: center;
}

/* ---------- Tahta ---------- */
.abluka-tahta-kap {
    position: relative;
    max-width: 560px;
    margin: 0 auto;
}

.abluka-tahta {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    padding: 10px;
    border-radius: 18px;
    background: linear-gradient(145deg, #c88a52, #a96a35);
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, .25), 0 12px 30px rgba(120, 70, 30, .25);
    user-select: none;
    touch-action: manipulation;
}

.abluka-hucre {
    position: relative;
    aspect-ratio: 1;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: #fbf1e4;
    box-shadow: inset 0 -3px 0 rgba(150, 100, 50, .18);
    cursor: default;
    transition: background .15s ease, transform .1s ease;
}

.abluka-hucre:nth-child(odd) {
    background: #f6e6d2;
}

.abluka-hucre:disabled {
    opacity: 1;
}

/* Taşın gidebileceği kareler */
.abluka-hucre.hedef {
    cursor: pointer;
}

.abluka-hucre.hedef::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30%;
    height: 30%;
    border-radius: 50%;
    background: #12b76a;
    box-shadow: 0 0 0 5px rgba(18, 183, 106, .22);
    transform: translate(-50%, -50%);
    animation: abHedef 1.2s ease-in-out infinite;
}

@keyframes abHedef {
    50% { box-shadow: 0 0 0 9px rgba(18, 183, 106, .08); }
}

.abluka-hucre.hedef:hover {
    background: #e7f8ee;
}

/* Engel konabilecek kareler */
.abluka-hucre.engel-hedef {
    cursor: pointer;
}

.abluka-hucre.engel-hedef:hover,
.abluka-hucre.engel-hedef:focus-visible {
    background: #e9d3bd;
}

.abluka-hucre.engel-hedef:hover::after {
    content: "";
    position: absolute;
    inset: 14%;
    border-radius: 6px;
    background: rgba(91, 70, 54, .35);
}

/* Engel */
.abluka-hucre.engel {
    background: repeating-linear-gradient(45deg, #5b4636, #5b4636 6px, #4e3b2d 6px, #4e3b2d 12px) !important;
    box-shadow: inset 0 3px 0 rgba(255, 255, 255, .12), inset 0 -4px 0 rgba(0, 0, 0, .25);
}

.abluka-hucre.son-engel {
    animation: abEngel .35s ease-out;
    outline: 3px solid rgba(239, 108, 0, .8);
    outline-offset: -3px;
}

@keyframes abEngel {
    from { transform: scale(.4); }
    to { transform: scale(1); }
}

.abluka-hucre.son-iz {
    background: #f1dcc3 !important;
}

.abluka-hucre.son-iz::before {
    content: "";
    position: absolute;
    inset: 30%;
    border: 2px dashed rgba(150, 100, 50, .4);
    border-radius: 50%;
}

/* Taşlar */
.abluka-tas,
.abluka-tas-mini {
    display: block;
}

.abluka-tas {
    position: absolute;
    inset: 12%;
    border-radius: 50%;
    animation: abTas .25s ease-out;
}

.abluka-tas.t1,
.abluka-tas-mini.t1 {
    background: radial-gradient(circle at 35% 30%, #ffc48a, var(--o-turuncu) 55%, #b54f00);
    box-shadow: 0 4px 0 #a24700, 0 6px 10px rgba(0, 0, 0, .25);
}

.abluka-tas.t2,
.abluka-tas-mini.t2 {
    background: radial-gradient(circle at 35% 30%, #8fb0ee, var(--o-lacivert) 55%, #12244a);
    box-shadow: 0 4px 0 #0f1f40, 0 6px 10px rgba(0, 0, 0, .25);
}

.abluka-tas-mini.t1,
.abluka-tas-mini.t2 {
    box-shadow: 0 2px 0 rgba(0, 0, 0, .25);
}

@keyframes abTas {
    from { transform: scale(.6); }
    to { transform: scale(1); }
}

.abluka-alt-btn {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

/* Sonuç */
.abluka-sonuc {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    border-radius: 18px;
    background: rgba(32, 43, 60, .45);
    backdrop-filter: blur(2px);
    animation: abFade .25s ease-out;
}

@keyframes abFade {
    from { opacity: 0; }
}

.abluka-sonuc-kart {
    width: 100%;
    max-width: 320px;
    padding: 24px 20px;
    border-radius: 18px;
    background: #fff;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
    animation: abPop .3s ease-out;
}

@keyframes abPop {
    from { transform: scale(.85); }
}

.abluka-sonuc-ikon {
    font-size: 44px;
    line-height: 1;
}

.abluka-sonuc-kart h3 {
    margin: 10px 0 6px;
    font-size: 21px;
    font-weight: 800;
}

.abluka-sonuc-kart p {
    color: var(--o-gri);
    font-size: 14px;
}

.abluka-sonuc-btn {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ---------- Panel ---------- */
.oyun-panel {
    margin-bottom: 16px;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--o-cizgi);
    border-radius: 14px;
}

.oyun-panel h6 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 800;
}

.oyun-etiket {
    display: block;
    margin: 0 0 6px;
    color: #475467;
    font-size: 12.5px;
    font-weight: 700;
}

.oyun-secim {
    display: flex;
    gap: 4px;
    margin-bottom: 14px;
    padding: 3px;
    border-radius: 10px;
    background: #f2f4f7;
}

.oyun-secim button {
    flex: 1;
    padding: 7px 6px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #5d6676;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.oyun-secim button.is-active {
    background: #fff;
    color: var(--o-turuncu);
    box-shadow: 0 1px 4px rgba(32, 43, 60, .12);
}

.oyun-btn {
    background: var(--o-turuncu);
    border: 1px solid var(--o-turuncu);
    border-radius: 10px;
    color: #fff !important;
    font-weight: 700;
}

.oyun-btn:hover {
    background: var(--o-turuncu-koyu);
}

.oyun-btn-acik {
    background: #fff;
    border: 1px solid #e4dbd2;
    border-radius: 10px;
    color: var(--o-koyu) !important;
    font-weight: 600;
}

.oyun-btn-acik:hover {
    background: var(--o-yumusak);
    border-color: #f3c9a3;
}

.oyun-btn-link {
    background: transparent;
    border: 0;
    color: var(--o-gri) !important;
}

.oyun-panel .btn-block + .btn-block {
    margin-top: 8px;
}

.oyun-not {
    margin-bottom: 12px;
    color: var(--o-gri);
    font-size: 13px;
}

.oyun-arama {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    border-radius: 10px;
    background: var(--o-yumusak);
    color: var(--o-turuncu);
    font-size: 14px;
    font-weight: 600;
}

.oyun-kod {
    display: flex;
    gap: 6px;
    margin-top: 10px;
}

.oyun-kod .form-control {
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}

.oyun-kod-etiket {
    padding: 2px 8px;
    border-radius: 6px;
    background: var(--o-yumusak);
    color: var(--o-turuncu);
    font-size: 13px;
    letter-spacing: 1.5px;
}

.oyun-davet {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
}

.oyun-davet .form-control {
    border-radius: 10px;
    font-size: 12.5px;
}

.oyun-liste-baslik {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 18px 0 6px;
    color: #98a2b3;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .6px;
    text-transform: uppercase;
}

.oyun-liste {
    max-height: 240px;
    overflow-y: auto;
    margin: 0;
    padding: 0;
    list-style: none;
}

.oyun-liste li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 4px;
    border-bottom: 1px solid #f2f4f7;
    font-size: 14px;
}

.oyun-liste li:last-child {
    border-bottom: 0;
}

.oyun-liste li.bos {
    color: #98a2b3;
    font-size: 13px;
}

.oyun-liste .ad {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
}

.oyun-liste small {
    color: #98a2b3;
    font-weight: 500;
}

.oyun-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--o-yumusak);
    color: var(--o-turuncu);
    font-size: 11px;
    font-weight: 800;
}

.oyun-kurallar summary {
    font-weight: 800;
    cursor: pointer;
}

.oyun-kurallar ol {
    margin: 12px 0;
    padding-left: 18px;
    color: #475467;
    font-size: 13.5px;
    line-height: 1.6;
}

.oyun-kurallar li + li {
    margin-top: 4px;
}

/* Bildirim */
.oyun-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 2000;
    max-width: calc(100% - 32px);
    padding: 11px 18px;
    border-radius: 12px;
    background: var(--o-koyu, #202b3c);
    background: #202b3c;
    color: #fff;
    font-size: 14px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .25);
    opacity: 0;
    transform: translate(-50%, 12px);
    transition: opacity .25s ease, transform .25s ease;
}

.oyun-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* ---------- Mobil ---------- */
@media (max-width: 991.98px) {
    .abluka-duzen {
        grid-template-columns: 1fr;
    }

    .abluka-sag {
        max-width: 560px;
        width: 100%;
        margin: 0 auto;
    }
}

@media (max-width: 575.98px) {
    .oyun-ust {
        align-items: stretch;
    }

    .oyun-ust > div:first-child {
        width: 100%;
    }

    .oyun-ust h2 {
        font-size: 22px;
    }

    .oyun-modlar {
        width: 100%;
    }

    .oyun-mod {
        flex: 1;
        justify-content: center;
        padding: 8px 6px;
        font-size: 13px;
    }

    .abluka-tahta {
        gap: 3px;
        padding: 6px;
        border-radius: 14px;
    }

    .abluka-hucre {
        border-radius: 6px;
    }

    .abluka-oyuncu {
        gap: 6px;
        padding: 7px 8px;
    }

    .abluka-oyuncu strong {
        font-size: 12.5px;
    }

    .abluka-tas-mini {
        width: 20px;
        height: 20px;
    }

    .abluka-ipucu {
        font-size: 12.5px;
    }

    .oyun-kart-gorsel {
        padding: 18px 32px;
    }
}

@media (max-width: 991.98px) {
    .abluka.lobide .abluka-sag {
        order: -1;
    }
}
