@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes glow {
    0%, 100% {
        opacity: 0.03;
    }
    50% {
        opacity: 0.08;
    }
}

@keyframes float {
    0% { transform: translateY(0px) scale(1); }
    100% { transform: translateY(-18px) scale(1.04); }
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(120deg, #181a20 0%, #23242a 40%, #ff7e5f 100%);
    background-size: 200% 200%;
    animation: gradient 18s ease-in-out infinite;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.container {
    background: rgba(28, 29, 34, 0.98);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.45), 0 1.5px 8px rgba(255,126,95,0.08);
    padding: 0.7rem 0.7rem 0.5rem 0.7rem;
    max-width: 480px;
    width: 100%;
    margin: 0.5rem auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.age-display {
    width: 100%;
    margin-bottom: 0.5rem;
}

h1 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: #fff;
    letter-spacing: -0.01em;
    text-align: left;
}

#age {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(90deg, #ff7e5f 20%, #feb47b 80%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: block;
    text-align: left;
    margin-bottom: 0.5rem;
    letter-spacing: 0.01em;
}

.transaction-count {
    width: 100%;
    margin-top: 0.5rem;
    padding-top: 1.2rem;
    border-top: 1.5px solid rgba(255,255,255,0.07);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

h2 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    opacity: 0.92;
    margin: 0;
    letter-spacing: 0.01em;
}

#transactionCount {
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(90deg, #ff7e5f 20%, #feb47b 80%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-left: 0.5rem;
}

.button, .btn, button {
    background: linear-gradient(90deg, #ff7e5f 20%, #feb47b 80%);
    color: #23242a;
    font-weight: 700;
    border: none;
    border-radius: 999px;
    padding: 0.8rem 2.2rem;
    font-size: 1.1rem;
    cursor: pointer;
    margin-top: 1.5rem;
    box-shadow: 0 2px 8px rgba(255,126,95,0.08);
    transition: filter 0.2s;
}
.button:hover, .btn:hover, button:hover {
    filter: brightness(1.08);
}

@media (max-width: 600px) {
    .container {
        max-width: 98vw;
        padding: 1rem 0.2rem;
    }
    h1 {
        font-size: 1rem;
    }
    #age {
        font-size: 1.1rem;
    }
    h2 {
        font-size: 0.9rem;
    }
    #transactionCount {
        font-size: 1rem;
    }
}

.age-cloud {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 220px;
    max-width: 340px;
    height: auto;
    margin: 0.7rem auto 0.5rem auto;
    gap: 0.05em;
}

.age-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.1em;
    width: 100%;
}

.age-block-0 .age-num { font-size: 3.8rem; }
.age-block-1 .age-num { font-size: 2.7rem; }
.age-block-2 .age-num { font-size: 2.1rem; }
.age-block-3 .age-num { font-size: 1.6rem; }
.age-block-4 .age-num { font-size: 1.3rem; }
.age-block-5 .age-num { font-size: 1.1rem; }

.age-block-0 .age-label { font-size: 1.5rem; }
.age-block-1 .age-label { font-size: 1.1rem; }
.age-block-2 .age-label { font-size: 0.9rem; }
.age-block-3 .age-label { font-size: 0.8rem; }
.age-block-4 .age-label { font-size: 0.7rem; }
.age-block-5 .age-label { font-size: 0.6rem; }

.age-word {
    background: linear-gradient(120deg, #ff7e5f 0%, #feb47b 40%, #23242a 100%);
    background-size: 300% 300%;
    animation: agecloud-gradient 12s ease-in-out infinite;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    text-shadow: none;
    will-change: font-size;
    letter-spacing: 0.01em;
    text-align: center;
    margin: 0;
}

@media (max-width: 600px) {
    .age-cloud {
        min-width: 180px;
        max-width: 98vw;
        height: auto;
        gap: 0.05em;
    }
    .age-block-0 .age-num { font-size: 2.2rem; }
    .age-block-1 .age-num { font-size: 1.7rem; }
    .age-block-2 .age-num { font-size: 1.3rem; }
    .age-block-3 .age-num { font-size: 1.1rem; }
    .age-block-4 .age-num { font-size: 0.95rem; }
    .age-block-5 .age-num { font-size: 0.8rem; }
    .age-block-0 .age-label { font-size: 1.1rem; }
    .age-block-1 .age-label { font-size: 0.9rem; }
    .age-block-2 .age-label { font-size: 0.7rem; }
    .age-block-3 .age-label { font-size: 0.6rem; }
    .age-block-4 .age-label { font-size: 0.5rem; }
    .age-block-5 .age-label { font-size: 0.4rem; }
}

.vertical {
    writing-mode: vertical-rl;
    white-space: pre-line;
    letter-spacing: 0.08em;
    line-height: 1.1;
    text-align: center;
} 