/* ============================================================
   MEDIA LEAGUE — cinematic esports landing
   ============================================================ */

:root {
  --gold: #f6cf6e;
  --gold-hot: #ffdf8e;
  --gold-deep: #c99a3e;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --team-size: 56px;
}

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

html, body {
  height: 100%;
  overflow: hidden;
  overflow-anchor: none;
  background: #000;
  font-family: 'Inter', system-ui, sans-serif;
  cursor: url('assets/cursor.png') 5 1, auto;
}

@media (pointer: coarse) {
  html, body { cursor: auto; }
}

/* ---------- base layers ---------- */

#particles {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

/* looping worlds background video (behind every layer of the page) */

.w-bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  z-index: 0;
  pointer-events: none;
}

/* hub (index) background video — montage + boomerang loop, see app.js */

.hub-bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.65;
  z-index: 0;
  pointer-events: none;
}

.hub-bg-veil {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(3, 3, 5, 0.45) 0%, rgba(3, 3, 5, 0.3) 45%, rgba(3, 3, 5, 0.65) 100%);
}

.w-bg-veil {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(3, 3, 5, 0.55) 0%, rgba(3, 3, 5, 0.42) 45%, rgba(3, 3, 5, 0.78) 100%);
}

#quadrants { z-index: 3; }

.vignette {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  background:
    radial-gradient(120% 120% at 50% 50%, transparent 52%, rgba(0, 0, 0, 0.42) 82%, rgba(0, 0, 0, 0.9) 100%);
}

.page-glow {
  position: fixed;
  inset: 0;
  z-index: 55;
  pointer-events: none;
  background: radial-gradient(60% 60% at 50% 50%, rgba(255, 224, 160, 0.06), transparent 70%);
}

/* ---------- quadrants ---------- */

.quadrant {
  position: relative;
  overflow: hidden;
  background: #000;
  isolation: isolate;
}

.quadrant::after {
  /* fine inner border separating quadrants from the golden cross */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  box-shadow:
    inset -1px 0 0 rgba(255, 215, 130, 0.12),
    inset 0 -1px 0 rgba(255, 215, 130, 0.12);
}

/* Tinted radial gradients — dark & cinematic */
.q-lfl { background:
  radial-gradient(110% 110% at 50% 50%, rgba(126, 162, 44, 0.16) 0%, rgba(40, 46, 12, 0.10) 45%, transparent 72%),
  radial-gradient(140% 140% at 50% 130%, rgba(190, 150, 60, 0.10), transparent 60%),
  #000;
}

.q-lec { background:
  radial-gradient(110% 110% at 50% 50%, rgba(86, 78, 214, 0.20) 0%, rgba(44, 34, 110, 0.12) 45%, transparent 72%),
  radial-gradient(140% 140% at 130% 50%, rgba(120, 60, 190, 0.12), transparent 60%),
  #000;
}

.q-lpl { background:
  radial-gradient(110% 110% at 50% 50%, rgba(214, 46, 46, 0.18) 0%, rgba(96, 16, 16, 0.12) 45%, transparent 72%),
  radial-gradient(140% 140% at 20% 140%, rgba(210, 90, 40, 0.10), transparent 60%),
  #000;
}

.q-lck { background:
  radial-gradient(110% 110% at 50% 50%, rgba(38, 92, 214, 0.20) 0%, rgba(18, 40, 110, 0.12) 45%, transparent 72%),
  radial-gradient(140% 140% at 110% 20%, rgba(40, 130, 210, 0.10), transparent 60%),
  #000;
}

/* ---------- league center ---------- */

.league-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  z-index: 5;
  transition: opacity 0.35s var(--ease), filter 0.35s var(--ease);
  pointer-events: none;
}

.quadrant.hover-league .league-center { opacity: 0.4; filter: saturate(0.7); }

.halo {
  position: absolute;
  left: 50%;
  top: 42%;
  width: 340px;
  height: 340px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, var(--q-halo, rgba(255, 220, 140, 0.16)) 0%, transparent 65%);
  filter: blur(6px);
  animation: haloPulse 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes haloPulse {
  0%, 100% { opacity: 0.85; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 1;    transform: translate(-50%, -50%) scale(1.08); }
}

.q-lfl .halo { --q-halo: rgba(178, 214, 60, 0.17); }
.q-lec .halo { --q-halo: rgba(120, 110, 255, 0.19); }
.q-lpl .halo { --q-halo: rgba(255, 70, 70, 0.17); }
.q-lck .halo { --q-halo: rgba(70, 130, 255, 0.18); }

.league-icon {
  width: 148px;
  height: 148px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(255, 226, 150, 0.35)) drop-shadow(0 4px 18px rgba(0, 0, 0, 0.6));
  transition: transform 0.35s var(--ease);
}

.legend {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.legend-main {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(11px, 1.05vw, 17px);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-hot);
  text-shadow: 0 0 12px rgba(255, 214, 130, 0.55), 0 0 34px rgba(255, 200, 100, 0.25);
  white-space: nowrap;
}

.legend-tag {
  font-size: clamp(8px, 0.62vw, 11px);
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255, 240, 205, 0.45);
  white-space: nowrap;
}

/* ---------- team ring ---------- */

.ring {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.team {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--team-size);
  height: var(--team-size);
  transform: translate(-50%, -50%);
  pointer-events: auto;
  transition: transform 0.35s var(--ease), filter 0.35s var(--ease);
  outline: none;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(255, 255, 255, 0.88) 0%,
    rgba(255, 255, 255, 0.38) 52%,
    rgba(255, 255, 255, 0.10) 72%,
    transparent 80%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 0 14px rgba(0, 0, 0, 0.35);
}

.team img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.65)) drop-shadow(0 0 9px rgba(255, 224, 160, 0.16));
  transition: filter 0.35s var(--ease);
}

.team .name {
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  transform: translateX(-50%);
  font-size: clamp(8px, 0.62vw, 11px);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 244, 214, 0.92);
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.9);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
  white-space: nowrap;
}

