/* site palette */
html:root {
    --bg: #FDFAFA;
    --surface: #FAF5F4;
    --surface-alt: #F6ECEA;
    --text: #261815;
    --text-muted: #78635E;
    --border: #E4DAD8;
    --primary: #FB8064;
    --primary-hover: #FA5F3C;
    --on-primary: #111111;
    --primary-text: #3A2480;
    --accent: #3A2480;
    --on-accent: #FFFFFF;
    --accent-text: #3A2480;
    --dark-band: #1F163B;
    --on-dark: #FFFFFF;
    --on-dark-muted: #C3B9B6;
    --brand-btn-bg: #111111;
    --brand-btn-text: #FB8064;
    --section-alt-bg: #F6ECEA;
    --dark-band-bg: #1F163B;
    --brand-band-bg: #FB8064;
    --hero-bg: #1F163B;
    --on-hero: #FFFFFF;
    --footer-bg: #1F163B;
    --on-footer: #FFFFFF;
    --on-footer-muted: #C3B9B6;
}

html:root {
    --bs-primary: #FB8064;
    --bs-primary-rgb: 251, 128, 100;
    --bs-link-color: #3A2480;
    --bs-link-color-rgb: 58, 36, 128;
    --bs-link-hover-color: #FA5F3C;
    --mdb-primary: #FB8064;
    --mdb-primary-rgb: 251, 128, 100;
}

.btn-primary {
    --bs-btn-bg: var(--primary);
    --bs-btn-border-color: var(--primary);
    --bs-btn-color: var(--on-primary);
    --bs-btn-hover-bg: var(--primary-hover);
    --bs-btn-hover-border-color: var(--primary-hover);
    --bs-btn-hover-color: var(--on-primary);
    --bs-btn-active-bg: var(--primary-hover);
    --bs-btn-active-border-color: var(--primary-hover);
    --bs-btn-active-color: var(--on-primary);
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--on-primary);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    color: var(--on-primary);
}

.btn-outline-primary {
    --bs-btn-color: var(--primary-text);
    --bs-btn-border-color: var(--primary);
    --bs-btn-hover-bg: var(--primary);
    --bs-btn-hover-border-color: var(--primary);
    --bs-btn-hover-color: var(--on-primary);
    color: var(--primary-text);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    color: var(--on-primary);
}

.text-primary,
.link-primary {
    color: var(--primary-text) !important;
}

.bg-primary,
.text-bg-primary,
.badge.bg-primary {
    color: var(--on-primary) !important;
}

/* /site palette */

:root {
    --fde-card-pad: 20px;
}

body {
    font-family: 'Mitr', sans-serif;
    background-color: var(--bg);
    color: var(--text);
}

.text-muted {
    color: var(--text-muted) !important;
}

.fde-btn {
    display: inline-block;
    background-color: var(--primary);
    color: var(--on-primary);
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
}

.fde-btn:hover {
    background-color: var(--primary-hover);
    color: var(--on-primary);
    text-decoration: none;
}

.fde-btn-alt {
    display: inline-block;
    border: 1px solid var(--primary-text);
    color: var(--primary-text);
    background: transparent;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

.fde-btn-alt:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--on-primary);
    text-decoration: none;
}

.fde-card {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    padding: var(--fde-card-pad);
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s;
}

.fde-card:not([class*="row"]):not([class*="grid"]):not([class*="horizontal"])>.fde-media:first-child {
    margin: calc(-1 * var(--fde-card-pad)) calc(-1 * var(--fde-card-pad)) var(--fde-card-pad);
    border-radius: 0;
    border: 0;
}

.fde-media {
    aspect-ratio: 1 / 1;
    border-radius: 4px;
    overflow: hidden;
}

.fde-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fde-title {
    font-weight: 300;
    text-align: center;
}

.fde-section {
    padding: 80px 0;
    background-color: var(--bg);
}

.fde-section-alt {
    padding: 80px 0;
    background-color: var(--section-alt-bg);
}

.fde-section-dark {
    padding: 80px 0;
    background-color: var(--dark-band-bg);
    color: var(--on-dark);
}

.fde-section-brand {
    padding: 80px 0;
    background-color: var(--brand-band-bg);
    color: var(--on-primary);
}

/* site kit (fallback) */
.fde-eyebrow {
    display: inline-block;
    margin-bottom: .5rem;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--primary-text)
}

