:root {
    --page-gap: 14px;
    --panel-bg: #ffffff;
    --text: #172033;
    --muted: #667085;
    --heading-bg: #4a1d06;
    --heading-text: #ffffff;
    --title-strip: #fad283;
    --border: #e5e7eb;
    --shadow: 0 6px 20px rgba(15, 23, 42, 0.10);
    --shadow-hover: 0 10px 26px rgba(15, 23, 42, 0.16);
    --radius: 6px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    background: #f6f8fb;
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* HEADER */
.site-header {
    width: 100%;
    background: #ffffff;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
}
.logo-wrapper {
    width: 100%;
    padding: 12px var(--page-gap) 10px;
}
.logo {
    width: 450px;
    max-width: 100%;
    height: 100px;
    object-fit: contain;
    object-position: left center;
    display: block;
}
.text-logo {
    min-height: 90px;
    display: flex;
    align-items: center;
    font-size: 30px;
    font-weight: 700;
}

/* NAVIGATION */
.main-navigation {
    width: 100%;
    background: #4a1d06;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
}
.navigation-inner {
    width: 100%;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    padding: 6px var(--page-gap);
}
.navigation-inner a {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    transition: color .2s ease, opacity .2s ease;
}
.navigation-inner a:hover { color: #cfe2ff; }
.nav-dot {
    color: rgba(255,255,255,.70);
    font-size: 12px;
}

/* PAGE LAYOUT - NEAR FULL WIDTH */
.page-container {
    width: 100%;
    margin: 0;
    padding: var(--page-gap);
}
.page-columns {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 70fr) minmax(300px, 30fr);
    gap: var(--page-gap);
    align-items: start;
}
.main-column { min-width: 0; }

/* GAME */
.game-container {
    width: 100%;
    min-height: 700px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.game-iframe {
    width: 100%;
    min-height: 700px;
    height: 700px;
    border: 0;
    display: block;
    background: #000;
}

/* SHARED SECTION STYLING */
.section-title {
    width: 100%;
    margin: 0;
    background: var(--heading-bg);
    color: var(--heading-text);
    text-align: left;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    padding: 10px 12px;
    letter-spacing: .1px;
}

/* GAME CARDS */
.game-card {
    min-width: 0;
    display: block;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 4px;
    box-shadow: 0 2px 7px rgba(15, 23, 42, .07);
    transition: transform .18s ease, box-shadow .18s ease;
}
.game-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}
.game-card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    object-fit: cover;
    background: #eef1f5;
}
.game-card-title {
    display: block;
    background: var(--title-strip);
    color: #050505;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    padding: 5px 7px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* MORE GAMES - WIDE 4-COLUMN DESKTOP GRID */
.more-games {
    width: 100%;
    margin-top: var(--page-gap);
    background: var(--panel-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.more-games .games-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    padding: 12px;
}

/* ADS */
.ad-container,
.sidebar-ad {
    width: 100%;
    margin-top: var(--page-gap);
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ad-container { min-height: 90px; }
.sidebar-ad { min-height: 250px; }

/* ABOUT THE GAME */
.about-game {
    width: 100%;
    margin-top: var(--page-gap);
    background: #ffffff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.about-game-content {
    width: 100%;
    display: flow-root;
    padding: 16px;
}
.about-game-image {
    width: 300px;
    height: 300px;
    max-width: 38%;
    object-fit: cover;
    float: left;
    margin: 0 18px 10px 0;
    border: 1px solid var(--border);
    border-radius: 4px;
    box-shadow: 0 3px 12px rgba(15, 23, 42, .10);
    background: #f4f4f4;
}
.about-game-text {
    font-size: 15px;
    line-height: 1.6;
    color: #27364b;
}
.about-game-text p { margin: 0 0 12px; }
.about-game-text p:first-child { margin-top: 0; }
.about-game-text p:last-child { margin-bottom: 0; }

/* SIDEBAR */
.sidebar {
    min-width: 0;
    background: transparent;
    border: 0;
    padding: 0;
}
.similar-games {
    width: 100%;
    background: #ffffff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.sidebar-games {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 10px;
}
.sidebar .game-card-title {
    font-size: 12px;
    padding: 5px 4px;
}

/* FOOTER */
.site-footer {
    width: calc(100% - (var(--page-gap) * 2));
    margin: 0 var(--page-gap) var(--page-gap);
    background: #4a1d06;
    color: #dce3ea;
    text-align: center;
    padding: 10px 12px;
    font-size: 13px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* TABLET */
@media (max-width: 1050px) {
    .page-columns {
        grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    }
    .more-games .games-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    :root { --page-gap: 10px; }
    .page-columns { grid-template-columns: 1fr; }
    .sidebar { width: 100%; }
    .sidebar-games { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .game-container,
    .game-iframe { min-height: 600px; }
    .game-iframe { height: 600px; }
}

/* MOBILE */
@media (max-width: 650px) {
    .logo { width: 100%; height: auto; max-height: 90px; }
    .text-logo { min-height: 70px; font-size: 24px; }
    .navigation-inner { gap: 7px; flex-wrap: wrap; }
    .navigation-inner a { font-size: 13px; }
    .nav-dot { font-size: 10px; }
    .game-container,
    .game-iframe { min-height: 500px; }
    .game-iframe { height: 500px; }
    .more-games .games-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 9px; }
    .sidebar-games { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; padding: 9px; }
    .about-game-content { padding: 12px; }
    .about-game-image {
        float: none;
        width: 100%;
        max-width: 300px;
        height: auto;
        display: block;
        margin: 0 auto 14px;
    }
    .about-game-text { font-size: 14px; }
}

@media (max-width: 430px) {
    .navigation-inner { justify-content: flex-start; }
    .more-games .games-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sidebar-games { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .game-card-title { font-size: 12px; }
}
.facebook-sidebar-widget {
    width: 100%;
    box-sizing: border-box;
    margin: 20px 0;
    overflow: hidden;
    border: 1px solid #e1d4c8;
    border-radius: 7px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(80, 37, 13, 0.12);
}

.facebook-widget-title {
    padding: 11px 14px;
    background: #572006;
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
}

.facebook-page-container {
    display: flex;
    justify-content: center;
    min-height: 130px;
    padding: 12px 5px;
    overflow: hidden;
    background: #ffffff;
}

.facebook-follow-button {
    display: block;
    margin: 0 12px 14px;
    padding: 10px 12px;
    border-radius: 5px;
    background: #1877f2;
    color: #ffffff;
    font-size: 15px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.facebook-follow-button:hover {
    background: #0f5fc5;
    color: #ffffff;
}

@media (max-width: 650px) {
    .facebook-sidebar-widget {
        max-width: 500px;
        margin-right: auto;
        margin-left: auto;
    }
}