/* ==========================================================================
   Craftok Theme — clean / play-first
   ========================================================================== */

:root {
    --primary: #F61753;
    --primary-2: #d01248;
    --secondary: #24BBEB;
    --secondary-2: #0ea5d0;
    --online: #18D278;

    --bg: #f3f5f7;
    --surface: #ffffff;
    --surface-2: #f8fafc;
    --text: #12171c;
    --text-muted: #5f6b76;
    --border: rgba(18, 23, 28, 0.08);
    --tri: rgba(18, 23, 28, 0.06);
    --tri-2: rgba(18, 23, 28, 0.12);

    --radius: 18px;
    --radius-sm: 12px;
    --shadow: 0 12px 40px rgba(18, 23, 28, 0.08);
    --shadow-sm: 0 4px 16px rgba(18, 23, 28, 0.06);
    --nav-h: 72px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --t: 0.28s var(--ease);

    --bs-primary: #F61753;
    --text-color-1: #12171c;
    --text-color-2: #ffffff;
    --color-4: #ffffff;
    --gradient-2-reverted: linear-gradient(135deg, rgba(246, 23, 83, 0.08), rgba(36, 187, 235, 0.08));
    --mini-title-text-size: 1.05rem;
    --paragraphe-text-size: 0.95rem;
    --title-text-size: 1.35rem;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg);
    background-image:
        radial-gradient(900px 480px at 0% -10%, rgba(36, 187, 235, 0.07), transparent 55%),
        radial-gradient(700px 400px at 100% 0%, rgba(246, 23, 83, 0.05), transparent 50%);
    background-attachment: fixed;
    color: var(--text);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

body.dark {
    --bg: #0f1418;
    --surface: #171d24;
    --surface-2: #1b222b;
    --text: #f1f4f7;
    --text-muted: #9aa6b2;
    --border: rgba(255, 255, 255, 0.08);
    --tri: rgba(255, 255, 255, 0.07);
    --tri-2: rgba(255, 255, 255, 0.14);
    --shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
    --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.25);
    --text-color-1: #f1f4f7;
    --text-color-2: #ffffff;
    --color-4: #171d24;
    --gradient-2-reverted: linear-gradient(135deg, rgba(246, 23, 83, 0.14), rgba(36, 187, 235, 0.12));
    color: var(--text);
}

body.drawer-open { overflow: hidden; }

*::selection { background: rgba(36, 187, 235, 0.28); }

a { color: var(--primary); transition: color var(--t); }
a:hover { color: var(--primary-2); }

/* ---------- Base UI ---------- */
.form-label { font-weight: 600; color: var(--text); }
.form-control {
    border-radius: var(--radius-sm);
    border-color: var(--border);
    background: var(--surface);
    color: var(--text);
    padding: 0.75rem 1rem;
}
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(246, 23, 83, 0.15);
    background: var(--surface);
    color: var(--text);
}
body.dark .form-control {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border);
    color: var(--text);
}
body.dark .form-control::placeholder { color: rgba(255, 255, 255, 0.4); }
.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary-2);
}
.form-check-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(246, 23, 83, 0.18);
}

.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--primary);
    --bs-btn-border-color: var(--primary);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--primary-2);
    --bs-btn-hover-border-color: var(--primary-2);
    --bs-btn-active-bg: var(--primary-2);
    border: 0;
    border-radius: var(--radius-sm);
    font-weight: 700;
    padding: 0.85rem 1.35rem;
    transition: transform var(--t), background var(--t), box-shadow var(--t);
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.card-header, .card-footer, .card-body {
    background: var(--surface);
    color: var(--text);
    border-color: var(--border);
}
.card-body, .card-header { padding: 1.4rem 1.5rem; }
.card-header { font-weight: 700; border-bottom: 0; padding-bottom: 0; }
.card-title { font-weight: 700; text-transform: none; }
.content h1:first-of-type {
    font-weight: 800;
    letter-spacing: -0.02em;
    text-transform: none;
}
body.dark .text-body-secondary { color: var(--text-muted) !important; }
body.dark .breadcrumb-item .text-dark { color: var(--text) !important; }
body.dark .btn-close { filter: brightness(0) invert(1); }

