html {
  /*background: url("../Imgs/Fundi.webp") no-repeat center center fixed; */
  background: url("../Imgs/General-Graphic-3840-x-2160-8.webp") no-repeat center center fixed;
  /* -webkit-background-size: cover; */
  /* -moz-background-size: cover; */
  /* -o-background-size: cover; */
  background-size: cover;
  background-position: bottom 0px right 0px;
  font-family: "Trebuchet MS", Helvetica, sans-serif;
  max-width: 100%;
  overflow-x: hidden;
}

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

a {
  text-align: right;
  font-weight: bold;
  font-size: 200%;
}

body {
  margin: 0;
  padding: 0.75rem 0.5rem 1rem;
  max-width: 100%;
  overflow-x: hidden;
  text-align: center;
}

img {
  width: 30px;
  height: 20px;
  border-radius: 0%;
  display: block;
  margin: auto;
}

.flag-cell {
  width: 30px;
  height: 20px;
  display: inline-block !important;
  margin-right: 5px !important;
  object-fit: contain;
  vertical-align: middle;
}

.team-cell {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
}

h1 {
  display: inline-block;
  color: black;
  font-size: clamp(1.8rem, 8vw, 3.2rem);
  max-width: 90%;
  text-align: center;
  padding: 0.75rem 1rem;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 15px;
  margin: 1rem auto;
  word-wrap: break-word;
}

h2 {
  color: Black;
  font-size: clamp(1.5rem, 6vw, 2.5rem);
  text-align: center;
  padding: 0.75rem 1rem;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 15px;
  width: min(90%, 600px);
  margin: 0.75rem auto;
}

h3 {
  color: Black;
  font-size: 200%;
  text-align: center;
  line-height: 50%;
}

#PollaForm>h2 {
  color: white;
  background-color: rgba(36, 143, 22, 0.5);
}

.group>h3,
.best-thirds>h3 {
  color: white;
}

div {
  margin: auto;
  display: inline-block;
}

.group {
  background-color: rgba(36, 143, 22, 0.5);
  padding: 10px;
  border-radius: 15px;
  margin: 10px;
  width: min(100%, 600px);
  min-height: 700px;
  vertical-align: top;
  box-sizing: border-box;
}

.best-thirds {
  background-color: rgba(36, 143, 22, 0.5);
  padding: 10px;
  border-radius: 15px;
  margin: 10px;
  width: min(100%, 500px);
  min-height: 0;
  vertical-align: top;
  box-sizing: border-box;
}

.fround {
  background-color: rgba(255, 255, 255, 0.6);
  --team-label-height: 1.65rem;
  padding: 10px;
  border-radius: 15px;
  margin: auto;
  max-width: 100%;
  box-sizing: border-box;
}

.namen {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 15px;
  padding: 0.9rem 1rem;
  width: min(100%, 620px);
  box-sizing: border-box;
}

.knock {
  background-color: rgba(36, 143, 22, 0.5);
  border-radius: 15px;
}

.knockout-shell {
  display: block;
  width: min(100%, 1280px);
  max-width: 100%;
  overflow: visible;
  box-sizing: border-box;
}

.final-podium {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: end;
  gap: 1rem;
  width: min(100%, 760px);
  margin: 1.25rem auto;
  padding: 1.25rem;
  background: rgba(36, 143, 22, 0.62);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.18);
  box-sizing: border-box;
}

.podium-place {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 170px;
  padding: 1rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
  text-align: center;
  box-sizing: border-box;
}

.podium-first {
  order: 2;
  min-height: 220px;
  background: rgba(255, 255, 255, 0.92);
}

.podium-second {
  order: 1;
  min-height: 190px;
}

.podium-third {
  order: 3;
  min-height: 120px;
}

.podium-place label {
  display: block;
  margin: 0;
  padding: 0;
}

.podium-place label:first-child {
  width: 100%;
  margin-bottom: 0.75rem;
  padding: 0.42rem 0.7rem;
  border-radius: 999px;
  background: #003469;
  color: white;
  font-size: 0.95rem;
  font-weight: bold;
}

.podium-place label:nth-child(2) {
  min-height: 2.2rem;
  color: #111;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  font-weight: 800;
  line-height: 1.15;
}

.podium-place label:nth-child(3) {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  margin-top: 0.75rem;
}

.podium-place label:nth-child(3) img {
  width: 54px;
  height: 36px;
  object-fit: contain;
}

p {
  display: table-row;
}

.fround p {
  display: grid;
  grid-template-columns: 1.6rem minmax(0, 1fr) 30px 3em max-content 3em 30px minmax(0, 1fr);
  column-gap: 4px;
  align-items: center;
}

.match-info-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4rem;
  min-width: 1.4rem;
  height: 1.4rem;
  margin: 0;
  z-index: 5;
}

.match-info-wrapper.is-open {
  z-index: 999;
}

.match-info-button {
  width: 1.15rem;
  height: 1.15rem;
  border: 1px solid rgba(0, 52, 105, 0.45);
  border-radius: 50%;
  padding: 0;
  background: rgba(255, 255, 255, 0.56);
  color: rgba(0, 52, 105, 0.8);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: bold;
  line-height: 1;
}

.match-info-button:hover,
.match-info-button:focus {
  background: rgba(255, 255, 255, 0.92);
  outline: 2px solid rgba(0, 52, 105, 0.28);
  outline-offset: 2px;
}

.match-info-tooltip {
  position: absolute;
  left: 0;
  top: calc(100% + 0.45rem);
  width: min(240px, 78vw);
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(0, 52, 105, 0.22);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  color: #111;
  text-align: left;
  font-size: 0.85rem;
  line-height: 1.35;
  white-space: normal;
  word-break: break-word;
  z-index: 30;
}

.match-info-tooltip::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 100%;
  width: 2rem;
  height: 0.45rem;
}

.match-info-line {
  display: block;
}

.match-info-title {
  display: block;
  margin-bottom: 0.35rem;
  color: rgba(0, 52, 105, 0.96);
  font-size: 0.9rem;
  font-weight: bold;
}

.match-info-line+.match-info-line {
  margin-top: 0.28rem;
}

.match-info-ranking-table {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  width: 100%;
  margin-top: 0.45rem;
  font-size: 0.78rem;
}

.match-info-ranking-row {
  display: contents;
}

.match-info-ranking-cell {
  padding: 0.22rem 0.25rem;
  border-bottom: 1px solid rgba(0, 52, 105, 0.14);
  background: transparent;
  color: #111;
  text-align: left;
}

.match-info-ranking-head .match-info-ranking-cell {
  color: rgba(0, 52, 105, 0.92);
  font-weight: bold;
}

.match-info-ranking-cell:nth-child(2),
.match-info-ranking-cell:nth-child(3) {
  text-align: right;
  white-space: nowrap;
}

.match-info-team-cell {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-width: 0;
}

.match-info-flag {
  width: 18px;
  height: 12px;
  flex: 0 0 auto;
  margin: 0;
  border-radius: 0;
  object-fit: cover;
}

label {
  display: table-cell;
  margin-left: 5px;
  margin-right: 5px;
  padding-left: 5px;
  padding-right: 5px;
  padding-top: 5px;
  padding-bottom: 5px;
  text-align: center;
  vertical-align: middle;
}

.fround p label {
  display: block;
  padding-top: 2px;
  padding-bottom: 2px;
  padding-left: 3px;
  padding-right: 3px;
  box-sizing: border-box;
}

.fround p label:nth-of-type(2),
.fround p label:nth-of-type(3),
.fround p label:nth-of-type(7),
.fround p label:nth-of-type(8) {
  height: var(--team-label-height);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
}

.fround p label:first-of-type {
  display: none;
}

.fround p label:nth-of-type(2),
.fround p label:nth-of-type(8) {
  width: auto;
  max-width: none;
  white-space: normal;
  overflow-wrap: anywhere;
  overflow-wrap: break-word;
}

.fround input[type="number"] {
  width: 3em;
}

input {
  margin-left: 3px;
  margin-right: 3px;
  text-align: center;
}

input[type="number"] {
  width: 4rem;
}

.minom {
  width: 180px;
  min-height: 40px;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(0, 52, 105, 0.22);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.08);
  color: #111;
  font-size: 0.98rem;
  font-weight: normal;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.minom:focus {
  border-color: rgba(0, 52, 105, 0.55);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 0 0 3px rgba(0, 52, 105, 0.14);
  outline: none;
}

