@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:ital,wght@0,100..900;1,100..900&display=swap');

/* =================================
   RESET & VARIABILI
   ================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --padding: 1.5rem;
  --color-black: #1d1d1b;
  --color-white: #fff;
  --color-dark-grey: #3d3d3b;
  --color-dark-grey-hover: #5f5f5e;
  --color-grey: #858583;
  --color-light: #d5d5d4;
  --color-text: var(--color-white);
  --color-text-grey: var(--color-grey);
  --color-background: var(--color-black);

  --color-code-light-gold:  #e4d5bb;
  --color-code-gold:        #d6b476;
  --color-code-dark-gold:   #b28a49;
  --color-code-silver:      #8d9093;
  --color-code-bronze:      #a17652;

  --color-code-light-grey:  #cacbd1;
  --color-code-comment:     #a9aaad;
  --color-code-white:       #c5c9c6;

  /* BASE */
  --color-code-red:         #d16464;
  --color-code-orange:      #de935f;
  --color-code-yellow:      #f0c674;
  --color-code-green:       #a7bd68;
  --color-code-aqua:        #8abeb7;
  --color-code-blue:        #7e9abf;
  --color-code-purple:      #b294bb;

  /* DARK */
  --color-code-red-dark:    #b34f4f;
  --color-code-orange-dark: #be7848;
  --color-code-yellow-dark: #c9a24f;
  --color-code-green-dark:  #84984e;
  --color-code-aqua-dark:   #669c95;
  --color-code-blue-dark:   #5f7fa8;
  --color-code-purple-dark: #8f72a0;

  /* LIGHT */
  --color-code-red-light:    #f3d6d6;
  --color-code-orange-light: #f7dfcf;
  --color-code-yellow-light: #f9edcc;
  --color-code-green-light:  #e6edd1;
  --color-code-aqua-light:   #d9ece8;
  --color-code-blue-light:   #d9e2ef;
  --color-code-purple-light: #e8dced;

  --font-family-sans: "Roboto Condensed", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  --font-family-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
}


/* =================================
   BASE TIPOGRAFIA & BODY
   ================================= */

html {
  font-family: var(--font-family-sans);
  color: var(--color-text);
  background: var(--color-background);
}

body {
  padding: var(--padding);
  max-width: 70rem;
  margin: 0 auto;
  line-height: 1.3;
}

img {
  width: 100%;
}

li {
  list-style: none;
}

a {
  color: currentColor;
  text-decoration: none;
}

button {
  font: inherit;
  background: none;
  border: 0;
  color: currentColor;
  cursor: pointer;
}

strong,
b {
  font-weight: 600;
}

small {
  font-size: inherit;
  color: var(--color-text-grey);
}


/* =================================
   UTILITIES & LAYOUT GENERALE
   ================================= */

.main {
  margin-top: 16rem;
}

.main h1 {
  font-size: 4rem;
  font-weight: 700;
  letter-spacing: 0.05rem;
}

.bg-light {
  background-color: var(--color-light);
}

.color-grey {
  color: var(--color-text-grey);
}

.section {
  padding: 3rem 0;
}

.grid {
  --columns: 12;
  --gutter: 3rem;
  display: grid;
  grid-gap: var(--gutter);
  grid-template-columns: 1fr;
}

.grid > .column {
  margin-bottom: var(--gutter);
}

.autogrid {
  --gutter: 3rem;
  --min: 10rem;
  display: grid;
  grid-gap: var(--gutter);
  grid-template-columns: repeat(auto-fit, minmax(var(--min), 1fr));
  grid-auto-flow: dense;
}

hr {
  border: 0;
  background: currentColor;
  height: 2px;
  width: 1.5rem;
  margin: 3rem auto;
}

.align-center {
  text-align: center;
}

.margin-s {
  margin-bottom: .75rem;
}

.margin-m {
  margin-bottom: 1.5rem;
}

.margin-l {
  margin-bottom: 3rem;
}

.margin-xl {
  margin-bottom: 4.5rem;
}

.margin-xxl {
  margin-bottom: 6rem;
}


/* =================================
   HEADER, LOGO, MENU, SOCIAL
   ================================= */

.header {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 6rem;
  padding: 0;
}

