﻿/* FantaHelper — stylesheet rebuilt from Apple HIG-derived design rules.
   Semantic tokens, light/dark appearance, 44pt targets, 4.5:1 text contrast,
   labeled tab bar, reduced-motion / reduced-transparency, and safe areas.
   Previous duplicated cascade (12k+ lines) was discarded.
*/
/* ==========================================================================
   FANTAHELPER — DESIGN SYSTEM
   Rebuilt from scratch as a single token-driven stylesheet.

   Architecture:
   - One set of semantic CSS custom properties defined once on :root (dark,
     the app default) and re-assigned once under [data-theme="light"].
   - Every component below reads from those variables. Nothing hardcodes a
     dark or light color directly, so there is exactly one source of truth
     per surface/text role and no cascade fights between duplicated blocks.
   - Tailwind (loaded via CDN in index.html) handles one-off utility classes
     used inline in the HTML/JS (flex, p-4, text-2xl, bg-blue-600, etc).
     This file only defines the custom component classes and IDs that
     Tailwind doesn't cover, plus a compact set of overrides for the
     Tailwind gray/white utility classes that script.js injects directly
     (so JS-generated content still adapts to light mode).
   ========================================================================== */

/* ---------------------------------------------------------------------- */
/* 1. TOKENS                                                               */
/* ---------------------------------------------------------------------- */

:root {
  /* Brand accents (same in both themes — these are the app's identity) */
  --accent-blue: #3b82f6;
  --accent-blue-strong: #2563eb;
  --accent-purple: #8b5cf6;
  --accent-purple-strong: #7c3aed;
  --accent-green: #10b981;
  --accent-green-strong: #059669;
  --accent-yellow: #f59e0b;
  --accent-yellow-strong: #d97706;
  --accent-red: #ef4444;
  --accent-red-strong: #dc2626;
  --accent-pink: #ec4899;
  --accent-gradient: linear-gradient(90deg, var(--accent-blue) 0%, var(--accent-purple) 100%);

  /* Radius / spacing scale */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 0.25s;

  /* ---- Dark theme (default) ---- */
  --bg-app: #0a0e16;
  --bg-app-gradient: linear-gradient(160deg, #0a0e16 0%, #10151f 100%);
  --bg-surface: #10151f;
  --bg-surface-hover: #141b28;
  --bg-elevated: #161d2b;
  --bg-elevated-2: #1b2333;
  --bg-input: #182031;
  --bg-glass: rgba(20, 25, 38, 0.72);
  --bg-glass-strong: rgba(16, 21, 31, 0.92);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-default: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.2);

  --text-primary: #f3f4f6;
  --text-secondary: #c3c9d4;
  --text-muted: #a8b2c4;
  --text-faint: #8b95a8;

  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-card-hover: 0 14px 34px rgba(0, 0, 0, 0.45);
  --shadow-floating: 0 12px 32px rgba(0, 0, 0, 0.4);

  --scrollbar-track: rgba(255, 255, 255, 0.04);
  --scrollbar-thumb: rgba(255, 255, 255, 0.16);
  --scrollbar-thumb-hover: rgba(255, 255, 255, 0.28);

  --field-green-1: #14532d;
  --field-green-2: #1f7a3d;
}

[data-theme="light"] {
  --bg-app: #f4f6fa;
  --bg-app-gradient: linear-gradient(160deg, #f7f9fc 0%, #edf1f7 100%);
  --bg-surface: #ffffff;
  --bg-surface-hover: #f7f9fc;
  --bg-elevated: #f1f4f9;
  --bg-elevated-2: #e7ecf3;
  --bg-input: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --bg-glass-strong: rgba(255, 255, 255, 0.95);

  --border-subtle: rgba(15, 23, 42, 0.07);
  --border-default: rgba(15, 23, 42, 0.12);
  --border-strong: rgba(15, 23, 42, 0.2);

  --text-primary: #10151f;
  --text-secondary: #3d4759;
  --text-muted: #475569;
  --text-faint: #64748b;

  --shadow-card: 0 6px 18px rgba(15, 23, 42, 0.08);
  --shadow-card-hover: 0 14px 30px rgba(15, 23, 42, 0.12);
  --shadow-floating: 0 10px 28px rgba(15, 23, 42, 0.14);

  --scrollbar-track: rgba(15, 23, 42, 0.04);
  --scrollbar-thumb: rgba(15, 23, 42, 0.18);
  --scrollbar-thumb-hover: rgba(15, 23, 42, 0.3);

  --field-green-1: #16a34a;
  --field-green-2: #22c55e;
}

/* ---------------------------------------------------------------------- */
/* 2. RESET & BASE                                                         */
/* ---------------------------------------------------------------------- */

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--bg-app);
  background-image: var(--bg-app-gradient);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.47;
  -webkit-font-smoothing: antialiased;
  padding-top: env(safe-area-inset-top);
  padding-bottom: calc(108px + env(safe-area-inset-bottom));
  transition: background-color var(--duration) var(--ease), color var(--duration) var(--ease);
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* Screen-reader-only utility (used by labels tied to search inputs) */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Visible keyboard focus everywhere, color is never the only cue */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .main-header,
  .taskbar,
  .player-select-popup,
  .player-details-popup {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--bg-surface);
  }
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
}
::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
}

.background-overlay {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(59, 130, 246, 0.14), transparent 45%),
    radial-gradient(circle at 88% 78%, rgba(139, 92, 246, 0.14), transparent 45%);
  z-index: -1;
  pointer-events: none;
}

/* ---------------------------------------------------------------------- */
/* 3. HEADER                                                               */
/* ---------------------------------------------------------------------- */

.main-header {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 92%;
  max-width: 640px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 20px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-floating);
  transition: all 0.4s var(--ease);
}

