@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;
  --line: #292938;
  --text: #f5f4fb;
  --muted: #9291a5;
  --purple: #8b5cf6;
  --lime: #c8f35a;
  --red: #ff6b7a;
  --radius: 20px
}


* {
  box-sizing: border-box
}


html {
  scroll-behavior: smooth;
  overflow-x: hidden
}


body {
  margin: 0;
  min-width: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: 'Space Grotesk', Arial, sans-serif;
  line-height: 1.5
}


button,
a {
  font: inherit
}


button {
  cursor: pointer;
  border: 0;
  color: inherit
}


button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px
}


.app-shell {
  max-width: 1240px;
  margin: auto;
  padding: 0 32px
}


.topbar {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line)
}


.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-decoration: none;
  color: var(--text);
  white-space: nowrap
}


.brand-accent {
  color: var(--lime)
}


.brand-mark {
  display: flex;
  align-items: end;
  gap: 3px;
  height: 22px
}


.brand-mark span {
  display: block;
  width: 4px;
  border-radius: 4px;
  background: var(--lime)
}


.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: 8px
}


.nav-link {
  background: none;
  color: var(--muted);
  padding: 10px 17px;
  border-radius: 10px;
  font-weight: 600
}


.nav-link.active,
.nav-link:hover {
  color: var(--text);
  background: var(--panel-2)
}


.season-badge {
  font: 11px 'DM Mono', monospace;
  color: var(--lime);
  border: 1px solid #415124;
  border-radius: 99px;
  padding: 8px 12px;
  letter-spacing: .1em
}


main {
  padding: 70px 0 80px
}


.view {
  display: none
}


.active-view {
  display: block;
  animation: fade-in .35s ease
}


@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(8px)
  }


  to {
    opacity: 1;
    transform: none
  }
}


.hero-copy {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 38px
}


.eyebrow {
  font: 11px 'DM Mono', monospace;
  color: var(--purple);
  letter-spacing: .14em;
  margin: 0 0 10px;
  text-transform: uppercase
}


.hero-copy h1 {
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -.06em;
  margin: 0 0 18px
}


.hero-copy h1 span {
  color: var(--lime)
}


.hero-subtitle {
  color: var(--muted);
  margin: 0;
  font-size: 17px
}


.season-card {
  border-left: 1px solid var(--lime);
  padding-left: 20px;
  display: flex;
  flex-direction: column
}


.season-card span,
.season-card small {
  color: var(--muted);
  font: 11px 'DM Mono', monospace
}


.season-card strong {
  font-size: 46px;
  line-height: 1
}


.news-slider {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  margin-bottom: 74px
}


.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(120deg, var(--panel), #1c1730)
}


.slide.active {
  display: flex
}


.slide-copy {
  max-width: 580px
}


.slide-number {
  color: var(--lime);
  font: 11px 'DM Mono', monospace;
  letter-spacing: .08em;
  margin-bottom: 22px
}


.slide h2 {
  font-size: clamp(32px, 4vw, 55px);
  line-height: 1.04;
  letter-spacing: -.05em;
  margin: 0 0 17px
}


.slide p {
  color: var(--muted);
  font-size: 16px;
  max-width: 450px;
  margin: 0
}


.slide-art {
  width: 290px;
  height: 300px;
  overflow: hidden;
  border-radius: 16px;
  background: var(--panel-2);
  flex-shrink: 0
}


.slide-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center
}


.slider-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 24px;
  border-top: 1px solid var(--line)
}


.circle-button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--panel-2);
  font-size: 18px
}


.circle-button:hover {
  background: var(--purple)
}


.slide-dots {
  display: flex;
  gap: 6px;
  margin-left: 7px
}


.dot {
  width: 24px;
  height: 4px;
  background: var(--line);
  border-radius: 4px
}


.dot.active {
  background: var(--lime)
}


.slider-count {
  margin-left: auto;
  color: var(--muted);
  font: 11px 'DM Mono', monospace
}


