/* ============================================================
   FANTAFIFA — tema "campo sotto i riflettori"
   Ri-tematizza gli hook storici di fifamasterXLS SENZA
   rinominarli: gli id/classi sono contratti del JS legacy.
   Richiede: fonts.css + fifa-tokens.css caricati prima.
   Va caricato DOPO i css funzionali dei plugin (qtip, alertify,
   chat, jquery-ui) per vincerne la specificità in cascata.
   ============================================================ */

/* ------------------------------------------------ base ---- */
*, *::before, *::after { box-sizing: border-box; }

html { color-scheme: dark; }

body {
  margin: 0;
  background: var(--notte);
  color: var(--gesso);
  font: 400 14px/1.5 var(--font-body);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* riflettori: alone chiaro appena percettibile in cima al campo */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(1100px 420px at 50% -160px, rgba(194, 240, 76, .07), transparent 65%),
    radial-gradient(900px 340px at 50% -120px, rgba(233, 239, 233, .05), transparent 60%);
  z-index: 0;
}

::selection { background: var(--verde-scuro); color: var(--gesso); }

img { border: 0; vertical-align: middle; max-width: 100%; height: auto; }

a { color: var(--verde-hover); text-decoration: none; }
a:hover { color: var(--lime); }

:focus-visible {
  outline: 2px solid var(--verde);
  outline-offset: 2px;
  border-radius: 3px;
}

/* scrollbar scure */
* { scrollbar-color: var(--linea-forte) var(--campo-0); scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--linea-forte); border-radius: 6px; }
::-webkit-scrollbar-track { background: var(--campo-0); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--gesso);
  margin: 0 0 .45em;
}

p { margin: 0; }

/* ------------------------------ compat legacy (reset.css) ---- */
/* Il markup del 2014 dà per scontato il reset originale: niente
   pallini né rientri sulle liste, paragrafi senza margine.
   I margini di prosa vengono ridati solo dove serve. */
ul, ol, li { list-style: none; margin: 0; padding: 0; }
dl, dd, dt, blockquote, pre { margin: 0; padding: 0; }
fieldset, img { border: 0; }

/* prosa: qui i paragrafi respirano */
#span1 p, #span2 p, #resetpsw p, .brand p, .history-text,
.reg-chiuse p, .questiontext p, .msg-error p, .msg-success p { margin: 0 0 1em; }
#span1 p:last-child, #span2 p:last-child, #resetpsw p:last-child { margin-bottom: 0; }

/* lista manager: il pallino online/offline (inline "position:absolute; left:25px")
   è figlio diretto della cella: la cella diventa il suo riferimento e il pallino
   si posa sull'angolo dell'avatar */
td.table0 { position: relative; }
td.table0 > img[src*="online.png"], td.table0 > img[src*="offline.png"] {
  left: 26px !important; top: 50% !important; margin-top: 1px;
  width: 10px; height: 10px;
  border: 2px solid var(--campo-0); border-radius: 50%; box-sizing: content-box;
}

/* pillole dentro le celle: mai in blocco, sempre centrate in riga */
p.bidauc { display: inline-block; margin: 0; }
td.table1 > p, td.table0 > p { margin: 0; }
td .label, td .labelov, td .labelage, td .bidauc,
td span.ck1, td span.ck2, td span.ck3, td span.ck4, td span.ck5, td span.ck6 { vertical-align: middle; }

/* righe a due colonne di stile.css (statistiche, goals_scored): da float a griglia */
.row, .row2, .row3 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  width: 100%;
  margin: 0 0 18px;
  min-height: 0;
  overflow: visible;
}
.row .grid1, .row .grid2, .row2 .grid1, .row2 .grid2, .row3 .grid1, .row3 .grid2 {
  width: auto; float: none !important; margin: 0; display: block;
}
.box .bC { overflow: visible; }
table.sortTable td img { margin-left: 6px; vertical-align: middle; }
@media (max-width: 760px) { .row, .row2, .row3 { grid-template-columns: 1fr; } }

/* intestazione dei frammenti .tablepretty (tooltip storico offerte, prestiti, albo) */
.tablepretty thead td {
  background: var(--campo-1);
  color: var(--gesso-3);
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--linea-forte);
}
.tablepretty td.table1pbh { font-weight: 600; }

/* ------------------------------------- gabbia di pagina ---- */
#wrapper { position: relative; z-index: 1; min-height: 100vh; }

#doc {
  width: min(var(--maxw), 100% - 32px);
  margin: 0 auto;
}

/* topbar */
#header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: var(--topbar-h);
  padding: 10px 0 14px;
  margin-bottom: 26px;
}

/* linea di gesso con cerchio di centrocampo: la firma della pagina */
#header::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--gesso-linea);
}
#header::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  width: 26px; height: 26px;
  transform: translate(-50%, 50%);
  border: 1px solid var(--gesso-linea);
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--gesso-linea) 0 1.5px, transparent 2px),
    var(--notte);
  pointer-events: none;
}

/* wordmark */
#header #logo, #logo {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 30px;
  line-height: 1;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: var(--gesso);
  white-space: nowrap;
}
#logo::first-letter { color: var(--lime); }
#logo:hover { color: var(--gesso); }

#navigation { flex: 1 1 auto; min-width: 0; }

/* ----------------------------------------- menu globale ---- */
ul.gmenu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}
ul.gmenu > li { position: relative; }
/* ponte invisibile: il mouse non "esce" mai tra la voce e il sottomenu (fine del flicker) */
ul.gmenu > li.dropdown { padding-bottom: 6px; margin-bottom: -6px; }
ul.gmenu > li > a {
  display: block;
  padding: 9px 14px;
  border-radius: var(--radius-s);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--gesso-2);
}
ul.gmenu > li > a:hover { color: var(--gesso); background: var(--campo-2); }
ul.gmenu li.active > a {
  color: var(--lime);
  box-shadow: inset 0 -2px 0 var(--lime);
  border-radius: var(--radius-s) var(--radius-s) 0 0;
}
.sub-indicator::after { content: " ▾"; font-size: 11px; color: var(--gesso-3); }

/* dropdown: lo apre/chiude jQuery con slideDown/slideUp */
ul.gmenu ul.submenu {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  z-index: 60;
  min-width: 190px;
  margin: 0;
  padding: 6px !important;
  list-style: none;
  background: var(--campo-1);
  border: 1px solid var(--linea);
  border-radius: var(--radius-s);
  box-shadow: var(--shadow-2);
}
ul.submenu li.sub1 a, a.sublink {
  display: block;
  padding: 8px 12px;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--gesso-2);
}
ul.submenu li.sub1 a:hover { background: var(--verde-tinta); color: var(--gesso); }
/* tendina aperta con il tocco: la classe la mette js/fifa-ui.js su telefoni e tablet; col mouse resta l'hover */
ul.gmenu li.ff-open > ul.submenu { display: block; }
ul.gmenu li.ff-open > a { color: var(--gesso); background: var(--campo-2); }

/* --------------------------------------- corpo centrale ---- */
#main { position: relative; }
.bodyContent, #bodyDash { background: transparent; }

.inner {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  min-height: 60vh;
}

#dashContent {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  float: none;
}

.dash_content_section,
.dash_content_sectionresult {
  width: auto;
  max-width: 100%;
  overflow-x: auto;
}

.clear { clear: both; }

/* ---------------------------------------------- sidebar ---- */
#sidebar {
  flex: 0 0 250px;
  width: 250px;
  float: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 16px;
}

/* card utente (sidebarmenu.php) e box laterali (sidebar.php) */
#sidebar h2 {
  font-size: 21px;
  font-weight: 600;
  text-transform: uppercase;
  margin: 8px 0 2px;
  text-align: center;
}
#sidebar img.avatar {
  display: block;
  margin: 0 auto;
  width: 88px; height: 88px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--linea-forte);
  box-shadow: var(--shadow-1);
}
#sidebar h3, #sidebar h4 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--gesso-3);
  margin: 14px 2px 6px;
}

#sidebar ul.tools, #sidebar ul.rtools {
  list-style: none;
  margin: 0;
  padding: 8px;
  background: var(--campo-0);
  border: 1px solid var(--linea);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
}
#sidebar .tools li, #sidebar .rtools li { margin: 0; }
#sidebar .tools li a, #sidebar .rtools li a {
  display: block;
  position: relative;
  padding: 8px 10px 8px 34px;
  border-radius: var(--radius-s);
  color: var(--gesso-2);
  font-weight: 500;
}
#sidebar .tools li a:hover, #sidebar .rtools li a:hover {
  background: var(--verde-tinta);
  color: var(--gesso);
}

/* icone: sprite gif sostituite da SVG in mask, stesse classi */
#sidebar .tools li a::before, #sidebar .rtools li a::before {
  content: "";
  position: absolute;
  left: 10px; top: 50%;
  width: 16px; height: 16px;
  transform: translateY(-50%);
  background: var(--gesso-3);
  /* fallback: pallone, per le voci senza icona dedicata */
  -webkit-mask: var(--icona, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='6' fill='none' stroke='black' stroke-width='1.6'/%3E%3Cpath d='M8 5l2.6 1.9-1 3.1H6.4l-1-3.1z' fill='black'/%3E%3C/svg%3E")) center / contain no-repeat;
  mask: var(--icona, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='6' fill='none' stroke='black' stroke-width='1.6'/%3E%3Cpath d='M8 5l2.6 1.9-1 3.1H6.4l-1-3.1z' fill='black'/%3E%3C/svg%3E")) center / contain no-repeat;
}
#sidebar .tools li a:hover::before, #sidebar .rtools li a:hover::before { background: var(--verde-hover); }
#sidebar li.mypage    { --icona: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 3h12v2H2zm0 4h12v6H2z' fill='black'/%3E%3C/svg%3E"); }
#sidebar li.myteam    { --icona: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1l6 2v5c0 4-3 6-6 7-3-1-6-3-6-7V3z' fill='black'/%3E%3C/svg%3E"); }
#sidebar li.profile   { --icona: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='5' r='3' fill='black'/%3E%3Cpath d='M2 14c0-3 3-5 6-5s6 2 6 5z' fill='black'/%3E%3C/svg%3E"); }
#sidebar li.stats     { --icona: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 9h3v5H2zm5-5h3v10H7zm5 3h3v7h-3z' fill='black'/%3E%3C/svg%3E"); }
#sidebar li.awards    { --icona: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 1h8v3a4 4 0 01-8 0zm3 8h2v3h3v2H4v-2h3z' fill='black'/%3E%3C/svg%3E"); }
#sidebar li.sbadmin   { --icona: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1l2 2 3-1-1 3 2 2-2 2 1 3-3-1-2 2-2-2-3 1 1-3-2-2 2-2-1-3 3 1z' fill='black'/%3E%3Ccircle cx='8' cy='8' r='2' fill='white'/%3E%3C/svg%3E"); }
#sidebar li.useronline{ --icona: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='5' cy='6' r='2.4' fill='black'/%3E%3Ccircle cx='11' cy='6' r='2.4' fill='black'/%3E%3Cpath d='M1 13c0-2 2-3.5 4-3.5S9 11 9 13zm7.4 0c.2-1.6 1.4-3 2.6-3.3 2-.4 4 1.3 4 3.3z' fill='black'/%3E%3C/svg%3E"); }
#sidebar li.tournaments,
#sidebar li.link      { --icona: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='6' fill='none' stroke='black' stroke-width='1.6'/%3E%3Cpath d='M8 5l2.6 1.9-1 3.1H6.4l-1-3.1z' fill='black'/%3E%3C/svg%3E"); }
#sidebar li.auction   { --icona: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M9 1L5 5l6 6 4-4zM3 7l6 6-2 2H1v-2z' fill='black'/%3E%3C/svg%3E"); }

/* logout dentro la card utente */
#sidebar ul.logout { list-style: none; margin: 0 0 4px; padding: 0; text-align: center; }
#uic_logout a { color: var(--gesso-3); font-size: 13px; }
#uic_logout a:hover { color: var(--rosso); }
#uic_logout_ico { display: none; }

/* il link Admin (arbitro) si distingue col giallo cartellino */
#sidebar li.sbadmin a { color: var(--giallo); }
#sidebar li.sbadmin a b { font-weight: 600; }

/* badge contatore proposte (ex inline style rosso): in linea, a destra */
#sidebar .rtools li a + a { display: inline; padding: 0; background: none; }
#sidebar .rtools li a + a::before { display: none; }
.fifa-badge {
  display: inline-block;
  float: right;
  margin: 8px 6px 0 0;
  min-width: 20px;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--rosso);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  white-space: nowrap;
}