.main-header.scrolled {
  top: 8px;
  width: auto;
  min-width: 200px;
  padding: 8px 22px;
  border-radius: var(--radius-pill);
  background: var(--bg-glass-strong);
}

.header-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.main-header.scrolled .header-content {
  flex-direction: row;
  justify-content: center;
}

.header-title-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: all var(--duration) var(--ease);
}

.main-header.scrolled .logo {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

.header-content h1 {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.4px;
  margin: 6px 0 0;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.main-header.scrolled .header-content h1 {
  font-size: 1.05rem;
  margin: 0;
}

.header-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 2px 0 0;
}

.main-header.scrolled .header-content p,
.main-header.scrolled .version-label,
.main-header.scrolled .theme-toggle-container {
  display: none;
}

.version-label {
  position: absolute;
  left: 18px;
  top: 18px;
  font-size: 0.7rem;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
}

.theme-toggle-container {
  position: absolute;
  right: 16px;
  top: 16px;
}

.theme-toggle {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-default);
  background: var(--bg-elevated);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--duration) var(--ease);
}

.theme-toggle:hover {
  background: var(--bg-elevated-2);
}

.theme-icon {
  font-size: 1.05rem;
  line-height: 1;
}

/* ---------------------------------------------------------------------- */
/* 4. MAIN CONTENT / SECTION GROUPS                                        */
/* ---------------------------------------------------------------------- */

.main-content {
  padding-top: 130px;
  transition: padding-top var(--duration) var(--ease);
}

.main-header.scrolled ~ .main-content {
  padding-top: 90px;
}

.section-group-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin: 32px 0 16px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------------------------------------------------------------------- */
/* 5. CARD & COLLAPSIBLE SECTIONS                                          */
/* ---------------------------------------------------------------------- */

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-card);
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease), border-color var(--duration) var(--ease);
}

.card:hover {
  box-shadow: var(--shadow-card-hover);
  border-color: var(--border-default);
}

.card h2 {
  font-weight: 700;
  letter-spacing: 0.2px;
}

.card > *:not(:last-child) {
  margin-bottom: 12px;
}

.bg-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.section-toggle {
  width: 100%;
  min-height: 44px;
  padding: 12px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.92rem;
  display: flex;
  justify-content: center;
  transition: background var(--duration) var(--ease), transform var(--duration) var(--ease);
}

.section-toggle:hover {
  background: var(--bg-elevated-2);
  color: var(--text-primary);
}

.section-toggle-label {
  display: block;
}

.section-content {
  overflow: hidden;
  max-height: 20000px;
  opacity: 1;
  margin-top: 10px;
  transition: max-height 0.4s var(--ease), opacity 0.3s var(--ease), margin 0.3s var(--ease), padding 0.3s var(--ease);
}

.section-content.closed {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  pointer-events: none;
}

.options-toggle {
  width: 40px;
  height: 40px;
  min-width: 44px;
  min-height: 44px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: background var(--duration) var(--ease), transform var(--duration) var(--ease);
}

.options-toggle:hover {
  background: var(--bg-elevated-2);
  transform: scale(1.05);
}

.options-container {
  overflow: hidden;
  max-height: 400px;
  opacity: 1;
  transition: max-height 0.3s var(--ease), opacity 0.3s var(--ease);
}

.options-container.hidden {
  max-height: 0;
  opacity: 0;
}

/* ---------------------------------------------------------------------- */
/* 6. FORM ELEMENTS & BUTTONS                                              */
/* ---------------------------------------------------------------------- */

input,
select,
textarea {
  width: auto;
  background: var(--bg-input);
  color: var(--text-primary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.95rem;
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
  opacity: 1;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.btn-primary,
.btn-success {
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease), background var(--duration) var(--ease);
  min-height: 44px;
}

.btn-primary {
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.22), rgba(139, 92, 246, 0.2));
  border-color: rgba(59, 130, 246, 0.35);
  color: var(--text-primary);
}

.btn-primary:hover {
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.35), rgba(139, 92, 246, 0.32));
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(59, 130, 246, 0.22);
}

.btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn-success {
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.24), rgba(16, 185, 129, 0.16));
  border-color: rgba(16, 185, 129, 0.4);
  color: var(--text-primary);
}

.btn-success:hover {
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.36), rgba(16, 185, 129, 0.26));
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.22);
}

.aggiungi-slot,
.toggle-congo {
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.24), rgba(245, 158, 11, 0.18));
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-weight: 600;
  color: var(--text-primary);
  transition: transform var(--duration) var(--ease);
}

.aggiungi-slot:hover,
.toggle-congo:hover {
  transform: translateY(-1px);
}

/* Generic icon-only remove/close buttons: visual glyph stays small,
   tappable box meets the 44x44 minimum touch target. */
.compact-remove-btn,
.remove-injured-btn,
.remove-essential-btn,
.remove-watched-btn,
#clearAstaSelection,
.close-popup,
.close-details-popup,
.add-auto-injured-btn,
.remove-slot {
  min-width: 40px;
  min-height: 40px;
  border: none;
  border-radius: var(--radius-sm);
  background: rgba(239, 68, 68, 0.14);
  color: var(--accent-red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: background var(--duration) var(--ease), transform var(--duration) var(--ease);
}

.compact-remove-btn:hover,
.remove-injured-btn:hover,
.remove-essential-btn:hover,
.remove-watched-btn:hover,
#clearAstaSelection:hover,
.close-popup:hover,
.close-details-popup:hover,
.add-auto-injured-btn:hover,
.remove-slot:hover {
  background: rgba(239, 68, 68, 0.26);
  transform: scale(1.08);
}

/* ---------------------------------------------------------------------- */
/* 7. NAVIGATION — QUICK MENU + BOTTOM TASKBAR                             */
/* ---------------------------------------------------------------------- */

#main-menu {
  background: var(--bg-elevated);
}

