/* InfiniZap (20/11, owner: "private chats, called InfiniZap, imitating WhatsApp's logo with InfiniWorld's logo"):
   static/zap.js. WhatsApp's layout (a coloured top bar, the conversation list, bubbles with a tail, the clock time and
   ticks inside the bubble, day chips, a round send button) in InfiniWorld's colours: a deep violet bar, lavender
   bubbles of your own, the public chat's doodle wallpaper (∞, stars, eggs, gems). Dark is the default; html.light. */
.zap { --z-bg: #0e0b1f; --z-head: linear-gradient(120deg, #24145a, #3a1d8f); --z-headtx: #f4f0ff; --z-bar: #1a1433; --z-in: #2a2250;
  --z-text: #ece9f7; --z-sub: #9d97bd; --z-them: #231c45; --z-mine: #4b2c9e; --z-acc: #a47bff; --z-day: #1d1838; --z-line: #2e2752;
  --z-sys: #1d1838; --z-systx: #ffd279; --z-tick: #53bdeb; --z-badge: linear-gradient(135deg, #ff4fa3, #a470ff); --z-hover: rgba(255, 255, 255, .04);
  --z-doodle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240' fill='none' stroke='%23fff' stroke-opacity='.045' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M26 40c-8 0-12 6-12 11s4 11 12 11c10 0 16-22 26-22 8 0 12 6 12 11s-4 11-12 11c-10 0-16-22-26-22z'/%3E%3Cpath d='M170 26l5 11 12 2-9 8 2 12-10-6-10 6 2-12-9-8 12-2z'/%3E%3Cellipse cx='60' cy='150' rx='14' ry='18'/%3E%3Cpath d='M47 148l6-5 6 5 6-5 6 5'/%3E%3Cpath d='M176 190l11-13h15l11 13-18 21z'/%3E%3Cpath d='M110 92q9-12 18 0t18 0'/%3E%3Cpath d='M118 196h14m-7-7v14'/%3E%3Cpath d='M214 104l6 6m0-6l-6 6'/%3E%3Ccircle cx='104' cy='34' r='4'/%3E%3Cpath d='M196 124c0-8 12-8 12 0s-12 14-12 14 12-6 12-14'/%3E%3Cpath d='M20 210l10-10 10 10-10 10z'/%3E%3C/svg%3E");
  color: var(--z-text); }
