.ai-chat__halloween-row { padding: 10px 12px 0; }
.ai-chat__halloween-launch {
    display: block;
    width: 100%;
    padding: 0;
    border: 1px solid #b99853;
    border-radius: 10px;
    font: inherit;
    text-align: left;
    white-space: normal;
    cursor: pointer;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px #b9985333;
    background: linear-gradient(115deg, #100c10, #35101e);
    color: #fff4df;
    animation: halloween-promo-gold 9s ease-in-out infinite;
}
.ai-chat__halloween-content { display: flex; align-items: center; gap: 8px; padding: 9px 10px; }
.ai-chat__halloween-vaini { position: relative; flex: 0 0 54px; height: 62px; overflow: hidden; border-radius: 8px; }
.ai-chat__halloween-vaini img { position: absolute; width: 170px; max-width: none; height: auto; left: -34px; top: -21px; }
.ai-chat__halloween-copy { display: block; min-width: 0; }
.ai-chat__halloween-eyebrow { display: block; font-size: 10px; line-height: 1.3; letter-spacing: .6px; color: #e8c384; }
.ai-chat__halloween-title { display: block; margin-top: 4px; font-weight: bold; font-size: 17px; line-height: 1.15; }
.ai-chat__halloween-caption { display: block; margin-top: 4px; font-size: 12px; line-height: 1.25; color: #ead5aa; }
.ai-chat__halloween-cta { display: flex; align-items: center; justify-content: space-between; padding: 7px 12px; background: linear-gradient(100deg, #f3c66e, #e99a45); color: #291019; font-size: 14px; line-height: 1.2; font-weight: bold; }
.ai-chat__halloween-cta > span { font-size: 20px; line-height: 1; }
.ai-chat__halloween-launch:focus-visible { outline: 2px solid #b99853; outline-offset: 2px; }
.ai-chat__halloween-launch:hover,
.ai-chat__halloween-launch:focus-visible {
    background: linear-gradient(115deg, #1a1018, #49142a);
    color: #fff4df;
}
@keyframes halloween-promo-gold {
    0%, 86%, 100% { border-color: #b99853; box-shadow: inset 0 0 0 1px #b9985333; }
    93% { border-color: #efc77d; box-shadow: inset 0 0 0 1px #efc77d55, 0 0 5px #d6aa4933; }
}
@media (prefers-reduced-motion: reduce) {
    .ai-chat__halloween-launch { animation: none; }
}
.ai-chat--halloween .ai-chat__panel {
    grid-template-rows: auto minmax(0, 1fr);
    border: 5px solid #29151f;
    outline: 1px solid #b99853;
    background: #fff5e5;
}
.ai-chat--halloween .ai-chat__header { display: none; }
.halloween-quiz-header[hidden] { display: none; }
.halloween-quiz-header { position: relative; min-width: 0; background: #171318; }
.halloween-quiz-header > img { display: block; width: 100%; height: auto; }
.halloween-quiz-header__exit {
    position: absolute;
    left: 93.3%;
    top: 16%;
    transform: translate(-50%, -50%);
    width: 10%;
    min-width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}
.halloween-quiz-header__exit:focus-visible { outline: 2px solid #ffe2a3; outline-offset: 1px; }
.ai-chat--halloween .ai-chat__messages,
.ai-chat--halloween .ai-chat__quick-actions,
.ai-chat--halloween .ai-chat__suggestions,
.ai-chat--halloween .ai-chat__composer { display: none; }
.halloween-quiz[hidden] { display: none; }
.ai-chat--halloween .halloween-quiz {
    overflow-y: auto;
    overscroll-behavior: contain;
    min-height: 0;
    padding: 16px;
    color: #352029;
    background: #fff5e5;
    overflow-wrap: anywhere;
}
.halloween-quiz h2 { margin: 12px 0; font-size: 22px; line-height: 1.25; color: #54132a; }
.halloween-quiz h3 { font-size: 18px; }
.halloween-quiz p { margin: 10px 0; line-height: 1.45; color: #271920; }
.halloween-quiz__image {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 110px;
    border-radius: 12px;
    margin-bottom: 12px;
    text-align: center;
}
.halloween-quiz__image img { display: block; width: auto; height: auto; max-width: 100%; max-height: 210px; border-radius: 10px; object-fit: contain; }
.halloween-quiz__image [hidden] { display: none; }
.halloween-quiz__image-placeholder { padding: 12px; font-size: 14px; }
.halloween-quiz__ingredients { padding-left: 22px; line-height: 1.45; }
.halloween-quiz__ingredients li { margin: 6px 0; }
.halloween-quiz__button {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 12px;
    border: 1px solid #a9874d;
    border-radius: 8px;
    background: #58142c;
    color: #fff5e5;
    font: inherit;
    line-height: 1.35;
    white-space: normal;
    cursor: pointer;
}
.halloween-quiz__button:hover { background: #751e3b; }
.halloween-quiz__button:focus-visible { outline: 3px solid #a9874d; outline-offset: 2px; }
.halloween-quiz__button[aria-pressed="true"] { background: #fff0cc; color: #54132a; border: 2px solid #54132a; }
.halloween-quiz__button:disabled { opacity: .55; cursor: default; }
.halloween-quiz__answers .halloween-quiz__button { text-align: left; }
.halloween-quiz__navigation { display: flex; gap: 10px; }
.halloween-quiz__navigation > button { flex: 1; min-width: 0; }
.halloween-quiz progress { width: 100%; accent-color: #58142c; }
.halloween-quiz__name { display: block; margin: 14px 0; }
.halloween-quiz__name input,
.halloween-quiz__share-text { width: 100%; padding: 10px; border: 1px solid #a9874d; border-radius: 6px; background: #fff; color: #352029; font: inherit; font-size: 16px; }
.halloween-quiz__name input { margin-top: 6px; }
.halloween-quiz__products { border: 1px dashed #ad8b4d; padding: 8px; margin-top: 10px; border-radius: 8px; }
.halloween-quiz__products:empty { display: none; }
.halloween-quiz__products .ai-chat__product-carousel { min-width: 0; width: 100%; }
.halloween-quiz__products .ai-chat__products { margin: 0; }
@media (max-width: 767px) {
    /* Keep the title, face, question mark and X; crop only the lower decoration.
       A smaller centred image makes these fit in a frame 27% shorter. */
    .halloween-quiz-header { aspect-ratio: 1122 / 500; overflow: hidden; }
    .halloween-quiz-header > img { width: 80%; margin: 0 auto; }
    .halloween-quiz-header__exit { left: 84.64%; top: 17.49%; width: 8%; }
    .ai-chat--halloween .halloween-quiz { padding: 12px; }
    .halloween-quiz h2 { font-size: 20px; }
    .halloween-quiz .halloween-quiz__result-title { font-size: 25px; }
    .halloween-quiz__image img { max-height: 155px; }
}