.minomb {
  min-width: 120px;
  min-height: 42px;
  padding: 0.65rem 1.25rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #168f16, #24D817);
  box-shadow: 0 8px 18px rgba(22, 143, 22, 0.28);
  color: white;
  font-weight: bold;
  font-size: 1rem;
  letter-spacing: 0;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.minomb:hover,
.minomb:focus {
  box-shadow: 0 10px 22px rgba(22, 143, 22, 0.36);
  filter: brightness(1.03);
  outline: none;
  transform: translateY(-1px);
}

.minomb:active {
  box-shadow: 0 5px 12px rgba(22, 143, 22, 0.26);
  transform: translateY(0);
}

th {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 5px;
  padding-right: 5px;
  text-align: center;
  color: white;
  background-color: #003469;
  border-bottom: 2px solid grey;
}

table.knockout {
  border: 0.5px solid grey;
  border-collapse: collapse;
  min-width: 80px;
  height: 10px;
}

.knockout-bracket {
  --match-width: 188px;
  --match-height: 116px;
  --column-gap: 34px;
  position: relative;
  display: block;
  min-width: calc((var(--match-width) * 5) + (var(--column-gap) * 4) + 28px);
  max-width: 100%;
  min-height: 2160px;
  overflow-x: auto;
  padding: 14px;
}

.knockout-round-heading {
  position: absolute;
  top: 14px;
  left: calc(14px + ((var(--col) - 1) * (var(--match-width) + var(--column-gap))));
  width: var(--match-width);
  z-index: 2;
  margin: 0 0 10px;
  padding: 8px 6px;
  text-align: center;
  color: white;
  background-color: #4A2BBE;
  border-bottom: 2px solid grey;
  font-size: 0.95rem;
}

.knockout-match {
  position: absolute;
  top: calc(14px + var(--top));
  left: calc(14px + ((var(--col) - 1) * (var(--match-width) + var(--column-gap))));
  width: var(--match-width);
  height: var(--match-height);
  z-index: 2;
  border: 0.75px solid grey;
  background: rgba(255, 255, 255, 0.8);
  box-sizing: border-box;
}

.knockout-match.is-open {
  z-index: 100;
}

.knockout-match>.match-info-wrapper {
  position: absolute;
  top: 6px;
  left: 6px;
}

.knockout-match-section-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 8px);
  padding: 6px;
  text-align: center;
  color: white;
  background-color: #4A2BBE;
  border-bottom: 2px solid grey;
  font-size: 0.95rem;
  font-weight: bold;
}

.knockout-match-title {
  padding: 6px;
  text-align: center;
  border-bottom: 2px solid black;
  font-weight: bold;
}

.knockout-team {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px 26px;
  gap: 4px;
  align-items: center;
  min-height: 38px;
  padding: 4px 6px;
  border-top: 0.75px solid grey;
  box-sizing: border-box;
  line-height: 1.05;
}

.knockout-team-name {
  overflow-wrap: break-word;
}

.knockout-flag img {
  max-width: 28px;
  height: auto;
}

.knockout-connector {
  display: none;
}

.knockout-connectors {
  position: absolute;
  inset: 0;
  width: calc((var(--match-width) * 5) + (var(--column-gap) * 4) + 28px);
  height: 2160px;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
}

.knockout-connectors path {
  fill: none;
  stroke: black;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

@media (max-width: 900px) {
  .knockout-bracket {
    --match-width: 188px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }
}

#team {
  width: 80px;
  border: 0.75px solid grey;
  border-right: 0px;
  text-align: center;
  height: 5px;
  background: rgba(255, 255, 255, 0.6);

}

#Flag {
  border: 0.75px solid grey;
  border-left: 0px;
  height: 5px;
  background: rgba(255, 255, 255, 0.6);

}

#radiot {
  border: 0.75px solid grey;
  height: 18px;
  background: rgba(255, 255, 255, 0.6);

}

#Subtitle {
  height: 20px;
  border: 0px;
  border-bottom: 2px solid black;
  vertical-align: bottom;

}

#blanky {
  border: 0px;
  height: 18px;
}

#bordy {
  border: 0px;
}

#fatty {
  border: 0px;
  width: 5px;
}


table.results {
  border: 1px solid black;
  background-color: white;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  border-collapse: collapse;
}

table.results td:first-child,
table.results th:first-child {
  text-align: left;
  padding-left: 10px;
}

table.results td:first-child .team-cell {
  justify-content: flex-start;
}

/* keep overall cell padding and center for non-first-columns */
table.results td,
table.results th {
  padding: 5px;
}

/* table itself centered by margin auto */

table.results tr:nth-child(even) {
  background: #DEDEDE;
}

table.results tr:nth-child(even) {
  background: #DEDEDE;
}

.dashboard-panel {
  display: block;
  width: min(100%, 1100px);
  max-width: 100%;
  margin: 1rem auto;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.86);
  border-radius: 10px;
  text-align: center;
}

.dashboard-panel p,
.dashboard-panel h3 {
  display: block;
  line-height: 1.25;
}

.match-selector-label {
  display: inline-block;
  font-weight: bold;
}

.match-selector {
  max-width: min(100%, 760px);
  margin: 0.5rem auto 1rem;
  padding: 0.45rem;
}

.timeline-match-panel {
  display: none;
  width: 100%;
}

.timeline-match-panel.is-active {
  display: block;
}

.match-meta {
  margin: 0.25rem auto 1rem;
  font-weight: bold;
}

.responsive-table-wrap,
.table-scroll {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.responsive-table-wrap table,
.table-scroll table {
  width: 100%;
  max-width: none;
}

.dashboard-ranking-table {
  min-width: 860px;
}

.movement-up {
  color: #047857;
  font-weight: bold;
}

.movement-down {
  color: #b91c1c;
  font-weight: bold;
}

.movement-same {
  color: #374151;
  font-weight: bold;
}

.dashboard-status {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) minmax(180px, 1fr) minmax(180px, 1fr) minmax(180px, 1fr);
  gap: 12px;
  width: min(100%, 1100px);
  margin: 1rem auto;
  padding: 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
  text-align: left;
}

.dashboard-status-live {
  border-left: 5px solid #16a34a;
}

.dashboard-status-main,
.last-update-card {
  display: block;
  width: auto;
  margin: 0;
}

.dashboard-status h2 {
  width: auto;
  margin: 8px 0 6px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  text-align: left;
  font-size: 1.25rem;
}

.dashboard-status p {
  display: block;
  margin: 0;
  line-height: 1.35;
}

.dashboard-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  font-size: 0.88rem;
  font-weight: 900;
}

.dashboard-status-time {
  color: #334155;
}

.refresh-state {
  margin-top: 8px !important;
  color: #64748b;
  font-size: 0.92rem;
  font-weight: 800;
}

.refresh-state.is-current {
  color: #166534;
}

.refresh-state.is-stale {
  color: #1d4ed8;
}

.refresh-state.is-error {
  color: #991b1b;
}

.last-update-card {
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.last-update-card span,
.last-update-card small {
  display: block;
  color: #64748b;
  font-size: 0.85rem;
  font-weight: 800;
}

.last-update-card strong {
  display: block;
  margin-top: 6px;
  color: #0f172a;
  line-height: 1.2;
}

.last-update-list {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.last-update-list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 3px 0;
  color: #0f172a;
  font-weight: 700;
}

.last-update-list strong {
  display: inline;
  margin: 0;
  color: #166534;
}

.dashboard-update-button {
  width: 100%;
  min-height: 38px;
  margin-top: 12px;
  padding: 9px 12px;
  border: 0;
  border-radius: 8px;
  background: #2563eb;
  color: white;
  font-weight: 900;
  cursor: pointer;
}

.dashboard-update-button:hover {
  background: #1d4ed8;
}

.dashboard-update-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.dashboard-empty-wrap {
  display: flex;
  justify-content: center;
  width: min(100%, 1100px);
  margin: 1.5rem auto 7.5rem;
  padding: 0 1rem;
}

.dashboard-empty-card {
  display: block;
  width: min(100%, 680px);
  margin: 0 auto;
  padding: clamp(1.25rem, 4vw, 2.25rem);
  border: 1px solid rgba(226, 232, 240, 0.82);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  text-align: center;
}

.dashboard-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 0.85rem;
  border: 1px solid rgba(34, 197, 94, 0.28);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(220, 252, 231, 0.95), rgba(219, 234, 254, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  font-size: 1.65rem;
}

.dashboard-empty-kicker,
.dashboard-empty-description {
  display: block;
}

.dashboard-empty-kicker {
  margin: 0 0 0.4rem;
  color: #047857;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.dashboard-empty-card h2 {
  width: auto;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #0f172a;
  font-size: clamp(1.55rem, 4vw, 2.35rem);
  line-height: 1.08;
}

.dashboard-empty-description {
  max-width: 520px;
  margin: 0.85rem auto 0;
  color: #475569;
  font-size: 1rem;
  line-height: 1.55;
}

.dashboard-empty-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 1.35rem auto 0;
  padding: 0;
  max-width: 560px;
}

.dashboard-empty-meta:empty {
  display: none;
}

.dashboard-empty-meta div {
  display: block;
  width: auto;
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(203, 213, 225, 0.85);
  border-radius: 10px;
  background: rgba(248, 250, 252, 0.86);
  text-align: left;
}

.dashboard-empty-meta dt,
.dashboard-empty-meta dd {
  margin: 0;
}

.dashboard-empty-meta dt {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.dashboard-empty-meta dd {
  margin-top: 5px;
  color: #0f172a;
  font-weight: 900;
  line-height: 1.25;
}

.dashboard-empty-refresh {
  min-height: 44px;
  margin-top: 1.35rem;
  padding: 10px 18px;
  border: 0;
  border-radius: 10px;
  background: #2563eb;
  color: white;
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.24);
  font-weight: 900;
  cursor: pointer;
}

.dashboard-empty-refresh:hover {
  background: #1d4ed8;
}

.dashboard-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  max-width: min(360px, calc(100vw - 36px));
  padding: 12px 14px;
  border-radius: 10px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.22);
  font-weight: 900;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.dashboard-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.dashboard-toast.is-success {
  background: #dcfce7;
  color: #166534;
}

.dashboard-toast.is-error {
  background: #fee2e2;
  color: #991b1b;
}

.match-center,
.match-center * {
  text-align: left;
}

.match-center p,
.match-center h2,
.match-center h3,
.match-center div,
.match-center label,
.match-center article,
.match-center section {
  display: block;
  width: auto;
  margin-left: 0;
  margin-right: 0;
}

.match-center h2 {
  margin: 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
  color: #111827;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.match-center h3 {
  margin: 0 0 10px;
  color: #111827;
  font-size: 1rem;
  line-height: 1.2;
}

