:root {
    --farm-green: #4CAF50;
    --carrot-orange: #FF9800;
    --wood-brown: #5D4037;
    --bg-light: #f1f8e9;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    background-color: var(--bg-light);
    color: #333;
    min-height: 100vh;
}

.top-advert-area {
    width: 100%;
    min-height: 100px; 
    background: #fff;
    border-bottom: 2px solid #e0e0e0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    color: #aaa;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;

    display: block;
    text-align: center;
    padding: 5px 0; 
    box-sizing: border-box;
}

.top-advert-area ins {
    margin: 0 auto !important;
    display: block !important;
}
.top-advert-area {
    width: 100%;
    min-height: 100px; 
    background: #fff;
    border-bottom: 2px solid #e0e0e0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    color: #aaa;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;

    display: block;
    text-align: center;
    padding: 5px 0; 
    box-sizing: border-box;
}

.top-advert-area ins {
    margin: 0 auto !important;
    display: block !important;
}

.main-play-area {
    max-width: 1300px;
    margin: 30px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 270px;
    gap: 30px;
}

.game-screen {
    background: #000;
    border-radius: 25px;
    padding: 8px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    border: 4px solid var(--wood-brown);
    position: relative;
}

.iframe-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: 18px;
    overflow: hidden;
}

.iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.controls-bar {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 15px 30px;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.game-title {
    margin: 0;
    color: var(--wood-brown);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-group {
    display: flex;
    gap: 12px;
}

.btn {
    padding: 12px 25px;
    border-radius: 30px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-reload { background: #f5f5f5; color: #555; border: 1px solid #ddd; box-shadow: 0 4px 0 #bfc7c0; }
.btn-reload:hover { transform: translateY(-2px); box-shadow: 0 6px 0 #bfc7c0;}

.btn-fullscreen { 
    background: var(--farm-green); 
    color: white;
    box-shadow: 0 4px 0 #2e7d32;
}
.btn-fullscreen:hover { transform: translateY(-2px); box-shadow: 0 6px 0 #2e7d32; }

.side-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.advert-area {
    min-height: 105px; /* დააფიქსირე ზუსტი სიმაღლე, რაც რეკლამას სჭირდება */
    overflow: hidden;
}

.ad-placeholder-sidebar {
    width: 270px;
    height: 600px;
    background: white;
    border-radius: 20px;
    border: 2px dashed #ddd;
    color: #bbb;

    display: block; 
    margin: 0 auto; 
    
    line-height: 600px; 
    text-align: center;
    
    overflow: hidden; 
}

.ad-placeholder-sidebar ins {
    display: block !important;
    margin: 0 auto !important;
    line-height: normal; 
}

.language-switcher {
    background: white;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
}

.language-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

.lang-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #555;
    font-size: 0.9rem;
    padding: 8px;
    border-radius: 10px;
    background: #f9f9f9;
    transition: 0.2s;
}

.lang-link:hover {
    background: #eef5e9;
    color: var(--farm-green);
}

.info-card {
    margin-top: 30px;
    background: white;
    padding: 30px;
    border-radius: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

@media (max-width: 1100px) {
    .main-play-area { grid-template-columns: 1fr; }
    .side-panel { display: flex; order: 2; }
    .ad-placeholder-sidebar { width: 100%; height: 250px; }
}
/* სპეციალური სტილი პატარა მობილურებისთვის (< 400px) */
@media (max-width: 400px) {
    .main-play-area {
        padding: 0 10px; /* გვერდითა დაშორებების შემცირება */
        margin: 15px auto;
    }

    .game-screen {
        padding: 5px;
        border-radius: 15px; /* უფრო ნაზი კუთხეები პატარა ეკრანზე */
    }

    .iframe-container {
        padding-bottom: 0; /* ვაუქმებთ ჰორიზონტალურ პროპორციას */
        height: 550px;    /* ვაძლევთ ფიქსირებულ სიმაღლეს, რომ თამაში გაიშალოს */
    }

    .iframe-container iframe {
        height: 100%;
        width: 100%;
    }

    .controls-bar {
        padding: 10px 15px;
        flex-direction: column; /* ღილაკები და სათაური დალაგდეს ერთმანეთის ქვეშ */
        gap: 15px;
        border-radius: 20px;
    }

    .game-title {
        font-size: 1.2rem;
    }

    .btn {
        padding: 10px 15px;
        font-size: 0.9rem;
        flex: 1; /* ღილაკებმა თანაბარი ადგილი დაიკავონ */
    }
    
    .btn-group {
        width: 100%;
        justify-content: center;
    }
}