.modal-content {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.dropdown-menu {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    background: var(--surface);
    padding: 0.4rem;
}
.nav .dropdown-menu {
    background: var(--primary);
    border: 0;
}
.nav .dropdown-item {
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
}
.nav .dropdown-item:hover,
.nav .dropdown-item:focus,
.nav .dropdown-item.active {
    background: var(--primary-2);
    color: #fff;
}
.dropdown-item { border-radius: 8px; color: var(--text); }
.dropdown-item:hover { background: var(--tri); color: var(--text); }
.dropdown-header { color: #fff; font-weight: 700; }
.nav-tabs { border: 0; }
.nav-tabs .nav-link { border: 0 !important; color: var(--text-muted); }
.nav-tabs .nav-link.active { color: var(--primary); background: transparent; }
.list-group-flush > .list-group-item {
    border: 0;
    background: transparent;
    color: var(--text);
}
html > div[style] { display: none !important; }

/* ---------- Online dot ---------- */
.online-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--online);
    display: inline-block;
    margin-right: 0.35rem;
    box-shadow: 0 0 0 0 rgba(24, 210, 120, 0.5);
    animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(24, 210, 120, 0.45); }
    50% { box-shadow: 0 0 0 6px rgba(24, 210, 120, 0); }
}

/* ---------- Buttons ---------- */
.btn-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    background: var(--primary);
    color: #fff !important;
    border: 0;
    border-radius: 14px;
    padding: 0.9rem 1.35rem;
    font-weight: 700;
    font-size: 0.98rem;
    text-decoration: none;
    box-shadow: 0 12px 30px rgba(246, 23, 83, 0.32);
    transition: transform var(--t), background var(--t), box-shadow var(--t);
    cursor: pointer;
}
.btn-play:hover {
    background: var(--primary-2);
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(246, 23, 83, 0.4);
    color: #fff !important;
}
.btn-play--cyan {
    background: var(--secondary);
    box-shadow: 0 12px 30px rgba(36, 187, 235, 0.3);
}
.btn-play--cyan:hover {
    background: var(--secondary-2);
    box-shadow: 0 16px 36px rgba(36, 187, 235, 0.38);
}
.btn-play--block { width: 100%; margin-top: 1rem; }
.btn-play__logo,
.btn-play__icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 8px;
    flex-shrink: 0;
}

.btn-ip {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    border-radius: 14px;
    padding: 0.75rem 1rem;
    transition: background var(--t), transform var(--t);
    cursor: pointer;
}
.btn-ip:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-1px);
}
.btn-ip__label {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    opacity: 0.7;
}
.btn-ip__value { font-weight: 700; font-size: 0.95rem; }
.btn-ip__hint {
    font-size: 0.75rem;
    font-weight: 650;
    color: var(--secondary);
    background: rgba(36, 187, 235, 0.15);
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.75rem 1.15rem;
    border-radius: var(--radius-sm);
    background: var(--tri);
    color: var(--text) !important;
    text-decoration: none;
    font-weight: 650;
    transition: background var(--t), transform var(--t);
}
.btn-ghost:hover {
    background: var(--tri-2);
    transform: translateY(-1px);
    color: var(--text) !important;
}

.btn-store {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--secondary);
    color: #fff !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.45rem 0.85rem;
    border-radius: 10px;
    transition: background var(--t), transform var(--t);
}
.btn-store:hover {
    background: var(--secondary-2);
    transform: translateY(-1px);
    color: #fff !important;
}