.logo {
  padding: 0;
  display: flex;
  align-items: center;
  font-weight: 600;
  cursor: pointer;
  height: 200px;
  transition: height 0.25s ease, transform 0.25s ease;
}

.logo svg {
  width: 220px;
  position: relative;
  left: -35px;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.logo-text {
  display: none;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.menu {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.menu a {
  padding: 0.2rem 0.5rem;
  display: block;
}

.menu a svg{
  width: 16px; 
  height: 16px;
}

.menu a[aria-current] {
  text-decoration: underline;
}

.menu-links {
  display: flex;
}

.menu-bottom {
  display: flex;
  align-items: center;
}

.menu-user {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-left: 2rem;
  margin-right: 1rem;
}

.menu a.menu-auth-link {
  font-weight: 600;
  text-decoration: none;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 0.5rem 1.5rem;
}

.menu a.menu-auth-link:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* MENU MOBILE / HAMBURGER - base (stato desktop) */
.menu-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 1rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.menu-toggle-bar {
  display: block;
  width: 45px;
  height: 6px;
  background-color: var(--color-white);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease;
}

/* Stato aperto: X */
.menu-toggle.is-open .menu-toggle-bar:nth-child(1) {
  transform: translateY(16px) rotate(45deg);
}

.menu-toggle.is-open .menu-toggle-bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open .menu-toggle-bar:nth-child(3) {
  transform: translateY(-16px) rotate(-45deg);
}

.social {
  display: flex;
  padding: 0 .5rem;
}

.social a {
  padding: 1rem .5rem;
}


/* =================================
   TESTO RICCO / CONTENT (.text)
   ================================= */

h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.text {
  line-height: 1.5em;
}

.text a {
  text-decoration: underline;
}

.text :first-child {
  margin-top: 0;
}

.text :last-child {
  margin-bottom: 0;
}

.text p,
.text ul,
.text ol {
  margin-bottom: 1.5rem;
}

.text ul,
.text ol {
  margin-left: 1rem;
}

.text ul p,
.text ol p {
  margin-bottom: 0;
}

.text ul > li {
  list-style: disc;
}

.text ol > li {
  list-style: decimal;
}

.text ul ol,
.text ul ul,
.text ol ul,
.text ol ol {
  margin-bottom: 0;
}

.text h1,
.h1,
.intro {
  font-size: 2rem;
  margin-bottom: 3rem;
  line-height: 1.25em;
}

.text h2,
.h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.text h3,
.h3 {
  font-weight: 600;
}

.text .codeblock {
  display: grid;
}

.text code {
  font-family: var(--font-family-mono);
  font-size: 1em;
  background: var(--color-light);
  padding: 0 .5rem;
  display: inline-block;
  color: var(--color-black);
}

.text pre {
  margin: 3rem 0;
  background: var(--color-black);
  color: var(--color-white);
  padding: 1.5rem;
  overflow-x: scroll;
  overflow-y: hidden;
  line-height: 1.5rem;
}

.text pre code {
  padding: 0;
  background: none;
  color: inherit;
}

.text hr {
  margin: 6rem 0;
}

.text dt {
  font-weight: 600;
}

.text blockquote {
  font-size: 1.25rem;
  line-height: 1.325em;
  border-left: 2px solid var(--color-black);
  padding-left: 1rem;
  margin: 3rem 0;
  max-width: 25rem;
}

.text blockquote footer {
  font-size: .875rem;
  font-style: italic;
}

.text figure {
  margin: 3rem 0;
}

.text figcaption {
  padding-top: .75rem;
  color: var(--color-text-grey);
}

.text figure ul {
  line-height: 0;
  display: grid;
  gap: 1.5rem;
  margin: 0;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
}

.text figure ul li {
  list-style: none;
}


/* INTRO & CTA */

.intro {
  max-width: 40rem;
}

.intro *:not(:last-child) {
  margin-bottom: 1em;
}

.cta {
  background: var(--color-black);
  color: var(--color-white);
  display: inline-flex;
  justify-content: center;
  padding: .75rem 1.5rem;
  border: 4px solid var(--color-white);
  outline: 2px solid var(--color-black);
}

.box {
  background: var(--color-light);
  padding: 1.5rem;
  border: 4px solid var(--color-white);
  outline: 2px solid var(--color-light);
}


/* MEDIA (IMG, VIDEO, MAP) */

.video,
.img {
  position: relative;
  display: block;
  --w: 1;
  --h: 1;
  padding-bottom: calc(100% / var(--w) * var(--h));
  background: var(--color-black);
}

.img img,
.video iframe {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}

.img[data-contain] img {
  object-fit: contain;
}

.img-caption,
.video-caption {
  padding-top: .75rem;
  line-height: 1.5em;
}

.map {
  --w: 2;
  --h: 1;
  padding-bottom: calc(100% / var(--w) * var(--h));
  position: relative;
  overflow: hidden;
  background: var(--color-black);
}

.map iframe {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}


/* =================================
   PAGINAZIONE & NOTE
   ================================= */

.pagination {
  display: flex;
  padding-top: 6rem;
}

.pagination > span {
  color: var(--color-text-grey);
}

.pagination > * {
  padding: .5rem;
  width: 3rem;
  text-align: center;
  border: 2px solid currentColor;
  margin-right: 1.5rem;
}

.pagination > a:hover {
  background: var(--color-black);
  color: var(--color-white);
  border-color: var(--color-black);
}

.note-excerpt {
  line-height: 1.5em;
}

.note-excerpt header {
  margin-bottom: 1.5rem;
}

.note-excerpt figure {
  margin-bottom: .5rem;
}

.note-excerpt-title {
  font-weight: 600;
}

.note-excerpt-date {
  color: var(--color-text-grey);
}


/* =================================
   HOME
   ================================= */

.home {
  margin-top: 2rem;
}

.home a {
  text-decoration: underline;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.home a:hover {
  text-decoration: none;
  opacity: 0.9;
}

.home-intro {
  margin-bottom: 2.5rem;
}

.home-title {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: 0.04rem;
  margin-bottom: 0.75rem;
}

.home-intro-text {
  line-height: 1.5;
}

.home-intro-text p + p {
  margin-top: 0.75rem;
}

.home-standings {
  margin-top: 3rem;
  max-width: 40rem;
}

.home-standings-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.home-standings-subtitle {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.home-standings-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.home-standings-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.75rem;
  background-color: color-mix(in srgb, var(--color-white) 6%, transparent);
  margin-bottom: 0.35rem;
}

.home-standings-rank {
  width: 2rem;
  font-weight: 600;
}

.home-standings-name {
  flex: 1;
  text-transform: capitalize;
}

.home-standings-score {
  min-width: 4rem;
  text-align: right;
  font-weight: 600;
}

.home-standings-item .emoji {
  font-size: 1.4rem;
}

.home-standings-meta {
  font-size: 0.9rem;
}

.home-standings-link {
  display: inline-block;
  margin-top: 0.35rem;
  font-weight: 600;
  text-decoration: underline;
}

.home-standings-link:hover {
  color: var(--color-white);
}

.home-standings-empty {
  font-size: 0.95rem;
  color: var(--color-text-grey);
}


/* =================================
   PLAYERS LIST & DETTAGLIO
   ================================= */

.players-item {
  margin: 1.5rem 0;
  padding: 1rem;
  max-width: 640px;
  border-radius: 1rem;
  --item-bg: var(--color-dark-grey);
  background-color: color-mix(in srgb, var(--item-bg) 80%, transparent);
  transition: background-color 250ms ease;
}

.players-item:hover {
  background-color: color-mix(in srgb, var(--item-bg) 50%, transparent);
}

/* Rank: cambiano solo la variabile */
.rank-1 { --item-bg: var(--color-code-dark-gold); }
.rank-2 { --item-bg: var(--color-code-silver); }
.rank-3 { --item-bg: var(--color-code-bronze); }

.players-controls {
  margin-bottom: 0.5rem;
  margin-top: 1rem;
}
.players-compact-total{
  float: right;
}
.players-controls button {
  background-color: var(--color-grey);
  padding: 0.2rem 1rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  transition: background-color 250ms ease;
  font-size: 1rem;
  border-radius: 1rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.02rem;
}

.players-controls button:hover {
  background-color: var(--color-dark-grey);
}

.players-name {
  font-family: var(--font-family-sans);
  text-transform: capitalize;
  font-size: 1.5rem;
  font-weight: 700;
}

.main .player-name {
  font-family: var(--font-family-sans);
  text-transform: capitalize;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.main .tappe-name {
  font-family: var(--font-family-sans);
  text-transform: capitalize;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  margin-top: 1.5rem;
}

.players-stats {
  display: flex;
  margin-top: 0.6rem;
  flex-direction: column;
}

.players-stats-main {
  min-width: 120px;
  margin-right: 0.6rem;
  margin-bottom: 0.6rem;
}

.players-stats-main li {
  font-size: 1.3rem;
  font-weight: 700;
}

.emoji {
  font-size: 1.8rem;
  position: relative;
  top: -2px;
}

.stageEmojiNum {
  opacity: 0.6;
  margin-left: 0.4rem;
}

.search {
  background-color: color-mix(in srgb, var(--color-white) 10%, transparent);
  border: 0;
  border-radius: 1rem;
  padding: 1rem 2rem;
  margin-bottom: 2rem;
  margin-top: 2rem;
  color: var(--color-white);
  font-size: 1.5rem;
  width: 230px;
}

.players-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  grid-template-areas: "list side";
  gap: 2rem;
  align-items: start;
}

.players-col-list {
  grid-area: list;
}

.players-col-side {
  grid-area: side;
}

.players-panel {
  padding: 1rem;
  border-radius: 1rem;
  background-color: color-mix(in srgb, var(--color-white) 10%, transparent);
  margin-bottom: 1rem;
  margin-top: 2rem;
  max-width: 640px;
}

.players-col-side {
  position: sticky;
  top: 1.5rem;
}

.players-legend-title {
  font-size: 1.5rem;
}

.legend-symbol {
  min-width: 52px;
  display: block;
  float: left;
}

.players-legend-list {
  margin-top: 0.5rem;
}

.movement {
  display: inline-block;
  font-weight: bold;
  font-size: 1.8rem;
}

.movement-up {
  color: var(--color-code-green);
}

.movement-down {
  color: var(--color-code-red);
}

.movement-same {
  color: var(--color-code-comment);
}


.player-top-nav {
  display: grid;
  
  grid-template-columns: 1fr;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.player-top-nav__side {
  display: flex;
}

.player-top-nav__side--prev {
  justify-content: flex-start;
  display: none;
}

.player-top-nav__side--next {
  justify-content: flex-start;
  display: none;
}

.player-nav-btn {
  display: inline-block;
  max-width: 100%;
  padding: 0.45rem 1rem;
  border-radius: 1rem;
  background-color: color-mix(in srgb, var(--color-white) 10%, transparent);
  transition: background-color 250ms ease;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-transform: capitalize;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.player-nav-btn:hover {
  background-color: color-mix(in srgb, var(--color-white) 18%, transparent);
}

.player .player-name {
  text-align: left;
}

/* =================================
   PLAYERS LIST - MODALITÀ COMPATTA
   ================================= */

.players-controls .btn-compact,
.players-controls #toggleCompactRanking {
  background-color: var(--color-dark-grey);
}

.players-controls .btn-compact:hover,
.players-controls #toggleCompactRanking:hover {
  background-color: var(--color-dark-grey-hover);
}

/* Modalità compatta: resta solo posizione + nome */
#playersList.players-compact .players-stats,
#playersList.players-compact .emoji {
  display: none;
}

#playersList.players-compact .players-item {
  margin: 0.2rem 0;
  padding: 0.2rem 0.6rem;
  border-radius: 0.75rem;
}

#playersList.players-compact .players-name,
#playersList.players-compact .name {
  font-size: 1.2rem;
  line-height: 1.2;
  font-weight: 700;
}

#playersList.players-compact .players-rank {

  display: inline-block;
  min-width: 1.6rem;
}

