/* ==========================================================================
   LR2oraja.NET IR — 拟态玻璃 / 音轨 HUD 视觉系统
   --------------------------------------------------------------------------
   设计语言取自游戏内 7key 游玩区域：垂直音轨、判定线、冷蓝激光、金属边框、
   等宽 HUD 数字。全站采用「玻璃 + 暗色金属」的拟态材质。

   结构:
     01 tokens / reset
     02 氛围层
     03 导航 / 布局 / 排版
     04 玻璃卡片
     05 按钮 / 表单 / 选择控件
     06 表格 / 徽章 / 工具条
     07 首页
     08 玩家页 · 谱面页
     09 难度表 / 段位 / 统计 / 下载 / 登录
     10 弹窗 / 页脚
     11 响应式 / 可访问性
   ========================================================================== */

/* --- 01 tokens / reset ------------------------------------------------ */

:root {
    --bg: #04070d;
    --bg-deep: #02040a;
    --bg-2: #070d17;
    --panel: rgba(10, 18, 31, 0.55);
    --panel-2: rgba(8, 14, 25, 0.72);
    --panel-solid: #0a111d;
    --glass-stroke: rgba(133, 186, 255, 0.15);
    --glass-stroke-hi: rgba(126, 214, 255, 0.42);
    --text: #eaf2fc;
    --text-dim: #a7b7cd;
    --text-faint: #7d90a9;
    --accent: #67daff;
    --accent-2: #4f94ff;
    --accent-soft: rgba(103, 218, 255, 0.12);
    --gold: #ffd35c;
    --green: #57e08f;
    --blue: #58bcff;
    --red: #ff6579;
    --orange: #ffab6b;
    --danger: #ff5f74;
    --radius: 18px;
    --radius-sm: 12px;
    --radius-xs: 9px;
    --mono: "Cascadia Mono", "JetBrains Mono", Consolas, "SFMono-Regular", ui-monospace, monospace;
    --sans: "Segoe UI Variable Display", "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei",
        "Yu Gothic UI", "Hiragino Sans", "Noto Sans SC", "Noto Sans CJK SC", system-ui, sans-serif;
    --nav-h: 76px;
    color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
    color-scheme: dark;
    scroll-padding-top: 150px;
    scrollbar-color: rgba(103, 218, 255, 0.28) transparent;
    scrollbar-width: thin;
    -webkit-text-size-adjust: 100%;
}

[hidden] { display: none !important; }
[aria-hidden="true"] { pointer-events: none; }

body {
    font-family: var(--sans);
    font-size: 15px;
    background:
        radial-gradient(1300px 760px at 78% -12%, rgba(66, 160, 255, 0.16), transparent 64%),
        radial-gradient(1000px 680px at 4% 18%, rgba(103, 218, 255, 0.07), transparent 62%),
        radial-gradient(900px 900px at 50% 118%, rgba(79, 148, 255, 0.08), transparent 70%),
        linear-gradient(180deg, #050910 0%, #04070d 42%, #03060b 100%);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.62;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body > main,
body > .wrap,
body > footer { position: relative; z-index: 1; }

a {
    color: var(--accent);
    text-decoration: none;
    text-underline-offset: 0.22em;
}
a:hover { color: #a7edff; text-decoration: none; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, [tabindex]:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 6px;
}

button, input, select, textarea { font-family: inherit; }
img, svg { max-width: 100%; }
::selection { background: rgba(103, 218, 255, 0.3); color: #fff; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(103, 218, 255, 0.32), rgba(79, 148, 255, 0.22));
    border: 2px solid transparent;
    background-clip: padding-box;
    border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(126, 224, 255, 0.5); background-clip: padding-box; }

.skip-link {
    position: fixed;
    top: 12px;
    left: 16px;
    z-index: 200;
    padding: 10px 18px;
    border-radius: 10px;
    background: var(--accent);
    color: #04121e;
    font-weight: 700;
    transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }

/* --- 02 氛围层 -------------------------------------------------------- */

.ir-atmos {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.ir-atmos::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(120% 90% at 50% 0%, transparent 40%, rgba(2, 4, 10, 0.45) 100%),
        linear-gradient(180deg, rgba(3, 6, 12, 0.1), rgba(2, 4, 9, 0.55) 70%, rgba(2, 4, 9, 0.8));
    pointer-events: none;
}

.ir-grain {
    position: absolute;
    inset: 0;
    opacity: 0.16;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/></svg>");
}

/* 视口边缘的判定线光晕 */
.ir-atmos::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 101, 121, 0.5) 18%, rgba(255, 101, 121, 0.7) 50%, rgba(255, 101, 121, 0.5) 82%, transparent);
    box-shadow: 0 0 20px rgba(255, 101, 121, 0.24), 0 0 60px rgba(255, 101, 121, 0.08);
    opacity: 0.35;
}

/* --- 03 导航 / 布局 / 排版 -------------------------------------------- */

.nav {
    position: sticky;
    top: 0;
    z-index: 60;
    padding: 12px 0 6px;
    background: linear-gradient(180deg, rgba(4, 7, 13, 0.9) 0%, rgba(4, 7, 13, 0.55) 62%, transparent 100%);
}

.nav-inner {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 9px 16px 9px 14px;
    min-height: 58px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 14px;
    border: 1px solid rgba(133, 186, 255, 0.13);
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0) 46%),
        rgba(6, 11, 20, 0.7);
    box-shadow:
        0 18px 40px -28px rgba(0, 0, 0, 0.9),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(28px) saturate(140%);
    -webkit-backdrop-filter: blur(28px) saturate(140%);
}

.nav.is-scrolled { padding-top: 7px; }
.nav.is-scrolled .nav-inner {
    min-height: 52px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0) 46%),
        rgba(5, 9, 17, 0.86);
    border-color: rgba(133, 186, 255, 0.18);
    box-shadow:
        0 22px 50px -30px rgba(0, 0, 0, 0.95),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    pointer-events: none;
    opacity: 0.9;
}
.nav-progress span {
    display: block;
    height: 100%;
    width: 100%;
    transform: scaleX(var(--scroll-progress, 0));
    transform-origin: 0 50%;
    background: linear-gradient(90deg, rgba(79, 148, 255, 0.4), var(--accent) 46%, var(--gold));
    box-shadow: 0 0 14px rgba(103, 218, 255, 0.6);
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    color: var(--text);
    font-weight: 750;
    font-size: 15.5px;
    letter-spacing: 0.02em;
    white-space: nowrap;
    border-radius: 10px;
}
.brand:hover { color: var(--text); }
.brand .logo {
    position: relative;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background:
        linear-gradient(150deg, rgba(160, 238, 255, 0.95), rgba(70, 145, 255, 0.85) 58%, rgba(40, 78, 170, 0.9));
    color: #03101c;
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: -0.04em;
    box-shadow:
        0 6px 18px -6px rgba(80, 180, 255, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.65),
        inset 0 -8px 14px rgba(6, 38, 82, 0.35);
    overflow: hidden;
}
.brand em { font-style: normal; color: var(--accent); }
.brand-text { display: inline-flex; align-items: baseline; }