/* legacy aliases */
.storebtn,
a.storebtn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--secondary);
    color: #fff !important;
    text-decoration: none;
    font-weight: 700;
    padding: 0.45rem 0.85rem;
    border-radius: 10px;
}
.noaccount {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff !important;
    padding: 0.75rem 1.15rem;
    width: 100%;
    border: 0;
    background: var(--secondary);
    border-radius: var(--radius-sm);
    font-weight: 700;
    text-decoration: none;
    transition: background var(--t);
}
.noaccount:hover { background: var(--secondary-2); color: #fff !important; }

/* ---------- Nav ---------- */
.nav {
    position: absolute;
    inset: 0 0 auto 0;
    z-index: 20;
    background: rgba(10, 14, 18, 0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nav__inner {
    min-height: var(--nav-h);
    display: flex;
    align-items: center;
    gap: 1rem;
}
.nav__brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-shrink: 0;
}
.nav__burger {
    background: transparent;
    border: 0;
    padding: 0.25rem;
}
.nav__logo { height: 42px; width: auto; border-radius: 10px; }
.nav__brand-meta {
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.15;
}
.nav__wordmark { width: 112px; height: auto; }
.nav__online {
    display: inline-flex;
    align-items: center;
    margin: 0.2rem 0 0;
    font-size: 10px;
    font-weight: 600;
    color: #fff;
    background: rgba(0, 0, 0, 0.28);
    padding: 3px 7px;
    border-radius: 10px;
    white-space: nowrap;
}
.nav__links {
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
}
.nav__link {
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none;
    font-weight: 650;
    font-size: 0.92rem;
    padding: 0.55rem 0.75rem;
    border-radius: 10px;
    transition: background var(--t), color var(--t);
    position: relative;
}
.nav__link:hover,
.nav__link.is-active {
    background: rgba(255, 255, 255, 0.08);
    color: #fff !important;
}
.nav__link.is-active::after {
    content: "";
    position: absolute;
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.15rem;
    height: 2px;
    border-radius: 999px;
    background: var(--primary);
}
.nav__caret { font-size: 0.7rem; margin-left: 0.15rem; opacity: 0.8; }
.nav__actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}
.nav__avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
}
.nav__user { display: inline-flex; align-items: center; gap: 0.35rem; }
.nav__theme {
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 1.15rem;
    padding: 0.45rem 0.55rem;
    border-radius: 10px;
    transition: background var(--t);
}
.nav__theme:hover { background: rgba(255, 255, 255, 0.08); }
.nav__theme .bi-moon { display: none; }
.nav__theme.dark .bi-brightness-high,
body.dark .nav__theme .bi-brightness-high { display: none; }
.nav__theme.dark .bi-moon,
body.dark .nav__theme .bi-moon { display: inline-block; }
.bi-moon { display: none; }
.dark .bi-brightness-high { display: none; }
.dark .bi-moon { display: inline-block; }

/* Drawer */
.drawer {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(300px, 86vw);
    background: linear-gradient(180deg, var(--primary), var(--primary-2));
    z-index: 40;
    transform: translateX(-105%);
    transition: transform 0.3s var(--ease);
    color: #fff;
    box-shadow: var(--shadow);
}
.drawer.is-open { transform: translateX(0); }
.drawer__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.25rem 0.5rem;
    font-weight: 800;
    font-size: 1.1rem;
}
.drawer__close {
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 1.25rem;
}
.drawer__body { padding: 0.75rem 0 1.5rem; }
.drawer__link,
.drawer__sublink {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff !important;
    text-decoration: none;
    padding: 0.9rem 1.25rem;
    font-weight: 700;
}
.drawer__link.is-active,
.drawer__link:hover { background: rgba(0, 0, 0, 0.12); }
.drawer__sublink {
    font-weight: 600;
    font-size: 0.9rem;
    padding-left: 1.75rem;
    opacity: 0.92;
}
.drawer__collapse { background: rgba(0, 0, 0, 0.1); }
.drawer__store { margin: 1rem 1.25rem 0; justify-content: center; }
.drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 35;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.drawer-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    width: 100%;
    height: min(88vh, 780px);
    max-height: 780px;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #fff;
}
.hero__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.04);
    pointer-events: none;
    z-index: 0;
}
.hero__shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(8, 12, 16, 0.55) 0%, rgba(8, 12, 16, 0.25) 40%, rgba(8, 12, 16, 0.78) 100%);
    z-index: 1;
}
.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: calc(var(--nav-h) + 1.5rem) 1.25rem 2.5rem;
    max-width: 720px;
    width: 100%;
}
.hero__brand {
    display: block;
    width: min(340px, 58vw);
    max-width: 340px;
    height: auto;
    margin: 0 auto 1rem;
    filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.35));
    opacity: 0;
    animation: riseIn 0.8s var(--ease) 0.1s forwards;
}
.hero__title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin: 0 0 0.65rem;
    opacity: 0;
    animation: riseIn 0.8s var(--ease) 0.22s forwards;
}
.hero__text {
    font-size: 1.08rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 auto 1.5rem;
    max-width: 28rem;
    opacity: 0;
    animation: riseIn 0.8s var(--ease) 0.34s forwards;
}
.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    opacity: 0;
    animation: riseIn 0.8s var(--ease) 0.46s forwards;
}
.hero__online {
    margin: 1.15rem 0 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(8px);
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    opacity: 0;
    animation: riseIn 0.8s var(--ease) 0.58s forwards;
}

