* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Fredoka', sans-serif;
    user-select: none;
    -webkit-user-drag: none;
}

img {
    pointer-events: none;
}

html, body {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background: radial-gradient(circle at 30% 20%, #17171b 0%, #0a0a0c 70%);
}

body {
    --pad-x: clamp(20px, 4vw, 50px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(16px, 3vh, 32px) var(--pad-x);
    position: relative;
}

.bg-shade {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: radial-gradient(ellipse at 70% 30%, rgba(20, 20, 25, 0.4) 0%, rgba(5, 5, 8, 0.85) 100%);
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: clamp(240px, 28vw, 360px);
    margin-bottom: auto;
}

.logo-container img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0px 8px 20px rgba(0,0,0,0.6));
}

.layout {
    display: flex;
    flex: 1;
    min-height: 0;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: clamp(20px, 4vw, 50px);
}

.left-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    height: 100%;
    padding-bottom: clamp(10px, 2vh, 20px);
    padding-top: clamp(10px, 2vh, 20px);
}

.right-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    width: clamp(300px, 42vw, 480px);
    flex-shrink: 0;
    margin-bottom: auto;
    margin-top: auto;
}

.menu-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.menu-row {
    display: flex;
    gap: 14px;
    width: 100%;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(30, 30, 36, 0.85), rgba(15, 15, 18, 0.9));
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    box-shadow: -6px 8px 20px rgba(0, 0, 0, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.15);
    transform: skewX(-12deg);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.btn span {
    display: inline-block;
    transform: skewX(12deg);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.btn-play {
    height: clamp(65px, 11vh, 85px);
    font-size: clamp(1.6rem, 2.8vw, 2.4rem);
    background: linear-gradient(135deg, rgba(45, 45, 55, 0.95), rgba(20, 20, 26, 0.95));
    border-color: rgba(255, 255, 255, 0.25);
}

.btn-play span {
    color: #ffffff;
}

.btn-play::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 80%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transform: skewX(-12deg);
    animation: shine 8s infinite ease-in-out;
}

@keyframes shine {
    0% { left: -150%; }
    15% { left: 150%; }
    100% { left: 150%; }
}

.btn-canciones {
    height: clamp(52px, 8vh, 68px);
    font-size: clamp(0.95rem, 1.4vw, 1.25rem);
    flex: 1.2;
}

.btn-perfil {
    height: clamp(52px, 8vh, 68px);
    font-size: clamp(0.95rem, 1.4vw, 1.25rem);
    flex: 0.8;
}

.btn-ajustes {
    height: clamp(48px, 7vh, 62px);
    font-size: clamp(0.9rem, 1.3vw, 1.15rem);
}

.btn:hover {
    background: linear-gradient(135deg, rgba(50, 50, 62, 0.95), rgba(25, 25, 32, 0.95));
    border-color: rgba(255, 255, 255, 0.4);
    transform: skewX(-12deg) translateY(-3px);
    box-shadow: -8px 12px 25px rgba(0, 0, 0, 0.6), inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

.btn-play:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(210, 210, 220, 0.95));
    border-color: #ffffff;
    transform: skewX(-12deg) translateY(-3px);
    box-shadow: -8px 12px 28px rgba(255, 255, 255, 0.2);
}

.btn-play:hover span {
    color: #121214;
    text-shadow: none;
}

.btn.bounce-active {
    animation: smoothBounce 0.4s ease-out;
}

@keyframes smoothBounce {
    0% { transform: skewX(-12deg) scale(1); }
    50% { transform: skewX(-12deg) scale(1.04); }
    100% { transform: skewX(-12deg) scale(1); }
}

.rhombus-menu {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: flex-start;
    margin-top: auto;
}

.rhombus-btn {
    width: clamp(48px, 4.2vw, 56px);
    height: clamp(48px, 4.2vw, 56px);
    cursor: pointer;
    background: rgba(30, 30, 36, 0.75);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    transform: rotate(45deg);
    box-shadow: -4px 6px 16px rgba(0, 0, 0, 0.4);
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.4s ease, transform 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(60px) rotate(45deg);
    text-decoration: none;
}

.rhombus-btn.entrance-active {
    opacity: 1;
    transform: translateY(0) rotate(45deg);
}

.rhombus-btn svg {
    width: 22px;
    height: 22px;
    fill: #ffffff;
    transform: rotate(-45deg);
    transition: fill 0.2s ease, transform 0.2s ease;
}

.rhombus-btn img {
    width: 26px;
    height: 26px;
    transform: rotate(-45deg);
    transition: transform 0.2s ease;
}

.rhombus-btn:hover {
    background: rgba(50, 50, 62, 0.9);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: -6px 8px 20px rgba(0, 0, 0, 0.5);
    transform: translateY(-3px) rotate(45deg);
}

.rhombus-btn:hover svg {
    fill: #ffffff;
}

.rhombus-btn.entrance-active:active {
    transform: translateY(0) rotate(45deg) scale(0.95);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: #141416;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 24px;
    width: 100%;
    max-width: 540px;
    padding: 30px 24px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
    color: #ffffff;
    text-align: center;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    color: #ffffff;
    transition: background 0.15s ease, border-color 0.15s ease;
    z-index: 10;
}

