/* Scoped campaign styles. Existing shop header and footer are reused. */
#phs-raffle {
    position: relative;
    isolation: isolate;
    width: 100%;
    margin: 0;
    padding: 0 0 30px;
    overflow: hidden;
    background: #fae8dc;
    color: #191919;
    font-family: Arial, sans-serif;
    font-size: 17px;
    line-height: 1.4;
    letter-spacing: 0.3px;
}
#phs-raffle *,
#phs-raffle *::before {
    box-sizing: border-box;
}
#phs-raffle .raffle-scene {
    position: absolute;
    z-index: -1;
    inset: 0 0 auto;
    height: 850px;
    background: url('../img/raffle-2026/background-mobile.png') center top / 100% 100% no-repeat;
    mask-image: linear-gradient(#000 60%, transparent);
    -webkit-mask-image: linear-gradient(#000 60%, transparent);
}
#phs-raffle p {
    margin: 0;
}
#phs-raffle strong {
    font-weight: 700;
}
/* Never inherit the site's fixed mobile header or its footer styles. */
#phs-raffle .raffle-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    float: none;
    inset: auto;
    width: 100%;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 30px 0 48px;
    background: transparent;
    text-align: center;
    z-index: auto;
}
#phs-raffle .raffle-anniversary {
    font-size: 19px;
    line-height: 26px;
}
#phs-raffle .raffle-artwork {
    display: block;
    width: 540px;
    max-width: calc(100% - 44px);
    height: auto;
    position: static;
    float: none;
    flex: 0 0 auto;
    margin: 42px auto 0;
}
#phs-raffle .raffle-content {
    display: flow-root;
    position: relative;
    float: none;
    clear: both;
    width: 850px;
    max-width: calc(100% - 44px);
    margin: 0 auto;
}
#phs-raffle h1 {
    margin: 0 0 12px;
    color: inherit;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.28;
    text-align: center;
}
#phs-raffle .raffle-lead {
    text-align: center;
}
#phs-raffle h2 {
    margin: 28px 0 18px;
    color: inherit;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
}
#phs-raffle .raffle-steps {
    padding: 0;
    margin: 0;
    list-style: none;
    counter-reset: raffle-step;
}
#phs-raffle .raffle-steps > li {
    position: relative;
    padding-left: 40px;
    margin-bottom: 22px;
    counter-increment: raffle-step;
}
#phs-raffle .raffle-steps > li::before {
    content: counter(raffle-step) '.';
    position: absolute;
    left: 0;
    top: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #bed72a;
    font-weight: 700;
    line-height: 28px;
    text-align: center;
}
#phs-raffle .raffle-small {
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.35;
}
#phs-raffle .raffle-online {
    border-left: 3px solid #bed72a;
    padding-left: 15px;
    margin-top: 28px;
    font-size: 13px;
    line-height: 1.35;
}
#phs-raffle .raffle-online p {
    margin-top: 3px;
}
#phs-raffle .raffle-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: static;
    float: none;
    width: 100%;
    height: auto;
    margin: 24px 0 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    text-align: center;
    font-size: 13px;
}
#phs-raffle .raffle-actions > .raffle-button {
    margin-top: 22px;
}
#phs-raffle a {
    color: inherit;
}
#phs-raffle .raffle-terms {
    display: block;
    margin: 4px auto 0;
    text-decoration: underline;
}
#phs-raffle .raffle-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    width: 310px;
    max-width: 100%;
    padding: 10px 20px;
    border: 0;
    border-radius: 5px;
    background: #bed72a;
    color: #171717;
    font: 700 18px/1.35 Arial, sans-serif;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 180ms ease, color 180ms ease;
}
#phs-raffle .raffle-button:hover {
    background: #a7bf20;
}
#phs-raffle a:focus-visible,
#phs-raffle input:focus-visible,
#phs-raffle button:focus-visible {
    outline: 3px solid #576609;
    outline-offset: 3px;
}
/* Registration is visible without JavaScript; enhancement collapses it. */
#phs-raffle .raffle-registration {
    padding: 28px;
    margin: 30px auto 0;
    border: 1px solid #d9c8b9;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.6);
    scroll-margin-top: 30px;
}
#phs-raffle .raffle-registration[hidden] {
    display: none;
}
#phs-raffle .raffle-registration h2 {
    margin: 0 0 24px;
}
#phs-raffle .raffle-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}
#phs-raffle .raffle-field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
    font-size: 15px;
}
#phs-raffle .raffle-field input {
    width: 100%;
    height: 44px;
    padding: 8px 12px;
    border: 1px solid #b5a798;
    border-radius: 4px;
    background: #fff;
    color: #191919;
    font: 16px Arial, sans-serif;
}
#phs-raffle .raffle-field small {
    display: block;
    margin-top: 6px;
    font-size: 13px;
}
#phs-raffle .raffle-wide {
    grid-column: 1 / -1;
}
#phs-raffle .raffle-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    font-weight: 400;
}
#phs-raffle .raffle-consent input {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
}
#phs-raffle .raffle-consent a {
    text-decoration: underline;
}
#phs-raffle .raffle-submit {
    text-align: center;
}
#phs-raffle .raffle-notice,
#phs-raffle .raffle-error {
    padding: 16px;
    border-left: 3px solid #bed72a;
    background: #fff;
    font-size: 15px;
}
#phs-raffle .raffle-error {
    border-color: #a82222;
    margin-bottom: 20px;
}
#phs-raffle .raffle-error ul {
    margin: 0;
    padding-left: 18px;
}
#phs-raffle .raffle-honeypot {
    display: none;
}
@media (max-width: 767px) {
    #phs-raffle {
        font-size: 17px;
        padding-bottom: 30px;
    }
    #phs-raffle .raffle-scene {
        height: 350px;
        background-size: cover;
        mask-image: linear-gradient(#000 80%, transparent);
        -webkit-mask-image: linear-gradient(#000 80%, transparent);
    }
    #phs-raffle .raffle-hero {
        padding: 20px 0 38px;
    }
    #phs-raffle .raffle-anniversary {
        font-size: 17px;
        line-height: 22px;
    }
    #phs-raffle .raffle-artwork {
        width: 340px;
        margin: 21px auto 0;
    }
    #phs-raffle h1 {
        font-size: 24px;
        line-height: 28px;
        margin-bottom: 14px;
    }
    #phs-raffle .raffle-desktop-break {
        display: none;
    }
    #phs-raffle .raffle-lead {
        line-height: 24px;
    }
    #phs-raffle h2 {
        font-size: 21px;
        margin: 28px 0 22px;
    }
    #phs-raffle .raffle-steps > li {
        margin-bottom: 24px;
    }
    #phs-raffle .raffle-small {
        font-size: 13px;
        line-height: 17px;
    }
    #phs-raffle .raffle-online {
        margin-top: 28px;
    }
    #phs-raffle .raffle-actions {
        margin-top: 24px;
    }
    #phs-raffle .raffle-button {
        width: 290px;
    }
    #phs-raffle .raffle-registration {
        padding: 24px 16px;
    }
    #phs-raffle .raffle-form {
        grid-template-columns: minmax(0, 1fr);
    }
}
@media (prefers-reduced-motion: reduce) {
    #phs-raffle .raffle-button {
        transition: none;
    }
}

