/* HOME (DECISIONS C-170) — the H.T.C.³ landing page approved on the hosted copy (index.html of the 2026-10-22 snapshot), now part of the
   app: every rule below is the hosted page's own <style id="htc-hub-styles">, unchanged and scoped to #htc-hub (its own palette and
   type: League Spartan · Karla · JetBrains Mono · Nunito, served locally by app/home-fonts.css instead of Google Fonts). The app's
   tokens and views are not touched by it. Additions are marked "integration": the pre-script visibility rule and the floating mini
   player (the shared HTC transport while the Home covers the app bar). */
#htc-hub, #htc-hub * { box-sizing: border-box; }
#htc-hub[hidden] { display: none !important; }
/* integration: the inline script in index.html sets html.htc-hub-active from the URL before the body paints (no flash either way) */
html:not(.htc-hub-active) #htc-hub { display: none !important; }
#htc-hub {
  --hub-cream: #FBE3B8; --hub-orange: #F7A93A; --hub-violet: #B26AE8;
  --hub-ink: #f3efeb; --hub-muted: #ada5ad; --hub-accent: var(--hub-orange);
  --hub-stroke: rgba(226, 194, 185, .17);
  position: fixed; inset: 0; z-index: 999; overflow-y: auto; overscroll-behavior: contain;
  background: #0c0d11; color: var(--hub-ink);
  font: 400 15px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