.team.name-top .name {
  top: auto;
  bottom: calc(100% + 10px);
}

.team:hover,
.team:focus-visible {
  transform: translate(-50%, -50%) scale(1.42);
  z-index: 10;
}

.team:hover img,
.team:focus-visible img { filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.65)) drop-shadow(0 0 9px rgba(255, 224, 160, 0.16)) brightness(1.3); }

.team:hover .name,
.team:focus-visible .name { opacity: 1; }

/* ---------- golden cross ---------- */

.cross {
  position: fixed;
  z-index: 20;
  pointer-events: none;
}

.cross-v {
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, transparent 0%, rgba(255, 218, 138, 0.55) 18%, rgba(255, 218, 138, 0.95) 50%, rgba(255, 218, 138, 0.55) 82%, transparent 100%);
  box-shadow: 0 0 9px rgba(255, 214, 130, 0.55), 0 0 28px rgba(255, 200, 110, 0.25);
}

.cross-h {
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, transparent 0%, rgba(255, 218, 138, 0.55) 18%, rgba(255, 218, 138, 0.95) 50%, rgba(255, 218, 138, 0.55) 82%, transparent 100%);
  box-shadow: 0 0 9px rgba(255, 214, 130, 0.55), 0 0 28px rgba(255, 200, 110, 0.25);
}

/* ---------- center challenger emblem ---------- */

.center-logo {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 30;
  width: clamp(120px, 11vw, 210px);
  aspect-ratio: 1;
  pointer-events: none;
  animation: floatY 7s ease-in-out infinite;
}

@keyframes floatY {
  0%, 100% { transform: translate(-50%, -50%); }
  50%      { transform: translate(-50%, calc(-50% - 10px)); }
}

.center-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(255, 214, 120, 0.65))
          drop-shadow(0 0 46px rgba(255, 190, 90, 0.35))
          drop-shadow(0 0 90px rgba(255, 180, 80, 0.2));
}

.center-aura {
  position: absolute;
  inset: -70%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 214, 120, 0.16) 0%, rgba(255, 200, 100, 0.06) 40%, transparent 70%);
  animation: auraPulse 5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes auraPulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.12); }
}

/* ---------- detail pages ---------- */

.detail-page {
  height: 100%;
  overflow-y: auto;
  background: #000;
  user-select: none;
  -webkit-user-select: none;
}

.detail-page :hover:not(.ring-team):not(.ring-logo),
.detail-page :focus-visible:not(.ring-team):not(.ring-logo) { transform: none !important; }

img { -webkit-user-drag: none; user-select: none; }
* { -webkit-user-drag: none; -webkit-touch-callout: none; }

.detail-head {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 30px 90px 8px;
}

/* worlds: the head (title, trophy, challenger logo) follows the scroll —
   it sticks to the top and compacts into a solid bar that plays a copy of
   the video's end loop (crisp, no backdrop blur) and hides the page below */

.w-head-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  opacity: 0;
  z-index: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}

body[data-page="worlds"] .detail-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(4, 4, 6, 0);
  overflow: hidden;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease),
    padding-top 0.35s var(--ease);
}

body[data-page="worlds"] .detail-head[data-stuck] {
  background: #05050a;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), inset 0 -1px 0 rgba(255, 215, 130, 0.16);
  padding-top: 18px;
  padding-bottom: 14px;
}

/* the stuck bar only shows the video's own title (top of the end loop):
   the site's hero text fades out, trophy / logo / nav stay */

body[data-page="worlds"] .detail-head[data-stuck] .w-head-video { opacity: 1; }

body[data-page="worlds"] .detail-head[data-stuck] .w-eyebrow,
body[data-page="worlds"] .detail-head[data-stuck] .detail-title,
body[data-page="worlds"] .detail-head[data-stuck] .detail-tag {
  opacity: 0;
  pointer-events: none;
}

body[data-page="worlds"] .detail-head .w-trophy,
body[data-page="worlds"] .detail-head .detail-title,
body[data-page="worlds"] .detail-head .w-eyebrow,
body[data-page="worlds"] .detail-head .detail-tag,
body[data-page="worlds"] .detail-head .w-chall-dock,
body[data-page="worlds"] .detail-head .w-nav a {
  transition: height 0.35s var(--ease), width 0.35s var(--ease),
    font-size 0.35s var(--ease), padding 0.35s var(--ease), letter-spacing 0.35s var(--ease),
    opacity 0.45s var(--ease);
}

body[data-page="worlds"] .detail-head[data-stuck] .w-trophy { height: 180px; }
body[data-page="worlds"] .detail-head[data-stuck] .detail-title {
  font-size: clamp(16px, 1.7vw, 24px);
  letter-spacing: 0.24em;
}
body[data-page="worlds"] .detail-head[data-stuck] .w-eyebrow {
  font-size: 10px;
  letter-spacing: 0.3em;
}
body[data-page="worlds"] .detail-head[data-stuck] .detail-tag {
  font-size: 10px;
  letter-spacing: 0.26em;
}
body[data-page="worlds"] .detail-head[data-stuck] .w-chall-dock { width: 210px; height: 210px; }
body[data-page="worlds"] .detail-head[data-stuck] .w-nav a { padding: 7px 15px; font-size: 11.5px; }

/* keep the back pill clear of the bigger stuck trophy */
@media (min-width: 821px) {
  body[data-page="worlds"] .detail-head[data-stuck] { padding-left: 210px; padding-right: 60px; }
}

.detail-back-row {
  position: absolute;
  left: 20px;
  top: 26px;
  z-index: 2;
  display: flex;
  gap: 10px;
}

.detail-back-row .detail-back { position: static; }