/* opzionale: lista più densa */
#playersList.players-compact .players.list {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

/* opzionale: search un po' più compatta mentre sei in compact */
#playersList.players-compact .search {
  font-size: 1rem;
  padding: 0.7rem 1rem;
  margin-bottom: 1rem;
}

/* PLAYER DETAIL PANELS */

.player-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.player-panel {
  padding: 1rem;
  border-radius: 1rem;
  background-color: color-mix(in srgb, var(--color-white) 10%, transparent);
}

.player-panel-title {
  margin: 0 0 0.75rem 0;
  font-size: 1rem;
  font-weight: 600;
}

.player-stats {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Tappe giocatore */

.player-tappe {
  padding: 1rem;
  border-radius: 1rem;
  background-color: color-mix(in srgb, var(--color-code-light-gold) 40%, transparent);
  margin-bottom: 5rem;
}

.player-tappa {
  display: grid;
  grid-template-columns: 90px 140px auto;
  gap: 0.75rem;
  align-items: center;
}

/* Desktop: occupa solo 2 colonne su 3 */
.player-tappe-wrap {
  grid-column: 1 / span 2;
}


/* =================================
   RISULTATI (page risultati)
   ================================= */

.risultati-event {
  margin-top: 2rem;
}

/* panel/card come players */
.risultati-panel {
  padding: 1rem;
  border-radius: 1rem;
  background-color: color-mix(in srgb, var(--color-white) 10%, transparent);
  margin-top: 1rem;
}

/* layout interno evento: 1 colonna per standings, pairings a griglia */
.risultati-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: start;
}

