@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --bg: #09090f;
  --panel: #12121b;
  --panel-2: #181824;
  --panel-3: #1f1e2d;
  --line: #292938;
  --line-soft: #201f2e;
  --text: #f5f4fb;
  --muted: #9291a5;
  --faint: #6c6a80;
  --purple: #8b5cf6;
  --purple-bright: #a98bff;
  --lime: #c8f35a;
  --red: #ff6b7a;
  --green: #7cd992;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow-lift: 0 24px 60px -28px rgba(0, 0, 0, 0.65);
  --shadow-soft: 0 14px 34px -18px rgba(0, 0, 0, 0.5);
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden
}

body {
  margin: 0;
  min-width: 0;
  overflow-x: hidden;
  background:
    radial-gradient(900px 500px at 12% -8%, rgba(139, 92, 246, 0.14), transparent 60%),
    radial-gradient(700px 460px at 100% 0%, rgba(200, 243, 90, 0.06), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: 'Space Grotesk', Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}

::selection {
  background: rgba(139, 92, 246, 0.35);
  color: #fff
}

button,
a {
  font: inherit
}

button {
  cursor: pointer;
  border: 0;
  color: inherit;
  background: none
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px
}

img {
  max-width: 100%
}

.app-shell {
  max-width: 1240px;
  margin: auto;
  padding: 0 32px
}

/* ---------- TOPBAR ---------- */
.topbar {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line-soft)
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-decoration: none;
  color: var(--text);
  white-space: nowrap;
  font-size: 15px;
  transition: opacity .15s ease
}

.brand:hover {
  opacity: .85
}

.brand-accent {
  color: var(--lime);
  text-shadow: 0 0 22px rgba(200, 243, 90, 0.35)
}

.brand-mark {
  display: flex;
  align-items: end;
  gap: 3px;
  height: 22px
}

.brand-mark span {
  display: block;
  width: 4px;
  border-radius: 4px;
  background: var(--lime);
  box-shadow: 0 0 10px rgba(200, 243, 90, 0.5)
}

.brand-mark span:nth-child(1) {
  height: 11px
}

.brand-mark span:nth-child(2) {
  height: 17px
}

.brand-mark span:nth-child(3) {
  height: 22px
}

.main-nav {
  display: flex;
  gap: 6px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line-soft);
  border-radius: 100px;
  padding: 4px
}

.nav-link {
  background: none;
  color: var(--muted);
  padding: 9px 18px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 13.5px;
  transition: color .18s ease, background .18s ease
}

.nav-link.active,
.nav-link:hover {
  color: var(--text);
  background: var(--panel-2)
}

.nav-link.active {
  background: linear-gradient(145deg, var(--purple), #5c33c9);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(139, 92, 246, 0.65)
}

.season-badge {
  font: 11px 'DM Mono', monospace;
  color: var(--lime);
  border: 1px solid #415124;
  background: rgba(200, 243, 90, 0.06);
  border-radius: 99px;
  padding: 8px 14px;
  letter-spacing: .12em;
  flex-shrink: 0
}

main {
  padding: 64px 0 90px
}

.view {
  display: none
}

.active-view {
  display: block;
  animation: fade-in .4s cubic-bezier(.16, 1, .3, 1)
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(10px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

/* ---------- HERO ---------- */
.hero-copy {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 44px
}

.eyebrow {
  font: 11px 'DM Mono', monospace;
  color: var(--purple-bright);
  letter-spacing: .16em;
  margin: 0 0 12px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px
}

.eyebrow::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--purple-bright);
  box-shadow: 0 0 8px var(--purple-bright)
}

.hero-copy h1 {
  font-size: clamp(40px, 5.6vw, 68px);
  line-height: 1.03;
  letter-spacing: -.055em;
  margin: 0 0 16px;
  font-weight: 700
}

.hero-copy h1 span {
  color: var(--lime);
  text-shadow: 0 0 30px rgba(200, 243, 90, 0.25)
}

.hero-subtitle {
  color: var(--muted);
  margin: 0;
  font-size: 16.5px;
  max-width: 480px
}

.season-card {
  border-left: 1px solid var(--lime);
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  flex-shrink: 0
}

.season-card span,
.season-card small {
  color: var(--muted);
  font: 11px 'DM Mono', monospace;
  letter-spacing: .08em
}

.season-card strong {
  font-size: 44px;
  line-height: 1;
  background: linear-gradient(135deg, #fff, var(--lime) 120%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent
}

/* ---------- NEWS SLIDER ---------- */
.news-slider {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  margin-bottom: 74px;
  box-shadow: var(--shadow-lift)
}

.slides {
  min-height: 390px;
  position: relative
}

.slide {
  display: none;
  min-height: 390px;
  padding: 42px 50px;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  background: linear-gradient(125deg, var(--panel), #1c1730 70%)
}

.slide.active {
  display: flex
}

.slide-copy {
  max-width: 560px
}

.slide-number {
  color: var(--lime);
  font: 11px 'DM Mono', monospace;
  letter-spacing: .1em;
  margin-bottom: 20px;
  text-transform: uppercase
}

.slide h2 {
  font-size: clamp(30px, 3.8vw, 52px);
  line-height: 1.06;
  letter-spacing: -.04em;
  margin: 0 0 15px;
  font-weight: 700
}

.slide-text {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.65;
  max-width: 440px
}

.slide-copy h2 {
  margin-bottom: 0
}

.slide-art {
  width: 280px;
  height: 290px;
  overflow: hidden;
  border-radius: 16px;
  background: var(--panel-2);
  flex-shrink: 0;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.55);
  border: 1px solid var(--line-soft)
}

.slide-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%
}

.slider-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 24px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.12)
}