.detail-back {
  position: absolute;
  left: 20px;
  top: 26px;
  z-index: 2;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(255, 220, 150, 0.28);
  border-radius: 999px;
  padding: 9px 16px;
  background: rgba(255, 255, 255, 0.03);
  text-decoration: none;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.detail-back:hover {
  background: rgba(255, 210, 120, 0.12);
  border-color: rgba(255, 220, 150, 0.6);
  box-shadow: 0 0 16px rgba(255, 210, 130, 0.2);
}

.detail-title {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(22px, 2.75vw, 40px);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-hot);
  text-shadow: 0 0 20px rgba(255, 214, 130, 0.5), 0 0 60px var(--pg-glow, rgba(255, 200, 110, 0.3));
  text-align: center;
}

.detail-tag {
  font-size: clamp(11px, 0.9vw, 15px);
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: rgba(255, 240, 205, 0.48);
  text-align: center;
}

.detail-body {
  width: min(1400px, 100%);
  margin: 0 auto;
  padding: 26px clamp(16px, 2.6vw, 44px) 46px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 340px) minmax(0, 1fr);
  gap: clamp(18px, 2.6vw, 44px);
  align-items: center;
  min-height: calc(100vh - 140px);
}

.detail-body.league.no-news {
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
}

.col { min-width: 0; min-height: 0; display: flex; flex-direction: column; }

.col-mid { display: grid; place-items: center; }

.col-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 600;
  font-size: clamp(12.5px, 1.06vw, 16px);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(255, 228, 160, 0.85);
  margin-bottom: 14px;
  white-space: nowrap;
}

.col-head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 215, 130, 0.28), transparent);
}

.mhead { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }

.mhead .col-head { margin-bottom: 0; flex: 1; }

.col-list {
  list-style: none;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 215, 130, 0.25) transparent;
  max-height: min(66vh, 720px);
}

.col-list::-webkit-scrollbar { width: 6px; }

.col-list::-webkit-scrollbar-thumb { background: rgba(255, 215, 130, 0.22); border-radius: 6px; }

.news-item {
  padding: 13px 15px;
  border-radius: 13px;
  border: 1px solid rgba(var(--tw-rgb, 255, 220, 150), 0.16);
  background: linear-gradient(135deg, rgba(var(--tw-rgb, 255, 215, 130), 0.10) 0%, rgba(255, 255, 255, 0.02) 55%);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.news-item:hover {
  border-color: rgba(var(--tw-rgb, 255, 220, 150), 0.45);
  background: linear-gradient(135deg, rgba(var(--tw-rgb, 255, 215, 130), 0.16) 0%, rgba(255, 255, 255, 0.04) 55%);
}

.news-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 7px;
}

.news-title { font-size: clamp(14px, 1.06vw, 17px); color: #f3ead6; line-height: 1.45; }

.news-meta { margin-top: 8px; font-size: 12px; letter-spacing: 0.08em; color: rgba(255, 240, 205, 0.4); }

/* league ring */

.league-ring {
  position: relative;
  width: min(300px, 28vw);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(255, 215, 130, 0.16);
  background: radial-gradient(circle, transparent 54%, rgba(255, 215, 130, 0.05) 76%, rgba(255, 215, 130, 0.12) 100%);
  box-shadow: 0 0 70px var(--pg-glow, rgba(255, 200, 110, 0.10));
}

.ring-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 32%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.ring-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 20px var(--pg-glow, rgba(255, 214, 120, 0.45))) drop-shadow(0 6px 26px rgba(0, 0, 0, 0.75));
}

.ring-team {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: clamp(30px, 3.2vw, 50px);
  height: clamp(30px, 3.2vw, 50px);
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(255, 255, 255, 0.4) 52%,
    rgba(255, 255, 255, 0.1) 72%,
    transparent 80%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 0 12px rgba(0, 0, 0, 0.3);
  display: grid;
  place-items: center;
  transition: transform 0.3s var(--ease);
  z-index: 1;
}

.ring-team:hover { z-index: 3; box-shadow: 0 0 0 1px rgba(255, 224, 160, 0.55), 0 0 14px rgba(0, 0, 0, 0.35); }

.ring-team img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  transition: filter 0.25s var(--ease);
}

/* team page */

.detail-body.team {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: start;
  padding-top: 40px;
}

.col-team { align-self: center; }

.team-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.hero-img {
  width: clamp(150px, 15vw, 230px);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle,
    rgba(var(--tw-rgb, 255, 215, 130), 0.9) 0%,
    rgba(var(--tw-rgb, 255, 215, 130), 0.35) 52%,
    rgba(var(--tw-rgb, 255, 215, 130), 0.08) 72%,
    transparent 80%);
  box-shadow: 0 0 0 1px rgba(255, 215, 130, 0.14), 0 0 60px var(--pg-glow, rgba(255, 200, 110, 0.18));
}

.hero-img img {
  width: 72%;
  height: 72%;
  object-fit: contain;
  filter: drop-shadow(0 6px 22px rgba(0, 0, 0, 0.7));
}

.spoiler-toggle {
  flex: none;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-hot);
  border: 1px solid rgba(255, 220, 150, 0.3);
  border-radius: 999px;
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.04);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.spoiler-toggle:hover {
  background: rgba(255, 210, 120, 0.12);
  border-color: rgba(255, 220, 150, 0.6);
  box-shadow: 0 0 16px rgba(255, 210, 130, 0.2);
}

/* per-match spoil button */
.spoill-one {
  flex: none;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold-hot, #ffdf8e);
  border: 1px solid rgba(255, 220, 150, 0.3);
  border-radius: 999px;
  padding: 4px 10px;
  min-width: 54px;
  text-align: center;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: background 0.2s var(--ease, ease), border-color 0.2s var(--ease, ease);
}

.spoill-one:hover { background: rgba(255, 210, 120, 0.12); }

.spoill-one[aria-pressed="true"] {
  background: rgba(255, 210, 120, 0.18);
  border-color: rgba(255, 220, 150, 0.65);
}

.spoill-one:disabled { opacity: 0.35; cursor: default; }

