/*
Theme Name: Indobola77 Lite
Author: Indobola77
Description: Tema WordPress ringan dengan desain hitam emas.
Version: 1.1.3
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: indobola77-lite
*/

/* ==================================================
   DASAR
================================================== */

:root {
    --gold: #edc85f;
    --red: #c72639;
    --bg: #09090b;
    --panel: #141416;
    --line: #2b2a2d;
    --muted: #b6b4bb;
    --text: #f5f2eb;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 24px;
}

body {
    margin: 0;
    background:
        radial-gradient(
            ellipse 75% 30% at 50% 5%,
            #56200e22,
            transparent
        ),
        var(--bg);
    color: var(--text);
    font: 15px/1.75 system-ui, -apple-system,
        BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--gold);
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

button,
input,
textarea,
select {
    font: inherit;
}

button,
input[type="submit"],
summary {
    cursor: pointer;
}

input,
textarea,
select {
    max-width: 100%;
    padding: 10px;
    border: 1px solid #68605a;
    border-radius: 7px;
    background: #19191b;
    color: var(--text);
}

input[type="submit"] {
    background: var(--gold);
    color: #171207;
    font-weight: 700;
}

input[type="checkbox"] {
    width: auto;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 4px;
}

.wrap {
    width: min(1200px, calc(100% - 48px));
    margin-inline: auto;
}

.skip {
    position: absolute;
    top: -100px;
    left: 15px;
    z-index: 100;
    padding: 10px;
    background: #fff;
    color: #000;
}

.skip:focus {
    top: 12px;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

/* ==================================================
   HEADER DAN LOGO
================================================== */

.site-header {
    background: #09090bdb;
    border-bottom: 1px solid #b9333244;
}

.header-row {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 24px 0;
}

.brand {
    flex-shrink: 0;
}

.brand img {
    width: 250px;
    max-height: 75px;
    object-fit: contain;
}

.actions {
    display: flex;
    gap: 12px;
}

/* ==================================================
   TOMBOL
================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 11px 30px;
    border: 1px solid #f3ce6377;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.5;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-align: center;
    transition:
        filter 180ms ease,
        transform 180ms ease;
}

.btn.primary {
    background: linear-gradient(
        125deg,
        #ffe59a,
        var(--gold)
    );
    color: #171207;
    box-shadow: 0 5px 24px #e2b6471c;
}

.btn.red {
    border-color: #e96a7470;
    background: linear-gradient(
        125deg,
        var(--red),
        #8c1424
    );
    color: #fff;
}

.btn:hover {
    filter: brightness(1.08);
}

.btn.primary:hover {
    color: #171207;
}

.btn.red:hover {
    color: #fff;
}

.btn:active {
    transform: translateY(1px);
}

/* ==================================================
   FORM LOGIN HEADER
   Mendukung nama class dari kedua versi header.
================================================== */

:is(.idb-header-login, .header-login) {
    display: grid;
    grid-template-columns:
        minmax(130px, 1fr)
        minmax(130px, 1fr)
        auto
        auto;
    align-items: center;
    gap: 10px;
    width: min(100%, 760px);
    margin: 0 0 0 auto;
}

:is(.idb-login-field, .login-field) {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    height: 48px;
    padding: 0 14px;
    border: 1px solid #3c393d;
    border-radius: 10px;
    background: linear-gradient(
        160deg,
        #1e1d20,
        #111114
    );
}

:is(.idb-field-icon, .field-mark) {
    flex-shrink: 0;
    color: var(--gold);
    font-size: 10px;
}

:is(.idb-login-field, .login-field) input {
    width: 100%;
    min-width: 0;
    height: 44px;
    padding: 10px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--text);
    font: inherit;
    font-size: 13px;
}

:is(.idb-login-field, .login-field) input::placeholder {
    color: #a9a4ae;
    opacity: 1;
}

:is(.idb-login-field, .login-field):focus-within {
    border-color: var(--gold);
}

:is(.idb-header-login, .header-login) .btn {
    height: 48px;
    padding: 10px 24px;
    white-space: nowrap;
}

/* ==================================================
   NAVBAR — BURGUNDY DAN AKSEN EMAS
================================================== */

.category-nav {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 12px;
    padding: 18px 70px 16px;
    border-top: 1px solid #ffffff0a;
}

.category-nav a {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 84px;
    padding: 10px 5px;
    overflow: hidden;
    border: 1px solid #29262b;
    border-radius: 12px;
    background: linear-gradient(
        145deg,
        #151417,
        #0c0c0e
    );
    box-shadow: none;
    font-size: 10px;
    font-weight: 750;
    line-height: 1.5;
    letter-spacing: .05em;
    text-transform: uppercase;
    text-align: center;
    transition:
        background 220ms ease,
        border-color 220ms ease,
        box-shadow 220ms ease,
        transform 220ms ease;
}

.category-nav a::before {
    content: "";
    position: absolute;
    top: 22%;
    bottom: 22%;
    left: 0;
    width: 3px;
    border-radius: 0 4px 4px 0;
    background: var(--gold);
    opacity: 0;
    transform: scaleY(.35);
    transition:
        opacity 220ms ease,
        transform 220ms ease;
    pointer-events: none;
}

