/* recuperoTI — colori di cacciaTI, caratteri Barlow come l'app dei conduttori e il pannello CTCT (licenza OFL, fonts/OFL-barlow.txt) */
@font-face { font-family: 'Barlow Semi Condensed'; font-weight: 600; font-display: swap; src: url(fonts/barlow-semi-condensed-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Barlow Semi Condensed'; font-weight: 700; font-display: swap; src: url(fonts/barlow-semi-condensed-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 400; font-display: swap; src: url(fonts/barlow-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 600; font-display: swap; src: url(fonts/barlow-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 700; font-display: swap; src: url(fonts/barlow-latin-700-normal.woff2) format('woff2'); }
:root { --bg:#EDEDE3; --surface:#F8F7F1; --line:#CBC4AC; --ink:#22271B; --soft:#565A44; --forest:#2E4A29; --forest-soft:#E1E9D9; --rust:#8B3A2C; --rust-soft:#F2E0D8;
  --gold:#93711F; --gold-soft:#F0E6C7; --head:#253A21; --head-ink:#F6F4EA; --oro:#D9B65C; --radius:10px;
  --sans: "Barlow", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; --titoli: "Barlow Semi Condensed", "Barlow", system-ui, sans-serif; --mono: "SFMono-Regular", Consolas, Menlo, monospace; color-scheme: light; }
@media (prefers-color-scheme: dark) { :root { --bg:#0D0F0B; --surface:#171A12; --line:#2E3326; --ink:#D6D4C6; --soft:#9A988A; --forest:#5C9152; --forest-soft:#182417;
  --rust:#B06B52; --rust-soft:#271510; --gold:#B69A55; --gold-soft:#241E0E; color-scheme: dark; } }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scrollbar-width: none; } ::-webkit-scrollbar { width: 0; height: 0; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.45 var(--sans); min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
[hidden] { display: none !important; }
.top { background: var(--head); color: var(--head-ink); padding: calc(10px + env(safe-area-inset-top)) 16px 10px; display: flex; align-items: center; gap: 11px; position: sticky; top: 0; z-index: 30; }
.top img { width: 38px; height: 38px; border-radius: 50%; background: #fff; padding: 2px; box-shadow: 0 0 0 2px var(--oro); }
.tit { font-size: 23px; font-weight: 800; letter-spacing: .2px; line-height: 1.05; } .tit-b small { display: block; font-size: 13px; opacity: .85; }
.pall { position: relative; display: inline-block; } .pall::after { content: ""; position: absolute; left: 50%; bottom: .89em; width: .2em; height: .2em; margin-left: -.1em; border-radius: 50%; background: #C8982A; }
.ver { margin-left: auto; font: 12px var(--mono); color: #E9D27A; text-align: right; cursor: pointer; }
.ver-nuovo { display: block; background: var(--oro); color: var(--head); font: 700 11px var(--sans); border-radius: 3px; padding: 0 5px; margin-top: 2px; text-align: center; }
.lampeggia { animation: lamp .8s ease-in-out 6; } @keyframes lamp { 50% { opacity: .15; } }
.avviso { background: var(--rust); color: #fff; font-size: 15px; padding: 8px 16px; text-align: center; }
main { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.vista { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.corpo { flex: 1; padding: 16px; display: flex; flex-direction: column; gap: 12px; max-width: 640px; width: 100%; margin: 0 auto; }
h1 { font-size: 24px; margin: 0; line-height: 1.2; } h2 { font-size: 21px; margin: 0; line-height: 1.25; }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 13px; }
.box.testo p { margin: 0 0 9px; font-size: 16px; } .box.testo p:last-child { margin: 0; }
.mini { font-size: 14px; color: var(--soft); line-height: 1.4; margin: 0; }
.nota { font-size: 14px; color: var(--soft); text-align: center; margin: 2px 0; }
label.c { display: block; font-size: 14px; color: var(--soft); margin: 0 0 4px; font-weight: 600; }
.in { width: 100%; background: var(--bg); color: var(--ink); border: 1.5px solid var(--line); border-radius: 8px; padding: 11px 12px; font: inherit; font-size: 17px; margin-bottom: 10px; }
.in:focus { outline: none; border-color: var(--forest); }
textarea.in { resize: vertical; min-height: 56px; }
.err { color: var(--rust); font-weight: 600; font-size: 15px; margin: 0; }
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: var(--radius); padding: 14px; font: inherit; font-size: 17px; font-weight: 700; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; text-decoration: none; width: 100%; }
.btn.ok { background: var(--forest); border-color: var(--forest); color: #fff; } .btn.r { background: var(--rust); border-color: var(--rust); color: #fff; }
.btn:disabled { opacity: .5; }
.piede { position: sticky; bottom: 0; padding: 10px 16px calc(14px + env(safe-area-inset-bottom)); display: flex; gap: 10px; background: var(--bg); border-top: 1px solid var(--line); max-width: 640px; width: 100%; margin: 0 auto; }
.link { background: none; border: 0; color: var(--forest); font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; padding: 0; }
.riga { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 16px; padding: 9px 0; border-top: 1px solid var(--line); } .riga:first-child { border: 0; padding-top: 2px; }
/* pulsante grande */
.grande { margin: 44px auto 8px; width: 240px; height: 240px; border-radius: 50%; border: 0; cursor: pointer; background: radial-gradient(circle at 50% 35%, #a24a39, #8B3A2C 70%); color: #fff; font: inherit;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; box-shadow: 0 0 0 6px var(--bg), 0 0 0 9px var(--oro), 0 10px 26px rgba(0,0,0,.3); }
.grande:active { transform: scale(.97); }
.grande svg { width: 46px; height: 46px; fill: #fff; margin-bottom: 8px; } .grande b { font-size: 21px; line-height: 1.15; letter-spacing: .5px; } .grande span { font-size: 14px; opacity: .92; margin-top: 8px; }
.incorso { border-left: 5px solid var(--oro); cursor: pointer; }
/* passi */
.prog { display: flex; gap: 5px; } .prog i { flex: 1; height: 5px; border-radius: 3px; background: var(--line); } .prog i.on { background: var(--forest); }
.passo { font-size: 14px; color: var(--soft); text-transform: uppercase; letter-spacing: 1px; font-weight: 700; margin-bottom: -6px; }
.p { display: flex; flex-direction: column; gap: 11px; }
.carta { height: 46vh; min-height: 230px; border-radius: var(--radius); border: 1px solid var(--line); isolation: isolate; position: relative; z-index: 0; }
.stat { display: flex; align-items: center; gap: 8px; font-size: 15px; } .stat .pt { width: 10px; height: 10px; border-radius: 50%; background: var(--oro); flex: none; }
.stat.ok .pt { background: #3D8B37; box-shadow: 0 0 0 4px rgba(61,139,55,.2); } .stat.no .pt { background: var(--rust); }
.pin-a { width: 34px; height: 44px; } .pin-a svg { width: 34px; height: 44px; display: block; }
.rosa { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.rosa button { background: var(--surface); color: var(--ink); border: 1.5px solid var(--line); border-radius: 9px; height: 58px; font: inherit; font-weight: 800; font-size: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05; cursor: pointer; }
.rosa button small { font-size: 19px; font-weight: 400; }
.rosa button.on { background: var(--forest); border-color: var(--forest); color: #fff; }
.rosa .bus { font-size: 14px; font-weight: 700; color: var(--soft); } .rosa .bus.on { color: #fff; }
.tit2 { font-size: 14px; text-transform: uppercase; letter-spacing: 1px; color: var(--gold); font-weight: 800; margin: 4px 0 -4px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { padding: 9px 13px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: 15.5px; font-weight: 600; cursor: pointer; }
.chip.on { background: var(--forest-soft); border-color: var(--forest); color: var(--forest); }
.rr { display: flex; justify-content: space-between; gap: 12px; font-size: 15.5px; padding: 7px 0; border-top: 1px solid var(--line); } .rr:first-child { border: 0; padding-top: 0; } .rr span { color: var(--soft); } .rr b { text-align: right; }
/* stato */
.tl { position: relative; padding-left: 26px; } .tl::before { content: ""; position: absolute; left: 9px; top: 8px; bottom: 14px; width: 2px; background: var(--line); }
.ev { position: relative; padding: 2px 0 14px; font-size: 16px; } .ev::before { content: ""; position: absolute; left: -23px; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: var(--forest); border: 2px solid var(--bg); }
.ev.att::before { background: var(--oro); animation: pulsa 1.4s ease-in-out infinite; } .ev.ora::before { background: #3D8B37; box-shadow: 0 0 0 5px rgba(61,139,55,.25); } .ev.no::before { background: var(--rust); }
@keyframes pulsa { 50% { box-shadow: 0 0 0 6px rgba(217,182,92,.35); } }
.ev b { display: block; } .ev span { color: var(--soft); font-size: 14px; }
.arrivo { background: var(--forest); color: #fff; border-radius: 12px; padding: 14px; } .arrivo .s { font-size: 14px; opacity: .92; } .arrivo .n { font-size: 21px; font-weight: 800; margin: 2px 0; }
.arrivo .btn { margin-top: 10px; background: #fff; color: #2E4A29; border-color: #fff; }
.ultima { background: var(--rust-soft); border: 1.5px solid var(--rust); border-radius: 12px; padding: 13px; display: flex; flex-direction: column; gap: 9px; }
.ultima b { color: var(--rust); font-size: 17px; } .ultima p { margin: 0; font-size: 15px; }
/* finestre */
.dlg { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.45); display: none; align-items: flex-end; justify-content: center; }
.dlg.on { display: flex; } html:has(.dlg.on) { overflow: hidden; }
.dlg-sheet { position: relative; background: var(--bg); width: 100%; max-width: 560px; border-radius: 14px 14px 0 0; padding: 18px 16px calc(16px + env(safe-area-inset-bottom)); max-height: 88vh; overflow: auto; border-top: 3px solid var(--oro); }
.dlg-sheet h3 { margin: 0 34px 8px 0; font-size: 20px; } .dlg-sheet p { margin: 0 0 10px; font-size: 16px; }
.dlg-x { position: absolute; right: 10px; top: 10px; width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; }
.dlg-az { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; } .dlg-az .btn { flex: 1 1 140px; }
.toast { position: fixed; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--head); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 70; font-size: 15px; max-width: 90vw; border: 1px solid var(--oro); text-align: center; }
/* «TI» del nome in oro (recuperoTI non ha una «i» minuscola su cui mettere il pallino di cacciaTI) */
.tit .ti { color: var(--oro); }
.box.testo p.obbligo { background: var(--gold-soft); border-left: 4px solid var(--oro); padding: 8px 10px; border-radius: 6px; }
/* casella obbligatoria: guardacaccia avvisato */
.gc { display: flex; align-items: flex-start; gap: 12px; background: var(--gold-soft); border: 1.5px solid var(--oro); border-radius: var(--radius); padding: 12px 13px; cursor: pointer; }
.gc input { width: 26px; height: 26px; margin: 1px 0 0; accent-color: var(--forest); flex: none; }
.gc b { display: block; font-size: 16.5px; } .gc small { display: block; font-size: 14px; color: var(--soft); margin-top: 1px; }

/* passo 1: Anschuss */
.consiglio { margin: 12px 0 0; font-size: 15px; line-height: 1.4; background: var(--gold-soft); border-left: 4px solid var(--oro); padding: 9px 11px; border-radius: 6px; }
.btn.largo { width: 100%; margin-top: 10px; } .btn.alto { min-height: 54px; font-size: 18px; }
.centro { text-align: center; margin-top: 6px; }
.sfondi { display: flex; } .sfondi button { font: inherit; font-size: 14px; padding: 6px 10px; border: 0; background: #fff; color: #22271B; cursor: pointer; } .sfondi button.on { background: #2E4A29; color: #fff; }
.tu { width: 18px; height: 18px; border-radius: 50%; background: #2F6FD6; border: 3px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.25); box-sizing: border-box; }
.dist-lbl { background: #fff; color: #22271B; border-radius: 6px; padding: 2px 7px; font-size: 14px; font-weight: 700; box-shadow: 0 1px 3px rgba(0,0,0,.3); white-space: nowrap; }
/* passo 2: fuga guidata con la bussola (come cacciaTI) */
.fuga-guida { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 12px 13px; margin-bottom: 12px; }
.fuga-guida.attesa { background: var(--forest-soft); border-color: var(--forest); text-align: center; }
.fuga-guida.fatta { border-color: var(--forest); }
.fg-testo { margin: 0; font-size: 16px; line-height: 1.4; }
.fg-conta { display: block; font-size: 40px; font-weight: 800; color: var(--forest); margin: 4px 0; }
.fg-freccia { display: inline-block; font-size: 30px; line-height: 1; color: var(--forest); transition: transform .2s; }
.fg-live { display: block; font-size: 15px; color: var(--soft); }
.fg-esito { display: flex; align-items: center; gap: 12px; } .fg-esito b { font-size: 19px; display: block; } .fg-esito small { font-size: 14px; color: var(--soft); }
.rosa .vuoto { visibility: hidden; }
.carta.corta { height: 38vh; min-height: 220px; margin-bottom: 10px; }
#fugaGuida .link { margin-top: 6px; }
/* pulsante grande che pulsa: si capisce subito che va toccato */
.grande { position: relative; animation: respiro 2.4s ease-in-out infinite; }
.grande::before, .grande::after { content: ''; position: absolute; inset: -9px; border-radius: 50%; border: 3px solid #B5503D; opacity: 0; pointer-events: none; animation: onda 2.4s ease-out infinite; }
.grande::after { animation-delay: 1.2s; }
.grande .tocca { margin-top: 10px; padding: 4px 12px; border-radius: 999px; background: rgba(255,255,255,.18); border: 1.5px solid rgba(255,255,255,.7); font-size: 14px; font-weight: 800; letter-spacing: 1px; opacity: 1; }
.grande:active { animation: none; transform: scale(.96); }
@keyframes respiro { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
@keyframes onda { 0% { transform: scale(1); opacity: .75; } 100% { transform: scale(1.32); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .grande, .grande::before, .grande::after { animation: none; } }
.sotto-grande { text-align: center; font-size: 16px; margin: 22px 0 14px; color: var(--ink); }
.obblig { color: var(--rust); font-weight: 600; margin: 0 0 8px; }
/* reazione al colpo: due colonne, tutte le scelte visibili insieme (anche «Non lo so») */
#chReazione { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
#chReazione .chip { border-radius: 10px; padding: 10px 8px; text-align: center; font-size: 15px; }
.rosa button { height: 50px; }
.tit2 .facolt { text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--soft); }
.gc-nota { margin: 14px 0 0; font-size: 15px; line-height: 1.4; background: var(--gold-soft); border-left: 4px solid var(--oro); padding: 9px 11px; border-radius: 6px; }
.manda { display: flex; flex-direction: column; align-items: center; line-height: 1.15; } .manda small { font-size: 14px; font-weight: 600; opacity: .95; margin-top: 2px; }
.piede.finale #btnIndietro { flex: 0 0 auto; width: auto; padding-left: 18px; padding-right: 18px; } .piede.finale #btnAvanti { flex: 1 1 auto; }
/* 1.4: titoli in Barlow Semi Condensed, cerchio più d'impatto */
h1, h2, .tit, .grande b, .passo, .tit2, .btn, .chip, .rosa button { font-family: var(--titoli); }
h1, h2 { font-weight: 700; letter-spacing: .2px; } h2 { font-size: 24px; }
.tit { font-size: 26px; font-weight: 700; letter-spacing: .3px; white-space: nowrap; } .tit .ti { margin-left: 0; }
.tit-b small { font-family: var(--sans); font-weight: 600; letter-spacing: .3px; }
.grande b { font-size: 27px; font-weight: 700; letter-spacing: 1.2px; line-height: 1.02; display: block; width: 100%; text-align: center; text-shadow: 0 1px 2px rgba(0,0,0,.25); }
.grande .tocca { font-family: var(--titoli); font-size: 15px; letter-spacing: 2px; padding: 5px 16px; }
.grande svg { margin-bottom: 10px; }
.sotto-grande { font-size: 17px; }
.sotto-grande { text-align: center; margin: 24px auto 16px; max-width: 320px; }
.sotto-grande b { display: block; font-family: var(--titoli); font-size: 24px; font-weight: 700; color: var(--ink); line-height: 1.15; }
.sotto-grande span { display: block; margin-top: 4px; font-size: 16px; color: var(--soft); line-height: 1.4; text-wrap: balance; }
.nota { text-wrap: balance; }
.leaflet-bar a.qui { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; } .leaflet-bar a.qui svg { width: 22px; height: 22px; fill: none; stroke: #2E4A29; stroke-width: 1.8; stroke-linecap: round; }