/* ---- standings ---- */
.risultati-standings table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 0.75rem;
}

.risultati-standings th,
.risultati-standings td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid color-mix(in srgb, var(--color-white) 15%, transparent);
}

.risultati-standings thead th {
  text-align: left;
  font-weight: 600;
  opacity: 0.9;
}

.risultati-standings tbody tr:hover {
  background-color: color-mix(in srgb, var(--color-white) 6%, transparent);
}

/* togli il bordo all'ultima riga della classifica */
.risultati-standings tbody tr:last-child td {
  border-bottom: 0;
}

/* ---- pairings ---- */
.risultati-pairings {
  margin-top: 0.5rem;
}

/* griglia 2 colonne per i round */
.pairings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
  margin-top: 0.75rem;
}

.pairings-round {
  padding: 1rem;
  border-radius: 1rem;
  background-color: color-mix(in srgb, var(--color-white) 10%, transparent);
}

/* titolo round */
.pairings-round h4 {
  margin: 0 0 0.75rem 0;
  font-size: 1rem;
  font-weight: 600;
}

/* singolo match */
.pairing-match {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 0.5rem;
  align-items: baseline;
  padding: 0.4rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--color-white) 12%, transparent);
}

.pairing-match:last-child {
  border-bottom: 0;
}

/* tavolo */
.pairing-table {
  opacity: 0.75;
  font-size: 0.9rem;
}

