html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100vh; 
  font-family: 'Rubik', sans-serif;
  background: #000;
  color: #fff;
  box-sizing: border-box;
  overflow-x: hidden; 
}

.game-wrapper {
  display: block; 
  width: 100%;
  min-height: 100vh;
}

.column-left, .column-center, .column-right {
  width: 100%;
  box-sizing: border-box;
  padding: 1.5rem;
}

.column-left {
  background-color: #0d0d0d;
  border-bottom: 1px solid #222;
}

.column-center {
  background-color: #040d04;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #222;
}

.column-right {
  background-color: #0d0d0d;
}

.panel-title {
  font-size: 1.5rem;
  color: #fff;
  margin-top: 0;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #C60408;
  padding-bottom: 0.5rem;
}

.section-label {
  display: block;
  font-size: 0.85rem;
  color: #888;
  text-transform: uppercase;
  margin-top: 1.2rem;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}

.module-btn {
  background-color: #1a1a1a;
  border: 1px solid #333;
  color: #fff;
  padding: 0.6rem;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
}

.module-btn:hover {
  border-color: #C60408;
}

.module-btn.active {
  background-color: #C60408;
  border-color: #C60408;
  font-weight: bold;
}

.help-icon .txt-red {
  color: #d12229;
  font-weight: bold;
}

.help-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  background-color: #444;
  color: #fff;
  border-radius: 50%;
  font-size: 11px;
  font-weight: bold;
  margin-left: 6px;
  cursor: pointer;
  position: relative;
  vertical-align: middle;
  user-select: none;
}

.help-icon:hover {
  background-color: #d12229;
}

.help-icon .tooltip-text {
  visibility: hidden;
  width: 210px;
  background-color: #1a1a1a;
  color: #eee;
  text-align: left;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 9px;
  font-size: 11px;
  line-height: 1.4;
  font-weight: normal;
  text-transform: none;
  position: absolute;
  z-index: 99;
  bottom: 135%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.2s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.6);
}

.help-icon .tooltip-text::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #1a1a1a transparent transparent transparent;
}

.help-icon:hover .tooltip-text,
.help-icon:focus .tooltip-text {
  visibility: visible;
  opacity: 1;
}

.toggle-group {
  display: flex;
  background-color: #1a1a1a;
  border-radius: 8px;
  padding: 0.2rem;
  gap: 0.2rem;
}

.toggle-btn {
  flex: 1;
  background: none;
  border: none;
  color: #aaa;
  padding: 0.5rem;
  border-radius: 6px;
  cursor: pointer;
  font-family: 'Rubik', sans-serif;
  font-size: 0.9rem;
}

.toggle-btn.active {
  background-color: #333;
  color: #fff;
  font-weight: bold;
}

.main-red-button {
  width: 100%;
  background-color: #C60408;
  border: none;
  color: white;
  padding: 1rem;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: background-color 0.2s;
}

.main-red-button:hover:not(:disabled) {
  background-color: #e3050a;
}

.main-red-button:disabled {
  background-color: #444;
  color: #888;
  cursor: not-allowed;
}

.active-roll-layout {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.roll-header-fisso {
  flex-shrink: 0;
  margin-bottom: 1rem;
}

.roll-players-scrollable {
  flex-grow: 1;
  overflow-y: auto;
  padding-right: 4px;
}

.season-info-box {
  background-color: #C60408;
  border-radius: 12px;
  padding: 1.2rem 1rem;
  text-align: center;
  margin-bottom: 0.8rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.season-milan-title {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 2px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.season-year-subtitle {
  font-size: 0.95rem;
  font-weight: 500;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.2rem;
}

.btn-cambia-container {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 0.4rem;
}

.btn-cambia-stagione-mini {
  margin-top: 30px;
  padding: 12px 0;
  width: 200px;
  background-color: black;
  color: white;
  border: 2px solid white;
  font-size: 14px;
  cursor: pointer;
  border-radius: 4px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  font-weight: bold;
  transition: all 0.2s ease;
}

.btn-cambia-stagione-mini:hover:not(:disabled) {
  background-color: white;
  color: black;
}

.btn-cambia-stagione-mini:disabled {
  opacity: 0.3;
  border-color: #444;
  color: #444;
  cursor: not-allowed;
}

.cambi-counter-text {
  text-align: center;
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 0.3rem;
}

.cambi-counter-text {
  text-align: center;
  font-size: 0.85rem;
  color: #aaa;
  margin-bottom: 0.5rem;
}

.players-roll-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.player-roll-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #151515;
  border: 1px solid #222;
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s;
}

.player-roll-card:hover:not(.disabled) {
  transform: translateX(4px);
  border-color: #C60408;
}

.player-roll-card.selected {
  background-color: #221011;
  border-color: #C60408;
}

.player-roll-card.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background-color: #0a0a0a;
}

.player-info-meta {
  display: flex;
  flex-direction: column;
}

.player-info-meta .p-name {
  font-weight: 500;
  font-size: 0.95rem;
}

.player-info-meta .p-roles {
  font-size: 0.75rem;
  color: #888;
  margin-top: 0.1rem;
}

.player-value-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #C60408;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9rem;
  background-color: #000;
}