.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 20px
}


.section-heading h2 {
  font-size: 30px;
  letter-spacing: -.04em;
  margin: 0
}


.updated-label,
.search-hint {
  color: var(--muted);
  font: 11px 'DM Mono', monospace
}


.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--lime);
  border-radius: 50%;
  margin-right: 5px
}


.ranking-list {
  border-top: 1px solid var(--line)
}


.ranking-row {
  width: 100%;
  display: grid;
  grid-template-columns: 55px 1fr 70px 85px;
  align-items: center;
  gap: 18px;
  padding: 15px 10px;
  background: none;
  border-bottom: 1px solid var(--line);
  text-align: left
}


.ranking-row:hover {
  background: var(--panel)
}


.rank {
  font: 14px 'DM Mono', monospace;
  color: var(--muted)
}


.top-rank {
  color: var(--lime)
}


.person {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0
}


.person strong,
.person small {
  display: block
}


.person strong {
  font-size: 15px
}


.person small {
  font-size: 11px;
  color: var(--muted);
  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
}


.user-icon {
  line-height: 1
}


.fluctuation {
  color: var(--lime);
  font: 12px 'DM Mono', monospace
}


.fluctuation.down {
  color: var(--red)
}


.row-elo {
  font: 14px 'DM Mono', monospace;
  text-align: right;
  color: var(--lime)
}


.row-elo small {
  font-size: 8px;
  color: var(--muted);
  display: block
}


.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: 25px
}


.board-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px
}


.board-title h2 {
  margin: 0;
  font-size: 21px
}


.board-icon {
  font-size: 27px;
  color: var(--lime)
}


.down-card .board-icon {
  color: var(--red)
}


.top-list .ranking-row {
  grid-template-columns: 37px 1fr 70px;
  padding: 11px 0
}


.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: #05050acc;
  backdrop-filter: blur(8px)
}


.profile-panel {
  position: relative;
  width: min(620px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 36px
}


.close-button {
  position: absolute;
  right: 18px;
  top: 15px;
  background: none;
  font-size: 27px;
  color: var(--muted)
}


.profile-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 28px
}


.avatar-xl {
  width: 70px;
  height: 70px;
  font-size: 39px
}


.profile-rank {
  font: 11px 'DM Mono', monospace;
  color: var(--lime)
}


.profile-header h2 {
  margin: 3px 0 0;
  font-size: 34px;
  letter-spacing: -.05em
}


.profile-header p {
  margin: 0;
  color: var(--muted);
  font: 12px 'DM Mono', monospace
}


.profile-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 26px
}


.profile-tab {
  background: none;
  color: var(--muted);
  padding: 11px 16px;
   overflow: visible;
  border-bottom: 2px solid transparent
}


.profile-tab.active {
  color: var(--text);
  border-color: var(--lime)
}


.tab-panel {
  display: none
}


.active-panel {
  display: block
}


.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-bottom: 28px
}


.stats-grid>div {
  background: var(--panel-2);
  border-radius: 12px;
  padding: 13px
}


.stats-grid span {
  display: block;
  color: var(--muted);
  font: 10px 'DM Mono', monospace
}


.stats-grid strong {
  display: block;
  font-size: 19px;
  margin-top: 5px
}


.elo-tile {
  border: 1px solid #536a25
}


.elo-tile strong {
  color: var(--lime)
}


.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 27px
}


.tags span {
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 6px 10px;
  color: var(--muted);
  font-size: 11px
}


.primary-button {
  width: 100%;
  border-radius: 10px;
  background: var(--lime);
  color: #10110a;
  padding: 13px 16px;
  font-weight: 700
}


.primary-button:hover {
  filter: brightness(1.08)
}


.primary-button:disabled {
  opacity: .45;
  cursor: not-allowed
}


.profile-stats {
  display: grid;
  gap: 14px;
  margin-top: 22px
}


.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: var(--purple);
  border-radius: 10px
}