.nav-links {
    display: flex;
    gap: 2px;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 2px;
    border-radius: 12px;
}
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a {
    position: relative;
    color: var(--text-dim);
    padding: 7px 11px;
    border-radius: 9px;
    font-size: 13.5px;
    font-weight: 500;
    white-space: nowrap;
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.045); }
.nav-links a.active {
    color: #d9f7ff;
    background: linear-gradient(180deg, rgba(103, 218, 255, 0.16), rgba(103, 218, 255, 0.05));
    box-shadow: inset 0 0 0 1px rgba(126, 214, 255, 0.22), 0 4px 18px -12px rgba(103, 218, 255, 0.9);
}
.nav-links a.active::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 2px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    box-shadow: 0 0 8px var(--accent);
}

.nav-auth {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13.5px;
    white-space: nowrap;
}
.nav-auth .who { color: var(--text-dim); }
.nav-auth .who b { color: var(--gold); font-weight: 650; }
.nav-auth .who a { display: inline-block; max-width: 130px; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
.nav-auth .auth-label { display: none; }
.nav-auth .btn.small { padding: 6px 12px; min-height: 32px; }

.lang-mount { display: flex; align-items: center; }
.lang-select {
    padding: 5px 9px;
    border-radius: 9px;
    border: 1px solid rgba(133, 186, 255, 0.14);
    background: rgba(255, 255, 255, 0.035);
    color: var(--text-dim);
    font-size: 12.5px;
    outline: none;
    cursor: pointer;
}
.lang-select:hover { color: var(--text); border-color: rgba(126, 214, 255, 0.4); background: rgba(255, 255, 255, 0.06); }
.lang-select option { background: var(--panel-solid); color: var(--text); }

.wrap {
    width: min(1240px, calc(100% - 48px));
    margin: 0 auto;
    padding: 44px 0 96px;
    flex: 1;
    min-width: 0;
}

/* 页面级冷光底纹, 让玻璃有可折射的内容 */
.wrap::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 20px 0 auto;
    height: 560px;
    background:
        radial-gradient(60% 80% at 20% 0%, rgba(79, 148, 255, 0.07), transparent 70%),
        radial-gradient(46% 70% at 82% 8%, rgba(103, 218, 255, 0.06), transparent 72%);
    pointer-events: none;
}

.sub {
    color: var(--text-dim);
    margin-top: 12px;
    max-width: 760px;
    line-height: 1.85;
    font-size: 14.5px;
}

.section-title {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--text);
    margin: 42px 0 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.section-title::before {
    content: "";
    width: 3px;
    height: 15px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--accent), rgba(79, 148, 255, 0.2));
    box-shadow: 0 0 12px rgba(103, 218, 255, 0.5);
}
.section-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(133, 186, 255, 0.22), rgba(133, 186, 255, 0.02));
}

.eyebrow {
    color: var(--accent);
    font: 600 10.5px/1.6 var(--mono);
    letter-spacing: 0.24em;
    text-transform: uppercase;
    opacity: 0.9;
}

.ir-muted { color: var(--text-faint); }

/* --- 04 玻璃卡片 -------------------------------- */

.card {
    position: relative;
    min-width: 0;
    overflow-wrap: anywhere;
    border: 1px solid rgba(133, 186, 255, 0.17);
    border-radius: var(--radius);
    padding: 24px;
    background:
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/></svg>") repeat,
        linear-gradient(158deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.014) 32%, rgba(255, 255, 255, 0) 62%),
        radial-gradient(130% 120% at 0% 0%, rgba(58, 143, 255, 0.09), transparent 48%),
        rgba(9, 16, 28, 0.7);
    box-shadow:
        0 30px 70px -46px rgba(0, 0, 0, 0.95),
        0 2px 10px -6px rgba(0, 0, 0, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.055);
    backdrop-filter: blur(28px) saturate(135%);
    -webkit-backdrop-filter: blur(28px) saturate(135%);
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(
        155deg,
        rgba(168, 232, 255, 0.42),
        rgba(120, 170, 255, 0.09) 30%,
        rgba(255, 255, 255, 0.02) 58%,
        rgba(120, 200, 255, 0.16) 100%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    pointer-events: none;
    z-index: 2;
    opacity: 0.75;
}

.card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 8%;
    right: 8%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(170, 236, 255, 0.5), transparent);
    opacity: 0.55;
    pointer-events: none;
}