.modern-navigation {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 6px 2px 10px;
  scrollbar-width: thin;
}

.modern-nav-item {
  position: relative;
  flex: 0 0 auto;
  min-width: 84px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 10px;
  text-decoration: none;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  transition: transform var(--duration) var(--ease), background var(--duration) var(--ease), border-color var(--duration) var(--ease);
}

.modern-nav-item:hover,
.modern-nav-item.active {
  transform: translateY(-3px);
  border-color: rgba(139, 92, 246, 0.35);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.08));
  color: var(--text-primary);
}

.modern-nav-icon {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--accent-gradient);
  mask-size: 60%;
  -webkit-mask-size: 60%;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-position: center;
}

.modern-nav-label {
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.modern-nav-indicator {
  position: absolute;
  bottom: 4px;
  width: 0;
  height: 3px;
  border-radius: var(--radius-pill);
  background: var(--accent-gradient);
  transition: width var(--duration) var(--ease);
}

.modern-nav-item.active .modern-nav-indicator {
  width: 20px;
}

.modern-nav-item[href="#analizza-scambi"] .modern-nav-icon,
.taskbar-item[href="#analizza-scambi"]::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 7h12m0 0l-4-4m4 4l-4 4m0 6H4m0 0l4 4m-4-4l4-4'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 7h12m0 0l-4-4m4 4l-4 4m0 6H4m0 0l4 4m-4-4l4-4'/%3E%3C/svg%3E");
}

.modern-nav-item[href="#la-mia-squadra"] .modern-nav-icon,
.taskbar-item[href="#la-mia-squadra"]::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.8' stroke='%23fff'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M15 19.128a9.38 9.38 0 002.625.372 9.337 9.337 0 004.121-.952 4.125 4.125 0 00-7.533-2.493M15 19.128v-.003c0-1.113-.285-2.16-.786-3.07M15 19.128v.106A12.318 12.318 0 018.624 21c-2.331 0-4.512-.645-6.374-1.766l-.001-.109a6.375 6.375 0 0111.964-3.07M12 6.375a3.375 3.375 0 11-6.75 0 3.375 3.375 0 016.75 0zm8.25 2.25a2.625 2.625 0 11-5.25 0 2.625 2.625 0 015.25 0z' /%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.8' stroke='%23fff'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M15 19.128a9.38 9.38 0 002.625.372 9.337 9.337 0 004.121-.952 4.125 4.125 0 00-7.533-2.493M15 19.128v-.003c0-1.113-.285-2.16-.786-3.07M15 19.128v.106A12.318 12.318 0 018.624 21c-2.331 0-4.512-.645-6.374-1.766l-.001-.109a6.375 6.375 0 0111.964-3.07M12 6.375a3.375 3.375 0 11-6.75 0 3.375 3.375 0 016.75 0zm8.25 2.25a2.625 2.625 0 11-5.25 0 2.625 2.625 0 015.25 0z' /%3E%3C/svg%3E");
}

.modern-nav-item[href="#vibes"] .modern-nav-icon,
.taskbar-item[href="#vibes"]::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.8' stroke='%23fff'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M9.75 3.104v5.714a2.25 2.25 0 01-.659 1.591L5 14.5m4.75-11.396c-.251.023-.501.05-.75.082m.75-.082a24.301 24.301 0 014.5 0m0 0v5.714c0 .597.237 1.17.659 1.591L19.8 15.3m-5.55-12.196c.251.023.501.05.75.082M19.8 15.3l-1.57.393A9.065 9.065 0 0112 15a9.065 9.065 0 00-6.23-.693L5 14.5m14.8.8 1.402 1.402c1.232 1.232.65 3.318-1.067 3.611A48.309 48.309 0 0112 21c-2.773 0-5.491-.235-8.135-.687-1.718-.293-2.3-2.379-1.067-3.61L5 14.5' /%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.8' stroke='%23fff'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M9.75 3.104v5.714a2.25 2.25 0 01-.659 1.591L5 14.5m4.75-11.396c-.251.023-.501.05-.75.082m.75-.082a24.301 24.301 0 014.5 0m0 0v5.714c0 .597.237 1.17.659 1.591L19.8 15.3m-5.55-12.196c.251.023.501.05.75.082M19.8 15.3l-1.57.393A9.065 9.065 0 0112 15a9.065 9.065 0 00-6.23-.693L5 14.5m14.8.8 1.402 1.402c1.232 1.232.65 3.318-1.067 3.611A48.309 48.309 0 0112 21c-2.773 0-5.491-.235-8.135-.687-1.718-.293-2.3-2.379-1.067-3.61L5 14.5' /%3E%3C/svg%3E");
}

.modern-nav-item[href="#specialisti-squadre"] .modern-nav-icon,
.taskbar-item[href="#specialisti-squadre"]::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Ccircle cx='12' cy='12' r='5'/%3E%3Ccircle cx='12' cy='12' r='1.5'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Ccircle cx='12' cy='12' r='5'/%3E%3Ccircle cx='12' cy='12' r='1.5'/%3E%3C/svg%3E");
}

.modern-nav-item[href="#osservati"] .modern-nav-icon,
.taskbar-item[href="#osservati"]::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
}

.modern-nav-item[href="#scambi-consigliati"] .modern-nav-icon,
.taskbar-item[href="#scambi-consigliati"]::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9.8 15.9L9 18.75l-.8-2.85a4.5 4.5 0 00-3.1-3.1L2.25 12l2.85-.8a4.5 4.5 0 003.1-3.1L9 5.25l.8 2.85a4.5 4.5 0 003.1 3.1l2.85.8-2.85.8a4.5 4.5 0 00-3.1 3.1z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9.8 15.9L9 18.75l-.8-2.85a4.5 4.5 0 00-3.1-3.1L2.25 12l2.85-.8a4.5 4.5 0 003.1-3.1L9 5.25l.8 2.85a4.5 4.5 0 003.1 3.1l2.85.8-2.85.8a4.5 4.5 0 00-3.1 3.1z'/%3E%3C/svg%3E");
}