.fde-badge {
    display: inline-block;
    padding: .25em .75em;
    border-radius: 999px;
    background: var(--primary);
    color: var(--on-primary);
    font-size: .8rem;
    font-weight: 600
}

.fde-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    flex: 0 0 auto;
    border-radius: 10px;
    background: var(--surface-alt);
    color: var(--primary-text);
    font-size: 1.4rem
}

.fde-on-dark {
    color: var(--on-dark)
}

.fde-section-dark h1,
.fde-section-dark h2,
.fde-section-dark h3,
.fde-section-dark h4,
.fde-section-dark .fde-title,
.fde-on-dark h1,
.fde-on-dark h2,
.fde-on-dark h3,
.fde-on-dark h4,
.fde-on-dark .fde-title {
    color: var(--on-dark)
}

.fde-section-dark p,
.fde-section-dark .fde-eyebrow,
.fde-on-dark p,
.fde-on-dark .fde-eyebrow {
    color: var(--on-dark-muted)
}

.fde-section-dark a:not(.fde-btn):not(.fde-btn-alt),
.fde-on-dark a:not(.fde-btn):not(.fde-btn-alt) {
    color: var(--on-dark)
}

.fde-section-dark .fde-btn-alt,
.fde-on-dark .fde-btn-alt {
    color: var(--on-dark);
    border-color: var(--on-dark)
}

.fde-section-dark .fde-card,
.fde-on-dark .fde-card {
    background: var(--surface);
    color: var(--text)
}

.fde-section-dark .fde-card h1,
.fde-section-dark .fde-card h2,
.fde-section-dark .fde-card h3,
.fde-section-dark .fde-card h4,
.fde-section-dark .fde-card .fde-title,
.fde-section-dark .fde-card a:not(.fde-btn):not(.fde-btn-alt),
.fde-on-dark .fde-card h1,
.fde-on-dark .fde-card h2,
.fde-on-dark .fde-card h3,
.fde-on-dark .fde-card h4,
.fde-on-dark .fde-card .fde-title,
.fde-on-dark .fde-card a:not(.fde-btn):not(.fde-btn-alt) {
    color: var(--text)
}

.fde-section-dark .fde-card p,
.fde-section-dark .fde-card .fde-eyebrow,
.fde-on-dark .fde-card p,
.fde-on-dark .fde-card .fde-eyebrow {
    color: var(--text-muted)
}

.fde-section-dark .fde-card .fde-btn-alt,
.fde-on-dark .fde-card .fde-btn-alt {
    color: var(--primary-text);
    border-color: var(--primary)
}

.fde-card:not([class*="row"]):not([class*="grid"]):not([class*="horizontal"]):not([class*="list"]):not([class*="side"]):not([class*="split"]):not([class*="wide"]):not([class*="inline"])>.fde-media:first-child {
    width: calc(100% + 2 * var(--fde-card-pad, 0px));
    max-width: none
}


/* ===== header ===== */
.fde-header-block {
    border-bottom: 1px solid var(--border);
}

.fde-header-block .nav-link {
    color: var(--text);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s;
}

.fde-header-block .nav-link:hover {
    color: var(--primary);
}

.fde-header-block .fde-btn {
    background: var(--primary);
    color: var(--on-primary);
    padding: 0.6rem 1.5rem;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.3s;
}

.fde-header-block .fde-btn:hover {
    background: var(--primary-hover);
    color: var(--on-primary);
}

@media (max-width: 991px) {
    .fde-header-block .navbar-nav {
        gap: 10px;
        padding: 15px 0;
    }

    .fde-header-block .fde-btn {
        display: inline-block;
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }
}

/* ===== hero ===== */
.hero-block {
    padding: 100px 0;
    background: linear-gradient(rgba(31, 22, 59, 0.82), rgba(31, 22, 59, 0.82)), url('photos/pics/garena-free-fire-roadmap-2026.png') center / cover no-repeat, var(--hero-bg);
    position: relative;
    overflow: hidden;
}

.hero-block .fde-eyebrow {
    font-size: 1rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.hero-block h1 {
    color: var(--on-hero);
}

.hero-block p {
    color: var(--on-dark-muted);
    font-size: 1.25rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 767px) {
    .hero-block {
        padding: 60px 0;
    }

    .hero-block h1 {
        font-size: 1.8rem;
    }
}

/* ===== games_grid ===== */
.games-grid-section .fde-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--border);
    overflow: hidden;
    border-radius: 8px;
}

