/* Karaoke "Pelliccia di Giaguaro" — pelliccia + CRT, testo da karaoke con riempimento rosso */
@font-face {
  font-family: "Archivo Black";
  src: url("archivo-black-v1.woff2") format("woff2");
  font-display: swap;
}
.kq {
  --fill: #e0141e;
  --gold: #ffc828;
  --ink: #000;
  --paper: #fff;
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #1a0f06;
  color: var(--paper);
  font-family: "Archivo Black", "Arial Black", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.kq *, .kq *::before, .kq *::after { box-sizing: border-box; }
.kq-bg {
  position: absolute; inset: -3%;
  background: #8a5a22 center / cover no-repeat;
  filter: saturate(0.95) contrast(1.05) blur(0.4px);
}
.kq-screen { position: absolute; inset: 0; border-radius: 14px / 10px; overflow: hidden; box-shadow: inset 0 0 140px rgba(0, 0, 0, 0.75); }
/* CRT: scanline + griglia RGB + vignettatura + leggero sfarfallio */
.kq-crt {
  position: absolute; inset: 0; pointer-events: none; z-index: 5;
  background:
    repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0.26) 0 1px, rgba(0, 0, 0, 0) 1px 3px),
    repeating-linear-gradient(90deg, rgba(255, 0, 0, 0.07) 0 1px, rgba(0, 255, 0, 0.05) 1px 2px, rgba(0, 0, 255, 0.07) 2px 3px);
  mix-blend-mode: multiply;
  animation: kq-flicker 5s steps(60) infinite;
}
.kq-crt::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.55) 100%);
  mix-blend-mode: normal;
}
@keyframes kq-flicker { 0%, 100% { opacity: 1; } 50% { opacity: 0.94; } 51% { opacity: 1; } 76% { opacity: 0.97; } }
.kq-stage { position: absolute; inset: 0; z-index: 2; }

/* ---------- schermate ---------- */
.kq-scr {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  padding: max(18px, env(safe-area-inset-top)) 16px max(18px, env(safe-area-inset-bottom));
  text-align: center; overflow-y: auto;
}
.kq-scr[hidden] { display: none; }

/* testo stile karaoke: contorno nero spesso + aberrazione cromatica */
.kq-title, .kq-big, .kq-row, .kq-cd, .kq-res-p, .kq-res-band {
  -webkit-text-stroke: 0.16em var(--ink);
  paint-order: stroke fill;
  text-shadow: -1.5px 0 rgba(255, 30, 60, 0.45), 1.5px 0 rgba(30, 150, 255, 0.45), 0 0.07em 0 rgba(0, 0, 0, 0.7);
}
.kq-title { margin: 0; line-height: 1.02; letter-spacing: 0.005em; display: flex; flex-direction: column; gap: 0.12em; }
.kq-t1 { font-size: clamp(26px, 7vw, 54px); }
.kq-t2 { font-size: clamp(34px, 10.5vw, 96px); color: var(--fill); }
.kq-t3 { font-size: clamp(24px, 6.5vw, 50px); }
.kq-big { font-size: clamp(26px, 7vw, 56px); margin: 0; line-height: 1.1; }
.kq-note, .kq-inapp, .kq-denied p, .kq-calmsg:not(:empty) {
  font-family: Arial, Helvetica, sans-serif; font-weight: 700;
  font-size: clamp(13px, 3.4vw, 16px); line-height: 1.45;
  max-width: 34em; margin: 0; padding: 8px 12px;
  background: rgba(0, 0, 0, 0.62); border: 1px solid rgba(255, 255, 255, 0.18);
}
.kq-inapp { background: rgba(224, 20, 30, 0.9); border-color: #000; }

/* bottoni retrò */
.kq-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.kq-btn {
  font: inherit; font-size: clamp(15px, 4vw, 19px); text-transform: uppercase; letter-spacing: 0.04em;
  padding: 14px 22px; min-height: 48px; cursor: pointer; border: 3px solid var(--ink); color: var(--paper);
  box-shadow: 4px 4px 0 var(--ink); transition: transform 0.08s, box-shadow 0.08s;
}
.kq-btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.kq-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.kq-primary { background: var(--fill); }
.kq-ghost { background: rgba(0, 0, 0, 0.6); border-color: var(--paper); box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.8); }
.kq-btn[disabled] { opacity: 0.45; cursor: not-allowed; }