.card:hover {
    border-color: rgba(133, 186, 255, 0.2);
    box-shadow:
        0 36px 80px -44px rgba(0, 0, 0, 1),
        0 0 0 1px rgba(103, 218, 255, 0.06),
        0 18px 54px -34px rgba(64, 156, 255, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.card:hover::before { opacity: 1; }

.card h3 {
    font-size: 15.5px;
    font-weight: 700;
    letter-spacing: 0.01em;
    margin-bottom: 10px;
}
.card p { color: var(--text-dim); font-size: 14px; }

.grid { display: grid; gap: 16px; }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* 卡片右上角的 HUD 编号 */
.card-hud {
    position: absolute;
    top: 14px;
    right: 16px;
    z-index: 2;
    font: 600 9.5px/1 var(--mono);
    letter-spacing: 0.2em;
    color: rgba(154, 196, 235, 0.4);
    pointer-events: none;
}

/* 卡片内容位于装饰层上方 */
.card > *:not(.card-hud) { position: relative; z-index: 1; }
.site-stat > *, .explore-link > *, .connection-section > * { position: relative; z-index: 1; }
.site-stat::before { z-index: 2; }

/* --- 05 按钮 / 表单 --------------------------------------------------- */

.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 17px;
    min-height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(133, 186, 255, 0.18);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0) 55%),
        rgba(12, 21, 36, 0.6);
    color: var(--text);
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    overflow: hidden;
    isolation: isolate;
    box-shadow:
        0 8px 22px -16px rgba(0, 0, 0, 0.9),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.btn:hover {
    border-color: rgba(126, 214, 255, 0.45);
    background-color: rgba(20, 36, 60, 0.72);
    color: #fff;
    box-shadow:
        0 14px 32px -18px rgba(0, 0, 0, 0.95),
        0 0 24px -12px rgba(103, 218, 255, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.btn.primary {
    border-color: rgba(176, 240, 255, 0.55);
    background:
        linear-gradient(168deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) 42%),
        linear-gradient(135deg, #8fe8ff 0%, #5fc4ff 42%, #4f8dff 100%);
    color: #031321;
    font-weight: 750;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
    box-shadow:
        0 12px 30px -14px rgba(80, 180, 255, 0.65),
        inset 0 1px 0 rgba(255, 255, 255, 0.65),
        inset 0 -10px 20px rgba(21, 74, 160, 0.28);
}
.btn.primary:hover {
    color: #011019;
    background-color: transparent;
    filter: brightness(1.06);
    box-shadow:
        0 18px 40px -16px rgba(80, 180, 255, 0.8),
        0 0 34px -10px rgba(120, 220, 255, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.btn.danger { border-color: rgba(255, 95, 116, 0.45); color: #ff9aa8; }
.btn.danger:hover {
    background-color: rgba(90, 20, 34, 0.55);
    border-color: rgba(255, 95, 116, 0.75);
    color: #ffd4da;
    box-shadow: 0 0 26px -12px rgba(255, 95, 116, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.btn.small { padding: 5px 11px; font-size: 12.5px; min-height: 31px; border-radius: 8px; }
.btn.mini { padding: 3px 9px; font-size: 11.5px; min-height: 26px; border-radius: 7px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.form-card {
    position: relative;
    max-width: 470px;
    margin: 26px auto 0;
    padding: 36px 34px 32px;
    overflow: hidden;
}
.form-card::before { opacity: 0.9; }
.form-card h2 {
    font-size: clamp(25px, 3vw, 30px);
    font-weight: 780;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}
.form-card .hint { color: var(--text-dim); font-size: 13.5px; line-height: 1.8; margin-bottom: 28px; }
.field { margin-bottom: 16px; }
.field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dim);
    letter-spacing: 0.04em;
    margin-bottom: 7px;
}
.field input,
.field textarea,
.toolbar input:is([type="search"], [type="text"]),
.table-select,
.edit-field textarea {
    width: 100%;
    padding: 11px 13px;
    border-radius: 10px;
    border: 1px solid rgba(133, 186, 255, 0.14);
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.12)),
        rgba(6, 11, 20, 0.65);
    color: var(--text);
    font-size: 15px;
    outline: none;
    box-shadow:
        inset 0 2px 8px rgba(0, 0, 0, 0.45),
        inset 0 -1px 0 rgba(255, 255, 255, 0.03);
}
.field input::placeholder,
.toolbar input::placeholder,
.edit-field textarea::placeholder { color: #61748d; }
.field input:hover,
.toolbar input:hover,
.table-select:hover { border-color: rgba(133, 186, 255, 0.24); }
.field input:focus,
.toolbar input:focus,
.table-select:focus,
.edit-field textarea:focus {
    border-color: rgba(126, 214, 255, 0.62);
    background-color: rgba(8, 16, 29, 0.8);
    box-shadow:
        0 0 0 3px rgba(103, 218, 255, 0.1),
        0 0 26px -10px rgba(103, 218, 255, 0.45),
        inset 0 2px 8px rgba(0, 0, 0, 0.4);
}
.form-msg { margin-top: 14px; font-size: 13.5px; min-height: 20px; }
.form-msg.ok { color: var(--green); }
.form-msg.err { color: var(--danger); }
.form-foot { margin-top: 18px; font-size: 12.5px; color: var(--text-dim); }

/* 登录/注册页的装饰 HUD 行 */
.auth-hud {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font: 600 9.5px/1 var(--mono);
    letter-spacing: 0.22em;
    color: rgba(154, 196, 235, 0.55);
}
.auth-hud::before {
    content: "";
    width: 22px;
    height: 1px;
    background: linear-gradient(90deg, var(--accent), transparent);
}
.auth-hud i {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(133, 186, 255, 0.2), transparent);
}

.edit-field { margin-bottom: 17px; }
.edit-field > label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 7px;
}
.edit-count { color: var(--text-faint); font-weight: 400; font-family: var(--mono); }
.edit-hint { color: var(--text-faint); font-size: 12px; margin-bottom: 9px; }
.edit-field textarea { resize: vertical; min-height: 88px; line-height: 1.65; font-size: 14px; }

/* --- 06 表格 / 徽章 / 工具条 ----------------------------------------- */

.table-wrap {
    position: relative;
    border: 1px solid rgba(133, 186, 255, 0.12);
    border-radius: 16px;
    overflow: auto;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 18%),
        rgba(8, 14, 25, 0.68);
    box-shadow:
        0 34px 80px -52px rgba(0, 0, 0, 1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(22px) saturate(120%);
    -webkit-backdrop-filter: blur(22px) saturate(120%);
    scrollbar-width: thin;
}
.table-wrap::before {
    content: "";
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(170, 236, 255, 0.45), transparent);
    z-index: 3;
    pointer-events: none;
}
.table-wrap:focus-visible { outline-offset: 2px; }

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13.5px;
}

thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    text-align: left;
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #8aa0ba;
    padding: 15px 14px 13px;
    border-bottom: 1px solid rgba(133, 186, 255, 0.16);
    background:
        linear-gradient(180deg, rgba(18, 30, 49, 0.98), rgba(10, 18, 31, 0.94));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    white-space: nowrap;
}
thead th::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(103, 218, 255, 0.3), transparent);
}

tbody td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(133, 186, 255, 0.055);
    white-space: normal;
    overflow-wrap: anywhere;
    vertical-align: middle;
    position: relative;
}
tbody tr:last-child td { border-bottom: none; }

tbody tr:hover td { background-color: rgba(103, 218, 255, 0.045); }
tbody tr:hover td:first-child { box-shadow: inset 2px 0 0 rgba(103, 218, 255, 0.7); }
tbody tr.self td { background-color: rgba(87, 224, 143, 0.1); }
tbody tr.self td:first-child { box-shadow: inset 2px 0 0 var(--green); }

td .title-cell { min-width: 180px; }
td .title-cell small { color: var(--text-faint); margin-left: 7px; font-size: 11.5px; }

td.num {
    font-family: var(--mono);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    font-size: 12.5px;
    color: #c3d2e5;
}
td.tag {
    max-width: 160px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-dim);
    font-size: 12.5px;
}
td.dan-cell {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--gold);
    font-family: var(--mono);
    font-size: 12px;
}
td.rating-cell { color: var(--accent); font-weight: 650; }
tbody td.empty, tbody td.loading {
    text-align: center;
    color: var(--text-faint);
    padding: 52px 20px;
    font-size: 13.5px;
}

td .btn.mini { margin-right: 4px; }

/* 排行榜: 玩家名保持单行, 不因列宽挤压而逐字换行 */
.ranking-table th:nth-child(2),
.ranking-table td:nth-child(2) { min-width: 132px; }
.ranking-table td:nth-child(2) { white-space: nowrap; }

/* 表格外层的“数据条”标题 (JS 注入) */
.table-headline {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 30px 0 12px;
    font: 600 10px/1.4 var(--mono);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-faint);
}
.table-headline::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}
.table-headline::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(133, 186, 255, 0.16), transparent);
}
.table-headline b { color: var(--accent); font-weight: 600; }