.match-center-header {
  display: flex !important;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px !important;
}

.match-center-header p {
  margin-top: 6px;
  color: #64748b;
  font-weight: 700;
}

.match-center-header .match-selector-label {
  display: block;
  margin: 0 0 6px;
  padding: 0;
  color: #334155;
  font-size: 0.85rem;
}

.match-center .match-selector {
  width: min(100%, 520px);
  min-height: 42px;
  margin: 0;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  font: inherit;
}

.match-center-empty {
  padding: 18px;
  border: 1px dashed #94a3b8;
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.88);
  color: #475569;
  text-align: center !important;
}

.match-center-panel {
  display: none !important;
}

.match-center-panel.is-active {
  display: block !important;
}

.match-card {
  padding: 18px;
  border: 1px solid rgba(203, 213, 225, 0.95);
  border-radius: 8px;
  background: #f8fafc;
}

.match-pill {
  display: inline-block;
  margin: 0 6px 10px 0;
  padding: 5px 9px;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.78rem;
  font-weight: 800;
}

.match-score {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  color: #0f172a;
  text-align: center;
}

.match-score span {
  display: block;
  overflow-wrap: anywhere;
  font-size: clamp(1.1rem, 3vw, 1.55rem);
  font-weight: 800;
  text-align: center;
}

.match-score strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  min-height: 56px;
  padding: 8px 14px;
  border-radius: 8px;
  background: #111827;
  color: white;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  line-height: 1;
  text-align: center;
}

.match-summary-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0 !important;
}

.match-summary-card {
  min-height: 132px;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}

.match-summary-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.match-summary-card li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  border-top: 1px solid #f1f5f9;
}

.match-summary-card li:first-child {
  border-top: 0;
}

.match-summary-card p {
  color: #475569;
  line-height: 1.35;
}

.points-gained {
  color: #047857;
  font-weight: 900;
  white-space: nowrap;
}

.match-summary-card.exact-hit {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.match-summary-card.surprise-hit {
  border-color: #fde68a;
  background: #fffbeb;
}

.match-summary-card.unique-pick {
  border-color: #bfdbfe;
  background: #eff6ff;
}

.match-insights-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 12px;
  margin: 14px 0 !important;
}

.match-insight-card {
  min-height: 150px;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}

.match-insight-card p {
  color: #64748b;
  line-height: 1.35;
}

.pick-heatmap {
  background: #f8fafc;
}

.pick-bar {
  margin-top: 11px;
}

.pick-bar:first-of-type {
  margin-top: 0;
}

.pick-bar-label {
  display: flex !important;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 5px !important;
  color: #0f172a;
}

.pick-bar-label span {
  overflow-wrap: anywhere;
  font-weight: 800;
}

.pick-bar-label strong {
  color: #475569;
  font-size: 0.85rem;
  white-space: nowrap;
}

.pick-bar-track {
  width: 100%;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.pick-bar-fill {
  display: block;
  min-width: 2px;
  height: 100%;
  border-radius: 999px;
  background: #2563eb;
}

.pick-bar-fill-draw {
  background: #64748b;
}

.pick-bar-fill-away_win {
  background: #dc2626;
}

.scoreline-grid {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px;
}

.scoreline-chip,
.surprise-chip,
.unique-pick-chip {
  border-radius: 8px;
  font-weight: 800;
}

.scoreline-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
}

.scoreline-chip small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  min-height: 22px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 0.78rem;
}

.surprise-list {
  border-color: #fde68a;
  background: #fffbeb;
}

.surprise-chip-list,
.unique-pick-list {
  display: flex !important;
  flex-direction: column;
  gap: 8px;
}

.surprise-chip {
  display: grid;
  grid-template-columns: minmax(92px, 0.8fr) minmax(0, 1.5fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid #fcd34d;
  background: #fff7ed;
  color: #78350f;
}

.surprise-chip span,
.unique-pick-chip span {
  overflow-wrap: anywhere;
  font-weight: 700;
}

.surprise-chip b {
  color: #047857;
  white-space: nowrap;
}

.unique-picks {
  border-color: #bfdbfe;
  background: #eff6ff;
}

.unique-pick-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid #bfdbfe;
  background: #fff;
  color: #1e3a8a;
}

.unique-pick-chip span {
  padding: 3px 8px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  white-space: nowrap;
}

.match-center-table {
  min-width: 920px;
}

.match-center-table tr.exact-hit td {
  background: rgba(220, 252, 231, 0.72);
}

.match-center-table tr.surprise-hit td {
  box-shadow: inset 3px 0 0 #f59e0b;
}

.evolution-section,
.evolution-section * {
  text-align: left;
}

.evolution-section h2,
.evolution-section h3,
.evolution-section p,
.evolution-section div,
.evolution-section article,
.evolution-section label {
  display: block;
  width: auto;
  margin-left: 0;
  margin-right: 0;
}

.evolution-section h2 {
  margin: 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
  color: #111827;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.evolution-section h3 {
  margin: 0 0 12px;
  color: #111827;
  font-size: 1rem;
  line-height: 1.2;
}

.evolution-header {
  display: flex !important;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px !important;
}

.evolution-header p {
  margin-top: 6px;
  color: #64748b;
  font-weight: 700;
  line-height: 1.35;
}

.evolution-controls {
  display: flex !important;
  flex-wrap: wrap;
  align-items: end;
  justify-content: flex-end;
  gap: 8px;
  min-width: min(100%, 390px);
}

.evolution-controls label {
  flex-basis: 100%;
  margin: 0;
  padding: 0;
  color: #334155;
  font-size: 0.85rem;
  font-weight: 800;
}

.evolution-controls select,
.evolution-toggle {
  min-height: 40px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  font: inherit;
}

.evolution-controls select {
  max-width: 220px;
  padding: 0.45rem 0.6rem;
}

.evolution-toggle {
  cursor: pointer;
  padding: 0.45rem 0.75rem;
  font-weight: 900;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.evolution-toggle:hover,
.evolution-toggle.is-active {
  border-color: #1d4ed8;
  background: #1d4ed8;
  color: #fff;
}

.chart-grid {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 16px !important;
}

.chart-card {
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.chart-card[hidden] {
  display: none !important;
}

.chart-scroll {
  display: block !important;
  width: 100%;
  height: 340px;
  min-height: 340px;
  max-height: 340px;
  overflow: hidden;
  position: relative;
}

.chart-scroll canvas {
  display: block !important;
  width: 100% !important;
  height: 320px !important;
  max-height: 320px !important;
}

.stats-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 !important;
}

.stat-card {
  min-height: 150px;
  padding: 15px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.1);
}

.stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: #eff6ff;
  font-size: 1.2rem;
}

.stat-card strong {
  display: block;
  color: #0f172a;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  line-height: 1;
}

.stat-card p {
  margin-top: 8px;
  color: #475569;
  line-height: 1.35;
  font-weight: 800;
}

.leader-badge {
  border-color: #fde68a;
  background: #fffbeb;
}

.phase-ranking {
  margin-top: 18px !important;
}

.phase-tabs {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px !important;
}

.phase-tabs button {
  min-height: 38px;
  padding: 0.45rem 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #fff;
  color: #334155;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.phase-tabs button:hover,
.phase-tabs button.is-active {
  border-color: #111827;
  background: #111827;
  color: #fff;
}

.phase-ranking-panel {
  display: none !important;
}

.phase-ranking-panel.is-active {
  display: block !important;
}

.phase-ranking-table {
  min-width: 760px;
}

.evolution-empty {
  padding: 18px;
  border: 1px dashed #94a3b8;
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.88);
  color: #475569;
  text-align: center !important;
}

.participant-link {
  appearance: none;
  border: 0;
  background: transparent;
  color: #0f766e;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
}

.participant-link:hover,
.participant-link:focus-visible {
  color: #115e59;
  text-decoration: underline;
  outline: none;
}

.race-section,
.race-section * {
  text-align: left;
}

.race-section h2,
.race-section h3,
.race-section p,
.race-section div,
.race-section article,
.race-section section {
  display: block;
  width: auto;
  margin-left: 0;
  margin-right: 0;
}

.race-header {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.38fr);
  align-items: stretch;
  gap: 12px;
  margin-bottom: 14px !important;
}

.race-header h2 {
  margin: 0;
  padding: 0;
  background: transparent;
  color: #0f172a;
  text-shadow: none;
}

.race-header p {
  margin-top: 6px;
  color: #64748b;
  font-weight: 800;
}