/* utenti online: pallino lime = connesso adesso */
#sidebar li.online a { padding-left: 26px; }
#sidebar li.online a::before {
  content: "";
  -webkit-mask: none;
  mask: none;
  width: 8px; height: 8px;
  left: 10px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 6px rgba(194, 240, 76, .5);
}

/* utenti online (users_online.php): pallino lime = vivo adesso */
#sidebar li.online a { color: var(--gesso-2); }
li.online { position: relative; }

/* ------------------------------------- titoli di sezione ---- */
.cat-box-title, .cat-box-subtitle { margin: 4px 0 14px; }
.cat-box-title h2, #dashContent h2 {
  float: none;
  font-size: 26px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.cat-box-subtitle h5, .cat-box-subtitle h2 {
  display: inline-block;
  font-size: 19px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--gesso);
  margin: 0 12px 4px 0;
}
/* la vecchia riga a strisce diventa linea di gesso */
.stripe-line {
  height: 1px;
  background: var(--gesso-linea);
  margin: 4px 0 10px;
}

.brand h3, h2.title-team {
  background: none;
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gesso);
}

/* box generici .box > .bH/.bC e vecchi skin_tbl (shoutbox) */
.box, .skin_tbl {
  background: var(--campo-0);
  border: 1px solid var(--linea);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}
.box .bH, .mback {
  background: var(--campo-1);
  border-bottom: 1px solid var(--linea);
}
.box .bH h3, .mtitle {
  margin: 0;
  padding: 10px 14px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--gesso-2);
  background: none;
}
.box .bC { padding: 12px 14px; }
table.mback { width: 100%; border-collapse: collapse; }
.mback_left, .mback_right { display: none; }
.mainbg { background: transparent; padding: 10px 12px; }

/* --------------------------------------------- tabelle ---- */
table.dataTable, table.tablepretty, table.sortTable {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--campo-0);
  border: 1px solid var(--linea);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  margin: 0 0 22px;
  font-variant-numeric: tabular-nums;
}
table.dataTable tr.title th,
table.dataTable th.head, table.dataTable th.first-head,
table.tablepretty th, table.sortTable th {
  background: var(--campo-1);
  color: var(--gesso-3);
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--linea-forte);
  white-space: nowrap;
}
table.dataTable td, table.tablepretty td, table.sortTable td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--linea);
  color: var(--gesso-2);
  font-size: 13.5px;
}
table.dataTable tr:last-child td,
table.tablepretty tr:last-child td,
table.sortTable tr:last-child td { border-bottom: 0; }
table.dataTable tbody tr:hover td,
table.dataTable tr:hover td,
table.tablepretty tr:hover td,
table.sortTable tr.on:hover td { background: var(--campo-2); }

td.table0, td.l_player {
  color: var(--gesso);
  font-weight: 600;
}
td.table0 a, td.l_player a { color: var(--gesso); }
td.table0 a:hover { color: var(--lime); }
td.table1, td.table10, td.table1pbh, td.value, td.r_club { color: var(--gesso-2); }
td.table0 img.pull-left, img.pull-left {
  float: none;
  display: inline-block;
  width: 22px; height: 22px;
  object-fit: contain;
  margin-right: 8px;
}
.playeravatar { border-radius: 50%; object-fit: cover; }

/* --------------------------------------------- badge -------- */
/* fasce giocatore: ck1(94-86)=oro … ck6(73)=grigio panchina */
span.ck1, span.ck2, span.ck3, span.ck4, span.ck5, span.ck6,
.circle-ck1, .circle-ck2, .circle-ck3, .circle-ck4, .circle-ck5, .circle-ck6 {
  display: inline-block;
  min-width: 44px;
  padding: 2px 8px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  text-align: center;
  line-height: 1.5;
  color: #10150f;
}
span.ck1, .circle-ck1 { background: var(--fascia-1); }
span.ck2, .circle-ck2 { background: var(--fascia-2); }
span.ck3, .circle-ck3 { background: var(--fascia-3); }
span.ck4, .circle-ck4 { background: var(--fascia-4); }
span.ck5, .circle-ck5 { background: var(--fascia-5); }
span.ck6, .circle-ck6 { background: var(--fascia-6); }
.circle-out {
  display: inline-block;
  min-width: 44px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px dashed var(--rosso);
  color: var(--rosso);
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-align: center;
}

/* overall / età / importi */
.label, .labelov, .labelage, .bidauc {
  display: inline-block;
  min-width: 30px;
  padding: 2px 7px;
  border-radius: var(--radius-s);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}
.label     { background: var(--campo-2); color: var(--gesso-2); }
.labelov   { background: var(--verde-scuro); color: var(--gesso); }
.labelage  { background: var(--blu-tinta); color: var(--blu); }
.bidauc    { background: var(--lime-tinta); color: var(--lime); }

/* stato asta: pallini (auction.css) — verde = viva adesso */
.circle-green, .circle-red, .circle-yellow {
  display: inline-block;
  width: 12px; height: 12px;
  border-radius: 50%;
  vertical-align: middle;
}
.circle-green  { background: var(--lime); box-shadow: 0 0 0 3px var(--lime-tinta); animation: fifaLive 2s ease-in-out infinite; }
.circle-red    { background: var(--rosso); }
.circle-yellow { background: var(--giallo); }
@keyframes fifaLive { 50% { box-shadow: 0 0 0 6px rgba(194, 240, 76, .05); } }

.headinfo, .header-profile {
  background: var(--campo-1);
  color: var(--gesso);
  border-radius: var(--radius-s) var(--radius-s) 0 0;
}

/* countdown (countdownpro.js scrive testo dentro gli span/div) */
[id^="countdown"] {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--lime);
  letter-spacing: .02em;
}

/* ---------------------------------------------- form -------- */
input[type="text"], input[type="password"], input[type="email"],
input[type="number"], input[type="search"], input[type="date"],
select, textarea, .textinput {
  background: var(--campo-2);
  border: 1px solid var(--linea-forte);
  border-radius: var(--radius-s);
  color: var(--gesso);
  font: 400 13.5px/1.4 var(--font-body);
  padding: 8px 10px;
  transition: border-color .15s ease;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--verde);
  outline: none;
  box-shadow: 0 0 0 3px var(--verde-tinta);
}
input::placeholder, textarea::placeholder { color: var(--gesso-3); }
select { cursor: pointer; }
option { background: var(--campo-1); }

input[type="submit"], input[type="button"], input[type="reset"],
button, .codebuttons, a.button {
  display: inline-block;
  background: var(--verde);
  color: #0b130e;
  border: 0;
  border-radius: var(--radius-s);
  font: 600 13.5px/1 var(--font-body);
  padding: 10px 16px;
  cursor: pointer;
  transition: background .15s ease, transform .06s ease;
}
input[type="submit"]:hover, input[type="button"]:hover, input[type="reset"]:hover,
button:hover, .codebuttons:hover, a.button:hover {
  background: var(--verde-hover) !important;
  color: #0b130e;
}
input[type="submit"]:active, button:active { transform: translateY(1px); }
input[type="reset"] { background: var(--campo-2); color: var(--gesso-2); }

label { color: var(--gesso-2); }
label.error {
  display: inline-block;
  color: var(--rosso);
  font-size: 12px;
  margin-top: 4px;
}
fieldset { border: 1px solid var(--linea); border-radius: var(--radius-s); }

.selectfield { background: var(--campo-2); }

/* filtri di ricerca (search.css: #grid1/#grid2, admin #grid1ad/#grid2ad) */
#grid1, #grid2, #grid1ad, #grid2ad, #form-filter {
  background: var(--campo-0);
  border: 1px solid var(--linea);
  border-radius: var(--radius);
  padding: 14px 16px;
}
/* le altezze fisse inline con scroll interno diventano auto */
#form-filter {
  height: auto !important;
  overflow: visible !important;
  margin-bottom: 18px;
}
#form-filter .row-fluid,
#form-filter .span1, #form-filter .span2, #form-filter .span6, #form-filter .span7,
#form-filter .span9, #form-filter .span10, #form-filter .span11, #form-filter .span12,
#form-filter .span13, #form-filter .span14, #form-filter .span20 {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  align-items: flex-end;
  width: auto;
  float: none;
  margin: 0;
}
#form-filter .group, #grid1 .group, #grid2 .group, #grid1ad .group, #grid2ad .group {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  margin: 4px 0;
}
.group-label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gesso-3);
}
#form-filter input[type="submit"], #form-filter input[type="button"] { margin: 4px 0; }

#container .data ul, #container2 .data ul, #container3 .data ul,
#container4 .data ul, #container5 .data ul, #container6 .data ul { list-style: none; padding: 0; }

/* messaggi */
.msg-error {
  background: var(--rosso-tinta);
  border: 1px solid var(--rosso);
  color: var(--gesso);
  border-radius: var(--radius-s);
  padding: 10px 12px;
  margin: 0 0 12px;
}
.questiontext {
  color: var(--gesso-3);
  background: var(--campo-0);
  border: 1px dashed var(--linea-forte);
  border-radius: var(--radius-s);
  padding: 14px;
  text-align: center;
}

/* ------------------------------------ login / registrazione */
.brand { margin: 6px 0 20px; }
.brand h3 {
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: .02em;
  margin: 0;
}
.brand h3::after {
  content: "";
  display: block;
  width: 68px;
  height: 3px;
  margin-top: 8px;
  background: var(--lime);
  border-radius: 2px;
}

#row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  align-items: start;
}
#span1, #span2 {
  float: none;
  width: auto;
  background: var(--campo-0);
  border: 1px solid var(--linea);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  padding: 22px 24px 26px;
}
#span1 h3, #span2 h3 {
  font-size: 21px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--gesso-linea);
  margin-bottom: 16px;
}
.fields label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gesso-3);
  margin: 14px 0 5px;
}
.inputWrap { background: none; width: auto; }
.inputWrap input { width: 100%; }
.checkbox-holder { display: flex; align-items: center; gap: 8px; margin: 14px 0 4px; }
.checkbox-holder label { margin: 0; text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--gesso-2); }
.checkbox-holder input[type="checkbox"] { accent-color: var(--verde); width: 15px; height: 15px; }
.btn-large { width: 100%; padding: 12px 18px; font-size: 15px; margin-top: 16px; }
/* azione secondaria: outline */
#registerBtn {
  background: transparent;
  border: 1px solid var(--verde);
  color: var(--verde-hover);
}
#registerBtn:hover { background: var(--verde-tinta) !important; color: var(--gesso); }
.reg-chiuse { text-align: center; padding: 20px 0; }
#resetpsw {
  max-width: 460px;
  background: var(--campo-0);
  border: 1px solid var(--linea);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  padding: 22px 24px;
}
#resetpsw input[type="text"] { width: 100%; }
#resetpsw input[type="submit"] { width: 100%; }
.reg-chiuse img { opacity: .8; margin-bottom: 14px; }

.msg-success {
  background: var(--verde-tinta);
  border: 1px solid var(--verde);
  color: var(--gesso);
  border-radius: var(--radius-s);
  padding: 10px 12px;
  margin: 0 0 12px;
}
.msg-error a, .msg-success a { color: var(--lime); text-decoration: underline; }

/* messaggi di validazione Spry (i css Spry restano per la logica show/hide) */
.textfieldRequiredMsg, .textfieldMaxCharsMsg, .textfieldInvalidFormatMsg,
.passwordRequiredMsg, .passwordMinCharsMsg {
  color: var(--rosso) !important;
  background: none !important;
  border: 0 !important;
  font-size: 12px;
}
.textfieldRequiredState input, .textfieldInvalidFormatState input,
.textfieldMaxCharsState input, .passwordRequiredState input, .passwordMinCharsState input {
  border-color: var(--rosso) !important;
}

@media (max-width: 760px) {
  #row { grid-template-columns: 1fr; }
}

/* ------------------------------------------ paginazione ---- */
.navigation { margin: 6px 0 14px; }
.navigation table { background: transparent; border: 0; }
.navigation td { padding: 2px 4px; }
.navigation img { filter: invert(.85) sepia(.1); opacity: .8; }
.navigation a:hover img { filter: invert(1); opacity: 1; }
.totalrecords {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gesso-3);
}
/* paginazione AJAX (goals_scored: #containerN + ul con attr p) */
.pagination ul {
  list-style: none;
  display: flex;
  gap: 4px;
  padding: 0;
  margin: 8px 0;
}
.pagination li {
  padding: 4px 10px;
  border-radius: var(--radius-s);
  border: 1px solid var(--linea);
  color: var(--gesso-2);
  font-family: var(--font-mono);
  font-size: 12px;
}
.pagination li.active { cursor: pointer; }
.pagination li.active:hover { border-color: var(--verde); color: var(--gesso); }
.pagination li.inactive { background: var(--verde-scuro); color: var(--gesso); border-color: var(--verde-scuro); }
#loading, .loading { color: var(--gesso-3); }