/* risultato evidenziato */
.pairing-result {
  font-weight: 700;
}

/* match points (piccoli) */
.pairing-mp {
  opacity: 0.7;
  font-size: 0.85rem;
  margin-left: 0.25rem;
}

/* BYE */
.pairing-bye .pairing-table {
  opacity: 0.9;
}


/* =================================
   DATA REFRESH / MESSAGGI / LOGIN
   ================================= */

.data-refresh {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 0 0 1rem 0;
}

.data-refresh .btn{
  background-color: var(--color-code-green);
  padding: 0.2rem 1rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  transition: background-color 250ms ease;
  font-size: 1rem;
  border-radius: 1rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.02rem;
}

.data-refresh .btn:hover {
  background-color: var(--color-code-aqua);
}

.data-refresh__status {
  opacity: .75;
  font-size: .95rem;
  padding: .35rem .6rem;
  border-radius: .75rem;
  background-color: color-mix(in srgb, var(--color-white) 10%, transparent);
}

.hidden {
  display: none;
}

.form-message--error {
  color: red;
  margin-bottom: 1rem;
}

.login-button {
  display: inline-block;
  background: #555;
  color: #fff;
  padding: 0.7rem 1.4rem;
  border-radius: 6px;
  border: 2px solid transparent;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  margin-top: 0.5rem;
}

.login-button:hover {
  background: #363636;
  transform: translateY(-2px);
}

.login-button:active {
  transform: translateY(0);
  background: #111;
}

.player-login-form ul li {
  margin-bottom: 1rem;
}

