* {
    box-sizing: border-box;
}

@font-face {
    font-family: 'Heavitas', 'Object Sans Lorien', Arial, sans-serif;
    src: url('fonts/Heavitas.ttf') format('truetype');
}

@font-face {
    font-family: "Object Sans Lorien";
    src: url("fonts/ObjectSans-Regular.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

body {
    margin: 0;
    min-height: 100vh;

    background:
        linear-gradient(rgba(54, 164, 238, 0), rgba(194, 168, 228, 0.82)),
        url("../images/landing-page/background-principal.gif");

    background-size: cover;
    background-position: center;
    background-attachment: fixed;

    color: white;
    font-family: "Object Sans Lorien", Arial, sans-serif;
}

.mini-header,
.roulette-header {
    position: relative;

    height: 82px;
    padding: 0 35px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: rgba(28, 96, 136, 0.94);
    border-bottom: 3px solid #0197c9;
}

.mini-back {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.mini-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);

    display: flex;
    align-items: center;
    gap: 12px;

    font-size: 28px;
    font-weight: 900;
    letter-spacing: 2px;
}

.mini-logo img {
    width: 42px;
}

.mini-user {
    padding: 10px 18px;

    border-radius: 999px;

    background: rgba(255,255,255,.10);
    border: 1px solid rgba(126,231,255,.45);

    font-weight: bold;
}

.mini-main {
    width: min(1250px, 94%);
    margin: auto;
    padding: 50px 0;
}

.mini-hero {
    text-align: center;
    margin-bottom: 70px;
}

.mini-hero h1 {
    margin: 0;

    color: #0c62d3;
    font-size: 46px;
    letter-spacing: 2px;
}

.mini-hero p {
    margin-top: 14px;

    color: #074699;
    font-size: 16px;
    font-weight: bold;
}

.minigames-grid,
.minijuegos-grid,
.mini-games-grid {
    width: min(1180px, 94vw);
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(2, minmax(430px, 1fr));
    gap: 35px;
}

.minigame-card {
    width: 100%;

    padding: 34px;

    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 28px;
    align-items: center;

    border-radius: 28px;

    background: rgba(8, 69, 109, 0.94);
    border: 1px solid rgba(126, 246, 255, 0.35);

    box-shadow:
        0 0 24px rgba(0,191,255,.18),
        0 0 35px rgba(255,105,180,.12);

    cursor: pointer;
    transition: .25s ease;
}

@media (max-width: 950px) {
    .minigames-grid,
    .minijuegos-grid,
    .mini-games-grid {
        grid-template-columns: 1fr;
    }
}

.minigame-card:hover {
    transform: translateY(-6px) scale(1.01);

    box-shadow:
        0 0 28px rgba(0,191,255,.35),
        0 0 45px rgba(255,105,180,.22);
}

.minigame-icon {
    width: 180px;
    height: 180px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 24px;

    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.20);
}

.minigame-icon img {
    width: 150px;
    height: 150px;
    object-fit: contain;

    filter: drop-shadow(0 0 14px rgba(0,191,255,.35));
}

.minigame-content h2 {
    margin: 0 0 12px;

    color: #7ee7ff;
    font-size: 32px;
}

.minigame-content p {
    color: rgba(255,255,255,.84);
    line-height: 1.6;
    font-weight: bold;
}

.minigame-content button {
    margin-top: 18px;

    padding: 13px 34px;

    border: none;
    border-radius: 14px;

    background: #00BFFF;
    color: white;

    font-weight: bold;
    cursor: pointer;
}

.minigame-content button:hover {
    background: #0077d9;
}

@media (max-width: 800px) {
    .minigame-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .minigame-icon {
        margin: auto;
    }
}

/* Panel Lateral Para miembros Lorien */

.member-sidebar {
    position: fixed;
    top: 260px;
    right: 0;

    width: 260px;
    max-height: calc(100vh - 150px);

    background: rgba(10, 20, 35, .96);
    border-left: 1px solid rgba(0,191,255,.45);
    border-top: 1px solid rgba(0,191,255,.35);
    border-bottom: 1px solid rgba(0,191,255,.35);

    border-radius: 18px 0 0 18px;

    color: white;

    box-shadow:
        0 0 22px rgba(0,191,255,.25);

    z-index: 25000;

    transition: transform .3s ease;
}

.member-sidebar.collapsed {
    transform: translateX(245px);
}

.member-sidebar-toggle {
    position: absolute;
    left: -44px;
    top: 18px;

    width: 44px;
    height: 44px;

    border: none;
    border-radius: 14px 0 0 14px;

    background: rgba(10, 20, 35, .96);
    color: white;

    font-size: 20px;
    cursor: pointer;

    border: 1px solid rgba(0,191,255,.35);
}

.member-sidebar-content {
    padding: 18px;
    overflow-y: auto;
    max-height: calc(100vh - 150px);
}

.member-sidebar-content h3 {
    margin-top: 0;

    font-family: 'Heavitas', 'Object Sans Lorien', Arial, sans-serif;
    color: #7ee7ff;
    text-align: center;
}

.member-group-title {
    margin: 18px 0 8px;

    font-family: "Object Sans Lorien", Arial, sans-serif;
    font-size: 12px;
    color: #bfefff;

    text-transform: uppercase;
    letter-spacing: 1px;
}

.member-online-card {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 9px;
    margin-bottom: 8px;

    border-radius: 12px;

    background: rgba(255,255,255,.06);

    cursor: pointer;
    transition: .2s ease;
}

.member-online-card:hover {
    background: rgba(0,191,255,.16);
}