.hidden { display: none !important; }

.pitch-container {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 3 / 4; 
  position: relative;
  margin: 0 auto;
}

.pitch {
  width: 100%;
  height: 100%;
  background-color: #000000; 
  border-radius: 12px;
  position: relative;
  box-shadow: 0 10px 30px rgba(98, 5, 5, 0.6);
  overflow: hidden;
}

.campo-grafica-svg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
}

.linea-perimetro,
.linea-centrocampo-svg,
.cerchio-centrocampo-svg,
.area-grande-svg,
.area-piccola-svg,
.lunetta-area-svg,
.angoli-corner-svg {
  stroke: rgba(229, 3, 3, 0.45);
  stroke-width: 2.5;
  fill: none;
}

.dischetto-centrocampo-svg,
.dischetto-rigore-svg {
  fill: rgba(255, 255, 255, 0.5);
  stroke: none;
}

.disc {
  position: absolute;
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
}

.disc-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #000;
  border: 2px solid #fff;
  color: #fff;
  font-size: 0.75rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.4);
}

.disc.empty .disc-circle {
  background-color: rgba(0, 0, 0, 0.75);
  border-style: dashed;
  color: #aaa;
}

.disc.highlighted .disc-circle {
  border-color: #00ff00;
  box-shadow: 0 0 12px #00ff00;
}

.disc.occupied .disc-circle {
  border-color: #C60408;
  background-color: #111;
}

.disc .player-badge-name {
  position: absolute;
  top: 48px;
  background-color: rgba(0,0,0,0.85);
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.65rem;
  white-space: nowrap;
}

.live-squad-summary {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.summary-header {
  background-color: #111;
  border-radius: 8px;
  padding: 0.8rem;
  border: 1px solid #222;
}

.summary-header-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}

.summary-header-main h3 {
  margin-top: 0;
  margin-bottom: 0;
  font-size: 1.1rem;
}

.stat-pill {
  background-color: #222;
  border-radius: 6px;
  padding: 0.3rem 0.6rem;
  font-size: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-pill strong {
  font-size: 0.9rem;
  color: #fff;
}

.overall-pill {
  background-color: #C60408;
  font-weight: bold;
}

.summary-header-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
}

.summary-slots-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.summary-slot-row {
  display: flex;
  align-items: center;
  background-color: #151515;
  border-radius: 6px;
  padding: 0.5rem 0.8rem;
  border-left: 4px solid #444;
}

.summary-slot-row.filled {
  border-left-color: #C60408;
}

.slot-pos {
  font-weight: bold;
  font-size: 0.75rem;
  background-color: #222;
  padding: 2px 6px;
  border-radius: 4px;
  min-width: 30px;
  text-align: center;
  margin-right: 10px;
}

.slot-empty-label {
  font-size: 0.85rem;
  color: #555;
  font-style: italic;
}

.slot-filled-label {
  font-size: 0.85rem;
  font-weight: 500;
}