.modern-nav-item[href="#listone-giocatori"] .modern-nav-icon,
.taskbar-item[href="#listone-giocatori"]::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='8' y1='6' x2='21' y2='6'/%3E%3Cline x1='8' y1='12' x2='21' y2='12'/%3E%3Cline x1='8' y1='18' x2='21' y2='18'/%3E%3Cline x1='3' y1='6' x2='3.01' y2='6'/%3E%3Cline x1='3' y1='12' x2='3.01' y2='12'/%3E%3Cline x1='3' y1='18' x2='3.01' y2='18'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='8' y1='6' x2='21' y2='6'/%3E%3Cline x1='8' y1='12' x2='21' y2='12'/%3E%3Cline x1='8' y1='18' x2='21' y2='18'/%3E%3Cline x1='3' y1='6' x2='3.01' y2='6'/%3E%3Cline x1='3' y1='12' x2='3.01' y2='12'/%3E%3Cline x1='3' y1='18' x2='3.01' y2='18'/%3E%3C/svg%3E");
}

.modern-nav-item[data-section="gestione-asta"] .modern-nav-icon,
.taskbar-item[data-section="gestione-asta"]::before,
.taskbar-item[href="#gestione-asta"]::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m14 13-7.5 7.5c-.83.83-2.17.83-3 0a2.12 2.12 0 010-3L11 10'/%3E%3Cpath d='m16 16 6-6'/%3E%3Cpath d='m8 8 6-6'/%3E%3Cpath d='m9 7 8 8'/%3E%3Cpath d='m21 11-8-8'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m14 13-7.5 7.5c-.83.83-2.17.83-3 0a2.12 2.12 0 010-3L11 10'/%3E%3Cpath d='m16 16 6-6'/%3E%3Cpath d='m8 8 6-6'/%3E%3Cpath d='m9 7 8 8'/%3E%3Cpath d='m21 11-8-8'/%3E%3C/svg%3E");
}

/* Bottom taskbar (primary mobile nav — a fixed pill bar) */
.taskbar {
  position: fixed;
  bottom: max(10px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  z-index: 950;
  display: flex;
  align-items: center;
  max-width: calc(100vw - 16px);
  padding: 6px 8px;
  background: var(--bg-glass-strong);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--border-default);
  border-radius: 22px;
  box-shadow: var(--shadow-floating);
}

.taskbar-content {
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  gap: 2px;
  width: 100%;
}

.taskbar-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 56px;
  min-height: 44px;
  padding: 6px 8px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--text-muted);
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
}

.taskbar-item:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.taskbar-item::before {
  content: "";
  width: 22px;
  height: 22px;
  background-color: currentColor;
  mask-size: contain;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-position: center;
}

.taskbar-item.active {
  color: var(--accent-blue);
  background: rgba(59, 130, 246, 0.12);
}

.taskbar-item.chat-ai::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 01-2 2H7l-4 4V5a2 2 0 012-2h14a2 2 0 012 2z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 01-2 2H7l-4 4V5a2 2 0 012-2h14a2 2 0 012 2z'/%3E%3C/svg%3E");
}

.taskbar-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.15;
  white-space: nowrap;
}

.ios-bottom-safe {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: env(safe-area-inset-bottom);
  background: var(--bg-app);
  z-index: 800;
  pointer-events: none;
}

/* ---------------------------------------------------------------------- */
/* 8. WELCOME / SPLASH SCREEN                                              */
/* ---------------------------------------------------------------------- */

#welcome-screen {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}

#splash-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-app);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  transition: opacity 0.5s var(--ease), visibility 0.5s var(--ease);
}

#splash-screen.fade-out,
#splash-screen.splash-hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.splash-logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.splash-logo-img {
  width: 76px;
  height: 76px;
  filter: drop-shadow(0 8px 18px rgba(59, 130, 246, 0.35));
  animation: splash-float 2.4s ease-in-out infinite;
}

@keyframes splash-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.splash-logo-text {
  font-size: 2.1rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.splash-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 280px;
}

.bar-loader {
  width: 120px;
  height: 4px;
  border-radius: var(--radius-pill);
  background: rgba(59, 130, 246, 0.2);
  position: relative;
  overflow: hidden;
}

.bar-loader::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 -40%;
  width: 40%;
  background: var(--accent-gradient);
  border-radius: var(--radius-pill);
  animation: bar-slide 1.4s ease-in-out infinite;
}

@keyframes bar-slide {
  0% { left: -40%; }
  100% { left: 100%; }
}

.splash-version {
  font-size: 0.85rem;
  color: var(--text-faint);
}

/* ---------------------------------------------------------------------- */
/* 9. BUDGET / ASTA MISC                                                   */
/* ---------------------------------------------------------------------- */

#gestione-asta input[type="number"],
#gestione-asta input[type="text"] {
  min-height: 44px;
}

#astaSearchResults {
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
}

.asta-search-item {
  transition: background var(--duration) var(--ease);
}

.asta-search-item:hover {
  background: var(--bg-elevated-2);
}

#astaSelectedPlayerContainer {
  border: 1px solid var(--accent-green);
}

/* ---------------------------------------------------------------------- */
/* 10. SCAMBI: PLAYER SLOTS + TRADE RESULT                                 */
/* ---------------------------------------------------------------------- */

.congo-section {
  display: none;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-left: 4px solid var(--accent-yellow);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin: 12px 0;
}

.congo-section.congo-visible {
  display: block;
}

.congo-section h3 {
  color: var(--accent-yellow-strong);
  font-weight: 700;
  margin-bottom: 10px;
}