.member-online-card img {
    width: 34px;
    height: 34px;

    border-radius: 50%;
    object-fit: cover;

    border: 2px solid rgba(255,255,255,.65);
}

.member-online-info {
    display: grid;
}

.member-online-info strong {
    font-family: "Object Sans Lorien", Arial, sans-serif;
    font-size: 13px;
    color: white;
}

.member-online-info small {
    font-family: "Object Sans Lorien", Arial, sans-serif;
    font-size: 11px;
    color: rgba(255,255,255,.65);
}

.member-status-dot {
    width: 9px;
    height: 9px;

    border-radius: 50%;
    background: #23d18b;

    box-shadow: 0 0 8px rgba(35,209,139,.75);
}

.member-sidebar-toggle img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.logged-only:not(.hidden-logged) {
    animation: loggedMenuIn .35s ease;
}

@keyframes loggedMenuIn {
    from {
        opacity: 0;
        transform: translateX(18px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/* ========================================================= */
/* LORIEN FONT SYSTEM - ObjectSans para minijuegos y ruletas */
/* ========================================================= */

:root {
    --lorien-font-title: 'Heavitas', 'Object Sans Lorien', Arial, sans-serif;
    --lorien-font-text: "Object Sans Lorien", Arial, sans-serif;
}

/* Texto general: ObjectSans */
body,
button,
input,
textarea,
select,
label,
p,
span,
small,
strong,
a,
li,
.member-group-title,
.member-online-info strong,
.member-online-info small,
.winner-box,
.winner-modal-card,
.roulette-panel,
.free-panel,
.minigame-content {
    font-family: var(--lorien-font-text) !important;
    letter-spacing: .3px;
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
}

/* Títulos/branding: Heavitas */
.mini-logo,
.roulette-logo,
.free-logo,
.mini-hero h1,
.roulette-title-box h1,
.free-title-box h1,
.member-sidebar-content h3,
.winner-modal-card h2 {
    font-family: var(--lorien-font-title) !important;
}

/* Títulos más suaves dentro de paneles */
.minigame-content h2,
.roulette-panel h2,
.crear-ruleta-box h2,
.ruleta-activa-box h2,
.crear-free-box h2,
.free-activa-box h2,
.free-history-content h3,
.roulette-history-content h3,
.roulette-history-panel h3 {
    font-family: var(--lorien-font-text) !important;
    font-weight: 800;
    letter-spacing: .6px;
}

/* Botones e inputs más limpios */
button,
input,
textarea,
select {
    font-weight: 700;
}

button {
    transition: .22s ease;
}

button:hover {
    transform: translateY(-2px);
}

/* Suaviza paneles azules sin romper el tema compartido */
.roulette-panel,
.free-panel,
.minigame-card,
.member-sidebar,
.roulette-history-panel,
.free-history-panel {
    background: linear-gradient(180deg, rgba(9, 77, 116, .92), rgba(8, 55, 95, .94));
    border-color: rgba(126, 231, 255, .48);
    box-shadow:
        0 0 22px rgba(0, 191, 255, .18),
        0 0 30px rgba(255, 105, 180, .10);
}

.roulette-header,
.free-header,
.mini-header {
    background: linear-gradient(90deg, rgba(16, 124, 171, .94), rgba(16, 160, 207, .92));
}

/* Legibilidad en listas */
.participant-item,
.free-option-item,
.roulette-history-card,
.free-history-card,
.member-online-card,
.winner-box {
    background: rgba(255, 255, 255, .10);
}

/* Ganador: texto más amable */
#winnerName,
#freeWinnerName {
    font-family: var(--lorien-font-text) !important;
    font-weight: 800;
    letter-spacing: .5px;
}




/* ========================================================= */
/* RESPONSIVE FINAL - MINIJUEGOS INDEX                      */
/* ========================================================= */

.mini-main {
    width: min(1250px, 94vw);
}

@media (max-width: 1180px) {
    .mini-main {
        padding: 42px 0;
    }

    .mini-hero {
        margin-bottom: 46px;
    }

    .mini-hero h1 {
        font-size: clamp(34px, 6vw, 44px);
    }

    .minigames-grid,
    .minijuegos-grid,
    .mini-games-grid {
        width: min(980px, 92vw);
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .minigame-card {
        max-width: 760px;
        margin: 0 auto;
    }
}

@media (max-width: 760px) {
    .mini-main {
        width: 92vw;
        padding: 34px 0 70px;
    }

    .mini-hero {
        margin-bottom: 30px;
    }

    .mini-hero h1 {
        font-size: 34px;
        letter-spacing: 1px;
    }

    .mini-hero p {
        font-size: 14px;
        line-height: 1.45;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }

    .minigames-grid,
    .minijuegos-grid,
    .mini-games-grid {
        width: 100%;
        gap: 22px;
    }

    .minigame-card {
        grid-template-columns: 1fr !important;
        padding: 24px 20px;
        border-radius: 24px;
        text-align: center;
        gap: 18px;
    }

    .minigame-icon {
        width: 150px;
        height: 150px;
        margin: 0 auto;
        border-radius: 22px;
    }

    .minigame-icon img {
        width: 125px;
        height: 125px;
    }

    .minigame-content h2 {
        font-size: 24px;
        line-height: 1.15;
    }

    .minigame-content p {
        font-size: 14px;
        line-height: 1.45;
    }

    .minigame-content button {
        width: min(220px, 100%);
        padding: 12px 24px;
    }
}

@media (max-width: 420px) {
    .minigame-card {
        padding: 22px 16px;
    }

    .minigame-content h2 {
        font-size: 21px;
    }
}