.lamp-text { font-weight: 700; font-family: var(--mono); white-space: nowrap; font-size: 12px; letter-spacing: 0.02em; }
.lamp {
    display: inline-block;
    min-width: 34px;
    text-align: center;
    padding: 2px 9px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 700;
    font-family: var(--mono);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-dim);
}
.lamp.f { background: rgba(255, 107, 116, 0.18); color: #ff8a91; }
.lamp.ae, .lamp.le { background: rgba(140, 224, 140, 0.16); color: #a5eda5; }
.lamp.e { background: rgba(73, 194, 36, 0.18); color: #7ee055; }
.lamp.n { background: rgba(79, 188, 247, 0.18); color: #7fd3ff; }
.lamp.h { background: rgba(255, 107, 116, 0.2); color: #ff8a91; }
.lamp.xh { background: rgba(255, 173, 112, 0.2); color: #ffc396; }
.lamp.fc { background: rgba(255, 210, 81, 0.2); color: var(--gold); }
.lamp.pf { background: rgba(255, 230, 128, 0.26); color: #fff0a8; }

.rank-badge {
    font-family: var(--mono);
    font-weight: 700;
    color: var(--text-faint);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}
.rank-badge.top { color: var(--gold); text-shadow: 0 0 14px rgba(255, 211, 92, 0.4); }
tbody tr:nth-child(1) .rank-badge { color: #ffe08a; }
tbody tr:nth-child(2) .rank-badge { color: #d7e6ff; }
tbody tr:nth-child(3) .rank-badge { color: #ffc59c; }

.grade {
    display: inline-block;
    min-width: 42px;
    text-align: center;
    padding: 2px 8px;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 800;
    font-family: var(--mono);
    background: rgba(255, 255, 255, 0.055);
    color: var(--text-dim);
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.grade.d { background: rgba(255, 107, 116, 0.12); color: #ff8a91; border-color: rgba(255, 107, 116, 0.2); }
.grade.c { background: rgba(255, 173, 112, 0.12); color: #ffc396; border-color: rgba(255, 173, 112, 0.18); }
.grade.b { background: rgba(79, 188, 247, 0.13); color: #7fd3ff; border-color: rgba(79, 188, 247, 0.2); }
.grade.a { background: rgba(73, 194, 36, 0.13); color: #7ee055; border-color: rgba(73, 194, 36, 0.2); }
.grade.aaa { background: rgba(255, 210, 81, 0.14); color: var(--gold); border-color: rgba(255, 210, 81, 0.28); box-shadow: 0 0 18px -8px rgba(255, 210, 81, 0.6); }

.diff-pos { color: var(--green); font-family: var(--mono); }
.diff-neg { color: var(--red); font-family: var(--mono); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 13px;
    border-radius: 999px;
    border: 1px solid rgba(133, 186, 255, 0.14);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 60%),
        rgba(10, 18, 31, 0.55);
    color: var(--text-dim);
    font-size: 12px;
    cursor: pointer;
    font-family: var(--mono);
    white-space: nowrap;
}
.chip:hover { border-color: rgba(126, 214, 255, 0.45); color: var(--text); text-decoration: none; }
.chip.active {
    background: linear-gradient(180deg, rgba(103, 218, 255, 0.18), rgba(103, 218, 255, 0.05));
    border-color: rgba(126, 214, 255, 0.55);
    color: #c9f6ff;
    box-shadow: 0 0 24px -12px rgba(103, 218, 255, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.chip .cnt { color: var(--text-faint); margin-left: 4px; }
.chip.active .cnt { color: rgba(201, 246, 255, 0.6); }

.toolbar {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.toolbar input:is([type="search"], [type="text"]) {
    flex: 1;
    max-width: 440px;
    min-width: min(100%, 240px);
    font-size: 13px;
    padding: 10px 14px 10px 38px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%237d90a9' stroke-width='1.6' stroke-linecap='round'><circle cx='7' cy='7' r='4.6'/><path d='M10.6 10.6 14 14'/></svg>");
    background-repeat: no-repeat;
    background-position: 13px 50%;
}
.toolbar input:is([type="search"], [type="text"]):focus { border-color: rgba(126, 214, 255, 0.55); }
.toolbar .count { color: var(--text-faint); font-size: 12px; font-family: var(--mono); letter-spacing: 0.02em; }

.table-select {
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 12.5px;
    outline: none;
    max-width: 360px;
    cursor: pointer;
    color: var(--text-dim);
}
.table-select option { background: var(--panel-solid); color: var(--text); }

.pagination {
    display: flex;
    gap: 9px;
    align-items: center;
    justify-content: center;
    margin-top: 22px;
    font-size: 13px;
    color: var(--text-dim);
}
.pagination .info { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; }

.empty, .loading {
    text-align: center;
    color: var(--text-faint);
    padding: 50px 20px;
    font-size: 13px;
}

.notice {
    position: relative;
    border: 1px solid rgba(255, 211, 92, 0.28);
    background:
        linear-gradient(180deg, rgba(255, 211, 92, 0.07), transparent),
        rgba(18, 18, 14, 0.45);
    color: #ffe6ad;
    border-radius: 12px;
    padding: 12px 16px 12px 40px;
    font-size: 12.5px;
    margin-bottom: 18px;
    line-height: 1.7;
}
.notice::before {
    content: "";
    position: absolute;
    left: 17px;
    top: 18px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 12px rgba(255, 211, 92, 0.7);
}

.state-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 700;
    font-family: var(--mono);
    letter-spacing: 0.04em;
}
.state-badge.on { background: rgba(87, 224, 143, 0.12); color: #7ff0aa; border: 1px solid rgba(87, 224, 143, 0.24); }
.state-badge.off { background: rgba(255, 255, 255, 0.05); color: var(--text-faint); border: 1px solid rgba(255, 255, 255, 0.07); }

/* --- 07 首页 ---------------------------------------------------------- */

.home { padding-top: 6px; }

.home-hero {
    display: grid;
    grid-template-columns: 1.16fr 0.84fr;
    gap: 64px;
    align-items: center;
    padding: 30px 0 64px;
    position: relative;
}

.hero-copy { min-width: 0; position: relative; }
.hero-copy .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.hero-copy .eyebrow::before {
    content: "";
    width: 30px;
    height: 1px;
    background: linear-gradient(90deg, var(--accent), transparent);
    box-shadow: 0 0 10px rgba(103, 218, 255, 0.6);
}

.hero-copy h1 {
    font-size: clamp(38px, 5.2vw, 70px);
    font-weight: 800;
    line-height: 1.14;
    letter-spacing: -0.035em;
    margin: 26px 0 24px;
    color: #f2f8ff;
    text-wrap: balance;
}
.hero-copy h1 span { display: block; }
.hero-copy h1 .accent {
    background: linear-gradient(96deg, #9fefff 0%, #5fc8ff 42%, #4d8dff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 34px rgba(95, 200, 255, 0.28));
}

.accent { color: var(--accent); }

.hero-description {
    max-width: 540px;
    color: var(--text-dim);
    font-size: 15.5px;
    line-height: 2;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-actions .btn { padding: 12px 22px; min-height: 46px; gap: 18px; font-size: 14px; }
.hero-actions .btn[href="download.html"] { padding-right: 20px; }

.hero-guide {
    display: inline-flex;
    gap: 12px;
    align-items: center;
    color: var(--text-faint);
    font-size: 12.5px;
    margin-top: 24px;
    padding: 6px 2px;
    border-bottom: 1px solid transparent;
}
.hero-guide:hover { color: var(--accent); border-color: rgba(103, 218, 255, 0.3); }

.hero-visual {
    position: relative;
    min-width: 0;
    padding: 18px 18px 16px;
    border-radius: 22px;
    border: 1px solid rgba(133, 186, 255, 0.16);
    background:
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.045'/></svg>") repeat,
        linear-gradient(160deg, rgba(255, 255, 255, 0.07), transparent 30%),
        radial-gradient(120% 100% at 70% 18%, rgba(61, 151, 255, 0.16), transparent 58%),
        radial-gradient(90% 90% at 30% 100%, rgba(103, 218, 255, 0.08), transparent 62%),
        rgba(7, 13, 24, 0.72);
    box-shadow:
        0 50px 100px -56px rgba(0, 0, 0, 1),
        0 0 0 1px rgba(255, 255, 255, 0.02) inset,
        0 0 90px -30px rgba(64, 156, 255, 0.35);
    backdrop-filter: blur(28px) saturate(140%);
    -webkit-backdrop-filter: blur(28px) saturate(140%);
    overflow: hidden;
    isolation: isolate;
}
.hero-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(150deg, rgba(172, 236, 255, 0.52), rgba(120, 170, 255, 0.08) 34%, rgba(255, 255, 255, 0.02) 62%, rgba(120, 200, 255, 0.24));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    pointer-events: none;
    z-index: 2;
}
.hero-visual > * { position: relative; z-index: 1; }

.visual-caption, .visual-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font: 600 9.5px var(--mono);
    letter-spacing: 0.24em;
    color: var(--text-faint);
    text-transform: uppercase;
}
.visual-mark {
    border: 1px solid rgba(126, 214, 255, 0.32);
    color: var(--accent);
    padding: 4px 7px;
    border-radius: 5px;
    background: rgba(103, 218, 255, 0.05);
    box-shadow: 0 0 20px -8px rgba(103, 218, 255, 0.6);
}
.rhythm-art { display: block; width: 100%; margin: 12px 0 18px; overflow: visible; }
.visual-footer { padding-top: 14px; border-top: 1px solid rgba(133, 186, 255, 0.1); }
.visual-footer > :last-child { color: var(--accent); font-size: 16px; letter-spacing: 0; }

/* 判定线上的 HUD 文字 */
.judge-hud {
    position: absolute;
    left: 50%;
    bottom: 16.5%;
    transform: translateX(-50%);
    display: flex;
    align-items: baseline;
    gap: 9px;
    pointer-events: none;
    text-shadow: 0 0 18px rgba(255, 225, 150, 0.45);
}
.judge-hud .word {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.28em;
    color: #ffd979;
}
.judge-hud .value {
    font-family: var(--mono);
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff3cb;
    font-variant-numeric: tabular-nums;
}

.site-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    padding: 0;
    border: none;
    margin-top: 6px;
}
.site-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    padding: 20px 22px;
    min-width: 0;
    border-radius: 14px;
    border: 1px solid rgba(133, 186, 255, 0.15);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent 70%),
        rgba(8, 14, 25, 0.52);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden;
}
.site-stat::before {
    content: "";
    position: absolute;
    left: 0;
    top: 18%;
    bottom: 18%;
    width: 2px;
    background: linear-gradient(180deg, transparent, var(--accent), transparent);
    opacity: 0.55;
}
.site-stat .num {
    color: #e9f7ff;
    font: 750 40px/1.02 var(--mono);
    letter-spacing: -0.04em;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
    text-shadow: 0 0 30px rgba(103, 218, 255, 0.22);
}
.site-stat .lbl { color: var(--text-faint); font-size: 12px; letter-spacing: 0.04em; white-space: nowrap; }
.stats-status { color: var(--text-faint); font-size: 12.5px; padding-top: 12px; }

.home-section { margin-top: 76px; }

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 26px;
}
.section-heading h2 { font-size: 25px; font-weight: 740; letter-spacing: -0.025em; margin-top: 7px; }
.section-heading > p { color: var(--text-faint); font-size: 12.5px; max-width: 320px; text-align: right; }

.explore-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

.explore-link {
    position: relative;
    display: flex;
    gap: 18px;
    align-items: flex-start;
    color: var(--text);
    padding: 22px 20px 20px;
    border: 1px solid rgba(133, 186, 255, 0.16);
    border-radius: 16px;
    overflow: hidden;
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.06), transparent 42%),
        rgba(8, 14, 25, 0.55);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
}
.explore-link::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(90% 130% at 0% 0%, rgba(64, 156, 255, 0.14), transparent 56%),
        repeating-linear-gradient(90deg, rgba(133, 186, 255, 0.05) 0 1px, transparent 1px 28px);
    opacity: 0;
    pointer-events: none;
}
.explore-link:hover {
    text-decoration: none;
    border-color: rgba(126, 214, 255, 0.34);
    box-shadow: 0 30px 60px -40px rgba(0, 0, 0, 0.95), 0 0 40px -24px rgba(103, 218, 255, 0.5);
}
.explore-link:hover::before { opacity: 1; }
.explore-index {
    font: 600 11px/1 var(--mono);
    color: var(--accent);
    letter-spacing: 0.14em;
    padding-top: 4px;
    opacity: 0.75;
}
.explore-link > div { flex: 1; min-width: 0; position: relative; }
.explore-link h3 { font-size: 16.5px; font-weight: 680; margin-bottom: 8px; letter-spacing: 0.005em; }
.explore-link p { color: var(--text-dim); font-size: 13px; line-height: 1.85; }
.explore-arrow {
    color: var(--accent);
    font-size: 18px;
    opacity: 0.65;
}
.explore-link:hover .explore-arrow { opacity: 1; }

.connection-section {
    position: relative;
    border: 1px solid rgba(133, 186, 255, 0.12);
    background:
        linear-gradient(150deg, rgba(255, 255, 255, 0.055), transparent 38%),
        radial-gradient(120% 150% at 100% 0%, rgba(64, 156, 255, 0.1), transparent 58%),
        rgba(8, 14, 25, 0.5);
    padding: 30px;
    border-radius: var(--radius);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 40px 90px -60px rgba(0, 0, 0, 1), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    overflow: hidden;
}
.connection-section::after {
    content: "";
    position: absolute;
    right: -80px;
    bottom: -120px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(103, 218, 255, 0.1), transparent 66%);
    pointer-events: none;
}
.connection-section .section-heading { align-items: center; margin-bottom: 26px; }
.connection-section .section-heading h2 { font-size: 22px; }

.connection-steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    list-style: none;
    counter-reset: step;
}
.connection-steps::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(103, 218, 255, 0.32), rgba(103, 218, 255, 0.1) 70%, transparent);
}
.connection-steps li {
    position: relative;
    border-top: none;
    padding-top: 26px;
    min-width: 0;
}
.connection-steps li::before {
    content: "";
    position: absolute;
    top: 4px;
    left: 0;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #0a1321;
    border: 1px solid rgba(126, 214, 255, 0.65);
    box-shadow: 0 0 16px rgba(103, 218, 255, 0.5), inset 0 0 4px rgba(103, 218, 255, 0.5);
}
.step-number { color: var(--accent); font: 600 10px var(--mono); letter-spacing: 0.18em; opacity: 0.8; }
.connection-steps h3 { font-size: 14.5px; font-weight: 660; margin: 10px 0 8px; }
.connection-steps p { color: var(--text-dim); font-size: 12.5px; line-height: 1.9; overflow-wrap: anywhere; }
.connection-steps b { color: var(--text); font-weight: 650; }

code {
    font-family: var(--mono);
    font-size: 0.88em;
    padding: 1px 6px;
    border-radius: 5px;
    border: 1px solid rgba(133, 186, 255, 0.14);
    background: rgba(103, 218, 255, 0.055);
    color: #c9ecff;
    overflow-wrap: anywhere;
}

kbd {
    font-family: var(--mono);
    font-size: 11px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(133, 186, 255, 0.16);
    border-bottom-width: 2px;
    border-radius: 5px;
    padding: 1px 6px;
    color: var(--text);
}

/* --- 08 玩家页 · 谱面页 ----------------------------------------------- */

.page-head {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 22px;
    flex-wrap: wrap;
    margin-bottom: 26px;
    padding-bottom: 22px;
}
.page-head::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(133, 186, 255, 0.3), rgba(133, 186, 255, 0.05) 60%, transparent);
}
.page-head::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 64px;
    height: 1px;
    background: linear-gradient(90deg, var(--accent), transparent);
    box-shadow: 0 0 12px rgba(103, 218, 255, 0.7);
}
.page-head h1 {
    font-size: clamp(28px, 3.4vw, 42px);
    font-weight: 780;
    letter-spacing: -0.03em;
    line-height: 1.16;
    overflow-wrap: anywhere;
    background: linear-gradient(180deg, #ffffff 0%, #dcecff 58%, #a9c9ea 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.4));
}
.page-head .meta {
    color: var(--text-faint);
    font-size: 11.5px;
    margin-top: 9px;
    font-family: var(--mono);
    letter-spacing: 0.03em;
    line-height: 1.8;
}
.page-head .actions { display: flex; gap: 10px; flex-wrap: wrap; padding-bottom: 2px; }
.page-head .meta a { color: var(--text-dim); }

.hud-rule {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: -8px 0 22px;
    font: 600 9px/1 var(--mono);
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(154, 196, 235, 0.42);
}
.hud-rule i {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(133, 186, 255, 0.18), transparent);
}
.hud-rule b { color: rgba(103, 218, 255, 0.7); font-weight: 600; }

.stat {
    text-align: center;
    padding: 22px 14px 20px;
    overflow: hidden;
}
.stat .num {
    font-size: clamp(27px, 3vw, 38px);
    font-weight: 780;
    font-family: var(--mono);
    line-height: 1.08;
    color: #eaf8ff;
    letter-spacing: -0.035em;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
    text-shadow: 0 0 34px rgba(103, 218, 255, 0.25);
}
.stat .lbl { color: var(--text-faint); font-size: 11.5px; margin-top: 7px; letter-spacing: 0.03em; }
.stat::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    width: 46%;
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, rgba(126, 214, 255, 0.65), transparent);
}
.stat:nth-child(4) .num { color: #ffe6a6; text-shadow: 0 0 34px rgba(255, 211, 92, 0.25); }

.player-stats-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    padding: 18px 22px;
    margin-top: 16px;
}
.player-stats-card .info-table { flex: 1; min-width: 260px; }
.player-stats-card > div { margin-top: 0 !important; }

.info-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.info-table thead th {
    text-align: center;
    background: rgba(103, 218, 255, 0.05);
    color: var(--text-dim);
    position: static;
    padding: 11px 12px;
    font-size: 9.5px;
}
.info-table thead th::after { display: none; }
.info-table tbody th {
    text-align: left;
    font-family: var(--mono);
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: var(--text-faint);
    text-transform: uppercase;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(133, 186, 255, 0.06);
    white-space: nowrap;
    width: 148px;
    vertical-align: top;
}
.info-table tbody td {
    padding: 10px 16px;
    border-bottom: 1px solid rgba(133, 186, 255, 0.06);
    font-size: 13px;
    color: #d5e3f4;
    word-break: break-all;
    white-space: normal;
}
.info-table tbody tr:last-child th,
.info-table tbody tr:last-child td { border-bottom: none; }
.info-table tbody tr:hover td { background: rgba(103, 218, 255, 0.035); }
.info-table tbody tr:hover th { color: var(--text-dim); }

.player-stats-table tbody th { width: 140px; padding: 9px 8px; }
.player-stats-table tbody td {
    font-family: var(--mono);
    font-size: 24px;
    font-weight: 750;
    color: #eaf8ff;
    padding: 9px 8px;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.intro {
    margin-top: 9px;
    color: var(--text-dim);
    font-size: 13.5px;
    line-height: 1.75;
    white-space: pre-line;
    word-break: break-word;
    max-width: 720px;
    padding-left: 12px;
    border-left: 1px solid rgba(103, 218, 255, 0.2);
}

.rival-list { display: flex; flex-wrap: wrap; gap: 8px; }
.rival-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid rgba(133, 186, 255, 0.13);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 60%),
        rgba(10, 18, 31, 0.55);
    color: var(--text);
    font-size: 12.5px;
}
.rival-chip::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.65;
    box-shadow: 0 0 8px rgba(103, 218, 255, 0.7);
}
.rival-chip:hover {
    border-color: rgba(126, 214, 255, 0.45);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 0 26px -14px rgba(103, 218, 255, 0.7);
}
.rival-empty { color: var(--text-faint); font-size: 12.5px; }

