/* ===== GLOBAL FIX: Prevent page shifting ===== */
html, body {
    overflow-x: clip; /* מונע page shifting בלי להרוג sticky */
}

/* ===== WRAPPER ===== */
#wheretogame-container {
    display: block !important;
    width: 100% !important;
    max-width: 100vw !important; /* FIX: prevents overflow */
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: auto !important;
    box-sizing: border-box;
}

/* ===== TABLE ===== */
#wheretogame {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    overflow: hidden;
    background-color: white;
    table-layout: fixed;
}

/* HEADER + CELLS */
#wheretogame th {
    background-color: #0023a7;
    color: #f8fcfc;
    padding: 12px;
    text-align: center;
}

#wheretogame td {
    background-color: #f0f0f0;
    color: #333;
    text-align: center;
    padding: 12px;
    word-wrap: break-word;
    white-space: normal;
}

#wheretogame tr:nth-child(even) td {
    background-color: #e8e8e8;
}

/* LOGO */
#wheretogame td img {
    width: 140px;
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

/* LINKS */
#wheretogame a {
    color: #0023a7;
    text-decoration: none;
}
#wheretogame a:hover {
    text-decoration: underline;
}

/* BRAND NAME */
#wheretogame td:nth-child(2) {
    font-size: 1.2em;
    font-weight: bold;
}

/* STARS */
#wheretogame td:nth-child(3) {
    font-size: 1.6rem;
    font-weight: bold;
    color: #fcc50a;
	white-space: nowrap;
}

/* REVIEW BUTTON */
.ibm-btn-review {
    display:inline-block;
    padding:8px 18px;
    border-radius:30px;
    border:2px solid #b33f00;
    color:#b33f00 !important;
    background-color:#f0ece8;
    font-weight:600;
    transition:0.2s ease;
}
.ibm-btn-review:hover {
    background-color:#b33f00;
    color:white !important;
}

/* PLAY BUTTON */
.ibm-btn-play {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 30px;
    background-color: #0023a7;
    border: 2px solid #0023a7;
    color: #ffffff !important;
    font-weight: 600;
    text-decoration: none !important;
    transition: 0.2s ease;
}
.ibm-btn-play:hover {
    background-color: #fcc50a;
    border-color: #fcc50a;
    color: #0023a7 !important;
}

/* ===== MOBILE ===== */
@media screen and (max-width: 768px) {

    #wheretogame-container {
        padding: 0;
        max-width: 100vw !important;
    }

    /* LOGO — bigger but still safe */
    #wheretogame td img {
        width: 115px !important;   /* גדול, אבל לא יוצר גלילה */
        height: auto;
    }

    /* Hide columns 3–4 */
    #wheretogame td:nth-child(3),
    #wheretogame th:nth-child(3),
    #wheretogame td:nth-child(4),
    #wheretogame th:nth-child(4) {
        display: none;
    }

    #wheretogame td:nth-child(2) {
        font-size: 1em;
    }

    /* PLAY BUTTON — smaller */
    .ibm-btn-play {
        padding: 6px 12px !important;
        font-size: 0.85rem !important;
        border-radius: 18px !important;
        font-weight: 700;
    }
}