.circle-button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--panel-2);
  border: 1px solid var(--line-soft);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .18s ease, border-color .18s ease, transform .12s ease
}

.circle-button:hover {
  background: var(--purple);
  border-color: var(--purple);
  transform: translateY(-1px)
}

.slide-dots {
  display: flex;
  gap: 6px;
  margin-left: 7px
}

.dot {
  width: 22px;
  height: 4px;
  background: var(--line);
  border-radius: 4px;
  transition: background .2s ease, width .2s ease
}

.dot.active {
  background: var(--lime);
  width: 30px
}

.slider-count {
  margin-left: auto;
  color: var(--muted);
  font: 11px 'DM Mono', monospace;
  letter-spacing: .05em
}

/* ---------- SECTION HEADING ---------- */
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 22px;
  gap: 16px
}

.section-heading h2 {
  font-size: 28px;
  letter-spacing: -.035em;
  margin: 0;
  font-weight: 700
}

.updated-label,
.search-hint {
  color: var(--muted);
  font: 11px 'DM Mono', monospace;
  letter-spacing: .04em
}

.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--lime);
  border-radius: 50%;
  margin-right: 6px;
  box-shadow: 0 0 0 0 rgba(200, 243, 90, .6);
  animation: live-pulse 2s infinite
}

@keyframes live-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(200, 243, 90, .55)
  }

  70% {
    box-shadow: 0 0 0 6px rgba(200, 243, 90, 0)
  }

  100% {
    box-shadow: 0 0 0 0 rgba(200, 243, 90, 0)
  }
}

/* ---------- RANKING ---------- */
.ranking-list {
  border-top: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.012)
}

.ranking-row {
  width: 100%;
  display: grid;
  grid-template-columns: 55px 1fr 85px;
  align-items: center;
  gap: 18px;
  padding: 15px 14px;
  background: none;
  border-bottom: 1px solid var(--line);
  text-align: left;
  transition: background .15s ease, padding-left .15s ease
}

.ranking-row:last-child {
  border-bottom: none
}

.ranking-row:hover {
  background: var(--panel);
  padding-left: 18px
}

.rank {
  font: 14px 'DM Mono', monospace;
  color: var(--faint)
}

.top-rank {
  color: var(--lime);
  text-shadow: 0 0 14px rgba(200, 243, 90, .3)
}

.person {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0
}

.person strong,
.person small {
  display: block
}

.person strong {
  font-size: 15px;
  font-weight: 600
}

.person small {
  font-size: 11px;
  color: var(--faint);
  margin-top: 2px
}

.avatar {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 50%;
  background: #27213c;
  border: 1px solid #4b3b76;
  color: var(--lime);
  flex-shrink: 0;
  font-size: 25px;
  overflow: hidden
}

.avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 18%
}

.avatar-xl {
  width: 148px;
  height: 148px;
  flex: 0 0 148px;
  border: 2px solid var(--purple);
  border-radius: 18px;
  box-shadow: 0 0 0 5px rgba(139, 92, 246, .14), 0 16px 34px rgba(0, 0, 0, .35)
}

