@font-face {
  font-family: "Saira";
  src: url("fonts/saira-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 50% 125%;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Saira";
  src: url("fonts/saira-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 50% 125%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #14161b;
  --panel: #1c1f26;
  --panel-2: #242833;
  --line: #2f343f;
  --text: #e9e5d9;
  --muted: #949aa5;
  --gold: #e4ae39;
  --t: #de9b35;
  --ct: #6f8cc4;
  --r-blue: #4b69ff;
  --r-purple: #8f5bff;
  --r-pink: #d32ce6;
  --r-red: #eb4b4b;
  --sans: "Saira", system-ui, sans-serif;
  --mono: var(--sans);
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 64px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: radial-gradient(ellipse at 18% 0%, color-mix(in srgb, var(--profile-accent, var(--gold)) 7%, transparent), transparent 44%), var(--bg); color: var(--text); font: 400 17px/1.55 var(--sans); }
a { color: inherit; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:hover { color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
::selection { background: var(--gold); color: var(--bg); }
h1, h2, h3, p { margin: 0; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: var(--gutter); top: 8px; background: var(--gold); color: var(--bg); padding: 6px 10px; z-index: 10; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }

/* Display type */
.name, .title, .slot h3, .board h3, .form h3, .stage-msg strong, .brand {
  font-weight: 700; font-stretch: 100%; letter-spacing: -.025em; line-height: 1.05;
}
.title { font-size: clamp(44px, 6.5vw, 80px); }
.sub { color: var(--muted); max-width: 52ch; margin: 12px 0 36px; }

/* Navigation */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 90%, transparent); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.bar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: clamp(12px, 2vw, 26px); min-height: 72px; padding-top: 10px; padding-bottom: 10px; font-size: 15px; font-weight: 600; }
.bar a { text-decoration: none; color: var(--muted); text-transform: none; letter-spacing: .01em; font-size: 13px; }
.bar .brand { margin: 0; color: var(--text); font-size: 22px; letter-spacing: -.03em; }
.bar .brand[aria-current="page"] { color: var(--text); }
.bar .brand::after { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--profile-accent, var(--gold)); margin-left: 5px; vertical-align: middle; }
.nav-links { display: flex; align-items: center; justify-content: flex-end; gap: clamp(10px, 1.7vw, 22px); min-width: 0; }
.nav-links a { position: relative; padding: 11px 0; white-space: nowrap; transition: color .18s ease; }
.nav-links a::before { position: absolute; left: -.6em; color: var(--profile-accent, var(--gold)); content: "["; opacity: 0; transform: translateX(3px); transition: opacity .18s ease, transform .18s ease; }
.nav-links a::after { position: absolute; right: 0; bottom: 4px; left: 0; height: 2px; background: var(--profile-accent, var(--gold)); box-shadow: 0 0 12px color-mix(in srgb, var(--profile-accent, var(--gold)) 42%, transparent); content: ""; transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.nav-links a:hover, .nav-links a:focus-visible, .nav-links a[aria-current] { color: var(--text); }
.nav-links a:hover::before, .nav-links a:focus-visible::before, .nav-links a[aria-current]::before { opacity: 1; transform: translateX(0); }
.nav-links a:hover::after, .nav-links a:focus-visible::after, .nav-links a[aria-current]::after { transform: scaleX(1); }
.terminal-launcher { white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .nav-links a, .nav-links a::before, .nav-links a::after { transition: none; } }
@media (max-width: 760px) {
  .bar { grid-template-columns: minmax(0, 1fr) auto auto; gap: 5px 10px; min-height: 0; padding-top: 9px; padding-bottom: 6px; }
  .bar .brand { grid-column: 1; grid-row: 1; }
  .nav-links { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; flex-wrap: wrap; gap: 0 14px; overflow: visible; }
  .nav-links a { padding: 9px 0; font-size: 12px; }
  #nav-clock { grid-column: 2; grid-row: 1; }
  .terminal-launcher { grid-column: 3; grid-row: 1; padding: 8px 10px; font-size: 12px; }
}
@media (max-width: 340px) { .bar .brand { font-size: 20px; white-space: nowrap; } }
@media (max-width: 1100px) {
  .bar { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto auto; gap: 4px 14px; }
  .bar .brand { grid-column: 1; grid-row: 1; }
  .nav-links { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; flex-wrap: wrap; gap: 0 18px; }
  .nav-links a { font-size: 13px; }
  #nav-clock { grid-column: 2; grid-row: 1; }
  .terminal-launcher { grid-column: 3; grid-row: 1; }
}
@media (max-width: 390px) {
  .nav-links { column-gap: 11px; }
  .nav-links a { font-size: 13px; }
}

/* About timeline */
.journey-intro { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(220px, .9fr); gap: clamp(28px, 7vw, 96px); align-items: end; margin-bottom: 58px; }
.journey-intro .sub { max-width: 42ch; margin: 14px 0 0; }
.journey-lead { max-width: 30ch; padding-bottom: 5px; color: var(--text); font-size: clamp(18px, 2vw, 22px); line-height: 1.5; }
.journey { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin: 0; padding: 0; list-style: none; }
.journey-step { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: clamp(18px, 4vw, 54px); min-width: 0; padding: 4px 0 52px; }
.journey-step:not(:last-child)::before { position: absolute; top: 23px; bottom: -23px; left: 18.5px; width: 1px; background: linear-gradient(var(--line), var(--profile-accent, var(--gold))); content: ""; }
.journey-step:last-child { padding-bottom: 0; }
.journey-marker { position: relative; z-index: 1; display: grid; width: 38px; height: 38px; place-items: center; margin-top: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--bg); color: var(--muted); }
.journey-marker::after { width: 8px; height: 8px; border-radius: 50%; background: currentColor; content: ""; }
.journey-step.current .journey-marker { border-color: var(--profile-accent, var(--gold)); color: var(--profile-accent, var(--gold)); box-shadow: 0 0 0 5px color-mix(in srgb, var(--profile-accent, var(--gold)) 12%, transparent); }
.journey-story { min-width: 0; max-width: 820px; padding: 3px 0 0; }
.journey-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; margin-bottom: 13px; color: var(--muted); font: 500 13px/1.4 var(--mono); }
.journey-count { color: var(--profile-accent, var(--gold)); font-size: 15px; }
.journey-step h3 { max-width: 24ch; margin: 0 0 12px; color: var(--text); font-size: clamp(26px, 3.2vw, 38px); line-height: 1.12; letter-spacing: -.035em; }
.journey-step p { max-width: 58ch; color: #c4c0b5; font-size: 17px; line-height: 1.75; }
.journey-step.current h3 { color: var(--profile-accent, var(--gold)); }


/* Hero */
.hero { padding-top: clamp(48px, 9vw, 110px); padding-bottom: 72px; }
.tagline { display: flex; align-items: center; gap: 10px; color: var(--gold); text-transform: uppercase; letter-spacing: .14em; font-size: 14px; font-weight: 600; }
.dot { width: 10px; height: 10px; background: var(--profile-accent, var(--gold)); border-radius: 50%; }
.name { font-size: clamp(88px, 19vw, 260px); line-height: .8; margin: 18px 0 28px -0.03em; }
.intro { font-size: clamp(19px, 2.2vw, 24px); line-height: 1.4; max-width: 40ch; }
.scoreboard { margin-top: 48px; font-size: 16px; }
.sb-head, .sb-row { display: grid; grid-template-columns: 1.2fr .6fr 1.2fr 1fr 1fr; gap: 16px; padding: 10px 18px; }
.sb-head { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
.sb-row { background: var(--panel-2); border-left: 4px solid var(--gold); padding-top: 14px; padding-bottom: 14px; }
.sb-row b { color: var(--gold); font-weight: 700; }
@media (max-width: 760px) {
  .sb-head { display: none; }
  .sb-row { grid-template-columns: 1fr 1fr; row-gap: 12px; }
  .sb-row span::before { content: attr(data-label); display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
}

/* Sections */
.section { scroll-margin-top: 88px; padding-top: 72px; padding-bottom: 72px; border-top: 1px solid var(--line); }
@media (max-width: 760px) { .section { scroll-margin-top: 120px; } }

/* Ranks */
.ranks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ranks li { background: var(--panel); padding: 24px 24px 28px; border-top: 3px solid var(--line); }
.ranks li.current { border-top-color: var(--gold); background: var(--panel-2); }
.chev { width: 40px; height: 40px; fill: var(--muted); margin-bottom: 18px; }
.current .chev { fill: var(--gold); }
.rank-when { display: block; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
.ranks h3 { font-size: 24px; font-weight: 700; margin: 4px 0 10px; }
.ranks p { color: #c4c0b5; font-size: 16px; }
@media (max-width: 860px) { .ranks { grid-template-columns: 1fr; } }

/* Loadout */
.loadout { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.slot { background: var(--panel); }
.slot header { padding: 22px 24px; border-bottom: 1px solid var(--line); position: relative; }
.slot header::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; }
.ct header::before, .t header::before { background: var(--profile-accent, var(--gold)); }
.side { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
.ct .side, .t .side { color: var(--profile-accent, var(--gold)); }
.slot h3 { font-size: clamp(40px, 5vw, 60px); margin: 6px 0 8px; }
.slot h2 { margin: 6px 0 8px; font-size: clamp(34px, 4.2vw, 52px); font-weight: 700; letter-spacing: -.045em; line-height: 1.05; }
.slot h2 span { color: var(--muted); font-size: .62em; font-weight: 500; letter-spacing: -.02em; white-space: nowrap; }
.slot header p { color: var(--muted); font-size: 15px; }
.slot header strong { color: var(--text); font-weight: 700; }
.slot dl { margin: 0; padding: 6px 24px 14px; display: grid; grid-template-columns: max-content minmax(0, 1fr); }
.slot dt, .slot dd { padding: 10px 0; border-bottom: 1px solid var(--line); }
.slot dt { color: var(--muted); font-size: 14px; padding-right: 24px; }
.slot dd { margin: 0; font-weight: 600; }
.slot dl > :nth-last-child(-n+2) { border-bottom: 0; }
@media (max-width: 760px) {
  .loadout { grid-template-columns: 1fr; }
  .slot dl { padding: 4px 18px 12px; }
  .slot header { padding: 18px; }
}

/* Inventory */
/* Games */
.inventory { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 205px), 1fr)); gap: 0 24px; max-width: 1050px; margin: 0; padding: 0; list-style: none; }
.inventory li { display: flex; min-height: 58px; align-items: center; padding: 12px 4px; border-bottom: 1px solid var(--line); color: var(--text); font-size: 18px; font-weight: 600; }
.inventory li a { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; color: inherit; text-decoration: none; }
.inventory li a span { flex: none; color: var(--profile-accent, var(--gold)); font-size: 13px; font-weight: 500; }
.inventory li a:hover { color: var(--profile-accent, var(--gold)); }

/* Runner */
.runner { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 40px; }
@media (max-width: 960px) { .runner { grid-template-columns: 1fr; } }
.runner-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 0 16px; }
.runner-head .sub { margin-bottom: 24px; }
.levels { display: inline-flex; margin-bottom: 24px; background: var(--panel); }
.levels button { font: 700 13px var(--sans); text-transform: uppercase; letter-spacing: .08em; border: 0; background: none; color: var(--muted); padding: 10px 16px; cursor: pointer; border-bottom: 3px solid transparent; }
.levels button:hover { color: var(--text); }
.levels button[aria-pressed="true"] { color: var(--text); border-bottom-color: var(--gold); background: var(--panel-2); }
.stage { position: relative; background: #191b21; touch-action: none; border: 1px solid var(--line); }
.stage canvas { display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; }
.stage-msg { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 8px; padding: 16px; background: rgb(20 22 27 / .68); }
.stage-msg[hidden] { display: none; }
.stage-msg strong { font-size: clamp(36px, 5.5vw, 64px); color: var(--gold); }
.stage-msg span { font-size: 16px; }
.stage-msg .btn { margin-top: 10px; }
.runner-bar { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; margin-top: 12px; font-size: 14px; color: var(--muted); }
.runner-bar .score { font: 500 16px/1.6 var(--mono); color: var(--gold); margin-right: auto; }
@media (pointer: coarse) { .runner-bar .keys { display: none; } }
.touch { display: none; gap: 8px; margin-top: 10px; }
.touch .btn { flex: 1; height: 58px; font-size: 24px; }
@media (pointer: coarse), (max-width: 760px) { .touch { display: flex; } }
.save-score { display: flex; gap: 8px; margin-top: 16px; }
.save-score[hidden] { display: none; }
.save-score input { flex: 1; min-width: 0; }
.board h3 { font-size: 30px; margin-bottom: 10px; }
.board ol { margin: 0; padding: 0; list-style: none; counter-reset: rank; }
.board li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 8px; padding: 9px 12px; counter-increment: rank; font-size: 15px; }
.board li:nth-child(odd) { background: var(--panel); }
.board li::before { content: counter(rank); font-family: var(--mono); font-size: 13px; color: var(--muted); }
.board li:first-child { color: var(--gold); font-weight: 700; }
.board li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board li small { font-family: var(--mono); font-size: 11px; margin-left: 6px; color: var(--t); }
.board li b { font-family: var(--mono); font-weight: 500; }
.board .empty { display: block; color: var(--muted); }
.board .empty::before { content: none; }

/* Buttons, forms */
.btn { font: 700 15px var(--sans); text-transform: uppercase; letter-spacing: .08em; border: 0; padding: 12px 22px; cursor: pointer; text-decoration: none; display: inline-block; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.gold-btn { background: var(--gold); color: #1a1408; }
.gold-btn:hover:not(:disabled) { background: color-mix(in srgb, var(--gold) 80%, white); }
.ghost { background: var(--panel-2); color: var(--text); }
.ghost:hover:not(:disabled) { background: var(--line); }
input, textarea { font: inherit; font-size: 16px; width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 0; background: var(--panel); color: var(--text); }
input::placeholder, textarea::placeholder { color: var(--muted); }
input:focus, textarea:focus { outline: none; border-color: var(--gold); }
textarea { resize: vertical; min-height: 150px; line-height: 1.45; }
label, .label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
label small { font-weight: 400; color: var(--muted); }
.field { margin-bottom: 20px; }
.form-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.status { font-size: 15px; color: var(--muted); }
.status.ok { color: #6fcf78; }
.status.err { color: var(--r-red); }
.stars { display: flex; gap: 4px; }
.stars button { border: 0; background: none; padding: 0 2px; cursor: pointer; font-size: 28px; line-height: 1; color: var(--line); }
.stars button.on { color: var(--gold); }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px 72px; align-items: start; }
.contacts { margin: 32px 0 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 12px 24px; font-size: 19px; }
.contacts dt { color: var(--muted); font-size: 14px; text-transform: uppercase; letter-spacing: .1em; padding-top: 4px; }
.contacts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.form { background: var(--panel); padding: 28px; }
.form h3 { font-size: 30px; margin-bottom: 20px; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } .form { padding: 20px; } }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 14px; color: var(--muted); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }

/* Wall */
.wall-hero { padding-bottom: 40px; }
.wall-hero .name { font-size: clamp(64px, 13vw, 180px); }
.wall-body { padding-bottom: 80px; }
.wall-body textarea { min-height: 440px; font-family: var(--mono); font-size: 15px; }
.wall-actions { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-top: 14px; }
.wall-actions .count { margin-left: auto; font-family: var(--mono); font-size: 14px; color: var(--muted); }
.conflict { margin-top: 40px; padding: 24px; background: var(--panel); border-left: 4px solid var(--r-red); }
.conflict h2 { font-size: 34px; font-weight: 800; font-stretch: 70%; text-transform: uppercase; }
.conflict p { margin: 8px 0 16px; color: var(--muted); }
.conflict textarea { min-height: 220px; margin-bottom: 12px; }
@media (max-width: 920px) {
  .journey-intro { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 680px) {
  .journey-intro { margin-bottom: 38px; }
  .journey-step { gap: 16px; padding-bottom: 34px; }
  .journey-step:not(:last-child)::before { bottom: -23px; }
  .journey-marker { width: 38px; height: 38px; }
  .journey-step h3 { max-width: 24ch; }
  .journey-step p { max-width: 52ch; font-size: 16px; }
}
.runner-bar .map-name { color: var(--muted); font: 500 12px/1.5 var(--mono); }
.runner-bar .map-name b { color: var(--gold); font-weight: 500; }
@media (max-width: 580px) {
  .runner { gap: 22px; }
  .runner-head { align-items: flex-start; }
  .runner-head .sub { margin-bottom: 18px; }
  .levels { width: 100%; margin-bottom: 15px; }
  .levels button { flex: 1; padding: 10px 8px; }
  .runner-bar { gap: 6px 12px; font-size: 12px; }
  .runner-bar .score { flex-basis: 100%; font-size: 14px; }
  .runner-bar .keys { flex-basis: 100%; }
  .touch .btn { min-height: 52px; }
}
/* Shared route pages */
.page-main { padding-top: 0; }
.page-hero { max-width: 1100px; padding-top: clamp(48px, 8vw, 94px); padding-bottom: 42px; }
.page-hero h1 { margin: 13px 0 0; font-size: clamp(46px, 8vw, 92px); font-weight: 700; letter-spacing: -.055em; line-height: .98; }
.page-lede { max-width: 56ch; margin-top: 18px; color: var(--muted); font-size: clamp(18px, 2.1vw, 22px); line-height: 1.6; }
.eyebrow { color: var(--gold); font-size: 12px; font-weight: 650; letter-spacing: .13em; text-transform: uppercase; }
.page-hero .tagline { font-size: 12px; }
.page-hero .dot { width: 8px; height: 8px; }
.page-main > .section { padding-top: clamp(38px, 6vw, 68px); padding-bottom: clamp(42px, 7vw, 76px); }

/* Homepage */
.home-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr); align-items: end; gap: clamp(28px, 7vw, 92px); padding-top: clamp(52px, 9vw, 110px); padding-bottom: 72px; }
.home-hero h1 { margin: 14px 0 20px; font-size: clamp(64px, 8vw, 112px); font-weight: 700; letter-spacing: -.07em; line-height: .9; }
.home-intro { max-width: 48ch; color: var(--text); font-size: clamp(20px, 2.4vw, 27px); line-height: 1.45; }
.home-role { color: var(--profile-accent, var(--gold)); }
.home-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; margin: 0; }
.home-facts > div { padding: 15px 0 13px; border-top: 1px solid var(--line); }
.home-facts dt { color: var(--muted); font-size: 13px; }
.home-facts dd { margin: 3px 0 0; color: var(--text); font-size: 16px; font-weight: 600; }
.home-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 24px; margin-bottom: 80px; border-top: 1px solid var(--line); }
.home-links a { display: flex; min-height: 72px; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); color: var(--text); font-size: 18px; font-weight: 600; text-decoration: none; }
.home-links a span { color: var(--profile-accent, var(--gold)); transition: transform .18s ease; }
.home-links a:hover span { transform: translateX(4px); }