/* 谱面页的信息卡 */
.chart-stack { max-width: 900px; margin: 0 auto 22px; }
.chart-card { padding: 0; overflow: hidden; }
.chart-card .info-table { position: relative; z-index: 1; }
.chart-card .info-table tbody tr:nth-child(even) td { background: rgba(255, 255, 255, 0.012); }
.chart-stats-card { padding: 0; overflow: hidden; margin-top: 16px; }

.chart-viz {
    position: relative;
    display: grid;
    gap: 14px;
    padding: 18px 20px 20px;
    border-top: 1px solid rgba(133, 186, 255, 0.08);
    background: linear-gradient(180deg, rgba(103, 218, 255, 0.025), transparent);
}
.chart-viz h4 {
    font: 600 9px/1 var(--mono);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 9px;
}
.note-bar {
    display: flex;
    height: 16px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.035);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5);
}
.note-seg {
    height: 100%;
    min-width: 2px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), transparent 80%), var(--seg-color, var(--accent));
    box-shadow: inset -1px 0 0 rgba(3, 7, 13, 0.5);
}
.note-seg:hover { filter: brightness(1.25); }
.note-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 10px;
    font: 11px/1.6 var(--mono);
    color: var(--text-faint);
}
.note-legend span { display: inline-flex; align-items: center; gap: 6px; }
.note-legend i {
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background: var(--seg-color, var(--accent));
    box-shadow: 0 0 8px -2px var(--seg-color, var(--accent));
}
.bpm-scale {
    position: relative;
    height: 26px;
    border-radius: 7px;
    background:
        repeating-linear-gradient(90deg, rgba(133, 186, 255, 0.14) 0 1px, transparent 1px 10%),
        rgba(255, 255, 255, 0.02);
    overflow: hidden;
}
.bpm-range {
    position: absolute;
    top: 8px;
    bottom: 8px;
    border-radius: 4px;
    background: linear-gradient(90deg, rgba(103, 218, 255, 0.35), rgba(103, 218, 255, 0.8));
    box-shadow: 0 0 18px -4px rgba(103, 218, 255, 0.7);
}
.bpm-ticks {
    display: flex;
    justify-content: space-between;
    font: 10px/1 var(--mono);
    color: var(--text-faint);
    margin-top: 7px;
}