.btn-prossima-squadra-red {
  margin-top: 30px;
  padding: 12px 0;
  width: 200px;
  background-color: #C60408;
  color: white;
  border: 2px solid #C60408;
  font-size: 14px;
  cursor: pointer;
  border-radius: 4px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  font-weight: bold;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-prossima-squadra-red:hover {
  background-color: black;
  color: #C60408;
  border-color: #C60408;
}

.btn-simula-stagione {
  margin-top: 30px;
  padding: 12px 0;          
  width: 240px;
  background-color: #C60408; 
  color: white;
  border: 2px solid #C60408; 
  font-size: 14px;
  cursor: pointer;
  border-radius: 4px;       
  display: block;
  margin-left: auto;
  margin-right: auto;
  font-weight: bold;
  transition: all 0.2s ease;
}

.btn-simula-stagione:hover {
  background-color: black;
  color: #C60408;
  border-color: #C60408;
}

@keyframes rollSpinEffect {
  0% {
    transform: scale(0.8) rotate(-5deg);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.05) rotate(5deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

.spin-animation {
  animation: rollSpinEffect 0.4s ease-out;
}

.slot-blur #slot-year-text {
  filter: blur(1.5px);
  opacity: 0.7;
  transform: scale(0.95);
  transition: filter 0.05s ease;
}

@media (min-width: 992px) {
  .game-wrapper {
    display: grid;
    grid-template-columns: 25% 50% 25%; 
    height: 100vh;
    width: 100vw; 
    max-width: 100%; 
    overflow: hidden;
  }

  .column-left, .column-right {
    height: 100vh;
    overflow-y: auto; 
    border-bottom: none;
    padding-top: 2.6rem; 
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-bottom: 2rem;
  }

  .column-left {
    border-right: 1px solid #222;
  }

  .column-center {
    height: 100vh;
    border-bottom: none;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .column-right {
    border-left: 1px solid #222;
  }
}


.hidden-screen {
  display: none !important;
}

.sim-container {
  max-width: 800px;
  margin: 40px auto;
  background: #111;
  border: 2px solid #C60408;
  padding: 20px;
  border-radius: 8px;
  color: #fff;
  box-sizing: border-box;
}

.ticker-container, #sim-history-list {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

@media (max-width: 768px) {
  .sim-container {
    margin: 10px;
    width: calc(100% - 20px);
    padding: 15px;
  }
}

#sim-title {
  text-align: center;
  color: #C60408;
  margin-bottom: 20px;
}
.live-match-banner {
  background: #222;
  padding: 20px;
  font-size: 20px;
  text-align: center;
  border-radius: 4px;
  margin-bottom: 20px;
  font-weight: bold;
}
.sim-history-list {
  max-height: 300px;
  overflow-y: auto;
  background: #050505;
  padding: 10px;
  border-radius: 4px;
}
.ticker-row {
  padding: 8px;
  border-bottom: 1px solid #222;
  font-size: 14px;
}

.market-zone {
  background: #220204;
  border: 2px solid gold;
  padding: 20px;
  border-radius: 6px;
  margin-bottom: 25px;
}
.market-player-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 15px;
}
.market-mini-card {
  background: #333;
  padding: 10px;
  text-align: center;
  cursor: pointer;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
  transition: background 0.2s;
}
.market-mini-card:hover {
  background: #C60408;
}

#btn-salta-mercato {
  background-color: black;
  color: white;
  border: 2px solid white;
  padding: 10px 20px;
  margin-top: 20px;
  font-size: 14px;
  cursor: pointer;
  display: block;
  font-weight: bold;
  border-radius: 4px;
  margin-left: auto;
  margin-right: auto;
}
#btn-salta-mercato:active {
  transform: scale(0.98);
}
.market-proposals-box {
  margin-top: 20px;
  border-top: 1px solid #555;
  padding-top: 15px;
}
.proposals-row {
  display: flex;
  gap: 15px;
  justify-content: space-between;
  margin-top: 10px;
  width: 100%;
  box-sizing: border-box;
}
.proposal-card {
  font-size: 14px;
  background: #1f1f1f;
  border: 1px solid #444;
  padding: 15px;
  border-radius: 4px;
  text-align: center;
  width: 30%;
}
.proposal-card small {
  font-size: 11px;
  color: #aaa;
  display: block;
  margin-top: 4px;
  margin-bottom: 8px;
}
.btn-accetta-trade {
  background: #C60408;
  color: white;
  border: none;
  padding: 6px 12px;
  margin-top: 8px;
  cursor: pointer;
  font-weight: bold;
  border-radius: 3px;
}
.btn-rifiuta-trade {
  background-color: black;
  color: white;
  border: 2px solid white;
  padding: 10px 20px;
  margin-top: 20px;
  font-size: 14px;
  cursor: pointer;
  display: block;
  font-weight: bold;
  border-radius: 4px;
  margin-left: auto;
  margin-right: auto;
}