.category-nav a::after {
    content: "";
    position: absolute;
    top: 9px;
    right: 9px;
    width: 7px;
    height: 7px;
    border-top: 1px solid var(--gold);
    border-right: 1px solid var(--gold);
    opacity: 0;
    transform: translate(-4px, 4px);
    transition:
        opacity 220ms ease,
        transform 220ms ease;
    pointer-events: none;
}

.icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.category-nav .icon {
    position: relative;
    z-index: 1;
    width: 36px;
    height: 36px;
    margin-bottom: 7px;
    filter: none;
    transition: transform 220ms ease;
}

.category-nav a span {
    position: relative;
    z-index: 1;
    color: #d5d0d7;
    text-shadow: none;
    transition: color 220ms ease;
}

.category-nav a:hover,
.category-nav a:focus-visible {
    border-color: #8b6640;
    background: linear-gradient(
        135deg,
        #351820,
        #21141b 55%,
        #151216
    );
    box-shadow:
        0 8px 18px #00000035,
        inset 0 1px 0 #ffffff08;
    transform: translateY(-3px);
}

.category-nav a:hover::before,
.category-nav a:focus-visible::before {
    opacity: 1;
    transform: scaleY(1);
}

.category-nav a:hover::after,
.category-nav a:focus-visible::after {
    opacity: .85;
    transform: translate(0, 0);
}

.category-nav a:hover .icon,
.category-nav a:focus-visible .icon {
    filter: none;
    transform: translateY(-3px) rotate(-4deg);
}

.category-nav a:hover span,
.category-nav a:focus-visible span {
    color: var(--gold);
}

.category-nav a:active {
    transform: translateY(0);
}

/* ==================================================
   INFORMASI
================================================== */

.notice-board {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 22px 0 27px;
    padding: 17px 6px 20px;
    border-bottom: 1px solid #b8943e42;
}

.notice-board::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 70px;
    height: 2px;
    background: var(--gold);
}

.notice-mark {
    display: grid;
    place-items: center;
    flex: 0 0 40px;
    height: 40px;
    border: 1px solid #ac873e66;
    border-radius: 50%;
    background: #c59a2912;
    color: var(--gold);
    font: italic 23px Georgia, serif;
}

.notice-copy {
    flex: 1;
    min-width: 0;
}

.notice-copy strong {
    display: block;
    margin-bottom: 5px;
    color: var(--gold);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.notice-copy p {
    max-width: 790px;
    margin: 0;
    color: #c4c0c8;
    font-size: 12px;
    line-height: 1.75;
}

.notice-help {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-height: 42px;
    padding: 9px 15px;
    border: 1px solid #b8943e66;
    border-radius: 24px;
    background: #c59a2908;
    color: var(--gold);
    font-size: 11px;
    font-weight: 650;
}

.notice-help span {
    font-size: 18px;
    line-height: 1;
}

.notice-help:hover {
    border-color: var(--gold);
    background: #c59a2918;
}

/* ==================================================
   BANNER
================================================== */

.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    min-height: 320px;
    margin-bottom: 32px;
    overflow: hidden;
    border: 1px solid #b990374d;
    border-radius: 20px;
    background:
        radial-gradient(
            ellipse at 83% 50%,
            #87602133,
            transparent 48%
        ),
        linear-gradient(
            120deg,
            #202017,
            #101012 65%
        );
}

.hero-copy {
    position: relative;
    z-index: 1;
    max-width: 690px;
    padding: 42px;
}

