* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    font-family: Tahoma, Arial, sans-serif;
    background: url("assets/bg.png?v=20260604") center / cover no-repeat;
    color: #fff;
    overflow: hidden;
}

.overlay {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at center, rgba(70, 35, 10, 0.12), rgba(0, 0, 0, 0.72)),
        rgba(0, 0, 0, 0.42);
    z-index: 0;
}

.container {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 26px;
    padding: 20px;
    text-align: center;
    animation: pageEnter 0.8s ease-out both;
}

.logo-box h1 {
    position: relative;
    font-size: 120px;
    line-height: 0.95;
    font-weight: 900;
    letter-spacing: 2px;
    color: #ffd35a;

    text-shadow:
        4px 4px 0 #5a2a12,
        -3px -3px 0 #7a3514,
        0 4px 0 #2a1206,
        0 0 12px rgba(255, 210, 90, 0.9),
        0 0 28px rgba(255, 140, 30, 0.8);

    margin-bottom: 12px;

    animation:
        titleFloat 3s ease-in-out infinite,
        titleGlow 2.2s ease-in-out infinite alternate;
}

.logo-box h1::after {
    content: "";
    position: absolute;
    left: 8%;
    right: 8%;
    bottom: -10px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 230, 120, 0.95),
            transparent);
    filter: blur(1px);
    animation: titleSlash 2.4s ease-in-out infinite;
}

.logo-box p {
    font-size: 16px;
    color: #f3e1c0;
    text-shadow: 1px 1px 2px #000;
    animation: softBlink 2.8s ease-in-out infinite;
}


.community-btn,
.trial-btn,
.download-btn {
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: #fff7d6;
    font-weight: bold;
    border: 2px solid #d8a35d;
    background: linear-gradient(#9a4c21, #4a210d);
    box-shadow:
        0 4px 0 #2a1206,
        0 0 10px rgba(255, 190, 80, 0.35);
    transition: 0.15s;
}

.community-btn {
    padding: 14px 42px;
    border-radius: 12px;
    font-size: 20px;
    animation: buttonBreath 2.4s ease-in-out infinite;
}

.trial-btn {
    min-width: 260px;
    padding: 14px 42px;
    border-radius: 12px;
    font-size: 20px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;

    animation: buttonBreath 2.4s ease-in-out infinite;
}

.download-row {
    display: flex;
    gap: 14px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.hidden {
    display: none !important;
}

.show-download-row {
    animation: downloadGroupEnter 0.28s ease-out both;
}

.download-btn {
    min-width: 130px;
    padding: 13px 20px;
    border-radius: 10px;
    font-size: 17px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;

    animation: buttonEnter 0.7s ease-out both;
}

.download-btn:nth-child(1) {
    animation-delay: 0.1s;
}

.download-btn:nth-child(2) {
    animation-delay: 0.2s;
}

.download-btn:nth-child(3) {
    animation-delay: 0.3s;
}

.download-btn:nth-child(4) {
    animation-delay: 0.4s;
}

.community-btn::before,
.trial-btn::before,
.download-btn::before {
    content: "";
    position: absolute;
    top: -40%;
    left: -80%;
    width: 45%;
    height: 180%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 244, 180, 0.45),
            transparent);
    transform: rotate(25deg);
    animation: buttonShine 3.2s ease-in-out infinite;
}

.community-btn:hover,
.trial-btn:hover,
.download-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.18);
}

.download-btn:hover {
    animation: buttonHoverShake 0.28s linear infinite;
}

.community-btn:active,
.trial-btn:active,
.download-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #2a1206;
}

.btn-icon {
    font-size: 22px;
    line-height: 1;
    animation: iconBounce 1.8s ease-in-out infinite;
}


.download-popup-mask {
    position: fixed;
    inset: 0;
    z-index: 20;
    background: rgba(0, 0, 0, 0.62);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: 0.18s ease;
}