.elo-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  background: #222a18;
  border: 1px solid #536a25;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 25px
}


.elo-banner span {
  font: 10px 'DM Mono', monospace;
  color: var(--lime)
}


.elo-banner strong {
  font-size: 30px;
  color: var(--lime)
}


.elo-banner small {
  color: var(--muted);
  font-size: 11px;
  margin-left: auto
}


.vote-prompt h3,
.tab-panel h3 {
  font-size: 23px;
  margin: 0 0 7px
}


.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
}


.vote-option {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-align: left;
  padding: 16px
}


.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: 28px;
  color: var(--lime)
}


.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: 12px;
  min-height: 18px
}


.profile-news {
  display: grid;
  gap: 14px;
  margin-top: 20px
}


.profile-news-card {
  display: flex;
  gap: 14px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px
}


.profile-news-card img {
  width: 105px;
  height: 105px;
  object-fit: cover;
  border-radius: 10px
}


.profile-news-card h4 {
  font-size: 17px;
  margin: 0 0 5px
}


.profile-news-card p:last-child {
  color: var(--muted);
  font-size: 12px;
  margin: 0
}


footer {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding: 24px 0 30px;
  color: var(--muted);
  font: 10px 'DM Mono', monospace;
  letter-spacing: .05em
}
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;
}
footer a.footer-contact:hover {
  color: var(--lime) !important;
}
.profile-identity {
  min-width: 0
}


.profile-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px
}


.social-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font: 10px 'DM Mono', monospace;
  text-decoration: none;
  transition: .2s
}


.social-link:hover {
  color: var(--text);
  border-color: var(--purple);
  background: var(--panel-2)
}


.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
}


.profile-name-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 4px
}


.profile-name-line h2 {
  margin: 0
}


.profile-rank-line {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 6px
}


.profile-rank {
  font: 12px 'DM Mono', monospace;
  color: var(--muted)
}


.profile-fluctuation {
  font: 11px 'DM Mono', monospace;
  color: var(--lime);
  background: #29351b;
  border: 1px solid #43572a;
  padding: 3px 7px;
  border-radius: 999px
}


.profile-fluctuation.down {
  color: var(--red);
  background: #3a2028;
  border-color: #63303c
}


.avatar {
  overflow: hidden;
  background: var(--panel-2);
  border: 1px solid var(--line)
}


.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, .12), 0 12px 28px rgba(0, 0, 0, .25)
}


.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));
}


.profile-header h2 {
  font-size: clamp(25px, 5vw, 38px);
  letter-spacing: -.04em
}


.profile-handle {
  color: var(--muted)
}


.social-card {
  margin-top: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel-2);
   z-index: 0
}


.social-card .eyebrow {
  margin-bottom: 10px
}


.social-card .profile-socials {
  margin-top: 0
}


.slide-text {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6
}


.slide-copy h2 {
  margin-bottom: 0
}


.slide-art {
  overflow: hidden;
  border-radius: 16px;
  background: var(--panel-2)
}


.slide-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%
}


@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: 42px;
    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: 31px
  }


  .slide p {
    font-size: 13px;
    line-height: 1.55
  }


  .slide-art {
    width: 100%;
    height: 285px;
    order: 2;
    overflow: hidden;
    border-radius: 16px;
    background: var(--panel-2)
  }


  .slide-art img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 22%
  }


  .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: 24px
  }


  .updated-label,
  .search-hint {
    font-size: 9px
  }


  .ranking-row {
    grid-template-columns: 31px 1fr 64px;
    padding: 12px 2px;
    gap: 8px
  }


  .person {
    gap: 8px
  }


  .person strong {
    font-size: 13px
  }


  .person small {
    font-size: 9px
  }


  .avatar {
    width: 36px;
    height: 36px;
    font-size: 20px
  }


  .fluctuation {
    display: none
  }


  .row-elo {
    font-size: 12px
  }


  .leaderboards {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 48px
  }


  .leaderboard-card {
    padding: 18px
  }


  .board-title {
    margin-bottom: 12px
  }


  .profile-panel {
    padding: 28px 17px 21px;
    border-radius: 20px
  }


  .profile-header {
    margin-bottom: 19px
  }


  .profile-header h2 {
    font-size: 28px
  }




  .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
  }


  .elo-banner small {
    width: 100%;
    margin-left: 0
  }


  .profile-news-card img {
    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
  }
}