.success-banner {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #28a745;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 14px;
  display: none; 
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

@media (max-width: 768px) {
  
  .proposals-row {
    flex-direction: column;
    gap: 12px;
  }

  .proposal-card {
    width: 90% !important;
    font-size: 13px; 
  }
  
  .market-proposals-box {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
  }
}



.end-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 20px;
  padding: 20px;
  background: #0f0f0f;
  min-height: 80vh;
  color: white;
}

.end-nav-buttons {
  display: flex;
  gap: 5px;
  margin-bottom: 15px;
}
.view-toggle-btn {
  flex: 1;
  background: #222;
  color: #bbb;
  border: 1px solid #444;
  padding: 8px 4px;
  cursor: pointer;
  font-weight: bold;
  font-size: 12px;
  text-transform: uppercase;
}
.view-toggle-btn.active {
  background: #C60408;
  color: white;
  border-color: #C60408;
}
.end-left-box {
  background: #141414;
  border: 1px solid #333;
  border-radius: 4px;
  padding: 10px;
  overflow-y: auto;
  max-height: 85vh;
}

.milanmaster-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.milanmaster-table th {
  background: #222;
  color: #aaa;
  padding: 6px;
  text-align: left;
}
.milanmaster-table td {
  padding: 6px;
  border-bottom: 1px solid #222;
}
.highlight-milan {
  background: #C60408 !important;
  color: white !important;
}

.bracket-round-title {
  margin-top: 15px;
  margin-bottom: 8px;
  color: #ffffff;
  font-weight: bold;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 2px;
  text-transform: uppercase;
}

.cup-bracket-row {
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  align-items: center;
  font-size: 12px;
  padding: 8px 12px;
  margin-bottom: 6px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 4px;
}

.cup-bracket-row .team-name:first-child {
  text-align: right;
  padding-right: 15px;
}

.cup-bracket-row .team-name:last-child {
  text-align: left;
  padding-left: 15px;
}

.cup-bracket-score {
  opacity: 0.7;
  font-size: 11px;
  font-weight: bold;
  background: #222;
  padding: 2px 6px;
  border-radius: 4px;
  min-width: 30px;
  text-align: center;
  white-space: nowrap;
}

.team-name.milan-red {
  color: #C60408;
  font-weight: bold;
}

.team-name.eliminated {
  opacity: 0.35;
  text-decoration: line-through;
}
.end-col-left {
  max-height: 90vh;
}

.end-col-center {
  background: #141414;
  border: 1px solid #333;
  padding: 15px;
  max-height: 90vh;
  border-radius: 4px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.center-main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
  min-height: 0; 
}

.recap-ratings-box {
  flex-shrink: 0;
}

.pitch-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 0;
  width: 100%;
}

.pitch.pitch-recap {
  position: relative;
  aspect-ratio: 3 / 4;
  height: 100%;
  max-height: 90%;
  width: auto;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
}

.recap-ceduti-nota {
  font-size: 12px;
  color: #aaa;
  text-align: center;
  font-style: italic;
  line-height: 1.4;
  width: 100%;
}

.btn-vedi-punteggio {
  flex-shrink: 0;
  width: 100%;
  background: #d30000;
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.2s ease;
  margin-top: 10px;
  margin-bottom: 0;
}

.end-col-right {
  background: #141414;
  border: 1px solid #333;
  padding: 15px;
  border-radius: 4px;
  max-height: 90vh;
  overflow-y: auto;
}
.calendar-final-row {
  background: #1c1c1c;
  padding: 8px;
  margin-bottom: 8px;
  border-left: 4px solid #C60408;
  font-size: 12px;
  border-radius: 2px;
}
.cup-cammino {
  padding: 10px;
  max-height: 75vh;
}
.cup-row {
  padding: 8px;
  border-bottom: 1px solid #222;
  font-size: 13px;
}
.recap-ratings-box {
  background: #1c1c1c;
  padding: 10px;
  border-radius: 4px;
  margin-bottom: 15px;
}
.recap-ratings-grid {
  display: flex;
  justify-content: space-between;
  gap: 5px;
}
.rating-item-end {
  flex: 1;
  background: #2b2b2b;
  padding: 8px 4px;
  border-radius: 3px;
  border-bottom: 2px solid #C60408;
}
.rating-item-end span {
  display: block;
  font-size: 10px;
  color: #aaa;
  font-weight: bold;
}
.rating-item-end strong {
  font-size: 16px;
  color: #fff;
}