.player-login-form input {
  width: 100%;
  max-width: 280px;
  padding: 0.45rem 0.6rem;
  border-radius: 5px;
  border: 1px solid #ccc;
  margin-top: 0.2rem;
  font-size: 1rem;
}

.player-login-form input:focus {
  outline: none;
  border-color: #333;
}

/* =================================
   MANUALE OPERATIVO
   ================================= */

.manual-page {
  margin: 0 auto;
}

.manual-header {
  margin-bottom: 3rem;
}

.manual-header h1 {
  margin-bottom: 1rem;
}

.manual-intro {
  max-width: 680px;
  color: var(--color-light);
  font-size: 1.2rem;
  line-height: 1.5;
}

.manual-intro p {
  margin-bottom: 1rem;
}

.manual-guides {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.manual-guide {
  padding: 1.5rem;
  border-radius: 1rem;
  background-color: color-mix(
    in srgb,
    var(--color-white) 8%,
    transparent
  );
  border: 1px solid color-mix(
    in srgb,
    var(--color-white) 10%,
    transparent
  );
}

.manual-guide > h2 {
  margin-bottom: 0.75rem;
  font-size: 1.8rem;
  line-height: 1.15;
  font-weight: 700;
}

.manual-guide__description {
  max-width: 700px;
  margin-bottom: 2rem;
  color: var(--color-light);
  font-size: 1.1rem;
  line-height: 1.5;
}

.manual-guide__description p {
  margin-bottom: 1rem;
}

.manual-guide__content {
  line-height: 1.55;
}

.manual-guide__content > :first-child {
  margin-top: 0;
}

.manual-guide__content > :last-child {
  margin-bottom: 0;
}

.manual-guide__content h2,
.manual-guide__content h3,
.manual-guide__content h4 {
  font-weight: 700;
  line-height: 1.2;
}

.manual-guide__content h2 {
  margin: 3rem 0 1rem;
  font-size: 1.7rem;
}

.manual-guide__content h3 {
  margin: 2.5rem 0 0.75rem;
  font-size: 1.35rem;
}

.manual-guide__content h4 {
  margin: 2rem 0 0.5rem;
  font-size: 1.1rem;
}

.manual-guide__content p {
  max-width: 750px;
  margin-bottom: 1.25rem;
}

.manual-guide__content a {
  color: var(--color-code-aqua);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.manual-guide__content a:hover {
  color: var(--color-white);
}

.manual-guide__content ul,
.manual-guide__content ol {
  max-width: 750px;
  margin: 0 0 1.5rem 1.5rem;
}

.manual-guide__content li {
  margin-bottom: 0.4rem;
  padding-left: 0.25rem;
}

.manual-guide__content ul > li {
  list-style: disc;
}

.manual-guide__content ol > li {
  list-style: decimal;
}

.manual-guide__content code {
  display: inline;
  padding: 0.1rem 0.35rem;
  border-radius: 0.3rem;
  background-color: color-mix(
    in srgb,
    var(--color-code-gold) 20%,
    transparent
  );
  color: var(--color-code-light-gold);
  font-family: var(--font-family-mono);
  font-size: 0.9em;
}

.manual-guide__content pre {
  position: relative;
  max-width: 100%;
  margin: 1rem 0 1.75rem;
  padding: 1.25rem;
  overflow-x: auto;
  border-radius: 0.75rem;
  border: 1px solid color-mix(
    in srgb,
    var(--color-white) 12%,
    transparent
  );
  background-color: color-mix(
    in srgb,
    var(--color-black) 65%,
    var(--color-dark-grey)
  );
  color: var(--color-code-white);
  font-family: var(--font-family-mono);
  font-size: 0.9rem;
  line-height: 1.6;
  tab-size: 2;
  white-space: pre;
}

.manual-guide__content pre code {
  display: block;
  padding: 0;
  border-radius: 0;
  background: none;
  color: inherit;
  font-size: inherit;
}

.manual-guide__content blockquote {
  max-width: 700px;
  margin: 2rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--color-code-gold);
  border-radius: 0 0.75rem 0.75rem 0;
  background-color: color-mix(
    in srgb,
    var(--color-code-gold) 10%,
    transparent
  );
}

.manual-guide__content blockquote p:last-child {
  margin-bottom: 0;
}

.manual-guide__content hr {
  width: 100%;
  height: 1px;
  margin: 3rem 0;
  background-color: color-mix(
    in srgb,
    var(--color-white) 20%,
    transparent
  );
}


/* =================================
   ARCHIVIO LEGHE
   ================================= */

.archive-page,
.season-page {
  margin: 0 auto;
}

.archive-page > h1,
.season-header h1 {
  margin-bottom: 1rem;
}

.archive-intro {
  max-width: 680px;
  margin-bottom: 3rem;
  color: var(--color-light);
  font-size: 1.2rem;
  line-height: 1.5;
}

.archive-intro p:last-child {
  margin-bottom: 0;
}

.archive-seasons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.archive-season-card,
.season-link-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid color-mix(
    in srgb,
    var(--color-white) 10%,
    transparent
  );
  background-color: color-mix(
    in srgb,
    var(--color-white) 8%,
    transparent
  );
  transition:
    background-color 250ms ease,
    transform 250ms ease,
    border-color 250ms ease;
}