.today-champion-card,
.race-summary-card,
.contender-card,
.eliminated-card,
.scenario-card,
.decisive-match {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.today-champion-card {
  padding: 14px;
  border-color: #fde68a;
  background: #fffbeb;
}

.today-champion-card span,
.today-champion-card strong,
.today-champion-card small {
  display: block;
}

.today-champion-card span {
  font-size: 1.35rem;
}

.today-champion-card strong {
  margin-top: 6px;
  color: #0f172a;
}

.today-champion-card small {
  margin-top: 4px;
  color: #92400e;
  font-weight: 800;
}

.race-filter-bar {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 !important;
}

.race-filter {
  min-height: 36px;
  padding: 0.4rem 0.7rem;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #fff;
  color: #334155;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.race-filter:hover,
.race-filter.is-active {
  border-color: #0f766e;
  background: #0f766e;
  color: #fff;
}

.race-summary-grid,
.contender-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0 !important;
}

.race-summary-card {
  min-height: 118px;
  padding: 14px;
  background: #f8fafc;
}

.race-summary-card span,
.race-summary-card strong,
.race-summary-card p {
  display: block;
}

.race-summary-card span {
  margin-bottom: 8px;
  font-size: 1.35rem;
}

.race-summary-card strong {
  color: #0f172a;
  font-size: 2rem;
  line-height: 1;
}

.race-summary-card p {
  margin-top: 7px;
  color: #475569;
  font-weight: 900;
}

.contender-card,
.eliminated-card {
  position: relative;
  min-height: 230px;
  padding: 14px;
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.contender-card:hover,
.eliminated-card:hover {
  transform: translateY(-2px);
}

.contender-card {
  border-color: #bbf7d0;
  background: linear-gradient(180deg, #f0fdf4 0%, #fff 62%);
}

.eliminated-card {
  border-color: #cbd5e1;
  background: #f1f5f9;
  color: #475569;
  filter: saturate(0.72);
}

.alive-chip,
.eliminated-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 900;
}

.alive-chip {
  background: #dcfce7;
  color: #166534;
}

.eliminated-chip {
  background: #e2e8f0;
  color: #475569;
}

.contender-title {
  display: flex !important;
  align-items: center;
  gap: 8px;
  margin-top: 10px !important;
}

.contender-title span {
  font-size: 1.35rem;
}

.contender-card p,
.eliminated-card p {
  margin-top: 8px;
  color: #475569;
  font-weight: 900;
}

.contender-card dl,
.eliminated-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.contender-card dt,
.eliminated-card dt,
.contender-card dd,
.eliminated-card dd {
  margin: 0;
}

.contender-card dl div,
.eliminated-card dl div {
  padding: 9px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.contender-card dt,
.eliminated-card dt {
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 900;
}

.contender-card dd,
.eliminated-card dd {
  margin-top: 3px;
  color: #0f172a;
  font-size: 1.2rem;
  font-weight: 900;
}

.probability-bar {
  width: 100%;
  height: 11px;
  overflow: hidden;
  border-radius: 999px;
  background: #dbeafe;
}

.probability-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #0f766e, #22c55e);
  animation: probabilityGrow 700ms ease-out both;
}

.contender-card small {
  display: block;
  margin-top: 6px;
  color: #334155;
  font-weight: 900;
}

.control-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-top: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 900;
}

.control-controls {
  background: #fef3c7;
  color: #92400e;
}

.control-needs_help {
  background: #ffedd5;
  color: #9a3412;
}

.control-eliminated {
  background: #e2e8f0;
  color: #475569;
}

.control-alive {
  background: #dcfce7;
  color: #166534;
}

.race-detail-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  gap: 12px;
  margin-top: 14px !important;
}

.scenario-feed h3,
.decisive-match-list h3 {
  margin: 0 0 10px;
  color: #0f172a;
}

.scenario-card {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  margin-top: 8px !important;
  padding: 12px;
}

.scenario-card>span {
  font-size: 1.25rem;
}

.scenario-card ul {
  margin: 6px 0 0;
  padding-left: 18px;
  color: #475569;
  font-weight: 800;
}

.decisive-match {
  margin-top: 8px !important;
  padding: 12px;
}

.decisive-match strong,
.decisive-match small {
  display: block;
}

.decisive-match strong {
  color: #0f172a;
}

.decisive-match small {
  margin-top: 4px;
  color: #64748b;
  font-weight: 800;
}

.decisive-picks {
  display: flex !important;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px !important;
}

.decisive-picks span {
  display: inline-flex;
  min-height: 26px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1e3a8a;
  font-size: 0.78rem;
  font-weight: 900;
}

@keyframes probabilityGrow {
  from {
    transform: scaleX(0);
    transform-origin: left;
  }

  to {
    transform: scaleX(1);
    transform-origin: left;
  }
}

.social-zone,
.social-zone * {
  text-align: left;
}

.social-zone h2,
.social-zone h3,
.social-zone p,
.social-zone div,
.social-zone article,
.social-zone section {
  display: block;
  width: auto;
  margin-left: 0;
  margin-right: 0;
}

.social-zone-header {
  display: flex !important;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px !important;
}

.social-zone-header h2 {
  margin: 0;
  padding: 0;
  background: transparent;
  color: #0f172a;
  text-shadow: none;
}

.social-zone-header p {
  margin-top: 4px;
  color: #64748b;
  font-weight: 700;
}

.social-live-note {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #ecfeff;
  color: #155e75;
  font-weight: 900;
  white-space: nowrap;
}

.social-hero-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.5fr);
  gap: 12px;
  margin-bottom: 12px !important;
}

.mvp-card,
.streak-card,
.achievement-card,
.player-card,
.mini-ranking,
.share-card {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.mvp-card {
  min-height: 220px;
  padding: 18px;
  border-color: #fde68a;
  background: linear-gradient(135deg, #fffbeb 0%, #fff 68%);
}

.social-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: #fef3c7;
  font-size: 1.45rem;
}

.mvp-card h3,
.streak-card h3,
.achievement-feed h3,
.mini-ranking h3,
.profile-section h3 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 1rem;
}

.mvp-person {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 10px 0;
  border-top: 1px solid #fde68a;
}

.mvp-person strong,
.mvp-person small {
  display: block;
}

.mvp-person strong span {
  color: #047857;
}

.mvp-person small {
  margin-top: 4px;
  color: #92400e;
  font-weight: 800;
}

.streak-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.streak-card {
  min-height: 160px;
  padding: 14px;
}

.streak-card span {
  display: inline-flex;
  margin-bottom: 8px;
  font-size: 1.5rem;
}

.streak-card strong {
  display: block;
  margin-top: 8px;
  color: #334155;
  line-height: 1.25;
}

.share-card-grid,
.player-card-grid,
.mini-ranking-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0 !important;
}

.share-card {
  min-height: 132px;
  padding: 14px;
  background: #f8fafc;
}

.share-card span {
  display: block;
  margin-bottom: 10px;
  font-size: 1.45rem;
}

.share-card strong,
.share-card small {
  display: block;
}

.share-card strong {
  color: #0f172a;
  line-height: 1.25;
}

.share-card small {
  margin-top: 8px;
  color: #64748b;
  font-weight: 800;
}

.achievement-feed {
  margin: 14px 0 !important;
}

.achievement-card {
  display: flex !important;
  align-items: center;
  gap: 12px;
  margin-top: 8px !important;
  padding: 11px 12px;
}

.achievement-card.is-new {
  animation: achievementPulse 1400ms ease-out 1;
}

.achievement-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: #ecfdf5;
  font-size: 1.35rem;
}

.achievement-card strong,
.achievement-card small {
  display: block;
}

.achievement-card small {
  margin-top: 3px;
  color: #64748b;
  font-weight: 800;
}

.player-card {
  display: flex !important;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.player-card:hover,
.player-card:focus-visible {
  border-color: #0f766e;
  box-shadow: 0 12px 26px rgba(15, 118, 110, 0.16);
  transform: translateY(-2px);
  outline: none;
}

.player-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: #0f766e;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 900;
  text-transform: uppercase;
}

.player-card h3 {
  margin: 0;
  color: #0f172a;
  font-size: 1rem;
}

.player-card p {
  margin-top: 4px;
  color: #475569;
  font-size: 0.9rem;
  font-weight: 800;
}

.badge-row {
  display: flex !important;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px !important;
}

.badge-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 28px;
  padding: 4px 8px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #eff6ff;
  color: #1e3a8a;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.15;
}

.badge-chip.is-muted {
  border-color: #e2e8f0;
  background: #f8fafc;
  color: #64748b;
}

.mini-ranking {
  padding: 14px;
}

.mini-ranking h3 {
  display: flex !important;
  align-items: center;
  gap: 8px;
}

.mini-ranking ol {
  margin: 0;
  padding-left: 22px;
}

.mini-ranking li {
  padding: 7px 0;
  border-top: 1px solid #f1f5f9;
}

.mini-ranking li:first-child {
  border-top: 0;
}

.mini-ranking li strong {
  float: right;
  color: #334155;
  font-size: 0.88rem;
}

.player-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
}

.player-modal.is-open {
  display: block;
}

.player-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.62);
}

.player-modal-panel {
  position: relative;
  width: min(94vw, 860px);
  max-height: min(90vh, 820px);
  margin: 5vh auto;
  overflow: auto;
  padding: 22px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.32);
}

.player-modal-open {
  overflow: hidden;
}

.player-modal-close {
  position: sticky;
  top: 0;
  float: right;
  width: 36px;
  height: 36px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #fff;
  color: #0f172a;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}

.profile-header {
  display: flex !important;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px !important;
}

.profile-header h2 {
  margin: 0;
  padding: 0;
  background: transparent;
  color: #0f172a;
  text-shadow: none;
}

.profile-header p {
  margin-top: 4px;
  color: #475569;
  font-weight: 800;
}

.profile-stat-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px !important;
}

.profile-stat-grid article {
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.profile-stat-grid strong,
.profile-stat-grid span {
  display: block;
}

.profile-stat-grid strong {
  color: #0f172a;
  font-size: 1.25rem;
}

.profile-stat-grid span {
  margin-top: 4px;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 900;
}

.profile-chart {
  min-height: 260px;
  margin: 14px 0 !important;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}

.profile-chart canvas {
  width: 100% !important;
  min-height: 220px;
}

.profile-section {
  margin-top: 14px !important;
}

.recent-hit-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.recent-hit-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 12px;
  padding: 9px 0;
  border-top: 1px solid #e2e8f0;
}

.recent-hit-list strong,
.recent-hit-list span,
.recent-hit-list small {
  display: block;
}

.recent-hit-list small {
  grid-column: 1 / -1;
  color: #64748b;
  font-weight: 800;
}

