/*
  WORLD CUP 2026 — STYLESHEET

  01. Design tokens and base styles
  02. Hero
  03. Interactive globe
  04. Final podium
  05. Tournament stars
  06. Tournament records
  07. Revelations and disappointments
  08. Finance and audience statistics
  09. Responsive and accessibility rules
*/

:root {
  --background: #414042;
  --background-soft: #9f9f9f;

  --surface: rgba(10, 23, 40, 0.82);
  --surface-solid: #0c192a;

  --text: #fff;
  --muted: #ebebeb;

  --border: rgba(255, 255, 255, 0.13);

  --accent: #dc0510;
  --accent-second: #ffd447;
  --accent-dark: #ffffff;

  /* Aliases used by the statistics sections */
  --cl-primary: var(--accent-second);
  --cl-text-light: var(--muted);

  --country: rgba(55, 79, 106, 0.8);
  --country-side: rgba(12, 24, 40, 0.75);
  --country-stroke: rgba(255, 255, 255, 0.12);

  --host: rgba(255, 212, 71, 0.92);
  --host-side: rgba(255, 212, 71, 0.35);

  --selected: #ffffff;
  --selected-side: rgba(255, 255, 255, 0.4);
}

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

html {
  font-size: 100%;
}

body {
  margin: 0;

  background:
    radial-gradient(
      circle at 65% 25%,
      rgba(31, 73, 116, 0.28),
      transparent 38%
    ),
    var(--background);

  color: var(--text);
}

button {
  font: inherit;
}

.page {
  width: min(1500px, 100%);
  margin: 0 auto;

  padding: 40px clamp(18px, 4vw, 68px) 80px;
}

/* HERO */

.hero {
  max-width: 920px;
  margin-bottom: 34px;
  color: var(--text);
}