/* segui Quest */
.kq-follow { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 6px; }
.kq-follow-t { font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; text-shadow: 0 2px 0 #000; }
.kq-follow-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.kq-fbtn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; min-height: 44px;
  background: rgba(0, 0, 0, 0.78); color: var(--paper); text-decoration: none; border: 2px solid var(--paper);
  font-size: 14px; letter-spacing: 0.03em;
}
.kq-fbtn svg { width: 20px; height: 20px; }
.kq-fbtn:hover, .kq-fbtn:focus-visible { background: var(--fill); outline: none; }
.kq-fbtn[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }

/* ---------- gioco ---------- */
.kq-play { justify-content: flex-start; }
.kq-bar {
  position: absolute; left: 16px; right: 66px; top: max(16px, env(safe-area-inset-top));
  height: 16px; border: 2px solid var(--ink); background: rgba(0, 0, 0, 0.55);
}
.kq-bar i { position: absolute; inset: 0; background: var(--fill); transform-origin: left; transform: scaleX(0); }
.kq-bar b { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 11px; line-height: 1; text-shadow: 0 1px 0 #000; }
.kq-x {
  position: absolute; right: 14px; top: max(10px, calc(env(safe-area-inset-top) - 6px)); width: 40px; height: 40px;
  font: inherit; font-size: 26px; line-height: 1; color: var(--paper); background: rgba(0, 0, 0, 0.6);
  border: 2px solid var(--paper); cursor: pointer;
}
.kq-rows { position: absolute; left: 16px; right: 16px; top: 46%; transform: translateY(-50%); text-align: center; }
.kq-row { line-height: 1.18; margin: 0 auto; max-width: 21em; }
.kq-cur { font-size: clamp(28px, 7.6vw, 74px); min-height: 1.2em; }
.kq-next { font-size: clamp(17px, 4.4vw, 44px); margin-top: 0.7em; opacity: 0.78; min-height: 1.2em; }
.kq-w { display: inline-block; white-space: nowrap; }
/* lettera: sotto il bianco col contorno, sopra il colore cantato (variabile --bg aggiornata dal motore) */
.kq-c { position: relative; display: inline-block; color: var(--paper); }
.kq-c::after {
  content: attr(data-c); position: absolute; left: 0; top: 0;
  color: transparent; -webkit-text-stroke: 0; text-shadow: none;
  background-image: var(--bg, none); -webkit-background-clip: text; background-clip: text;
}
.kq-w.kq-ok .kq-c::after { background-image: linear-gradient(var(--kq-col), var(--kq-col)) !important; }
.kq-w.kq-miss .kq-c { color: #9b9590; }
.kq-w.kq-miss .kq-c::after { background-image: none !important; }
.kq-gold.kq-ok { animation: kq-shine 0.5s ease-out; }
@keyframes kq-shine { 0% { transform: scale(1); } 40% { transform: scale(1.12); } 100% { transform: scale(1); } }
.kq-cd { position: absolute; left: 0; right: 0; bottom: 17%; font-size: clamp(58px, 17vw, 128px); color: var(--fill); line-height: 1; }
.kq-cd.kq-pop { animation: kq-pop 0.25s ease-out; }
@keyframes kq-pop { from { transform: scale(1.4); opacity: 0.4; } to { transform: scale(1); opacity: 1; } }
.kq-badge {
  position: absolute; left: 50%; bottom: max(7%, env(safe-area-inset-bottom)); transform: translate(-50%, 8px);
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 14px;
  background: rgba(0, 0, 0, 0.78); border: 2px solid var(--paper); opacity: 0; transition: opacity 0.15s, transform 0.15s;
  font-size: 15px; letter-spacing: 0.08em;
}
.kq-badge span { font-family: Arial, sans-serif; font-weight: 700; font-size: 12px; letter-spacing: 0.04em; opacity: 0.85; }
.kq-badge.kq-on { opacity: 1; transform: translate(-50%, 0); }
.kq-badge.kq-ok b { color: var(--paper); }
.kq-badge.kq-early b, .kq-badge.kq-late b { color: var(--gold); }

/* calibrazione */
.kq-dots { display: flex; gap: 10px; }
.kq-dots i { width: 22px; height: 22px; border: 3px solid var(--ink); background: rgba(255, 255, 255, 0.25); display: block; }
.kq-dots i:nth-child(n + 5) { border-radius: 50%; }
.kq-dots i.kq-lis { background: var(--paper); }
.kq-dots i.kq-clap { background: var(--gold); }
.kq-dots i.kq-hit { background: var(--fill); }

/* risultati */
.kq-results { gap: 12px; }
.kq-res-k { font-size: 14px; letter-spacing: 0.16em; text-transform: uppercase; margin: 0; text-shadow: 0 2px 0 #000; }
.kq-res-p { font-size: clamp(84px, 27vw, 210px); color: var(--fill); margin: 0; line-height: 0.95; }
.kq-res-band { font-size: clamp(22px, 6.4vw, 46px); color: var(--gold); margin: 0; }
.kq-res-list { list-style: none; margin: 4px 0; padding: 10px 14px; background: rgba(0, 0, 0, 0.62); min-width: min(92vw, 420px); }
.kq-res-list li { display: flex; justify-content: space-between; gap: 14px; padding: 5px 0; font-size: 14px; text-align: left; }
.kq-res-list span { font-family: Arial, sans-serif; font-weight: 700; opacity: 0.8; white-space: nowrap; }
.kq-res-list b { font-weight: 400; text-align: right; }
.kq-blink { animation: kq-blink 1s steps(2) infinite; }
@keyframes kq-blink { 50% { opacity: 0.35; } }

@media (prefers-reduced-motion: reduce) {
  .kq-crt { animation: none; }
  .kq-gold.kq-ok, .kq-cd.kq-pop, .kq-blink { animation: none; }
  .kq-btn, .kq-badge { transition: none; }
}
@media (min-width: 900px) and (min-height: 600px) {
  .kq-rows { top: 47%; }
}

/* ---------- schermata iniziale: Inter ExtraLight minuscolo, effetto VCR ---------- */
@font-face { font-family: "Inter KQ"; src: url("inter-extralight-v1.woff2") format("woff2"); font-weight: 200; font-display: swap; }
.kq-landing { gap: 30px; }
.kq-home-t, .kq-home-btn, .kq-min-n, .kq-follow, .kq-fbtn { font-family: "Inter KQ", "Helvetica Neue", Helvetica, Arial, sans-serif; font-weight: 200; }
.kq-vcr {
  color: #f6f3ee; -webkit-text-stroke: 0; paint-order: normal;
  text-shadow: -1.5px 0 rgba(255, 20, 60, 0.75), 1.5px 0 rgba(0, 210, 255, 0.75), 0 0 14px rgba(255, 255, 255, 0.3), 0 2px 4px rgba(0, 0, 0, 0.6);
  filter: blur(0.25px) contrast(1.08);
}
.kq-home-t { margin: 0; font-size: clamp(34px, 9.6vw, 84px); line-height: 1.02; letter-spacing: -0.02em; }
.kq-home-t span { display: block; }
.kq-home-q { font-size: 0.62em; margin-bottom: 0.1em; }
.kq-home-btn {
  font-size: 19px; letter-spacing: 0.06em; padding: 12px 38px 13px; cursor: pointer; color: #fff;
  background: var(--fill); border: 1.5px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 18px rgba(224, 20, 30, 0.5), 0 6px 20px rgba(0, 0, 0, 0.45);
}
.kq-home-btn:focus-visible { outline: 1px solid #fff; outline-offset: 5px; }
.kq-home-btn:active { transform: translateY(1px); }
.kq-min-n { margin: 0; font-size: 13px; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9); }
.kq-follow { margin: 0; }
.kq-follow-row { gap: 22px; }
.kq-fbtn {
  min-height: 0; padding: 4px 0 3px; background: none; border: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  font-size: 14px; text-transform: lowercase; letter-spacing: 0.01em; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}
.kq-fbtn:hover, .kq-fbtn:focus-visible { background: none; border-bottom-color: #fff; outline: none; }
/* banda chiara del tracking VHS che scorre lenta */
.kq-band {
  position: absolute; left: 0; right: 0; height: 7%; top: -8%; z-index: 4; pointer-events: none;
  background: linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
  mix-blend-mode: screen; animation: kq-band 9s linear infinite;
}
@keyframes kq-band { from { transform: translateY(0); } to { transform: translateY(1600%); } }
@media (prefers-reduced-motion: reduce) { .kq-band { animation: none; top: 38%; } }

/* ---------- scelta modalità ---------- */
.kq-mode { gap: 26px; }
.kq-mode-t { margin: 0; font-family: "Inter KQ", Helvetica, Arial, sans-serif; font-weight: 200; font-size: clamp(28px, 7.6vw, 56px); letter-spacing: -0.02em; }
.kq-mode-row { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.kq-ghostline { background: rgba(0, 0, 0, 0.35); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35); }
.kq-mode-n { margin: 0; max-width: 30em; font-family: "Inter KQ", Helvetica, Arial, sans-serif; font-weight: 200; font-size: 14px; line-height: 1.5; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.95), 0 0 10px rgba(0, 0, 0, 0.6); }

/* ---------- anteprima videocamera durante la registrazione ---------- */
.kq-cam { position: absolute; left: 16px; bottom: max(16px, env(safe-area-inset-bottom)); width: 84px; height: 112px; border: 1.5px solid rgba(255, 255, 255, 0.8); overflow: hidden; background: #000; }
.kq-cam[hidden] { display: none; }
.kq-cam video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.kq-cam span { position: absolute; left: 6px; top: 5px; font: 700 10px Arial, sans-serif; color: #fff; opacity: 0; }
.kq-cam.kq-rec span { opacity: 1; }
.kq-cam.kq-rec span::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #ff2a2a; margin-right: 4px; animation: kq-blink 1.2s steps(2) infinite; }
.kq-results .kq-cam, .kq-landing .kq-cam { display: none; }

/* ---------- tutto ciò che non è testo della canzone: Inter ExtraLight minuscolo + effetto VCR ---------- */
.kq-big, .kq-note, .kq-denied p, .kq-btn, .kq-bar b, .kq-x, .kq-badge, .kq-badge span, .kq-cd,
.kq-res-k, .kq-res-p, .kq-res-list, .kq-res-list span, .kq-res-list b, .kq-inapp, .kq-errmsg {
  font-family: "Inter KQ", "Helvetica Neue", Helvetica, Arial, sans-serif !important; font-weight: 200 !important;
  -webkit-text-stroke: 0 !important; paint-order: normal;
}
.kq-big, .kq-cd, .kq-res-p, .kq-badge b {
  text-shadow: -1.5px 0 rgba(255, 20, 60, 0.75), 1.5px 0 rgba(0, 210, 255, 0.75), 0 0 14px rgba(255, 255, 255, 0.3), 0 2px 4px rgba(0, 0, 0, 0.6);
  filter: blur(0.25px) contrast(1.08);
}
.kq-big { font-size: clamp(28px, 7.6vw, 56px); letter-spacing: -0.02em; color: #f6f3ee; }
.kq-note, .kq-denied p, .kq-inapp { background: none; border: 0; font-size: 15px; line-height: 1.5; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.95), 0 0 10px rgba(0, 0, 0, 0.6); }
.kq-btn {
  text-transform: none; font-size: 19px; letter-spacing: 0.05em; padding: 12px 34px 13px; min-height: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.85); box-shadow: 0 0 18px rgba(224, 20, 30, 0.45), 0 6px 20px rgba(0, 0, 0, 0.45);
  text-shadow: -1px 0 rgba(255, 20, 60, 0.6), 1px 0 rgba(0, 210, 255, 0.6);
}
.kq-btn:active { transform: translateY(1px); box-shadow: 0 0 18px rgba(224, 20, 30, 0.45), 0 3px 10px rgba(0, 0, 0, 0.45); }
.kq-ghost { background: rgba(0, 0, 0, 0.35); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35); }
.kq-bar { border: 1px solid rgba(255, 255, 255, 0.6); height: 12px; }
.kq-bar b { font-size: 12px; right: 6px; }
.kq-x { border: 1px solid rgba(255, 255, 255, 0.7); font-size: 28px; }
.kq-badge { border: 1px solid rgba(255, 255, 255, 0.7); background: rgba(0, 0, 0, 0.6); font-size: 18px; letter-spacing: 0.02em; padding: 7px 16px 8px; }
.kq-badge span { font-size: 13px; opacity: 0.85; }
.kq-cd { color: #f6f3ee; font-size: clamp(70px, 20vw, 150px); }
.kq-res-k { font-size: 15px; letter-spacing: 0.04em; text-transform: none; }
.kq-res-p { color: #f6f3ee; font-size: clamp(96px, 30vw, 230px); letter-spacing: -0.04em; line-height: 0.9; }
.kq-res-list { background: none; padding: 6px 0; min-width: min(88vw, 400px); border-top: 1px solid rgba(255, 255, 255, 0.35); border-bottom: 1px solid rgba(255, 255, 255, 0.35); }
.kq-res-list li { font-size: 15px; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.95), 0 0 10px rgba(0, 0, 0, 0.6); }
.kq-res-list span { opacity: 0.85; }
.kq-inapp { background: none; }

/* ---------- gioco minimale: niente cornici, solo una linea sottile e le parole ---------- */
.kq-bar { left: 22px; right: 70px; top: calc(max(16px, env(safe-area-inset-top)) + 19px); height: 2px; border: 0; background: rgba(255, 255, 255, 0.28); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5); }
.kq-bar b { top: 9px; right: 0; transform: none; font-size: 13px; letter-spacing: 0.02em; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.95), 0 0 8px rgba(0, 0, 0, 0.6); }
.kq-x { border: 0; background: none; font-size: 32px; text-shadow: -1px 0 rgba(255, 20, 60, 0.6), 1px 0 rgba(0, 210, 255, 0.6), 0 1px 3px rgba(0, 0, 0, 0.9); }
.kq-badge { border: 0; background: none; box-shadow: none; font-size: 20px; padding: 4px 10px; }
.kq-badge b { text-shadow: -1.5px 0 rgba(255, 20, 60, 0.75), 1.5px 0 rgba(0, 210, 255, 0.75), 0 1px 3px rgba(0, 0, 0, 0.95), 0 0 12px rgba(0, 0, 0, 0.6); }
.kq-badge span { display: none; }
.kq-rows { top: 47%; }

/* ---------- pausa ---------- */
.kq-bar { right: 112px; }
.kq-pz {
  position: absolute; right: 60px; top: max(10px, calc(env(safe-area-inset-top) - 6px)); width: 40px; height: 40px;
  padding: 9px; border: 0; background: none; cursor: pointer; color: var(--paper);
  filter: drop-shadow(-1px 0 rgba(255, 20, 60, 0.6)) drop-shadow(1px 0 rgba(0, 210, 255, 0.6)) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.9));
}
.kq-pz svg { display: block; width: 100%; height: 100%; fill: currentColor; }
.kq-pause {
  position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  background: rgba(10, 5, 2, 0.62); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
.kq-pause-t { margin: 0; font-family: "Inter KQ", Helvetica, Arial, sans-serif; font-weight: 200; font-size: clamp(34px, 9vw, 64px); letter-spacing: -0.02em; color: #f6f3ee; }
.kq-paused .kq-pz, .kq-paused .kq-x, .kq-paused .kq-rows, .kq-paused .kq-badge, .kq-paused .kq-cd { visibility: hidden; }

/* ---------- due righe successive ---------- */
.kq-next { margin-top: 0.55em; }
.kq-next2 { margin-top: 0.35em; opacity: 0.5; }

/* ---------- voce di quest: sì / no + volume ---------- */
.kq-voice { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.kq-guide { display: flex; align-items: baseline; gap: 14px; font-family: "Inter KQ", Helvetica, Arial, sans-serif; font-weight: 200; font-size: 17px; color: #f6f3ee; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.95), 0 0 10px rgba(0, 0, 0, 0.6); }
.kq-guide span { opacity: 0.9; margin-right: 4px; }
.kq-gopt { font: inherit; font-size: 19px; color: inherit; background: none; border: 0; padding: 4px 2px 3px; cursor: pointer; opacity: 0.55; border-bottom: 1.5px solid transparent; }
.kq-gopt[aria-pressed="true"] { opacity: 1; border-bottom-color: var(--fill); }
.kq-gopt:focus-visible { outline: 1px dashed rgba(255, 255, 255, 0.7); outline-offset: 3px; }
.kq-vrow { display: flex; align-items: center; gap: 12px; font-family: "Inter KQ", Helvetica, Arial, sans-serif; font-weight: 200; font-size: 15px; color: #f6f3ee; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.95), 0 0 10px rgba(0, 0, 0, 0.6); transition: opacity 0.15s; }
.kq-vrow b { font-weight: 200; min-width: 3.2em; text-align: right; font-variant-numeric: tabular-nums; }
.kq-voff .kq-vrow { opacity: 0.5; }
.kq-vvol { -webkit-appearance: none; appearance: none; width: min(52vw, 220px); height: 24px; margin: 0; background: transparent; cursor: pointer; --v: 100%; }
.kq-vvol:disabled { cursor: default; }
.kq-vvol::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(90deg, var(--fill) var(--v), rgba(255, 255, 255, 0.35) var(--v)); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.6); }
.kq-vvol::-moz-range-track { height: 2px; background: rgba(255, 255, 255, 0.35); }
.kq-vvol::-moz-range-progress { height: 2px; background: var(--fill); }
.kq-vvol::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -7px; border-radius: 50%; background: #f6f3ee; border: 0; box-shadow: 0 0 0 3px rgba(224, 20, 30, 0.85), 0 2px 6px rgba(0, 0, 0, 0.6); }
.kq-vvol::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #f6f3ee; border: 0; box-shadow: 0 0 0 3px rgba(224, 20, 30, 0.85), 0 2px 6px rgba(0, 0, 0, 0.6); }
.kq-vvol:focus-visible { outline: 1px dashed rgba(255, 255, 255, 0.7); outline-offset: 4px; }
.kq-pause .kq-voice { margin: 4px 0 6px; }
/* sincronia testo (pausa): stesso stile del controllo voce */
.kq-sync { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 0 0 8px; font-family: "Inter KQ", Helvetica, Arial, sans-serif; font-weight: 200; font-size: 17px; color: #f6f3ee; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.95), 0 0 10px rgba(0, 0, 0, 0.6); }
.kq-sync > span { opacity: 0.9; }
.kq-srow { display: flex; align-items: baseline; gap: 14px; }
.kq-sync .kq-gopt { opacity: 0.85; font-size: 17px; }
.kq-sync .kq-gopt:disabled { opacity: 0.3; cursor: default; }
.kq-sync b { font-weight: 200; font-size: 15px; min-width: 4.6em; text-align: center; font-variant-numeric: tabular-nums; }
.kq-mode .kq-voice { padding: 12px 22px 10px; background: rgba(10, 5, 2, 0.58); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.kq-pause-acts { display: flex; flex-direction: column; align-items: center; gap: 22px; }

/* ---------- logo ufficiale (come nel video) ---------- */
.kq-home-t { line-height: 0; }
.kq-logo { display: block; width: min(86vw, 600px); height: auto; margin: 0 auto;
  filter: drop-shadow(-2px 0 rgba(255, 20, 60, 0.55)) drop-shadow(2px 0 rgba(0, 210, 255, 0.55)) drop-shadow(0 4px 12px rgba(0, 0, 0, 0.55)); }
@media (min-width: 900px) { .kq-logo { width: min(52vw, 640px); } }

/* ---------- ferma e salva il video ---------- */
.kq-save { position: absolute; left: 112px; bottom: max(16px, env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 8px;
  padding: 9px 14px 10px; border: 1px solid rgba(255, 255, 255, 0.85); background: rgba(10, 5, 2, 0.55); color: #f6f3ee; cursor: pointer;
  font-family: "Inter KQ", Helvetica, Arial, sans-serif; font-weight: 200; font-size: 14px; letter-spacing: 0.02em; line-height: 1; }
.kq-save i { width: 10px; height: 10px; background: var(--fill); display: inline-block; }
.kq-save[hidden], .kq-save-p[hidden] { display: none !important; }
.kq-paused .kq-save { visibility: hidden; }
.kq-pause .kq-save-p { font-size: 18px; padding: 10px 24px 12px; background: transparent; }

/* ---------- modalità video: la fotocamera a tutto schermo sotto il testo ---------- */
.kq-play { isolation: isolate; }
.kq-withcam .kq-play .kq-cam { position: absolute; inset: 0; left: 0; bottom: 0; width: auto; height: auto; border: 0; z-index: -1; background: #000; }
.kq-withcam .kq-play .kq-cam::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.18) 30%, rgba(0, 0, 0, 0.32) 60%, rgba(0, 0, 0, 0.55) 100%); }
.kq-withcam .kq-play .kq-cam span { left: 16px; top: auto; bottom: calc(max(16px, env(safe-area-inset-bottom)) + 52px); font-size: 12px; z-index: 1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9); }
.kq-withcam .kq-save { left: 16px; }
/* il testo scende in basso come nel video esportato, così la faccia resta libera */
.kq-withcam .kq-play .kq-rows { top: auto; bottom: calc(max(16px, env(safe-area-inset-bottom)) + 84px); transform: none; }
.kq-withcam .kq-play .kq-badge { top: 64px; bottom: auto; }
.kq-withcam .kq-results .kq-cam, .kq-withcam .kq-landing .kq-cam { display: none; }

/* posizione sotto il mento: la imposta il JS con transform (niente top/transition a ogni fotogramma) */
.kq-withcam .kq-play .kq-rows.kq-chin { top: 0; bottom: auto; will-change: transform; }

/* QA-PoC: telefono in orizzontale (poca altezza): testo più piccolo, countdown e badge fuori dalle righe */
@media (max-height: 500px) and (orientation: landscape) {
  .kq-cur { font-size: clamp(22px, 9.5vh, 44px); }
  .kq-next { font-size: clamp(14px, 5.6vh, 26px); }
  .kq-cd { font-size: clamp(40px, 15vh, 72px); bottom: auto; top: calc(max(16px, env(safe-area-inset-top)) + 26px); }
  .kq-withcam .kq-play .kq-badge { top: auto; bottom: max(10px, env(safe-area-inset-bottom)); left: auto; right: 16px; transform: none; }
  /* pausa in orizzontale: "sincronia testo" su una riga sola e spazi più stretti, così sta tutto nello schermo */
  .kq-pause { gap: 10px; }
  .kq-pause-t { font-size: clamp(28px, 11vh, 48px); }
  .kq-pause .kq-voice { margin: 0; gap: 4px; }
  .kq-sync { flex-direction: row; align-items: baseline; gap: 14px; margin: 0; }
  .kq-pause-acts { gap: 10px; }
}
/* gli elementi nascosti restano nascosti anche se hanno uno stile di visualizzazione */
.kq [hidden] { display: none !important; }
