/* "The Luck of the Kellys": the Kelly Cleaning look for the chat. Loaded into
   the widget's shadow root after its own styles when a page sets
   __chatBrand.skin, so every rule here replaces the comic look.

   Kelly Cleaning wears the shamrock: it is in the logo's ampersand, and the
   company's own products are Lucky Charm, Blarney Buster and Shorn N Begorn.
   So the chat is an Irish hillside on a bright day. A rainbow draws itself
   across the sky as the chat opens, the gentleman pops up over the near hill
   and dances (33 frames cut out of his dance footage, on a filmstrip),
   shamrocks drift on the breeze, and clean little sparkles glint around him.
   His eyes follow the pointer and blink, and his eyebrows go up when you
   reach for a topic. Every topic's shamrock turns into a four-leaf clover
   under your finger, the send button is a gold coin that spins, and the
   welcome bubble is a pub sign swinging on its chains.

   Kelly green and the logo's orange, with gold for ornament, on warm cream.
   The gentleman is cut out of the character artwork (kelly-man.webp, and
   kelly-head.webp for the round avatars) with his eyes and eyebrows painted
   out, because they are drawn here instead. */

:host, :host([data-theme="dark"]) {
  --L: 156px;
  --kg: #189048; --kg2: #14803f; --kg3: #0f6532; --deep: #0b4d26; --leaf: #2fb463; --mint: #e8f5ec;
  --orange: #FA9129; --orange2: #e5741a; --gold: #e8b84a; --gold2: #a87a1e; --cream: #fbf6e9; --cream2: #f3ecd9;
  --bg: #faf7ef; --surface: #ffffff; --text: #1d2b22; --muted: #5f6b62; --ink: #12301e; --paper: #fff;
  --line: #e6dfcc; --line2: #d6cdb4; --hard: transparent; --focus: #14803f;
  --hot: linear-gradient(180deg, #ffa13d 0%, #e5741a 100%);
  --emerald: linear-gradient(180deg, #14803f 0%, #0b4d26 100%);
  --goldring: conic-gradient(from 210deg, #fff0b8, #e8b84a 20%, #a87a1e 40%, #f6d77a 60%, #b8860b 80%, #fff0b8);
  --soft: 0 1px 2px rgba(18, 48, 30, .06), 0 10px 22px -14px rgba(18, 48, 30, .35);
  --star: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
}

@keyframes s-rise { from { transform: translateY(10px); opacity: 0 } to { transform: none; opacity: 1 } }
@keyframes s-in { from { opacity: 0 } to { opacity: 1 } }
@keyframes s-pop { 0% { transform: scale(.7); opacity: 0 } 70% { transform: scale(1.05); opacity: 1 } 100% { transform: none; opacity: 1 } }
@keyframes s-pulse { 0%, 100% { transform: none } 50% { transform: scale(1.06) } }
@keyframes s-ring { 0% { transform: scale(1); opacity: .65 } 100% { transform: scale(1.55); opacity: 0 } }
@keyframes s-hop { 0%, 76%, 100% { translate: 0 0 } 80% { translate: 0 -12px } 84% { translate: 0 0 } 87% { translate: 0 -5px } 90% { translate: 0 0 } }
@keyframes s-wipe { from { clip-path: inset(0 100% 0 0) } to { clip-path: inset(0 0 0 0) } }
@keyframes s-hill { from { translate: 0 30px } to { translate: 0 0 } }
@keyframes s-popup { 0% { translate: 0 110%; } 62% { translate: 0 -5%; } 80% { translate: 0 2%; } 100% { translate: 0 0; } }
@keyframes s-breathe { 0%, 100% { scale: 1 1 } 50% { scale: 1.006 1.012 } }
@keyframes s-drift { 0% { transform: translate(0, 0) rotate(0); opacity: 0 } 8% { opacity: var(--o, .9) } 92% { opacity: var(--o, .9) } 100% { transform: translate(-460px, var(--dy, 40px)) rotate(var(--r, -360deg)); opacity: 0 } }
@keyframes s-twinkle { 0%, 100% { scale: 0; rotate: 0deg } 45% { scale: 1; rotate: 45deg } 70% { scale: .2; rotate: 80deg } }
@keyframes s-blink { 0%, 44%, 47.5%, 92%, 95%, 96.5%, 99%, 100% { transform: scaleY(1) } 45.5%, 93.5%, 97.8% { transform: scaleY(.12) } }
@keyframes s-wake { 0%, 55% { transform: scaleY(.12) } 100% { transform: scaleY(1) } }
@keyframes s-brow { 0%, 80%, 100% { translate: 0 0 } 84%, 92% { translate: 0 -34% } }
@keyframes s-burst { 0% { transform: translate(0, 0) rotate(0) scale(.2); opacity: 1 } 35% { transform: translate(var(--bx), var(--by)) rotate(calc(var(--r) * .5)) scale(1); opacity: 1 } 100% { transform: translate(calc(var(--bx) * 1.3), calc(var(--by) + 230px)) rotate(var(--r)) scale(.8); opacity: 0 } }
@keyframes s-burst-a { 0% { transform: translate(0, 0) rotate(0) scale(.2); opacity: 1 } 35% { transform: translate(var(--bx), var(--by)) rotate(calc(var(--r) * .5)) scale(1); opacity: 1 } 100% { transform: translate(calc(var(--bx) * 1.3), calc(var(--by) + 230px)) rotate(var(--r)) scale(.8); opacity: 0 } }
@keyframes s-burst-b { 0% { transform: translate(0, 0) rotate(0) scale(.2); opacity: 1 } 35% { transform: translate(var(--bx), var(--by)) rotate(calc(var(--r) * .5)) scale(1); opacity: 1 } 100% { transform: translate(calc(var(--bx) * 1.3), calc(var(--by) + 230px)) rotate(var(--r)) scale(.8); opacity: 0 } }
@keyframes s-jig-a { 0%, 100% { rotate: 0deg; translate: 0 0 } 20% { rotate: -4deg; translate: 0 -14px } 40% { rotate: 3deg; translate: 0 0 } 60% { rotate: -2deg; translate: 0 -8px } 80% { rotate: 1deg; translate: 0 0 } }
@keyframes s-jig-b { 0%, 100% { rotate: 0deg; translate: 0 0 } 20% { rotate: -4deg; translate: 0 -14px } 40% { rotate: 3deg; translate: 0 0 } 60% { rotate: -2deg; translate: 0 -8px } 80% { rotate: 1deg; translate: 0 0 } }
@keyframes s-swing { 0%, 100% { rotate: -1.6deg } 50% { rotate: 1.6deg } }
@keyframes s-swing-hard { 0% { rotate: 0deg } 20% { rotate: 6deg } 45% { rotate: -4.5deg } 70% { rotate: 2.5deg } 100% { rotate: 0deg } }
@keyframes s-sign-in { 0% { transform: translateY(-40px) rotate(-8deg); opacity: 0 } 55% { transform: translateY(4px) rotate(4deg); opacity: 1 } 80% { transform: rotate(-2deg) } 100% { transform: none; opacity: 1 } }
@keyframes s-coin { from { transform: rotateY(0) } to { transform: rotateY(360deg) } }
@keyframes s-shamrock-bob { 0%, 100% { transform: translateY(0) rotate(0) } 50% { transform: translateY(-5px) rotate(20deg) } }
@keyframes s-flash { from { transform: translateX(-130%) } to { transform: translateX(130%) } }

/* ---- the gentleman's face, wherever it is round: a cream disc in a gold
   ring. The launcher's face has live eyes (its .fx), the small ones have
   painted dots placed on his ---- */
.launch .face, .hface, .av { border: 0; padding: 0; overflow: hidden; background: radial-gradient(circle at 50% 30%, #fffdf6, #f1e7cc); box-shadow: 0 0 0 3px #e8b84a, 0 0 0 4.5px #a87a1e, 0 8px 18px -8px rgba(18, 48, 30, .5); }
.launch .face::before, .hface::before, .av::before { display: none; }
.launch .face img, .hface img, .av img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; max-width: none; border-radius: 0; object-fit: cover; pointer-events: none; }
.hface::after, .av::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; border: 0; border-radius: 50%; animation: none;
  background: radial-gradient(2.4% 2.4% at 43.16% 41.75%, #0b0b0b 96%, transparent 100%), radial-gradient(2.53% 2.53% at 68.52% 40.47%, #0b0b0b 96%, transparent 100%); }

/* ---- launcher ---- */
/* ---- the launcher: Sierge, head to brogues, dancing on a little patch of
   grass. He is the same 100 frames as the welcome scene, cut out of his
   dance footage, playing on a loop ---- */
.launch { width: calc(var(--L) * 382 / 664); height: var(--L); border-radius: 0; overflow: visible; }
.launch .wig { animation: none; }
.launch .face { display: none; }
.launch .wig::before { content: ""; position: absolute; inset: 0; z-index: 1; transform-origin: 50% 100%; transition: transform .3s var(--spring);
  background: url("kelly-jig.webp") 0 0 / 5000% 200% no-repeat; filter: drop-shadow(0 8px 6px rgba(18, 48, 30, .3));
  animation: s-reel-x 5s steps(50, jump-none) infinite, s-reel-y 10s steps(2, jump-none) infinite; }
.launch .fx { display: none; }
/* the grass he dances on, with a ring of gold pulsing out */
.launch::before { content: ""; position: absolute; left: -14%; right: -14%; bottom: -12px; height: 26px; border-radius: 50%; pointer-events: none; border: 0;
  background: radial-gradient(closest-side, #2fb463 0, #189048 55%, rgba(24, 144, 72, .35) 78%, transparent 100%); box-shadow: none; animation: none; }
.launch::after { content: ""; position: absolute; left: -16%; right: -16%; bottom: -14px; height: 30px; border-radius: 50%; pointer-events: none; border: 2px solid var(--gold); animation: s-ring 2.6s ease-out infinite; }
.launch:hover .wig::before, .launch:focus-visible .wig::before { transform: scale(1.07); }
.launch:focus-visible { outline: none; }
.launch:focus-visible::after { border: 3px solid var(--kg); animation: none; box-shadow: 0 0 14px rgba(24, 144, 72, .7); }
@keyframes s-bobjig { 0%, 50%, 100% { translate: 0 0 } 25%, 75% { translate: 0 -6px } 0%, 100% { rotate: -5deg } 50% { rotate: 5deg } }
.launch .tag { z-index: 3; left: auto; right: calc(100% + 30px); bottom: 38%; transform: translateY(50%); transition: opacity .25s, transform .35s var(--spring); border: 0; border-radius: 999px; padding: 9px 16px 8px; background: var(--hot); color: #fff; font: 800 15px/1 var(--disp); letter-spacing: .04em; text-transform: uppercase; box-shadow: 0 10px 22px -10px rgba(229, 116, 26, .85); }
.launch.hide { transform: scale(.6); }
.wrap:has(.teaser) .launch .tag { opacity: 0; transform: translateY(50%) scale(.6); pointer-events: none; }
/* his live eyes on the launcher */

/* ---- the welcome bubble: a pub sign on two chains, swinging ---- */
.teaser { width: 292px; transform-origin: 50% -30px; animation: s-sign-in .9s var(--spring) backwards, s-swing 3.6s ease-in-out 1s infinite; }
.teaser.out { animation: s-pop .25s ease-in reverse forwards; }
.teaser:hover { animation: s-swing-hard 1.2s ease-out; }
/* the iron bar it hangs from, and its two chains */
.teaser::before { content: ""; position: absolute; left: 14%; right: 14%; top: -30px; height: 6px; border-radius: 3px; pointer-events: none;
  background: linear-gradient(180deg, #5a5a5a, #1e1e1e); box-shadow: 0 2px 3px rgba(0, 0, 0, .3); }
.teaser::after { content: ""; position: absolute; left: calc(14% + 14px); right: calc(14% + 14px); top: -25px; height: 27px; pointer-events: none;
  background: repeating-linear-gradient(180deg, #3b3b3b 0 4px, transparent 4px 5px, #6a6a6a 5px 8px, transparent 8px 9px) 0 0 / 3px 100% no-repeat,
    repeating-linear-gradient(180deg, #3b3b3b 0 4px, transparent 4px 5px, #6a6a6a 5px 8px, transparent 8px 9px) 100% 0 / 3px 100% no-repeat; }
.teaser .tb { padding: 16px 18px 18px; border: 3px solid transparent; border-radius: 12px; color: #fdf6e3; text-align: left;
  background: repeating-linear-gradient(90deg, rgba(0, 0, 0, .06) 0 2px, transparent 2px 9px, rgba(255, 255, 255, .03) 9px 11px, transparent 11px 23px) padding-box,
    linear-gradient(180deg, #16733a, #0b4d26) padding-box, linear-gradient(160deg, #fff0b8, #e8b84a 30%, #a87a1e 60%, #f6d77a 80%, #b8860b) border-box;
  box-shadow: inset 0 0 0 5px rgba(11, 77, 38, .0), inset 0 0 0 6px rgba(232, 184, 74, .55), 0 24px 40px -18px rgba(18, 48, 30, .6); transition: transform .25s var(--spring); }
.teaser .tb::before { content: "Céad míle fáilte"; display: block; position: static; width: auto; height: auto; margin: 0 0 6px; background: none; border: 0; transform: none; font: 400 17px/1.1 "Uncial Antiqua", var(--disp); color: var(--gold); letter-spacing: .02em; text-shadow: 0 1px 0 rgba(0, 0, 0, .35); }
.teaser .pow, .teaser .powt { display: none; }
.teaser .tb { display: flex; flex-direction: column; align-items: flex-start; }
.teaser .tb::before { order: 0; margin-bottom: 1px; z-index: auto; }
.teaser .tb::after { content: "(a hundred thousand welcomes)"; order: 1; display: block; position: static; width: auto; height: auto; margin: 0 0 8px; background: none; border: 0; transform: none; font: italic 600 11.5px/1.2 var(--body); color: rgba(246, 199, 92, .85); }
.teaser .tb b { order: 2; }
.teaser .tb small { order: 3; }
.teaser b { font: 800 27px/.98 var(--disp); text-transform: uppercase; letter-spacing: .005em; color: #fdf6e3; text-shadow: 0 2px 0 rgba(0, 0, 0, .25); }
.teaser b em, :host([data-theme="dark"]) .teaser b em { display: block; color: #f6c75c; }
.teaser small { margin-top: 8px; font: 500 13px/1.45 var(--body); color: rgba(253, 246, 227, .88); }
.teaser small::after { content: "Start talking to Sierge  \2192"; display: flex; width: max-content; margin-top: 12px; padding: 10px 17px 9px; border-radius: 999px; background: var(--hot); color: #fff; font: 800 13.5px/1 var(--disp); letter-spacing: .05em; text-transform: uppercase; box-shadow: 0 8px 16px -8px rgba(0, 0, 0, .5); transition: filter .2s, transform .25s var(--spring); }
.teaser .tb:hover small::after, .teaser .tb:focus-visible small::after { filter: brightness(1.08); transform: translateX(3px); }
.teaser .tx, :host([data-theme="dark"]) .teaser .tx { top: -11px; right: -11px; width: 30px; height: 30px; border: 0; background: radial-gradient(circle at 50% 35%, #fffdf6, #efe4c6); color: var(--deep); box-shadow: 0 0 0 2px #e8b84a, 0 4px 10px -4px rgba(0, 0, 0, .45); }
.teaser .tx .ic { width: 12px; height: 12px; stroke-width: 3; }

/* ---- panel ---- */
.panel { border: 2px solid transparent; padding: 0; border-radius: 20px; overflow: hidden; background: linear-gradient(var(--bg), var(--bg)) padding-box, linear-gradient(160deg, #fff0b8, #e8b84a 30%, #a87a1e 55%, #f6d77a 75%, #b8860b) border-box; box-shadow: 0 40px 90px -30px rgba(18, 48, 30, .55); }
.panel::before, .panel::after { display: none; }
/* a burst of shamrocks out of his bouquet when the chat opens, and when you tap him */
.panel > .fx { position: absolute; z-index: 8; left: 69%; top: 282px; width: 0; height: 0; pointer-events: none; }
.panel > .fx i { position: absolute; left: -8px; top: -8px; width: 16px; height: 16px; background: url("kelly-shamrock-w.svg") center / contain no-repeat; opacity: 0; }
.panel > .fx i:nth-child(3n) { width: 11px; height: 11px; background: radial-gradient(circle at 40% 35%, #fff3c4, #f1c453 50%, #b8860b); border-radius: 50%; }
.panel > .fx i:nth-child(4n+1) { width: 20px; height: 20px; }
.wrap.is-open .panel > .fx i { animation: s-burst 1.6s cubic-bezier(.15, .7, .3, 1) 1.15s both; }
.wrap.is-open[data-hit="a"] .panel > .fx i { animation: s-burst-a 1.5s cubic-bezier(.15, .7, .3, 1) both; }
.wrap.is-open[data-hit="b"] .panel > .fx i { animation: s-burst-b 1.5s cubic-bezier(.15, .7, .3, 1) both; }
.panel > .fx i:nth-child(1) { --bx: -150px; --by: -60px; --r: 420deg; }
.panel > .fx i:nth-child(2) { --bx: -120px; --by: -96px; --r: -300deg; }
.panel > .fx i:nth-child(3) { --bx: -95px; --by: -40px; --r: 520deg; }
.panel > .fx i:nth-child(4) { --bx: -72px; --by: -110px; --r: -460deg; }
.panel > .fx i:nth-child(5) { --bx: -48px; --by: -70px; --r: 380deg; }
.panel > .fx i:nth-child(6) { --bx: -26px; --by: -120px; --r: -600deg; }
.panel > .fx i:nth-child(7) { --bx: -8px; --by: -84px; --r: 300deg; }
.panel > .fx i:nth-child(8) { --bx: 12px; --by: -128px; --r: -420deg; }
.panel > .fx i:nth-child(9) { --bx: 30px; --by: -78px; --r: 560deg; }
.panel > .fx i:nth-child(10) { --bx: 48px; --by: -108px; --r: -380deg; }
.panel > .fx i:nth-child(11) { --bx: 64px; --by: -54px; --r: 640deg; }
.panel > .fx i:nth-child(12) { --bx: 80px; --by: -92px; --r: -300deg; }
.panel > .fx i:nth-child(13) { --bx: -136px; --by: -20px; --r: 480deg; }
.panel > .fx i:nth-child(14) { --bx: -60px; --by: -140px; --r: -520deg; }
.panel > .fx i:nth-child(15) { --bx: 22px; --by: -40px; --r: 360deg; }
.panel > .fx i:nth-child(16) { --bx: -104px; --by: -128px; --r: -640deg; }

/* ---- header: emerald, the logo on a cream plaque, a gold Celtic braid below ---- */
.head { min-height: 92px; padding: 16px 12px 26px 88px; border: 0; border-radius: 0; overflow: hidden; color: #fff;
  background: radial-gradient(120% 140% at 0% 0%, rgba(255, 255, 255, .12), transparent 55%), repeating-linear-gradient(45deg, rgba(255, 255, 255, .035) 0 2px, transparent 2px 10px), var(--emerald); }
.head::before { display: none; }
.head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 14px; pointer-events: none; background: url("kelly-knot.svg") 0 50% / 40px 14px repeat-x; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .25)); }
.hface { z-index: 1; left: 18px; top: 20px; width: 52px; height: 52px; }
.wrap.is-open .hface { animation: s-pop .5s .1s both; }
.htext, .hbtn { position: relative; z-index: 1; }
.htext h2 { width: 158px; max-width: 100%; height: 36px; box-sizing: border-box; padding: 5px 9px; border-radius: 7px; font-size: 0; line-height: 0; color: transparent; -webkit-text-fill-color: transparent; text-shadow: none;
  background: url("kelly-logo.webp") no-repeat center / contain content-box, linear-gradient(180deg, #fffdf6, #f4ebd2) border-box; box-shadow: 0 0 0 1.5px #e8b84a, 0 4px 10px -4px rgba(0, 0, 0, .45); }
.htext p { margin-top: 7px; font-weight: 600; color: rgba(255, 255, 255, .86); }
.hbtn { width: 34px; height: 34px; border: 0; background: rgba(255, 255, 255, .12); color: #fff; box-shadow: inset 0 0 0 1px rgba(232, 184, 74, .6); transition: transform .2s, background .2s; }
.hbtn:hover { transform: rotate(90deg); background: var(--orange); box-shadow: none; }
.hbtn .ic { width: 15px; height: 15px; stroke-width: 2.6; }

.strip, :host([data-theme="dark"]) .strip { background: var(--cream); border: 0; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--muted); }
.strip::before { display: none; }
.head :focus-visible, .strip :focus-visible { outline-color: var(--focus); }
.strip a { color: var(--muted); }
.strip a b { font: 800 16px/1 var(--disp); letter-spacing: .01em; color: var(--deep); }
.strip .ic { color: var(--kg); }
.strip button { background: var(--hot); color: #fff; border: 0; border-radius: 999px; padding: 7px 13px 6px 10px; font: 800 12.5px/1 var(--disp); letter-spacing: .04em; text-transform: uppercase; box-shadow: 0 6px 14px -8px rgba(229, 116, 26, .85); }
.strip button .ic { color: #fff; }
.strip button:hover { filter: brightness(1.06); transform: none; }

.scroller { background: var(--bg); }
.scroller::-webkit-scrollbar { width: 8px; }
.scroller::-webkit-scrollbar-thumb { background: #d6cdb4; border: 2px solid var(--bg); }

/* the heading over the topics, between two gold braids */
.tilehead, :host([data-theme="dark"]) .tilehead { margin: 18px 0 12px; gap: 10px; justify-content: center; }
.tilehead::before { content: ""; flex: 1; height: 12px; background: url("kelly-knot.svg") 100% 50% / 34px 12px repeat-x; opacity: .9; }
.tilehead h3 { font: 800 12px/1 var(--disp); letter-spacing: .16em; text-transform: uppercase; color: var(--deep); white-space: nowrap; }
.tilehead h3 span { background: none; }
.tilehead .zig, :host([data-theme="dark"]) .tilehead .zig { flex: 1; height: 12px; width: auto; opacity: .9; animation: none; background: url("kelly-knot.svg") 0 50% / 34px 12px repeat-x; }

/* ---- topics: each carries a shamrock that turns into a four-leaf clover ---- */
.tiles { gap: 10px; padding: 0; }
.tile, .tile.ink, .tile.glove, :host([data-theme="dark"]) .tile.ink { overflow: hidden; min-height: 76px; padding: 12px 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--text); box-shadow: var(--soft); transform: none; transition: transform .22s var(--spring), border-color .2s, box-shadow .2s; }
.wrap.is-open .tile { animation: s-rise .45s var(--ease) backwards; animation-delay: calc(.6s + var(--i) * 60ms); }
.tile::before, .tile::after { content: ""; position: absolute; right: 7px; top: 7px; width: 20px; height: 20px; pointer-events: none; background: center / contain no-repeat; transition: transform .5s var(--spring), opacity .3s; }
.tile::before { background-image: url("kelly-shamrock.svg"); opacity: .9; }
.tile::after { background-image: url("kelly-clover.svg"); opacity: 0; transform: scale(.2) rotate(-120deg); }
.tile:hover::before, .tile:focus-visible::before { opacity: 0; transform: scale(.4) rotate(160deg); }
.tile:hover::after, .tile:focus-visible::after { opacity: 1; transform: scale(1.35) rotate(0); filter: drop-shadow(0 0 5px rgba(232, 184, 74, .9)); }
.tile:hover, .tile:focus-visible { transform: translateY(-3px); border-color: var(--leaf); box-shadow: 0 0 0 1px var(--leaf), 0 14px 26px -14px rgba(24, 144, 72, .6); }
.tile:active { transform: scale(.98); }
.tile .ti, .tile.ink .ti, .tile.glove .ti { border: 0; border-radius: 50%; background: var(--mint); color: var(--kg2); box-shadow: inset 0 0 0 1.5px rgba(24, 144, 72, .25); }
.tile .ti .ic { width: 18px; height: 18px; }
.tile b { padding-right: 18px; font: 700 14.5px/1.15 var(--disp); letter-spacing: -.005em; color: var(--deep); text-transform: none; }
.tile small, .tile.ink small, .tile.glove small { font: 500 11.5px/1.3 var(--body); color: var(--muted); }
/* the two that act are orange, and their shamrocks are gold */
.tile.red { overflow: hidden; min-height: 76px; padding: 12px; border: 1px solid transparent; border-radius: 14px; background: var(--hot); color: #fff; box-shadow: 0 12px 24px -14px rgba(229, 116, 26, .85); transform: none; }
.tile.red b { color: #fff; }
.tile.red small { color: rgba(255, 255, 255, .9); font-weight: 600; }
.tile.red .ti { border: 0; border-radius: 50%; background: rgba(255, 255, 255, .22); color: #fff; box-shadow: none; }
.tile.red::before { filter: brightness(0) invert(1); opacity: .75; }
.tile.red:hover, .tile.red:focus-visible { border-color: transparent; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--orange2), 0 14px 26px -14px rgba(229, 116, 26, .9); }
.ownq { font-weight: 500; color: var(--muted); text-align: center; }

/* ---- conversation ---- */
.log { gap: 18px; }
.u, :host([data-theme="dark"]) .u { background: var(--emerald); color: #fff; border: 0; border-radius: 16px 16px 4px 16px; padding: 10px 14px; font-weight: 500; box-shadow: 0 8px 18px -12px rgba(11, 77, 38, .8); }
.bot { grid-template-columns: 40px minmax(0, 1fr); column-gap: 12px; row-gap: 12px; }
.av { width: 40px; height: 40px; margin-top: 6px; }
.typing .av { margin-top: 0; }
.bot.in .av { animation: s-pop .4s both; }
.bubble { overflow: hidden; background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--kg); border-radius: 4px 16px 16px 16px; padding: 12px 14px; box-shadow: var(--soft); }
.bubble::before { display: none; }
.bot.in .bubble { animation: s-rise .35s var(--ease) backwards; }
/* a glint of clean as each answer lands */
.bot.in .bubble::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 35%, rgba(255, 243, 196, .7) 50%, transparent 65%); animation: s-flash .9s .15s ease-out both; }
.bubble p { font: 400 14.5px/1.6 var(--body); color: var(--text); }
.who, :host([data-theme="dark"]) .who { margin-bottom: 6px; font: 800 11.5px/1 var(--disp); letter-spacing: .14em; text-transform: uppercase !important; color: var(--kg2); }
.kick, :host([data-theme="dark"]) .kick, .ghead .kick { margin: 4px 0 10px 2px; padding: 0 0 0 22px; position: relative; background: none; color: var(--deep); border: 0; font: 800 12px/1 var(--disp); letter-spacing: .14em; text-transform: uppercase; transform: none; box-shadow: none; }
.kick::before { content: ""; position: absolute; left: 0; top: 50%; width: 16px; height: 16px; margin-top: -9px; background: url("kelly-shamrock.svg") center / contain no-repeat; transform: none; border-radius: 0; }

.ghead { margin-bottom: 0; }
.ghead img, .ghead .gn { display: none; }
.secs { gap: 8px; }
.sec { counter-increment: p; }
.sec, .sec.v1, .sec.v2, .sec.v3, .sec.v4, :host([data-theme="dark"]) .sec.v1 { border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px 14px; background: #fff; color: var(--text); box-shadow: var(--soft); transform: none; }
.sec::after { display: none; }
.bot.in .sec { animation: s-rise .4s var(--ease) backwards; animation-delay: calc(.1s + var(--i) * 70ms); }
.sec .sh { margin-bottom: 6px; }
.sec .num { width: 26px; height: 26px; border-radius: 50%; background: var(--goldring); box-shadow: 0 1px 2px rgba(0, 0, 0, .2); display: grid; place-items: center; }
.sec .num svg, .sec .num span, .sec.v1 .num span, .sec.v2 .num span, .sec.v3 .num span, .sec.v4 .num span { display: none; }
.sec .num::after { content: counter(p); font: 800 12px/1 var(--disp); color: #5a3d06; }
.sec h4 { font: 700 15.5px/1.2 var(--disp); letter-spacing: -.005em; color: var(--deep); }
.sec .si { display: none; }
.sec p { font: 400 13.5px/1.58 var(--body); color: #3c4a40; }

.links { gap: 8px; }
.card { grid-template-columns: 36px minmax(0, 1fr) 28px; gap: 11px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--text); box-shadow: var(--soft); transform: none; transition: border-color .2s, box-shadow .2s; }
.card::before, .card::after { display: none; }
.bot.in .card { animation: s-rise .4s var(--ease) backwards; animation-delay: calc(.2s + var(--i) * 60ms); }
.card:hover, .card:focus-visible { transform: none; border-color: var(--leaf); box-shadow: 0 0 0 1px var(--leaf), var(--soft); }
.card .ci, .card:nth-child(1) .ci, .card:nth-child(2) .ci, :host([data-theme="dark"]) .card:nth-child(2) .ci { width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--mint); color: var(--kg2); box-shadow: none; }
.card .ct { font: 700 14.5px/1.2 var(--disp); color: var(--deep); }
.card .cw { margin-top: 3px; font-size: 12px; color: var(--muted); }
.card .go { width: 28px; height: 28px; border: 0; background: transparent; color: var(--orange2); box-shadow: none; transition: transform .2s var(--ease); }
.card:hover .go { transform: translateX(3px); }
.card .go .ic { width: 16px; height: 16px; stroke-width: 2.6; }

.follow { gap: 8px; }
.chip, .chip:nth-child(2), .chip:nth-child(3), :host([data-theme="dark"]) .chip, :host([data-theme="dark"]) .chip:nth-child(2) { gap: 0; padding: 9px 14px; border: 1px solid rgba(24, 144, 72, .45); background: #fff; color: var(--kg3); font: 600 13px/1.25 var(--body); box-shadow: none; transform: none; transition: background .15s, color .15s, border-color .15s; }
.chip .q { display: none; }
.chip:hover, .chip:focus-visible { transform: none; border-color: var(--kg); background: var(--kg); color: #fff; box-shadow: none; }
.bot.in .chip { animation: s-rise .35s var(--ease) backwards; animation-delay: calc(.3s + var(--i) * 50ms); }

/* thinking: three little shamrocks bob */
.typing { gap: 12px; }
.thought { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 10px 14px; box-shadow: var(--soft); animation: s-in .3s both; }
.thought::before, .thought::after { display: none; }
.dots { align-items: center; height: 16px; gap: 4px; }
.dots i, .dots i:nth-child(2), .dots i:nth-child(3), :host([data-theme="dark"]) .dots i:nth-child(2) { width: 14px; height: 14px; border: 0; border-radius: 0; background: url("kelly-shamrock.svg") center / contain no-repeat; animation: s-shamrock-bob .9s ease-in-out infinite; }
.dots i:nth-child(2), :host([data-theme="dark"]) .dots i:nth-child(2) { animation-delay: .15s; }
.dots i:nth-child(3) { animation-delay: .3s; }
.tl { color: var(--muted); }

.contact { border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--soft); overflow: hidden; }
.bot.in .contact { animation: s-rise .4s var(--ease) .15s backwards; }
.ctop { position: relative; padding: 15px 16px 22px; border: 0; background: var(--emerald); color: #fff; }
.ctop::after { content: ""; position: absolute; left: 0; right: 0; bottom: 3px; height: 12px; background: url("kelly-knot.svg") 0 50% / 34px 12px repeat-x; }
.ctop h4 { font: 800 19px/1.1 var(--disp); text-transform: uppercase; letter-spacing: .01em; text-shadow: none; color: #fff; }
.ctop p { font-weight: 500; color: rgba(255, 255, 255, .86); }
.call, :host([data-theme="dark"]) .call { border: 1px solid var(--line); border-radius: 12px; background: var(--cream); color: var(--text); box-shadow: none; }
.call:hover, .call:focus-visible { transform: none; border-color: var(--orange); box-shadow: none; }
.call .cc { width: 40px; height: 40px; border: 0; background: var(--hot); color: #fff; }
.call small { color: var(--muted); }
.or { font-weight: 500; color: var(--muted); }
.f label { color: var(--deep); }
.f label span { color: var(--muted); }
.f input, .f textarea, :host([data-theme="dark"]) .f input, :host([data-theme="dark"]) .f textarea { border: 1px solid var(--line2); border-radius: 10px; background: #fffdf8; color: var(--text); box-shadow: none; }
.f input:focus, .f textarea:focus, :host([data-theme="dark"]) .f input:focus, :host([data-theme="dark"]) .f textarea:focus { border-color: var(--kg); box-shadow: 0 0 0 3px rgba(24, 144, 72, .18); }
.f [aria-invalid="true"] { border-color: #d6334b; box-shadow: 0 0 0 3px rgba(214, 51, 75, .15); }
.fe, .ferr, :host([data-theme="dark"]) .fe, :host([data-theme="dark"]) .ferr { color: #c4142d; }
.btn, :host([data-theme="dark"]) .btn { padding: 12px 18px 11px; border: 0; border-radius: 10px; background: var(--hot); color: #fff; box-shadow: none; }
.btn:hover, .btn:focus-visible { transform: none; filter: brightness(1.06); box-shadow: none; }
.btn.ghost { background: #fff; color: var(--text); border: 1px solid var(--line2); }
.done { border: 1px solid rgba(24, 144, 72, .35); border-radius: 12px; background: var(--mint); color: var(--text); box-shadow: none; animation: s-rise .35s both; }
.done .ck { border: 0; background: var(--kg); color: #fff; }
.done .sent, .done .sentt { display: none; }
.bubble.err { border-color: #e9a3ae; border-left-color: #d6334b; box-shadow: none; }

/* composer: you send with a gold coin, and it spins */
.offline { background: var(--bg); border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.composer { position: relative; background: var(--cream); border-top: 1px solid var(--line); border-radius: 0; perspective: 400px; }
.composer::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; opacity: 0; pointer-events: none; background: linear-gradient(90deg, transparent, var(--kg), var(--orange), transparent) 0 0 / 50% 100% no-repeat; }
.wrap.thinking .composer::before { opacity: 1; animation: s-flash 1.1s linear infinite; }
.composer textarea, :host([data-theme="dark"]) .composer textarea { min-height: 48px; border: 1px solid var(--line2); border-radius: 12px; background: #fff; color: var(--text); box-shadow: none; }
.composer textarea:focus, :host([data-theme="dark"]) .composer textarea:focus { border-color: var(--kg); box-shadow: 0 0 0 3px rgba(24, 144, 72, .16); }
.composer textarea::placeholder { color: #8a8f80; }
.send, :host([data-theme="dark"]) .send { width: 48px; height: 48px; border: 0; border-radius: 50%; background: url("kelly-coin.svg") center / contain no-repeat; color: #6b4a0c; box-shadow: 0 6px 12px -6px rgba(120, 80, 10, .7); animation: none; transition: transform .25s var(--spring), filter .2s, opacity .2s; }
.send .ic { position: relative; width: 17px; height: 17px; stroke-width: 3; color: #5a3d06; filter: drop-shadow(0 1px 0 rgba(255, 243, 196, .9)); background: radial-gradient(circle, rgba(255, 238, 170, .95) 0 58%, transparent 62%); border-radius: 50%; padding: 4px; box-sizing: content-box; }
.send:not([disabled]):hover { animation: s-coin .8s ease-in-out; }
.send:not([disabled]):active { transform: scale(.92); }
.send[disabled] { opacity: .45; filter: grayscale(.6); }

/* ---- the phone number, as a proper green button ---- */
.strip a { white-space: nowrap; flex: none; padding: 7px 14px 7px 11px; border-radius: 999px; background: var(--emerald); color: rgba(255, 255, 255, .85); box-shadow: 0 6px 14px -8px rgba(11, 77, 38, .8), inset 0 0 0 1.5px rgba(232, 184, 74, .55); transition: filter .15s, transform .2s var(--spring); }
.strip a:hover, .strip a:focus-visible { filter: brightness(1.08); transform: translateY(-1px); }
.strip a b { font: 800 17px/1 var(--disp); letter-spacing: .01em; color: #fff; }
.strip a .ic { color: var(--gold); width: 17px; height: 17px; }

@media (max-width: 480px) {
  :host, :host([data-theme="dark"]) { --L: 124px; }
  .panel { border: 0; border-radius: 0; box-shadow: none; background: var(--bg); }
  .head { padding: calc(16px + env(safe-area-inset-top, 0px)) calc(10px + env(safe-area-inset-right, 0px)) 26px calc(84px + env(safe-area-inset-left, 0px)); }
  .hface { top: calc(20px + env(safe-area-inset-top, 0px)); left: calc(16px + env(safe-area-inset-left, 0px)); }
  .htext h2 { width: 148px; height: 34px; }
  .hbtn { width: 38px; height: 38px; }
  .strip a, .strip button { white-space: nowrap; }
  .strip a span { display: none; }
  .strip { gap: 6px; padding-left: 10px; padding-right: 10px; }
  .strip a { padding: 6px 11px 6px 9px; gap: 6px; }
  .strip a b { font-size: 15px; }
  .strip a .ic { width: 15px; height: 15px; }
  .strip button { padding: 6px 10px 5px 8px; font-size: 11px; gap: 5px; }
  .launch .tag { left: auto; }
  .launch::before { left: -6%; right: -6%; }
  .launch::after { left: -8%; right: -8%; }
  .teaser { width: min(292px, calc(100vw - 32px)); }
  .panel > .fx { left: 72%; }
}
@media (max-width: 384px) {
  .htext h2 { width: 132px; height: 31px; }
  .tile b { font-size: 13.5px; }
}

/* The voice intro and the "quick guide" header show his full picture, which
   has the eyes painted out for the live eyes drawn elsewhere. Here there are
   no live eyes, so they show the cut of him with his own eyes instead
   (kelly-serge-full.webp, from the first frame of his dance video). The
   picture itself is pushed out of its box and the eyed cut painted behind. */
.vi-pic, .ghead img {
  object-position: -9999px 0;
  background: url("kelly-serge-full.webp") 50% 100% / contain no-repeat;
}
.vi-pic { aspect-ratio: 267 / 629; }

/* ======================================================================
   The welcome card
   A compact emerald card at the top of the chat. Left: who he is, his line
   in a white speech bubble pointing at him, and one line that keeps
   changing to show what he does beyond a chatbot. Right: Sierge dancing in
   a soft halo of gold light. It is a grid, so the words set its height and
   nothing is laid over anything else.
   ====================================================================== */
/* kelly-jig.webp: 100 frames of his dance, ten seconds at ten a second, in
   two rows of fifty. One animation steps along a row, the other drops to
   the second row halfway through; the clip starts and ends on the same pose */
@keyframes s-reel-x { from { background-position-x: 0% } to { background-position-x: 100% } }
@keyframes s-reel-y { from { background-position-y: 0% } to { background-position-y: 100% } }
@keyframes s-tap-a { 0%, 100% { translate: 0 0 } 35% { translate: 0 -18px } 65% { translate: 0 0 } 80% { translate: 0 -4px } }
@keyframes s-tap-b { 0%, 100% { translate: 0 0 } 35% { translate: 0 -18px } 65% { translate: 0 0 } 80% { translate: 0 -4px } }
@keyframes s-halo { 0%, 100% { opacity: .8; scale: 1 } 50% { opacity: 1; scale: 1.05 } }
@keyframes s-sndpulse { 0%, 100% { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22), 0 0 0 0 rgba(255, 255, 255, .35) } 60% { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22), 0 0 0 7px rgba(255, 255, 255, 0) } }
@keyframes s-live { 0% { box-shadow: 0 0 0 0 rgba(246, 199, 92, .6) } 70%, 100% { box-shadow: 0 0 0 6px rgba(246, 199, 92, 0) } }

.stage, :host([data-theme="dark"]) .stage {
  --mh: 166px; --mw: calc(var(--mh) * 382 / 664); --mr: 4px; --mb: 0px;
  display: grid; grid-template-columns: minmax(0, 1fr) calc(var(--mw) + var(--mr) - 6px); grid-template-rows: auto auto 1fr; row-gap: 9px;
  height: auto; min-height: 176px; margin: 0; padding: 14px 0 13px 16px;
  overflow: hidden; isolation: isolate; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
  border: 0; border-radius: 22px; transform: none; color: #fff;
  background:
    radial-gradient(260px 170px at 0% 0%, rgba(62, 200, 116, .34), rgba(62, 200, 116, 0) 70%),
    radial-gradient(200px 140px at 100% 100%, rgba(4, 34, 17, .55), rgba(4, 34, 17, 0) 70%),
    linear-gradient(155deg, #15723b 0%, #0d5429 52%, #0a4121 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), inset 0 1px 0 rgba(255, 255, 255, .14), 0 1px 2px rgba(11, 77, 38, .2), 0 20px 36px -24px rgba(11, 77, 38, .95);
}
/* his halo, and the soft shadow he dances on */
.stage::before { content: ""; position: absolute; z-index: 1; right: calc(var(--mr) + var(--mw) / 2 - 78px); top: 50%; width: 156px; height: 156px; margin-top: -70px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 214, 120, .42), rgba(255, 214, 120, .12) 55%, rgba(255, 214, 120, 0) 100%);
  animation: s-halo 4.8s ease-in-out infinite; }
.stage::after { content: ""; display: block; position: absolute; z-index: 2; right: calc(var(--mr) + var(--mw) / 2 - 44px); bottom: 3px; width: 88px; height: 14px; border-radius: 50%; pointer-events: none; background: radial-gradient(closest-side, rgba(0, 0, 0, .38), rgba(0, 0, 0, 0)); }
.stage .fx { position: absolute; pointer-events: none; }
.stage .fx i { position: absolute; display: block; }
.stage .fx.back, .stage .hero { display: none; }

/* Sierge, dancing */
.stage .fx.top { z-index: 4; left: auto; top: auto; right: var(--mr); bottom: var(--mb); width: var(--mw); height: var(--mh); max-width: none; margin: 0; transform: none; transform-origin: 55% 100%; transition: transform .35s var(--spring);
  background: url("kelly-jig.webp") 0 0 / 5000% 200% no-repeat; filter: drop-shadow(0 10px 10px rgba(0, 0, 0, .28)); }
.stage .fx.top i { display: none; }
.wrap.is-open .stage .fx.top { animation: s-popup .9s cubic-bezier(.3, 1.3, .5, 1) .4s backwards, s-reel-x 5s steps(50, jump-none) 1.3s infinite, s-reel-y 10s steps(2, jump-none) 1.3s infinite; }
.wrap.is-open[data-hit="a"] .stage .fx.top { animation: s-tap-a .7s ease-in-out, s-reel-x 5s steps(50, jump-none) 1.3s infinite, s-reel-y 10s steps(2, jump-none) 1.3s infinite; }
.wrap.is-open[data-hit="b"] .stage .fx.top { animation: s-tap-b .7s ease-in-out, s-reel-x 5s steps(50, jump-none) 1.3s infinite, s-reel-y 10s steps(2, jump-none) 1.3s infinite; }
.wrap[data-hit] .stage { animation: none; }
.welcome:has(.tile:hover) .stage .fx.top, .welcome:has(.tile:focus-visible) .stage .fx.top { transform: rotate(-2deg) translateY(-3px); }

/* a few shamrocks on the breeze, and sparkles glinting around him */
.stage .fx.front { inset: 0; z-index: 5; }
.stage .fx.front i:nth-child(-n+4) { right: -24px; top: var(--y); width: var(--s, 12px); height: var(--s, 12px); background: url("kelly-shamrock-w.svg") center / contain no-repeat; opacity: 0; animation: s-drift var(--t, 12s) linear var(--d, 0s) infinite; }
.stage .fx.front i:nth-child(1) { --y: 10%; --s: 13px; --t: 13s; --d: -2s; --dy: 40px; --r: -380deg; --o: .32; }
.stage .fx.front i:nth-child(2) { --y: 34%; --s: 9px; --t: 10s; --d: -6s; --dy: -16px; --r: -300deg; --o: .26; }
.stage .fx.front i:nth-child(3) { --y: 58%; --s: 15px; --t: 15s; --d: -9s; --dy: 24px; --r: -460deg; --o: .3; }
.stage .fx.front i:nth-child(4) { --y: 80%; --s: 10px; --t: 11s; --d: -4s; --dy: -30px; --r: -260deg; --o: .24; }
.stage .fx.front i:nth-child(n+5):nth-child(-n+8) { display: none; }
.stage .fx.front i:nth-child(n+9) { left: var(--x); top: var(--y); width: var(--s, 10px); height: var(--s, 10px); background: #fff6d6; clip-path: var(--star); filter: drop-shadow(0 0 3px #ffe9a8); scale: 0; animation: s-twinkle var(--t, 2.6s) ease-in-out var(--d, 0s) infinite; }
.stage .fx.front i:nth-child(9) { --x: calc(100% - 112px); --y: 20%; --s: 11px; --d: 1.6s; }
.stage .fx.front i:nth-child(10) { --x: calc(100% - 22px); --y: 30%; --s: 8px; --d: 2.4s; --t: 2.9s; }
.stage .fx.front i:nth-child(11) { --x: calc(100% - 104px); --y: 66%; --s: 9px; --d: 3.2s; }
.stage .fx.front i:nth-child(12) { --x: calc(100% - 18px); --y: 72%; --s: 7px; --d: 1.9s; --t: 3.1s; }
.stage .fx.front i:nth-child(n+13) { display: none; }

/* who he is */
.say, :host([data-theme="dark"]) .say { position: relative; z-index: 6; grid-column: 1; grid-row: 1; inset: auto; width: auto; margin: 0; padding: 0; display: block; background: none; border: 0; border-radius: 0; box-shadow: none; text-align: left; transform: none; translate: none; color: #fff; }
.say::before, .say::after { display: none; }
.wrap.is-open .say { animation: s-rise .5s var(--ease) .15s both; }
.say h3 { margin: 0; font: 700 21px/1.1 var(--disp); letter-spacing: -.02em; text-transform: none; white-space: nowrap; color: #fff; text-shadow: none; transform: none; }
.say h3 em, :host([data-theme="dark"]) .say h3 em { display: inline; font-style: normal; color: #f6c75c; text-shadow: none; animation: none; }

/* his line, in a speech bubble pointing at him */
.caption, :host([data-theme="dark"]) .caption { position: relative; z-index: 6; grid-column: 1; grid-row: 2; inset: auto; display: block; width: auto; max-width: none; margin: 0 14px 0 0; padding: 9px 12px 10px; border: 0; border-radius: 16px;
  background: #fff; color: #12301e; font: 500 13px/1.42 var(--body); text-align: left; text-shadow: none; transform: none; rotate: none;
  -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 1px 1px rgba(0, 0, 0, .08), 0 12px 24px -14px rgba(0, 0, 0, .65); }
.caption::before { display: none; }
.caption::after { content: ""; display: block; position: absolute; right: -5px; top: 15px; width: 12px; height: 12px; border: 0; border-radius: 2px; background: #fff; transform: rotate(45deg); }
.wrap.is-open .caption { animation: s-rise .5s var(--ease) .3s both; }

/* more than a chatbot: a small label, and a glass chip whose line changes */
.more { position: relative; z-index: 6; grid-column: 1; grid-row: 3; align-self: end; inset: auto; margin: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; color: #fff; font: 600 12.5px/1.2 var(--body); }
.wrap.is-open .more { animation: s-rise .5s var(--ease) .45s both; }
.more-k { margin: 0; padding: 0 0 0 1px; background: none; box-shadow: none; opacity: 1; color: rgba(246, 214, 140, .95); font: 700 9.5px/1 var(--disp); letter-spacing: .14em; text-transform: uppercase; }
.more-w { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; padding: 6px 12px 6px 9px; border-radius: 999px; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.more-w::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: #f6c75c; animation: s-live 2.6s ease-out infinite; }
.more-t { color: #fff; white-space: nowrap; }
.tilehead, :host([data-theme="dark"]) .tilehead { margin-top: 18px; }

/* the shamrock burst comes out of his bouquet */
.panel > .fx { left: 85%; top: 318px; }

/* the phone strip: both buttons stay on one line */
.strip a, .strip button { white-space: nowrap; }
.strip a span { display: none; }

/* ======================================================================
   How I work: pinned under the phone strip
   ====================================================================== */
.howto { gap: 6px; padding: 8px 12px; border-bottom: 1px solid var(--line); background: #fffdf8; font: 600 12px/1 var(--body); }
.how-k { color: var(--kg3); font-weight: 700; }
.how-b { gap: 5px; padding: 6px 11px 6px 9px; border: 1px solid rgba(24, 144, 72, .28); background: #fff; color: var(--deep); box-shadow: 0 1px 2px rgba(18, 48, 30, .06); transition: background .2s, border-color .2s, transform .2s var(--spring); }
.how-b .ic { color: var(--kg); }
.how-b:hover, .how-b:focus-visible { transform: translateY(-1px); border-color: var(--kg); }
.how-b:focus-visible { outline: 2px solid var(--kg); outline-offset: 2px; }
.how-b.on { background: var(--emerald); border-color: transparent; color: #fff; }
.how-b.on .ic { color: #f6c75c; }

/* ======================================================================
   The intro: an onboarding sheet over the panel
   First a clip, like a video on social media: Sierge dancing, his lines
   arriving like text messages with a moment of typing dots, sound off until
   you tap. It plays once, then offers to play again. Under it, who he is,
   the three ways to use him in one grouped card, and the Start button,
   sized so Start sits on a phone's first screen.
   ====================================================================== */
.vintro, .vintro.has-reel { container-type: size; padding: 14px 16px 10px; color: var(--text);
  background: radial-gradient(120% 34% at 50% 0%, rgba(24, 144, 72, .12), rgba(24, 144, 72, 0) 70%), #fbf8f1; }
.vintro .vi-in { gap: 12px; }
.vintro :focus-visible { outline: 2px solid var(--kg); outline-offset: 3px; }

/* the clip */
.vi-reel { height: 210px; height: clamp(176px, calc(100cqh - 446px), 264px); margin: 0; border-radius: 22px; isolation: isolate;
  background:
    radial-gradient(150px 150px at 78% 52%, rgba(255, 214, 120, .38), rgba(255, 214, 120, .1) 55%, rgba(255, 214, 120, 0) 72%),
    radial-gradient(300px 200px at 0% 0%, rgba(62, 200, 116, .34), rgba(62, 200, 116, 0) 70%),
    linear-gradient(160deg, #15723b 0%, #0d5429 52%, #093b1e 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), inset 0 1px 0 rgba(255, 255, 255, .14), 0 22px 40px -26px rgba(11, 77, 38, .95); }
.vi-reel::after { content: ""; position: absolute; z-index: 0; right: calc(5% + 6px); bottom: 4px; width: 104px; height: 16px; border-radius: 50%; pointer-events: none; background: radial-gradient(closest-side, rgba(0, 0, 0, .4), rgba(0, 0, 0, 0)); }
.rl-pic { z-index: 1; height: 88%; bottom: 6px; left: auto; right: 5%; translate: none; aspect-ratio: 382 / 664; filter: drop-shadow(0 10px 10px rgba(0, 0, 0, .3));
  background: url("kelly-jig.webp") 0 0 / 5000% 200% no-repeat; animation: s-reel-x 5s steps(50, jump-none) infinite, s-reel-y 10s steps(2, jump-none) infinite; }
.rl-pic img { display: none; }
.vi-reel.done .rl-pic { animation-play-state: paused; }
.rl-bars { top: 10px; left: 12px; right: 12px; gap: 4px; }
.rl-bars i { height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .26); }
.rl-bars b { background: #fff; border-radius: 3px; }
/* his lines: a white bubble beside him, pointing at him */
.rl-cap { left: 14px; right: 43%; top: 62px; bottom: auto; text-align: left; font: 600 14.5px/1.38 var(--body); color: #12301e; }
.rl-cap span { position: relative; display: inline-block; padding: 9px 13px 10px; border-radius: 16px; background: #fff; color: #12301e; box-shadow: 0 1px 1px rgba(0, 0, 0, .08), 0 14px 26px -14px rgba(0, 0, 0, .7); animation: s-pop .35s var(--spring); }
.rl-cap span::after { content: ""; position: absolute; right: -5px; top: 14px; width: 12px; height: 12px; border-radius: 2px; background: #fff; transform: rotate(45deg); }
.rl-cap .rl-dots { color: var(--kg); padding: 11px 13px !important; }
.rl-cap .rl-dots i { width: 6px; height: 6px; }
/* sound: a glass pill */
.rl-snd { top: 22px; left: 12px; right: auto; gap: 6px; padding: 7px 12px 7px 10px; background: rgba(4, 30, 15, .42); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font: 700 12.5px/1 var(--body); }
.rl-snd .ic { width: 15px; height: 15px; }
.rl-snd:not(.on) { animation: s-sndpulse 2.2s ease-out infinite; }
.rl-snd.on { background: var(--hot); box-shadow: 0 8px 18px -10px rgba(229, 116, 26, .9); }
.rl-again { left: 14px; top: auto; bottom: 14px; translate: none; gap: 7px; padding: 10px 16px 10px 13px; background: var(--hot); color: #fff; font: 700 14px/1 var(--disp); box-shadow: 0 12px 24px -12px rgba(229, 116, 26, .95); }
.rl-again .ic { width: 15px; height: 15px; }

/* who he is */
.vintro .vi-pic, .vintro.has-reel .vi-pic { display: none; }
.vintro .vi-hero { display: block; padding: 2px 2px 0; }
.vintro .vi-hero h2, .vintro.has-reel .vi-hero h2 { margin: 0 0 5px; font: 700 21px/1.18 var(--disp); letter-spacing: -.02em; color: #0d2a19; }
.vintro .vi-lead, .vintro.has-reel .vi-lead { font: 400 14px/1.45 var(--body); color: #4c5a50; opacity: 1; }

/* the three ways, as one grouped card */
.vi-steps { gap: 0; overflow: hidden; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px rgba(18, 48, 30, .08), 0 1px 2px rgba(18, 48, 30, .05), 0 14px 30px -22px rgba(18, 48, 30, .5); }
.vi-steps li { position: relative; }
.vi-steps li + li::before { content: ""; position: absolute; z-index: 1; left: 64px; right: 0; top: 0; height: 1px; background: rgba(18, 48, 30, .08); }
.vi-step, .vi-step.vi-person { grid-template-columns: 38px minmax(0, 1fr); gap: 12px; min-height: 60px; padding: 11px 14px; border: 0; border-radius: 0; background: transparent; box-shadow: none; transition: background .2s; }
button.vi-step { padding-right: 36px; }
button.vi-step::after { content: ""; position: absolute; right: 17px; top: 50%; width: 7px; height: 7px; margin-top: -4px; border: solid rgba(18, 48, 30, .35); border-width: 2px 2px 0 0; transform: rotate(45deg); transition: transform .2s var(--spring), border-color .2s; }
.vi-step:hover { transform: none; background: rgba(24, 144, 72, .05); }
button.vi-step:hover::after { transform: translateX(2px) rotate(45deg); border-color: var(--kg); }
.vintro .vi-step:focus-visible { outline: none; border-radius: 18px; box-shadow: inset 0 0 0 2px var(--kg); }
.vi-ico, .vi-step .vi-ico { width: 38px; height: 38px; border-radius: 12px; background: var(--mint); color: var(--kg2); box-shadow: inset 0 0 0 1px rgba(24, 144, 72, .14); }
.vi-ico > .ic { width: 19px; height: 19px; stroke-width: 2.2; }
.vi-steps li:first-child .vi-ico { background: linear-gradient(180deg, #1f9c51, #12783c); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25); }
.vi-steps button.vi-person .vi-ico { background: var(--hot); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3); }
.vi-n { left: auto; right: -5px; top: -5px; width: 17px; height: 17px; background: #0d2a19; color: #fff; font: 700 10px/17px var(--disp); box-shadow: 0 0 0 2px #fff; }
.vi-t b { font: 600 14.5px/1.25 var(--disp); letter-spacing: -.01em; color: #0d2a19; }
.vi-t small { margin-top: 2px; font: 400 12.5px/1.35 var(--body); color: #5f6b62; opacity: 1; }

/* start, and the quieter ways out */
.vi-start { min-height: 52px; margin: 0; padding: 12px 20px; gap: 8px; border-radius: 16px; background: linear-gradient(180deg, #1c9a4f 0%, #12783c 100%); color: #fff;
  font: 700 17px/1 var(--disp); letter-spacing: -.01em; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 14px 26px -14px rgba(11, 77, 38, .85); }
.vi-start .ic { width: 19px; height: 19px; stroke-width: 2.6; transition: transform .2s var(--spring); }
.vi-start:hover { transform: none; filter: brightness(1.06); }
.vi-start:hover .ic { transform: translateX(3px); }
.vi-type { margin: -4px 0 -6px; padding: 8px 14px; border-radius: 999px; color: var(--kg3); font: 600 14px/1.2 var(--body); text-decoration: none; opacity: 1; }
.vi-type:hover { text-decoration: underline; text-underline-offset: 3px; }
.vi-note { max-width: 34ch; align-self: center; font: 400 12.5px/1.45 var(--body); color: #66726a; opacity: 1; }
.vi-mark { padding: 2px 8px; font-size: 11px; color: #7a847d; opacity: 1; }

@media (max-width: 480px) {
  .panel > .fx { left: 86%; }
}
@media (max-width: 384px) {
  .stage, :host([data-theme="dark"]) .stage { --mh: 156px; padding-left: 14px; }
  .say h3 { font-size: 20px; }
  .caption { margin-right: 12px; font-size: 12.5px; }
  .howto { gap: 4px; padding: 7px 10px; font-size: 11.5px; }
  .how-b { gap: 4px; padding: 5px 8px 5px 7px; }
  .how-b .ic { width: 13px; height: 13px; }
  .vi-t b { font-size: 14px; }
}
@media (max-width: 350px) {
  .stage, :host([data-theme="dark"]) .stage { --mh: 144px; }
  .say h3 { font-size: 19px; }
  .caption { font-size: 12px; }
  .how-k { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .stage .fx.front i { display: none; }
  .stage::before, .more-w::before, .rl-pic, .rl-snd:not(.on) { animation: none; }
}

/* the bubble after a page change: no welcome, just pick the chat back up */
.teaser.back .tb::before, .teaser.back .tb::after { content: none; display: none; }
.teaser.back small::after { content: "Keep talking to Sierge  \2192"; }

/* ======================================================================
   FinalWord engine parts (wp-ai-chatbot 2.8.0, Kelly build)
   The design widget draws its own mic (.vmic); the plugin's widget has the
   mic (.mic), a speaker on each answer (.aloud), the read-aloud switch in
   the header (.vtog) and the credit line, so they are styled here in the
   same look. Keep this block when a new skin comes from the design folder.
   ====================================================================== */
/* the contact card's number: the widget base paints it white, invisible on the cream card */
.call b { color: var(--deep); }
/* the mic, beside the send coin: white with a green mic, orange while listening */
.mic, :host([data-theme="dark"]) .mic { width: 44px; height: 44px; margin-bottom: 2px; border: 1px solid var(--line2); background: #fff; color: var(--kg); box-shadow: none; }
.mic:not([disabled]):hover { border-color: var(--kg); transform: scale(1.06); }
.mic .ic { width: 20px; height: 20px; }
.mic.on, :host([data-theme="dark"]) .mic.on { border-color: var(--orange); background: var(--orange); color: #fff; }
/* the speaker on each answer */
.aloud { color: #8a8f80; }
.aloud:hover, .aloud.on { color: var(--kg); background: rgba(24, 144, 72, .1); }
/* the header buttons: read-aloud switch (orange while on) and the "how this chat works" help */
.hbtn.vtog:hover, .hbtn.vhelp:hover { transform: scale(1.08); }
.hbtn.vtog[aria-pressed="true"] { background: var(--orange); box-shadow: none; }
/* the intro's last line: FinalWord, by TheFinalCode.com */
.vi-mark b { color: var(--kg3); }
