
.hitmix-birthday[hidden],
.hitmix-birthday button[hidden] { display: none !important; }

.hitmix-birthday {
    margin-block: 14px;
}
.birthday-inner {
    --birthday-ink: #140b2c;
    --birthday-paper: #fff9ee;
    --birthday-gold: #ffda70;
    --birthday-pink: #ff799f;
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    overflow: hidden;
    min-height: 293px;
    padding: clamp(22px, 4vw, 48px);
    border-radius: 16px;
    color: var(--birthday-paper);
    background: radial-gradient(ellipse at 79% 100%, #582674 0%, transparent 59%), #191034;
}
.birthday-copy { position: relative; z-index: 2; }
.hitmix-birthday .birthday-intro {
    margin: 0 0 12px;
    color: #e9dcff;
    font: italic 1.12rem/1.4 Georgia, serif;
}
.hitmix-birthday h2 {
    margin: 0;
    color: var(--birthday-paper);
    font: 900 clamp(2.2rem, 4.4vw, 4.05rem)/.99 Arial, sans-serif;
    letter-spacing: -.045em;
}
.hitmix-birthday h2 span { display: block; color: var(--birthday-gold); }
.birthday-greeting p { margin: 16px 0 0; color: var(--birthday-paper); font-size: .95rem; }
.birthday-replay,
.birthday-dismiss {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--birthday-paper);
    background: #2d1d4c;
    border: 1px solid #a688c5;
    min-height: 44px;
    cursor: pointer;
}
.birthday-dismiss {
    position: absolute;
    right: 12px;
    top: 12px;
    z-index: 3;
    min-width: 44px;
    border-radius: 50%;
}
.birthday-replay { gap: 8px; padding: 7px 14px; margin-top: 20px; border-radius: 8px; font: 700 .85rem/1.2 Verdana, sans-serif; }
.birthday-replay svg,
.birthday-dismiss svg { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.birthday-dismiss:hover,
.birthday-replay:hover { background: #4b2a68; }
.birthday-inner button:focus-visible { outline: 3px solid var(--birthday-gold); outline-offset: 3px; }
.birthday-art { position: relative; width: 100%; max-width: 475px; aspect-ratio: 1.62; justify-self: center; font-family: Arial, sans-serif; }
.birthday-sleeve {
    position: absolute;
    z-index: 2;
    top: 8%;
    left: 6%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 54%;
    aspect-ratio: 1;
    padding: 5%;
    overflow: hidden;
    border: 1px solid #ffd363;
    border-radius: 4px;
    box-shadow: 0 11px 28px #150d32a0;
    transform: rotate(-8deg);
    color: #211035;
    background:
        radial-gradient(circle at 116% 105%, transparent 33%, #ffe393 33.5% 36%, transparent 36.5% 43%, #fffbbe 43.5% 45%, transparent 45.5%),
        linear-gradient(156deg, #ffe383 9%, #ff965a 54%, #ff5c8b 88%);
}
.birthday-sleeve-station { font-size: clamp(.58rem, 1vw, .79rem); font-weight: 900; letter-spacing: .08em; }
.birthday-sleeve-title { font: 900 italic clamp(1.35rem, 3.3vw, 2.9rem)/.83 Arial, sans-serif; letter-spacing: -.045em; }
.birthday-sleeve-artist { font-size: clamp(.71rem, 1.35vw, 1.03rem); font-weight: 800; }
.birthday-record {
    position: absolute;
    top: 7%;
    right: 3%;
    width: 53%;
    aspect-ratio: 1;
}
.birthday-disc {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid #a785db;
    box-shadow: 0 10px 28px #0e082eb0;
    transform: rotate(10deg);
    background:
        repeating-radial-gradient(circle, #09091b00 0 2px, #c9a8ff42 2.5px 3px, #09091b00 3.5px 5px),
        conic-gradient(from 18deg, #17102e, #6d388a, #160e2b 27%, #110c26 60%, #624da1 82%, #17102e);
}
.birthday-disc-label {
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 4%;
    width: 38%;
    aspect-ratio: 1;
    border-radius: 50%;
    color: #1e1130;
    background: #65e1ff;
    border: 3px double #152c5d;
    font: 900 clamp(.48rem, 1.25vw, .84rem)/1 Arial, sans-serif;
}
.birthday-disc-label i { width: 9%; aspect-ratio: 1; border-radius: 50%; background: #13102b; }
.birthday-disc-label small { font-size: .78em; }
.birthday-notes { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.birthday-notes span {
    position: absolute;
    top: var(--note-y);
    left: var(--note-x);
    color: var(--note-color, #ffda70);
    font: 700 clamp(1rem, 3.3vw, 2.35rem)/1 Arial, sans-serif;
    transform: rotate(var(--note-turn));
    text-shadow: 0 2px 3px #170c38;
}
.birthday-notes span:nth-child(1) { --note-x: 64%; --note-y: 0%; --note-turn: -21deg; --note-color: #ff8ab3; }
.birthday-notes span:nth-child(2) { --note-x: 82%; --note-y: -1%; --note-turn: 21deg; --note-color: #7fe6ff; }
.birthday-notes span:nth-child(3) { --note-x: 92%; --note-y: 23%; --note-turn: 17deg; }
.birthday-notes span:nth-child(4) { --note-x: 84%; --note-y: 69%; --note-turn: -15deg; --note-color: #fba4e6; }
.birthday-notes span:nth-child(5) { --note-x: 57%; --note-y: 78%; --note-turn: 12deg; --note-color: #84edff; }
.birthday-notes span:nth-child(6) { --note-x: 72%; --note-y: 84%; --note-turn: 18deg; }

@media (max-width: 680px) {
    .hitmix-birthday { margin-block: 10px; }
    .birthday-inner { grid-template-columns: 1fr; padding: 14px 16px 20px; }
    .birthday-art { grid-row: 1; width: min(92%, 355px); margin: 4px 0 10px; }
    .birthday-copy { text-align: center; }
    .hitmix-birthday .birthday-intro { font-size: 1rem; margin-bottom: 7px; }
    .hitmix-birthday h2 { font-size: clamp(2rem, 8vw, 3rem); }
    .birthday-sleeve-title { font-size: clamp(1.3rem, 6.1vw, 2.35rem); }
    .birthday-replay { margin-top: 14px; }
    .birthday-greeting p { margin-top: 10px; font-size: .88rem; }
    .birthday-dismiss { top: 6px; right: 6px; }
}

/* Keep the cover and the reveal tied to the audio clock. */
.birthday-teaser[hidden],
.hitmix-birthday [data-birthday-status][hidden] { display: none !important; }
.birthday-audio-ready .birthday-copy { z-index: auto; }
.birthday-audio-ready .birthday-art { z-index: 0; opacity: var(--birthday-sleeve, 0); }
.birthday-audio-ready .birthday-record { opacity: var(--birthday-record, 0); transform: translateX(var(--birthday-roll, -74%)); }
.birthday-audio-ready .birthday-disc { transform: rotate(var(--birthday-turn, -238deg)); }
.birthday-audio-ready .birthday-notes {
    opacity: var(--birthday-notes, 0);
    transform: scale(var(--birthday-spread, .12));
    transform-origin: 69% 43%;
}
.birthday-audio-ready .birthday-greeting { opacity: var(--birthday-title, 0); }
.birthday-audio-ready audio { display: none; }
.birthday-frost {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    opacity: var(--birthday-frost, 1);
    background:
        radial-gradient(ellipse at 73% 16%, #bc82e470, transparent 62%),
        radial-gradient(ellipse at 21% 113%, #3daabd75, transparent 63%),
        linear-gradient(137deg, #2a224e, #4e3262 58%, #272640);
}
.birthday-audio-ready .birthday-frost { display: block; }
@supports (backdrop-filter: blur(18px)) {
    .birthday-frost {
        backdrop-filter: blur(18px);
        background:
            radial-gradient(ellipse at 74% 17%, #bc82e470, transparent 65%),
            radial-gradient(ellipse at 21% 113%, #3daabd70, transparent 63%),
            linear-gradient(137deg, #2a224ed9, #4e3262d5 58%, #272640d9);
    }
}
.birthday-teaser {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: grid;
    place-items: center;
    padding: 52px 17px;
    text-align: center;
}
.birthday-teaser h2 {
    color: #fff9ee;
    font-size: clamp(1.9rem, 4.1vw, 3.45rem);
    text-wrap: balance;
    text-shadow: 0 2px 14px #20112f;
}
.birthday-teaser .birthday-start {
    gap: 9px;
    margin-top: 16px;
    min-height: 48px;
    padding: 9px 20px;
    color: #211035;
    background: var(--birthday-gold);
    border-color: var(--birthday-gold);
    font-size: 1rem;
}
.birthday-teaser .birthday-start svg { fill: currentColor; stroke: none; }
.birthday-teaser .birthday-start:hover { background: #ffebaf; }
.birthday-teaser .birthday-start:focus-visible { outline-color: #fff9ee; }
.birthday-teaser .birthday-read {
    display: block;
    margin: 8px auto 0;
    min-height: 44px;
    background: transparent;
    border: none;
    text-decoration: underline;
    color: #fff9ee;
    cursor: pointer;
    font: inherit;
}
.birthday-dismiss { z-index: 5; }
.birthday-replay[data-birthday-transport] { position: relative; z-index: 3; }
.birthday-status { position: relative; z-index: 3; margin: 8px 0 0; color: #fff9ee; font-size: .85rem; }
.birthday-replay:disabled { cursor: wait; opacity: .85; }
.birthday-audio { width: min(100%, 320px); margin-top: 14px; }