.row-elo {
  font: 14px 'DM Mono', monospace;
  text-align: right;
  color: var(--lime)
}

.row-elo small {
  font-size: 8px;
  color: var(--faint);
  display: block;
  letter-spacing: .06em
}

.elo-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  min-width: 0
}

.row-fluctuation {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  padding: 3px 8px;
  border-radius: 999px;
  flex-shrink: 0
}

.row-fluctuation.up {
  color: var(--green);
  background: rgba(124, 217, 146, .12)
}

.row-fluctuation.down {
  color: #ff8f8f;
  background: rgba(255, 143, 143, .12)
}

.row-fluctuation.neutral {
  color: var(--faint);
  background: rgba(155, 148, 137, .08)
}

.fluctuation {
  color: var(--lime);
  font: 12px 'DM Mono', monospace
}

.fluctuation.down {
  color: var(--red)
}

.empty-state {
  padding: 32px 14px;
  text-align: center;
  color: var(--faint);
  font-size: 13.5px
}

/* ---------- LEADERBOARDS ---------- */
.leaderboards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 70px
}

.leaderboard-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-soft)
}

.up-card {
  border-color: rgba(124, 217, 146, .28);
  background: linear-gradient(160deg, rgba(124, 217, 146, .05), var(--panel) 55%)
}

.down-card {
  border-color: rgba(255, 107, 122, .28);
  background: linear-gradient(160deg, rgba(255, 107, 122, .05), var(--panel) 55%)
}

.board-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px
}

.board-title h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700
}

.board-icon {
  font-size: 24px;
  color: var(--lime);
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(200, 243, 90, .1);
  flex-shrink: 0
}

.down-card .board-icon {
  color: var(--red);
  background: rgba(255, 107, 122, .1)
}

.up-card .board-icon {
  color: var(--green);
  background: rgba(124, 217, 146, .12)
}

.top-list .ranking-row {
  grid-template-columns: 37px 1fr 70px;
  padding: 12px 4px
}

.community-tier {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  margin-bottom: 24px
}

.community-tier-section {
  padding: 26px
}

.community-tier-up {
  background: linear-gradient(160deg, rgba(124, 217, 146, .08), var(--panel) 60%);
  border-bottom: 1px solid var(--line)
}

.community-tier-down {
  background: linear-gradient(160deg, rgba(255, 107, 122, .08), var(--panel) 60%)
}

.community-tier-up .board-icon {
  color: var(--green);
  background: rgba(124, 217, 146, .14)
}

.community-tier-down .board-icon {
  color: var(--red);
  background: rgba(255, 107, 122, .14)
}

.community-tier .ranking-list {
  border-top: none;
  background: rgba(0, 0, 0, .12)
}

.community-tier .ranking-row {
  grid-template-columns: 45px 1fr 90px
}

.community-tier-up .ranking-row:hover {
  background: rgba(124, 217, 146, .06)
}

.community-tier-down .ranking-row:hover {
  background: rgba(255, 107, 122, .06)
}

.community-tier-up .ranking-row .rank {
  color: var(--green)
}

.community-tier-down .ranking-row .rank {
  color: var(--red)
}

/* ---------- MODAL PROFIL ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  padding: 20px
}

.modal.hidden {
  display: none
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: #05050ad9;
  backdrop-filter: blur(10px)
}

.profile-panel {
  position: relative;
  overflow: visible;
  width: min(720px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-width: none;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 36px;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .75)
}

.profile-panel::-webkit-scrollbar {
  display: none
}

.profile-panel>* {
  max-width: 100%
}

.close-button {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-2);
  color: var(--muted);
  font-size: 24px;
  line-height: 1;
  transition: background .15s ease, color .15s ease, border-color .15s ease
}

.close-button:hover {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(135deg, var(--panel-2), var(--panel));
  margin-bottom: 22px
}

.profile-identity {
  min-width: 0
}

.profile-header h2 {
  font-size: clamp(25px, 5vw, 36px);
  letter-spacing: -.04em;
  margin: 3px 0 0;
  font-weight: 700
}

.profile-name-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 4px
}

.profile-rank-line {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 8px
}

.profile-rank {
  font: 12px 'DM Mono', monospace;
  color: var(--lime)
}

.profile-fluctuation {
  font: 11px 'DM Mono', monospace;
  color: var(--lime);
  background: #29351b;
  border: 1px solid #43572a;
  padding: 3px 8px;
  border-radius: 999px
}

.profile-fluctuation.down {
  color: var(--red);
  background: #3a2028;
  border-color: #63303c
}

.profile-handle,
.sr-only {
  color: var(--muted)
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap
}

/* ---------- SOCIAL ---------- */
.social-card {
  margin-top: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel-2);
  position: relative;
  z-index: 0
}

