/* =====================================================
   ARK DOMINIO - ROULETTE
   ===================================================== */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    color: white;

    background:
        radial-gradient(
            circle at 50% 10%,
            #17263b 0%,
            #0b111b 45%,
            #05080d 100%
        );

    overflow-x: hidden;
}


/* =====================================================
   FONDO
   ===================================================== */

.background-glow {

    position: fixed;

    inset: 0;

    pointer-events: none;

    z-index: -1;

    background:

        radial-gradient(
            circle at 15% 45%,
            rgba(0, 140, 255, 0.08),
            transparent 30%
        ),

        radial-gradient(
            circle at 85% 55%,
            rgba(160, 0, 255, 0.08),
            transparent 30%
        ),

        radial-gradient(
            circle at 50% 85%,
            rgba(255, 130, 0, 0.05),
            transparent 35%
        );
}


/* =====================================================
   CONTENEDOR
   ===================================================== */

main {

    width: 100%;

    max-width: 1250px;

    margin: auto;

    padding:
        25px
        25px
        50px;
}


/* =====================================================
   HEADER
   ===================================================== */

header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 30px;

    margin-bottom: 30px;
}


/* =====================================================
   LOGO
   ===================================================== */

.brand-title {

    display: flex;

    align-items: center;

    gap: 12px;

    font-weight: 900;

    letter-spacing: 2px;
}


.ark {

    font-size: 52px;

    color: #ffffff;

    text-shadow:
        0 0 10px rgba(255,255,255,.3),
        0 0 25px rgba(0,170,255,.5);
}


.roulette-title {

    font-size: 48px;

    color: #5fc8ff;

    text-shadow:
        0 0 8px #168cff,
        0 0 20px rgba(0,140,255,.8),
        0 0 40px rgba(0,140,255,.5);
}


.brand-subtitle {

    margin-top: 4px;

    font-size: 15px;

    font-weight: bold;

    letter-spacing: 6px;

    color: #f4c15d;
}


.brand-slogan {

    margin-top: 8px;

    font-size: 13px;

    letter-spacing: 5px;

    color: #8ab7d5;
}


/* =====================================================
   CUENTA
   ===================================================== */

.account {

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 12px 15px;

    background:
        linear-gradient(
            135deg,
            rgba(20,30,45,.95),
            rgba(7,12,20,.95)
        );

    border: 1px solid #34465d;

    border-radius: 14px;

    box-shadow:
        0 10px 35px rgba(0,0,0,.35);
}


.player-info {

    display: flex;

    align-items: center;

    gap: 10px;
}


.player-avatar {

    width: 43px;

    height: 43px;

    display: flex;

    justify-content: center;

    align-items: center;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            #203e58,
            #0b1624
        );

    border: 1px solid #4c7598;

    font-size: 22px;
}


.player-data {

    display: flex;

    flex-direction: column;

    gap: 4px;
}


#player {

    font-weight: bold;

    font-size: 14px;
}


.player-spins {

    color: #9fb4c8;

    font-size: 11px;
}


.player-spins b {

    color: #ffbf36;

    font-size: 14px;

    margin: 0 3px;
}


.login-button,
.logout-button {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 11px 16px;

    border-radius: 8px;

    text-decoration: none;

    font-weight: bold;

    font-size: 13px;

    transition: .2s;
}


.login-button {

    background: #5865f2;

    color: white;

    box-shadow:
        0 0 15px rgba(88,101,242,.3);
}


button.login-button {

    border: none;

    cursor: pointer;

    font-family: inherit;
}


.login-button:hover {

    background: #6975ff;

    transform: translateY(-1px);
}


.logout-button {

    background: #151d29;

    color: #ff5964;

    border: 1px solid #573038;
}


.logout-button:hover {

    background: #26171b;
}


/* =====================================================
   HIDDEN
   ===================================================== */

.hidden {

    display: none !important;
}


/* =====================================================
   FEATURES
   ===================================================== */

.feature-row {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 15px;

    margin-bottom: 20px;
}


