﻿/* 🔐 Protection Layer */
* {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    box-sizing: border-box;
}

img {
    pointer-events: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

@media print {
    body {
        display: none !important;
    }
}

/* ============================================
   IMPORTS & BASE
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@400;600;700&display=swap');

body {
    font-family: 'Rajdhani', 'Orbitron', sans-serif;
    background: #080014;
    color: #fff;
    overflow-x: hidden;
}

/* ============================================
   COSMIC BACKGROUND
   ============================================ */
.pogo-bg {
    background: radial-gradient(ellipse at 20% 50%, #1a0533 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, #0a1a4a 0%, transparent 50%),
        radial-gradient(ellipse at 50% 100%, #1f0040 0%, transparent 60%),
        linear-gradient(135deg, #080014 0%, #0d0025 40%, #050e2a 70%, #080014 100%);
    overflow: hidden;
}

/* Aurora glow layers */
.pogo-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 40% at 50% 0%, rgba(120, 40, 255, 0.18) 0%, transparent 70%),
        radial-gradient(ellipse 60% 30% at 80% 60%, rgba(0, 180, 255, 0.10) 0%, transparent 70%);
    animation: auroraShift 8s ease-in-out infinite alternate;
}

@keyframes auroraShift {
    0% {
        opacity: 0.7;
        transform: scale(1) translateY(0);
    }

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

/* Floating Pokéballs — now glowing + ultra-balls style */
.pokeball {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(180deg, #9b30ff 50%, #1a0050 50%);
    border: 3px solid rgba(180, 100, 255, 0.5);
    opacity: 0;
    animation: floatBall linear infinite;
    box-shadow: 0 0 15px rgba(150, 50, 255, 0.3), inset 0 0 10px rgba(255, 255, 255, 0.05);
}

.pokeball::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(200, 150, 255, 0.6);
    transform: translateY(-50%);
}

.pokeball::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 14px;
    background: radial-gradient(circle, #e0b4ff 0%, #9b30ff 100%);
    border: 2px solid rgba(200, 150, 255, 0.8);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 8px rgba(200, 150, 255, 0.8);
}

@keyframes floatBall {
    0% {
        transform: translateY(110vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.18;
    }

    90% {
        opacity: 0.18;
    }

    100% {
        transform: translateY(-10vh) rotate(720deg);
        opacity: 0;
    }
}

.pokeball:nth-child(1) {
    left: 5%;
    width: 50px;
    height: 50px;
    animation-duration: 12s;
    animation-delay: 0s;
}

.pokeball:nth-child(2) {
    left: 15%;
    width: 70px;
    height: 70px;
    animation-duration: 16s;
    animation-delay: 2s;
}

.pokeball:nth-child(3) {
    left: 25%;
    width: 40px;
    height: 40px;
    animation-duration: 10s;
    animation-delay: 4s;
}

.pokeball:nth-child(4) {
    left: 35%;
    width: 80px;
    height: 80px;
    animation-duration: 18s;
    animation-delay: 1s;
}

.pokeball:nth-child(5) {
    left: 45%;
    width: 55px;
    height: 55px;
    animation-duration: 14s;
    animation-delay: 3s;
}

.pokeball:nth-child(6) {
    left: 55%;
    width: 45px;
    height: 45px;
    animation-duration: 11s;
    animation-delay: 5s;
}

.pokeball:nth-child(7) {
    left: 65%;
    width: 65px;
    height: 65px;
    animation-duration: 15s;
    animation-delay: 2s;
}

.pokeball:nth-child(8) {
    left: 75%;
    width: 35px;
    height: 35px;
    animation-duration: 9s;
    animation-delay: 6s;
}

.pokeball:nth-child(9) {
    left: 85%;
    width: 75px;
    height: 75px;
    animation-duration: 17s;
    animation-delay: 1s;
}

.pokeball:nth-child(10) {
    left: 95%;
    width: 50px;
    height: 50px;
    animation-duration: 13s;
    animation-delay: 4s;
}

.pokeball:nth-child(11) {
    left: 10%;
    width: 60px;
    height: 60px;
    animation-duration: 16s;
    animation-delay: 7s;
}

.pokeball:nth-child(12) {
    left: 20%;
    width: 42px;
    height: 42px;
    animation-duration: 12s;
    animation-delay: 3s;
}

.pokeball:nth-child(13) {
    left: 30%;
    width: 68px;
    height: 68px;
    animation-duration: 14s;
    animation-delay: 5s;
}

.pokeball:nth-child(14) {
    left: 40%;
    width: 52px;
    height: 52px;
    animation-duration: 10s;
    animation-delay: 2s;
}

.pokeball:nth-child(15) {
    left: 50%;
    width: 78px;
    height: 78px;
    animation-duration: 19s;
    animation-delay: 6s;
}

.pokeball:nth-child(16) {
    left: 60%;
    width: 38px;
    height: 38px;
    animation-duration: 11s;
    animation-delay: 1s;
}

.pokeball:nth-child(17) {
    left: 70%;
    width: 58px;
    height: 58px;
    animation-duration: 15s;
    animation-delay: 4s;
}

.pokeball:nth-child(18) {
    left: 80%;
    width: 48px;
    height: 48px;
    animation-duration: 13s;
    animation-delay: 0s;
}

.pokeball:nth-child(19) {
    left: 90%;
    width: 72px;
    height: 72px;
    animation-duration: 17s;
    animation-delay: 5s;
}

.pokeball:nth-child(20) {
    left: 3%;
    width: 44px;
    height: 44px;
    animation-duration: 12s;
    animation-delay: 3s;
}

/* Stars */
.stars,
.stars2,
.stars3 {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: block;
    background: transparent;
}

.stars {
    background-image: radial-gradient(1px 1px at 20% 30%, rgba(255, 255, 255, 0.7) 0%, transparent 100%),
        radial-gradient(1px 1px at 60% 70%, rgba(180, 140, 255, 0.6) 0%, transparent 100%),
        radial-gradient(1px 1px at 80% 10%, rgba(255, 255, 255, 0.5) 0%, transparent 100%);
    background-size: 300px 300px;
    animation: move-stars 50s linear infinite;
}

.stars2 {
    background-image: radial-gradient(1.5px 1.5px at 40% 60%, rgba(140, 100, 255, 0.5) 0%, transparent 100%),
        radial-gradient(1px 1px at 10% 80%, rgba(255, 255, 255, 0.4) 0%, transparent 100%);
    background-size: 500px 500px;
    animation: move-stars 100s linear infinite;
}

.stars3 {
    background-image: radial-gradient(2px 2px at 70% 40%, rgba(100, 200, 255, 0.3) 0%, transparent 100%),
        radial-gradient(1px 1px at 30% 20%, rgba(255, 255, 255, 0.3) 0%, transparent 100%);
    background-size: 700px 700px;
    animation: move-stars 150s linear infinite;
}

@keyframes move-stars {
    from {
        background-position: 0 0;
    }

    to {
        background-position: -10000px 5000px;
    }
}

/* ============================================
   TITLE
   ============================================ */
.pogo-title {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    background: linear-gradient(135deg, #c084fc 0%, #a855f7 30%, #7c3aed 60%, #e879f9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.8)) drop-shadow(0 0 40px rgba(168, 85, 247, 0.4));
    letter-spacing: 0.05em;
}

/* ============================================
   STATS BAR
   ============================================ */
.rounded-lg.p-2.border {
    background: rgba(120, 40, 255, 0.08) !important;
    border-color: rgba(168, 85, 247, 0.3) !important;
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

/* ============================================
   MAIN CONTAINER
   ============================================ */
.max-w-4xl.w-full.rounded-3xl {
    background: rgba(10, 0, 30, 0.7) !important;
    border-color: rgba(168, 85, 247, 0.3) !important;
    backdrop-filter: blur(30px);
    box-shadow: 0 0 60px rgba(120, 40, 255, 0.15), 0 0 120px rgba(120, 40, 255, 0.05), inset 0 1px 0 rgba(200, 150, 255, 0.1);
}

/* ============================================
   POKÉMON CARDS
   ============================================ */
.gem-option {
    background: linear-gradient(135deg, rgba(120, 40, 255, 0.12) 0%, rgba(60, 0, 100, 0.18) 100%) !important;
    border: 1.5px solid rgba(168, 85, 247, 0.25) !important;
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.gem-option::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(200, 150, 255, 0.05) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gem-option:hover::before {
    opacity: 1;
}

.gem-option::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: inherit;
    background: linear-gradient(135deg, #a855f7, #7c3aed, #c084fc, #e879f9);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gem-option:hover {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.28) 0%, rgba(120, 40, 200, 0.32) 100%) !important;
    border-color: rgba(168, 85, 247, 0.7) !important;
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.5), 0 0 60px rgba(168, 85, 247, 0.2), 0 8px 32px rgba(0, 0, 0, 0.4);
    transform: translateY(-6px) scale(1.04);
}

.gem-option .item-label {
    color: #d8b4fe;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-shadow: 0 0 8px rgba(168, 85, 247, 0.5);
}

.gem-option:hover .item-label {
    color: #e879f9;
    text-shadow: 0 0 12px rgba(232, 121, 249, 0.8);
}

/* ============================================
   BUTTONS
   ============================================ */
#connect-btn {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #9333ea 100%) !important;
    border: none !important;
    border-bottom: none !important;
    border-radius: 14px;
    font-family: 'Orbitron', sans-serif !important;
    letter-spacing: 0.1em;
    color: #fff !important;
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.5), 0 8px 25px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#connect-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

#connect-btn:hover::before {
    left: 100%;
}

#connect-btn:hover {
    box-shadow: 0 0 50px rgba(168, 85, 247, 0.7), 0 12px 35px rgba(0, 0, 0, 0.5);
    transform: scale(1.02) !important;
}

/* ============================================
   INPUT FIELD
   ============================================ */
#username {
    background: rgba(60, 10, 120, 0.3) !important;
    border-color: rgba(168, 85, 247, 0.4) !important;
    border-radius: 12px !important;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    color: #e9d5ff !important;
    transition: all 0.3s ease;
}

#username::placeholder {
    color: rgba(168, 85, 247, 0.5) !important;
}

#username:focus {
    border-color: #a855f7 !important;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.35), 0 0 0 3px rgba(168, 85, 247, 0.12) !important;
    background: rgba(80, 20, 150, 0.35) !important;
}

