/* TheWindy title screen — Authors: Zephyr & Brutus.
   Look: dusk over the lake — deep teal sky burning orange at the horizon,
   layered skyline silhouettes, parody blob on the plaza. If assets/title-bg.png
   exists it becomes the hero art and the CSS scene steps aside (see title.js). */

.windy-title {
    position: fixed;
    inset: 0;
    z-index: 9999;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #06181d;
    transition: opacity 600ms ease;
}

.windy-title.windy-hidden {
    opacity: 0;
    pointer-events: none;
}

.windy-art {
    position: absolute;
    inset: 0;
}

.windy-sky {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(120% 55% at 50% 100%, rgba(255, 110, 40, 0.55) 0%, rgba(255, 110, 40, 0) 60%),
        linear-gradient(180deg, #071e24 0%, #0b2f36 38%, #6e3a2a 74%, #c9522b 92%, #e8703a 100%);
}

/* wispy wind-streak clouds */
.windy-sky::before,
.windy-sky::after {
    content: "";
    position: absolute;
    left: -10%;
    width: 120%;
    height: 30%;
    background: repeating-linear-gradient(
        -4deg,
        transparent 0 26px,
        rgba(255, 150, 90, 0.05) 26px 30px,
        transparent 30px 64px
    );
    filter: blur(2px);
}
.windy-sky::before { top: 12%; transform: rotate(-2deg); }
.windy-sky::after  { top: 46%; opacity: 0.7; }

.windy-skyline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 46%;
}
.windy-skyline-back  { fill: #12333c; opacity: 0.9; height: 52%; }
.windy-skyline-front { fill: #061418; height: 38%; }

.windy-blob       { fill: #0e2d33; stroke: rgba(255, 140, 70, 0.5); stroke-width: 1.5; }
.windy-blob-shine { fill: rgba(255, 170, 110, 0.35); }

/* hero image mode: real art replaces the CSS scene */
.windy-title.has-art .windy-sky,
.windy-title.has-art .windy-skyline { display: none; }
.windy-title.has-art .windy-art {
    background: url("assets/title-bg.png") center / cover no-repeat #06181d;
}

.windy-card {
    position: relative;
    text-align: center;
    color: #fff;
    padding: 0 24px;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.65);
}

.windy-wordmark {
    position: relative;
    display: inline-block;
    margin: 0;
    font-family: 'Archivo Black', 'Montserrat', sans-serif;
    font-style: italic;
    font-size: clamp(3rem, 11vw, 7rem);
    letter-spacing: -0.02em;
    line-height: 1;
    transform: skewX(-4deg);
}

/* wind gust trailing off the wordmark */
.windy-gust {
    position: absolute;
    top: 8%;
    right: -14%;
    width: 34%;
    height: 40%;
    background:
        linear-gradient(90deg, rgba(255,255,255,0.85), rgba(255,255,255,0)) 0 18% / 100% 12% no-repeat,
        linear-gradient(90deg, rgba(255,255,255,0.55), rgba(255,255,255,0)) 12% 52% / 88% 9%  no-repeat,
        linear-gradient(90deg, rgba(255,255,255,0.35), rgba(255,255,255,0)) 24% 84% / 70% 7%  no-repeat;
    border-radius: 999px;
    pointer-events: none;
}

.windy-subtitle {
    margin: 10px 0 42px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: clamp(1.1rem, 3.2vw, 1.9rem);
    letter-spacing: 0.04em;
}

.windy-play {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: clamp(1.1rem, 2.6vw, 1.5rem);
    letter-spacing: 0.35em;
    text-indent: 0.35em;
    color: #fff;
    background: rgba(6, 20, 24, 0.55);
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 6px;
    padding: 14px 56px;
    cursor: pointer;
    transition: background 150ms ease, box-shadow 150ms ease, transform 80ms ease;
}
.windy-play:hover,
.windy-play:focus-visible {
    background: rgba(255, 120, 50, 0.25);
    box-shadow: 0 0 28px rgba(255, 140, 70, 0.55);
    outline: none;
}
.windy-play:active { transform: scale(0.97); }

.windy-version {
    margin-top: 26px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    opacity: 0.6;
    text-transform: uppercase;
}

.windy-status {
    position: absolute;
    bottom: 7%;
    left: 0;
    right: 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    letter-spacing: 0.08em;
}