.games-grid-section .fde-media {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.games-grid-section .fde-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.games-grid-section .fde-card:hover .fde-media img {
    transform: scale(1.05);
}

.games-grid-section h3 {
    font-size: 1.25rem;
    color: var(--text);
    margin: 0;
}

.games-grid-section .fde-title {
    text-align: center;
    color: var(--text);
}

@media (max-width: 767px) {
    .games-grid-section .fde-media {
        height: 180px;
    }
}

/* ===== challenge_of_the_day ===== */
.challenge-block .fde-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
}

.challenge-block .progress {
    overflow: hidden;
}

.challenge-block .progress-bar {
    transition: width 0.6s ease;
}

@media (max-width: 767px) {
    .challenge-block .row {
        flex-direction: column;
    }
}

/* ===== poll_section ===== */
.poll-section .fde-card {
    border: 1px solid var(--border);
    transition: transform 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
}

.poll-section .fde-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.poll-section .cursor-pointer {
    cursor: pointer;
}

.poll-section .js-vote-count {
    color: var(--primary);
}

@media (max-width: 767px) {
    .poll-section .row {
        flex-direction: column;
    }
}

/* ===== playtime_overview ===== */
.playtime-overview-block {
    padding: 80px 0;
}

.playtime-overview-block .fde-card {
    padding: 20px;
    height: 100%;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--surface);
}

.playtime-overview-block h3 {
    color: var(--text);
    font-weight: 500;
}

@media (max-width: 767px) {
    .playtime-overview-block .row {
        flex-direction: column;
    }
}

/* ===== news_grid ===== */
#news-grid-block .fde-card {
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: transform 0.3s ease;
}

#news-grid-block .fde-card:hover {
    transform: translateY(-5px);
}

#news-grid-block .fde-media {
    border-radius: 4px;
    overflow: hidden;
}

#news-grid-block .fde-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 1px;
    background: var(--primary);
    margin: 16px auto 0;
}

@media (max-width: 767px) {
    #news-grid-block .row {
        flex-direction: column;
    }
}

/* ===== footer ===== */
.twilight-footer {
    padding: 80px 0 30px;
    color: var(--on-footer);
}

.twilight-footer .footer-title {
    font-size: 1.1rem;
    color: var(--on-footer);
    margin-bottom: 1rem;
}

.twilight-footer a {
    color: var(--on-footer-muted);
    transition: 0.3s;
}

.twilight-footer a:hover {
    color: var(--primary);
}

.twilight-footer .footer-map {
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
}

@media (max-width: 767px) {
    .twilight-footer {
        text-align: center;
    }

    .twilight-footer .footer-nav {
        flex-direction: column;
        gap: 10px;
    }
}

/* ===== PAGE: about ===== */
.about_content { padding: 80px 0; }.about_content .fde-card { padding: 24px; border: 1px solid var(--border); border-radius: 8px; transition: transform 0.3s; }.about_content .fde-card:hover { transform: translateY(-5px); }.about_content .fde-title { margin-bottom: 30px; }.about_content h3 { color: var(--primary-text); margin-bottom: 20px; }@media (max-width: 767px) { .about_content { padding: 40px 0; } }