.match-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 13px;
  border-radius: 13px;
  border: 1px solid rgba(var(--tw-rgb, 255, 220, 150), 0.16);
  background: rgba(var(--tw-rgb, 255, 215, 130), 0.06);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.match-item:hover {
  border-color: rgba(var(--tw-rgb, 255, 220, 150), 0.4);
  background: rgba(var(--tw-rgb, 255, 215, 130), 0.10);
}

.match-date {
  flex: none;
  width: 40px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.05em;
}

.match-date .wtime {
  display: block;
  font-size: 9px;
  letter-spacing: 0.04em;
  color: rgba(255, 240, 205, 0.5);
  margin-top: 2px;
}

.match-teams { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }

.match-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: clamp(13px, 1vw, 16px);
  color: #ece2cb;
}

.match-row.win {
  color: var(--gold-hot);
  font-weight: 600;
  text-shadow: 0 0 12px rgba(255, 214, 130, 0.45);
}

.mname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.match-row .mname { flex: 1; min-width: 0; }

.match-row .wlogo-sm { width: 24px; height: 24px; font-size: 9px; }

.match-score {
  flex: none;
  min-width: 30px;
  text-align: right;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
}

.match-score.hidden { color: rgba(255, 240, 205, 0.32); letter-spacing: 0.25em; }

.match-format {
  flex: none;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: rgba(255, 240, 205, 0.4);
  border: 1px solid rgba(255, 220, 150, 0.14);
  border-radius: 6px;
  padding: 2px 6px;
}

/* ---------- tutorial popup ---------- */

.tuto-btn {
  position: fixed;
  left: 20px;
  top: 20px;
  z-index: 80;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 220, 150, 0.3);
  background: rgba(20, 17, 10, 0.85);
  color: var(--gold-hot);
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  font-size: 17px;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(255, 215, 130, 0.1), 0 8px 24px rgba(0, 0, 0, 0.5);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.detail-page .tuto-btn { top: 78px; }

.tuto-btn:hover {
  background: rgba(255, 210, 120, 0.15);
  border-color: rgba(255, 220, 150, 0.65);
}

/* link back to Worlds from the leagues page */
.worlds-link.home-link { right: auto; left: 20px; }
body.leagues-page .tuto-btn { top: auto; bottom: 20px; }

.worlds-link {
  position: fixed;
  right: 20px;
  top: 20px;
  z-index: 80;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gold-hot);
  border: 1px solid rgba(255, 220, 150, 0.3);
  border-radius: 999px;
  padding: 12px 18px;
  background: rgba(20, 17, 10, 0.85);
  box-shadow: 0 0 0 1px rgba(255, 215, 130, 0.1), 0 8px 24px rgba(0, 0, 0, 0.5);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.worlds-link:hover {
  background: rgba(255, 210, 120, 0.15);
  border-color: rgba(255, 220, 150, 0.65);
}

.tuto {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.tuto[hidden] { display: none; }

.tuto-card {
  position: relative;
  width: min(460px, 92vw);
  border-radius: 18px;
  border: 1px solid rgba(255, 215, 130, 0.18);
  background: linear-gradient(165deg, rgba(28, 25, 17, 0.97), rgba(10, 9, 7, 0.98));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
  padding: 30px 30px 26px;
}

.tuto-title {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-hot);
  margin-bottom: 18px;
}

.tuto-list {
  list-style: none;
  counter-reset: tuto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tuto-list li {
  counter-increment: tuto;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: #ece2cb;
  font-size: 16px;
  line-height: 1.55;
}

.tuto-list li::before {
  content: counter(tuto);
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(255, 215, 130, 0.35);
  color: var(--gold);
  font-size: 14px;
  font-weight: 700;
  display: grid;
  place-items: center;
  margin-top: 1px;
}

.tuto-list li > span { flex: 1; min-width: 0; }

.tuto-list b { color: var(--gold-hot); font-weight: 600; }

.tuto-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 220, 150, 0.25);
  background: transparent;
  color: var(--gold-hot);
  font-size: 14px;
  cursor: pointer;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.tuto-close:hover {
  background: rgba(255, 210, 120, 0.12);
  border-color: rgba(255, 220, 150, 0.55);
}

/* ---------- worlds 2026 ---------- */

.w-eyebrow {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(255, 240, 205, 0.5);
}

.w-tophead {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 32px);
  width: 100%;
  z-index: 2;
}

/* header inner constrained like the body, pills aligned under the title */

.w-head-inner {
  width: min(1400px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 2;
}

.w-head-inner .w-nav { align-self: flex-start; margin-top: 0; }

.w-hero-logo {
  flex: none;
  height: clamp(120px, 12vw, 175px);
  width: auto;
  max-width: 36vw;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(255, 214, 120, 0.55))
          drop-shadow(0 0 40px rgba(255, 190, 90, 0.3));
}

.w-hero-txt { flex: 1; min-width: 0; text-align: left; perspective: 700px; }

.w-hero-txt .detail-title,
.w-hero-txt .detail-tag { text-align: left; }

/* every header text flips while the challenger logo flies over it */

.w-eyebrow, .w-hero-txt .detail-title, .w-hero-txt .detail-tag, .w-nav a { backface-visibility: hidden; }

.w-flip { animation: wtitleflip 0.9s var(--ease) both; }

@keyframes wtitleflip {
  0% { transform: rotateY(0deg); }
  50% { transform: rotateY(180deg) scale(1.05); }
  100% { transform: rotateY(360deg); }
}

/* dock where the challenger logo lands after its flight */

.w-chall-dock { flex: none; width: 256px; height: 256px; margin-left: auto; }

.w-chall-dock img { width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(255, 214, 120, 0.55)); }

.w-nav {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  z-index: 2;
  perspective: 700px;
}

