/* Ask MAL chat. Its own colours so it looks the same on the black home page and the blue shop pages. */
.askmal { --am-blue: #2468d8; --am-lite: #6aa6ff; --am-deep: #10357f; --am-ink: #070b16; --am-text: #f5f8fc; --am-dim: #9fabbd; font-family: "Archivo", "Helvetica Neue", Arial, sans-serif; }
.am-fab { position: fixed; z-index: 90; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); display: inline-flex; align-items: center; gap: 10px; padding: 6px 18px 6px 6px; border-radius: 999px; border: 1px solid rgba(255,255,255,.22); cursor: pointer; color: var(--am-text);
  background: linear-gradient(135deg, rgba(36,104,216,.95), rgba(16,53,127,.95)); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 0 0 0 rgba(106,166,255,.6), 0 14px 40px -10px rgba(36,104,216,.9), inset 0 1px 0 rgba(255,255,255,.35); animation: amPulse 3.2s ease-in-out infinite; transition: transform .25s, opacity .25s; }
.am-fab:hover { transform: translateY(-2px) scale(1.03); }
.am-fab:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@keyframes amPulse { 0%, 70%, 100% { box-shadow: 0 0 0 0 rgba(106,166,255,0), 0 14px 40px -10px rgba(36,104,216,.9), inset 0 1px 0 rgba(255,255,255,.35); } 35% { box-shadow: 0 0 0 10px rgba(106,166,255,.18), 0 14px 40px -10px rgba(36,104,216,.9), inset 0 1px 0 rgba(255,255,255,.35); } }
.am-fab-t { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.am-fab-t b { font-family: "Knewave", cursive; font-weight: 400; font-size: 17px; letter-spacing: .02em; text-transform: none; color: #fff; }
.am-ava { width: 38px; height: 38px; border-radius: 50%; display: grid; place-content: center; overflow: hidden; background: radial-gradient(circle, #fff 0 60%, #dbe8ff 100%); box-shadow: 0 0 0 2px rgba(255,255,255,.35); flex: none; }
.am-ava img { width: 34px; height: auto; display: block; }
.am-ava.big { width: 46px; height: 46px; } .am-ava.big img { width: 42px; }
.askmal.open .am-fab { opacity: 0; pointer-events: none; transform: scale(.8); }

.am-panel { position: fixed; z-index: 95; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); width: min(400px, calc(100vw - 24px)); height: min(620px, calc(100svh - 110px)); display: flex; flex-direction: column; overflow: hidden; border-radius: 28px; color: var(--am-text);
  background: linear-gradient(170deg, rgba(36,60,120,.55), rgba(10,14,28,.97) 26%, rgba(7,10,20,.98)); border: 1px solid rgba(255,255,255,.16); -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%);
  box-shadow: 0 40px 120px -30px rgba(36,104,216,.75), 0 0 0 1px rgba(0,0,0,.4); animation: amIn .35s cubic-bezier(.2,.8,.2,1) both; transform-origin: bottom right; }
.am-panel[hidden] { display: none; }
@keyframes amIn { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
.am-head { display: flex; align-items: center; gap: 12px; padding: 16px 16px 14px; border-bottom: 1px solid rgba(255,255,255,.1); }
.am-head strong { display: block; font-family: "Anton", Impact, sans-serif; font-weight: 400; font-size: 22px; letter-spacing: .02em; text-transform: uppercase; line-height: 1; }
.am-head span { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--am-dim); margin-top: 4px; }
.am-live { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 8px #4ade80; }
.am-head > div { flex: 1; min-width: 0; }
.am-x { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: var(--am-text); font-size: 22px; cursor: pointer; flex: none; }
.am-x:focus-visible, .am-form button:focus-visible, .am-sugg button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.am-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; scrollbar-width: thin; }
.am-msg { max-width: 86%; padding: 11px 14px; border-radius: 18px; font-size: 14.5px; line-height: 1.5; animation: amMsg .3s cubic-bezier(.2,.7,.2,1) both; overflow-wrap: anywhere; }
@keyframes amMsg { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.am-msg p + p, .am-msg ul + p, .am-msg p + ul { margin-top: 6px; }
.am-msg ul { list-style: none; display: grid; gap: 4px; margin: 0; padding: 0; }
.am-msg li { position: relative; padding-left: 14px; }
.am-msg li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 2px; border-radius: 2px; background: var(--am-lite); }
.am-msg.bot { align-self: flex-start; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); border-bottom-left-radius: 6px; }
.am-msg.me { align-self: flex-end; background: linear-gradient(135deg, var(--am-blue), var(--am-deep)); border-bottom-right-radius: 6px; }
.am-msg a { display: inline-block; margin-top: 6px; padding: 7px 12px; border-radius: 999px; background: rgba(106,166,255,.16); border: 1px solid rgba(106,166,255,.5); color: #fff; text-decoration: none; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; }
.am-msg a:hover { background: rgba(106,166,255,.3); }
.am-msg strong { color: #fff; }
.am-dots { display: inline-flex; gap: 4px; padding: 4px 2px; }
.am-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--am-lite); animation: amDot 1s ease-in-out infinite; }
.am-dots i:nth-child(2) { animation-delay: .15s; } .am-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes amDot { 0%, 100% { opacity: .3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-4px); } }
.am-sugg { display: flex; gap: 8px; overflow-x: auto; padding: 0 16px 10px; scrollbar-width: none; }
.am-sugg::-webkit-scrollbar { display: none; }
.am-sugg button { flex: none; font: inherit; font-size: 12.5px; color: var(--am-text); padding: 9px 13px; border-radius: 999px; border: 1px solid rgba(106,166,255,.45); background: rgba(36,104,216,.16); cursor: pointer; white-space: nowrap; transition: background .2s; }
.am-sugg button:hover { background: rgba(36,104,216,.32); }
.am-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid rgba(255,255,255,.1); }
.am-form input { flex: 1; min-width: 0; font: inherit; font-size: 16px; color: var(--am-text); background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.16); border-radius: 999px; padding: 12px 16px; }
.am-form input:focus-visible { outline: 2px solid var(--am-lite); outline-offset: 1px; }
.am-form button { width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer; color: #fff; background: linear-gradient(135deg, var(--am-lite), var(--am-blue)); box-shadow: 0 0 18px rgba(36,104,216,.7); flex: none; display: grid; place-content: center; }
.am-form button svg { width: 20px; height: 20px; }
.am-fine { padding: 0 16px 12px; font-size: 11px; color: var(--am-dim); }
.am-fine a { color: var(--am-dim); }

/* stay clear of each page's own bottom bar on phones */
@media (max-width: 640px) {
  .am-fab { right: 12px; padding-right: 14px; }
  body:has(.mbar.on) .am-fab, body:has(.bk-bar) .am-fab, body:has(.buybar) .am-fab { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
  .am-panel { right: 0; left: 0; bottom: 0; width: auto; height: min(86svh, 680px); border-radius: 26px 26px 0 0; padding-bottom: env(safe-area-inset-bottom, 0px); transform-origin: bottom center; }
}
@media (prefers-reduced-motion: reduce) { .am-fab, .am-panel, .am-msg, .am-dots i { animation: none; } }
/* phones: just the round avatar, so it never covers buttons */
@media (max-width: 640px) { .am-fab { padding: 5px; } .am-fab-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } .am-ava { width: 46px; height: 46px; } .am-ava img { width: 40px; } }