/* ===== PAGE: games ===== */
.fde-games-block .fde-card { border: 1px solid rgba(120, 99, 94, 0.12); border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 6px 20px rgba(31, 22, 59, 0.07); transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease; }
.fde-games-block .fde-card:hover { transform: translateY(-8px); box-shadow: 0 18px 40px rgba(31, 22, 59, 0.15); border-color: rgba(251, 128, 100, 0.4); }
.fde-games-block .fde-media { border-radius: 0; overflow: hidden; }
.fde-games-block .fde-media a { position: relative; display: block; }
.fde-games-block .fde-media a::before { content: ''; position: absolute; inset: 0; background: rgba(31, 22, 59, 0); transition: background 0.35s ease; }
.fde-games-block .fde-media a::after { content: '\f04b'; font-family: 'Font Awesome 5 Free'; font-weight: 900; position: absolute; top: 50%; left: 50%; width: 58px; height: 58px; border-radius: 50%; background: rgba(251, 128, 100, 0.95); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; opacity: 0; transform: translate(-50%, -50%) scale(0.6); transition: opacity 0.35s ease, transform 0.35s ease; box-shadow: 0 8px 24px rgba(31, 22, 59, 0.35); }
.fde-games-block .fde-card:hover .fde-media a::before { background: rgba(31, 22, 59, 0.35); }
.fde-games-block .fde-card:hover .fde-media a::after { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.fde-games-block .fde-media img { transition: transform 0.5s ease; }
.fde-games-block .fde-card:hover .fde-media img { transform: scale(1.06); }
.fde-games-block .fde-card { padding: 0; }
.fde-games-block .fde-card:not([class*="row"]) > .fde-media:first-child { margin: 0 !important; width: 100% !important; max-width: 100% !important; }
.fde-games-block .game-card-body { display: flex; flex-direction: column; align-items: center; gap: 0.7rem; padding: 0.9rem 1.25rem 1.25rem; flex-grow: 1; text-align: center; }
.fde-games-block .game-card-body .fde-title { font-size: 1.05rem; font-weight: 500; line-height: 1.35; margin: 0; color: var(--text); }
.fde-games-block .game-card-body .fde-btn { display: inline-flex; align-items: center; justify-content: center; width: 100%; padding: 12px 24px; border-radius: 50px; font-weight: 600; letter-spacing: 0.5px; box-shadow: 0 6px 16px rgba(251, 128, 100, 0.35); transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease; margin-top: auto; }
.fde-games-block .game-card-body .fde-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(251, 128, 100, 0.45); }
@media (max-width: 767px) { .fde-games-block .fde-card { flex-direction: column !important; } .fde-games-block .fde-card > .fde-media { max-width: none !important; width: 100% !important; } }