@keyframes riseIn {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Page hero (inner pages) */
.page-hero {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(8, 12, 16, 0.72) 0%, rgba(8, 12, 16, 0.82) 100%),
        url('../img/bg.png') center / cover no-repeat;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.page-hero__inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: calc(var(--nav-h) + 1.75rem) 1.25rem 1.75rem;
    text-align: center;
}
.page-hero__brand {
    width: min(200px, 48vw);
    height: auto;
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.45));
}
.btn-play--compact {
    padding: 0.65rem 1.1rem;
    font-size: 0.9rem;
    border-radius: 12px;
}
.btn-play--compact .btn-play__logo {
    width: 28px;
    height: 28px;
}

.content {
    position: relative;
    margin-top: 2rem !important;
}

/* ---------- Sections ---------- */
.section { padding: 5rem 0; }
.section--games { padding-top: 4.25rem; }
.section__head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 2rem;
}
.section__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.45rem;
}
.section__eyebrow--light { color: #ff8eae; }
.section__title {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin: 0;
    color: var(--text);
}
.section__title--light { color: #fff; }
.section__lead {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 36rem;
    margin: 0.65rem 0 0;
}
.section__lead--light { color: rgba(255, 255, 255, 0.84); }
.accent-primary { color: var(--primary); }
.accent-secondary { color: var(--secondary); }

/* Games — compact, prêt pour ~10 modes */
.games-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.9rem;
}
.game-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none !important;
    color: inherit !important;
    box-shadow: var(--shadow-sm);
    transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.game-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: rgba(246, 23, 83, 0.28);
}
.game-card__media {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(145deg, #1a222c, #0d1217);
    display: flex;
    align-items: center;
    justify-content: center;
}
.game-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s var(--ease);
}
.game-card:hover .game-card__media img { transform: scale(1.05); }
.game-card__placeholder {
    font-size: 1.75rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: -0.02em;
}
.game-card__body {
    padding: 0.85rem 0.95rem 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.game-card__title {
    font-size: 1.12rem;
    font-weight: 800;
    margin: 0 0 0.3rem;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--text);
}
.game-card__text {
    color: var(--text-muted);
    font-size: 0.82rem;
    margin: 0 0 0.75rem;
    line-height: 1.4;
    flex: 1;
}
.game-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: 700;
    font-size: 0.84rem;
    color: var(--primary);
    margin-top: auto;
}
.game-card:nth-child(even) .game-card__cta { color: var(--secondary); }
.game-card:hover .game-card__cta i { transform: translateX(3px); }
.game-card__cta i { transition: transform var(--t); font-size: 0.85em; }