@media(max-width:360px) {
  .hero-copy h1 {
    font-size: 38px
  }


  .brand {
    font-size: 10px
  }


  .nav-link {
    padding-inline: 7px
  }


  .profile-stat {
    grid-template-columns: 91px 1fr 29px
  }
}


/* Modal close control: anchored to the panel, never the profile header */
.profile-panel {
  position: relative;
  overflow: visible
}


.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: 25px;
  line-height: 1;
  transform: none
}


.close-button:hover {
  background: var(--purple);
  border-color: var(--purple);
  color: var(--text)
}


/* Profile modal: contained scrolling and safe mobile controls */
.profile-panel {
  width: min(720px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-width: none
}


.profile-panel::-webkit-scrollbar {
  display: none
}


.profile-panel>* {
  max-width: 100%
}


.profile-tabs {
  position: relative;
  z-index: 5;
  background: var(--panel);
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none
}


.profile-tabs::-webkit-scrollbar {
  display: none
}


.tab-panel {
  min-width: 0;
  overflow: hidden
}


.profile-news-card {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(130px, 34%) 1fr;
  gap: 14px;
  overflow: hidden
}


.profile-news-card img {
  width: 100%;
  height: 118px;
  object-fit: cover;
  border-radius: 12px
}


.vote-card,
.vote-actions {
  min-width: 0
}


.vote-actions button,
#submit-vote {
  width: 100%;
  max-width: 100%;
  min-height: 46px;
  white-space: normal;
  overflow-wrap: anywhere
}


.profile-panel .stats-grid,
.profile-panel .profile-stats,
.profile-panel .tags {
  min-width: 0
}


@media(max-width:700px) {
  .modal {
    padding: 8px;
    overflow: hidden
  }


  .profile-panel {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    max-height: calc(100dvh - 16px);
    padding-left: 12px;
    padding-right: 12px;
    box-sizing: border-box
  }


  .profile-news-card {
    grid-template-columns: 1fr;
    gap: 10px
  }


  .profile-news-card img {
    height: 170px
  }


  .profile-panel .profile-tabs {
    margin-inline: -12px;
    padding-inline: 12px
  }


  .profile-panel .vote-card {
    padding: 14px
  }


  .profile-panel .vote-option {
    min-width: 0
  }


  .profile-panel #submit-vote {
    margin-bottom: 4px
  }
}


@media(max-width:700px) {
  .profile-panel {
    position: relative;
    padding-top: 64px
  }


  .close-button {
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px
  }


  .fluctuation {
    display: block;
    font-size: 11px
  }


  .slide-art img {
    transform: scale(1.28);
    transform-origin: center center
  }


  .slide {
    overflow: hidden
  }


  .profile-header {
    align-items: center;
    gap: 14px;
    padding: 16px
  }


  .avatar-xl {
    width: 112px;
    height: 112px;
    flex-basis: 112px;
    border-radius: 15px
  }


  .profile-name-line {
    gap: 7px
  }


  .profile-header h2 {
    font-size: 26px;
    margin: 0
  }


  .profile-rank-line {
    margin-top: 6px
  }


  .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
  }
}


.row-fluctuation {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  padding: 3px 7px;
  border-radius: 999px;
  flex-shrink: 0;
}


.profile-tab {
  position: relative;
}


