/*
====================================================
 Shiva & Sally — Portada
 Hoja de estilos principal
====================================================
*/

@import url('https://fonts.googleapis.com/css2?family=Creepster&display=swap');

/*==================================================
  Variables
==================================================*/

:root {

    --color-text: #f2f5f8;
    --color-text-muted: rgba(242, 245, 248, 0.75);

    --color-steam: #66c0f4;

    --radius: 6px;

    --text-shadow:
        0 1px 3px rgba(0, 0, 0, 0.6),
        0 2px 12px rgba(0, 0, 0, 0.4);

    --font-display: "Creepster", system-ui, sans-serif;

}


/*==================================================
  Base
==================================================*/

*,
*::before,
*::after {

    box-sizing: border-box;

}

html {

    height: 100%;

}

body {

    margin: 0;

    min-height: 100vh;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    padding: 2rem;

    color: var(--color-text);

    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background:
        radial-gradient(
            ellipse at center,
            rgba(8, 10, 14, .55) 0%,
            rgba(8, 10, 14, .35) 45%,
            rgba(8, 10, 14, .15) 75%
        ),
        url("shiva-sally.webp") center center / cover no-repeat fixed;

}


/*==================================================
  Contenedor
==================================================*/

.join-card {

    width: min(100%, 480px);

    text-align: center;

}


/*==================================================
  Títulos
==================================================*/

h1 {

    margin: 0;

    font-family: var(--font-display);

    font-size: 3.2rem;

    font-weight: 400;

    letter-spacing: 0.03em;

    line-height: 1.1;

    text-shadow:
        var(--text-shadow),
        0 0 24px rgba(102, 192, 244, 0.35);

}


/*==================================================
  Texto
==================================================*/

p {

    line-height: 1.6;

    color: var(--color-text-muted);

    text-shadow: var(--text-shadow);

}


/*==================================================
  Botones — mismo estilo "vidrio" que el resto del
  sitio, con tipografía sorpresa para el rótulo.
==================================================*/

.game-list {

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 1.1rem;

    margin-top: 2rem;

}

.game-button {

    position: relative;

    -webkit-tap-highlight-color: transparent;

    -webkit-user-select: none;
    user-select: none;

    display: inline-flex;

    justify-content: center;

    align-items: center;

    width: auto;

    min-width: 220px;

    padding: .9rem 1.1rem;

    border: 1px solid rgba(255, 255, 255, 0.25);

    border-radius: 10px;

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.16) 0%,
            rgba(255, 255, 255, 0.04) 45%,
            rgba(255, 255, 255, 0.10) 100%
        );

    backdrop-filter: blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);

    color: var(--color-text);

    font-family: var(--font-display);

    font-size: 1.4rem;

    font-weight: 400;

    letter-spacing: 0.04em;

    text-decoration: none;

    text-shadow: var(--text-shadow);

    cursor: pointer;

    overflow: hidden;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.45),
        inset 0 -8px 12px -8px rgba(0, 0, 0, 0.35),
        0 6px 16px rgba(0, 0, 0, 0.25);

    transition:
        color .15s ease,
        border-color .15s ease,
        box-shadow .2s ease,
        transform .15s ease;

}

/* Reflejo tipo "gota" que se desliza al pasar el ratón */
.game-button::before {

    content: "";

    position: absolute;

    top: -50%;
    left: -30%;

    width: 60%;
    height: 200%;

    background: linear-gradient(
        120deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.25) 50%,
        rgba(255, 255, 255, 0) 100%
    );

    transform: rotate(20deg) translateX(-120%);

    transition: transform .6s ease;

    pointer-events: none;

}

.game-button:hover::before {

    transform: rotate(20deg) translateX(220%);

}

.game-button:hover,
.game-button:focus-visible {

    border-color: rgba(255, 255, 255, 0.4);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.55),
        inset 0 -8px 12px -8px rgba(0, 0, 0, 0.35),
        0 8px 22px rgba(0, 0, 0, 0.3);

    transform: translateY(-1px);

}

.game-button:active {

    transform: translateY(0);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 4px 10px rgba(0, 0, 0, 0.3);

}

.game-button::selection {

    background: rgba(255, 255, 255, 0.3);

    color: inherit;

}

.game-button:focus-visible {

    outline: 2px solid rgba(255, 255, 255, 0.6);
    outline-offset: 2px;

}


/*==================================================
  Desplegable de estadísticas (L4D1 / L4D2)
==================================================*/

.stats-menu {

    display: block;

}

.stats-menu > summary {

    list-style: none;

}

.stats-menu > summary::-webkit-details-marker {

    display: none;

}

.stats-menu > summary::after {

    content: "▾";

    margin-left: .5rem;

    font-family: system-ui, sans-serif;

    font-size: .8em;

}

.stats-menu[open] > summary::after {

    content: "▴";

}

.stats-options {

    display: flex;

    flex-wrap: wrap;

    justify-content: center;

    gap: 1.1rem;

    margin-top: 1.1rem;

}

.stats-options .game-button {

    min-width: 0;

    flex: 0 1 190px;

    padding: .7rem .9rem;

    font-size: 1.15rem;

}


/*==================================================
  Pie de página
==================================================*/

footer {

    margin-top: 2.5rem;

    text-align: center;

}

footer p {

    margin: 0;

    font-size: 0.78rem;

    letter-spacing: 0.02em;

    color: var(--color-text-muted);

    text-shadow: var(--text-shadow);

}


/*==================================================
  Responsive
==================================================*/

@media (max-width: 600px) {

    body {

        padding: 1.5rem;

    }

    h1 {

        font-size: 2.3rem;

    }

    .game-button {

        font-size: 1.2rem;

    }

    .stats-options .game-button {

        font-size: 1.05rem;

    }

}


/*==================================================
  Accesibilidad
==================================================*/

@media (prefers-reduced-motion: reduce) {

    * {

        animation: none !important;

        transition: none !important;

        scroll-behavior: auto !important;

    }

}
