/* Shared Angel theme. Curtain and gift-logo styles remain preview-only. */
@font-face { font-family: "Allura"; src: url("fonts/allura.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("fonts/dm-sans.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
}
:root {
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --font-welcome: "Allura", "Fraunces", cursive;
  --divider-flourish-image: url("divider-flourish.svg");
  --header-ornament-image: url("header-ornament.svg");
  --cream: #fff4ef;
  --paper: #fff8f4;
  --ink: #472737;
  --muted: #795664;
  --berry-950: #4b2034;
  --berry-800: #752c48;
  --berry-650: #a3365b;
  --berry-100: #fce4e9;
  --surface-blush: #f6dce3;
  --surface-rose: #efc6d2;
  --line: #dfb9c5;
  --shadow-sm: 0 8px 20px rgba(75,32,52,.06);
  --shadow-lg: 0 20px 48px rgba(75,32,52,.12);
  --radius-md: 16px;
  --radius-lg: 16px;
}
body { background: var(--page-background-image), var(--cream); font-optical-sizing: auto; }
body::before { display: none; }
::selection { color: var(--berry-950); background: var(--surface-rose); }
:focus-visible { outline-color: var(--berry-800); }
input, textarea { caret-color: var(--berry-650); }
html, .motd-stage, .result-modal { scrollbar-color: var(--berry-650) var(--surface-blush); scrollbar-width: thin; }
.theme-icon { display: block; width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.preview-notice { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .25rem 1rem; padding: .5rem 1rem; color: var(--paper); background: var(--berry-800); font-size: .75rem; text-align: center; }
.preview-notice strong { font-weight: 650; }
.preview-notice span { opacity: .95; }
.site-header { background: var(--cream); border: 0; backdrop-filter: none; }
.site-header::after { content: ""; position: absolute; inset: auto 0 -8px; height: 16px; background: var(--header-ornament-image) center / 240px 16px repeat-x; pointer-events: none; }
.brand { max-width: 19rem; font-weight: 550; }
.brand-mark, .auth-brand span { border-radius: 12px; background: var(--berry-800); box-shadow: none; }
.turn-pill { background: var(--surface-blush); border-color: transparent; box-shadow: none; }
.turn-pill > span:first-child { color: var(--berry-800); }
.turn-plus { background: var(--berry-800); }
.menu-toggle { border-radius: 12px; background: var(--berry-800); }
.language-switch button:hover, .language-switch button[aria-pressed="true"] { background: var(--surface-blush); }
.site-menu { border: 0; background: var(--paper); box-shadow: var(--shadow-lg); }
.site-menu > a:hover { background: var(--surface-blush); }
.page-shell { width: min(1120px, calc(100% - 3rem)); padding-block: clamp(2rem, 5vw, 4rem) 4rem; }
.hero { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 3rem; padding-block: .5rem 1rem; }
.hero .eyebrow { order: 2; margin: 0; text-transform: none; letter-spacing: 0; font-family: var(--font-display); font-size: 1rem; font-weight: 500; }
.hero > p:last-child { margin: 0 auto; max-width: 65ch; font-size: .95rem; }
.hero h1, .page-intro h1, .payment-heading h1, .auth-card h1 { letter-spacing: -.035em; font-weight: 450; line-height: 1.08; text-wrap: balance; }
.hero .motd-title { font-weight: 450; line-height: 1.08; }
.hero h1 { font-size: clamp(2.5rem, 7vw, 5rem); }
.hero #hero-title, .hero .motd-title { font-family: var(--font-welcome); font-weight: 400; font-style: italic; letter-spacing: 0; line-height: 1.35; text-wrap: nowrap; font-size: var(--motd-font-size, clamp(2rem, 7vw, 6rem)); }
.hero .motd-title { padding-block: .15em; }
.page-shell:focus { outline: none; }
.page-intro { display: flex; flex-direction: column; gap: .75rem; max-width: 760px; margin-bottom: 2rem; }
.page-intro .eyebrow { order: 2; margin: 0; letter-spacing: .05em; font-size: .75rem; }
.page-intro h1, .payment-heading h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
.page-intro > p:last-child { max-width: 65ch; margin: 0; font-size: .95rem; }
.section-heading > div, .stage-heading > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1rem; }
.section-heading .eyebrow, .stage-heading .eyebrow { order: 2; margin: 0; letter-spacing: .03em; font-size: .7rem; }
.section-heading h2, .stage-heading h2 { font-size: clamp(1.45rem, 3vw, 2rem); letter-spacing: -.02em; }
.section-heading > a { white-space: nowrap; }
.prize-showcase { margin-bottom: 2.5rem; }
.ornament-divider { height: clamp(1.5rem, 3vw, 2.5rem); background: var(--divider-flourish-image) center / 100% 100% no-repeat; pointer-events: none; }
.conveyor { padding: 1rem 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.conveyor::after { display: none; }
.mini-prize { padding: 0; border: 0; border-radius: 0; background: transparent; }
.mini-prize-art { border: 0; border-radius: 14px; background: var(--surface-blush); }
.mini-prize-art .theme-icon { width: 2rem; height: 2rem; color: var(--berry-650); }
.mini-prize p { padding-top: .25rem; color: var(--berry-950); font-size: .8rem; font-weight: 550; }
.motd-pause { border-color: var(--line); font-size: .8rem; }
.box-stage { max-width: 960px; margin: 0 auto; padding: clamp(1.25rem, 4vw, 2.5rem); border: 0; border-radius: 16px; background: var(--surface-blush); box-shadow: none; }
.box-stage::before, .box-stage::after { display: none; }
.stage-heading { align-items: center; }
.stage-hint { margin: .5rem 0 1.5rem; font-size: .875rem; }
.live-badge { font-weight: 650; }
.box-grid { max-width: 660px; gap: clamp(.75rem, 2.5vw, 2rem); padding: .75rem clamp(0rem, 2vw, 1.25rem); }
.lucky-box { filter: drop-shadow(0 7px 6px rgba(75,32,52,.1)); }
.lucky-box:hover { transform: translateY(-5px); filter: drop-shadow(0 12px 9px rgba(75,32,52,.14)); }
.box-lid { border: 1px solid var(--berry-650); border-radius: 7px; background: #d97998; box-shadow: none; }
.box-lid::before, .box-lid::after { border-width: 2px; border-color: var(--berry-800); }
.box-body { border: 1px solid var(--berry-650); border-radius: 7px 7px 12px 12px; background: var(--box-art-image), #cc688b; box-shadow: none; }
.box-body::before, .box-body::after { background: #f6c6d5; opacity: 1; }
.box-body i { border: 0; background: var(--paper); color: var(--berry-800); }
.box-body i .theme-icon { width: 55%; height: 55%; }
.box-body b { color: var(--paper); font-weight: 650; opacity: 1; }
.stage-footer { position: relative; border: 0; padding-top: 2.5rem; font-size: .8rem; }
.stage-footer::before { content: ""; position: absolute; inset: 0 0 auto; height: 1.75rem; background: var(--divider-flourish-image) center / 100% 100% no-repeat; pointer-events: none; }
.notice-card { border: 0; border-radius: 12px; background: var(--surface-blush); }
.notice-card > span { color: var(--berry-800); background: transparent; }
.catalogue-grid { gap: 1.5rem; }
.item-card { border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.item-art { border-radius: 16px; background: var(--surface-blush); }
.item-art .theme-icon, .empty-state .theme-icon { width: 2.5rem; height: 2.5rem; margin-inline: auto; color: var(--berry-650); }
.item-copy { padding: 1rem .125rem; }
.item-copy h2 { font-size: 1.35rem; font-weight: 450; }
.history-card { padding: 1rem 0; border: 0; border-radius: 0; border-bottom: 1px solid var(--line); background: transparent; box-shadow: none; }
.history-art { border-radius: 12px; background: var(--surface-blush); }
.history-copy h2 { font-size: 1.2rem; }
.history-copy time, .history-copy p { font-size: .8rem; }
.empty-state { padding: 3rem 1.5rem; border: 0; border-radius: 16px; background: var(--surface-blush); }
.profile-confirmation { border: 0; border-radius: 12px; background: var(--surface-blush); }
.profile-confirmation .eyebrow { margin-top: .5rem; order: 2; letter-spacing: .04em; }
.profile-confirmation > div { display: flex; flex-direction: column; }
.profile-confirmation h2 { font-size: 1.25rem; }
.profile-confirmation dl div { grid-template-columns: 6rem minmax(0, 1fr); }
.profile-confirmation dd { overflow-wrap: anywhere; }
.package-card { gap: 2rem; border: 0; border-radius: 16px; background: var(--surface-blush); }
.package-offer h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 450; }
.package-unit-price { font-size: 1rem; }
.quantity-control { border-color: var(--berry-650); background: var(--paper); }
.package-checkout { border-color: var(--line); }
.package-price strong { font-family: var(--font-display); font-size: 2.5rem; font-weight: 500; }
.payment-order-list a { border: 0; border-radius: 12px; background: var(--surface-blush); }
.button { border-radius: 12px; font-weight: 650; }
.button-primary { background: var(--berry-800); box-shadow: none; }
.button-primary:hover:not(:disabled) { background: var(--berry-950); }
.button-secondary { border-color: var(--berry-650); color: var(--berry-800); background: transparent; }
.button-secondary:hover { background: var(--surface-blush); }
.button:disabled { filter: none; opacity: .65; }
.payment-panel, .form-panel { max-width: 840px; border: 0; border-radius: 16px; background: var(--surface-blush); box-shadow: none; }
.form-panel .page-intro h1, .auth-card h1 { font-size: clamp(2rem, 5vw, 3rem); }
.stacked-form { gap: 1.25rem; }
.stacked-form label { font-size: .875rem; font-weight: 600; }
.stacked-form input, .stacked-form textarea, .stacked-form select { border-color: var(--berry-650); border-radius: 10px; background: var(--paper); }
.stacked-form input:hover, .stacked-form textarea:hover { border-color: var(--berry-800); }
.stacked-form .helptext, .stacked-form ul { font-size: .8rem; }
.stacked-form > .button { margin-top: .5rem; }
.profile-tabs { max-width: 840px; gap: .5rem 2rem; }
.qr-card { border: 0; border-radius: 12px; background: #fff; }
.payment-heading .eyebrow { margin-block: 1rem; }
.payment-status-note { background: var(--paper); }
.auth-page { display: block; place-items: normal; background: var(--surface-blush); }
.auth-page .language-bar { padding-block: .75rem; }
.auth-page .page-shell { min-height: auto; padding-top: clamp(1.5rem, 5vh, 4rem); }
.auth-card { width: min(100%, 510px); border: 0; border-radius: 16px; background: var(--paper); box-shadow: none; }
.auth-brand { margin-bottom: 2rem; font-weight: 500; }
.auth-card > .eyebrow { margin-bottom: 1rem; font-size: .85rem; letter-spacing: 0; text-transform: none; }
.result-modal { border: 0; border-radius: 16px; background: var(--surface-blush); }
.result-modal::before { display: none; }
.result-art { border-width: 8px; border-radius: 12px; background: var(--paper); box-shadow: none; }
.result-note { font-size: .9rem; }
.modal-close { width: 44px; border: 0; background: var(--paper); }
@media (min-width: 720px) {
  .package-grid, .recent-payments { max-width: 900px; margin-inline: auto; }
  .package-card { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .package-quantity { justify-self: end; }
  .site-header { min-height: 80px; }
}
@media (max-width: 520px) {
  .page-shell { width: calc(100% - 1.5rem); padding-top: 1.75rem; }
  .hero { gap: .75rem; margin-bottom: 2rem; }
  .hero > p:last-child { font-size: .875rem; }
  .section-heading, .stage-heading { gap: .75rem; }
  .section-heading > div, .stage-heading > div { gap: .375rem; }
  .section-heading a { font-size: .8rem; }
  .box-stage { padding: 1.25rem 1rem; }
  .box-grid { padding: .5rem 0; gap: .5rem; }
  .stage-heading { align-items: flex-start; }
  .stage-heading { flex-wrap: wrap; }
  .stage-heading > div { flex-basis: 100%; }
  .stage-footer { flex-direction: column; align-items: flex-start; gap: .375rem; }
  .package-card { gap: 1.5rem; }
  .package-price strong { font-size: 2rem; }
}