.eyebrow {
    color: var(--gold);
    font-size: 10px;
    font-weight: 800;
    line-height: 1.5;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.hero-title {
    margin: 14px 0;
    font-size: clamp(32px, 4vw, 51px);
    font-weight: 850;
    line-height: 1.12;
    letter-spacing: -.045em;
}

.hero p {
    max-width: 440px;
    margin-bottom: 23px;
    font-size: 14px;
}

.hero-emblem {
    position: relative;
    display: grid;
    place-items: center;
    flex: 0 0 300px;
    height: 280px;
    margin-right: 35px;
}

.hero-emblem > div {
    color: var(--gold);
    font-size: 140px;
    font-weight: 900;
    line-height: .9;
    letter-spacing: -.09em;
    text-shadow: 0 12px 50px #f6cd4833;
    transform: rotate(-8deg);
}

.hero-emblem small {
    display: block;
    font-size: 16px;
    line-height: 2.5;
    letter-spacing: .28em;
    text-align: center;
}

.orbit {
    position: absolute;
    inset: 12px;
    border: 1px solid #c19a3d88;
    border-radius: 50%;
    box-shadow:
        0 0 0 15px #b38f2810,
        0 0 0 45px #b38f2808;
}

.orbit::before,
.orbit::after {
    content: "✦";
    position: absolute;
    top: 0;
    left: 20px;
    color: var(--gold);
    font-size: 30px;
}

.orbit::after {
    top: auto;
    right: 0;
    bottom: 25px;
    left: auto;
    font-size: 20px;
}

.hero:has(.banner) {
    min-height: 0;
    background: #141414;
}

.banner {
    width: 100%;
    height: auto;
    aspect-ratio: 32 / 9;
    object-fit: cover;
}

/* ==================================================
   KARTU PERMAINAN
================================================== */

.panel {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(145deg, #1b1b1f, #101012);
}

.games-panel {
    padding: 20px;
}

.section-bar {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 0 0 20px;
}

.section-bar h2 {
    margin: 0;
    padding: 7px 12px;
    border-radius: 7px;
    background: linear-gradient(
        130deg,
        var(--red),
        #941927
    );
    color: #fff;
    font-size: 13px;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.rule {
    flex: 1;
    height: 1px;
    background: #a1843a80;
}

.wordmark {
    color: var(--gold);
    font-size: 15px;
    font-weight: 850;
    letter-spacing: .02em;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.game-card {
    position: relative;
    padding: 8px;
    border: 1px solid #ffffff0b;
    border-radius: 15px;
    background: #0c0c0f;
    transition:
        transform 200ms ease,
        border-color 200ms ease;
}

.game-card:hover {
    border-color: #c6a1438a;
    transform: translateY(-3px);
}

.game-card > img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 10px;
    object-fit: cover;
}

.game-card h3 {
    margin: 14px 0 9px;
    font-size: 10px;
    line-height: 1.4;
    letter-spacing: .03em;
    text-align: center;
    text-transform: uppercase;
}

.card-arrow {
    display: none;
}

/* ==================================================
   TAUTAN LAYANAN
================================================== */

.services {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.service {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 145px;
    padding: 24px 10px 20px;
    text-align: center;
}

.service .icon {
    width: 38px;
    height: 38px;
    margin-bottom: 15px;
}

.service span {
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.service small {
    color: #c1b58d;
    font-size: 9px;
    letter-spacing: .12em;
}

.service:hover {
    border-color: #b58e3980;
}

/* ==================================================
   ARTIKEL DAN KONTEN
================================================== */

.section {
    padding: 28px 0 8px;
}

.editor {
    padding: 38px;
    overflow-wrap: anywhere;
}

.editor::after {
    content: "";
    display: block;
    clear: both;
}

.editor h1 {
    margin: 12px 0 24px;
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 650;
    line-height: 1.35;
    letter-spacing: -.035em;
}

.editor h2 {
    font-size: 24px;
    line-height: 1.4;
    letter-spacing: -.025em;
}

.editor h3 {
    font-size: 19px;
}

.editor .lead {
    font-size: 16px;
    line-height: 1.9;
}

.editor p,
.editor ul,
.editor ol {
    color: var(--muted);
}

.editor a,
.post a {
    color: var(--gold);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.editor iframe {
    max-width: 100%;
}

.editor table {
    display: block;
    max-width: 100%;
    overflow: auto;
    border-collapse: collapse;
}

.editor td,
.editor th {
    padding: 8px;
    border: 1px solid var(--line);
}

.editor blockquote {
    margin: 24px 0;
    padding: 0 20px;
    border-left: 3px solid var(--gold);
}

.editor img {
    border-radius: 8px;
}

.editor pre {
    padding: 16px;
    overflow: auto;
    background: #09090b;
}

.simple h2 {
    padding: 0;
    background: none;
    color: var(--text);
    font-size: 23px;
    letter-spacing: -.02em;
    text-transform: none;
}

.posts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.post {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #141416;
}

.post > a img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.post-body {
    padding: 22px;
}

.post time {
    color: var(--gold);
    font-size: 11px;
}

.post h3 {
    font-size: 18px;
    line-height: 1.5;
}

.post h3 a {
    color: var(--text);
    text-decoration: none;
}

.post p {
    color: var(--muted);
    font-size: 13px;
}

.post-body > a {
    font-size: 12px;
}

.empty {
    grid-column: 1 / -1;
    padding: 15px 25px;
}

/* ==================================================
   FAQ
================================================== */

.faq {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 45px;
    padding-block: 40px;
}

.faq h2 {
    margin: 8px 0;
    font-size: 28px;
}

.faq p {
    color: var(--muted);
    font-size: 13px;
}

.faq details {
    padding: 17px 0;
    border-bottom: 1px solid var(--line);
}

.faq summary {
    font-size: 14px;
    font-weight: 650;
}

/* ==================================================
   FOOTER
================================================== */

.site-footer {
    margin-top: 30px;
    padding: 40px 0 110px;
    border-top: 1px solid #a37c3d55;
    background: radial-gradient(
        ellipse at 0 0,
        #8b222a15,
        transparent 60%
    );
}

.partners-heading {
    margin: 0 0 28px;
    text-align: center;
}

.partners-heading h2 {
    margin: 12px 0;
    font-size: 26px;
    font-weight: 600;
    line-height: 1.35;
}

.partners-heading p {
    color: #aaa5ae;
    font-size: 12px;
}

.partners {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.partner {
    min-height: 160px;
    padding: 22px;
}

.partner h3 {
    margin: 0 0 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #b48b3944;
    font-size: 12px;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.partner h3::first-letter {
    color: var(--gold);
    font-size: 20px;
}

.partner p {
    color: var(--muted);
    font-size: 12px;
}

.partner p a {
    color: var(--gold);
}

.partner img {
    max-width: 100%;
    max-height: 130px;
    margin-block: 12px;
    object-fit: contain;
}

.footer-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid #ffffff0a;
    color: #a7a3ae;
    font-size: 11px;
}

.footer-row > div {
    text-align: right;
}

.footer-menu ul {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    padding: 0;
    list-style: none;
    font-size: 12px;
}

.privacy {
    color: var(--muted);
    font-size: 11px;
}

/* ==================================================
   LIVE CHAT DESKTOP
================================================== */

.floating-chat {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 20px;
    border: 1px solid #f4d37e88;
    border-radius: 13px;
    background: linear-gradient(115deg, #493916, #19150e);
    box-shadow: 0 8px 32px #0007;
}

.floating-chat .icon {
    width: 27px;
    height: 27px;
}

.floating-chat span {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.floating-chat small {
    display: block;
    color: #d7c18a;
    font-size: 9px;
    font-weight: 500;
    text-transform: none;
}

.bottom-nav {
    display: none;
}

/* ==================================================
   WORDPRESS DAN KOMENTAR
================================================== */

.pagination {
    padding-block: 25px;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-block: 18px;
}

.pagination .nav-links {
    flex-wrap: wrap;
    gap: 16px;
}

.nav-links a {
    color: var(--gold);
}

.alignwide {
    width: 100%;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 12px;
}

.sticky {
    border-color: var(--gold);
}

.bypostauthor {
    color: inherit;
}

.alignleft {
    float: left;
    margin-right: 20px;
}

.alignright {
    float: right;
    margin-left: 20px;
}

.aligncenter {
    margin-inline: auto;
}

.wp-block-image img {
    height: auto;
}

.wp-block-columns {
    gap: 24px;
}

.editor .wp-block-button__link {
    background: var(--gold);
    color: #171207;
}

.comment-list {
    padding-left: 24px;
}

.comment-list .avatar {
    width: 40px;
}

.comment-form label {
    display: block;
}

.comment-form-cookies-consent {
    display: flex;
    gap: 10px;
}

.comment-form-cookies-consent label {
    display: inline;
}

/* ==================================================
   DESKTOP LEBAR
================================================== */

@media (min-width: 1550px) {
    .wrap {
        width: min(1320px, calc(100% - 60px));
    }

    .hero {
        min-height: 355px;
    }
}

/* ==================================================
   TABLET
================================================== */

@media (max-width: 1000px) {
    .header-row {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .brand img {
        width: 210px;
    }

    :is(.idb-header-login, .header-login) {
        flex: 1;
        width: auto;
        grid-template-columns:
            minmax(105px, 1fr)
            minmax(105px, 1fr)
            auto
            auto;
        gap: 8px;
    }

    :is(.idb-header-login, .header-login) .btn {
        padding-inline: 16px;
    }

    .category-nav {
        padding-inline: 0;
    }

    .hero-copy {
        padding: 30px;
    }

    .hero-emblem {
        flex-basis: 220px;
        height: 230px;
        margin-right: 20px;
    }

    .hero-emblem > div {
        font-size: 110px;
    }

    .games-grid {
        gap: 8px;
    }

    .game-card {
        padding: 6px;
    }

    .game-card h3 {
        font-size: 9px;
    }

    .wordmark {
        font-size: 12px;
    }
}

@media (max-width: 820px) {
    .header-row {
        gap: 16px;
    }

    .brand img {
        width: 200px;
    }

    :is(.idb-header-login, .header-login) {
        flex: 0 0 100%;
        width: 100%;
        margin: 0;
        grid-template-columns: 1fr 1fr auto auto;
    }
}

/* ==================================================
   MOBILE
================================================== */

@media (max-width: 720px) {
    body {
        padding-bottom: calc(
            76px + env(safe-area-inset-bottom, 0px)
        );
    }

    .wrap {
        width: calc(100% - 28px);
    }

    .header-row {
        padding: 16px 0;
    }

    .brand img {
        width: 185px;
    }

    .actions {
        gap: 7px;
    }

    .btn {
        min-height: 42px;
        padding: 9px 16px;
        font-size: 11px;
    }

    .category-nav {
        display: flex;
        gap: 8px;
        padding-block: 16px 14px;
        overflow-x: auto;
        scrollbar-width: thin;
        scrollbar-color: #77602c #121114;
    }

    .category-nav a {
        flex: 0 0 77px;
        min-height: 75px;
        font-size: 9px;
    }

    .category-nav .icon {
        width: 30px;
        height: 30px;
    }

    .notice-board {
        display: grid;
        grid-template-columns: 32px 1fr;
        gap: 10px 12px;
        margin: 14px 0 20px;
        padding: 10px 2px 17px;
    }

    .notice-mark {
        align-self: start;
        width: 32px;
        height: 32px;
        font-size: 20px;
    }

    .notice-copy strong {
        font-size: 9px;
    }

    .notice-copy p {
        font-size: 11px;
        line-height: 1.7;
    }

    .notice-help {
        grid-column: 2;
        justify-self: start;
        gap: 14px;
        min-height: 36px;
        padding: 7px 12px;
        font-size: 10px;
    }

    .hero {
        gap: 0;
        min-height: 260px;
        margin-bottom: 20px;
        border-radius: 14px;
    }

    .hero-copy {
        max-width: 80%;
        padding: 25px;
    }

    .hero-title {
        font-size: 34px;
    }

    .hero .eyebrow {
        font-size: 8px;
        letter-spacing: .1em;
    }

    .hero p {
        font-size: 12px;
    }

    .hero-emblem {
        position: absolute;
        top: 20px;
        right: -65px;
        width: 210px;
        margin: 0;
        opacity: .13;
    }

    .hero-copy .btn {
        font-size: 10px;
    }

    .games-panel {
        padding: 14px;
        border-radius: 14px;
    }

    .section-bar {
        gap: 12px;
        margin-bottom: 14px;
    }

    .section-bar h2 {
        font-size: 11px;
    }

    .wordmark {
        font-size: 11px;
    }

    .games-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }

    .game-card h3 {
        margin: 10px 0 7px;
        font-size: 9px;
    }

    .services {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-top: 14px;
    }

    .service {
        min-height: 120px;
        padding: 18px 8px;
    }

    .service .icon {
        width: 32px;
        height: 32px;
        margin-bottom: 10px;
    }

    .service span {
        font-size: 11px;
    }

    .section {
        padding-top: 22px;
    }

    .editor {
        padding: 24px;
    }

    .editor h1 {
        margin-top: 13px;
        font-size: 27px;
    }

    .editor .lead,
    .editor p {
        font-size: 14px;
    }

    .editor h2 {
        font-size: 22px;
    }

    .posts,
    .partners,
    .faq {
        grid-template-columns: 1fr;
    }

    .posts {
        gap: 14px;
    }

    .faq {
        gap: 10px;
        padding-block: 30px;
    }

    .partners-heading h2 {
        font-size: 23px;
    }

    .partners-heading p {
        font-size: 11px;
    }

    .partner {
        min-height: 130px;
    }

    .site-footer {
        padding: 30px 0;
    }

    .footer-row {
        align-items: flex-start;
    }

    .footer-row .wordmark {
        font-size: 12px;
    }

    .footer-row > div {
        font-size: 10px;
    }

    .floating-chat {
        display: none;
    }

    .bottom-nav {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 50;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        padding:
            8px 4px
            calc(8px + env(safe-area-inset-bottom, 0px));
        border-top: 1px solid #6c5429;
        background: #101012;
        box-shadow: 0 -5px 24px #0007;
    }

    .bottom-nav a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        min-height: 44px;
        padding: 4px;
        font-size: 9px;
    }

    .bottom-nav .icon {
        width: 22px;
        height: 22px;
    }

    .bottom-nav .join {
        margin-top: -15px;
        border: 1px solid #ffe59a;
        border-radius: 10px;
        background: linear-gradient(
            125deg,
            #ffe59a,
            var(--gold)
        );
        color: #171207;
        font-weight: 800;
    }

    .bottom-nav .join .icon {
        filter: brightness(0) saturate(100%);
        opacity: .8;
    }
}

@media (max-width: 520px) {
    .header-row {
        gap: 14px;
    }

    :is(.idb-header-login, .header-login) {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    :is(.idb-login-field, .login-field) {
        height: 46px;
        padding-inline: 12px;
    }

    :is(.idb-login-field, .login-field) input {
        height: 42px;
        font-size: 16px;
    }

    :is(.idb-header-login, .header-login) .btn {
        width: 100%;
        font-size: 12px;
    }
}

@media (max-width: 380px) {
    .wrap {
        width: calc(100% - 20px);
    }

    .brand img {
        width: 150px;
    }

    .editor {
        padding: 20px;
    }

    .hero-copy {
        padding: 20px;
    }

    .hero-title {
        font-size: 29px;
    }

    .section-bar .wordmark {
        font-size: 9px;
    }
}

/* ==================================================
   AKSESIBILITAS GERAKAN
================================================== */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .btn,
    .category-nav a,
    .category-nav a::before,
    .category-nav a::after,
    .category-nav a .icon,
    .category-nav a span,
    .game-card {
        transition: none;
    }

    .category-nav a:hover,
    .category-nav a:focus-visible,
    .category-nav a:hover .icon,
    .category-nav a:focus-visible .icon,
    .game-card:hover,
    .btn:active {
        transform: none;
    }
}

/* BANNER BACKGROUND DENGAN TEKS DI ATASNYA */
.hero.hero-background {
    position: relative;
    isolation: isolate;
    min-height: 355px;
    overflow: hidden;
    background: #111114;
}

.hero-background-image {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Lapisan gelap agar tulisan tetap terbaca */
.hero.hero-background::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        90deg,
        rgba(9, 9, 11, .92) 0%,
        rgba(9, 9, 11, .74) 38%,
        rgba(9, 9, 11, .30) 72%,
        rgba(9, 9, 11, .12) 100%
    );
    pointer-events: none;
}

.hero.hero-background .hero-copy {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 740px;
    padding: 46px 42px;
}

.hero.hero-background .hero-title {
    color: #fff;
    text-shadow: 0 2px 16px #00000055;
}

.hero.hero-background p {
    color: #ece8e1;
}

@media (max-width: 720px) {
    .hero.hero-background {
        min-height: 300px;
    }

    .hero.hero-background .hero-copy {
        max-width: 100%;
        padding: 30px 24px;
    }

    .hero.hero-background::before {
        background: linear-gradient(
            90deg,
            rgba(9, 9, 11, .88),
            rgba(9, 9, 11, .55)
        );
    }

    .hero-background-image {
        object-position: 65% center;
    }
}

/* =========================================
   HOT GAMES — KARTU HORIZONTAL
========================================= */

.games-panel {
    padding: 26px;
    border: 1px solid #393125;
    border-radius: 20px;
    background:
        radial-gradient(
            ellipse at top right,
            #8d642216,
            transparent 65%
        ),
        #101012;
}

/* Judul tanpa kotak merah */
.games-panel .section-bar {
    gap: 18px;
    margin-bottom: 24px;
}

.games-panel .section-bar h2 {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 0;
    padding: 0;
    border-radius: 0;
    background: none;
    color: #f7f3e9;
    font-size: 21px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -.03em;
    text-transform: none;
}

.games-panel .section-bar h2::before {
    content: "";
    width: 5px;
    height: 24px;
    border-radius: 3px;
    background: linear-gradient(
        var(--gold, #edc85f),
        #9c7030
    );
}

.games-panel .section-bar .rule {
    height: 1px;
    background: linear-gradient(
        90deg,
        #aa843c55,
        transparent
    );
}

.games-panel .section-bar .wordmark {
    padding: 6px 10px;
    border: 1px solid #78602c55;
    border-radius: 6px;
    color: var(--gold, #edc85f);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
}

/* Tiga kartu per baris */
.games-panel .games-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    counter-reset: game-number;
}

/* Kartu horizontal */
.games-panel .game-card {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) 28px;
    align-items: center;
    gap: 16px;
    min-height: 132px;
    padding: 16px;
    overflow: hidden;
    border: 1px solid #302b2e;
    border-radius: 14px;
    background: linear-gradient(
        120deg,
        #1c191c,
        #141315
    );
    box-shadow: none;
    counter-increment: game-number;
    transition:
        transform 200ms ease,
        border-color 200ms ease,
        box-shadow 200ms ease;
}

/* Nomor kecil di sudut kartu */
.games-panel .game-card::before {
    content: counter(game-number, decimal-leading-zero);
    position: absolute;
    top: 8px;
    right: 12px;
    color: #ada18a;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .12em;
}

/* Garis aksen bawah */
.games-panel .game-card::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 16px;
    width: 36px;
    height: 2px;
    background: var(--gold, #edc85f);
    opacity: .55;
    transition:
        width 200ms ease,
        opacity 200ms ease;
}

.games-panel .game-card > img {
    grid-column: 1;
    grid-row: 1;
    width: 96px;
    height: 96px;
    margin: 0;
    border-radius: 10px;
    object-fit: cover;
    transition: transform 200ms ease;
}

.games-panel .game-card h3 {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    color: #f2eee6;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.4;
    letter-spacing: -.01em;
    text-align: left;
    text-transform: none;
    overflow-wrap: anywhere;
}

/* Keterangan di bawah nama */
.games-panel .game-card h3::after {
    content: "Jelajahi kategori";
    display: block;
    margin-top: 7px;
    color: #aaa3ad;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0;
}

.games-panel .game-card .card-arrow {
    display: grid;
    grid-column: 3;
    grid-row: 1;
    place-items: center;
    width: 28px;
    height: 28px;
    border: 1px solid #75603466;
    border-radius: 50%;
    background: #c79a3010;
    color: var(--gold, #edc85f);
    font-size: 16px;
    line-height: 1;
    transition:
        background 200ms ease,
        color 200ms ease,
        transform 200ms ease;
}

/* Hover */
.games-panel .game-card:hover,
.games-panel .game-card:focus-visible {
    border-color: #a58242;
    box-shadow: 0 8px 22px #00000035;
    transform: translateY(-3px);
}

.games-panel .game-card:hover::after,
.games-panel .game-card:focus-visible::after {
    width: 72px;
    opacity: 1;
}

.games-panel .game-card:hover > img,
.games-panel .game-card:focus-visible > img {
    transform: scale(1.04);
}

.games-panel .game-card:hover h3,
.games-panel .game-card:focus-visible h3 {
    color: var(--gold, #edc85f);
}

.games-panel .game-card:hover .card-arrow,
.games-panel .game-card:focus-visible .card-arrow {
    background: var(--gold, #edc85f);
    color: #171207;
    transform: rotate(45deg);
}

/* Tablet */
@media (max-width: 1100px) {
    .games-panel .games-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobile */
@media (max-width: 600px) {
    .games-panel {
        padding: 18px 14px;
        border-radius: 16px;
    }

    .games-panel .section-bar {
        gap: 10px;
        margin-bottom: 18px;
    }

    .games-panel .section-bar h2 {
        gap: 8px;
        font-size: 18px;
    }

    .games-panel .section-bar .wordmark {
        padding: 5px 7px;
        font-size: 8px;
        letter-spacing: .06em;
    }

    .games-panel .games-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .games-panel .game-card {
        grid-template-columns: 74px minmax(0, 1fr) 30px;
        gap: 14px;
        min-height: 100px;
        padding: 12px;
        border-radius: 12px;
    }

    .games-panel .game-card > img {
        width: 74px;
        height: 74px;
        border-radius: 8px;
    }

    .games-panel .game-card h3 {
        font-size: 14px;
    }

    .games-panel .game-card h3::after {
        margin-top: 5px;
        font-size: 11px;
    }

    .games-panel .game-card .card-arrow {
        width: 30px;
        height: 30px;
    }
}

/* Aksesibilitas */
@media (prefers-reduced-motion: reduce) {
    .games-panel .game-card,
    .games-panel .game-card::after,
    .games-panel .game-card > img,
    .games-panel .game-card .card-arrow {
        transition: none;
    }

    .games-panel .game-card:hover,
    .games-panel .game-card:focus-visible,
    .games-panel .game-card:hover > img,
    .games-panel .game-card:focus-visible > img,
    .games-panel .game-card:hover .card-arrow,
    .games-panel .game-card:focus-visible .card-arrow {
        transform: none;
    }
}

/* ==========================================
   FOOTER PROVIDER — PUTIH KE WARNA ASLI
========================================== */

.idb-provider-section {
    padding: 4px 0 28px;
}

.idb-provider-heading {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
}

.idb-provider-heading h2 {
    margin: 5px 0 0;
    color: var(--text, #f5f2eb);
    font-size: 23px;
    font-weight: 650;
    line-height: 1.4;
    letter-spacing: -.025em;
}

.idb-provider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(
        90deg,
        #9a783e70,
        transparent
    );
}

.idb-provider-grid {
    display: grid;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 16px 12px;
}

.idb-provider-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 88px;
}

/*
 * Sprite ditampilkan 2× ukuran asli.
 * Kolom kiri: putih.
 * Kolom kanan: warna asli.
 */
.idb-provider-logo {
    position: relative;
    display: block;
    flex-shrink: 0;
    width: 84px;
    height: 72px;
}

.idb-provider-logo::before,
.idb-provider-logo::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("assets/icon_menu.png");
    background-repeat: no-repeat;
    background-size: 170px 4096px;
    pointer-events: none;
    transition: opacity 220ms ease;
}

/* Logo putih */
.idb-provider-logo::before {
    background-position: 0 var(--provider-y);
    opacity: .85;
}

/* Logo berwarna */
.idb-provider-logo::after {
    background-position: -86px var(--provider-y);
    opacity: 0;
}

.idb-provider-item:hover .idb-provider-logo::before {
    opacity: 0;
}

.idb-provider-item:hover .idb-provider-logo::after {
    opacity: 1;
}

/* Tablet */
@media (max-width: 1100px) {
    .idb-provider-grid {
        grid-template-columns: repeat(8, minmax(0, 1fr));
        gap: 12px 8px;
    }
}

/* Mobile */
@media (max-width: 720px) {
    .idb-provider-heading {
        gap: 16px;
        margin-bottom: 18px;
    }

    .idb-provider-heading h2 {
        font-size: 20px;
    }

    .idb-provider-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
    }

    .idb-provider-item {
        min-height: 70px;
    }

    .idb-provider-logo {
        transform: scale(.8);
    }
}

@media (max-width: 380px) {
    .idb-provider-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Perangkat tanpa hover menampilkan warna asli */
@media (hover: none) {
    .idb-provider-logo::before {
        opacity: 0;
    }

    .idb-provider-logo::after {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .idb-provider-logo::before,
    .idb-provider-logo::after {
        transition: none;
    }
}

/* =========================================
   HOT GAMES — VIDEO CARDS COMPACT
========================================= */

.idb-video-games {
    padding: 20px;
    border: 1px solid #393125;
    border-radius: 16px;
    background: linear-gradient(
        145deg,
        #191719,
        #101012
    );
}

.idb-video-games-heading {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.idb-video-games-heading h2 {
    margin: 0;
    color: #f5f2eb;
    font-size: 21px;
    line-height: 1.3;
    letter-spacing: -.03em;
}

.idb-video-games-heading > span {
    flex: 1;
    height: 1px;
    background: linear-gradient(
        90deg,
        #a9854255,
        transparent
    );
}

.idb-video-games-heading > strong {
    color: var(--gold, #edc85f);
    font-size: 10px;
    letter-spacing: .1em;
}

/* Enam kartu per baris */
.idb-video-games-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.idb-video-game-card {
    display: block;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #353035;
    border-radius: 10px;
    background: #111113;
    transition:
        border-color 200ms ease,
        transform 200ms ease,
        box-shadow 200ms ease;
}

.idb-video-game-media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 8 / 5;
    background: #0b0b0e;
}

/* Gambar dan video tampil utuh */
.idb-video-game-poster,
.idb-game-video {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.idb-game-video {
    z-index: 1;
    opacity: 0;
    pointer-events: none;
}

.idb-game-video.is-playing {
    opacity: 1;
}

/* Panah dipindah ke area teks */
.idb-video-game-arrow {
    display: none;
}

.idb-video-game-caption {
    position: relative;
    padding: 11px 28px 12px 12px;
}

.idb-video-game-caption::after {
    content: "↗";
    position: absolute;
    top: 10px;
    right: 10px;
    color: var(--gold, #edc85f);
    font-size: 15px;
    line-height: 1.4;
}

.idb-video-game-caption h3 {
    margin: 0;
    color: #f5f2eb;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.idb-video-game-caption > span {
    display: block;
    margin-top: 4px;
    color: #aaa3ad;
    font-size: 10px;
    line-height: 1.5;
}

.idb-video-game-card:hover,
.idb-video-game-card:focus-visible {
    border-color: var(--gold, #edc85f);
    box-shadow: 0 6px 18px #00000035;
    transform: translateY(-3px);
}

/* Tablet */
@media (max-width: 1000px) {
    .idb-video-games-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Mobile */
@media (max-width: 600px) {
    .idb-video-games {
        padding: 16px 12px;
        border-radius: 14px;
    }

    .idb-video-games-heading {
        gap: 10px;
        margin-bottom: 14px;
    }

    .idb-video-games-heading h2 {
        font-size: 18px;
    }

    .idb-video-games-heading > strong {
        font-size: 9px;
        letter-spacing: .04em;
    }

    .idb-video-games-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .idb-video-game-caption h3 {
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .idb-video-game-card {
        transition: none;
    }

    .idb-video-game-card:hover,
    .idb-video-game-card:focus-visible {
        transform: none;
    }
}

/* HOT GAMES — HOVER & MAINkan SEKARANG */

.idb-video-game-card {
    transition:
        transform 220ms ease,
        border-color 220ms ease,
        box-shadow 220ms ease;
}

/* Lapisan gelap di atas gambar/video */
.idb-video-game-media::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        180deg,
        transparent 15%,
        rgba(9, 9, 11, .38) 55%,
        rgba(9, 9, 11, .85)
    );
    opacity: 0;
    transition: opacity 220ms ease;
    pointer-events: none;
}

/* Tombol visual; tautan tetap memakai kartu */
.idb-game-play {
    position: absolute;
    right: 10px;
    bottom: 12px;
    left: 10px;
    z-index: 3;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    min-height: 38px;
    padding: 9px 6px;
    border: 1px solid #ffe9a1;
    border-radius: 7px;

    background: linear-gradient(
        120deg,
        #fff0b6,
        var(--gold, #edc85f) 65%,
        #d4a943
    );

    color: #211704;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.4;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: .025em;

    box-shadow: 0 5px 18px #00000055;
    opacity: 0;
    transform: translateY(10px);

    transition:
        opacity 220ms ease,
        transform 220ms ease;

    pointer-events: none;
}

.idb-game-play > span {
    font-size: 16px;
    line-height: 1;
}

.idb-video-game-card:hover,
.idb-video-game-card:focus-visible {
    border-color: var(--gold, #edc85f);
    box-shadow:
        0 10px 24px #00000055,
        0 0 14px #edc85f12;
    transform: translateY(-4px);
}

.idb-video-game-card:hover .idb-video-game-media::after,
.idb-video-game-card:focus-visible .idb-video-game-media::after {
    opacity: 1;
}

.idb-video-game-card:hover .idb-game-play,
.idb-video-game-card:focus-visible .idb-game-play {
    opacity: 1;
    transform: translateY(0);
}

.idb-video-game-card:hover .idb-video-game-caption h3,
.idb-video-game-card:focus-visible .idb-video-game-caption h3 {
    color: var(--gold, #edc85f);
}

/* Layar sentuh: tombol selalu terlihat */
@media (hover: none) {
    .idb-video-game-media::after {
        opacity: 1;
    }

    .idb-game-play {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .idb-video-game-card,
    .idb-video-game-media::after,
    .idb-game-play {
        transition: none;
    }

    .idb-video-game-card:hover,
    .idb-video-game-card:focus-visible,
    .idb-game-play {
        transform: none;
    }
}

/* FOOTER — SATU KOTAK SERTIFIKASI DAN BANK */

.idb-footer-support {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;

    width: 100%;
    margin: 24px 0 30px;
    padding: 26px 0;

    border: 1px solid #302e31;
    border-radius: 18px;
    background: linear-gradient(
        135deg,
        #18171b,
        #101012
    );
}

.idb-footer-support-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 0 26px;
}

.idb-footer-support-group + .idb-footer-support-group {
    border-left: 1px solid #a1843a35;
}

.idb-footer-support-group h2 {
    margin: 0 0 22px;
    color: #cbc7d0;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.5;
    letter-spacing: .1em;
    text-align: left;
    text-transform: uppercase;
}

.idb-footer-support-group h2::first-letter {
    color: var(--gold, #edc85f);
    font-size: 25px;
}

.idb-footer-support-group img {
    display: block;
    width: 100%;
    height: 80px;
    object-fit: contain;
    object-position: center;
}

@media (max-width: 720px) {
    .idb-footer-support {
        grid-template-columns: 1fr;
        padding: 0 20px;
        border-radius: 14px;
    }

    .idb-footer-support-group {
        padding: 22px 0;
    }

    .idb-footer-support-group + .idb-footer-support-group {
        border-left: 0;
        border-top: 1px solid #a1843a35;
    }

    .idb-footer-support-group h2 {
        margin-bottom: 16px;
        font-size: 12px;
    }

    .idb-footer-support-group img {
        height: 65px;
    }
}