* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    min-height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background: #111;
    overflow-x: hidden;
    overflow-y: auto;
    transition: 1s;
    color: white;
    padding: 30px 20px;
}


.container {
    width: 100%;
    max-width: 480px;
    min-height: 90dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 28px 22px;
    border-radius: 32px;
    backdrop-filter: blur(20px);
    background:
        linear-gradient(180deg,
            rgba(255, 255, 255, 0.10),
            rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.45);
    position: relative;
    z-index: 2;
    margin: 40px 0;
}

.logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
    margin-bottom: 35px;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: white;
    text-align: center;
    opacity: 0.95;
    text-shadow:
        0 0 25px rgba(239, 68, 68, 0.28);
    animation: logoGlow 4s ease-in-out infinite;
}

h1 {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 35px;
    letter-spacing: -1px;
}

.subtitle {
    font-size: 0.98rem;
    line-height: 1.6;
    opacity: 0.72;
    margin-bottom: 30px;
}

.moods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 18px;
    margin-bottom: 30px;
}

.mood-card {
    position: relative;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 12px;
    border-radius: 28px;
    background:
        linear-gradient(180deg,
            rgba(255, 255, 255, 0.10),
            rgba(255, 255, 255, 0.04));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition:
        transform .35s,
        box-shadow .35s,
        background .35s;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}

.mood-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.15),
            transparent);
    opacity: 0;
    transition: 0.4s;
}

.mood-card:hover::before {
    opacity: 1;
}

.mood-card:hover {
    transform:
        translateY(-10px) scale(1.04);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.35),
        0 0 25px rgba(255, 255, 255, 0.08);
}

.mood-card img {
    width: 52px;
    height: 52px;

    object-fit: contain;
    transition: 0.4s;
    z-index: 2;
    filter:
        drop-shadow(0 0 12px rgba(255, 255, 255, 0.15));
}

.mood-card span {
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    opacity: 0.92;
    z-index: 2;
}

.mood-card:hover img {
    transform: scale(1.12);
}

.mood-card:active {
    transform: scale(0.96);
}


.mood-card[data-mood="sad"]:hover {
    box-shadow:
        0 0 30px #3b82f6,
        0 10px 30px rgba(0, 0, 0, 0.35);
}

.mood-card[data-mood="down"]:hover {
    box-shadow:
        0 0 30px #8b5cf6,
        0 10px 30px rgba(0, 0, 0, 0.35);
}

.mood-card[data-mood="neutral"]:hover {
    box-shadow:
        0 0 30px #6b7280,
        0 10px 30px rgba(0, 0, 0, 0.35);
}

.mood-card[data-mood="good"]:hover {
    box-shadow:
        0 0 30px #10b981,
        0 10px 30px rgba(0, 0, 0, 0.35);
}

.mood-card[data-mood="strong"]:hover {
    box-shadow:
        0 0 30px #f97316,
        0 10px 30px rgba(0, 0, 0, 0.35);
}

.mood-card:last-child {
    grid-column: 1 / -1;
    max-width: 180px;
    width: 100%;
    justify-self: center;
}

.message {
    font-size: 1.35rem;
    line-height: 1.8;
    padding: 25px;
    margin-top: 20px;
    background: rgba(0,0,0,.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 20px;
    box-shadow:
        0 10px 30px rgba(0,0,0,.25);
    text-align:center;
    opacity:0;
    transform:translateY(20px);
    transition:.5s;
}

.message.show {
    opacity: 1;
    transform: translateY(0);
}

.phrase{
    font-size:1.7rem;
    line-height:1.5;
    font-weight:500;
    margin-bottom:15px;
}

.challenge {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 1.1rem;
    font-weight: 500;
    opacity: .95;
}

.bg-animation {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    animation: float 8s infinite alternate ease-in-out;
}


#shareBtn{
    display:block;
    margin:25px auto 0;
    padding:12px 20px;
    width:auto;
    min-width:160px;
    border:none;
    border-radius:14px;
    background:rgba(255,255,255,0.12);
    color:white;
    font-size:.95rem;
    font-weight:600;
    cursor:pointer;
    transition:.3s;
    backdrop-filter:blur(10px);
}

#shareBtn:hover{
    transform:translateY(-2px);
    background:rgba(255,255,255,0.18);
}

#shareBtn:active{
    transform:scale(.97);
}

.pwa-box {
    margin: 40px 20px;
    padding: 18px;
    border-radius: 16px;
    background: rgba(255,255,255,0.05);
    text-align: center;
}

.pwa-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.pwa-button {
    background: #ffffff;
    color: #111;
    border: none;
    padding: 12px 16px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
}

.pwa-button:active {
    transform: scale(0.98);
}

.pwa-hint {
    font-size: 13px;
    opacity: 0.7;
    margin-top: 10px;
}


.app-footer {
    margin-top: 35px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    opacity: 0.75;
}

.footer-logo {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.footer-logo a {
    color: white;
    text-decoration: none;
    opacity: 0.9;
    transition: 0.3s;
}

.footer-logo a:hover {
    opacity: 1;
    letter-spacing: 1px;
}

.footer-text {
    font-size: 0.82rem;
    opacity: 0.75;
}



@keyframes logoGlow {

    0% {
        opacity: 0.85;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.85;
    }

}


@keyframes float {
    from {
        transform: translate(-50px, -50px);
    }

    to {
        transform: translate(50px, 50px);
    }
}


@keyframes logoFloat {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-3px);
    }

    100% {
        transform: translateY(0px);
    }

}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


@media(max-width:768px){
    .message{
        font-size:1.2rem;
        padding:20px;
    }
    .challenge{
        font-size:1rem;
    }

}



@media (max-width:600px) {
    body {
        padding: 12px;
        align-items: stretch;
    }

    .logo {
        font-size: 1.6rem;
        letter-spacing: 1px;
    }

    .container {
        min-height: 100dvh;
        border-radius: 0;
        max-width: none;
        padding:
            35px 20px calc(30px + env(safe-area-inset-bottom));
    }

    .logo img {
        width: 210px;
    }

    h1 {
        font-size: 1.8rem;
        line-height: 1.15;
        margin-bottom: 28px;
    }

    .moods {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .mood-card {
        min-height: 115px;
    }
}


