/* MAX WANTED — The Fixer (pagine /the-fixer/, generate da scripts/build.mjs; chat in public/assets/js/fixer.js) */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fx { position: relative; isolation: isolate; }
.fx::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1000px; z-index: -1; pointer-events: none;
  background: radial-gradient(55% 45% at 82% 6%, rgba(45, 226, 198, .2), transparent 70%), radial-gradient(60% 50% at 12% 12%, rgba(255, 46, 136, .24), transparent 70%);
}
.fx__head { max-width: 1000px; margin: 0 auto; padding: 140px var(--pad) 10px; text-align: center; }
.fx__head .crumbs { justify-content: center; }
.fx__head .eyebrow::after { content: ""; width: 34px; height: 1px; background: currentColor; }
.fx__title { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(2.8rem, 7vw, 6.4rem); line-height: .95; text-transform: uppercase; text-wrap: balance; }
.fx__lead { margin: 22px auto 0; max-width: 660px; font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.5; color: rgba(251, 243, 234, .84); }

/* chat */
.fx__app {
  max-width: 860px; margin: 34px auto 0; padding: 22px; border-radius: var(--radius);
  background: linear-gradient(170deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .015)), var(--night-2);
  box-shadow: inset 0 0 0 1px var(--line), 0 40px 120px -50px rgba(255, 46, 136, .55);
}
@media (max-width: 900px) { .fx__app { margin-left: 16px; margin-right: 16px; padding: 16px; } }
.fx__bar { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; padding: 2px 4px 14px; border-bottom: 1px solid var(--line); }
.fx__status { margin: 0; font-size: 14px; font-weight: 700; color: var(--teal); }
.fx__status::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; vertical-align: 1px; }
.is-empty .fx__status { color: var(--orange); }
.is-pass .fx__status { color: var(--gold); }
.fx__link { padding: 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.fx__link:hover { color: var(--ink); }
.fx__code { padding: 16px 4px 4px; }
.fx__code label { display: block; margin-bottom: 8px; font-size: 14px; color: var(--muted); }
.fx__row { display: flex; gap: 10px; }
.fx__row input {
  flex: 1; min-width: 0; padding: 12px 16px; border: 0; border-radius: 14px; background: rgba(0, 0, 0, .35);
  box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font: 15px/1.2 ui-monospace, Consolas, monospace;
}
.fx__row input:focus { outline: 2px solid var(--teal); outline-offset: 1px; }
.fx__msg-line { min-height: 1.4em; margin: 8px 0 0; font-size: 14px; color: var(--teal); }
.fx__msg-line.is-err { color: var(--orange); }

.fx__log { display: flex; flex-direction: column; gap: 14px; max-height: min(62vh, 640px); min-height: 160px; overflow-y: auto; padding: 18px 4px; overscroll-behavior: contain; scroll-behavior: smooth; }
.fx__msg { max-width: 88%; padding: 14px 18px; border-radius: 20px; line-height: 1.55; animation: fx-in .4s var(--ease) both; }
.fx__msg p { margin: 0; }
.fx__msg p + p, .fx__msg ul + p, .fx__msg p + ul { margin-top: 10px; }
.fx__msg ul { margin: 0; padding-left: 20px; }
.fx__msg li + li { margin-top: 4px; }
.fx__msg b { color: var(--gold); }
.fx__msg--bot { align-self: flex-start; border-top-left-radius: 6px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--line); }
.fx__msg--me { align-self: flex-end; border-top-right-radius: 6px; background: linear-gradient(120deg, rgba(255, 46, 136, .32), rgba(255, 138, 61, .22)); box-shadow: inset 0 0 0 1px rgba(255, 46, 136, .45); }
.fx__msg--err { box-shadow: inset 0 0 0 1px rgba(255, 138, 61, .6); color: var(--orange); }
@keyframes fx-in { from { opacity: 0; transform: translateY(10px); } }
.fx__cite {
  display: inline-grid; place-items: center; min-width: 1.45em; height: 1.45em; margin: 0 1px 0 3px; padding: 0 4px; border-radius: 999px;
  background: rgba(45, 226, 198, .16); color: var(--teal); font-size: .72em; font-weight: 800; vertical-align: .25em; text-decoration: none;
}
.fx__cite:hover { background: var(--teal); color: var(--night); }
.fx__src { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: baseline; margin-top: 12px !important; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13px; }
.fx__src b { color: var(--muted); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: 11px; }
.fx__src a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.fx__src a:hover { color: var(--ink); }
.fx__typing { color: var(--muted); font-size: 14px; }
.fx__typing span { display: inline-block; width: 6px; height: 6px; margin-right: 3px; border-radius: 50%; background: var(--pink); animation: fx-dot 1s infinite ease-in-out; }
.fx__typing span:nth-child(2) { animation-delay: .15s; }
.fx__typing span:nth-child(3) { animation-delay: .3s; margin-right: 8px; }
@keyframes fx-dot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-4px); } }

