@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: dark;
  --bg: #0a0a0c;
  --panel: #141416;
  --panel-2: #1a1a1d;
  --line: #2c2c30;
  --text: #f4f4f5;
  --muted: #b8b8be;
  --accent: #e02424;
  --accent-2: #ff3a3a;
  --success: #50d890;
  --danger: #ff6070;
  font-family: Manrope, system-ui, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); min-height: 100vh; }
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
.hidden { display: none !important; }

.landing { min-height: 100vh; background: var(--bg); }
.topbar { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 38px; max-width: 1240px; margin: auto; padding: 0 28px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: -.04em; font-size: 20px; }
.brand img { width: 38px; height: 38px; object-fit: contain; }
.brand span b { color: var(--accent); }
.landing-nav { margin-left: auto; display: flex; gap: 28px; }
.landing-nav a { color: #8f8f97; font-size: 12px; font-weight: 700; transition: color .18s ease; }
.landing-nav a:hover { color: var(--text); }
.top-actions { display: flex; align-items: center; gap: 22px; }
.top-actions .btn { min-width: auto; padding: 9px 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; font-size: 12px; }
.top-actions .btn:hover { border: 0; background: transparent; transform: none; }
.top-actions .btn-ghost { color: #8f8f97; }
.top-actions .btn-ghost:hover { color: white; }
.top-actions .btn-primary { color: var(--accent-2); }
.top-actions .btn-primary span { display: inline-block; margin-left: 5px; transition: transform .18s ease; }
.top-actions .btn-primary:hover span { transform: translateX(3px); }
.btn { border: 1px solid var(--line); border-radius: 10px; padding: 11px 18px; color: var(--text); background: var(--panel-2); font-weight: 700; transition: .18s ease; }
.btn:hover { border-color: #454b5b; transform: translateY(-1px); }
.btn-primary { border-color: var(--accent); background: var(--accent); color: white; box-shadow: 0 0 0 1px rgba(224,36,36,.3), 0 8px 24px rgba(224,36,36,.18); }
.btn-primary:hover { background: #ff3a3a; border-color: #ff3a3a; }
.btn-ghost { background: transparent; }
.btn-wide { width: 100%; }
.btn-google { width: 100%; background: white; color: #202124; border-color: #ddd; display: flex; justify-content: center; gap: 10px; align-items: center; }
.btn-google svg { width: 18px; }

.hero { position: relative; max-width: 1184px; min-height: 570px; margin: auto; padding: 86px 0; display: flex; align-items: center; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-copy { position: relative; z-index: 1; width: min(680px, 70%); }
.hero-mark { position: absolute; top: 54px; right: 0; display: flex; align-items: center; gap: 28px; color: #18181b; user-select: none; }
.hero-mark span { font-size: clamp(120px, 20vw, 280px); line-height: .8; font-weight: 800; letter-spacing: -.1em; }
.hero-mark img { width: clamp(150px, 18vw, 250px); height: auto; opacity: .16; }
.eyebrow { color: #96969e; font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; display: flex; align-items: center; gap: 9px; }
.eyebrow:before { content: '◆'; color: #5f5f67; font-size: 7px; line-height: 1; }
.hero h1 { margin: 20px 0 18px; max-width: 760px; font-size: clamp(58px, 7vw, 96px); line-height: .92; letter-spacing: -.07em; }
.hero h1 span { color: inherit; }
.hero-copy > p { max-width: 500px; color: #a4a4ac; font-size: 16px; line-height: 1.65; }
.hero-actions { display: flex; gap: 12px; margin-top: 34px; }
.hero-actions .btn { min-width: 148px; border-radius: 5px; padding: 13px 20px; box-shadow: none; font-size: 13px; }
.hero-actions .btn-primary { border-color: var(--accent); background: var(--accent); color: white; }
.hero-actions .btn-primary:hover { border-color: var(--accent-2); background: var(--accent-2); }
.hero-actions .btn-ghost { border-color: rgba(224,36,36,.55); background: transparent; color: var(--accent-2); }
.hero-actions .btn-ghost:hover { border-color: var(--accent-2); color: white; }
.hero-stats { width: fit-content; display: flex; gap: 42px; margin-top: 48px; }
.hero-stat { min-width: 120px; padding: 18px 30px 0 0; }
.hero-stat + .hero-stat { padding-left: 0; }
.hero-stat strong { display: block; font-size: 21px; }
.hero-stat span { color: #797981; font-size: 10px; }
.top-section { max-width: 1184px; margin: auto; padding: 95px 0; }
.leaderboard { border-top: 1px solid var(--line); }
.leaderboard-row { min-height: 76px; display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 20px; border-bottom: 1px solid var(--line); }
.leaderboard-place { color: #65656d; font-size: 13px; font-weight: 800; }
.leaderboard-player { display: flex; align-items: center; gap: 14px; }
.leaderboard-player img { width: 38px; height: 38px; border-radius: 8px; object-fit: cover; background: #151519; }
.leaderboard-player b { font-size: 15px; }
.leaderboard-row > strong { font-size: 13px; }
.landing-section, .maps-section { max-width: 1240px; margin: auto; padding: 110px 28px; }
.section-heading { margin-bottom: 45px; display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.section-heading h2 { max-width: 650px; margin: 12px 0 0; font-size: clamp(32px, 4vw, 52px); line-height: 1.05; letter-spacing: -.055em; }
.section-heading > p { max-width: 390px; margin: 0; color: #85858d; line-height: 1.65; }
.maps-section { max-width: none; padding-left: max(28px, calc((100vw - 1184px) / 2)); padding-right: 0; overflow: hidden; background: #0d0d0f; }
.maps-section .section-heading { max-width: 1184px; padding-right: 28px; }
.map-strip { display: grid; grid-template-columns: repeat(3, minmax(260px, 1fr)); gap: 12px; padding-right: max(28px, calc((100vw - 1184px) / 2)); }
.map-strip article { height: 360px; padding: 20px; display: flex; align-items: flex-end; border: 1px solid var(--line); background: linear-gradient(to top, rgba(8,8,10,.92), transparent 65%), var(--map) center/cover; filter: saturate(.75); transition: .25s ease; }
.map-strip article:hover { filter: saturate(1); transform: translateY(-4px); }
.map-strip b { font-size: 16px; }
.join-section { max-width: 1184px; margin: 80px auto; padding: 60px 0; display: flex; align-items: center; justify-content: space-between; gap: 40px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.join-section h2 { max-width: 760px; margin: 12px 0 0; font-size: clamp(30px, 4vw, 50px); line-height: 1.08; letter-spacing: -.055em; }
.footer { max-width: 1240px; margin: auto; padding: 70px 28px 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.footer-main p { max-width: 340px; color: #777780; font-size: 12px; line-height: 1.65; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.footer-links div { display: grid; align-content: start; gap: 11px; }
.footer-links strong { margin-bottom: 6px; font-size: 12px; }
.footer-links a { color: #85858d; font-size: 12px; }
.footer-links a:hover { color: var(--text); }
.footer-bottom { grid-column: 1 / -1; padding-top: 25px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: #5d5d65; font-size: 10px; }

.modal-backdrop { position: fixed; inset: 0; z-index: 20; padding: 24px; display: grid; place-items: center; background: rgba(3,4,6,.78); backdrop-filter: blur(12px); }
.auth-card { width: min(440px, 100%); border: 1px solid var(--line); background: #111319; border-radius: 20px; padding: 30px; box-shadow: 0 30px 90px #000; }
.auth-brand { display: flex; align-items: center; gap: 9px; margin-bottom: 34px; font-size: 13px; font-weight: 800; letter-spacing: -.04em; }
.auth-brand img { width: 26px; height: 26px; object-fit: contain; }
.auth-brand b { color: var(--accent); }
.auth-head { display: flex; justify-content: space-between; align-items: start; margin-bottom: 24px; }
.auth-head h2 { margin: 0 0 6px; font-size: 26px; letter-spacing: -.04em; }
.auth-head p { margin: 0; color: var(--muted); font-size: 13px; }
.close { color: var(--muted); background: none; border: 0; font-size: 25px; line-height: 1; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; background: #0c0e12; border: 1px solid var(--line); border-radius: 11px; margin-bottom: 20px; }
.tabs button { border: 0; padding: 9px; color: var(--muted); background: transparent; border-radius: 8px; font-weight: 700; }
.tabs button.active { color: var(--text); background: var(--panel-2); }
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 12px; font-weight: 700; color: #c4c7d0; }
.field input, .field select { width: 100%; border: 1px solid var(--line); background: #0b0d11; color: var(--text); border-radius: 10px; padding: 12px 13px; outline: none; }
.field input:focus, .field select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(224,36,36,.12); }
.divider { display: flex; align-items: center; gap: 12px; color: #696e7c; font-size: 11px; margin: 18px 0; }
.divider:before, .divider:after { content: ''; height: 1px; background: var(--line); flex: 1; }
.message { font-size: 13px; line-height: 1.4; border-radius: 9px; padding: 10px 12px; background: rgba(255,96,112,.08); color: var(--danger); }
.message.success { color: var(--success); background: rgba(80,216,144,.08); }
.code-input { text-align: center; letter-spacing: .45em; font-size: 24px; font-weight: 800; }

#auth-modal { background: rgba(5,5,7,.88); backdrop-filter: blur(7px); }
#auth-modal .auth-card { width: min(410px, 100%); padding: 32px 34px 34px; border-color: #29292e; border-radius: 10px; background: #0f0f12; box-shadow: 0 28px 80px rgba(0,0,0,.7); }
#auth-modal .auth-head { margin-bottom: 26px; }
#auth-modal .auth-head h2 { font-size: 28px; }
#auth-modal .tabs { display: flex; gap: 24px; padding: 0; margin-bottom: 26px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
#auth-modal .tabs button { position: relative; padding: 0 0 12px; border-radius: 0; font-size: 12px; }
#auth-modal .tabs button.active { background: transparent; }
#auth-modal .tabs button.active:after { content: ''; position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: var(--accent); }
#auth-modal .btn-google { height: 46px; border-color: #303035; border-radius: 5px; background: #17171a; color: #e7e7e9; font-size: 13px; }
#auth-modal .btn-google:hover { border-color: #4a4a50; background: #1c1c20; }
#auth-modal .divider { margin: 20px 0; }
#auth-modal .field { gap: 8px; }
#auth-modal .field label { color: #8f8f97; font-size: 11px; }
#auth-modal .field input { height: 48px; border-radius: 5px; background: #0a0a0c; }
#auth-modal .form { gap: 16px; }
#auth-modal .form > .btn-primary { height: 48px; margin-top: 8px; border-radius: 5px; box-shadow: none; }

.shell { min-height: 100vh; background: var(--bg); }
.app-header { position: sticky; top: 0; z-index: 10; height: 64px; border-bottom: 1px solid rgba(255,255,255,.07); background: rgba(10,10,12,.92); backdrop-filter: blur(18px); }
.app-header__inner { max-width: 1320px; height: 100%; margin: auto; padding: 0 28px; display: grid; grid-template-columns: 190px 1fr 190px; align-items: center; }
.app-brand { width: fit-content; gap: 9px; font-size: 18px; }
.app-brand img { width: 32px; height: 32px; }
.app-nav { height: 100%; display: flex; align-items: stretch; justify-content: center; gap: 32px; }
.app-nav button { position: relative; padding: 0; border: 0; color: #85858d; background: transparent; font-size: 12px; font-weight: 700; transition: color .18s ease; }
.app-nav button:hover, .app-nav button.active { color: var(--text); }
.app-nav button.active:after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); }
.header-account { position: relative; justify-self: end; }
.account-trigger { display: flex; align-items: center; gap: 9px; min-width: 142px; padding: 5px 6px; border: 1px solid transparent; border-radius: 7px; color: var(--text); background: transparent; text-align: left; transition: .18s ease; }
.account-trigger:hover, .account-trigger[aria-expanded="true"] { border-color: #29292e; background: #121214; }
.avatar { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 7px; object-fit: cover; background: #290b0d; border: 1px solid rgba(224,36,36,.38); color: var(--accent-2); display: grid; place-items: center; font-size: 13px; font-weight: 800; }
.account-name { min-width: 0; display: grid; gap: 1px; }
.account-name strong { max-width: 110px; overflow: hidden; text-overflow: ellipsis; font-size: 12px; white-space: nowrap; }
.account-name small { color: #66666e; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.account-chevron { margin-left: auto; color: #696970; font-size: 16px; transform: translateY(-2px); transition: transform .18s ease; }
.account-trigger[aria-expanded="true"] .account-chevron { transform: rotate(180deg) translateY(-2px); }
.account-dropdown { position: absolute; top: calc(100% + 8px); right: 0; width: 178px; padding: 6px; border: 1px solid #29292e; border-radius: 9px; background: #111113; box-shadow: 0 18px 50px rgba(0,0,0,.45); opacity: 0; visibility: hidden; transform: translateY(-5px); transition: .16s ease; }
.account-dropdown.open { opacity: 1; visibility: visible; transform: translateY(0); }
.account-dropdown button { width: 100%; padding: 10px 11px; border: 0; border-radius: 5px; color: #b7b7bd; background: transparent; text-align: left; font-size: 11px; font-weight: 700; }
.account-dropdown button:hover { color: white; background: #1a1a1d; }
.account-dropdown .account-logout { color: #e46b72; }
.dashboard { max-width: 1320px; margin: auto; padding: 64px 28px 90px; min-width: 0; }
.dashboard-head { margin-bottom: 40px; display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.dashboard-head span { color: #6f6f77; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.dashboard-head h1 { margin: 8px 0 0; font-size: 38px; letter-spacing: -.055em; }
.account-state { display: flex; align-items: center; gap: 8px; color: #898991; font-size: 11px; }
.account-state i { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(80,216,144,.08); }
.grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(320px, .65fr); gap: 22px; }
.panel, .rating-panel { min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: #101012; }
.panel-title { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.panel-title span { font-size: 12px; font-weight: 800; }
.panel-title small { color: #686870; font-size: 10px; }
.queue-card { min-height: 350px; padding: 38px; border: 1px solid #3b191c; border-radius: 12px; background: #121012; display: flex; flex-direction: column; justify-content: space-between; }
.queue-status { width: fit-content; padding: 6px 9px; border: 1px solid #472024; border-radius: 4px; color: #df6d74; background: #1b1012; font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.queue-card h2 { max-width: 650px; margin: 48px 0 14px; font-size: clamp(36px, 4vw, 52px); line-height: 1.04; letter-spacing: -.055em; }
.queue-card p { max-width: 500px; color: #87878f; font-size: 14px; line-height: 1.7; }
.queue-card .btn { align-self: flex-start; }
.queue-card .btn:disabled { opacity: .55; cursor: default; transform: none; }
.rating { display: flex; align-items: center; gap: 18px; padding: 32px 22px 28px; }
.level { width: 62px; height: 62px; border-radius: 8px; background: #260b0d; color: var(--accent-2); border: 1px solid rgba(224,36,36,.28); display: grid; place-items: center; font-size: 24px; font-weight: 800; }
.rating strong { font-size: 36px; letter-spacing: -.04em; }
.rating small { color: var(--muted); display: block; }
.skill-level { flex: 0 0 auto; width: 38px; height: 38px; object-fit: contain; image-rendering: auto; }
.level-progress { padding: 0 22px 22px; }
.level-progress i { height: 4px; display: block; overflow: hidden; border-radius: 4px; background: #242428; }
.level-progress em { height: 100%; display: block; border-radius: inherit; background: var(--level-color, #8b8b92); }
.level-progress span { display: block; margin-top: 7px; color: #717179; font-size: 9px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.stat { padding: 20px 18px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat strong { display: block; font-size: 22px; }
.stat span { font-size: 11px; color: var(--muted); }
.matches-panel { grid-column: 1 / -1; }
.empty { min-height: 190px; display: grid; place-items: center; text-align: center; color: #777780; }
.empty-mark { display: block; margin-bottom: 12px; color: #424248; font-size: 28px; }
.empty strong { color: var(--text); display: block; margin-bottom: 5px; }
.empty p { margin: 0; color: #686870; font-size: 12px; }
.news-board { display: grid; grid-template-columns: 1.35fr .65fr; gap: 16px; }
.news-card { min-height: 210px; padding: 26px; border: 1px solid var(--line); border-radius: 12px; background: #101012; display: flex; flex-direction: column; justify-content: space-between; }
.news-card--main { grid-row: span 2; min-height: 436px; padding: 38px; border-color: #3b191c; background: #121012; }
.news-date { color: #73737b; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.news-card h2 { max-width: 620px; margin: 100px 0 18px; font-size: clamp(38px, 4.5vw, 60px); line-height: 1.02; letter-spacing: -.06em; }
.news-card h3 { margin: 44px 0 10px; font-size: 22px; letter-spacing: -.04em; }
.news-card p { max-width: 560px; margin: 0; color: #85858d; font-size: 13px; line-height: 1.7; }
.news-tag { width: fit-content; padding: 6px 9px; border-radius: 4px; background: var(--accent); color: white; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.page-panel { min-height: 410px; }
.page-empty { min-height: 330px; }
.rating-page { display: grid; grid-template-columns: 380px 1fr; gap: 22px; }
.profile-card { max-width: 760px; padding: 32px; border: 1px solid var(--line); border-radius: 12px; background: #101012; display: grid; grid-template-columns: 76px 1fr; align-items: center; gap: 22px; }
.profile-avatar { width: 76px; height: 76px; border-radius: 12px; background: #260b0d; border: 1px solid rgba(224,36,36,.28); color: var(--accent-2); display: grid; place-items: center; font-size: 28px; font-weight: 800; }
.profile-name h2 { margin: 0 0 5px; font-size: 28px; letter-spacing: -.04em; }
.profile-name span { color: #777780; font-size: 12px; }
.profile-card dl { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); margin: 16px 0 0; border-top: 1px solid var(--line); }
.profile-card dl div { padding: 22px 12px 0 0; }
.profile-card dl div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.profile-card dt { margin-bottom: 7px; color: #6f6f77; font-size: 10px; text-transform: uppercase; }
.profile-card dd { margin: 0; font-size: 13px; font-weight: 700; }
.profile-heading { margin-bottom: 28px; }
.profile-hero { min-height: 170px; padding: 28px 30px; display: grid; grid-template-columns: 96px 1fr auto; align-items: center; gap: 24px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(110deg, #121012, #101012 65%); }
.profile-avatar--large { width: 96px; height: 96px; overflow: hidden; border-radius: 10px; font-size: 32px; }
.profile-avatar--large img { width: 100%; height: 100%; object-fit: cover; }
.profile-identity h2 { margin: 0 0 7px; font-size: 30px; letter-spacing: -.045em; }
.profile-identity p { margin: 0; color: #777780; font-size: 12px; }
.profile-rank { min-width: 150px; padding-left: 28px; border-left: 1px solid var(--line); display: grid; }
.profile-rank span { color: #6f6f77; font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.profile-rank strong { margin: 3px 0 -2px; font-size: 38px; letter-spacing: -.05em; }
.profile-rank small { color: #777780; font-size: 10px; }
.profile-tabs { height: 60px; margin: 16px 0 22px; padding: 0 4px; display: flex; align-items: stretch; gap: 28px; border-bottom: 1px solid var(--line); }
.profile-tabs button { position: relative; padding: 0 2px; border: 0; color: #777780; background: transparent; font-size: 11px; font-weight: 700; }
.profile-tabs button:hover, .profile-tabs button.active { color: var(--text); }
.profile-tabs button.active:after { content: ''; position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: var(--accent); }
.profile-overview { display: grid; grid-template-columns: 1fr 1.35fr; gap: 16px; }
.profile-primary-stats, .profile-detail-grid, .profile-stat-list { display: grid; border: 1px solid var(--line); border-radius: 10px; background: #101012; }
.profile-primary-stats { grid-template-columns: 1fr 1fr; }
.profile-primary-stats div { min-height: 116px; padding: 24px; }
.profile-primary-stats div:nth-child(even) { border-left: 1px solid var(--line); }
.profile-primary-stats div:nth-child(n+3) { border-top: 1px solid var(--line); }
.profile-primary-stats span, .profile-detail-grid span, .profile-chart-head span { display: block; margin-bottom: 8px; color: #73737b; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.profile-primary-stats strong { font-size: 27px; }
.profile-chart-card { min-height: 248px; padding: 24px; border: 1px solid var(--line); border-radius: 10px; background: #101012; }
.profile-chart-head { display: flex; align-items: start; justify-content: space-between; }
.profile-chart-head h3 { margin: 0; font-size: 15px; }
.profile-chart-head > strong { font-size: 22px; }
.elo-chart { position: relative; height: 155px; margin-top: 12px; color: #686870; display: grid; place-items: center; }
.elo-chart:before { content: ''; position: absolute; inset: 12px 0 25px; background: repeating-linear-gradient(to bottom, #242428 0 1px, transparent 1px 38px); opacity: .55; }
.elo-chart svg { position: relative; z-index: 1; width: 100%; height: 125px; overflow: visible; }
.elo-chart small { position: absolute; right: 0; bottom: 0; font-size: 9px; }
.profile-detail-grid { grid-column: 1 / -1; grid-template-columns: repeat(4, 1fr); }
.profile-detail-grid div { padding: 20px 22px; }
.profile-detail-grid div + div { border-left: 1px solid var(--line); }
.profile-detail-grid b { font-size: 20px; }
.profile-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.profile-stat-list { grid-template-columns: 1fr 1fr; }
.profile-stat-list div { min-height: 126px; padding: 24px; display: flex; flex-direction: column; }
.profile-stat-list div:nth-child(even) { border-left: 1px solid var(--line); }
.profile-stat-list div:nth-child(n+3) { border-top: 1px solid var(--line); }
.profile-stat-list span { color: #777780; font-size: 10px; }
.profile-stat-list strong { margin-top: auto; font-size: 26px; }
.profile-stat-list small { color: #65656d; font-size: 9px; }
.performance-card { padding: 24px; border: 1px solid var(--line); border-radius: 10px; background: #101012; }
.performance-card h3 { margin: 0 0 28px; font-size: 15px; }
.performance-row { margin-top: 22px; }
.performance-row div { margin-bottom: 9px; display: flex; justify-content: space-between; color: #85858d; font-size: 10px; }
.performance-row i { height: 4px; display: block; overflow: hidden; border-radius: 2px; background: #242428; }
.performance-row em { height: 100%; display: block; background: var(--accent); }
.profile-matches { min-height: 360px; }
.profile-settings { display: grid; gap: 14px; }
.settings-block { padding: 26px; display: grid; grid-template-columns: minmax(220px, .7fr) 1.3fr; gap: 40px; border: 1px solid var(--line); border-radius: 10px; background: #101012; }
.settings-block h3 { margin: 0 0 7px; font-size: 15px; }
.settings-block p { max-width: 300px; margin: 0; color: #73737b; font-size: 11px; line-height: 1.6; }
.avatar-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
.avatar-actions .btn { padding: 9px 14px; font-size: 11px; }
.settings-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.settings-fields .field:first-child { grid-column: 1 / -1; }
.settings-submit { grid-column: 1 / -1; min-height: 40px; display: flex; align-items: center; justify-content: flex-end; gap: 18px; }
.settings-submit span { color: #d26b72; font-size: 10px; }
.settings-submit .btn { padding: 10px 16px; font-size: 11px; box-shadow: none; }
.account-info dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.account-info dl div { display: grid; gap: 6px; }
.account-info dt { color: #6f6f77; font-size: 9px; text-transform: uppercase; }
.account-info dd { margin: 0; font-size: 12px; font-weight: 700; }
.avatar-editor-backdrop { position: fixed; inset: 0; z-index: 40; padding: 20px; display: grid; place-items: center; background: rgba(4,4,6,.86); backdrop-filter: blur(10px); }
.avatar-editor { width: min(430px, 100%); padding: 26px; border: 1px solid #303035; border-radius: 12px; background: #111113; box-shadow: 0 30px 90px #000; }
.avatar-editor header { display: flex; justify-content: space-between; align-items: start; margin-bottom: 22px; }
.avatar-editor h2 { margin: 0 0 5px; font-size: 21px; letter-spacing: -.04em; }
.avatar-editor p { margin: 0; color: #777780; font-size: 10px; }
.avatar-crop { position: relative; width: min(330px, 100%); aspect-ratio: 1; margin: auto; overflow: hidden; border: 1px solid #34343a; border-radius: 12px; background: #09090b; }
.avatar-crop:after { content: ''; position: absolute; inset: 0; pointer-events: none; border: 1px solid rgba(255,255,255,.13); border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(0,0,0,.25); }
.avatar-crop canvas { width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
.avatar-crop canvas:active { cursor: grabbing; }
.avatar-zoom { margin: 20px auto; display: grid; grid-template-columns: 18px 1fr 18px; align-items: center; gap: 10px; color: #777780; font-size: 15px; }
.avatar-zoom input { width: 100%; accent-color: var(--accent); }
.avatar-editor footer { display: flex; justify-content: flex-end; gap: 9px; padding-top: 20px; border-top: 1px solid var(--line); }
.avatar-editor footer .btn { padding: 10px 16px; border-radius: 6px; box-shadow: none; font-size: 11px; }
.player-head { margin-bottom: 20px; border-radius: 12px; background: #101012; }
.player-head__main { min-height: 150px; padding: 26px 30px 22px; display: grid; grid-template-columns: 92px minmax(0, 1fr) 290px; align-items: center; column-gap: 24px; }
.player-head .profile-avatar--large { position: relative; width: 88px; height: 88px; border-radius: 50%; }
.player-head .profile-avatar--large i { position: absolute; right: 2px; bottom: 5px; width: 13px; height: 13px; border: 3px solid #101012; border-radius: 50%; background: var(--success); }
.player-head__identity { min-width: 0; }
.player-head__identity > div { display: flex; align-items: center; gap: 12px; }
.player-head__identity h2 { margin: 0; font-size: 25px; letter-spacing: -.04em; }
.player-head__identity > div > span { color: #6f9c79; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.player-head__identity > div > span i { width: 5px; height: 5px; margin-right: 4px; display: inline-block; border-radius: 50%; background: var(--success); vertical-align: 1px; }
.player-head__identity p { margin: 13px 0 0; display: flex; gap: 16px; color: #777780; font-size: 10px; }
.player-head__identity p span + span:before { content: '·'; margin-right: 16px; color: #46464d; }
.player-head__rank { padding: 17px 18px; display: grid; grid-template-columns: 50px 1fr; align-items: center; column-gap: 13px; }
.player-head__rank .skill-level { width: 38px; height: 38px; grid-row: 1; }
.player-head__rank > div:nth-child(2) { display: grid; }
.player-head__rank > div:nth-child(2) span { color: var(--level-color, #85858d); font-size: 9px; font-weight: 700; text-transform: uppercase; }
.player-head__rank strong { margin: 2px 0; font-size: 20px; }
.player-head__rank small { color: #777780; font-size: 9px; }
.player-head__rank .level-progress { grid-column: 1 / -1; padding: 14px 0 0; }
.head-levels { min-height: 62px; padding: 0 30px; display: grid; grid-template-columns: 80px 1fr; align-items: center; background: #0e0e10; }
.head-levels > span { color: #686870; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.head-levels > div { display: grid; grid-template-columns: repeat(10, 1fr); align-items: center; }
.head-levels > div > span { display: grid; place-items: center; opacity: .2; filter: grayscale(1); }
.head-levels > div > span.passed { opacity: .5; filter: grayscale(.35); }
.head-levels > div > span.active { opacity: 1; filter: none; transform: scale(1.14); }
.head-levels .skill-level { width: 34px; height: 34px; }
.profile-body { display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: start; gap: 28px; }
.profile-page-tabs { position: sticky; top: 84px; width: 100%; height: auto; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 4px; border: 0; background: transparent; }
.profile-page-tabs button { width: 100%; min-height: 42px; padding: 0 14px; text-align: left; border-radius: 7px; }
.profile-page-tabs button:hover { background: #111113; }
.profile-page-tabs button.active { background: #171719; }
.profile-page-tabs button.active:after { top: 10px; right: auto; bottom: 10px; left: 0; width: 2px; height: auto; background: #777780; }
#profile-content { min-width: 0; }
.level-tone-1 { --level-color: #9b9b9f; }
.level-tone-2, .level-tone-3 { --level-color: #36c56b; }
.level-tone-4, .level-tone-5, .level-tone-6, .level-tone-7 { --level-color: #f0c43c; }
.level-tone-8, .level-tone-9 { --level-color: #ff7a1a; }
.level-tone-10 { --level-color: #ec174c; }
#profile-content .profile-overview { display: block; }
#profile-content .profile-primary-stats div { min-height: 100px; padding: 20px; }
#profile-content .profile-chart-card { min-height: 218px; border-color: transparent; background: #101012; }
#profile-content .elo-chart { height: 128px; }
#profile-content .profile-primary-stats, #profile-content .profile-detail-grid, #profile-content .profile-stat-list, #profile-content .performance-card, #profile-content .profile-matches { border-color: transparent; background: #101012; }
#profile-content .settings-block { border-color: transparent; background: #101012; }
#profile-content .profile-chart-head > strong { color: var(--level-color, #dedee2); }
#profile-content .profile-detail-grid div:nth-child(1) b { color: #e5a05d; }
#profile-content .profile-detail-grid div:nth-child(2) b { color: #d87981; }
#profile-content .profile-detail-grid div:nth-child(3) b { color: #b18cbd; }
#profile-content .profile-detail-grid div:nth-child(4) b { color: #e1aa4f; }
.overview-kpis { margin-bottom: 16px; display: grid; grid-template-columns: repeat(6, 1fr); border-radius: 10px; background: #101012; }
.overview-kpis div { min-width: 0; padding: 20px 18px; }
.overview-kpis span { display: block; margin-bottom: 9px; color: #6f6f77; font-size: 9px; font-weight: 700; text-transform: uppercase; }
.overview-kpis strong { font-size: 21px; letter-spacing: -.035em; }
.overview-analytics { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(250px, .55fr); gap: 16px; }
.combat-card { min-height: 218px; padding: 24px; border-radius: 10px; background: #101012; }
.compact-title { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.compact-title span { font-size: 11px; font-weight: 800; }
.compact-title small { color: #696971; font-size: 9px; }
.recent-form { margin: 24px 0 20px; display: flex; gap: 8px; }
.recent-form span { width: 28px; height: 28px; min-height: 0; display: grid; place-items: center; border-radius: 50%; background: #1b1b1e; color: #6e6e76; font-size: 10px; }
.combat-card dl { margin: 0; display: grid; gap: 11px; }
.combat-card dl div { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.combat-card dt { color: #717179; font-size: 9px; }
.combat-card dd { margin: 0; font-size: 10px; font-weight: 700; }
.level-road { margin-top: 16px; padding: 22px 24px; border-radius: 10px; background: #101012; }
.level-road > div:last-child { margin-top: 18px; display: grid; grid-template-columns: repeat(10, 1fr); align-items: center; gap: 12px; }
.level-road > div:last-child > span { min-width: 0; display: grid; place-items: center; opacity: .22; filter: grayscale(1); }
.level-road > div:last-child > span.passed { opacity: .55; filter: grayscale(.35); }
.level-road > div:last-child > span.active { opacity: 1; filter: none; transform: scale(1.18); }
.level-road .skill-level { width: 34px; height: 34px; max-width: 100%; }
#profile-content .profile-stat-list { grid-template-columns: repeat(4, 1fr); }
#profile-content .profile-stat-list div { min-height: 112px; }
.performance-row:nth-of-type(2) em { background: #df8b3a; }
.performance-row:nth-of-type(3) em { background: #9d8ce5; }

@media (max-width: 850px) {
  .hero { min-height: 560px; margin: 0 16px; padding: 70px 0; }
  .hero-copy { width: 100%; }
  .hero-mark { top: 50px; right: 0; gap: 18px; }
  .hero-mark span { font-size: 150px; }
  .hero-mark img { width: 170px; }
  .landing-nav { display: none; }
  .top-section { margin: 0 16px; padding: 80px 0; }
  .section-heading { align-items: start; flex-direction: column; }
  .map-strip { overflow-x: auto; grid-template-columns: repeat(6, 280px); padding-right: 20px; }
  .join-section { margin: 50px 16px; padding: 45px 0; align-items: start; flex-direction: column; }
  .footer { grid-template-columns: 1fr; }
  .footer-bottom { grid-column: auto; gap: 15px; flex-direction: column; }
  .app-header__inner { padding: 0 16px; display: flex; gap: 20px; }
  .app-brand { padding-right: 0; }
  .app-header .brand span { display: none; }
  .app-nav { gap: 18px; overflow-x: auto; }
  .app-nav button { white-space: nowrap; font-size: 11px; }
  .account-trigger { min-width: auto; padding: 5px; }
  .account-name, .account-chevron { display: none; }
  .dashboard { padding: 36px 16px 70px; }
  .grid { grid-template-columns: 1fr; }
  .matches-panel { grid-column: auto; }
  .news-board, .rating-page { grid-template-columns: 1fr; }
  .profile-overview, .profile-stats { grid-template-columns: 1fr; }
  .overview-kpis { grid-template-columns: repeat(3, 1fr); }
  .overview-analytics { grid-template-columns: 1fr; }
  #profile-content .profile-stat-list { grid-template-columns: repeat(2, 1fr); }
  .player-head__main { grid-template-columns: 82px minmax(0, 1fr); }
  .player-head__rank { grid-column: 1 / -1; }
  .news-card--main { grid-row: auto; min-height: 360px; }
}

@media (max-width: 520px) {
  .topbar { padding: 0 16px; }
  .top-actions .btn-ghost { display: none; }
  .hero { min-height: 520px; padding: 55px 0 70px; }
  .hero-mark { top: 38px; gap: 12px; }
  .hero-mark span { font-size: 105px; }
  .hero-mark img { width: 115px; }
  .hero h1 { font-size: 62px; }
  .hero-actions { flex-direction: column; }
  .hero-stat { min-width: 92px; padding-right: 16px; }
  .hero-stats { gap: 16px; }
  .landing-section, .maps-section { padding-top: 75px; padding-bottom: 75px; }
  .footer-links { gap: 20px; }
  .leaderboard-row { grid-template-columns: 30px 1fr auto; gap: 10px; }
  .leaderboard-player { gap: 10px; }
  .auth-card { padding: 22px; }
  .dashboard-head { align-items: start; }
  .app-header__inner { gap: 12px; }
  .app-brand { padding-right: 12px; }
  .app-nav { gap: 14px; }
  .app-nav button { font-size: 10px; }
  .queue-card { padding: 24px; }
  .dashboard-head { align-items: start; }
  .account-state { display: none; }
  .news-card--main { min-height: 320px; padding: 26px; }
  .news-card h2 { margin-top: 70px; }
  .profile-card { padding: 22px; grid-template-columns: 62px 1fr; }
  .profile-avatar { width: 62px; height: 62px; }
  .profile-card dl { grid-template-columns: 1fr 1fr; }
  .profile-card dl div:nth-child(3) { border-left: 0; }
  .profile-hero { grid-template-columns: 70px 1fr; padding: 20px; }
  .profile-avatar--large { width: 70px; height: 70px; }
  .profile-rank { grid-column: 1 / -1; padding: 18px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .profile-tabs { gap: 18px; overflow-x: auto; }
  .profile-detail-grid { grid-template-columns: 1fr 1fr; }
  .profile-detail-grid div:nth-child(3) { border-top: 1px solid var(--line); border-left: 0; }
  .profile-detail-grid div:nth-child(4) { border-top: 1px solid var(--line); }
  .settings-block { grid-template-columns: 1fr; gap: 22px; }
  .avatar-actions { justify-content: flex-start; }
  .settings-fields { grid-template-columns: 1fr; }
  .settings-fields .field:first-child, .settings-submit { grid-column: auto; }
  .player-head__main { padding: 22px 18px; grid-template-columns: 64px minmax(0, 1fr); gap: 15px; }
  .player-head .profile-avatar--large { width: 62px; height: 62px; }
  .player-head__identity h2 { font-size: 20px; }
  .player-head__rank { padding: 14px; }
  .head-levels { padding: 10px 12px; grid-template-columns: 1fr; gap: 8px; }
  .head-levels > span { display: none; }
  .head-levels .skill-level { width: 27px; height: 27px; }
  .profile-body { grid-template-columns: 110px minmax(0, 1fr); gap: 12px; }
  .profile-page-tabs { position: static; padding: 0; gap: 3px; overflow: visible; }
  .profile-page-tabs button { padding: 0 10px; white-space: nowrap; font-size: 9px; }
  .overview-kpis { grid-template-columns: repeat(2, 1fr); }
  .overview-kpis div { padding: 17px 15px; }
  .level-road { padding: 20px 16px; overflow: hidden; }
  .level-road > div:last-child { gap: 5px; }
  .level-road .skill-level { width: 27px; height: 27px; }
}
