/* REVEO - Tester controller (pagina /tester-controller).
   Tutto è chiuso dentro .tester: queste regole non toccano menu, piè di
   pagina e resto del sito, che restano a reveo.css. Le classi già usate dal
   sito (.btn, .check, .breadcrumb) qui prendono l'aspetto del tester. */
.tester{color-scheme:dark;--bg:#070a12;--text:#e9eef8;--muted:#9aa8c0;--line:#ffffff12;--accent:#00e5c0;--violet:#a18aff;--head:"Space Grotesk","Segoe UI",sans-serif;--body:"Inter","Segoe UI",sans-serif;width:calc(100% - 64px);margin-inline:auto;display:flex;flex-direction:column;gap:16px;padding-top:20px;padding-bottom:16px;color:var(--text);font:14px/1.5 var(--body)}
.tester button,.tester input,.tester select{font:inherit}
.tester button,.tester select,.tester summary{cursor:pointer}
.tester button:disabled{opacity:.45;cursor:not-allowed}
.tester h1,.tester h2,.tester h3,.tester p{margin:0}
.tester :is(h1,h2,h3,strong){color:inherit}
.tester :is(h1,h2,h3){font-family:inherit;font-weight:700;line-height:inherit;letter-spacing:normal}
.tester button:focus-visible,.tester a:focus-visible,.tester input:focus-visible,.tester select:focus-visible,.tester summary:focus-visible{outline:2px solid var(--accent);outline-offset:4px}
.tester .mono{font-family:Consolas,monospace;font-variant-numeric:tabular-nums}
.tester .btn{min-height:38px;display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--line);border-radius:999px;padding:8px 16px;background:#ffffff05;color:var(--text);font:600 12px/1.4 var(--head);white-space:nowrap}
.tester .btn:hover:not(:disabled){background:#ffffff0e;border-color:#ffffff35}
.tester .btn-primary{background:var(--accent);border-color:var(--accent);color:#03241e}
.tester .btn-primary:hover:not(:disabled){background:#78f6df}
.tester .btn svg{width:15px;height:15px}
.tester .heading{display:flex;justify-content:space-between;align-items:center;gap:20px;flex-shrink:0}
.tester .breadcrumb{gap:7px;margin-bottom:6px;font-size:12px}
.tester .heading h1{font:600 clamp(24px,2.3vw,37px)/1.15 var(--head);letter-spacing:-1.2px}
.tester .heading h1 span{color:#b9f5e9}
.tester .heading .heading-models{margin-top:0;color:var(--text);font-size:14px;font-weight:500;text-align:right;text-wrap:balance}
@media(max-width:740px){
  .tester .heading{flex-wrap:wrap;row-gap:6px}
  .tester .heading .heading-models{font-size:13px}
}
.tester .heading p{font-size:12px;color:var(--muted);margin-top:7px}
.tester .heading-side{display:flex;flex-direction:column;align-items:flex-end;gap:10px;min-width:0}
.tester .connection{display:flex;align-items:center;gap:18px;border:1px solid #00e5c025;border-radius:14px;background:#00e5c005;padding:12px 18px;flex-shrink:0}
.tester .connection-copy{min-width:0;flex:1}
.tester .connection-title{font-size:13px;font-weight:600;display:flex;align-items:center;gap:9px}
.tester .dot{width:7px;height:7px;background:#ffb547;border-radius:50%;flex-shrink:0}
.tester .connected .dot{background:var(--accent);box-shadow:0 0 12px #00e5c055}
.tester .connection-copy p{font-size:11px;color:var(--muted);margin-top:3px}
.tester .device-wrap{display:flex;align-items:center;gap:10px;max-width:540px;min-width:150px;width:40%}
.tester .device-wrap label{flex-shrink:0;font-size:11px;color:var(--muted);white-space:nowrap}
.tester .device-wrap select{flex:1;width:auto;min-width:0}
.tester select{background:#0b111e;border:1px solid var(--line);border-radius:8px;color:var(--text);padding:7px;width:100%;font-size:12px}
.tester .notice{font-size:12px;padding:9px 14px;border:1px solid #ffb54740;border-radius:9px;color:#ffd591;background:#ffb54708;flex-shrink:0}
.tester .dashboard{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;flex:1;min-height:0}
.tester .panel{display:flex;flex-direction:column;min-width:0;min-height:0;border:1px solid var(--line);border-radius:20px;background:linear-gradient(155deg,#ffffff05,#ffffff01),#0b111ec7;overflow:hidden}
.tester .panel-head{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:19px 24px 0;flex-shrink:0}
.tester .panel-head>div{min-width:0}
.tester .panel-head h2{font:600 18px var(--head);letter-spacing:-.5px}
.tester .panel-head p{font-size:11px;color:var(--muted);margin-top:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.tester .tag{font-size:10px;letter-spacing:.9px;text-transform:uppercase;padding:5px 9px;border:1px solid #00e5c02a;border-radius:6px;color:var(--accent);white-space:nowrap;background:#00e5c006}
.tester .controller-stage{position:relative;flex:1;min-height:250px;margin:12px 24px 4px;background:radial-gradient(ellipse,#4da6ff09,transparent 65%)}
.tester .controller-art{position:absolute;inset:0 var(--wave-w,0px) 0 0}
.tester .controller-art>svg{display:block;width:100%;height:100%;overflow:visible}
.tester .controller-art [data-ink="outline"]{fill:#8295b0}
.tester .controller-art [data-ink="infill"]{fill:#192739}
.tester .controller-art [data-ink="detail"]{fill:#41546e}
.tester .controller-art .tested{fill:#247d70}
.tester .controller-art .tested *{fill:inherit}
.tester .controller-art .pressed{fill:var(--accent)}
.tester .controller-art .pressed *{fill:inherit}
.tester .controller-art text.button-symbol{fill:#a9bdd7;font:600 17px var(--body);text-anchor:middle;dominant-baseline:middle;pointer-events:none}
.tester .stick-socket{fill:#080e19;stroke:#34465f;stroke-width:2}
.tester .controller-art .touch-layer{pointer-events:none}
.tester .live-caption{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:4px 24px 12px;min-height:35px;font-size:11px;color:var(--muted);flex-shrink:0}
.tester .live-caption #live-inputs{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:var(--text)}
.tester .legend{display:flex;gap:14px;font-size:10px;white-space:nowrap}
.tester .legend i{display:inline-block;width:6px;height:6px;border-radius:50%;margin-right:4px;background:var(--accent)}
.tester .legend .seen{background:#247d70}
.tester .trigger-row{display:grid;grid-template-columns:1fr 1fr;gap:28px;padding:13px 24px 17px;border-top:1px solid var(--line);flex-shrink:0}
.tester .trigger-label{display:flex;justify-content:space-between;margin-bottom:8px;font-size:12px}
.tester .track{height:6px;background:#ffffff09;border-radius:9px;overflow:hidden}
.tester .track span{display:block;width:0;height:100%;background:var(--accent);border-radius:9px}
.tester .trigger-row>div:last-child .track span{background:var(--violet)}
.tester .touch-controls{display:flex;gap:12px;justify-content:space-between;align-items:center;padding:14px 24px;border-top:1px solid var(--line);background:#05070d35;flex-shrink:0}
.tester .touch-copy{min-width:0}
.tester .touch-copy strong{font-size:12px;font-weight:500}
.tester .touch-copy p{font-size:11px;color:var(--muted);margin-top:3px}
.tester .touch-actions{display:flex;gap:6px}
.tester .touch-actions .btn{font-size:11px;min-height:34px;padding:7px 12px}
.tester .stick-grid{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:18px;padding:16px 24px 24px;flex:1;min-height:0}
.tester .stick{text-align:center;min-width:0}
.tester .stick h3{font:500 13px var(--head);color:var(--muted);margin-bottom:6px}
.tester .dial{width:100%;max-height:51vh;aspect-ratio:1;display:block;margin:auto}
.tester .coordinates{display:flex;justify-content:center;gap:22px;color:var(--muted);font-size:13px}
.tester .coordinates b{font-weight:400;color:var(--text);margin-left:7px}
.tester .stick-distance{display:flex;flex-wrap:wrap;justify-content:center;gap:2px 16px;margin-top:10px;font-size:12px;color:var(--muted)}
.tester .stick-distance strong{color:var(--accent);font-weight:500;margin-left:5px}
.tester .stick:last-child .stick-distance strong{color:var(--violet)}
.tester .stick-controls{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 24px;border-top:1px solid var(--line);flex-shrink:0}
.tester .check{display:flex;align-items:center;gap:7px;margin:0;font-size:12px;color:var(--muted);cursor:pointer}
.tester .check input{accent-color:var(--accent);width:16px;height:16px;margin:0}
.tester .stick-controls small{color:var(--muted);font-size:10px}
.tester .raw-details{margin:0 24px 12px;font-size:11px;color:var(--muted)}
.tester .raw-values{font:11px/1.8 Consolas,monospace;overflow-wrap:anywhere;padding-top:6px}
.tester .help{position:fixed;inset:0;max-width:920px;width:calc(100% - 32px);padding:28px;border:1px solid #ffffff26;border-radius:20px;background:#0f1524;color:var(--text);box-shadow:0 20px 80px #0008}
.tester .help::backdrop{background:#02050bcc;backdrop-filter:blur(5px)}
.tester .help h2{font:600 22px var(--head);margin-bottom:16px}
.tester .help h3{font-size:14px;margin-top:17px}
.tester .help p{font-size:13px;color:var(--muted);margin:7px 0 16px}
.tester .help form{display:flex;justify-content:flex-end;margin-top:23px}
.tester .noscript{padding:16px;border:1px solid #ffb547;color:#ffd591}
@media(min-width:1100px) and (min-height:700px){
  /* Riempie la finestra sotto il menu del sito; testo e piè di pagina seguono scorrendo. */
  .tester{height:calc(100dvh - var(--header-h));min-height:626px}
  .tester .controller-stage{min-height:0}
  .tester .dial{max-height:calc(100dvh - 405px)}
}
@media(min-width:1800px){
  .tester{gap:20px;padding-top:26px;padding-bottom:20px}
  .tester .panel-head{padding-top:24px}
  .tester .panel-head h2{font-size:20px}
  .tester .panel-head p{font-size:12px}
  .tester .controller-stage{margin:20px 32px 6px}
  .tester .stick-grid{padding-inline:32px}
  .tester .coordinates{font-size:16px}
  .tester .stick h3{font-size:15px}
  .tester .stick-distance{font-size:14px}
  .tester .touch-controls{padding-block:19px}
  .tester .trigger-row{padding-block:18px}
  .tester .dial{max-height:calc(100dvh - 450px)}
}
@media(min-width:2400px){
  .tester .dial{max-height:calc(100dvh - 425px)}
}
@media(max-width:1099px){
  .tester{width:calc(100% - 32px)}
  .tester .controller-stage{min-height:330px}
  .tester .dashboard{gap:14px;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .tester .panel-head{padding:17px 17px 0}
  .tester .stick-grid{gap:8px;padding:20px 10px}
  .tester .coordinates{gap:9px;font-size:11px}
  .tester .coordinates b{margin-left:2px}
  .tester .stick-controls{flex-wrap:wrap;padding:15px 17px}
  .tester .stick-controls small{width:100%}
  .tester .touch-controls{padding:13px 17px;flex-wrap:wrap}
  .tester .live-caption{padding-inline:17px;flex-wrap:wrap}
  .tester .controller-stage{margin-inline:17px}
  .tester .heading p{max-width:450px}
  .tester .dial{max-height:none}
  .tester .device-wrap{max-width:400px}
}
@media(max-width:740px){
  .tester .dashboard{grid-template-columns:1fr}
  .tester .heading{align-items:flex-start}
  .tester .heading h1{font-size:25px}
  .tester .heading-side{flex-basis:100%;flex-direction:row;align-items:center;justify-content:space-between;gap:12px}
  .tester .heading-side .heading-models{flex:1;text-align:left}
  .tester .heading-side .btn{font-size:11px;min-height:33px}
  .tester .heading p{font-size:11px}
  .tester .connection{flex-wrap:wrap;gap:10px;padding:13px}
  .tester .connection-copy{flex-basis:100%}
  .tester .device-wrap{max-width:none;width:auto;flex:1}
  .tester .connection>.btn{margin-left:auto}
  .tester .controller-stage{min-height:310px}
  .tester .touch-controls{flex-wrap:nowrap}
  .tester .stick-grid{padding:22px 15px}
  .tester .coordinates{font-size:12px}
  .tester .stick-controls{justify-content:flex-start}
  .tester .stick-controls small{width:auto;margin-left:auto}
  .tester .legend{gap:10px}
  .tester{padding-top:17px}
  .tester .panel-head h2{font-size:17px}
  .tester .panel-head p{font-size:10px}
  .tester .tag{font-size:9px}
}
@media(max-width:380px){
  .tester .touch-controls{flex-wrap:wrap}
  .tester .coordinates{font-size:10px;gap:7px}
  .tester .stick-controls small{margin-left:0}
  .tester .controller-stage{min-height:270px}
}
@media(min-width:1100px) and (min-height:700px){
  .tester .stick-grid{grid-template-rows:minmax(0,1fr)}
  .tester .stick{height:100%;min-height:0;display:flex;flex-direction:column;justify-content:center}
  .tester .dial{flex:1;min-height:0;height:0;max-height:none;aspect-ratio:auto;object-fit:contain}
  .tester .stick h3,.tester .coordinates,.tester .stick-distance{flex-shrink:0}
}
@media(min-width:1100px) and (min-height:700px) and (max-height:850px){
  .tester{gap:12px;padding-block:12px}
  .tester .heading h1{font-size:27px}
  .tester .heading p{margin-top:4px;font-size:11px}
  .tester .connection{padding:9px 15px}
  .tester .panel-head{padding:14px 18px 0}
  .tester .controller-stage{margin:8px 18px 0}
  .tester .live-caption{padding:3px 18px 8px;min-height:29px}
  .tester .trigger-row{padding:10px 18px 12px}
  .tester .touch-controls{padding:10px 18px}
  .tester .stick-grid{padding:12px 18px 18px}
  .tester .stick-controls{padding:12px 18px}
}
.tester .controller-art[data-model="edge"] .st1,.tester .controller-art[data-model="edge"] .st2,.tester .controller-art[data-model="edge"] .st3,.tester .controller-art[data-model="edge"] .st4,.tester .controller-art[data-model="edge"] .st5,.tester .controller-art[data-model="edge"] .st6{stroke:#8295b0}
.tester .controller-art[data-model="edge"] .st2{fill:inherit}
.tester .controller-art[data-model="edge"] .st3{fill:#101a2a}
.tester .controller-art[data-model="edge"] .st4{fill:none}
.tester .controller-art[data-model="edge"] .st71{fill:#41546e}
.tester .controller-art[data-model="edge"] [data-part$="stop_slider_handle"]{fill:var(--accent)}
.tester .controller-art[data-model="edge"] .st1,.tester .controller-art[data-model="edge"] .st2,.tester .controller-art[data-model="edge"] .st3,.tester .controller-art[data-model="edge"] .st5{stroke-width:3.5;vector-effect:none}
.tester .controller-art[data-model="edge"] .st4,.tester .controller-art[data-model="edge"] .st6{stroke-width:2.3;vector-effect:none}
.tester .controller-art[data-model="edge"] :is([data-part="Up_infill"],[data-part="Down_infill"],[data-part="Left_infill"],[data-part="Right_infill"]) .st2{stroke-width:4.1}
.tester .controller-art[data-model="edge"] :is([data-part="Paddle_left_infill"],[data-part="Paddle_right_infill"]) .st2{stroke-width:2.8}
.tester .controller-stage.with-wave{--wave-w:clamp(170px,32%,280px)}
.tester .sensor-wave{position:absolute;top:0;right:0;bottom:0;width:calc(var(--wave-w,0px) - 14px);display:grid;grid-template-rows:minmax(0,1fr) minmax(0,1fr) auto;gap:10px}
.tester .controller-stage:not(.with-wave) .sensor-wave{display:none}
.tester .wave{min-width:0;min-height:0;display:flex;flex-direction:column;gap:5px;padding:9px 10px 8px;border:1px solid var(--line);border-radius:12px;background:#080e19b3}
.tester .wave-head{display:flex;justify-content:space-between;align-items:baseline;gap:8px}
.tester .wave-head strong{font:600 12px var(--head)}
.tester .wave-head span{font-size:10px;color:var(--muted)}
.tester .wave-chart{display:block;flex:1;width:100%;height:0;min-height:0}
.tester .wave-legend{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;font-size:10px;line-height:1.35;color:var(--muted)}
.tester .wave-legend span{display:grid;grid-template-columns:auto auto;justify-content:center;align-items:center;column-gap:4px;white-space:nowrap}
.tester .wave-legend b{grid-column:1/-1;text-align:center;font-weight:400;color:var(--text)}
.tester .wave-legend i{width:6px;height:6px;border-radius:50%}
.tester .wave-legend .wx{background:#ff7a90}
.tester .wave-legend .wy{background:#00e5c0}
.tester .wave-legend .wz{background:#a18aff}
.tester .wave-note{grid-column:1/-1;font-size:10px;line-height:1.35;color:var(--muted)}
@media(max-width:740px){
  .tester .controller-stage.with-wave{min-height:480px}
  .tester .controller-stage.with-wave .controller-art{inset:0 0 178px}
  .tester .sensor-wave{top:auto;left:0;width:auto;height:168px;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto}
}
.tester .trail-tools{display:flex;align-items:center;gap:12px}
.tester .stick-controls .btn{min-height:30px;padding:5px 12px;font-size:11px}
.tester .head-tools{display:flex;align-items:center;gap:8px;flex-shrink:0}
.tester .art-switch{display:inline-flex;padding:2px;border:1px solid var(--line);border-radius:999px;background:#ffffff05}
.tester .art-switch button{border:0;border-radius:999px;padding:5px 11px;background:none;color:var(--muted);font:600 11px/1.4 var(--head)}
.tester .art-switch button:hover{color:var(--text)}
.tester .art-switch button[aria-pressed="true"]{background:#00e5c018;color:var(--accent)}
@media(max-width:420px){
  .tester .art-switch:not([hidden])+.tag{display:none}
}
.tester .controller-art[data-model^="xbox"] .xb-body{fill:none;stroke:#8295b0;stroke-width:4;stroke-linejoin:round}
.tester .controller-art[data-model^="xbox"] .xb-line{stroke:#8295b0;stroke-width:3.5;stroke-linejoin:round}
.tester .controller-art[data-model^="xbox"] .xb-well{fill:#0b1321;stroke:#41546e;stroke-width:2}
.tester .controller-art[data-model^="xbox"] .xb-hub{fill:#192739}
.tester .controller-art[data-model^="xbox"] .xb-ring{fill:none;stroke:#41546e;stroke-width:1.5}
.tester .controller-art[data-model^="xbox"] .xb-grip{fill:none;stroke:#41546e;stroke-width:4;stroke-dasharray:1 2.2}
.tester .controller-art[data-model^="xbox"] .xb-dot{fill:#41546e}
.tester .controller-art[data-model^="xbox"] .xb-glyph{fill:none;stroke:#a9bdd7;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.tester .controller-art[data-model^="xbox"] text.xb-tag{fill:#a9bdd7;font:700 10px var(--body);text-anchor:middle;dominant-baseline:middle;pointer-events:none}
.tester .controller-art[data-model^="xbox"] text.xb-a{fill:#6fcf72}
.tester .controller-art[data-model^="xbox"] text.xb-b{fill:#ff6b6b}
.tester .controller-art[data-model^="xbox"] text.xb-x{fill:#57a8ff}
.tester .controller-art[data-model^="xbox"] text.xb-y{fill:#f4cc4a}
.tester .controller-art[data-model^="xbox"] g.pressed>text{fill:#03241e}
.tester .controller-art[data-model^="xbox"] g.pressed>.xb-glyph{stroke:#03241e}
.tester .controller-art[data-model^="xbox"] .unavailable{opacity:.4}
.tester .controller-art[data-model^="xbox"] .unavailable .xb-line{stroke-dasharray:4 4}
/* Riga dei link alle guide sul drift, sotto le tre prove (fuori dal tester). */
.tester-guide{max-width:68ch;margin:clamp(24px,3vw,34px) auto 0;text-align:center;color:var(--text-soft);font-size:.95rem}