.news-badge {
  position: absolute;
  top: -4px;
  right: -6px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #f0607a;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  box-shadow: 0 0 0 2px var(--panel, #12121b);
  z-index: 16; /* toujours au-dessus de .profile-tabs */
  pointer-events: none;
}
.row-fluctuation.up {
  color: #7cd992;
  background: rgba(124, 217, 146, .12);
}


.row-fluctuation.down {
  color: #ff8f8f;
  background: rgba(255, 143, 143, .12);
}


.row-fluctuation.neutral {
  color: #9b9489;
  background: rgba(155, 148, 137, .08);
}


.elo-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  min-width: 0;
}


.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);
}


/* Desktop : 4 colonnes classiques, fluctuation et elo restent séparées
   côte à côte comme avant (pas de changement de comportement) */
.ranking-row {
  grid-template-columns: 55px 1fr 70px 85px;
}


/* Mobile : on repasse à 3 colonnes (rank | person | elo-cell),
   la fluctuation n'est plus une colonne séparée : elle est DANS
   la cellule de droite, empilée au-dessus de l'ELO */
@media (max-width: 700px) {
  .ranking-row {
    grid-template-columns: 31px 1fr auto;
    padding: 12px 2px;
    gap: 8px;
  }


  /* on annule le "display:none" existant : la fluctuation redevient visible,
     mais seulement à l'intérieur de .elo-cell */
  .elo-cell .row-fluctuation {
    display: inline-flex;
    font-size: 10px;
    padding: 2px 6px;
  }


  .elo-cell .row-elo {
    font-size: 12px;
  }


  /* toute fluctuation qui resterait en colonne indépendante (ancien markup)
     reste cachée pour ne pas casser la grille à 3 colonnes */
  .ranking-row>.row-fluctuation {
    display: none;
  }
}
.profile-tabs {
  overflow: visible !important;
}
.profile-tab {
  overflow: visible;
} 
/* ==========================================================
   COMMUNITY VIEW — styles dédiés à la section #community-view
   ========================================================== */

#community-view .hero-copy {
  margin-bottom: 34px
}

#community-view .eyebrow {
  color: var(--purple)
}

#community-view h1 span {
  color: var(--purple)
}

/* Bandeau d'intro communauté avec badge distinctif */
#community-view .hero-copy {
  position: relative;
  padding: 28px 30px;
  border: 1px solid #362a55;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #1c1730, var(--panel));
  overflow: hidden
}

#community-view .hero-copy::after {
  content: "COMMUNITY";
  position: absolute;
  right: -18px;
  top: -10px;
  font: 700 13px 'DM Mono', monospace;
  letter-spacing: .2em;
  color: rgba(139, 92, 246, .16);
  transform: rotate(8deg);
  pointer-events: none
}

/* Cartes conteneurs autour des listes, façon .leaderboard-card */
.community-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 25px;
  margin-bottom: 22px
}

.community-card .section-heading {
  margin-bottom: 14px
}

.community-card .ranking-list {
  border-top: 1px solid var(--line)
}

/* Section-heading interne : accent violet + petit badge "COMMUNAUTÉ" */
#community-view .section-heading h2 {
  display: flex;
  align-items: center;
  gap: 10px
}

#community-view .section-heading h2::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, .18)
}

#community-view .updated-label,
#community-view .search-hint {
  color: var(--purple);
  border: 1px solid #362a55;
  border-radius: 99px;
  padding: 5px 10px
}

/* Lignes de classement communauté : liseré violet au survol au lieu de lime */
#community-view .ranking-row:hover {
  background: #1a1526
}

#community-view .rank.top-rank {
  color: var(--purple)
}

#community-view .row-elo {
  color: var(--purple)
}

#community-view .row-fluctuation.up {
  color: #c9b3ff;
  background: rgba(139, 92, 246, .14)
}

#community-view .avatar {
  border-color: #4b3b76
}

/* État vide (pas encore de profil validé / pas de vote) */
#community-view .empty-state {
  color: var(--muted);
  font: 13px 'DM Mono', monospace;
  text-align: center;
  padding: 30px 10px;
  border: 1px dashed var(--line);
  border-radius: 14px
}