.w-nav a {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gold);
  border: 1px solid rgba(255, 220, 150, 0.28);
  border-radius: 999px;
  padding: 9px 18px;
  background: rgba(255, 255, 255, 0.03);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.w-nav a:hover {
  background: rgba(255, 210, 120, 0.12);
  border-color: rgba(255, 220, 150, 0.6);
}

.w-body {
  position: relative;
  z-index: 3;
  width: min(1400px, 100%);
  margin: 0 auto;
  padding: 10px clamp(16px, 2.6vw, 44px) 60px;
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.w-sec { scroll-margin-top: 150px; min-width: 0; }

.w-note {
  font-size: clamp(14px, 1.06vw, 17px);
  line-height: 1.6;
  color: rgba(243, 234, 214, 0.72);
  margin-bottom: 18px;
  max-width: 900px;
}

.w-note b { color: var(--gold-hot); font-weight: 600; }

.w-sub {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 228, 160, 0.7);
  margin: 22px 0 12px;
}

.w-foot {
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 240, 205, 0.35);
  text-align: center;
}

/* play-in participants strip */

.wpi-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.wpi-team {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 200px;
  max-width: 300px;
  border-radius: 14px;
  border: 1px solid rgba(255, 170, 90, 0.24);
  background: linear-gradient(135deg, rgba(255, 150, 70, 0.09) 0%, rgba(255, 255, 255, 0.02) 55%);
  padding: 10px 14px;
  min-width: 0;
}

.wpi-team .wlogo, .wpi-team .wavatar { width: 46px; height: 46px; font-size: 19px; }

.wpi-txt { display: flex; flex-direction: row; align-items: center; gap: 8px; min-width: 0; flex: 1; }

.wpi-name {
  flex: 1;
  min-width: 0;
  font-size: 16px;
  line-height: 1.1;
  font-weight: 600;
  color: #ece2cb;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* league mark on a WHITE orb disc — guarantees contrast even for dark marks (LCK…) */

.wleague-orb {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle,
    #ffffff 0%,
    rgba(255, 255, 255, 0.94) 62%,
    rgba(255, 255, 255, 0.55) 80%,
    rgba(255, 255, 255, 0.15) 92%);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.wleague-orb img {
  width: 72%;
  height: 72%;
  object-fit: contain;
}

/* play-in strip + swiss rows: league orb as big as possible */

.wpi-txt .wleague-orb, .w-bucket .wleague-orb { width: 44px; height: 44px; }

/* league text chip — fallback when no image mark exists */

.wleague-chip {
  flex: none;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold-hot, #ffdf8e);
  border: 1px solid rgba(255, 220, 150, 0.3);
  border-radius: 6px;
  padding: 2px 7px;
  background: rgba(255, 255, 255, 0.03);
}

/* bracket layout */

.wbracket { display: grid; gap: 16px; align-items: start; }

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

.w-knockout { grid-template-columns: 1.2fr 1fr 1fr; }

.w-round { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

.w-round-title {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 215, 130, 0.2);
}

.w-round-sub {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 240, 205, 0.4);
  margin-top: 6px;
}

.w-note-inline {
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 240, 205, 0.45);
  border: 1px dashed rgba(255, 215, 130, 0.25);
  border-radius: 12px;
  padding: 10px 14px;
  text-align: center;
}

.w-note-inline b { color: var(--gold-hot); }

/* bracket match card */

.wmatch {
  border-radius: 14px;
  border: 1px solid rgba(255, 220, 150, 0.16);
  background: linear-gradient(135deg, rgba(255, 215, 130, 0.07) 0%, rgba(255, 255, 255, 0.02) 55%);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.wmatch-live { border-color: rgba(255, 120, 120, 0.5); box-shadow: 0 0 18px rgba(255, 90, 90, 0.12); }

/* phase tints — same black/gold language, subtle ambient color per stage */
.w-playin .wmatch {
  border-color: rgba(255, 170, 90, 0.24);
  background: linear-gradient(135deg, rgba(255, 150, 70, 0.09) 0%, rgba(255, 255, 255, 0.02) 55%);
}

.w-knockout .wmatch {
  border-color: rgba(150, 130, 255, 0.28);
  background: linear-gradient(135deg, rgba(120, 110, 255, 0.10) 0%, rgba(255, 255, 255, 0.02) 55%);
}

.wmatch-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 240, 205, 0.45);
}

.wmatch-side { display: flex; align-items: center; gap: 8px; }

.wmatch-fmt {
  border: 1px solid rgba(255, 220, 150, 0.2);
  border-radius: 6px;
  padding: 2px 7px;
  color: rgba(255, 228, 160, 0.8);
}

.wteam {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  border-radius: 9px;
  padding: 5px 8px;
}

.wteam.win { background: rgba(255, 210, 120, 0.09); }

.wteam img {
  flex: none;
  width: 30px;
  height: 30px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
}
/* glassmorphism logo orb — GOLDEN aura */

.wlogo {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle,
    rgba(255, 223, 142, 0.95) 0%,
    rgba(255, 205, 110, 0.45) 52%,
    rgba(255, 200, 100, 0.12) 72%,
    transparent 80%);
  box-shadow: 0 0 0 1px rgba(255, 215, 130, 0.35), 0 0 18px rgba(255, 200, 110, 0.25);
}

.wlogo img {
  width: 78%;
  height: 78%;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.65));
}

.wteam .wavatar {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #0c0a06;
  background: linear-gradient(135deg, #f6cf6e, #c99a3e);
}

.wteam .wname {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: clamp(14px, 1.06vw, 17px);
  color: #ece2cb;
}

.wteam.win .wname { color: var(--gold-hot); font-weight: 600; }

.wteam .wscore {
  flex: none;
  min-width: 24px;
  text-align: right;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  font-size: 19px;
  color: #fff;
}

.wteam .wscore.hidden { color: rgba(255, 240, 205, 0.3); font-size: 11px; letter-spacing: 0.2em; }

/* swiss buckets */

.w-swiss-grids { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }

.w-bucket {
  border-radius: 14px;
  border: 1px solid rgba(255, 220, 150, 0.16);
  background: rgba(255, 255, 255, 0.02);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.w-bucket-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-flow: column;
  grid-template-rows: repeat(8, auto);
  gap: 8px;
}

.w-bucket.good { border-color: rgba(140, 230, 150, 0.35); }
.w-bucket.bad { border-color: rgba(255, 130, 130, 0.3); }

.w-bucket-title {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 215, 130, 0.2);
}