/* Join */
.join-panel {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) + 4px);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}
.join-panel__visual img {
    width: 100%;
    border-radius: var(--radius);
    display: block;
}
.join-steps {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
    display: grid;
    gap: 0.85rem;
}
.join-step {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.95rem 1rem;
}
.join-step__num {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: #FFCB13;
    color: #1a1a1a;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.join-step__text { color: var(--text); font-size: 0.98rem; }
.join-step__ip { color: #1655F6; }
.join-step__copy {
    margin-left: 0.4rem;
    border: 0;
    border-radius: 8px;
    background: #1655F6;
    color: #fff;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.25rem 0.65rem;
    transition: background var(--t);
}
.join-step__copy:hover { background: #1243c1; }
.join-step__copy.is-copied { background: var(--online); }

.join-modal {
    border: 0;
    border-radius: 22px;
    overflow: hidden;
}
.join-modal__body {
    padding: 2rem 1.75rem 1.75rem;
    position: relative;
}
.join-modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
}
.join-modal__head {
    text-align: center;
    margin-bottom: 1.35rem;
    padding: 0 1.5rem;
}
.join-modal__logo {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    object-fit: contain;
    margin-bottom: 0.75rem;
}
.join-modal__title {
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0 0 0.35rem;
    color: var(--text);
}
.join-modal__subtitle {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.98rem;
}
.join-modal__grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 1.5rem;
    align-items: center;
}
.join-modal__visual {
    text-align: center;
}
.join-modal__img {
    width: 100%;
    max-width: 280px;
    border-radius: var(--radius);
    display: block;
    margin: 0 auto;
}
.join-modal__tip {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    background: rgba(36, 187, 235, 0.1);
    border: 1px solid rgba(36, 187, 235, 0.28);
    border-radius: 14px;
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
    color: var(--text);
}
.join-modal__tip i {
    color: var(--secondary);
    font-size: 1.2rem;
    margin-top: 0.1rem;
}
.join-modal__tip p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.45;
}
.join-modal .join-steps { margin-top: 0; }
.join-modal__cta { margin-top: 1.15rem; }
#joinModal .modal-dialog {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}
@media (max-width: 767.98px) {
    .join-modal__grid {
        grid-template-columns: 1fr;
    }
    .join-modal__img {
        max-width: 220px;
    }
}

/* Split / community */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
}
.split__visual img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.split__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

/* Shop — mise en avant */
.section--shop {
    padding-top: 1.5rem;
    padding-bottom: 0;
}
.shop-banner {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    background:
        linear-gradient(105deg, rgba(8, 12, 16, 0.88), rgba(8, 12, 16, 0.5) 55%, rgba(246, 23, 83, 0.22)),
        var(--shop-bg) center / cover no-repeat;
    padding: 5rem 0;
    border-block: 1px solid rgba(255, 255, 255, 0.06);
}
.shop-banner__inner {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2.5rem;
    align-items: center;
}
.shop-banner__copy .section__lead {
    margin-top: 0.85rem;
    margin-bottom: 0;
    max-width: 34rem;
}
.shop-banner__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    margin-top: 1.75rem;
}
.shop-banner__note {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.88rem;
    font-weight: 500;
}
.shop-banner__visual {
    text-align: center;
}
.shop-banner__visual img {
    width: min(380px, 85%);
    filter: drop-shadow(0 18px 44px rgba(0, 0, 0, 0.4));
}

