/* Store weekly-deal chat bubbles (kb1-kb4) and answer-button skins (ka1-ka3). Codes registered in style-store.js. */

/* ---- chat bubbles ---- */
html body .bubble.bub-kb1.bub-kb1, html body .bubble.bub-kb2.bub-kb2, html body .bubble.bub-kb3.bub-kb3, html body .bubble.bub-kb4.bub-kb4 { position: relative; }

/* Comic: pale yellow with pink halftone dots, an ink outline and a hard offset shadow */
html body .bubble.bub-kb1.bub-kb1 { color: #1b1033; font-weight: 800; border: 2.5px solid #1b1033; border-radius: 14px 14px 4px 14px;
  background: radial-gradient(circle, rgba(255, 79, 140, .3) 1.5px, transparent 2px) 0 0 / 7px 7px, linear-gradient(#fffbe0, #fff0a0);
  box-shadow: 3px 3px 0 #ff4f8c, 4.5px 4.5px 0 #1b1033; }
html body .bubble.bub-kb1.bub-kb1:not(.mine) { border-radius: 14px 14px 14px 4px; }

/* Bubblegum: glossy pink with a little gum bubble blown off the corner */
html body .bubble.bub-kb2.bub-kb2 { color: #4a0a2a; border: 2px solid #d9408f; border-radius: 22px 22px 8px 22px;
  background: radial-gradient(120% 80% at 30% 0, #ffd0ea, transparent 60%), linear-gradient(#ffa6d6, #ff6fb8); }
html body .bubble.bub-kb2.bub-kb2:not(.mine) { border-radius: 22px 22px 22px 8px; }
html body .bubble.bub-kb2.bub-kb2::after { content: ''; position: absolute; right: -7px; top: -9px; width: 15px; height: 15px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 35% 30%, #fff 0 18%, #ffc2e2 24%, #ff6fb8 85%); border: 2px solid #d9408f; }

/* Denim: indigo twill with gold stitching just inside the edge */
html body .bubble.bub-kb3.bub-kb3 { color: #f2f5ff; border: 2px solid #1c2b5a; border-radius: 12px 12px 4px 12px; text-shadow: 0 1px 0 rgba(0, 0, 0, .35);
  background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .07) 0 2px, transparent 2px 4px), linear-gradient(#4a68b0, #2d4682); }
html body .bubble.bub-kb3.bub-kb3:not(.mine) { border-radius: 12px 12px 12px 4px; }
html body .bubble.bub-kb3.bub-kb3::after { content: ''; position: absolute; inset: 3px; border: 1.5px dashed #ffc65a; border-radius: inherit; pointer-events: none; }
html body .bubble.bub-kb3.bub-kb3 small { color: #f2f5ff; }

/* Chalkboard: slate green in a wooden frame, chalky white writing and a stick of chalk on the ledge */
html body .bubble.bub-kb4.bub-kb4 { color: #f4f7ef; border: 3.5px solid #a8743e; border-radius: 6px; letter-spacing: .01em; margin-bottom: 4px;
  background: radial-gradient(ellipse at 25% 20%, rgba(255, 255, 255, .12), transparent 55%), radial-gradient(ellipse at 80% 90%, rgba(255, 255, 255, .07), transparent 50%), #2f4a3e;
  text-shadow: 0 0 1px rgba(255, 255, 255, .6); }
html body .bubble.bub-kb4.bub-kb4::after { content: ''; position: absolute; right: 12px; bottom: -6px; width: 16px; height: 4.5px; border-radius: 2px; pointer-events: none;
  background: linear-gradient(#ffffff, #dcdcd2); box-shadow: 0 1px 0 rgba(0, 0, 0, .35); }

/* ---- answer-button skins (each keeps its answer colour --c; the badge letter and the .chosen outline are untouched) ---- */
body:is(.btns-ka1, .btns-ka2, .btns-ka3) .abtn, .btns-ka1-demo, .btns-ka2-demo, .btns-ka3-demo { position: relative; isolation: isolate; }

/* Jelly: a squishy see-through jelly in the answer colour, deeper at the bottom with a big wet highlight */
body.btns-ka1 .abtn, .btns-ka1-demo { color: #fff !important; border: 2px solid color-mix(in srgb, var(--c) 50%, #1b1033) !important;
  border-radius: 30px 30px 20px 20px / 30px 30px 16px 16px !important;
  background: radial-gradient(90% 70% at 50% 25%, color-mix(in srgb, var(--c) 55%, white), color-mix(in srgb, var(--c) 92%, #1b1033) 75%) !important;
  box-shadow: inset 0 -8px 14px color-mix(in srgb, var(--c) 55%, #1b1033), inset 0 3px 6px rgba(255, 255, 255, .55), 0 6px 0 color-mix(in srgb, var(--c) 45%, #1b1033) !important;
  text-shadow: 0 1px 3px rgba(27, 16, 51, .7), 0 2px 0 rgba(27, 16, 51, .35) !important; }
body.btns-ka1 .abtn:active { box-shadow: inset 0 -5px 10px color-mix(in srgb, var(--c) 55%, #1b1033), 0 2px 0 color-mix(in srgb, var(--c) 45%, #1b1033) !important; }
body.btns-ka1 .abtn::after, .btns-ka1-demo::after { content: ''; position: absolute; z-index: -1; left: 12%; top: 7%; width: 38%; height: 26%; border-radius: 50%;
  background: linear-gradient(rgba(255, 255, 255, .9), rgba(255, 255, 255, .05)); transform: rotate(-8deg); pointer-events: none; }
body.btns-ka1 .abtn::before, .btns-ka1-demo::before { content: ''; position: absolute; inset: auto; z-index: -1; right: 12%; bottom: 14%; width: 9%; aspect-ratio: 1; border-radius: 50%;
  background: rgba(255, 255, 255, .55); pointer-events: none; }

/* Gemstone: a cut gem in the answer colour, light and dark facets around a flat hexagon table */
body.btns-ka2 .abtn, .btns-ka2-demo { color: #fff !important; border: 2px solid color-mix(in srgb, var(--c) 45%, #1b1033) !important; border-radius: 8px !important;
  background: conic-gradient(from 200deg at 50% 50%, color-mix(in srgb, var(--c) 50%, white) 0deg, var(--c) 60deg, color-mix(in srgb, var(--c) 65%, #1b1033) 120deg,
    color-mix(in srgb, var(--c) 80%, #1b1033) 180deg, var(--c) 240deg, color-mix(in srgb, var(--c) 40%, white) 300deg, color-mix(in srgb, var(--c) 50%, white) 360deg) !important;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .25), 0 6px 0 color-mix(in srgb, var(--c) 40%, #1b1033) !important;
  text-shadow: 0 1px 3px rgba(27, 16, 51, .75), 0 2px 0 rgba(27, 16, 51, .4) !important; }
body.btns-ka2 .abtn:active { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .25), 0 2px 0 color-mix(in srgb, var(--c) 40%, #1b1033) !important; }
body.btns-ka2 .abtn::after, .btns-ka2-demo::after { content: ''; position: absolute; z-index: -1; inset: 16% 12%; pointer-events: none;
  clip-path: polygon(22% 0, 78% 0, 100% 50%, 78% 100%, 22% 100%, 0 50%);
  background: linear-gradient(160deg, rgba(255, 255, 255, .45), color-mix(in srgb, var(--c) 70%, white) 35%, var(--c) 70%, color-mix(in srgb, var(--c) 85%, #1b1033)); }
body.btns-ka2 .abtn::before, .btns-ka2-demo::before { content: ''; position: absolute; inset: auto; z-index: 1; right: 9%; top: 10%; width: 12px; height: 12px; pointer-events: none;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); background: #fff; }
.btns-ka2-demo::before { width: 8px; height: 8px; right: 6%; top: 6%; }

/* Stickers: die-cut stickers with a thick white edge, each stuck on at a slight tilt, with a peeling corner */
body.btns-ka3 .abtn, .btns-ka3-demo { color: #fff !important; border: 4px solid #fff !important; border-radius: 18px !important;
  background: linear-gradient(170deg, color-mix(in srgb, var(--c) 65%, white), var(--c) 55%, color-mix(in srgb, var(--c) 85%, #1b1033)) !important;
  box-shadow: 0 0 0 2px #1b1033, 0 5px 0 2px rgba(27, 16, 51, .55) !important;
  text-shadow: 0 0 2px #1b1033, 0 2px 0 #1b1033 !important; transform: rotate(-1.5deg); }
.btns-ka3-demo { border-width: 3px !important; border-radius: 12px !important; }
body.btns-ka3 .abtn.c1 { transform: rotate(1.2deg); }
body.btns-ka3 .abtn.c2 { transform: rotate(1deg); }
body.btns-ka3 .abtn.c3 { transform: rotate(-1.2deg); }
body.btns-ka3 .abtn.abtn:active { transform: translateY(3px) rotate(0); box-shadow: 0 0 0 2px #1b1033, 0 2px 0 2px rgba(27, 16, 51, .55) !important; }
body.btns-ka3 .abtn::after, .btns-ka3-demo::after { content: ''; position: absolute; z-index: 2; right: -4px; bottom: -4px; width: 20px; height: 20px; pointer-events: none;
  border-radius: 0 0 14px 0; background: linear-gradient(135deg, #e9e6f2 0 50%, transparent 50%); filter: drop-shadow(-1px -1px 1.5px rgba(27, 16, 51, .35)); }
.btns-ka3-demo::after { width: 11px; height: 11px; right: -3px; bottom: -3px; border-radius: 0 0 9px 0; }
/* the chosen sticker straightens up and its outline stands clear of the dark edge */
body.btns-ka3 .abtn.abtn.chosen { transform: rotate(0) scale(1.02); outline-offset: 6px; }