.w-bucket .wteam { padding: 3px 6px; }

.w-bucket .wname { flex: 0 1 auto; }

.w-bucket .wrec {
  flex: none;
  margin-left: auto;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(255, 240, 205, 0.5);
}

/* swiss rows mirror the play-in strip sizing */

.w-bucket .wlogo, .w-bucket .wavatar { width: 46px; height: 46px; font-size: 19px; }
.w-bucket .wname { font-size: 16px; }
.w-bucket .wrec { font-size: 16px; }

.w-matchlist { max-height: min(60vh, 640px); }

/* ---------- worlds 3D layer (Three.js, optional enhancement) ---------- */

.w-trophy { position: relative; flex: none; height: clamp(120px, 12vw, 175px); aspect-ratio: 1; }
.w-trophy .w-hero-logo { width: 100%; height: 100%; }
.w-trophy canvas, .w-trophy iframe { position: absolute; inset: 0; width: 100%; height: 100%; display: block; border: 0; border-radius: 14px; box-shadow: 0 0 0 1px rgba(255, 215, 130, 0.25), 0 12px 40px rgba(0, 0, 0, 0.6); }

.wb-3d {
  height: 540px;
  border-radius: 14px;
  border: 1px solid rgba(255, 220, 150, 0.2);
  background: radial-gradient(80% 100% at 50% 0%, rgba(255, 215, 130, 0.06), transparent 70%), #050403;
  overflow: hidden;
  position: relative;
  margin-top: 4px;
}

.wb-3d[hidden] { display: none; }

.wb-3d canvas { width: 100%; height: 100%; display: block; touch-action: none; }

/* ---------- hub (index) : split page, center emblem ---------- */

.hub {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  justify-items: center;
  gap: clamp(20px, 4vw, 80px);
  padding: 0 clamp(20px, 5vw, 90px);
  user-select: none;
  -webkit-user-select: none;
}

.hub-left { grid-column: 1; }
.hub-right { grid-column: 2; }

.hub-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
  text-align: center;
}

.hub-title {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(18px, 2.2vw, 34px);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-hot);
  text-shadow: 0 0 18px rgba(255, 214, 130, 0.5), 0 0 50px rgba(255, 200, 110, 0.25);
}

.hub-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.hub-links a {
  font-size: clamp(13px, 1.1vw, 17px);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gold);
  border: 1px solid rgba(255, 220, 150, 0.28);
  border-radius: 999px;
  padding: 13px 30px;
  min-width: clamp(200px, 16vw, 280px);
  background: rgba(255, 255, 255, 0.03);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), color 0.25s var(--ease);
}

.hub-links a:hover,
.hub-links a:focus-visible {
  background: rgba(255, 210, 120, 0.12);
  border-color: rgba(255, 220, 150, 0.6);
  box-shadow: 0 0 18px rgba(255, 210, 130, 0.22);
  color: var(--gold-hot);
}

.hub-center {
  position: absolute;
  left: 50%;
  bottom: clamp(48px, 9vh, 90px);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 2;
}

@keyframes hubFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

.hub-logo {
  width: clamp(130px, 13vw, 230px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(255, 214, 120, 0.65))
          drop-shadow(0 0 46px rgba(255, 190, 90, 0.35))
          drop-shadow(0 0 90px rgba(255, 180, 80, 0.2));
  animation: hubFloat 7s ease-in-out infinite;
}

.hub-name {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(15px, 1.5vw, 24px);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold-hot);
  text-shadow: 0 0 14px rgba(255, 214, 130, 0.55), 0 0 40px rgba(255, 200, 100, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.25;
  text-indent: 0.34em;
}

@media (max-width: 820px) {
  .hub {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 26px;
    padding: 30px 18px;
    align-content: center;
  }
  .hub-left, .hub-right { grid-column: 1; }
  .hub-center { position: static; transform: none; order: -1; }
  .hub-links a { min-width: min(78vw, 280px); }
}

/* ---------- news page ---------- */

.n-body {
  position: relative;
  z-index: 3;
  width: min(920px, 100%);
  margin: 0 auto;
  padding: 18px clamp(16px, 2.6vw, 44px) 70px;
}

.n-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.n-item {
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid rgba(255, 220, 150, 0.16);
  background: linear-gradient(135deg, rgba(255, 215, 130, 0.09) 0%, rgba(255, 255, 255, 0.02) 55%);
  cursor: pointer;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.n-item:hover {
  border-color: rgba(255, 220, 150, 0.45);
  background: linear-gradient(135deg, rgba(255, 215, 130, 0.15) 0%, rgba(255, 255, 255, 0.04) 55%);
  box-shadow: 0 0 18px rgba(255, 210, 130, 0.12);
}

.n-item .news-title { font-size: clamp(15px, 1.2vw, 19px); }

.n-prev {
  margin-top: 8px;
  font-size: clamp(13px, 1vw, 15px);
  line-height: 1.55;
  color: rgba(243, 234, 214, 0.65);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.n-empty {
  padding: 30px;
  text-align: center;
  border: 1px dashed rgba(255, 215, 130, 0.25);
  border-radius: 14px;
  color: rgba(255, 240, 205, 0.5);
  font-size: 15px;
  letter-spacing: 0.06em;
}

.n-article { display: flex; flex-direction: column; gap: 14px; }
.n-article[hidden] { display: none; }

.n-back {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(255, 220, 150, 0.28);
  border-radius: 999px;
  padding: 9px 16px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.n-back:hover { background: rgba(255, 210, 120, 0.12); border-color: rgba(255, 220, 150, 0.6); }

.n-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.n-title {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(20px, 2vw, 30px);
  line-height: 1.3;
  color: #f3ead6;
}

.n-meta { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 240, 205, 0.4); }

.n-content { display: flex; flex-direction: column; gap: 14px; }

.n-content p {
  font-size: clamp(14px, 1.1vw, 17px);
  line-height: 1.7;
  color: rgba(243, 234, 214, 0.85);
}

.article-team-logo {
  display: inline-block;
  height: 1.15em;
  width: auto;
  max-width: 2em;
  object-fit: contain;
  vertical-align: middle;
  margin: 0 0.2em;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.5));
}