.download-popup-mask.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.download-popup {
    position: fixed;
    left: 50%;
    top: 50%;
    z-index: 21;

    width: 320px;
    max-width: calc(100vw - 32px);

    padding: 18px 14px 14px;
    border-radius: 14px;
    border: 2px solid #d8a35d;

    background:
        linear-gradient(rgba(135, 62, 24, 0.98), rgba(48, 22, 9, 0.99));

    box-shadow:
        0 5px 0 #2a1206,
        0 0 22px rgba(255, 180, 70, 0.55),
        inset 0 0 18px rgba(255, 210, 90, 0.12);

    transform: translate(-50%, -50%) scale(0.86);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: 0.2s ease;
}

.download-popup.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    animation: popupPulse 0.28s ease-out;
}

.download-popup h2 {
    color: #ffd35a;
    font-size: 22px;
    margin-bottom: 14px;
    text-shadow:
        2px 2px 0 #5a2a12,
        0 0 10px rgba(255, 210, 90, 0.8);
}

.popup-close-btn {
    position: absolute;
    right: -10px;
    top: -10px;

    width: 32px;
    height: 32px;
    border-radius: 50%;

    border: 2px solid #ffd35a;
    background: linear-gradient(#b43a1b, #5c1409);
    color: #fff7d6;

    font-size: 24px;
    font-weight: bold;
    line-height: 26px;
    cursor: pointer;

    box-shadow:
        0 3px 0 #2a1206,
        0 0 10px rgba(255, 80, 40, 0.45);
}

.popup-close-btn:hover {
    filter: brightness(1.18);
    transform: translateY(-1px);
}

.popup-download-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.popup-download-list a {
    display: block;

    padding: 12px 10px;
    border-radius: 9px;

    color: #fff7d6;
    text-decoration: none;
    font-size: 15px;
    font-weight: bold;

    background: linear-gradient(#8b451f, #3b1909);
    border: 1px solid rgba(255, 213, 120, 0.65);

    box-shadow:
        0 3px 0 #2a1206,
        inset 0 0 8px rgba(255, 210, 90, 0.12);

    transition: 0.15s;
}

.popup-download-list a:hover {
    transform: translateY(-2px);
    filter: brightness(1.18);
    box-shadow:
        0 4px 0 #2a1206,
        0 0 10px rgba(255, 190, 70, 0.35),
        inset 0 0 8px rgba(255, 210, 90, 0.18);
}

.popup-download-list a:active {
    transform: translateY(1px);
    box-shadow: 0 1px 0 #2a1206;
}


.fog {
    position: fixed;
    left: -20%;
    width: 140%;
    height: 160px;
    pointer-events: none;
    z-index: 1;
    opacity: 0.18;
    filter: blur(18px);
    background: radial-gradient(ellipse at center,
            rgba(255, 220, 130, 0.35),
            rgba(255, 220, 130, 0.08) 45%,
            transparent 70%);
}

.fog-1 {
    top: 16%;
    animation: fogMoveLeft 18s linear infinite;
}

.fog-2 {
    bottom: 12%;
    animation: fogMoveRight 22s linear infinite;
}

.particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.particles span {
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 210, 90, 0.9);
    box-shadow:
        0 0 8px rgba(255, 210, 90, 0.9),
        0 0 16px rgba(255, 120, 30, 0.6);
    animation: particleFly 7s linear infinite;
}

.particles span:nth-child(1) {
    left: 12%;
    animation-delay: 0s;
    animation-duration: 7s;
}

.particles span:nth-child(2) {
    left: 28%;
    animation-delay: 1.4s;
    animation-duration: 9s;
}

.particles span:nth-child(3) {
    left: 46%;
    animation-delay: 2.2s;
    animation-duration: 8s;
}

.particles span:nth-child(4) {
    left: 63%;
    animation-delay: 0.8s;
    animation-duration: 10s;
}

.particles span:nth-child(5) {
    left: 78%;
    animation-delay: 2.8s;
    animation-duration: 8.5s;
}

.particles span:nth-child(6) {
    left: 90%;
    animation-delay: 1.8s;
    animation-duration: 11s;
}

@keyframes downloadGroupEnter {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.94);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes pageEnter {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(18px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes titleFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

@keyframes titleGlow {
    from {
        text-shadow:
            4px 4px 0 #5a2a12,
            -3px -3px 0 #7a3514,
            0 4px 0 #2a1206,
            0 0 12px rgba(255, 210, 90, 0.75),
            0 0 26px rgba(255, 140, 30, 0.55);
    }

    to {
        text-shadow:
            4px 4px 0 #5a2a12,
            -3px -3px 0 #7a3514,
            0 4px 0 #2a1206,
            0 0 20px rgba(255, 230, 120, 1),
            0 0 42px rgba(255, 110, 20, 0.9);
    }
}

@keyframes titleSlash {

    0%,
    100% {
        opacity: 0.35;
        transform: scaleX(0.65);
    }

    50% {
        opacity: 1;
        transform: scaleX(1);
    }
}

@keyframes softBlink {

    0%,
    100% {
        opacity: 0.78;
    }

    50% {
        opacity: 1;
    }
}

@keyframes buttonBreath {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-2px) scale(1.03);
    }
}

@keyframes buttonEnter {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes buttonShine {
    0% {
        left: -90%;
    }

    45%,
    100% {
        left: 140%;
    }
}

@keyframes buttonHoverShake {

    0%,
    100% {
        transform: translateY(-2px) rotate(0deg);
    }

    25% {
        transform: translateY(-2px) rotate(-1deg);
    }

    75% {
        transform: translateY(-2px) rotate(1deg);
    }
}

@keyframes iconBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

@keyframes popupPulse {
    0% {
        transform: translate(-50%, -50%) scale(0.78);
    }

    70% {
        transform: translate(-50%, -50%) scale(1.04);
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes fogMoveLeft {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-18%);
    }
}

@keyframes fogMoveRight {
    from {
        transform: translateX(-18%);
    }

    to {
        transform: translateX(0);
    }
}

@keyframes particleFly {
    0% {
        bottom: -20px;
        opacity: 0;
        transform: translateX(0) scale(0.7);
    }

    12% {
        opacity: 1;
    }

    70% {
        opacity: 0.85;
    }

    100% {
        bottom: 110%;
        opacity: 0;
        transform: translateX(45px) scale(1.2);
    }
}


@media (max-width: 900px) {
    .logo-box h1 {
        font-size: 76px;
    }
}

@media (max-width: 600px) {
    body {
        overflow: hidden;
    }

    .container {
        min-height: 100vh;
        justify-content: center;
        align-items: center;
        gap: 10px;
        padding: 16px 14px;
    }

    .logo-box {
        margin-bottom: 0;
    }

    .logo-box h1 {
        font-size: 40px;
        line-height: 0.95;
        letter-spacing: 1px;
        margin-bottom: 6px;
        text-shadow:
            2px 2px 0 #5a2a12,
            -1px -1px 0 #7a3514,
            0 2px 0 #2a1206,
            0 0 10px rgba(255, 210, 90, 0.8);
    }

    .logo-box p {
        font-size: 11px;
        line-height: 1.3;
        max-width: 220px;
        margin: 0 auto;
    }

    .community-btn {
        width: 100%;
        max-width: 260px;
        padding: 11px 14px;
        font-size: 17px;
        border-radius: 10px;
    }

    .download-row {
        width: 100%;
        max-width: 260px;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .hidden {
        display: none !important;
    }

    .show-download-row {
        animation: downloadGroupEnter 0.28s ease-out both;
    }

    .download-btn {
        width: 100%;
        min-width: 0;
        padding: 10px 14px;
        font-size: 14px;
        border-radius: 10px;
    }

    .btn-icon {
        font-size: 16px;
    }

    .download-popup {
        width: 280px;
        max-width: calc(100vw - 24px);
        padding: 16px 12px 12px;
    }

    .download-popup h2 {
        font-size: 19px;
    }

    .popup-download-list a {
        font-size: 14px;
        padding: 10px 8px;
    }
}