/* News */
.news-feature {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.news-feature__media img {
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: cover;
    display: block;
}
.news-feature__body {
    padding: 1.75rem 1.85rem;
    display: flex;
    flex-direction: column;
}
.news-feature__date {
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 650;
}
.news-feature__title {
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0.4rem 0 0.75rem;
}
.news-feature__title a {
    color: var(--text) !important;
    text-decoration: none;
}
.news-feature__title a:hover { color: var(--primary) !important; }
.news-feature__text {
    color: var(--text-muted);
    margin: 0;
    flex: 1;
}
.news-feature__link {
    margin-top: 1.25rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.news-feature__link i { transition: transform var(--t); }
.news-feature__link:hover i { transform: translateX(3px); }
.empty-state {
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
    text-align: center;
    color: var(--text-muted);
    background: var(--surface);
}

.post-preview {
    height: 100%;
    transition: transform var(--t), box-shadow var(--t);
}
.post-preview:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}
.post-preview .card-img-top {
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.post-meta { font-weight: 600; color: var(--text-muted); }

/* ---------- Footer ---------- */
.footer { margin-top: 4rem; }
.footer__social {
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    background-size: cover;
    background-position: center;
}
.social-btn {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.78);
    color: #151a1f !important;
    backdrop-filter: blur(8px);
    transition: transform var(--t), background var(--t);
}
.social-btn:hover {
    transform: translateY(-2px);
    background: #fff;
}
.footer__main {
    background: #12171c;
    color: #fff;
    padding: 3rem 0;
}
.footer__grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1fr 1.1fr;
    gap: 2rem;
}
.footer__brand img {
    width: 64px;
    height: auto;
    margin-bottom: 0.75rem;
}
.footer__brand p,
.footer__block p {
    color: #9aa6b2;
    font-size: 0.92rem;
    margin: 0;
}
.footer__block h3 {
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 0 0.85rem;
}
.footer__block a:not(.btn-store):not(.footer__store-btn) {
    display: block;
    color: #9aa6b2 !important;
    text-decoration: none;
    margin-bottom: 0.35rem;
    transition: color var(--t);
}
.footer__block a:not(.btn-store):not(.footer__store-btn):hover { color: #fff !important; }
.footer__block .btn-store,
.footer__store-btn,
.footer a.btn-store {
    display: inline-flex !important;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.85rem;
    color: #fff !important;
    background: var(--secondary) !important;
    text-decoration: none !important;
}
.footer__block .btn-store:hover,
.footer__store-btn:hover,
.footer a.btn-store:hover {
    background: var(--secondary-2) !important;
    color: #fff !important;
}
.footer__ip {
    position: relative;
    width: 100%;
    text-align: center;
    padding: 0.85rem 1rem 1.4rem;
    background: transparent;
    color: #fff;
    border: 1px dashed rgba(255, 255, 255, 0.28);
    border-radius: var(--radius-sm);
    transition: background var(--t), border-color var(--t), transform var(--t);
}
.footer__ip:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: transparent;
    transform: translateY(-2px);
}
.footer__ip-text {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.35rem;
    font-size: 0.65rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 700;
}
.footer__copy {
    background: #0e1216;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    font-size: 0.78rem;
    padding: 1rem;
}
.footer__copy a { color: #fff; text-decoration: none; }
.footer__copy a:hover { color: var(--secondary); }

/* ---------- Reveal ---------- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible {
    opacity: 1;
    transform: none;
}
.reveal-child {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.reveal.is-visible .reveal-child {
    opacity: 1;
    transform: none;
}
.reveal.is-visible .reveal-child:nth-child(1) { transition-delay: 0.05s; }
.reveal.is-visible .reveal-child:nth-child(2) { transition-delay: 0.12s; }
.reveal.is-visible .reveal-child:nth-child(3) { transition-delay: 0.19s; }
.reveal.is-visible .reveal-child:nth-child(4) { transition-delay: 0.26s; }
.reveal.is-visible .games-grid .reveal-child:nth-child(1) { transition-delay: 0.08s; }
.reveal.is-visible .games-grid .reveal-child:nth-child(2) { transition-delay: 0.16s; }
.reveal.is-visible .games-grid .reveal-child:nth-child(3) { transition-delay: 0.24s; }
.reveal.is-visible .games-grid .reveal-child:nth-child(4) { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
    .reveal, .reveal-child, .hero__brand, .hero__title, .hero__text, .hero__actions, .hero__online {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
        transition: none !important;
    }
    .online-dot { animation: none; }
}

/* ---------- Forum (compat) ---------- */
.reward {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    background: var(--surface);
}
.flex-1 { flex: 1; }
.card img:not(.online-user img) { max-width: 100%; }

#forum .forum-page-head {
    width: 100%;
    padding-bottom: 0.25rem;
}
#forum .forum-page-title {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}
#forum .forum-page-search {
    max-width: 320px;
    width: 100%;
}
#forum .breadcrumb {
    margin-bottom: 0.5rem;
}
#forum .forums {
    background: var(--gradient-2-reverted);
    color: var(--text-color-1);
    border-radius: var(--radius) !important;
}
#forum .forums-parent {
    background: transparent;
    border: 0;
    padding: 0 0 0.65rem;
    margin: 0;
}
#forum .forums-parent-title {
    font-size: 1.05rem;
    margin: 0;
    font-weight: 800;
    letter-spacing: -0.02em;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem;
}
#forum .forums-parent-description {
    display: inline;
    margin: 0;
    font-weight: 500;
    font-size: 0.9rem;
    opacity: 0.7;
}
#forum .forum-wrapper {
    background: var(--surface);
    border-radius: var(--radius) !important;
    border: 1px solid var(--border);
}
#forum .forum-wrapper { padding: 0.85rem 0.9rem 0.5rem; }
#forum .forums {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
#forum .forum-discussions-card { border: 0; box-shadow: none; background: transparent; }
#forum .forum-discussions-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
}
#forum .forum-discussions-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
}