.eyebrow,
.info-panel__eyebrow {
  margin: 0 0 12px;

  color: var(--accent-second);

  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.hero h1 {
  max-width: 900px;
  margin: 0;

  font-size: clamp(2.6rem, 7vw, 6.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.06em;
}

.hero__description {
  max-width: 150rem;
  margin: 24px 0 0;

  color: var(--muted);

  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.55;
}

.hero__cta {
  background: rgba(220, 5, 16, 0.5);
  padding: 0.2rem 0.3rem;
  animation: pulse 2s infinite;
}

/* GLOBE — TOOLBAR */

.globe-section {
  border-top: 1px solid var(--border);
  padding-top: 22px;
}

.globe-toolbar {
  display: flex;
  gap: 10px;

  margin-bottom: 18px;
  padding-bottom: 4px;

  overflow-x: auto;
  scrollbar-width: thin;
}

.mode-button {
  flex: 0 0 auto;

  min-height: 44px;

  border: 1px solid var(--border);
  border-radius: 999px;

  padding: 10px 17px;

  background: transparent;
  color: var(--text);

  cursor: pointer;

  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.mode-button.is-active {
  border-color: var(--accent);

  background: var(--accent);
  color: var(--accent-dark);
}

.mode-button:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

/* GLOBE — LAYOUT */

.globe-layout {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    minmax(280px, 360px);

  gap: clamp(0rem, 4vw, 5rem);

  align-items: center;
}

.globe-stage {
  position: relative;

  min-width: 0;
  height: min(720px, 72vw);
  min-height: 520px;

  border: 1px solid var(--border);
  border-radius: 26px;

  background: radial-gradient(
    circle at center,
    rgba(27, 60, 93, 0.28),
    rgba(4, 9, 20, 0.1) 58%,
    rgba(4, 9, 20, 0.82)
  );

  overflow: hidden;
}

.globe {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  cursor: grab;
}

.globe:active {
  cursor: grabbing;
}

.globe canvas {
  display: block;
  outline: none;
}

.globe-scroll-arrow {
  display: none;
}

@media (max-width: 768px) {
  .globe-scroll-arrow {
    display: block;
    width: 3rem;

    margin: 0 auto;

    border: 0;

    background: transparent;
    color: #ffffff;
    cursor: none;

    animation: globeArrowPulse 1.4s ease-in-out infinite;
  }

  .globe-scroll-arrow svg {
    width: 2.4rem;
    height: 2.4rem;

    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
}

@keyframes globeArrowPulse {
  0%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }

  50% {
    opacity: 1;
    transform: translateY(0.65rem);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }

  50% {
    opacity: 1;
    transform: translateY(0.2rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .globe-scroll-arrow {
    animation: none;
  }
}

/* GLOBE — LOADING */

.loading-message {
  position: absolute;
  top: 50%;
  left: 50%;

  z-index: 4;

  transform: translate(-50%, -50%);

  color: var(--muted);

  pointer-events: none;
}

.loading-message[hidden] {
  display: none;
}

/* GLOBE — CITY DETAILS */
.city-card__country {
  margin: 12px 0 0;

  color: var(--muted);

  font-size: 1rem;
}

.city-card__stadium {
  display: grid;
  gap: 6px;

  margin-top: 28px;
  padding-top: 20px;
  color: var(--accent);

  border-top: 1px solid var(--border);
}

.city-card__stadium span {
  color: var(--muted);

  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.city-card__stadium strong {
  font-size: 1.3rem;
  line-height: 1.25;
}

/* GLOBE — CONTROLS */

.globe-instructions {
  position: absolute;
  right: 16px;
  bottom: 16px;

  z-index: 4;

  max-width: calc(100% - 32px);

  border: 1px solid var(--border);
  border-radius: 999px;

  padding: 9px 14px;

  background: rgba(4, 9, 20, 0.82);
  color: var(--muted);

  font-size: 0.78rem;

  pointer-events: none;
  backdrop-filter: blur(10px);
}

.globe-instructions__mobile {
  display: none;
}

.reset-button {
  position: absolute;
  left: 16px;
  bottom: 16px;

  z-index: 5;

  min-height: 42px;

  border: 1px solid var(--accent);
  border-radius: 999px;

  padding: 9px 15px;

  background: var(--accent);
  color: var(--accent-dark);

  font-weight: 700;

  cursor: pointer;
}

.reset-button[hidden] {
  display: none;
}

/* GLOBE — INFO PANEL */

.info-panel {
  min-width: 0;
  padding: 10px 0;
}

.info-panel--countries {
  margin-top: 2rem;
}

.info-panel__number {
  margin: 0;

  color: var(--accent-second);

  font-size: clamp(3rem, 13vw, 10rem);
  font-weight: 800;
  line-height: 0.82;
  letter-spacing: -0.09em;
}

.info-panel__number--country {
  color: var(--accent);
}

.info-panel__title {
  margin: 12px 0 0;

  font-size: clamp(2.2rem, 4vw, 3.8rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  color: var(--text);
}

.info-panel__description {
  margin: 22px 0 0;

  color: var(--muted);

  font-size: 1.05rem;
  line-height: 1.55;
}

.info-panel__hint {
  margin: 28px 0 0;

  border-top: 1px solid var(--border);

  padding-top: 20px;

  color: var(--muted);

  font-size: 0.92rem;
  line-height: 1.5;
}

.globe-section__outro {
  max-width: 80rem;
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  line-height: 1.5;
  color: var(--muted);
}

/* GLOBE — COUNTRY DETAILS */

.country-card__flag {
  margin: 0 0 12px;

  font-size: 2.4rem;
}

.country-card__eyebrow {
  margin: 0 0 8px;

  color: var(--accent);

  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.qualified-country__team {
  color: var(--text);
  font-size: 3.8rem;
  line-height: 1.1;
}

.country-card__name {
  margin: 0;

  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  color: var(--text);
}

.country-card__stat {
  display: flex;
  gap: 12px;
  align-items: baseline;

  margin-top: 26px;
}

.country-card__eyebrow {
  margin-bottom: 2rem;
  font-size: 1rem;
}

.country-card__stat strong {
  color: var(--accent);

  font-size: 3rem;
  line-height: 1;
}

.country-card__stat span {
  color: var(--muted);
  font-size: 1.2rem;
}

.country-card__cities-title {
  margin: 26px 0 12px;

  color: var(--muted);

  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.country-card__cities {
  display: grid;
  gap: 9px;

  margin: 0;
  padding: 0;
  color: var(--muted);
  list-style: none;
}

.country-card__cities-cta {
  display: inline-block;
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 1rem;
  padding: 0.2rem 0.3rem;
  background: rgba(220, 5, 16, 0.5);
  animation: pulse 2s infinite;
}

.country-card__cities li {
  display: flex;
  gap: 10px;
  align-items: center;
}

.country-card__cities li::before {
  width: 7px;
  height: 7px;

  border-radius: 50%;

  background: var(--accent);

  content: "";
}

/* GLOBE — MATCHES */
.city-matches {
  margin-top: 32px;
}

.city-matches__list {
  display: grid;
  gap: 12px;
}

.city-matches__empty {
  color: var(--muted);
  font-size: 0.95rem;
}

.match-card {
  padding: 14px;

  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text);
  background: rgba(4, 9, 20, 0.42);
}

.match-card__location {
  margin-top: 0.6rem;
}

.match-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;

  margin-bottom: 14px;

  color: var(--muted);

  font-size: 0.72rem;
  line-height: 1.3;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.match-card__result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.match-card__team {
  display: flex;
  gap: 7px;
  align-items: center;

  min-width: 0;
}

.match-card__team--away {
  justify-content: flex-end;
  text-align: right;
}

.match-card__team-name {
  font-size: 0.88rem;
  line-height: 1.25;
  color: var(--text);
}

.match-card__flag {
  flex: 0 0 auto;
  font-size: 1.15rem;
}

.match-card__score-wrapper {
  display: grid;
  gap: 4px;

  min-width: 58px;

  text-align: center;
}

.match-card__score {
  font-size: 1.2rem;
  line-height: 1;
  white-space: nowrap;
  color: var(--text);
}

.match-card__penalties,
.match-card__note {
  display: block;

  color: var(--muted);

  font-size: 0.65rem;
  line-height: 1.25;
}

@media (max-width: 600px) {
  .match-card__meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .match-card__result {
    grid-template-columns: minmax(0, 1fr) 52px minmax(0, 1fr);
    gap: 6px;
  }

  .match-card__team-name {
    font-size: 0.78rem;
  }
}

/* PODIUM */
.final-podium {
  width: min(100% - 2rem, 150rem);
  margin-inline: auto;
  padding-block: 8rem;
  color: var(--text);
}

.final-podium__header {
  max-width: 100rem;
  margin-bottom: 5rem;
}

.section-eyebrow,
.final-match__eyebrow,
.fourth-place__eyebrow {
  margin: 0 0 0.75rem;
  color: #dc0510;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.final-podium__title {
  margin: 0;
  font-size: clamp(3rem, 5vw, 7rem);
  line-height: 1.1;
  text-transform: uppercase;
}

.final-podium__intro {
  max-width: 100rem;
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  line-height: 1.6;
}

.final-match img {
  margin-bottom: 1rem;
}

/* PODIUM */

.podium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 1rem;
  margin-bottom: 4rem;
}

.podium-card {
  position: relative;
  min-height: 28rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1.5rem 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.5rem 1.5rem 0 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.025)
  );
  text-align: center;
}

.podium-card--winner {
  min-height: 34rem;
  border-color: rgba(255, 212, 71, 0.45);
  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(255, 212, 71, 0.23),
      transparent 55%
    ),
    linear-gradient(
      180deg,
      rgba(255, 212, 71, 0.12),
      rgba(255, 255, 255, 0.025)
    );
}

.podium-card--second {
  min-height: 30rem;
}

.podium-card--third {
  min-height: 26rem;
}

.podium-card__place {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.podium-card__medal {
  font-size: 1.25rem;
}

.podium-card img {
  margin-bottom: 1rem;
}

.podium-card__country {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3.5rem);
  line-height: 1;
}

.podium-card__achievement {
  margin: 1.25rem 0 0;
  color: #ffd447;
  font-weight: 800;
}

.podium-card__description {
  max-width: 25rem;
  margin: 1.25rem auto 2.5rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.55;
}

.podium-card__position {
  width: calc(100% + 3rem);
  margin-top: auto;
  padding-block: 1.2rem;
  background: rgba(255, 255, 255, 0.08);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  line-height: 1;
}

.podium-card--winner .podium-card__position {
  background: #ffd447;
  color: #081423;
}

.podium-card--second .podium-card__position {
  background: #c8ced8;
  color: #081423;
}

.podium-card--third .podium-card__position {
  background: #bd7847;
  color: #081423;
}

/* MECIURI */

.final-matches {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.final-match {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.035);
}

.final-match--championship {
  border-color: rgba(255, 212, 71, 0.35);
}

.final-match--third-place {
  border-color: rgba(220, 5, 16, 0.42);
}

.final-match__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.final-match__title {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 2.3rem);
  line-height: 1.1;
}

.final-match__header time {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.85rem;
}

.final-match__highlight {
  max-width: 10rem;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  background: rgba(220, 5, 16, 0.15);
  color: #ff6a71;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  text-transform: uppercase;
}

.final-match__scoreboard {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

.final-match__team {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.final-match__team--away {
  justify-content: flex-end;
  text-align: right;
}

.final-match__flag {
  flex-shrink: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.final-match__team-name {
  font-weight: 800;
}

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

.final-match__score strong {
  display: block;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  line-height: 1;
}

.final-match__score span {
  display: block;
  margin-top: 0.45rem;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.72rem;
}

.final-match__details {
  display: grid;
  gap: 0.7rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.final-match__details p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.5;
}

/* LOCUL 4 */

.fourth-place {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1.5rem;
  padding: 1.5rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.025);
}

.fourth-place__rank {
  color: rgba(255, 255, 255, 0.18);
  font-size: 4rem;
  font-weight: 900;
  line-height: 1;
}

.fourth-place__flag {
  font-size: 3rem;
}

.fourth-place__content {
  display: flex;
  align-items: center;
}

.fourth-place__content img {
  width: 50%;
  margin-left: 2rem;
}

.fourth-place__content h3 {
  margin: 0;
  font-size: 1.75rem;
}

.fourth-place__content p {
  max-width: 28rem;
}

.fourth-place__content p:last-child {
  margin: 0.5rem 0 0;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.5;
}

.final-podium__total {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 3rem;
  text-align: center;
}

.final-podium__total strong {
  color: #ffd447;
  font-size: clamp(2rem, 5vw, 4rem);
}

.final-podium__total span {
  color: rgba(255, 255, 255, 0.62);
}

/* TOURNAMENT STARS */

.tournament-stars {
  width: min(100% - 2rem, 1500px);
  margin-inline: auto;
  padding-block: 8rem;
  color: var(--text);
}

.tournament-stars__header {
  max-width: 70rem;
  margin-bottom: 5rem;
}

.tournament-stars__title {
  margin: 0;
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 0.9;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

.tournament-stars__intro {
  max-width: 65rem;
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.5rem);
  line-height: 1.6;
}

.tournament-stars__list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* CARD */

.star-card {
  --star-accent: var(--accent-second);
  --star-accent-rgb: 255, 212, 71;

  position: relative;
  isolation: isolate;

  width: 100%;
  min-height: 32rem;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;

  padding: clamp(2rem, 6vw, 6rem);
}

.star-card::after {
  position: absolute;
  right: -8rem;
  bottom: -14rem;
  z-index: -1;

  width: 34rem;
  aspect-ratio: 1;

  content: "";
}

.star-card__player {
  width: 40%;
  height: auto;
}

/* CULORI DIFERITE */

.star-card--golden-ball {
  --star-accent: #ffd447;
  --star-accent-rgb: 255, 212, 71;
}

.star-card--golden-boot {
  --star-accent: #dc0510;
  --star-accent-rgb: 220, 5, 16;
}

.star-card--assists {
  --star-accent: #57c9ff;
  --star-accent-rgb: 87, 201, 255;
}

.star-card--golden-glove {
  --star-accent: #e4e7ec;
  --star-accent-rgb: 228, 231, 236;
}

.star-card--young-player {
  --star-accent: #8ae27e;
  --star-accent-rgb: 138, 226, 126;
}

/* CONȚINUT */

.star-card__content {
  position: relative;
  z-index: 2;
  width: min(100%, 46rem);
}

.star-card__award {
  display: flex;
  align-items: center;
  gap: 1rem;

  margin-bottom: 1rem;
}

.star-card__award img {
  width: 5rem;
}

.star-card__category {
  margin: 0;

  color: var(--star-accent);

  font-size: clamp(0.8rem, 1.4vw, 1rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.star-card__prize {
  margin: 0.35rem 0 0;

  color: var(--accent-second);

  font-size: 1.4rem;
}

.star-card__identity {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 1.8rem);
}

.star-card__flag {
  flex: 0 0 auto;
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 1;
}

.star-card__name {
  margin: 0;

  font-size: clamp(2.5rem, 5vw, 6.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.055em;
}

.star-card__country {
  margin: 0.75rem 0 0;

  color: rgba(255, 255, 255, 0.62);

  font-size: clamp(1rem, 2vw, 1.25rem);
}

.star-card__lead {
  max-width: 42rem;
  margin: 2rem 0 0;

  color: var(--text);

  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 700;
  line-height: 1.45;
}

.star-card__description {
  max-width: 42rem;
  margin: 1rem 0 0;

  color: rgba(255, 255, 255, 0.68);

  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.65;
}

/* CIFRA PRINCIPALĂ */

.star-card__stat {
  display: flex;
  align-items: baseline;
  gap: 1rem;

  margin-top: 2rem;
}

.star-card__stat strong {
  color: var(--star-accent);

  font-size: clamp(4.5rem, 5vw, 9rem);
  font-weight: 900;
  line-height: 0.8;
  letter-spacing: -0.08em;
}

.star-card__stat span {
  color: rgba(255, 255, 255, 0.72);

  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 700;
}

/* DOUĂ STATISTICI */

.star-card__stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;

  max-width: 42rem;
  margin-top: 2.5rem;
}

.star-card__mini-stat {
  padding: 1.4rem;

  border: 1px solid rgba(var(--star-accent-rgb), 0.23);
  border-radius: 1rem;

  background: rgba(var(--star-accent-rgb), 0.07);
}

.star-card__mini-stat strong {
  display: block;

  color: var(--star-accent);

  font-size: clamp(3rem, 5vw, 5.5rem);
  line-height: 0.85;
}

.star-card__mini-stat span {
  display: block;

  margin-top: 0.8rem;

  color: rgba(255, 255, 255, 0.67);

  font-size: 1.3rem;
  line-height: 1.35;
}

/* NOTĂ */

.star-card__note {
  max-width: 42rem;
  margin-top: 2rem;
  padding: 1.2rem 1.4rem;

  border-left: 3px solid var(--star-accent);

  background: rgba(var(--star-accent-rgb), 0.08);
  color: rgba(255, 255, 255, 0.68);

  font-size: 0.85rem;
  line-height: 1.55;
}

/* NUMĂR FUNDAL */

.star-card__number {
  position: absolute;
  right: 5rem;
  bottom: 0;
  transform: translate(-50%, -50%);
  z-index: -1;

  color: rgba(var(--star-accent-rgb), 0.07);

  font-size: clamp(10rem, 20vw, 28rem);
  font-weight: 900;
  line-height: 0.75;
  letter-spacing: -0.1em;

  pointer-events: none;
  user-select: none;
}

/* DESENE TACTICE */

.star-card__tactics {
  width: min(30rem, 60%);
  height: auto;
  position: absolute;
  z-index: -1;
  bottom: 0;
  left: 15rem;

  color: var(--star-accent);

  opacity: 0.24;

  pointer-events: none;
}

.star-card__tactics circle,
.star-card__tactics path {
  vector-effect: non-scaling-stroke;
}

.star-card__tactics circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 7;
}

.star-card__tactics .tactic-cross {
  fill: none;
  stroke: currentColor;
  stroke-width: 8;
  stroke-linecap: round;
}

.star-card__tactics .tactic-arrow {
  fill: none;
  stroke: currentColor;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.star-card__tactics .tactic-route {
  fill: none;
  stroke: currentColor;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 12 15;
}

.star-card__tactics marker path {
  fill: currentColor;
  stroke: none;
}

/* TABLETĂ ȘI MOBIL */

@media (max-width: 800px) {
  .tournament-stars {
    padding-block: 5rem;
  }

  .tournament-stars__header {
    margin-bottom: 3rem;
  }

  .star-card {
    min-height: 38rem;
    align-items: flex-start;

    padding: 2rem 1.25rem 14rem;
  }

  .star-card__content {
    width: 100%;
  }

  .star-card__tactics {
    top: auto;
    right: 50%;
    bottom: -2rem;

    width: min(20rem, 105%);

    transform: translateX(50%) rotate(-4deg);
    opacity: 0.2;
  }

  .star-card__number {
    right: -1rem;
    bottom: 0;

    font-size: clamp(7rem, 42vw, 15rem);
  }
}

@media (max-width: 560px) {
  .tournament-stars {
    width: min(100% - 1.25rem, 1500px);
  }

  .star-card {
    min-height: 0;
    padding: 1.5rem 1rem 12rem;
    border-radius: 1.25rem;
  }

  .star-card__award {
    align-items: flex-start;
    margin-bottom: 2rem;
  }

  .star-card__award-icon {
    width: 3rem;
    height: 3rem;
    font-size: 1.35rem;
  }

  .star-card__identity {
    align-items: flex-start;
  }

  .star-card__flag {
    font-size: 2.5rem;
  }

  .star-card__name {
    overflow-wrap: anywhere;
    font-size: clamp(2.2rem, 12vw, 4rem);
  }

  .star-card__stats-grid {
    grid-template-columns: 1fr;
  }

  .star-card__stat {
    flex-wrap: wrap;
  }

  .star-card__tactics {
    bottom: -1rem;
    width: 32rem;
    max-width: none;
  }
}

/* FINANCE */
.audience--finance {
  padding-top: 8rem;
}

.audience__note {
  max-width: 60rem;
  margin: 5rem auto 0;

  color: var(--muted);

  font-size: 0.9rem;
  line-height: 1.6;
  text-align: center;
}

/* RESPONSIVE */

@media (max-width: 850px) {
  .podium {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .podium-card,
  .podium-card--winner,
  .podium-card--second,
  .podium-card--third {
    min-height: auto;
  }

  .podium-card--winner {
    order: -1;
  }

  .final-matches {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .final-podium {
    padding-block: 5rem;
  }

  .final-match__header {
    display: block;
  }

  .final-match__header time,
  .final-match__highlight {
    display: inline-block;
    margin-top: 1rem;
  }

  .final-match__scoreboard {
    grid-template-columns: 1fr;
  }

  .final-match__team,
  .final-match__team--away {
    justify-content: center;
    text-align: center;
  }

  .final-match__team--away {
    flex-direction: row-reverse;
  }

  .fourth-place {
    grid-template-columns: auto 1fr;
  }

  .fourth-place__rank {
    grid-row: span 2;
  }

  .fourth-place__content {
    grid-column: 2;
  }

  .final-podium__total {
    flex-direction: column;
    align-items: center;
  }

  .star-card__number {
    bottom: 24rem;
    right: -5rem;
  }

  .star-card__tactics {
    bottom: 5rem;
    right: 0;
    left: -20rem;
  }
}

/* ACCESSIBILITY */

.sr-only {
  position: absolute;

  width: 1px;
  height: 1px;

  margin: -1px;
  padding: 0;

  overflow: hidden;

  clip: rect(0, 0, 0, 0);
  white-space: nowrap;

  border: 0;
}

/* TOURNAMENT RECORDS */

.tournament-records {
  width: min(100% - 2rem, 1500px);
  margin-inline: auto;
  padding-top: 8rem;
  padding-bottom: 2rem;
  color: var(--text);
}

.tournament-records__header {
  max-width: 70rem;
  margin-bottom: 4rem;
}

.tournament-records__title {
  margin: 0;

  font-size: clamp(3rem, 5vw, 7rem);
  line-height: 1.1;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

.tournament-records__intro {
  max-width: 65rem;
  margin: 1.5rem 0 0;

  color: var(--muted);

  font-size: clamp(1rem, 2vw, 1.5rem);
  line-height: 1.6;
}

/* SCROLLER */

.records-scroller {
  width: 100%;
  overflow: hidden;

  scrollbar-width: none;
}

.records-scroller::-webkit-scrollbar {
  display: none;
}

/* TRACK LUNG */

.records-track {
  position: relative;
  isolation: isolate;

  width: max-content;

  display: flex;
  align-items: stretch;
  gap: clamp(1rem, 2vw, 2rem);

  padding: 2rem clamp(1rem, 5vw, 5rem) 3rem;
}

/* SVG CONTINUU */

.records-track__tactics {
  position: absolute;
  inset: 0;
  z-index: -1;

  width: 100%;
  height: 100%;

  color: var(--accent-second);

  opacity: 0.12;

  pointer-events: none;
}

.records-track__tactics circle,
.records-track__tactics path {
  vector-effect: non-scaling-stroke;
}

.records-track__tactics circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 7;
}

.records-tactic-cross {
  fill: none;
  stroke: currentColor;
  stroke-width: 8;
  stroke-linecap: round;
}

.records-tactic-arrow {
  fill: none;
  stroke: currentColor;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.records-tactic-route {
  fill: none;
  stroke: currentColor;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 14 18;
}

.records-track__tactics marker path {
  fill: currentColor;
  stroke: none;
}

/* CARD */

.record-card {
  flex: 0 0 min(82vw, 1180px);

  min-width: 0;
  min-height: 42rem;

  display: grid;
  grid-template-columns:
    minmax(0, 0.9fr)
    minmax(0, 1.1fr);

  overflow: hidden;

  scroll-snap-align: start;
  scroll-snap-stop: always;
}

/* IMAGINE */

.record-card__visual {
  position: relative;

  min-width: 0;
  min-height: 42rem;

  overflow: hidden;
}

.record-card__visual img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;
}

.record-card__number {
  position: absolute;
  left: clamp(1.5rem, 4vw, 3rem);
  bottom: clamp(1.5rem, 4vw, 3rem);
  z-index: 2;

  color: rgba(255, 255, 255, 0.82);

  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 900;
  line-height: 0.8;
  letter-spacing: -0.08em;
}

/* CONȚINUT */

.record-card__content {
  min-width: 0;

  display: flex;
  flex-direction: column;
  justify-content: center;

  padding: clamp(2rem, 5vw, 5rem);
}

.record-card__category {
  display: flex;
  align-items: center;
  gap: 0.75rem;

  margin: 0 0 2rem;

  color: var(--accent-second);

  font-size: clamp(0.85rem, 1.4vw, 1.05rem);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.record-card__category span {
  font-size: 1.5rem;
}

.record-card__title {
  max-width: 46rem;
  margin: 0;

  font-size: clamp(2.5rem, 5.5vw, 5.8rem);
  line-height: 0.9;
  letter-spacing: -0.055em;
}

.record-card__country {
  margin: 1rem 0 0;

  color: rgba(255, 255, 255, 0.68);

  font-size: clamp(1rem, 2vw, 1.3rem);
}

.record-card__stat {
  display: flex;
  align-items: baseline;
  gap: 1rem;

  margin-top: clamp(1rem, 4vw, 3.5rem);
}

.record-card__stat strong {
  color: var(--accent-second);

  font-size: clamp(4.5rem, 5vw, 9rem);
  font-weight: 900;
  line-height: 0.8;
  letter-spacing: -0.08em;
}

.record-card__stat span {
  max-width: 13rem;

  color: rgba(255, 255, 255, 0.78);

  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 700;
  line-height: 1.3;
}

.record-card__stat--time strong {
  font-size: clamp(3.8rem, 6vw, 7rem);
}

.record-card__lead {
  max-width: 42rem;
  margin: 2rem 0 0;

  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 700;
  line-height: 1.45;
}

.record-card__description {
  max-width: 42rem;
  margin: 1rem 0 0;

  color: rgba(255, 255, 255, 0.68);

  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.65;
}

.record-card__tag {
  align-self: flex-start;

  margin: 1.5rem 0 0;
  padding: 0.65rem 1rem;

  border: 1px solid rgba(255, 212, 71, 0.3);
  border-radius: 999px;

  background: rgba(255, 212, 71, 0.08);
  color: var(--accent-second);

  font-size: 0.85rem;
  font-weight: 700;
}

/* LISTĂ */

.record-card__list {
  display: grid;
  gap: 1rem;

  max-width: 42rem;
  margin: 2rem 0 0;
  padding: 0;

  list-style: none;
}

.record-card__list li {
  position: relative;

  padding-left: 1.5rem;

  color: rgba(255, 255, 255, 0.68);

  line-height: 1.6;
}

.record-card__list li::before {
  position: absolute;
  top: 0.65em;
  left: 0;

  width: 0.5rem;
  height: 0.5rem;

  border-radius: 50%;

  background: var(--accent);

  content: "";
}

/* SCORURI */

.record-card__scores {
  display: grid;
  gap: 1rem;

  max-width: 42rem;
  margin-top: 2.5rem;
}

.record-card__score {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;

  padding: 1.2rem;

  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1rem;

  background: rgba(255, 255, 255, 0.04);
}

.record-card__score span:last-child {
  text-align: right;
}

.record-card__score strong {
  color: var(--accent-second);

  font-size: clamp(1.8rem, 4vw, 3rem);
}

/* INDICAȚIE SCROLL */

.records-scroll-hint {
  display: flex;
  align-items: center;
  gap: 0.65rem;

  margin: 1.2rem 0 0 clamp(1rem, 5vw, 5rem);

  color: var(--text);
  background: rgba(220, 5, 16, 0.5);
  padding: 0.2rem 0.3rem;

  font-size: 1rem;

  animation: pulse 2s infinite;
}

.records-scroll-hint span {
  color: var(--accent-second);
  font-size: 1.4rem;
}

/* TABLETĂ */

@media (max-width: 900px) {
  .record-card {
    flex-basis: 86vw;

    grid-template-columns: 1fr;
  }

  .record-card__visual {
    min-height: 27rem;
    aspect-ratio: 16 / 10;
  }

  .record-card__visual::after {
    background: linear-gradient(
      0deg,
      rgba(10, 23, 40, 0.95) 0%,
      rgba(10, 23, 40, 0.12) 60%
    );
  }

  .record-card__content {
    min-height: 34rem;
  }
}

/* MOBIL */

@media (max-width: 560px) {
  .tournament-records {
    width: 100%;
  }

  .tournament-records__header {
    width: calc(100% - 2rem);
    margin-inline: auto;
    margin-bottom: 2rem;
  }

  .records-track {
    gap: 1rem;

    padding: 1rem 1rem 2rem;
  }

  .records-scroller {
    scroll-padding-inline: 1rem;
  }

  .record-card {
    display: flex;
    flex-direction: column;

    min-height: 0;
  }

  .record-card__visual {
    min-height: 0;
    height: 15rem;
    aspect-ratio: auto;
  }

  .record-card__visual img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
  }

  .record-card__content {
    min-height: 0;
    padding: 0;
  }

  .record-card__category {
    align-items: flex-start;
    margin-bottom: 1.5rem;
  }

  .record-card__stat {
    align-items: flex-end;
    gap: 0.75rem;
  }

  .record-card__stat strong {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .record-card__score {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    text-align: center;
  }

  .record-card__score span:last-child {
    text-align: center;
  }

  .records-scroll-hint {
    margin-left: 1rem;
  }
}

/* REVELATIONS AND DISAPPOINTMENTS */

.team-reveals {
  width: min(100% - 2rem, 150rem);
  margin-inline: auto;

  padding-bottom: 8rem;
  color: var(--text);
}

.team-reveals__header {
  max-width: 70rem;
  margin-bottom: 4rem;
}

.team-reveals__title {
  margin: 0;

  font-size: clamp(3rem, 6vw, 7rem);
  line-height: 1.3;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

.team-reveals__intro {
  max-width: 52rem;
  margin: 1.5rem 0 0;

  color: var(--muted);

  font-size: clamp(1rem, 2vw, 1.5rem);
  line-height: 1.6;
}

.team-reveals__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 2rem);
}

/* CARD */

.reveal-card {
  --card-front: #164928;
  --card-back: #10251a;
  --card-accent: #76dc93;

  min-width: 0;
  aspect-ratio: 4 / 5;
  perspective: 1400px;
}

.reveal-card--disappointment {
  --card-front: #84030a;
  --card-back: #2a0d11;
  --card-accent: #ff7279;
}

.reveal-card__button {
  width: 100%;
  height: 100%;

  display: block;

  border: 0;
  padding: 0;

  background: transparent;
  color: inherit;

  text-align: left;
  cursor: pointer;
}

.reveal-card__inner {
  position: relative;

  width: 100%;
  height: 100%;

  display: block;

  transform-style: preserve-3d;

  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-card.is-flipped .reveal-card__inner {
  transform: rotateY(180deg);
}

/* FEȚELE CARDULUI */

.reveal-card__face {
  position: absolute;
  inset: 0;

  display: flex;
  flex-direction: column;

  overflow: hidden;

  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: clamp(1.25rem, 2.5vw, 2rem);

  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.reveal-card__face--front {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--card-front);
}

/* SPATELE */

.reveal-card__face--back {
  padding: clamp(1.5rem, 3vw, 2.5rem);

  transform: rotateY(180deg);

  background:
    radial-gradient(
      circle at 85% 15%,
      color-mix(in srgb, var(--card-accent) 18%, transparent),
      transparent 38%
    ),
    var(--card-back);
}

.reveal-card__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.reveal-card__flag {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1;
}

.reveal-card__type {
  color: var(--card-accent);

  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.reveal-card__name {
  display: block;

  font-size: 2rem;
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.05em;
}

.reveal-card__lead {
  display: block;

  margin-top: 1.25rem;

  font-size: clamp(1rem, 1.7vw, 1.3rem);
  font-weight: 700;
  line-height: 1.45;
}

.reveal-card__list {
  display: grid;
  gap: 0.85rem;

  margin: 1.75rem 0 0;
  padding: 0;

  list-style: none;
}

.reveal-card__list li {
  position: relative;

  padding-left: 1.25rem;

  color: rgba(255, 255, 255, 0.72);

  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  line-height: 1.5;
}

.reveal-card__list li::before {
  position: absolute;
  top: 0.58em;
  left: 0;

  width: 0.45rem;
  height: 0.45rem;

  border-radius: 50%;

  background: var(--card-accent);

  content: "";
}

.reveal-card__close {
  display: block;

  margin-top: auto;
  padding-top: 1.5rem;

  color: rgba(255, 255, 255, 0.42);

  font-size: 0.72rem;
}

.team-reveals__cta {
  background: rgba(220, 5, 16, 0.5);
  padding: 0.2rem 0.3rem;
  margin-top: 1.25rem;
  font-weight: 700;
  animation: pulse 2s infinite;
}

.reveal-card__illustration {
  display: block;
  width: min(72%, 18rem);
  height: auto;
  pointer-events: none;
  user-select: none;
}

/* FOCUS */

.reveal-card__button:focus-visible {
  outline: 3px solid var(--card-accent);
  outline-offset: 5px;
  border-radius: clamp(1.25rem, 2.5vw, 2rem);
}

.reveal-card--placeholder {
  pointer-events: none;
}

/* MOBIL: TOTUL VERTICAL */

@media (max-width: 760px) {
  .team-reveals {
    padding-block: 5rem;
  }

  .team-reveals__header {
    margin-bottom: 2.5rem;
  }

  .team-reveals__grid {
    grid-template-columns: 1fr;
  }

  .reveal-card {
    width: 100%;
    aspect-ratio: 4 / 5;
  }

  .reveal-card--placeholder {
    display: none;
  }

  .reveal-card__face--back {
    padding: 1.5rem;
  }
}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
  .reveal-card__inner {
    transition: none;
  }
}

/* AUDIENCE AND FINANCE STATISTICS */
.audience {
  padding-block: 12rem;
  color: var(--text);
}

.audience__header {
  max-width: 80rem;
  margin: 0 auto;
  text-align: center;
}

.audience__title {
  font-size: 3rem;
  margin-bottom: 2rem;
}

.audience__intro {
  color: var(--cl-text-light);
  line-height: 1.7;
  max-width: 60rem;
  text-align: center;
  display: block;
  margin: 0 auto;
}

.audience__stats {
  margin-top: 8rem;

  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
}

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

.audience-stat__value {
  display: block;

  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;

  color: var(--cl-primary);
}

.audience-stat__label {
  display: block;

  margin-top: 2rem;

  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
}

.audience-stat__description {
  display: block;

  margin-top: 0.75rem;

  color: var(--cl-text-light);
  line-height: 1.5;
}

/* RESPONSIVE */

@media (max-width: 920px) {
  .globe-layout {
    grid-template-columns: 1fr;
  }

  .globe-stage {
    height: min(760px, 100vw);
    min-height: 440px;
  }

  .info-panel {
    border-top: 1px solid var(--border);
    padding-top: 28px;
  }

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

@media (max-width: 600px) {
  .page {
    padding-top: 28px;
  }

  .globe-stage {
    height: 112vw;
    min-height: 390px;
    max-height: 580px;

    border-radius: 20px;
  }

  .globe-instructions {
    right: 12px;
    bottom: 12px;

    max-width: calc(100% - 24px);
  }

  .reset-button {
    left: 12px;
    top: 12px;
    bottom: auto;
  }

  .globe-instructions__desktop {
    display: none;
  }

  .globe-instructions__mobile {
    display: inline;
  }

  .audience__stats {
    grid-template-columns: 1fr;
    gap: 5rem;
  }

  .fourth-place {
    grid-template-columns: 1fr;
  }

  .fourth-place__rank {
    display: none;
  }

  .fourth-place__content {
    flex-direction: column;
    gap: 0.6rem;
    grid-row: span 3;
    grid-column: 1;
  }

  .fourth-place__content img {
    align-self: flex-start;
    width: 100%;
    margin-left: 0;
  }

  .star-card__award {
    flex-direction: column;
  }

  .star-card__player {
    width: 80%;
  }

  .audience__title {
    line-height: 1.1;
    font-size: 1.8rem;
  }

  .record-card__scores {
    margin-top: 1rem;
  }

  .record-card__lead {
    margin: 1rem 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;

    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