#end-page {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.7); 
  display: none; 
  justify-content: center;
  align-items: center;
  z-index: 9999; 
}

.quiz-bg-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

#end-message {
  position: relative;
  background: #F9F2F1;       
  border-radius: 12px;
  text-align: center;  
  display: flex;
  flex-direction: column;
  align-items: center; 
  gap: 0.8rem;
}

#close-endpage {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 30px;   
  height: 30px;
  cursor: pointer;
}

.results-title {
  font-size: 1.6rem;
  font-weight: bold;
  color: #000;
}

.results-subtitle {
  font-size: 1rem;
  color: #444;
  margin-bottom: 10px;
}

.circle-summary-container {
  display: flex;
  padding: 15px;
  margin-bottom: 20px;
}

.progress-ring {
  transform: rotate(-90deg);
  transform-origin: center;
}

.circle-text, .circle-label {
  transform: rotate(90deg);
  transform-origin: 100px 100px;
}

.ring-bg {
  fill: none;
  stroke: #ccc;
  stroke-width: 12;
}

.ring-fill {
  fill: none;
  stroke: #d30000;
  stroke-width: 12;
  stroke-linecap: round;
  stroke-dasharray: 565; 
  stroke-dashoffset: 565;
  transition: stroke-dashoffset 1s ease;
}

.circle-text {
  fill: #000;
  font-weight: bold;
  font-family: sans-serif;
}

.correct-number {
  font-size: 34px;
  font-weight: bold;
}

.total-number {
  font-size: 18px;
  font-weight: normal;
  fill: #000;
}

.circle-label {
  fill: #000;
  font-size: 14px;
  font-family: sans-serif;
}

.menu-btn, .next-game-btn {
  padding: 15px;
  font-size: 1rem;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  width: 90%;
  max-width: 260px;
  margin: 0 auto;
  margin-bottom: 20px;
}

.menu-btn {
  background-color: transparent;
  color: #000;
  border: 2px solid #000;
}

.menu-btn:hover {
  background-color: rgba(0,0,0,0.05);
}

.next-game-btn {
  background-color: #d30000;
  color: #fff;
  border: none;
}

.next-game-btn:hover {
  background-color: #b00000;
}

.end-recap-details {
  background: transparent;
  border: none;
  padding: 0;
  margin: 5px auto;
  max-width: 260px;
  text-align: center;
}

.recap-detail-item {
  color: #444;
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 4px;
  display: block;
}

.recap-detail-item:last-child {
  margin-bottom: 0;
}

.recap-detail-item span {
  color: #444;
  background: none;
  padding: 0;
  border-radius: 0;
  font-size: 15px;
}



@media (max-width: 768px) {
  
  .end-layout {
    display: flex;
    flex-direction: column;
    gap: 25px; 
    width: 90%;
    overflow-x: hidden;
  }

  .end-col-left, 
  .end-col-center, 
  .end-col-right {
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important; 
  }

  .end-col-center {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
  }

  .center-main-content {
    flex: none; 
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow: visible; 
  }

  .pitch-container {
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
  }

  .pitch.pitch-recap {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 3 / 4;
    max-height: none;
  }

  .btn-vedi-punteggio {
    width: 100%;
    margin-top: 20px;
    margin-bottom: 5px;
    position: relative;
  }
}

@media (min-width: 769px) and (max-height: 720px) {
  .end-left-box {
    max-height: 70vh;
    overflow-y: auto;
    border-radius: 4px;
    background: #141414;
  }

  .end-left-box::-webkit-scrollbar {
    width: 6px;
  }
  .end-left-box::-webkit-scrollbar-track {
    background: #141414;
  }
  .end-left-box::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
  }
}