.social-card .eyebrow {
  margin-bottom: 10px
}

.social-card .profile-socials {
  margin-top: 0
}

.profile-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
  font: 10.5px 'DM Mono', monospace;
  text-decoration: none;
  transition: color .18s ease, border-color .18s ease, background .18s ease, transform .12s ease
}

.social-link:hover {
  color: var(--text);
  border-color: var(--purple);
  background: var(--panel-3);
  transform: translateY(-1px)
}

.social-link svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round
}

.social-link .social-dot {
  fill: currentColor;
  stroke: none
}

.instagram {
  color: #eaa2d4
}

.tiktok {
  color: #8debf2
}

/* ---------- TABS ---------- */
.profile-tabs {
  position: relative;
  z-index: 5;
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 26px;
  background: var(--panel);
  overflow-x: auto;
  overflow-y: visible !important;
  white-space: nowrap;
  scrollbar-width: none
}

.profile-tabs::-webkit-scrollbar {
  display: none
}

.profile-tab {
  position: relative;
  background: none;
  color: var(--muted);
  padding: 11px 16px;
  overflow: visible;
  border-bottom: 2px solid transparent;
  font-weight: 600;
  font-size: 13.5px;
  transition: color .15s ease, border-color .15s ease
}

.profile-tab:hover {
  color: var(--text)
}

.profile-tab.active {
  color: var(--text);
  border-color: var(--lime)
}

.news-badge {
  position: absolute;
  top: -4px;
  right: -6px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  box-shadow: 0 0 0 2px var(--panel);
  z-index: 16;
  pointer-events: none
}

.tab-panel {
  display: none;
  min-width: 0;
  overflow: hidden
}

.active-panel {
  display: block
}

/* ---------- INFO / STATS ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-bottom: 28px;
  min-width: 0
}

.stats-grid>div {
  background: var(--panel-2);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 14px
}

.stats-grid span {
  display: block;
  color: var(--faint);
  font: 10px 'DM Mono', monospace;
  letter-spacing: .05em;
  text-transform: uppercase
}

.stats-grid strong {
  display: block;
  font-size: 19px;
  margin-top: 6px;
  font-weight: 700
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 27px
}

.tags span {
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 6px 12px;
  color: var(--muted);
  font-size: 11px;
  background: rgba(255, 255, 255, 0.015)
}

.primary-button {
  width: 100%;
  border-radius: 12px;
  background: var(--lime);
  color: #10110a;
  padding: 14px 16px;
  font-weight: 700;
  font-size: 14.5px;
  transition: filter .15s ease, transform .08s ease;
  box-shadow: 0 12px 26px -12px rgba(200, 243, 90, .5)
}

.primary-button:hover {
  filter: brightness(1.08)
}

.primary-button:active {
  transform: translateY(1px)
}

.primary-button:disabled {
  opacity: .4;
  cursor: not-allowed;
  box-shadow: none
}

.open-vote-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px
}

.profile-stats {
  display: grid;
  gap: 15px;
  margin-top: 22px;
  min-width: 0
}

.profile-stat {
  display: grid;
  grid-template-columns: 125px 1fr 35px;
  align-items: center;
  gap: 12px;
  font-size: 13px
}

.profile-stat>span {
  color: var(--muted)
}

.profile-stat strong {
  text-align: right;
  color: var(--lime);
  font: 12px 'DM Mono', monospace
}

.bar {
  height: 6px;
  background: var(--panel-2);
  border-radius: 10px;
  overflow: hidden
}

.bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--purple), var(--purple-bright));
  border-radius: 10px;
  transition: width .5s cubic-bezier(.16, 1, .3, 1)
}

.tab-panel h3 {
  font-size: 22px;
  margin: 0 0 8px;
  font-weight: 700
}

/* ---------- VOTE ---------- */
.vote-prompt p:not(.eyebrow) {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 20px
}

.vote-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 15px;
  min-width: 0
}

.vote-option {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-align: left;
  padding: 17px;
  transition: border-color .18s ease, background .18s ease, transform .1s ease;
  min-width: 0
}