@keyframes achievementPulse {
  0% {
    border-color: #f59e0b;
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.35);
  }

  100% {
    border-color: #e2e8f0;
    box-shadow: 0 0 0 12px rgba(245, 158, 11, 0);
  }
}

@media (max-width: 900px) {
  .match-center-header {
    display: block !important;
  }

  .match-center .match-selector {
    width: 100%;
    margin-top: 10px;
  }

  .match-score {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .match-score strong {
    justify-self: center;
  }

  .match-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .match-insights-grid {
    grid-template-columns: 1fr;
  }

  .surprise-chip {
    grid-template-columns: 1fr;
  }

  .evolution-header {
    display: block !important;
  }

  .evolution-controls {
    justify-content: flex-start;
    margin-top: 12px !important;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .social-zone-header,
  .social-hero-grid {
    display: block !important;
  }

  .social-live-note {
    margin-top: 10px;
  }

  .streak-grid,
  .share-card-grid,
  .player-card-grid,
  .mini-ranking-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mvp-card {
    margin-bottom: 12px;
  }

  .profile-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .race-header,
  .race-detail-grid {
    grid-template-columns: 1fr;
  }

  .race-summary-grid,
  .contender-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .match-summary-grid {
    grid-template-columns: 1fr;
  }

  .pick-bar-label,
  .unique-pick-chip {
    display: block !important;
  }

  .pick-bar-label strong,
  .unique-pick-chip span {
    display: inline-block;
    margin-top: 4px;
  }

  .streak-grid,
  .share-card-grid,
  .player-card-grid,
  .mini-ranking-grid,
  .profile-stat-grid {
    grid-template-columns: 1fr;
  }

  .player-modal-panel {
    width: 100%;
    max-height: 100vh;
    min-height: 100vh;
    margin: 0;
    border-radius: 0;
  }

  .recent-hit-list li {
    grid-template-columns: 1fr;
  }

  .race-summary-grid,
  .contender-grid {
    grid-template-columns: 1fr;
  }

  .race-filter {
    flex: 1 1 auto;
  }

  .evolution-controls select,
  .evolution-toggle {
    width: 100%;
    max-width: none;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }
}

.admin-page {
  min-height: 100vh;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(16, 24, 40, 0.72), rgba(42, 61, 89, 0.42)),
    url("../Imgs/Fundi.webp") no-repeat center center fixed;
  background-size: cover;
  color: #172033;
  text-align: left;
}

.admin-page h1,
.admin-page h2,
.admin-page h3,
.admin-page p,
.admin-page label,
.admin-page div,
.admin-page form {
  display: block;
  width: auto;
  margin: 0;
  text-align: left;
}

.admin-shell {
  width: min(100%, 1240px);
  margin: 0 auto;
}

.admin-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 24px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 60px rgba(15, 23, 42, 0.25);
}

.admin-hero h1 {
  display: block;
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
  color: #0f172a;
  font-size: clamp(2rem, 5vw, 3.3rem);
  line-height: 1.02;
}

.admin-eyebrow {
  margin-bottom: 8px !important;
  color: #2563eb;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.admin-subtitle {
  margin-top: 12px !important;
  max-width: 760px;
  color: #475569;
  line-height: 1.45;
}

.admin-card {
  margin: 16px 0;
  padding: 20px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 42px rgba(15, 23, 42, 0.18);
}

.admin-grid {
  display: grid;
  gap: 14px;
}

.admin-summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-stat-label {
  display: block;
  color: #64748b;
  font-size: 0.85rem;
  font-weight: 700;
}

.admin-stat {
  display: block;
  margin-top: 8px;
  color: #0f172a;
  font-size: 2.25rem;
}

.admin-stat-small {
  font-size: 1.25rem;
}

.admin-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.admin-section-heading h2,
.admin-phase-section h3 {
  display: block;
  width: auto;
  margin: 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
  color: #0f172a;
  font-size: 1.35rem;
}

.admin-section-heading p {
  margin-top: 6px !important;
  color: #64748b;
  line-height: 1.4;
}

.admin-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 190px 220px;
  gap: 10px;
  margin-bottom: 18px;
}

.admin-search,
.admin-filter,
.match-admin-card input,
.rules-grid input,
.admin-csv {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  font: inherit;
}

.admin-search,
.admin-filter,
.match-admin-card input {
  min-height: 40px;
  padding: 8px 10px;
}

.admin-phase-section {
  margin-top: 22px;
}

.admin-phase-section h3 {
  padding-bottom: 10px;
  border-bottom: 1px solid #e2e8f0;
}

.admin-match-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.match-admin-card {
  display: block;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
}

.match-admin-card[hidden],
.admin-phase-section[hidden] {
  display: none !important;
}

.match-admin-topline {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px !important;
}

.match-admin-key {
  font-weight: 800;
  color: #0f172a;
}

.match-admin-phase {
  margin: -4px 0 10px !important;
  color: #64748b;
  font-size: 0.85rem;
  font-weight: 800;
}

.admin-status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.admin-status-pendiente {
  background: rgba(148, 163, 184, 0.18);
  color: #64748b;
}

.admin-status-listo {
  background: rgba(59, 130, 246, 0.16);
  color: #1d4ed8;
}

.admin-status-finalizado {
  background: rgba(34, 197, 94, 0.16);
  color: #15803d;
}

.match-admin-teams {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.match-admin-card label span {
  display: block;
  margin-bottom: 4px;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 800;
}

.match-admin-card strong {
  display: block;
  min-height: 40px;
  padding: 9px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  line-height: 1.25;
}

.admin-team-readonly {
  display: flex !important;
  align-items: center;
  gap: 8px;
}

.admin-team-readonly .match-day-flag {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  object-fit: cover;
}

.team-placeholder {
  color: #94a3b8;
  font-weight: 800;
}

.match-admin-score {
  display: grid !important;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: end;
  margin: 12px 0 !important;
}

.score-input {
  text-align: center;
  font-weight: 800;
}

.score-divider {
  padding-bottom: 10px;
  font-weight: 800;
  color: #64748b;
}

.match-admin-winner {
  margin-bottom: 12px !important;
}

.admin-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 14px;
  border: 0;
  border-radius: 8px;
  background: #2563eb;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.admin-button:hover {
  background: #1d4ed8;
}

.admin-button-secondary {
  background: #0f172a;
}

.admin-button-secondary:hover {
  background: #334155;
}

.admin-button-small {
  width: 100%;
  min-height: 38px;
}

.admin-alert {
  margin: 14px 0;
  padding: 12px 14px;
  border-radius: 10px;
  font-weight: 800;
}

.admin-alert-success {
  background: #dcfce7;
  color: #166534;
}

.admin-alert-error {
  background: #fee2e2;
  color: #991b1b;
}

.admin-details summary {
  cursor: pointer;
  color: #0f172a;
  font-size: 1.2rem;
  font-weight: 900;
}

.admin-warning {
  margin: 10px 0 !important;
  color: #b45309;
  font-weight: 800;
}

.admin-csv {
  min-height: 260px;
  padding: 12px;
  margin-bottom: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9rem;
}

.rules-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px !important;
}

.rules-grid label {
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  color: #334155;
  font-size: 0.88rem;
  font-weight: 800;
}

.rules-grid input {
  margin-top: 8px;
  padding: 8px;
  text-align: center;
  font-weight: 800;
}


.btn {
  width: auto;
  height: 30px;
  position: fixed;
  top: 25%;
  left: 0%;
  margin-left: 20px;
  margin-right: 20px;
  display: inline-block;
  border-radius: 5px;
  -webkit-transition-duration: 0.4s;
  /* Safari */
  transition-duration: 0.4s;
  cursor: pointer;
}

.btn1 {
  width: auto;
  height: 30px;
  padding: 5px;
  display: inline-block;
  position: fixed;
  top: 25%;
  left: 80px;
  margin-left: 20px;
  margin-right: 20px;
  border-radius: 5px;
  -webkit-transition-duration: 0.4s;
  /* Safari */
  transition-duration: 0.4s;
  cursor: pointer;
}

.btn2 {
  width: auto;
  padding: 5px;
  border-radius: 5px;
  -webkit-transition-duration: 0.4s;
  /* Safari */
  transition-duration: 0.4s;
  cursor: pointer;
}

.btn1:hover {
  background-color: #24D817;
  color: white;
}

.btn2:hover {
  background-color: #24D817;
  color: white;
}

form {
  font-weight: bold;
}

#PollaForm {
  max-width: 1280px;
  margin: 0 auto;
}

.submit-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  font-family: Arial, Helvetica, sans-serif;
  box-sizing: border-box;
}

.submit-page h1 {
  display: none;
}

.submit-page .group {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  width: min(100%, 680px);
  min-height: 0;
  margin: 10px auto;
  padding: 18px 20px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
  color: #1f2933;
  font-size: 1.1rem;
  line-height: 1.45;
  text-align: left;
}

.submit-status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #15803d;
  color: #fff;
  font-weight: 700;
  line-height: 1;
}

.whatsapp-submit-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: #25D366;
  color: white;
  font-size: 1rem;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
}

.whatsapp-submit-card a:hover,
.whatsapp-submit-card a:focus {
  background: #1faa52;
  outline: none;
}