/* ------------------------------------------- shoutbox ------ */
#tagObject, ol.list {
  background: var(--campo-0);
  border: 1px solid var(--linea);
  border-radius: var(--radius-s);
  list-style: none;
  margin: 0 0 10px;
}
#modulo { font-size: 13px; color: var(--gesso-2); }
table.ww { width: 100%; }
.tdleft { padding: 4px; }
.tdleft textarea.textinput { width: 100%; min-height: 54px; resize: vertical; }

/* ------------------------------------- scheda giocatore ---- */
/* frammento iniettato nei tooltip qtip 325x220: le MISURE sono
   quelle originali (300/100/180px), cambia solo la pelle */
.player-profile {
  background-color: var(--campo-1);
  width: 300px;
  border: 1px solid var(--linea-forte);
  border-radius: var(--radius-s);
  overflow: hidden;
}
.header-profile {
  background-color: var(--campo-2);
  color: var(--gesso);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  height: 40px;
  line-height: 40px;
  width: 100%;
  padding: 0 10px;
  border-radius: 0;
}
.foto-profile { float: left; padding: 5px; width: 100px; }
.foto-profile img { border-radius: var(--radius-s); }
.info-profile { float: left; width: 180px; color: var(--gesso-2); }
.text-profile { font-size: 11px; line-height: 1.7; padding: 0 0 0 10px; }
.footer-profile {
  background-color: var(--campo-0);
  border-top: 1px solid var(--linea);
  font-size: 11px;
  font-weight: 600;
  padding: 0;
  text-align: center;
  width: 100%;
}
.bid-form { padding: 8px; text-align: center; height: 30px; }
.bid-form input[type="submit"] { margin: 0 0 0 8px; vertical-align: middle; line-height: 14px; float: left; padding: 8px 12px; }
.bid-form input[type="text"] { float: left; width: 90px; font-family: var(--font-mono); padding: 6px 8px; }

/* --------------------------------------------- partita ----- */
/* geometria di matchplay.css ricreata identica, pelle nuova */
.teamcontainer {
  clear: both;
  float: left;
  width: 100%;
  padding-bottom: 40px;
  background-color: var(--campo-0);
  border: 1px solid var(--linea);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}
#match_info {
  font-size: 15px;
  height: 40px;
  background: var(--campo-1);
  border-bottom: 1px solid var(--linea-forte);
  font-family: var(--font-display);
  letter-spacing: .04em;
}
ul.info_match {
  clear: both;
  color: var(--gesso);
  display: block;
  line-height: 20px;
  list-style-type: none;
  margin: 0;
  padding: 3px 15px 0;
}
ul.info_match li.info_coach1 { float: left; padding-top: 8px; display: inline; width: 33%; }
ul.info_match li.info_tournament {
  color: var(--gesso-2);
  float: left;
  height: 46px;
  line-height: 20px;
  padding-top: 5px;
  text-align: center;
  width: 34%;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 15px;
}
ul.info_match li.info_coach2 { float: right; padding-top: 8px; display: inline; width: 33%; text-align: right; }
ul.info_match li.info_act2 { float: right; padding: 7px; }
div #match_info span.activity { color: var(--gesso); float: right; margin: 0 4px 4px 0; }

#block_teamresult { float: left; width: 100%; margin: 20px 0; }
div.team { bottom: 0; display: block; position: relative; top: 0; z-index: 1; }
div.team1 { float: left; width: 40%; }
div.team2 { float: right; width: 40%; }
div#block_result {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  float: left;
  height: 96px;
  width: 20%;
  background: var(--notte);
  border: 1px solid var(--linea-forte);
  border-radius: var(--radius-s);
  box-shadow: inset 0 0 24px rgba(194, 240, 76, .06);
}
div.team1 img.emblem_team { border: 0; left: 0; position: absolute; top: 0; height: 80px; padding-left: 8px; width: auto; }
div.team2 img.emblem_team { border: 0; height: 80px; position: absolute; right: 0; top: 0; padding-right: 8px; width: auto; }
div.team1 span.team_name {
  border-bottom: 1px dashed var(--linea-forte);
  color: var(--gesso);
  float: left;
  font-size: 19px;
  padding-bottom: 5px;
  text-align: right;
  width: 180px;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
}
div.team2 span.team_name {
  border-bottom: 1px dashed var(--linea-forte);
  color: var(--gesso);
  float: right;
  font-size: 19px;
  padding-bottom: 5px;
  text-align: left;
  width: 180px;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
}
div.team1 div.team_goal { display: block; float: left; margin-left: 80px; }
div.team2 div.team_goal2 { display: block; float: right; margin-right: 80px; }
div.results {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  float: none;
  width: 100%;
  height: auto;
  text-align: center;
  color: var(--lime);
}
/* partita giocata: trattino tra i due numeri ("7 - 4"), centrato nel tabellone */
div.results span.ris_2 .box-r::before {
  content: "-";
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -54%);
  font-size: 34px; font-weight: 400; line-height: 1;
  color: var(--gesso-3);
}
div.results span.add_ris_1, div.results span.ris_1,
div.results span.add_ris_2, div.results span.ris_2 {
  float: none; width: auto; margin: 0; padding: 0;
  color: var(--lime);
  font-family: var(--font-mono); font-size: 46px; font-weight: 600; line-height: 1;
}

div.results span.box-r {
  display: inline; width: auto; height: auto; padding: 0;
  color: var(--lime);
  font-family: var(--font-mono); font-size: 46px; font-weight: 600;
}
.results input[type="text"] {
  width: 64px; height: auto;
  padding: 4px 0;
  background-color: transparent;
  border: 0; box-shadow: none;
  color: var(--lime);
  font-family: var(--font-mono); font-size: 40px; font-weight: 600; text-align: center;
}
ul.info_referee { float: none; width: auto; margin: 0; padding: 0; line-height: 1.6; color: var(--gesso-2); }
ul.info_referee2 { float: none; width: auto; margin: 0; padding: 0; line-height: 1.6; color: var(--gesso-2); text-align: right; }
ul.info_referee li.out1 { float: none; width: auto; padding: 0; font-size: 13px; word-wrap: break-word; }
ul.info_referee2 li.out2 { float: none; width: auto; padding: 0; font-size: 13px; word-wrap: break-word; }
.cntgoal { font-size: 13px; font-weight: normal; margin: 0 0 6px; line-height: 14px; }
span.injured { font-size: 12px; color: var(--rosso); }
/* deroga portieri (10/10/2026): riga sotto gli infortunati con chi va in porta */
span.gk_exempt { font-size: 12px; color: var(--gesso-2); }
span.gk_exempt strong { color: var(--lime); }
.injured_block {
  clear: both;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px 24px;
  align-items: start;
  margin: 0;
  padding: 14px 18px 0;
}
.injured_block ul.info_referee  { grid-column: 1; }
.injured_block ul.add-result    { grid-column: 2; }
.injured_block ul.info_referee2 { grid-column: 3; }
ul.add-result { text-align: center; margin: 0; }
ul.add-result .headinfo {
  display: inline-block; float: none;
  margin: 0; padding: 0;
  background: var(--verde); border: 0; border-radius: 999px;
  box-shadow: var(--shadow-1);
}
ul.add-result .headinfo a {
  display: inline-block;
  padding: 9px 20px;
  border-radius: 999px;
  color: #0b130e;
  font-weight: 600; font-size: 13.5px;
}
ul.add-result .headinfo:hover { background: var(--verde-hover); }
@media (max-width: 760px) {
  /* telefono (10/10/2026): le due liste restano sotto la propria squadra, il bottone sotto a tutta larghezza */
  .injured_block { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 14px; padding: 12px 10px 0; }
  .injured_block ul.info_referee  { grid-column: 1; grid-row: 1; }
  .injured_block ul.info_referee2 { grid-column: 2; grid-row: 1; }
  .injured_block ul.add-result    { grid-column: 1 / -1; grid-row: 2; }
}
.teamtitle { display: block; float: left; margin-left: 100px; }
.teamtitle2 { display: block; float: right; margin-right: 100px; }
.events { color: var(--gesso); float: left; font-size: 22px; margin: 8px 0 0 17px; padding-bottom: 5px; text-align: right; width: 180px; }
.events2 { color: var(--gesso); float: right; font-size: 22px; margin: 8px 17px 0 0; padding-bottom: 5px; text-align: left; width: 180px; }
img.icongoal { vertical-align: top; }
.mb-rw { clear: both; font-size: 14px; font-weight: 700; line-height: 18px; padding: 10px 0; margin-bottom: 35px; text-align: center; color: var(--gesso-2); }
@media (max-width: 760px) {
  /* telefono (10/10/2026): prima gli stemmi erano nascosti e nomi e cifre si accavallavano nel tabellone. Ogni squadra
     va in colonna (stemma, nome, eventi) ai lati del tabellone; dentro la griglia i float del desktop non contano. */
  #block_teamresult { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); column-gap: 8px; align-items: start; margin: 16px 0 0; padding: 0 10px; }
  div.team1, div.team2 { float: none; width: auto; min-width: 0; text-align: center; }
  div.team1 img.emblem_team, div.team2 img.emblem_team { display: block; position: static; height: 56px; width: auto; max-width: 100%; margin: 0 auto 6px; padding: 0; object-fit: contain; }
  .teamtitle, .teamtitle2 { float: none; margin: 0; }
  div.team1 span.team_name, div.team2 span.team_name { float: none; display: block; width: auto; max-width: none; text-align: center; font-size: 15px; line-height: 1.15; padding-bottom: 4px; overflow-wrap: anywhere; }
  div.team1 div.team_goal, div.team2 div.team_goal, div.team2 div.team_goal2 { float: none; margin: 0; }
  .events, .events2 { float: none; width: auto; margin: 8px 0 0; text-align: center; font-size: 15px; }
  div#block_result { float: none; width: 84px; height: 64px; }
  div.results { gap: 6px; }
  div.results span.add_ris_1, div.results span.ris_1, div.results span.add_ris_2, div.results span.ris_2, div.results span.box-r { font-size: 30px; }
  div.results span.ris_2 .box-r::before { position: static; transform: none; margin-right: 6px; font-size: 22px; vertical-align: 3px; }
  .results input[type="text"] { width: 36px; padding: 2px 0; font-size: 28px; }
}

/* --------------------------------------------- commenti ---- */
/* struttura di comment.css (avatar 36px assoluto a sinistra, testo a 46px) + pelle */
.cmtcontainer { position: relative; clear: both; padding-top: 6px; margin-bottom: 16px; }
.cmtavatar, .bcmtavatar { position: absolute; left: 0; top: 6px; }
.cavatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--linea-forte);
}
.cmttextarea { margin: 0 0 8px 46px; }
.ctextarea { width: 100%; min-height: 64px; resize: vertical; }
.cmtbutton { margin-left: 0; }
.cmtcount { margin: 16px 0 6px; }
.cmtcount h4 { font-size: 14px; color: var(--gesso-3); letter-spacing: .07em; text-transform: uppercase; margin: 0; }
#bcmtcomment { position: relative; clear: both; }
.bcomment {
  position: relative;
  background: var(--campo-0);
  border: 1px solid var(--linea);
  border-radius: var(--radius);
  padding: 10px 12px 10px 58px;
  margin: 0 0 10px;
  min-height: 58px;
}
.bcomment .bcmtavatar { left: 10px; top: 10px; }
.buser { color: var(--verde-hover); font-weight: 600; }
.buser a { color: var(--verde-hover); }
.bcmtcontent { color: var(--gesso-2); line-height: 1.5; margin: 2px 0 6px; }
.bfooter { color: var(--gesso-3); font-size: 12px; }
.bdelete { float: right; }

/* --------------------------------------------- bracket ----- */
/* Tabellone a eliminazione (27/09/2026): colonne flessibili, uno "slot" per accoppiamento (--slot raddoppia a
   ogni turno), connettori in CSS. Markup in tournamentsbracket.php. */
