/* Chai illustration shared by the card, the badge and the popup. */
.pwb-chai { display: block; overflow: visible; }
.pwb-chai__steam path { fill: none; stroke: currentColor; stroke-width: 4; stroke-linecap: round; opacity: .75; transform-box: fill-box; transform-origin: 50% 100%; animation: pwb-steam 3s ease-in-out infinite; }
.pwb-chai__steam path:nth-child(2) { animation-delay: .7s; }
.pwb-chai__steam path:nth-child(3) { animation-delay: 1.4s; }
.pwb-chai__saucer { fill: var(--chai-saucer, rgba(255, 255, 255, .55)); }
.pwb-chai__handle { fill: none; stroke: var(--chai-cup, #fff); stroke-width: 8; stroke-linecap: round; }
.pwb-chai__cup { fill: var(--chai-cup, #fff); }
.pwb-chai__tea { fill: var(--chai-tea, #b8682f); }
.pwb-chai__heart { fill: var(--chai-heart, #f0506e); }
.pwb-chai--badge { width: 40px; height: 40px; color: #fff; }
.pwb-chai--mark { width: 30px; height: 30px; color: rgba(255, 255, 255, .85); --chai-saucer: rgba(255, 255, 255, .25); }
.pwb-chai--hero { position: relative; z-index: 1; width: min(178px, 70%); height: auto; color: #fff; filter: drop-shadow(0 22px 26px rgba(122, 52, 33, .28)); --chai-saucer: rgba(255, 246, 236, .72); }

/* Inline support card (share/result pages and footers). */
.pwb-support {
    --support-ink: #2a1a2f;
    --support-muted: #6a5d6d;
    --support-tea: #17684f;
    position: relative;
    isolation: isolate;
    box-sizing: border-box;
    width: min(1180px, calc(100% - 1.5rem));
    margin: clamp(2.4rem, 5vw, 4.5rem) auto;
    /* The percentage is of the column the card sits in, so a card placed in a
       narrow share-page column does not keep a footer-sized padding. */
    padding: min(clamp(1.5rem, 4vw, 3.2rem), 7%);
    display: grid;
    /* Sized by the card, not the viewport. The card lives both in full-width
       footers and in col-lg-7/8 share-page columns; a viewport breakpoint kept
       two columns in a 600px card and crushed the copy beside the 330px panel.
       Two columns only when both fit at 330px, otherwise one. */
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
    align-items: center;
    gap: clamp(1.5rem, 4vw, 3.6rem);
    container-type: inline-size;
    overflow: hidden;
    border: 1px solid rgba(146, 92, 52, .16);
    border-radius: 32px;
    color: var(--support-ink);
    background:
        radial-gradient(circle at 92% 0%, rgba(255, 196, 102, .34), transparent 36%),
        radial-gradient(circle at 0% 100%, rgba(255, 170, 178, .24), transparent 34%),
        linear-gradient(135deg, #fffdf8 0%, #fff6e6 52%, #fff0ec 100%);
    box-shadow: 0 28px 80px rgba(70, 36, 30, .14);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    text-align: left;
}
.pwb-support *, .pwb-support *::before, .pwb-support *::after { box-sizing: border-box; }
.pwb-support::before { content: ""; position: absolute; z-index: -1; width: 190px; height: 190px; right: -60px; top: -80px; border: 1px dashed rgba(146, 92, 52, .2); border-radius: 50%; pointer-events: none; }
.pwb-support__glow { position: absolute; z-index: -1; width: 230px; height: 230px; left: -110px; bottom: -150px; border-radius: 50%; background: rgba(255, 186, 92, .28); filter: blur(4px); }
.pwb-support__copy { min-width: 0; }
.pwb-support__eyebrow { display: inline-flex; align-items: center; gap: .45rem; margin-bottom: .85rem; padding: .38rem .75rem; border-radius: 999px; color: #9a3d55; background: rgba(240, 80, 110, .09); font-size: .72rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.pwb-support__eyebrow span { font-size: .95rem; letter-spacing: 0; }
.pwb-support .pwb-support__copy h2 { max-width: 640px; margin: 0 0 .85rem; color: var(--support-ink); font: 850 clamp(1.95rem, 3.6vw, 3rem)/1.04 Georgia, "Times New Roman", serif; font-size: clamp(1.95rem, 4.4cqi, 3rem); letter-spacing: -.04em; text-transform: none; text-wrap: balance; }
.pwb-support .pwb-support__copy p { max-width: 660px; margin: 0; color: var(--support-muted); font-size: clamp(.98rem, 1.4vw, 1.08rem); font-size: clamp(.98rem, 1.7cqi, 1.08rem); line-height: 1.7; }
.pwb-support__impact { margin: 1.25rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; }
.pwb-support__impact li { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .8rem; border: 1px solid rgba(146, 92, 52, .14); border-radius: 999px; color: #5b4639; background: rgba(255, 255, 255, .72); font-size: .8rem; font-weight: 750; }
.pwb-support__impact li span { color: #d9862f; }

.pwb-support__panel { min-width: 0; padding: clamp(1.1rem, 2.4vw, 1.5rem); border: 1px solid rgba(146, 92, 52, .14); border-radius: 26px; background: rgba(255, 255, 255, .86); box-shadow: 0 18px 44px rgba(70, 36, 30, .1); backdrop-filter: blur(6px); }
.pwb-support__panel-head { margin-bottom: 1rem; display: flex; align-items: center; gap: .85rem; }
.pwb-support__panel-head strong { display: block; color: var(--support-ink); font-size: 1.05rem; font-weight: 850; }
.pwb-support__panel-head span:not(.pwb-support__badge) { display: block; margin-top: .1rem; color: var(--support-muted); font-size: .84rem; line-height: 1.4; }
.pwb-support__badge { width: 58px; height: 58px; flex: 0 0 58px; display: grid; place-items: center; border-radius: 18px; background: linear-gradient(145deg, #ffcf74, #ff9a76); box-shadow: 0 10px 22px rgba(214, 112, 62, .26); }

.pwb-support__primary { position: relative; min-height: 70px; padding: .75rem 1rem .75rem .8rem; display: flex; align-items: center; gap: .85rem; overflow: hidden; border-radius: 18px; color: #fff !important; background: linear-gradient(135deg, #1f8a68, #13573f); box-shadow: 0 14px 30px rgba(23, 104, 79, .3); text-decoration: none !important; transition: transform .2s ease, box-shadow .2s ease; }
.pwb-support__primary::after { content: ""; position: absolute; inset: 0 auto 0 -40%; width: 30%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .22), transparent); transform: skewX(-18deg); animation: pwb-shine 4.5s ease-in-out infinite; }
.pwb-support__primary:hover { transform: translateY(-2px); box-shadow: 0 18px 34px rgba(23, 104, 79, .36); }
.pwb-support__primary:focus-visible, .pwb-support__button:focus-visible { outline: 3px solid rgba(23, 104, 79, .38); outline-offset: 3px; }
.pwb-support__primary--coffee { color: #33270b !important; background: linear-gradient(135deg, #ffe07a, #ffc84a); box-shadow: 0 14px 30px rgba(190, 140, 20, .26); }
.pwb-support__primary--patreon { background: linear-gradient(135deg, #ff5a64, #e23a4b); box-shadow: 0 14px 30px rgba(226, 58, 75, .28); }
.pwb-support__primary--paypal { background: linear-gradient(135deg, #1d4c9c, #168bd2); box-shadow: 0 14px 30px rgba(29, 76, 156, .28); }
.pwb-support__primary-icon { width: 46px; height: 46px; flex: 0 0 46px; display: grid; place-items: center; border-radius: 14px; background: rgba(255, 255, 255, .16); font-size: 1.3rem; font-weight: 900; }
.pwb-support__primary-text { min-width: 0; display: grid; gap: .12rem; }
.pwb-support__primary-text strong { font-size: 1.08rem; font-weight: 850; line-height: 1.2; }
.pwb-support__primary-text small { color: rgba(255, 255, 255, .82); font-size: .76rem; font-weight: 700; }
.pwb-support__primary--coffee .pwb-support__primary-text small { color: rgba(51, 39, 11, .72); }
.pwb-support__arrow { margin-left: auto; font-size: 1.25rem; transition: transform .2s ease; }
.pwb-support__primary:hover .pwb-support__arrow { transform: translateX(3px); }

.pwb-support__more { margin-top: .65rem; display: flex; flex-wrap: wrap; gap: .55rem; }
.pwb-support__button { flex: 1 1 140px; min-height: 48px; padding: .5rem .8rem; display: flex; align-items: center; justify-content: center; gap: .55rem; border: 1px solid rgba(45, 30, 55, .12); border-radius: 14px; color: #2b2032 !important; background: #fff; font-size: .88rem; font-weight: 800; text-decoration: none !important; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.pwb-support__button:hover { transform: translateY(-1px); border-color: rgba(92, 53, 109, .25); box-shadow: 0 8px 18px rgba(52, 33, 62, .1); }
.pwb-support__mark { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; color: #fff; font-size: .85rem; font-weight: 900; }
.pwb-support__button--coffee .pwb-support__mark { color: #3b2c00; background: #ffdd63; font-size: 1rem; }
.pwb-support__button--tea .pwb-support__mark { background: linear-gradient(145deg, #1f8a68, #13573f); }
.pwb-support__button--tea .pwb-chai--mark { width: 22px; height: 22px; }
.pwb-support__button--patreon .pwb-support__mark { background: #ff424d; }
.pwb-support__button--paypal .pwb-support__mark { background: linear-gradient(135deg, #173f86, #168bd2); }
.pwb-support p.pwb-support__promise { margin-top: .85rem; color: #7a6d7c; font-size: .76rem; font-weight: 650; line-height: 1.45; text-align: center; }

.pwb-support--footer { width: 100%; margin: 0 auto 3.25rem; border: 2px solid rgba(255, 255, 255, .2); box-shadow: 0 26px 65px rgba(0, 0, 0, .22); }
.pwb-support--contextual { margin-top: clamp(2.5rem, 6vw, 4.5rem); margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.game-page .pwb-support--footer { margin-top: 3rem; }
/* Wedding guest pages and game pages print the footer card straight into
   <body>, with no .container around it, so it needs its own gutter or its
   rounded corners are cut off at the screen edges. */
body > .pwb-support--footer { width: min(1180px, calc(100% - 2rem)); margin-right: auto; margin-left: auto; }
.vows .pwb-support { box-sizing: border-box; }
.pwb-game-footer { width: min(1120px, calc(100% - 2rem)); margin: 2rem auto 1.25rem; padding-top: 1.1rem; display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid rgba(76, 54, 88, .16); color: #6c6073; font: 700 .82rem/1.5 Inter, ui-sans-serif, system-ui, sans-serif; }
.pwb-game-footer a { color: #713f68; font-weight: 850; text-decoration: none; }
.pwb-game-footer a:hover { text-decoration: underline; text-underline-offset: .2rem; }

/* Popup shown on repeat visits to share/result pages. */
body.pwb-support-modal-open { overflow: hidden; }
.pwb-support-modal[hidden] { display: none; }
.pwb-support-modal { position: fixed; z-index: 10050; inset: 0; display: grid; place-items: center; padding: 1rem; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; text-align: left; }
.pwb-support-modal *, .pwb-support-modal *::before, .pwb-support-modal *::after { box-sizing: border-box; }
.pwb-support-modal__backdrop { position: absolute; inset: 0; background: rgba(33, 16, 24, .66); opacity: 0; backdrop-filter: blur(8px); transition: opacity .3s ease; }
.pwb-support-modal__dialog { position: relative; width: min(820px, 100%); max-height: calc(100vh - 2rem); display: grid; grid-template-columns: minmax(220px, .8fr) minmax(0, 1.2fr); overflow: auto; border: 1px solid rgba(255, 255, 255, .7); border-radius: 30px; color: #2a1a2f; background: #fffdf9; box-shadow: 0 35px 100px rgba(25, 9, 17, .45); opacity: 0; transform: translateY(26px) scale(.96); transition: opacity .32s ease, transform .42s cubic-bezier(.2, .85, .25, 1.15); }
.pwb-support-modal__dialog:focus { outline: none; }
.pwb-support-modal.is-open .pwb-support-modal__backdrop { opacity: 1; }
.pwb-support-modal.is-open .pwb-support-modal__dialog { opacity: 1; transform: translateY(0) scale(1); }
.pwb-support-modal__close { position: absolute; z-index: 3; top: 14px; right: 14px; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(45, 25, 54, .1); border-radius: 50%; color: #4a3442; background: rgba(255, 255, 255, .92); box-shadow: 0 6px 16px rgba(45, 25, 54, .12); font: 400 1.6rem/1 sans-serif; cursor: pointer; transition: transform .2s ease, background-color .2s ease; }
.pwb-support-modal__close:hover { background: #fff; transform: rotate(90deg); }
.pwb-support-modal__close:focus-visible, .pwb-support-modal a:focus-visible, .pwb-support-modal__later:focus-visible, .pwb-support-modal__done:focus-visible { outline: 3px solid rgba(23, 104, 79, .4); outline-offset: 3px; }

.pwb-support-modal__art { position: relative; min-height: 100%; padding: 2rem 1.25rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.1rem; overflow: hidden; background: radial-gradient(circle at 26% 18%, rgba(255, 255, 255, .7), transparent 26%), radial-gradient(circle at 80% 90%, rgba(255, 120, 150, .35), transparent 40%), linear-gradient(160deg, #ffd98c 0%, #ffb48f 55%, #f694ae 100%); }
.pwb-support-modal__art::before, .pwb-support-modal__art::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(120, 50, 40, .14); }
.pwb-support-modal__art::before { width: 240px; height: 240px; left: -110px; bottom: -90px; }
.pwb-support-modal__art::after { width: 160px; height: 160px; right: -70px; top: -40px; border-style: dashed; }
.pwb-support-modal__price { position: relative; z-index: 1; padding: .45rem .95rem; border-radius: 999px; color: #7a3a1f; background: rgba(255, 255, 255, .85); box-shadow: 0 8px 18px rgba(122, 52, 33, .16); font-size: .82rem; font-weight: 850; letter-spacing: .01em; }
.pwb-support-modal__float { position: absolute; color: rgba(255, 255, 255, .9); font-size: 1.1rem; animation: pwb-float 5s ease-in-out infinite; }
.pwb-support-modal__float--one { left: 16%; top: 20%; }
.pwb-support-modal__float--two { right: 16%; top: 30%; font-size: .9rem; animation-delay: 1.4s; }
.pwb-support-modal__float--three { right: 22%; bottom: 20%; font-size: 1.35rem; color: rgba(240, 80, 110, .75); animation-delay: 2.6s; }

.pwb-support-modal__content { padding: clamp(1.8rem, 4vw, 2.6rem); }
.pwb-support-modal__eyebrow { display: inline-block; margin-bottom: .7rem; padding: .32rem .7rem; border-radius: 999px; color: #9a3d55; background: rgba(240, 80, 110, .09); font-size: .68rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.pwb-support-modal .pwb-support-modal__content h2 { margin: 0 2.2rem .8rem 0; color: #2a1a2f; font: 850 clamp(1.85rem, 4vw, 2.5rem)/1.06 Georgia, "Times New Roman", serif; letter-spacing: -.04em; text-wrap: balance; }
.pwb-support-modal .pwb-support-modal__content p { margin: 0; color: #675b69; font-size: .95rem; line-height: 1.62; }
.pwb-support-modal__impact { margin: 1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; }
.pwb-support-modal__impact li { display: inline-flex; align-items: center; gap: .35rem; padding: .32rem .65rem; border-radius: 999px; color: #5b4639; background: #fff3e2; font-size: .74rem; font-weight: 750; }
.pwb-support-modal__impact li span { color: #d9862f; }
.pwb-support-modal__actions { margin-top: 1.3rem; display: grid; gap: .6rem; }
.pwb-support-modal__primary { position: relative; min-height: 66px; padding: .7rem 1rem .7rem .75rem; display: flex; align-items: center; gap: .8rem; overflow: hidden; border-radius: 18px; color: #fff !important; background: linear-gradient(135deg, #1f8a68, #13573f); box-shadow: 0 14px 30px rgba(23, 104, 79, .3); text-decoration: none !important; transition: transform .2s ease, box-shadow .2s ease; }
.pwb-support-modal__primary::after { content: ""; position: absolute; inset: 0 auto 0 -40%; width: 30%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .24), transparent); transform: skewX(-18deg); animation: pwb-shine 4.5s ease-in-out infinite; }
.pwb-support-modal__primary--coffee { color: #33270b !important; background: linear-gradient(135deg, #ffe07a, #ffc84a); }
.pwb-support-modal__primary--patreon { background: linear-gradient(135deg, #ff5a64, #e23a4b); }
.pwb-support-modal__primary--paypal { background: linear-gradient(135deg, #1d4c9c, #168bd2); }
.pwb-support-modal__cta-icon { width: 46px; height: 46px; flex: 0 0 46px; display: grid; place-items: center; border-radius: 14px; background: rgba(255, 255, 255, .16); font-size: 1.3rem; font-weight: 900; }
.pwb-support-modal__cta-text { min-width: 0; display: grid; gap: .12rem; }
.pwb-support-modal__cta-text strong { font-size: 1.1rem; font-weight: 850; line-height: 1.2; }
.pwb-support-modal__cta-text small { color: rgba(255, 255, 255, .82); font-size: .74rem; font-weight: 700; }
.pwb-support-modal__primary--coffee .pwb-support-modal__cta-text small { color: rgba(51, 39, 11, .72); }
.pwb-support-modal__cta-arrow { margin-left: auto; font-size: 1.3rem; transition: transform .2s ease; }
.pwb-support-modal__primary:hover { transform: translateY(-2px); box-shadow: 0 18px 34px rgba(23, 104, 79, .36); }
.pwb-support-modal__primary:hover .pwb-support-modal__cta-arrow { transform: translateX(3px); }
.pwb-support-modal__secondary { min-height: 50px; padding: .55rem .9rem; display: flex; align-items: center; gap: .65rem; border: 1px solid rgba(45, 30, 55, .12); border-radius: 15px; color: #3a2c3c !important; background: #fff; font-size: .9rem; font-weight: 650; text-decoration: none !important; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.pwb-support-modal__secondary strong { font-weight: 850; }
.pwb-support-modal__secondary:hover { transform: translateY(-1px); border-color: rgba(92, 53, 109, .25); box-shadow: 0 8px 18px rgba(52, 33, 62, .1); }
.pwb-support-modal__secondary-mark { width: 30px; height: 30px; flex: 0 0 30px; display: grid; place-items: center; border-radius: 9px; color: #fff; background: #6b5a72; font-size: .85rem; font-weight: 900; }
.pwb-support-modal__secondary--coffee .pwb-support-modal__secondary-mark { color: #3b2c00; background: #ffdd63; font-size: 1.05rem; }
.pwb-support-modal__secondary--tea .pwb-support-modal__secondary-mark { background: linear-gradient(145deg, #1f8a68, #13573f); }
.pwb-support-modal__secondary--tea .pwb-chai--mark { width: 22px; height: 22px; }
.pwb-support-modal__secondary--patreon .pwb-support-modal__secondary-mark { background: #ff424d; }
.pwb-support-modal__secondary--paypal .pwb-support-modal__secondary-mark { background: linear-gradient(135deg, #173f86, #168bd2); }
.pwb-support-modal__later { margin: .85rem auto 0; display: block; padding: .3rem .6rem; border: 0; color: #7a6d7c; background: transparent; font-size: .82rem; font-weight: 750; text-decoration: underline; text-underline-offset: .2rem; cursor: pointer; }
.pwb-support-modal__later:hover { color: #3a2c3c; }
.pwb-support-modal .pwb-support-modal__content .pwb-support-modal__reassurance { margin-top: .45rem; color: #8d8190; font-size: .72rem; text-align: center; }
.pwb-support-modal__thanks { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.pwb-support-modal__thanks[hidden] { display: none; }
.pwb-support-modal__done { align-self: flex-start; margin-top: 1.4rem; min-height: 50px; padding: .7rem 1.3rem; border: 0; border-radius: 15px; color: #fff; background: linear-gradient(135deg, #1f8a68, #13573f); box-shadow: 0 12px 26px rgba(23, 104, 79, .26); font-size: .95rem; font-weight: 850; cursor: pointer; }
.pwb-support-modal.is-thanked .pwb-chai--hero .pwb-chai__heart { animation: pwb-heartbeat 1.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }

@keyframes pwb-steam { 0% { opacity: 0; transform: translateY(6px) scaleY(.75); } 35% { opacity: .85; } 100% { opacity: 0; transform: translateY(-10px) scaleY(1.1); } }
@keyframes pwb-shine { 0%, 62% { left: -40%; } 100% { left: 130%; } }
@keyframes pwb-float { 0%, 100% { transform: translateY(0) scale(.9); opacity: .55; } 50% { transform: translateY(-12px) scale(1.1); opacity: 1; } }
@keyframes pwb-heartbeat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.25); } 30% { transform: scale(1); } 45% { transform: scale(1.15); } }

@media (max-width: 980px) {
    .pwb-support { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .pwb-support { gap: 1.35rem; border-radius: 24px; }
    .pwb-game-footer { flex-direction: column; }
    .pwb-support-modal__dialog { grid-template-columns: 1fr; }
    .pwb-support-modal__art { min-height: 0; padding: 1.1rem 1rem; flex-direction: row; gap: .9rem; }
    .pwb-chai--hero { width: 92px; }
    .pwb-support-modal__content { padding: 1.5rem 1.4rem 1.4rem; }
    .pwb-support-modal .pwb-support-modal__content h2 { font-size: clamp(1.7rem, 8vw, 2.2rem); }
}
@media (max-width: 520px) {
    .pwb-support { width: calc(100% - 1rem); padding: 1.25rem; }
    .pwb-support__panel { padding: 1rem; border-radius: 20px; }
    .pwb-support-modal { padding: .5rem; align-items: end; }
    .pwb-support-modal__dialog { max-height: calc(100vh - 1rem); border-radius: 24px; }
    .pwb-support-modal__close { top: 10px; right: 10px; }
    .pwb-support-modal__impact { display: none; }
}
@media (max-height: 680px) and (min-width: 761px) {
    .pwb-support-modal__content { padding: 1.4rem 1.9rem; }
    .pwb-support-modal .pwb-support-modal__content h2 { font-size: 2rem; }
    .pwb-support-modal .pwb-support-modal__content p { font-size: .9rem; line-height: 1.5; }
    .pwb-support-modal__impact { display: none; }
    .pwb-support-modal__actions { margin-top: .9rem; }
}
@media (prefers-reduced-motion: reduce) {
    .pwb-support__primary, .pwb-support__button, .pwb-support-modal__backdrop, .pwb-support-modal__dialog, .pwb-support-modal__close, .pwb-support-modal a { transition: none; }
    .pwb-chai__steam path, .pwb-support__primary::after, .pwb-support-modal__primary::after, .pwb-support-modal__float, .pwb-support-modal.is-thanked .pwb-chai--hero .pwb-chai__heart { animation: none; }
    .pwb-support__primary::after, .pwb-support-modal__primary::after { display: none; }
}