@media (max-width: 700px) {

  html,
  body {
    background-attachment: scroll;
  }

  body {
    padding: 0.5rem 0.5rem 1rem;
  }

  .submit-page {
    padding: 16px;
  }

  .submit-page .group {
    grid-template-columns: auto 1fr;
    padding: 16px;
    font-size: 1rem;
  }

  .group {
    width: 100%;
    margin: 0.75rem auto;
    padding: 12px 10px;
    overflow-x: hidden;
  }

  .best-thirds {
    width: 100%;
    margin: 0.75rem auto;
    padding: 12px 10px;
  }

  .fround {
    padding: 12px 10px;
  }

  .final-podium {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    padding: 1rem;
  }

  .podium-first,
  .podium-second {
    order: initial;
    min-height: 150px;
  }

  .podium-third {
    order: initial;
    min-height: 120px;
  }

  .namen {
    width: 100%;
    padding: 12px 10px;
  }

  .minom {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .minomb {
    width: 100%;
    max-width: 220px;
    margin: 0.5rem auto;
  }

  input[type="text"],
  input[type="email"] {
    width: 100%;
  }

  input[type="number"] {
    width: 5.1rem;
  }

  .fround p {
    display: grid;
    grid-template-columns: 1.45rem minmax(0, 1fr) 28px 3rem auto 3rem 28px minmax(0, 1fr);
    grid-auto-rows: auto;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  }

  .fround p:last-of-type {
    border-bottom: none;
  }

  .fround p>label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 0;
    margin: 0;
    text-align: center;
  }

  .fround p label:nth-of-type(2),
  .fround p label:nth-of-type(3),
  .fround p label:nth-of-type(7),
  .fround p label:nth-of-type(8) {
    height: auto;
    min-height: 2.4rem;
  }

  .match-info-wrapper {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
  }

  .fround p>label:nth-of-type(2) {
    grid-column: 2;
    justify-content: flex-start;
    text-align: left;
  }

  .fround p>label:nth-of-type(3) {
    grid-column: 3;
  }

  .fround p>label:nth-of-type(4) {
    grid-column: 4;
  }

  .fround p>label:nth-of-type(5) {
    grid-column: 5;
  }

  .fround p>label:nth-of-type(6) {
    grid-column: 6;
  }

  .fround p>label:nth-of-type(7) {
    grid-column: 7;
  }

  .fround p>label:nth-of-type(8) {
    grid-column: 8;
    justify-content: flex-end;
    text-align: right;
  }

  @media (max-width: 560px) {
    .fround input[type="number"] {
      width: 5.1rem;
      min-height: 2.45rem;
      font-size: 1rem;
      padding: 0.25rem 0.35rem;
    }

    .fround p {
      grid-template-columns: 1.45rem 28px minmax(0, 1fr) 5.1rem;
      justify-content: stretch;
      row-gap: 0.45rem;
    }

    .match-info-wrapper {
      grid-column: 1;
      grid-row: 1 / 3;
      justify-self: center;
      align-self: center;
      margin-right: 0;
    }

    .fround p>label:nth-of-type(2) {
      grid-column: 3;
      grid-row: 1;
      justify-content: flex-start;
      text-align: left;
    }

    .fround p>label:nth-of-type(3) {
      grid-column: 2;
      grid-row: 1;
      justify-self: center;
    }

    .fround p>label:nth-of-type(4) {
      grid-column: 4;
      grid-row: 1;
      justify-self: center;
      margin-bottom: 0.18rem;
    }

    .fround p>label:nth-of-type(5) {
      display: none;
    }

    .fround p>label:nth-of-type(6) {
      grid-column: 4;
      grid-row: 2;
      justify-self: center;
      margin-top: 0.18rem;
    }

    .fround p>label:nth-of-type(7) {
      grid-column: 2;
      grid-row: 2;
      justify-self: center;
    }

    .fround p>label:nth-of-type(8) {
      grid-column: 3;
      grid-row: 2;
      justify-content: flex-start;
      text-align: left;
    }

  }

  .btn,
  .btn1,
  .btn2 {
    position: static;
    display: block;
    width: min(100%, 220px);
    margin: 0.75rem auto;
  }

  div {
    display: block;
    width: 100%;
    margin: 0 auto;
  }

  .dashboard-panel {
    padding: 0.75rem;
  }

  .dashboard-empty-wrap {
    margin-top: 1rem;
    margin-bottom: 7rem;
    padding: 0 0.5rem;
  }

  .dashboard-empty-meta {
    grid-template-columns: 1fr;
  }

  .dashboard-status {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .dashboard-status h2 {
    font-size: 1.15rem;
  }

  table.results {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  table.results tbody {
    display: table;
    min-width: 100%;
  }

  table.results tr {
    display: table-row;
  }

  table.results th,
  table.results td {
    display: table-cell;
  }

  table.results th,
  table.results td {
    padding: 4px;
  }

  table.results .team-cell {
    display: inline-flex;
    align-items: center;
  }

  table.results .flag-cell {
    display: inline-block !important;
    width: 30px !important;
    height: 20px !important;
    flex: 0 0 auto;
    object-fit: contain;
  }

  .dashboard-update-button {
    min-height: 42px;
  }

  .dashboard-toast {
    right: 10px;
    bottom: 10px;
    max-width: calc(100vw - 20px);
  }

  .match-selector-label {
    display: block;
  }

  .match-selector {
    width: 100%;
  }

  .responsive-table-wrap {
    overflow-x: auto;
    overflow-y: hidden;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
  }

  .dashboard-ranking-table,
  .dashboard-ranking-table tbody,
  .dashboard-ranking-table tr,
  .dashboard-ranking-table td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .dashboard-ranking-table {
    border: 0;
    background: transparent;
  }

  .dashboard-ranking-table tr:first-child {
    display: none;
  }

  .dashboard-ranking-table tr {
    margin: 0 0 0.75rem;
    padding: 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: white;
    text-align: left;
  }

  .dashboard-ranking-table td {
    display: grid;
    grid-template-columns: 44% 56%;
    gap: 0.5rem;
    padding: 0.35rem 0;
    border-bottom: 1px solid #e5e7eb;
    text-align: right;
  }

  .dashboard-ranking-table td:last-child {
    border-bottom: 0;
  }

  .dashboard-ranking-table td::before {
    content: attr(data-label);
    font-weight: bold;
    text-align: left;
  }

  .admin-page {
    padding: 12px;
  }

  .admin-hero,
  .admin-section-heading {
    display: block;
  }

  .admin-hero .admin-button,
  .admin-section-heading .admin-button {
    width: 100%;
    margin-top: 14px;
  }

  .admin-summary-grid,
  .admin-toolbar,
  .admin-match-grid,
  .match-admin-teams,
  .rules-grid {
    grid-template-columns: 1fr;
  }

  .admin-card {
    padding: 14px;
  }

  .match-admin-score {
    grid-template-columns: 1fr auto 1fr;
  }
}

.mobile-shell {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: rgba(34, 197, 94, 0.22);
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.mobile-shell .dashboard-panel,
.mobile-shell .dashboard-status,
.mobile-shell .match-day-mode,
.mobile-shell .compact-ranking,
.mobile-shell .share-zone,
.mobile-shell .race-section,
.mobile-shell .social-zone,
.mobile-shell .evolution-section,
.mobile-shell .match-center {
  max-width: min(1100px, 100%);
  overflow-x: hidden;
}

.dashboard-top-actions {
  position: fixed;
  top: max(10px, env(safe-area-inset-top));
  right: 10px;
  z-index: 70;
  display: flex !important;
  gap: 8px;
  width: auto;
  margin: 0;
}

.view-toggle,
.compact-toggle,
.share-card-action button,
.pwa-install-banner button {
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  background: #0f172a;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.view-toggle {
  padding: 8px 11px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.22);
}

.section-title-row {
  display: flex !important;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px !important;
  text-align: left;
}

.section-title-row h2,
.section-title-row p,
.section-title-row div {
  display: block;
  width: auto;
  margin: 0;
  text-align: left;
}

.section-title-row h2 {
  padding: 0;
  background: transparent;
  border-radius: 0;
  color: #0f172a;
  font-size: clamp(1.55rem, 5vw, 2.25rem);
}

.section-title-row p {
  margin-top: 4px;
  color: #64748b;
  font-weight: 800;
}

.section-kicker,
.live-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

.section-kicker {
  margin-bottom: 7px;
  background: #dcfce7;
  color: #166534;
}

.live-chip {
  background: #fef3c7;
  color: #92400e;
  white-space: nowrap;
}

.compact-toggle {
  flex: 0 0 auto;
  padding: 8px 12px;
  background: #2563eb;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: max(10px, env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 80;
  display: none;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  width: calc(100vw - 24px);
  max-width: 520px;
  margin: 0 auto;
  padding: 7px;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.94);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.34);
  backdrop-filter: blur(14px);
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.bottom-nav::-webkit-scrollbar {
  display: none;
}

.bottom-nav a {
  display: flex;
  min-width: 54px;
  min-height: 48px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border-radius: 10px;
  color: #e2e8f0;
  font-size: 0.72rem;
  text-align: center;
  text-decoration: none;
}

.bottom-nav a:active,
.bottom-nav a:focus-visible {
  background: rgba(34, 197, 94, 0.18);
  color: #fff;
  outline: none;
}

.bottom-nav span,
.bottom-nav strong {
  display: block;
  line-height: 1.1;
}

.pwa-install-banner {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: calc(82px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 10px;
  width: calc(100vw - 24px);
  max-width: 560px;
  margin: 0 auto;
  padding: 12px;
  overflow: hidden;
  border: 1px solid rgba(187, 247, 208, 0.8);
  border-radius: 14px;
  background: rgba(240, 253, 244, 0.96);
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.24);
  text-align: left;
}

.pwa-install-banner[hidden] {
  display: none;
}

.pwa-install-banner div,
.pwa-install-banner strong,
.pwa-install-banner span {
  display: block;
  width: auto;
  margin: 0;
  text-align: left;
}

.pwa-install-banner span {
  margin-top: 3px;
  color: #166534;
  font-size: 0.86rem;
  font-weight: 800;
}

.pwa-install-banner button {
  padding: 8px 11px;
  background: #16a34a;
}

.pwa-install-banner .pwa-dismiss {
  width: 34px;
  padding: 0;
  background: #e2e8f0;
  color: #334155;
}

.ranking-podium-section {
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 42%, #f1f5f9 100%);
}

.ranking-podium-header {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-bottom: 14px;
  text-align: center;
}

.ranking-podium-header h2 {
  margin: 0;
  color: #0f172a;
}

.ranking-podium-header .compact-toggle {
  position: absolute;
  top: 0;
  right: 0;
}

.ranking-podium {
  display: grid !important;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.14fr) minmax(0, 0.92fr);
  align-items: end;
  gap: 10px;
  max-width: 760px;
  margin: 0 auto 16px;
}

