body {
    -webkit-tap-highlight-color: transparent;
    margin: 0;
    font-family: 'Arial', sans-serif;
    background-color: #0d0d0d;
    color: #f2f2f2;
    min-height: 100vh;
    animation: fadeIn 2s ease;
    padding-top: 60px;
}
@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(20, 20, 20, 0.7);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 50px;
    padding: 0 20px;
    z-index: 1000;
    backdrop-filter: blur(15px) saturate(180%);
    box-shadow: 0 4px 16px 0 rgba(255,43,43,0.05);
    box-sizing: border-box;
}
nav .logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: filter 0.2s;
    user-select: none;
}
nav .logo:hover {
    filter: brightness(1.2) drop-shadow(0 0 8px #ff2b2b80);
}
nav .logo img {
    width: 40px;
    height: auto;
}
nav .logo span {
    text-decoration: none;
    color: #ff2b2b;
    font-weight: bold;
    font-size: 1.2em;
    letter-spacing: 1px;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    white-space: nowrap;
}
nav .logo span.show {
    opacity: 1;
    transform: translateX(0);
}
nav .logo span.hide {
    opacity: 0;
    transform: translateX(-20px);
}
.hamburger {
    width: 26px;
    height: 20px;
    position: relative;
    cursor: pointer;
    transition: transform 0.25s ease;
}

.hamburger span {
    position: absolute;
    width: 20px;
    height: 3px;
    background: #ff2b2b;
    border-radius: 999px;
    top: 50%;
    left: 50%;
    transform-origin: center;
    transition: transform 0.2s ease;
}

.hamburger span:nth-child(1) {
    transform: translate(-85%, -50%) rotate(45deg);
}

.hamburger span:nth-child(2) {
    transform: translate(-15%, -50%) rotate(-45deg);
}

.hamburger.open span:nth-child(1) {
    transform: translate(-85%, -50%) rotate(-45deg);
}

.hamburger.open span:nth-child(2) {
    transform: translate(-15%, -50%) rotate(45deg);
}
.nav-right-top {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: visible;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-btn {
    background: none;
    border: none;
    color: #ff2b2b;
    font-size: 1.7rem;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    transition: transform 0.2s;
}

.search-btn:hover { transform: scale(1.1); }

#search-input-container {
    position: fixed;
    top: 52px;
    right: 3px;
    display: none;
    flex-direction: column;
    align-items: center;
    background: rgba(20, 20, 20);
    border-radius: 10px;
    overflow: visible;
    z-index: 1000;
    padding: 10px;
    width: 240px;
    border: 1px solid #222;
}

.search-input {
    width: 220px;
    padding: 10px;
    background: #0d0d0d;
    border: 1px solid #444;
    color: #fff;
    border-radius: 4px;
}

.search-results {
    max-height: 70vh;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.search-item {
    width: 220px;
    height: 25px;
    padding: 10px;
    border-radius: 4px;
    border-top: 1px solid #222;
    cursor: pointer;
    font-size: 0.9em;
    color: #ccc;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.search-item:first-child {
    border-top: none;
    margin-top: 5px;
}

.search-item:hover { background: #222; color: #fff; }

.search-item.no-hover:hover {
    background: none;
    color: #ccc;
    cursor: default;
}

.search-item img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}
.user-icon {
    background: none;
    border: none;
    color: #ff2b2b;
    font-size: 1.7rem;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    transition: transform 0.2s;
    width: auto !important;
    justify-content: center;
    width: 28px;
    height: 28px;
    font-size: 1.1rem;
    text-decoration: none;
    padding: 0 6px;
}
.user-icon,
.nav-right-top {
    flex-shrink: 0;
}

.user-icon:hover {
    transform: scale(1.1);
}

.nav-username {
    font-size: 0.78rem;
    font-weight: bold;
    vertical-align: middle;
    margin-left: 2px;
}

.nav-right {
    position: fixed;
    top: 50px;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(20, 20, 20, 0.7);
    backdrop-filter: blur(15px) saturate(180%);
    border-bottom-left-radius: 10px;
    box-shadow: 0 4px 16px 0 rgba(255,43,43,0.05);
    box-sizing: border-box;
    width: 200px;
    padding: 10px 5px;
    max-height: 0;
    opacity: 0;
    overflow: visible;
    pointer-events: none;
    transform: translateY(-12px);
    transition: max-height 0.35s ease, opacity 0.35s ease, transform 0.35s ease;
    z-index: 1000;
}

.nav-right.active {
    max-height: 70vh;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.nav-right ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}
.nav-right ul li {
    width: 100%;
    display: flex;
    justify-content: center;
}

.nav-right ul li a {
    display: block;
    width: 85%;
    text-align: center;
    color: #ff2b2b;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 0;
    border-radius: 6px;
    transition: all 0.25s ease;
}
.nav-right ul li a:hover {
    color: #fff;
    background: linear-gradient(90deg, #ff2b2b 0%, #242323 100%);
}

header .title-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}
header .title-container img {
    width: 80px;
    margin-top: 0;
}
header h1 {
    text-align: left;
    margin: 0;
    color: #ff2b2b;
    font-size: 2.5em;
}
.carousel-wrapper {
    position: relative;
    overflow-x: clip;
    max-width: 100%;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.carousel-wrapper::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -500px;
    right: -500px;
    bottom: -300px;
    border-radius: 50px;
    background: radial-gradient(circle at 50% 0%, #ff00008f, transparent 65%);
    filter: blur(50px);
    opacity: 0.7;
    pointer-events: none;
    z-index: 0;
}

.carousel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1000px;
    margin: 25px auto;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid #333;
    background: #181818;
    aspect-ratio: 16/9;
    max-height: 450px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}
.carousel-item {
    min-width: 100%;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}
.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}
.carousel-item .caption {
    position: absolute;
    bottom: 10px;
    left: 20px;
    color: #fff;
    background-color: rgba(0,0,0,0.55);
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 1.2em;
    text-shadow: 0 2px 8px #000;
    transition: bottom 0.35s ease, transform 0.35s ease;
    transform: translateY(0);
    display: inline-block;
    max-width: calc(100% - 40px);
    white-space: normal;
}
.carousel:hover .carousel-item .caption {
    bottom: 54px;
    transform: translateY(-4px);
}
.carousel-item video {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}
.carousel-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    display: flex;
    gap: 10px;
    z-index: 2;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}