/* Ligne forum compacte */
#forum .forum-item {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) auto minmax(160px, 220px);
    align-items: center;
    gap: 0.65rem 0.85rem;
    background: var(--surface-2);
    border-radius: 10px;
    padding: 0.55rem 0.75rem;
    margin-bottom: 0 !important;
    transition: background 0.15s ease, color 0.15s ease;
}
#forum .forum-item__main {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
}
#forum .forum-item__stats {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-shrink: 0;
}
#forum .forum-item__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 2.75rem;
    line-height: 1.15;
}
#forum .forum-item__latest {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}
#forum .forum-item__latest-meta {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}
#forum .forum-item:hover { color: #fff; background: var(--primary); }
#forum .forum-item:nth-child(2n):hover { background: var(--secondary); }
#forum .forum-item-icon {
    color: var(--text-color-1);
    flex-shrink: 0;
    font-size: 1.25rem !important;
    line-height: 1;
}
#forum .forum-item-title {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}
#forum .forum-item-title__link {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem;
    font-weight: 700;
    color: var(--text-color-1);
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.25;
}
#forum .forum-item-title__text {
    min-width: 0;
    overflow-wrap: anywhere;
}
#forum .forum-item-title a,
#forum .forum-item-title h6 a {
    font-weight: 700;
    color: var(--text-color-1);
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.25;
}
#forum .forum-item-title h6 { margin: 0; line-height: 1.25; }
#forum .forum-item-du {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.25;
}
#forum .forum-item:hover .forum-item-title a,
#forum .forum-item:hover .forum-item-title__link,
#forum .forum-item:hover .forum-item-icon,
#forum .forum-item:hover .forum-item-du,
#forum .forum-item:hover .forum-item-du a.name {
    color: #fff;
}
#forum .forum-item-description {
    font-size: 0.78rem;
    opacity: 0.75;
    line-height: 1.25;
}
#forum .forum-info-number { font-size: 0.95rem; font-weight: 700; line-height: 1.15; }
#forum .forum-info-text {
    font-size: 0.68rem;
    text-transform: capitalize;
    opacity: 0.75;
    line-height: 1.1;
}
#forum .forum-lastest-profile {
    position: relative;
    text-decoration: none;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
#forum .forum-lastest-profile.online::after,
#forum .forum-lastest-profile.offline::after { display: none; }
#forum .forum-lastest-profile img {
    border: 2px solid var(--border);
    width: 32px;
    border-radius: 7px;
    height: 32px;
    margin: 0;
}
#forum .forum-lastest-profile-no {
    width: 40px;
    height: 40px;
    margin: 0;
}
#forum .forum-lastest-text1 {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-color-1);
    text-decoration: none;
    line-height: 1.25;
    margin: 0;
    word-break: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
#forum .forum-lastest-text2 {
    display: block;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-muted);
    line-height: 1.2;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
#forum .forum-lastest-text1:hover { color: var(--primary); }
#forum .forum-item:hover .forum-lastest-text1,
#forum .forum-item:hover .forum-lastest-text2,
#forum .forum-item:hover .forum-lastest-text2 a {
    color: #fff;
}
#forum .forum-lastest-text2 a {
    color: inherit;
    text-decoration: none;
    font-weight: 650;
}
#forum .forum-lastest-text2 a:hover { color: var(--primary); }
#forum .stats-text { opacity: 0.75; }