.podium-card {
  position: relative;
  display: grid !important;
  justify-items: center;
  gap: 7px;
  min-height: 154px;
  padding: 16px 10px 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.12);
  text-align: center;
}

.podium-first {
  min-height: 188px;
  padding-top: 22px;
  background: linear-gradient(160deg, #fff7cc 0%, #fbbf24 54%, #b45309 100%);
  color: #431407;
}

.podium-second {
  background: linear-gradient(160deg, #f8fafc 0%, #cbd5e1 62%, #64748b 100%);
}

.podium-third {
  background: linear-gradient(160deg, #fff7ed 0%, #fb923c 62%, #9a3412 100%);
  color: #431407;
}

.podium-avatar,
.podium-rank-badge,
.ranking-position {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
}

.podium-avatar {
  width: 58px;
  height: 58px;
  background: rgba(255, 255, 255, 0.82);
  color: #0f172a;
  font-size: 1.18rem;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.86), 0 10px 22px rgba(15, 23, 42, 0.16);
}

.podium-first .podium-avatar {
  width: 72px;
  height: 72px;
  font-size: 1.35rem;
}

.podium-rank-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  background: rgba(15, 23, 42, 0.88);
  color: #fff;
  font-size: 0.84rem;
}

.podium-card .participant-link {
  max-width: 100%;
  overflow-wrap: anywhere;
  text-align: center;
  color: inherit;
}

.podium-card strong,
.ranking-list-row>strong {
  white-space: nowrap;
}

.ranking-list-modern {
  display: grid !important;
  gap: 10px;
  max-width: 760px;
  margin: 0 auto;
}

.ranking-list-row {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
  text-align: left;
}

.ranking-position {
  width: 38px;
  height: 38px;
  background: #0f766e;
  color: white;
}

.ranking-list-player {
  min-width: 0;
}

.ranking-progress {
  display: block;
  height: 6px;
  margin-top: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.ranking-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #14b8a6, #f59e0b);
}

.ranking-chevron {
  color: #94a3b8;
  font-size: 1.5rem;
  line-height: 1;
}

.match-day-mode,
.compact-ranking,
.share-zone {
  text-align: left;
}

.match-day-score {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin: 12px 0 !important;
  padding: 16px;
  border-radius: 10px;
  background: #0f172a;
  color: white;
}

.match-day-score span,
.match-day-score strong {
  display: block;
  width: auto;
  margin: 0;
  text-align: center;
}

.match-day-score span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  overflow-wrap: anywhere;
  font-weight: 900;
}

.match-day-score span b {
  margin: 0;
}

.match-day-team-away {
  flex-direction: row;
}

.match-day-flag {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.18), 0 6px 16px rgba(0, 0, 0, 0.2);
}

.match-day-score strong {
  min-width: 86px;
  padding: 9px 12px;
  border-radius: 8px;
  background: #22c55e;
  color: #052e16;
  font-size: 1.7rem;
  line-height: 1;
}

.match-day-grid {
  display: grid !important;
  grid-template-columns: minmax(170px, 0.8fr) minmax(260px, 1.4fr) minmax(210px, 1fr);
  gap: 12px;
}

.match-day-grid article,
.match-day-columns section {
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(248, 250, 252, 0.96), rgba(226, 232, 240, 0.7));
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.match-day-grid article:hover,
.match-day-columns section:hover {
  transform: translateY(-1px);
  border-color: rgba(20, 184, 166, 0.36);
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.12);
}

.match-day-grid article span,
.match-day-grid article strong,
.match-day-grid article small {
  display: block;
  width: auto;
  margin: 0;
}

.match-day-grid article span {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 900;
}

.match-day-grid article strong {
  margin-top: 5px;
  color: #0f172a;
  font-size: 1.35rem;
  line-height: 1.1;
}

.match-day-grid article small {
  margin-top: 4px;
  color: #475569;
  font-weight: 800;
}

.pick-distribution-card,
.top-score-card {
  min-height: 150px;
}

.pick-pie-wrap {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  margin-top: 12px;
}

.pick-pie {
  width: 128px;
  aspect-ratio: 1;
  margin: 0;
  border-radius: 50%;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.14);
  animation: pickPieIn 520ms ease both;
}

.pick-pie-list {
  display: grid;
  gap: 10px;
}

.pick-pie-row {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  color: #0f172a;
  font-weight: 900;
}

.pick-pie-row i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #14b8a6;
}

.pick-pie-row[data-pick-outcome="draw"] i {
  background: #38bdf8;
}

.pick-pie-row[data-pick-outcome="away_win"] i {
  background: #f59e0b;
}

.pick-pie-row span,
.pick-pie-row strong {
  width: auto;
  margin: 0;
}

.pick-pie-row .match-day-flag,
.top-score-line .match-day-flag {
  width: 22px;
  height: 22px;
  flex-basis: 22px;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.12);
}

.pick-pie-row span {
  overflow-wrap: anywhere;
  color: #0f172a;
}

.pick-pie-row strong {
  justify-self: end;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  color: #0f766e;
  font-size: 0.82rem;
  white-space: nowrap;
}

.top-score-card strong {
  font-size: 2.15rem;
  letter-spacing: 0;
}

.top-score-card small {
  font-size: 0.9rem;
}

.top-score-line {
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 10px !important;
}

.top-score-line span {
  width: auto;
  margin: 0;
  color: #0f172a;
  font-size: inherit;
  line-height: 1;
}

@keyframes pickPieIn {
  from {
    opacity: 0.35;
    transform: scale(0.92) rotate(-14deg);
  }
}

.match-day-columns {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px !important;
}

.match-day-columns h3 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 1rem;
  line-height: 1.2;
  text-align: left;
}

.match-day-columns ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.match-day-columns li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 0;
  border-top: 1px solid #e2e8f0;
  font-weight: 900;
}

.match-day-columns li:first-child {
  border-top: 0;
}

.match-day-columns li strong {
  color: #047857;
  white-space: nowrap;
}

.match-day-bonus {
  margin-top: 10px !important;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fffbeb;
  color: #92400e;
  font-weight: 900;
}

.share-card-action {
  min-height: 168px;
  background:
    linear-gradient(145deg, rgba(15, 23, 42, 0.94), rgba(15, 118, 110, 0.9)),
    url("../Imgs/WC26_Logo.avif") no-repeat right 12px bottom 10px / 54px auto;
  color: #fff;
}

.share-card-action button {
  margin-bottom: 12px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.16);
}

.share-card-action strong,
.share-card-action small {
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.22);
}

.share-card-action.is-highlighted {
  animation: sharePulse 1200ms ease-out 1;
}

@keyframes sharePulse {
  0% {
    transform: scale(1);
  }

  35% {
    transform: scale(1.02);
    box-shadow: 0 18px 42px rgba(34, 197, 94, 0.32);
  }

  100% {
    transform: scale(1);
  }
}

.compact-mode .ranking-timeline-section,
.compact-mode .evolution-section .stats-grid,
.compact-mode .evolution-section .phase-ranking,
.compact-mode .social-zone .player-card-grid,
.compact-mode .social-zone .mini-ranking-grid,
.compact-mode .race-detail-grid,
.compact-mode .general-ranking-table {
  display: none !important;
}

.compact-mode .dashboard-panel {
  margin-block: 0.65rem;
}

.dark-mode {
  color: #e5e7eb;
}

.dark-mode h1,
.dark-mode h2,
.dark-mode .dashboard-panel,
.dark-mode .dashboard-status,
.dark-mode .dashboard-empty-card,
.dark-mode .last-update-card,
.dark-mode .match-card,
.dark-mode .match-summary-card,
.dark-mode .match-insight-card,
.dark-mode .chart-card,
.dark-mode .stat-card,
.dark-mode .today-champion-card,
.dark-mode .race-summary-card,
.dark-mode .contender-card,
.dark-mode .eliminated-card,
.dark-mode .scenario-card,
.dark-mode .decisive-match,
.dark-mode .mvp-card,
.dark-mode .streak-card,
.dark-mode .achievement-card,
.dark-mode .player-card,
.dark-mode .mini-ranking,
.dark-mode .share-card:not(.share-card-action),
.dark-mode .ranking-podium-section,
.dark-mode .ranking-list-row,
.dark-mode .match-day-grid article,
.dark-mode .match-day-columns section {
  border-color: rgba(148, 163, 184, 0.28);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.9));
  color: #e5e7eb;
}

.dark-mode h1,
.dark-mode h2,
.dark-mode h3,
.dark-mode strong,
.dark-mode .section-title-row h2,
.dark-mode .match-center h2,
.dark-mode .match-center h3,
.dark-mode .evolution-section h2,
.dark-mode .evolution-section h3,
.dark-mode .race-header h2,
.dark-mode .social-zone-header h2,
.dark-mode .ranking-podium-header h2,
.dark-mode .ranking-list-row>strong,
.dark-mode .match-day-grid article strong {
  color: #f8fafc;
}