/* ===== PAGE: leaderboard ===== */
/* ===== leaderboard: premium redesign ===== */
.leaderboard_table { padding: 80px 0; background-color: var(--bg); }
.leaderboard-card { background: #fff; border: 1px solid var(--border); border-radius: 20px; box-shadow: 0 15px 45px rgba(31, 22, 59, 0.08); padding: 48px; overflow: hidden; }
.leaderboard-icon { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--primary-hover)); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 1.6rem; box-shadow: 0 10px 25px rgba(251, 128, 100, 0.35); margin-bottom: 1rem; }
.leaderboard-card .fde-title { font-weight: 400; color: var(--text); margin-bottom: 0.5rem; }
.leaderboard-sub { color: var(--text-muted); font-weight: 300; margin-bottom: 0; }
.leaderboard-podium { display: flex; align-items: flex-end; justify-content: center; gap: 1rem; margin: 2.5rem 0; }
.podium-card { flex: 1; max-width: 200px; text-align: center; padding: 1.5rem 1rem; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); display: flex; flex-direction: column; align-items: center; gap: 0.35rem; }
.podium-medal { width: 46px; height: 46px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 600; font-size: 1.05rem; box-shadow: 0 6px 15px rgba(31, 22, 59, 0.15); margin-bottom: 0.35rem; }
.podium-name { font-weight: 500; color: var(--text); font-size: 1rem; }
.podium-score { font-weight: 300; color: var(--text-muted); font-size: 0.9rem; }
.podium-card.podium-1 { padding: 2.25rem 1rem; background: linear-gradient(180deg, #FFF8E7, #ffffff); border-color: #F2C94C; box-shadow: 0 14px 32px rgba(242, 201, 76, 0.28); }
.podium-1 .podium-medal { width: 56px; height: 56px; font-size: 1.25rem; background: linear-gradient(135deg, #F6D365, #E0A82E); }
.podium-1 .podium-crown { color: #E0A82E; font-size: 1.3rem; }
.podium-2 .podium-medal { background: linear-gradient(135deg, #D9D9D9, #A8A8A8); }
.podium-3 .podium-medal { background: linear-gradient(135deg, #D98E4A, #A05A2C); }
.leaderboard-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; }
.leaderboard-table { width: 100%; border-collapse: collapse; min-width: 480px; }
.leaderboard-table thead th { background: var(--surface); color: var(--text-muted); font-weight: 500; font-size: 0.85rem; letter-spacing: 0.5px; text-transform: uppercase; padding: 1rem 1.5rem; border-bottom: 1px solid var(--border); }
.leaderboard-table tbody td, .leaderboard-table tbody th { padding: 1.1rem 1.5rem; vertical-align: middle; border-bottom: 1px solid var(--border); color: var(--text); font-weight: 400; }
.leaderboard-table tbody tr:last-child td, .leaderboard-table tbody tr:last-child th { border-bottom: none; }
.leaderboard-table tbody tr { transition: background 0.2s ease; }
.leaderboard-table tbody tr:hover { background: var(--surface-alt); }
.leaderboard-table td.score, .leaderboard-table th.score { text-align: right; font-variant-numeric: tabular-nums; }
.rank-num { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--surface-alt); color: var(--text-muted); font-weight: 600; font-size: 0.9rem; }
tr.rank-1 .rank-num { background: linear-gradient(135deg, #F6D365, #E0A82E); color: #fff; }
tr.rank-2 .rank-num { background: linear-gradient(135deg, #D9D9D9, #A8A8A8); color: #fff; }
tr.rank-3 .rank-num { background: linear-gradient(135deg, #D98E4A, #A05A2C); color: #fff; }
tr.rank-1 td { font-weight: 600; }
.status-badge { display: inline-block; padding: 0.35rem 0.95rem; border-radius: 50px; font-size: 0.8rem; font-weight: 500; }
.status-gold { background: rgba(242, 201, 76, 0.18); color: #A77B0D; }
.status-silver { background: rgba(168, 168, 168, 0.18); color: #6E6E6E; }
.status-bronze { background: rgba(205, 127, 50, 0.16); color: #A05A2C; }
@media (max-width: 767px) { .leaderboard_table { padding: 40px 0; } .leaderboard-card { padding: 28px 18px; border-radius: 16px; } .leaderboard-podium { flex-direction: column; align-items: center; gap: 0.9rem; margin: 1.5rem 0; } .podium-card { max-width: 100%; width: 100%; padding: 1.1rem 1rem !important; flex-direction: row; justify-content: flex-start; gap: 0.9rem; text-align: left; } .podium-medal { margin-bottom: 0; width: 40px; height: 40px; font-size: 0.95rem; } .podium-1 .podium-medal { width: 44px; height: 44px; } .podium-card.podium-1 { order: -1; } .podium-crown { display: none; } .leaderboard-table thead th, .leaderboard-table tbody td, .leaderboard-table tbody th { padding: 0.85rem 0.9rem; } }

/* ===== PAGE: lobby ===== */
.lobby_rooms .fde-card { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--surface); display: flex; flex-direction: column; } .lobby_rooms .fde-media { width: 100%; height: 200px; overflow: hidden; } .lobby_rooms .fde-media img { width: 100%; height: 100%; object-fit: cover; } .lobby_rooms h3 { font-size: 1.25rem; margin-bottom: 0.5rem; color: var(--text); } .lobby_rooms .fde-badge { background: var(--primary); color: var(--on-primary); padding: 0.25rem 0.75rem; border-radius: 4px; font-weight: 500; } .lobby_rooms .fde-btn { background: var(--primary); color: var(--on-primary); padding: 0.5rem 1rem; text-decoration: none; border-radius: 4px; font-weight: 600; } @media (max-width: 767px) { .lobby_rooms .row { flex-direction: column; } }

/* ===== PAGE: support ===== */
.faq_support .fde-title-wrap { margin-bottom: 2rem; } .faq_support .fde-divider { width: 50px; height: 3px; background: var(--primary); margin: 15px auto; } .faq_support .accordion-item { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; } .faq_support .accordion-button { background: var(--surface); color: var(--text); font-weight: 600; padding: 1rem; } .faq_support .accordion-button:not(.collapsed) { background: var(--surface-alt); color: var(--primary-text); } .faq_support .accordion-body { background: var(--surface); color: var(--text-muted); padding: 1.5rem; } .faq_support .accordion-button:focus { box-shadow: none; border-color: var(--primary); }

/* ===== PAGE: how-to-play ===== */
.fde-section { background-color: var(--bg); } .fde-card { background-color: var(--surface); border: 1px solid var(--border); border-radius: 8px; transition: 0.3s; } .fde-card:hover { border-color: var(--primary); } .fde-title { color: var(--text); font-weight: 600; } .fde-icon-divider { color: var(--primary); } @media (max-width: 767px) { .fde-card { margin-bottom: 1rem; } }

/* ===== PAGE: news ===== */
.news-list .fde-card { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; padding: 16px; background: var(--surface); transition: 0.3s; }.news-list .fde-card:hover { border-color: var(--primary); }.news-list .fde-media { border-radius: 4px; overflow: hidden; }.news-list h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }.news-list .fde-title::after { content: ''; display: block; width: 60px; height: 2px; background: var(--primary); margin: 10px auto; }@media (max-width: 767px) { .news-list .fde-card { flex-direction: column; } .news-list .fde-card > .fde-media { max-width: none !important; width: 100% !important; } }

/* ===== PAGE: privacy ===== */
.privacy_content { padding: 80px 0; background: var(--bg); }.privacy_content .content-body { line-height: 1.8; color: var(--text); }.privacy_content h2 { margin-bottom: 24px; }.privacy_content h3 { margin-top: 32px; margin-bottom: 16px; color: var(--primary-text); }.privacy_content p { margin-bottom: 16px; color: var(--text-muted); }@media (max-width: 767px) { .privacy_content { padding: 40px 0; } }

/* ===== PAGE: terms ===== */
.terms_content { padding: 80px 0; background: var(--bg); }.terms_content h2 { margin-bottom: 40px; color: var(--text); }.terms_content h3 { color: var(--primary-text); margin-top: 32px; margin-bottom: 16px; font-weight: 500; }.terms_content p { color: var(--text-muted); line-height: 1.8; margin-bottom: 16px; }.terms_content .terms-body { padding: 32px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; }@media (max-width: 767px) { .terms_content { padding: 40px 0; } }

/* ===== PAGE: disclaimer ===== */
.fde-disclaimer-block .fde-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; } .fde-disclaimer-block h2, .fde-disclaimer-block h3 { color: var(--primary-text); } .fde-disclaimer-block p { color: var(--text); line-height: 1.7; } .fde-disclaimer-block hr { border-top: 1px solid var(--border); }

/* ===== PAGE TEMPLATE: games ===== */
.fde-header-block {
    border-bottom: 1px solid var(--border);
}

.fde-header-block .nav-link {
    color: var(--text);
    font-weight: 500;
    padding: 0.5rem 1rem;
}

.fde-header-block .fde-btn {
    background: var(--primary);
    color: var(--on-primary);
    padding: 0.6rem 1.5rem;
    text-decoration: none;
    border-radius: 8px;
}

.hero-block {
    padding: 80px 0;
    background: linear-gradient(rgba(31, 22, 59, 0.82), rgba(31, 22, 59, 0.82)), url('photos/pics/garena-free-fire-roadmap-2026.png') center / cover no-repeat, var(--hero-bg);
}

.twilight-footer {
    padding: 80px 0 30px;
    color: var(--on-footer);
}

.twilight-footer .footer-map {
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
}

/* ===== PAGE TEMPLATE: news ===== */
.fde-header-block {
    border-bottom: 1px solid var(--border);
}

.fde-header-block .nav-link {
    color: var(--text);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s;
}

.fde-header-block .nav-link:hover {
    color: var(--primary);
}

.fde-header-block .fde-btn {
    background: var(--primary);
    color: var(--on-primary);
    padding: 0.6rem 1.5rem;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.3s;
}

.fde-header-block .fde-btn:hover {
    background: var(--primary-hover);
    color: var(--on-primary);
}

.hero-block {
    padding: 100px 0;
    background: linear-gradient(rgba(31, 22, 59, 0.82), rgba(31, 22, 59, 0.82)), url('photos/pics/garena-free-fire-roadmap-2026.png') center / cover no-repeat, var(--hero-bg);
    position: relative;
}

.hero-block h1 {
    color: var(--on-hero);
}

.hero-block p {
    color: var(--on-dark-muted);
}

.fde-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.fde-media {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.fde-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fde-badge {
    background: var(--primary);
    color: var(--on-primary);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

.twilight-footer {
    padding: 80px 0 30px;
    color: var(--on-footer);
}

.twilight-footer a {
    color: var(--on-footer-muted);
}

.footer-map {
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
}

@media (max-width: 767px) {
    .hero-block {
        padding: 60px 0;
    }
}

/* mobile-text-guard */
@media (max-width: 767px) {
  h1, h2, h3, h4, h5, h6, p, li, dt, dd, blockquote, figcaption, td, th, label {
    overflow-wrap: anywhere;
  }
  a, button, .btn {
    overflow-wrap: anywhere;
    white-space: normal;
  }
  img, video, iframe {
    max-width: 100%;
  }
}

/* ===== news: stats HUD ===== */
.news-stats { padding: 0 0 80px; }
.news-stats-panel { position: relative; background: linear-gradient(135deg, #1F163B 0%, #2C1E5C 100%); border-radius: 20px; padding: 48px 40px; overflow: hidden; box-shadow: 0 20px 50px rgba(31, 22, 59, 0.25); }
.news-stats-panel::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--primary), transparent); }
.stats-eyebrow { color: var(--primary); font-size: 0.8rem; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 0.5rem; }
.stats-title { color: #fff; font-weight: 400; margin-bottom: 0.5rem; }
.stats-sub { color: rgba(255, 255, 255, 0.6); font-weight: 300; margin-bottom: 0; }
.stat-card { text-align: center; padding: 1.6rem 1rem; border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.05); transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s; height: 100%; }
.stat-card:hover { transform: translateY(-4px); border-color: var(--primary); box-shadow: 0 10px 25px rgba(251, 128, 100, 0.2); }
.stat-icon { display: inline-flex; width: 46px; height: 46px; align-items: center; justify-content: center; border-radius: 12px; background: rgba(251, 128, 100, 0.15); color: var(--primary); font-size: 1.3rem; margin-bottom: 0.8rem; }
.stat-value { display: block; font-size: 2rem; font-weight: 600; color: #fff; line-height: 1.15; }
.stat-label { display: block; color: rgba(255, 255, 255, 0.65); font-size: 0.85rem; font-weight: 300; }
@media (max-width: 767px) { .news-stats-panel { padding: 32px 20px; } .stat-value { font-size: 1.5rem; } }
/* ===== news articles: related block ===== */
.related-news .fde-card { display: flex; flex-direction: column; height: 100%; border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid rgba(120, 99, 94, 0.12); box-shadow: 0 6px 20px rgba(31, 22, 59, 0.07); transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; }
.related-news .fde-card:hover { transform: translateY(-6px); box-shadow: 0 16px 36px rgba(31, 22, 59, 0.14); border-color: rgba(251, 128, 100, 0.4); }
.related-news .fde-media { aspect-ratio: 16/9; overflow: hidden; border-radius: 0; }
.related-news .fde-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.related-news .fde-card:hover .fde-media img { transform: scale(1.05); }
.related-news .fde-card .p-3 { display: flex; flex-direction: column; gap: 0.9rem; flex-grow: 1; padding: 1.25rem 1.25rem 1.4rem; }
.related-news .fde-card h5 { font-size: 1rem; font-weight: 500; line-height: 1.35; margin: 0; min-height: 2.7em; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--text); }
.related-news .fde-card .fde-btn-alt { margin-top: auto; align-self: center; border-radius: 50px; padding: 10px 28px; }
/* ===== game detail pages ===== */
.game-hero-icon { width: 96px; height: 96px; border-radius: 22px; object-fit: cover; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); border: 3px solid rgba(255, 255, 255, 0.25); margin-bottom: 1.2rem; }
.game-frame-section { padding: 48px 0 56px; }
.game-frame-wrap { border-radius: 20px; overflow: hidden; box-shadow: 0 20px 55px rgba(31, 22, 59, 0.18); border: 1px solid rgba(120, 99, 94, 0.15); background: #000; aspect-ratio: 16/9; }
.game-frame-wrap iframe { display: block; width: 100%; height: 100%; border: 0; }
.game-frame-wrap .js-fullscreen-btn { border-radius: 8px; }
.game-section { padding: 48px 0; }
.game-section-alt { background: var(--surface); }
.section-head { text-align: center; margin-bottom: 2rem; }
.section-eyebrow { color: var(--primary); font-size: 0.8rem; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; }
.game-section-title { font-weight: 400; color: var(--text); margin: 0.5rem 0 0.8rem; font-size: 1.75rem; }
.section-divider { width: 56px; height: 3px; background: var(--primary); margin: 0 auto; border-radius: 2px; }
.about-card { max-width: 860px; margin: 0 auto; background: #fff; border: 1px solid rgba(120, 99, 94, 0.12); border-radius: 18px; padding: 2.2rem; box-shadow: 0 8px 24px rgba(31, 22, 59, 0.06); }
.about-card p { font-size: 1.02rem; line-height: 1.85; color: var(--text); margin-bottom: 1.1rem; }
.about-card p:last-child { margin-bottom: 0; }
.about-card h3 { font-size: 1.2rem; font-weight: 500; margin: 1.4rem 0 0.7rem; }
.about-card h3:first-child { margin-top: 0; }
.about-card ul li { font-size: 0.98rem; line-height: 1.7; color: var(--text); }
.char-card { background: #fff; border: 1px solid rgba(120, 99, 94, 0.12); border-radius: 16px; padding: 1.6rem 1rem; text-align: center; height: 100%; transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; }
.char-card:hover { transform: translateY(-5px); box-shadow: 0 14px 32px rgba(31, 22, 59, 0.12); border-color: rgba(251, 128, 100, 0.4); }
.char-icon { width: 52px; height: 52px; margin: 0 auto 0.9rem; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-hover)); box-shadow: 0 8px 18px rgba(251, 128, 100, 0.3); }
.char-label { font-size: 0.8rem; color: var(--text-muted); letter-spacing: 0.5px; margin-bottom: 0.3rem; }
.char-value { font-weight: 500; color: var(--text); font-size: 0.95rem; }
.step-card { position: relative; background: #fff; border: 1px solid rgba(120, 99, 94, 0.12); border-radius: 16px; padding: 2rem 1.4rem 1.6rem; text-align: center; height: 100%; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.step-card:hover { transform: translateY(-5px); box-shadow: 0 14px 32px rgba(31, 22, 59, 0.12); }
.step-num { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 600; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 14px rgba(58, 36, 128, 0.35); }
.step-icon { color: var(--primary); font-size: 1.5rem; margin: 0.5rem 0 0.9rem; }
.step-card h3 { font-size: 1.05rem; font-weight: 500; margin-bottom: 0.6rem; }
.step-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; margin: 0; }
.game-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.gallery-item { margin: 0; border-radius: 16px; overflow: hidden; aspect-ratio: 1/1; box-shadow: 0 10px 28px rgba(31, 22, 59, 0.12); border: 1px solid rgba(120, 99, 94, 0.12); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.06); }
@media (max-width: 767px) { .game-frame-section { padding: 32px 0 40px; } .game-section { padding: 36px 0; } .about-card { padding: 1.4rem; } .game-gallery { grid-template-columns: 1fr; gap: 0.9rem; } .game-hero-icon { width: 72px; height: 72px; } .game-section-title { font-size: 1.45rem; } }
@media (max-width: 767px) { .how-to-play-page .fde-card { text-align: center; } .how-to-play-page .fde-card .fde-icon { display: flex; margin-left: auto; margin-right: auto; } }
@media (max-width: 767px) {
    .our-games-page .fde-games-block .row { justify-content: center; }
    .our-games-page .fde-games-block .fde-card { width: 100%; max-width: 460px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 767px) { .game-section .fde-games-block .col-6 { flex: 0 0 100%; max-width: 100%; } }
/* Global: card images always fill full card width */
.games-grid-section .fde-card, .lobby_rooms .fde-card, .related-news .fde-card { padding: 0; }
.fde-card:has(> .fde-media:first-child):not([class*="row"]) { padding: 0; }
.fde-card:not([class*="row"]) > .fde-media:first-child { margin: 0 !important; width: 100% !important; max-width: 100% !important; }
.news-list .fde-card { padding: 0; }
.news-list .fde-card > .flex-grow-1 { padding: 1.25rem; }
@media (max-width: 767px) {
    .fde-card[class*="row"] > .fde-media:first-child { margin: 0 !important; width: 100% !important; max-width: 100% !important; }
}
.news-list .fde-card:not([class*="row"]) > *:not(.fde-media):not(.fde-btn):not(.fde-btn-alt) { padding-left: 1.25rem; padding-right: 1.25rem; }
.news-list .fde-card:not([class*="row"]) > *:not(.fde-btn):not(.fde-btn-alt):last-child { padding-bottom: 1.25rem; }
.news-list .fde-card:not([class*="row"]) > .fde-btn, .news-list .fde-card:not([class*="row"]) > .fde-btn-alt { margin: 0.25rem 1.25rem 1.25rem; align-self: flex-start; }
.news-list .fde-card > .fde-media + * { margin-top: 0.75rem; }