.feature-card {

    display: flex;

    align-items: center;

    gap: 14px;

    padding: 15px 18px;

    background:
        linear-gradient(
            135deg,
            rgba(18,29,43,.95),
            rgba(9,15,24,.95)
        );

    border: 1px solid #2e4054;

    border-radius: 12px;

    box-shadow:
        inset 0 1px rgba(255,255,255,.03);
}


.feature-icon {

    font-size: 27px;

    width: 42px;

    text-align: center;
}


.feature-card strong {

    display: block;

    font-size: 13px;

    color: #dcecff;

    letter-spacing: 1px;
}


.feature-card span {

    display: block;

    margin-top: 4px;

    color: #8094a9;

    font-size: 11px;
}


/* =====================================================
   MAPA
   ===================================================== */

.map-panel {

    display: flex;

    align-items: center;

    gap: 20px;

    padding: 18px 22px;

    margin-bottom: 20px;

    background:
        linear-gradient(
            135deg,
            rgba(16,27,40,.98),
            rgba(8,14,22,.98)
        );

    border: 1px solid #34475d;

    border-radius: 14px;

    box-shadow:
        0 12px 30px rgba(0,0,0,.25);
}


.map-icon {

    width: 58px;

    height: 58px;

    display: flex;

    justify-content: center;

    align-items: center;

    border-radius: 12px;

    background: #14263a;

    border: 1px solid #31506e;

    font-size: 28px;
}


.map-content {

    flex: 1;
}


.map-content label {

    display: block;

    margin-bottom: 7px;

    font-weight: bold;

    color: #e6eef7;
}


#map {

    width: 100%;

    max-width: 500px;

    padding: 13px 15px;

    background: #111b27;

    color: white;

    border: 1px solid #3a5068;

    border-radius: 8px;

    font-size: 15px;

    outline: none;

    cursor: pointer;
}


#map:focus {

    border-color: #1d9fff;

    box-shadow:
        0 0 12px rgba(29,159,255,.2);
}


.map-content small {

    display: block;

    margin-top: 7px;

    color: #758ba0;

    font-size: 11px;
}


/* =====================================================
   CODIGO DE LOGIN -- CLICKEABLE PARA COPIAR
   ===================================================== */

.login-code-copy {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    width: 100%;

    max-width: 320px;

    padding: 12px 18px;

    background: #111b27;

    color: white;

    border: 1px solid #3a5068;

    border-radius: 8px;

    font-family: inherit;

    font-size: 1.5em;

    font-weight: bold;

    letter-spacing: 2px;

    cursor: pointer;

    transition: .2s;
}


.login-code-copy:hover {

    border-color: #1d9fff;

    background: #16263a;

    box-shadow:
        0 0 14px rgba(29,159,255,.25);

    transform: translateY(-1px);
}


.login-code-copy:active {

    transform: translateY(0);
}


.login-code-copy.copied {

    border-color: #2ecc71;

    color: #2ecc71;

    box-shadow:
        0 0 14px rgba(46,204,113,.35);
}


.login-code-copy.copy-failed {

    border-color: #ff5964;

    color: #ff5964;

    box-shadow:
        0 0 14px rgba(255,89,100,.35);
}


.login-code-icon {

    font-size: .55em;
}


.login-code-status {

    margin-top: 7px;

    font-size: 12px;

    font-weight: bold;

    color: #2ecc71;
}


/* =====================================================
   RULETA
   ===================================================== */

.roulette-section {

    position: relative;

    margin-top: 10px;
}


.roulette-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 8px;

    padding: 0 5px;

    font-size: 12px;

    font-weight: bold;

    letter-spacing: 2px;

    color: #d6e8f7;
}


.roulette-status {

    color: #6f9fbe;

    font-size: 10px;
}


/* =====================================================
   CONTENEDOR
   ===================================================== */

.roulette {

    position: relative;

    width: 100%;

    height: 245px;

    overflow: hidden;

    background:
        linear-gradient(
            180deg,
            #101a26,
            #090f17
        );

    border: 2px solid #34475b;

    border-radius: 16px;

    box-shadow:

        0 15px 45px rgba(0,0,0,.45),

        inset 0 0 30px rgba(0,0,0,.5);
}


