:root {
  color-scheme:light;
  --ink:#202127; --bg:#f7f8fa; --surface:#fff; --surface-alt:#f8f9fb;
  --line:#e8e9ed; --line-strong:#d4d6dd; --mid:#666b78; --faint:#777d89; --deep:#353840;
  --hover:#f1f2f5; --on-ink:#fff; --nav-active:#202127;
  --font:'Inter','Segoe UI',system-ui,sans-serif; --display:'Space Grotesk',var(--font);
  --mono:'JetBrains Mono',Consolas,ui-monospace,monospace;
  --s1:.5rem; --s2:1rem; --s3:1.5rem; --s4:2rem; --s6:3rem;
  --sidebar-width:252px; --shadow:0 2px 4px rgba(22,25,35,.025);
}
.genshin-showcase { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr)); gap:18px; }
.genshin-character__head { display:flex; align-items:center; gap:14px; margin-bottom:20px; }
.genshin-character__head img { object-fit:contain; border-radius:12px; background:#292e3d; }
.genshin-character h3 { margin:0; font-size:16px; }
.genshin-character__head p,.genshin-character__weapon { margin:5px 0 0; font-size:11px; color:var(--mid); }
.genshin-character__stats { margin:0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:13px; }
.genshin-character__stats dt { font-size:10px; color:var(--mid); }
.genshin-character__stats dd { margin:3px 0 0; font:500 18px var(--display); }
.genshin-character__weapon { border-top:1px solid var(--line); margin-top:20px; padding-top:14px; }

/* Background mode changes retain the surrounding page and its scroll position. */
[data-osu-switcher] [data-fragment-url][aria-busy=true] .game-profile,
[data-osu-switcher] [data-fragment-url][aria-busy=true] .score-list { opacity:.45; }
[data-osu-switcher] .mode-tabs a:focus-visible { outline:2px solid var(--ink); outline-offset:3px; }
.leaderboard-privacy { display:flex; align-items:center; gap:9px; color:var(--mid); font-size:12px; margin-bottom:28px; }
.leaderboard-privacy svg { flex-shrink:0; }
.leaderboard-tabs { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:24px; }
.leaderboard-tabs a { display:inline-flex; align-items:center; gap:8px; padding:9px 16px; border:1px solid var(--line); border-radius:8px; background:var(--surface); color:var(--mid); font-size:12px; text-decoration:none; }
.leaderboard-tabs a[aria-current=page] { color:var(--on-ink); background:var(--ink); border-color:var(--ink); }
.leaderboard-tabs a:hover:not([aria-current=page]) { color:var(--ink); background:var(--hover); }
[data-leaderboard-switcher] [aria-busy=true] .leaderboard-list { opacity:.45; }
.leaderboard-avatar,.leaderboard-initials { display:grid; place-items:center; width:44px; height:44px; flex-shrink:0; border-radius:13px; overflow:hidden; background:var(--surface-alt); }
.leaderboard-initials { color:var(--mid); font:500 14px var(--display); border:1px solid var(--line); }
.leaderboard-summary .leaderboard-server-label { font-size:22px; letter-spacing:-.5px; overflow-wrap:anywhere; }
.leaderboard-footnote { margin:18px 0 0; padding-top:16px; border-top:1px solid var(--line); color:var(--mid); font-size:11px; line-height:1.8; }
.leaderboard-summary { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; margin-bottom:36px; }
.leaderboard-summary>div { padding:24px; border:1px solid var(--line); background:var(--surface); border-radius:12px; }
.leaderboard-summary small,.leaderboard-summary span { display:block; color:var(--mid); font-size:11px; }
.leaderboard-summary strong { display:block; font:500 34px/1.4 var(--display); margin:9px 0 2px; letter-spacing:-1px; }
.leaderboard-list { list-style:none; padding:0; margin:0; border:1px solid var(--line); border-radius:12px; overflow:hidden; background:var(--surface); }
.leaderboard-row { display:flex; align-items:center; gap:20px; padding:20px 25px; }
.leaderboard-row+.leaderboard-row { border-top:1px solid var(--line); }
.leaderboard-row--you { background:var(--surface-alt); box-shadow:inset 3px 0 var(--ink); }
.leaderboard-rank { font:500 16px var(--mono); color:var(--mid); min-width:42px; }
.leaderboard-row:first-child .leaderboard-rank { color:#bf913b; }
.leaderboard-row img { border-radius:13px; object-fit:cover; background:var(--surface-alt); flex-shrink:0; }
.leaderboard-name { flex:1; min-width:0; display:flex; align-items:center; gap:10px; }
.leaderboard-name strong { font-size:13px; overflow-wrap:anywhere; }
.leaderboard-name.leaderboard-server-name { flex-direction:column; align-items:flex-start; gap:4px; }
.leaderboard-server-name small { color:var(--mid); font-size:11px; }
.leaderboard-server-name time { text-decoration:underline dotted; text-underline-offset:3px; }
.leaderboard-count { text-align:right; flex-shrink:0; }
.leaderboard-count strong { font:500 21px var(--display); }
.leaderboard-count small { display:block; color:var(--mid); font-size:10px; margin-top:3px; }
@media(max-width:600px) { .leaderboard-summary { grid-template-columns:1fr; gap:10px; } .leaderboard-summary>div { padding:18px; } .leaderboard-row { gap:12px; padding:16px 14px; } .leaderboard-name { flex-wrap:wrap; gap:5px; } .leaderboard-rank { min-width:32px; font-size:13px; } .leaderboard-row img { width:34px; height:34px; border-radius:10px; } }
@media(max-width:600px) { .leaderboard-avatar,.leaderboard-initials { width:34px; height:34px; border-radius:10px; font-size:12px; } }
@media(prefers-color-scheme:dark) {
  :root:not([data-theme=light]) { color-scheme:dark; --ink:#eeeff2; --bg:#121316; --surface:#191b20; --surface-alt:#1d1f25;
    --line:#2a2d35; --line-strong:#424650; --mid:#a6aab5; --faint:#9298a6; --deep:#d5d8df;
    --hover:#252830; --on-ink:#181a1f; --nav-active:#eeeff2; --shadow:none; }
}
:root[data-theme=dark] { color-scheme:dark; --ink:#eeeff2; --bg:#121316; --surface:#191b20; --surface-alt:#1d1f25;
  --line:#2a2d35; --line-strong:#424650; --mid:#a6aab5; --faint:#9298a6; --deep:#d5d8df;
  --hover:#252830; --on-ink:#181a1f; --nav-active:#eeeff2; --shadow:none; }
*,*::before,*::after { box-sizing:border-box; }
html { scroll-behavior:smooth; scroll-padding-top:100px; }
body { margin:0; min-height:100dvh; background:var(--bg); color:var(--ink); font:14px/1.6 var(--font); -webkit-font-smoothing:antialiased; }
a { color:inherit; text-underline-offset:3px; }
button,input,select,textarea { font:inherit; }
svg { flex-shrink:0; vertical-align:middle; }
img { max-width:100%; }
[hidden] { display:none !important; }
:focus-visible { outline:2px solid var(--ink); outline-offset:4px; }
.skip-link { position:fixed; top:8px; left:12px; z-index:100; padding:10px 16px; background:var(--ink); color:var(--on-ink); transform:translateY(-160%); border-radius:6px; }
.skip-link:focus { transform:none; }
.workspace { margin-left:var(--sidebar-width); min-width:0; }
.wrap { max-width:1320px; padding:38px 40px 24px; margin:0 auto; min-width:0; }
.wrap--narrow { max-width:1140px; }
.brand { display:flex; gap:11px; align-items:center; color:var(--ink); text-decoration:none; font:700 23px/1.2 var(--display); letter-spacing:-.6px; }
.brand img { width:42px; height:42px; object-fit:cover; border:1px solid var(--line); border-radius:12px; }
.brand__caption { display:block; margin-top:4px; color:var(--mid); font:400 10px/1.4 var(--font); letter-spacing:0; }
.sidebar { position:fixed; inset:0 auto 0 0; z-index:40; width:var(--sidebar-width); display:flex; flex-direction:column; min-height:0; padding:28px 18px 0; background:var(--surface); border-right:1px solid var(--line); overflow:hidden; }
.sidebar__brand-row { display:flex; flex-shrink:0; align-items:center; justify-content:space-between; padding:0 8px; }
.sidebar__scroll { display:flex; flex:1; flex-direction:column; min-height:0; margin:0 -18px; padding:0 18px 12px; overflow-y:auto; overflow-x:hidden; overscroll-behavior:contain; scrollbar-width:thin; }
.sidebar__scroll>* { flex-shrink:0; }
.workspace-label { display:flex; align-items:center; gap:9px; margin:28px 6px 24px; padding:10px; border:1px solid var(--line); border-radius:8px; font-size:12px; color:var(--deep); }
.workspace-label__icon { display:grid; place-items:center; width:26px; height:26px; background:var(--hover); border-radius:6px; }
.topnav { display:flex; flex-direction:column; gap:5px; }
.nav-label { margin:0 12px 8px; color:var(--faint); font-size:11px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; }
.nav-label--server { margin-top:30px; }
.nav-link { display:flex; align-items:center; gap:12px; min-height:44px; padding:10px 12px; border-radius:7px; color:var(--mid); font-size:13px; font-weight:500; text-decoration:none; }
.nav-link:hover { color:var(--ink); background:var(--hover); }
.nav-link[aria-current=page] { background:var(--nav-active); color:var(--on-ink); }
.nav-link>span { flex:1; }
.sidebar-server { display:flex; align-items:center; gap:10px; margin:0 8px 10px; min-width:0; }
.sidebar-server__name { font-size:13px; font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.sidebar__bottom { margin-top:auto; padding-top:32px; }
.sidebar-note { margin:0 6px 16px; padding:15px; border:1px solid var(--line); border-radius:9px; background:var(--surface-alt); font-size:12px; }
.sidebar-note__mark { display:block; margin-bottom:9px; }
.sidebar-note strong { display:block; font-size:13px; }
.sidebar-note p { margin:5px 0 12px; color:var(--mid); line-height:1.6; }
.sidebar-note a { display:flex; align-items:center; justify-content:space-between; font-weight:600; text-decoration:none; }
.sidebar-account { display:flex; flex-shrink:0; align-items:center; gap:10px; margin:0 -18px; padding:16px 18px; padding-bottom:calc(16px + env(safe-area-inset-bottom, 0px)); border-top:1px solid var(--line); background:var(--surface); }
.account-icon,.topbar__account { display:grid; place-items:center; width:34px; height:34px; border:1px solid var(--line); border-radius:50%; background:var(--surface-alt); }
.sidebar-account strong { display:block; font-size:12px; font-weight:600; }
.sidebar-account small { display:block; color:var(--mid); font-size:11px; }
.sidebar-account form { margin-left:auto; }
.topbar { display:flex; align-items:center; gap:20px; position:sticky; top:0; z-index:20; min-height:76px; padding:0 40px; border-bottom:1px solid var(--line); background:var(--surface); }
.breadcrumbs { display:flex; align-items:center; gap:13px; min-width:0; font-size:12px; color:var(--mid); }
.breadcrumbs a { text-decoration:none; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:180px; }
.breadcrumbs>[aria-current] { color:var(--ink); font-weight:500; white-space:nowrap; }
.breadcrumbs>span:not([aria-current]) { color:var(--line-strong); }
.topbar__help { display:flex; gap:7px; align-items:center; margin-left:auto; color:var(--mid); text-decoration:none; font-size:12px; white-space:nowrap; }
.topbar__account { text-decoration:none; width:32px; height:32px; }
.icon-button { display:inline-grid; place-items:center; padding:0; width:34px; min-width:34px; height:34px; min-height:34px; background:transparent; border:1px solid transparent; border-radius:6px; color:var(--mid); cursor:pointer; }
.icon-button:hover { background:var(--hover); color:var(--ink); border-color:var(--line); }
.sidebar__close,.menu-toggle,.nav-backdrop { display:none; }
.eyebrow { margin:0 0 8px; font-size:11px; line-height:1.5; font-weight:600; letter-spacing:.11em; text-transform:uppercase; color:var(--faint); }
h1 { margin:0 0 9px; font:700 clamp(26px,3vw,32px)/1.2 var(--display); letter-spacing:-1px; overflow-wrap:anywhere; }
h2 { margin:32px 0 16px; font-size:17px; line-height:1.4; font-weight:600; letter-spacing:-.35px; }
h3 { font-size:14px; font-weight:600; }
p { margin-top:0; }
.lede { color:var(--mid); margin:0 0 30px; max-width:68ch; font-size:13px; line-height:1.8; }
.page-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; margin-bottom:28px; }
.page-heading .lede { margin-bottom:0; }
.page-heading>.btn { flex-shrink:0; margin-top:8px; }
.btn,button { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:40px; padding:9px 16px; background:var(--ink); color:var(--on-ink); border:1px solid var(--ink); border-radius:7px; font-size:12px; font-weight:500; text-decoration:none; cursor:pointer; transition:background .15s,border-color .15s; }
.btn:hover,button:hover { background:var(--deep); border-color:var(--deep); }
button:disabled { opacity:.5; cursor:not-allowed; }
.btn--ghost,button.btn--ghost { color:var(--ink) !important; background:var(--surface) !important; border-color:var(--line-strong) !important; }
.btn--ghost:hover,button.btn--ghost:hover { background:var(--hover) !important; }
.btn--block { width:100%; }
.text-link { display:inline-flex; align-items:center; gap:7px; font-size:12px; font-weight:500; text-decoration:none; }
.text-link:hover { text-decoration:underline; }
.tag { display:inline-flex; align-items:center; gap:5px; padding:3px 7px; border:1px solid var(--line); border-radius:5px; color:var(--mid); background:var(--surface-alt); font-size:10px; line-height:1.5; font-weight:500; white-space:nowrap; }
.tag--on { background:var(--hover); color:var(--ink); border-color:var(--line-strong); }
.status-dot { display:inline-block; width:6px; height:6px; background:currentColor; border-radius:50%; }
.panel { min-width:0; background:var(--surface); border:1px solid var(--line); border-radius:10px; padding:24px; box-shadow:var(--shadow); }
.panel__header { margin-bottom:22px; }
.panel__header h2 { margin:0 0 5px; font-size:14px; }
.panel__header p { margin:0; color:var(--mid); font-size:12px; }
.field { margin-bottom:22px; }
label { display:block; margin-bottom:7px; color:var(--ink); font-size:12px; font-weight:500; }
select,input[type=text],input[type=url],input[type=email],input[type=number],input[type=search],input[type=password],input:not([type]),textarea { width:100%; max-width:100%; min-height:42px; padding:10px 12px; color:var(--ink); background:var(--surface); border:1px solid var(--line-strong); border-radius:6px; font-size:13px; }
select:focus,input:focus,textarea:focus { outline:2px solid var(--line-strong); outline-offset:2px; border-color:var(--mid); }
textarea { min-height:110px; resize:vertical; line-height:1.7; }
input[type=file] { display:block; width:100%; min-width:0; padding:12px; border:1px dashed var(--line-strong); border-radius:6px; background:var(--surface-alt); font-size:12px; }
input::file-selector-button { margin-right:10px; padding:6px 10px; border:1px solid var(--line-strong); border-radius:4px; background:var(--surface); color:var(--ink); font:inherit; cursor:pointer; }
.check { display:flex; align-items:center; gap:10px; min-height:44px; cursor:pointer; }
.check input { width:16px; height:16px; accent-color:var(--ink); }
.hint { color:var(--mid); font-size:12px; margin:6px 0 0; line-height:1.7; }
.actions { display:flex; gap:8px; flex-wrap:wrap; margin-top:24px; }
.banner { margin-bottom:20px; padding:15px 18px; border:1px solid var(--line-strong); border-left:3px solid var(--mid); border-radius:7px; background:var(--surface); color:var(--deep); font-size:13px; }
.empty { padding:32px 24px; margin:0; color:var(--mid); text-align:center; font-size:13px; border:1px dashed var(--line-strong); border-radius:8px; background:var(--surface); }
.empty strong { display:block; margin-bottom:6px; color:var(--ink); font-size:13px; font-weight:600; }
.empty svg { margin-bottom:10px; color:var(--faint); }
.divider { margin:30px 0; border:0; border-top:1px solid var(--line); }
.back { display:inline-flex; align-items:center; gap:6px; margin-bottom:22px; color:var(--mid); font-size:12px; text-decoration:none; }
.back:hover { color:var(--ink); }
.foot { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:16px; margin-top:48px; padding-top:22px; border-top:1px solid var(--line); color:var(--faint); font-size:11px; }
.foot div { display:flex; gap:20px; }
.foot a { text-decoration:none; }
.foot a:hover { color:var(--ink); }
.foot__dot { padding:0 6px; }
.server-icon { display:grid; place-items:center; flex:0 0 auto; width:44px; height:44px; overflow:hidden; border:1px solid var(--line); border-radius:11px; background:var(--surface-alt); font:500 18px var(--display); color:var(--mid); }
.server-icon img { width:100%; height:100%; object-fit:cover; }
.server-icon--small { width:30px; height:30px; border-radius:7px; font-size:13px; }
.section-header { display:flex; justify-content:space-between; align-items:center; gap:16px; margin-bottom:18px; }
.section-header h2 { margin:0; font-size:16px; }
.section-header p { margin:4px 0 0; font-size:12px; color:var(--mid); }
.section-header__count { padding-left:7px; color:var(--faint); font-size:13px; font-weight:400; }
.public-page { background:var(--surface); }
.public-header { max-width:1140px; margin:0 auto; padding:24px 32px; display:flex; justify-content:space-between; align-items:center; border-bottom:1px solid var(--line); }
.public-header__link { display:flex; align-items:center; gap:8px; color:var(--mid); font-size:13px; text-decoration:none; }
.public-page .wrap { max-width:1050px; padding-top:56px; }
.public-page .wrap--narrow { max-width:860px; }
.public-page .lede { font-size:14px; }
.public-page .btn { font-size:13px; min-height:44px; }
code { padding:2px 5px; border:1px solid var(--line); border-radius:4px; background:var(--surface-alt); font:12px/1.6 var(--mono); overflow-wrap:anywhere; }
@media(max-width:1150px) { .wrap { padding:30px 28px 24px; } .topbar { padding:0 28px; } }
@media(max-width:900px) {
  .workspace { margin-left:0; }
  .sidebar { position:static; width:100%; max-height:none; padding:22px 18px 0; border-right:0; border-bottom:1px solid var(--line); }
  .sidebar-note,.workspace-label { display:none; }
  .sidebar__bottom { padding-top:20px; }
  .topnav { margin-top:22px; }
  .js .sidebar { position:fixed; width:280px; height:100dvh; max-width:calc(100vw - 40px); max-height:100dvh; border-right:1px solid var(--line); transform:translateX(-100%); visibility:hidden; transition:transform .2s; }
  .js body[data-nav-open] .sidebar { transform:translateX(0); visibility:visible; }
  .js .menu-toggle,.js .sidebar__close { display:inline-grid; }
  .menu-toggle,.sidebar__close { width:44px; height:44px; min-height:44px; }
  .js body[data-nav-open] { overflow:hidden; }
  .js body[data-nav-open] .nav-backdrop { display:block; position:fixed; inset:0; z-index:35; width:100%; height:100%; border:0; padding:0; background:rgba(0,0,0,.4); cursor:default; }
  .topbar { min-height:64px; gap:14px; }
  .breadcrumbs a { max-width:130px; }
}
@media(max-width:600px) {
  .wrap { padding:26px 18px 22px; }
  .topbar { padding:0 16px; gap:12px; }
  .topbar__help { display:none; }
  .theme-toggle { margin-left:auto; }
  .topbar__account { margin-left:0; flex-shrink:0; }
  .breadcrumbs { gap:8px; font-size:11px; overflow:hidden; }
  .breadcrumbs>a:first-child,.breadcrumbs>a:first-child+span { display:none; }
  .breadcrumbs a { max-width:120px; }
  .page-heading { flex-direction:column; gap:14px; }
  .page-heading>.btn { margin:0; }
  .panel { padding:20px; }
  .public-header { padding:18px; }
  .public-page .wrap { padding-top:32px; }
  .section-header { flex-wrap:wrap; }
  .foot { margin-top:32px; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } *,*::before,*::after { transition:none !important; animation:none !important; } }

/* Progressive dashboard surfaces reserve space while independent reads finish. */
.async-section { margin-bottom:26px; min-width:0; }
.async-section[data-state=ready] { animation:section-reveal .22s ease-out both; }
.loading-placeholder { padding:23px; border:1px solid var(--line); border-radius:12px; background:var(--surface); }
.loading-label { display:flex; align-items:center; flex-wrap:wrap; gap:9px; margin-bottom:23px; color:var(--mid); font-size:12px; }
.loading-caption { margin-left:auto; font-size:10px; color:var(--faint); }
.loading-dot { width:6px; height:6px; border-radius:50%; background:var(--mid); animation:loading-pulse 1.6s ease-in-out infinite; }
.skeleton-layout { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.skeleton-layout--connection,.skeleton-layout--games { grid-template-columns:repeat(2,minmax(0,1fr)); }
.skeleton-layout--characters { grid-template-columns:1fr; }
.skeleton-layout--characters .skeleton-card { padding:10px; min-height:44px; display:flex; align-items:center; gap:14px; border:0; }
.skeleton-layout--characters .skeleton-avatar { margin-bottom:0; width:30px; height:30px; }
.skeleton-layout--list { grid-template-columns:1fr; gap:16px; }
.skeleton-layout--list .skeleton-card { display:flex; align-items:center; gap:18px; min-height:66px; }
.skeleton-card { min-height:127px; padding:17px; border:1px solid var(--line); border-radius:8px; }
.skeleton { display:block; border-radius:5px; background:linear-gradient(100deg,var(--hover) 25%,var(--line) 45%,var(--hover) 65%); background-size:250% 100%; animation:skeleton-sweep 2s ease-in-out infinite; color:transparent !important; }
.skeleton-avatar { width:38px; height:38px; border-radius:10px; margin-bottom:17px; flex-shrink:0; }
.skeleton-line { width:85%; height:10px; margin:10px 0; }
.skeleton-line--short { width:52%; opacity:.65; }
.skeleton-stat { width:48px; height:35px; }
.async-section--profile[aria-busy=true] { min-height:286px; }
.async-section--connection[aria-busy=true] .skeleton-card { min-height:200px; }
.async-section--characters[aria-busy=true] { min-height:250px; }
.section-failure { padding:25px; border:1px solid var(--line); border-radius:10px; background:var(--surface); }
.section-failure strong { font-size:13px; }
.section-failure p { margin:8px 0 17px; color:var(--mid); font-size:12px; }
.section-failure button,.section-failure .btn { min-height:34px; font-size:11px; }
[data-account-portrait] { position:relative; overflow:hidden; }
[data-account-portrait]>img { width:100%; height:100%; object-fit:cover; border-radius:inherit; }
[data-account-fallback] { display:grid; place-items:center; }
[data-account-fallback][hidden] { display:none; }
.sidebar-account__identity { min-width:0; }
.sidebar-account__identity strong,.sidebar-account__identity small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.welcome-card { position:relative; display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:24px; padding:30px; margin-bottom:24px; border:1px solid var(--line); border-radius:14px; background:radial-gradient(ellipse at 100% 0,rgba(255,102,170,.065),transparent 55%),var(--surface); box-shadow:var(--shadow); }
.welcome-profile { display:flex; align-items:center; gap:22px; min-width:0; }
.welcome-profile>div { min-width:0; }
.welcome-card p { overflow-wrap:anywhere; }
.welcome-avatar { display:grid; place-items:center; width:76px; height:76px; flex-shrink:0; border:1px solid var(--line-strong); border-radius:20px; background:var(--surface-alt); color:var(--mid); box-shadow:0 8px 25px rgba(0,0,0,.08); }
.welcome-card h1 { margin:0 0 8px; font-size:29px; }
.welcome-card .eyebrow { margin:0 0 9px; font-size:9px; }
.welcome-card p:last-child { color:var(--mid); font-size:12px; margin:0; }
.welcome-card strong { color:var(--ink); }
.welcome-actions { display:flex; align-items:center; gap:22px; }
.welcome-actions .btn { font-size:11px; }
.welcome-games { display:flex; gap:13px; padding-left:22px; border-left:1px solid var(--line); }
.home-stats.stats { grid-template-columns:repeat(4,minmax(0,1fr)); }
.stat-icon { display:grid; place-items:center; padding:7px; border-radius:8px; background:var(--surface-alt); border:1px solid var(--line); }
.home-games-section { margin:32px 0; }
.game-connection-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr)); gap:20px; }
.game-connection-card { --game-accent:255,102,170; display:flex; flex-direction:column; gap:25px; padding:24px; border:1px solid var(--line); border-radius:12px; background:radial-gradient(ellipse at 100% 0,rgba(var(--game-accent),.08),transparent 65%),var(--surface); text-decoration:none; box-shadow:var(--shadow); transition:border-color .18s,transform .18s; }
.game-connection-card--dota { --game-accent:191,46,26; }
.game-connection-card--vrchat, .game-profile--vrchat { --game-accent:74,190,207; }
.vrchat-proof { display:block; padding:15px; margin:16px 0; border:1px dashed var(--line-strong); border-radius:8px; background:var(--surface-alt); font-size:15px; letter-spacing:1px; overflow-wrap:anywhere; user-select:all; }
.vrchat-verification { margin-top:22px; }
.vrchat-bio { white-space:pre-wrap; overflow-wrap:anywhere; font-size:13px; line-height:1.8; color:var(--mid); }
.vrchat-search { margin:28px 0; }
.vrchat-search-form { display:grid; grid-template-columns:minmax(0,1fr) minmax(145px,.4fr) auto; gap:14px; align-items:end; }
.vrchat-search-form .field { margin-bottom:0; min-width:0; }
.vrchat-search-form button { margin-bottom:0; }
.vrchat-world-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr)); gap:18px; }
.vrchat-world-card { overflow:hidden; border:1px solid var(--line); border-radius:12px; background:var(--surface); }
.vrchat-world-cover { display:block; aspect-ratio:16/9; background:var(--surface-alt); }
.vrchat-world-cover img { display:block; width:100%; height:100%; object-fit:cover; }
.vrchat-world-cover img.vrchat-world-cover--logo { padding:40px; object-fit:contain; }
.vrchat-world-body { padding:20px; }
.vrchat-world-body h3 { margin:0 0 9px; font-size:15px; overflow-wrap:anywhere; }
.vrchat-world-body h3 a { text-decoration:none; }
.vrchat-world-description { display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; font-size:12px; line-height:1.7; color:var(--mid); }
.vrchat-world-platforms { display:flex; flex-wrap:wrap; gap:6px; margin:15px 0; }
@media(max-width:700px) { .vrchat-search-form { grid-template-columns:1fr; } .vrchat-search-form button { width:100%; } }
.game-connection-card:hover { border-color:var(--line-strong); transform:translateY(-2px); }
.game-connection-card__top { display:flex; align-items:center; gap:15px; }
.game-connection-card__top>svg { margin-left:auto; color:var(--mid); }
.game-connection-card__logo { display:grid; place-items:center; width:52px; height:52px; border:1px solid var(--line); border-radius:12px; background:var(--surface); }
.game-connection-card strong { display:block; font:600 17px var(--display); letter-spacing:-.3px; }
.game-connection-card small { display:block; margin-top:5px; color:var(--mid); font-size:10px; }
.game-connection-card__account { display:flex; align-items:center; gap:11px; padding-top:17px; border-top:1px solid var(--line); font-size:12px; }
.game-connection-card__account>span:not(.connection-indicator) { min-width:0; overflow-wrap:anywhere; }
.mini-avatar { width:30px; height:30px; flex-shrink:0; border:1px solid var(--line); border-radius:8px; object-fit:cover; }
.connection-indicator { width:7px; height:7px; margin-left:auto; flex-shrink:0; border-radius:50%; background:var(--faint); opacity:.6; }
.connection-indicator--on { background:#50b58a; opacity:1; box-shadow:0 0 0 4px rgba(80,181,138,.1); }
.game-profile { --game-accent:255,102,170; padding:26px; margin-bottom:28px; border:1px solid var(--line); border-radius:13px; background:radial-gradient(ellipse at 100% 0,rgba(var(--game-accent),.07),transparent 50%),var(--surface); }
.game-profile--dota { --game-accent:191,46,26; }
.game-profile__identity { display:flex; align-items:center; gap:20px; margin-bottom:26px; min-width:0; }
.game-profile__identity>div { min-width:0; }
.game-profile__identity h2 { margin:0 0 7px; font:600 24px/1.25 var(--display); letter-spacing:-.5px; overflow-wrap:anywhere; }
.game-profile__identity .eyebrow { margin:0 0 8px; font-size:9px; }
.game-profile__identity p:last-child { margin:0; color:var(--mid); font-size:11px; }
.game-profile__identity>.btn { margin-left:auto; flex-shrink:0; font-size:11px; }
.game-profile__portrait { position:relative; display:grid; place-items:center; flex-shrink:0; width:80px; height:80px; border-radius:18px; background:var(--surface-alt); border:1px solid var(--line); box-shadow:0 6px 18px rgba(0,0,0,.08); }
.game-profile__portrait>img { width:100%; height:100%; object-fit:cover; border-radius:inherit; }
.game-profile__portrait--logo>img { width:48px; height:48px; object-fit:contain; border-radius:0; }
.game-profile__badge { position:absolute; bottom:-6px; right:-6px; display:grid; place-items:center; width:30px; height:30px; background:var(--surface); border:2px solid var(--surface); border-radius:9px; box-shadow:0 1px 5px rgba(0,0,0,.15); }
.game-profile .osu-stats { margin-bottom:0; gap:11px; }
.game-profile .osu-stat { padding:18px; background:var(--surface-alt); }
.game-profile .osu-data-note { margin-top:18px; }
.account-retry { padding:3px 0; margin-top:8px; min-height:0; border:0; background:none; font-size:10px; }
@keyframes skeleton-sweep { from { background-position:100% 0; } to { background-position:-150% 0; } }
@keyframes loading-pulse { 50% { opacity:.3; } }
@keyframes section-reveal { from { opacity:0; transform:translateY(4px); } to { opacity:1; transform:translateY(0); } }
@media(max-width:1100px) { .welcome-actions { flex-wrap:wrap; } .welcome-games { display:none; } .home-stats.stats { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) { .welcome-card { padding:22px 18px; gap:22px; } .welcome-profile { gap:15px; } .welcome-avatar { width:58px; height:58px; border-radius:15px; } .welcome-card h1 { font-size:25px; } .welcome-card p:last-child { font-size:11px; line-height:1.7; } .welcome-actions { width:100%; } .welcome-actions .btn { width:100%; } .game-connection-grid { grid-template-columns:1fr; gap:13px; } .game-connection-card { padding:20px; } .game-profile { padding:20px 16px; } .game-profile__identity { flex-wrap:wrap; gap:17px; } .game-profile__identity h2 { font-size:21px; } .game-profile__identity>.btn { margin:0; width:100%; } .game-profile__portrait { width:65px; height:65px; border-radius:15px; } .game-profile .osu-stat { padding:14px 11px; } .loading-placeholder { padding:18px; } .loading-caption { display:none; } .skeleton-layout { grid-template-columns:1fr; } .skeleton-layout--profile { grid-template-columns:repeat(2,minmax(0,1fr)); } .skeleton-layout--profile .skeleton-card:last-child { display:none; } .skeleton-layout--cards .skeleton-card:not(:first-child) { display:none; } .skeleton-layout--connection .skeleton-card:last-child { display:none; } }

/* Personal history shares the workspace shell, with a channel list and reader. */
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.history-heading { margin-bottom:24px; }
.history-private { margin-top:10px; padding:6px 10px; }
.history-filters { display:flex; align-items:center; gap:10px; margin-bottom:22px; flex-wrap:wrap; }
.history-search { display:flex; align-items:center; gap:10px; flex:1; min-width:200px; padding:0 13px; border:1px solid var(--line-strong); border-radius:7px; background:var(--surface); color:var(--mid); }
.history-search input { width:100%; min-width:0; border:0; padding:11px 0; background:transparent; color:var(--ink); font-size:12px; }
.history-search:focus-within { outline:2px solid var(--ink); outline-offset:2px; }
.history-search input:focus-visible { outline:none; }
.history-filters select { max-width:240px; height:42px; padding:0 30px 0 12px; border:1px solid var(--line-strong); border-radius:7px; background:var(--surface); color:var(--ink); font-size:12px; }
.history-workspace { display:grid; grid-template-columns:minmax(240px,310px) minmax(0,1fr); border:1px solid var(--line); border-radius:11px; overflow:hidden; background:var(--surface); min-height:560px; height:min(790px,calc(100dvh - 290px)); }
.history-list-panel { display:flex; flex-direction:column; min-width:0; min-height:0; border-right:1px solid var(--line); background:var(--surface-alt); }
.history-list-heading { display:flex; align-items:center; justify-content:space-between; padding:19px 19px 16px; }
.history-list-heading h2 { margin:0; font-size:13px; letter-spacing:0; }
.history-search-summary { margin:0; padding:0 19px 14px; color:var(--mid); font-size:11px; overflow-wrap:anywhere; }
.history-list { overflow-y:auto; min-height:0; overscroll-behavior:contain; padding:0 9px 9px; }
.history-card { display:block; margin:0 0 5px; padding:14px 12px; border:1px solid transparent; border-radius:7px; text-decoration:none; }
.history-card:hover { background:var(--hover); }
.history-card[aria-current=page] { background:var(--surface); border-color:var(--line-strong); box-shadow:var(--shadow); }
.history-card__top { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.history-card__channel { display:flex; align-items:center; gap:7px; min-width:0; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; font-size:12px; font-weight:600; }
.history-card time { font-size:9px; white-space:nowrap; color:var(--faint); }
.history-card__server { display:block; margin:5px 0 8px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; font-size:10px; color:var(--mid); }
.history-card__preview { display:block; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; font-size:11px; color:var(--deep); }
.history-card__count { display:block; margin-top:8px; font-size:9px; color:var(--faint); }
.history-pagination { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:14px 15px; border-top:1px solid var(--line); margin-top:auto; font-size:10px; color:var(--mid); }
.history-pagination .text-link { font-size:10px; }
.history-reader { display:flex; flex-direction:column; min-width:0; min-height:0; scroll-margin-top:90px; }
.history-reader__heading { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:22px 26px; border-bottom:1px solid var(--line); }
.history-reader__heading>div { min-width:0; }
.history-reader__heading h2 { margin:0 0 5px; font-size:17px; overflow-wrap:anywhere; }
.history-reader__heading .eyebrow { font-size:9px; margin-bottom:5px; overflow-wrap:anywhere; }
.history-reader__heading p:last-child { margin:0; font-size:10px; color:var(--mid); }
.history-reader__heading .btn { font-size:10px; min-height:33px; padding:7px 10px; flex-shrink:0; }
.history-messages { overflow-y:auto; min-height:0; flex:1; padding:10px 26px 22px; overscroll-behavior:contain; }
.history-message { display:flex; align-items:flex-start; gap:12px; padding:21px 0; }
.history-message+.history-message { border-top:1px solid var(--line); }
.history-message__avatar { display:grid; place-items:center; width:30px; height:30px; flex-shrink:0; border-radius:8px; background:var(--surface-alt); border:1px solid var(--line); color:var(--mid); overflow:hidden; }
.history-message__avatar img { width:30px; height:30px; object-fit:cover; }
.history-message__content { min-width:0; flex:1; }
.history-message__content>header { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin:3px 0 11px; }
.history-message__content strong { font-size:12px; }
.history-message__content time { font-size:9px; color:var(--faint); }
.history-message__body { color:var(--deep); font-size:12px; line-height:1.85; overflow-wrap:anywhere; }
.history-message__body p { margin:0 0 12px; }
.history-message__body>:last-child { margin-bottom:0; }
.history-message__body h1,.history-message__body h2,.history-message__body h3,.history-message__body h4 { margin:18px 0 8px; font:600 14px/1.5 var(--font); letter-spacing:0; }
.history-message__body a { color:var(--ink); text-decoration:underline; }
.history-message__body pre { max-width:100%; overflow:auto; padding:14px; border:1px solid var(--line); border-radius:7px; background:var(--surface-alt); line-height:1.6; }
.history-message__body code { font-family:var(--mono); font-size:11px; }
.history-message__body :not(pre)>code { background:var(--hover); padding:2px 4px; border-radius:4px; }
.history-message__body table { display:block; max-width:100%; overflow-x:auto; border-collapse:collapse; margin:12px 0; font-size:11px; }
.history-message__body th,.history-message__body td { text-align:left; border:1px solid var(--line); padding:7px 10px; min-width:85px; }
.history-message__body th { background:var(--surface-alt); }
.history-message__body blockquote { margin:12px 0; padding-left:14px; border-left:3px solid var(--line-strong); color:var(--mid); }
.history-older { text-align:center; padding:12px 0 20px; }
.history-older .btn { min-height:32px; font-size:10px; }
.history-reader__foot { padding:13px 26px; border-top:1px solid var(--line); color:var(--faint); font-size:10px; }
.history-memory-link { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; padding:14px 18px; margin-bottom:20px; border:1px solid var(--line); border-radius:10px; background:var(--surface-alt); font-size:12px; color:var(--mid); }
.history-memory-link>span { display:flex; align-items:center; gap:9px; }
.history-manage { flex-shrink:0; padding:12px 26px; border-bottom:1px solid var(--line); font-size:11px; max-height:45%; overflow:auto; }
.history-manage summary,.memory-add summary,.memory-danger summary { cursor:pointer; font-size:12px; font-weight:550; }
.history-manage form { margin:14px 0; }
.history-manage p,.memory-danger p { font-size:12px; color:var(--mid); line-height:1.8; }
.history-rename { display:flex; align-items:center; flex-wrap:wrap; gap:10px; }
.history-rename input:not([type=hidden]) { flex:1; min-width:130px; }
.memory-notice { margin:0 0 20px; padding:14px 18px; border:1px solid var(--line-strong); border-radius:9px; font-size:12px; background:var(--surface-alt); }
.memory-settings { display:grid; grid-template-columns:1fr 1fr; gap:45px; border:1px solid var(--line); border-radius:14px; padding:28px; margin:25px 0 36px; background:var(--surface); }
.memory-settings h2,.memory-section-heading h2 { font:600 19px var(--display); margin:0 0 12px; letter-spacing:-.4px; }
.memory-settings p { color:var(--mid); font-size:12px; line-height:1.9; }
.memory-settings .memory-hint { font-size:11px; color:var(--faint); }
.memory-check { display:flex; align-items:flex-start; gap:10px; margin:0 0 17px; font-size:12px; color:var(--deep); line-height:1.65; }
.memory-check input[type=checkbox] { width:16px; height:16px; flex:0 0 16px; margin-top:3px; accent-color:var(--ink); }
.memory-check strong,.memory-check small { display:block; }
.memory-check strong { font-weight:550; }
.memory-check small { font-size:11px; color:var(--mid); margin-top:3px; }
.memory-section-heading { display:flex; justify-content:space-between; align-items:center; gap:15px; margin-bottom:20px; }
.memory-section-heading .eyebrow { margin-bottom:7px; }
.memory-section-heading h2 { display:flex; align-items:center; gap:12px; margin:0; }
.memory-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.memory-card { min-width:0; padding:20px; background:var(--surface); border:1px solid var(--line); border-radius:12px; }
.memory-card>header { display:flex; justify-content:space-between; align-items:center; gap:8px; margin-bottom:16px; }
.memory-origin,.memory-card__save>span,.memory-card>footer { font-size:10px; color:var(--faint); }
.memory-card textarea { width:100%; min-height:95px; resize:vertical; font:500 13px/1.8 var(--font); border-color:transparent; background:var(--surface); padding:4px 0; color:var(--ink); }
.memory-card textarea:focus { border-color:var(--line-strong); padding-left:8px; }
.memory-card__save,.memory-card>footer { display:flex; justify-content:space-between; align-items:center; gap:10px; }
.memory-card__save { margin:10px 0 15px; }
.memory-card button { font-size:11px; min-height:30px; padding:6px 10px; }
.memory-card>footer { border-top:1px solid var(--line); padding-top:13px; }
.memory-forget { border:0; background:transparent; color:var(--mid); text-decoration:underline; }
.memory-forget:hover { color:var(--ink); background:var(--hover); }
.memory-empty { grid-column:1/-1; border:1px dashed var(--line-strong); border-radius:12px; padding:45px; text-align:center; color:var(--mid); }
.memory-empty h2 { color:var(--ink); font-size:18px; }
.memory-empty p { font-size:12px; line-height:1.9; max-width:54ch; margin:auto; }
.memory-add,.memory-danger { margin-top:25px; padding:20px 24px; border:1px solid var(--line); border-radius:11px; background:var(--surface); }
.memory-add[open]>summary,.memory-danger[open]>summary { margin-bottom:18px; }
.memory-add label { display:flex; flex-direction:column; gap:8px; font-size:12px; margin-bottom:18px; }
.memory-add small { color:var(--faint); font-size:10px; line-height:1.7; }
.memory-add__fields { display:grid; grid-template-columns:2fr 1fr; gap:20px; }
.btn--danger { border:1px solid var(--line-strong); color:var(--ink); background:var(--surface-alt); }
.btn--danger:hover { background:var(--ink); color:var(--surface); }
@media(max-width:1200px) { .memory-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:650px) { .memory-settings,.memory-grid,.memory-add__fields { grid-template-columns:1fr; gap:18px; }.memory-settings,.memory-add,.memory-danger { padding:20px; }.memory-section-heading { flex-wrap:wrap; }.history-manage { padding:12px 18px; max-height:55%; } }
.history-empty { color:var(--mid); text-align:center; padding:36px 18px; }
.history-empty>svg { margin-bottom:15px; }
.history-empty strong { display:block; margin-bottom:8px; font-size:12px; color:var(--ink); }
.history-empty p { margin:0 auto; max-width:34ch; font-size:11px; line-height:1.8; }
.history-empty--reader { margin:auto; padding:60px 25px; }
.history-empty--reader h2 { margin:0 0 10px; font:600 22px var(--display); color:var(--ink); letter-spacing:-.5px; }
@media(max-width:1150px) {
  .history-workspace { grid-template-columns:260px minmax(0,1fr); }
  .history-reader__heading,.history-messages { padding-left:18px; padding-right:18px; }
  .history-reader__heading { flex-wrap:wrap; gap:12px; }
}
@media(max-width:700px) {
  .history-workspace { display:flex; flex-direction:column; height:auto; min-height:0; }
  .history-list-panel { max-height:270px; border-right:0; border-bottom:1px solid var(--line); }
  .history-list-heading { padding:15px 18px 10px; }
  .history-card { padding:11px 10px; }
  .history-reader { height:72dvh; min-height:430px; }
  .history-reader__heading { padding:18px; }
  .history-messages { padding:0 16px 16px; }
  .history-message { gap:10px; padding:18px 0; }
  .history-reader__foot { padding:12px 18px; font-size:9px; }
  .history-search { flex-basis:100%; }
  .history-filters>div:has(select) { flex:1; min-width:0; }
  .history-filters select { width:100%; max-width:none; }
}