.stats-table td, .stats-table tbody td {
    text-align: center;
    font-family: var(--mono);
    font-size: 20px;
    font-weight: 750;
    letter-spacing: -0.02em;
    padding: 16px 12px;
    color: #e6f5ff;
    font-variant-numeric: tabular-nums;
}
.stats-table thead th { text-align: center; padding: 12px; }
.stats-table tbody td:first-child, .stats-table tbody td:nth-child(4) { color: #fff; }
.stats-table tbody td:nth-child(3), .stats-table tbody td:nth-child(6) { color: var(--accent); }
.stats-table .num { font-family: var(--mono); }

/* --- 09 难度表 / 段位 / 统计 / 下载 ----------------------------------- */

.table-card {
    display: block;
    color: var(--text);
    padding: 20px 20px 18px;
    overflow: hidden;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
.table-card:hover { text-decoration: none; border-color: rgba(126, 214, 255, 0.36); }
.table-card h3 {
    display: flex;
    align-items: center;
    gap: 11px;
    flex-wrap: wrap;
    font-size: 14.5px;
    margin-bottom: 0;
}
.table-card .sym {
    display: inline-grid;
    place-items: center;
    min-width: 42px;
    height: 42px;
    padding: 0 8px;
    border-radius: 10px;
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.28), transparent 50%),
        linear-gradient(135deg, rgba(95, 208, 255, 0.3), rgba(58, 123, 213, 0.4));
    border: 1px solid rgba(150, 220, 255, 0.28);
    font-family: var(--mono);
    font-weight: 800;
    font-size: 14px;
    color: #d6f6ff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 0 24px -12px rgba(103, 218, 255, 0.8);
}
.table-card .tbl-meta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 12px;
    color: var(--text-faint);
    font-size: 11px;
    font-family: var(--mono);
    letter-spacing: 0.02em;
}
.table-card .tbl-error { margin-top: 10px; color: var(--orange); font-size: 11.5px; }
.table-card .state-badge { margin-left: auto; }
.table-card::after {
    content: "";
    position: absolute;
    inset: auto -30% -60% auto;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(103, 218, 255, 0.09), transparent 66%);
    pointer-events: none;
    opacity: 0;
}
.table-card:hover::after { opacity: 1; }

