:root {
    --bg-color: #0f0c29;
    --primary-color: #ff007f;
    --secondary-color: #7928ca;
    --text-color: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-color);
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    color: var(--text-color);
    overflow: hidden;
    height: 100vh;
    height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.background {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.blob {
    position: absolute;
    filter: blur(80px);
    border-radius: 50%;
    opacity: 0.6;
    animation: float 10s infinite alternate;
}

.blob-1 {
    width: 300px;
    height: 300px;
    background: var(--primary-color);
    top: -50px;
    left: -100px;
}

.blob-2 {
    width: 250px;
    height: 250px;
    background: var(--secondary-color);
    bottom: -50px;
    right: -50px;
    animation-delay: -3s;
}

.blob-3 {
    width: 200px;
    height: 200px;
    background: #00d2ff;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 50px) scale(1.1); }
}

.app-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 500px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 1.5rem;
}

.header {
    text-align: center;
    margin-bottom: 2rem;
}

.title {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.highlight {
    color: var(--primary-color);
    text-transform: uppercase;
    font-size: 3.5rem;
    display: inline-block;
    background: -webkit-linear-gradient(45deg, #ff007f, #ff7e5f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.8;
}

.main-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
}

.hub-btn {
    display: flex;
    align-items: center;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.5rem;
    text-decoration: none;
    color: var(--text-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: transform 0.2s, box-shadow 0.2s, background 0.3s;
    -webkit-tap-highlight-color: transparent;
}

.hub-btn:active {
    transform: scale(0.95);
}

.hub-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.hub-btn .emoji {
    font-size: 3rem;
    margin-right: 1.5rem;
}

.hub-text h3 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 0.3rem;
    color: var(--primary-color);
}

.hub-text p {
    font-size: 0.95rem;
    opacity: 0.9;
}

.interactive-area {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 2rem;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 130px;
    height: 130px;
    position: relative;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: transform 0.2s, box-shadow 0.2s;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.glass-card:active {
    transform: scale(0.95);
}

.animal-emoji {
    font-size: 4rem;
    line-height: 1;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.speech-bubble {
    position: absolute;
    top: -45px;
    background: #fff;
    color: #333;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 800;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
    white-space: nowrap;
    z-index: 10;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px 6px 0;
    border-style: solid;
    border-color: #fff transparent transparent transparent;
}

.show-bubble {
    opacity: 1;
    transform: translateY(0);
}

.big-button-wrapper {
    display: flex;
    justify-content: center;
    z-index: 10;
}

.main-btn {
    position: relative;
    padding: 1.2rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(45deg, #ff007f, #7928ca);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(255, 0, 127, 0.3);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 1px;
    -webkit-tap-highlight-color: transparent;
}

.main-btn:active {
    transform: scale(0.95);
}

.btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: btnGlow 3s infinite;
}

@keyframes btnGlow {
    0% { left: -100%; }
    20% { left: 100%; }
    100% { left: 100%; }
}

.hidden-message {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    margin-top: 1rem;
    opacity: 0;
    transform: translateY(20px);
}

.age-container {
    margin-bottom: 1rem;
}

.age-number {
    font-size: 6rem;
    font-weight: 900;
    background: -webkit-linear-gradient(45deg, #ff007f, #ff7e5f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 20px rgba(255,0,127,0.2);
    line-height: 1;
}

.message-text p {
    margin-bottom: 0.8rem;
}

.joke {
    font-size: 1.3rem;
    font-weight: 700;
}

.congrats {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.4;
}
