:root {
    --bg-color: #0f172a;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --accent: #f59e0b;
    --accent-glow: rgba(245, 158, 11, 0.4);
    --glass-bg: rgba(30, 41, 59, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
}

/* Background Animation */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at bottom, #1e1b4b 0%, #0f172a 100%);
}

.blob {
    position: absolute;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.6;
    border-radius: 50%;
    animation: float 20s infinite alternate ease-in-out;
}

.blob-1 {
    top: 10%;
    left: 20%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, #7e22ce 0%, transparent 70%);
    animation-delay: 0s;
}

.blob-2 {
    bottom: 10%;
    right: 10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, #b45309 0%, transparent 70%);
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(10%, 15%) scale(1.1); }
}

/* Container */
.container {
    width: 100%;
    max-width: 900px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    z-index: 10;
}

.header {
    text-align: center;
    animation: fadeInDown 1s ease-out;
}

.subtitle {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    background: linear-gradient(to right, #fff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Glassmorphism utility */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    width: 100%;
    animation: fadeInUp 1s ease-out 0.3s both;
}

/* Countdown */
.countdown-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(1rem, 3vw, 2.5rem);
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
}

/* Subtle inner glow for countdown */
.countdown-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    box-shadow: inset 0 0 40px rgba(245, 158, 11, 0.1);
    border-radius: 24px;
    pointer-events: none;
}

.time-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.number {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    line-height: 1;
    color: white;
    text-shadow: 0 0 20px var(--accent-glow);
    font-variant-numeric: tabular-nums;
}

.label {
    font-size: clamp(0.8rem, 2vw, 1.1rem);
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    font-weight: 300;
}

.separator {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 300;
    color: var(--accent);
    transform: translateY(-15%);
    animation: pulse 2s infinite;
}

/* Dictionary section */
.dictionary-container {
    animation-delay: 0.6s;
    text-align: left;
    max-width: 800px;
    margin-top: 1rem;
}

.dictionary-header {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.word {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 600;
    color: white;
}

.pronunciation {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-family: monospace;
}

.part-of-speech {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-secondary);
}

.definitions {
    padding-left: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.definition-item {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-primary);
}

.definition-item::marker {
    color: var(--accent);
    font-weight: bold;
}

.worst-kind {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #ef4444; /* red accent for the tragedy */
    margin-top: 0.5rem;
}

.worst-kind p {
    margin-bottom: 0.8rem;
}

.def-tag {
    display: inline-block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.example-sentence {
    font-style: italic;
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Animations */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; text-shadow: 0 0 20px var(--accent-glow); }
    50% { opacity: 0.3; text-shadow: none; }
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .container { padding: 1rem; }
    .glass-card { padding: 1.5rem; }
    .countdown-container { padding: 2rem 1rem; gap: 0.5rem; }
    .time-block { min-width: 60px; }
    .separator { display: none; } /* Hide colon on very small screens for better layout */
}
