*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    width: 100%;
    height: 100%;
    background: #111;
    overflow: hidden;
    font-family: 'Figtree', sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* ── PHONE SHELL ── */
.phone-shell {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0d0d0d;
}

.phone-frame {
    width: 390px;
    height: 844px;
    position: relative;
    overflow: hidden;
    border-radius: 50px;
    box-shadow: 0 0 0 10px #1a0a0a, 0 0 0 12px #2a1010, 0 50px 120px rgba(0, 0, 0, 0.95);
}

@media (max-width: 480px) {
    .phone-shell {
        background: #5a0302;
    }

    .phone-frame {
        width: 100vw;
        height: 100dvh;
        border-radius: 0;
        box-shadow: none;
    }
}

/* ── SCREEN CONTAINER ── */
.screen {
    position: absolute;
    inset: 0;
    transition: opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1), transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

.screen.hidden {
    opacity: 0;
    transform: translateY(28px);
    pointer-events: none;
    visibility: hidden;
}

.screen.out {
    opacity: 0;
    transform: scale(1.05);
    pointer-events: none;
}

.screen.active {
    opacity: 1;
    transform: none;
    visibility: visible;
}

/* ═══════════════════════════════════════
   SPLASH SCREEN
═══════════════════════════════════════ */
#splash {
    width: 100%;
    height: 100%;
    background: #5a0302;
    overflow: hidden;
}

.sp-bg-texture {
    position: absolute;
    top: -20%;
    left: 0;
    width: 100%;
    height: 120%;
    object-fit: cover;
    opacity: 0.35;
    mix-blend-mode: multiply;
    pointer-events: none;
}

.sp-glow {
    position: absolute;
    left: -62px;
    top: 293px;
    width: 684px;
    height: 848px;
    background: radial-gradient(ellipse at center, rgba(160, 40, 20, 0.55) 0%, rgba(90, 3, 2, 0.2) 45%, transparent 70%);
    pointer-events: none;
}

.sp-logo-shadow {
    position: absolute;
    left: 55px;
    top: 509px;
    width: 280px;
    height: 124px;
    background: #4b0000;
    border-radius: 58px;
    filter: blur(37px);
    pointer-events: none;
}

.sp-deco {
    position: absolute;
    pointer-events: none;
}

.sp-koi-logo {
    position: absolute;
    left: 35px;
    top: 104px;
    width: 320px;
    height: 320px;
    object-fit: contain;
    pointer-events: none;
    animation: sp-logo-in 1s ease both, sp-float 4s ease-in-out 1.2s infinite;
}

@keyframes sp-logo-in {
    from {
        opacity: 0;
        transform: scale(0.88) translateY(14px);
    }

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

@keyframes sp-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-7px);
    }
}

.sp-text {
    position: absolute;
    left: 0;
    right: 0;
    top: 448px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    animation: sp-up 0.7s ease 0.35s both;
}

.sp-name {
    font-family: 'Figtree', sans-serif;
    font-weight: 600;
    font-size: 27px;
    line-height: 39px;
    color: #fff;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.sp-loc {
    font-size: 14px;
    line-height: 1;
    color: rgba(255, 255, 255, 0.52);
}

.sp-cta {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 537px;
    width: 215px;
    height: 68px;
    background: #fff;
    border-radius: 70px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 30px 18px 24px;
    cursor: pointer;
    animation: sp-up-center 0.7s ease 0.55s both;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.sp-cta:active {
    transform: translateX(-50%) scale(0.96);
}

.sp-cta img {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.sp-cta span {
    font-family: 'Figtree', sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: #000;
    white-space: nowrap;
}

.sp-footer {
    position: absolute;
    bottom: 51px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 93px;
    animation: sp-up-center 0.7s ease 0.8s both;
}

.sp-powered {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 13px;
    width: 81px;
}

.sp-powered-label {
    font-size: 12px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.48);
    text-align: center;
}

.sp-tapqr {
    font-family: 'Allan', cursive;
    font-size: 38.51px;
    color: #fff;
    line-height: 1;
    white-space: nowrap;
}

.sp-tapqr .p {
    letter-spacing: 1.44px;
}

.sp-tapqr .Q {
    font-weight: 700;
}

.sp-tapqr .R {
    font-weight: 700;
    letter-spacing: -5.12px;
}

.sp-website {
    font-size: 13px;
    line-height: 18px;
    color: #fff;
    text-align: center;
    white-space: nowrap;
}

@keyframes sp-up {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

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

@keyframes sp-up-center {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.sp-deco-orn {
    animation: sp-pulse 4s ease-in-out infinite alternate;
    transform-origin: center;
}

.sp-deco-flower1 {
    animation: sp-rotate 15s linear infinite;
    transform-origin: center;
}

.sp-deco-flower2 {
    animation: sp-rotate 10s linear infinite reverse;
    transform-origin: center;
}

.sp-deco-dot1 {
    animation: sp-float-dot 3s ease-in-out infinite alternate;
}

.sp-deco-dot2 {
    animation: sp-float-dot 2.5s ease-in-out infinite alternate 1s;
}

.sp-deco-dot3 {
    animation: sp-float-dot 4s ease-in-out infinite alternate 0.5s;
}

@keyframes sp-rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes sp-pulse {
    0% {
        opacity: 0.3;
        transform: scale(0.95);
    }

    100% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

@keyframes sp-float-dot {
    0% {
        transform: translateY(0px);
        opacity: 0.4;
    }

    100% {
        transform: translateY(-10px);
        opacity: 1;
    }
}