:root {
  --ink: #0f1923;
  --ink-2: #16222e;
  --bone: #ece8e1;
  --red: #ff4655;
  --red-dark: #d93545;
  --mute: #8b978f;
  --line: rgba(236, 232, 225, .14);
  --display: 'Anton', Impact, 'Arial Narrow', sans-serif;
  --body: 'Manrope', system-ui, sans-serif;
  --arabic: 'Noto Kufi Arabic', 'Manrope', sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--bone); font: 500 17px/1.6 var(--body); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 400; text-transform: uppercase; line-height: 1.02; letter-spacing: .01em; }
h2 { font-size: clamp(52px, 8vw, 104px); }
.wrap { width: min(1240px, 100% - 40px); margin-inline: auto; }
.wrap.narrow { width: min(760px, 100% - 40px); }
.eyebrow { margin: 0 0 14px; color: var(--red); font-size: 14px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; }
.lead { max-width: 54ch; margin: 18px 0 0; color: rgba(236, 232, 225, .78); }
.ar { margin: 10px 0 0; font: 700 clamp(20px, 2.6vw, 28px)/1.5 var(--arabic); color: rgba(236, 232, 225, .82); }
.head { margin-bottom: clamp(36px, 5vw, 64px); }
.head .ar { text-align: left; }

/* glass */
.glass { background: rgba(15, 25, 35, .55); border: 1px solid var(--line); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); }

/* buttons: red block with a thin outer frame, like the game's menus */
.btn { position: relative; display: inline-flex; padding: 5px; border: 1px solid rgba(236, 232, 225, .42); background: none; }
.btn span { position: relative; overflow: hidden; display: block; min-width: 200px; padding: 15px 28px; background: var(--red); color: var(--bone); font-size: 15px; font-weight: 800; letter-spacing: .1em; text-align: center; text-transform: uppercase; transition: color .3s var(--ease); isolation: isolate; }
.btn span::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--bone); transform: translateX(-120%) skewX(-12deg); transform-origin: left; transition: transform .45s var(--ease); }
.btn:hover span { color: var(--ink); }
.btn:hover span::before { transform: translateX(0) skewX(0); }
.btn i { font-style: normal; }
.btn.ghost span { background: transparent; }
.btn.light { border-color: rgba(15, 25, 35, .5); }
.btn.light span { background: var(--ink); }
.btn.small span { min-width: 0; padding: 9px 18px; font-size: 13px; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.link-btn { padding: 0; border: 0; background: none; color: var(--mute); font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--bone); }

/* nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 72px; padding: 0 clamp(16px, 3vw, 40px); transition: background .3s, backdrop-filter .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.solid { background: rgba(15, 25, 35, .72); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-color: var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 400 24px/1 var(--display); letter-spacing: .03em; }
.brand img { border-radius: 50%; }
.brand b { color: var(--red); font-weight: 400; }
.links { display: flex; gap: 34px; }
.links a { position: relative; padding: 6px 0; font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.links a:hover::after { transform: scaleX(1); }
.nav-end { display: flex; align-items: center; gap: 12px; }
.me { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; }
.me img { width: 36px; height: 36px; border-radius: 50%; }
.burger { display: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); background: none; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--bone); transition: transform .3s var(--ease), top .3s var(--ease); }
.burger span:first-child { top: 16px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding: 110px clamp(20px, 6vw, 96px) 150px; isolation: isolate; }
.hero picture { position: absolute; inset: 0; z-index: -2; }
.hero-art { width: 100%; height: 112%; object-fit: cover; object-position: 72% center; will-change: transform; }
.hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 16, 23, .9) 0%, rgba(10, 16, 23, .45) 42%, transparent 66%), linear-gradient(0deg, var(--ink) 0%, transparent 26%); }
.hero h1 { font-size: clamp(84px, 13vw, 190px); line-height: .94; }
.hero h1 em { color: var(--red); font-style: normal; }
.hero .ar { text-align: left; }
.cta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 34px; }
.stats { position: absolute; left: clamp(20px, 6vw, 96px); right: clamp(20px, 6vw, 96px); bottom: 34px; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.stats div { padding: 18px 28px; border-left: 1px solid var(--line); }
.stats div:first-child { border-left: 0; }
.stats dt { display: flex; align-items: center; gap: 8px; color: rgba(236, 232, 225, .7); font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.stats dd { margin: 2px 0 0; font: 400 clamp(32px, 4vw, 48px)/1.1 var(--display); font-variant-numeric: tabular-nums; }
.dot { flex: none; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #23a55a; box-shadow: 0 0 0 0 rgba(35, 165, 90, .6); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(35, 165, 90, 0); } 100% { box-shadow: 0 0 0 0 rgba(35, 165, 90, 0); } }

/* community */
.community { position: relative; padding: clamp(80px, 10vw, 140px) 0; background: linear-gradient(180deg, var(--ink), rgba(15, 25, 35, .35) 30%, rgba(15, 25, 35, .75)), url('/img/community.webp?v=2') center / cover no-repeat fixed; }
.discord { display: grid; grid-template-columns: 72px 232px 1fr 260px; height: 560px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px; background: rgba(43, 45, 49, .62); -webkit-backdrop-filter: blur(22px) saturate(150%); backdrop-filter: blur(22px) saturate(150%); box-shadow: 0 40px 90px rgba(0, 0, 0, .5); color: #dbdee1; font-size: 15px; }
.rail { display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 12px; background: rgba(30, 31, 34, .78); }
.rail img { border-radius: 16px; }
.rail-line { width: 32px; height: 2px; background: #35363c; }
.channels { padding: 0 8px 12px; overflow: hidden; background: rgba(43, 45, 49, .72); }
.server-name { margin: 0 -8px 10px; padding: 14px 16px; border-bottom: 1px solid rgba(0, 0, 0, .3); color: #f2f3f5; font-weight: 800; }
.cat { margin: 16px 8px 4px; color: #949ba4; font-size: 12px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.ch { display: block; padding: 5px 8px; border-radius: 4px; color: #949ba4; font-weight: 600; }
.ch.active { background: rgba(78, 80, 88, .6); color: #f2f3f5; }
.chat { display: flex; flex-direction: column; min-width: 0; background: rgba(49, 51, 56, .55); }
.chat-top { padding: 14px 18px; border-bottom: 1px solid rgba(0, 0, 0, .3); color: #f2f3f5; font-weight: 800; }
.chat-hero { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 24px; text-align: center; }
.chat-hero img { border-radius: 50%; }
.chat-hero h3 { margin-top: 10px; color: #f2f3f5; font: 800 24px/1.25 var(--body); text-transform: none; letter-spacing: 0; }
.chat-hero p { margin: 0; color: #b5bac1; }
.chat-hero .on { display: inline-flex; align-items: center; gap: 6px; }
.discord-join { margin-top: 14px; padding: 10px 26px; border-radius: 4px; background: #248046; color: #fff; font-weight: 700; transition: background .2s; }
.discord-join:hover { background: #1a6334; }
.people { padding: 8px 8px 16px; overflow-y: auto; background: rgba(43, 45, 49, .72); scrollbar-width: thin; scrollbar-color: #1e1f22 transparent; }
.people h4 { margin: 16px 8px 4px; color: #949ba4; font-size: 12px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.person { display: flex; align-items: center; gap: 10px; padding: 5px 8px; border-radius: 4px; }
.person:hover { background: rgba(78, 80, 88, .4); }
.person img { flex: none; width: 32px; height: 32px; border-radius: 50%; }
.person span { overflow: hidden; color: #b5bac1; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.person small { margin-left: auto; color: #949ba4; font-size: 12px; font-weight: 700; }
.people-empty { margin: 16px 8px; color: #949ba4; font-size: 14px; }

/* features: the off-white section */
.features { padding: clamp(80px, 10vw, 140px) 0; background: var(--bone); color: var(--ink); }
.features .lead, .features .ar { color: rgba(15, 25, 35, .72); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { display: flex; flex-direction: column; overflow: hidden; background: var(--ink); color: var(--bone); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%); }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover img { transform: scale(1.05); }
.card > div { position: relative; flex: 1; padding: 26px 26px 38px; }
.num { color: var(--red); font-size: 14px; font-weight: 800; letter-spacing: .16em; }
.card h3 { margin: 6px 0 10px; font-size: 34px; }
.card p { margin: 0; color: rgba(236, 232, 225, .74); font-size: 16px; }

/* ranks */
.ranks { padding: clamp(80px, 10vw, 140px) 0; background: var(--ink); }
.ladder { display: grid; grid-template-columns: repeat(9, 1fr); gap: 10px; margin: 0; padding: 0; list-style: none; }
.ladder li { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px 6px; border: 1px solid var(--line); background: var(--ink-2); font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; transition: transform .35s var(--ease), border-color .35s; }
.ladder li:hover { transform: translateY(-6px); border-color: var(--red); }
.ladder img { width: 64px; height: 64px; }

/* profile */
.profile { position: relative; padding: clamp(80px, 10vw, 140px) 0; background: linear-gradient(180deg, var(--ink), rgba(15, 25, 35, .6)), url('/img/hero.webp?v=3') 72% center / cover no-repeat; }
.panel { padding: clamp(24px, 4vw, 40px); }
.panel-center { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.panel-center p { margin: 0; color: rgba(236, 232, 225, .8); }
.who { display: flex; align-items: center; gap: 18px; }
.who img { width: 84px; height: 84px; border-radius: 50%; border: 2px solid var(--red); }
.who h3 { font-size: 38px; }
.who p { margin: 2px 0 0; color: var(--mute); font-size: 14px; }
.bar { height: 8px; margin-top: 10px; overflow: hidden; background: rgba(236, 232, 225, .14); }
.bar i { display: block; height: 100%; width: 0; background: var(--red); transition: width 1s var(--ease); }
.row { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; font-size: 14px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.rank-box { display: flex; align-items: center; gap: 16px; margin-top: 26px; padding: 16px; border: 1px solid var(--line); }
.rank-box img { width: 64px; height: 64px; }
.rank-box b { display: block; font: 400 28px/1.1 var(--display); text-transform: uppercase; }
.rank-box span { color: var(--mute); font-size: 14px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 20px; }
.form { margin-top: 26px; }
.form label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.form-row { display: flex; gap: 12px; }
.form input { flex: 1; min-width: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 0; background: rgba(15, 25, 35, .6); color: var(--bone); font: 600 16px var(--body); }
.form input:focus { outline: 0; border-color: var(--red); }
.note { margin: 10px 0 0; color: var(--mute); font-size: 13px; }
.msg { min-height: 22px; margin: 14px 0 0; color: var(--red); font-size: 14px; font-weight: 700; }

/* join */
.join { padding: clamp(70px, 9vw, 120px) 0; background: var(--red); color: var(--ink); text-align: center; }
.join .wrap { display: flex; flex-direction: column; align-items: center; gap: 30px; }

/* footer */
.footer { padding: 44px 0 calc(40px + env(safe-area-inset-bottom)); background: #0a1118; }
.foot-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.footer nav { display: flex; gap: 26px; font-size: 14px; font-weight: 700; }
.footer nav a:hover { color: var(--red); }
.legal { margin: 22px 0 0; color: var(--mute); font-size: 13px; line-height: 1.6; }

/* legal pages */
.page { width: min(760px, 100% - 40px); margin-inline: auto; padding: 120px 0 80px; }
.page h1 { font-size: clamp(48px, 8vw, 80px); margin-bottom: 8px; }
.page h2 { margin-top: 34px; font: 800 20px/1.3 var(--body); text-transform: none; letter-spacing: 0; }
.page p, .page li { color: rgba(236, 232, 225, .82); }

/* scroll reveal: fades in out of a soft blur */
.js .reveal { opacity: 0; filter: blur(10px); transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; filter: none; transform: none; }

/* tablet */
@media (max-width: 1080px) {
  .discord { grid-template-columns: 72px 1fr 240px; }
  .channels { display: none; }
  .cards { grid-template-columns: 1fr 1fr; }
  .cards .card:last-child { grid-column: 1 / -1; }
  .ladder { grid-template-columns: repeat(5, 1fr); }
}

/* phone */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .community { background-attachment: scroll; }
  .links { position: fixed; inset: 72px 0 auto; flex-direction: column; gap: 0; padding: 8px 20px 20px; background: rgba(15, 25, 35, .92); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); transform: translateY(-12px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s var(--ease), visibility .25s; }
  .links.open { transform: none; opacity: 1; visibility: visible; }
  .links a { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .links a::after { display: none; }
  .burger { display: block; }
  .me span { display: none; }
  .brand { font-size: 21px; }

  .hero { justify-content: flex-end; min-height: 100vh; min-height: 100svh; padding: 100px 20px 28px; }
  .hero-art { height: 100%; object-position: center top; }
  .hero-shade { background: linear-gradient(0deg, var(--ink) 14%, rgba(15, 25, 35, .86) 46%, transparent 68%); }
  .hero .eyebrow { color: var(--bone); font-size: 12px; letter-spacing: .16em; text-shadow: 0 1px 10px rgba(0, 0, 0, .7); }
  .hero h1 { font-size: clamp(76px, 23vw, 120px); }
  .nav .btn.small span { padding: 8px 12px; font-size: 12px; letter-spacing: .06em; }
  .nav .long { display: none; }
  .hero .lead { font-size: 15px; margin-top: 10px; }
  .cta { flex-direction: column; margin-top: 20px; gap: 10px; }
  .cta .btn, .cta .btn span { width: 100%; }
  .btn span { min-width: 0; }
  .stats { position: static; margin-top: 18px; }
  .stats div { padding: 12px; }
  .stats dt { font-size: 10px; letter-spacing: .08em; gap: 5px; }
  .stats dd { font-size: 28px; }

  .discord { grid-template-columns: 1fr; height: auto; }
  .rail { display: none; }
  .chat-top { display: none; }
  .chat-hero { padding: 30px 18px; }
  .people { max-height: 340px; }
  .cards { grid-template-columns: 1fr; }
  .cards .card:last-child { grid-column: auto; }
  .card h3 { font-size: 30px; }
  .ladder { grid-template-columns: repeat(3, 1fr); }
  .ladder img { width: 54px; height: 54px; }
  .form-row { flex-direction: column; }
  .form-row .btn, .form-row .btn span { width: 100%; }
  .who img { width: 68px; height: 68px; }
  .who h3 { font-size: 30px; overflow-wrap: anywhere; }
  .profile { background-position: center; }
}

/* pages */
.links a[aria-current="page"]::after { transform: scaleX(1); }
.page-hero { position: relative; padding: 150px 0 72px; background-size: cover; background-position: center 30%; }
.page-hero h1 { font-size: clamp(64px, 11vw, 140px); line-height: .96; }
.page-hero .ar { text-align: left; }
.page-hero .eyebrow { display: flex; align-items: center; gap: 10px; }
.squad-hero { background-image: linear-gradient(90deg, rgba(15, 25, 35, .95) 10%, rgba(15, 25, 35, .45)), linear-gradient(0deg, var(--ink), transparent 40%), url('/img/squad.webp?v=2'); }
.leaders-hero { background-image: linear-gradient(90deg, rgba(15, 25, 35, .95) 10%, rgba(15, 25, 35, .45)), linear-gradient(0deg, var(--ink), transparent 40%), url('/img/ranks.webp?v=2'); }
.board { padding: 24px 0 clamp(70px, 9vw, 120px); min-height: 40vh; }
.btn.wide, .btn.wide span { width: 100%; }

/* LFP board */
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; margin-bottom: 26px; }
.filters label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
select, .field input { padding: 12px 14px; border: 1px solid var(--line); border-radius: 0; background: var(--ink-2); color: var(--bone); font: 600 15px var(--body); }
select:focus, .field input:focus { outline: 0; border-color: var(--red); }
.board-count { margin: 0 0 0 auto; color: var(--mute); font-size: 14px; font-weight: 700; }
.squads { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 20px; }
.squad { display: flex; flex-direction: column; gap: 12px; padding: 22px; transition: transform .35s var(--ease), border-color .35s; }
.squad:hover { transform: translateY(-4px); border-color: rgba(255, 70, 85, .6); }
.squad header { display: flex; align-items: center; gap: 12px; }
.squad header img { border-radius: 50%; }
.squad header div { min-width: 0; }
.squad strong { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.squad small { color: var(--mute); font-size: 13px; }
.squad h3 { font-size: 36px; }
.squad-mode { margin: -8px 0 0; color: var(--red); font-size: 14px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.rank-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rank-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 6px; border: 1px solid var(--line); font-size: 13px; font-weight: 700; }
.slots { display: flex; align-items: center; gap: 6px; }
.slots i { flex: 1; height: 8px; background: rgba(236, 232, 225, .14); }
.slots i.full { background: var(--red); }
.slots b { margin-left: 6px; font-size: 13px; }
.squad-end { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }
.code-out { display: flex; align-items: center; gap: 12px; min-height: 0; margin: 0; color: var(--red); font-size: 14px; font-weight: 700; }
.code-out code { padding: 8px 12px; background: var(--ink); color: var(--bone); font-size: 16px; letter-spacing: .08em; }
.empty { grid-column: 1 / -1; padding: clamp(36px, 6vw, 64px); text-align: center; }
.empty h3 { font-size: 40px; }
.empty p { margin: 10px 0 0; color: rgba(236, 232, 225, .78); }

/* Post LFP sheet */
.sheet { width: min(520px, 100% - 24px); max-height: calc(100dvh - 24px); padding: 0; overflow-y: auto; border: 1px solid var(--line); background: rgba(15, 25, 35, .86); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); color: var(--bone); }
.sheet::backdrop { background: rgba(5, 9, 13, .6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.sheet form { display: flex; flex-direction: column; gap: 18px; padding: 26px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; }
.sheet-head h2 { font-size: 44px; }
.sheet-close { width: 44px; height: 44px; border: 1px solid var(--line); background: none; font-size: 24px; line-height: 1; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.field legend { padding: 0; margin-bottom: 8px; }
.field small { color: var(--mute); font-weight: 600; letter-spacing: 0; text-transform: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { cursor: pointer; }
.chip input { position: absolute; opacity: 0; }
.chip span { display: block; padding: 8px 12px; border: 1px solid var(--line); font-size: 13px; font-weight: 700; letter-spacing: 0; text-transform: none; transition: background .2s, border-color .2s; }
.chip input:checked + span { background: var(--red); border-color: var(--red); }
.chip input:focus-visible + span { outline: 2px solid var(--bone); outline-offset: 2px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--red); }
.sheet .msg { min-height: 0; margin: 0; }

/* Leaderboards */
.tabs { display: flex; margin-bottom: 34px; border-bottom: 1px solid var(--line); }
.tabs button { flex: 1; padding: 14px 8px; border: 0; border-bottom: 3px solid transparent; background: none; color: var(--mute); font-size: 14px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; transition: color .2s, border-color .2s; }
.tabs button:hover { color: var(--bone); }
.tabs button[aria-selected="true"] { color: var(--bone); border-color: var(--red); }
.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 14px; margin-bottom: 22px; }
.podium[data-size="1"], .podium[data-size="2"] { grid-template-columns: repeat(auto-fit, minmax(0, 240px)); justify-content: center; }
.spot { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; padding: 26px 12px 20px; text-align: center; }
.spot-1 { padding-top: 46px; border-color: var(--red); }
.spot img { border-radius: 50%; }
.spot-1 img { outline: 3px solid var(--red); outline-offset: 3px; }
.spot strong { max-width: 100%; margin-top: 6px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.spot b { font: 400 26px/1.1 var(--display); }
.spot small { color: var(--mute); font-size: 13px; }
.spot .place { position: absolute; left: 12px; top: 8px; color: var(--red); font: 400 30px/1 var(--display); }
.ranking { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin: 0; padding: 0; list-style: none; }
.ranking li { display: flex; align-items: center; gap: 14px; padding: 10px 16px; background: var(--ink-2); border: 1px solid transparent; }
.ranking .place { width: 28px; color: var(--mute); font: 400 22px/1 var(--display); }
.ranking img { flex: none; border-radius: 50%; }
.ranking strong { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ranking div { flex: none; text-align: right; }
.ranking b { display: block; font-size: 15px; }
.ranking small { color: var(--mute); font-size: 12px; }
.mine { border-color: var(--red) !important; }

@media (max-width: 760px) {
  .page-hero { padding: 112px 0 40px; }
  .page-hero h1 { font-size: clamp(46px, 15vw, 72px); }
  .ranking li { gap: 10px; padding: 10px 12px; }
  .ranking .place { width: 22px; }
  .squads { grid-template-columns: 1fr; }
  .filters label { flex: 1; min-width: 140px; }
  .filters select { width: 100%; }
  .board-count { width: 100%; margin: 0; }
  .spot { padding: 18px 6px 14px; }
  .spot-1 { padding-top: 30px; }
  .spot img { width: 58px; height: 58px; }
  .spot b { font-size: 20px; }
  .spot .place { left: 8px; top: 6px; font-size: 22px; }
  .tabs button { font-size: 12px; letter-spacing: .04em; }
  .sheet form { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; filter: none; transform: none; }
}