.vote-option:hover {
  transform: translateY(-1px)
}

.vote-option:hover,
.vote-option.selected {
  border-color: var(--lime);
  background: #202a17
}

.down-option:hover,
.down-option.selected {
  border-color: var(--red);
  background: #28171d
}

.vote-option span {
  font-size: 26px;
  color: var(--lime);
  display: block;
  margin-bottom: 4px
}

.down-option span {
  color: var(--red)
}

.vote-option strong,
.vote-option small {
  display: block
}

.vote-option small {
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px
}

.vote-feedback {
  text-align: center;
  color: var(--lime);
  font-size: 12.5px;
  min-height: 18px;
  margin-top: 12px
}

#submit-vote {
  width: 100%;
  max-width: 100%;
  min-height: 46px;
  white-space: normal;
  overflow-wrap: anywhere
}

/* ---------- ACTU / NEWS PROFIL ---------- */
.profile-news {
  display: grid;
  gap: 14px;
  margin-top: 20px
}

.profile-news-card {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(130px, 34%) 1fr;
  gap: 14px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  overflow: hidden;
  transition: border-color .15s ease
}

.profile-news-card:hover {
  border-color: var(--line-soft)
}

.profile-news-card img {
  width: 100%;
  height: 118px;
  object-fit: cover;
  border-radius: 12px;
  display: block
}

.profile-news-card h4 {
  font-size: 16.5px;
  margin: 0 0 5px;
  font-weight: 700
}

.profile-news-card p:last-child {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
  line-height: 1.5
}

.profile-news-thumb {
  position: relative;
  display: block;
  text-decoration: none
}

.profile-news-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover
}

.play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background 0.15s ease, transform 0.15s ease;
  pointer-events: none
}

.profile-news-thumb.has-link:hover .play-overlay {
  background: rgba(0, 0, 0, 0.75);
  transform: translate(-50%, -50%) scale(1.08)
}

/* ---------- FOOTER ---------- */
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 26px 0 32px;
  color: var(--faint);
  font: 10px 'DM Mono', monospace;
  letter-spacing: .06em
}

footer a.footer-contact,
footer a.footer-contact:link,
footer a.footer-contact:visited,
footer a.footer-contact:hover,
footer a.footer-contact:active {
  color: inherit !important;
  text-decoration: none !important;
  transition: color .15s ease
}

footer a.footer-contact:hover {
  color: var(--lime) !important
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 980px) {
  .leaderboards {
    grid-template-columns: 1fr;
    gap: 14px
  }
}