html.light .zap { --z-bg: #eee8f5; --z-head: linear-gradient(120deg, #3b1a9a, #6a2fd0); --z-bar: #f4f1f9; --z-in: #fff; --z-text: #17142a;
  --z-sub: #6b6784; --z-them: #fff; --z-mine: #e4d9ff; --z-acc: #6a3df0; --z-day: #fff; --z-line: #ddd6ea; --z-sys: #fff3d6; --z-systx: #5b5440;
  --z-tick: #2f9fe0; --z-hover: rgba(80, 50, 150, .05);
  --z-doodle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240' fill='none' stroke='%233b1a9a' stroke-opacity='.07' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M26 40c-8 0-12 6-12 11s4 11 12 11c10 0 16-22 26-22 8 0 12 6 12 11s-4 11-12 11c-10 0-16-22-26-22z'/%3E%3Cpath d='M170 26l5 11 12 2-9 8 2 12-10-6-10 6 2-12-9-8 12-2z'/%3E%3Cellipse cx='60' cy='150' rx='14' ry='18'/%3E%3Cpath d='M47 148l6-5 6 5 6-5 6 5'/%3E%3Cpath d='M176 190l11-13h15l11 13-18 21z'/%3E%3Cpath d='M110 92q9-12 18 0t18 0'/%3E%3Cpath d='M118 196h14m-7-7v14'/%3E%3Cpath d='M214 104l6 6m0-6l-6 6'/%3E%3Ccircle cx='104' cy='34' r='4'/%3E%3Cpath d='M196 124c0-8 12-8 12 0s-12 14-12 14 12-6 12-14'/%3E%3Cpath d='M20 210l10-10 10 10-10 10z'/%3E%3C/svg%3E"); }

/* the menu's icon: the bubble in the menu's colour, the ∞ in the brand gradient (index.html #infgrad) */
#side a[data-chat] .zi-i, .ms-row[data-k="chat"] .zi-i, .zap-ico-line .zi-i { stroke: url(#infgrad); }
.more-sheet .ms-i[data-k="chat"] .ms-ico { background: radial-gradient(circle at 40% 30%, #5a2fc4, #1a0750); box-shadow: 0 0 0 2px rgba(255, 79, 163, .35), 0 6px 16px rgba(58, 29, 143, .35); }
.more-sheet .ms-i[data-k="chat"] .zi-i { stroke: url(#infgrad); stroke-width: 2.3; }
.more-sheet .ms-i[data-k="chat"] .zi-b { stroke: #fff; }
#more-t { position: relative; }
#more-t .dot#dot-zap { background: #ff4fa3; box-shadow: 0 0 8px #ff4fa3; }

/* the wordmark "Infini" + "Zap" (like the game's: Infini in white, the second word in the gradient) */
.zap-word { display: inline-flex; align-items: center; gap: 9px; font: 700 23px/1 Fredoka, sans-serif; letter-spacing: .2px; color: #fff; }
.zap-word img { width: 38px; height: 38px; flex: none; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .3)); }
.zap-word > span { white-space: nowrap; }
.zap-word em { font-style: normal; background: linear-gradient(90deg, #ff8a3d, #ff4fa3 55%, #3dd6ff); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* the page's card (list and conversation): full width on a phone, a rounded panel on a computer */
.zap { display: flex; flex-direction: column; overflow: hidden; background: var(--z-bar); border-radius: 18px;
  box-shadow: 0 10px 34px rgba(11, 6, 30, .35); border: 1px solid var(--z-line); }
.zap-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--z-head); color: var(--z-headtx); }
.zap-head .grow { flex: 1; min-width: 0; }
.zap .zap-head a, .zap .zap-av { color: var(--z-headtx); }
.zap .zap-av { color: #fff; }
.zap-hbtn { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 38px; height: 38px; padding: 0 10px;
  border: 0; border-radius: 99px; background: rgba(255, 255, 255, .14); color: inherit; font: 800 13px Nunito, sans-serif; cursor: pointer; text-decoration: none; }
.zap-hbtn:hover { background: rgba(255, 255, 255, .22); }
.zap-hbtn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; }
.zap-note { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 8px 14px; background: var(--z-bar); color: var(--z-sub);
  font: 600 12px/1.4 Nunito, sans-serif; border-bottom: 1px solid var(--z-line); }

/* conversation list */
.zap-list { display: flex; flex-direction: column; background: var(--z-bar); min-height: 300px; }
.zap-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 14px; color: inherit; text-decoration: none; position: relative;
  border: 0; background: none; font: inherit; text-align: left; cursor: pointer; }
.zap-row:hover { background: var(--z-hover); }
.zap-row + .zap-row::before { content: ""; position: absolute; top: 0; left: 72px; right: 0; border-top: 1px solid var(--z-line); }
.zap-av { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: #fff; font: 700 20px Fredoka, sans-serif;
  background: linear-gradient(140deg, hsl(var(--h) 70% 58%), hsl(calc(var(--h) + 40) 62% 42%)); text-decoration: none; }
.zap-rbody { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.zap-rtop, .zap-rbot { display: flex; align-items: center; gap: 8px; }
.zap-rtop b { flex: 1; min-width: 0; font: 800 15.5px/1.25 Nunito, sans-serif; color: var(--z-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zap-rtop time { flex: none; font: 600 11.5px Nunito, sans-serif; color: var(--z-sub); }
.zap-row.unread .zap-rtop time { color: #ff6fb5; font-weight: 800; }
.zap-prev { flex: 1; min-width: 0; font: 600 13.5px/1.3 Nunito, sans-serif; color: var(--z-sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zap-row.unread .zap-prev { color: var(--z-text); }
.zap-prev .zt, .zap-prev .zt.one { margin-right: 5px; }
.zap-n { flex: none; min-width: 21px; height: 21px; padding: 0 6px; border-radius: 99px; display: grid; place-items: center; background: var(--z-badge);
  color: #fff; font: 800 11.5px Nunito, sans-serif; box-shadow: 0 2px 6px rgba(255, 79, 163, .35); }
.zap-tag { flex: none; padding: 1px 7px; border-radius: 99px; font: 800 10.5px Nunito, sans-serif; color: var(--z-sub); border: 1px solid var(--z-line); }
.zap-owner { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 14px; border: 0; border-bottom: 1px solid var(--z-line);
  background: color-mix(in srgb, #ff5d73 10%, var(--z-bar)); color: var(--z-text); font: 800 13.5px Nunito, sans-serif; cursor: pointer; text-align: left; }
.zap-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 46px 22px 54px; text-align: center; color: var(--z-sub);
  background: var(--z-doodle) var(--z-bg); background-size: 240px; }
.zap-empty img { width: 108px; height: 108px; filter: drop-shadow(0 10px 22px rgba(90, 40, 200, .35)); animation: zapbob 3.2s ease-in-out infinite; }
.zap-empty h2 { margin: 4px 0 0; font: 700 21px Fredoka, sans-serif; color: var(--z-text); }
.zap-empty p { margin: 0; max-width: 340px; font: 600 13.5px/1.45 Nunito, sans-serif; }
@keyframes zapbob { 50% { transform: translateY(-6px) rotate(-3deg); } }
@media (prefers-reduced-motion: reduce) { .zap-empty img { animation: none; } }
.zap-go { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border: 0; border-radius: 99px; cursor: pointer;
  background: linear-gradient(135deg, #ff4fa3, #7b4dff); color: #fff; font: 800 14px Nunito, sans-serif; box-shadow: 0 6px 18px rgba(123, 77, 255, .35); }
.zap-go svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; }

/* the "new chat" sheet */
.zap-pick { display: flex; flex-direction: column; gap: 4px; max-height: 56vh; overflow-y: auto; margin-top: 8px; }
.zap-pick a { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 12px; color: inherit; text-decoration: none; }
.zap-pick a:hover { background: rgba(127, 90, 240, .1); }
.zap-pick .zap-av { width: 38px; height: 38px; font-size: 16px; }
.zap-pick small { color: var(--muted); font-weight: 700; }
.zap-pick .zap-h { margin: 8px 4px 2px; font: 800 11px Nunito, sans-serif; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }

/* one conversation */
.zap-thread .zap-head { padding: 8px 10px; gap: 8px; }
.zap-back { flex: none; display: grid; place-items: center; width: 34px; height: 38px; border: 0; border-radius: 50%; background: none; color: inherit; cursor: pointer;
  text-decoration: none; font: 400 34px/1 system-ui, sans-serif; padding: 0 0 4px; }
.zap-thread .zap-av { width: 40px; height: 40px; font-size: 17px; }
.zap-who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; color: inherit; text-decoration: none; }
.zap-who b { font: 800 16.5px/1.2 Nunito, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zap-who small { display: flex; align-items: center; gap: 5px; font: 600 12px Nunito, sans-serif; opacity: .82; }
.zap-who small img { width: 14px; height: 14px; }
.zap-wall { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; padding: 6px 12px 12px;
  background: var(--z-doodle) var(--z-bg); background-size: 240px; overscroll-behavior: contain; }
.zap-sys { align-self: center; max-width: 88%; margin: 8px auto; padding: 6px 12px; border-radius: 8px; background: var(--z-sys); color: var(--z-systx);
  font: 600 12px/1.4 Nunito, sans-serif; text-align: center; box-shadow: 0 1px .5px rgba(11, 6, 30, .14); }
.zap-day { display: flex; justify-content: center; margin: 10px 0 4px; pointer-events: none; }
.zap-day span { padding: 5px 12px; border-radius: 8px; background: var(--z-day); color: var(--z-sub); font: 700 12px Nunito, sans-serif; box-shadow: 0 1px .5px rgba(11, 6, 30, .14); }
.zm { position: relative; display: flex; --bub: var(--z-them); padding-left: 8px; }
.zm.mine { --bub: var(--z-mine); justify-content: flex-end; padding: 0 8px 0 0; }
.zm.first { margin-top: 7px; }
.zm-b { position: relative; min-width: 0; max-width: min(80%, 520px); padding: 6px 8px 5px 9px; border-radius: 8px; background: var(--bub); color: var(--z-text);
  box-shadow: 0 1px .5px rgba(11, 6, 30, .16); overflow-wrap: anywhere; }
.zm.first:not(.mine) .zm-b { border-top-left-radius: 0; }
.zm.first.mine .zm-b { border-top-right-radius: 0; }
.zm.first:not(.mine) .zm-b::before { content: ""; position: absolute; top: 0; left: -8px; border-right: 8px solid var(--bub); border-bottom: 10px solid transparent; }
.zm.first.mine .zm-b::before { content: ""; position: absolute; top: 0; right: -8px; border-left: 8px solid var(--bub); border-bottom: 10px solid transparent; }
.zm-b.bare { background: none; box-shadow: none; padding: 0; }
.zm .zm-b.bare::before { display: none; }
.zm-tx { margin: 0; display: inline; font: 600 14.5px/1.4 Nunito, sans-serif; color: var(--z-text); white-space: pre-wrap; }
.zm-tx.gone { color: var(--z-sub); font-style: italic; font-size: 13.5px; }
.zm-meta { float: right; position: relative; top: 5px; display: inline-flex; align-items: center; gap: 3px; margin: 2px 0 0 10px;
  font: 600 11px Nunito, sans-serif; color: var(--z-sub); white-space: nowrap; }
.zm-b.bare .zm-meta { float: none; top: 0; display: flex; width: fit-content; margin: 3px 0 0 auto; padding: 1px 7px; border-radius: 8px;
  background: color-mix(in srgb, var(--z-them) 85%, transparent); }
.zt { font-style: normal; font-size: 12px; letter-spacing: -4px; margin-right: 4px; color: var(--z-sub); }
.zt.one { letter-spacing: 0; margin-right: 0; }
.zt.read { color: var(--z-tick); }
.zm-acts { display: inline-flex; gap: 2px; }
.zm-acts button { border: 0; background: none; padding: 0 3px; cursor: pointer; color: var(--z-sub); font-size: 11px; opacity: .6; }
.zm-acts button:hover { opacity: 1; color: #e5435d; }
.zm .ch-cardchip { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px 1px 2px; border-radius: 99px; vertical-align: middle; cursor: pointer;
  background: color-mix(in srgb, var(--z-text) 8%, transparent); color: var(--z-text); border: 1px solid color-mix(in srgb, var(--z-text) 16%, transparent);
  font: 800 13px Nunito, sans-serif; }
.zm .ch-cardchip img { width: 24px; height: 24px; object-fit: contain; }
.zm .men { color: var(--z-tick); font-weight: 800; }
.zm-card { display: flex; gap: 10px; align-items: center; margin: 2px 0; }
.zm-card .mini { width: 70px; flex: none; }
.zm-card .small { font: 600 13px/1.35 Nunito, sans-serif; color: var(--z-text); }
.zm .stk { margin: 2px 0; }

/* the bar at the bottom: WhatsApp's pill, the round send button, the tray of phrases / cards / stickers */
.zap-foot { background: var(--z-bar); border-top: 1px solid var(--z-line); padding-bottom: env(safe-area-inset-bottom); }
.zap-bar { display: flex; align-items: flex-end; gap: 6px; padding: 6px 8px; }
.zap-pill { flex: 1; min-width: 0; display: flex; align-items: center; padding: 3px 4px; border-radius: 24px; background: var(--z-in); box-shadow: 0 1px .5px rgba(11, 6, 30, .12); }
.zap .zap-pill input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; box-shadow: none; color: var(--z-text); font: 600 15px Nunito, sans-serif; padding: 9px 4px; }
.zap-pill input::placeholder { color: var(--z-sub); }
.zap-ico { flex: none; width: 36px; height: 36px; border: 0; border-radius: 50%; background: none; font-size: 19px; line-height: 1; cursor: pointer; color: var(--z-sub); }
.zap-ico.on { background: color-mix(in srgb, var(--z-acc) 22%, transparent); }
.zap-send { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer;
  background: linear-gradient(135deg, #ff4fa3, #7b4dff); color: #fff; box-shadow: 0 2px 6px rgba(80, 40, 180, .35); }
.zap-send svg { width: 22px; height: 22px; fill: currentColor; margin-left: 3px; }
.zap-send:active { transform: scale(.94); }
.zap-btns { justify-content: space-around; padding: 6px; }
.zap-big { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px; border: 0; border-radius: 12px; background: none;
  color: var(--z-sub); font-size: 21px; cursor: pointer; }
.zap-big span { font: 800 11.5px Nunito, sans-serif; }
.zap-big.on { background: var(--z-in); color: var(--z-text); box-shadow: 0 1px .5px rgba(11, 6, 30, .12); }
.zap-tray { border-top: 1px solid var(--z-line); max-height: 36vh; min-height: 150px; overflow-y: auto; padding: 10px; }
.zap-tray :is(.ch-pb, .ch-mycard, .ch-opt) { background: var(--z-in); color: var(--z-text); border-color: var(--z-line); }
.zap-tray .ch-pb i, .zap-tray .ch-pick i { color: var(--z-acc); }
.zap-tray .tiny.muted, .zap-tray .muted { color: var(--z-sub); }
.zap-tray .search { width: 100%; }
.zap-blocked { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; color: var(--z-sub);
  font: 700 13px Nunito, sans-serif; text-align: center; }
.zap-blocked button { border: 0; border-radius: 99px; padding: 7px 14px; background: var(--z-in); color: var(--z-acc); font: 800 13px Nunito, sans-serif; cursor: pointer; }
.zap-wnote { display: block; padding: 0 12px 6px; font: 700 10.5px Nunito, sans-serif; color: var(--z-sub); }

/* the profile button */
.btn.zap-btn { background: linear-gradient(135deg, #3a1d8f, #6a2fd0); color: #fff; border-color: transparent; }
.btn.zap-btn img { width: 18px; height: 18px; vertical-align: -4px; margin-right: 2px; }

/* 20/11 (owner: "InfiniZap will be the chat itself"): the chat window (app.js Chat, #chat.zp) is InfiniZap: the list
   (the groups pinned, then the private chats), a group (the public chat) and a private chat, all in InfiniZap's violet */
#chat.zp .zc-body > .zap { flex: 1; min-height: 0; max-width: none; margin: 0; border: 0; border-radius: 0; box-shadow: none; }
#chat.zp .zap-head { padding-top: max(10px, env(safe-area-inset-top)); }
#chat.zp .zap-lscroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; background: var(--z-bar); }
#chat.zp .zap-list { min-height: 0; }
#chat.zp .zap-wall { flex: 1; min-height: 0; }
#chat.zp .zap-tray { max-height: 34vh; }
@media (min-width: 700px) { #chat.zp .zap-tray { max-height: 220px; } }
.zap-x { width: 38px; padding: 0; font: 400 24px/1 system-ui, sans-serif; }
@media (max-width: 699px) { #chat.zp .zap-thread .zap-x { display: none; } }
.zap-sec { padding: 12px 16px 4px; font: 800 11px Nunito, sans-serif; letter-spacing: 1px; text-transform: uppercase; color: var(--z-sub); }
.zap-gav { background: linear-gradient(135deg, #7b5cff, #ff4fa3); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .14); }
.zap-gav svg { width: 32px; height: 16px; fill: none; stroke: #fff; stroke-width: 3.4; stroke-linejoin: round; }
.zap-gav svg path { stroke: #fff; }
.zap-from { font-weight: 800; color: var(--z-sub); }
.zap-row.unread .zap-from { color: var(--z-text); }
.zap-pin { flex: none; display: grid; place-items: center; opacity: .75; }
.zap-pin svg { width: 15px; height: 15px; fill: var(--z-sub); transform: rotate(45deg); }
.zap-at { flex: none; min-width: 21px; height: 21px; border-radius: 99px; display: grid; place-items: center; background: var(--z-badge); color: #fff;
  font: 800 12px Nunito, sans-serif; }
.zap-empty.sm { padding: 22px 20px 28px; gap: 8px; }
.zap-empty.sm img { width: 70px; height: 70px; }
.zap-empty.sm p { font-size: 13px; }

/* a group (the public chat, app.js Chat's thread) in InfiniZap's colours instead of WhatsApp's green */
html:not(.light) #chat.wa.zp { --wa-bg: #0e0b1f; --wa-head: linear-gradient(120deg, #24145a, #3a1d8f); --wa-headtx: #f4f0ff; --wa-bar: #1a1433;
  --wa-in: #2a2250; --wa-text: #ece9f7; --wa-sub: #9d97bd; --wa-them: #231c45; --wa-mine: #4b2c9e; --wa-green: #a47bff; --wa-sys: #1d1838;
  --wa-systx: #ffd279; --wa-day: #1d1838; --wa-line: #2e2752; }
html.light #chat.wa.zp { --wa-bg: #eee8f5; --wa-head: linear-gradient(120deg, #3b1a9a, #6a2fd0); --wa-headtx: #fff; --wa-bar: #f4f1f9; --wa-in: #fff;
  --wa-text: #17142a; --wa-sub: #6b6784; --wa-them: #fff; --wa-mine: #e4d9ff; --wa-green: #6a3df0; --wa-sys: #fff3d6; --wa-systx: #5b5440;
  --wa-day: #fff; --wa-line: #ddd6ea;
  --wa-doodle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240' fill='none' stroke='%233b1a9a' stroke-opacity='.07' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M26 40c-8 0-12 6-12 11s4 11 12 11c10 0 16-22 26-22 8 0 12 6 12 11s-4 11-12 11c-10 0-16-22-26-22z'/%3E%3Cpath d='M170 26l5 11 12 2-9 8 2 12-10-6-10 6 2-12-9-8 12-2z'/%3E%3Cellipse cx='60' cy='150' rx='14' ry='18'/%3E%3Cpath d='M47 148l6-5 6 5 6-5 6 5'/%3E%3Cpath d='M176 190l11-13h15l11 13-18 21z'/%3E%3Cpath d='M110 92q9-12 18 0t18 0'/%3E%3Cpath d='M118 196h14m-7-7v14'/%3E%3Cpath d='M214 104l6 6m0-6l-6 6'/%3E%3Ccircle cx='104' cy='34' r='4'/%3E%3Cpath d='M196 124c0-8 12-8 12 0s-12 14-12 14 12-6 12-14'/%3E%3Cpath d='M20 210l10-10 10 10-10 10z'/%3E%3C/svg%3E"); }
#chat.wa.zp .wa-send { background: linear-gradient(135deg, #ff4fa3, #7b4dff); box-shadow: 0 2px 6px rgba(80, 40, 180, .35); }
#chat.wa.zp .wa-back { display: block; }
#chat.wa.zp .wa-pill input { box-shadow: none; }
@media (min-width: 700px) { #chat.wa.zp .wa-head { padding-left: 8px; } }

/* the floating button: InfiniZap's logo and name, in its violet */
html #chat-fab, html.light #chat-fab { background: linear-gradient(135deg, #3a1d8f, #6a2fd0); color: #fff; border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: 0 8px 22px rgba(40, 14, 110, .45); }
html #chat-fab.on { background: linear-gradient(135deg, #ff4fa3, #7b4dff); color: #fff; }
#chat-fab .zf-logo { width: 26px; height: 26px; flex: none; margin-left: -3px; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .35)); }
#chat-fab .dot { background: #ff4fa3; box-shadow: 0 0 8px #ff4fa3; }
.zap-newq { display: block; width: calc(100% - 50px); margin: 6px 0 2px; }

/* 20/11 (owner: "the base conversation is the General, the private chats in tabs on top like MSN, Trades pinned on the
   left and highlighted too"): the window's head (who you talk to), the MSN-style tab bar (zap.js zapTabs) and the body.
   General and Trades sit pinned on the left in the brand's colours; the private tabs scroll beside them; a private tab
   with new messages blinks orange, like MSN's; the open tab joins the conversation under it. */
#chat.zp { --zt-bar: #120c2a; --zt-tab: rgba(255, 255, 255, .07); --zt-tabtx: #c9c2e8; }
html.light #chat.zp { --zt-bar: #e4dcf5; --zt-tab: rgba(80, 50, 150, .09); --zt-tabtx: #4a3f6b; }
.zc-head { flex: none; display: flex; align-items: center; gap: 9px; padding: 8px 10px; padding-top: max(8px, env(safe-area-inset-top));
  background: var(--wa-head); color: var(--wa-headtx); }
.zc-logo { flex: none; width: 30px; height: 30px; filter: drop-shadow(0 2px 5px rgba(0, 0, 0, .3)); }
#chat.wa .zc-head .wa-gav, .zc-head .zap-av { flex: none; width: 38px; height: 38px; font-size: 16px; }
.zc-ttl { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.zc-ttl b { font: 700 16.5px/1.2 Nunito, system-ui, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zc-ttl b a { color: inherit; text-decoration: none; }
.zc-ttl small { display: flex; align-items: center; gap: 5px; font: 600 12px Nunito, sans-serif; opacity: .85; white-space: nowrap; overflow: hidden; }
.zc-x, .zc-act { flex: none; width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, .14); color: inherit; font: 400 22px/1 system-ui, sans-serif; }
.zc-act { font-size: 20px; font-weight: 700; }
.zc-x:hover, .zc-act:hover { background: rgba(255, 255, 255, .24); }

.zc-tabs { flex: none; display: flex; align-items: flex-end; gap: 6px; padding: 7px 6px 0; background: var(--zt-bar); }
.zc-pins { flex: none; display: flex; gap: 4px; position: relative; padding-right: 8px; }
.zc-pins::after { content: ""; position: absolute; right: 1px; top: 6px; bottom: 6px; width: 2px; border-radius: 2px;
  background: linear-gradient(#ff8a3d, #ff4fa3, #3dd6ff); opacity: .75; }
.zc-scroll { flex: 1; min-width: 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 16px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 16px), transparent); }
.zc-scroll::-webkit-scrollbar { display: none; }
.ztab { flex: none; position: relative; display: inline-flex; align-items: center; gap: 6px; height: 36px; max-width: 150px; padding: 0 10px;
  border: 0; border-radius: 11px 11px 0 0; background: var(--zt-tab); color: var(--zt-tabtx); font: 800 13px Nunito, sans-serif; cursor: pointer; }
.ztab b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 800; }
.ztab .zap-av { width: 22px; height: 22px; font-size: 11px; }
.ztab:hover { filter: brightness(1.15); }
.ztab.on { background: var(--wa-bar); color: var(--wa-text); }
.ztab.blk { opacity: .55; }
/* General and Trades: pinned, in the brand's colours; the open one glows */
.ztab-pin { color: #fff; background: linear-gradient(135deg, #5b33d6, #b23a98); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3); }
.ztab-pin .ztab-ic { display: grid; place-items: center; }
.ztab-pin .ztab-ic svg { width: 22px; height: 11px; overflow: visible; }
.ztab-pin .ztab-ic svg path { fill: none; stroke: #fff; stroke-width: 4.4; }
.ztab-pin.on { color: #fff; background: linear-gradient(135deg, #8b5cff, #ff4fa3); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 -3px 14px rgba(255, 79, 163, .5); }
.ztab-pin.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px; background: linear-gradient(90deg, #8b5cff, #ff4fa3); }
.ztab-n, .ztab-at { flex: none; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; display: grid; place-items: center; font: 800 10.5px Nunito, sans-serif;
  font-style: normal; background: #ff4fa3; color: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .3); }
.ztab-pin .ztab-n { background: #fff; color: #c2187a; }
.ztab-at { background: #ffd23d; color: #3a2400; }
/* a private chat with new messages blinks orange, like MSN's */
/* 20/11: "ztab-new", not "flash": style.css .flash is the full-screen flash (pointer-events: none), which made a tab
   with new messages impossible to tap */
.ztab.ztab-new { animation: ztab-flash 1.1s steps(1, end) infinite; pointer-events: auto; }
@keyframes ztab-flash { 0% { background: linear-gradient(180deg, #ffb35c, #ff8a1f); color: #3a1600; } 50% { background: var(--zt-tab); color: var(--zt-tabtx); } }
@media (prefers-reduced-motion: reduce) { .ztab.ztab-new { animation: none; background: linear-gradient(180deg, #ffb35c, #ff8a1f); color: #3a1600; } }
.ztab-x { flex: none; width: 18px; height: 18px; margin-left: 1px; border-radius: 50%; display: grid; place-items: center; font: 400 16px/1 system-ui, sans-serif; opacity: .6; }
.ztab-x:hover { opacity: 1; background: rgba(127, 127, 127, .2); }
.ztab-ghost { background: none; color: var(--zt-tabtx); border: 1.5px dashed color-mix(in srgb, var(--zt-tabtx) 45%, transparent); border-bottom: 0; }
.ztab-ghost svg, .ztab-add svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; flex: none; }
.ztab-add { flex: none; position: relative; width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 11px 11px 0 0;
  background: var(--zt-tab); color: var(--zt-tabtx); cursor: pointer; font-size: 15px; }
.ztab-add.ztab-rep .ztab-n { position: absolute; top: -6px; right: -4px; }
/* the body: a group (pinned note, wall, bar) or a private chat; the open private tab joins its top edge */
.zc-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.zc-body > .zap-thread { border-top: 3px solid var(--wa-bar) !important; }

/* 20/11 (owner: "a button to add a friend through InfiniZap"): the header's Add friend and the New chat rows' button */
.zc-fr, .zap-addf { position: relative; }
.zc-fr .gi { width: 22px; height: 22px; }
.zc-fr i, .zap-addf i { position: absolute; right: 3px; bottom: 4px; display: grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; background: #2bb673; }
.zc-fr i .gi, .zap-addf i .gi { width: 11px; height: 11px; }
.zap-pr { display: flex; align-items: center; gap: 4px; }
.zap-pr[hidden] { display: none; }
.zap-pr > a { flex: 1; min-width: 0; }
.zap-addf { flex: none; width: 38px; height: 38px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line, rgba(127, 127, 127, .25)); border-radius: 50%; background: transparent; cursor: pointer; }
.zap-addf .gi { width: 20px; height: 20px; }
.zap-addf:hover { background: rgba(43, 182, 115, .12); }
.zap-addf.done { border-color: #2bb673; background: rgba(43, 182, 115, .14); cursor: default; }

/* 20/11 (owner: "scroll between the people chatting, carousel style"): the private tabs as a carousel */
.zc-car { flex: 1; min-width: 0; position: relative; display: flex; }
.zc-car .zc-scroll { scroll-snap-type: x mandatory; scroll-behavior: smooth; -webkit-mask-image: none; mask-image: none; }
.zc-car .zc-scroll .ztab { scroll-snap-align: start; }
.zc-car .zc-scroll.more-r { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 30px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 30px), transparent); }
.zc-car .zc-scroll.more-l { -webkit-mask-image: linear-gradient(90deg, transparent, #000 30px); mask-image: linear-gradient(90deg, transparent, #000 30px); }
.zc-car .zc-scroll.more-l.more-r { -webkit-mask-image: linear-gradient(90deg, transparent, #000 30px, #000 calc(100% - 30px), transparent); mask-image: linear-gradient(90deg, transparent, #000 30px, #000 calc(100% - 30px), transparent); }
.zc-arrow { position: absolute; top: 3px; z-index: 3; width: 24px; height: 30px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 10px;
  background: rgba(20, 12, 44, .72); color: #fff; font: 900 20px/1 Nunito, sans-serif; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
.zc-arrow.l { left: 0; } .zc-arrow.r { right: 0; }
.zc-arrow[hidden] { display: none; }
.zc-arrow:hover { background: rgba(91, 51, 214, .9); }

/* 20/11: the carousel's tabs sit between its arrows; on a phone the pinned tabs drop their icon to give it room */
.zc-car .zc-scroll { padding: 0 20px; scroll-padding: 0 20px; }
.zc-arrow { width: 20px; background: rgba(20, 12, 44, .55); }
@media (max-width: 520px) {
  .zc-pins .ztab-pin .ztab-ic { display: none; }
  .zc-pins .ztab-pin { padding: 0 8px; gap: 4px; }
  .zc-car .zc-scroll .ztab { max-width: 128px; }
}

/* 20/11 (owner: "the InfiniZap bubble in the game's style, the avatar on whoever speaks (yours too), an Infini+ bubble in the
   gradient"): the groups (#chat.wa .msg) and the private chats (.zm) */
#chat.wa .wa-av, #chat.wa .wa-avsp, .zm-av, .zm-avsp { flex: none; width: 34px; height: 34px; }
#chat.wa .wa-av, .zm-av { border-radius: 50%; display: grid; place-items: center; color: #fff; font: 800 13px Nunito, sans-serif; text-decoration: none;
  background-color: hsl(var(--h, 260) 55% 45%); background-size: cover; background-position: center; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(20, 8, 60, .25); }
#chat.wa .wa-av.faced, .zm-av.faced { color: transparent; background-color: #2b1a66; }
#chat.wa .msg.mine { padding-right: 6px; }
#chat.wa .msg-b, .zm-b { border-radius: 16px; padding: 7px 11px 6px; border: 1.5px solid rgba(124, 92, 255, .16);
  box-shadow: inset 0 -2px 0 rgba(20, 8, 60, .06), 0 2px 6px rgba(20, 8, 60, .10); }
#chat.wa .msg.first:not(.mine) .msg-b, .zm.first:not(.mine) .zm-b { border-top-left-radius: 5px; }
#chat.wa .msg.first.mine .msg-b, .zm.first.mine .zm-b { border-top-right-radius: 5px; }
#chat.wa .msg.first .msg-b::before, .zm.first .zm-b::before { display: none; }
#chat.wa .msg:not(.mine) .msg-b, .zm:not(.mine) .zm-b { margin-left: 6px; }
#chat.wa .msg.mine .msg-b, .zm.mine .zm-b { margin-right: 6px; background: linear-gradient(135deg, #7b5cff, #9b4dff); color: #fff; border-color: rgba(255, 255, 255, .25); }
#chat.wa .msg.mine .msg-b .wa-meta, .zm.mine .zm-b .zm-meta, #chat.wa .msg.mine .msg-b .wa-meta *, .zm.mine .zm-b .zm-meta * { color: rgba(255, 255, 255, .85); }
#chat.wa .msg-vip .msg-b, .zm.zm-vip .zm-b { background: linear-gradient(120deg, #6a1fd0 0%, #b5248f 48%, #ff5fa8 72%, #ffb02e 100%); color: #fff; border-color: rgba(255, 226, 122, .7);
  box-shadow: 0 0 0 1px rgba(255, 210, 61, .25), 0 3px 10px rgba(214, 51, 127, .35); }
#chat.wa .msg-vip .msg-b .wa-name { color: #fff6c8; }
#chat.wa .msg-vip .msg-b .wa-meta, #chat.wa .msg-vip .msg-b .wa-meta *, .zm.zm-vip .zm-b .zm-meta, .zm.zm-vip .zm-b .zm-meta * { color: rgba(255, 255, 255, .9); }
#chat.wa .msg-vip .msg-b .men, .zm.zm-vip .zm-b .men { color: #fff6c8; }
#chat.wa .msg-b.bare, .zm-b.bare, #chat.wa .msg-vip .msg-b.bare, .zm.zm-vip .zm-b.bare, #chat.wa .msg.mine .msg-b.bare, .zm.mine .zm-b.bare { background: none; border: 0; box-shadow: none; }
.zm { align-items: flex-start; gap: 0; }
.zm.mine { flex-direction: row-reverse; justify-content: flex-start; }
.zm.cont { margin-top: 2px; }

/* 20/11: an Infini+ bubble keeps its gradient on your own messages too */
#chat.wa .msg.msg-vip .msg-b:not(.bare) { background: linear-gradient(120deg, #6a1fd0 0%, #b5248f 48%, #ff5fa8 72%, #ffb02e 100%); color: #fff; border-color: rgba(255, 226, 122, .7); }
.zm.zm-vip .zm-b:not(.bare) { background: linear-gradient(120deg, #6a1fd0 0%, #b5248f 48%, #ff5fa8 72%, #ffb02e 100%); color: #fff; border-color: rgba(255, 226, 122, .7); }

/* 21/11 (owner: "in the private chat, the received colour slightly different from yours: it got too bright and confusing"):
   what you get is a calmer shade of the same violet (an Infini+ sender: a soft version of the gradient with a gold edge);
   your own messages keep theirs */
.zap { --z-recv: linear-gradient(135deg, #2f2869, #3a3186); --z-recvtx: #efeaff; --z-recvln: rgba(150, 128, 255, .3); --z-recvmeta: rgba(239, 234, 255, .68);
  --z-recvvip: linear-gradient(125deg, #34226f 0%, #4f2873 55%, #5e2f5c 100%); --z-recvvipln: rgba(255, 210, 61, .5); }
html.light .zap { --z-recv: linear-gradient(135deg, #f3eeff, #e9e1ff); --z-recvtx: #241a4d; --z-recvln: rgba(124, 92, 255, .26); --z-recvmeta: #6b6784;
  --z-recvvip: linear-gradient(120deg, #f1e6ff 0%, #ffe6f2 60%, #fff1db 100%); --z-recvvipln: rgba(240, 150, 10, .5); }
.zap-thread .zm:not(.mine) .zm-b:not(.bare) { background: var(--z-recv); color: var(--z-recvtx); border-color: var(--z-recvln);
  box-shadow: inset 0 -2px 0 rgba(20, 8, 60, .06), 0 2px 6px rgba(20, 8, 60, .1); }
.zap-thread .zm.zm-vip:not(.mine) .zm-b:not(.bare) { background: var(--z-recvvip); color: var(--z-recvtx); border-color: var(--z-recvvipln);
  box-shadow: 0 0 0 1px rgba(255, 210, 61, .12), 0 2px 8px rgba(20, 8, 60, .14); }
.zap-thread .zm:not(.mine) .zm-b:not(.bare) .zm-meta, .zap-thread .zm:not(.mine) .zm-b:not(.bare) .zm-meta * { color: var(--z-recvmeta); }
.zap-thread .zm:not(.mine) .zm-b:not(.bare) .men { color: inherit; }
/* the faces: the explorer fills the round avatar (shop.css .faced) */
.ztab .zap-av.faced, .zc-head .zap-av.faced { border: 2px solid rgba(255, 255, 255, .85); box-sizing: border-box; }
/* 21/11: a sticker's time sits on its own little pill: always the plain grey (an Infini+ sender's white was lost on it) */
.zap-thread .zm .zm-b.bare .zm-meta, .zap-thread .zm .zm-b.bare .zm-meta * { color: var(--z-sub); }

/* 21/11 (owner: "in the General chat also make the others' bubbles different"): General's received bubbles take the private
   chat's calmer shade (an Infini+ sender: the soft gradient with a gold edge); yours keep theirs */
#chat.wa { --z-recv: linear-gradient(135deg, #2f2869, #3a3186); --z-recvtx: #efeaff; --z-recvln: rgba(150, 128, 255, .3); --z-recvmeta: rgba(239, 234, 255, .68);
  --z-recvvip: linear-gradient(125deg, #34226f 0%, #4f2873 55%, #5e2f5c 100%); --z-recvvipln: rgba(255, 210, 61, .5); }
html.light #chat.wa { --z-recv: linear-gradient(135deg, #f3eeff, #e9e1ff); --z-recvtx: #241a4d; --z-recvln: rgba(124, 92, 255, .26); --z-recvmeta: #6b6784;
  --z-recvvip: linear-gradient(120deg, #f1e6ff 0%, #ffe6f2 60%, #fff1db 100%); --z-recvvipln: rgba(240, 150, 10, .5); }
#chat.wa .msg:not(.mine) .msg-b:not(.bare) { background: var(--z-recv); color: var(--z-recvtx); border-color: var(--z-recvln);
  box-shadow: inset 0 -2px 0 rgba(20, 8, 60, .06), 0 2px 6px rgba(20, 8, 60, .1); }
#chat.wa .msg.msg-vip:not(.mine) .msg-b:not(.bare) { background: var(--z-recvvip); color: var(--z-recvtx); border-color: var(--z-recvvipln);
  box-shadow: 0 0 0 1px rgba(255, 210, 61, .12), 0 2px 8px rgba(20, 8, 60, .14); }
#chat.wa .msg:not(.mine) .msg-b:not(.bare) .wa-meta, #chat.wa .msg:not(.mine) .msg-b:not(.bare) .wa-meta * { color: var(--z-recvmeta); }
#chat.wa .msg:not(.mine) .msg-b:not(.bare) .men { color: inherit; }
#chat.wa .msg.ment:not(.mine) .msg-b:not(.bare) { box-shadow: inset 0 0 0 1.5px #ffd23d, 0 2px 8px rgba(255, 180, 40, .25); }
/* an Infini+ player's own colours (app.js bubAttr), on every message of theirs, for everyone */
#chat.wa .msg[data-bub] .msg-b:not(.bare), .zm[data-bub] .zm-b:not(.bare), .zap-thread .zm[data-bub]:not(.mine) .zm-b:not(.bare) {
  background: linear-gradient(120deg, var(--b1), var(--b2)) !important; color: var(--bt) !important; border-color: color-mix(in srgb, var(--b2) 55%, #fff) !important;
  box-shadow: 0 0 0 1px rgba(255, 210, 61, .18), 0 3px 10px color-mix(in srgb, var(--b1) 35%, transparent) !important; }
#chat.wa .msg[data-bub] .msg-b:not(.bare) .wa-meta, #chat.wa .msg[data-bub] .msg-b:not(.bare) .wa-meta *, .zm[data-bub] .zm-b:not(.bare) .zm-meta, .zm[data-bub] .zm-b:not(.bare) .zm-meta * { color: var(--bm) !important; }
#chat.wa .msg[data-bub] .msg-b:not(.bare) .men, .zm[data-bub] .zm-b:not(.bare) .men { color: inherit !important; text-decoration: underline; }
html #chat.wa .msg.msg-vip[data-bub] .wa-name { background: none !important; -webkit-text-fill-color: currentColor; color: var(--bt) !important; }
/* the palette button in General's head, and the picker */
.zc-bub { flex: none; width: 34px; height: 34px; margin-right: 4px; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; background: rgba(255, 255, 255, .1); }
.zc-bub i { width: 20px; height: 16px; border-radius: 9px 9px 9px 3px; background: linear-gradient(120deg, var(--b1), var(--b2)); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .7); }
.zc-bub.lock { opacity: .7; }
.bpk { display: flex; flex-direction: column; gap: 8px; }
.bpk h2 { margin: 0; }
.bpk-prev { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 16px; background: #1b1440; }
html.light .bpk-prev { background: #efe9ff; }
.bpk-row { display: flex; } .bpk-row.mine { justify-content: flex-end; }
.bpk-b { max-width: 80%; padding: 7px 12px; border-radius: 16px; font: 700 13.5px Nunito, sans-serif; background: linear-gradient(135deg, #2f2869, #3a3186); color: #efeaff; }
html.light .bpk-row.them .bpk-b { background: linear-gradient(135deg, #f3eeff, #e9e1ff); color: #241a4d; }
.bpk-row.mine .bpk-b { border-top-right-radius: 5px; background: linear-gradient(120deg, var(--b1, #7b5cff), var(--b2, #9b4dff)); color: var(--bt, #fff); }
.bpk-row.mine .bpk-b b { display: block; font-size: 11px; opacity: .8; }
.bpk-pre { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.bpk-sw { aspect-ratio: 1; border: 0; border-radius: 50%; cursor: pointer; background: linear-gradient(120deg, var(--b1), var(--b2)); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .5), 0 2px 6px rgba(20, 8, 60, .25); }
.bpk-sw.on { box-shadow: 0 0 0 3px #ffd23d, inset 0 0 0 2px #fff; }
.bpk-own { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bpk-own label { display: flex; align-items: center; gap: 6px; font: 800 13px Nunito, sans-serif; cursor: pointer; }
.bpk-own input[type=color] { width: 44px; height: 34px; padding: 0; border: 2px solid rgba(124, 92, 255, .4); border-radius: 10px; background: none; cursor: pointer; }
.bpk-lock { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 12px; border-radius: 14px; background: linear-gradient(90deg, rgba(164, 112, 255, .16), rgba(255, 79, 163, .16)); font: 800 13px Nunito, sans-serif; }