.player-slot-group {
  margin-bottom: 12px;
}

.player-slot {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  transition: border-color var(--duration) var(--ease), transform var(--duration) var(--ease);
}

.player-slot:hover {
  border-color: var(--border-default);
  transform: translateY(-1px);
}

.player-slot-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.select-player-btn {
  width: 100%;
  text-align: left;
  background: var(--bg-input);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  padding: 12px;
  color: var(--text-secondary);
  min-height: 44px;
  transition: border-color var(--duration) var(--ease), background var(--duration) var(--ease);
}

.select-player-btn:hover {
  background: var(--bg-elevated-2);
  border-color: var(--accent-blue);
  color: var(--text-primary);
}

.player-details {
  display: none;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-top: 8px;
}

.player-details:not(.hidden) {
  display: block;
}

.player-details p {
  display: flex;
  justify-content: space-between;
  margin: 6px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 6px;
}

.player-details p:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.player-details span {
  font-weight: 700;
  color: var(--text-primary);
}

.fantamedia-value { color: var(--accent-yellow) !important; }
.price-value { color: var(--accent-green) !important; }
.media-value { color: var(--accent-purple) !important; }
.role-value { color: var(--accent-blue) !important; }
.team-value { color: var(--text-secondary) !important; }

.trade-output-container {
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border: 2px dashed var(--border-default);
  border-radius: var(--radius-md);
}

.trade-output-container:not(:empty) {
  border-style: solid;
}

.trade-placeholder {
  text-align: center;
  max-width: 280px;
}

.trade-icon {
  color: var(--text-faint);
}

.trade-result {
  width: 100%;
}

.trade-result h4 {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.trade-details {
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-bottom: 12px;
}

.trade-verdict {
  font-weight: 700;
  text-align: center;
  padding: 10px;
  border-radius: var(--radius-sm);
}

.verdict-positive { background: rgba(16, 185, 129, 0.16); color: var(--accent-green); border: 1px solid rgba(16, 185, 129, 0.3); }
.verdict-negative { background: rgba(239, 68, 68, 0.16); color: var(--accent-red); border: 1px solid rgba(239, 68, 68, 0.3); }
.verdict-neutral { background: var(--bg-elevated); color: var(--text-muted); border: 1px solid var(--border-default); }
.positive { color: var(--accent-green); }
.negative { color: var(--accent-red); }

/* ---------------------------------------------------------------------- */
/* 11. LA MIA SQUADRA — ROSTER + FORMATION FIELD                           */
/* ---------------------------------------------------------------------- */

.compact-roster {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
}

.compact-roster-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.compact-role-section {
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
  padding: 8px;
}

.compact-role-section h5 {
  text-align: center;
  font-size: 0.8rem;
  margin: 0 0 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.compact-player-list {
  max-height: 130px;
  overflow-y: auto;
}

.compact-player-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 6px;
  margin-bottom: 3px;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
}

.compact-player-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-right: 6px;
}

.excluded-players {
  margin-top: 14px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.28);
}

.excluded-players h4 {
  color: var(--accent-red);
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.football-field-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 14px;
  box-shadow: var(--shadow-card);
}

.vertical-football-field {
  position: relative;
  width: 100%;
  min-height: 560px;
  padding: 18px 6px;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  background: linear-gradient(180deg, var(--field-green-1) 0%, var(--field-green-2) 100%);
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.center-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 90px;
  height: 90px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.vertical-football-field::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%);
}

.goal-area {
  position: absolute;
  width: 30%;
  height: 8%;
  left: 50%;
  transform: translateX(-50%);
  border: 2px solid rgba(255, 255, 255, 0.3);
  pointer-events: none;
}

.goal-area.top { top: 0; border-top: none; }
.goal-area.bottom { bottom: 0; border-bottom: none; }

.player-line {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  width: 100%;
  z-index: 2;
  padding: 2px 4px;
}

.line-label {
  display: none;
}

.player-card {
  flex: 0 1 76px;
  min-width: 58px;
  max-width: 88px;
  background: rgba(10, 14, 22, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-sm);
  padding: 6px 4px;
  text-align: center;
  transition: transform var(--duration) var(--ease);
}

.player-card:hover {
  transform: translateY(-4px) scale(1.06);
  z-index: 5;
  border-color: #fff;
}

.player-card.essential-player {
  border: 2px solid var(--accent-red);
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.25);
}

.essential-player .player-name::after {
  content: " ♥";
  color: var(--accent-red);
}

.player-name {
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-card .player-details {
  display: block;
  background: none;
  border: none;
  padding: 0;
  margin: 2px 0;
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-score {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: var(--radius-pill);
  background: var(--accent-yellow);
  color: #1f2937;
}

/* ---------------------------------------------------------------------- */
/* 12. VIBES / NEWS FEED                                                   */
/* ---------------------------------------------------------------------- */

.vibes-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.vibe-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: transform var(--duration) var(--ease), border-color var(--duration) var(--ease);
}

.vibe-card:hover {
  transform: translateY(-2px);
  border-color: rgba(139, 92, 246, 0.3);
}

.vibe-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.vibe-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  padding: 2px;
  background: var(--accent-gradient);
}

.vibe-icon {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--bg-surface);
}

.vibe-account {
  display: flex;
  flex-direction: column;
}

