/* Major Skill Issues — cinematic edition. One design layer for every route. */
:root {
  color-scheme: dark;
  --body: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --display: var(--body);
  --mono: var(--body);
  --paper: #0b0d0c;
  --ink: #f3f2ed;
  --muted: #a1a6a0;
  --line: #2d312d;
  --field: #161a17;
  --acid: #b9f880;
  --accent-dark: #20361b;
  --gutter: clamp(20px, 5vw, 80px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --space-section: clamp(80px, 9vw, 144px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-color: #4d554a #0b0d0c; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 15px/1.5 var(--body); -webkit-font-smoothing: antialiased; }
body[data-platform="psn"] { --acid: #a5c7ff; --accent-dark: #16335f; }
body[data-platform="steam"] { --acid: #b1dbe5; --accent-dark: #1b3942; }
body[data-platform="roblox"] { --acid: #e6e5e0; --accent-dark: #343634; }
body[data-platform="fortnite"] { --acid: #d2b8ff; --accent-dark: #3b255d; }
::selection { background: var(--acid); color: #10160d; }
a { color: inherit; text-decoration: none; text-underline-offset: 5px; }
button, input, select { font: inherit; color: inherit; }
button, select, a, input { -webkit-tap-highlight-color: transparent; }
button { border: 0; cursor: pointer; background: none; padding: 0; }
button:disabled { cursor: default; opacity: .65; }
input { min-width: 0; caret-color: var(--acid); }
input::placeholder { opacity: 1; color: #a6aaa4; }
button, a, select { touch-action: manipulation; }
button, a, input, select { transition: color .2s, background-color .2s, border-color .2s, box-shadow .2s; }
:focus-visible { outline: 2px solid var(--acid); outline-offset: 5px; }
main:focus { outline: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 600; text-wrap: balance; }
h1, h2 { letter-spacing: -.04em; line-height: 1.04; }
p { max-width: 70ch; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.shell, .route-page { width: min(100% - var(--gutter) * 2, 1320px); margin-inline: auto; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; background: var(--acid); color: #11170d; padding: 12px 20px; border-radius: 6px; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.site-header { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 32px; position: relative; z-index: 20; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; }
.brand svg { width: 24px; height: 30px; color: var(--acid); }
.brand-name { font-size: 13px; line-height: 1.1; font-weight: 700; letter-spacing: -.025em; }
.desktop-nav { display: flex; align-items: center; gap: 40px; }
.desktop-nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; color: #bfc4bc; }
.desktop-nav a:hover, .desktop-nav a.active { color: #fff; }
.desktop-nav a.active { text-decoration: underline; text-decoration-color: var(--acid); text-underline-offset: 9px; }
.menu-button { display: none; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
.menu-button svg { width: 22px; height: 22px; }
.site-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 28px; padding-block: 36px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.footer-wordmark { font-size: 14px; color: var(--ink); font-weight: 600; letter-spacing: -.03em; }
.site-footer > div { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.site-footer button { min-height: 44px; }
.site-footer button:hover { color: var(--ink); }

/* An open first screen with unobstructed platform motion. */
.cinematic-hero { overflow: hidden; overflow: clip; }
.hero-layout { display: grid; grid-template-columns: .9fr 1.1fr; grid-template-areas: "title stage" "lookup stage"; column-gap: 48px; align-content: center; min-height: calc(100svh - 88px); padding-block: 56px 72px; }
.hero-title { grid-area: title; align-self: end; position: relative; z-index: 2; margin: 16px 0 32px; font-size: clamp(76px, 8.1vw, 116px); line-height: .88; font-weight: 650; letter-spacing: -.04em; }
.hero-title > span { display: block; }
.title-stop { color: var(--acid); }
.hero-lookup { grid-area: lookup; position: relative; z-index: 8; align-self: start; max-width: 490px; }
.lookup-label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 12px; color: #d6d9d2; }
.lookup-field { display: flex; align-items: center; gap: 8px; padding: 6px; border: 1px solid #545a50; border-radius: 9px; background: #161a16; transition: border-color .2s, box-shadow .2s; }
.lookup-field:focus-within { border-color: var(--acid); box-shadow: 0 0 0 2px color-mix(in srgb, var(--acid) 16%, transparent); }
.lookup-field input { width: 100%; height: 44px; padding: 8px 10px; border: 0; outline: none; background: transparent; font-size: 16px; }
.find-player-submit { min-height: 44px; padding: 10px 24px; border-radius: 5px; background: var(--acid); color: #10170c; font-size: 13px; font-weight: 600; }
.find-player-submit:hover { background: #f3f2ed; }
.platform-choices { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 18px; padding-top: 8px; }
.platform-choices button { position: relative; font-size: 14px; min-height: 44px; color: #a6aba3; }
.platform-choices button:hover { color: #f3f2ed; }
.platform-choices button[aria-checked="true"] { color: var(--acid); }
.platform-choices button[aria-checked="true"]::after { content: ""; position: absolute; bottom: 7px; left: 0; right: 0; height: 1px; background: currentColor; }
.platform-stage { grid-area: stage; align-self: center; position: relative; min-width: 0; height: clamp(420px, 43vw, 620px); pointer-events: none; }
.platform-stage canvas { display: block; width: 100%; height: 100%; }

/* A single, uninterrupted landscape. */
.world-feature { position: relative; overflow: hidden; overflow: clip; height: clamp(520px, 61vw, 860px); min-height: 0; background: #101c2c; isolation: isolate; }
.world-image { position: absolute; width: 100%; height: 100%; inset: 0; object-fit: cover; object-position: center 50%; transform: scale(1.06); }
.world-feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #0b0d0c28 0%, transparent 45%, #060b10ce 100%); pointer-events: none; }
.world-content { position: absolute; z-index: 2; bottom: 10%; left: 0; right: 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; }
.world-content h2 { font-size: clamp(60px, 9.5vw, 140px); font-weight: 500; line-height: .92; letter-spacing: -.04em; }
.world-content .button { margin-bottom: 5px; }

/* An ivory shelf with an authored rhythm, not a wall of equally sized cards. */
.collection-section { background: #f1f0ea; color: #1c201c; --muted: #60665d; --line: #d6d9d0; --acid: #3c5c25; padding-block: var(--space-section) calc(var(--space-section) + 16px); }
.collection-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 64px; }
.collection-heading h2 { font-size: clamp(46px, 6vw, 84px); font-weight: 500; }
.collection-heading .text-link { margin-bottom: 6px; }
.collection-gallery { display: grid; grid-template-columns: 1.23fr .86fr 1.04fr .86fr; align-items: start; gap: clamp(24px, 3.2vw, 48px); }
.collection-piece { min-width: 0; }
.collection-piece-2 { margin-top: 100px; }
.collection-piece-3 { margin-top: 35px; }
.collection-piece-4 { margin-top: 140px; }
.collection-art { position: relative; perspective: 1000px; }
.collection-art > a { display: block; aspect-ratio: 2/3; border-radius: 3px; box-shadow: 8px 20px 30px #232b2226, 2px 5px 8px #232b221a; transform-origin: 50% 85%; transition: transform .65s var(--ease), box-shadow .65s var(--ease); }
.collection-art img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.collection-art .save-game { right: 9px; top: 9px; }
.collection-title { display: block; font-size: 15px; font-weight: 600; line-height: 1.3; margin-top: 24px; letter-spacing: -.015em; }
.collection-title:hover { text-decoration: underline; }
.collection-genre { display: block; font-size: 12px; color: var(--muted); margin-top: 6px; }

/* Standings remain a list; the spacing is the composition. */
.standings-section { display: grid; grid-template-columns: 1fr 1.1fr; column-gap: clamp(32px, 8vw, 120px); padding-block: var(--space-section) 64px; }
.standings-intro h2 { font-size: clamp(54px, 6.4vw, 90px); font-weight: 500; line-height: .98; margin: 0 0 24px; }
.standings-intro h2 span { color: var(--acid); }
.standings-intro > .text-link { display: table; margin-top: 36px; }
.sample-label { display: inline-flex; align-items: center; font-size: 11px; color: var(--muted); line-height: 1.5; letter-spacing: .02em; }
.sample-label::before { content: ""; display: block; width: 4px; height: 4px; border-radius: 50%; background: currentColor; margin-right: 7px; }
.ranking-columns { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; padding: 0 0 14px; border-bottom: 1px solid var(--line); }
.ranking-row { display: grid; grid-template-columns: 24px 42px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 19px 0; border-bottom: 1px solid var(--line); }
.ranking-row:hover { background: #171c16; }
.rank-number { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.avatar { width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; background: var(--avatar-color, #b9f880); color: #172016; font-size: 12px; font-weight: 600; }
.player-name { display: block; font-size: 14px; line-height: 1.4; font-weight: 500; overflow-wrap: anywhere; }
.player-sub { display: block; font-size: 11px; line-height: 1.4; color: var(--muted); margin-top: 4px; }
.rank-score { font-size: 16px; font-weight: 500; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.standings-bottom { grid-column: 1/-1; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--line); }
.rival-link { display: inline-flex; align-items: center; gap: 16px; font-size: 14px; min-height: 44px; }
.rival-link:hover > span:last-child { text-decoration: underline; }
.rival-pair { display: flex; padding-right: 4px; }
.rival-pair .avatar { width: 36px; height: 36px; border: 3px solid var(--paper); }
.rival-pair .avatar + .avatar { margin-left: -9px; }

/* Shared controls and all interior routes. */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 13px 24px; border-radius: 6px; background: var(--field); font-size: 13px; font-weight: 500; text-align: center; line-height: 1.4; }
.button-dark, .button-acid { background: var(--acid); color: #11170c; }
.button-dark:hover, .button-acid:hover { background: #e6f6d8; }
.button-outline { background: transparent; border: 1px solid #555d50; }
.button-outline:hover { border-color: var(--ink); background: #ffffff08; }
.button-light { background: #f3f2ed; color: #141a13; min-width: 120px; }
.button-light:hover { background: #fff; box-shadow: 0 8px 18px #0003; }
.button-small { min-height: 44px; padding: 10px 18px; }
.text-link, .small-link, .back-link, .board-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; text-decoration: underline; text-decoration-color: #7c8474; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.text-link:hover, .small-link:hover, .back-link:hover, .board-link:hover { text-decoration-color: currentColor; }
.icon-button { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.icon-button svg { width: 20px; height: 20px; }
.route-page { min-height: 65vh; padding-block: 40px 96px; }
.page-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding: 32px 0 52px; }
.page-heading > div { min-width: 0; }
.page-heading h1 { font-size: clamp(42px, 5.7vw, 78px); font-weight: 500; overflow-wrap: anywhere; }
.page-heading p { color: var(--muted); font-size: 14px; margin-top: 18px; }
.page-heading .sample-label { margin-top: 16px; }
.page-heading > .button { flex-shrink: 0; }
.section-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin: 36px 0 24px; }
.section-title { font-size: 28px; font-weight: 500; letter-spacing: -.03em; }
.catalog-controls { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 32px; min-width: 0; }
.filter-tabs { display: flex; gap: 24px; align-items: center; min-width: 0; overflow-x: auto; scrollbar-width: thin; }
.filter-tabs button { flex-shrink: 0; min-height: 48px; font-size: 13px; color: var(--muted); border-bottom: 1px solid transparent; white-space: nowrap; }
.filter-tabs button:hover { color: var(--ink); }
.filter-tabs button.active { color: var(--acid); border-color: var(--acid); }
.select-control { border: 1px solid #545c4e; border-radius: 6px; background: var(--field); min-height: 44px; padding: 10px 30px 10px 14px; font-size: 13px; max-width: 100%; }
.game-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; }
.catalog-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.game-card { position: relative; min-width: 0; }
.game-art-link { display: block; overflow: hidden; border-radius: 4px; aspect-ratio: 2/3; background: #1b2119; }
.game-art-link img { width: 100%; height: 100%; object-fit: cover; transition: transform .65s var(--ease); }
.game-title { display: inline-block; font-size: 15px; font-weight: 500; line-height: 1.3; margin-top: 18px; }
.game-title:hover { text-decoration: underline; }
.game-meta { color: var(--muted); font-size: 12px; margin-top: 5px; }
.game-platforms { display: flex; gap: 10px; align-items: center; margin-top: 12px; }
.game-platforms img { width: 14px; height: 14px; object-fit: contain; filter: grayscale(1) brightness(0) invert(.8); }
.game-stats { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 11px; margin-top: 12px; }
.game-stats strong { color: var(--ink); font-weight: 500; }
.save-game { position: absolute; right: 10px; top: 10px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: #10160de8; color: #f3f2ed; z-index: 2; }
.save-game svg { width: 18px; height: 18px; }
.save-game:hover { background: #f3f2ed; color: #172014; }
.save-game.saved { background: #b9f880; color: #192113; }
.save-game.saved svg { fill: currentColor; }
.game-label { position: absolute; top: 14px; left: 14px; padding: 5px 9px; background: #11170de8; border-radius: 4px; color: #e4f1d8; font-size: 11px; }
.progress-track { height: 3px; background: var(--line); margin-top: 16px; overflow: hidden; }
.progress-track span { height: 100%; display: block; background: var(--acid); }
.empty-state { grid-column: 1/-1; padding: 64px 24px; text-align: center; border-block: 1px solid var(--line); }
.empty-state h3 { font-size: 24px; font-weight: 500; letter-spacing: -.025em; }
.empty-state p { font-size: 14px; color: var(--muted); margin: 12px auto 24px; }
.sample-footnote, .profile-note, .section-note { margin-top: 28px; color: var(--muted); font-size: 12px; line-height: 1.7; max-width: 75ch; }
.table-scroll { overflow-x: auto; max-width: 100%; scrollbar-width: thin; }
.board-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; font-variant-numeric: tabular-nums; }
.board-table th { font-size: 11px; font-weight: 400; color: var(--muted); padding: 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.board-table td { padding: 22px 16px; border-bottom: 1px solid var(--line); }
.board-table tr:hover td { background: #ffffff03; }
.board-table .is-you { background: #b9f88006; }
.board-table td:first-child { color: var(--muted); font-size: 12px; }
.board-table th:last-child, .score-cell { text-align: right; }
.score-cell { font-size: 18px; font-weight: 500; }
.board-player { display: inline-flex; gap: 16px; align-items: center; }
.board-player:hover .player-name { text-decoration: underline; }
.platform-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.platform-chips span { font-size: 11px; color: var(--muted); }
.platform-label { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; }
.platform-symbol { width: 22px; height: 22px; object-fit: contain; }
.platform-psn img, .platform-steam img { filter: brightness(0) invert(1); }
.platform-fortnite .platform-symbol { width: 28px; }

/* Sample and public profiles share the same calm hierarchy. */
.profile-cover { display: flex; gap: 28px; align-items: center; padding: 44px 0; }
.profile-cover > div:not(.profile-avatar) { min-width: 0; }
.profile-avatar { width: 96px; height: 96px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; color: #172014; font-size: 30px; font-weight: 600; }
.profile-cover h1 { font-size: clamp(34px, 4vw, 60px); font-weight: 500; overflow-wrap: anywhere; }
.profile-cover .sample-label { margin-top: 12px; }
.profile-cover p { color: var(--muted); margin-top: 12px; font-size: 13px; }
.profile-cover > .button { margin-left: auto; flex-shrink: 0; }
.profile-stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); margin-bottom: 56px; border-block: 1px solid var(--line); }
.profile-stats > div { padding: 28px 20px 28px 0; min-width: 0; }
.profile-stats strong { font-size: clamp(28px, 3vw, 42px); font-weight: 500; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.profile-stats span { display: block; color: var(--muted); font-size: 12px; margin-top: 5px; }
.profile-layout { display: grid; grid-template-columns: minmax(0,1fr) 240px; gap: 64px; }
.profile-layout > section { min-width: 0; }
.profile-tabs { margin-bottom: 32px; border-bottom: 1px solid var(--line); }
.profile-side { padding-top: 12px; }
.profile-side h3 { font-size: 20px; font-weight: 500; margin-bottom: 16px; letter-spacing: -.025em; }
.platform-connection { display: flex; gap: 8px; justify-content: space-between; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.platform-connection small { color: var(--muted); font-size: 11px; }
.profile-side .button { display: flex; width: 100%; margin-top: 20px; }
.trophy-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
.trophy-item { display: flex; gap: 18px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--line); }
.trophy-item h3 { font-size: 15px; font-weight: 500; }
.trophy-item p { font-size: 11px; color: var(--muted); margin-top: 6px; }
.achievement-icon { width: 48px; height: 48px; flex: 0 0 auto; display: grid; place-items: center; color: var(--acid); background: var(--field); border-radius: 10px; }
.achievement-icon svg { width: 24px; height: 24px; }
.feed-row { display: flex; gap: 18px; align-items: center; padding: 23px 0; border-bottom: 1px solid var(--line); }
.feed-text { font-size: 13px; min-width: 0; overflow-wrap: anywhere; color: var(--muted); }
.feed-text a { color: var(--ink); }
.feed-text a:hover { text-decoration: underline; }
.feed-text small { display: block; margin-top: 6px; font-size: 11px; }
.rarity { margin-left: auto; color: var(--ink); font-size: 13px; text-align: right; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.rarity small { display: block; color: var(--muted); font-size: 11px; margin-top: 5px; }
.game-detail-header { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; padding: 36px 0 56px; }
.game-detail-header > img { width: 100%; border-radius: 5px; aspect-ratio: 16/10; object-fit: cover; }
.game-detail-header h1 { font-size: clamp(38px, 4.5vw, 68px); font-weight: 500; margin-bottom: 20px; }
.game-detail-header p { font-size: 14px; line-height: 1.7; color: var(--muted); margin: 14px 0; }
.game-detail-header p.detail-platforms { font-size: 12px; }
.game-detail-meta { display: flex; flex-wrap: wrap; gap: 12px 24px; color: #c2c9bc; font-size: 11px; margin: 24px 0; }
.achievement-row { display: flex; gap: 20px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--line); }
.achievement-row h3 { font-size: 16px; font-weight: 500; }
.achievement-row p { color: var(--muted); font-size: 13px; margin-top: 6px; }
.achievement-status { margin-top: 10px; font-size: 11px; color: var(--acid); }
.achievement-row.locked .achievement-icon, .achievement-row.locked .achievement-status { color: var(--muted); }

/* Side-by-side records stay side by side down to 320px. */
.comparison-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-bottom: 40px; }
.comparison-controls label { font-size: 13px; color: var(--muted); }
.comparison-notice { color: var(--muted); font-size: 11px; margin-left: auto; }
.comparison-players { display: grid; grid-template-columns: minmax(0,1fr) 80px minmax(0,1fr); align-items: center; gap: 28px; padding-block: 28px 44px; }
.comparison-person { display: flex; align-items: center; gap: 20px; min-width: 0; }
.comparison-person > div { min-width: 0; }
.comparison-person:last-child { flex-direction: row-reverse; text-align: right; }
.comparison-person .avatar { width: 60px; height: 60px; font-size: 18px; }
.comparison-person h2 { font-size: clamp(20px, 2.5vw, 36px); font-weight: 500; overflow-wrap: anywhere; }
.comparison-person p { color: var(--muted); margin-top: 12px; font-size: 11px; }
.comparison-vs { text-align: center; font-size: 13px; color: var(--muted); }
.comparison-metric { display: grid; grid-template-columns: minmax(0,1fr) 140px minmax(0,1fr); align-items: center; gap: 40px; padding: 28px 0; border-top: 1px solid var(--line); }
.comparison-metric h3 { text-align: center; font-size: 13px; color: var(--muted); font-weight: 400; }
.comparison-value { font-size: 36px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.comparison-value:last-child { text-align: right; }
.comparison-value.is-leading { color: var(--acid); }
.comparison-track { display: block; height: 3px; margin-top: 12px; background: var(--line); }
.comparison-track i { display: block; height: 100%; background: #767f70; }
.comparison-value:last-child .comparison-track i { margin-left: auto; }
.is-leading .comparison-track i { background: var(--acid); }
.comparison-outcome { color: var(--muted); font-size: 14px; padding-block: 28px; border-top: 1px solid var(--line); }
.comparison-outcome strong { color: var(--ink); font-weight: 500; }

/* Dialogs: one deliberate focus surface with native modal behavior. */
dialog { position: fixed; padding: 0; border: 1px solid #41483c; border-radius: 12px; background: #161a16; color: var(--ink); width: min(640px, calc(100% - 32px)); max-height: calc(100dvh - 40px); overflow: auto; box-shadow: 0 28px 90px #0007; }
dialog::backdrop { background: #050805c4; backdrop-filter: blur(8px); }
.dialog-inner { padding: 40px; }
.dialog-inner h2 { font-size: clamp(28px, 4vw, 38px); font-weight: 500; margin: 8px 24px 28px 0; }
.dialog-inner > p { font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.dialog-close { position: absolute; right: 8px; top: 8px; color: #b7bfb1; border-radius: 50%; }
.dialog-close:hover { color: #fff; background: #ffffff0a; }
.dialog-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.search-field { display: flex; border-bottom: 1px solid #66725c; margin-top: 24px; min-width: 0; }
.search-field input { width: 100%; border: 0; background: transparent; padding: 12px 0; font-size: 17px; outline-offset: 4px; }
.search-results { padding-top: 12px; }
.search-result { display: flex; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.search-result > span { min-width: 0; }
.search-result img { width: 78px; height: 45px; object-fit: cover; border-radius: 3px; }
.search-result strong { display: block; font-size: 14px; font-weight: 500; overflow-wrap: anywhere; }
.search-result small { display: block; font-size: 11px; line-height: 1.5; color: var(--muted); margin-top: 5px; }
.search-result:hover strong { text-decoration: underline; }
.search-hint { color: var(--muted); font-size: 13px; line-height: 1.7; padding: 20px 0 4px; }
.search-results[aria-busy="true"] { border-top: 1px solid var(--acid); }
.player-search-row { display: flex; align-items: center; gap: 16px; }
.player-search-row .search-result { flex: 1; }
.compare-player { font-size: 12px; text-decoration: underline; min-height: 44px; display: inline-flex; align-items: center; }
.self-search-label { color: var(--muted); font-size: 11px; }
.about-list { margin: 0; padding-left: 18px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.about-list li + li { margin-top: 14px; }
.skill-card { background: #0b0d0c; padding: 28px; border-radius: 6px; border-top: 3px solid var(--acid); }
.card-brand { font-size: 11px; color: var(--acid); letter-spacing: .06em; }
.skill-card h3 { font-size: clamp(24px, 4vw, 36px); line-height: 1.1; letter-spacing: -.035em; margin-top: 26px; overflow-wrap: anywhere; }
.card-tagline { color: var(--muted); font-size: 12px; margin-top: 8px; }
.card-stats { display: grid; grid-template-columns: 1.4fr 1fr .6fr; gap: 18px; border-top: 1px solid var(--line); padding-top: 22px; margin-top: 28px; }
.card-stats strong { color: var(--acid); font-size: clamp(23px, 3.5vw, 34px); letter-spacing: -.03em; font-weight: 500; }
.card-stats small { display: block; color: var(--muted); font-size: 8px; margin-top: 4px; }
.skill-card-footer { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 8px; margin-top: 32px; }
.toast { position: fixed; z-index: 50; left: 50%; bottom: 28px; transform: translate(-50%, 12px); max-width: calc(100% - 32px); width: max-content; padding: 15px 22px; border-radius: 7px; background: #edf2e8; color: #172014; box-shadow: 0 10px 35px #0004; font-size: 13px; text-align: center; opacity: 0; pointer-events: none; transition: opacity .2s, transform .3s var(--ease); }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }

/* Dropdown platform picker, used in the player-search dialog. */
.platform-picker { position: relative; min-width: 0; }
.platform-picker-trigger { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid #545e4b; border-radius: 6px; background: #1e251c; text-align: left; font-size: 13px; }
.platform-picker-trigger:hover, .platform-picker-trigger[aria-expanded="true"] { border-color: var(--acid); }
.platform-picker-mark { width: 24px; height: 24px; display: grid; place-items: center; flex: 0 0 auto; }
.platform-picker-mark img { width: 24px; height: 24px; object-fit: contain; }
.platform-picker-mark-psn img, .platform-picker-mark-steam img { filter: brightness(0) invert(1); }
.platform-picker-name { font-size: 13px; }
.platform-picker-options { position: absolute; z-index: 40; top: calc(100% + 8px); left: 0; right: 0; max-height: min(280px, 50vh); overflow-y: auto; padding: 6px; background: #283123; border-radius: 8px; box-shadow: 0 15px 30px #0006; }
.platform-picker-option { display: flex; gap: 12px; align-items: center; min-height: 46px; padding: 10px; border-radius: 3px; cursor: pointer; }
.platform-picker-option:hover, .platform-picker-option:focus { background: #3c4934; outline-offset: -2px; }
.platform-picker-check { width: 16px; height: 16px; margin-left: auto; visibility: hidden; color: var(--acid); }
.platform-picker-option[aria-selected="true"] .platform-picker-check { visibility: visible; }

/* Provider results never acquire made-up scorecards. */
.live-search-form { display: flex; gap: 12px; margin: 20px 0 4px; }
.live-search-form .search-field { flex: 1; margin: 0; }
.live-search-form .button { flex: 0 0 auto; }
.live-player-avatar { position: relative; overflow: hidden; display: grid; place-items: center; flex: 0 0 auto; width: 48px; height: 48px; border-radius: 50%; background: #35422c; color: #e4efdc; font-size: 16px; font-weight: 500; }
.live-player-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.live-player-header { display: flex; align-items: center; gap: 24px; padding: 32px 0 40px; border-bottom: 1px solid var(--line); }
.live-player-header .live-player-avatar { width: 88px; height: 88px; font-size: 28px; }
.live-player-heading { min-width: 0; flex: 1; }
.live-player-heading h1 { font-size: clamp(30px, 4vw, 52px); font-weight: 500; margin-top: 14px; overflow-wrap: anywhere; }
.live-player-heading p { font-size: 14px; color: var(--muted); margin-top: 8px; overflow-wrap: anywhere; }
.live-native-stats { display: grid; grid-template-columns: repeat(auto-fit,minmax(170px,1fr)); margin: 0; }
.live-native-stats > div { min-width: 0; padding: 28px 18px 28px 0; border-bottom: 1px solid var(--line); }
.live-native-stats dt { color: var(--muted); font-size: 13px; }
.live-native-stats dd { margin: 10px 0 0; font-size: 30px; font-weight: 500; letter-spacing: -.025em; overflow-wrap: anywhere; }
.live-stat-unit { font-size: 14px; font-weight: 400; }
.live-games { margin-top: 44px; }
.live-games-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.live-games-count { color: var(--muted); font-size: 12px; }
.live-games ul { list-style: none; margin: 16px 0 0; padding: 0; }
.live-games li { display: flex; justify-content: space-between; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.live-games strong { font-size: 15px; font-weight: 500; overflow-wrap: anywhere; }
.live-games li > span { color: var(--muted); font-size: 13px; flex-shrink: 0; }
.live-profile-source { margin-top: 28px; color: var(--muted); font-size: 12px; }
.live-record-message { padding: 64px 0; color: var(--muted); font-size: 15px; }
.live-record-message h1 { font-size: 38px; font-weight: 500; color: var(--ink); margin-bottom: 20px; }
.live-record-message .button { margin-top: 24px; }

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .collection-art:hover > a { transform: translateY(-9px) rotateY(-4deg) rotateZ(-1deg); box-shadow: 14px 28px 36px #232b2236; }
  .game-art-link:hover img { transform: scale(1.035); }
}
@media (min-width: 1600px) {
  .hero-layout { padding-top: 64px; padding-bottom: 48px; }
}
@media (max-width: 1100px) {
  .hero-layout { column-gap: 24px; }
  .hero-title { font-size: clamp(76px, 8.7vw, 100px); }
  .platform-choices { gap: 3px 14px; }
  .profile-layout { gap: 32px; grid-template-columns: minmax(0,1fr) 220px; }
  .profile-layout .game-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .game-detail-header { gap: 32px; }
  .collection-gallery { gap: 24px; }
  .collection-piece-2 { margin-top: 70px; }
  .collection-piece-4 { margin-top: 105px; }
  .comparison-person { gap: 12px; }
  .comparison-person .avatar { width: 46px; height: 46px; font-size: 14px; }
}
@media (max-width: 800px) {
  :root { --gutter: 28px; }
  .site-header { min-height: 76px; }
  .desktop-nav { gap: 24px; }
  .hero-layout { grid-template-columns: 1fr 1fr; grid-template-areas: "title stage" "lookup lookup"; min-height: calc(100svh - 76px); padding-block: 40px; column-gap: 16px; }
  .platform-stage { height: 340px; }
  .hero-title { font-size: 78px; }
  .hero-lookup { grid-column: 1/-1; width: 490px; max-width: 100%; margin-top: 16px; }
  .hero-title { align-self: center; }
  .collection-gallery { grid-template-columns: 1.1fr .9fr; gap: 56px 36px; }
  .collection-piece-2 { margin-top: 80px; }
  .collection-piece-3 { margin-top: -32px; }
  .collection-piece-4 { margin-top: 64px; }
  .collection-heading { margin-bottom: 44px; }
  .standings-section { grid-template-columns: .85fr 1.15fr; gap: 32px; }
  .ranking-row { gap: 10px; grid-template-columns: 20px 34px minmax(0,1fr) auto; }
  .ranking-row .avatar { width: 34px; height: 34px; font-size: 11px; }
  .rank-score { font-size: 14px; }
  .player-name { font-size: 12px; }
  .catalog-controls { flex-wrap: wrap; }
  .catalog-controls .filter-tabs { width: 100%; }
  .catalog-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 32px 20px; }
  .profile-cover { flex-wrap: wrap; }
  .profile-cover > .button { margin-left: 0; }
  .profile-layout { grid-template-columns: minmax(0,1fr); }
  .profile-side { max-width: 480px; margin-top: 24px; }
  .profile-layout .game-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .game-detail-header { grid-template-columns: minmax(0,1fr); }
  .game-detail-header > img { aspect-ratio: 2/1; }
  .board-table { min-width: 720px; }
  .comparison-players { grid-template-columns: minmax(0,1fr) 32px minmax(0,1fr); gap: 20px; }
  .comparison-person { flex-direction: column; align-items: start; }
  .comparison-person:last-child { flex-direction: column; align-items: end; }
}
@media (max-width: 600px) {
  :root { --gutter: 20px; --space-section: 72px; }
  .site-header { min-height: 72px; }
  .brand-name { font-size: 12px; }
  .brand svg { width: 22px; height: 28px; }
  .menu-button { display: inline-flex; }
  .desktop-nav { display: none; }
  .desktop-nav.mobile-open { display: flex; position: absolute; top: calc(100% - 4px); left: -4px; right: -4px; padding: 16px 20px; gap: 24px; background: #1b2118; border-radius: 8px; box-shadow: 0 16px 24px #0005; }
  .desktop-nav.mobile-open a { font-size: 13px; }
  .hero-layout { grid-template-columns: minmax(0,1fr); grid-template-areas: "title" "stage" "lookup"; min-height: calc(100svh - 72px); padding-block: 24px 36px; gap: 14px; }
  .platform-stage { height: clamp(200px, 66vw, 300px); width: 100%; }
  .hero-title { font-size: clamp(54px, 12.2vw, 74px); line-height: .94; margin: 0; }
  .hero-title > span { display: inline; }
  .hero-title > span:first-child { display: block; }
  .hero-title > span:nth-child(3) { margin-left: .24em; }
  .hero-lookup { grid-column: auto; margin: 0; width: 100%; max-width: none; }
  .lookup-label { font-size: 12px; margin-bottom: 9px; }
  .lookup-field input { padding-left: 8px; }
  .find-player-submit { padding-inline: 20px; }
  .platform-choices { gap: 0; justify-content: space-between; padding-top: 4px; }
  .platform-choices button { font-size: 13px; }
  .world-feature { height: 560px; }
  .world-image { object-position: 59% center; }
  .world-content { bottom: 40px; display: block; }
  .world-content h2 { font-size: clamp(54px, 14vw, 80px); margin-bottom: 24px; }
  .world-content .button { min-height: 44px; }
  .collection-heading { margin-bottom: 36px; align-items: flex-start; }
  .collection-heading h2 { font-size: clamp(36px, 8.3vw, 50px); max-width: 230px; }
  .collection-heading .text-link { font-size: 12px; white-space: nowrap; min-height: 36px; }
  .collection-gallery { gap: 40px 22px; grid-template-columns: 1.08fr .92fr; }
  .collection-piece-2 { margin-top: 54px; }
  .collection-piece-3 { margin-top: -12px; }
  .collection-piece-4 { margin-top: 42px; }
  .collection-title { font-size: 13px; margin-top: 18px; }
  .collection-genre { font-size: 11px; }
  .collection-art .save-game { width: 36px; height: 36px; top: 6px; right: 6px; }
  .collection-section { padding-bottom: 88px; }
  .standings-section { grid-template-columns: minmax(0,1fr); gap: 36px; padding-bottom: 48px; }
  .standings-intro { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
  .standings-intro h2 { font-size: 58px; margin: 0; }
  .standings-intro > .sample-label { align-self: flex-start; margin-top: 8px; }
  .standings-intro > .text-link { margin: 0; flex-basis: 100%; }
  .ranking-row { grid-template-columns: 20px 38px minmax(0,1fr) auto; gap: 12px; padding: 18px 0; }
  .ranking-row .avatar { width: 38px; height: 38px; }
  .player-name { font-size: 13px; }
  .rank-score { font-size: 15px; }
  .standings-bottom { margin-top: 0; padding-top: 24px; gap: 16px; }
  .rival-link { font-size: 12px; gap: 10px; }
  .standings-bottom .text-link { font-size: 12px; }
  .site-footer { gap: 12px; padding-block: 28px; }
  .site-footer > div { width: 100%; margin: 0; justify-content: space-between; gap: 16px; font-size: 11px; }
  .route-page { padding-block: 20px 64px; }
  .page-heading { flex-wrap: wrap; align-items: start; padding: 20px 0 36px; }
  .page-heading h1 { font-size: 46px; }
  .page-heading p { font-size: 13px; margin-top: 14px; }
  .filter-tabs { gap: 22px; }
  .filter-tabs button { font-size: 12px; }
  .catalog-controls { gap: 16px; margin-bottom: 24px; }
  .game-grid, .catalog-grid, .profile-layout .game-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 32px 18px; }
  .game-title { font-size: 13px; margin-top: 14px; }
  .game-meta { font-size: 11px; }
  .game-stats { font-size: 11px; }
  .save-game { width: 36px; height: 36px; right: 6px; top: 6px; }
  .profile-cover { gap: 20px; padding: 24px 0 32px; }
  .profile-avatar { width: 64px; height: 64px; font-size: 22px; }
  .profile-cover > div:not(.profile-avatar) { flex: 1; }
  .profile-cover h1 { font-size: 30px; }
  .profile-cover p { font-size: 12px; }
  .profile-stats { grid-template-columns: repeat(2,minmax(0,1fr)); margin-bottom: 32px; }
  .profile-stats > div { padding: 22px 8px 22px 0; }
  .profile-stats > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .profile-stats strong { font-size: 32px; }
  .profile-stats span { font-size: 11px; }
  .trophy-grid { grid-template-columns: minmax(0,1fr); gap: 0; }
  .game-detail-header { padding: 24px 0 32px; gap: 24px; }
  .game-detail-header h1 { font-size: 44px; }
  .game-detail-header > img { aspect-ratio: 16/10; }
  .game-detail-meta { gap: 12px 16px; font-size: 11px; }
  .section-title { font-size: 26px; }
  .achievement-row, .feed-row { gap: 12px; align-items: flex-start; }
  .achievement-icon { width: 40px; height: 40px; border-radius: 8px; }
  .achievement-icon svg { width: 21px; height: 21px; }
  .achievement-row h3 { font-size: 14px; }
  .achievement-row p { font-size: 12px; }
  .achievement-status { font-size: 11px; }
  .rarity { font-size: 11px; }
  .rarity small { font-size: 8px; }
  .comparison-controls { gap: 12px; margin-bottom: 16px; }
  .comparison-controls label { width: 100%; }
  .comparison-players { grid-template-columns: minmax(0,1fr) 24px minmax(0,1fr); gap: 12px; padding-bottom: 32px; }
  .comparison-person h2 { font-size: 24px; }
  .comparison-person p { font-size: 11px; line-height: 1.7; }
  .comparison-metric { grid-template-columns: minmax(0,1fr) 85px minmax(0,1fr); gap: 16px; padding-block: 24px; }
  .comparison-value { font-size: 27px; }
  .comparison-metric h3 { font-size: 11px; }
  .comparison-outcome { font-size: 13px; }
  .dialog-inner { padding: 28px 22px; }
  .dialog-inner h2 { margin-top: 16px; }
  .dialog-buttons > .button { flex: 1; }
  .skill-card { padding: 20px; }
  .card-stats { gap: 12px; }
  .live-player-header { flex-wrap: wrap; gap: 18px; padding-block: 24px; }
  .live-player-header .live-player-avatar { width: 64px; height: 64px; font-size: 22px; }
  .live-player-header > .button { margin-top: 8px; }
  .live-native-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .live-native-stats dd { font-size: 25px; }
  .live-games li { flex-direction: column; gap: 6px; }
  .live-search-form { gap: 10px; }
  .live-search-form .button { padding-inline: 16px; }
}
@media (max-width: 360px) {
  :root { --gutter: 16px; }
  .hero-title { font-size: 53px; }
  .lookup-field input { font-size: 16px; }
  .find-player-submit { padding-inline: 14px; }
  .collection-heading { gap: 12px; }
  .collection-heading h2 { font-size: 34px; }
  .collection-gallery { column-gap: 18px; }
  .rank-score { font-size: 13px; }
  .ranking-row { gap: 9px; }
  .player-name { font-size: 12px; }
  .comparison-value { font-size: 23px; }
  .comparison-metric { gap: 9px; grid-template-columns: minmax(0,1fr) 76px minmax(0,1fr); }
  .comparison-person h2 { font-size: 21px; }
  .skill-card { padding: 16px; }
  .card-stats strong { font-size: 21px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .collection-art:hover > a, .game-art-link:hover img { transform: none; }
}