.dark-mode p,
.dark-mode small,
.dark-mode .dashboard-status-time,
.dark-mode .refresh-state,
.dark-mode .dashboard-empty-description,
.dark-mode .section-title-row p,
.dark-mode .match-center-header p,
.dark-mode .evolution-header p,
.dark-mode .race-header p,
.dark-mode .social-zone-header p,
.dark-mode .match-day-grid article small {
  color: #cbd5e1;
}

.dark-mode .pick-pie-row,
.dark-mode .pick-pie-row span {
  color: #f8fafc;
}

.dark-mode .pick-pie-row strong {
  background: rgba(248, 250, 252, 0.1);
  color: #5eead4;
}

.dark-mode .last-update-card span,
.dark-mode .last-update-list li,
.dark-mode .match-summary-card li span {
  color: #f8fafc;
}

.dark-mode .last-update-list strong,
.dark-mode .points-gained {
  color: #86efac;
}

.dark-mode .pick-pie {
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

.dark-mode table.results tr:nth-child(even),
.dark-mode .dashboard-ranking-table tr,
.dark-mode .scoreline-chip,
.dark-mode .unique-pick-chip,
.dark-mode .badge-chip,
.dark-mode .evolution-empty,
.dark-mode .match-center-empty {
  background: rgba(30, 41, 59, 0.96);
  color: #e5e7eb;
}

.dark-mode .dashboard-empty-kicker {
  color: #86efac;
}

.dark-mode .dashboard-empty-icon {
  border-color: rgba(134, 239, 172, 0.28);
  background: linear-gradient(135deg, rgba(20, 83, 45, 0.86), rgba(30, 64, 175, 0.72));
}

.dark-mode .dashboard-empty-meta div {
  border-color: rgba(148, 163, 184, 0.26);
  background: rgba(30, 41, 59, 0.88);
}

.dark-mode .dashboard-empty-meta dt {
  color: #94a3b8;
}

.dark-mode .dashboard-empty-meta dd {
  color: #f8fafc;
}

.dark-mode .participant-link {
  color: #5eead4;
}

@media (min-width: 901px) {
  .bottom-nav {
    top: auto;
    bottom: 14px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: calc(100vw - 24px);
    max-width: 420px;
    opacity: 0.92;
  }

  .mobile-shell:hover .bottom-nav,
  .bottom-nav:focus-within {
    display: grid;
  }
}

@media (max-width: 900px) {
  body.mobile-shell {
    padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px));
  }

  .bottom-nav {
    display: grid;
  }

  .dashboard-top-actions {
    top: auto;
    bottom: calc(82px + env(safe-area-inset-bottom, 0px));
  }

  .ranking-podium {
    max-width: 100%;
  }

  .match-day-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .share-zone .share-card-grid {
    grid-template-columns: 1fr;
  }

  .chart-scroll {
    min-height: 300px;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 560px) {

  .section-title-row,
  .ranking-podium-header,
  .pwa-install-banner {
    align-items: stretch;
  }

  .section-title-row,
  .ranking-podium-header {
    display: block !important;
  }

  .compact-toggle {
    width: 100%;
    margin-top: 10px;
  }

  .ranking-podium-header .compact-toggle {
    position: static;
  }

  .match-day-grid,
  .match-day-columns {
    grid-template-columns: 1fr;
  }

  .pick-pie-wrap {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .pick-pie-list {
    width: 100%;
  }

  .ranking-podium {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .podium-card {
    min-height: 136px;
    padding: 13px 7px 11px;
    border-radius: 14px;
  }

  .podium-first {
    min-height: 158px;
  }

  .podium-avatar {
    width: 48px;
    height: 48px;
  }

  .podium-first .podium-avatar {
    width: 58px;
    height: 58px;
  }

  .podium-rank-badge {
    top: 7px;
    right: 7px;
    min-width: 28px;
    height: 28px;
    font-size: 0.76rem;
  }

  .ranking-list-row {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    padding: 10px;
  }

  .match-day-score {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 8px;
    padding: 12px 10px;
  }

  .match-day-score .match-day-team {
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    line-height: 1.1;
  }

  .match-day-score .match-day-team b {
    order: 2;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .match-day-score .match-day-team .match-day-flag {
    order: 1;
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }

  .match-day-score strong {
    min-width: 72px;
    padding: 8px 10px;
    font-size: 1.55rem;
  }

  .pwa-install-banner {
    flex-wrap: wrap;
  }

  .pwa-install-banner div {
    flex: 1 1 100%;
  }

  .pwa-install-banner button:not(.pwa-dismiss) {
    flex: 1 1 auto;
  }

  .general-ranking-table,
  .general-ranking-table tbody,
  .general-ranking-table tr,
  .general-ranking-table td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .general-ranking-table tr:first-child {
    display: none;
  }

  .general-ranking-table tr {
    margin: 0 0 0.75rem;
    padding: 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: white;
    text-align: left;
  }

  .general-ranking-table td {
    display: grid;
    grid-template-columns: 42% 58%;
    gap: 0.5rem;
    padding: 0.35rem 0;
    border-bottom: 1px solid #e5e7eb;
    text-align: right;
  }

  .general-ranking-table td::before {
    content: attr(data-label);
    font-weight: bold;
    text-align: left;
  }

  .general-ranking-table td:last-child {
    border-bottom: 0;
  }
}

.simulator-access-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  text-align: left;
  border: 1px solid rgba(34, 197, 94, 0.28);
  background: linear-gradient(135deg, rgba(240, 253, 244, 0.94), rgba(219, 234, 254, 0.9));
}

.simulator-access-panel h2,
.simulator-access-panel p {
  margin: 0.25rem 0;
  text-align: left;
}

.simulator-access-panel a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  white-space: nowrap;
}

.dark-mode .simulator-access-panel {
  background: linear-gradient(135deg, rgba(20, 83, 45, 0.78), rgba(30, 41, 59, 0.84));
}

@media (max-width: 760px) {
  .simulator-access-panel {
    display: grid;
  }

  .simulator-access-panel a {
    width: 100%;
  }
}

@media (max-width: 560px) {

  table.results.dashboard-ranking-table,
  table.results.dashboard-ranking-table tbody,
  table.results.dashboard-ranking-table tr,
  table.results.dashboard-ranking-table td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  table.results.dashboard-ranking-table {
    border: 0;
    border-collapse: separate;
    border-spacing: 0;
    background: transparent;
    min-width: 0;
    margin: 0;
    text-align: left;
  }

  table.results.dashboard-ranking-table thead,
  table.results.dashboard-ranking-table tr:first-child {
    display: none;
  }

  table.results.dashboard-ranking-table tr {
    position: relative;
    margin: 0 0 12px;
    padding: 54px 14px 12px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
    text-align: left;
  }

  table.results.dashboard-ranking-table tr:nth-child(even) {
    background: #ffffff;
  }

  table.results.dashboard-ranking-table td {
    display: grid;
    grid-template-columns: minmax(92px, 38%) minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-height: 34px;
    padding: 8px 0;
    border: 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    color: #0f172a;
    font-size: 0.94rem;
    line-height: 1.25;
    text-align: right;
    word-break: break-word;
  }

  table.results.dashboard-ranking-table td b {
    justify-self: end;
    text-align: right;
  }

  table.results.dashboard-ranking-table td:first-child,
  table.results.dashboard-ranking-table td:nth-child(2),
  table.results.dashboard-ranking-table td:nth-child(3) {
    position: absolute;
    top: 14px;
    display: block;
    width: auto;
    min-height: 0;
    padding: 0;
    border-bottom: 0;
  }

  table.results.dashboard-ranking-table td:first-child {
    left: 14px;
    min-width: 36px;
    padding: 7px 8px;
    border-radius: 999px;
    background: #0f172a;
    color: #ffffff;
    font-size: 0.86rem;
    font-weight: 900;
    line-height: 1;
    text-align: center;
  }

  table.results.dashboard-ranking-table td:nth-child(2) {
    right: 76px;
    left: 60px;
    overflow: hidden;
    color: #0f766e;
    font-size: 1rem;
    font-weight: 900;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  table.results.dashboard-ranking-table td:nth-child(3) {
    right: 14px;
    min-width: 50px;
    padding: 6px 9px;
    border-radius: 999px;
    background: #eef2ff;
    color: #1e3a8a;
    font-weight: 900;
    line-height: 1;
    text-align: center;
  }

  table.results.dashboard-ranking-table td:first-child::before,
  table.results.dashboard-ranking-table td:nth-child(2)::before,
  table.results.dashboard-ranking-table td:nth-child(3)::before {
    content: none;
  }

  table.results.dashboard-ranking-table td:nth-child(4) {
    border-top: 1px solid rgba(226, 232, 240, 0.9);
    padding-top: 12px;
  }

  table.results.dashboard-ranking-table td.movement-up {
    color: #047857;
  }

  table.results.dashboard-ranking-table td.movement-down {
    color: #b91c1c;
  }

  table.results.dashboard-ranking-table td.movement-same {
    color: #374151;
  }

  table.results.dashboard-ranking-table td:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  table.results.dashboard-ranking-table td::before {
    content: attr(data-label);
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1.25;
    text-align: left;
    text-transform: uppercase;
  }

  table.results.dashboard-ranking-table .participant-link {
    display: block;
    max-width: 100%;
    overflow: hidden;
    color: inherit;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