.article-league-badge {
  display: inline-block;
  height: 1.1em;
  width: auto;
  max-width: 2em;
  object-fit: contain;
  vertical-align: middle;
  margin: 0 0.25em;
  opacity: 0.85;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.5));
}

.n-media { display: flex; flex-direction: column; gap: 16px; margin-top: 6px; }

.n-media img.n-img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255, 220, 150, 0.18);
  display: block;
}

.n-media .n-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 220, 150, 0.18);
  background: #000;
}

.n-media .n-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.n-media video.n-video {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255, 220, 150, 0.18);
  background: #000;
}

.n-linkcard {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 220, 150, 0.22);
  background: linear-gradient(135deg, rgba(255, 215, 130, 0.1) 0%, rgba(255, 255, 255, 0.02) 55%);
  text-decoration: none;
  color: var(--gold-hot);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.n-linkcard:hover { border-color: rgba(255, 220, 150, 0.55); background: rgba(255, 210, 120, 0.12); }

/* ---------- large screens ---------- */

@media (min-width: 2000px) {
  :root { --team-size: 64px; }
  .league-icon { width: 186px; height: 186px; }
  .center-logo { width: 240px; }
}

@media (max-width: 820px) {
  :root { --team-size: 40px; }
  /* mobile home: 4 tappable league logos only (no team ring, no text, no center emblem) */
  .ring { display: none; }
  .legend { display: none; }
  .center-logo { display: none; }
  .league-center { gap: 0; }
  .halo { width: 220px; height: 220px; }
  .league-icon { width: min(34vw, 120px); height: min(34vw, 120px); }
  .team .name { top: calc(100% + 6px); font-size: 8px; }
  .team.name-top .name { bottom: calc(100% + 8px); }

  .detail-head { padding: 26px 16px 8px; }
  .detail-back-row { position: static; align-self: flex-start; margin-bottom: 4px; }
  .detail-back { position: static; }
  .tuto-btn { left: 16px; top: auto; bottom: 16px; }
  .detail-page .tuto-btn { top: auto; }
  .detail-body,
  .detail-body.team {
    grid-template-columns: 1fr;
    gap: 26px;
    align-items: stretch;
    min-height: 0;
  }
  .detail-body.team { padding-top: 24px; }
  .detail-body.league .col-mid { order: -1; }
  .detail-body.team .col-team { order: -1; }
  .league-ring { width: min(240px, 62vw); }
  .col-list { max-height: none; }

  /* worlds: brackets scroll horizontally on small screens */
  .wbracket {
    display: flex;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 215, 130, 0.25) transparent;
  }
  .w-round { flex: 0 0 min(78vw, 300px); scroll-snap-align: start; }
  .w-swiss-grids { display: block; }
  .w-bucket-list { grid-template-columns: minmax(0, 1fr); grid-auto-flow: row; }
  .w-nav { flex-wrap: wrap; justify-content: center; }
  .w-body { gap: 34px; }

  /* worlds header stacks on small screens */
  .w-tophead { flex-direction: column; text-align: center; }
  .w-head-inner { align-items: center; }
  .w-head-inner .w-nav { align-self: center; }
  .w-hero-logo { height: 110px; max-width: 70vw; }
  .w-trophy { height: 110px; }
  .w-chall-dock { width: 140px; height: 140px; }
  .wb-3d { height: 420px; }
  .w-hero-txt, .w-hero-txt .detail-title, .w-hero-txt .detail-tag { text-align: center; }
  .w-sec { scroll-margin-top: 120px; }
}

/* ---------- riot disclaimer bar ---------- */

.riot-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  padding: 14px 24px;
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: rgba(255, 240, 205, 0.55);
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 1) 40%);
  pointer-events: none;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.6s var(--ease), opacity 0.6s var(--ease);
}

.riot-bar.visible {
  transform: translateY(0);
  opacity: 1;
}

/* pages without video: always visible */
body:not([data-page="home"]):not([data-page="worlds"]) .riot-bar,
body.leagues-page .riot-bar {
  position: fixed;
  transform: translateY(0);
  opacity: 1;
  background: rgba(0, 0, 0, 1);
}

/* ---------- mobile (iPhone, small phones) ---------- */

