/* Anniversary surfaces share one palette, independently of the active site theme. */
:root { --scratch-berry: #aa1642; --scratch-berry-dark: #811233; --scratch-ink: #371b2b; --scratch-cream: #fff9ef; --scratch-gold: #ffda70; --scratch-line: #ecd7d6; --scratch-muted: #725c66; }
.scratch-page, .scratch-announcement-wrap, .scratch-modal, .scratch-notice { color: var(--scratch-ink); font-family: 'Poppins', sans-serif; }
.scratch-page *, .scratch-modal *, .scratch-banner * { box-sizing: border-box; }
.scratch-page [hidden], .scratch-modal[hidden] { display: none !important; }
.scratch-page { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 28px 0 64px; }
.scratch-page h1, .scratch-page h2, .scratch-page h3, .scratch-page p, .scratch-modal p, .scratch-modal h2 { margin: 0; }
.scratch-page h1, .scratch-intro h1, .scratch-modal h2 { font-family: 'Lobster Two', Georgia, serif; font-weight: 700; line-height: 1.1; text-wrap: balance; }
.scratch-page h1 { font-size: clamp(2.25rem, 5.5vw, 3.6rem); }
.scratch-page h2 { font-size: clamp(1.5rem, 3.2vw, 2.2rem); font-weight: 750; line-height: 1.2; text-wrap: balance; }
.scratch-page h3 { font-size: 1.05rem; font-weight: 750; line-height: 1.35; }
.scratch-page p { line-height: 1.65; }
.scratch-back { display: inline-flex; align-items: center; min-height: 44px; gap: 8px; margin-bottom: 16px; color: var(--scratch-berry); font-size: .85rem; font-weight: 650; text-decoration: none; }
.scratch-back:hover { text-decoration: underline; }
.scratch-eyebrow { display: block; font-size: .68rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; line-height: 1.6; color: var(--scratch-berry); }
.scratch-muted { color: var(--scratch-muted); font-size: .86rem; line-height: 1.6; }
.scratch-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; border: 2px solid var(--scratch-berry); border-radius: 14px; padding: 11px 18px; background: var(--scratch-berry); color: #fff; font: 700 .88rem/1.4 'Poppins', sans-serif; text-align: center; text-decoration: none; cursor: pointer; transition: background .15s, box-shadow .15s; overflow-wrap: anywhere; }
.scratch-button:hover { color: #fff; background: var(--scratch-berry-dark); border-color: var(--scratch-berry-dark); box-shadow: 0 3px 0 #640d27; }
.scratch-button--secondary { background: transparent; color: var(--scratch-berry); border-color: #d8adb9; }
.scratch-button--secondary:hover { color: var(--scratch-berry-dark); background: #fff0f4; border-color: var(--scratch-berry); box-shadow: none; }
.scratch-button--full { width: 100%; }
.scratch-button:disabled { opacity: .65; cursor: wait; box-shadow: none; }
.scratch-page :is(a, button):focus-visible, .scratch-banner a:focus-visible, .scratch-modal :is(a, button):focus-visible, .scratch-notice :is(a, button):focus-visible { outline: 3px solid #9331a6; outline-offset: 4px; }
.scratch-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.scratch-intro { display: grid; grid-template-columns: 1.2fr .8fr; gap: 30px; align-items: center; padding: clamp(24px, 5vw, 56px); border: 1px solid var(--scratch-line); border-radius: 30px; background: radial-gradient(circle at 90% 20%, #ffe8bf, transparent 45%), var(--scratch-cream); overflow: hidden; }
.scratch-intro h1 { margin: 12px 0 18px; color: var(--scratch-berry); }
.scratch-intro-copy > p:not(.scratch-eyebrow) { max-width: 37rem; }
.scratch-intro .scratch-lead { margin-bottom: 18px; font-size: clamp(1.1rem, 2vw, 1.35rem); font-weight: 650; line-height: 1.4; }
.scratch-intro-copy > .scratch-button { margin-top: 24px; }
.scratch-phase { font-weight: 750; margin-bottom: 8px !important; }
.scratch-intro-art { display: grid; place-items: center; position: relative; padding: 16px; min-width: 0; }
.scratch-mini-ticket { display: flex; flex-direction: column; align-items: center; width: min(100%, 265px); padding: 22px; background: #fff; border: 2px solid var(--scratch-berry); border-radius: 20px; box-shadow: 9px 10px 0 #e9bdc7; transform: rotate(7deg); text-align: center; }
.scratch-mini-brand { color: var(--scratch-berry); font: 700 1.5rem/1.2 'Lobster Two', Georgia, serif; }
.scratch-mini-title { margin: 10px 0 15px; font-size: 1.8rem; font-weight: 800; line-height: 1.1; }
.scratch-mini-cover { display: grid; place-items: center; width: 100%; padding: 20px 5px; border-radius: 12px; color: #77304b; background: repeating-linear-gradient(135deg, #ffdb75, #ffdb75 14px, #ffe49a 14px, #ffe49a 16px); font-size: .8rem; font-weight: 700; }
.scratch-gift-icon { width: 70px; height: 70px; flex: none; }
.scratch-mini-cover .scratch-gift-icon { width: 60px; height: 60px; margin-bottom: 8px; }
.scratch-mini-footer { margin-top: 15px; color: var(--scratch-muted); font-size: .65rem; }
.scratch-art-star { position: absolute; z-index: 1; color: var(--scratch-berry); font-size: 4rem; line-height: 1; }
.scratch-art-star--one { left: -3%; top: 1%; }
.scratch-art-star--two { right: -3%; bottom: 2%; color: #c48117; }
.scratch-deadlines { display: grid; grid-template-columns: 1fr 1fr; margin: 20px 0 8px; padding: 20px 24px; gap: 20px; border: 1px solid var(--scratch-line); border-radius: 18px; background: #fff; }
.scratch-deadlines > div + div { border-left: 1px solid var(--scratch-line); padding-left: 24px; }
.scratch-deadlines strong { display: block; margin-top: 3px; font-size: .88rem; }
.scratch-section { margin-top: 48px; }
.scratch-section > h2 { margin-top: 5px; margin-bottom: 12px; }
.scratch-prize-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; margin-top: 24px; }
.scratch-prize { overflow: hidden; border: 1px solid var(--scratch-line); border-radius: 20px; background: #fff; }
.scratch-prize:only-child { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.scratch-prize:only-child .scratch-prize-image { height: 100%; min-height: 145px; }
.scratch-prize-image { display: grid; place-items: center; overflow: hidden; aspect-ratio: 4 / 3; background: #fff1d6; color: var(--scratch-berry); }
.scratch-prize-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.scratch-prize-copy { padding: 18px; }
.scratch-prize-copy p { margin-top: 6px; font-size: .77rem; }
.scratch-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding: 0; margin: 24px 0 0; list-style: none; }
.scratch-step-number { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; margin-bottom: 14px; border-radius: 50%; color: var(--scratch-berry); background: #ffe6bd; font-weight: 800; }
.scratch-steps p { margin-top: 10px; color: var(--scratch-muted); font-size: .85rem; }
.scratch-rules { padding: 26px; margin-top: 40px; border-radius: 20px; background: #faf4f1; border: 1px solid #eee1db; }
.scratch-rules h2 { font-size: 1.15rem; margin-bottom: 14px; }
.scratch-rules p, .scratch-rules li { font-size: .82rem; line-height: 1.7; }
.scratch-rules ul { padding-left: 20px; margin: 10px 0 0; list-style: disc; }
.scratch-rules li + li { margin-top: 6px; }
.scratch-description { white-space: pre-line; margin-bottom: 14px !important; }
.scratch-page-heading { margin-bottom: 28px; background: transparent; border: 0; box-shadow: none; }
.scratch-page-heading h1 { margin: 6px 0 12px; }
.scratch-page--ticket { max-width: 1000px; }
.scratch-ticket-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 32px; align-items: start; }
.scratch-ticket { overflow: hidden; border: 2px solid var(--scratch-berry); border-radius: 26px; background: #fffdf9; box-shadow: 0 7px 0 #f2d4dc; }
.scratch-ticket-heading { padding: 21px 24px 18px; color: #fff; background: radial-gradient(circle at top right, #d53b61, transparent 60%), var(--scratch-berry); }
.scratch-ticket-brand { display: block; font: 700 2rem/1.1 'Lobster Two', Georgia, serif; }
.scratch-ticket-caption { display: flex; justify-content: space-between; margin-top: 5px; color: #ffe4a5; font-size: .72rem; text-transform: uppercase; letter-spacing: .15em; font-weight: 700; }
.scratch-ticket-caption > span { font-size: 1.4rem; line-height: .8; }
.scratch-ticket-body { padding: 20px; }
.scratch-reveal-zone { display: grid; place-items: center; position: relative; min-height: 310px; border-radius: 18px; isolation: isolate; }
.scratch-unopened { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 300px; padding: 25px; text-align: center; border-radius: 18px; background: #fff1d6; color: var(--scratch-berry); }
.scratch-unopened > p { font-weight: 750; margin: 14px 0 10px; font-size: 1.15rem; }
.scratch-unopened > span { font-size: .78rem; }
.scratch-surface { position: absolute; inset: 0; z-index: 2; overflow: hidden; border-radius: 18px; box-shadow: inset 0 0 0 1px #d3aa55; }
.scratch-surface canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }
.scratch-result { width: 100%; padding: 10px 0 4px; text-align: center; outline: none; }
.scratch-result h2 { font-family: 'Lobster Two', Georgia, serif; font-size: 2.2rem; color: var(--scratch-berry); }
.scratch-result-star { display: block; padding: 0 0 10px; color: #b47b16; font-size: 4rem; line-height: 1; }
.scratch-result-prize { margin: 7px 0 12px !important; font-size: 1.2rem; font-weight: 750; overflow-wrap: anywhere; }
.scratch-result-picture { margin: 0 auto 12px; max-width: 290px; border-radius: 15px; overflow: hidden; background: var(--scratch-cream); }
.scratch-result-picture img { display: block; width: 100%; max-height: 160px; object-fit: cover; }
.scratch-code-block { margin-top: 16px; padding: 15px 12px; border-radius: 14px; background: #fff0d3; border: 1px dashed #cba656; }
.scratch-code-row { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; margin: 5px 0; }
.scratch-code-row strong { color: var(--scratch-ink); font: 800 clamp(1.3rem, 5.7vw, 1.75rem)/1.3 ui-monospace, monospace; letter-spacing: .1em; overflow-wrap: anywhere; }
.scratch-code-block .scratch-muted { font-size: .68rem; }
.scratch-stock-notice { margin-top: 12px !important; font-size: .76rem; }
.scratch-copy { border: 1px solid #d3ac6b; border-radius: 10px; background: #fffdf8; min-height: 44px; padding: 9px 12px; font-size: .75rem; font-weight: 750; color: var(--scratch-berry); cursor: pointer; }
.scratch-play { margin-top: 16px; }
.scratch-error { color: #a11736; font-size: .8rem; line-height: 1.6; }
.scratch-error:not(:empty) { margin-top: 12px; }
.scratch-access { padding-top: 18px; font-size: .85rem; }
.scratch-access .scratch-button { margin-top: 14px; }
.scratch-ticket-footer { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 14px 18px; border-top: 1px dashed #d5a3af; color: var(--scratch-muted); font-size: .62rem; text-align: center; }
.scratch-ticket-footer > span:nth-child(2) { color: var(--scratch-berry); font-size: 1.2rem; }
.scratch-ticket-dates { padding: 20px 5px 12px; color: var(--scratch-muted); font-size: .76rem; }
.scratch-ticket-dates strong { color: var(--scratch-ink); }
.scratch-save { padding: 20px; margin-top: 8px; border: 1px solid var(--scratch-line); border-radius: 18px; background: #fff; }
.scratch-save h2 { font-size: 1rem; }
.scratch-save p { margin: 8px 0 15px; font-size: .8rem; color: var(--scratch-muted); }
.scratch-save .scratch-button { font-size: .78rem; }
.scratch-redemption { padding: 28px; border: 1px solid var(--scratch-line); border-radius: 24px; background: var(--scratch-cream); }
.scratch-redemption h2 { margin: 8px 0 14px; font-family: 'Lobster Two', Georgia, serif; font-size: 2.3rem; }
.scratch-redemption > form { margin-top: 20px; }
.scratch-use-note { text-align: center; margin-top: 8px !important; font-size: .7rem; }
.scratch-use-list { list-style: none; padding: 0; margin: 24px 0 0; }
.scratch-use-list li { display: flex; gap: 12px; padding: 17px 0; border-top: 1px solid var(--scratch-line); }
.scratch-use-icon { display: grid; place-items: center; flex: 0 0 30px; height: 30px; border-radius: 50%; background: #f5dce4; color: var(--scratch-berry); font-size: .68rem; font-weight: 800; }
.scratch-use-list h3 { font-size: .9rem; }
.scratch-use-list p { font-size: .8rem; color: var(--scratch-muted); margin-top: 5px; }
.scratch-text-button { display: inline-block; min-height: 44px; margin-top: 5px; padding: 7px 0; background: none; border: 0; color: var(--scratch-berry); text-align: left; text-decoration: underline; font-size: .77rem; font-weight: 700; cursor: pointer; }
.scratch-small-print { margin-top: 12px !important; font-size: .69rem; color: var(--scratch-muted); }
.scratch-copy-status { color: #275a40; font-size: .8rem; margin-top: 12px !important; overflow-wrap: anywhere; }
.scratch-badge { display: inline-flex; align-items: center; width: fit-content; padding: 5px 9px; border-radius: 8px; color: #67515c; background: #f0e7eb; font-size: .67rem; font-weight: 750; line-height: 1.4; }
.scratch-badge--ready, .scratch-badge--available { color: #1f6241; background: #e0f1e6; }
.scratch-badge--pending, .scratch-badge--scheduled, .scratch-badge--reserved { color: #79501a; background: #fff0cc; }
.scratch-badge--expired, .scratch-badge--unavailable, .scratch-badge--out_of_stock, .scratch-badge--voided { color: #96344b; background: #fce6eb; }
.scratch-page--account { max-width: 980px; }
.scratch-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.scratch-filters a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 17px; border: 1px solid var(--scratch-line); border-radius: 12px; color: var(--scratch-muted); font-size: .8rem; font-weight: 700; background: #fff; text-decoration: none; }
.scratch-filters a[aria-current] { background: var(--scratch-berry); color: #fff; border-color: var(--scratch-berry); }
.scratch-account-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.scratch-account-ticket { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; align-items: center; gap: 20px; padding: 20px; border: 1px solid var(--scratch-line); border-radius: 20px; background: #fff; }
.scratch-account-ticket > .scratch-prize-image { border-radius: 13px; aspect-ratio: 1; }
.scratch-account-ticket .scratch-gift-icon { width: 48px; height: 48px; }
.scratch-account-copy h2 { margin: 8px 0 3px; font-size: 1.1rem; overflow-wrap: anywhere; }
.scratch-account-copy .scratch-muted { font-size: .73rem; }
.scratch-ticket-date { margin-top: 6px !important; font-size: .73rem; color: var(--scratch-muted); }
.scratch-account-ticket > .scratch-button { font-size: .78rem; }
.scratch-pagination { margin-top: 28px; }
.scratch-empty { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 44px 28px; text-align: center; background: var(--scratch-cream); border: 1px solid var(--scratch-line); border-radius: 24px; }
.scratch-empty > p { max-width: 34rem; }
.scratch-empty > .scratch-gift-icon { color: var(--scratch-berry); }
.scratch-empty h2 { font-size: 1.55rem; }
.scratch-notice { padding: 16px; margin: 14px 0; border: 1px solid #e8c6d1; border-radius: 16px; background: #fff4f7; font-size: .83rem; line-height: 1.6; }
.scratch-notice p + p { margin-top: 5px; }
.scratch-notice .scratch-button { margin-top: 10px; }
/* Announcements stay compact; the ticket and scratching surfaces are independent. */
.scratch-announcement-wrap { width: min(1184px, calc(100% - 32px)); margin: 18px auto; }
.scratch-banner { display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; align-items: center; gap: 20px; padding: 22px 26px; border: 1px solid #e8cdd3; border-radius: 22px; color: var(--scratch-ink); background: linear-gradient(110deg, #fff9ef, #fff0e0); box-shadow: 0 5px 20px #8a294708; }
.scratch-banner-symbol { display: grid; place-items: center; width: 60px; height: 66px; border: 1px solid #ebcba2; border-radius: 17px; color: var(--scratch-berry); background: #ffe4ae; transform: rotate(-5deg); }
.scratch-banner-symbol .scratch-gift-icon { width: 43px; height: 43px; }
.scratch-banner-copy { min-width: 0; }
.scratch-banner h2 { margin: 4px 0 7px; font-family: 'Lobster Two', Georgia, serif; font-size: clamp(1.5rem, 2.5vw, 1.9rem); line-height: 1.15; overflow-wrap: anywhere; color: var(--scratch-berry); }
.scratch-banner-copy > p:not(.scratch-eyebrow) { margin: 0; font-size: .82rem; line-height: 1.55; }
.scratch-banner-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin-top: 8px; }
.scratch-banner-deadline { display: block; color: var(--scratch-muted); font-size: .72rem; line-height: 1.5; }
.scratch-banner-tag { display: inline-block; padding: 3px 8px; border-radius: 7px; color: #6d4118; background: #ffe4a5; font-size: .64rem; font-weight: 750; line-height: 1.5; }
.scratch-banner .scratch-button { min-height: 46px; font-size: .82rem; white-space: normal; }
.scratch-modal { position: fixed; inset: 0; margin: auto; width: min(460px, calc(100% - 24px)); max-width: none; max-height: min(calc(100dvh - 24px), 760px); padding: 0; border: 1px solid #e7cbd0; border-radius: 25px; background: #fffdf8; color: var(--scratch-ink); box-shadow: 0 20px 80px #371b2b66; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; }
body:has(.scratch-modal[open]) { overflow: hidden; }
.scratch-modal::backdrop { background: #2a152b99; }
.scratch-modal-topbar { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 18px 10px 24px; color: #fff7e9; background: #a71841; box-shadow: 0 1px 0 #ffffff16; }
.scratch-modal-brand { min-width: 0; font: 700 1.65rem/1.2 'Lobster Two', Georgia, serif; }
.scratch-modal-close { flex: none; margin: 0; }
.scratch-modal-close button { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #ffffff80; border-radius: 50%; background: #fffdf8; color: var(--scratch-berry); cursor: pointer; font: 400 1.7rem/1 sans-serif; }
.scratch-modal-close button:hover { background: #ffe9c3; }
.scratch-modal-close button:focus-visible { outline-color: #ffdb68; outline-offset: 3px; }
.scratch-modal-art { display: flex; position: relative; min-height: 134px; align-items: center; justify-content: center; gap: 20px; padding: 10px 26px 24px; overflow: hidden; color: #fff5e1; background: radial-gradient(ellipse at 15% 90%, #d53f64, transparent 75%), #a71841; }
.scratch-modal-illustration { position: relative; display: grid; place-items: center; flex: 0 0 92px; width: 92px; height: 92px; }
.scratch-modal-art img { display: block; width: 92px; height: 88px; object-fit: cover; border: 3px solid #fff2d0; border-radius: 26px 22px 25px 21px; transform: rotate(-7deg); }
.scratch-modal-illustration > .scratch-gift-icon { width: 70px; height: 70px; }
.scratch-modal-spark { position: absolute; right: -10px; top: -2px; font-size: 1.85rem; line-height: 1; color: var(--scratch-gold); }
.scratch-modal-tag { max-width: 180px; padding: 9px 14px; color: var(--scratch-ink); background: var(--scratch-gold); border: 1px solid #ffeab1; border-radius: 15px; font-size: .81rem; font-weight: 800; line-height: 1.4; text-wrap: balance; }
.scratch-modal-copy { padding: 25px 27px 18px; }
.scratch-modal h2 { margin: 7px 0 13px; color: var(--scratch-berry); font-size: clamp(1.85rem, 7vw, 2.15rem); line-height: 1.12; overflow-wrap: anywhere; }
.scratch-modal-copy > p { font-size: .86rem; line-height: 1.6; overflow-wrap: anywhere; }
.scratch-modal-copy > .scratch-eyebrow { font-size: .66rem; }
.scratch-modal-copy > .scratch-muted { margin-top: 10px; font-size: .75rem; }
.scratch-modal-actions { margin-top: 21px; }
.scratch-modal-actions .scratch-button { min-height: 48px; margin: 0; }
.scratch-modal-later { display: block; min-height: 44px; width: 100%; margin-top: 4px; padding: 9px; border: 0; background: none; color: var(--scratch-muted); text-decoration: underline; text-underline-offset: 3px; font-size: .8rem; cursor: pointer; }
.is-revealed .scratch-result { animation: scratch-reveal .36s ease-out both; }
@keyframes scratch-reveal { from { opacity: .2; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) {
    .scratch-page { width: calc(100% - 32px); padding-top: 16px; }
    .scratch-intro { grid-template-columns: 1fr; padding: 26px 23px; gap: 18px; border-radius: 24px; }
    .scratch-intro-art { display: none; }
    .scratch-intro h1 { font-size: 2.65rem; }
    .scratch-intro .scratch-lead { font-size: 1.15rem; }
    .scratch-actions { gap: 10px; }
    .scratch-actions > a { flex: 1 1 100%; }
    .scratch-deadlines { grid-template-columns: 1fr; gap: 14px; padding: 18px 20px; }
    .scratch-deadlines > div + div { padding: 14px 0 0; border-left: 0; border-top: 1px solid var(--scratch-line); }
    .scratch-section { margin-top: 34px; }
    .scratch-prize-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .scratch-prize-copy { padding: 13px; }
    .scratch-prize-copy h3 { font-size: .9rem; }
    .scratch-prize-copy p { font-size: .7rem; }
    .scratch-steps { grid-template-columns: 1fr; gap: 20px; }
    .scratch-steps li { display: grid; grid-template-columns: 42px minmax(0, 1fr); column-gap: 14px; }
    .scratch-step-number { grid-row: span 2; margin: 0; }
    .scratch-steps p { margin-top: 6px; }
    .scratch-rules { padding: 22px; }
    .scratch-ticket-layout { grid-template-columns: 1fr; gap: 26px; }
    .scratch-page--ticket { max-width: 520px; }
    .scratch-page-heading { margin-bottom: 22px; }
    .scratch-ticket-body { padding: 16px; }
    .scratch-redemption { padding: 24px; }
    .scratch-account-ticket { grid-template-columns: 64px minmax(0, 1fr); gap: 13px; padding: 17px; }
    .scratch-account-ticket > .scratch-button { grid-column: 1 / -1; }
    .scratch-account-ticket > .scratch-prize-image { align-self: start; }
    .scratch-account-copy h2 { font-size: .98rem; }
    .scratch-banner { grid-template-columns: 44px minmax(0, 1fr); padding: 18px; gap: 14px; border-radius: 19px; }
    .scratch-banner-symbol { align-self: start; width: 44px; height: 50px; border-radius: 12px; }
    .scratch-banner-symbol .scratch-gift-icon { width: 32px; height: 32px; }
    .scratch-banner h2 { margin-top: 4px; font-size: 1.45rem; }
    .scratch-banner-copy > p:not(.scratch-eyebrow) { font-size: .8rem; }
    .scratch-banner .scratch-button { grid-column: 1 / -1; width: 100%; }
    .scratch-banner .scratch-eyebrow { font-size: .62rem; letter-spacing: .08em; }
}
@media (max-width: 360px) {
    .scratch-page { width: calc(100% - 24px); }
    .scratch-intro { padding: 22px 18px; }
    .scratch-intro h1 { font-size: 2.35rem; }
    .scratch-filters { display: grid; grid-template-columns: 1fr 1fr; }
    .scratch-code-row { gap: 8px; }
    .scratch-ticket-body { padding: 12px; }
    .scratch-redemption { padding: 20px; }
    .scratch-modal-topbar { padding-left: 20px; padding-right: 14px; }
    .scratch-modal-art { min-height: 112px; gap: 14px; padding: 5px 20px 20px; }
    .scratch-modal-illustration { flex-basis: 76px; width: 76px; height: 76px; }
    .scratch-modal-art img { width: 76px; height: 74px; border-radius: 21px; }
    .scratch-modal-illustration > .scratch-gift-icon { width: 61px; height: 61px; }
    .scratch-modal-tag { padding: 8px 11px; font-size: .74rem; }
    .scratch-modal-copy { padding: 21px 21px 14px; }
}
@media (prefers-reduced-motion: reduce) {
    .scratch-button, .scratch-result { transition: none; animation: none !important; }
}

/* Result details are outside the fixed face and open only after reveal. */
.scratch-reveal-zone .scratch-result { padding:0; }
.scratch-result .scratch-outcome-core h2 { margin:0; color:#8e294b; font-family:'Lobster Two',Georgia,serif; font-size:clamp(1.6rem,5vw,2rem); line-height:1.12; }
.scratch-result .scratch-outcome-core .scratch-result-prize { max-width:100%; margin:0!important; color:#492031; font:750 clamp(1.05rem,3.7vw,1.3rem)/1.3 system-ui,sans-serif; text-wrap:balance; }
.scratch-result .scratch-result-star { padding:0; font-size:3.6rem; line-height:1; color:inherit; }
.scratch-result .scratch-result-picture { width:68px; height:56px; margin:0; border-radius:15px; background:#fff9ee; box-shadow:0 2px 12px #6f3d1a12; }
.scratch-result .scratch-result-picture img { width:100%; height:100%; max-height:none; object-fit:cover; }
.scratch-result .scratch-outcome-core .scratch-badge { margin-top:2px; font-size:.68rem; max-width:100%; white-space:normal; }
.scratch-reveal-zone:not(.is-revealed) .scratch-result-support { display:none; }
.scratch-reveal-zone:not(.is-revealed) .scratch-result-prize { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; }
.scratch-result .scratch-code-block { margin-top:15px; padding:17px 14px; border:1px dashed #ccaa6c; border-radius:16px; background:linear-gradient(135deg,#fffdf8,#fff5df); }
.scratch-code-caption { display:block; color:#825c2b; font:750 .65rem/1.4 system-ui,sans-serif; letter-spacing:.09em; text-transform:uppercase; }
.scratch-result .scratch-code-row { gap:10px; margin:8px 0; }
.scratch-result .scratch-code-row strong { color:#842c48; font-size:clamp(1.35rem,6.2vw,1.8rem); letter-spacing:.14em; }
.scratch-result .scratch-code-row .scratch-copy { min-height:44px; padding:10px 13px; border:1px solid #dfbec9; border-radius:10px; color:#852c49; background:#fff; }
.scratch-result .scratch-stock-notice { margin-top:12px; padding:13px; border-radius:12px; background:#f9f1e5; text-align:left; line-height:1.55; }
.scratch-result[data-outcome="lost"] .scratch-result-prize { font-size:1rem; font-weight:500; color:#815767; max-width:25ch; }
@media(max-width:360px) { .scratch-result .scratch-code-block { padding:14px 10px; } .scratch-result .scratch-code-row { gap:8px; } .scratch-result .scratch-code-row strong { letter-spacing:.09em; } }

.scratch-result-support > .scratch-badge { display:inline-flex; max-width:100%; margin-top:15px; white-space:normal; }

@media (max-height: 440px) {
    .scratch-modal { width: min(540px, calc(100% - 24px)); }
    .scratch-modal-art { display: none; }
    .scratch-modal-copy { padding-top: 17px; }
    .scratch-modal h2 { font-size: 1.85rem; }
    .scratch-modal-actions { margin-top: 15px; }
}

/* Find an existing paper card. Theme tokens keep this page in either birthday palette. */
.scratch-page--access { max-width: 640px; }
.scratch-page--access .scratch-access-heading { margin: 0 0 25px; text-align: center; }
.scratch-page--access .scratch-access-emblem { display: inline-grid; place-items: center; width: 58px; height: 58px; margin-bottom: 14px; border: 1px solid var(--scratch-line); border-radius: 18px; background: var(--scratch-cream); color: var(--scratch-berry); transform: rotate(-5deg); }
.scratch-page--access .scratch-access-emblem .scratch-gift-icon { width: 38px; height: 38px; }
.scratch-page--access .scratch-access-heading .scratch-eyebrow { font-size: .62rem; letter-spacing: .1em; }
.scratch-page--access .scratch-access-heading h1 { margin: 9px 0 12px; color: var(--scratch-berry); font-size: clamp(2.15rem, 6vw, 3rem); }
.scratch-page--access .scratch-access-heading > p:last-child { max-width: 37ch; margin: 0 auto; color: var(--scratch-muted); font-size: .88rem; line-height: 1.6; }
.scratch-page--access .scratch-access-panel { padding: 27px; border: 1px solid var(--scratch-line); border-top: 3px solid var(--scratch-gold); border-radius: 24px; background: #fff; box-shadow: 0 8px 28px #251c1708; }
.scratch-page--access .scratch-access-camera { display: grid; gap: 12px; }
.scratch-page--access #scratch-access-start { margin-bottom: 20px; }
.scratch-page--access #scratch-access-start svg { width: 23px; height: 23px; flex: none; }
.scratch-page--access #scratch-access-video { display: block; width: 100%; max-height: 46dvh; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--scratch-line); border-radius: 15px; background: var(--scratch-ink); }
.scratch-page--access #scratch-access-stop { margin-bottom: 20px; }
.scratch-page--access .scratch-access-label { display: block; color: var(--scratch-ink); font-size: .9rem; line-height: 1.5; font-weight: 750; }
.scratch-page--access .scratch-access-hint { margin: 6px 0 13px; color: var(--scratch-muted); font-size: .76rem; line-height: 1.6; }
.scratch-page--access #scratch-access-value { display: block; width: 100%; min-width: 0; min-height: 52px; padding: 13px 14px; border: 1px solid var(--scratch-line); border-radius: 12px; background: var(--scratch-cream); color: var(--scratch-ink); font: 600 1rem/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; }
.scratch-page--access #scratch-access-value::placeholder { color: var(--scratch-muted); opacity: .8; font-weight: 400; }
.scratch-page--access #scratch-access-value:focus-visible { outline: 3px solid var(--scratch-berry); outline-offset: 3px; }
.scratch-page--access #scratch-access-value[aria-invalid="true"] { border-color: var(--scratch-berry); }
.scratch-page--access #scratch-access-form > .scratch-button { margin-top: 14px; }
.scratch-page--access .scratch-access-error { margin-top: 12px; color: var(--scratch-berry-dark); font-size: .8rem; line-height: 1.6; overflow-wrap: anywhere; }
.scratch-page--access .scratch-access-message:empty { display: none; }
.scratch-page--access .scratch-access-message:not(:empty) { margin-top: 16px; padding: 12px 14px; border-left: 3px solid var(--scratch-berry); border-radius: 0 10px 10px 0; background: var(--scratch-cream); color: var(--scratch-ink); font-size: .8rem; line-height: 1.6; overflow-wrap: anywhere; }
.scratch-page--access .scratch-access-reassurance { margin-top: 16px; color: var(--scratch-muted); font-size: .71rem; text-align: center; line-height: 1.6; }
.scratch-page--access .scratch-access-account { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 21px 4px; border-bottom: 1px solid var(--scratch-line); }
.scratch-page--access .scratch-access-account > div { min-width: 0; }
.scratch-page--access .scratch-access-account h2 { font-family: 'Poppins', sans-serif; font-size: .82rem; font-weight: 750; line-height: 1.5; text-wrap: wrap; }
.scratch-page--access .scratch-access-account p { margin-top: 4px; color: var(--scratch-muted); font-size: .75rem; line-height: 1.6; }
.scratch-page--access .scratch-access-account .scratch-entry-link { flex-shrink: 0; margin-top: 0; font-size: .77rem; }
.scratch-page--access .scratch-access-help { margin-top: 9px; color: var(--scratch-muted); }
.scratch-page--access .scratch-access-help summary { min-height: 48px; padding: 14px 4px; color: var(--scratch-berry); font-size: .81rem; font-weight: 700; cursor: pointer; list-style-position: inside; }
.scratch-page--access .scratch-access-help summary:focus-visible { outline: 3px solid var(--scratch-berry); outline-offset: 2px; border-radius: 6px; }
.scratch-page--access .scratch-access-help > div { padding: 0 4px 10px; font-size: .77rem; line-height: 1.65; }
.scratch-page--access .scratch-access-help ul { margin: 11px 0 0; padding-left: 18px; list-style: disc; }
.scratch-page--access .scratch-access-help li + li { margin-top: 8px; }
.scratch-page--access .scratch-access-help strong { color: var(--scratch-ink); font-weight: 700; }

/* Entry links fit under the hero actions without taking space from the menu. */
.scratch-entry-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 10px; color: var(--scratch-berry); font: 650 .8rem/1.5 'Poppins', sans-serif; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.scratch-entry-link:hover { text-decoration-thickness: 2px; }
.scratch-entry-link:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; border-radius: 4px; }
.scratch-entry-link > svg { flex: none; width: 20px; height: 20px; }
.theme-birthday .birthday-copy .scratch-entry-link { color: #fff; text-decoration-color: var(--birthday-yellow); }
.theme-birthday-red-gold .birthday-copy .scratch-entry-link { color: var(--brand-600); text-decoration-color: var(--birthday-yellow); }
.scratch-entry-home { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: min(1184px, calc(100% - 32px)); margin: 18px auto; padding: 16px 20px; border: 1px solid var(--scratch-line); border-radius: 18px; background: var(--scratch-cream); color: var(--scratch-ink); }
.scratch-entry-home p { margin: 0; font: 500 .82rem/1.6 'Poppins', sans-serif; }
.scratch-entry-home .scratch-entry-link { margin-top: 0; flex-shrink: 0; }

@media (max-width: 540px) {
    .scratch-page--access .scratch-access-heading { margin-bottom: 21px; }
    .scratch-page--access .scratch-access-panel { padding: 20px; border-radius: 20px; }
    .scratch-page--access .scratch-access-account { display: block; padding: 19px 2px 13px; }
    .scratch-page--access .scratch-access-account .scratch-entry-link { margin-top: 4px; }
    .scratch-entry-home { display: block; padding: 16px 18px 12px; }
    .scratch-entry-home .scratch-entry-link { margin-top: 3px; }
}
@media (max-width: 360px) {
    .scratch-page--access .scratch-access-panel { padding: 18px; }
    .scratch-page--access .scratch-access-heading .scratch-eyebrow { font-size: .58rem; letter-spacing: .07em; }
    .scratch-page--access #scratch-access-value { padding-inline: 10px; }
}

/* Compact prize list: no product artwork required. Quantities are the campaign totals. */
.scratch-prize-list { list-style:none; margin:24px 0 0; padding:0; border:1px solid var(--scratch-line); border-radius:18px; overflow:hidden; background:#fff; }
.scratch-prize-row { display:grid; grid-template-columns:48px minmax(0,1fr); gap:16px; align-items:start; padding:18px 20px; }
.scratch-prize-row + .scratch-prize-row { border-top:1px solid var(--scratch-line); }
.scratch-prize-quantity { display:flex; flex-direction:column; align-items:center; justify-content:center; min-height:48px; padding:5px; border-radius:12px; background:var(--scratch-cream); color:var(--scratch-berry); }
.scratch-prize-quantity strong { font-size:1.15rem; line-height:1.15; }
.scratch-prize-quantity span { font-size:.65rem; line-height:1.3; }
.scratch-prize-heading { display:flex; align-items:baseline; justify-content:space-between; gap:6px 16px; flex-wrap:wrap; }
.scratch-prize-heading h3 { margin:0; font-size:1rem; line-height:1.4; overflow-wrap:anywhere; }
.scratch-prize-value { color:var(--scratch-berry); font-size:.9rem; font-weight:750; white-space:nowrap; }
.scratch-prize-value small { color:var(--scratch-muted); font-size:.7rem; font-weight:400; }
.scratch-prize-details p { margin:6px 0 0; font-size:.8rem; line-height:1.55; }
@media(max-width:575px) { .scratch-prize-row { grid-template-columns:40px minmax(0,1fr); gap:12px; padding:15px 13px; } .scratch-prize-quantity { min-height:44px; } .scratch-prize-heading h3 { font-size:.95rem; } }

/* Order receipt: one numbered card per entitlement, with touch-friendly actions. */
.scratch-order-tickets { margin:20px 16px; padding:22px; border:1px solid #ecd8b1; border-radius:20px; background:linear-gradient(135deg,#fffaf0,#fff5f5); color:#302324; }
.scratch-order-heading { display:flex; align-items:flex-start; gap:14px; margin-bottom:18px; }
.scratch-order-heading > div { min-width:0; }
.scratch-order-heading h2 { margin:3px 0 5px; font-size:1.45rem; font-weight:800; line-height:1.25; }
.scratch-order-heading p:not(.scratch-eyebrow) { margin:0; font-size:.85rem; line-height:1.5; color:#6e5759; }
.scratch-order-icon { display:grid; place-items:center; width:48px; height:48px; flex:none; border-radius:14px; color:#a92738; background:#fff; border:1px solid #ecd8b1; }
.scratch-order-icon svg { width:28px; height:28px; }
.scratch-order-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr)); gap:12px; list-style:none; margin:0; padding:0; }
.scratch-order-card { display:flex; flex-direction:column; min-width:0; padding:16px; border:1px solid #eadcce; border-radius:14px; background:#fff; }
.scratch-order-card-top { display:flex; align-items:center; justify-content:space-between; gap:8px; flex-wrap:wrap; margin-bottom:12px; }
.scratch-order-number { font-size:.75rem; font-weight:750; color:#8e2434; }
.scratch-order-state { padding:4px 8px; border-radius:20px; background:#f4f1ed; color:#635457; font-size:.7rem; line-height:1.4; }
.scratch-order-state.is-ready { color:#206347; background:#eaf6ef; }
.scratch-order-card h3 { font-size:.9rem; font-weight:700; line-height:1.45; overflow-wrap:anywhere; margin:0 0 8px; }
.scratch-order-detail { margin:0 0 14px; color:#6e5759; font-size:.8rem; line-height:1.55; }
.scratch-order-card .scratch-button { width:100%; min-height:48px; margin-top:auto; padding:12px 10px; gap:8px; font-size:.8rem; line-height:1.4; white-space:normal; text-align:center; }
.scratch-order-help { display:flex; align-items:center; min-height:44px; text-decoration:underline; font-size:.8rem; }
.scratch-order-deadline { margin:10px 0 0; color:#756568; font-size:.7rem; line-height:1.5; }
.scratch-order-footnote { margin:14px 0 0; color:#756568; font-size:.75rem; line-height:1.6; }
@media(max-width:540px) { .scratch-order-tickets { margin:16px 12px; padding:16px 12px; border-radius:16px; } .scratch-order-heading { gap:10px; } .scratch-order-heading h2 { font-size:1.25rem; } .scratch-order-icon { width:40px; height:40px; } .scratch-order-card { padding:14px; } }

/* Separate ticket navigation from the scratch coating. */
[data-ticket-swipe] { min-width:0; touch-action:pan-y; }
.scratch-ticket-nav { padding:14px; margin-bottom:16px; border:1px solid var(--scratch-line); border-radius:18px; background:var(--scratch-cream); scroll-margin-top:90px; }
.scratch-ticket-nav-row { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.scratch-ticket-nav-arrow { display:grid; place-items:center; flex:none; width:48px; height:48px; border-radius:50%; border:1px solid var(--scratch-line); background:#fff; color:var(--scratch-berry); font-size:1.5rem; text-decoration:none; }
.scratch-ticket-nav-arrow:hover { background:var(--scratch-berry); color:#fff; }
.scratch-ticket-nav-arrow:focus-visible { outline:3px solid var(--scratch-berry); outline-offset:3px; }
.scratch-ticket-nav-arrow.is-disabled { opacity:.3; }
.scratch-ticket-nav-position { min-width:0; text-align:center; color:var(--scratch-ink); }
.scratch-ticket-nav-position p { margin:0; line-height:1.5; }
.scratch-ticket-nav-position strong { font-size:1.1rem; }
.scratch-ticket-nav-position span { color:var(--scratch-muted); font-size:.85rem; }
.scratch-ticket-nav-position .scratch-eyebrow { font-size:.6rem; letter-spacing:.08em; }
.scratch-ticket-nav-position progress { display:block; width:100%; height:4px; margin-top:8px; border:0; border-radius:4px; overflow:hidden; accent-color:var(--scratch-berry); }
.scratch-ticket-nav-position progress::-webkit-progress-bar { background:#eadbd6; }
.scratch-ticket-nav-position progress::-webkit-progress-value { background:var(--scratch-berry); }
.scratch-ticket-nav-position progress::-moz-progress-bar { background:var(--scratch-berry); }
.scratch-ticket-nav-hint { margin:10px 0 0; text-align:center; color:var(--scratch-muted); font-size:.72rem; line-height:1.5; }