.vibe-name {
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.vibe-time {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.vibe-content {
  color: var(--text-secondary);
  line-height: 1.5;
  font-size: 0.93rem;
}

.vibe-content strong {
  color: var(--accent-purple);
}

/* ---------------------------------------------------------------------- */
/* 13. SPECIALISTI (RIGORISTI)                                             */
/* ---------------------------------------------------------------------- */

/* Original static grid is hidden by JS in favor of the scroller below,
   but kept minimally styled for graceful no-JS fallback. */
#teamsGrid { display: grid; gap: 10px; }

.team-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  text-align: center;
  cursor: pointer;
}

.team-logo { width: 44px; height: 44px; object-fit: contain; margin: 0 auto 6px; }
.team-name { font-weight: 700; font-size: 0.9rem; }
.team-stats { font-size: 0.72rem; color: var(--text-muted); }
.team-details { display: none; }

.teams-scroll-container {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 2px 12px;
}

.team-selector {
  flex: 0 0 auto;
  min-width: 78px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  text-align: center;
  transition: background var(--duration) var(--ease), border-color var(--duration) var(--ease);
}

.team-selector:hover {
  background: var(--bg-elevated);
}

.team-selector.active {
  background: rgba(59, 130, 246, 0.14);
  border-color: var(--accent-blue);
}

.team-logo-small {
  width: 30px;
  height: 30px;
  object-fit: contain;
  display: block;
  margin: 0 auto 4px;
}

.team-name-small {
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

.specialisti-details {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  min-height: 120px;
}

.no-team-selected {
  text-align: center;
  padding: 24px 10px;
  color: var(--text-muted);
}

.no-team-selected .icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.specialisti-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.specialisti-category,
.specialists-category {
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
  padding: 12px;
}

.specialisti-category h4,
.specialists-category h4 {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-yellow);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 6px;
  margin: 0 0 8px;
}

.specialisti-list,
.specialists-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.specialist-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
}

.specialist-role {
  font-size: 0.7rem;
  font-weight: 800;
  min-width: 22px;
  text-align: center;
  padding: 2px 5px;
  border-radius: var(--radius-sm);
  color: #fff;
}

.specialist-name {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Role colors used across specialists AND the player table/formation.
   Border added per role so information isn't conveyed by color alone. */
.role-A, .specialist-role.role-A { background: var(--accent-red); border: 2px solid rgba(0,0,0,0.25); }
.role-C, .specialist-role.role-C { background: var(--accent-blue); border: 1px solid rgba(255,255,255,0.4); }
.role-D, .specialist-role.role-D { background: var(--accent-green); border: 1px dashed rgba(0,0,0,0.3); }
.role-P, .specialist-role.role-P { background: var(--accent-yellow); color: #1f2937; border: 1px solid rgba(0,0,0,0.3); }

/* ---------------------------------------------------------------------- */
/* 14. ABBINAMENTI PORTIERI                                                */
/* ---------------------------------------------------------------------- */

.abb-intro {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.abb-intro strong {
  color: var(--accent-purple);
}

.abb-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin: 14px 0;
}

.abb-toolbar-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

#selectedTeamsDisplay {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  flex: 1;
}

.abb-hint {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.abb-selected-pill {
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.22), rgba(139, 92, 246, 0.22));
  border: 1px solid rgba(139, 92, 246, 0.35);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.82rem;
}

.abb-count {
  color: var(--text-muted);
  font-size: 0.82rem;
}

#abbinamentiTeamsGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.abb-team-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  transition: transform var(--duration) var(--ease), background var(--duration) var(--ease), border-color var(--duration) var(--ease);
}

.abb-team-card:hover {
  transform: translateY(-3px);
  border-color: rgba(59, 130, 246, 0.35);
}

.abb-team-card.selected {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.16), rgba(139, 92, 246, 0.12));
  border-color: var(--accent-blue);
}

.abb-team-check {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-blue);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.5);
  transition: all var(--duration) var(--ease);
}

.abb-team-card.selected .abb-team-check {
  opacity: 1;
  transform: scale(1);
}

.abb-team-name {
  font-weight: 700;
  margin-bottom: 4px;
}

.abb-team-level {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  margin-bottom: 6px;
}

.abb-team-level.big { background: rgba(239, 68, 68, 0.18); color: var(--accent-red); }
.abb-team-level.medium { background: rgba(245, 158, 11, 0.18); color: var(--accent-yellow); }
.abb-team-level.small { background: rgba(16, 185, 129, 0.18); color: var(--accent-green); }

.abb-team-gk {
  font-size: 0.78rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.abb-team-price {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-yellow);
}

.abb-result h4 {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.abb-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.abb-stat-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
}

.abb-stat-value {
  font-size: 1.4rem;
  font-weight: 800;
}

.abb-stat-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-muted);
  margin-top: 4px;
}

.abb-team-report {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-bottom: 10px;
}

.abb-team-report-header {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  font-weight: 700;
  margin-bottom: 8px;
}

.abb-team-report-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.abb-chip {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 600;
}

.abb-chip.big { background: rgba(239, 68, 68, 0.16); color: var(--accent-red); }
.abb-chip.medium { background: rgba(245, 158, 11, 0.16); color: var(--accent-yellow-strong); }
.abb-chip.small { background: rgba(16, 185, 129, 0.16); color: var(--accent-green); }
.abb-chip.ha { background: rgba(59, 130, 246, 0.14); color: var(--accent-blue-strong); }

.abb-legend {
  margin: 14px 0 6px;
}

.abb-md-header,
.abb-md-row {
  display: grid;
  grid-template-columns: 56px repeat(3, 1fr);
  gap: 6px;
}

.abb-md-team {
  text-align: center;
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--accent-purple);
  padding: 6px 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.abb-md-grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 400px;
  overflow-y: auto;
  margin-top: 6px;
  padding-right: 4px;
}

.abb-md-num {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
}

.abb-md-cell {
  border-radius: var(--radius-sm);
  padding: 6px;
  text-align: center;
  font-size: 0.72rem;
  border: 1px solid transparent;
}

