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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
        url('https://images.unsplash.com/photo-1524985069026-dd778a71c7b4?auto=format&fit=crop&w=1600&q=80') no-repeat center center/cover;
    color: white;
    overflow-x: hidden;
    /* ✅ cegah scroll horizontal */
    overflow-y: auto;
}

.container {
    text-align: center;
    max-width: 800px;
    animation: fadeIn 1.2s ease-out;
}

h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px black;
    animation: slideDown 1.5s ease-out;
}

p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #ddd;
    opacity: 0;
    animation: fadeIn 2s ease forwards;
    animation-delay: 0.5s;
}

.buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.btn {
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    font-size: 1.5rem;
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    cursor: pointer;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease forwards;
    will-change: transform, opacity;
}

.btn:nth-child(1) {
    animation-delay: 0.6s;
}

.btn:nth-child(2) {
    animation-delay: 0.8s;
}

.btn:nth-child(3) {
    animation-delay: 1s;
}

.btn:nth-child(4) {
    animation-delay: 1.2s;
}

.btn:nth-child(5) {
    animation-delay: 1.4s;
}

.btn:hover,
.btn:focus {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
    outline: none;
}

.btn.indonesia {
    grid-column: span 2;
    justify-self: center;
    width: 100%;
    max-width: 400px;
}

/* Responsif HP */
@media (max-width: 600px) {
    .buttons {
        grid-template-columns: 1fr;
    }

    .btn.indonesia {
        max-width: 100%;
        grid-column: auto;
    }

    h1 {
        font-size: 2rem;
    }

    p {
        font-size: 1rem;
    }

    .btn {
        padding: 20px;
        font-size: 1.2rem;
    }

    .telegram-btn {
        font-size: 1rem;
        padding: 12px 20px;
    }

    .telegram-btn img {
        width: 22px;
        height: 22px;
    }
}

.flag-icon {
    width: 24px;
    height: 18px;
    vertical-align: middle;
    margin-right: 8px;
    border: 1px solid #fff;
    border-radius: 3px;
}

/* Telegram Section */
.telegram-section {
    margin-top: 50px;
    text-align: center;
}

.telegram-section .note {
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.telegram-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #229ED9;
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    transition: all 0.3s ease;
    position: relative;
}

/* Tooltip (desktop only) */
.telegram-btn::after {
    content: "Khusus Akses Aplikasi Android & PC Desktop saja Tidak bisa Play via Telegram Web";
    position: absolute;
    top: -45px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    white-space: nowrap;
    /* ✅ satu baris */
    max-width: none;
    /* ✅ tidak dipotong */
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    z-index: 9999;
}

.telegram-btn::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.85) transparent transparent transparent;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.telegram-btn:hover::after,
.telegram-btn:focus::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.telegram-btn:hover::before,
.telegram-btn:focus::before {
    opacity: 1;
}

.telegram-btn img {
    width: 28px;
    height: 28px;
}

.telegram-btn:hover,
.telegram-btn:focus {
    background: #1b8cbf;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(34, 158, 217, 0.7);
    outline: none;
}

/* ❌ Sembunyikan tooltip di mobile (≤768px) */
@media (max-width: 768px) {

    .telegram-btn::after,
    .telegram-btn::before {
        display: none;
        content: none;
    }
}

/* Animasi */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

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

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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