/* ---------- referto documenti ---------- */
.doc-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.doc { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: #fff6f7; flex-wrap: wrap; }
.doc-ico { font-size: 30px; }
.doc-info { flex: 1; min-width: 160px; }
.doc-info b { display: block; overflow-wrap: anywhere; }
.doc-info small { color: var(--muted); font-weight: 700; }
.doc-actions { display: flex; gap: 6px; }
.upl { display: inline-flex; cursor: pointer; }
.pill.doc-pill { border: 0; cursor: pointer; background: var(--blue-100); color: var(--blue-800); font-family: inherit; }
.pill.doc-pill:hover { background: var(--orange); color: #fff; }
.modal { position: fixed; inset: 0; z-index: 300; background: rgba(107,10,18,.6); display: grid; place-items: center; padding: 16px; animation: fadeIn .2s; backdrop-filter: blur(3px); }
.modal.out { opacity: 0; transition: opacity .2s; }
.modal-box { background: #fff; border-radius: 22px; padding: 22px; width: 100%; max-width: 560px; max-height: 90vh; overflow: auto; position: relative; animation: pop .35s cubic-bezier(.2,1.4,.4,1); }
.modal.wide .modal-box { max-width: 960px; padding: 12px; }
.modal-x { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--blue-100); color: var(--blue-800); font-weight: 900; cursor: pointer; z-index: 2; }
.doc-view { width: 100%; border-radius: 12px; display: block; }
@keyframes fadeIn { from { opacity: 0; } }

/* ---------- live comuni ---------- */
.live-pill { background: var(--loss); color: #fff; font-weight: 900; font-size: 12px; padding: 3px 10px; border-radius: 999px; letter-spacing: 1px; animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .55; } }
.live-dot { animation: blink 1.2s infinite !important; }
.live-banner { background: linear-gradient(90deg, #b91c1c, var(--loss)); color: #fff; text-decoration: none; }
.live-banner .emoji { animation: blink 1.2s infinite !important; }
.bonus { background: var(--loss); color: #fff; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 900; }
.out5 { color: var(--loss) !important; font-weight: 900; }
.feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.feed li { padding: 8px 10px; border-radius: 10px; background: #fff6f7; font-weight: 600; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; animation: rise .35s; }
.feed li.hot { background: #d9e9fc; }
.feed .ft { font-family: var(--font-display); color: var(--blue-700); min-width: 74px; }
.feed .fa.make { color: var(--win); font-weight: 900; }
.feed .fa.miss { color: var(--muted); }
.feed .fa.foul, .feed .fa.bad { color: var(--loss); }
.feed .fa.good { color: var(--blue-700); font-weight: 800; }
.feed .fo { color: var(--muted); font-weight: 800; }
.xdel { margin-left: auto; border: 0; background: none; color: var(--muted); cursor: pointer; font-weight: 900; }

/* ---------- diretta ---------- */
.scoreboard { background: linear-gradient(160deg, var(--blue-900), var(--blue-700)); color: #fff; text-align: center; }
.scoreboard.final { background: linear-gradient(160deg, var(--blue-900), #0f1a2b); }
.sb-status { font-weight: 900; letter-spacing: 1px; }
.sb-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 14px 0 6px; }
.sb-team { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 15px; min-width: 0; }
.sb-team b { overflow-wrap: anywhere; }
.sb-team img, .sb-badge { width: 64px; height: 64px; border-radius: 50%; border: 3px solid #fff; background: #fff; object-fit: cover; }
.sb-badge { display: grid; place-items: center; color: var(--blue-800); font-family: var(--font-display); font-size: 22px; }
.sb-score { font-family: var(--font-display); font-size: clamp(54px, 14vw, 88px); line-height: 1; display: flex; gap: 10px; }
.sb-score i { font-style: normal; color: var(--orange); }
.sb-score .bump { animation: bump .6s cubic-bezier(.2,1.6,.4,1); color: var(--orange); }
@keyframes bump { 40% { transform: scale(1.35); } }
.sb-clock { font-family: var(--font-display); font-size: 40px; letter-spacing: 2px; color: #98c3f7; }
.sb-clock.run { color: #fff; }
.sb-meta { font-weight: 700; opacity: .9; margin-top: 4px; }
.final-score { display: flex; justify-content: center; gap: 16px; font-family: var(--font-display); font-size: 64px; color: var(--blue-800); }
.final-score span { color: var(--orange); }

/* ---------- scout ---------- */
.scout-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; border: 3px solid var(--loss); }
.scout-cta > div { flex: 1; min-width: 220px; }
.scout-cta p { margin: 4px 0 0; }
.sroster { display: flex; flex-wrap: wrap; gap: 8px; }
.schip { display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; border: 2px solid #f6d9dc; background: #fff; font: 800 14px var(--font-body); cursor: pointer; opacity: .5; }
.schip .n { width: 30px; height: 30px; border-radius: 50%; background: var(--blue-700); color: #fff; display: grid; place-items: center; font-family: var(--font-display); }
.schip.on { opacity: 1; border-color: var(--blue-500); }
.schip.five { border-color: var(--orange); background: #d9e9fc; }
.scout { max-width: 760px; margin: 0 auto; }
.scout-sb { background: linear-gradient(160deg, var(--blue-900), var(--blue-700)); color: #fff; padding: 12px 14px; position: sticky; top: calc(72px + env(safe-area-inset-top)); z-index: 15; }
@media (max-width: 860px) { .scout-sb { top: 70px; } }
.ssb-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ssb-top .muted { color: #f6d0d3; }
.ssb-top .btn.ghost { padding: 6px 12px; }
.ssb-main { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.ssb-score { text-align: center; min-width: 80px; }
.ssb-score b { font-family: var(--font-display); font-size: 54px; line-height: 1; display: block; }
.ssb-score small { font-weight: 900; letter-spacing: 1px; color: var(--orange); font-size: 11px; }
.ssb-clock { text-align: center; }
.clockbtn { font-family: var(--font-display); font-size: 34px; background: #000; color: #3b8ff0; border: 3px solid var(--orange); border-radius: 14px; padding: 4px 14px; cursor: pointer; letter-spacing: 2px; }
.clockbtn.run { color: #7dff9b; border-color: #7dff9b; }
.ssb-per { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 6px; }
.ssb-per b { font-family: var(--font-display); font-size: 22px; min-width: 44px; }
.ssb-per .btn { padding: 4px 10px; }
.ssb-edit { display: flex; gap: 6px; justify-content: center; margin-top: 6px; }
.ssb-edit input { width: 80px; padding: 6px; border-radius: 10px; border: 0; text-align: center; font-weight: 900; }
.ssb-fouls { margin-top: 8px; font-weight: 800; font-size: 13px; display: flex; align-items: center; gap: 5px; justify-content: center; flex-wrap: wrap; }
.ssb-fouls i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; display: inline-block; }
.ssb-fouls i.on { background: var(--orange); border-color: var(--orange); }
.pulse { animation: pulse 1.2s infinite; }
.sync { width: 10px; height: 10px; border-radius: 50%; display: inline-block; background: #7dff9b; }
.sync.wait { background: #2d5fef; }
.sync.err { background: var(--loss); animation: blink .8s infinite; }
.court-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 14px; }
.ptile { position: relative; background: #fff; border: 3px solid transparent; border-radius: 16px; padding: 8px 4px; cursor: pointer; box-shadow: 0 5px 0 #f6cbcf; font-family: var(--font-body); display: flex; flex-direction: column; align-items: center; gap: 2px; transition: transform .15s; min-width: 0; color: var(--ink); }
.ptile .pn { font-family: var(--font-display); font-size: 30px; color: var(--blue-700); line-height: 1; }
.ptile .pname { font-weight: 900; font-size: 11px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ptile .pst { font-size: 10px; font-weight: 800; color: var(--muted); }
.ptile .pf { font-size: 9px; color: var(--loss); letter-spacing: 1px; }
.ptile.sel { border-color: var(--orange); transform: translateY(-4px); background: #e9f2fd; }
.ptile.pick { border-color: var(--blue-500); background: var(--blue-100); animation: wiggle .6s infinite; }
.ptile.out5 { background: #fde3e3; }
.ptile.hit { animation: land .4s cubic-bezier(.2,1.6,.4,1); }
.ptile.small { flex: 0 0 82px; padding: 6px 2px; box-shadow: 0 3px 0 #f6cbcf; }
.ptile.small .pn { font-size: 22px; }
.bench-bar { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.bench-row { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 8px; flex: 1; }
.pad { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; padding: 12px; border-radius: 18px; background: rgba(255,255,255,.6); transition: background .2s; }
.pad.armed { background: #e9f2fd; box-shadow: 0 0 0 3px var(--orange); }
.pad-who { grid-column: 1 / -1; text-align: center; font-weight: 800; color: var(--blue-800); }
.pbtn { border: 0; border-radius: 14px; padding: 16px 4px; font: 900 15px var(--font-body); cursor: pointer; color: #fff; box-shadow: 0 5px 0 rgba(0,0,0,.2); transition: transform .08s, box-shadow .08s; touch-action: manipulation; }
.pbtn:active { transform: translateY(4px); box-shadow: 0 1px 0 rgba(0,0,0,.2); }
.pbtn.make { background: var(--win); }
.pbtn.make.big { background: linear-gradient(135deg, var(--win), #0f7a48); }
.pbtn.miss { background: #b38a8e; }
.pbtn.neutral { background: var(--blue-500); }
.pbtn.good { background: var(--blue-800); }
.pbtn.bad { background: #105282; }
.pbtn.foul { background: var(--loss); }
.pbtn.wide { grid-column: span 4; }
.pad:not(.armed) .pbtn { opacity: .55; }
.floater { position: fixed; z-index: 400; transform: translate(-50%, 0); font-family: var(--font-display); font-size: 34px; pointer-events: none; animation: floatUp 1s ease-out forwards; text-shadow: 2px 2px 0 #fff; }
.floater.make { color: var(--win); }
.floater.miss { color: #b38a8e; font-size: 20px; }
.floater.foul, .floater.bad { color: var(--loss); font-size: 22px; }
.floater.good, .floater.neutral { color: var(--blue-700); font-size: 22px; }
@keyframes floatUp { to { transform: translate(-50%, -70px); opacity: 0; } }
.scout-end { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
@media (max-width: 480px) {
  .court-row { gap: 5px; }
  .ptile .pn { font-size: 24px; }
  .ptile .pname { font-size: 10px; }
  .pbtn { padding: 14px 2px; font-size: 13px; }
  .ssb-score b { font-size: 44px; }
  .clockbtn { font-size: 28px; }
}

/* ---------- tifosi ---------- */
.fan-box { margin-top: 22px; padding-top: 18px; border-top: 2px dashed #f6d9dc; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.fan-box span { font-weight: 900; color: var(--blue-800); }
.fan-box .btn { width: 100%; }
.fan-box small { color: var(--muted); font-weight: 700; }
.fan-next { display: grid; grid-template-columns: 70px 1fr; gap: 2px 12px; padding: 10px 0; border-bottom: 1px dashed #f8e1e4; }
.fan-next b { grid-row: span 2; font-family: var(--font-display); font-weight: 400; font-size: 22px; color: var(--orange); align-self: center; }
.fan-next span { font-weight: 900; color: var(--blue-900); }
.fan-next small { color: var(--muted); font-weight: 700; }

/* ---------- moduli: campi allineati e coerenti (anche su iPhone) ---------- */
.field input, .field select {
  height: 50px; -webkit-appearance: none; appearance: none; line-height: normal; display: block; min-width: 0; margin: 0;
}
.field select {
  padding-right: 42px; cursor: pointer; text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%231240a8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 14px 9px;
}
.field input[type="datetime-local"], .field input[type="date"] { text-align: left; }
.field input::-webkit-date-and-time-value { text-align: left; }
.field input::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .7; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; align-items: start; }
.form-grid .field { margin-bottom: 14px; }
.form-grid .span2 { grid-column: 1 / -1; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 4px; }
.form-actions .spacer { flex: 1; }
@media (max-width: 560px) {
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .form-grid.scores { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-actions .wa-check { flex-basis: 100%; }
  .form-actions .spacer { display: none; }
  .form-actions .btn { flex: 1; }
}

.field input[list] { padding-right: 42px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%231240a8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 14px 9px; }
.field input[list]::-webkit-calendar-picker-indicator { opacity: 0; }

/* ---------- profilo ---------- */
.who-link { display: flex; align-items: center; gap: 6px; color: #fff; text-decoration: none; padding: 4px 10px 4px 4px; border-radius: 999px; transition: background .2s; }
.who-link:hover, .who-link.active { background: rgba(255,255,255,.15); }
.who-ico { width: 30px; height: 30px; border-radius: 50%; background: var(--orange); display: grid; place-items: center; font-size: 16px; }
.profile-card { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.profile-jersey { width: 110px; flex: 0 0 auto; animation: wiggle 3s ease-in-out infinite; }
.profile-info { flex: 1; min-width: 200px; }
.profile-info h2 { font-family: var(--font-display); font-weight: 400; font-size: 36px; margin: 0 0 8px; color: var(--blue-800); letter-spacing: 1px; }
.profile-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.pw-card { max-width: 760px; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 52px; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; font-size: 20px; cursor: pointer; width: 40px; height: 40px; }
.pw-meter { height: 6px; background: var(--blue-100); border-radius: 999px; overflow: hidden; margin: 8px 0 4px; }
.pw-meter i { display: block; height: 100%; width: 0; border-radius: 999px; transition: width .3s, background .3s; }
.pw-meter i.bad { background: var(--loss); }
.pw-meter i.mid { background: var(--orange); }
.pw-meter i.good { background: var(--win); }
.pw-list { display: flex; flex-direction: column; gap: 8px; }
.pw-row { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; background: #fff6f7; }
.pw-row > div { flex: 1; }
.pw-row b { display: block; }
.pw-row small { color: var(--muted); font-weight: 700; }
.pw-n { width: 38px; height: 38px; border-radius: 50%; background: var(--blue-700); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-size: 18px; }
@media (max-width: 860px) { .user-chip .who-link .who { display: none; } .who-link { padding: 4px; } }

/* menu in alto su schermi medi: solo icone, così il profilo resta visibile */
.nav { min-width: 0; }
@media (min-width: 861px) and (max-width: 1360px) {
  .nav { gap: 2px; }
  .nav a { font-size: 0; gap: 0; padding: 8px 10px; }
  .nav a .ico { font-size: 20px; }
}

.pw-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pw-row.is-personal { background: #ecfdf3; }
.pw-list { max-height: 520px; overflow: auto; }

.topbar-inner { max-width: 1420px; }
.user-chip { flex: 0 0 auto; }

/* ---------- tab risultati / classifica ---------- */
.tabs { display: inline-flex; gap: 4px; padding: 5px; background: #fff; border-radius: 999px; box-shadow: var(--shadow); margin-bottom: 18px; }
.tab { border: 0; background: none; padding: 10px 20px; border-radius: 999px; font: 900 15px var(--font-body); color: var(--blue-800); cursor: pointer; transition: background .2s, color .2s; }
.tab.on { background: var(--blue-700); color: #fff; }
.tab:not(.on):hover { background: var(--blue-100); }
.st-table td, .st-table th { text-align: center; }
.st-table td.tn { text-align: left; font-weight: 900; color: var(--blue-900); display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.st-table td.tn img { width: 26px; height: 26px; border-radius: 50%; }
.st-table td.pos { font-family: var(--font-display); font-size: 18px; color: var(--blue-700); width: 44px; }
.st-table td.ptsc { font-family: var(--font-display); font-size: 20px; color: var(--blue-800); }
.st-table tr.us td { background: #e1eefd; }
.st-table tbody tr { animation: rise .45s cubic-bezier(.2,.9,.3,1.2) backwards; }
.st-table .pos-d { color: var(--win); font-weight: 900; }
.st-table .neg-d { color: var(--loss); font-weight: 900; }
.st-legend { font-size: 12px; font-weight: 700; margin: 10px 0; }
.st-quick h3, .st-quick p { margin: 0 0 6px; }
.st-quick h3 { color: var(--blue-800); }
.st-quick p { font-weight: 700; }
.quick-row { display: grid; grid-template-columns: minmax(0, 1fr) 80px auto 80px minmax(0, 1fr); gap: 8px; align-items: center; margin-top: 10px; }
.quick-row select, .quick-row input, .quick-row2 input { height: 48px; border-radius: 12px; border: 2px solid #f6d9dc; background: #f8faff; font: 800 15px var(--font-body); color: var(--ink); padding: 0 12px; min-width: 0; -webkit-appearance: none; appearance: none; }
.quick-row select { padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%231240a8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.quick-row input { text-align: center; font-family: var(--font-display); font-size: 24px; }
.quick-row .dash { font-family: var(--font-display); font-size: 26px; color: var(--orange); }
.quick-row2 { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 10px; font-weight: 800; color: var(--muted); font-size: 13px; }
.quick-row2 label { display: flex; align-items: center; gap: 6px; }
.quick-row2 input { width: 64px; height: 40px; text-align: center; }
.quick-row2 .spacer { flex: 1; }
.st-edit { display: flex; flex-direction: column; gap: 10px; }
.st-row { border: 2px solid #f8e5e7; border-radius: 14px; padding: 10px; }
.st-row.us { border-color: var(--orange); background: #f1f6fe; }
.st-name { display: flex; gap: 8px; margin-bottom: 8px; }
.st-name input { flex: 1; height: 42px; border-radius: 10px; border: 2px solid #f6d9dc; padding: 0 12px; font: 900 15px var(--font-body); color: var(--blue-900); min-width: 0; }
.st-name input[readonly] { background: transparent; border-color: transparent; }
.st-del { border: 0; background: #fff5f5; border-radius: 10px; padding: 0 12px; cursor: pointer; font-weight: 900; color: var(--loss); }
.st-nums { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.st-num { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.st-num span { font-size: 11px; font-weight: 900; color: var(--muted); letter-spacing: 1px; }
.st-num div { display: flex; align-items: stretch; width: 100%; border: 2px solid #f6d9dc; border-radius: 10px; overflow: hidden; background: #fff; }
.st-num button { border: 0; background: var(--blue-100); color: var(--blue-800); font-weight: 900; font-size: 18px; width: 30px; cursor: pointer; flex: 0 0 auto; }
.st-num button:active { background: var(--orange); color: #fff; }
.st-num input { width: 100%; min-width: 0; border: 0; text-align: center; font: 400 18px var(--font-display); color: var(--blue-900); height: 38px; -moz-appearance: textfield; }
.st-num input::-webkit-outer-spin-button, .st-num input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.st-num input.bumped { animation: bump .35s; color: var(--orange-600); }
@media (max-width: 640px) {
  .st-nums { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .quick-row { grid-template-columns: minmax(0, 1fr) 70px; }
  .quick-row .dash { display: none; }
  .quick-row #qA { grid-row: 1; grid-column: 1; } .quick-row #qAs { grid-row: 1; grid-column: 2; }
  .quick-row #qB { grid-row: 2; grid-column: 1; } .quick-row #qBs { grid-row: 2; grid-column: 2; }
  .tabs { display: flex; } .tab { flex: 1; }
}

@media (max-width: 560px) {
  .standings { padding: 12px 8px; }
  .st-table { font-size: 12px; white-space: normal; }
  .st-table th, .st-table td { padding: 7px 3px; }
  .st-table th { font-size: 10px; letter-spacing: 0; }
  .st-table td.pos { width: 26px; font-size: 15px; }
  .st-table td.tn { white-space: normal; font-size: 12px; line-height: 1.2; gap: 5px; min-width: 92px; }
  .st-table td.tn img { width: 20px; height: 20px; }
  .st-table td.ptsc { font-size: 17px; }
}

@media (max-width: 560px) {
  .st-table .c-g { display: none; }
  .st-table th, .st-table td { padding: 7px 2px; }
  .standings .table-wrap { margin: 0 -4px; }
}

@media (max-width: 560px) {
  .st-table td.tn { min-width: 0; max-width: 96px; }
  .st-table td.tn img { display: none; }
  .st-table td.pos { width: 22px; font-size: 14px; }
}

@media (max-width: 560px) {
  .standings .table-wrap { margin: 0; }
  .st-table th { font-size: 9px; padding: 7px 1px; }
  .st-table td { padding: 7px 1px; }
  .st-table td.tn { max-width: 84px; padding-left: 4px; }
}

@media (max-width: 560px) {
  .st-table td.tn { display: table-cell; }
  .st-table th:first-child, .st-table td.pos { width: 22px; padding-left: 2px; padding-right: 0; }
  .st-table td.pos { font-size: 13px; }
}

.st-name b { font-size: 15px; color: var(--blue-900); }

/* pulsanti-link: mai spezzati su due righe, sempre allineati */
a.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; text-decoration: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-row .btn { flex: 1 1 auto; }

/* ---------- barra di navigazione su telefono: elemento separato, fisso in basso ---------- */
.mnav { display: none; }
@media (max-width: 860px) {
  .topbar .top-nav { display: none; }
  .mnav {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; margin: 0;
    justify-content: flex-start; gap: 2px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch; scrollbar-width: none; overscroll-behavior-x: contain;
    background: var(--blue-900); padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 18px rgba(0,0,0,.25);
    transform: translateZ(0); -webkit-transform: translateZ(0); will-change: transform;
  }
  .mnav::-webkit-scrollbar { display: none; }
  .mnav a { flex: 1 0 auto; min-width: 58px; max-width: 92px; scroll-snap-align: center; flex-direction: column; gap: 1px; font-size: 10px; padding: 6px 4px; border-radius: 12px; }
  .mnav a .lbl { white-space: nowrap; }
  .mnav a .ico { font-size: 20px; }
  /* sfumatura a destra: fa capire che ci sono altre voci */
  .mnav::after { content: ''; position: sticky; right: -6px; flex: 0 0 18px; margin-left: -18px; background: linear-gradient(90deg, transparent, var(--blue-900)); pointer-events: none; }
}

/* ---------- reazioni bacheca ---------- */
.reacts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: -2px 0 10px; }
.react { border: 2px solid #f8e5e7; background: #f8faff; border-radius: 999px; padding: 4px 10px; font-size: 17px; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; transition: transform .15s, background .15s, border-color .15s; filter: grayscale(.35); }
.react.has { filter: none; }
.react b { font: 900 13px var(--font-body); color: var(--blue-800); }
.react:hover { transform: translateY(-2px); }
.react.mine { background: #d9e9fc; border-color: var(--orange); filter: none; }
.react.pop { animation: bump .45s cubic-bezier(.2,1.6,.4,1); }
.react-who { margin-left: auto; border: 0; background: none; color: var(--blue-700); font-weight: 800; font-size: 13px; cursor: pointer; text-decoration: underline; }
.who-row { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px dashed #f8e1e4; font-weight: 700; }
.who-e { font-size: 22px; }

/* ---------- spogliatoio · schemi video ---------- */
.tab-n { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: var(--orange); color: #fff; font-size: 12px; line-height: 20px; }
.sp-intro { font-weight: 700; margin: 0 0 14px; }
.sp-upload h3 { margin: 0 0 10px; color: var(--blue-800); }
.sp-form { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.sp-form .field { flex: 1 1 240px; margin: 0; }
.sp-form .btn { white-space: nowrap; }
.sp-pick { cursor: pointer; }
.sp-progress { position: relative; height: 26px; margin: 12px 0 4px; border-radius: 999px; background: var(--blue-100); overflow: hidden; }
.sp-progress i { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, var(--blue-700), var(--orange)); transition: width .2s; }
.sp-progress span { position: relative; display: block; text-align: center; font: 900 13px/26px var(--font-body); color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.sp-search { margin: 16px 0 0; }
.sp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin-top: 16px; }
.sp-card { display: flex; flex-direction: column; gap: 10px; padding: 12px; }
.sp-thumb { position: relative; aspect-ratio: 16 / 9; border: 0; border-radius: 14px; cursor: pointer; overflow: hidden; padding: 0;
  background: radial-gradient(circle at 50% 120%, rgba(21,101,192,.45), transparent 60%), linear-gradient(135deg, #a50f1f, #cc1626); }
.sp-court { position: absolute; inset: 12% 8%; border: 2px solid rgba(255,255,255,.35); border-radius: 6px; }
.sp-court::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; border-left: 2px solid rgba(255,255,255,.35); }
.sp-court::after { content: ''; position: absolute; left: 50%; top: 50%; width: 22%; aspect-ratio: 1; transform: translate(-50%, -50%); border: 2px solid rgba(255,255,255,.35); border-radius: 50%; }
.sp-play { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--orange); color: #fff;
  font-size: 24px; line-height: 56px; text-align: center; padding-left: 4px; box-shadow: 0 6px 18px rgba(0,0,0,.35); transition: transform .2s; }
.sp-thumb:hover .sp-play { transform: translate(-50%, -50%) scale(1.12); }
.sp-info b { display: block; font-size: 17px; color: var(--blue-800); overflow-wrap: anywhere; }
.sp-info small { color: var(--muted); font-weight: 700; }
.sp-actions { display: flex; gap: 6px; }
.sp-actions .btn { white-space: nowrap; padding-left: 10px; padding-right: 10px; }
.tab { white-space: nowrap; }
.sp-actions .btn:first-child { flex: 1; }
.sp-ren { display: flex; gap: 6px; }
.sp-ren input { flex: 1; min-width: 0; padding: 8px 10px; border: 2px solid var(--blue-100); border-radius: 10px; font: 800 15px var(--font-body); }
.sp-player video { width: 100%; max-height: 75vh; border-radius: 12px; background: #000; display: block; }
.sp-loading { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 50px 0; font-weight: 800; color: var(--blue-800); }
.sp-loading .spin { font-size: 40px; display: inline-block; animation: spin 1s linear infinite; }
.sp-speed { display: flex; gap: 6px; align-items: center; justify-content: center; margin-top: 10px; font-weight: 800; color: var(--blue-800); }
.sp-speed .pill { border: 0; cursor: pointer; font-family: inherit; background: var(--blue-100); color: var(--blue-800); }
.sp-speed .pill.on { background: var(--orange); color: #fff; }
@media (max-width: 560px) { .sp-form .btn, .sp-form .sp-pick { flex: 1; text-align: center; } }

/* ---------- sondaggio allenamento ---------- */
#homePoll .poll { margin: 14px 0; }
#boardPoll .poll { margin-bottom: 16px; }
.poll { border-left: 6px solid var(--orange); }
.poll.closed { border-left-color: var(--muted); }
.poll-head { display: flex; align-items: center; gap: 12px; }
.poll-head > div { flex: 1; min-width: 0; }
.poll-head b { display: block; color: var(--blue-800); font-size: 18px; }
.poll-head small { color: var(--muted); font-weight: 700; }
.poll-ico { font-size: 34px; }
.poll-count { text-align: center; font-weight: 800; color: var(--muted); font-size: 12px; line-height: 1.1; }
.poll-count b { display: block; font: 400 30px 'Anton', sans-serif; color: var(--orange); }
.poll-btns { display: flex; gap: 10px; margin-top: 14px; }
.poll-btn { flex: 1; padding: 14px 10px; border-radius: 14px; border: 2px solid var(--blue-100); background: #fff; font: 900 16px var(--font-body); color: var(--blue-800); cursor: pointer; transition: transform .15s, background .2s, color .2s, border-color .2s; }
.poll-btn:active { transform: scale(.96); }
.poll-btn.yes.on { background: #1f9d55; border-color: #1f9d55; color: #fff; }
.poll-btn.no.on { background: #d64545; border-color: #d64545; color: #fff; }
.poll-bar { height: 8px; border-radius: 999px; background: var(--blue-100); overflow: hidden; margin-top: 14px; }
.poll-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue-700), var(--orange)); transition: width .4s; }
.poll-more { display: inline-block; margin-top: 10px; font-weight: 900; color: var(--blue-700); text-decoration: none; }
.poll-lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 14px; }
.poll-lists h4 { margin: 0 0 6px; color: var(--blue-800); font-size: 14px; }
.pl-chip { display: inline-block; margin: 0 4px 4px 0; padding: 3px 9px; border-radius: 999px; background: #fff2f3; font-weight: 800; font-size: 13px; color: var(--blue-800); }

/* ---------- tutorial installa app ---------- */
.install-tip { position: relative; margin: 14px 0; border: 2px dashed var(--orange); transition: opacity .25s, transform .25s; }
.install-tip.out { opacity: 0; transform: translateY(-8px) scale(.98); }
.it-x { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--blue-100); color: var(--blue-800); font-size: 16px; font-weight: 900; cursor: pointer; }
.it-head { display: flex; gap: 12px; align-items: center; padding-right: 36px; }
.it-head img { width: 52px; height: 52px; border-radius: 14px; box-shadow: var(--shadow); }
.it-head b { display: block; color: var(--blue-800); font-size: 18px; }
.it-head small { color: var(--muted); font-weight: 700; }
.it-tabs { display: flex; gap: 6px; margin: 14px 0 10px; }
.it-tabs button { flex: 1; border: 0; padding: 8px 6px; border-radius: 999px; background: #fff2f3; color: var(--blue-800); font: 900 13px var(--font-body); cursor: pointer; white-space: nowrap; }
.it-tabs button.on { background: var(--blue-700); color: #fff; }
.it-body ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.it-body li { display: flex; gap: 10px; align-items: center; font-weight: 700; }
.it-n { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--orange); color: #fff; font-weight: 900; text-align: center; line-height: 28px; }
.it-ico { width: 20px; height: 20px; vertical-align: -4px; color: #f24559; }
.it-lead { font-weight: 700; margin: 0 0 10px; }
.it-warn, .it-note { font-weight: 700; font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.it-warn { color: #105282; margin: 0 0 10px; }
.it-done { margin-top: 12px; border: 0; background: none; color: var(--blue-700); font: 900 13px var(--font-body); text-decoration: underline; cursor: pointer; padding: 0; }

/* app aggiunta alla Home (iPhone): l'header scende sotto l'orologio/notch */
.topbar { padding-top: env(safe-area-inset-top); padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
.login-wrap { padding-top: max(20px, env(safe-area-inset-top)); }
.modal { padding-top: max(16px, env(safe-area-inset-top)); }

/* calendario su telefono: etichette su una riga, allineate a sinistra e a capo se non entrano */
.match-right .pill { white-space: nowrap; }
@media (max-width: 600px) {
  .match-right { flex-wrap: wrap; justify-content: flex-start; gap: 6px 8px; text-align: left; }
  .match-right .score { margin-right: auto; }
}

/* "letto da": cliccabile per coach e capitano */
button.seen { border: 0; background: var(--blue-100); color: var(--blue-800); padding: 6px 12px; border-radius: 999px; font-family: inherit; cursor: pointer; white-space: nowrap; transition: background .2s, color .2s; }
button.seen:hover { background: var(--orange); color: #fff; }
.seen-h { margin: 16px 0 8px; color: var(--blue-800); }

/* barra in basso con poche voci (es. tifosi): voci distribuite su tutta la larghezza, senza sfumatura */
@media (max-width: 860px) {
  .mnav:not(:has(a:nth-of-type(6))) { justify-content: space-around; }
  .mnav:not(:has(a:nth-of-type(6))) a { flex: 1 1 0; max-width: none; }
  .mnav:not(:has(a:nth-of-type(6)))::after { display: none; }
}

/* ---------- guida (i) ---------- */
.user-chip .help-btn { position: relative; width: 30px; height: 30px; padding: 0; border-radius: 50%; background: rgba(255,255,255,.18); border: 2px solid rgba(255,255,255,.55); color: #fff; font: italic 900 16px Georgia, 'Times New Roman', serif; line-height: 1; display: grid; place-items: center; flex: none; }
.user-chip .help-btn:hover { background: var(--orange); border-color: var(--orange); }
.help-btn.new::after { content: ''; position: absolute; top: -3px; right: -3px; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 2px var(--blue-900); animation: helpPulse 1.6s infinite; }
@keyframes helpPulse { 50% { transform: scale(1.35); } }
.help-modal .modal-box { max-width: 460px; }
.help-top { display: flex; align-items: center; gap: 10px; padding-right: 40px; }
.help-tag { background: var(--blue-700); color: #fff; font-weight: 900; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; padding: 5px 12px; border-radius: 999px; }
.help-count { color: var(--muted); font-weight: 800; font-size: 13px; }
.help-track { min-height: 260px; overflow: hidden; touch-action: pan-y; }
.help-step { text-align: center; padding: 18px 4px 4px; animation: helpIn .3s ease-out; }
.help-step.back { animation-name: helpBack; }
@keyframes helpIn { from { opacity: 0; transform: translateX(40px); } }
@keyframes helpBack { from { opacity: 0; transform: translateX(-40px); } }
.help-ico { font-size: 54px; line-height: 1; margin-bottom: 8px; animation: pop .45s cubic-bezier(.2,1.4,.4,1); }
.help-step h3 { margin: 0 0 8px; font: 400 26px var(--font-display); letter-spacing: .5px; color: var(--blue-800); }
.help-step p { margin: 0 auto; max-width: 380px; font-weight: 700; color: #5c3338; line-height: 1.5; }
.help-step p small { color: var(--muted); }
.help-go { display: inline-block; margin-top: 14px; font-weight: 900; color: var(--orange-600, #10539c); text-decoration: none; }
.help-dots { display: flex; justify-content: center; gap: 6px; margin: 14px 0; flex-wrap: wrap; }
.help-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 999px; background: var(--blue-100); cursor: pointer; transition: width .25s, background .25s; }
.help-dots button.on { width: 24px; background: var(--orange); }
.help-nav { display: flex; justify-content: space-between; gap: 10px; }

/* iPhone (iOS 26): la zona della barra di stato prende il colore di sfondo della pagina (html).
   Blu come l'header, così sopra non compare l'alone chiaro; il body tiene il suo sfondo chiaro. */
html { background-color: #a50f1f; }
body { min-height: 100vh; min-height: 100dvh; }

/* app aperta dalla Home: header un po' più in basso, lontano dalla sfocatura della barra di stato */
@media (display-mode: standalone) {
  .topbar { padding-top: calc(env(safe-area-inset-top) + 14px); }
  .scout-sb { top: calc(86px + env(safe-area-inset-top)); }
}

/* ---------- admin: nuovi giocatori / account scout ---------- */
.pl-add { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.pl-add .field { flex: 1 1 200px; margin: 0; }
.pl-add .field.pl-num { flex: 0 0 96px; }
.pl-add .btn { white-space: nowrap; }
.pl-hint { min-height: 1.2em; margin: 8px 0 0; font-weight: 800; font-size: 14px; }
.pl-hint.ok { color: var(--win); }
.pl-hint.bad { color: var(--loss); }
.pl-taken { margin-top: 10px; }
.pl-taken summary { cursor: pointer; font-weight: 900; color: var(--blue-700); }
.pl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; margin: 10px 0 8px; }
.pl-item { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 12px; background: #fff6f7; }
.pl-item b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-item small { color: var(--muted); font-weight: 700; }

.sc-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.home-scout { margin: 14px 0; }

/* area admin: sottomenu */
.adm-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 6px; background: #fff; border-radius: 18px; box-shadow: var(--shadow); margin-bottom: 8px; }
.adm-tab { border: 0; background: none; padding: 10px 6px; border-radius: 13px; font: 900 14px var(--font-body); color: var(--blue-800); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; transition: background .2s, color .2s; white-space: nowrap; }
.adm-tab span { font-size: 18px; }
.adm-tab:hover { background: #fff0f1; }
.adm-tab.on { background: var(--blue-800, #a50f1f); color: #fff; }
.adm-desc { margin: 4px 4px 16px; font-weight: 700; }
@media (max-width: 640px) {
  .adm-tab { flex-direction: column; gap: 2px; font-size: 12px; padding: 8px 2px; }
  .adm-tab span { font-size: 20px; }
}

/* ---------- barra in basso v2: max 5 voci fisse + menu ☰, più bassa ---------- */
@media (max-width: 860px) {
  .mnav {
    display: flex; justify-content: space-around; gap: 2px; overflow: visible;
    padding: 4px 4px max(4px, calc(env(safe-area-inset-bottom) - 14px));
  }
  .mnav::after { display: none; }
  .mnav a, .mnav-more {
    flex: 1 1 0; min-width: 0; max-width: none; display: flex; flex-direction: column; align-items: center; gap: 0;
    font: 800 10px var(--font-body); padding: 5px 2px 4px; border-radius: 12px; color: #ffe3e5; text-decoration: none;
  }
  .mnav a .ico, .mnav-more .ico { font-size: 19px; line-height: 1.15; position: relative; }
  .mnav a .lbl, .mnav-more .lbl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .mnav a.active, .mnav-more.active { background: var(--orange); color: #fff; }
  .mnav-more { border: 0; background: none; cursor: pointer; }
  .mnav-more.open { background: rgba(255,255,255,.16); color: #fff; }
  main { padding-bottom: calc(74px + env(safe-area-inset-bottom)) !important; }

  .mnav-sheet { position: fixed; inset: 0; z-index: 39; background: rgba(81,8,14, .45); display: flex; align-items: flex-end; animation: fadeIn .18s ease; }
  .mnav-sheet[hidden] { display: none; }
  .mnav-sheet-box {
    width: 100%; background: #fff; border-radius: 22px 22px 0 0; box-shadow: 0 -8px 30px rgba(0,0,0,.25);
    padding: 14px 14px calc(70px + max(4px, env(safe-area-inset-bottom) - 14px)); animation: sheetUp .22s cubic-bezier(.2,.9,.3,1.1);
  }
  .mnav-sheet-t { display: block; font: 400 20px var(--font-title, 'Anton'), sans-serif; color: var(--blue-800); letter-spacing: 1px; margin: 0 4px 10px; }
  .mnav-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .mnav-grid a {
    display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 4px; border-radius: 16px;
    background: #fff0f1; color: var(--blue-800); text-decoration: none; font: 900 13px var(--font-body);
  }
  .mnav-grid a .ico { font-size: 24px; position: relative; }
  .mnav-grid a.active { background: var(--orange); color: #fff; }
}
@media (min-width: 861px) { .mnav-sheet { display: none !important; } }
@keyframes sheetUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- adattamento dispositivi (iPhone, Android, iPad, tablet) ---------- */
/* tablet in verticale (600–860): barra in basso con tutte le voci, centrata e non stirata */
@media (min-width: 600px) and (max-width: 860px) {
  .mnav { justify-content: center; }
  .mnav a, .mnav-more { flex: 1 1 0; max-width: 112px; font-size: 11px; }
}
/* schermi medi con menu in alto (iPad orizzontale, tablet Android orizzontale): icona + nome piccolo, si capisce anche al tocco */
@media (min-width: 861px) and (max-width: 1360px) {
  .top-nav a { flex-direction: column; gap: 1px; font-size: 10px; padding: 5px 8px; border-radius: 12px; line-height: 1.1; }
  .top-nav a .ico { font-size: 19px; }
}
/* telefono in orizzontale: header e barra più sottili, più spazio ai contenuti */
@media (max-width: 960px) and (max-height: 500px) and (orientation: landscape) {
  .topbar-inner { padding-top: 6px !important; padding-bottom: 6px !important; }
  .brand img { width: 38px; height: 38px; }
  .brand b { font-size: 16px; }
  .brand small { font-size: 9px; }
  .mnav { padding-top: 3px; padding-bottom: max(3px, calc(env(safe-area-inset-bottom) - 18px)); }
  .mnav a, .mnav-more { flex-direction: row; justify-content: center; gap: 6px; font-size: 12px; padding: 6px 4px; }
  .mnav a .ico, .mnav-more .ico { font-size: 17px; }
  main { padding-bottom: calc(56px + env(safe-area-inset-bottom)) !important; }
  .mnav-sheet-box { padding-bottom: 56px; max-height: 80vh; overflow-y: auto; }
  .mnav-grid { grid-template-columns: repeat(4, 1fr); }
}
/* telefoni stretti: i 3 passi del coach stanno su una riga */
@media (max-width: 480px) {
  .steps { gap: 6px; flex-wrap: nowrap; }
  .steps button { min-width: 0; padding-left: 6px; padding-right: 6px; font-size: 12px; white-space: nowrap; }
}
.wa-check input { flex-shrink: 0; }

/* ---------- menu ☰ in alto (troppe sezioni per la barra in basso) ---------- */
.burger-btn, .burger-sheet { display: none; }
@media (max-width: 860px) {
  .user-chip.has-burger #logout { display: none; }
  .burger-btn {
    display: inline-flex; align-items: center; justify-content: center; position: relative;
    width: 40px; height: 40px; padding: 0 !important; border-radius: 12px !important; background: rgba(255,255,255,.15) !important;
  }
  .burger-btn.open { background: var(--orange) !important; }
  .burger-ico { display: flex; flex-direction: column; gap: 4px; width: 20px; }
  .burger-ico i { display: block; height: 2.5px; border-radius: 2px; background: #fff; transition: transform .2s, opacity .2s; }
  .burger-btn.open .burger-ico i:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .burger-btn.open .burger-ico i:nth-child(2) { opacity: 0; }
  .burger-btn.open .burger-ico i:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  .burger-btn .nav-badge { top: -5px; right: -5px; }
  .burger-sheet { display: block; position: fixed; inset: 0; z-index: 19; background: rgba(81,8,14, .45); animation: fadeIn .18s ease; }
  .burger-sheet[hidden] { display: none; }
  .burger-box {
    background: #fff; border-radius: 0 0 22px 22px; box-shadow: 0 10px 30px rgba(0,0,0,.25);
    padding: 80px 14px 14px; max-height: 100%; overflow-y: auto; animation: sheetDown .22s cubic-bezier(.2,.9,.3,1.1);
  }
  .burger-box .mnav-grid a .ico { position: relative; }
  .burger-foot { display: flex; gap: 8px; justify-content: space-between; margin-top: 12px; padding-top: 12px; border-top: 1px solid #f9e9eb; }
  .burger-foot .btn { flex: 1; text-decoration: none; }
  body.burger-open { overflow: hidden; }
  main:not(:has(~ .mnav)) { padding-bottom: calc(28px + env(safe-area-inset-bottom)) !important; }
}
@media (min-width: 600px) and (max-width: 860px) { .burger-box .mnav-grid { grid-template-columns: repeat(4, 1fr); } }
@keyframes sheetDown { from { transform: translateY(-30px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Home: scorciatoie sotto il benvenuto */
.home-shortcuts { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 4px; }
.home-shortcuts .btn { text-decoration: none; }
@media (max-width: 480px) { .home-shortcuts .btn { flex: 1 1 auto; } }

/* con il menu ☰ il profilo sta nel menu: niente icona nell'header */
@media (max-width: 860px) { .user-chip.has-burger .who-link { display: none; } }
.burger-box .mnav-grid a .lbl { text-align: center; line-height: 1.15; }
.user-chip .share-btn { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.15); text-decoration: none; font-size: 15px; flex: none; transition: background .2s; }
.user-chip .share-btn:hover { background: var(--orange); }

/* Home: comunicazioni nuove in bacheca */
.home-board {
  display: flex; align-items: center; gap: 14px; margin: 14px 0 0; padding: 14px 16px; border-radius: 18px; text-decoration: none;
  background: linear-gradient(90deg, var(--blue-800), var(--blue-500)); color: #fff; box-shadow: var(--shadow); animation: pageIn .4s ease;
}
.home-board .hb-ico { position: relative; font-size: 28px; flex: none; }
.home-board .hb-ico i { position: absolute; top: -6px; right: -10px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--orange); color: #fff; font: 900 12px/20px var(--font-body); text-align: center; font-style: normal; box-shadow: 0 0 0 2px var(--blue-800); }
.home-board .hb-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.home-board .hb-body > b { font-size: 15px; }
.home-board .hb-prev { font-size: 13px; opacity: .9; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.home-board .hb-go { flex: none; font-weight: 900; background: rgba(255,255,255,.18); padding: 6px 12px; border-radius: 999px; font-size: 13px; }
@media (max-width: 420px) { .home-board .hb-go { display: none; } }

/* Home: condividi il portale */
.share-card { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.share-card .sc-ico { font-size: 34px; flex: none; }
.share-card .sc-txt { flex: 1 1 240px; min-width: 0; }
.share-card .sc-txt b { color: var(--blue-800); font-size: 16px; }
.share-card .sc-txt p { margin: 4px 0 0; font-weight: 700; }
.share-card .sc-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.share-card .sc-btns .btn { text-decoration: none; }
@media (max-width: 480px) { .share-card .sc-btns { width: 100%; } .share-card .sc-btns .btn { flex: 1; } }

/* area admin › Partite: "Nuova partita" centrato, sopra la scelta della partita */
.adm-new { justify-content: center; margin: 4px 0 14px; }
.adm-pane[data-panes="partite"] > .new-game { margin-bottom: 14px; }

/* ---------- MVP ---------- */
.mvp-card { display: flex; align-items: center; gap: 14px; margin-top: 14px; flex-wrap: wrap; border: 2px solid var(--orange); }
.mvp-card.won { border-color: #1f43af; background: linear-gradient(90deg, #e1e9fd, #fff); }
.mvp-medal { font-size: 36px; flex: none; }
.mvp-txt { flex: 1 1 200px; min-width: 0; }
.mvp-txt b { color: var(--blue-800); font-size: 16px; }
.mvp-txt p { margin: 3px 0 0; font-weight: 700; font-size: 14px; }
.mvp-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.mvp-c { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; text-align: left; padding: 10px 12px; border-radius: 16px; border: 2px solid #f9e6e8; background: #fff6f7; cursor: pointer; font-family: var(--font-body); color: var(--blue-800); }
.mvp-c:hover { border-color: var(--orange); }
.mvp-c.on { border-color: var(--orange); background: #deebfd; }
.mvp-c .mvp-n { grid-row: span 2; font: 30px Anton, sans-serif; color: var(--orange); min-width: 36px; text-align: center; }
.mvp-c b { font-size: 15px; } .mvp-c small { color: #8c5b60; font-weight: 700; font-size: 12px; }
.box-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.pill.mvp-pill { background: #c4d2fb; color: #072463; font-weight: 900; }

/* ---------- statistiche: schede, chips, classifiche, confronto, andamento ---------- */
.stat-tabs { margin-bottom: 16px; }
@media (max-width: 480px) { .stat-tabs .tab { padding: 10px 8px; font-size: 13px; } }
.rchips { display: flex; flex-wrap: wrap; gap: 6px; }
.rchip { border: 0; background: #fff0f1; color: var(--blue-800); padding: 7px 12px; border-radius: 999px; font: 800 13px var(--font-body); cursor: pointer; }
.rchip.on { background: var(--blue-800); color: #fff; }
.seg { display: inline-flex; background: #fff0f1; border-radius: 999px; padding: 4px; gap: 4px; }
.seg button { border: 0; background: none; padding: 7px 14px; border-radius: 999px; font: 800 13px var(--font-body); color: var(--blue-800); cursor: pointer; }
.seg button.on { background: var(--orange); color: #fff; }
.rank-list { display: flex; flex-direction: column; gap: 4px; }
.rk-row { display: grid; grid-template-columns: 36px minmax(0, 1.6fr) minmax(50px, 1fr) 50px; align-items: center; gap: 10px; padding: 8px 6px; border-radius: 12px; }
.rk-row.me { background: #deebfd; }
.rk-pos { font: 22px Anton, sans-serif; color: var(--blue-800); text-align: center; }
.rk-pos.top1, .rk-pos.top2, .rk-pos.top3 { font-size: 24px; }
.rk-name { min-width: 0; display: flex; flex-direction: column; }
.rk-name b { color: var(--blue-800); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rk-name small { color: #996b70; font-weight: 700; font-size: 12px; }
.rk-bar { height: 10px; background: #fff0f1; border-radius: 99px; overflow: hidden; }
.rk-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue-500, #cc1626), var(--orange)); border-radius: 99px; animation: grow .7s ease; }
.rk-v { font: 24px Anton, sans-serif; color: var(--blue-800); text-align: right; }
@keyframes grow { from { width: 0; } }
.cmp-pick { display: flex; align-items: flex-end; gap: 10px; }
.cmp-pick .field { flex: 1; margin: 0; min-width: 0; }
.cmp-vs { font: 26px Anton, sans-serif; color: var(--orange); padding-bottom: 10px; }
.cmp-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.cmp-head b { font: 22px Anton, sans-serif; } .cmp-head .ca { color: #cc1626; } .cmp-head .cb { color: var(--orange); text-align: right; }
.cmp-head span { color: #996b70; font-weight: 800; font-size: 12px; }
.cmp-row { display: grid; grid-template-columns: 52px 1fr minmax(80px, auto) 1fr 52px; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid #fbf0f1; }
.cmp-row .cl { text-align: center; font-weight: 800; font-size: 13px; color: var(--blue-800); }
.cmp-row .cv { font: 20px Anton, sans-serif; color: #a87c80; } .cmp-row .cv:last-child { text-align: right; }
.cmp-row .cv.win { color: var(--blue-800); }
.cbar { height: 10px; background: #fff0f1; border-radius: 99px; overflow: hidden; display: flex; }
.cbar.l { justify-content: flex-end; } .cbar i { display: block; height: 100%; border-radius: 99px; animation: grow .7s ease; }
.cbar.l i { background: #cc1626; } .cbar.r i { background: var(--orange); }
@media (max-width: 480px) { .cmp-row { grid-template-columns: 44px 1fr 74px 1fr 44px; gap: 5px; } .cmp-row .cl { font-size: 11px; } .cmp-row .cv { font-size: 17px; } .cmp-pick { flex-wrap: wrap; } .cmp-vs { display: none; } .cmp-pick .field { flex-basis: 100%; } }
.lchart { margin-top: 10px; }
.lchart .lc-grid { stroke: #f9e9eb; stroke-width: 1; }
.lchart .lc-ax { fill: #a87c80; font: 700 12px var(--font-body); }
.lchart .lc-v { font: 900 13px var(--font-body); }
.lchart .lc-line { stroke-dasharray: 2000; stroke-dashoffset: 2000; animation: draw 1.2s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.lc-legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; font-weight: 800; color: var(--blue-800); font-size: 13px; }
.lc-legend i { display: inline-block; width: 14px; height: 4px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.lchart { max-height: 320px; }
.lchart .lc-ax { font-size: 11px; }
.lchart .lc-v { font-size: 12px; }
.lchart .lc-line { stroke-width: 3; }

/* loghi delle avversarie */
.team-badge .circle.team-logo { background: #fff; }
.team-badge .circle.team-logo img { object-fit: contain; padding: 4px; }

/* calendario/risultati: loghi accanto ai nomi */
.match-row .teams .tm { display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; }
.match-row .teams .tl { width: 28px; height: 28px; border-radius: 50%; object-fit: contain; background: #fff; box-shadow: 0 0 0 1.5px #f6e0e2; flex: none; }
@media (max-width: 480px) { .match-row .teams .tl { width: 24px; height: 24px; } }

/* classifica: loghi delle squadre (anche su telefono, piccoli) */
.st-table td.tn img { object-fit: contain; background: #fff; box-shadow: 0 0 0 1.5px #f6e0e2; flex: none; }
.st-table td.tn .tn-none { width: 26px; height: 26px; flex: none; }
@media (max-width: 560px) {
  .st-table td.tn img { display: inline-block; width: 18px; height: 18px; vertical-align: middle; margin-right: 4px; }
  .st-table td.tn .tn-none { display: none; }
  .st-table td.tn { max-width: 104px; }
}

/* statistiche: campionato / amichevoli / tutte */
.scope-seg { display: flex; width: fit-content; max-width: 100%; margin: -4px 0 16px; }
.scope-seg button { white-space: nowrap; }
@media (max-width: 480px) { .scope-seg { width: 100%; } .scope-seg button { flex: 1; padding: 8px 4px; font-size: 12px; } }

/* ---------- traguardi e presenze ---------- */
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.badge { background: #fbf3f3; border-radius: 18px; padding: 14px 10px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; opacity: .55; filter: grayscale(1); }
.badge.ok { background: linear-gradient(160deg, #fff, #e0edfd); box-shadow: var(--shadow); opacity: 1; filter: none; border: 2px solid #8cbcf6; }
.badge .b-ico { font-size: 34px; line-height: 1.1; }
.badge b { color: var(--blue-800); font-size: 14px; }
.badge small { color: #996b70; font-weight: 700; font-size: 11.5px; line-height: 1.25; }
@media (max-width: 480px) { .badges { grid-template-columns: repeat(2, 1fr); } }
.att-card { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: center; margin-bottom: 12px; }
.att-card .att-ico { font-size: 32px; grid-row: span 2; }
.att-card b { color: var(--blue-800); } .att-card p { margin: 2px 0 0; font-weight: 700; font-size: 13px; }
.att-bar { grid-column: 2; height: 10px; background: #fff0f1; border-radius: 99px; overflow: hidden; }
.att-bar i { display: block; height: 100%; background: linear-gradient(90deg, #cc1626, var(--orange)); border-radius: 99px; animation: grow .8s ease; }

/* ---------- calendario sul telefono ---------- */
.cal-sync { display: flex; justify-content: center; margin: -6px 0 6px; }
.cal-sync .btn { text-decoration: none; }
.cal-opts { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 12px; }
.cal-opts .btn { text-decoration: none; justify-content: center; }

/* ---------- offline ---------- */
.offline-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(70px + env(safe-area-inset-bottom)); z-index: 60; background: #5c272d; color: #fff; font-weight: 800; font-size: 13px; padding: 9px 16px; border-radius: 999px; box-shadow: 0 8px 24px rgba(0,0,0,.3); white-space: nowrap; max-width: calc(100% - 24px); overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 861px) { .offline-bar { bottom: 20px; } }
.offline-wait p { font-weight: 800; color: var(--blue-800); text-align: center; padding: 0 24px; }

/* report PDF */
.report-cta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.report-cta > div { flex: 1 1 220px; }

/* admin: presenze allenamenti */
.att-top { display: flex; gap: 10px; align-items: flex-end; }
.att-sum { margin: 12px 0 8px; font-weight: 700; color: #784a4e; }
.att-sum b { color: var(--blue-800); font-size: 17px; }
.att-list { display: flex; flex-direction: column; gap: 4px; }
.att-row { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; padding: 6px 4px; border-top: 1px solid #fbf0f1; }
.att-row b { color: var(--blue-800); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att-row b small { color: var(--orange); }
.att-seg { display: inline-flex; background: #fff0f1; border-radius: 999px; padding: 3px; gap: 2px; }
.att-seg button { border: 0; background: none; width: 40px; height: 32px; border-radius: 999px; cursor: pointer; font: 900 15px var(--font-body); color: #a87c80; opacity: .55; }
.att-seg button.on { opacity: 1; background: #fff; box-shadow: 0 2px 6px rgba(107,10,18,.15); color: var(--blue-800); }
.att-seg button.on.yes { background: #dcf5e7; } .att-seg button.on.no { background: #fde2e2; }
.att-add { margin-top: 14px; } .att-add summary { cursor: pointer; font-weight: 800; color: var(--blue-800); }

/* ---------- mappa di tiro ---------- */
.scourt { width: 100%; height: auto; display: block; border-radius: 14px; overflow: hidden; }
.scourt .cz-floor { fill: #bbcded; }
.scourt .cz { stroke: rgba(255,255,255,.65); stroke-width: 1.5; transition: fill .15s, filter .15s; }
.scourt .cz-lines { stroke: #214265; stroke-width: 3; }
.scourt .cz-lines .cz-board { stroke-width: 5; stroke: #141f2b; }
.scourt .cz-rim { stroke: var(--orange, #1565c0); stroke-width: 4; }
.scourt .cz-pct { font: 900 20px Anton, sans-serif; fill: #a50f1f; paint-order: stroke; stroke: rgba(255,255,255,.85); stroke-width: 4px; }
.scourt .cz-n { font: 800 13px Nunito, sans-serif; fill: #a50f1f; paint-order: stroke; stroke: rgba(255,255,255,.85); stroke-width: 3px; }
.scourt .cz-lbl { font: 900 17px Nunito, sans-serif; fill: #a50f1f; pointer-events: none; paint-order: stroke; stroke: rgba(255,255,255,.9); stroke-width: 4px; }
.scourt.picking .cz.pickable { cursor: pointer; }
.scourt.picking .cz.pickable:hover, .scourt.picking .cz.pickable:active { fill: rgba(21,101,192,.55); }
.scourt.picking .cz.off { pointer-events: none; }
.shot-map .scourt { max-width: 520px; margin: 0 auto; }
.zs-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.zs-g { position: relative; background: #fdf3f4; border-radius: 14px; padding: 10px 10px 14px; text-align: center; overflow: hidden; }
.zs-g b { display: block; color: var(--blue-800); font-size: 13px; }
.zs-g .zs-p { display: block; font: 28px Anton, sans-serif; color: var(--blue-800); }
.zs-g small { color: #996b70; font-weight: 700; font-size: 11.5px; }
.zs-g i { position: absolute; left: 0; bottom: 0; height: 5px; background: var(--orange); border-radius: 0 3px 3px 0; }
.zs-facts { display: flex; flex-direction: column; gap: 4px; margin-top: 12px; font-weight: 700; color: #7c4349; font-size: 14px; }
.zs-facts b { color: var(--blue-800); }
.zs-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin-top: 10px; font-size: 12px; font-weight: 800; color: #784a4e; }
.zs-legend i { display: inline-block; width: 14px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: middle; }
.zs-legend small { flex-basis: 100%; color: #b08a8e; font-weight: 700; }
@media (max-width: 480px) { .zs-groups { grid-template-columns: 1fr 1fr 1fr; gap: 5px; } .zs-g .zs-p { font-size: 22px; } .zs-g b { font-size: 11.5px; } }
.feed .fz { color: #996b70; font-weight: 700; }

/* statistiche giocatore: Partite / Allenamenti / Traguardi */
.psub { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; margin: -4px 0 14px; }
.psub button { border: 2px solid #f6e0e2; background: #fff; border-radius: 14px; padding: 10px 6px; font: 900 14px var(--font-body); color: var(--blue-800); cursor: pointer; white-space: nowrap; }
.psub button.on { background: var(--blue-800); border-color: var(--blue-800); color: #fff; box-shadow: 0 6px 16px rgba(165,15,31,.25); }
@media (max-width: 480px) { .psub button { font-size: 12.5px; padding: 9px 4px; } }
.att-card + .att-recent, .grid + .att-card { margin-top: 12px; }
.att-recent { display: flex; flex-direction: column; }
.att-r { display: flex; justify-content: space-between; padding: 9px 2px; border-top: 1px solid #fbf0f1; font-weight: 800; }
.att-r:first-child { border-top: 0; }
.att-r b { color: var(--blue-800); } .att-r span { color: #996b70; } .att-r span.yes { color: #1a9e5c; } .att-r span.no { color: #d03b3b; }
.badge-head { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: center; margin-bottom: 12px; }
.badge-head .b-big { font-size: 34px; grid-row: span 2; }
.badge-head b { color: var(--blue-800); font-size: 17px; } .badge-head p { margin: 2px 0 0; font-weight: 700; font-size: 13px; }
.badge-head .att-bar { grid-column: 2; }
.scourt .cz { stroke: rgba(255,255,255,.85); stroke-width: 2; }
.scourt .cz-lane { stroke: #214265; stroke-width: 2; stroke-dasharray: 6 6; fill: none; opacity: .45; pointer-events: none; }
.poll-btn .poll-sub { display: block; font-size: 12px; font-weight: 800; opacity: .75; margin-top: 2px; }

/* diretta video YouTube */
.yt-card { padding: 10px; margin-bottom: 14px; }
.yt-wrap { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; }
.yt-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-note { margin: 8px 2px 0; font-size: 13px; font-weight: 800; color: var(--muted, #8c5b60); }
.yt-note a { color: inherit; }

/* analisi video (admin) */
.va-sub { font-weight: 800; margin-top: -6px; }
.va-player { padding: 8px; position: sticky; top: calc(env(safe-area-inset-top) + 64px); z-index: 5; }
.va-sync { padding: 12px 14px; }
.va-sync-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.va-sync-st { font-weight: 900; color: #105282; }
.va-sync-st.ok { color: #15803d; }
.va-nudge { display: flex; gap: 6px; }
.va-help { font-size: 13px; font-weight: 700; margin: 8px 0; }
.va-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.va-filters select { flex: 1 1 140px; min-width: 0; padding: 10px; border-radius: 12px; border: 2px solid #f6d9dc; font-weight: 800; background: #fff; }
.va-list { list-style: none; margin: 0; padding: 0; max-height: 60vh; overflow-y: auto; }
.va-list li { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; padding: 9px 8px; border-radius: 10px; cursor: pointer; font-weight: 700; font-size: 14px; border-bottom: 1px solid #fbf0f1; }
.va-list li:hover { background: #fff4f5; }
.va-list li.on { background: #dae8fc; box-shadow: inset 4px 0 0 #1565c0; }
.va-list li.play { background: #ffebed; box-shadow: inset 4px 0 0 #cc1626; }
.va-when { font-weight: 900; color: #8c5b60; font-size: 12px; }
.va-vt { font-weight: 900; color: #cc1626; font-size: 13px; white-space: nowrap; }
@media (max-width: 860px) { .va-player { top: calc(env(safe-area-inset-top) + 56px); } }

/* plus/minus */
table.stats td.pm { font-weight: 900; }
table.stats td.pm.up { color: #15803d; }
table.stats td.pm.down { color: #c62828; }
.pm-note { font-size: 12.5px; font-weight: 700; margin: 6px 2px 0; }
/* calendario: prossima partita */
/* pulsanti in cima al calendario: due metà uguali, centrati */
.cal-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; max-width: 520px; margin: -4px auto 12px; padding: 0 2px 6px; }
.cal-actions.one { grid-template-columns: minmax(0, 1fr); max-width: 300px; }
.cal-actions .btn { width: 100%; min-width: 0; display: flex; align-items: center; justify-content: center; text-align: center; line-height: 1.2; padding: 10px 10px; text-decoration: none; }
@media (max-width: 400px) { .cal-actions .btn { font-size: 12px; letter-spacing: .2px; padding: 9px 8px; } }
/* lampeggio della prossima partita: su uno strato sopra la card (l'animazione di entrata della card non si tocca) */
.match-row.flash { position: relative; }
.match-row.flash::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; animation: calFlash 1.6s ease-out forwards; }
@keyframes calFlash { 0%, 35% { box-shadow: inset 0 0 0 4px var(--orange, #1565c0), 0 0 0 6px rgba(21,101,192,.45); background: rgba(21,101,192,.12); } 100% { box-shadow: inset 0 0 0 0 rgba(21,101,192,0), 0 0 0 0 rgba(21,101,192,0); background: transparent; } }
/* allenamenti saltati (admin) */
.nt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.nt-day { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 6px; border-radius: 12px; border: 2px solid #f6d9dc; background: #fff; font: inherit; cursor: pointer; color: var(--blue-800, #a50f1f); }
.nt-day b { font-size: 14px; text-transform: capitalize; }
.nt-day small { font-weight: 800; font-size: 11.5px; color: #15803d; }
.nt-day.off { background: #fdecea; border-color: #e57373; }
.nt-day.off small { color: #c62828; }
.nt-day:disabled { opacity: .55; cursor: default; }
.nt-day:disabled small { color: #8c5b60; }
/* tabellino per i tifosi (pannello dal calendario) */
.fan-box-head { display: flex; flex-direction: column; gap: 2px; text-align: center; margin-bottom: 12px; color: var(--blue-800, #a50f1f); }
.fan-box-head b { font-size: 17px; }
.fan-box-head small { font-weight: 800; color: #8c5b60; text-transform: capitalize; }

/* ===== sport: calcio a 11 ===== */
.pill.draw { background: #f8f0f1; color: #8c5b60; }
.sa-opp div { grid-template-columns: 1fr; }
.sa-opp button { font-size: 20px; letter-spacing: .5px; }
.sa-subbtn.gk { margin-top: 6px; font-size: 13px; }
.sa-subbtn.gk.on { background: #fff; color: var(--blue-800); }
td.cards { white-space: nowrap; letter-spacing: -2px; }
.steps [data-t="map"] { display: none; }
.court.futsal { border-radius: 18px; }
.sa .sa-pad .sa-grid:not(.fx) { grid-template-columns: repeat(5, 1fr); }
.sa .sa-pad .sa-grid:not(.fx) .sa-a[data-a="gl"] { grid-row: span 2; font-size: clamp(18px, 6vh, 30px); }
.sa-a.card-y { background: #1237bf; color: #02091a; }
.sa-a.card-r { background: #b91c1c; }
.sa .sa-opp button { white-space: nowrap; font-size: clamp(15px, 4.5vh, 20px); }
@media (orientation: portrait) { .sa.portrait-ok .sa-pad .sa-grid:not(.fx) { grid-template-columns: repeat(3, 1fr); } }

.court.pitch { border-radius: 18px; }
.court-wrap.c11 { max-width: min(440px, 80vh); }
.court-wrap.c11 .spot .disc { width: 42px; height: 42px; font-size: 13px; }
.court-wrap.c11 .spot.filled .disc { font-size: 20px; }
.court-wrap.c11 .spot .lbl { font-size: 9.5px; padding: 1px 6px; max-width: 86px; overflow: hidden; text-overflow: ellipsis; }
.c11-form { display: flex; gap: 10px; align-items: center; justify-content: center; margin: 0 0 10px; font-weight: 900; }
.c11-form select { padding: 6px 10px; border-radius: 10px; border: 1.5px solid #f6e0e2; font: 800 15px var(--font-body); }
.sa .sa-court:has(.sa-p:nth-child(11)) { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: minmax(0, 1fr); gap: 4px; }
.sa .sa-court:has(.sa-p:nth-child(11)) .sa-p { padding: 0 6px; column-gap: 5px; }
.sa .sa-court:has(.sa-p:nth-child(11)) .sa-p b { font-size: clamp(16px, 4.6vh, 24px); }
.sa .sa-court:has(.sa-p:nth-child(11)) .sa-p .nm { font-size: 11px; }
.sa .sa-court:has(.sa-p:nth-child(11)) .sa-p .info { font-size: 9.5px; }
.sa .sa-court:has(.sa-p:nth-child(11)) .sa-subbtn { padding: 4px; font-size: 12px; margin: 0; }
.sa:has(.sa-p:nth-child(11)) { grid-template-columns: minmax(210px, 32%) 1fr minmax(130px, 19%); }
.sa .sa-pad .sa-grid:not(.fx) { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: 1fr 1fr 1fr .8fr; }

/* ===== comune: allenamenti configurabili ===== */
.tr-days { display: flex; flex-wrap: wrap; gap: 6px; }
.tr-day { border: 2px solid var(--blue-100); background: #fff; color: var(--ink); border-radius: 12px; padding: 8px 12px; font: 900 14px var(--font-body); cursor: pointer; }
.tr-day.on { background: var(--blue-700); border-color: var(--blue-700); color: #fff; }
.pl-coach { align-self: end; margin: 0 0 8px; white-space: nowrap; }
.app-privacy { text-align: center; font-size: 12px; margin: 4px 0 14px; }
.app-privacy a { color: var(--muted); }

/* ===== demo ===== */
.demo-box { background: linear-gradient(135deg, var(--blue-800), var(--blue-700)); color: #fff; border-radius: 16px; padding: 14px; margin: 0 0 14px; display: grid; gap: 6px; }
.demo-box span { font-size: 13px; opacity: .9; font-weight: 700; }
.demo-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
.demo-btns .btn { padding: 10px 8px; font-size: 14px; }
.demo-ribbon { position: fixed; left: 10px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 90; background: #1f1212; color: #fff; text-decoration: none; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 800; box-shadow: 0 6px 18px rgba(0,0,0,.3); }
.demo-ribbon b { color: var(--orange); }
@media (min-width: 861px) { .demo-ribbon { bottom: 16px; } }
body.scout-on .demo-ribbon { display: none; }