.abb-md-cell .opp { display: block; font-weight: 700; }
.abb-md-cell .ha { font-size: 0.6rem; text-transform: uppercase; opacity: 0.85; }
.abb-md-cell.diff-big { background: rgba(239, 68, 68, 0.16); border-color: rgba(239, 68, 68, 0.32); }
.abb-md-cell.diff-medium { background: rgba(245, 158, 11, 0.14); border-color: rgba(245, 158, 11, 0.28); }
.abb-md-cell.diff-small { background: rgba(16, 185, 129, 0.14); border-color: rgba(16, 185, 129, 0.28); }

/* ---------------------------------------------------------------------- */
/* 15. SCAMBI CONSIGLIATI (RECOMMENDED TRADES)                             */
/* ---------------------------------------------------------------------- */

.recommended-trade-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--accent-blue);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 14px;
  transition: transform var(--duration) var(--ease);
}

.recommended-trade-card:hover {
  transform: translateY(-2px);
}

.trade-card-improve { border-left-color: var(--accent-green); }
.trade-card-weak { border-left-color: var(--accent-red); }

.trade-reason {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.trade-players {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  margin: 10px 0;
}

.trade-arrow {
  text-align: center;
  color: var(--accent-yellow);
  font-size: 1.4rem;
}

.trade-player {
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  padding: 10px;
  text-align: center;
}

.trade-player-name {
  font-weight: 700;
  margin-bottom: 4px;
}

.trade-player-details {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.trade-stats {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 0.85rem;
}

.trade-stat {
  text-align: center;
}

.trade-stat-label {
  display: block;
  color: var(--text-muted);
  font-size: 0.72rem;
}

.trade-stat-value {
  font-weight: 700;
}

.trade-stat-positive { color: var(--accent-green); }
.trade-stat-negative { color: var(--accent-red); }

.trade-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.trade-action-btn {
  flex: 1;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  text-align: center;
  min-height: 40px;
  transition: background var(--duration) var(--ease);
}

.trade-action-primary {
  background: rgba(59, 130, 246, 0.18);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: var(--accent-blue-strong);
}

.trade-action-primary:hover { background: rgba(59, 130, 246, 0.3); }

.trade-action-secondary {
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
}

.trade-action-secondary:hover { background: var(--bg-elevated-2); }

/* ---------------------------------------------------------------------- */
/* 16. LISTONE GIOCATORI + OSSERVATI (TABLES)                              */
/* ---------------------------------------------------------------------- */

.listone-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.update-date {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.filter-buttons {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.filter-button {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  min-height: 44px;
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
}

.filter-button:hover {
  background: var(--bg-elevated-2);
}

.filter-button.active {
  background: rgba(59, 130, 246, 0.2);
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

.player-table {
  width: 100%;
  border-collapse: collapse;
}

.player-table th {
  position: sticky;
  top: 0;
  background: var(--bg-elevated);
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.4px;
  padding: 10px 6px;
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
}

.player-table th:hover {
  color: var(--text-primary);
}

.player-table td {
  padding: 8px 6px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  white-space: nowrap;
}

.player-table tbody tr:hover {
  background: var(--bg-elevated);
}

.player-table tbody tr:nth-child(even) {
  background: rgba(128, 128, 128, 0.04);
}

.player-name-cell {
  cursor: pointer;
  font-weight: 600;
  color: var(--text-primary);
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-name-cell:hover {
  color: var(--accent-blue);
}

.role-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  font-size: 0.68rem;
  font-weight: 800;
  color: #fff;
  min-width: 20px;
  text-align: center;
}

.role-badge.role-P { color: #1f2937; }

/* ---------------------------------------------------------------------- */
/* 17. SELECTION / DETAILS POPUPS                                          */
/* ---------------------------------------------------------------------- */

.player-select-popup,
.player-details-popup {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(5, 8, 14, 0.6);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease), visibility 0.25s var(--ease);
}

.player-select-popup.active,
.player-details-popup.active {
  opacity: 1;
  visibility: visible;
}

.player-select-container,
.player-details-container {
  width: 100%;
  max-width: 480px;
  max-height: 84vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-floating);
  overflow: hidden;
}

.player-select-header,
.player-details-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.player-select-header h3,
.player-details-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.player-select-search {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.player-select-results,
.player-details-content {
  padding: 12px 20px 20px;
  overflow-y: auto;
}

.player-select-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 8px;
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  min-height: 44px;
}

.player-select-item:hover {
  background: var(--bg-elevated);
}

.player-select-info {
  display: flex;
  flex-direction: column;
}

.player-select-name {
  font-weight: 700;
}

.player-select-details {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.player-select-price {
  font-weight: 700;
  color: var(--accent-yellow);
}

.player-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.player-detail-item {
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
}

.detail-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.detail-value {
  font-weight: 700;
}

.player-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.player-actions .btn-primary {
  text-align: center;
}

/* ---------------------------------------------------------------------- */
/* 18. INDISPONIBILI                                                       */
/* ---------------------------------------------------------------------- */

.unavailable-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.loader,
.loader-small {
  border: 3px solid var(--border-default);
  border-top-color: var(--accent-blue);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  animation: spin 0.9s linear infinite;
  display: inline-block;
}

.loader-small {
  width: 16px;
  height: 16px;
  border-width: 2px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---------------------------------------------------------------------- */
/* 19. NOTIFICATIONS (toast, created dynamically by JS)                    */
/* ---------------------------------------------------------------------- */

.notification {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated-2);
  border: 1px solid var(--border-default);
  color: var(--text-primary);
  box-shadow: var(--shadow-floating);
  font-size: 0.9rem;
  animation: notification-in 0.25s var(--ease);
}

@keyframes notification-in {
  from { opacity: 0; transform: translate(-50%, 10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.notification.success { border-color: rgba(16, 185, 129, 0.4); }
.notification.warning { border-color: rgba(245, 158, 11, 0.4); }
.notification.error { border-color: rgba(239, 68, 68, 0.4); }

/* ---------------------------------------------------------------------- */
/* 20. FOOTER                                                              */
/* ---------------------------------------------------------------------- */

.footer {
  margin-top: 24px;
  padding: 20px 16px 12px;
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.footer-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.5;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.social-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  min-height: 44px;
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease), transform var(--duration) var(--ease);
}

.social-btn:hover {
  background: var(--bg-elevated-2);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.social-icon {
  width: 16px;
  height: 16px;
}

/* ---------------------------------------------------------------------- */
/* 21. TAILWIND UTILITY OVERRIDES FOR LIGHT MODE                           */
/* script.js injects Tailwind gray/white classes directly (bg-gray-800,   */
/* text-gray-300, etc.) which Tailwind renders with fixed dark colors.    */
/* This single block remaps them to theme tokens so JS-generated content  */
/* adapts to light mode too — one place, no duplication.                  */
/* ---------------------------------------------------------------------- */

[data-theme="light"] .bg-gray-900,
[data-theme="light"] .bg-gray-800,
[data-theme="light"] .bg-gray-700,
[data-theme="light"] .bg-gray-600 {
  background-color: var(--bg-elevated) !important;
  color: var(--text-primary) !important;
}

[data-theme="light"] .border-gray-700,
[data-theme="light"] .border-gray-600 {
  border-color: var(--border-default) !important;
}

[data-theme="light"] .hover\:bg-gray-600:hover,
[data-theme="light"] .hover\:bg-gray-700:hover {
  background-color: var(--bg-elevated-2) !important;
}

[data-theme="light"] .text-white,
[data-theme="light"] .text-gray-300 {
  color: var(--text-primary) !important;
}

[data-theme="light"] .text-gray-400,
[data-theme="light"] .text-gray-500 {
  color: var(--text-muted) !important;
}

[data-theme="light"] .bg-blue-900\/30 {
  background-color: rgba(59, 130, 246, 0.1) !important;
}

[data-theme="light"] .text-purple-300,
[data-theme="light"] .text-green-300,
[data-theme="light"] .text-pink-300,
[data-theme="light"] .text-yellow-300 {
  color: var(--accent-purple-strong) !important;
}

[data-theme="light"] .text-green-300 { color: var(--accent-green-strong) !important; }
[data-theme="light"] .text-pink-300 { color: var(--accent-pink) !important; }
[data-theme="light"] .text-yellow-300 { color: var(--accent-yellow-strong) !important; }
[data-theme="light"] .text-red-400 { color: var(--accent-red-strong) !important; }

/* ---------------------------------------------------------------------- */
/* 21b. MISSING COMPONENT HOOKS                                            */
/* ---------------------------------------------------------------------- */

.highlight {
  background: rgba(245, 158, 11, 0.22);
  border-radius: 3px;
  font-weight: 600;
  padding: 0 3px;
}

.player-vote {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: var(--radius-pill);
  background: var(--accent-yellow);
  color: #1f2937;
}

.filter-master-btn {
  width: 100%;
  min-height: 44px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-default);
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.18), rgba(139, 92, 246, 0.16));
  color: var(--text-primary);
  font-weight: 600;
}

.filters-hidden {
  max-height: 0;
  overflow: hidden;
}

.filters-show {
  max-height: 640px;
}

#saveTeamInfo,
#teamName,
#leagueName {
  min-height: 44px;
}

#saveTeamInfo {
  border-radius: var(--radius-sm);
  border: 1px solid rgba(59, 130, 246, 0.35);
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.22), rgba(139, 92, 246, 0.2));
  color: var(--text-primary);
  font-weight: 600;
  padding: 10px 16px;
}

#formationOptionsContainer {
  display: grid;
  gap: 14px;
}