/* Sidebar derniers messages */
#forum .forum-lastest-comments {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 0.85rem !important;
}
#forum .forum-sidebar-item {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
}
#forum .forum-sidebar-item__body {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
#forum .forum-sidebar-item__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}
#forum .forum-sidebar-item__tags .badge {
    font-size: 0.7rem;
    font-weight: 700;
}
#forum .forum-sidebar-item__title {
    display: block;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text);
    text-decoration: none;
    word-break: break-word;
}
#forum .forum-sidebar-item__title:hover { color: var(--primary); }
#forum .forum-sidebar-item__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.35;
}
#forum .forum-sidebar-item__meta a {
    color: inherit;
    text-decoration: none;
    font-weight: 650;
}
#forum .forum-sidebar-item__meta a:hover { color: var(--primary); }
#forum .forum-item__latest-meta .forum-sidebar-item__tags {
    margin-bottom: 0.1rem;
}
@media (max-width: 991.98px) {
    #forum .forum-item {
        grid-template-columns: minmax(0, 1fr) auto;
    }
    #forum .forum-item__latest { display: none !important; }
}
@media (max-width: 767.98px) {
    #forum .forum-item {
        grid-template-columns: minmax(0, 1fr);
    }
    #forum .forum-item__stats { display: none !important; }
}
#forum .online-user {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 40px;
    text-decoration: none;
}
#forum .online-user img {
    position: absolute;
    inset: 0;
    border: 2px solid var(--text-color-1);
    width: 40px;
    border-radius: 8px;
    height: 40px;
}
#forum .forum-nav .forum-nav-item {
    color: var(--text-color-1);
    opacity: 0.75;
    text-decoration: none;
}
#forum .forum-nav .forum-nav-item.active,
#forum .forum-nav .forum-nav-item:hover { opacity: 1; }
#forum .forum-item .forum-item-title a.name { text-transform: capitalize; }
#forum .forum-post-profile {
    position: relative;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
}
#forum .forum-post-profile.online::after {
    content: '';
    position: absolute;
    bottom: 10px;
    right: 30px;
    width: 18px;
    height: 18px;
    background: var(--online);
    border: 3px solid var(--color-4);
    border-radius: 50%;
}
#forum .forum-post-profile.offline::after { display: none; }
#forum .forum-post-profile img {
    border: 3px solid var(--border);
    width: 80px;
    border-radius: 40px;
    height: 80px;
    margin: 10px;
}
#forum .forum-post-name a {
    font-weight: 700;
    color: var(--text-color-1);
    text-transform: capitalize;
    text-decoration: none;
}
#forum .forum-post-name a:hover { color: var(--primary); }
body.dark #forum .forum-item { background: var(--surface-2); }

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
    .games-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 991.98px) {
    .games-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .join-panel,
    .split,
    .shop-banner__inner,
    .news-feature,
    .footer__grid {
        grid-template-columns: 1fr;
    }
    .join-panel__visual { order: -1; }
    .shop-banner__visual { order: -1; }
}

@media (max-width: 767.98px) {
    .hero {
        height: min(78vh, 640px);
        max-height: 640px;
        min-height: 460px;
    }
    .hero__brand {
        width: min(240px, 62vw);
        max-width: 240px;
    }
    .hero__actions { flex-direction: column; align-items: stretch; }
    .btn-ip { justify-content: center; }
    .games-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
    .game-card__title { font-size: 1.02rem; }
    .game-card__text { font-size: 0.78rem; }
    .section { padding: 3.25rem 0; }
    .join-panel { padding: 1.25rem; }
    .page-hero__inner { padding: calc(var(--nav-h) + 1.25rem) 1rem 1.35rem; }
    .page-hero__brand { width: min(160px, 50vw); }
    .footer__grid { gap: 1.5rem; }
    .nav__link--action { display: none; }
    .shop-banner { padding: 3.5rem 0; }
    .shop-banner__actions { align-items: stretch; }
    .shop-banner__actions .btn-play { width: 100%; justify-content: center; }
}