@media(max-width:700px) {
  .app-shell {
    padding: 0 15px
  }

  .topbar {
    min-height: 72px;
    gap: 8px
  }

  .brand {
    font-size: 11px;
    gap: 6px
  }

  .brand-mark {
    transform: scale(.75);
    transform-origin: left center;
    width: 18px
  }

  .main-nav {
    margin-left: auto;
    gap: 1px
  }

  .nav-link {
    padding: 8px 9px;
    font-size: 12px
  }

  .season-badge {
    display: none
  }

  main {
    padding: 37px 0 55px
  }

  .hero-copy {
    display: block;
    margin-bottom: 28px
  }

  .hero-copy h1 {
    font-size: 40px;
    margin-bottom: 13px
  }

  .hero-subtitle {
    font-size: 14px
  }

  .season-card {
    margin-top: 22px;
    width: max-content;
    padding-left: 13px
  }

  .season-card strong {
    font-size: 34px
  }

  .news-slider {
    margin-bottom: 48px
  }

  .slides {
    min-height: 500px
  }

  .slide {
    min-height: 500px;
    padding: 23px 18px 17px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    gap: 17px
  }

  .slide.active {
    display: flex
  }

  .slide-copy {
    margin-top: 2px
  }

  .slide-number {
    margin-bottom: 17px;
    font-size: 9px
  }

  .slide h2 {
    font-size: 30px
  }

  .slide-text {
    font-size: 13px;
    line-height: 1.55
  }

  .slide-art {
    width: 100%;
    height: 260px;
    order: 2
  }

  .slide-art img {
    transform: scale(1.28);
    transform-origin: center center
  }

  .slider-controls {
    padding: 12px 14px;
    min-height: 58px
  }

  .section-heading {
    align-items: flex-start;
    gap: 10px;
    flex-direction: column;
    margin-bottom: 15px
  }

  .section-heading h2 {
    font-size: 23px
  }

  .updated-label,
  .search-hint {
    font-size: 9px
  }

  .ranking-row {
    grid-template-columns: 31px 1fr auto;
    padding: 12px 8px;
    gap: 8px
  }

  .community-tier .ranking-row {
    grid-template-columns: 31px 1fr auto
  }

  .person {
    gap: 8px
  }

  .person strong {
    font-size: 13px
  }

  .person small {
    font-size: 9px
  }

  .avatar {
    width: 36px;
    height: 36px;
    font-size: 20px
  }

  .fluctuation {
    display: block;
    font-size: 11px
  }

  .elo-cell .row-fluctuation {
    display: inline-flex;
    font-size: 10px;
    padding: 2px 6px
  }

  .elo-cell .row-elo {
    font-size: 12px
  }

  .ranking-row>.row-fluctuation {
    display: none
  }

  .row-elo {
    font-size: 12px
  }

  .leaderboard-card {
    padding: 18px
  }

  .community-tier {
    padding: 16px;
    margin-bottom: 16px
  }

  .board-title {
    margin-bottom: 12px
  }

  .profile-panel {
    padding-left: 12px;
    padding-right: 12px;
    padding-top: 64px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    max-height: calc(100dvh - 16px);
    border-radius: 20px
  }

  .modal {
    padding: 8px;
    overflow: hidden
  }

  .profile-header {
    margin-bottom: 19px;
    align-items: center;
    gap: 14px;
    padding: 16px
  }

  .profile-header h2 {
    font-size: 26px;
    margin: 0
  }

  .profile-rank-line {
    margin-top: 6px
  }

  .avatar-xl {
    width: 108px;
    height: 108px;
    flex-basis: 108px;
    border-radius: 15px
  }

  .profile-name-line {
    gap: 7px
  }

  .profile-socials {
    max-width: 210px;
    margin-top: 12px
  }

  .social-card {
    padding: 14px;
    margin-top: 12px
  }

  .social-card .profile-socials {
    margin-top: 0
  }

  .social-link {
    padding: 7px 9px;
    font-size: 10px
  }

  .close-button {
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px
  }

  .profile-panel .profile-tabs {
    margin-inline: -12px;
    padding-inline: 12px
  }

  .profile-tab {
    flex: 0 0 auto;
    padding: 10px 13px;
    font-size: 12px
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 7px
  }

  .stats-grid>div {
    padding: 11px
  }

  .profile-stat {
    grid-template-columns: 105px 1fr 31px;
    gap: 7px;
    font-size: 11px
  }

  .profile-news-card {
    grid-template-columns: 1fr;
    gap: 10px
  }

  .profile-news-card img {
    height: 170px;
    width: 86px;
    height: 86px
  }

  .profile-news-card h4 {
    font-size: 14px
  }

  .profile-news-card p:last-child {
    font-size: 11px
  }

  .vote-options {
    gap: 7px
  }

  .vote-option {
    padding: 13px
  }

  .vote-option small {
    font-size: 10px
  }

  footer {
    font-size: 8px;
    gap: 15px;
    flex-wrap: wrap
  }
}

@media(max-width:360px) {
  .hero-copy h1 {
    font-size: 36px
  }

  .brand {
    font-size: 10px
  }

  .nav-link {
    padding-inline: 7px
  }

  .profile-stat {
    grid-template-columns: 91px 1fr 29px
  }
}

@media (prefers-reduced-motion: reduce) {
  .live-dot {
    animation: none
  }

  * {
    transition: none !important
  }
}

button:focus-visible,
.tab:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px
}

/* ===== NEWS SECTION ===== */
.news-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  padding: 20px 0;
}
.news-card {
  background: var(--bg-elev, #150f28);
  border: 1px solid var(--border, #2a2149);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.news-card-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}
.news-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.news-card-media.has-link { position: relative; }
.news-card-body {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.news-card-body h3 {
  margin: 0;
  font-size: 18px;
  color: var(--text, #f2eefc);
}
.news-card-body p {
  margin: 0;
  color: var(--text-dim, #a99fc9);
  font-size: 14px;
  line-height: 1.5;
}
.news-date {
  color: var(--text-faint, #6f6591);
  font-size: 12px;
}
.empty-state {
  text-align: center;
  padding: 40px;
  color: var(--text-dim, #a99fc9);
}