@media (min-width: 900px) {
  #formationOptionsContainer {
    grid-template-columns: 1fr 320px;
    align-items: start;
  }
}

.trade-selection-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.trade-btn {
  width: 100%;
  min-height: 44px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  text-align: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
}

.watched-badge::after {
  content: "";
}

.player-line:has(> .player-card:nth-child(5)) .player-card {
  flex-basis: 54px;
  min-width: 46px;
}

.player-line:has(> .player-card:nth-child(5)) .player-card .player-details {
  display: none;
}

#welcome-screen {
  min-height: 280px;
}

@media (prefers-contrast: more) {
  :root {
    --border-default: rgba(255, 255, 255, 0.4);
    --text-muted: #d1d5db;
  }
  [data-theme="light"] {
    --border-default: rgba(15, 23, 42, 0.4);
    --text-muted: #334155;
  }
}

/* ---------------------------------------------------------------------- */
/* 22. RESPONSIVE                                                          */
/* ---------------------------------------------------------------------- */

@media (max-width: 768px) {
  .header-content h1 { font-size: 1.4rem; }
  .logo { width: 38px; height: 38px; }
  .modern-nav-item { min-width: 76px; padding: 12px 8px; }
  .compact-roster-grid { grid-template-columns: repeat(2, 1fr); }
  .abb-md-header, .abb-md-row { grid-template-columns: 46px repeat(3, 1fr); }
  #abbinamentiTeamsGrid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
  .player-details-grid { grid-template-columns: 1fr; }
  .vertical-football-field { min-height: 500px; }
  .player-card { flex-basis: 62px; min-width: 50px; }
  .player-name { font-size: 0.66rem; }
  .specialisti-columns { grid-template-columns: 1fr; }
  .trade-players { grid-template-columns: 1fr; }
  .trade-arrow { transform: rotate(90deg); }
}

@media (max-width: 420px) {
  .main-header { width: 94%; padding: 12px 16px; }
  .taskbar { padding: 6px 4px; }
  .taskbar-item { min-width: 52px; padding: 6px 4px; }
  .taskbar-label { font-size: 0.62rem; }
  .vertical-football-field { min-height: 460px; }
  .player-card { flex-basis: 54px; }
}