.ff-bracket-wrap { overflow-x: auto; padding: 14px 6px 18px; background: var(--campo-0); border: 1px solid var(--linea-forte); border-radius: var(--radius); margin: 1em 0; }
.ff-bracket { display: flex; align-items: flex-start; gap: 34px; padding: 4px 10px; min-width: max-content; }
.ff-round { display: flex; flex-direction: column; width: 212px; flex: 0 0 212px; }
.ff-round-winner { width: 170px; flex-basis: 170px; }
.ff-round-title { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 14px; color: var(--gesso-2); margin: 0 0 10px; height: 20px; white-space: nowrap; }
.ff-round-title .ff-ref { text-transform: none; letter-spacing: 0; font-weight: 500; }
.ff-ties { display: flex; flex-direction: column; }
.ff-tie { position: relative; height: var(--slot); display: flex; align-items: center; }
.ff-tie-card { position: relative; width: 100%; background: var(--campo-1); border: 1px solid var(--linea-forte); border-radius: var(--radius-s); overflow: hidden; box-shadow: var(--shadow-1); }
.ff-tie-link { display: block; width: 100%; color: inherit; text-decoration: none; }
.ff-tie-link:hover .ff-tie-card { border-color: var(--verde); }
.ff-team { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px; border-bottom: 1px solid var(--linea); }
.ff-emblem { width: 22px; height: 22px; object-fit: contain; flex: 0 0 22px; }
span.ff-emblem { background: var(--campo-2); border-radius: 50%; }
.ff-team-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: .02em; text-transform: uppercase; color: var(--gesso); }
.ff-score { flex: 0 0 auto; min-width: 22px; text-align: right; font-family: var(--font-mono); font-weight: 700; font-size: 15px; color: var(--lime); }
.ff-team.ff-lose .ff-team-name, .ff-team.ff-lose .ff-score { color: var(--gesso-3); }
.ff-team.ff-win { background: var(--verde-tinta); }
.ff-team.ff-tbd .ff-team-name { color: var(--gesso-3); font-style: italic; font-weight: 500; text-transform: none; font-family: var(--font-body); font-size: 13px; }
.ff-tie-foot { font-size: 11px; color: var(--gesso-3); padding: 4px 10px 5px; background: var(--campo-0); }
.ff-tie-bye .ff-tie-card { opacity: .7; }
.ff-tie-live .ff-tie-card { border-color: var(--lime); box-shadow: 0 0 0 2px var(--lime-tinta), var(--shadow-1); }
.ff-tie-live .ff-tie-foot { color: var(--lime); }
.ff-tie-mine .ff-tie-card { border-left: 3px solid var(--verde); }
/* connettori: uscita a destra (::after), raccordo verticale tra le coppie (::before), ingresso nel turno dopo (.ff-in) */
.ff-tie::after { content: ''; position: absolute; right: -17px; top: 50%; width: 17px; border-top: 2px solid var(--linea-forte); }
.ff-round:not(.ff-last) .ff-ties .ff-tie:nth-child(odd)::before { content: ''; position: absolute; right: -17px; top: 50%; height: 50%; border-right: 2px solid var(--linea-forte); }
.ff-round:not(.ff-last) .ff-ties .ff-tie:nth-child(even)::before { content: ''; position: absolute; right: -17px; bottom: 50%; height: 50%; border-right: 2px solid var(--linea-forte); }
.ff-tie .ff-in { position: absolute; left: -17px; top: 50%; width: 17px; border-top: 2px solid var(--linea-forte); }
.ff-tie-champ::after { display: none; }
.ff-champion { width: 100%; text-align: center; background: var(--campo-1); border: 1px solid var(--linea-forte); border-radius: var(--radius-s); padding: 14px 10px; box-shadow: var(--shadow-1); }
.ff-champion-logo { width: 84px; height: 84px; object-fit: contain; display: block; margin: 0 auto; }
.ff-champion-emblem { width: 40px; height: 40px; display: block; margin: 12px auto 4px; object-fit: contain; }
.ff-champion-name { font-family: var(--font-display); font-weight: 700; font-size: 20px; text-transform: uppercase; letter-spacing: .04em; color: var(--fascia-1); text-shadow: 0 2px 6px rgba(0, 0, 0, .5); margin-top: 8px; }
.ff-champion-name.ff-ref { color: var(--gesso-3); text-shadow: none; font-size: 14px; }
.ff-has-winner { border-color: var(--fascia-1); }
@media (max-width: 640px) { .ff-round { width: 200px; flex-basis: 200px; } .ff-team-name { font-size: 14px; } }

/* ------------------------------------------- area admin ---- */
.dashbox2 {
  background: var(--campo-0);
  border: 1px solid var(--linea);
  border-radius: var(--radius);
  padding: 8px 12px;
  margin: 0 0 16px;
}
ul.u_edit { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; }
ul.u_edit li { display: flex; align-items: center; gap: 6px; color: var(--gesso-2); }

/* edit inline (myteam / admin injured): resta nascosto finché il JS non lo mostra */
.editbox {
  display: none;
  background: var(--campo-2);
  border: 1px solid var(--verde);
  border-radius: 4px;
  color: var(--gesso);
  font-family: var(--font-mono);
  width: 64px;
  padding: 3px 6px;
}
tr.edit_tr td { cursor: default; }

/* ---------------------------------------- plugin dark ------ */
/* alertify (core+default restano caricati: qui solo la pelle) */
.alertify {
  background: var(--campo-1);
  border: 1px solid var(--linea-forte);
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
  color: var(--gesso);
}
.alertify .alertify-message { color: var(--gesso); }
.alertify .alertify-text {
  background: var(--campo-2);
  border: 1px solid var(--linea-forte);
  color: var(--gesso);
}
.alertify-button, .alertify .alertify-button {
  border-radius: var(--radius-s);
  font-weight: 600;
  text-shadow: none;
  background-image: none;
  border: 0;
  box-shadow: none;
}
.alertify-button-ok, .alertify .alertify-button-ok { background-color: var(--verde); color: #0b130e; }
.alertify-button-cancel, .alertify .alertify-button-cancel { background-color: var(--campo-2); color: var(--gesso-2); }
.alertify-log {
  background: var(--campo-1);
  border: 1px solid var(--linea-forte);
  border-radius: var(--radius-s);
  color: var(--gesso);
  text-shadow: none;
}
.alertify-log-success { background: var(--verde-scuro); }
.alertify-log-error { background: var(--rosso); }
.alertify-cover { background: rgba(6, 10, 8, .6); }

/* qtip2: i tooltip ereditano il campo scuro */
.qtip, .qtip-bootstrap, .qtip-tipsy, .qtip-default {
  background: var(--campo-1) !important;
  border: 1px solid var(--linea-forte) !important;
  border-radius: var(--radius-s) !important;
  color: var(--gesso) !important;
  box-shadow: var(--shadow-2) !important;
  font-size: 12.5px !important;
}
.qtip-content { color: var(--gesso-2) !important; }
.qtip-titlebar { background: var(--campo-2) !important; color: var(--gesso) !important; }

/* chat: chat.css resta per il layout (225px contrattuali), qui la pelle */
.chatbox { box-shadow: var(--shadow-2); }
.chatboxhead {
  background: var(--campo-1) !important;
  border: 1px solid var(--linea-forte) !important;
  border-bottom: 0 !important;
  color: var(--gesso) !important;
}
.chatboxtitle { color: var(--gesso) !important; }
.chatboxcontent {
  background: var(--campo-0) !important;
  border-color: var(--linea-forte) !important;
  color: var(--gesso-2) !important;
}
.chatboxinput { background: var(--campo-1) !important; border-color: var(--linea-forte) !important; }
.chatboxtextarea { background: var(--campo-2) !important; border: 1px solid var(--linea-forte) !important; color: var(--gesso) !important; }
.chatboxtextareaselected { border: 1px solid var(--verde) !important; }
.chatboxmessagefrom { color: var(--verde-hover) !important; }
.chatboxmessagecontent { color: var(--gesso-2) !important; }
.chatboxinfo { color: var(--gesso-3) !important; }

/* --------------------------------------------- footer ------ */
.wrapperFooter {
  margin-top: 40px;
  border-top: 1px solid var(--gesso-linea);
  padding: 16px 0 26px;
}
.copyright, .footer {
  width: auto;
  color: var(--gesso-3);
  font-size: 12.5px;
  text-align: center;
}
.copyright a { color: var(--gesso-2); }
ul.navFoot { list-style: none; display: flex; gap: 14px; justify-content: center; padding: 0; }
ul.navFoot a { color: var(--gesso-3); font-size: 12.5px; }

/* torna su: freccia CSS (l'immagine storica era un hotlink morto) */
#topPage {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 80;
}
#topPage a {
  display: block;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--campo-1);
  border: 1px solid var(--linea-forte);
  box-shadow: var(--shadow-1);
  position: relative;
}
#topPage a::after {
  content: "";
  position: absolute;
  left: 50%; top: 55%;
  width: 10px; height: 10px;
  border-top: 2px solid var(--lime);
  border-left: 2px solid var(--lime);
  transform: translate(-50%, -50%) rotate(45deg);
}
#topPage a:hover { background: var(--campo-2); }

/* ------------------------------------ drawer / hamburger ---- */
/* bottone iniettato da js/fifa-ui.js solo nelle pagine migrate */
#fifaNavToggle {
  display: none;
  margin-left: auto;
  width: 42px; height: 38px;
  border-radius: var(--radius-s);
  background: var(--campo-1);
  border: 1px solid var(--linea-forte);
  cursor: pointer;
  padding: 0;
  flex: 0 0 auto;
}
#fifaNavToggle span {
  display: block;
  width: 18px; height: 2px;
  background: var(--gesso);
  margin: 3px auto;
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
body.fifa-drawer-open #fifaNavToggle span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
body.fifa-drawer-open #fifaNavToggle span:nth-child(2) { opacity: 0; }
body.fifa-drawer-open #fifaNavToggle span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

#fifaDrawerBackdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(6, 10, 8, .65);
  z-index: 89;
}
body.fifa-drawer-open #fifaDrawerBackdrop { display: block; }

/* ------------------------------------------- responsive ---- */
@media (max-width: 1020px) {
  ul.gmenu > li > a { padding: 9px 10px; font-size: 16px; }
  #header { gap: 16px; }
}

@media (max-width: 900px) {
  #fifaNavToggle { display: block; }

  .inner { display: block; }

  /* la sidebar diventa drawer off-canvas */
  #sidebar {
    position: fixed;
    top: 0; left: 0;
    height: 100vh;
    width: min(300px, 84vw);
    padding: 18px 14px 30px;
    margin: 0;
    background: var(--campo-0);
    border-right: 1px solid var(--linea-forte);
    box-shadow: var(--shadow-2);
    overflow-y: auto;
    transform: translateX(-102%);
    transition: transform .22s ease;
    z-index: 90;
  }
  body.fifa-drawer-open #sidebar { transform: translateX(0); }

  #header { flex-wrap: wrap; padding-bottom: 10px; }
  /* menu in alto su telefono: le voci vanno a capo (lo scorrimento orizzontale tagliava le tendine) e la tendina
     si apre a tutta larghezza subito sotto il menu, con voci alte abbastanza per il dito */
  #navigation { order: 3; flex-basis: 100%; position: relative; }
  ul.gmenu { flex-wrap: wrap; }
  ul.gmenu > li.dropdown { position: static; }
  ul.gmenu ul.submenu { left: 0; right: 0; min-width: 0; }
  ul.submenu li.sub1 a { padding: 12px 14px; font-size: 15px; }
  #header::after { display: none; }

  /* menu laterale aperto: la X resta sopra il velo e la pagina sotto non scorre */
  body.fifa-drawer-open { overflow: hidden; }
  body.fifa-drawer-open #fifaNavToggle { position: relative; z-index: 91; }

  #doc { width: calc(100% - 24px); }
}

@media (max-width: 640px) {
  body { font-size: 13.5px; }
  #logo, #header #logo { font-size: 25px; }
  table.dataTable td, table.tablepretty td { padding: 8px 9px; }
  #topPage { right: 12px; bottom: 12px; }
}