.fx__sugg { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 4px 16px; }
.fx__chip {
  padding: 9px 14px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink); font: inherit; font-size: 14px; text-align: left; cursor: pointer; transition: background .3s, box-shadow .3s;
}
.fx__chip:hover { background: rgba(255, 46, 136, .16); box-shadow: inset 0 0 0 1px rgba(255, 46, 136, .55); }

.fx__wall {
  margin: 4px 4px 16px; padding: 20px 22px; border-radius: 20px; text-align: center;
  background: linear-gradient(120deg, rgba(255, 209, 102, .14), rgba(255, 46, 136, .1)); box-shadow: inset 0 0 0 1px rgba(255, 209, 102, .5);
}
.fx__wall-title { margin: 0 0 6px; font-family: var(--display); font-size: 1.8rem; line-height: 1.05; text-transform: uppercase; color: var(--gold); }
.fx__wall p { margin: 0 0 14px; }

.fx__ask { display: flex; align-items: flex-end; gap: 10px; padding: 14px 4px 4px; border-top: 1px solid var(--line); }
.fx__ask textarea {
  flex: 1; min-width: 0; min-height: 52px; max-height: 160px; padding: 14px 18px; border: 0; border-radius: 18px; resize: none;
  background: rgba(0, 0, 0, .35); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font: inherit; font-size: 16px; line-height: 1.4;
}
.fx__ask textarea:focus { outline: 2px solid var(--pink); outline-offset: 1px; }
.fx__ask .btn { flex: none; padding: 15px 22px; }
.fx__ask .btn:disabled { opacity: .5; cursor: progress; }
@media (max-width: 520px) { .fx__ask .btn span { display: none; } .fx__ask .btn { padding: 15px 16px; } .fx__msg { max-width: 94%; } }
.fx__note { margin: 12px 4px 0; font-size: 12.5px; color: var(--muted); text-align: center; }

/* pass e domande frequenti */
.fx__passes { max-width: 1240px; margin: 0 auto; padding-top: 110px; padding-bottom: 40px; text-align: left; }
.fx__passes .tiers__head { text-align: center; margin-bottom: 56px; }
.fx__passes .tiers__head .eyebrow::after { content: ""; width: 34px; height: 1px; background: currentColor; }
.fx__passes .onetime__gift { text-align: center; margin-top: 18px; color: var(--muted); }
.fx__how { max-width: 860px; margin: 0 auto; padding: 40px var(--pad) 40px; }
.fx__how .h2 { margin-bottom: 26px; }
.fx__how details { border-bottom: 1px solid var(--line); }
.fx__how summary { padding: 18px 0; font-weight: 700; font-size: 1.1rem; cursor: pointer; }
.fx__how details p { margin: 0 0 18px; color: rgba(251, 243, 234, .82); }
.fx__how a { color: var(--teal); text-decoration: underline; }
@media (prefers-reduced-motion: reduce) { .fx__msg, .fx__typing span { animation: none; } }
