:root {
  --bg: #0b0c0f;
  --surface: #12141a;
  --surface-2: #181b22;
  --text: #f3f1ea;
  --muted: #9c9da3;
  --line: #2a2d35;
  --accent: #f4c54c;
  --accent-2: #cf6b48;
  --max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.5; }
a { color: inherit; }
button, select { font: inherit; }
.site-header { max-width: var(--max); margin: 0 auto; min-height: 82px; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; letter-spacing: .08em; font-weight: 800; font-size: .92rem; }
.brand-mark { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.brand-mark path { stroke-linecap: round; stroke-linejoin: round; }
.account-area { display: flex; align-items: center; gap: 18px; min-height: 44px; }
.account-link { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; }
.account-link img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.text-button { border: 0; padding: 8px 0; background: transparent; color: var(--muted); cursor: pointer; }
.text-button:hover { color: var(--text); }
main { overflow: hidden; }
.hero { max-width: var(--max); min-height: 620px; margin: 0 auto; padding: 82px 28px 92px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 70px; }
.eyebrow { margin: 0 0 18px; color: var(--accent); font-size: .75rem; letter-spacing: .19em; font-weight: 800; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 26px; font-size: clamp(3.25rem, 7vw, 6.4rem); line-height: .9; letter-spacing: -.065em; max-width: 760px; }
.hero-text { max-width: 660px; margin-bottom: 34px; color: #c1c1c3; font-size: 1.14rem; }
.hero-actions { display: flex; align-items: center; gap: 28px; }
.primary-button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; background: var(--accent); color: #15130e; text-decoration: none; font-weight: 800; border: 1px solid var(--accent); }
.primary-button:hover { background: #ffd667; }
.secondary-link { text-decoration-thickness: 1px; text-underline-offset: 6px; color: #d6d3cb; }
.hero-cards { position: relative; height: 430px; }
.show-card { position: absolute; width: 210px; aspect-ratio: .69; border: 1px solid rgba(255,255,255,.18); border-radius: 18px; display: flex; align-items: center; justify-content: center; box-shadow: 0 28px 70px rgba(0,0,0,.34); }
.show-card span { font-size: 6rem; font-weight: 900; letter-spacing: -.08em; }
.show-card-a { left: 6%; top: 84px; transform: rotate(-13deg); background: #d88b38; color: #16100b; }
.show-card-b { left: 35%; top: 42px; transform: rotate(2deg); background: #e9e4d6; color: #1b1c1d; }
.show-card-c { left: 61%; top: 96px; transform: rotate(13deg); background: #984c42; color: #f6eee2; }
.section { max-width: var(--max); margin: 0 auto; padding: 94px 28px; border-top: 1px solid var(--line); }
.section-heading { margin-bottom: 44px; }
.section-heading h2 { margin-bottom: 0; font-size: clamp(2.2rem, 4vw, 4.2rem); line-height: 1; letter-spacing: -.045em; }
.split-heading { display: flex; justify-content: space-between; gap: 50px; align-items: end; }
.split-heading > p { max-width: 420px; color: var(--muted); margin-bottom: 4px; }
.game-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.game-card { overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.game-art { height: 330px; background: #0e1014; border-bottom: 1px solid var(--line); display: grid; place-items: center; }
.game-art svg { width: 82%; height: 82%; }
.game-art rect, .game-art path { fill: none; stroke: currentColor; stroke-width: 4; }
.game-art text { fill: currentColor; font: 900 72px/1 system-ui, sans-serif; }
.classic-art { color: var(--accent); }
.vengeance-art { color: var(--accent-2); }
.game-copy { padding: 30px 30px 34px; }
.game-copy h3 { font-size: 1.75rem; letter-spacing: -.025em; margin-bottom: 12px; }
.game-copy p { color: var(--muted); min-height: 76px; }
.game-copy a { display: inline-flex; align-items: center; gap: 7px; margin-top: 12px; font-weight: 750; text-underline-offset: 5px; }
.link-arrow { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.leaderboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.leaderboard { border: 1px solid var(--line); background: var(--surface); }
.leaderboard > header { padding: 26px 26px 22px; display: flex; justify-content: space-between; align-items: end; gap: 20px; border-bottom: 1px solid var(--line); }
.leaderboard h3 { margin: 0; font-size: 1.45rem; }
.board-filters { display: flex; gap: 14px; }
.board-filters label { color: var(--muted); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
.board-filters select { display: block; margin-top: 7px; min-width: 92px; border: 1px solid var(--line); border-radius: 0; padding: 7px 28px 7px 9px; background: #0f1116; color: var(--text); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line); }
th { color: #777b84; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
tbody tr:last-child td { border-bottom: 0; }
td:nth-child(1) { width: 44px; color: #777b84; }
td:nth-child(3), td:nth-child(4), th:nth-child(3), th:nth-child(4) { text-align: right; }
.player-cell { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; }
.player-cell img, .avatar-placeholder { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: #272a31; }
.empty-row { height: 120px; color: var(--muted); text-align: center !important; }
.profile-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 24px; }
.profile-main, .stat-grid { border: 1px solid var(--line); background: var(--surface); padding: 30px; }
.profile-identity { display: flex; align-items: center; gap: 18px; margin-bottom: 34px; }
.profile-identity img { width: 68px; height: 68px; border-radius: 50%; object-fit: cover; }
.profile-identity h3 { margin-bottom: 4px; font-size: 1.55rem; }
.profile-identity p { margin-bottom: 0; color: var(--muted); }
.level-row { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 12px; }
.level-row span { color: var(--muted); }
.progress-track { height: 8px; background: #282b32; overflow: hidden; }
.progress-track span { display: block; height: 100%; background: var(--accent); }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; padding: 0; background: var(--line); }
.stat-grid > div { padding: 26px; background: var(--surface); }
.stat-grid strong { display: block; font-size: 2rem; letter-spacing: -.04em; }
.stat-grid span { color: var(--muted); font-size: .9rem; }
.signin-callout { border: 1px solid var(--line); background: var(--surface); padding: 34px; display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.signin-callout h3 { font-size: 1.55rem; margin-bottom: 8px; }
.signin-callout p { color: var(--muted); margin-bottom: 0; }
.site-footer { max-width: var(--max); margin: 0 auto; padding: 38px 28px 54px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 30px; color: var(--muted); }
.footer-brand { color: var(--text); }
.site-footer p { margin: 0; }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 58px; }
  .hero-cards { height: 330px; max-width: 600px; width: 100%; margin: 0 auto; }
  .show-card { width: 160px; }
  .game-grid, .leaderboard-grid, .profile-grid { grid-template-columns: 1fr; }
  .split-heading { display: block; }
  .split-heading > p { margin-top: 18px; }
}
@media (max-width: 620px) {
  .site-header { padding: 0 18px; }
  .brand > span { display: none; }
  .account-link span { display: none; }
  .hero, .section { padding-left: 18px; padding-right: 18px; }
  h1 { font-size: clamp(3rem, 16vw, 5rem); }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 18px; }
  .hero-cards { height: 260px; }
  .show-card { width: 125px; border-radius: 12px; }
  .show-card span { font-size: 4rem; }
  .game-art { height: 250px; }
  .leaderboard > header { align-items: flex-start; flex-direction: column; }
  .board-filters { width: 100%; }
  .board-filters label { flex: 1; }
  .board-filters select { width: 100%; }
  th, td { padding-left: 12px; padding-right: 12px; }
  .signin-callout, .site-footer { align-items: flex-start; flex-direction: column; }
}