@media(max-width:700px) {
  #community-view .hero-copy {
    padding: 20px 18px
  }

  .community-card {
    padding: 18px
  }
}
/* ==========================================================
   JOIN BUTTON — style du bouton "Rejoindre" (desktop + mobile)
   ========================================================== */

.join-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  background: var(--lime);
  color: #10110a;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 10px;
  text-decoration: none;
  transition: filter .15s ease, transform .15s ease
}

.join-button:hover {
  filter: brightness(1.08);
  transform: translateY(-1px)
}

.join-button:active {
  transform: translateY(0)
}

/* ==========================================================
   TOPBAR MOBILE — logo masqué, nav à gauche, bouton à droite
   ========================================================== */

@media(max-width:700px) {
  .topbar {
    justify-content: space-between
  }

  .brand {
    display: none
  }

  .main-nav {
    margin-left: 0;
    margin-right: auto
  }

  .join-button {
    padding: 9px 14px;
    font-size: 12px
  }
}
/* ==========================================================
   BOUTON PARTAGER — dans le header de la modale de profil
   ========================================================== */

.share-button {
  position: absolute;
  top: 16px;
  right: 66px;
  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);
  transition: .15s
}

.share-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round
}

.share-button:hover {
  background: var(--lime);
  border-color: var(--lime);
  color: #10110a
}

@media(max-width:700px) {
  .share-button {
    top: 14px;
    right: 62px;
    width: 40px;
    height: 40px
  }
}

/* ==========================================================
   MODAL DE PARTAGE
   ========================================================== */

.share-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 20px
}

.share-modal.hidden {
  display: none
}

.share-modal-backdrop {
  position: absolute;
  inset: 0;
  background: #05050acc;
  backdrop-filter: blur(6px)
}

.share-panel {
  position: relative;
  width: min(420px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px
}

.share-panel h3 {
  margin: 0 0 6px;
  font-size: 20px;
  letter-spacing: -.02em
}

.share-panel p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px
}

.share-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-2);
  color: var(--muted);
  font-size: 20px;
  line-height: 1
}

.share-close:hover {
  background: var(--purple);
  border-color: var(--purple);
  color: var(--text)
}

.share-link-row {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 6px 6px 6px 14px;
  background: var(--panel-2)
}

.share-link-input {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  color: var(--text);
  font: 13px 'DM Mono', monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.share-link-input:focus {
  outline: none
}

.share-copy-button {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 9px;
  background: var(--lime);
  color: #10110a;
  font-weight: 700;
  font-size: 12.5px;
  white-space: nowrap
}

.share-copy-button:hover {
  filter: brightness(1.08)
}

.share-copy-button svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round
}

.share-copy-button.copied {
  background: var(--purple);
  color: #fff
}
.sale-banner {
  position: sticky;
  top: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 10px 16px;
  background: linear-gradient(90deg, #ff2e63, #ff8a00);
  color: #fff;
  font-size: 0.9rem;
  text-align: center;
}

.sale-banner-text strong {
  font-weight: 700;
}

.sale-banner-button {
  background: #09090f;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.sale-banner-button:hover {
  transform: translateY(-1px);
  opacity: 0.9;
}

.sale-banner-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  opacity: 0.85;
}

.sale-banner-close:hover {
  opacity: 1;
}

.sale-panel {
  position: relative;
  max-width: 480px;
  margin: 10vh auto;
  background: #12121c;
  color: #fff;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.sale-panel h2 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 1.4rem;
}

.sale-panel-text {
  color: #c9c9d6;
  line-height: 1.5;
  margin-bottom: 14px;
}

.sale-contact-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 18px 0;
}

.sale-contact-link {
  color: #ff8a00;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
}

.sale-contact-link:hover {
  text-decoration: underline;
}

.sale-copy-email {
  width: 100%;
}

.sale-banner.hidden {
  display: none;
}