body.theme-birthday {
    --brand: #b81743;
    --brand-600: #971436;
    --birthday-cream: #fff8ef;
    --birthday-ink: #36132b;
    --birthday-pink: #ffd4e4;
    --birthday-yellow: #ffdb68;
    background: var(--birthday-cream);
}

.theme-birthday > header {
    background: #fff8eff5;
    border-bottom: 3px solid var(--brand);
}
.theme-birthday #site-header .site-brand span { color: var(--ink); }

.birthday-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: var(--birthday-cream);
    background: radial-gradient(ellipse at 90% 9%, #d93b68 0, transparent 55%), linear-gradient(120deg, #8e1538, #b81743 56%, #aa1744);
    border-bottom: 4px solid var(--birthday-yellow);
}
.birthday-hero::before {
    content: '';
    position: absolute;
    width: min(68vw, 760px);
    aspect-ratio: 1;
    top: -46%;
    right: -10%;
    border: 1px solid #ffe1a52b;
    border-radius: 50%;
    box-shadow: 0 0 0 24px #ffe1a507, 0 0 0 90px #ffe1a505;
    pointer-events: none;
    z-index: -1;
}
.birthday-hero::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 8px;
    background: repeating-linear-gradient(90deg, #ffd1df 0 22px, transparent 22px 43px, #ffda73 43px 65px, transparent 65px 88px);
    opacity: .5;
    pointer-events: none;
}
.birthday-confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: -1; }
.birthday-confetti span { position: absolute; width: 7px; height: 16px; border-radius: 2px; background: #ffdb68; opacity: .65; transform: rotate(var(--party-turn, -25deg)); animation: birthday-confetti-arrive 1.5s ease-out both; }
.birthday-confetti span:nth-child(1) { left: 3%; top: 20%; --party-turn: -24deg; }
.birthday-confetti span:nth-child(2) { left: 41%; top: 9%; --party-turn: 32deg; background: #ffd4e4; animation-delay: .15s; }
.birthday-confetti span:nth-child(3) { left: 48%; top: 72%; --party-turn: -40deg; animation-delay: .28s; }
.birthday-confetti span:nth-child(4) { right: 5%; top: 23%; --party-turn: 25deg; background: #ffd4e4; animation-delay: .08s; }
.birthday-confetti span:nth-child(5) { left: 12%; bottom: 11%; width: 6px; height: 6px; border-radius: 50%; background: #ffd4e4; animation-delay: .35s; }
.birthday-confetti span:nth-child(6) { right: 29%; bottom: 7%; --party-turn: 60deg; animation-delay: .2s; }
.birthday-confetti span:nth-child(7) { left: 57%; top: 18%; width: 5px; height: 5px; border-radius: 50%; background: #ffd4e4; }
.birthday-confetti span:nth-child(8) { right: 3%; bottom: 22%; width: 5px; height: 5px; border-radius: 50%; animation-delay: .4s; }

.birthday-hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    align-items: center;
    gap: clamp(1.75rem, 5vw, 4rem);
    width: min(72rem, calc(100% - 3rem));
    margin-inline: auto;
    padding-block: clamp(2.2rem, 4.8vw, 4rem);
}
.birthday-copy { min-width: 0; }
.birthday-copy .birthday-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    margin: 0 0 19px;
    padding: 6px 10px;
    border: 1px solid #ffd99466;
    border-radius: 99px;
    color: #ffe6b1;
    background: #5b0f2e26;
    font-size: .64rem;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}
.birthday-eyebrow > span { font-size: .9rem; line-height: 1; color: #ffdb68; }
.birthday-copy h1, .theme-birthday .menu-heading h2 { font-family: 'Lobster Two', Georgia, serif; font-weight: 700; }
.birthday-copy h1 { margin: 0; font-size: clamp(2.5rem, 5.3vw, 4.85rem); line-height: 1.04; text-wrap: balance; letter-spacing: -.02em; }
.birthday-copy h1 span { display: block; color: var(--birthday-yellow); }
.birthday-copy > p:not(.birthday-eyebrow) { max-width: 29rem; margin: 1.1rem 0 1.6rem; color: #fff1e7; font-size: clamp(.92rem, 1.25vw, 1.05rem); line-height: 1.6; }
.birthday-actions { display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px; }
.birthday-menu-link, .birthday-game-link { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: .72rem 1.15rem; border-radius: 13px; font-size: .83rem; line-height: 1.35; font-weight: 750; text-decoration: none; transition: background .18s, box-shadow .18s; }
.birthday-menu-link { border: 1.5px solid #572039; background: var(--birthday-yellow); color: var(--birthday-ink); box-shadow: 0 3px 0 #641632; }
.birthday-menu-link:hover { background: #ffe89b; box-shadow: 0 4px 0 #641632; }
.birthday-game-link { border: 1px solid #ffedca77; background: #fff8ef0b; color: #fff8ef; }
.birthday-game-link:hover { background: #fff8ef20; }
.birthday-menu-link:focus-visible, .birthday-game-link:focus-visible { outline: 3px solid #fff3d5; outline-offset: 4px; }
.birthday-picture { position: relative; min-width: 0; max-width: 500px; padding: 7px; margin: 5px 10px 7px 0; border: 1px solid #fff2d8; border-radius: 29px; background: #fff7e9; box-shadow: 9px 12px 0 #67122f66; animation: birthday-picture-arrive .7s ease-out both; }
.birthday-picture::before { content: ''; position: absolute; inset: -10px; z-index: -1; border: 1px solid #ffdc8970; border-radius: 33px; transform: rotate(4deg); pointer-events: none; }
.birthday-picture img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 22px; }
.birthday-picture-stamp { pointer-events: none; position: absolute; top: -14px; right: -13px; display: grid; align-content: center; width: 81px; height: 81px; border: 3px solid #fff2d8; border-radius: 50%; background: #ffdb68; color: #7f203c; box-shadow: 0 3px 0 #64163244; font: 700 1.35rem/1.03 'Lobster Two', Georgia, serif; text-align: center; transform: rotate(9deg); }
.birthday-picture-stamp > span { display: block; }
.birthday-star { position: absolute; color: var(--birthday-yellow); line-height: 1; pointer-events: none; animation: birthday-sparkle 2.3s ease-out both; }
.birthday-star-large { top: 20%; left: -.35em; font-size: clamp(2rem, 4vw, 3.4rem); }
.birthday-star-small { bottom: -.23em; right: 18%; font-size: clamp(1.7rem, 3vw, 2.7rem); animation-delay: .18s; }
@keyframes birthday-sparkle { 0% { opacity: 0; transform: scale(.45) rotate(-22deg); } 38% { opacity: 1; transform: scale(1.12) rotate(4deg); } 100% { opacity: 1; transform: scale(1) rotate(0); } }
@keyframes birthday-confetti-arrive { from { opacity: 0; transform: translateY(-22px) rotate(calc(var(--party-turn, -25deg) - 35deg)); } to { opacity: .65; transform: translateY(0) rotate(var(--party-turn, -25deg)); } }
@keyframes birthday-picture-arrive { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }

.theme-birthday .menu-heading { background: linear-gradient(120deg, #fff2df, #fff5f5); border: 1px solid #edc9d0; border-top: 3px solid #e6b45c; border-radius: 20px; box-shadow: 0 3px 0 #edd4cb33; }
.theme-birthday .menu-heading h2 { color: #8e2445; font-size: clamp(2.1rem, 4.7vw, 3.35rem); letter-spacing: 0; }
.theme-birthday .menu-heading p { color: #724955; }
.theme-birthday #tabs-rail button { min-height: 44px; }
.theme-birthday #tabs-rail button:not(.text-white) { background-color: #fbe8ed; color: #76314c; }
.theme-birthday #tabs-rail button:not(.text-white):hover { background-color: #f7d4df; }
.theme-birthday #tabs-rail button.text-white { box-shadow: 0 3px 0 #6a14302b; }
.theme-birthday #product-grid article.card { border: 1px solid #ebc6d0; box-shadow: 0 4px 0 #f3dce366; }
.theme-birthday #product-grid article.card:hover { border-color: #be4c6e; box-shadow: 0 5px 0 #ebc6d0; }
.theme-birthday > footer { border-top: 4px solid var(--birthday-yellow); background-color: #411634; }
.theme-birthday #menu { scroll-margin-top: 4.5rem; }
.theme-birthday #hero-section { position: relative; }

@media (max-width: 767px) {
    .birthday-hero-inner { grid-template-columns: minmax(0, 1fr); gap: 21px; width: min(32rem, calc(100% - 2rem)); padding-block: 22px 27px; }
    .birthday-copy .birthday-eyebrow { margin-bottom: 12px; padding: 5px 9px; font-size: .58rem; letter-spacing: .09em; }
    .birthday-copy h1 { font-size: clamp(2.12rem, 8.8vw, 3.1rem); line-height: 1.03; text-wrap: wrap; }
    .birthday-copy > p:not(.birthday-eyebrow) { max-width: 29rem; margin: 12px 0 17px; font-size: .87rem; line-height: 1.5; }
    .birthday-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 9px; }
    .birthday-actions > :only-child { grid-column: 1 / -1; justify-self: start; min-width: 150px; }
    .birthday-menu-link, .birthday-game-link { padding: 10px 9px; gap: 6px; min-height: 46px; font-size: .76rem; border-radius: 12px; white-space: nowrap; }
    .birthday-picture { width: min(100%, 430px); margin: 2px auto 3px; padding: 5px; border-radius: 23px; box-shadow: 5px 6px 0 #67122f66; }
    .birthday-picture::before { inset: -6px; border-radius: 26px; transform: rotate(2.5deg); }
    .birthday-picture img { aspect-ratio: 1.9; max-height: 193px; border-radius: 18px; }
    .birthday-picture-stamp { top: -10px; right: -5px; width: 60px; height: 60px; font-size: 1.05rem; border-width: 2px; }
    .birthday-star-large { top: 35%; left: -.17em; font-size: 1.9rem; }
    .birthday-star-small { bottom: -.18em; right: 20%; font-size: 1.65rem; }
    .birthday-confetti span:nth-child(2) { left: 88%; top: 8%; }
    .birthday-confetti span:nth-child(3) { left: 5%; top: 57%; }
    .birthday-confetti span:nth-child(7) { display: none; }
}
@media (min-width: 768px) and (max-width: 959px) { .birthday-hero-inner { gap: 28px; } .birthday-copy h1 { font-size: 2.8rem; } .birthday-picture-stamp { width: 67px; height: 67px; font-size: 1.15rem; } }
@media (prefers-reduced-motion: reduce) {
    .birthday-star, .birthday-picture, .birthday-confetti span,
    .theme-birthday .cart-anim-icon,
    .theme-birthday #open-cart:hover .cart-anim-icon,
    .theme-birthday #open-cart:active .cart-anim-icon { animation: none; }
    .birthday-menu-link, .birthday-game-link,
    .theme-birthday #product-grid article.card,
    .theme-birthday #product-grid article.card img { transition: none; }
}

/* Keep the birthday menu scannable on a narrow phone. The product sheet retains the full copy. */
@media (max-width: 767px) {
    .theme-birthday #product-grid { column-gap: 12px; row-gap: 14px; }
    .theme-birthday #product-grid article.card { min-width: 0; border-radius: 20px; }
    .theme-birthday #product-grid .product-card-copy { width: 100%; min-width: 0; padding: 12px; }
    .theme-birthday #product-grid .product-card-name {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        overflow: hidden;
        padding-right: 0;
        font-size: clamp(.875rem, 3.7vw, 1rem);
        font-weight: 750;
        line-height: 1.3;
        color: #492331;
        overflow-wrap: anywhere;
    }
    .theme-birthday #product-grid .product-card-description {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
        margin-bottom: 12px;
        font-size: .78rem;
        line-height: 1.45;
        color: #75616b;
        overflow-wrap: anywhere;
    }
    .theme-birthday #product-grid .product-card-copy > .mt-auto { margin-bottom: 9px; }
    .theme-birthday #product-grid .product-card-actions { min-height: 43px; gap: 5px; padding-top: 9px; border-color: #f1dfe4; }
    .theme-birthday #product-grid .product-card-action-label {
        min-width: 0;
        color: #902848;
        font-size: .7rem;
        line-height: 1.3;
        font-weight: 750;
        letter-spacing: 0;
        text-transform: none;
        overflow-wrap: anywhere;
    }
    .theme-birthday #product-grid .product-card-actions > div { flex: 0 0 30px; width: 30px; height: 30px; color: #902848; background: #fbe8ed; }
    .theme-birthday #product-grid .product-card-actions > div svg { flex: 0 0 auto; width: 16px; height: 16px; }
    .theme-birthday #product-grid article.card:hover .product-card-action-label { color: #7b1736; }
}