/* ============================================
   STEP 3 – GENERATOR
   ============================================ */
#step-3 {
    background: #0a0020 !important;
    border-color: #a855f7 !important;
    box-shadow: 0 0 40px rgba(168, 85, 247, 0.3);
}

#step-3>div:first-child {
    background: linear-gradient(135deg, #2d0066, #4c0099) !important;
}

#progress-bar {
    background: linear-gradient(90deg, #7c3aed, #a855f7, #e879f9) !important;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.6);
}

#status-text {
    color: #c084fc !important;
    font-family: 'Orbitron', sans-serif;
}

/* ============================================
   STEP 4 – SUCCESS
   ============================================ */
#step-4 {
    background: #060012 !important;
    border-color: #a855f7 !important;
}

#step-4>div:first-child {
    background: rgba(120, 40, 255, 0.15) !important;
}

/* Continue button */
#step-4 button[onclick] {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #c084fc 100%) !important;
    border-bottom: 4px solid #4c1d95 !important;
    font-family: 'Orbitron', sans-serif !important;
    color: #fff !important;
    letter-spacing: 0.12em;
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.5), 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* ============================================
   CUSTOM BOUNCE
   ============================================ */
@keyframes bounce-custom {

    0%,
    100% {
        transform: translateY(-8%) rotate(-2deg);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }

    50% {
        transform: translateY(8%) rotate(2deg);
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

.animate-bounce-custom {
    animation: bounce-custom 2.5s infinite;
    filter: drop-shadow(0 0 16px rgba(168, 85, 247, 0.7));
}

/* ============================================
   TEXT STYLES
   ============================================ */
.stroke-black {
    -webkit-text-stroke: 1.5px rgba(80, 0, 150, 0.8);
    text-shadow: 0 0 20px rgba(168, 85, 247, 0.6), 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* Labels & headers in steps */
label.block {
    color: #c084fc !important;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
}

h2.text-2xl.font-\[\'Lilita_One\'\],
h2.text-3xl.font-\[\'Lilita_One\'\] {
    font-family: 'Orbitron', sans-serif !important;
}

/* ============================================
   STAT NUMBERS
   ============================================ */
#stat-claimed,
#stat-drops {
    color: #c084fc !important;
    font-family: 'Orbitron', sans-serif;
    text-shadow: 0 0 10px rgba(192, 132, 252, 0.6);
}

#stat-online {
    color: #f0abfc !important;
    font-family: 'Orbitron', sans-serif;
    text-shadow: 0 0 10px rgba(240, 171, 252, 0.7);
}

/* stat labels */
.text-xs.text-blue-200 {
    color: #a78bfa !important;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.6rem;
}

/* ============================================
   MARQUEE
   ============================================ */
@keyframes marquee {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

.animate-marquee {
    display: inline-block;
    animation: marquee 20s linear infinite;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    position: sticky;
    bottom: 0;
    z-index: 50;
    background: rgba(8, 0, 20, 0.85) !important;
    border-top: 1px solid rgba(168, 85, 247, 0.2) !important;
    box-shadow: 0 -4px 30px rgba(168, 85, 247, 0.08);
    backdrop-filter: blur(20px);
}

.banner-container {
    width: 320px;
    height: 50px;
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

@media (max-width: 360px) {
    .banner-container {
        transform: scale(0.9);
    }
}

/* ============================================
   HEADER
   ============================================ */
header {
    border-bottom: 1px solid rgba(168, 85, 247, 0.1);
    background: rgba(8, 0, 20, 0.3);
    backdrop-filter: blur(10px);
}

/* ============================================
   POPUP
   ============================================ */
#ios-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.popup-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(16px);
}

.popup {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #130030 0%, #220055 100%);
    border: 2px solid rgba(168, 85, 247, 0.6);
    border-radius: 24px;
    padding: 30px 20px;
    max-width: 90%;
    width: 400px;
    box-shadow: 0 0 60px rgba(168, 85, 247, 0.4), 0 20px 60px rgba(0, 0, 0, 0.6);
    animation: popupSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popupSlideIn {
    from {
        transform: translate(-50%, -60%);
        opacity: 0;
    }

    to {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}

.gif-container {
    width: 100%;
    margin-bottom: 20px;
    border-radius: 14px;
    overflow: hidden;
    border: 1.5px solid rgba(168, 85, 247, 0.4);
}

.instruction-gif {
    width: 100%;
    height: auto;
    display: block;
}

.instruction-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 15px;
    color: #e9d5ff;
    text-align: center;
    line-height: 1.6;
    margin: 0;
    text-shadow: 0 0 12px rgba(168, 85, 247, 0.5);
}

@media (max-width: 480px) {
    .popup {
        width: 85%;
        padding: 25px 15px;
    }

    .instruction-text {
        font-size: 13px;
    }
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #080014;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #7c3aed, #a855f7);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #a855f7, #c084fc);
}

/* ============================================
   SELECTED ITEM GLOW ON STEP 4
   ============================================ */
#final-item-image,
#selected-item-image {
    filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.8)) drop-shadow(0 0 40px rgba(168, 85, 247, 0.4));
}

/* ============================================
   PLATFORM BUTTON
   ============================================ */
.platform-btn.selected {
    border-color: #a855f7;
    background-color: rgba(168, 85, 247, 0.15);
}

.platform-btn.selected span {
    color: #c084fc;
}

/* ============================================
   DESCRIPTION TEXTS
   ============================================ */
.text-blue-200 {
    color: #c4b5fd !important;
}

.text-blue-300 {
    color: #a78bfa !important;
}

.text-blue-100 {
    color: #ede9fe !important;
}

.text-yellow-400 {
    color: #c084fc !important;
}

.text-yellow-300 {
    color: #e879f9 !important;
}

/* glow pulse for online count */
@keyframes pulse-glow {

    0%,
    100% {
        opacity: 1;
        text-shadow: 0 0 10px rgba(240, 171, 252, 0.7);
    }

    50% {
        opacity: 0.7;
        text-shadow: 0 0 20px rgba(240, 171, 252, 1);
    }
}

.animate-pulse {
    animation: pulse-glow 2s ease-in-out infinite !important;
}

/* ============================================
   CARD ENTRANCE ANIMATION
   ============================================ */
@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

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

.gem-option {
    animation: cardIn 0.5s ease both;
}

.gem-option:nth-child(1) {
    animation-delay: 0.05s;
}

.gem-option:nth-child(2) {
    animation-delay: 0.10s;
}

.gem-option:nth-child(3) {
    animation-delay: 0.15s;
}

.gem-option:nth-child(4) {
    animation-delay: 0.20s;
}

.gem-option:nth-child(5) {
    animation-delay: 0.25s;
}

.gem-option:nth-child(6) {
    animation-delay: 0.30s;
}

.gem-option:nth-child(7) {
    animation-delay: 0.35s;
}

.gem-option:nth-child(8) {
    animation-delay: 0.40s;
}

.gem-option:nth-child(9) {
    animation-delay: 0.45s;
}

.gem-option:nth-child(10) {
    animation-delay: 0.50s;
}

.gem-option:nth-child(11) {
    animation-delay: 0.55s;
}

.gem-option:nth-child(12) {
    animation-delay: 0.60s;
}

.gem-option:nth-child(13) {
    animation-delay: 0.65s;
}