﻿.game-wrap {
    max-width: 1200px;
    margin: 20px auto;
    padding: 16px;
}

/* Başlık açıklaması: kırpılma gibi görünmesin */
.game-desc {
    margin: 0 0 16px 0;
    font-size: 14px;
    opacity: .85;
    max-width: 100%;
    line-height: 1.55;
    white-space: normal;
}

/* TOOLBAR ana blok artık 2 satır */
.game-toolbar-card .toolbar {
    margin-bottom: 0; /* card zaten boşluk veriyor */
}

.toolbar {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

/* Satırlar */
.toolbar-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: end;
}

/* 1. satır: filtreler “sığdırma” (eşit paylaştır) */
.toolbar-filters .field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1 1 240px;
    min-width: 200px;
}

.toolbar label {
    font-size: 13px;
    opacity: .85;
}

.toolbar select {
    width: 100%;
    padding: 10px;
    border: 1px solid #cfcfcf;
    border-radius: 8px;
    height: 42px;
    background: #fff;
}

/* 2. satır: aksiyonlar alt satır hizalı */
.toolbar-actions {
    align-items: center;
}

/* buton görünümü: a/span/button aynı görünsün */
.btn-like {
    padding: 10px 14px;
    border-radius: 8px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 0;
    text-decoration: none;
    border: 0;
    cursor: pointer;
}

/* renkler */
.btn-primary {
    background: #1f6feb;
    color: #fff;
}

.btn-secondary {
    background: #eaeef2;
    color: #111;
}

/* disabled */
.is-disabled {
    opacity: .55;
    cursor: not-allowed;
}

/* premium crown (sadece Yeni Oyun Üret) */
.crown-premium {
    display: none;
    margin-right: 8px;
}

/* sabit crown (PDF + Toggle) */
.crown-fixed {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
}

/* Toggle Button */
.toggle-btn {
    background: #ffffff;
    border: 1px solid #cfcfcf;
    color: #111;
}

    .toggle-btn.is-on {
        background: #111;
        color: #fff;
        border-color: #111;
    }

/* GRID & CARD */
.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.card {
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 12px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

    .card h3 {
        margin: 0 0 10px 0;
        font-size: 16px;
    }

.solution-card {
    border-style: dashed;
}

.imgbox {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fafafa;
    border: 1px dashed #ddd;
    border-radius: 10px;
    padding: 12px;
    min-height: 420px;
}

    .imgbox img {
        max-width: 100%;
        height: auto;
        image-rendering: pixelated;
    }

    .imgbox a {
        cursor: zoom-in;
        display: inline-block;
    }

.hint {
    margin-top: 10px;
    font-size: 13px;
    opacity: .8;
}

/* BUSY OVERLAY / MODAL */
.busy-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.busy-modal {
    width: min(460px, 92vw);
    background: #fff;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
}

.busy-title {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 10px;
}

.busy-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.busy-text {
    font-size: 13px;
    opacity: .85;
    line-height: 1.35;
}

.busy-spinner {
    width: 34px;
    height: 34px;
    border: 4px solid rgba(0,0,0,.12);
    border-top-color: rgba(0,0,0,.75);
    border-radius: 50%;
    animation: spin 0.85s linear infinite;
}

.busy-progress {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: rgba(0,0,0,.08);
    overflow: hidden;
    margin-top: 14px;
}

    .busy-progress > div {
        height: 100%;
        width: 0%;
        background: rgba(0,0,0,.55);
        border-radius: 999px;
        transition: width 180ms linear;
    }

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 900px) {
    .grid {
        grid-template-columns: 1fr;
    }

    .imgbox {
        min-height: auto;
    }
}

.premium-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #8a6d00;
}