/* Registration help: typography inherits the form, image never exceeds its column. */
#phs-raffle .raffle-number-guide { border: 1px solid #dddcd6; border-radius: 6px; background: #f7f4ee; font-family: inherit; color: inherit; }
#phs-raffle .raffle-number-guide figcaption { margin: 0 0 14px; font-family: inherit; font-size: 13px; line-height: 1.5; }
#phs-raffle .raffle-number-guide figcaption strong { display: block; margin-bottom: 4px; font-size: 15px; font-weight: 700; }
#phs-raffle .raffle-number-guide figcaption > span { display: block; }
#phs-raffle .raffle-guide-open { overflow: hidden; border: 1px solid #dddcd6; border-radius: 4px; background: #fff; color: #20211e; text-decoration: none; cursor: zoom-in; }
#phs-raffle .raffle-guide-zoom { display: flex; justify-content: center; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; border-top: 1px solid #dddcd6; background: #eef2dc; font-family: inherit; font-size: 14px; font-weight: 700; line-height: 1.4; transition: background .2s ease; }
#phs-raffle .raffle-guide-open:hover .raffle-guide-zoom { background: #bed72a; }
#phs-raffle .raffle-guide-open:focus-visible { outline: 2px solid #697820; outline-offset: 3px; }
#raffle-guide-dialog { box-sizing: border-box; width: calc(100% - 32px); max-width: 1180px; max-height: 90vh; padding: 0; border: 0; border-radius: 8px; color: #20211e; background: #fff; box-shadow: 0 16px 60px #0006; }
#raffle-guide-dialog::backdrop { background: rgba(0,0,0,.75); }
#raffle-guide-dialog .raffle-guide-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; border-bottom: 1px solid #dddcd6; }
#raffle-guide-dialog .raffle-guide-bar strong { font-size: 16px; line-height: 1.4; }
#raffle-guide-dialog button { flex-shrink: 0; min-width: 44px; min-height: 44px; padding: 8px 12px; border: 1px solid #dddcd6; border-radius: 4px; background: #f7f4ee; color: #20211e; font: inherit; font-size: 14px; cursor: pointer; }
#raffle-guide-dialog .raffle-guide-scroll { overflow: auto; max-height: 65vh; overscroll-behavior: contain; }
#raffle-guide-dialog img { display: block; width: 1126px; max-width: none; height: auto; }
#raffle-guide-dialog p { margin: 0; padding: 12px 16px; font-size: 13px; line-height: 1.5; background: #f7f4ee; }
@media (max-width: 767px) {
    #phs-raffle .raffle-number-guide figcaption { font-size: 14px; }
    #raffle-guide-dialog { width: calc(100% - 16px); }
    #raffle-guide-dialog img { width: 100%; max-width: 100%; height: auto; }
    #raffle-guide-dialog .raffle-guide-scroll { overflow-x: hidden; }
}

#phs-raffle .raffle-guide-open picture { display: block; max-width: 100%; }