.course-name { font-size: 14px; font-weight: 650; }
.constraint-badge {
    display: inline-block;
    margin-right: 6px;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(255, 211, 92, 0.08);
    border: 1px solid rgba(255, 211, 92, 0.2);
    color: #ffe3a0;
    font-size: 10.5px;
    font-family: var(--mono);
}

.course-group td {
    cursor: pointer;
    user-select: none;
    background: rgba(103, 218, 255, 0.04);
    font-weight: 650;
    color: var(--text);
    border-top: 1px solid rgba(133, 186, 255, 0.08);
    border-bottom: 1px solid rgba(133, 186, 255, 0.06);
}
.course-group:hover td { background: rgba(103, 218, 255, 0.075); }
.course-group .chevron {
    display: inline-block;
    color: var(--accent);
    margin-right: 8px;
    font-size: 10px;
}
.course-group .cnt {
    margin-left: 9px;
    font-size: 10px;
    font-weight: 600;
    color: var(--text-dim);
    background: rgba(103, 218, 255, 0.08);
    border: 1px solid rgba(133, 186, 255, 0.14);
    border-radius: 999px;
    padding: 1px 8px;
    font-family: var(--mono);
}

.lamp-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0 20px;
}
.lamp-stat {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px solid rgba(133, 186, 255, 0.07);
    padding: 7px 2px;
}
.lamp-stat-name { font-weight: 700; font-family: var(--mono); font-size: 11px; letter-spacing: 0.02em; }
.lamp-stat-num {
    font-family: var(--mono);
    font-size: 18px;
    font-weight: 780;
    color: var(--text);
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.stat-bars {
    border: 1px solid rgba(133, 186, 255, 0.12);
    border-radius: var(--radius);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 24%),
        rgba(8, 14, 25, 0.55);
    padding: 18px 20px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}
.stat-bar-row { display: flex; align-items: center; gap: 14px; padding: 4px 0; }
.stat-bar-label {
    flex: 0 0 74px;
    text-align: right;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-dim);
    white-space: nowrap;
    letter-spacing: 0.02em;
}
.stat-bar-track {
    flex: 1;
    height: 22px;
    display: flex;
    overflow: hidden;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.035);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.45);
    gap: 1px;
}
.stat-bar-seg {
    height: 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), inset 0 -1px 0 rgba(0, 0, 0, 0.25);
}
.stat-bar-seg:hover { filter: brightness(1.18); }
.stat-bar-num {
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 750;
    line-height: 1;
    color: rgba(10, 14, 20, 0.8);
    font-variant-numeric: tabular-nums;
}

/* 下载页 */
.download-version { font-family: var(--mono); letter-spacing: 0.04em; }
pre#dl-notes { color: var(--text-dim); font-size: 12.5px; line-height: 1.8; }
#dl-link.btn { padding: 11px 26px; font-size: 14.5px; }

/* --- 10 弹窗 / 页脚 --------------------------------------------------- */

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(2, 5, 10, 0.62);
    backdrop-filter: blur(10px) saturate(120%);
    -webkit-backdrop-filter: blur(10px) saturate(120%);
}
.modal {
    width: min(440px, 100%);
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.06), transparent 34%),
        rgba(9, 16, 28, 0.94);
    border: 1px solid rgba(133, 186, 255, 0.22);
    border-radius: 18px;
    box-shadow:
        0 40px 100px -30px rgba(0, 0, 0, 0.9),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    padding: 22px 24px;
    position: relative;
}
.modal::before {
    content: "";
    position: absolute;
    top: 0;
    left: 12%;
    right: 12%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(170, 236, 255, 0.55), transparent);
}
.modal h3 { font-size: 16px; margin-bottom: 12px; letter-spacing: 0.01em; }
.modal.danger h3 { color: var(--danger); }
.modal .modal-message {
    color: var(--text-dim);
    font-size: 13.5px;
    line-height: 1.75;
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 40vh;
    overflow: auto;
}
.modal .modal-message .em { color: var(--text); font-weight: 650; }
.modal .modal-message .mono { font-family: var(--mono); font-size: 11.5px; color: var(--text-faint); }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.profile-modal { width: min(540px, 100%); }
.dan-chips { display: flex; flex-wrap: wrap; gap: 7px; max-height: 190px; overflow: auto; padding: 2px; }
.dan-chip {
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid rgba(133, 186, 255, 0.14);
    background: rgba(10, 18, 31, 0.6);
    color: var(--text-dim);
    font-size: 12px;
    font-family: var(--mono);
    cursor: pointer;
}
.dan-chip:hover { border-color: rgba(126, 214, 255, 0.45); color: var(--text); }
.dan-chip.on {
    border-color: rgba(126, 214, 255, 0.6);
    background: linear-gradient(180deg, rgba(103, 218, 255, 0.18), rgba(103, 218, 255, 0.05));
    color: #c9f6ff;
    font-weight: 700;
    box-shadow: 0 0 18px -10px rgba(103, 218, 255, 0.8);
}
.dan-chip.disabled { opacity: 0.4; cursor: not-allowed; }

footer {
    width: min(1240px, calc(100% - 48px));
    margin: 0 auto;
    padding: 28px 0 40px;
    color: var(--text-faint);
    font-size: 11.5px;
    border-top: 1px solid rgba(133, 186, 255, 0.09);
    display: flex;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    position: relative;
}
footer::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, var(--accent), transparent);
    opacity: 0.55;
}
footer span { font-family: var(--mono); letter-spacing: 0.02em; }
footer span:last-child { text-align: right; }

/* --- 11 响应式 / 可访问性 --------------------------------------------- */

