/* Ask the League (chat.js): the corner button, the chat window and its Pro
   lock, in the record book's colours: navy chrome, white cards on a
   hairline, the league's blue for the member and gold for Pro.

   Layers: above the page and its pinned capsule (35-45), under the account
   gate, panel and dialogs (200+), so "Go Pro" and sign-in open over it. */

:root {
  --lhc-navy: #071827;
  --lhc-navy-2: #102b43;
  --lhc-blue: #1769e0;
  --lhc-blue-2: #0f56bd;
  --lhc-gold: #f6b73c;
  --lhc-gold-2: #f6c35a;
  --lhc-ink: #0b1f3f;
  --lhc-ink-2: #475467;
  --lhc-ink-3: #8a94a6;
  --lhc-line: #e4e7ec;
  --lhc-page: #f3f6f9;
  --lhc-ease: cubic-bezier(.22, 1, .36, 1);
  --lhc-spring: cubic-bezier(.34, 1.4, .64, 1);
  /* how far the button sits above the bottom of the screen: more where
     something else lives there (a phone's season capsule, the trophy
     room's ad bar) */
  --lhc-lift: 0px;
  --lhc-font: var(--font-body, Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
}
html:has(#hallAd) { --lhc-lift: var(--hall-ad, 0px); }
@media (max-width: 760px) {
  html:has(.season-nav.sn-bottom) { --lhc-lift: calc(var(--sn-space, 150px) + 6px); }
}

/* ---------------------------------------------------------------
   The button
   --------------------------------------------------------------- */
.lhc-fab {
  position: fixed; z-index: 180;
  right: max(18px, env(safe-area-inset-right));
  bottom: calc(var(--lhc-lift) + 18px + env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: 9px;
  height: 50px; padding: 0 18px 0 7px; border: 0; border-radius: 999px;
  color: #fff; font: 700 14px/1 var(--lhc-font); letter-spacing: -.005em;
  background: linear-gradient(135deg, var(--lhc-navy-2), var(--lhc-navy));
  box-shadow: 0 14px 34px rgba(7, 24, 39, .32), 0 2px 6px rgba(7, 24, 39, .2), inset 0 1px 0 rgba(255, 255, 255, .1);
  cursor: pointer; isolation: isolate;
  opacity: 0; transform: translateY(24px) scale(.86);
  transition: opacity .5s var(--lhc-ease), transform .6s var(--lhc-spring), box-shadow .3s var(--lhc-ease);
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.lhc-fab.in { opacity: 1; transform: none; }
/* a slow gold-and-blue light running round its edge */
.lhc-fab-ring {
  position: absolute; inset: -2px; z-index: -1; border-radius: inherit; padding: 2px;
  background: conic-gradient(from var(--lhc-angle, 0deg), rgba(246, 183, 60, 0) 0deg, var(--lhc-gold) 70deg, rgba(23, 105, 224, .9) 150deg, rgba(246, 183, 60, 0) 220deg, rgba(246, 183, 60, 0) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: lhcSpin 6s linear infinite;
  opacity: .9;
}
@property --lhc-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes lhcSpin { to { --lhc-angle: 360deg; } }
.lhc-fab-icon {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto;
  background: radial-gradient(circle at 35% 30%, #ffd884, var(--lhc-gold) 55%, #d9901b);
  box-shadow: 0 0 0 3px rgba(246, 183, 60, .18), 0 4px 12px rgba(246, 183, 60, .35);
}
.lhc-fab-icon svg { width: 19px; height: 19px; fill: var(--lhc-navy); animation: lhcTwinkle 3.2s var(--lhc-ease) infinite; }
@keyframes lhcTwinkle { 0%, 70%, 100% { transform: none; } 80% { transform: rotate(18deg) scale(1.15); } 90% { transform: rotate(-6deg) scale(.96); } }
.lhc-pro-tag {
  margin-left: 1px; padding: 3px 6px 2px; border-radius: 6px;
  font: 700 10px/1 var(--lhc-font); letter-spacing: .08em;
  color: var(--lhc-navy); background: linear-gradient(135deg, var(--lhc-gold-2), var(--lhc-gold));
}
@media (hover: hover) {
  .lhc-fab.in:hover { transform: translateY(-3px); box-shadow: 0 20px 44px rgba(7, 24, 39, .38), 0 0 0 6px rgba(246, 183, 60, .12); }
}
.lhc-fab.in:active { transform: scale(.96); }
.lhc-fab:focus-visible { outline: 3px solid var(--lhc-gold); outline-offset: 3px; }
.lhc-fab[aria-expanded="true"] { opacity: 0; transform: scale(.7); pointer-events: none; }
@media (max-width: 640px) {
  .lhc-fab { height: 48px; padding: 0 6px; width: 48px; justify-content: center; }
  .lhc-fab-label { display: none; }
  .lhc-pro-tag { position: absolute; top: -6px; right: -8px; box-shadow: 0 2px 6px rgba(7, 24, 39, .3); }
  /* the trophy room's foot is its controls and ad bar: the button waits
     under its header instead */
  html:has(#hallAd) .lhc-fab { top: calc(66px + env(safe-area-inset-top)); bottom: auto; right: max(14px, env(safe-area-inset-right)); }
}

/* ---------------------------------------------------------------
   The window: a card growing out of the button on a desktop, a sheet
   rising from the bottom on a phone
   --------------------------------------------------------------- */
.lhc-panel {
  position: fixed; z-index: 190;
  right: max(18px, env(safe-area-inset-right));
  bottom: calc(var(--lhc-lift) + 18px + env(safe-area-inset-bottom));
  width: min(430px, calc(100vw - 36px));
  height: min(680px, calc(100dvh - var(--lhc-lift) - 36px));
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: 22px; background: var(--lhc-page);
  border: 1px solid rgba(7, 24, 39, .08);
  box-shadow: 0 30px 80px rgba(7, 24, 39, .35), 0 6px 18px rgba(7, 24, 39, .14);
  font-family: var(--lhc-font); color: var(--lhc-ink);
  transform-origin: calc(100% - 28px) calc(100% - 24px);
  opacity: 0; transform: translateY(14px) scale(.6); filter: blur(8px);
  transition: opacity .3s var(--lhc-ease), transform .5s var(--lhc-spring), filter .35s var(--lhc-ease);
}
.lhc-panel.open { opacity: 1; transform: none; filter: none; }
.lhc-panel[hidden] { display: none; }
@media (max-width: 640px) {
  .lhc-panel {
    left: 0; right: 0; bottom: 0; width: 100%;
    height: calc(100dvh - max(14px, env(safe-area-inset-top)));
    border-radius: 24px 24px 0 0; border-bottom: 0;
    transform-origin: 50% 100%;
    transform: translateY(100%); filter: none; opacity: 1;
    transition: transform .5s var(--lhc-ease);
  }
  .lhc-panel.open { transform: none; }
  html.lhc-open, html.lhc-open body { overflow: hidden; }
  html.lhc-open::after {
    content: ""; position: fixed; inset: 0; z-index: 185;
    background: rgba(7, 24, 39, .45); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
    animation: lhcFade .3s var(--lhc-ease);
  }
}

/* head */
.lhc-head {
  position: relative; flex: 0 0 auto; display: flex; align-items: center; gap: 12px;
  padding: 16px 12px 16px 16px; color: #fff; overflow: hidden;
  background: linear-gradient(135deg, #15395a 0%, var(--lhc-navy-2) 40%, var(--lhc-navy) 100%);
}
.lhc-head::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, var(--lhc-blue), var(--lhc-gold) 60%, transparent);
}
@media (max-width: 640px) {
  .lhc-head { padding-top: 22px; }
  .lhc-head::before {
    content: ""; position: absolute; top: 8px; left: 50%; width: 38px; height: 4px; margin-left: -19px;
    border-radius: 4px; background: rgba(255, 255, 255, .28);
  }
}
.lhc-head-glow {
  position: absolute; inset: -60% -10% auto auto; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(246, 183, 60, .22), rgba(246, 183, 60, 0) 65%);
  animation: lhcDrift 9s ease-in-out infinite alternate; pointer-events: none;
}
@keyframes lhcDrift { from { transform: translate(0, 0); } to { transform: translate(-90px, 30px); } }
.lhc-head-avatar { position: relative; width: 42px; height: 42px; flex: 0 0 auto; }
.lhc-head-avatar img, .lhc-head-mark {
  width: 42px; height: 42px; border-radius: 12px; object-fit: cover; display: grid; place-items: center;
  background: rgba(255, 255, 255, .08); box-shadow: 0 0 0 2px rgba(255, 255, 255, .14); font-size: 22px;
}
.lhc-head-spark {
  position: absolute; right: -6px; bottom: -5px; width: 21px; height: 21px; border-radius: 50%;
  display: grid; place-items: center; background: var(--lhc-gold); box-shadow: 0 0 0 2.5px var(--lhc-navy-2);
}
.lhc-head-spark svg { width: 12px; height: 12px; fill: var(--lhc-navy); }
.lhc-head-copy { position: relative; min-width: 0; flex: 1 1 auto; }
.lhc-kicker {
  display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: #9eb0c1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lhc-head h2 {
  margin: 3px 0 0; font: 700 23px/1 var(--font-display, "Barlow Condensed", "Arial Narrow", sans-serif);
  text-transform: uppercase; letter-spacing: .04em;
}
.lhc-icon-btn {
  position: relative; width: 36px; height: 36px; flex: 0 0 auto; border: 0; border-radius: 11px; cursor: pointer;
  display: grid; place-items: center; color: #d5dee8; background: rgba(255, 255, 255, .07);
  transition: background .2s var(--lhc-ease), color .2s, transform .25s var(--lhc-spring);
}
.lhc-icon-btn[hidden] { display: none; }
.lhc-icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .lhc-icon-btn:hover { background: rgba(255, 255, 255, .15); color: #fff; } }
.lhc-icon-btn:active { transform: scale(.9); }
.lhc-icon-btn[data-act="fresh"]:active svg { transform: rotate(-200deg); transition: transform .4s var(--lhc-ease); }
.lhc-icon-btn:focus-visible { outline: 2px solid var(--lhc-gold); outline-offset: 2px; }

/* body */
.lhc-body {
  flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; scroll-behavior: auto;
  background:
    radial-gradient(circle at 100% 0, rgba(23, 105, 224, .06), transparent 45%),
    var(--lhc-page);
}
.lhc-log { display: flex; flex-direction: column; gap: 14px; padding: 18px 16px 10px; min-height: 100%; }

/* welcome */
.lhc-welcome { margin: auto 0; text-align: center; padding: 8px 4px 4px; }
.lhc-welcome h3 {
  margin: 18px 0 6px; font: 700 26px/1.02 var(--font-display, "Barlow Condensed", sans-serif);
  text-transform: uppercase; letter-spacing: .02em; color: var(--lhc-ink);
  animation: lhcRise .6s var(--lhc-ease) .08s both;
}
.lhc-welcome p { margin: 0 auto 18px; max-width: 330px; color: var(--lhc-ink-2); font-size: 13.5px; line-height: 1.5; animation: lhcRise .6s var(--lhc-ease) .16s both; }
.lhc-orb { position: relative; width: 96px; height: 96px; margin: 0 auto; animation: lhcPop .7s var(--lhc-spring) both; }
.lhc-orb-ball {
  position: absolute; inset: 14px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #1d4a73, var(--lhc-navy-2) 55%, var(--lhc-navy));
  box-shadow: 0 16px 34px rgba(7, 24, 39, .28), inset 0 1px 0 rgba(255, 255, 255, .15), 0 0 0 6px rgba(23, 105, 224, .08);
}
.lhc-orb-ball svg { width: 46px; height: 46px; animation: lhcBob 3.6s ease-in-out infinite; }
.lhc-orb-ball ellipse { fill: #8a4b2a; stroke: #6b3519; stroke-width: 1.5; }
.lhc-orb-ball .lhc-laces { stroke: #fff; stroke-width: 2.6; stroke-linecap: round; fill: none; }
@keyframes lhcBob { 0%, 100% { transform: rotate(-6deg) translateY(1px); } 50% { transform: rotate(8deg) translateY(-3px); } }
.lhc-orbit { position: absolute; inset: 0; animation: lhcOrbit 7s linear infinite; }
.lhc-orbit i {
  position: absolute; width: 9px; height: 9px; border-radius: 50%;
  background: var(--lhc-gold); box-shadow: 0 0 10px rgba(246, 183, 60, .8);
}
.lhc-orbit i:nth-child(1) { top: 2px; left: 50%; }
.lhc-orbit i:nth-child(2) { bottom: 10px; left: 6px; width: 6px; height: 6px; background: #6ea8ff; box-shadow: 0 0 10px rgba(110, 168, 255, .8); }
.lhc-orbit i:nth-child(3) { bottom: 18px; right: 2px; width: 5px; height: 5px; }
@keyframes lhcOrbit { to { transform: rotate(360deg); } }
.lhc-chips { display: grid; gap: 8px; text-align: left; }
.lhc-chip {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 14px; cursor: pointer;
  border: 1px solid var(--lhc-line); border-radius: 13px; background: #fff; color: var(--lhc-ink);
  font: 600 13.5px/1.3 var(--lhc-font); text-align: left; box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
  animation: lhcRise .55s var(--lhc-ease) both; animation-delay: calc(.24s + var(--i) * 70ms);
  transition: border-color .2s, box-shadow .25s var(--lhc-ease), transform .25s var(--lhc-spring), background .2s;
}
.lhc-chip::before {
  content: ""; width: 7px; height: 7px; flex: 0 0 auto; border-radius: 2px; transform: rotate(45deg);
  background: linear-gradient(135deg, var(--lhc-gold), var(--lhc-blue));
}
@media (hover: hover) {
  .lhc-chip:hover { border-color: rgba(23, 105, 224, .35); box-shadow: 0 8px 20px rgba(23, 105, 224, .12); transform: translateY(-2px); }
}
.lhc-chip:active { transform: scale(.98); background: #edf3ff; }
.lhc-chip:focus-visible { outline: 2px solid var(--lhc-blue); outline-offset: 2px; }

/* messages */
.lhc-msg { display: flex; gap: 9px; max-width: 100%; animation: lhcRise .45s var(--lhc-ease) both; }
.lhc-user { justify-content: flex-end; animation-name: lhcFromRight; }
.lhc-user .lhc-bubble {
  max-width: 82%; padding: 10px 14px; border-radius: 18px 18px 6px 18px;
  color: #fff; background: linear-gradient(135deg, #2b7cf0, var(--lhc-blue) 45%, var(--lhc-blue-2));
  box-shadow: 0 8px 18px rgba(23, 105, 224, .25);
  font-size: 14px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere;
}
.lhc-ai-mark {
  width: 28px; height: 28px; flex: 0 0 auto; margin-top: 2px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--lhc-navy-2), var(--lhc-navy)); box-shadow: 0 4px 10px rgba(7, 24, 39, .2);
}
.lhc-ai-mark svg { width: 15px; height: 15px; fill: var(--lhc-gold); }
.lhc-ai.is-working .lhc-ai-mark svg { animation: lhcSpinSlow 2.2s var(--lhc-ease) infinite; }
@keyframes lhcSpinSlow { 50% { transform: rotate(180deg) scale(.85); } 100% { transform: rotate(360deg); } }
.lhc-ai .lhc-bubble {
  min-width: 0; max-width: calc(100% - 37px); padding: 11px 14px; border-radius: 6px 18px 18px 18px;
  background: #fff; border: 1px solid var(--lhc-line); box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
  font-size: 14px; line-height: 1.55; color: var(--lhc-ink); overflow-wrap: anywhere;
}
.lhc-bubble p { margin: 0 0 8px; }
.lhc-bubble > :last-child, .lhc-answer > :last-child { margin-bottom: 0; }
.lhc-bubble strong { color: var(--lhc-ink); font-weight: 700; }
.lhc-bubble h4 { margin: 10px 0 6px; font: 700 16px/1.1 var(--font-display, "Barlow Condensed", sans-serif); text-transform: uppercase; letter-spacing: .03em; }
.lhc-bubble ul, .lhc-bubble ol { margin: 4px 0 8px; padding-left: 20px; }
.lhc-bubble li { margin: 3px 0; }
.lhc-bubble li::marker { color: var(--lhc-blue); font-weight: 700; }
.lhc-bubble code { padding: 1px 5px; border-radius: 5px; background: #eef1f5; font-size: 12.5px; }
.lhc-bubble hr { border: 0; border-top: 1px solid var(--lhc-line); margin: 10px 0; }
.lhc-table { overflow-x: auto; margin: 6px -4px 10px; border: 1px solid var(--lhc-line); border-radius: 10px; }
/* The pages style bare tables (a 555px minimum, right-aligned numbers,
   row highlights); none of that belongs in an answer. */
.lhc-panel .lhc-table table { border-collapse: collapse; width: 100%; min-width: 0; margin: 0; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.lhc-panel .lhc-table tr { background: none; box-shadow: none; transition: none; }
.lhc-panel .lhc-table th, .lhc-panel .lhc-table td {
  min-width: 0; width: auto; text-align: left; vertical-align: top; box-shadow: none; border-left: 0; border-right: 0;
}
.lhc-panel .lhc-table th { padding: 7px 9px; color: var(--lhc-ink-3); font-size: 10.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; border-bottom: 1px solid var(--lhc-line); background: #f7f8fa; white-space: nowrap; }
.lhc-panel .lhc-table td { padding: 7px 9px; border-bottom: 1px solid var(--lhc-line); color: var(--lhc-ink-2); font-size: 12.5px; white-space: normal; background: none; }
.lhc-panel .lhc-table tr:last-child td { border-bottom: 0; }
.lhc-panel .lhc-table td:first-child { color: var(--lhc-ink); font-weight: 600; }

/* while it works */
.lhc-status { display: flex; align-items: center; gap: 10px; color: var(--lhc-ink-2); font-size: 13px; font-weight: 600; }
.lhc-ai.has-text .lhc-status { display: none; }
.lhc-status-text {
  display: inline-block;
  background: linear-gradient(90deg, var(--lhc-ink-2) 30%, var(--lhc-blue) 50%, var(--lhc-ink-2) 70%);
  background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: lhcShimmer 2.4s linear infinite;
}
.lhc-status-text.swap { animation: lhcShimmer 2.4s linear infinite, lhcSwap .4s var(--lhc-ease); }
@keyframes lhcSwap { from { opacity: 0; transform: translateY(5px); } }
@keyframes lhcShimmer { from { background-position: 100% 0; } to { background-position: -50% 0; } }
.lhc-dots { display: inline-flex; gap: 4px; }
.lhc-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--lhc-blue); animation: lhcDot 1.2s ease-in-out infinite; }
.lhc-dots i:nth-child(2) { animation-delay: .15s; background: #4f8ff0; }
.lhc-dots i:nth-child(3) { animation-delay: .3s; background: var(--lhc-gold); }
@keyframes lhcDot { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }
.lhc-ai.is-looking .lhc-bubble { border-color: rgba(23, 105, 224, .3); box-shadow: 0 0 0 4px rgba(23, 105, 224, .07); }
.lhc-caret {
  display: inline-block; width: 7px; height: 15px; margin-left: 2px; vertical-align: -2px; border-radius: 2px;
  background: var(--lhc-blue); animation: lhcBlink 1s steps(2, start) infinite;
}
@keyframes lhcBlink { to { visibility: hidden; } }
.lhc-ai.is-done .lhc-bubble { animation: lhcSettle .5s var(--lhc-ease); }
@keyframes lhcSettle { from { box-shadow: 0 0 0 4px rgba(246, 183, 60, .25); } }

.lhc-bubble-error { border-color: rgba(215, 25, 32, .25) !important; background: #fff7f7 !important; color: #8f1418 !important; }
.lhc-retry {
  margin-top: 8px; padding: 6px 12px; border: 1px solid rgba(215, 25, 32, .3); border-radius: 9px;
  background: #fff; color: #b3151b; font: 600 12.5px/1 var(--lhc-font); cursor: pointer;
}
.lhc-note {
  margin: 4px auto 0; max-width: 340px; padding: 10px 12px; border-radius: 12px; text-align: center;
  font-size: 12.5px; line-height: 1.45; color: var(--lhc-ink-2); background: rgba(246, 183, 60, .12); border: 1px dashed rgba(217, 144, 27, .45);
  animation: lhcRise .5s var(--lhc-ease) both;
}
.lhc-note code { font-size: 11.5px; }

/* the composer */
.lhc-compose {
  flex: 0 0 auto; display: flex; align-items: flex-end; gap: 8px; margin: 0 12px; padding: 7px 7px 7px 14px;
  border: 1px solid var(--lhc-line); border-radius: 18px; background: #fff;
  box-shadow: 0 6px 18px rgba(7, 24, 39, .07);
  transition: border-color .2s, box-shadow .25s var(--lhc-ease);
}
.lhc-compose[hidden] { display: none; }
.lhc-compose:focus-within { border-color: rgba(23, 105, 224, .45); box-shadow: 0 0 0 4px rgba(23, 105, 224, .1), 0 6px 18px rgba(7, 24, 39, .07); }
.lhc-compose textarea {
  flex: 1 1 auto; min-width: 0; resize: none; border: 0; outline: 0; background: transparent; padding: 8px 0;
  font: 400 15px/1.4 var(--lhc-font); color: var(--lhc-ink); max-height: 140px;
}
.lhc-compose textarea::placeholder { color: var(--lhc-ink-3); }
/* under 16px, a phone's browser zooms in on the field when it's tapped */
@media (max-width: 640px) { .lhc-compose textarea { font-size: 16px; } }
.lhc-send {
  width: 38px; height: 38px; flex: 0 0 auto; border: 0; border-radius: 12px; cursor: pointer; display: grid; place-items: center;
  color: #fff; background: linear-gradient(135deg, #2b7cf0, var(--lhc-blue-2));
  box-shadow: 0 6px 14px rgba(23, 105, 224, .3);
  transition: transform .25s var(--lhc-spring), opacity .2s, background .2s, box-shadow .2s;
}
.lhc-send svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.lhc-send.is-stop { background: var(--lhc-navy); box-shadow: none; }
.lhc-send.is-stop svg { fill: currentColor; stroke: none; width: 14px; height: 14px; }
.lhc-send:disabled { opacity: .35; box-shadow: none; cursor: default; }
.lhc-send:not(:disabled):active { transform: scale(.88); }
@media (hover: hover) { .lhc-send:not(:disabled):hover { transform: translateY(-1px) scale(1.04); } }
.lhc-send:focus-visible { outline: 2px solid var(--lhc-blue); outline-offset: 2px; }
.lhc-fine { flex: 0 0 auto; margin: 7px 16px calc(10px + env(safe-area-inset-bottom)); text-align: center; font-size: 10.5px; color: var(--lhc-ink-3); }
.lhc-fine[hidden] { display: none; }

/* ---------------------------------------------------------------
   The Pro lock
   --------------------------------------------------------------- */
.lhc-panel.is-locked .lhc-log { padding: 0; position: relative; }
.lhc-locked { position: relative; flex: 1 1 auto; display: flex; flex-direction: column; justify-content: flex-end; padding: 16px; min-height: 100%; overflow: hidden; }
.lhc-teaser {
  position: absolute; inset: 0; padding: 18px 16px; display: flex; flex-direction: column; gap: 12px;
  filter: blur(3px) saturate(.9); opacity: .55; pointer-events: none; user-select: none;
  mask-image: linear-gradient(#000 25%, transparent 85%); -webkit-mask-image: linear-gradient(#000 25%, transparent 85%);
}
.lhc-teaser .lhc-msg { animation: none; }
.lhc-teaser .lhc-ai .lhc-bubble { width: 72%; }
.lhc-skel { display: block; height: 9px; margin: 5px 0; border-radius: 5px; background: linear-gradient(90deg, #e4e9f0, #f2f5f9, #e4e9f0); background-size: 200% 100%; animation: lhcShimmer 1.8s linear infinite; }
.lhc-lock-card {
  position: relative; padding: 22px 20px 18px; border-radius: 20px; text-align: center; color: #fff; overflow: hidden;
  background: linear-gradient(160deg, #173f63 0%, var(--lhc-navy-2) 45%, var(--lhc-navy) 100%);
  box-shadow: 0 24px 50px rgba(7, 24, 39, .35), inset 0 1px 0 rgba(255, 255, 255, .1);
  animation: lhcRise .6s var(--lhc-spring) .05s both;
}
.lhc-lock-card::before {
  content: ""; position: absolute; inset: -40% -30% auto; height: 240px;
  background: radial-gradient(circle at 50% 50%, rgba(246, 183, 60, .28), transparent 60%);
  pointer-events: none;
}
.lhc-lock-icon {
  position: relative; width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 16px; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #ffd884, var(--lhc-gold) 55%, #d9901b);
  box-shadow: 0 10px 24px rgba(246, 183, 60, .4), 0 0 0 5px rgba(246, 183, 60, .15);
  animation: lhcWiggle 4s var(--lhc-ease) 1s infinite;
}
.lhc-lock-icon svg { width: 25px; height: 25px; fill: none; stroke: var(--lhc-navy); stroke-width: 2.3; stroke-linecap: round; }
@keyframes lhcWiggle { 0%, 84%, 100% { transform: none; } 88% { transform: rotate(-10deg); } 92% { transform: rotate(8deg); } 96% { transform: rotate(-4deg); } }
.lhc-lock-kicker { position: relative; display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--lhc-gold-2); }
.lhc-lock-card h3 { position: relative; margin: 6px 0 8px; font: 700 27px/1 var(--font-display, "Barlow Condensed", sans-serif); text-transform: uppercase; letter-spacing: .02em; }
.lhc-lock-card p { position: relative; margin: 0 auto 14px; max-width: 320px; color: #c9d5df; font-size: 13.5px; line-height: 1.5; }
.lhc-lock-card ul { position: relative; list-style: none; margin: 0 auto 18px; padding: 0; display: grid; gap: 8px; max-width: 300px; text-align: left; }
.lhc-lock-card li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; color: #eef3f8; animation: lhcFromLeft .5s var(--lhc-ease) both; animation-delay: calc(.3s + var(--i) * 80ms); }
.lhc-lock-card li svg { width: 18px; height: 18px; flex: 0 0 auto; padding: 3px; border-radius: 50%; background: rgba(246, 183, 60, .18); fill: none; stroke: var(--lhc-gold); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.lhc-upgrade {
  position: relative; overflow: hidden; width: 100%; height: 48px; border: 0; border-radius: 14px; cursor: pointer;
  font: 700 15px/1 var(--lhc-font); color: var(--lhc-navy); letter-spacing: -.005em;
  background: linear-gradient(135deg, #ffd884, var(--lhc-gold) 50%, #e9a12b);
  box-shadow: 0 12px 26px rgba(246, 183, 60, .35), inset 0 1px 0 rgba(255, 255, 255, .5);
  transition: transform .25s var(--lhc-spring), box-shadow .25s var(--lhc-ease);
}
.lhc-upgrade span { position: relative; z-index: 1; }
.lhc-upgrade::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .65), transparent);
  transform: skewX(-18deg); animation: lhcShine 3.2s var(--lhc-ease) 1.2s infinite;
}
@keyframes lhcShine { 0% { left: -60%; } 45%, 100% { left: 130%; } }
@media (hover: hover) { .lhc-upgrade:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(246, 183, 60, .45), inset 0 1px 0 rgba(255, 255, 255, .5); } }
.lhc-upgrade:active { transform: scale(.97); }
.lhc-upgrade:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.lhc-pass {
  position: relative; display: block; width: 100%; margin-top: 10px; padding: 10px 12px; border-radius: 12px; cursor: pointer;
  border: 1px solid rgba(246, 183, 60, .45); background: rgba(246, 183, 60, .1); color: #ffe2a3;
  font: 700 13px/1.3 var(--lhc-font); transition: background .2s, border-color .2s;
}
.lhc-pass:hover { background: rgba(246, 183, 60, .18); border-color: rgba(246, 183, 60, .7); }
.lhc-pass:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lhc-lock-fine { position: relative; display: block; margin-top: 10px; font-size: 11.5px; color: #9eb0c1; }

/* ---------------------------------------------------------------
   Motion
   --------------------------------------------------------------- */
@keyframes lhcRise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes lhcFromRight { from { opacity: 0; transform: translateX(18px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes lhcFromLeft { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
@keyframes lhcPop { from { opacity: 0; transform: scale(.5) rotate(-12deg); } to { opacity: 1; transform: none; } }
@keyframes lhcFade { from { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .lhc-fab, .lhc-panel, .lhc-panel * , .lhc-fab * { animation: none !important; transition: none !important; }
  .lhc-panel { filter: none; }
  .lhc-status-text { color: var(--lhc-ink-2); background: none; }
}