.roulette::before,
.roulette::after {

    content: "";

    position: absolute;

    top: 0;

    bottom: 0;

    width: 120px;

    z-index: 20;

    pointer-events: none;
}


.roulette::before {

    left: 0;

    background:
        linear-gradient(
            90deg,
            #0b1119,
            transparent
        );
}


.roulette::after {

    right: 0;

    background:
        linear-gradient(
            270deg,
            #0b1119,
            transparent
        );
}


/* =====================================================
   GLOW
   ===================================================== */

.roulette-glow {

    position: absolute;

    top: 50%;

    left: 50%;

    width: 280px;

    height: 280px;

    transform:
        translate(-50%, -50%);

    background:
        radial-gradient(
            circle,
            rgba(255,165,0,.08),
            transparent 70%
        );

    pointer-events: none;
}


/* =====================================================
   VENTANA
   ===================================================== */

.roulette-window {

    position: absolute;

    inset: 0;

    overflow: hidden;
}


/* =====================================================
   TRACK
   ===================================================== */

#track {

    position: absolute;

    left: 0;

    top: 22px;

    height: 200px;

    display: flex;

    align-items: stretch;

    gap: 12px;

    width: max-content;

    transform:
        translateX(0px);

    will-change: transform;
}


/* =====================================================
   TARJETAS
   ===================================================== */

.card {

    position: relative;

    flex-shrink: 0;

    width: 160px;

    height: 200px;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    padding: 10px;

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            #1a2735,
            #111a25
        );

    border: 1px solid #405267;

    border-radius: 12px;

    transition:
        border-color .2s,
        box-shadow .2s;
}


.card:hover {

    border-color: #6c849c;

    box-shadow:
        0 0 18px rgba(60,160,255,.12);
}


/* =====================================================
   IMAGEN
   ===================================================== */

.card img {

    display: block;

    width: 110px;

    height: 110px;

    object-fit: contain;

    user-select: none;

    pointer-events: none;

    filter:
        drop-shadow(
            0 5px 8px rgba(0,0,0,.5)
        );
}


/* =====================================================
   NOMBRE
   ===================================================== */

.card .name {

    width: 100%;

    margin-top: 9px;

    text-align: center;

    font-weight: bold;

    font-size: 13px;

    color: #f0f5fa;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


/* =====================================================
   TIPO
   ===================================================== */

.card .type {

    margin-top: 5px;

    font-size: 11px;

    color: #8ba2b7;
}


/* =====================================================
   PUNTERO
   ===================================================== */

.pointer {

    position: absolute;

    z-index: 50;

    top: 0;

    left: 50%;

    width: 0;

    height: 0;

    transform:
        translateX(-50%);

    border-left:
        17px solid transparent;

    border-right:
        17px solid transparent;

    border-top:
        32px solid #ff3b3b;

    filter:
        drop-shadow(
            0 0 8px rgba(255,40,40,.8)
        );
}


/* =====================================================
   BOTÓN GIRAR
   ===================================================== */

#spin {

    position: relative;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 12px;

    margin:
        25px auto 0;

    min-width: 280px;

    padding:
        17px 45px;

    border: 1px solid #ffbd45;

    border-radius: 12px;

    background:
        linear-gradient(
            180deg,
            #ffb92f,
            #d86c12
        );

    color: white;

    font-size: 19px;

    font-weight: 900;

    letter-spacing: 1px;

    cursor: pointer;

    box-shadow:
        0 0 12px rgba(255,153,0,.55),
        0 0 35px rgba(255,110,0,.22);

    transition:
        transform .2s,
        box-shadow .2s,
        filter .2s;
}


#spin::before {

    content: "";

    position: absolute;

    inset: 3px;

    border: 1px solid rgba(255,255,255,.25);

    border-radius: 9px;

    pointer-events: none;
}


#spin:hover {

    transform:
        translateY(-2px);

    filter:
        brightness(1.12);

    box-shadow:
        0 0 18px rgba(255,173,40,.75),
        0 0 45px rgba(255,110,0,.35);
}


#spin:active {

    transform:
        scale(.97);
}


#spin:disabled {

    opacity: .45;

    cursor: not-allowed;

    filter: grayscale(.4);
}


