/* =========================================================
   XTREMEX — responsive + accessibility layers
   ========================================================= */

@media (max-width: 1360px) {
  .hero__hud--c {
    display: none;
  }

  .hero__canvas-wrap {
    width: 66%;
  }

  .hero__orbit--a {
    left: 70%;
  }
  .hero__orbit--b {
    left: 70%;
  }

  .roster__rail {
    gap: 24px;
  }

  .match-row {
    grid-template-columns: 96px minmax(160px, 0.8fr) minmax(280px, 1.1fr) auto;
    gap: 20px;
  }
}

@media (max-width: 1180px) {
  .primary-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .header-actions {
    margin-left: auto;
  }

  .hero__inner {
    padding-top: 132px;
  }

  .hero__canvas-wrap {
    width: 72%;
    opacity: 0.92;
  }

  .hero__orbit {
    left: 68%;
  }

  .hero__intro {
    width: min(390px, 44vw);
  }

  .hero__stats {
    gap: 28px;
  }

  .hero-stat {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .hero-stat__label {
    font-size: 6px;
  }

  .manifesto__grid {
    grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
    gap: 50px;
  }

  .artifact__coord {
    display: none;
  }

  .division__content {
    grid-template-columns: 52px minmax(260px, 1.4fr) minmax(90px, 0.4fr) minmax(90px, 0.4fr) 50px;
  }

  .match-row__actions {
    gap: 10px;
  }

  .add-cal {
    display: none;
  }
}

@media (max-width: 1024px) {
  .hero__hud--a,
  .hero__hud--b,
  .hero__hud--d {
    display: none;
  }

  .hero__canvas-wrap {
    right: -7%;
    width: 78%;
  }

  .hero__orbit {
    left: 70%;
  }

  .hero__lower {
    gap: 32px;
  }

  .hero__title {
    font-size: clamp(5rem, 14.2vw, 10rem);
  }

  .hero__line--second {
    padding-left: 3vw;
  }

  .roster__head {
    grid-template-columns: 1fr 0.8fr;
    gap: 30px;
  }

  .roster__head-copy {
    max-width: 340px;
  }

  .squad-stage {
    height: 520px;
  }

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

  .roster__metrics {
    gap: 22px;
  }

  .roster__metrics strong {
    font-size: 22px;
  }

  .divisions__head,
  .matches__head {
    grid-template-columns: 1fr 0.72fr;
    gap: 34px;
  }

  .countdown {
    min-width: 310px;
  }

  .drop__buy {
    align-items: center;
  }

  .footer__top {
    grid-template-columns: 0.7fr 1.3fr;
    gap: 48px;
  }

  .footer__loc {
    grid-column: 1 / -1;
    display: flex;
    align-items: flex-end;
    gap: 30px;
  }

  .footer__loc > span {
    margin-bottom: 3px;
  }

  .footer__loc a {
    margin-top: 0;
    margin-left: auto;
  }
}

@media (max-width: 900px) {
  :root {
    --pad: clamp(20px, 5vw, 44px);
  }

  .section {
    padding-block: 100px;
  }

  .header-actions .button--compact {
    display: none;
  }

  .site-header {
    height: 76px;
  }

  .site-header.is-scrolled {
    height: 64px;
  }

  .hero {
    min-height: 100svh;
  }

  .hero__inner {
    padding-top: 118px;
    padding-bottom: 28px;
  }

  .hero__canvas-wrap {
    top: 3%;
    right: -17%;
    width: 98%;
    height: 92%;
    opacity: 0.88;
  }

  .hero__orb-glow {
    right: -4%;
    width: 72vw;
    height: 60vh;
  }

  .hero__orbit--a {
    left: 72%;
    width: 66vw;
    margin: -33vw 0 0 -33vw;
  }

  .hero__orbit--b {
    left: 72%;
    width: 54vw;
    margin: -27vw 0 0 -27vw;
  }

  .hero__title {
    margin-top: clamp(40px, 7vh, 76px);
    font-size: clamp(4.6rem, 15vw, 8.5rem);
  }

  .hero__lower {
    display: block;
  }

  .hero__intro {
    width: min(440px, 82vw);
  }

  .hero__intro > p {
    max-width: 410px;
  }

  .hero__stats {
    margin-top: 34px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    justify-content: flex-start;
    gap: clamp(28px, 7vw, 64px);
  }

  .hero-stat {
    flex-direction: row;
    align-items: flex-end;
  }

  .hero__scroll {
    display: none;
  }

  .hero__eyebrow .mono {
    display: none;
  }

  .manifesto__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .artifact-wrap {
    min-height: 460px;
    order: 2;
  }

  .artifact {
    width: min(78vw, 440px);
  }

  .manifesto__copy {
    order: 1;
  }

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

  .stat-block {
    border-bottom: 1px solid var(--line);
  }

  .stat-block:nth-child(2) {
    border-right: 0;
  }

  .stat-block:nth-child(3),
  .stat-block:nth-child(4) {
    border-bottom: 0;
  }

  .stat-block:nth-child(3) {
    padding-left: 0;
  }

  .roster__ghost {
    top: 11%;
    font-size: 33vw;
  }

  .roster__head {
    display: block;
  }

  .roster__head-copy {
    max-width: 420px;
    margin-top: 28px;
    justify-self: start;
  }

  .squad-stage {
    height: 490px;
    margin-top: 34px;
  }

  .player-card {
    width: clamp(224px, 32vw, 268px);
  }

  .roster__rail {
    grid-template-columns: auto 1fr;
    gap: 18px 30px;
  }

  .roster__identity {
    justify-self: center;
    text-align: left;
    grid-template-columns: auto auto;
  }

  .roster__metrics {
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding-top: 18px;
    border-top: 1px solid var(--line-soft);
  }

  .roster__metrics div {
    text-align: left;
  }

  .divisions__head,
  .matches__head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .divisions__head p {
    justify-self: start;
  }

  .countdown {
    justify-self: start;
  }

  .matches__status {
    justify-self: start;
    text-align: left;
  }

  .matches__status .countdown__label {
    justify-content: flex-start;
  }

  .countdown__label {
    justify-content: flex-start;
  }

  .countdown__clock {
    justify-content: flex-start;
  }

  .division {
    min-height: 132px;
  }

  .division__content {
    grid-template-columns: 38px 1fr 46px;
    min-height: 132px;
    gap: 12px;
    padding: 18px 8px;
  }

  .division__record {
    display: none;
  }

  .division__arrow {
    width: 42px;
    height: 42px;
  }

  .division__media {
    width: 70%;
  }

  .division__wash {
    background:
      linear-gradient(90deg, var(--bg-soft) 30%, rgba(10, 11, 12, 0.82) 60%, rgba(10, 11, 12, 0.22) 100%),
      linear-gradient(180deg, rgba(10, 11, 12, 0.2), rgba(10, 11, 12, 0.7));
  }

  .division__game {
    font-size: clamp(2rem, 5.2vw, 3.4rem);
  }

  .match-row {
    grid-template-columns: 80px 1fr auto;
    gap: 14px 20px;
    padding: 22px 4px;
  }

  .match-row__date {
    grid-row: 1 / 3;
  }

  .match-row__date strong {
    font-size: 46px;
  }

  .match-row__event {
    grid-column: 2 / 4;
  }

  .match-row__versus {
    grid-column: 2;
    justify-content: flex-start;
    gap: 20px;
  }

  .match-row__team {
    min-width: 0;
  }

  .match-row__actions {
    grid-column: 3;
    grid-row: 2;
  }

  .watch-link {
    height: 30px;
    padding: 0 12px;
  }

  .drop__grid {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .drop__copy {
    order: 1;
  }

  .drop__stage {
    order: 2;
    min-height: 580px;
  }

  .jersey {
    width: min(96%, 560px);
  }

  .drop__buy {
    max-width: 480px;
  }

  .enlist__portal {
    width: 100vw;
  }

  .enlist__actions {
    flex-wrap: wrap;
    justify-content: center;
  }

  .newsletter__inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .newsletter__form {
    max-width: 620px;
  }

  .footer__top {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .footer__nav {
    max-width: 600px;
  }

  .footer__loc {
    grid-column: auto;
    display: block;
  }

  .footer__loc a {
    margin-top: 14px;
    margin-left: 0;
  }

  .footer__legal {
    flex-wrap: wrap;
    line-height: 1.6;
  }

  .footer__legal > span:nth-child(2) {
    display: none;
  }

  .player-modal__panel {
    grid-template-columns: 0.82fr 1.18fr;
  }

  .player-modal__visual {
    min-height: 520px;
  }
}

@media (max-width: 720px) {
  .grain {
    opacity: 0.035;
  }

  .section-bar {
    gap: 14px;
    margin-bottom: 44px;
  }

  .section-bar > .mono:last-child {
    display: none;
  }

  .display--lg {
    font-size: clamp(3.1rem, 10.8vw, 5.6rem);
  }

  .display--xl {
    font-size: clamp(3.6rem, 14.2vw, 7rem);
  }

  .hero__inner {
    padding-top: 104px;
  }

  .hero__eyebrow {
    gap: 12px;
  }

  .hero__eyebrow-line {
    width: 28px;
  }

  .hero__title {
    font-size: clamp(4.1rem, 17.5vw, 7rem);
    line-height: 0.8;
  }

  .hero__line--second {
    padding-left: 0;
  }

  .hero__canvas-wrap {
    top: 15%;
    right: -30%;
    width: 135%;
    height: 75%;
    opacity: 0.72;
  }

  .hero__orbit {
    display: none;
  }

  .hero__intro > p {
    font-size: 13px;
  }

  .hero__actions {
    flex-wrap: wrap;
    gap: 20px;
  }

  .hero__stats {
    gap: 24px;
  }

  .hero-stat__value {
    font-size: 2.5rem;
  }

  .hero-stat {
    gap: 7px;
  }

  .hero-stat__label {
    font-size: 6px;
  }

  .ticker__track {
    height: 48px;
  }

  .ticker__track span {
    font-size: 17px;
    padding: 0 28px;
  }

  .manifesto__cols {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .artifact-wrap {
    min-height: 400px;
  }

  .stat-block {
    padding: 26px 18px;
  }

  .stat-block:first-child,
  .stat-block:nth-child(3) {
    padding-left: 0;
  }

  .stat-block__value {
    font-size: clamp(2.9rem, 10vw, 4.4rem);
  }

  .stat-block__label {
    margin-top: 12px;
  }

  .squad-stage {
    height: 430px;
  }

  .player-card {
    width: clamp(210px, 52vw, 250px);
  }

  .roster__rail {
    display: flex;
    flex-wrap: wrap;
  }

  .roster__identity {
    flex: 1;
    min-width: 150px;
  }

  .roster__metrics {
    flex: 1 0 100%;
  }

  .roster__name {
    font-size: 26px;
  }

  .division__meta {
    font-size: 6px;
  }

  .division__game {
    font-size: clamp(1.75rem, 7vw, 2.8rem);
  }

  .division__index {
    padding-top: 4px;
  }

  .countdown__clock div {
    min-width: 44px;
  }

  .countdown__clock b {
    font-size: 2.1rem;
  }

  .match-row {
    grid-template-columns: 64px 1fr auto;
    gap: 10px 14px;
  }

  .match-row__date strong {
    font-size: 40px;
  }

  .match-row__event small {
    display: none;
  }

  .match-row__versus {
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding-top: 6px;
  }

  .match-row__actions {
    grid-column: 1 / -1;
    grid-row: auto;
    justify-content: space-between;
    padding-top: 8px;
  }

  .match-row__team strong {
    font-size: 1.35rem;
  }

  .team-mark {
    width: 32px;
    height: 32px;
    font-size: 15px;
  }

  .add-cal {
    display: inline-flex;
  }

  .match-row__date {
    grid-row: auto;
  }

  .match-tab {
    padding: 0 12px 15px;
  }

  .drop__stage {
    min-height: 500px;
  }

  .jersey {
    width: min(96%, 520px);
  }

  .drop__buy {
    flex-wrap: wrap;
  }

  .drop__buy .button {
    width: 100%;
    margin-top: 8px;
  }

  .drop__vertical {
    display: none;
  }

  .drop__meta {
    gap: 8px 18px;
  }

  .enlist__foot {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .newsletter {
    padding-block: 50px 64px;
  }

  .newsletter__copy h3 {
    font-size: 1.9rem;
  }

  .newsletter__form input {
    font-size: 9px;
  }

  .newsletter__form button span {
    display: none;
  }

  .footer__nav {
    grid-template-columns: 1fr 1fr;
    gap: 34px;
  }

  .footer__wordmark {
    font-size: 26vw;
  }

  .footer__legal {
    font-size: 6px;
  }

  .footer__legal > div {
    gap: 12px;
  }

  .player-modal {
    padding: 12px;
  }

  .player-modal__panel {
    grid-template-columns: 1fr;
    max-height: 92vh;
    overflow-y: auto;
  }

  .player-modal__visual {
    min-height: 240px;
    max-height: 280px;
  }

  .player-modal__visual img {
    object-position: 50% 18%;
  }

  .player-modal__visual::after {
    background: linear-gradient(180deg, transparent 30%, #0c0d0f 100%);
  }

  .player-modal__content {
    padding: 30px 24px 36px;
  }

  .player-modal__content h2 {
    font-size: 4.4rem;
  }

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

@media (max-width: 480px) {
  .brand__tag {
    display: none;
  }

  .brand__word {
    font-size: 22px;
  }

  .brand__star {
    width: 34px;
    height: 26px;
  }

  .live-pill__viewers {
    display: none;
  }

  .hero__title {
    font-size: clamp(3.9rem, 17.8vw, 6rem);
  }

  .hero__intro > p {
    max-width: 330px;
  }

  .hero__actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero__actions .button {
    width: 100%;
    max-width: 300px;
    justify-content: space-between;
  }

  .hero__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .hero-stat {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .hero-stat__value {
    font-size: clamp(2rem, 9vw, 2.7rem);
  }

  .status-chip {
    font-size: 7px;
    padding: 0 10px;
  }

  .squad-stage {
    height: 390px;
  }

  .player-card {
    width: min(62vw, 226px);
  }

  .squad-stage__hint {
    font-size: 6px;
  }

  .roster__count {
    margin-left: 6px;
  }

  .round-button {
    width: 42px;
    height: 42px;
  }

  .roster__metrics {
    gap: 26px;
  }

  .division {
    min-height: 112px;
  }

  .division__content {
    min-height: 112px;
  }

  .division__arrow {
    width: 38px;
    height: 38px;
  }

  .division__game {
    font-size: 1.55rem;
  }

  .match-row__event span {
    font-size: 7px;
  }

  .match-row__actions {
    flex-wrap: wrap;
  }

  .drop__stage {
    min-height: 410px;
  }

  .jersey {
    width: 96%;
  }

  .drop__swatches {
    flex-wrap: wrap;
  }

  .enlist__actions {
    flex-direction: column;
    width: 100%;
  }

  .enlist__actions .button {
    width: 100%;
    max-width: 320px;
  }

  .newsletter__form button {
    padding-left: 12px;
  }

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

  .footer__legal {
    display: block;
  }

  .footer__legal > div {
    margin-top: 12px;
    flex-wrap: wrap;
  }
}

@media (pointer: coarse) {
  .cursor {
    display: none !important;
  }

  body.has-custom-cursor,
  body.has-custom-cursor a,
  body.has-custom-cursor button,
  body.has-custom-cursor .player-card,
  body.has-custom-cursor .jersey {
    cursor: auto;
  }

  body.has-custom-cursor .player-card,
  body.has-custom-cursor .jersey {
    cursor: pointer;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .hero__line,
  .hero__eyebrow,
  .hero__lower,
  .hero__scroll {
    opacity: 1;
    transform: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .player-card {
    transition: none;
  }

  .grain {
    animation: none;
  }

  .hero__grid {
    animation: none;
  }

  .loader {
    display: none;
  }

  body.is-loading {
    overflow: auto;
  }
}

/* Tablet range: the profile modal keeps two columns above 720px, so the
   four stat cells get tight. Trim the value size so words stay whole. */
@media (max-width: 900px) {
  .player-modal__stats div {
    padding: 12px 10px;
  }

  .player-modal__stats strong {
    font-size: 16px;
    line-height: 1.1;
  }
}