/* ------------------------------------------- profilo ------- */
#edit-user-profile {
  max-width: 720px;
  margin: 0 auto;
}
#edit-user-profile .container {
  width: auto;
  background: var(--campo-0);
  border: 1px solid var(--linea);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  padding: 20px 22px;
}
#edit-user-profile h2 {
  font-size: 26px;
  font-weight: 700;
  text-transform: uppercase;
}
.history-text { color: var(--gesso-3); margin-bottom: 14px; }
#edit-user-profile fieldset {
  border: 0;
  border-top: 1px solid var(--gesso-linea);
  border-radius: 0;
  margin: 6px 0 0;
  padding: 14px 0 6px;
}
#edit-user-profile fieldset h3.active {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--gesso-3);
}
#edit-user-profile .row-content {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 12px;
  align-items: center;
  margin: 0 0 12px;
}
#edit-user-profile .field-label label { margin: 0; }
.full-width { width: 100%; }
#selectedAvatar {
  width: 90px; height: 90px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--linea-forte);
  margin-bottom: 10px;
  display: block;
}
.avatar-actions { display: flex; gap: 8px; }
.avatar-actions input[type="submit"] { background: var(--campo-2); color: var(--gesso-2); border: 1px solid var(--linea-forte); }
.avatar-actions input[type="submit"]:hover { background: var(--verde) !important; color: #0b130e; }
@media (max-width: 640px) {
  #edit-user-profile .row-content { grid-template-columns: 1fr; gap: 4px; }
}

/* popup caricamento immagini (buildimage.php, 420x210) */
body.fifa-popup { padding: 18px; background: var(--campo-0); }
body.fifa-popup::before { display: none; }
body.fifa-popup form { display: grid; gap: 6px; }
body.fifa-popup input[type="file"] { color: var(--gesso-2); width: 100%; }
body.fifa-popup input[type="file"]::file-selector-button {
  background: var(--campo-2);
  color: var(--gesso);
  border: 1px solid var(--linea-forte);
  border-radius: var(--radius-s);
  padding: 7px 12px;
  margin-right: 10px;
  cursor: pointer;
}

/* ------------------------------------- scheda squadra ------- */
/* #center-column.left-large > .img-team + .cnt-profile > (h2.title, .info-team,
   .info-user .limits, .info-stats .limits). Le tre colonne fisse di table.css
   diventano: emblema | griglia di tessere "Etichetta: <strong>valore</strong>". */
#center-column.left-large {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  float: none;
  position: static;
  width: auto;
  height: auto;
  margin: 0 0 22px;
  padding: 18px 20px;
  background: var(--campo-0);
  border: 1px solid var(--linea);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
}
.left-large .img-team { flex: 0 0 120px; float: none; display: block; height: auto; margin: 0; padding: 0; background: none; }
.left-large .emblem-team { position: static; height: auto; width: auto; overflow: visible; background: none; }
.left-large img.teamimg {
  position: static;
  width: 120px; height: 120px;
  object-fit: contain;
  background: var(--gesso);
  border-radius: 14px;
  padding: 6px;
}
.left-large .cnt-profile {
  flex: 1 1 auto; min-width: 0;
  float: none; width: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-content: start;
}
.left-large .cnt-profile h2.title, .left-large .info-team { grid-column: 1 / -1; }
.left-large .cnt-profile h2.title {
  float: none; border: 0; background: none;
  font-size: 28px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em;
  margin: 0 0 2px; line-height: 1.1;
}
.left-large .info-team, .left-large .info-user, .left-large .info-stats {
  float: none; width: auto; height: auto !important; margin: 0; padding: 0; border: 0; display: block;
}
.left-large .info-team {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
/* tessera: etichetta piccola sopra, valore grande sotto */
.left-large .info-team > p {
  position: relative;
  margin: 0;
  padding: 8px 12px 9px;
  background: var(--campo-1);
  border: 1px solid var(--linea);
  border-radius: var(--radius-s);
  font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--gesso-3);
  line-height: 1.3;
  min-width: 0;
}
.left-large .info-team > p > strong {
  display: block;
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 21px; font-weight: 600;
  letter-spacing: 0; text-transform: none;
  color: var(--gesso);
  font-variant-numeric: tabular-nums;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.left-large .info-team > p > strong a { color: var(--gesso); }
.left-large .info-team > p > strong img { height: 14px; width: auto; }
.left-large .info-team > p > a.loans { position: absolute; right: 10px; bottom: 10px; }
.left-large .info-team > p > a.loans img { margin: 0 !important; }
/* gruppi (Statistiche/Record, Fasce, Aste in corso, Prestiti): righe etichetta · valore */
.left-large .limits {
  height: 100%;
  padding: 8px 12px 10px;
  background: var(--campo-1);
  border: 1px solid var(--linea);
  border-radius: var(--radius-s);
}
.left-large .limits > strong {
  display: block;
  margin-bottom: 4px;
  font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--gesso-3);
}
.left-large .limits > p {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  margin: 0; padding: 4px 0;
  border-top: 1px solid rgba(42, 61, 51, .55);
  font-size: 13px; color: var(--gesso-2);
}
.left-large .limits > p > strong { font-family: var(--font-mono); font-size: 14px; color: var(--gesso); }
.left-large .cont-limits { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.left-large .square { display: flex; gap: 6px; }
@media (max-width: 640px) {
  #center-column.left-large { flex-direction: column; align-items: stretch; }
  .left-large .cnt-profile { grid-template-columns: 1fr; }
  .left-large .info-team { grid-template-columns: 1fr 1fr; }
  .left-large .info-team > p > strong { font-size: 16px; white-space: normal; overflow: visible; word-break: break-word; }
}

/* ------------------------------------------ preferenze ----- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ===== v2: etichetta stato squadra (congelata / ritirata) accanto al nome ===== */
.ff-badge { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-family: var(--font-display); font-size: 10.5px; font-weight: 600; line-height: 1.6; letter-spacing: .06em; text-transform: uppercase; vertical-align: middle; white-space: nowrap; }
.ff-badge-congelata { background: rgba(120, 170, 255, .16); color: #9cc4ff; border: 1px solid rgba(120, 170, 255, .38); }
.ff-badge-ritirata { background: rgba(255, 255, 255, .07); color: var(--gesso-3); border: 1px solid var(--linea-forte); }

/* ===== v2: bilancio e form nuovi ===== */
.ff-bilancio-head { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin: 0 0 14px; }
.ff-saldo { padding: 10px 14px; background: var(--campo-1); border: 1px solid var(--linea); border-radius: var(--radius-s); }
.ff-saldo .ff-label { display: block; font-family: var(--font-display); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--gesso-3); }
.ff-saldo .ff-value { display: block; margin-top: 2px; font-family: var(--font-mono); font-size: 22px; color: var(--gesso); }
.ff-saldo .ff-value-text { font-family: var(--font-display); font-size: 20px; }
.ff-filtri, .ff-form-inline { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: end; margin: 0 0 14px; }
.ff-filtri label, .ff-form-inline label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--gesso-3); }
.ff-form-inline label.ff-wide { flex: 1 1 260px; }
.ff-filtri input, .ff-form-inline input { min-height: 34px; }
.ff-btn-secondary { display: inline-block; padding: 8px 14px; border: 1px solid var(--linea-forte); border-radius: var(--radius-s); color: var(--gesso); text-decoration: none; }
.ff-btn-secondary:hover { border-color: var(--verde); color: var(--verde); }
.ff-amount { font-family: var(--font-mono); text-align: right; white-space: nowrap; }
.ff-amount-pos { color: var(--verde); }
.ff-amount-neg { color: var(--rosso); }
.ff-nowrap { white-space: nowrap; }
.ff-ref { color: var(--gesso-3); font-size: 12px; }
.ff-totali { margin-bottom: 16px; }
.msg-success, .msg-error { padding: 8px 12px; border-radius: var(--radius-s); margin: 0 0 12px; }
.ff-tools input.ff-money { width: 120px; min-height: 30px; text-align: right; font-family: var(--font-mono); }
.ff-form-inline input.ff-money { width: 160px; text-align: right; font-family: var(--font-mono); }
.ff-tools tr.ff-paid td { opacity: .75; }
.ff-link-btn { background: none; border: 0; color: var(--rosso); cursor: pointer; font-size: 14px; padding: 2px 6px; }
.ff-danger { background: var(--rosso) !important; color: #fff !important; }

/* ===== v2: dettaglio giocatore ===== */
.ff-player-head { display: flex; gap: 18px; align-items: center; margin: 0 0 14px; }
.ff-player-photo { width: 96px; height: 96px; border-radius: 50%; background: var(--campo-1); object-fit: cover; flex: 0 0 96px; }
.ff-player-info h2.title { margin: 0 0 4px; }
.ff-player-sub { margin: 2px 0; color: var(--gesso-3); font-size: 13px; }
.ff-totali-box { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; margin: 0 0 16px; }
.ff-tot { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 8px; background: var(--campo-1); border: 1px solid var(--linea); border-radius: var(--radius-s); color: var(--gesso); text-decoration: none; }
.ff-tot img { width: 22px; height: 22px; }
.ff-tot:hover { border-color: var(--verde); }
.ff-tot-active { border-color: var(--verde); background: var(--campo-2); }
.ff-tot-static { cursor: default; }
.ff-tot-v { font-family: var(--font-mono); font-size: 20px; line-height: 1.1; }
.ff-tot-v small { font-size: 12px; color: var(--gesso-3); }
.ff-tot-l { font-family: var(--font-display); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--gesso-3); }
.ff-mini-emblem { width: 18px; height: 18px; vertical-align: middle; margin-right: 4px; }
.ff-mine { color: var(--lime); font-weight: 600; }
.ff-perteam { margin-bottom: 16px; }
.ff-n { color: var(--gesso-3); font-size: 11px; }
@media (max-width: 640px) { .ff-player-head { flex-direction: column; text-align: center; } }
.ff-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; max-height: 520px; overflow: auto; padding: 8px; background: var(--campo-1); border: 1px solid var(--linea); border-radius: var(--radius-s); }
.ff-gitem { margin: 0; text-align: center; cursor: pointer; padding: 4px; border-radius: 4px; }
.ff-gitem:hover { background: var(--campo-2); outline: 1px solid var(--verde); }
.ff-gitem img { width: 48px; height: 48px; object-fit: contain; background: #fff; border-radius: 4px; }
.ff-gitem figcaption { font-size: 9.5px; color: var(--gesso-3); margin-top: 2px; }
.ff-gitem .ff-gwho { color: var(--verde-hover); font-weight: 600; overflow-wrap: anywhere; }   /* chi usa lo stemma oggi (squadra, stagione, torneo) */
.ff-pick-preview { vertical-align: middle; background: #fff; border-radius: 4px; }
.ff-stagione input[type=text] { min-height: 30px; }
li.ff-ev-assist img.icongoal, li.ff-ev-gk img.icongoal { vertical-align: middle; }
.ff-events-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin: 0 0 18px; }
.ff-evbox { padding: 10px 12px; background: var(--campo-1); border: 1px solid var(--linea); border-radius: var(--radius-s); }
.ff-evbox h6 { margin: 0 0 6px; font-family: var(--font-display); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--gesso-3); display: flex; align-items: center; gap: 6px; }
.ff-evbox ul { margin: 0 0 8px; padding: 0; list-style: none; }
.ff-evbox li { padding: 3px 0; border-bottom: 1px dashed var(--linea); display: flex; align-items: center; gap: 6px; }
.ff-evbox li form { margin-left: auto; }
.ff-inline { display: inline; margin: 0; }
.ff-addev { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ff-addev select { max-width: 200px; }
.ff-form-col label { display: flex; flex-direction: column; gap: 4px; max-width: 520px; margin: 0 0 10px; font-size: 13px; color: var(--gesso-3); }
.ff-form-col input, .ff-form-col select { min-height: 34px; }
.ff-stipendi input.ff-money { width: 110px; text-align: right; font-family: var(--font-mono); min-height: 28px; }
tr.ff-changed td { background: rgba(194, 240, 76, .06); }

/* ===== v2 Fase 6 · mercato a giornate ===== */
.ff-hint { font-size: 11px; color: var(--gesso-3); margin: 6px 0 0; line-height: 1.4; }
.ff-hint.ff-closed { color: var(--rosso); font-weight: 600; }
.ff-lead { color: var(--lime); font-weight: 700; text-transform: uppercase; font-size: 11px; letter-spacing: .04em; }
.bid-form input[type=text] { margin-right: 4px; }
#pl_max, #pf_max { border-style: dashed; }
.ff-session { margin: 0 0 18px; }
.ff-session-title { font-family: var(--font-display); font-size: 18px; text-transform: uppercase; letter-spacing: .04em; margin: 12px 0 6px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ff-session-chiusa .ff-session-title { opacity: .7; }
.ff-badge.ff-day-futura { background: var(--linea); color: var(--gesso-3); }
.ff-badge.ff-day-aperta { background: var(--verde); color: #fff; }
.ff-badge.ff-day-chiusa { background: var(--linea-forte); color: var(--gesso); }
.ff-badge.ff-day-preparazione { background: var(--linea); color: var(--gesso-3); }
.ff-day-row-aperta td.table1 { background: rgba(120, 200, 80, .08); }
.ff-day-row-chiusa td.table1 { color: var(--gesso-3); }
.ff-dt { font-family: var(--font-mono); font-size: 12px; padding: 2px 4px; background: transparent; color: var(--gesso); border: 1px solid var(--linea); border-radius: var(--radius-s); }
.ff-dt[readonly] { opacity: .6; }
.ff-btn-small { padding: 2px 8px !important; font-size: 11px !important; }
.ff-danger-text { color: var(--rosso) !important; }
.ff-selected td.table1 { outline: 1px solid var(--lime); }
.ff-cancelled td.table1, .ff-cancelled td.table10:not(.ff-ref) { text-decoration: line-through; opacity: .55; }
.ff-sub { margin: 14px 0 4px; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .04em; }
.ff-settings label { min-width: 200px; }
.ff-archivio td.table1 { font-size: 12px; }

/* ===== v2 Fase 7 · fine mercato ===== */
.ff-details { margin: 8px 0 14px; border: 1px solid var(--linea); border-radius: var(--radius-s); padding: 6px 10px; }
.ff-details > summary { cursor: pointer; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .04em; font-size: 14px; color: var(--gesso); }
.ff-details > summary strong { color: var(--lime); }
.ff-recap { font-size: 14px; line-height: 1.6; padding: 10px 12px; margin: 8px 0; background: var(--campo-1); border-left: 3px solid var(--lime); border-radius: var(--radius-s); color: var(--gesso); }
.ff-recap b { color: var(--lime); }
.ff-recap-box { margin-bottom: 16px; }
.ff-bonus-rules input[type=text] { width: 110px; }
.ff-bonus-rules input[name="bc[]"] { width: 40px; }

/* ===== v2 Fase 8 · tornei e Classificate ===== */
.ff-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-bottom: 14px; }
.ff-qualified td.table1 { background: rgba(120, 200, 80, .10); }
.ff-qualified td.table1:first-child { border-left: 3px solid var(--lime); }
.ff-mine td.table1 { font-weight: 600; }
.ff-cal td.table1 { font-size: 13px; }
.ff-waiting td.table1 { opacity: .6; }
.ff-form .ff-f { display: inline-block; width: 16px; height: 16px; line-height: 16px; text-align: center; font-size: 10px; font-weight: 700; border-radius: 3px; margin-right: 2px; color: #fff; }
.ff-f-V { background: var(--verde); } .ff-f-N { background: var(--linea-forte); color: var(--gesso); } .ff-f-P { background: var(--rosso); }
.ff-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 12px; margin: 6px 0; }
.ff-addteams { margin-top: 8px; }

/* ===== v2 · campi obbligatori nel risultato ===== */
.ff-req { display: inline-block; margin-left: 8px; padding: 1px 7px; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--gesso); background: var(--rosso); border-radius: var(--radius-s); vertical-align: middle; }
#submit[disabled] { opacity: .45; cursor: not-allowed; }

/* ===== Modifiche finali (27/09/2026): manager accanto alla squadra, tooltip trofei ===== */
.ff-manager { display: inline-block; margin-left: 8px; font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: .05em; text-transform: uppercase; color: var(--gesso-2); vertical-align: 1px; }
td.table0 .ff-manager { font-size: 12px; }
.ff-trophy-ico { vertical-align: middle; margin: -2px 0 0 6px; }
.qtip-trophy { height: auto !important; }
.qtip-trophy .qtip-content { max-height: 260px; overflow-y: auto; }
.qtip-trophy .qtip-content table.tablepretty { margin: 0; }
.ff-mod-link img { vertical-align: middle; margin-left: 6px; opacity: .85; }
.ff-mod-link:hover img { opacity: 1; }
/* calendari: colonne stabili tra una giornata e l'altra */
.ff-cal { table-layout: fixed; }
.ff-cal td:first-child { width: 72px; }
.ff-cal td:nth-child(3) { width: 96px; text-align: center; }
.ff-cal5 { table-layout: fixed; }
.ff-cal5 th:nth-child(1), .ff-cal5 td:nth-child(1) { width: 110px; }
.ff-cal5 th:nth-child(4), .ff-cal5 td:nth-child(4) { width: 120px; }
.ff-cal5 th:nth-child(5), .ff-cal5 td:nth-child(5) { width: 100px; }

/* ===== Finestre di dialogo del tema (ffAlert / ffConfirm) ===== */
.ff-modal-backdrop { position: fixed; inset: 0; background: rgba(6, 10, 8, .72); display: flex; align-items: center; justify-content: center; z-index: 99999; padding: 16px; }
.ff-modal { background: var(--campo-1); border: 1px solid var(--linea-forte); border-radius: var(--radius); box-shadow: var(--shadow-2); width: min(440px, 100%); padding: 18px 20px; color: var(--gesso); font-family: var(--font-body); }
.ff-modal-title { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .05em; font-size: 16px; color: var(--gesso-2); margin: 0 0 8px; }
.ff-modal-msg { font-size: 14px; line-height: 1.45; margin: 0 0 16px; white-space: pre-line; }
.ff-modal-actions { display: flex; gap: 10px; justify-content: flex-end; }
.ff-modal-actions button { padding: 9px 16px; border-radius: var(--radius-s); border: 1px solid var(--linea-forte); background: var(--campo-2); color: var(--gesso); cursor: pointer; font: 600 13px var(--font-body); }
.ff-modal-actions button.ff-primary { background: var(--verde); border-color: var(--verde); color: #fff; }
.ff-modal-actions button.ff-primary.ff-danger { background: var(--rosso); border-color: var(--rosso); }
.ff-modal-actions button:hover { filter: brightness(1.1); }

/* ===== Scheda d'offerta nel tooltip (27/09/2026): larghezza fluida, modulo in colonna ===== */
.qtip-bid { height: auto !important; }
/* Popup a clic (scheda d'offerta, storico offerte, trofei, prestiti): mai più larghi dello schermo. Hanno una larghezza
   fissa in linea (280-380px) che da desktop resta quella; sui telefoni stretti si accorciano e js/fifa-ui.js li riporta
   dentro lo schermo (03/10/2026: su iPhone da 393px la scheda d'offerta usciva di 46px a sinistra). */
.qtip.qtip-bootstrap { max-width: calc(100vw - 16px) !important; }
.qtip.ff-tip-shifted .qtip-tip { display: none !important; }
/* Storico offerte (popup): largo quanto serve alle sue quattro colonne, mai più dello schermo. Era fisso a 300px e da
   quando c'è la colonna «Note» (rilancio automatico, annullata: motivo) restava tagliata a destra su ogni dispositivo. */
.qtip.qtip-storico { width: max-content !important; min-width: 300px; max-width: 470px !important; }
@media (max-width: 486px) {
  .qtip.qtip-storico { min-width: 0; max-width: calc(100vw - 16px) !important; }
  .qtip-storico .qtip-content { padding: 8px !important; }
  .qtip-storico table.tablepretty td { padding: 6px 7px; font-size: 12.5px; }
  .qtip-storico table.tablepretty thead td { font-size: 11.5px; letter-spacing: .06em; }
}
.qtip-storico table.tablepretty { margin: 0; }
.qtip-storico table.tablepretty td { padding: 7px 9px; }
.qtip-storico table.tablepretty td.table10:first-child { white-space: nowrap; }
.ff-nw { white-space: nowrap; }
.qtip-bid .qtip-content { overflow: visible; padding: 6px !important; }
.qtip-bid .dash_content_sectionresult { overflow: visible; }
.player-profile { width: 100%; max-width: 360px; }
.header-profile { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: auto; min-height: 40px; line-height: 1.2; padding: 8px 10px; }
.header-profile .player-name { float: none; padding: 0; white-space: normal; }
.header-profile .team-emblem { float: none; height: auto; padding: 0; flex: 0 0 auto; }
.header-profile .team-emblem img { display: block; width: 28px; height: 28px; border-radius: 50%; background: var(--gesso); object-fit: contain; }
.content-profile { display: flex; gap: 8px; padding: 8px; }
.foto-profile { float: none; padding: 0; width: 96px; flex: 0 0 96px; }
.foto-profile img { width: 96px; height: 96px; object-fit: cover; background: var(--campo-2); }
.info-profile { float: none; width: auto; flex: 1 1 auto; min-width: 0; }
.text-profile { font-size: 12px; line-height: 1.55; padding: 0; }
.footer-profile { padding: 0; }
.bid-form { height: auto; padding: 10px; text-align: left; }
.bid-form .input-form { width: 100%; }
.bid-form form { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.bid-form input[type="text"] { float: none; flex: 1 1 110px; width: auto; min-width: 0; margin: 0; }
.bid-form input[type="submit"] { float: none; margin: 0; flex: 0 0 auto; padding: 8px 14px; line-height: 1.2; }
.bid-form p.ff-hint { flex-basis: 100%; margin: 4px 0 0; }
.bid-form label.error { flex-basis: 100%; color: var(--rosso); font-size: 11px; }
/* iPhone (03/10/2026): Safari ingrandisce la pagina quando si tocca un campo con il testo sotto i 16px, e a pagina
   ingrandita la scheda d'offerta non sta più nello schermo. Sui dispositivi a tocco importo e tetto usano 16px. */
@media (max-width: 900px), (hover: none) {
  .bid-form input[type="text"] { font-size: 16px; }
  .bid-form input[type="text"]::placeholder { font-size: 13px; }
}

/* ===== Tabelle: testi a capo, ordinamento, scorrimento guidato, schede su telefono (05/10/2026) =====
   La parte attiva è in js/fifa-ui.js (blocco «Tabelle»). Qui l'aspetto. */

/* --- testi lunghi a capo: le tabelle dei giocatori avevano white-space: nowrap in linea, e con nomi di squadra lunghi
   la tabella Vendite usciva di 223px dalla colonna (922px su qualsiasi monitor). Il nome resta su una riga. --- */
table.dataTable.ff-wrap { white-space: normal; }
@media (min-width: 901px) { table.dataTable.ff-wrap td.table0 { white-space: nowrap; } }
/* le pillole (fascia, età, overall, importi) non si spezzano mai: «82-80» andava a capo sul trattino nelle colonne strette */
span.ck1, span.ck2, span.ck3, span.ck4, span.ck5, span.ck6, .label, .labelov, .labelage, .bidauc { white-space: nowrap; }
/* sotto i 900px la colonna del nome non ha più la larghezza minima fissa di alcune pagine storiche (200px) */
@media (max-width: 900px) { table.dataTable th.first-head { min-width: 0 !important; } }

/* --- ordinamento: intestazioni cliccabili; la freccetta sta nel margine destro della cella, senza allargarla --- */
table.ff-sortable tr > th { cursor: pointer; -webkit-user-select: none; user-select: none; }
table.ff-sortable tr > th:hover { color: var(--gesso); }
/* la freccetta segue il testo ma è larga zero: sborda nel margine della cella e non cambia la larghezza delle colonne */
table.ff-sortable tr > th::after { content: "↕"; display: inline-block; width: 0; position: relative; left: 5px; font: 400 10px/1 var(--font-body); letter-spacing: 0; white-space: nowrap; opacity: .45; }
table.ff-sortable tr > th[aria-sort] { color: var(--gesso); }
table.ff-sortable tr > th[aria-sort="ascending"]::after { content: "▲"; opacity: 1; color: var(--lime); }
table.ff-sortable tr > th[aria-sort="descending"]::after { content: "▼"; opacity: 1; color: var(--lime); }
table.ff-sortable tr > th.ff-nosort { cursor: default; }
table.ff-sortable tr > th.ff-nosort:hover { color: var(--gesso-3); }
table.ff-sortable tr > th.ff-nosort::after { content: none; }

/* --- scorrimento guidato: il riquadro esiste solo per le tabelle più larghe del loro spazio --- */
.ff-tx { position: relative; margin: 0 0 22px; clear: both; }   /* clear: i titoli legacy hanno elementi float (conto alla rovescia) */
.ff-tx-view {
  overflow-x: auto; overflow-y: hidden;
  border: 1px solid var(--linea); border-radius: var(--radius);
  background: var(--campo-0); box-shadow: var(--shadow-1);
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.ff-tx-view::-webkit-scrollbar { display: none; }
.ff-tx-view:focus { outline: none; }
.ff-tx-view:focus-visible { outline: 2px solid var(--verde); outline-offset: -2px; }
.ff-tx-view > table.dataTable, .ff-tx-view > table.sortTable { margin: 0; border: 0; border-radius: 0; box-shadow: none; overflow: visible; }
/* i contenitori che scorrevano per colpa della tabella smettono: così la barra può agganciarsi al fondo dello schermo */
.ff-tx-host { overflow-x: clip !important; overflow-y: visible !important; }
/* prima colonna ferma a sinistra */
.ff-tx-pin .ff-tx-view > table tr > :first-child { position: sticky; left: 0; z-index: 2; background-color: var(--campo-0); }
.ff-tx-pin .ff-tx-view > table tr > th:first-child { z-index: 3; background-color: var(--campo-1); }
.ff-tx-pin .ff-tx-view > table tr:hover > td:first-child { background-color: var(--campo-2); }
.ff-tx-pin .ff-tx-view > table tr.ff-changed > td:first-child { background-image: linear-gradient(rgba(194, 240, 76, .06), rgba(194, 240, 76, .06)); }
.ff-tx-pin .ff-tx-view > table tr.ff-day-row-aperta > td:first-child { background-image: linear-gradient(rgba(120, 200, 80, .08), rgba(120, 200, 80, .08)); }
.ff-tx-pin .ff-tx-view > table tr.ff-qualified > td:first-child { background-image: linear-gradient(rgba(120, 200, 80, .10), rgba(120, 200, 80, .10)); }
.ff-tx-pin.ff-tx-left .ff-tx-view > table tr > :first-child { box-shadow: 8px 0 12px -8px rgba(0, 0, 0, .75), inset -1px 0 0 var(--linea-forte); }
/* sfumatura sul lato dove c'è altro da vedere */
.ff-tx::before, .ff-tx::after { content: ""; position: absolute; top: 1px; bottom: 31px; width: 34px; pointer-events: none; opacity: 0; transition: opacity .15s; z-index: 4; }
.ff-tx::after { right: 1px; background: linear-gradient(to right, rgba(12, 19, 16, 0), rgba(12, 19, 16, .92)); border-radius: 0 var(--radius) 0 0; }
.ff-tx::before { left: 1px; background: linear-gradient(to left, rgba(12, 19, 16, 0), rgba(12, 19, 16, .92)); border-radius: var(--radius) 0 0 0; }
.ff-tx-on.ff-tx-right::after { opacity: 1; }
.ff-tx-on.ff-tx-left:not(.ff-tx-pin)::before { opacity: 1; }
/* barra con le frecce, agganciata in fondo allo schermo finché la tabella è a video */
.ff-tx-bar { display: none; align-items: center; gap: 6px; height: 30px; padding: 0 6px; margin-top: -1px; background: var(--campo-1); border: 1px solid var(--linea-forte); border-radius: 0 0 var(--radius) var(--radius); position: sticky; bottom: 0; bottom: env(safe-area-inset-bottom, 0px); z-index: 6; box-shadow: 0 -6px 14px rgba(0, 0, 0, .35); }
.ff-tx-on .ff-tx-bar { display: flex; }
.ff-tx-on .ff-tx-view { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.ff-tx-track { flex: 1 1 auto; position: relative; height: 12px; border-radius: 6px; background: var(--campo-0); border: 1px solid var(--linea); cursor: pointer; touch-action: none; }
.ff-tx-thumb { position: absolute; top: 1px; bottom: 1px; left: 0; min-width: 40px; border-radius: 5px; background: var(--gesso-3); cursor: grab; }
.ff-tx-thumb:hover, .ff-tx-drag .ff-tx-thumb { background: var(--verde); }
.ff-tx-drag .ff-tx-thumb { cursor: grabbing; }
.ff-tx-arrow { flex: 0 0 auto; width: 30px; height: 22px; padding: 0; border: 1px solid var(--linea-forte); border-radius: 6px; background: var(--campo-2); color: var(--gesso); font: 700 15px/1 var(--font-body); cursor: pointer; }
.ff-tx-arrow:hover:not([disabled]) { background: var(--verde-scuro); border-color: var(--verde); }
.ff-tx-arrow[disabled] { opacity: .3; cursor: default; }
body.ff-tx-any #topPage { bottom: 50px; }               /* «torna su» sopra la barra */
@media (hover: none), (max-width: 700px) {
  .ff-tx-arrow { display: none; }                         /* col dito si trascina la tabella: la barra resta come indicatore */
  .ff-tx-bar { height: 18px; padding: 0 8px; }
  .ff-tx-track { height: 6px; border: 0; background: var(--linea); }
  .ff-tx-thumb { top: 0; bottom: 0; background: var(--gesso-2); }
  .ff-tx::before, .ff-tx::after { bottom: 19px; }
  body.ff-tx-any #topPage { bottom: 34px; }
}
/* NB: nessuna regola che cambi la LARGHEZZA della tabella può dipendere da .ff-tx-on / .ff-tx-pin: la tabella
   entrerebbe e uscirebbe dal suo spazio all'infinito (acceso → più stretta → spento → più larga → acceso…). */

/* --- menu «Ordina per» e schede: solo sotto i 700px, per le tabelle con classe ff-cards (pagine delle aste) --- */
.ff-sortsel { display: none; }
@media (max-width: 700px) {
  .ff-sortsel { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; clear: both; }
  .ff-sortsel label { flex: 0 0 auto; font: 600 13px/1 var(--font-display); letter-spacing: .1em; text-transform: uppercase; color: var(--gesso-3); }
  .ff-sortsel select { flex: 1 1 auto; min-width: 0; padding: 9px 10px; font: 500 16px/1.2 var(--font-body); color: var(--gesso); background: var(--campo-1); border: 1px solid var(--linea-forte); border-radius: var(--radius-s); }
  .ff-tx-cards .ff-tx-view { border: 0; background: transparent; box-shadow: none; overflow: visible; }
  table.dataTable.ff-cards, table.dataTable.ff-cards > tbody { display: block; white-space: normal; background: transparent; border: 0; box-shadow: none; overflow: visible; }
  table.dataTable.ff-cards { clear: both; }
  table.dataTable.ff-cards tr.title { display: none; }
  table.dataTable.ff-cards tr { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 10px; padding: 12px 14px; margin: 0 0 10px; background: var(--campo-0); border: 1px solid var(--linea); border-radius: var(--radius); box-shadow: var(--shadow-1); }
  table.dataTable.ff-cards td { display: block; padding: 0; border: 0; background: transparent !important; font-size: 14px; min-width: 0; }
  table.dataTable.ff-cards td.c-name { order: 1; flex: 1 1 0; min-width: 55%; font-size: 16px; white-space: normal; }
  table.dataTable.ff-cards td.c-act { order: 2; flex: 0 0 auto; margin-left: auto; }
  table.dataTable.ff-cards td.c-team { order: 3; flex: 1 1 100%; }
  table.dataTable.ff-cards td.c-pos { order: 4; font: 600 12.5px/1 var(--font-mono); color: var(--gesso); }
  table.dataTable.ff-cards td.c-age { order: 5; }
  table.dataTable.ff-cards td.c-ovr { order: 6; }
  table.dataTable.ff-cards td.c-fascia { order: 7; margin-left: auto; }
  table.dataTable.ff-cards td.c-base { order: 8; flex: 1 1 100%; }
  table.dataTable.ff-cards td.c-time { order: 9; flex: 1 1 100%; }
  table.dataTable.ff-cards td.c-offer { order: 10; flex: 1 1 100%; padding-top: 8px; border-top: 1px solid var(--linea); }
  table.dataTable.ff-cards td.c-none { display: none; }           /* nessuna scadenza: il giocatore non è ancora in asta */
  table.dataTable.ff-cards td.c-time p { display: inline; margin: 0; }
  table.dataTable.ff-cards td.c-time br { display: none; }
  table.dataTable.ff-cards td.c-time .ff-ref { margin-left: 8px; }
  table.dataTable.ff-cards td.c-age::before, table.dataTable.ff-cards td.c-ovr::before, table.dataTable.ff-cards td.c-base::before,
  table.dataTable.ff-cards td.c-time::before, table.dataTable.ff-cards td.c-offer::before { font: 600 11.5px/1 var(--font-display); letter-spacing: .1em; text-transform: uppercase; color: var(--gesso-3); margin-right: 6px; }
  table.dataTable.ff-cards td.c-age::before { content: "Età"; }
  table.dataTable.ff-cards td.c-ovr::before { content: "Ovr"; }
  table.dataTable.ff-cards td.c-base::before { content: "Base d'asta"; }
  table.dataTable.ff-cards td.c-time::before { content: "Scadenza"; }
  table.dataTable.ff-cards td.c-offer::before { content: attr(data-label); }
  table.dataTable.ff-cards td.c-act > a, table.dataTable.ff-cards td.c-act > img { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--linea-forte); border-radius: var(--radius-s); background: var(--campo-1); }
  table.dataTable.ff-cards td.c-act > img { padding: 10px; opacity: .6; }
}

/* ===== Le mie offerte (06/10/2026): etichette, righe tinte, filtro sopra la tabella, pagina di riepilogo ===== */
/* etichetta nella cella «Offerta»: in testa (verde), superato (giallo), aggiudicato (verde pieno), perso (grigio) */
.ff-mybid { display: inline-block; padding: 2px 8px; border-radius: 999px; font-family: var(--font-display); font-size: 10.5px; font-weight: 700; line-height: 1.5; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; vertical-align: middle; }
.ff-mybid-testa { background: var(--verde-tinta); color: var(--verde-hover); border: 1px solid rgba(47, 174, 102, .45); }
.ff-mybid-superato { background: rgba(242, 201, 76, .14); color: var(--giallo); border: 1px solid rgba(242, 201, 76, .45); }
.ff-mybid-vinto { background: var(--verde); color: #fff; border: 1px solid var(--verde); }
.ff-mybid-perso { background: rgba(255, 255, 255, .06); color: var(--gesso-3); border: 1px solid var(--linea-forte); }
/* nella tabella da computer l'etichetta va su una riga sua e il dettaglio può andare a capo: la colonna non si allarga */
.ff-mybid-extra { white-space: normal; }
table.dataTable td.c-offer .ff-mybid-wrap { display: block; margin-top: 4px; }
@media (max-width: 700px) { table.dataTable.ff-cards td.c-offer .ff-mybid-wrap { display: inline; margin: 0 0 0 6px; } }
/* riga con una mia offerta: tinta leggera, anche sulla prima colonna ferma */
tr.ff-mine-testa > td, tr.ff-mine-vinto > td { background-image: linear-gradient(rgba(47, 174, 102, .09), rgba(47, 174, 102, .09)); }
tr.ff-mine-superato > td { background-image: linear-gradient(rgba(242, 201, 76, .09), rgba(242, 201, 76, .09)); }
.ff-tx-pin .ff-tx-view > table tr.ff-mine-testa > td:first-child, .ff-tx-pin .ff-tx-view > table tr.ff-mine-vinto > td:first-child { background-image: linear-gradient(rgba(47, 174, 102, .09), rgba(47, 174, 102, .09)); }
.ff-tx-pin .ff-tx-view > table tr.ff-mine-superato > td:first-child { background-image: linear-gradient(rgba(242, 201, 76, .09), rgba(242, 201, 76, .09)); }
@media (max-width: 700px) {
  table.dataTable.ff-cards tr.ff-mine-testa, table.dataTable.ff-cards tr.ff-mine-vinto { border-color: rgba(47, 174, 102, .55); }
  table.dataTable.ff-cards tr.ff-mine-superato { border-color: rgba(242, 201, 76, .55); }
}
/* arrivo dal link della pagina «Le mie offerte»: la riga lampeggia una volta */
tr:target > td { animation: ffRigaTarget 2.4s ease-out 1; }
@keyframes ffRigaTarget { 0%, 40% { box-shadow: inset 0 0 0 999px rgba(194, 240, 76, .22); } 100% { box-shadow: inset 0 0 0 999px rgba(194, 240, 76, 0); } }
/* filtro sopra la tabella (creato dallo script) */
.ff-minebar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0 0 10px; clear: both; }
.ff-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border: 1px solid var(--linea-forte); border-radius: 999px; background: var(--campo-1); color: var(--gesso-2); font: 600 12.5px/1 var(--font-display); letter-spacing: .05em; text-transform: uppercase; cursor: pointer; }
.ff-pill b { font: 600 12px/1 var(--font-mono); color: var(--gesso-3); }
.ff-pill:hover:not([disabled]) { border-color: var(--verde); color: var(--gesso); }
.ff-pill[aria-pressed="true"] { background: var(--verde); border-color: var(--verde); color: #fff; }
.ff-pill[aria-pressed="true"] b { color: rgba(255, 255, 255, .85); }
.ff-pill[disabled] { opacity: .45; cursor: default; }
.ff-pill-pin { margin-left: 6px; }
.ff-pill-pin::before { content: "↑"; font-weight: 700; }
.ff-minebar-link { margin-left: auto; font-size: 13px; white-space: nowrap; }
.ff-minebar-note { margin: -4px 0 10px; font-size: 12.5px; color: var(--gesso-3); }
.ff-minebar-note a { font-weight: 600; }
tr.ff-filtered-out { display: none !important; }
@media (max-width: 700px) {
  .ff-minebar { gap: 6px; }
  .ff-pill { min-height: 34px; font-size: 11.5px; padding: 0 10px; letter-spacing: .03em; }
  .ff-pill b { font-size: 11.5px; }
  .ff-minebar-link { flex: 1 1 auto; margin-left: auto; text-align: right; }
  .ff-minebar-note { font-size: 12px; }
}
/* pagina «Le mie offerte» */
.ff-mie-riassunto { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0 0 12px; font-size: 13px; }
.ff-mie-aste { margin: 0 0 14px; padding: 0; list-style: none; }
.ff-mie-aste li { padding: 6px 0; border-bottom: 1px solid var(--linea); }
/* da computer i dettagli (squadra del giocatore, tipo d'asta, tetto) stanno su una seconda riga: la tabella resta stretta */
@media (min-width: 701px) {
  table.dataTable.ff-mie .ff-mie-sub { display: block; margin-top: 2px; white-space: normal; }
  table.dataTable.ff-mie td.c-team { min-width: 150px; }
  table.dataTable.ff-mie td.c-offer .ff-mybid-extra { display: block; margin-top: 2px; }
}
table.dataTable.ff-mie td.c-act a.ff-mie-vai { font: 700 22px/1 var(--font-body); color: var(--gesso-2); text-decoration: none; }
table.dataTable.ff-mie td.c-act a.ff-mie-vai:hover { color: var(--lime); }
@media (max-width: 700px) {
  table.dataTable.ff-cards.ff-mie td.c-time strong { font-size: 14px; }
}

/* ===== Premi individuali (27/09/2026) ===== */
.ff-tabs { display: flex; gap: 8px; margin: 0 0 12px; flex-wrap: wrap; }
.ff-tabs a { display: inline-block; padding: 8px 14px; border: 1px solid var(--linea-forte); border-radius: var(--radius-s); color: var(--gesso-2); font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: 14px; }
.ff-tabs a.ff-tab-active { background: var(--verde); border-color: var(--verde); color: #fff; }
.ff-award-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin: 6px 0 14px; }
.ff-award-card { background: var(--campo-1); border: 1px solid var(--linea-forte); border-radius: var(--radius); padding: 12px 14px; }
.ff-award-card h4 { margin: 0 0 8px; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: 16px; color: var(--gesso); }
.ff-award-card h4 small { text-transform: none; letter-spacing: 0; font-weight: 500; }
.ff-award-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--linea); }
.ff-award-row:first-of-type { border-top: 0; }
.ff-award-medal { font-size: 20px; flex: 0 0 26px; text-align: center; }
.ff-award-name { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.ff-award-name a { font-weight: 700; color: var(--gesso); overflow-wrap: anywhere; }
.ff-award-name small { color: var(--gesso-3); font-size: 12px; }
.ff-award-value { flex: 0 0 auto; max-width: 46%; font-family: var(--font-mono); font-weight: 700; color: var(--lime); text-align: right; display: flex; flex-direction: column; align-items: flex-end; }
.ff-award-value small.ff-award-detail { color: var(--gesso-3); font-family: var(--font-body); font-weight: 500; font-size: 11px; white-space: nowrap; }
.ff-award-value small.ff-award-bonus { color: var(--fascia-1); font-family: var(--font-body); font-weight: 600; font-size: 11px; }
.ff-rank-1 .ff-award-name a { color: var(--fascia-1); }
.ff-award-msg { width: 100%; font-family: var(--font-mono); font-size: 13px; line-height: 1.5; padding: 10px 12px; background: var(--campo-0); color: var(--gesso); border: 1px solid var(--linea-forte); border-radius: var(--radius-s); white-space: pre; resize: vertical; }
.ff-pallone .ff-form-inline { margin-bottom: 6px; }
.ff-albo { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 8px 16px; margin: 4px 0 16px; }
.ff-albo-item { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--campo-1); border: 1px solid var(--linea-forte); border-radius: var(--radius-s); }
.ff-albo-what { flex: 1 1 auto; font-weight: 600; color: var(--gesso); }
.ff-albo-what b { color: var(--fascia-1); margin-left: 4px; }
.ff-albo-meta { color: var(--gesso-3); font-size: 12px; text-align: right; }

/* medaglie e icone dei premi (niente emoji nel sito: rese diverse da dispositivo a dispositivo) */
.ff-medal { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; font-family: var(--font-display); font-weight: 700; font-size: 14px; color: #1a1408; flex: 0 0 26px; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .25), 0 1px 2px rgba(0, 0, 0, .5); }
.ff-medal-1 { background: linear-gradient(160deg, #ffe38a, #e0aa1c); }
.ff-medal-2 { background: linear-gradient(160deg, #e6ecea, #9aa5a0); }
.ff-medal-3 { background: linear-gradient(160deg, #e7b083, #a3602d); }
.ff-award-ico { width: 20px; height: 20px; vertical-align: -4px; margin-right: 2px; }
.ff-award-card h4 .ff-award-ico { width: 22px; height: 22px; vertical-align: -5px; }

/* ===== Logo (27/09/2026): marchio nell'intestazione, badge in home e nel login ===== */
#header #logo::before, #logo::before { content: ''; display: inline-block; width: 34px; height: 34px; margin: -6px 9px 0 0; vertical-align: middle; background: url(../images/logo-mark-64.png) center / contain no-repeat; }
.ff-hero { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; padding: 18px 16px; margin: 0 0 16px; background: linear-gradient(180deg, var(--campo-1), var(--campo-0)); border: 1px solid var(--linea-forte); border-radius: var(--radius); }
.ff-hero img { width: 120px; height: 120px; flex: 0 0 auto; }
.ff-hero-text { text-align: center; }
.ff-hero-title { font-family: var(--font-display); font-weight: 700; font-size: 28px; text-transform: uppercase; letter-spacing: .04em; color: var(--gesso); line-height: 1.05; }
.ff-hero-tag { color: var(--gesso-2); font-size: 14px; margin-top: 4px; }
.ff-hero-tag b { color: var(--lime); }
.ff-brand-login { text-align: center; }
.ff-login-badge { display: block; margin: 0 auto 8px; width: 150px; height: 150px; }
.ff-login-tag { color: var(--gesso-3); margin: 0 0 12px; font-size: 13px; }
@media (max-width: 640px) { .ff-hero img { width: 88px; height: 88px; } .ff-hero-title { font-size: 22px; } #logo::before, #header #logo::before { width: 26px; height: 26px; margin-right: 6px; } }

/* statistiche: il "+" sta prima del nome, così resta allineato */
table.sortTable td.l_player .ff-detail img, table.sortTable td.r_club .ff-detail img { margin: 0 6px 0 0; }
/* Top 11 */
.ff-pos { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 22px; padding: 0 6px; border-radius: 4px; background: var(--campo-2); border: 1px solid var(--linea-forte); font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: .05em; color: var(--gesso-2); flex: 0 0 auto; }
.ff-pos-por { color: var(--fascia-1); } .ff-pos-dif { color: var(--blu); } .ff-pos-cen { color: var(--verde-hover); } .ff-pos-att { color: var(--rosso); }
.ff-top11 .ff-form-inline { margin-bottom: 6px; }
.ff-top11 .ff-form-inline label { min-width: 0; }
/* premi a mano (02/10/2026): giocatore cercato per nome + squadra di allora */
.ff-pick-row { align-items: center; flex-wrap: nowrap; }
.ff-pick-row > .ff-medal, .ff-pick-row > .ff-pos { flex: 0 0 auto; }
.ff-pallone .ff-pick-row { flex-wrap: wrap; }
.ff-pick { display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 300px; min-width: 0; }
.ff-pick-box { position: relative; display: flex; flex: 1 1 170px; min-width: 0; }
.ff-pick-q { flex: 1 1 auto; width: 100%; min-width: 0; min-height: 34px; padding-right: 30px; }
.ff-pick-clear { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; color: var(--gesso-3); font-size: 18px; line-height: 1; cursor: pointer; border-radius: 50%; user-select: none; }
.ff-pick-clear:hover, .ff-pick-clear:focus { color: var(--gesso); background: var(--campo-2); outline: none; }
.ff-pick-team { flex: 1 1 150px; min-width: 0; max-width: 100%; }
.ff-pick-noteam .ff-pick-team { border-color: var(--giallo); box-shadow: 0 0 0 1px var(--giallo) inset; }
.ff-pick-list { position: absolute; z-index: 70; top: calc(100% + 3px); left: 0; right: 0; max-height: 300px; overflow-y: auto; background: var(--campo-1); border: 1px solid var(--linea-forte); border-radius: var(--radius-s); box-shadow: var(--shadow-2); text-align: left; }
.ff-pick-item { padding: 8px 12px; cursor: pointer; color: var(--gesso-2); font-size: 13.5px; line-height: 1.35; border-bottom: 1px solid var(--linea); }
.ff-pick-item:last-child { border-bottom: 0; }
.ff-pick-item b { color: var(--gesso); font-weight: 600; }
.ff-pick-item span { color: var(--gesso-3); font-size: 12px; margin-left: 4px; white-space: nowrap; }
.ff-pick-item small { display: block; color: var(--gesso-3); font-size: 11.5px; }
.ff-pick-item:hover, .ff-pick-item.ff-on { background: var(--verde-tinta); }
.ff-pick-empty { padding: 10px 12px; color: var(--gesso-3); font-size: 13px; }
@media (min-width: 901px) { .ff-pick-list { min-width: 340px; } }
label.ff-check { flex-direction: row; align-items: center; gap: 8px; font-size: 13px; color: var(--gesso-2); cursor: pointer; }
label.ff-check input { min-height: 0; }
.ff-award-card-wide { grid-column: 1 / -1; }
.ff-award-card-wide .ff-award-row { display: inline-flex; width: calc(50% - 8px); box-sizing: border-box; margin-right: 8px; }
@media (max-width: 720px) { .ff-award-card-wide .ff-award-row { width: 100%; margin-right: 0; } }

/* icone "apri scheda" / "squadra" nelle statistiche e nella ricerca */
.ff-detail img { width: 18px; height: 18px; vertical-align: middle; opacity: .85; transition: opacity .15s, filter .15s; }
.ff-detail:hover img { opacity: 1; filter: drop-shadow(0 0 3px rgba(194, 240, 76, .85)); }

/* ricerca giocatori: tutte le colonne centrate tranne il nome */
table.dataTable.ff-db th.head:not(:first-child), table.dataTable.ff-db th:not(:first-child), table.dataTable.ff-db td:not(:first-child) { text-align: center !important; }
table.ff-db td:not(:first-child) img { margin: 0 2px; }

/* sicurezza (01/10/2026): le cancellazioni via link diventano form POST; il bottone resta un'icona nuda */
button.ff-linkbtn { background: none; border: 0; padding: 0; margin: 0; cursor: pointer; vertical-align: middle; line-height: 1; color: inherit; font: inherit; }
button.ff-linkbtn img { vertical-align: middle; }
form.ff-inline { display: inline; margin: 0; }

/* gestione torneo (09/10/2026): logo del torneo accanto al nome, caricamento diretto */
.ff-torneo-head { display: flex; align-items: flex-start; gap: 14px; margin: 0 0 14px; }
.ff-torneo-head .ff-torneo-logo { width: 56px; height: 56px; object-fit: contain; background: #fff; border-radius: 6px; flex: none; }
.ff-torneo-head .ff-torneo-forms { min-width: 0; flex: 1; }
.ff-torneo-head .ff-torneo-forms .ff-form-inline { margin-bottom: 6px; }
.ff-torneo-head .ff-torneo-forms .ff-ref { display: block; margin-top: 4px; }
@media (max-width: 700px) { .ff-torneo-head { flex-direction: column; gap: 8px; } }