@media (max-width: 1120px) {
    .nav-inner {
        grid-template-columns: minmax(0, 1fr) auto auto;
        gap: 8px 16px;
        padding-top: 12px;
        padding-bottom: 8px;
    }
    .nav-links { grid-column: 1 / -1; grid-row: 2; padding-bottom: 3px; }
    .nav-auth { grid-column: 2; grid-row: 1; }
    .lang-mount { grid-column: 3; grid-row: 1; }
    .wrap { padding-top: 44px; }
}

@media (max-width: 960px) {
    .home-hero { gap: 34px; grid-template-columns: 1fr 0.9fr; }
    .hero-copy h1 { font-size: clamp(36px, 5.6vw, 56px); }
    .site-stat { flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px 18px; }
    .site-stat .num { font-size: 28px; }
    .connection-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 26px; }
    .connection-steps::before { display: none; }
    .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .page-head h1 { font-size: 32px; }
}

@media (max-width: 760px) {
    body { font-size: 14.5px; }
    .wrap { width: calc(100% - 32px); padding: 34px 0 64px; }
    .home-hero { grid-template-columns: 1fr; padding: 10px 0 40px; }
    .hero-visual { display: none; }
    .hero-copy h1 { margin: 20px 0 18px; }
    .hero-description { font-size: 14.5px; }
    .hero-actions { margin-top: 26px; }
    .site-stats { grid-template-columns: 1fr; gap: 8px; }
    .site-stat { flex-direction: row; align-items: baseline; gap: 12px; }
    .site-stat .num { font-size: 24px; }
    .site-stat .lbl { white-space: normal; }
    .home-section { margin-top: 52px; }
    .section-heading { flex-direction: column; align-items: flex-start; gap: 8px; }
    .section-heading > p { text-align: left; }
    .explore-grid { grid-template-columns: 1fr; }
    .connection-section { padding: 22px; }
    .connection-section .section-heading { align-items: flex-start; flex-direction: column; }
    .connection-steps { grid-template-columns: 1fr; gap: 18px; }
    .connection-steps li { padding-top: 22px; }
    .connection-steps li::before { top: 2px; }
    .grid.cols-3, .grid.cols-2, .grid.cols-4 { grid-template-columns: 1fr; }
    .card { padding: 20px; border-radius: 16px; backdrop-filter: blur(12px) saturate(120%); -webkit-backdrop-filter: blur(12px) saturate(120%); }
    .player-stats-card { flex-direction: column; align-items: stretch; }
    .page-head { gap: 14px; align-items: flex-start; flex-direction: column; }
    .page-head h1 { font-size: 28px; }
    .page-head .actions { width: 100%; }
    .page-head .actions .btn { flex: 1; }
    .table-wrap { border-radius: 14px; }
    .table-wrap > table { min-width: 700px; }
    .chart-stats-card { overflow-x: auto; }
    .stats-table td, .stats-table th { white-space: nowrap; }
    .stats-table tbody td { font-size: 14px; padding: 11px 3px; }
    .stats-table thead th { font-size: 7px; padding: 8px 3px; letter-spacing: 0.02em; }
    .toolbar input:is([type="search"], [type="text"]) { flex-basis: 100%; max-width: 100%; min-width: 0; font-size: 15px; }
    .table-select { max-width: 100%; min-width: 0; flex: 1; }
    .info-table tbody th { width: 104px; font-size: 9px; padding: 9px 12px; white-space: normal; }
    .info-table tbody td { padding: 9px 12px; font-size: 12.5px; }
    .player-stats-table tbody td { font-size: 22px; }
    .stat .num { font-size: 26px; }
    .form-card { padding: 26px 22px; margin-top: 8px; }
    .modal-backdrop { padding: 14px; }
    .modal { padding: 20px; }
    footer { width: calc(100% - 32px); padding: 22px 0 30px; }
    .stat-bar-label { flex-basis: 54px; font-size: 10px; }
    .stat-bars { padding: 14px; }
    .lamp-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
    .chart-viz { padding: 14px 16px 16px; }
}

@media (max-width: 600px) {
    .nav { padding-top: 8px; }
    .nav-inner {
        width: calc(100% - 20px);
        padding: 8px 10px 6px;
        grid-template-columns: minmax(0, 1fr) auto auto;
        gap: 8px 8px;
        border-radius: 14px;
    }
    .brand { font-size: 12.5px; gap: 7px; }
    .brand .logo { width: 28px; height: 28px; border-radius: 9px; font-size: 11.5px; }
    .lang-mount { grid-row: 1; grid-column: 3; justify-content: flex-end; }
    .nav-links { grid-column: 1 / -1; grid-row: 2; }
    .nav-links a { font-size: 12px; padding: 6px 7px; }
    .nav-auth { grid-column: 2; grid-row: 1; gap: 4px; }
    .nav-auth .btn.small { padding: 4px 7px; font-size: 11px; min-height: 28px; }
    .nav-auth .who a { max-width: 58px; }
    .lang-select { max-width: 84px; font-size: 11px; padding: 4px 6px; }
    .hero-copy h1 { letter-spacing: -0.03em; }
    .hero-actions .btn { padding: 11px 16px; min-height: 44px; }
    .site-stat { padding: 14px 16px; }
    .explore-link { padding: 18px 16px; gap: 14px; }
    .explore-link h3 { font-size: 15.5px; }
    .connection-section { padding: 18px; }
    .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .wrap { padding-top: 28px; }
    .stat-bar-track { height: 18px; }
    .stat-bar-num { display: none; }
    .page-head h1 { font-size: 25px; }
    footer { flex-direction: column; gap: 6px; }
    footer span:last-child { text-align: left; }
}

@media (max-width: 380px) {
    .brand .brand-text { display: none; }
    .brand { min-width: 30px; }
    .nav-inner { grid-template-columns: auto minmax(0, 1fr) auto; }
    .nav-auth { justify-self: end; }
    .nav-auth .btn.small { padding: 4px 8px; font-size: 11px; }
    .lang-select { max-width: 76px; padding: 4px 5px; }
    .hero-actions .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .ir-grain { display: none; }
}

@media (forced-colors: active) {
    .page-head h1, .hero-copy h1 .accent {
        color: CanvasText;
        -webkit-text-fill-color: CanvasText;
        background: none;
    }
    .card, .table-wrap, .nav-inner { border: 1px solid CanvasText; }
}

.admin-entry { margin-left: 14px; font-size: 11px; opacity: .45; text-decoration: none; }
.admin-entry:hover, .admin-entry:focus-visible { opacity: 1; text-decoration: underline; }

@media print {
    .nav, footer, .ir-atmos, .btn { display: none !important; }
    body { background: #fff; color: #111; }
    .card, .table-wrap { background: #fff; border-color: #ccc; box-shadow: none; }
    thead th { background: #f2f2f2; color: #333; }
    a { color: #0b5cad; }
}

/* Protected navigation stays hidden until the server validates the current session. */
html:not(.ir-authenticated) a[href="songs.html"],
html:not(.ir-authenticated) a[href="tables.html"],
html:not(.ir-authenticated) a[href="courses.html"],
html:not(.ir-authenticated) a[href="players.html"],
html:not(.ir-authenticated) a[href="friends.html"],
html:not(.ir-administrator) [data-admin-only] { display: none !important; }
html.ir-auth-pending .wrap { visibility: hidden; }