.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: black;
    border: 2px solid white;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.25s ease;
}
.carousel-dot.active {
    background-color: red;
}
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) scale(0.85);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 999px;
    color: white;
    font-size: 24px;
    padding: 10px;
    cursor: pointer;
    z-index: 2;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, background 0.3s, visibility 0.25s ease;
}
.carousel-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
}
.carousel-arrow-prev {
    left: 10px;
}
.carousel-arrow-next {
    right: 10px;
}
.carousel.show-controls .carousel-indicators {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
.carousel.show-controls .carousel-arrow {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(-50%) scale(1);
}
.carousel.show-controls .carousel-arrow-prev {
    transform: translateY(-50%) translateX(0) scale(1);
}
.carousel.show-controls .carousel-arrow-next {
    transform: translateY(-50%) translateX(0) scale(1);
}
.description, .section, .collaboration {
    max-width: 1000px;
    margin: 20px auto;
    font-size: 1.2em;
    color: #ccc;
    text-align: center;
    padding: 0 10px;
    box-sizing: border-box;
    scroll-margin-top: 60px;
}
.games-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}
.game-card {
    position: relative;
    overflow: hidden;
    background-color: rgba(26, 26, 26, 0.3);
    backdrop-filter: blur(5px) saturate(180%);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 20px;
    width: 250px;

    display: flex;
    flex-direction: column;

    color: #ccc;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s, backdrop-filter 0.3s;
}
.game-card::before,
.game-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}
.game-card::after {
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.game-card::before {
    background-image: var(--card-bg, none);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.game-card:hover {
    background-color: rgba(23, 23, 23, 0.7);
    backdrop-filter: blur(10px) saturate(180%);
    transform: translateY(-5px);
    box-shadow: 0 0 10px #ff2b2b;
}
.game-card:hover::before,
.game-card:hover::after {
    opacity: 1;
}
.game-card > * {
    position: relative;
    z-index: 1;
}
.game-card h3 {
    color: #ff2b2b;
}
.card-link {
    margin-top: auto;
    color: #ff2b2b;
    font-weight: bold;
    transition: color 0.3s;
}
.game-card:hover .card-link {
    color: #d40000;
}

footer {
    margin-top: 40px;
    font-size: 0.9em;
    color: #666;
    width: 100%;
    text-align: center;
    padding: 10px 0;
}
.collaboration {
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px;
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
}
.collaboration h2 {
    text-align: start;
    color: #ff2b2b;
    margin-bottom: 15px;
}
.collaboration p {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #ccc;
}
.collabutton a {
    display: inline-block;
    background-color: #ff2b2b;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}
.collabutton a:hover {
    background-color: #d40000;
}
.info a {
    display: inline;
    background-color: transparent;
    color: #ff2b2b;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
    position: relative;
    top: 10px;
}
.info a:hover {
    display: inline;
    color: #d40000;
}
p {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    max-width: 800px;
    text-align: center;
    margin-bottom: 20px;
}

header img {
    width: 150px;
    margin-top: 20px;
}
h1 {
    color: #ff2b2b;
    margin: 10px 0;
    font-size: 2.5em;
    text-align: center;
}

.button {
    background-color: #ff2b2b;
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 1em;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.3s;
}
.button:hover {
    background-color: #d40000;
    transform: scale(1.05);
}

@media (max-width: 900px) {
    .carousel {
        max-width: 98vw;
        min-height: 160px;
    }
    .description, .section, .collaboration {
        max-width: 98vw;
        padding: 10px;
    }
}
@media (max-width: 600px) {
    nav {
        padding: 0 6px;
        height: 44px;
    }

    nav .logo img {
        width: 32px;
    }

    nav .logo span {
        font-size: 1em;
    }


    .nav-right {
        width: 180px;
        padding: 6px 4px;
        top: 44px;
    }

    nav ul li a {
        width: 100%;
        padding: 8px 0;
        font-size: 0.95em;
    }

    .carousel {
        border-radius: 0;
        min-height: 100px;
    }

    .game-card {
        width: 98vw;
        padding: 10px;
    }
}

.collab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.online-counter {
    display: flex;
    align-items: end;
    gap: 5px;
    font-weight: bold;
    color: #ff0000;
    margin-top: 10px;
    font-size: 1.2em;
}



.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #ff2b2b;
    transform: translateX(-50%);
}
.timeline-item {
    position: relative;
    margin: 20px 0;
    width: 50%;
    padding: 0 20px;
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}
.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}
.timeline-item:nth-child(odd) {
    text-align: right;
}
.timeline-item::before {
    content: '';
    position: absolute;
    top: 10px;
    width: 12px;
    height: 12px;
    background: #ff2b2b;
    border-radius: 50%;
    border: 2px solid #0d0d0d;
    z-index: 1;
}
.timeline-item:nth-child(even)::before {
    left: -26px;
}
.timeline-item:nth-child(odd)::before {
    right: -26px;
}
.timeline-date {
    font-weight: bold;
    color: #ff2b2b;
    margin-bottom: 5px;
}
.timeline-content {
    background: #1a1a1a;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #333;
}
.timeline-content p {
    margin: 0;
    color: #ccc;
}

.see-more {
    text-align: center;
    margin-top: 20px;
}
.see-more a {
    display: inline-block;
    background-color: #ff2b2b;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}
.see-more a:hover {
    background-color: #d40000;
}






.slider {
    display: flex;
    height: 80vh;
    align-items: stretch;
    overflow: hidden;
}

.panel {
    flex: 1;
    position: relative;
    cursor: pointer;

    margin-left: -80px;

    transition: flex 0.8s cubic-bezier(0.77, 0, 0.175, 1);

    clip-path: polygon(80px 0, 100% 0, calc(100% - 80px) 100%, 0% 100%);

    user-select: none;
    will-change: transform;
    backface-visibility: hidden;
}

.panel:first-child {
    margin-left: 0;
    clip-path: polygon(0 0, 100% 0, calc(100% - 80px) 100%, 0% 100%);
}

.panel:last-child {
    clip-path: polygon(80px 0, 100% 0, 100% 100%, 0% 100%);
}

.panel:first-child,
.panel:last-child {
    flex: 0.7;
}

.panel__text {
    position: absolute;
    text-align: center;
    bottom: 10%;
    left: calc(50% - 32px);
    transform: translateX(-50%);
    z-index: 2;
    color: #fff;
    white-space: nowrap;
    font-size: 50px;
    font-family: 'Sekuya', sans-serif;
    text-shadow: -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000, 2px 2px 0 #000;
}

.panel:first-child .panel__text {
    left: calc(50% - 36px);
    transform: translateX(-50%);
}

.panel:last-child .panel__text {
    left: calc(50% + 4px);
    transform: translateX(-50%);
}

.panel__text h2 {
    font-family: 'Sekuya', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: clamp(0.5rem, 3.5vw, 2.5rem);
    max-width: fit-content;
    box-sizing: border-box;
    transform: translateY(15px) scale(0.85);
    text-align: center;
    opacity: 0;
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0s, opacity 0.5s ease 0s;
    display: block;
    text-shadow: -2px -2px 0 #000, 2px -2px 0 #000, -2px  2px 0 #000, 2px  2px 0 #000;
}

.panel:hover .panel__text h2 {
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.4s, opacity 0.5s ease 0.4s;
    transform: translateY(0) scale(1);
    opacity: 1;
}

.panel img {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 100%;
    width: auto;
    min-width: 100%;
    pointer-events: none;
    z-index: 0;
}

.panel__overlay {
    position: absolute;
    inset: 0;
    background: #0008;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.slider:hover .panel__overlay {
    opacity: 0.8;
}

.slider:hover .panel:hover .panel__overlay {
    opacity: 0;
}

.panel:hover {
    flex: 1.6;
    z-index: 10;
}

.panel {
    outline: 1px solid transparent;
}

@keyframes linea-sube {
    0% {clip-path: polygon(calc(100% - 87px) 100%, calc(100% - 80px) 100%, calc(100% - 80px) 100%, calc(100% - 87px) 100%);}
    25%, 30% {clip-path: polygon(calc(100% - 7px) 0, 100% 0, calc(100% - 80px) 100%, calc(100% - 87px) 100%);}
    50%, 55% {clip-path: polygon(80px 0, 87px 0, 7px 100%, 0% 100%);}
    100% {clip-path: polygon(80px 0, 100% 0, calc(100% - 80px) 100%, 0% 100%);}
}
@keyframes caer {
    0% { transform: translateY(-160vh) translateX(160px); }
    80% { transform: translateY(30vh) translateX(-30px); }
    100% { transform: translateY(0) translateX(0); }
}

@media (min-width: 600px) and (max-width: 900px) {
    .slider {
        height: 60vh
    }

    @keyframes caer {
        0% { transform: translateY(-120vh) translateX(160px); }
        80% { transform: translateY(22.5vh) translateX(-30px); }
        100% { transform: translateY(0) translateX(0); }
    }
}

@media (max-width: 600px) {
    .slider {
        height: 40vh
    }

    @keyframes caer {
        0% { transform: translateY(-80vh) translateX(160px); }
        80% { transform: translateY(15vh) translateX(-30px); }
        100% { transform: translateY(0) translateX(0); }
    }
}

.sekuya-regular {
    font-family: "Sekuya", system-ui;
    font-weight: 400;
    font-style: normal;
}