/* Xbox 360 Challenge — public site
   Built on the DreamHost design tokens (dark theme): electric blue #0073EC, ink #071C26,
   canvas #111111, radii 24 / 16 / 12 / pill. Fonts: Outfit (display) + Mulish (body), via Google Fonts. */
:root {
  --bg: #111111; --bg-deep: #0B0B0C; --surface: #1B1C1F; --raise: #27272A;
  --line: #27272A; --line-2: #3F3F46; --mute-fill: #52525B;
  --fg: #FFFFFF; --fg-2: #E4E4E7; --fg-3: #A1A1AA;
  --blue: #0073EC; --blue-dark: #0D69D4; --blue-deep: #003CD7; --link: #7DB8F7; --link-hover: #B5D6FA;
  --green: #007D00; --green-soft: #E6F4EA; --red: #FF4A48; --ink: #071C26;
  --r-xl: 24px; --r-lg: 16px; --r-md: 12px; --r-sm: 8px; --pill: 100px;
  --display: "Outfit", "Mulish", ui-sans-serif, system-ui, sans-serif;
  --body: "Mulish", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1280px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--fg-2); font: 16px/24px var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: var(--link); }
a:hover { color: var(--link-hover); }
h1, h2, h3 { margin: 0; color: var(--fg); font-family: var(--display); font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
[hidden] { display: none !important; }
html:not(.icons-ready) .ms { visibility: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--blue); color: #fff; padding: 10px 16px; border-radius: var(--r-md); font-weight: 700; }
.skip:focus { top: 12px; }
.ms { font-family: "Material Symbols Rounded"; font-weight: normal; font-style: normal; font-size: 20px; line-height: 1; display: inline-block; width: 1em; overflow: hidden; white-space: nowrap; flex-shrink: 0; font-feature-settings: "liga"; -webkit-font-smoothing: antialiased; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.overline { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; line-height: 16px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); }
.dot { width: 8px; height: 8px; border-radius: var(--pill); background: var(--green); }
.muted { color: var(--fg-3); }

/* buttons */
.btn { height: 48px; padding: 0 20px; border-radius: var(--r-md); border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 16px/1 var(--body); text-decoration: none; cursor: pointer; transition: background .15s ease-out, border-color .15s ease-out; white-space: nowrap; }
.btn-sm { height: 44px; padding: 0 14px; font-size: 14px; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--fg); border-color: var(--line-2); }
.btn-outline:hover { background: var(--raise); color: var(--fg); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--fg-2); color: var(--ink); }
.btn-red { background: #C4302B; color: #fff; }
.btn-red:hover { background: #A82823; color: #fff; }
.btn-link { background: transparent; border: 0; color: var(--link); font-weight: 700; cursor: pointer; padding: 0 8px; font-family: inherit; font-size: 14px; height: 36px; }
.icon-btn { width: 44px; height: 44px; border-radius: var(--r-md); border: 0; background: transparent; color: var(--fg); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; text-decoration: none; }
.icon-btn:hover { background: var(--raise); color: var(--fg); }

/* header */
.site-head { position: sticky; top: 0; z-index: 30; background: rgba(17,17,17,.94); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.2); }
.site-head .wrap { display: flex; align-items: center; gap: 16px 32px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--fg); }
.brand:hover { color: var(--fg); }
.brand-mark { width: 36px; height: 36px; border-radius: var(--r-md); background: var(--blue); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.brand-mark .ms { font-size: 22px; }
.brand-text { display: flex; flex-direction: column; line-height: 18px; }
.brand-text b { font-family: var(--display); font-size: 18px; }
.brand-text small { font-size: 12px; color: var(--fg-3); }
.nav { display: flex; gap: 4px 24px; flex: 1 1 auto; font-weight: 700; font-size: 15px; }
.nav a { color: var(--fg-2); text-decoration: none; padding: 8px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); }
.socials { display: flex; gap: 8px; align-items: center; }
.social { height: 44px; padding: 0 14px; border-radius: var(--r-md); border: 1px solid var(--line-2); display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: var(--fg-2); text-decoration: none; }
.social:hover { background: var(--raise); color: var(--fg); }
.live-pill { height: 36px; padding: 0 12px; border-radius: var(--pill); background: var(--red); color: #111; display: none; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; }
.live-pill::before { content: ""; width: 7px; height: 7px; border-radius: var(--pill); background: #111; }
.menu-btn { display: none; }
.drawer-bg { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.4); }
.drawer-nav { position: absolute; top: 0; right: 0; width: min(320px, 86vw); height: 100%; background: var(--surface); border-left: 1px solid var(--line); padding: 12px 16px 24px; display: flex; flex-direction: column; gap: 4px; }
.drawer-nav a { min-height: 52px; padding: 0 12px; border-radius: var(--r-md); display: flex; align-items: center; gap: 12px; color: var(--fg); font-weight: 700; font-size: 17px; text-decoration: none; }
.drawer-nav a:hover { background: var(--raise); color: var(--fg); }
.drawer-nav .spacer { flex: 1 1 auto; }
.drawer-nav .close { align-self: flex-end; }

/* hero */
.hero { padding: 64px 0 40px; }
.hero .wrap { display: flex; flex-wrap: wrap; gap: 48px; align-items: stretch; }
.hero-copy { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 28px; justify-content: center; }
.hero h1 { font-size: clamp(34px, 5vw, 60px); line-height: 1.07; letter-spacing: -0.02em; max-width: 780px; }
.hero .lede { font-size: 18px; line-height: 30px; color: var(--fg-3); max-width: 620px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); }
.progress-card { padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.progress-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; }
.big-pct { font-family: var(--display); font-weight: 700; font-size: 56px; line-height: 56px; color: var(--fg); }
.segbar { display: flex; height: 20px; border-radius: var(--pill); overflow: hidden; gap: 3px; background: var(--bg); }
.segbar > span { display: block; height: 100%; min-width: 0; transition: width .4s ease-out; }
.seg-done { background: var(--green); }
.seg-play { background: var(--blue); min-width: 6px !important; }
.seg-own { background: var(--mute-fill); }
.seg-miss { flex: 1 1 auto; background: repeating-linear-gradient(135deg, var(--raise) 0 6px, var(--surface) 6px 12px); }
.legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px 24px; font-size: 14px; line-height: 20px; }
.legend button { display: flex; gap: 10px; align-items: flex-start; background: none; border: 0; padding: 4px; margin: -4px; border-radius: var(--r-sm); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.legend button:hover { background: var(--raise); }
.legend i { width: 12px; height: 12px; border-radius: 4px; margin-top: 4px; flex-shrink: 0; }
.legend b { color: var(--fg); font-size: 16px; display: block; }
.legend span span { color: var(--fg-3); }
.legend .sw-miss { border: 1px dashed var(--fg-3); }

.np { flex: 1 1 400px; min-width: 0; overflow: hidden; display: flex; flex-direction: column; }
.player { aspect-ratio: 16 / 9; background: var(--ink); position: relative; display: flex; align-items: center; justify-content: center; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-btn { display: flex; flex-direction: column; align-items: center; gap: 12px; background: none; border: 0; color: var(--fg-3); font: 600 14px var(--body); cursor: pointer; width: 100%; height: 100%; justify-content: center; }
.player-btn .ring { width: 64px; height: 64px; border-radius: var(--pill); border: 2px solid var(--fg-2); display: inline-flex; align-items: center; justify-content: center; color: #fff; transition: background .15s; }
.player-btn:hover .ring { background: rgba(255,255,255,.08); }
.player-btn .ring .ms { font-size: 36px; }
.np-body { padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.np-row { display: flex; gap: 16px; align-items: center; }
.np-cover { width: 64px; height: 89px; border-radius: var(--r-sm); object-fit: cover; border: 1px solid var(--line); background: var(--raise); flex-shrink: 0; }
.np-title { font-family: var(--display); font-weight: 700; font-size: 24px; line-height: 30px; color: var(--fg); }
.bar { height: 8px; border-radius: var(--pill); background: var(--raise); overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--blue); border-radius: var(--pill); }
.np-meta { display: flex; justify-content: space-between; font-size: 14px; gap: 12px; }
.np-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.np-actions .btn { flex: 1 1 auto; }
.np-sched { font-size: 13px; color: var(--fg-3); display: flex; align-items: center; gap: 6px; }

/* stat tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 24px; display: flex; flex-direction: column; gap: 6px; }
.tile-label { display: flex; align-items: center; gap: 8px; color: var(--fg-3); font-size: 14px; }
.tile-value { font-family: var(--display); font-weight: 700; font-size: 36px; line-height: 44px; color: var(--fg); }
.tile-note { font-size: 13px; color: var(--fg-3); }

.section { padding: 0 0 72px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.section-head h2 { font-size: 32px; line-height: 40px; }

/* recently beaten */
.recent { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.recent a { display: flex; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px; text-decoration: none; color: inherit; transition: border-color .15s; }
.recent a:hover { border-color: var(--mute-fill); }
.recent img { width: 56px; height: 78px; border-radius: var(--r-sm); object-fit: cover; border: 1px solid var(--line); flex-shrink: 0; background: var(--raise); }
.recent b { color: var(--fg); display: block; font-size: 15px; line-height: 20px; }
.recent small { display: block; font-size: 13px; color: var(--fg-3); }
.recent .gs { color: var(--green-soft); display: inline-flex; align-items: center; gap: 4px; }
.recent .gs .ms { font-size: 16px; }

/* library */
.library { background: var(--bg-deep); border-top: 1px solid var(--line); padding: 64px 0 80px; }
.library h2 { font-size: 40px; line-height: 48px; }
.toolbar { position: sticky; top: 73px; z-index: 10; display: flex; flex-direction: column; gap: 16px; padding: 20px; margin: 24px 0; }
.tool-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.search { flex: 1 1 280px; min-width: 0; height: 48px; display: flex; align-items: center; gap: 10px; padding: 0 16px; border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--bg); color: var(--fg-3); }
.search:focus-within { outline: 2px solid var(--blue); }
.search input { flex: 1 1 auto; min-width: 0; border: 0; background: transparent; color: var(--fg); font: 16px var(--body); outline: none; }
.search input::placeholder { color: var(--fg-3); }
.select-label { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--fg-3); }
select { height: 48px; padding: 0 12px; border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--bg); color: var(--fg); font: 15px var(--body); }
.seg { display: flex; padding: 4px; border-radius: var(--r-md); background: var(--bg); border: 1px solid var(--line-2); }
.seg button { height: 38px; width: 44px; border-radius: var(--r-sm); border: 0; background: transparent; color: var(--fg-3); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--line-2); color: var(--fg); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { height: 44px; padding: 0 16px; border-radius: var(--pill); border: 1px solid var(--line-2); background: transparent; color: var(--fg-2); font: 700 15px var(--body); display: inline-flex; align-items: center; gap: 8px; cursor: pointer; flex-shrink: 0; }
.chip:hover { background: var(--raise); }
.chip[aria-pressed="true"] { background: #fff; color: var(--ink); border-color: #fff; }
.chip .ms { font-size: 18px; }
.chip em { font-style: normal; font-size: 13px; font-weight: 800; padding: 0 8px; border-radius: var(--pill); background: rgba(0,0,0,.25); }
.az { display: flex; flex-wrap: wrap; gap: 2px; }
.az button { min-width: 36px; height: 36px; padding: 0 6px; border-radius: var(--r-sm); border: 0; background: transparent; color: var(--fg-3); font: 800 14px var(--body); cursor: pointer; }
.az button:hover { background: var(--raise); color: var(--fg); }
.az button[aria-pressed="true"] { background: var(--blue); color: #fff; }
.results { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 14px; color: var(--fg-3); margin-bottom: 20px; min-height: 36px; }
.pick { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 16px 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--blue); margin-bottom: 24px; }
.pick img { width: 48px; height: 67px; border-radius: 6px; object-fit: cover; }
.pick-text { display: flex; flex-direction: column; flex: 1 1 200px; min-width: 0; }
.pick-text b { font-family: var(--display); font-size: 22px; line-height: 28px; color: var(--fg); }
.pick-text small { font-size: 13px; color: var(--fg-3); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 28px 20px; }
.gcard { display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: inherit; border-radius: var(--r-lg); }
.gcard:hover { color: inherit; }
.cover { aspect-ratio: 5 / 7; border-radius: var(--r-lg); position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: border-color .15s ease-out; }
.gcard:hover .cover { border-color: #71717A; }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover .noart { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 14px; font-family: var(--display); font-weight: 700; font-size: 20px; line-height: 22px; color: var(--fg); background: var(--ink); }
.cover-top { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; align-items: flex-start; gap: 6px; }
.cover-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: rgba(0,0,0,.6); }
.cover-bar span { display: block; height: 100%; }
.owned-dot { width: 26px; height: 26px; border-radius: var(--pill); background: rgba(0,0,0,.55); display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.owned-dot .ms { font-size: 16px; }
.is-missing .cover { border-style: dashed; border-color: #71717A; background: var(--bg); }
.is-missing .cover img { filter: grayscale(1); opacity: .45; }
.is-picked { outline: 3px solid var(--blue); outline-offset: 6px; }
.gmeta { display: flex; flex-direction: column; gap: 2px; padding: 0 2px; }
.gmeta b { font-weight: 700; color: var(--fg); font-size: 15px; line-height: 20px; }
.gmeta small { font-size: 13px; line-height: 18px; color: var(--fg-3); }
.gmeta .gs { color: var(--fg-2); }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px 3px 6px; border-radius: var(--pill); font-size: 12px; line-height: 16px; font-weight: 800; white-space: nowrap; }
.badge .ms { font-size: 15px; }
.b-completed { background: var(--green); color: #fff; }
.b-playing { background: var(--blue); color: #fff; }
.b-notstarted { background: var(--fg-2); color: var(--ink); }
.b-missing { background: var(--bg); color: var(--fg-2); border: 1px dashed var(--fg-3); }
.bar-completed { background: var(--green); }
.bar-playing { background: var(--blue); }
.bar-notstarted, .bar-missing { background: #71717A; }

.list { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface); }
.list table { width: 100%; min-width: 860px; border-collapse: collapse; }
.list th { text-align: left; padding: 14px 16px; font-size: 12px; line-height: 16px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-3); border-bottom: 1px solid var(--line); }
.list td { padding: 10px 16px; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--fg-3); }
.list th:first-child, .list td:first-child { padding-left: 24px; }
.list tr:hover td { background: #202125; }
.list .t { display: flex; align-items: center; gap: 12px; color: var(--fg); font-weight: 700; text-decoration: none; }
.list .t img { width: 32px; height: 45px; border-radius: 6px; object-fit: cover; flex-shrink: 0; background: var(--raise); }
.list td.on { color: var(--fg-2); }

.more { display: flex; flex-direction: column; align-items: center; gap: 12px; padding-top: 32px; }
.empty { padding: 64px 24px; border-radius: var(--r-xl); border: 1px dashed var(--line-2); display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.empty .ms { font-size: 40px; color: var(--fg-3); }
.empty b { font-family: var(--display); font-size: 20px; color: var(--fg); }
.loading { color: var(--fg-3); padding: 40px 0; text-align: center; }
.skel { background: var(--surface); border-radius: var(--r-lg); aspect-ratio: 5/7; animation: pulse 1.5s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .5; } }

/* footer */
.site-foot { border-top: 1px solid var(--line); }
.site-foot .wrap { padding-top: 40px; padding-bottom: 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; font-size: 14px; color: var(--fg-3); }
.site-foot b { font-family: var(--display); font-size: 18px; color: var(--fg); display: block; margin-bottom: 6px; }
.site-foot nav { display: flex; gap: 16px; flex-wrap: wrap; }
.site-foot nav a { color: var(--fg-2); text-decoration: none; }

/* game page */
.g-hero { position: relative; border-bottom: 1px solid var(--line); background: var(--bg) center / cover no-repeat; }
.g-hero::before { content: ""; position: absolute; inset: 0; background: rgba(17,17,17,.86); }
.g-hero .wrap { position: relative; padding-top: 48px; padding-bottom: 48px; display: grid; grid-template-columns: minmax(220px, 320px) minmax(0, 1fr); grid-template-areas: "cover head" "cover detail"; gap: 24px 48px; align-items: start; }
.g-head { grid-area: head; display: flex; flex-direction: column; gap: 8px; }
.g-detail { grid-area: detail; display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.g-cover { grid-area: cover; aspect-ratio: 5/7; border-radius: var(--r-xl); border: 1px solid var(--line); overflow: hidden; position: relative; background: var(--surface); }
.g-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.g-cover .badge { position: absolute; top: 16px; left: 16px; font-size: 13px; padding: 4px 12px 4px 8px; }
.g-head h1 { font-size: clamp(32px, 4.5vw, 56px); line-height: 1.08; letter-spacing: -0.02em; }
.g-sub { font-size: 18px; line-height: 28px; color: var(--fg-3); }
.g-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.g-stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.g-stat .v { font-family: var(--display); font-weight: 700; font-size: 32px; line-height: 36px; color: var(--fg); }
.g-stat .v small { font-size: 18px; color: var(--fg-3); }
.g-facts { padding: 24px; display: flex; flex-wrap: wrap; gap: 24px; }
.fact { display: flex; gap: 14px; align-items: flex-start; flex: 1 1 220px; }
.fact .ic { width: 44px; height: 44px; border-radius: var(--r-md); background: var(--raise); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.fact .ic.ok { background: var(--green-soft); color: var(--green); }
.fact b { display: block; color: var(--fg); }
.fact small { font-size: 14px; color: var(--fg-3); }
.g-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.g-body { padding: 48px 0 80px; }
.g-body .wrap { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.g-left { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.g-right { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.panel { padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.panel h2 { font-size: 24px; line-height: 32px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.ach { display: flex; flex-direction: column; }
.ach li { display: flex; gap: 16px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.ach-ic { width: 48px; height: 48px; border-radius: var(--r-md); background: var(--raise); color: var(--fg-3); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.ach-ic img { width: 100%; height: 100%; object-fit: cover; }
.ach li.got .ach-ic { background: var(--blue); color: #fff; }
.ach-text { flex: 1 1 auto; min-width: 0; }
.ach-text b { display: block; color: var(--fg); }
.ach-text small { font-size: 14px; color: var(--fg-3); }
.ach-gs { font-weight: 800; color: var(--fg-3); min-width: 56px; text-align: right; }
.ach li.got .ach-gs { color: var(--fg); }
ul.ach { list-style: none; margin: 0; padding: 0; }
.details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; font-size: 14px; }
.details span { display: block; color: var(--fg-3); }
.details b { color: var(--fg); font-weight: 700; }
.desc { color: var(--fg-2); line-height: 26px; }
.adj { flex: 1 1 100%; border-top: 1px solid var(--line); padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; }
.adj a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--fg-2); text-decoration: none; font-weight: 700; max-width: 48%; }
.adj a:hover { color: var(--fg); }

/* journey */
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; max-width: 880px; }
.timeline li { padding: 24px 28px; display: grid; grid-template-columns: 160px 1fr; gap: 8px 24px; }
.timeline time { font-family: var(--display); font-weight: 700; color: var(--fg); font-size: 18px; line-height: 26px; }
.timeline p + p { margin-top: 12px; }
.timeline p { color: var(--fg-2); }

/* phones */
@media (max-width: 900px) {
  .nav, .socials .social { display: none; }
  .menu-btn { display: inline-flex; }
  .site-head .wrap { min-height: 60px; gap: 8px; }
  .brand { flex: 1 1 auto; }
  .brand-text small { display: none; }
  .toolbar { top: 61px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 28px 0 16px; }
  .hero .wrap { gap: 20px; }
  .progress-card, .np-body, .panel { padding: 20px; }
  .big-pct { font-size: 44px; line-height: 44px; }
  .segbar { height: 14px; }
  .legend { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tile { padding: 14px 16px; }
  .tile-value { font-size: 24px; line-height: 30px; }
  .tile-note { display: none; }
  .section-head h2 { font-size: 24px; line-height: 32px; }
  .recent { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
  .recent a { flex: 0 0 240px; scroll-snap-align: start; }
  .library { padding: 28px 0 40px; }
  .library h2 { font-size: 30px; line-height: 36px; }
  .toolbar { position: static; padding: 12px; border-radius: var(--r-lg); gap: 12px; margin: 16px -4px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -12px; padding: 0 12px; }
  .chip { height: 40px; font-size: 14px; padding: 0 12px; }
  .az { display: none; }
  .tool-row .select-label { flex: 1 1 40%; }
  .tool-row .select-label select { flex: 1 1 auto; min-width: 0; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .cover-top { top: 8px; left: 8px; right: 8px; }
  .badge { font-size: 11px; padding: 2px 8px 2px 5px; }
  .g-hero .wrap { grid-template-columns: 120px minmax(0, 1fr); grid-template-areas: "cover head" "detail detail"; gap: 20px 16px; padding-top: 20px; padding-bottom: 24px; align-items: end; }
  .g-cover { border-radius: var(--r-lg); }
  .g-cover .badge { display: none; }
  .g-sub { font-size: 14px; line-height: 20px; }
  .g-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-stat { padding: 14px; }
  .g-stat .v { font-size: 24px; line-height: 28px; }
  .g-actions .btn { flex: 1 1 auto; }
  .g-body { padding: 20px 0 48px; }
  .timeline li { grid-template-columns: 1fr; padding: 20px; }
}

/* ---------- stats page ---------- */
.stat-card { padding: 28px 28px 24px; }
.stat-card .section-head { margin-bottom: 16px; }
.stat-card .section-head h2 { font-size: 24px; line-height: 32px; }
.stat-card .section-head p { margin: 4px 0 0; }
.chart { position: relative; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .axis { stroke: var(--line-2); stroke-width: 1; }
.chart .tick { fill: var(--fg-3); font: 600 12px var(--body); }
.chart .hit { fill: transparent; cursor: default; }
.chart .hit.on { fill: rgba(255,255,255,.04); }
.chart .tip { position: absolute; top: 0; transform: translateX(-50%); min-width: 180px; max-width: 260px; background: var(--raise); border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 10px 12px; font-size: 13px; line-height: 18px; color: var(--fg-2); pointer-events: none; box-shadow: 0 8px 24px rgba(0,0,0,.4); z-index: 2; }
.chart .tip b { display: block; color: var(--fg); font-size: 14px; }
.chart .tip ul { margin: 6px 0 0; padding: 0; list-style: none; }
.chart .tip li { color: var(--fg-2); }
.chart-table { margin-top: 16px; }
.chart-table summary { cursor: pointer; color: var(--link); font-weight: 700; font-size: 14px; }
.mini { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 14px; }
.mini th, .mini td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.mini th { color: var(--fg-3); font-weight: 700; }
.hbars { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.hbars li { display: grid; grid-template-columns: minmax(0, 260px) 1fr 72px; align-items: center; gap: 14px; }
.hb-name { display: flex; gap: 10px; align-items: baseline; color: var(--fg-2); text-decoration: none; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-name:hover { color: var(--fg); text-decoration: underline; }
.hb-rank { color: var(--fg-3); font-size: 13px; min-width: 20px; text-align: right; }
.hb-track { height: 14px; }
.hb-bar { display: block; height: 100%; background: #3B8EF0; border-radius: 0 4px 4px 0; }
.hb-val { color: var(--fg); font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
@media (max-width: 640px) {
  .stat-card { padding: 20px 16px; }
  .hbars li { grid-template-columns: 1fr 64px; gap: 6px 10px; }
  .hb-name { grid-column: 1 / -1; }
}
#st-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { #st-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { #st-tiles { grid-template-columns: 1fr; } }
#st-tiles .tile-note { display: block; }

/* live badges: hidden unless /Xbox_App/twitch_live.php says the stream is live */
.live-pill { display: none !important; }
.is-live .live-pill { display: inline-flex !important; }
.live-badge { display: none; margin: 4px 0 2px; align-items: center; gap: 8px; width: max-content; padding: 4px 10px; border-radius: var(--pill); background: var(--red); color: #111; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.live-badge::before { content: ""; width: 7px; height: 7px; border-radius: var(--pill); background: #111; animation: livepulse 1.6s ease-in-out infinite; }
.is-live .live-badge { display: flex; }
.np-stream { margin: -6px 0 0; color: var(--fg-2); font-size: 14px; line-height: 20px; }
@keyframes livepulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .live-badge::before { animation: none; } }