/* Personal timeline */
.journey-step { grid-template-columns: 44px minmax(0, 1fr); gap: clamp(18px, 4vw, 52px); padding-bottom: 60px; }
.journey-step:not(:last-child)::before { top: 22px; bottom: -22px; left: 21.5px; }
.journey-marker { width: 44px; height: 44px; }
.journey-marker::after { width: 10px; height: 10px; }
.journey-story { max-width: 900px; padding: 6px 0 0 clamp(18px, 3vw, 38px); border-left: 1px solid var(--line); }
.journey-step.current .journey-story { border-left-color: var(--profile-accent, var(--gold)); }
.journey-step p { max-width: 62ch; }

/* CS2 links and game library */
.profile-link-list, .simple-link-list { margin: 28px 0 30px; padding: 0; list-style: none; }
.profile-link-list a, .simple-link-list a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 15px 0; border-top: 1px solid var(--line); color: var(--text); text-decoration: none; }
.profile-link-list a:last-child, .simple-link-list li:last-child a { border-bottom: 1px solid var(--line); }
.profile-link-list a span:first-child, .simple-link-list a span:first-child { color: var(--profile-accent, var(--gold)); font-weight: 650; }
.profile-link-list a span:last-child, .simple-link-list a span:last-child { color: var(--profile-accent, var(--gold)); font-size: 14px; }
.profile-link-list a:hover, .simple-link-list a:hover { color: var(--profile-accent, var(--gold)); }
.games-section .title { margin-top: 9px; }
.games-note { max-width: 72ch; margin-bottom: 26px; }
.game-library { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(160px, auto); gap: 14px; margin: 0; padding: 0; list-style: none; }
.game-card { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 18px; border: 1px solid var(--line); border-top: 2px solid var(--rarity, var(--line)); background: linear-gradient(145deg, color-mix(in srgb, var(--rarity, var(--panel)) 8%, var(--panel)), var(--panel)); }
.game-card h3 { max-width: 22ch; color: var(--text); font-size: 18px; line-height: 1.25; }
.game-card p { margin-top: 6px; color: var(--muted); font-size: 14px; }
.game-card .game-rarity { color: var(--rarity, var(--muted)); font-size: 12px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }
.game-card-top { display: flex; width: 100%; align-items: flex-start; justify-content: space-between; gap: 16px; }
.game-code { display: grid; width: 56px; aspect-ratio: 1; place-items: center; border: 1px solid color-mix(in srgb, var(--rarity) 55%, var(--line)); color: var(--rarity); font: 700 18px/1 var(--mono); }
.game-card > a { color: var(--profile-accent, var(--gold)); font-size: 14px; font-weight: 600; text-decoration: none; }
.game-card > a span { display: inline-block; margin-left: 7px; transition: transform .18s ease; }
.game-card > a:hover span { transform: translateX(4px); }
.game-card-featured { grid-column: span 2; grid-row: span 2; min-height: 334px; padding: clamp(20px, 3vw, 34px); background: radial-gradient(ellipse at 92% 10%, color-mix(in srgb, var(--rarity) 18%, transparent), transparent 55%), linear-gradient(145deg, #20242b, #171a20); }
.game-card-featured h3 { font-size: clamp(30px, 4vw, 46px); letter-spacing: -.04em; }
.game-card-featured .game-code { width: 76px; font-size: 23px; }
.rarity-knife { --rarity: #ffb547; }
.rarity-green { --rarity: #71d6a0; }
.rarity-blue { --rarity: #78bfff; }
.rarity-purple { --rarity: #b69aff; }
.rarity-pink { --rarity: #ee79d2; }
.rarity-red { --rarity: #f36b73; }

/* Contacts and private feedback */
.contact-page { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(34px, 7vw, 96px); align-items: start; }
.contact-page .title, .feedback-intro .title { margin: 9px 0 22px; font-size: clamp(38px, 5.5vw, 62px); }
.contact-details { margin: 28px 0 0; }
.contact-details > div { display: grid; grid-template-columns: 94px minmax(0, 1fr); gap: 14px; align-items: center; padding: 15px 0; border-top: 1px solid var(--line); }
.contact-details dt { color: var(--muted); font-size: 14px; }
.contact-details dd { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; color: var(--text); font-weight: 600; overflow-wrap: anywhere; }
.contact-details a { color: var(--text); }
.contact-details a:hover { color: var(--profile-accent, var(--gold)); }
.handle { font-variant-numeric: tabular-nums; }
.copy-handle { padding: 5px 8px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); font: inherit; font-size: 12px; cursor: pointer; }
.copy-handle:hover { border-color: var(--profile-accent, var(--gold)); color: var(--text); }
.copy-status { flex-basis: 100%; color: var(--muted); font-size: 13px; font-weight: 400; }
.contact-link-groups { display: grid; gap: 30px; }
.contact-link-groups h2 { margin-top: 6px; color: var(--text); font-size: 24px; }
.simple-link-list { margin: 12px 0 0; }
.simple-link-list a { grid-template-columns: minmax(0, 1fr) auto; }
.contact-feedback-link { margin: 12px 0 72px; color: var(--muted); }
.contact-feedback-link a { color: var(--profile-accent, var(--gold)); font-weight: 600; }
.feedback-page { display: grid; grid-template-columns: minmax(220px, .65fr) minmax(0, 1.35fr); gap: clamp(32px, 7vw, 90px); align-items: start; }
.feedback-intro > p:last-child { max-width: 34ch; color: var(--muted); line-height: 1.65; }
.feedback-form { padding: 0; background: transparent; }
.feedback-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.feedback-form textarea { min-height: 220px; }
.field-note { display: block; margin-top: 7px; color: var(--muted); font-size: 13px; }
.feedback-form .form-foot { align-items: flex-start; }

@media (max-width: 900px) {
  .home-hero { grid-template-columns: 1fr; gap: 32px; }
  .home-facts { max-width: 600px; }
  .home-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-page, .feedback-page { grid-template-columns: 1fr; }
  .contact-link-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
}
@media (max-width: 640px) {
  .page-hero { padding-top: 42px; padding-bottom: 28px; }
  .home-hero { padding-top: 52px; padding-bottom: 48px; }
  .home-hero h1 { font-size: clamp(58px, 16vw, 92px); }
  .home-facts { gap: 0 14px; }
  .home-links { gap: 0 16px; margin-bottom: 52px; }
  .home-links a { min-height: 62px; font-size: 16px; }
  .journey-step { grid-template-columns: 38px minmax(0, 1fr); gap: 14px; padding-bottom: 42px; }
  .journey-step:not(:last-child)::before { top: 19px; bottom: -21px; left: 18.5px; }
  .journey-marker { width: 38px; height: 38px; }
  .journey-story { padding: 5px 0 0 16px; }
  .journey-step p { font-size: 16px; }
.profile-link-list a { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.game-library { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(148px, auto); gap: 10px; }
.game-card { min-height: 148px; padding: 14px; }
.game-card-featured { grid-column: 1 / -1; grid-row: auto; min-height: 230px; }
  .contact-link-groups, .feedback-fields { grid-template-columns: 1fr; }
  .contact-details > div { grid-template-columns: 78px minmax(0, 1fr); }
  .feedback-form .form-foot { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .home-links a span { transition: none; }
}