.modal-close:hover {
    background: #ff3366;
    border-color: #ff3366;
}

.modal-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #ffffff;
}

.modal-desc {
    font-size: 0.92rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 22px;
}

.modal-desc b {
    color: #ffffff;
    font-weight: 700;
}

.modal-desc b a {
    color: #ffffff;
    text-decoration: underline;
}

.keys-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
}

.key-box {
    width: 52px;
    height: 52px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: background 0.08s ease, border-color 0.08s ease, box-shadow 0.08s ease, transform 0.08s ease;
}

.key-box.active-key {
    border-color: #00ff66;
    box-shadow: 0 0 18px rgba(0, 255, 102, 0.6);
    background: rgba(0, 255, 102, 0.18);
    transform: translateY(2px);
}

.gif-container {
    position: absolute;
    bottom: 15px;
    left: 20px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gif-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: patrol 4s infinite linear;
}

@keyframes patrol {
    0% { transform: translateX(0) scaleX(1); }
    45% { transform: translateX(25px) scaleX(1); }
    50% { transform: translateX(25px) scaleX(-1); }
    95% { transform: translateX(0) scaleX(-1); }
    100% { transform: translateX(0) scaleX(1); }
}

.modal-card-large {
    width: min(680px, 100%);
    max-height: 85vh;
    max-height: 85dvh;
    overflow-y: auto;
    text-align: left;
    padding: 30px 24px;
    scrollbar-width: none;
}

.modal-card-large::-webkit-scrollbar {
    display: none;
}

.version-banner {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 24px;
}

.version-banner img {
    max-width: 100%;
    aspect-ratio: 1608 / 708;
    object-fit: contain;
    height: auto;
    max-height: 180px;
}

.info-group {
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px;
}

.info-group h3 {
    font-size: 1.05rem;
    color: #ffffff;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.devs-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}

.dev-avatar {
    height: clamp(32px, 5vw, 48px);
    width: auto;
    object-fit: contain;
    border: none;
    border-radius: 0;
    box-shadow: none;
    filter: drop-shadow(0px 4px 8px rgba(0, 0, 0, 0.4));
}

.dev-avatar[src*="dinzadv.png"] {
    aspect-ratio: 1046 / 333;
}

.dev-avatar[src*="foxy_tp.png"] {
    aspect-ratio: 1033 / 401;
}

.dot-separator {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.4rem;
    font-weight: bold;
}

.simple-text {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
}

.links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.links-list a {
    color: #3b82f6;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease, text-decoration 0.2s ease;
    word-break: break-all;
}

.links-list a:hover {
    color: #60a5fa;
    text-decoration: underline;
}

.legal-section {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 24px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 16px;
}

.game-data {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.75);
}

.game-data strong {
    color: #ffffff;
}

.legal-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.legal-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.legal-links a:hover {
    color: #3b82f6;
}

.legal-links .arrow {
    color: #3b82f6;
    font-weight: bold;
}

.btn-ok {
    display: block;
    width: 130px;
    height: 44px;
    margin: 22px auto 0 auto;
    background: #ffffff;
    color: #141416;
    border: none;
    border-radius: 100px;
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.15);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-ok:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(255, 255, 255, 0.25);
}

.btn-ok:active {
    transform: translateY(0);
}

.toast-notification {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(20, 20, 22, 0.92);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 100px;
    color: #ffffff;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
    z-index: 2000;
    transition: top 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.2s ease;
    opacity: 0;
    pointer-events: none;
    width: 90%;
    max-width: 360px;
    justify-content: center;
}

.toast-notification.active {
    top: 24px;
    opacity: 1;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast-text {
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bell-icon {
    width: 20px;
    height: 20px;
    fill: #ffffff;
    animation: ringBell 0.5s ease-in-out infinite alternate;
    flex-shrink: 0;
}

@keyframes ringBell {
    0% { transform: rotate(-15deg); }
    100% { transform: rotate(15deg); }
}

@media (max-width: 768px) {
    body {
        padding: 16px;
    }
    
    .layout {
        flex-direction: column;
        justify-content: flex-end;
        align-items: center;
        gap: 20px;
    }

    .left-section {
        width: 100%;
        justify-content: center;
        align-items: center;
        padding-bottom: 0;
        order: 2;
    }

    .right-section {
        width: 100%;
        max-width: 380px;
        order: 1;
        margin-top: 0;
    }

    .logo-container {
        max-width: 180px;
        justify-content: center;
        margin-bottom: 16px;
    }

    .rhombus-menu {
        justify-content: center;
        gap: 12px;
    }

    .btn {
        transform: skewX(-8deg);
    }

    .btn span {
        transform: skewX(8deg);
    }

    .btn:hover, .btn-play:hover {
        transform: skewX(-8deg) translateY(-2px);
    }

    .legal-section {
        flex-direction: column;
        gap: 16px;
    }

    .legal-links {
        align-items: flex-start;
    }

    @keyframes smoothBounce {
        0% { transform: skewX(-8deg) scale(1); }
        50% { transform: skewX(-8deg) scale(1.04); }
        100% { transform: skewX(-8deg) scale(1); }
    }
}