@media (max-width: 480px) {
  :root { --team-size: 36px; }

  /* hub: stack columns, larger tap targets */
  .hub {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 30px;
    padding: 24px 16px;
    align-content: center;
    align-items: center;
  }
  .hub-left, .hub-right { grid-column: 1; }
  .hub-center { position: static; transform: none; order: -1; }
  .hub-links a { min-width: min(82vw, 300px); padding: 14px 32px; font-size: 14px; letter-spacing: 0.18em; }
  .hub-title { font-size: 17px; letter-spacing: 0.22em; }
  .hub-logo { width: clamp(110px, 40vw, 180px); }
  .hub-name { font-size: 15px; letter-spacing: 0.28em; }
  .vignette { background: radial-gradient(130% 130% at 50% 50%, transparent 42%, rgba(0,0,0,0.48) 82%, rgba(0,0,0,0.92) 100%); }

  /* riot-bar: smaller text, tighter padding */
  .riot-bar { padding: 10px 14px; font-size: 10px; letter-spacing: 0.06em; }

  /* detail pages: single column, comfortable spacing */
  .detail-head { padding: 22px 14px 6px; gap: 6px; }
  .detail-back-row { position: static; align-self: flex-start; margin-bottom: 4px; }
  .detail-back { position: static; font-size: 10px; padding: 8px 14px; letter-spacing: 0.16em; }
  .tuto-btn { left: 14px; top: auto; bottom: 14px; width: 40px; height: 40px; font-size: 15px; }
  .detail-page .tuto-btn { top: auto; }
  .detail-body,
  .detail-body.team,
  .detail-body.league.no-news {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 20px 14px 36px;
    align-items: stretch;
    min-height: 0;
  }
  .detail-body.league .col-mid { order: -1; }
  .detail-body.team .col-team { order: -1; }
  .league-ring { width: min(200px, 58vw); }
  .col-list { max-height: none; padding-right: 0; }
  .col-head { font-size: 12px; letter-spacing: 0.2em; margin-bottom: 10px; white-space: normal; }

  /* leagues page */
  .league-icon { width: min(38vw, 130px); height: min(38vw, 130px); }
  .halo { width: 200px; height: 200px; }
  .team .name { font-size: 8px; top: calc(100% + 4px); }

  /* team page */
  .hero-img { width: clamp(120px, 34vw, 170px); }
  .match-item { padding: 9px 11px; gap: 10px; }
  .match-date { width: 34px; font-size: 11px; }
  .match-row { font-size: 13px; }
  .match-row .wlogo-sm { width: 22px; height: 22px; font-size: 8px; }
  .match-score { font-size: 14px; min-width: 26px; }
  .match-format { font-size: 9px; padding: 2px 5px; }
  .spoill-one { font-size: 9px; padding: 4px 8px; min-width: 48px; }
  .spoiler-toggle { font-size: 8px; padding: 6px 12px; }

  /* worlds */
  .w-tophead { flex-direction: column; text-align: center; gap: 12px; }
  .w-head-inner { align-items: center; }
  .w-head-inner .w-nav { align-self: center; }
  .w-hero-logo { height: 96px; max-width: 78vw; }
  .w-trophy { height: 96px; }
  .w-chall-dock { width: 120px; height: 120px; }
  .w-hero-txt, .w-hero-txt .detail-title, .w-hero-txt .detail-tag { text-align: center; }
  .w-eyebrow { font-size: 11px; letter-spacing: 0.24em; }
  .detail-title { font-size: clamp(18px, 6vw, 24px); letter-spacing: 0.2em; }
  .detail-tag { font-size: 10px; letter-spacing: 0.24em; }
  .w-nav { flex-wrap: wrap; justify-content: center; gap: 8px; }
  .w-nav a { font-size: 11px; padding: 8px 14px; letter-spacing: 0.14em; }
  .w-body { gap: 30px; padding: 8px 14px 44px; }
  .w-note { font-size: 13px; }
  .wpi-team { flex: 1 1 100%; max-width: none; }
  .wpi-txt { flex-direction: column; align-items: flex-start; gap: 4px; }
  .wpi-name { font-size: 14px; white-space: normal; }
  .wbracket {
    display: flex;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 215, 130, 0.25) transparent;
    -webkit-overflow-scrolling: touch;
  }
  .w-round { flex: 0 0 min(82vw, 310px); scroll-snap-align: start; }
  .w-swiss-grids { display: block; }
  .w-bucket-list { grid-template-columns: minmax(0, 1fr); grid-auto-flow: row; }
  .w-bucket .wlogo, .w-bucket .wavatar { width: 36px; height: 36px; font-size: 15px; }
  .w-bucket .wname { font-size: 13px; }
  .w-bucket .wrec { font-size: 13px; }
  .wmatch { padding: 10px 12px; }
  .wteam .wname { font-size: 13px; }
  .wteam .wscore { font-size: 16px; }
  .wteam img { width: 26px; height: 26px; }
  .wb-3d { height: 340px; }
  .w-sec { scroll-margin-top: 110px; }

  /* news page */
  .n-body { padding: 14px 12px 50px; }
  .n-item { padding: 14px 15px; border-radius: 12px; }
  .n-item .news-title { font-size: 15px; }
  .n-prev { font-size: 13px; margin-top: 6px; }
  .n-back { font-size: 10px; padding: 8px 14px; }
  .n-title { font-size: clamp(18px, 5.5vw, 24px); letter-spacing: 0.2em; }
  .n-tag { font-size: 10px; letter-spacing: 0.18em; }
  .n-meta { font-size: 11px; }
  .n-content p { font-size: 14px; line-height: 1.65; }
  .n-linkcard { padding: 12px 14px; font-size: 12px; }

  /* tutorial modal */
  .tuto-card { width: min(460px, 94vw); padding: 24px 20px 20px; }
  .tuto-title { font-size: 16px; letter-spacing: 0.16em; }
  .tuto-list li { font-size: 14px; gap: 10px; }
  .tuto-list li::before { width: 22px; height: 22px; font-size: 12px; }

  /* worlds-link pill */
  .worlds-link { right: 14px; top: 14px; font-size: 9px; padding: 10px 14px; }
  .worlds-link.home-link { left: 14px; }
  body.leagues-page .tuto-btn { bottom: 14px; }
}

/* very small screens (iPhone SE, older phones) */
@media (max-width: 360px) {
  .hub-links a { min-width: 86vw; padding: 12px 24px; font-size: 13px; }
  .hub-title { font-size: 15px; letter-spacing: 0.18em; }
  .hub-logo { width: clamp(100px, 36vw, 150px); }
  .detail-title { font-size: 16px; letter-spacing: 0.16em; }
  .w-nav a { font-size: 10px; padding: 7px 12px; }
  .league-icon { width: min(42vw, 120px); height: min(42vw, 120px); }
  .league-ring { width: min(170px, 54vw); }
  .hero-img { width: clamp(100px, 30vw, 140px); }
}
