:root {
    --bg-top: #a1c4fd;
    --bg-bottom: #c2e9fb;
    --text-dark: #2c3e50;
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(255, 255, 255, 0.8);
}

.tensura-easter-app {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 100vh;
    min-height: 600px;
    margin: 0 auto;
    background-image: 
    linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), 
    url('https://marketplace.canva.com/EAF_TpUSsJM/2/0/900w/canva-happy-easter-cute-bunny-phone-wallpaper-O5geNhHyeuo.jpg');    
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    font-family: 'Poppins', sans-serif;
}

.tensura-easter-app .hud {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    padding-top: max(60px, env(safe-area-inset-top));
}

.tensura-easter-app .title-group h1 {
    margin: 0;
    font-size: 1.9rem;
    font-weight: 900;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    line-height: 1;
}

.tensura-easter-app .title-group span {
    font-size: 0.95rem;
    font-weight: 700;
    color: #d0ff9b;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tensura-easter-app .token-pill {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 8px 16px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    color: var(--text-dark);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.tensura-easter-app .hatchery-grid {
    position: relative;
    z-index: 10;
    flex-grow: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 20px 30px;
    align-content: center;
}

.tensura-easter-app .egg-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tensura-easter-app .egg-wrapper:active {
    transform: scale(0.95);
}

.tensura-easter-app .egg {
    width: 110px;
    height: 145px;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    position: relative;
    box-shadow:
        inset -15px -15px 30px rgba(0, 0, 0, 0.1),
        inset 10px 10px 20px rgba(255, 255, 255, 0.6),
        0 15px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: filter 0.3s;
}

.tensura-easter-app .egg-t1 {
    background: linear-gradient(135deg, #d4fc79 0%, #96e6a1 100%);
}

.tensura-easter-app .egg-t3 {
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
}

.tensura-easter-app .egg-t3::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(45deg, transparent, transparent 15px, rgba(255, 183, 178, 0.4) 15px, rgba(255, 183, 178, 0.4) 30px);
}

.tensura-easter-app .egg-t5 {
    background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%);
}

.tensura-easter-app .egg-t5::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.8) 15%, transparent 16%), radial-gradient(rgba(255, 255, 255, 0.8) 15%, transparent 16%);
    background-size: 30px 30px;
    background-position: 0 0, 15px 15px;
}

.tensura-easter-app .egg-t6 {
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    box-shadow: inset -15px -15px 30px rgba(0, 0, 0, 0.1), inset 10px 10px 20px rgba(255, 255, 255, 0.8), 0 15px 30px rgba(255, 215, 0, 0.4);
    animation: float 3s ease-in-out infinite;
}

.tensura-easter-app .egg-label {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.9);
    padding: 5px 12px;
    border-radius: 15px;
    font-weight: 900;
    color: var(--text-dark);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.tensura-easter-app .egg-cost {
    background: var(--text-dark);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.tensura-easter-app .is-hatching .egg {
    animation: violent-shake 0.3s cubic-bezier(.36, .07, .19, .97) infinite;
    filter: brightness(1.5);
}

@keyframes violent-shake {
    0% {
        transform: translate(1px, 1px) rotate(0deg);
    }

    10% {
        transform: translate(-1px, -2px) rotate(-2deg);
    }

    20% {
        transform: translate(-3px, 0px) rotate(2deg);
    }

    30% {
        transform: translate(3px, 2px) rotate(0deg);
    }

    40% {
        transform: translate(1px, -1px) rotate(2deg);
    }

    50% {
        transform: translate(-1px, 2px) rotate(-2deg);
    }

    60% {
        transform: translate(-3px, 1px) rotate(0deg);
    }

    70% {
        transform: translate(3px, 1px) rotate(-2deg);
    }

    80% {
        transform: translate(-1px, -1px) rotate(2deg);
    }

    90% {
        transform: translate(1px, 2px) rotate(0deg);
    }

    100% {
        transform: translate(1px, -2px) rotate(-2deg);
    }
}

.tensura-easter-app .flash-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 50;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.tensura-easter-app .backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    z-index: 90;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.tensura-easter-app .backdrop.active {
    opacity: 1;
    pointer-events: all;
}

.tensura-easter-app .bottom-sheet {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: white;
    border-radius: 40px 40px 0 0;
    z-index: 100;
    padding: 30px 25px 50px;
    box-sizing: border-box;
    text-align: center;
    transition: bottom 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.tensura-easter-app .bottom-sheet.open {
    bottom: 0;
}

.tensura-easter-app .sheet-handle {
    width: 40px;
    height: 5px;
    background: #e0e0e0;
    border-radius: 5px;
    margin: 0 auto 25px;
}

.tensura-easter-app .result-img-wrapper {
    width: 200px;
    height: 280px;
    margin: 0 auto 20px;
    background: radial-gradient(circle, rgba(255, 243, 176, 0.5) 0%, transparent 70%);
    position: relative;
}

.tensura-easter-app .result-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.4));
    transform: scale(0.5);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tensura-easter-app .bottom-sheet.open .result-img-wrapper img {
    transform: scale(1);
    opacity: 1;
    transition-delay: 0.1s;
}

.tensura-easter-app .tier-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    background: #ffb7b2;
    color: #8c3a35;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.tensura-easter-app .result-name {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--text-dark);
    margin: 0 0 5px;
    line-height: 1.2;
}

.tensura-easter-app .result-desc {
    font-size: 1rem;
    color: #7f8c8d;
    margin-bottom: 15px;
}

.tensura-easter-app .tap-to-close {
    font-size: 0.85rem;
    color: #b2bec3;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.tensura-easter-app .status-toast {
    position: absolute;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-dark);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 700;
    z-index: 60;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

@media (min-width: 768px) {
    .tensura-easter-app .hud {
        padding: 40px 60px;
    }

    .tensura-easter-app .title-group h1 {
        font-size: 2.5rem;
    }

    .tensura-easter-app .hatchery-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 40px;
        padding: 40px 60px;
        align-content: center;
        max-width: 1000px;
        margin: 0 auto;
    }

    .tensura-easter-app .egg {
        width: 140px;
        height: 185px;
    }

    .tensura-easter-app .egg-label {
        font-size: 1.2rem;
        padding: 8px 16px;
    }

    .tensura-easter-app .bottom-sheet {
        bottom: auto;
        top: 50%;
        left: 50%;
        width: 400px;
        border-radius: 30px;
        padding: 40px;
        transform: translate(-50%, -40%) scale(0.9);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .tensura-easter-app .sheet-handle {
        display: none;
    }

    .tensura-easter-app .bottom-sheet.open {
        bottom: auto;
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
        visibility: visible;
    }

    .tensura-easter-app .result-name {
        font-size: 2.2rem;
    }
}