:root {
    --navy: #002364;
    --navy-soft: #3a4a78;
    --fuchsia: #D70064;
    --fuchsia-soft: #ff2d8b;
    --white: #ffffff;
    --bg: #ffffff;
    --ink: #002364;
    --muted: #5b6478;
    --card-border: #e7eaf2;
    --radius: 20px;
}

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

html {
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    background: var(--bg);
    overflow-x: hidden;
    position: relative;
    padding: 32px 20px;
    text-align: center;
}

.gradient-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    background: #ffffff;
}

.blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    will-change: transform;
}
.blob-1 {
    width: 440px; height: 440px;
    background: var(--fuchsia);
    opacity: 0.12;
    top: -140px; left: -110px;
    animation: float1 22s ease-in-out infinite;
}
.blob-2 {
    width: 520px; height: 520px;
    background: var(--navy);
    opacity: 0.10;
    bottom: -180px; right: -130px;
    animation: float2 26s ease-in-out infinite;
}
.blob-3 {
    width: 360px; height: 360px;
    background: var(--fuchsia-soft);
    opacity: 0.08;
    bottom: -120px; left: 18%;
    animation: float3 30s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(80px, 60px) scale(1.15); }
}
@keyframes float2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(-70px, -50px) scale(1.1); }
}
@keyframes float3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(60px, -40px) scale(1.2); }
}

.container {
    max-width: 880px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    animation: fadeUp 1s ease both;
}

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

.logo-wrap { margin-bottom: 4px; }
.logo {
    width: clamp(220px, 45vw, 320px);
    height: auto;
    filter: drop-shadow(0 8px 20px rgba(0, 35, 100, 0.10));
}

.divider {
    width: 20%;
    height: 3px;
    border: none;
    border-radius: 2px;
    background: #d70064;
    margin: 0;
}

.subtitle {
    font-size: clamp(0.95rem, 2.4vw, 1.15rem);
    font-weight: 500;
    line-height: 1.6;
    color: #002364;
}

.countdown {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: clamp(8px, 2.5vw, 20px);
    flex-wrap: nowrap;
    margin-top: 4px;
}

.flip-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.flip-card {
    position: relative;
    min-width: clamp(58px, 15vw, 96px);
    padding: clamp(12px, 3vw, 22px) clamp(8px, 2.5vw, 16px);
    border-radius: 14px;
    background: linear-gradient(180deg, #013a92 0%, #002a72 49.9%, #002364 50%, #001844 100%);
    box-shadow: 0 14px 32px rgba(0, 35, 100, 0.24),
                inset 0 1px 0 rgba(255, 255, 255, 0.14);
    overflow: hidden;
    perspective: 340px;
}

.flip-card::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 2px;
    background: rgba(0, 0, 0, 0.30);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.07);
    z-index: 3;
}

.flip-num {
    display: block;
    font-size: clamp(1.7rem, 6.5vw, 3rem);
    font-weight: 700;
    line-height: 1;
    color: var(--white);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
    transform-origin: center center;
    backface-visibility: hidden;
}

.flip-num.flip {
    animation: flipDown 0.55s ease;
}

@keyframes flipDown {
    0%   { transform: rotateX(0deg);   opacity: 1; }
    49%  { transform: rotateX(-88deg); opacity: 0.5; }
    50%  { transform: rotateX(88deg);  opacity: 0.5; }
    100% { transform: rotateX(0deg);   opacity: 1; }
}

.count-label {
    font-size: clamp(0.62rem, 1.8vw, 0.8rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
}

@media (max-width: 480px) {
    .countdown { gap: 6px; }
    .flip-unit { flex: 1; }
    .flip-card { min-width: 0; width: 100%; padding: 14px 4px; }
}

@media (prefers-reduced-motion: reduce) {
    .blob { animation: none; }
    .container { animation: none; }
    .flip-num.flip { animation: none; }
}