.archive-season-card:hover,
.season-link-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(
    in srgb,
    var(--color-white) 20%,
    transparent
  );
  background-color: color-mix(
    in srgb,
    var(--color-white) 12%,
    transparent
  );
}

.archive-season-title,
.season-link-card h2 {
  margin-bottom: 0.75rem;
  font-size: 1.8rem;
  line-height: 1.15;
  font-weight: 700;
}

.archive-season-title a {
  transition: opacity 200ms ease;
}

.archive-season-title a:hover {
  opacity: 0.75;
}

.archive-season-dates,
.season-dates,
.season-final-date {
  color: var(--color-light);
  line-height: 1.4;
}

.archive-season-dates {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.archive-page .btn,
.season-page .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: auto;
  padding: 0.55rem 1.2rem;
  border: 1px solid var(--color-white);
  border-radius: 999px;
  font-weight: 700;
  line-height: 1;
  transition:
    background-color 200ms ease,
    color 200ms ease,
    transform 200ms ease;
}

.archive-page .btn:hover,
.season-page .btn:hover {
  background-color: var(--color-white);
  color: var(--color-black);
  transform: translateY(-1px);
}


/* =================================
   PAGINA SINGOLA STAGIONE
   ================================= */

.season-breadcrumb {
  margin-bottom: 2rem;
}

.season-breadcrumb a {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background-color: color-mix(
    in srgb,
    var(--color-white) 8%,
    transparent
  );
  color: var(--color-light);
  font-weight: 600;
  transition:
    background-color 200ms ease,
    color 200ms ease;
}

.season-breadcrumb a:hover {
  background-color: color-mix(
    in srgb,
    var(--color-white) 15%,
    transparent
  );
  color: var(--color-white);
}

.season-header {
  margin-bottom: 3rem;
}

.season-header h1 {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.1;
}

.season-dates {
  margin-top: 0.5rem;
  font-size: 1.2rem;
}

.season-final-date {
  display: inline-flex;
  margin-top: 0.75rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background-color: color-mix(
    in srgb,
    var(--color-code-gold) 18%,
    transparent
  );
  color: var(--color-code-light-gold);
  font-size: 1rem;
  font-weight: 600;
}

.season-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.season-link-card p {
  max-width: 520px;
  margin-bottom: 1.5rem;
  color: var(--color-light);
  line-height: 1.5;
}

/* =================================
   FOOTER
   ================================= */

.footer {
  padding: 6rem 0 4rem;
  line-height: 1.5em;
}

.footer h2 {
  font-weight: 600;
  margin-bottom: .75rem;
}

.footer p {
  color: var(--color-text-grey);
  margin-bottom: 1rem;
}

.footer a:hover {
  color: var(--color-white);
}

.social-links a {
  margin-right: .5rem;
  text-decoration: underline;
}

.credits {
  font-size: .85rem;
  opacity: .9;
}

.premioUltimaTappa{
  color: var(--color-code-purple);
  font-weight: 700;
}

.prize-positive {
  color: var(--color-code-aqua);
  font-weight: 700;
}

.prize-zero {
  color: var(--color-code-orange);
  font-weight: 700;
}