html.htc-hub-active, html.htc-hub-active body { overflow: hidden; }
#htc-hub a { text-decoration: none; color: inherit; }
#htc-hub a:focus-visible, #htc-hub summary:focus-visible { outline: 2px solid var(--hub-violet); outline-offset: 5px; }
#htc-hub .hub-wrap { width: min(100% - 88px, 1392px); margin-inline: auto; }
#htc-hub .hub-top { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-block: 24px; border-bottom: 0; }
/* Home-only H.T.C.³ logo. Source SVG geometry, gradients and motion are preserved. */
#htc-hub .hub-logo { display: flex; align-items: center; gap: 0; line-height: 1; min-width: 0; }
#htc-hub .hub-logo small { font-size: 10px; color: #7b898c; font-weight: 600; letter-spacing: .06em; white-space: nowrap; margin-left: -10px; }
#htc-hub .hub-htc-logo {
  --htc-cream: #FBE3B8; --htc-orange: #F7A93A; --htc-violet: #B26AE8; --htc-sup: #A79C8C;
  display: block; flex: 0 0 clamp(210px, 22vw, 305px);
  width: clamp(210px, 22vw, 305px); aspect-ratio: 1540 / 540;
  position: relative; line-height: 0; background: transparent;
}
#htc-hub .hub-htc-logo svg { width: 100%; height: 100%; position: absolute; inset: 0; display: block; overflow: visible; }
#htc-hub .hub-htc-logo svg.hub-logo-motion { display: none; }
#htc-hub .hub-htc-logo.is-mounted svg.hub-logo-motion { display: block; }
#htc-hub .hub-htc-logo.is-mounted svg.hub-logo-fallback { display: none; }
#htc-hub .hub-htc-logo .htc-stroke { fill: none; stroke-width: 54; stroke-linecap: round; stroke-linejoin: round; }
#htc-hub .hub-htc-logo .htc-sup { font-family: Nunito, 'Varela Round', system-ui, sans-serif; font-weight: 400; font-size: 96px; fill: var(--htc-sup); }
#htc-hub .hub-htc-logo .htc-peak { opacity: .85; }
@media (max-width: 660px) {
  #htc-hub .hub-htc-logo { width: 210px; flex-basis: 210px; }
  #htc-hub .hub-logo small { display: none; }
}
@media (max-width: 390px) {
  #htc-hub .hub-htc-logo { width: 184px; flex-basis: 184px; }
}
#htc-hub .hub-topside { display: flex; align-items: center; gap: 27px; }
#htc-hub .hub-topnote { font-size: 10px; text-transform: uppercase; letter-spacing: .19em; color: #b7a6b6; }
#htc-hub .hub-status { display: inline-flex; align-items: center; gap: 9px; color: var(--hub-cream); }
#htc-hub .hub-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--hub-violet); box-shadow: 0 0 0 4px rgba(178,106,232,.12); }
#htc-hub .hub-tophref { font-size: 12px; font-weight: 700; letter-spacing: .03em; padding: 9px 0 9px 10px; }
#htc-hub .hub-tophref:hover { color: var(--hub-orange); }
#htc-hub .hub-hero { display: grid; grid-template-columns: minmax(0,1.03fr) minmax(0,.97fr); gap: clamp(42px,5.2vw,92px); align-items: center; padding-block: clamp(32px,4vw,63px) 96px; }
#htc-hub .hub-eyebrow { display: block; color: var(--hub-orange); font: 700 11px/1.4 ui-monospace, Consolas, monospace; letter-spacing: .18em; text-transform: uppercase; }
#htc-hub .hub-eyebrow::before { content: '✳'; display: inline-block; margin-right: 10px; font-size: 17px; line-height: 1; vertical-align: middle; }
#htc-hub .hub-heading { margin: 26px 0 21px; font-size: clamp(58px,6.7vw,112px); line-height: .93; letter-spacing: -.052em; font-weight: 800; max-width: 9.2ch; }
#htc-hub .hub-heading em { color: var(--hub-orange); font-style: normal; background: linear-gradient(95deg, var(--hub-cream) 0%, var(--hub-orange) 46%, var(--hub-violet) 100%); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
#htc-hub .hub-lede { max-width: 51ch; margin: 0; font-size: clamp(15px,1.14vw,18px); color: var(--hub-muted); line-height: 1.75; }
#htc-hub .hub-lede strong { color: var(--hub-ink); font-weight: 600; }
#htc-hub .hub-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 34px; }
#htc-hub .hub-btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 32px; min-height: 52px; padding: 12px 21px; border-radius: 5px; font-size: 12px; letter-spacing: .04em; font-weight: 800; transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease; }
#htc-hub .hub-btn:hover { transform: translateY(-2px); }
#htc-hub .hub-btn-main { background: linear-gradient(105deg, var(--hub-orange), var(--hub-cream)); color: #251a15 !important; border: 1px solid var(--hub-orange); min-width: 215px; }
#htc-hub .hub-btn-main:hover { background: linear-gradient(105deg, var(--hub-cream), #ffcb84); }
#htc-hub .hub-btn-alt { border: 1px solid rgba(178,106,232,.58); color: var(--hub-cream); min-width: 165px; }
#htc-hub .hub-btn-alt:hover { border-color: var(--hub-violet); color: var(--hub-cream); background: rgba(178,106,232,.10); }
#htc-hub .hub-subnote { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 31px; color: #a596a1; font: 600 10px/1.4 ui-monospace, Consolas, monospace; letter-spacing: .07em; text-transform: uppercase; }
#htc-hub .hub-subnote span::before { content: '// '; color: var(--hub-violet); }
#htc-hub .hub-creator-hint { margin-top: 23px; font: 700 11px/1.7 ui-monospace, Consolas, monospace; letter-spacing: .03em; color: var(--hub-orange); }
#htc-hub .hub-creator-hint small { display: block; font-size: 10px; font-weight: 500; color: #a6948d; letter-spacing: .07em; }
#htc-hub .hub-poster { position: relative; min-width: 0; background: #131119; border: 1px solid rgba(178,106,232,.32); border-radius: 12px; overflow: hidden; box-shadow: 0 18px 80px #0006; }
#htc-hub .hub-poster::before { content: ''; position: absolute; top: -180px; right: -140px; width: 430px; height: 430px; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, rgba(178,106,232,.15), transparent 65%); }
#htc-hub .hub-poster-top { display: flex; justify-content: space-between; gap: 12px; padding: 19px 23px; border-bottom: 1px solid var(--hub-stroke); color: #b7a9b4; font: 600 10px/1.3 ui-monospace, Consolas, monospace; letter-spacing: .12em; }
#htc-hub .hub-poster-num { display: flex; gap: 20px; align-items: baseline; padding: 33px 30px 22px; }
#htc-hub .hub-big-num { font-size: clamp(98px,12vw,178px); line-height: .76; letter-spacing: -.12em; font-weight: 750; color: var(--hub-cream); }
#htc-hub .hub-num-caption { display: grid; gap: 5px; font: 700 13px/1.4 ui-monospace, Consolas, monospace; color: var(--hub-violet); }
#htc-hub .hub-num-caption small { color: #b5a6ab; font-size: 11px; font-weight: 500; }
#htc-hub .hub-tracks { padding: 18px 23px 25px; display: grid; gap: 8px; }
#htc-hub .hub-track { display: grid; grid-template-columns: 102px 1fr; align-items: center; gap: 15px; border-top: 1px solid #ffffff13; padding-top: 8px; }
#htc-hub .hub-track-label { white-space: nowrap; color: #b7aeb8; font: 650 10px/1.4 ui-monospace, Consolas, monospace; letter-spacing: .02em; }
#htc-hub .hub-track.extreme .hub-track-label { color: var(--hub-orange); }
#htc-hub .hub-track-graph { height: 16px; display: flex; align-items: center; gap: 3px; overflow: hidden; }
#htc-hub .hub-track-graph i { height: 4px; flex: var(--w,1); display: block; border-radius: 2px; background: var(--c,var(--hub-orange)); opacity: var(--o,.86); }
#htc-hub .hub-track-graph i:nth-child(2n) { height: 12px; opacity: .55; }
#htc-hub .hub-track-graph i:nth-child(3n) { height: 7px; opacity: 1; }
#htc-hub .hub-track:nth-child(1) .hub-track-graph i { --c: var(--hub-cream); }
#htc-hub .hub-track:nth-child(2) .hub-track-graph i { --c: var(--hub-orange); }
#htc-hub .hub-track:nth-child(3) .hub-track-graph i { --c: #df9ba9; }
#htc-hub .hub-track:nth-child(4) .hub-track-graph i { --c: var(--hub-violet); }
#htc-hub .hub-track.extreme .hub-track-graph i { --c: var(--hub-violet); }
#htc-hub .hub-track.extreme:last-child .hub-track-graph i { --c: var(--hub-orange); }
#htc-hub .hub-poster-bottom { display: flex; justify-content: space-between; padding: 15px 23px; background: #100e15; border-top: 1px solid var(--hub-stroke); font: 600 10px/1.4 ui-monospace, Consolas, monospace; color: #b6a8b1; letter-spacing: .06em; }
#htc-hub .hub-poster-bottom b { color: var(--hub-orange); }
#htc-hub .hub-section { border-top: 1px solid var(--hub-stroke); padding-block: 56px 64px; }
#htc-hub .hub-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 27px; }
#htc-hub .hub-kicker { color: var(--hub-violet); font: 700 11px/1.4 ui-monospace, Consolas, monospace; letter-spacing: .14em; text-transform: uppercase; }
#htc-hub .hub-section-title { font-size: clamp(28px,3vw,46px); line-height: 1.14; letter-spacing: -.055em; font-weight: 740; margin: 12px 0 0; }
#htc-hub .hub-minor { color: #899a9d; font-size: 12px; }
#htc-hub .hub-steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
#htc-hub .hub-step { min-width: 0; border: 1px solid var(--hub-stroke); background: #151319; padding: 24px; border-radius: 7px; }
#htc-hub .hub-step:nth-child(2) .hub-step-index { color: var(--hub-cream); }
#htc-hub .hub-step:nth-child(3) .hub-step-index { color: var(--hub-violet); }
#htc-hub .hub-step-index { color: var(--hub-orange); font: 700 11px/1 ui-monospace, Consolas, monospace; letter-spacing: .1em; }
#htc-hub .hub-step h3 { font-size: 21px; font-weight: 700; letter-spacing: -.04em; margin: 27px 0 9px; }
#htc-hub .hub-step p { color: #aca3ad; margin: 0; line-height: 1.65; font-size: 13px; }
#htc-hub .hub-creator { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.06fr); gap: 34px; align-items: center; border: 1px solid rgba(178,106,232,.40); border-radius: 8px; background: linear-gradient(125deg,#201711 0%,#1b141b 72%,#19131e 100%); padding: clamp(28px,4vw,50px); margin: 18px 0 64px; overflow: hidden; }
#htc-hub .hub-creator-tag { font: 700 11px/1.4 ui-monospace, Consolas, monospace; color: var(--hub-orange); text-transform: uppercase; letter-spacing: .16em; }
#htc-hub .hub-creator h2 { margin: 17px 0 14px; font-size: clamp(35px,4.2vw,64px); line-height: 1.04; letter-spacing: -.065em; color: var(--hub-cream); font-weight: 800; }
#htc-hub .hub-creator h2 em { color: var(--hub-orange); font-style: normal; }
#htc-hub .hub-creator-copy { border-left: 1px solid rgba(178,106,232,.40); padding-left: clamp(20px,4vw,50px); }
#htc-hub .hub-creator-copy .hub-quote { font-size: clamp(17px,1.5vw,23px); line-height: 1.52; color: #ead8ce; margin: 0 0 20px; letter-spacing: -.02em; }
#htc-hub .hub-creator-copy .hub-disclaimer { color: #baa39e; font: 600 11px/1.7 ui-monospace, Consolas, monospace; margin: 0; }
#htc-hub .hub-faq-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 70px; }
#htc-hub .hub-faq-intro { color: var(--hub-muted); font-size: 15px; line-height: 1.75; max-width: 38ch; margin: 21px 0 0; }
#htc-hub .hub-faq-list details { border-top: 1px solid var(--hub-stroke); padding: 18px 0; }
#htc-hub .hub-faq-list details:last-child { border-bottom: 1px solid var(--hub-stroke); }
#htc-hub .hub-faq-list summary { position: relative; cursor: pointer; padding-right: 26px; list-style: none; font-size: 15px; font-weight: 650; }
#htc-hub .hub-faq-list summary::-webkit-details-marker { display: none; }
#htc-hub .hub-faq-list summary::after { content: '+'; position: absolute; right: 0; color: var(--hub-violet); font-size: 19px; top: -3px; }
#htc-hub .hub-faq-list details[open] summary::after { content: '−'; }
#htc-hub .hub-faq-list p { color: var(--hub-muted); font-size: 13px; line-height: 1.7; margin: 12px 0 0; max-width: 60ch; }
#htc-hub .hub-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 25px 0 35px; border-top: 1px solid var(--hub-stroke); font: 500 11px/1.5 ui-monospace, Consolas, monospace; color: #a497a2; }
#htc-hub .hub-footer a { color: var(--hub-orange); font-weight: 650; }
@media (max-width: 1060px) {
  #htc-hub .hub-wrap { width: min(100% - 54px,1392px); }
  #htc-hub .hub-hero { gap: 30px; }
  #htc-hub .hub-heading { font-size: clamp(55px,7vw,88px); }
  #htc-hub .hub-big-num { font-size: 105px; }
  #htc-hub .hub-track { grid-template-columns: 83px 1fr; gap: 10px; }
}
@media (max-width: 760px) {
  #htc-hub .hub-wrap { width: min(100% - 36px,620px); }
  #htc-hub .hub-top { padding-block: 19px; }
  #htc-hub .hub-topnote { display: none; }
  #htc-hub .hub-hero { grid-template-columns: 1fr; gap: 45px; padding-block: 34px 56px; }
  #htc-hub .hub-heading { font-size: clamp(60px,12.3vw,90px); }
  #htc-hub .hub-poster { max-width: 590px; }
  #htc-hub .hub-steps { grid-template-columns: 1fr; gap: 10px; }
  #htc-hub .hub-step { padding: 20px; }
  #htc-hub .hub-step h3 { margin-top: 13px; }
  #htc-hub .hub-creator { grid-template-columns: 1fr; gap: 25px; padding: 28px; }
  #htc-hub .hub-creator-copy { border-left: 0; border-top: 1px solid rgba(178,106,232,.40); padding: 23px 0 0; }
  #htc-hub .hub-faq-grid { grid-template-columns: 1fr; gap: 24px; }
  #htc-hub .hub-section { padding-block: 45px 49px; }
}
@media (max-width: 440px) {
  #htc-hub .hub-heading { font-size: clamp(52px,13vw,67px); }
  #htc-hub .hub-actions { display: grid; }
  #htc-hub .hub-btn { width: 100%; }
  #htc-hub .hub-big-num { font-size: 91px; }
  #htc-hub .hub-poster-num { gap: 24px; padding: 31px 23px 22px; }
  #htc-hub .hub-num-caption { font-size: 11px; }
  #htc-hub .hub-poster-bottom { font-size: 9px; }
  #htc-hub .hub-footer { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { #htc-hub .hub-btn { transition: none; } #htc-hub .hub-btn:hover { transform: none; } }
/* ===== Hub v2: laboratorio d'ascolto, rivelazione d'ingresso, leggibilità ===== */
#htc-hub .hub-topnote, #htc-hub .hub-subnote, #htc-hub .hub-poster-top, #htc-hub .hub-poster-bottom { font-size: 11px; }
#htc-hub .hub-briefs { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 23px 14px; }
#htc-hub .hub-brief { appearance: none; cursor: pointer; font: 600 12px/1.2 system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--hub-muted); background: transparent; border: 1px solid var(--hub-stroke); border-radius: 999px; padding: 9px 14px; transition: color .15s ease, border-color .15s ease, background .15s ease; }
#htc-hub .hub-brief:hover { color: var(--hub-cream); border-color: rgba(178,106,232,.58); }
#htc-hub .hub-brief[aria-checked="true"] { color: #251a15; background: var(--hub-cream); border-color: var(--hub-cream); }
#htc-hub .hub-brief:focus-visible, #htc-hub .hub-track:focus-visible { outline: 2px solid var(--hub-violet); outline-offset: 3px; }
#htc-hub .hub-tracks { padding-top: 6px; }
#htc-hub button.hub-track { appearance: none; width: 100%; text-align: left; color: inherit; font: inherit; background: transparent; border: 0; border-top: 1px solid #ffffff13; border-radius: 0; padding: 9px 0 1px; cursor: pointer; grid-template-columns: 172px 1fr; }
#htc-hub button.hub-track:hover { background: rgba(255,255,255,.025); }
#htc-hub .hub-track-label { display: flex; gap: 9px; align-items: baseline; }
#htc-hub .hub-track-label small { display: block; margin-top: 3px; font: 500 11px/1.3 system-ui, -apple-system, "Segoe UI", sans-serif; color: #8f8790; letter-spacing: 0; }
#htc-hub .hub-ico { width: 10px; flex: 0 0 10px; font-size: 9px; color: var(--hub-violet); }
#htc-hub .hub-track[aria-pressed="true"] .hub-track-label { color: var(--hub-cream); }
#htc-hub .hub-track[aria-pressed="true"] .hub-ico { color: var(--hub-orange); }
#htc-hub .hub-track-graph { height: 22px; }
#htc-hub .hub-track[aria-pressed="true"] .hub-track-graph i { opacity: 1; }
#htc-hub .hub-poster-bottom { gap: 18px; align-items: center; }
#htc-hub .hub-poster-bottom a { color: var(--hub-orange); white-space: nowrap; }
#htc-hub .hub-num-caption small { max-width: 22ch; }
#htc-hub .hub-poster-bottom a:hover { color: var(--hub-cream); }
#htc-hub .hub-lab-live { color: var(--hub-orange); }
@keyframes hub-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
#htc-hub .hub-eyebrow, #htc-hub .hub-heading, #htc-hub .hub-lede, #htc-hub .hub-actions, #htc-hub .hub-poster { animation: hub-rise .75s cubic-bezier(.2,.7,.2,1) both; }
#htc-hub .hub-heading { animation-delay: .08s; } #htc-hub .hub-lede { animation-delay: .2s; } #htc-hub .hub-actions { animation-delay: .3s; } #htc-hub .hub-poster { animation-delay: .38s; }
@media (max-width: 1060px) { #htc-hub button.hub-track { grid-template-columns: 150px 1fr; } }
@media (max-width: 440px) { #htc-hub button.hub-track { grid-template-columns: 136px 1fr; } #htc-hub .hub-briefs { padding-inline: 18px; } }
@media (prefers-reduced-motion: reduce) { #htc-hub .hub-eyebrow, #htc-hub .hub-heading, #htc-hub .hub-lede, #htc-hub .hub-actions, #htc-hub .hub-poster { animation: none; } #htc-hub .hub-brief { transition: none; } }
/* ===== Hub v3: tipografia, icone, micro-interazioni ===== */
#htc-hub {
  --hub-display: "League Spartan", Arial, system-ui, sans-serif;
  --hub-sans: "Karla", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hub-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --hub-ease: cubic-bezier(.2,.7,.2,1);
  font-family: var(--hub-sans); font-size: 15px;
  scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: #3a2f45 transparent;
  text-rendering: optimizeLegibility; font-feature-settings: "ss01";
}
#htc-hub ::selection { background: var(--hub-orange); color: #1b130e; }
#htc-hub .hub-heading, #htc-hub .hub-section-title, #htc-hub .hub-creator h2, #htc-hub .hub-step h3, #htc-hub .hub-big-num, #htc-hub .hub-final-title {
  font-family: var(--hub-display); font-optical-sizing: auto;
}
#htc-hub .hub-heading { letter-spacing: -.024em; line-height: .92; font-weight: 700; }
#htc-hub .hub-section-title { letter-spacing: -.018em; line-height: 1.08; font-weight: 700; }
#htc-hub .hub-creator h2 { letter-spacing: -.022em; font-weight: 700; }
#htc-hub .hub-big-num { letter-spacing: -.07em; font-weight: 800; }
#htc-hub .hub-step h3 { letter-spacing: -.01em; font-size: 22px; font-weight: 700; }
#htc-hub .hub-lede { color: #b4acb4; }
#htc-hub .hub-lede strong { font-weight: 700; }

/* icone */
#htc-hub .hub-i { width: 1em; height: 1em; flex: none; display: inline-block; vertical-align: -.125em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#htc-hub .hub-arrow { transition: transform .22s var(--hub-ease); }
#htc-hub a:hover .hub-arrow, #htc-hub a:focus-visible .hub-arrow { transform: translateX(3px); }

/* barra in alto */
#htc-hub .hub-status::before { animation: hub-live 2.4s ease-in-out infinite; }
@keyframes hub-live { 0%,100% { box-shadow: 0 0 0 0 rgba(178,106,232,.45); } 60% { box-shadow: 0 0 0 7px rgba(178,106,232,0); } }
#htc-hub .hub-tophref { display: inline-flex; align-items: center; gap: 8px; font-family: var(--hub-sans); font-size: 11px; letter-spacing: .08em; color: var(--hub-cream); padding: 10px 2px 10px 12px; }
#htc-hub .hub-tophref .hub-i { font-size: 13px; }

/* eyebrow: mini spettro al posto dell'asterisco */
#htc-hub .hub-eyebrow { display: flex; align-items: center; gap: 12px; }
#htc-hub .hub-eyebrow::before { content: none; }
#htc-hub .hub-eq { display: inline-flex; align-items: center; gap: 2px; height: 14px; }
#htc-hub .hub-eq i { width: 3px; height: 100%; border-radius: 2px; background: currentColor; transform-origin: center; transform: scaleY(var(--s,.5)); animation: hub-eq 1s var(--hub-ease) infinite; animation-delay: var(--d,0s); }
#htc-hub .hub-eq i:nth-child(1) { --s:.45; --d:-.2s; background: var(--hub-cream); } #htc-hub .hub-eq i:nth-child(2) { --s:.75; --d:-.55s; } #htc-hub .hub-eq i:nth-child(3) { --s:1; --d:-.1s; } #htc-hub .hub-eq i:nth-child(4) { --s:.7; --d:-.75s; background: #d98aa4; } #htc-hub .hub-eq i:nth-child(5) { --s:.4; --d:-.35s; background: var(--hub-violet); }
@keyframes hub-eq { 0%,100% { transform: scaleY(var(--s,.5)); } 50% { transform: scaleY(calc(var(--s,.5) * .45)); } }

/* pulsanti */
#htc-hub .hub-btn { font-family: var(--hub-sans); font-size: 12px; letter-spacing: .065em; font-weight: 700; border-radius: 6px; transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s var(--hub-ease), box-shadow .18s ease; }
#htc-hub .hub-btn .hub-i { font-size: 15px; }
#htc-hub .hub-btn-main { box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 10px 30px -12px rgba(247,169,58,.55); }
#htc-hub .hub-btn-main:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 14px 34px -12px rgba(247,169,58,.7); }
#htc-hub .hub-btn:active { transform: translateY(0) scale(.985); }
#htc-hub .hub-btn:focus-visible { outline: 2px solid var(--hub-violet); outline-offset: 4px; }
#htc-hub .hub-subnote { font-family: var(--hub-mono); color: #a99ba6; }

/* laboratorio */
#htc-hub .hub-poster { border-color: rgba(178,106,232,.28); box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 30px 90px -30px #000c; }
#htc-hub .hub-poster-top { font-family: var(--hub-mono); }
#htc-hub .hub-num-caption { font-family: var(--hub-mono); }
#htc-hub .hub-num-caption small { font-family: var(--hub-sans); font-size: 12px; line-height: 1.5; color: #a99ca4; }
#htc-hub .hub-brief { font-family: var(--hub-sans); font-weight: 650; }
#htc-hub .hub-brief:active { transform: scale(.97); }
#htc-hub .hub-track-label { font-family: var(--hub-mono); }
#htc-hub .hub-track-label small { font-family: var(--hub-sans); font-size: 12px; color: #958c96; }
#htc-hub button.hub-track { position: relative; transition: background .15s ease; }
#htc-hub button.hub-track::after { content: ''; position: absolute; left: 0; bottom: -1px; height: 1px; width: calc(var(--p, 0) * 100%); background: var(--hub-orange); opacity: 0; }
#htc-hub button.hub-track[aria-pressed="true"]::after { opacity: .9; }
#htc-hub .hub-ico { display: inline-grid; place-items: center; width: 18px; height: 18px; flex: 0 0 18px; border-radius: 50%; border: 1px solid rgba(178,106,232,.45); color: var(--hub-violet); align-self: center; transition: background .15s ease, border-color .15s ease, color .15s ease; }
#htc-hub .hub-ico svg { width: 8px; height: 8px; fill: currentColor; stroke: none; }
#htc-hub .hub-ico .s { display: none; }
#htc-hub button.hub-track:hover .hub-ico { border-color: var(--hub-orange); color: var(--hub-orange); }
#htc-hub .hub-track[aria-pressed="true"] .hub-ico { background: var(--hub-orange); border-color: var(--hub-orange); color: #1b130e; }
#htc-hub .hub-track[aria-pressed="true"] .hub-ico .p { display: none; }
#htc-hub .hub-track[aria-pressed="true"] .hub-ico .s { display: block; }
#htc-hub .hub-track-graph i { transition: height .06s linear; }
#htc-hub .hub-lab-keys { color: #8c8190; }
#htc-hub .hub-lab-keys kbd { font: inherit; color: var(--hub-cream); border: 1px solid #ffffff26; border-bottom-width: 2px; border-radius: 4px; padding: 1px 5px; margin: 0 2px; }
#htc-hub .hub-poster-bottom { font-family: var(--hub-mono); line-height: 1.55; }
#htc-hub .hub-poster-bottom a { display: inline-flex; align-items: center; gap: 6px; }

/* sezioni */
#htc-hub .hub-kicker, #htc-hub .hub-step-index, #htc-hub .hub-creator-tag, #htc-hub .hub-disclaimer, #htc-hub .hub-footer { font-family: var(--hub-mono); }
#htc-hub .hub-minor { color: #93898f; font-size: 13px; }
#htc-hub .hub-steps { gap: 18px; }
#htc-hub .hub-step { position: relative; padding: 26px 26px 28px; border-radius: 10px; background: linear-gradient(180deg, #17141c, #131117); transition: border-color .2s ease, transform .25s var(--hub-ease); }
#htc-hub .hub-step:hover { border-color: rgba(178,106,232,.38); transform: translateY(-2px); }
#htc-hub .hub-step-head { display: flex; align-items: center; justify-content: space-between; }
#htc-hub .hub-step-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; background: #ffffff08; border: 1px solid #ffffff12; }
#htc-hub .hub-step-icon svg { width: 22px; height: 22px; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#htc-hub .hub-step:nth-child(1) .hub-step-icon { color: var(--hub-orange); } #htc-hub .hub-step:nth-child(2) .hub-step-icon { color: var(--hub-cream); } #htc-hub .hub-step:nth-child(3) .hub-step-icon { color: var(--hub-violet); }
#htc-hub .hub-step-icon svg { stroke: currentColor; }
#htc-hub .hub-step h3 { margin-top: 30px; }
#htc-hub .hub-step p { font-size: 14px; color: #ada4ae; }
#htc-hub .hub-step:not(:last-child)::after { content: ''; position: absolute; top: 47px; right: -14px; width: 10px; height: 10px; border-top: 1.5px solid #ffffff3a; border-right: 1.5px solid #ffffff3a; transform: rotate(45deg); }
#htc-hub .hub-creator { border-color: rgba(178,106,232,.32); border-radius: 12px; }
#htc-hub .hub-creator-copy .hub-quote { font-family: var(--hub-sans); font-weight: 500; }
#htc-hub .hub-creator-copy .hub-quote::before { content: '“'; display: block; height: .5em; margin-bottom: 6px; font: 800 64px/1 var(--hub-display); color: var(--hub-violet); }

/* FAQ */
#htc-hub .hub-faq-list summary { font-family: var(--hub-sans); font-weight: 700; font-size: 16px; padding-block: 2px; transition: color .15s ease; }
#htc-hub .hub-faq-list summary:hover { color: var(--hub-cream); }
#htc-hub .hub-faq-list summary::after { content: ''; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; border: 1px solid rgba(178,106,232,.45);
  background: linear-gradient(var(--hub-violet), var(--hub-violet)) center / 9px 1.5px no-repeat, linear-gradient(var(--hub-violet), var(--hub-violet)) center / 1.5px 9px no-repeat; transition: transform .25s var(--hub-ease), background-color .2s ease; }
#htc-hub .hub-faq-list details[open] summary::after { content: ''; transform: rotate(45deg); }
#htc-hub .hub-faq-list summary { padding-right: 40px; }
#htc-hub .hub-faq-list details[open] summary { color: var(--hub-orange); }
#htc-hub .hub-faq-list details[open] p { animation: hub-rise .35s var(--hub-ease) both; }
#htc-hub .hub-faq-list p { font-size: 14px; }

/* chiusura */
#htc-hub .hub-final { position: relative; overflow: hidden; border: 1px solid var(--hub-stroke); border-radius: 14px; padding: clamp(32px,5vw,64px); margin: 8px 0 56px; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.05fr); gap: clamp(28px,4vw,64px); align-items: end; min-height: 380px; background: #110f15; }
#htc-hub .hub-final-bars { position: absolute; inset: auto 0 0 0; height: 46%; display: flex; align-items: flex-end; gap: 6px; padding: 0 12px; opacity: .14; pointer-events: none; }
#htc-hub .hub-final-bars i { flex: 1; border-radius: 6px 6px 0 0; background: linear-gradient(180deg, var(--c), transparent); height: var(--h); }
#htc-hub .hub-final > :not(.hub-final-bars) { position: relative; }
#htc-hub .hub-final-title { margin: 14px 0 0; font-size: clamp(40px,5vw,78px); line-height: .95; letter-spacing: -.022em; font-weight: 700; color: var(--hub-cream); }
#htc-hub .hub-final-title em { font-style: normal; background: linear-gradient(95deg, var(--hub-orange), var(--hub-violet)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
#htc-hub .hub-prompt { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 10px 10px 20px; border-radius: 10px; background: #0c0b0f; border: 1px solid rgba(178,106,232,.4); box-shadow: 0 0 0 4px rgba(178,106,232,.06); transition: border-color .2s ease, box-shadow .2s ease; }
#htc-hub .hub-prompt:hover { border-color: var(--hub-violet); box-shadow: 0 0 0 4px rgba(178,106,232,.12); }
#htc-hub .hub-prompt-text { flex: 1; min-width: 0; color: var(--hub-ink); font-size: clamp(15px,1.3vw,18px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#htc-hub .hub-prompt-text span { color: #7d7480; }
#htc-hub .hub-caret { display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; vertical-align: -.18em; background: var(--hub-orange); animation: hub-caret 1.06s steps(1) infinite; }
@keyframes hub-caret { 50% { opacity: 0; } }
#htc-hub .hub-prompt .hub-btn { min-height: 44px; min-width: 0; gap: 12px; }
#htc-hub .hub-final-note { margin: 12px 2px 0; color: #93898f; font-size: 13px; }

/* footer */
#htc-hub .hub-footer { color: #9c909b; }
#htc-hub .hub-footer > span { display: inline-flex; align-items: center; gap: 12px; }
#htc-hub .hub-footer .hub-eq { height: 11px; }
#htc-hub .hub-footer nav { display: flex; gap: 22px; }
#htc-hub .hub-footer a { display: inline-flex; align-items: center; gap: 6px; letter-spacing: .08em; }
#htc-hub .hub-footer a:hover { color: var(--hub-cream); }

/* comparsa delle sezioni */
#htc-hub .hub-reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--hub-ease), transform .7s var(--hub-ease); }
#htc-hub .hub-reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 760px) {
  #htc-hub .hub-step:not(:last-child)::after { top: auto; bottom: -15px; right: 50%; transform: rotate(135deg); }
  #htc-hub .hub-steps { gap: 20px; }
  #htc-hub .hub-final { grid-template-columns: 1fr; }
  #htc-hub .hub-footer nav { gap: 18px; }
}
@media (max-width: 440px) {
  #htc-hub .hub-prompt { flex-direction: column; align-items: stretch; padding: 14px; }
  #htc-hub .hub-prompt-text { white-space: normal; min-height: 2.8em; }
  #htc-hub .hub-lab-keys { display: none; }
}
@media (hover: none) { #htc-hub .hub-lab-keys { display: none; } }
@media (prefers-reduced-motion: reduce) {
  #htc-hub { scroll-behavior: auto; }
  #htc-hub .hub-eq i, #htc-hub .hub-status::before, #htc-hub .hub-caret { animation: none; }
  #htc-hub .hub-reveal { opacity: 1; transform: none; transition: none; }
  #htc-hub .hub-step, #htc-hub .hub-arrow, #htc-hub .hub-faq-list summary::after { transition: none; }
  #htc-hub .hub-step:hover { transform: none; }
  #htc-hub .hub-faq-list details[open] p { animation: none; }
}

/* ===== integration: FLOATING MINI PLAYER (C-170) — the shared HTC transport (app/components/mini-player.js) while the Home covers
   the app bar. Only inside the Home, only with an active HTC track (playing or paused); the Home's own palette and type; a
   discreet card in the bottom-right corner (phones: the bottom edge). It never shows the demo lab, which is not HTC music. ===== */
#htc-hub .hub-mini { position: fixed; z-index: 2; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); width: min(372px, calc(100vw - 32px));
  display: grid; grid-template-columns: 40px minmax(0, 1fr) auto auto; align-items: center; gap: 0 10px; padding: 10px 8px 14px 10px; color: var(--hub-ink);
  background: rgba(19, 17, 25, .95); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(178,106,232,.32); border-radius: 12px;
  box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 24px 60px -22px #000e; animation: hub-rise .35s var(--hub-ease) both; }
#htc-hub .hub-mini[hidden] { display: none; }
#htc-hub .hub-mini button { appearance: none; font: inherit; color: inherit; background: transparent; border: 0; cursor: pointer; }
#htc-hub .hub-mini button:focus-visible, #htc-hub .hub-mini-seek:focus-visible { outline: 2px solid var(--hub-violet); outline-offset: 3px; }
#htc-hub .hub-mini-play { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(247,169,58,.6) !important; color: var(--hub-orange) !important; transition: background .15s ease, color .15s ease; }
#htc-hub .hub-mini-play svg { width: 14px; height: 14px; fill: currentColor; }
#htc-hub .hub-mini-play:hover { background: rgba(247,169,58,.12); }
#htc-hub .hub-mini.is-playing .hub-mini-play { background: var(--hub-orange); color: #1b130e !important; }
#htc-hub .hub-mini-play[aria-busy="true"] { opacity: .6; cursor: progress; }
#htc-hub .hub-mini-text { min-width: 0; display: grid; gap: 2px; }
#htc-hub .hub-mini-kicker { font: 700 10px/1.3 var(--hub-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--hub-violet); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#htc-hub .hub-mini.is-playing .hub-mini-kicker { color: var(--hub-orange); }
#htc-hub .hub-mini.is-error .hub-mini-kicker { color: #f07892; }
#htc-hub .hub-mini-title { font: 700 14px/1.3 var(--hub-sans); color: var(--hub-cream); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#htc-hub .hub-mini-meta { display: flex; gap: 8px; min-width: 0; font: 500 11px/1.3 var(--hub-mono); color: #a99ba6; white-space: nowrap; }
#htc-hub .hub-mini-meta span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
#htc-hub .hub-mini-meta span:last-child { flex: none; font-variant-numeric: tabular-nums; }
#htc-hub .hub-mini-open, #htc-hub .hub-mini-close { min-width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 8px; transition: color .15s ease, background .15s ease; }
#htc-hub .hub-mini-close { color: #b7a9b4 !important; }
#htc-hub .hub-mini-open:not([hidden]) { padding: 0 8px; font: 700 10px/1 var(--hub-mono); letter-spacing: .1em; color: var(--hub-orange) !important; }
#htc-hub .hub-mini-open:hover, #htc-hub .hub-mini-close:hover { color: var(--hub-cream) !important; background: #ffffff0d; }
#htc-hub .hub-mini-open[hidden] { display: none; }
#htc-hub .hub-mini-close svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
/* position: a real seek bar (taller hit area than the hairline it draws) */
#htc-hub .hub-mini-seek { position: absolute; left: 12px; right: 12px; bottom: 2px; height: 12px; display: flex; align-items: center; cursor: pointer; touch-action: none; }
#htc-hub .hub-mini-seek[aria-disabled="true"] { cursor: default; }
#htc-hub .hub-mini-seek i { position: relative; display: block; width: 100%; height: 2px; border-radius: 1px; background: #ffffff1c; overflow: hidden; }
#htc-hub .hub-mini-seek b { position: absolute; inset: 0; background: linear-gradient(90deg, var(--hub-orange), var(--hub-violet)); transform-origin: left center; transform: scaleX(0); }
@media (max-width: 440px) {
  #htc-hub .hub-mini { left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); width: auto; }
}
@media (prefers-reduced-motion: reduce) { #htc-hub .hub-mini { animation: none; } #htc-hub .hub-mini-play, #htc-hub .hub-mini-open, #htc-hub .hub-mini-close { transition: none; } }
