/* Season Pass (winter) Style items: chat bubbles (pb*), answer-button skins (pa*) and win celebrations (pw*).
   Everything here is scoped to those codes. The items themselves are listed in style-pass.js. */

/* ---- chat bubbles (friends see these) */
html body .bubble.bub-pb1.bub-pb1 { background: linear-gradient(#ffffff, #fff1f3) padding-box,
  repeating-linear-gradient(135deg, #e0283a 0 7px, #ffffff 7px 14px) border-box; border: 3.5px solid transparent; color: #3a0b14; }
html body .bubble.bub-pb2.bub-pb2 { position: relative; background: radial-gradient(120% 140% at 25% 0%, #e9ab6b, #c47a3a 55%, #a35e26);
  border: 2px solid #5e3212; color: #fffaf0; text-shadow: 0 1px 0 rgba(70, 30, 5, .55); padding: .6rem .85rem; }
html body .bubble.bub-pb2.bub-pb2::before { content: ''; position: absolute; inset: 4px; border: 2px dashed #fffaf0; border-radius: inherit; opacity: .9; pointer-events: none; }
html body .bubble.bub-pb3.bub-pb3 { position: relative; color: #fff3e2; border: 2px solid #2a1208; padding-top: .85rem; padding-right: 1.7rem;
  background: radial-gradient(circle, #2a1208 0 1.4px, transparent 1.8px) 0 0 / 13px 11px, radial-gradient(circle, #8a4a24 0 1.3px, transparent 1.7px) 6px 5px / 15px 12px,
  linear-gradient(#7a4222, #5a2e16); }
html body .bubble.bub-pb3.bub-pb3::before { content: ''; position: absolute; left: -1px; right: -1px; top: -2px; height: 12px; border-radius: inherit;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 12' preserveAspectRatio='none'%3E%3Cpath d='M0 0H40V5C37 5 37 10 34 10S31 4 28 4 25 11 21 11 18 5 15 5 12 9 9 9 6 4 3 4 1 6 0 6Z' fill='%23fffaf0'/%3E%3C/svg%3E") 0 0 / 40px 12px repeat-x;
  pointer-events: none; }
html body .bubble.bub-pb3.bub-pb3::after { content: ''; position: absolute; right: 3px; top: -9px; width: 26px; height: 20px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 20'%3E%3Cpath d='M13 12L7 6 4 8 1 4 6 2 8 0 13 6M13 12L19 6 22 8 25 4 20 2 18 0 13 6' fill='%2321944a' stroke='%231b1033' stroke-width='1.6' stroke-linejoin='round'/%3E%3Ccircle cx='10' cy='13' r='3.2' fill='%23e0283a' stroke='%231b1033' stroke-width='1.5'/%3E%3Ccircle cx='16' cy='13' r='3.2' fill='%23e0283a' stroke='%231b1033' stroke-width='1.5'/%3E%3Ccircle cx='13' cy='9' r='3.2' fill='%23e0283a' stroke='%231b1033' stroke-width='1.5'/%3E%3C/svg%3E") center / contain no-repeat; }
html body .bubble.bub-pb4.bub-pb4 { position: relative; background: linear-gradient(#2fae55, #17703a); border: 2px solid #0b3f1e; color: #f2fff4;
  text-shadow: 0 1px 0 rgba(0, 40, 15, .5); padding-right: 1.9rem; }
html body .bubble.bub-pb4.bub-pb4::after { content: ''; position: absolute; right: -6px; bottom: -6px; width: 30px; height: 26px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 26'%3E%3Cpath d='M15 16L10 9 7 11 4 6 8 5 8 1 13 6 15 4 15 16Z M15 16L22 10 23 13 28 11 26 7 29 4 22 4 20 1 17 7Z' fill='%2353c472' stroke='%231b1033' stroke-width='1.8' stroke-linejoin='round'/%3E%3Ccircle cx='12' cy='18' r='3.6' fill='%23e0283a' stroke='%231b1033' stroke-width='1.6'/%3E%3Ccircle cx='19' cy='18.5' r='3.6' fill='%23e0283a' stroke='%231b1033' stroke-width='1.6'/%3E%3Ccircle cx='15.5' cy='13.5' r='3.6' fill='%23e0283a' stroke='%231b1033' stroke-width='1.6'/%3E%3Ccircle cx='11' cy='17' r='1' fill='%23fff'/%3E%3Ccircle cx='18' cy='17.5' r='1' fill='%23fff'/%3E%3C/svg%3E") center / contain no-repeat; }
html body .bubble.bub-pb5.bub-pb5 { position: relative; color: #fff; border: 2px solid #7a0a1c; text-shadow: 0 1px 0 rgba(90, 0, 15, .55); padding-right: 2rem;
  background: linear-gradient(90deg, transparent calc(100% - 1.15rem), #ffd23d calc(100% - 1.15rem) calc(100% - .55rem), transparent calc(100% - .55rem)),
  linear-gradient(#ff4a5a, #d01f33); }
html body .bubble.bub-pb5.bub-pb5::after { content: ''; position: absolute; right: calc(.85rem - 15px); top: -11px; width: 30px; height: 18px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 18'%3E%3Cpath d='M15 11Q3 -1 2 7 2 14 15 11ZM15 11Q27 -1 28 7 28 14 15 11Z' fill='%23ffd23d' stroke='%231b1033' stroke-width='1.8' stroke-linejoin='round'/%3E%3Cpath d='M12 12l-3 6M18 12l3 6' stroke='%231b1033' stroke-width='4.2' stroke-linecap='round'/%3E%3Cpath d='M12 12l-3 6M18 12l3 6' stroke='%23ffd23d' stroke-width='2' stroke-linecap='round'/%3E%3Crect x='12' y='8' width='6' height='6' rx='2' fill='%23f2b400' stroke='%231b1033' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat; }
html body .bubble.bub-pb6.bub-pb6 { position: relative; background: linear-gradient(135deg, #8a1c40, #4a0d24); border: 2px solid #c0405e; color: #ffeedd; padding-right: 2rem; }
html body .bubble.bub-pb6.bub-pb6::after { content: ''; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='10' fill='%23ff9a2e' stroke='%231b1033' stroke-width='1.8'/%3E%3Ccircle cx='12' cy='12' r='7.4' fill='%23ffc46a'/%3E%3Cpath d='M12 5v14M5 12h14M7 7l10 10M17 7 7 17' stroke='%23fff3d6' stroke-width='1.2'/%3E%3Ccircle cx='12' cy='12' r='1.6' fill='%23fff3d6'/%3E%3C/svg%3E") center / contain no-repeat; }
html body .bubble.bub-pb7.bub-pb7 { position: relative; background: linear-gradient(#232a5e, #12163a); border: 2px solid #4250a8; color: #fff; padding-top: .95rem; }
html body .bubble.bub-pb7.bub-pb7::before { content: ''; position: absolute; left: 6px; right: 6px; top: -5px; height: 16px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 16'%3E%3Cpath d='M0 3Q6 8 12 3T24 3T36 3T48 3' fill='none' stroke='%231b1033' stroke-width='1.4'/%3E%3Cg stroke='%231b1033' stroke-width='1.2'%3E%3Cellipse cx='6' cy='10' rx='3' ry='4' fill='%23ff4f6d'/%3E%3Cellipse cx='18' cy='10' rx='3' ry='4' fill='%23ffc23d'/%3E%3Cellipse cx='30' cy='10' rx='3' ry='4' fill='%233ddc84'/%3E%3Cellipse cx='42' cy='10' rx='3' ry='4' fill='%234fa8ff'/%3E%3C/g%3E%3Cg fill='%23fff' opacity='.8'%3E%3Ccircle cx='5' cy='9' r='1'/%3E%3Ccircle cx='17' cy='9' r='1'/%3E%3Ccircle cx='29' cy='9' r='1'/%3E%3Ccircle cx='41' cy='9' r='1'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 48px 16px repeat-x;
  filter: drop-shadow(0 0 3px rgba(255, 220, 140, .8)); animation: psTwinkle 1.6s ease-in-out infinite alternate; }
@keyframes psTwinkle { from { filter: drop-shadow(0 0 1px rgba(255, 220, 140, .4)) brightness(.9); } to { filter: drop-shadow(0 0 5px rgba(255, 230, 160, .95)) brightness(1.15); } }

/* ---- answer-button skins (only you see these). The thick outline and under-shadow keep the chunky lit look;
   the answer colour (--c) stays in every skin, and the "chosen" outline is left alone */
body:is(.btns-pa1, .btns-pa2, .btns-pa3, .btns-pa4, .btns-pa5) .abtn, :is(.btns-pa1-demo, .btns-pa2-demo, .btns-pa3-demo, .btns-pa4-demo, .btns-pa5-demo) {
  position: relative; border: 3px solid #1b1033 !important; text-shadow: 0 2px 0 rgba(0, 0, 0, .45); }
/* presents: a ribbon round each box and a bow on top */
body.btns-pa1 .abtn, .btns-pa1-demo { border-radius: 10px !important; color: #fff !important;
  background: linear-gradient(90deg, transparent 0 calc(16% - 6px), #1b1033 calc(16% - 6px) calc(16% - 5px), #ffd23d calc(16% - 5px) calc(16% + 5px), #1b1033 calc(16% + 5px) calc(16% + 6px), transparent calc(16% + 6px)),
    linear-gradient(180deg, transparent 0 calc(78% - 6px), #1b1033 calc(78% - 6px) calc(78% - 5px), #ffd23d calc(78% - 5px) calc(78% + 5px), #1b1033 calc(78% + 5px) calc(78% + 6px), transparent calc(78% + 6px)),
    linear-gradient(180deg, color-mix(in srgb, var(--c) 82%, white), var(--c) 60%, color-mix(in srgb, var(--c) 85%, black)) !important; }
body.btns-pa1 .abtn::after, .btns-pa1-demo::after { content: ''; position: absolute; left: calc(16% - 23px); top: -19px; width: 46px; height: 30px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 22'%3E%3Cpath d='M17 13Q3 -1 2 8 2 16 17 13ZM17 13Q31 -1 32 8 32 16 17 13Z' fill='%23ffd23d' stroke='%231b1033' stroke-width='2.4' stroke-linejoin='round'/%3E%3Cpath d='M6 7q3-2 6 1' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' opacity='.8'/%3E%3Crect x='13.5' y='9' width='7' height='8' rx='2.5' fill='%23f2b400' stroke='%231b1033' stroke-width='2.2'/%3E%3C/svg%3E") center / contain no-repeat; }
.sbtn.btns-pa1-demo::after { width: 22px; height: 14px; top: -10px; left: calc(16% - 11px); }
/* baubles: glossy, ROUND (owner, 9 Nov: "baubles aren't oval", and no line through the answer), with a gold cap */
body.btns-pa2 .ans .abtn { margin-top: 14px; width: min(100%, 10.5rem); aspect-ratio: 1; min-height: 0; justify-self: center; padding: 1rem .9rem !important; font-size: .95em; overflow-wrap: anywhere; }
body.btns-pa2 .abtn, .btns-pa2-demo { border-radius: 50% !important; color: #fff !important;
  background: radial-gradient(34% 24% at 34% 26%, rgba(255, 255, 255, .85), rgba(255, 255, 255, 0) 70%),
    radial-gradient(100% 100% at 40% 32%, color-mix(in srgb, var(--c) 72%, white), var(--c) 48%, color-mix(in srgb, var(--c) 55%, black)) !important; }
.sbtn.btns-pa2-demo { aspect-ratio: 1; width: auto; height: 64%; }
body.btns-pa2 .abtn::before, .btns-pa2-demo::before { content: ''; position: absolute; left: 50%; top: -15px; width: 30px; height: 14px; transform: translateX(-50%); pointer-events: none;
  border: 3px solid #1b1033; border-radius: 4px 4px 2px 2px; box-sizing: border-box;
  background: repeating-linear-gradient(90deg, transparent 0 5px, rgba(150, 100, 0, .45) 5px 6.5px), linear-gradient(#fff3a8, #ffcf3d 50%, #c99a1e); }
body.btns-pa2 .abtn::after, .btns-pa2-demo::after { content: ''; position: absolute; left: 50%; top: -24px; width: 12px; height: 12px; transform: translateX(-50%); pointer-events: none;
  border: 3px solid #c99a1e; border-radius: 50%; box-sizing: border-box; }
.sbtn.btns-pa2-demo { margin-top: 8px; }
.sbtn.btns-pa2-demo::before { width: 18px; height: 10px; top: -10px; border-width: 2px; }
.sbtn.btns-pa2-demo::after { display: none; }
/* Christmas jumper: knitted, with a Fair Isle band top and bottom */
body.btns-pa3 .abtn, .btns-pa3-demo { border-radius: 14px !important; color: #fff !important; padding-top: 1.3rem !important; padding-bottom: 1.3rem !important;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 12'%3E%3Cpath d='M0 0h16v2H0zM0 10h16v2H0z' fill='%23fff'/%3E%3Cpath d='M0 9L4 4 8 9 12 4 16 9' fill='none' stroke='%23fff' stroke-width='1.6'/%3E%3Ccircle cx='4' cy='7.4' r='1' fill='%23fff'/%3E%3Ccircle cx='12' cy='7.4' r='1' fill='%23fff'/%3E%3C/svg%3E") 0 5px / 16px 12px repeat-x,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 12'%3E%3Cpath d='M0 0h16v2H0zM0 10h16v2H0z' fill='%23fff'/%3E%3Cpath d='M0 3L4 8 8 3 12 8 16 3' fill='none' stroke='%23fff' stroke-width='1.6'/%3E%3Ccircle cx='4' cy='4.6' r='1' fill='%23fff'/%3E%3Ccircle cx='12' cy='4.6' r='1' fill='%23fff'/%3E%3C/svg%3E") 0 calc(100% - 5px) / 16px 12px repeat-x,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath d='M0.5 1L4 5 7.5 1' fill='none' stroke='%23000' stroke-opacity='.13' stroke-width='1.3'/%3E%3C/svg%3E") 0 0 / 8px 8px,
    linear-gradient(180deg, color-mix(in srgb, var(--c) 85%, white), var(--c) 55%, color-mix(in srgb, var(--c) 85%, black)) !important; }
.sbtn.btns-pa3-demo { padding: 0 !important; background-size: 10px 8px, 10px 8px, 6px 6px, auto !important; background-position: 0 1px, 0 calc(100% - 1px), 0 0, 0 0 !important; }
/* gingerbread: a baked biscuit with piped icing in the answer's colour */
body.btns-pa4 .abtn, .btns-pa4-demo { border-radius: 18px !important; color: #fffaf0 !important; text-shadow: 0 2px 0 rgba(70, 30, 5, .6);
  background: radial-gradient(circle, rgba(90, 40, 10, .35) 0 1.2px, transparent 1.6px) 0 0 / 17px 15px,
    radial-gradient(120% 120% at 30% 15%, #e9ab6b, #c47a3a 55%, #9a5622) !important;
  box-shadow: 0 6px 0 #6b3a16 !important; }
body.btns-pa4 .abtn:active { box-shadow: 0 2px 0 #6b3a16 !important; }
body.btns-pa4 .abtn::before, .btns-pa4-demo::before { content: ''; position: absolute; inset: 5px; border-radius: 12px; pointer-events: none;
  border: 4px dashed color-mix(in srgb, var(--c) 80%, white); filter: drop-shadow(0 1px 0 rgba(70, 30, 5, .6)); }
.sbtn.btns-pa4-demo::before { inset: 3px; border-width: 2px; border-radius: 7px; }
/* tartan: the answer colour woven with dark and light threads */
body.btns-pa5 .abtn, .btns-pa5-demo { border-radius: 12px !important; color: #fff !important; text-shadow: 0 2px 0 rgba(0, 0, 0, .55), 0 0 6px rgba(0, 0, 0, .35);
  background: repeating-linear-gradient(90deg, rgba(0, 0, 0, .26) 0 9px, transparent 9px 20px, rgba(255, 255, 255, .35) 20px 22px, transparent 22px 30px, rgba(0, 0, 0, .12) 30px 33px, transparent 33px 44px),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, .26) 0 9px, transparent 9px 20px, rgba(255, 255, 255, .35) 20px 22px, transparent 22px 30px, rgba(0, 0, 0, .12) 30px 33px, transparent 33px 44px),
    linear-gradient(180deg, color-mix(in srgb, var(--c) 85%, white), var(--c)) !important; }

/* ---- win celebrations */
.confetti:is(.fx-pw1, .fx-pw2, .fx-pw3, .fx-pw4) i { height: auto; background: none; border-radius: 0; }
/* bauble drop: baubles in four colours, swinging as they fall */
.confetti.fx-pw1 i { width: calc(2.8rem * var(--s, 1)); animation: psBauble 3.6s linear infinite; transform-origin: 50% 0; }
.confetti.fx-pw1 i:nth-child(4n+1) { --bc: #e0283a; --bd: #ffcf3d; } .confetti.fx-pw1 i:nth-child(4n+2) { --bc: #2fae55; --bd: #ffffff; }
.confetti.fx-pw1 i:nth-child(4n+3) { --bc: #3f7dff; --bd: #ffcf3d; } .confetti.fx-pw1 i:nth-child(4n) { --bc: #b05bff; --bd: #ff9cc8; }
@keyframes psBauble { 0% { transform: translateY(0) rotate(-18deg); } 25% { transform: translateY(32vh) rotate(16deg); } 50% { transform: translateY(64vh) rotate(-16deg); }
  75% { transform: translateY(96vh) rotate(14deg); } 100% { transform: translateY(128vh) rotate(-18deg); } }
/* present pop: boxes jump up from the bottom and their lids pop off */
.confetti.fx-pw2 .ps-pp { position: absolute; top: auto; bottom: -16%; width: calc(3.2rem * var(--s, 1)); animation: psPresent 2.6s cubic-bezier(.25, .7, .45, 1) infinite; }
.confetti.fx-pw2 .ps-pp .lid { transform-box: fill-box; transform-origin: 50% 100%; animation: psLid 2.6s ease-out infinite; animation-delay: inherit; }
@keyframes psPresent { 0% { transform: translate(0, 0) rotate(0); } 55% { transform: translate(var(--dx), -72vh) rotate(var(--rot)); }
  100% { transform: translate(calc(var(--dx) * 1.6), -8vh) rotate(calc(var(--rot) * 1.8)); } }
@keyframes psLid { 0%, 40% { transform: translate(0, 0) rotate(0); } 52% { transform: translate(-2px, -55%) rotate(-24deg); } 70%, 100% { transform: translate(-6px, -80%) rotate(-34deg); } }
/* snowball fight: snowballs lobbed across from both sides, with splats */
.confetti.fx-pw3 .ps-sb { position: absolute; left: 0; width: calc(2.2rem * var(--s, 1)); animation: psThrowX var(--d) linear infinite; }
.confetti.fx-pw3 .ps-sb.r { animation-name: psThrowXr; }
.confetti.fx-pw3 .ps-sb b { display: block; animation: psThrowY var(--d) ease-in-out infinite; }
.confetti.fx-pw3 .ps-sb svg { width: 100%; height: auto; display: block; animation: psSpin .7s linear infinite; }
@keyframes psThrowX { from { transform: translateX(-15vw); } to { transform: translateX(110vw); } }
@keyframes psThrowXr { from { transform: translateX(110vw); } to { transform: translateX(-15vw); } }
@keyframes psThrowY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(calc(var(--h) * -1)); } }
@keyframes psSpin { to { transform: rotate(360deg); } }
.confetti.fx-pw3 .ps-splat { position: absolute; width: calc(3.4rem * var(--s, 1)); animation: psSplat 1.6s ease-out infinite; opacity: 0; }
@keyframes psSplat { 0% { transform: scale(.2); opacity: 0; } 12% { transform: scale(1.1); opacity: 1; } 22% { transform: scale(1); } 70% { opacity: 1; } 100% { transform: scale(1) translateY(1.2rem); opacity: 0; } }
/* cracker snap: crackers pulled apart with a bang, and paper crowns and jokes drifting down */
.confetti.fx-pw4 .ps-ck { position: absolute; width: 9rem; height: 2.6rem; transform: rotate(var(--rot)); }
.confetti.fx-pw4 .ps-ck i { position: absolute; top: 0; width: 4.6rem; animation: psPullL 2.1s ease-in infinite; animation-delay: inherit; }
.confetti.fx-pw4 .ps-ck .hl { left: 0; }
.confetti.fx-pw4 .ps-ck .hr { right: 0; animation-name: psPullR; }
.confetti.fx-pw4 .ps-ck .hr svg { transform: scaleX(-1); }
@keyframes psPullL { 0% { transform: translateX(.3rem) scale(.4); opacity: 0; } 12% { transform: translateX(.3rem) scale(1); opacity: 1; } 40% { transform: translateX(.45rem) rotate(-2deg); }
  48% { transform: translateX(-1.6rem) rotate(-14deg); } 85% { transform: translateX(-2.4rem) rotate(-20deg); opacity: 1; } 100% { transform: translateX(-2.6rem) rotate(-22deg); opacity: 0; } }
@keyframes psPullR { 0% { transform: translateX(-.3rem) scale(.4); opacity: 0; } 12% { transform: translateX(-.3rem) scale(1); opacity: 1; } 40% { transform: translateX(-.45rem) rotate(2deg); }
  48% { transform: translateX(1.6rem) rotate(14deg); } 85% { transform: translateX(2.4rem) rotate(20deg); opacity: 1; } 100% { transform: translateX(2.6rem) rotate(22deg); opacity: 0; } }
.confetti.fx-pw4 .ps-ck .bang { position: absolute; left: 50%; top: 50%; width: 0; height: 0; animation: psBang 2.1s linear infinite; animation-delay: inherit; }
.confetti.fx-pw4 .ps-ck .bang s { position: absolute; left: -.2rem; top: -.2rem; width: .4rem; height: 1.2rem; border-radius: 3px; background: var(--pc); border: 2px solid #1b1033;
  transform: rotate(var(--a)) translateY(-1.8rem); }
@keyframes psBang { 0%, 44% { transform: scale(0); opacity: 0; } 48% { transform: scale(.6); opacity: 1; } 62% { transform: scale(1.35); opacity: 1; } 75%, 100% { transform: scale(1.6); opacity: 0; } }
.confetti.fx-pw4 .ps-fall { position: absolute; top: -10%; width: calc(2.4rem * var(--s, 1)); animation: psDrift 3.6s linear infinite; }
@keyframes psDrift { 0% { transform: translate(0, 0) rotate(-20deg); } 33% { transform: translate(1.2rem, 40vh) rotate(18deg); } 66% { transform: translate(-1rem, 80vh) rotate(-16deg); }
  100% { transform: translate(.6rem, 120vh) rotate(20deg); } }