.spin-icon {

    font-size: 22px;
}


/* =====================================================
   TEXTO SUERTE
   ===================================================== */

.luck-text {

    text-align: center;

    margin-top: 10px;

    color: #c99635;

    font-size: 10px;

    font-weight: bold;

    letter-spacing: 4px;
}


/* =====================================================
   MENSAJE
   ===================================================== */

#msg {

    min-height: 30px;

    margin-top: 15px;

    text-align: center;

    color: #d5e0ea;

    font-size: 15px;
}


/* =====================================================
   PANELES INFERIORES
   ===================================================== */

.bottom-grid {

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 18px;

    margin-top: 28px;
}


.info-panel {

    padding: 20px;

    background:
        linear-gradient(
            145deg,
            rgba(16,26,38,.97),
            rgba(7,12,19,.97)
        );

    border: 1px solid #2e4054;

    border-radius: 14px;

    min-height: 190px;
}


.panel-title {

    display: flex;

    align-items: center;

    gap: 10px;

    padding-bottom: 13px;

    border-bottom:
        1px solid #263546;

    color: #e5edf5;

    letter-spacing: 1px;
}


.panel-title span {

    font-size: 19px;
}


/* =====================================================
   HISTORIAL
   ===================================================== */

.fake-history {

    display: flex;

    flex-direction: column;

    margin-top: 8px;
}


.fake-history > div {

    display: grid;

    grid-template-columns:
        35px 1fr auto;

    align-items: center;

    gap: 8px;

    padding: 9px 0;

    border-bottom:
        1px solid rgba(255,255,255,.04);
}


.fake-history > div > span {

    font-size: 18px;

    text-align: center;
}


.fake-history b {

    font-size: 12px;

    color: #dce7f0;
}


.fake-history small {

    font-size: 10px;

    color: #71879a;
}


/* =====================================================
   CATEGORÍAS
   ===================================================== */

.categories {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 9px;

    margin-top: 18px;
}


.category {

    padding: 11px 7px;

    text-align: center;

    border-radius: 8px;

    font-size: 11px;

    font-weight: bold;

    border: 1px solid;

    background: rgba(255,255,255,.03);
}


.dino {

    color: #ff5d68;

    border-color: #7b3038;
}


.weapon {

    color: #b67cff;

    border-color: #5a3980;
}


.armor {

    color: #56b9ff;

    border-color: #2e6287;
}


.saddle {

    color: #ffb13b;

    border-color: #79501e;
}


.resource {

    color: #52e47a;

    border-color: #29713c;
}


.construction {

    color: #e4e8ed;

    border-color: #59616a;
}


.consumable {

    color: #53e3a2;

    border-color: #28765a;
}


.engram {

    color: #ff68c7;

    border-color: #843666;
}


/* =====================================================
   FOOTER
   ===================================================== */

footer {

    margin-top: 30px;

    text-align: center;

    color: #6f8a9f;

    letter-spacing: 4px;

    font-size: 10px;
}


footer small {

    display: block;

    margin-top: 8px;

    color: #42586b;

    letter-spacing: 5px;
}


/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 900px) {

    header {

        flex-direction: column;

        align-items: stretch;
    }

    .account {

        justify-content: center;
    }

    .feature-row {

        grid-template-columns:
            1fr;
    }

    .bottom-grid {

        grid-template-columns:
            1fr;
    }

}


@media (max-width: 600px) {

    main {

        padding:
            18px 12px 35px;
    }


    .brand-title {

        justify-content: center;
    }


    .ark {

        font-size: 36px;
    }


    .roulette-title {

        font-size: 32px;
    }


    .brand-subtitle,
    .brand-slogan {

        text-align: center;

        letter-spacing: 3px;
    }


    .account {

        flex-direction: column;
    }


    .player-info {

        width: 100%;

        justify-content: center;
    }


    .login-button,
    .logout-button {

        width: 100%;
    }


    .map-panel {

        align-items: flex-start;
    }


    .categories {

        grid-template-columns:
            repeat(2, 1fr);
    }


    #spin {

        width: 100%;

        min-width: 0;
    }

}