:root, [data-theme="dark"], [data-theme="night"] {
  --bg: #121212;
  --bg-2: #121212;
  --glass: #1c1c1c;
  --glass-strong: #1c1c1c;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.08);
  --ink: #f2f2f2;
  --muted: #8d8d8d;
  --accent: #ff6a2a;
  --accent-2: #e25518;
  --accent-ink: #1a0d08;
  --sand: #ffb088;
  --moss: #8faf78;
  --blood: #e08a86;
  --field: #1c1c1c;
  --shadow: none;
  --glow: transparent;
  --shard: transparent;
  --crack: transparent;
  --theme-color: #121212;
  color-scheme: dark;
}

[data-theme="sand"] {
  --bg: #f6f0e6;
  --bg-2: #fff8ef;
  --glass: rgba(255, 250, 244, 0.84);
  --glass-strong: rgba(255, 252, 247, 0.94);
  --line: rgba(92, 58, 24, 0.14);
  --line-strong: rgba(255, 255, 255, 0.9);
  --ink: #2a2118;
  --muted: #6f6256;
  --accent: #c4843a;
  --accent-2: #8d5a22;
  --accent-ink: #fff8ef;
  --sand: #8d5a22;
  --moss: #3f6b38;
  --blood: #a33d3a;
  --field: rgba(255, 252, 247, 0.8);
  --shadow: 0 14px 32px rgba(70, 40, 10, 0.1);
  --glow: rgba(196, 132, 58, 0.16);
  --shard: rgba(255, 248, 236, 0.55);
  --crack: rgba(92, 58, 24, 0.1);
  --theme-color: #f6f0e6;
  color-scheme: light;
}

[data-theme="rust"] {
  --bg: #1a100c;
  --bg-2: #24160f;
  --glass: #2a1a14;
  --glass-strong: #321f17;
  --line: rgba(255, 176, 120, 0.16);
  --line-strong: rgba(255, 210, 170, 0.2);
  --ink: #f8ece4;
  --muted: #b08974;
  --accent: #ff6a2a;
  --accent-2: #ffb088;
  --accent-ink: #1a0d08;
  --sand: #ffb088;
  --moss: #c4a574;
  --blood: #e08a72;
  --field: #2a1a14;
  --shadow: none;
  --glow: rgba(255, 106, 42, 0.22);
  --shard: transparent;
  --crack: transparent;
  --theme-color: #1a100c;
  color-scheme: dark;
}

[data-theme="blood"] {
  --bg: #14080c;
  --bg-2: #1e0c12;
  --glass: #2a1018;
  --glass-strong: #34141e;
  --line: rgba(255, 140, 150, 0.16);
  --line-strong: rgba(255, 180, 186, 0.2);
  --ink: #f8e8ea;
  --muted: #c48a92;
  --accent: #e23b4a;
  --accent-2: #ff8a94;
  --accent-ink: #1a080c;
  --sand: #ffb0b6;
  --moss: #d4a0a4;
  --blood: #ff6a76;
  --field: #2a1018;
  --shadow: none;
  --glow: rgba(226, 59, 74, 0.22);
  --shard: transparent;
  --crack: transparent;
  --theme-color: #14080c;
  color-scheme: dark;
}

[data-theme="forest"] {
  --bg: #0d1410;
  --bg-2: #132018;
  --glass: #16241c;
  --glass-strong: #1c2e22;
  --line: rgba(160, 210, 150, 0.16);
  --line-strong: rgba(190, 230, 180, 0.2);
  --ink: #e7f3e6;
  --muted: #8eae90;
  --accent: #6fbf6a;
  --accent-2: #b6e2b0;
  --accent-ink: #08140c;
  --sand: #c6e2b8;
  --moss: #8fd48a;
  --blood: #e0a090;
  --field: #16241c;
  --shadow: none;
  --glow: rgba(111, 191, 106, 0.2);
  --shard: transparent;
  --crack: transparent;
  --theme-color: #0d1410;
  color-scheme: dark;
}

[data-theme="ocean"] {
  --bg: #071018;
  --bg-2: #0c1824;
  --glass: #102030;
  --glass-strong: #142838;
  --line: rgba(140, 190, 230, 0.16);
  --line-strong: rgba(180, 220, 245, 0.2);
  --ink: #e6f2fb;
  --muted: #8aa8c0;
  --accent: #3aa0e8;
  --accent-2: #9ed4ff;
  --accent-ink: #041018;
  --sand: #b7ddf8;
  --moss: #8ec8c0;
  --blood: #e0a0a8;
  --field: #102030;
  --shadow: none;
  --glow: rgba(58, 160, 232, 0.22);
  --shard: transparent;
  --crack: transparent;
  --theme-color: #071018;
  color-scheme: dark;
}

[data-theme="amethyst"] {
  --bg: #120c18;
  --bg-2: #1a1024;
  --glass: #221430;
  --glass-strong: #2a1838;
  --line: rgba(200, 160, 255, 0.16);
  --line-strong: rgba(220, 190, 255, 0.22);
  --ink: #f3eaff;
  --muted: #b09ac8;
  --accent: #b06cff;
  --accent-2: #d7b4ff;
  --accent-ink: #140818;
  --sand: #e0c8ff;
  --moss: #c4b0e0;
  --blood: #e8a0c0;
  --field: #221430;
  --shadow: none;
  --glow: rgba(176, 108, 255, 0.22);
  --shard: transparent;
  --crack: transparent;
  --theme-color: #120c18;
  color-scheme: dark;
}

[data-theme="gold"] {
  --bg: #161208;
  --bg-2: #221c0c;
  --glass: #2a220e;
  --glass-strong: #342a12;
  --line: rgba(230, 200, 120, 0.16);
  --line-strong: rgba(245, 220, 150, 0.22);
  --ink: #f8f1dc;
  --muted: #c4b48a;
  --accent: #e2b340;
  --accent-2: #ffe08a;
  --accent-ink: #1a1406;
  --sand: #ffe08a;
  --moss: #d4c48a;
  --blood: #e0b0a0;
  --field: #2a220e;
  --shadow: none;
  --glow: rgba(226, 179, 64, 0.22);
  --shard: transparent;
  --crack: transparent;
  --theme-color: #161208;
  color-scheme: dark;
}

[data-theme="ash"] {
  --bg: #141414;
  --bg-2: #1c1c1c;
  --glass: #222222;
  --glass-strong: #2a2a2a;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.16);
  --ink: #f4f4f4;
  --muted: #9a9a9a;
  --accent: #d0d0d0;
  --accent-2: #ffffff;
  --accent-ink: #141414;
  --sand: #e8e8e8;
  --moss: #b0b0b0;
  --blood: #d0a0a0;
  --field: #222222;
  --shadow: none;
  --glow: rgba(255, 255, 255, 0.08);
  --shard: transparent;
  --crack: transparent;
  --theme-color: #141414;
  color-scheme: dark;
}

[data-theme="ice"] {
  --bg: #eef4f8;
  --bg-2: #f7fbfe;
  --glass: rgba(255, 255, 255, 0.84);
  --glass-strong: rgba(255, 255, 255, 0.94);
  --line: rgba(28, 60, 84, 0.12);
  --line-strong: rgba(255, 255, 255, 0.9);
  --ink: #1c2830;
  --muted: #5c7280;
  --accent: #2f7ea8;
  --accent-2: #1a5270;
  --accent-ink: #f4fbff;
  --sand: #1a5270;
  --moss: #2f6b58;
  --blood: #a33d4a;
  --field: rgba(255, 255, 255, 0.8);
  --shadow: 0 14px 32px rgba(20, 40, 60, 0.1);
  --glow: rgba(47, 126, 168, 0.16);
  --shard: rgba(255, 255, 255, 0.55);
  --crack: rgba(28, 60, 84, 0.1);
  --theme-color: #eef4f8;
  color-scheme: light;
}

[data-theme="toxin"] {
  --bg: #07140c;
  --bg-2: #0c1c12;
  --glass: #102418;
  --glass-strong: #142e1c;
  --line: rgba(180, 240, 100, 0.16);
  --line-strong: rgba(210, 255, 140, 0.22);
  --ink: #eef8e4;
  --muted: #9ab88a;
  --accent: #b6f25c;
  --accent-2: #e4ffb0;
  --accent-ink: #081408;
  --sand: #d8f0b0;
  --moss: #b6f25c;
  --blood: #e0a090;
  --field: #102418;
  --shadow: none;
  --glow: rgba(182, 242, 92, 0.18);
  --shard: transparent;
  --crack: transparent;
  --theme-color: #07140c;
  color-scheme: dark;
}

[data-theme="desert"] {
  --bg: #f3e6cf;
  --bg-2: #fff6e8;
  --glass: rgba(255, 248, 236, 0.86);
  --glass-strong: rgba(255, 252, 244, 0.94);
  --line: rgba(90, 58, 24, 0.14);
  --line-strong: rgba(255, 255, 255, 0.85);
  --ink: #3a2a16;
  --muted: #7a6244;
  --accent: #c47a2a;
  --accent-2: #8a4e12;
  --accent-ink: #fff8ee;
  --sand: #8a4e12;
  --moss: #5a7040;
  --blood: #a33d3a;
  --field: rgba(255, 252, 244, 0.82);
  --shadow: 0 14px 32px rgba(90, 50, 10, 0.1);
  --glow: rgba(196, 122, 42, 0.18);
  --shard: rgba(255, 248, 236, 0.5);
  --crack: rgba(90, 58, 24, 0.1);
  --theme-color: #f3e6cf;
  color-scheme: light;
}

[data-theme="neon"] {
  --bg: #071018;
  --bg-2: #0b1824;
  --glass: #102030;
  --glass-strong: #142838;
  --line: rgba(57, 255, 176, 0.16);
  --line-strong: rgba(57, 255, 176, 0.28);
  --ink: #e8fff6;
  --muted: #8eb8a8;
  --accent: #39ffb0;
  --accent-2: #14c888;
  --accent-ink: #04140e;
  --sand: #b8ffe4;
  --moss: #39ffb0;
  --blood: #ff8a9a;
  --field: #102030;
  --shadow: none;
  --glow: rgba(57, 255, 176, 0.16);
  --shard: transparent;
  --crack: transparent;
  --theme-color: #071018;
  color-scheme: dark;
}

[data-theme="copper"] {
  --bg: #1a100c;
  --bg-2: #241610;
  --glass: #2a1a14;
  --glass-strong: #342016;
  --line: rgba(212, 132, 74, 0.18);
  --line-strong: rgba(212, 132, 74, 0.28);
  --ink: #f8efe6;
  --muted: #b89880;
  --accent: #d4844a;
  --accent-2: #a85e28;
  --accent-ink: #1a0e08;
  --sand: #f0c8a0;
  --moss: #c4a06a;
  --blood: #e08a78;
  --field: #2a1a14;
  --shadow: none;
  --glow: rgba(212, 132, 74, 0.16);
  --shard: transparent;
  --crack: transparent;
  --theme-color: #1a100c;
  color-scheme: dark;
}

[data-theme="sakura"] {
  --bg: #fff0f4;
  --bg-2: #fff7f9;
  --glass: rgba(255, 246, 248, 0.88);
  --glass-strong: rgba(255, 252, 253, 0.94);
  --line: rgba(120, 40, 70, 0.12);
  --line-strong: rgba(255, 255, 255, 0.85);
  --ink: #3a2030;
  --muted: #8a6070;
  --accent: #e45b8a;
  --accent-2: #b83a68;
  --accent-ink: #fff7fa;
  --sand: #b83a68;
  --moss: #6a8a58;
  --blood: #c44858;
  --field: rgba(255, 252, 253, 0.86);
  --shadow: 0 14px 32px rgba(120, 40, 70, 0.08);
  --glow: rgba(228, 91, 138, 0.16);
  --shard: rgba(255, 246, 248, 0.5);
  --crack: rgba(120, 40, 70, 0.08);
  --theme-color: #fff0f4;
  color-scheme: light;
}

[data-theme="lagoon"] {
  --bg: #061418;
  --bg-2: #0a1c22;
  --glass: #0e242c;
  --glass-strong: #123038;
  --line: rgba(46, 196, 182, 0.16);
  --line-strong: rgba(46, 196, 182, 0.26);
  --ink: #e6faf8;
  --muted: #8eb8b4;
  --accent: #2ec4b6;
  --accent-2: #1a9a90;
  --accent-ink: #041210;
  --sand: #b8f0ea;
  --moss: #2ec4b6;
  --blood: #e09090;
  --field: #0e242c;
  --shadow: none;
  --glow: rgba(46, 196, 182, 0.16);
  --shard: transparent;
  --crack: transparent;
  --theme-color: #061418;
  color-scheme: dark;
}

[data-theme="midnight"] {
  --bg: #070816;
  --bg-2: #0c1024;
  --glass: #12162e;
  --glass-strong: #181e38;
  --line: rgba(122, 162, 255, 0.16);
  --line-strong: rgba(122, 162, 255, 0.28);
  --ink: #eef2ff;
  --muted: #9aa6c8;
  --accent: #7aa2ff;
  --accent-2: #4d74e0;
  --accent-ink: #070a16;
  --sand: #c8d6ff;
  --moss: #8eb0ff;
  --blood: #e098a8;
  --field: #12162e;
  --shadow: none;
  --glow: rgba(122, 162, 255, 0.16);
  --shard: transparent;
  --crack: transparent;
  --theme-color: #070816;
  color-scheme: dark;
}

[data-theme="smoke"] {
  --bg: #121416;
  --bg-2: #1a1c1e;
  --glass: #222426;
  --glass-strong: #2a2c2e;
  --line: rgba(220, 216, 208, 0.12);
  --line-strong: rgba(220, 216, 208, 0.2);
  --ink: #f4f2ee;
  --muted: #a8a49c;
  --accent: #c8c2b8;
  --accent-2: #9a948a;
  --accent-ink: #161412;
  --sand: #e8e2d8;
  --moss: #b8c0a8;
  --blood: #d0a0a0;
  --field: #222426;
  --shadow: none;
  --glow: rgba(200, 194, 184, 0.12);
  --shard: transparent;
  --crack: transparent;
  --theme-color: #121416;
  color-scheme: dark;
}

[data-theme="night"] { --radius: 16px; --radius-sm: 14px; --card-radius: 16px; --cabinet-radius: 28px; --btn-radius: 999px; }
[data-theme="sand"] { --radius: 22px; --radius-sm: 18px; --card-radius: 24px; --cabinet-radius: 24px; --btn-radius: 999px; --card-shadow: var(--shadow); --card-border: 1px solid rgba(92, 58, 24, 0.16); }
[data-theme="rust"] { --radius: 8px; --radius-sm: 8px; --card-radius: 10px; --cabinet-radius: 10px; --btn-radius: 8px; --card-border: 1px solid rgba(255, 140, 70, 0.35); }
[data-theme="blood"] { --radius: 4px; --radius-sm: 4px; --card-radius: 4px; --cabinet-radius: 4px; --btn-radius: 4px; --card-border: 1px solid rgba(226, 59, 74, 0.55); --card-shadow: 0 0 0 1px rgba(226, 59, 74, 0.2); }
[data-theme="forest"] { --radius: 20px; --radius-sm: 16px; --card-radius: 22px; --cabinet-radius: 22px; --btn-radius: 20px; }
[data-theme="ocean"] { --radius: 18px; --radius-sm: 14px; --card-radius: 20px; --cabinet-radius: 20px; --btn-radius: 999px; --card-border: 1px solid rgba(58, 160, 232, 0.35); }
[data-theme="amethyst"] { --radius: 26px; --radius-sm: 20px; --card-radius: 28px; --cabinet-radius: 28px; --btn-radius: 999px; --card-shadow: 0 16px 36px rgba(90, 30, 150, 0.28); }
[data-theme="gold"] { --radius: 12px; --radius-sm: 10px; --card-radius: 12px; --cabinet-radius: 12px; --btn-radius: 12px; --card-border: 1px solid rgba(226, 179, 64, 0.5); }
[data-theme="ash"] { --radius: 2px; --radius-sm: 2px; --card-radius: 2px; --cabinet-radius: 2px; --btn-radius: 2px; }
[data-theme="ice"] { --radius: 18px; --radius-sm: 14px; --card-radius: 22px; --cabinet-radius: 22px; --btn-radius: 999px; --card-shadow: var(--shadow); --card-border: 1px solid rgba(47, 126, 168, 0.22); }
[data-theme="toxin"] { --radius: 6px; --radius-sm: 6px; --card-radius: 6px; --cabinet-radius: 6px; --btn-radius: 6px; --card-border: 1px solid rgba(182, 242, 92, 0.5); --card-shadow: 0 0 18px rgba(182, 242, 92, 0.12); }
[data-theme="desert"] { --radius: 14px; --radius-sm: 12px; --card-radius: 16px; --cabinet-radius: 16px; --btn-radius: 14px; --card-shadow: var(--shadow); }
[data-theme="neon"] { --radius: 4px; --radius-sm: 4px; --card-radius: 4px; --cabinet-radius: 4px; --btn-radius: 4px; --card-border: 1px solid rgba(57, 255, 176, 0.65); --card-shadow: 0 0 22px rgba(57, 255, 176, 0.2); }
[data-theme="copper"] { --radius: 10px; --radius-sm: 8px; --card-radius: 12px; --cabinet-radius: 12px; --btn-radius: 10px; }
[data-theme="sakura"] { --radius: 28px; --radius-sm: 22px; --card-radius: 32px; --cabinet-radius: 32px; --btn-radius: 999px; --card-shadow: var(--shadow); }
[data-theme="lagoon"] { --radius: 20px; --radius-sm: 16px; --card-radius: 24px; --cabinet-radius: 24px; --btn-radius: 999px; }
[data-theme="midnight"] { --radius: 8px; --radius-sm: 8px; --card-radius: 8px; --cabinet-radius: 8px; --btn-radius: 8px; --card-border: 1px solid rgba(122, 162, 255, 0.4); }
[data-theme="smoke"] { --radius: 12px; --radius-sm: 10px; --card-radius: 14px; --cabinet-radius: 14px; --btn-radius: 999px; }

[data-theme="terminal"] {
  --bg: #050805;
  --bg-2: #0a120a;
  --glass: #071007;
  --glass-strong: #0c180c;
  --line: rgba(57, 255, 112, 0.35);
  --line-strong: rgba(57, 255, 112, 0.55);
  --ink: #b6ffc8;
  --muted: #6ea87c;
  --accent: #39ff70;
  --accent-2: #14c84a;
  --accent-ink: #04140a;
  --btn-ink: #04140a;
  --sand: #9dffb8;
  --moss: #39ff70;
  --blood: #ff6b6b;
  --field: #071007;
  --shadow: none;
  --glow: rgba(57, 255, 112, 0.2);
  --shard: transparent;
  --crack: transparent;
  --theme-color: #050805;
  --display: "Cascadia Mono", Consolas, ui-monospace, monospace;
  --radius: 0px;
  --radius-sm: 0px;
  --card-radius: 0px;
  --cabinet-radius: 0px;
  --btn-radius: 0px;
  --card-border: 1px solid rgba(57, 255, 112, 0.55);
  --card-shadow: none;
  color-scheme: dark;
}
[data-theme="poster"] {
  --bg: #f3ead4;
  --bg-2: #fff6e4;
  --glass: #fff8ea;
  --glass-strong: #fffdf6;
  --line: #14110c;
  --line-strong: #14110c;
  --ink: #14110c;
  --muted: #5c5348;
  --accent: #d01212;
  --accent-2: #8e0c0c;
  --accent-ink: #fff8ee;
  --btn-ink: #fff8ee;
  --sand: #8e0c0c;
  --moss: #2f6b32;
  --blood: #d01212;
  --field: #fff8ea;
  --shadow: 6px 6px 0 #14110c;
  --glow: rgba(208, 18, 18, 0.16);
  --shard: transparent;
  --crack: transparent;
  --theme-color: #f3ead4;
  --radius: 0px;
  --radius-sm: 0px;
  --card-radius: 0px;
  --cabinet-radius: 0px;
  --btn-radius: 0px;
  --card-border: 2px solid #14110c;
  --card-shadow: 6px 6px 0 #14110c;
  color-scheme: light;
}
[data-theme="ink"] {
  --bg: #f7f4ee;
  --bg-2: #fffdf8;
  --glass: #fffdf8;
  --glass-strong: #fff;
  --line: rgba(28, 26, 22, 0.2);
  --line-strong: #1c1a16;
  --ink: #1c1a16;
  --muted: #6a645c;
  --accent: #1c1a16;
  --accent-2: #3a3630;
  --accent-ink: #f7f4ee;
  --btn-ink: #f7f4ee;
  --sand: #1c1a16;
  --moss: #3d5a40;
  --blood: #8a3a3a;
  --field: #fff;
  --shadow: none;
  --glow: rgba(28, 26, 22, 0.08);
  --shard: transparent;
  --crack: transparent;
  --theme-color: #f7f4ee;
  --radius: 2px;
  --radius-sm: 2px;
  --card-radius: 2px;
  --cabinet-radius: 2px;
  --btn-radius: 2px;
  --card-border: 1px solid #1c1a16;
  --card-shadow: none;
  color-scheme: light;
}
[data-theme="candy"] {
  --bg: #fff3fb;
  --bg-2: #fffafd;
  --glass: rgba(255, 250, 253, 0.9);
  --glass-strong: #fff;
  --line: rgba(255, 79, 163, 0.22);
  --line-strong: rgba(25, 211, 197, 0.4);
  --ink: #3a1830;
  --muted: #8a5878;
  --accent: #ff4fa3;
  --accent-2: #19d3c5;
  --accent-ink: #fff;
  --btn-ink: #fff;
  --sand: #19d3c5;
  --moss: #19d3c5;
  --blood: #ff4fa3;
  --field: #fff;
  --shadow: 0 18px 40px rgba(255, 79, 163, 0.16);
  --glow: rgba(255, 79, 163, 0.2);
  --shard: rgba(255, 255, 255, 0.6);
  --crack: transparent;
  --theme-color: #fff3fb;
  --radius: 32px;
  --radius-sm: 24px;
  --card-radius: 32px;
  --cabinet-radius: 32px;
  --btn-radius: 999px;
  --card-border: 1px solid rgba(255, 79, 163, 0.28);
  --card-shadow: 0 18px 40px rgba(255, 79, 163, 0.16);
  color-scheme: light;
}
[data-theme="abyss"] {
  --bg: #050308;
  --bg-2: #0a0612;
  --glass: #0c0814;
  --glass-strong: #120c1c;
  --line: rgba(155, 107, 255, 0.4);
  --line-strong: rgba(155, 107, 255, 0.7);
  --ink: #f2eaff;
  --muted: #9a8cb8;
  --accent: #9b6bff;
  --accent-2: #c4a6ff;
  --accent-ink: #120818;
  --btn-ink: #f4eeff;
  --sand: #c4a6ff;
  --moss: #9b6bff;
  --blood: #ff7aa2;
  --field: #0c0814;
  --shadow: none;
  --glow: rgba(155, 107, 255, 0.22);
  --shard: transparent;
  --crack: transparent;
  --theme-color: #050308;
  --radius: 0px;
  --radius-sm: 0px;
  --card-radius: 0px;
  --cabinet-radius: 0px;
  --btn-radius: 0px;
  --card-border: 1px solid rgba(155, 107, 255, 0.55);
  --card-shadow: none;
  color-scheme: dark;
}
[data-theme="bunker"] {
  --bg: #171b12;
  --bg-2: #222818;
  --glass: #23291a;
  --glass-strong: #2c331f;
  --line: rgba(198, 211, 106, 0.28);
  --line-strong: rgba(198, 211, 106, 0.5);
  --ink: #e7ecd4;
  --muted: #a3aa84;
  --accent: #c6d36a;
  --accent-2: #8ea040;
  --accent-ink: #14180e;
  --btn-ink: #14180e;
  --sand: #e7ecd4;
  --moss: #c6d36a;
  --blood: #d08a6a;
  --field: #23291a;
  --shadow: none;
  --glow: rgba(198, 211, 106, 0.16);
  --shard: transparent;
  --crack: transparent;
  --theme-color: #171b12;
  --radius: 4px;
  --radius-sm: 4px;
  --card-radius: 4px;
  --cabinet-radius: 4px;
  --btn-radius: 2px;
  --card-border: 1px solid rgba(198, 211, 106, 0.4);
  --card-shadow: none;
  color-scheme: dark;
}
[data-theme="bunker"] h1,
[data-theme="bunker"] h2,
[data-theme="bunker"] h3,
[data-theme="bunker"] .brand {
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

:root {
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.45, 0.64, 1);
  --dur-fast: 180ms;
  --dur-mid: 280ms;
  --dur-slow: 400ms;
  --space: 14px;
  --type-sm: 13px;
  --type-md: 16px;
  --type-lg: 22px;
  --font-mono: "Cascadia Mono", Consolas, ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
html {
  background: var(--bg);
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--accent) 55%, transparent) transparent;
  transition: background var(--dur-slow) var(--ease-out);
}
body {
  font-family: Manrope, "Segoe UI", sans-serif;
  font-size: var(--type-md);
  color: var(--ink);
  background: var(--bg);
  transition: background var(--dur-slow) var(--ease-out), color 0.35s ease;
  animation: page-in 0.5s var(--ease-out);
}
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--accent); color: var(--accent-ink); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--accent) 48%, transparent);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
a { color: var(--sand); }
a:hover { color: var(--accent-2); }
a.btn:not(.ghost):not(.danger):not(.ok):not(.discord),
.btn:not(.ghost):not(.danger):not(.ok):not(.discord):hover { color: var(--btn-ink, #fff); }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px var(--glow);
}
.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 40;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  text-decoration: none;
}
.skip:focus { top: 12px; }

.stage {
  position: fixed;
  inset: -4%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: var(--bg);
}
html[data-bg] .bg-video { display: none; }
html[data-bg="embers"] { --scene: radial-gradient(circle at 20% 80%, #ff6a2a 0%, transparent 42%), radial-gradient(circle at 80% 20%, #7a1e08 0%, transparent 46%), #1a0c08; }
html[data-bg="fog"] { --scene: radial-gradient(circle at 50% 40%, rgba(180, 190, 200, 0.35), transparent 55%), linear-gradient(180deg, #2a3140, #12161c); }
html[data-bg="dunes"] { --scene: radial-gradient(ellipse at 50% 120%, #e2b56a 0%, transparent 50%), linear-gradient(180deg, #f0d7a4, #c4843a 70%, #6a3a16); }
html[data-bg="grove"] { --scene: radial-gradient(circle at 30% 20%, rgba(140, 200, 90, 0.35), transparent 40%), linear-gradient(180deg, #14301c, #07140c); }
html[data-bg="metal"] { --scene: repeating-linear-gradient(135deg, #2a2420 0 12px, #1a1614 12px 24px); }
html[data-bg="aurora"] { --scene: radial-gradient(circle at 20% 30%, rgba(80, 220, 180, 0.45), transparent 36%), radial-gradient(circle at 70% 20%, rgba(120, 80, 255, 0.4), transparent 40%), linear-gradient(180deg, #061018, #12081c); }
html[data-bg="storm"] { --scene: radial-gradient(circle at 60% 10%, rgba(180, 200, 230, 0.35), transparent 28%), linear-gradient(180deg, #1a2030, #070a12 70%); }
html[data-bg="grid"] { --scene: linear-gradient(rgba(90, 170, 255, 0.22) 1px, transparent 1px), linear-gradient(90deg, rgba(90, 170, 255, 0.22) 1px, transparent 1px), linear-gradient(180deg, #071422, #04080e); }
html[data-bg="rain"] { --scene: repeating-linear-gradient(105deg, transparent 0 10px, rgba(180, 210, 255, 0.16) 10px 12px), linear-gradient(180deg, #0c1424, #070b14); }
html[data-bg="lava"] { --scene: radial-gradient(circle at 20% 80%, #ff5a1f 0%, transparent 36%), radial-gradient(circle at 70% 30%, #ffb020 0%, transparent 28%), linear-gradient(180deg, #2a0c06, #100402); }
html[data-bg="snow"] { --scene: radial-gradient(circle at 15% 20%, #fff 0 1px, transparent 2px), radial-gradient(circle at 40% 60%, #fff 0 1.5px, transparent 2.5px), radial-gradient(circle at 75% 30%, #fff 0 1px, transparent 2px), linear-gradient(180deg, #e8f2f8, #8ea8bc); }
html[data-bg="nebula"] { --scene: radial-gradient(circle at 30% 40%, rgba(255, 80, 160, 0.45), transparent 32%), radial-gradient(circle at 70% 30%, rgba(80, 80, 255, 0.4), transparent 36%), linear-gradient(180deg, #140818, #05020c); }
html[data-bg="circuit"] { --scene: linear-gradient(rgba(46, 196, 140, 0.2) 1px, transparent 1px), linear-gradient(90deg, rgba(46, 196, 140, 0.2) 1px, transparent 1px), radial-gradient(circle at 20% 30%, rgba(46, 196, 140, 0.35), transparent 8%), #06110c; }
html[data-bg="sunset"] { --scene: linear-gradient(180deg, #ff8a4a 0%, #ff4d6d 38%, #3a1d6e 72%, #120818 100%); }
html[data-bg="abyss"] { --scene: radial-gradient(circle at 50% 120%, rgba(155, 107, 255, 0.35), transparent 42%), linear-gradient(180deg, #020106, #0a0614); }
html[data-bg] body,
html[data-bg] .stage {
  background: var(--scene, var(--bg));
  background-attachment: fixed;
  background-size: cover;
}
html[data-bg="grid"] body,
html[data-bg="grid"] .stage,
html[data-bg="circuit"] body,
html[data-bg="circuit"] .stage { background-size: 32px 32px, 32px 32px, cover; }
html[data-bg="snow"] body,
html[data-bg="snow"] .stage { background-size: 90px 90px, 140px 140px, 70px 70px, cover; }
html[data-bg="rain"] body,
html[data-bg="rain"] .stage { background-size: auto, cover; }
html[data-bg="custom"] body,
html[data-bg="custom"] .stage {
  background-image: linear-gradient(180deg, color-mix(in srgb, var(--bg) 42%, transparent), color-mix(in srgb, var(--bg) 62%, transparent)), var(--look-image);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
body.auth-scene {
  background: var(--bg);
}
body.auth-scene .stage {
  background: var(--bg);
}
body.auth-scene .stage .orb,
body.auth-scene .stage .shards { display: none; }
body.auth-scene .vignette {
  background: radial-gradient(ellipse at center, transparent 46%, rgba(0, 0, 0, 0.55) 100%);
}
.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border: 0;
  pointer-events: none;
  filter: saturate(0.9) contrast(1.05) brightness(0.78);
}
.video-wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 28%, transparent), color-mix(in srgb, var(--bg) 46%, transparent));
}
[data-scheme="light"] .video-wash {
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 18%, transparent), color-mix(in srgb, var(--bg) 32%, transparent));
}
.orb {
  position: absolute;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow), transparent 68%);
  filter: blur(10px);
  animation: orb 34s ease-in-out infinite;
}
.o1 { top: -180px; left: -160px; }
.o2 { right: -200px; bottom: -160px; width: 520px; height: 520px; animation-duration: 42s; animation-delay: -14s; }
.o3 { left: 38%; bottom: -240px; width: 380px; height: 380px; animation-duration: 48s; animation-delay: -20s; }
.shards { position: absolute; inset: 0; width: 100%; height: 100%; }
.shard {
  fill: var(--shard);
  stroke: var(--crack);
  stroke-width: 1.2;
  transform-box: fill-box;
  transform-origin: center;
  animation: drift 22s ease-in-out infinite;
}
.s2 { animation-duration: 28s; animation-delay: -6s; }
.s3 { animation-duration: 26s; animation-delay: -11s; }
.s4 { animation-duration: 32s; animation-delay: -4s; }
.s5 { animation-duration: 24s; animation-delay: -15s; }
.s6 { animation-duration: 30s; animation-delay: -8s; }
.vignette {
  position: fixed;
  inset: 0;
  z-index: 7;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 42%, color-mix(in srgb, var(--bg) 62%, transparent) 100%);
}
.grain {
  position: fixed;
  inset: -20%;
  z-index: 8;
  pointer-events: none;
  opacity: 0.08;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.55'/></svg>");
}
[data-scheme="light"] .grain { opacity: 0.07; mix-blend-mode: multiply; }

.mesh, .leaves {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.mesh { z-index: 1; }
.leaves { z-index: 2; }

.wrap {
  position: relative;
  z-index: 4;
  width: min(1360px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 64px;
}
.muted { color: var(--muted); }
.small { font-size: var(--type-sm); line-height: 1.45; }
.card, .glass-bar {
  position: relative;
  isolation: isolate;
  background: rgba(18, 18, 18, 0.46);
  border: var(--card-border, 1px solid rgba(255, 255, 255, 0.1));
  border-radius: var(--card-radius, 16px);
  box-shadow: var(--card-shadow, none);
  overflow: hidden;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
[data-scheme="light"] .card,
[data-scheme="light"] .glass-bar {
  background: rgba(255, 250, 244, 0.58);
}
.card::before, .glass-bar::before,
.card::after, .glass-bar::after { content: none; }
.card > *, .glass-bar > * { position: relative; z-index: 1; }
.card > .ticks { display: none; }
.card, .member-card, .btn {
  --rx: 0deg;
  --ry: 0deg;
  --mx: 50%;
  --my: 20%;
  --pull-x: 0px;
  --pull-y: 0px;
  transition: translate var(--dur-mid) var(--ease-out), background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  border-color: var(--line);
}
.stack > .card:hover {
  translate: 0 -2px;
}
.card:focus-within {
  box-shadow: var(--shadow), 0 0 0 1px var(--accent);
}
.card[data-tone="ok"] { box-shadow: inset 3px 0 0 var(--moss), var(--shadow); }
.card[data-tone="bad"] { box-shadow: inset 3px 0 0 var(--blood), var(--shadow); }
.gate { width: min(560px, 100%); margin: 24px auto; padding: 28px 26px 24px; }
body.auth-scene .wrap {
  min-height: calc(100dvh - 28px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 12px;
  padding-bottom: 28px;
}
.gate.auth {
  width: min(420px, 100%);
  margin: 0;
  padding: 28px 32px 32px;
  text-align: center;
  border-color: rgba(255, 208, 64, 0.35);
  box-shadow:
    inset 0 0 16px rgba(255, 196, 40, 0.08),
    0 0 10px rgba(255, 196, 40, 0.16);
}
.gate.auth:hover { border-color: rgba(255, 208, 64, 0.35); }
.gate.auth:focus-within {
  box-shadow:
    inset 0 0 16px rgba(255, 196, 40, 0.08),
    0 0 10px rgba(255, 196, 40, 0.16);
}
.eyebrow.luxury { display: flex; justify-content: center; letter-spacing: 0; margin: 0 0 6px; }
.eyebrow.luxury::before { content: none; }
.bot-emoji { width: 28px; height: 28px; object-fit: contain; }
.btn .bot-emoji,
.btn svg { width: 18px; height: 18px; flex: none; }
.gate.auth .eyebrow { color: var(--sand); letter-spacing: 0; font-size: 22px; margin: 0 0 6px; }
.gate.auth .eyebrow.luxury::before { content: none; }
.gate.auth .mark {
  font-size: 64px;
  background: none;
  color: var(--ink);
  letter-spacing: -0.05em;
}
.gate.auth .lead { margin: 8px auto 0; font-size: 15px; max-width: 28ch; }
.gate.auth .section-title {
  margin: 22px 0 0;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.gate.auth .help, .gate.auth .note { text-align: left; }
.auth-panel {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
.auth-panel .btn.discord {
  width: 100%;
  min-height: 48px;
}
.auth-panel .help { margin: 0; }
.gate-tools, .head-tools { display: flex; justify-content: flex-end; align-items: center; gap: 10px; flex-wrap: wrap; }
.gate-tools { margin-bottom: 6px; }
.eyebrow {
  margin: 0 0 8px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sand);
  font-size: 12px;
  font-weight: 700;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: 1px;
}
h1, h2, h3, .brand, .mark, .count-num {
  font-family: var(--display, Unbounded, Bahnschrift, sans-serif);
  font-weight: 600;
  letter-spacing: 0.01em;
}
h2 { margin: 0 0 12px; font-size: 26px; }
h3 { margin: 0 0 8px; font-size: 18px; }
.mark {
  margin: 0;
  font-size: 78px;
  line-height: 0.85;
  letter-spacing: -0.05em;
  background: linear-gradient(120deg, var(--ink) 10%, var(--accent) 55%, var(--sand));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead { color: var(--muted); margin: 10px 0 18px; line-height: 1.55; }
label { display: block; margin: 14px 0 6px; font-size: 14px; font-weight: 600; }
input, textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--field);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.35s ease, color 0.35s ease;
}
::placeholder { color: var(--muted); opacity: 0.85; transition: opacity 0.2s ease; }
input:focus::placeholder, textarea:focus::placeholder { opacity: 0.45; }
textarea { min-height: 110px; resize: vertical; }
textarea.short { min-height: 76px; }
input:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--glow);
}
input:-webkit-autofill,
textarea:-webkit-autofill {
  -webkit-text-fill-color: var(--ink);
  caret-color: var(--ink);
  box-shadow: 0 0 0 1000px var(--field) inset;
  transition: background-color 9999s ease-out;
}
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.auth-switch { margin-bottom: 14px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 0;
  border-radius: var(--btn-radius, 999px);
  padding: 10px 18px;
  background: var(--accent);
  color: var(--btn-ink, #fff);
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: none;
  text-decoration: none;
  transition: background var(--dur-fast) ease, border-color var(--dur-fast) ease, box-shadow var(--dur-mid) var(--ease-out);
}
.btn:hover {
  background: var(--accent-2);
  translate: none;
  scale: 1;
  box-shadow: none;
  animation: none;
}
.btn:not(.ghost):not(.danger):not(.ok):not(.discord):not(.cabinet):not(.alert) {
  animation: none;
}
.btn.discord {
  background: #5865f2;
  color: #fff;
  box-shadow: 0 8px 18px rgba(88, 101, 242, 0.28);
  animation: btn-live 2.8s ease-in-out infinite;
}
.btn.discord:hover { background: #4752c4; translate: 0 -2px; scale: 1.03; animation: none; }
.wait-face:not(:empty) { margin: 8px 0 4px; }
.btn:active { scale: 0.98; }
.btn:disabled { opacity: 0.55; cursor: wait; translate: none; scale: none; }
.btn.is-busy::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex: none;
}
.btn.is-done { background: var(--moss); color: #10210f; }
.ripple {
  position: absolute;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  pointer-events: none;
  animation: ripple 0.6s var(--ease-out) forwards;
}
.prose { white-space: pre-wrap; line-height: 1.55; margin: 0; max-width: 68ch; }
.clamp {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.btn.ghost, .btn.danger, .btn.ok {
  background: color-mix(in srgb, var(--field) 88%, transparent);
  border: 0;
  color: var(--ink);
  box-shadow: none;
}
.btn.ghost:hover, .btn.danger:hover, .btn.ok:hover,
a.btn.ghost:hover, a.btn.danger:hover, a.btn.ok:hover {
  background: var(--glass-strong);
  translate: 0 -2px;
  scale: 1.03;
}
.btn.ghost:hover, a.btn.ghost:hover { color: var(--ink); }
.btn.danger:hover, a.btn.danger:hover { color: var(--blood); }
.btn.ok:hover, a.btn.ok:hover { color: var(--moss); }
.btn.ok { background: color-mix(in srgb, var(--moss) 22%, var(--field)); color: var(--moss); }
.btn.ok.is-flash { background: color-mix(in srgb, var(--moss) 34%, var(--field)); }
.btn.danger { background: color-mix(in srgb, var(--blood) 20%, var(--field)); color: var(--blood); }
.btn.cabinet {
  gap: 10px;
  min-height: 52px;
  padding: 12px 18px 12px 16px;
  background: #2ebd5f;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
  animation: none;
}
.btn.cabinet::before { content: none; }
.btn.cabinet svg { flex: none; }
.btn.cabinet svg:last-child { margin-left: 2px; opacity: 0.9; }
.btn.cabinet:hover {
  background: #3dce70;
  color: #fff;
  translate: none;
  scale: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
  animation: none;
}
.site-mark {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 14%;
  object-fit: cover;
  flex: none;
}
.gate-mark { width: 88px; height: 88px; margin: 2px 0 14px; }
.brand-mark { width: 36px; height: 36px; }
.site-brand { display: flex; align-items: center; gap: 10px; }
.home-hero { display: grid; justify-items: start; gap: 16px; }
.home-board {
  display: grid;
  gap: 18px;
}
.home-wipe {
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 18px 18px 16px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(115deg, rgba(242, 92, 29, 0.14), rgba(14, 14, 14, 0.55) 42%),
    rgba(14, 14, 14, 0.42);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  text-align: center;
}
.home-wipe-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.home-wipe-label {
  margin: 0;
  font-family: Unbounded, Bahnschrift, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.home-wipe-digits {
  display: flex;
  gap: 10px;
  width: min(100%, 420px);
}
.home-wipe-digits[hidden] { display: none; }
.home-wipe-cell {
  flex: 1;
  min-width: 0;
  padding: 10px 6px 8px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.home-wipe-num {
  margin: 0;
  font-variant-numeric: tabular-nums;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent, #ff6a2a);
}
.home-wipe-cap {
  margin: 2px 0 0;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b7b0aa;
}
@media (max-width: 640px) {
  .home-wipe-num { font-size: 24px; }
}
.discord-dock {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr);
  gap: 14px;
  align-items: stretch;
  padding: 14px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(115deg, rgba(242, 92, 29, 0.05), rgba(14, 14, 14, 0.55) 38%),
    rgba(14, 14, 14, 0.42);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.presence-note { margin: 8px 12px; }
.presence-col {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  border-radius: 22px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.presence-col.is-voice { border-top: 2px solid rgba(242, 92, 29, 0.38); }
.presence-col.is-online { border-top: 2px solid rgba(59, 165, 93, 0.34); }
.presence-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.presence-title {
  margin: 0;
  font-family: Unbounded, Bahnschrift, sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.presence-count {
  min-width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-family: Unbounded, Bahnschrift, sans-serif;
  font-size: 14px;
  font-weight: 700;
}
.presence-col.is-voice .presence-count { background: rgba(242, 92, 29, 0.1); color: #c99274; }
.presence-col.is-online .presence-count { background: rgba(59, 165, 93, 0.1); color: #8fb89a; }
.presence-channels { display: grid; gap: 10px; max-height: 320px; overflow: auto; }
.presence-col .voice-online { max-height: 320px; overflow: auto; }
[data-scheme="light"] .discord-dock {
  border-color: rgba(42, 33, 24, 0.1);
  background:
    linear-gradient(115deg, rgba(196, 132, 58, 0.12), rgba(255, 250, 244, 0.9) 42%),
    rgba(255, 250, 244, 0.72);
  box-shadow: 0 18px 36px rgba(70, 40, 10, 0.1);
}
[data-scheme="light"] .presence-col {
  background: rgba(255, 252, 247, 0.72);
  border-color: rgba(42, 33, 24, 0.08);
}
[data-scheme="light"] .presence-count { background: rgba(42, 33, 24, 0.06); color: inherit; }
.home-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(220px, 1fr);
  gap: 14px;
  align-items: start;
}
.home-reel { display: grid; gap: 14px; min-width: 0; overflow: hidden; }
.home-track {
  display: flex;
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  cursor: grab;
  touch-action: pan-y;
}
.home-track.is-drag,
.home-track.is-jump {
  scroll-snap-type: none;
  scroll-behavior: auto;
  cursor: grabbing;
  user-select: none;
}
.home-track::-webkit-scrollbar { display: none; }
.promo-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  flex: 0 0 100%;
  width: 100%;
  box-sizing: border-box;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 148px;
  gap: 22px;
  align-items: center;
  height: 260px;
  min-height: 260px;
  padding: 26px 28px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #120e0c;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}
.promo-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
}
.promo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 7, 6, 0.9) 0%, rgba(8, 7, 6, 0.62) 26%, rgba(8, 7, 6, 0.12) 48%, rgba(8, 7, 6, 0) 64%);
  pointer-events: none;
  z-index: 0;
}
.promo-copy,
.promo-art { position: relative; z-index: 1; }
.tone-hello::before { background-image: url("/art/promo-hello.jpg"); background-position: right center; }
.tone-shop::before { background-image: url("/art/promo-shop.jpg"); background-position: right center; }
.tone-news::before { background-image: url("/art/promo-news.jpg"); background-position: right center; }
.tone-moments::before { background-image: url("/art/promo-moments.jpg"); background-position: right center; }
.tone-chat::before { background-image: url("/art/promo-chat.jpg"); background-position: right center; }
.tone-recruit::before { background-image: url("/art/promo-recruit.jpg"); background-position: right center; }
.tone-cabinet::before { background-image: url("/art/promo-cabinet.jpg"); background-position: right center; }
.promo-card.is-fixed { width: 100%; height: 260px; }
.promo-card.tone-hello {
  background:
    linear-gradient(120deg, rgba(242, 92, 29, 0.28), rgba(14, 14, 14, 0.55) 42%),
    rgba(14, 14, 14, 0.42);
  border-color: rgba(242, 92, 29, 0.45);
}
.promo-card.tone-shop {
  background:
    linear-gradient(120deg, rgba(201, 132, 63, 0.08), rgba(14, 14, 14, 0.62) 46%),
    rgba(14, 14, 14, 0.42);
  border-color: rgba(255, 255, 255, 0.1);
}
.promo-card.tone-news {
  background:
    linear-gradient(120deg, rgba(126, 182, 255, 0.22), rgba(14, 14, 14, 0.62) 48%),
    rgba(14, 14, 14, 0.42);
  border-color: rgba(126, 182, 255, 0.4);
}
.promo-card.tone-cabinet {
  background:
    linear-gradient(160deg, rgba(46, 189, 95, 0.16), rgba(14, 14, 14, 0.62) 50%),
    rgba(14, 14, 14, 0.42);
  border-color: rgba(46, 189, 95, 0.35);
}
.promo-card.tone-moments {
  background:
    linear-gradient(120deg, rgba(232, 92, 154, 0.24), rgba(14, 14, 14, 0.6) 48%),
    rgba(14, 14, 14, 0.42);
  border-color: rgba(232, 92, 154, 0.4);
}
.promo-card.tone-chat {
  background:
    linear-gradient(120deg, rgba(92, 214, 196, 0.2), rgba(14, 14, 14, 0.6) 48%),
    rgba(14, 14, 14, 0.42);
  border-color: rgba(92, 214, 196, 0.38);
}
.promo-card.tone-recruit {
  background:
    linear-gradient(120deg, rgba(230, 193, 90, 0.22), rgba(14, 14, 14, 0.6) 48%),
    rgba(14, 14, 14, 0.42);
  border-color: rgba(230, 193, 90, 0.42);
}
.promo-card.tone-server {
  background:
    linear-gradient(120deg, rgba(242, 140, 60, 0.24), rgba(14, 14, 14, 0.62) 48%),
    rgba(14, 14, 14, 0.42);
  border-color: rgba(242, 140, 60, 0.4);
}
.promo-card.tone-binds {
  background:
    linear-gradient(120deg, rgba(126, 168, 255, 0.22), rgba(14, 14, 14, 0.62) 48%),
    rgba(14, 14, 14, 0.42);
  border-color: rgba(126, 168, 255, 0.4);
}
.ak-mark { width: 88px; height: 88px; display: block; object-fit: contain; }
.shop-head {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 8px;
}
.shop-head .ak-mark { width: 96px; height: 96px; flex: none; }
.shop-copy { display: grid; gap: 6px; min-width: 0; }
.shop-copy .lead { margin: 0; }
.promo-copy { display: grid; gap: 10px; justify-items: start; align-content: center; min-width: 0; }
.promo-kicker {
  margin: 0;
  color: #ffb088;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.tone-shop .promo-kicker { color: #b9a27a; }
.tone-news .promo-kicker { color: #9ec4ff; }
.tone-cabinet .promo-kicker { color: #8fdfab; }
.tone-moments .promo-kicker { color: #f3a3c4; }
.tone-chat .promo-kicker { color: #9eefe4; }
.tone-recruit .promo-kicker { color: #f0d48a; }
.tone-server .promo-kicker { color: #ffb088; }
.tone-binds .promo-kicker { color: #b7cfff; }
.promo-title {
  margin: 0;
  font-family: Unbounded, Bahnschrift, sans-serif;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.promo-text {
  margin: 0;
  max-width: 34ch;
  color: #c8c8c8;
  font-size: 15px;
  line-height: 1.4;
}
.promo-go {
  width: auto;
  border-radius: 999px;
  background: #f25c1d;
  color: #fff;
}
.promo-art {
  display: grid;
  place-items: center;
  width: 148px;
  height: 148px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.tone-shop .promo-art,
.tone-news .promo-art,
.tone-hello .promo-art,
.tone-cabinet .promo-art,
.tone-moments .promo-art,
.tone-chat .promo-art,
.tone-recruit .promo-art,
.tone-server .promo-art,
.tone-binds .promo-art { background: transparent; border: 0; }
.promo-art .res-icon,
.promo-art .ak-mark,
.promo-mark { width: 96px; height: 96px; object-fit: contain; }
.close-mark { width: 16px; height: 16px; display: block; object-fit: contain; }
.home-reel-foot { display: flex; align-items: center; justify-content: center; gap: 14px; }
.home-caption {
  margin: 0;
  color: #f2f2f2;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.home-dots { display: flex; justify-content: center; gap: 7px; }
.home-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
}
.home-dots button.on { width: 22px; background: #f25c1d; }
[data-scheme="light"] .promo-card {
  background: #fffaf4;
  border-color: rgba(42, 33, 24, 0.08);
}
[data-scheme="light"] .promo-card::after {
  background: linear-gradient(90deg, rgba(255, 250, 244, 0.94) 0%, rgba(255, 250, 244, 0.7) 28%, rgba(255, 250, 244, 0.12) 50%, rgba(255, 250, 244, 0) 66%);
}
[data-scheme="light"] .promo-text { color: #5c5148; }
[data-scheme="light"] .promo-art { background: rgba(255, 255, 255, 0.7); }
[data-scheme="light"] .tone-shop .promo-art,
[data-scheme="light"] .tone-news .promo-art,
[data-scheme="light"] .tone-hello .promo-art,
[data-scheme="light"] .tone-cabinet .promo-art,
[data-scheme="light"] .tone-moments .promo-art,
[data-scheme="light"] .tone-chat .promo-art,
[data-scheme="light"] .tone-recruit .promo-art,
[data-scheme="light"] .tone-server .promo-art,
[data-scheme="light"] .tone-binds .promo-art { background: transparent; border: 0; }
[data-scheme="light"] .home-caption { color: #2a2118; }
[data-scheme="light"] .home-dots button { background: rgba(42, 33, 24, 0.2); }
.widget-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}
.widget-clan { border-top: 3px solid #f25c1d; }
.widget-ally { border-top: 3px solid #7c8cff; }
.widget-ally .voice-brand { color: #9aa6ff; }
[data-scheme="light"] .widget-ally .voice-brand { color: #4d5ed6; }
.widget-grid .voice-channels { grid-template-columns: 1fr; }
.voice-board { display: grid; gap: 16px; align-content: start; height: 100%; }
.voice-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.voice-titles { min-width: 0; }
.voice-brand {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.voice-head .section-title { margin: 0; }
.voice-count {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  min-height: 40px;
  padding: 0 14px 0 12px;
  border-radius: 999px;
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.voice-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3ba55d;
  box-shadow: 0 0 0 4px rgba(59, 165, 93, 0.16);
}
.voice-count strong {
  font-family: Unbounded, Bahnschrift, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
}
.voice-count span:last-child { color: var(--muted); font-size: 13px; font-weight: 600; }
.voice-block { display: grid; gap: 10px; }
.voice-kicker {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.voice-channels { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.voice-channel {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 12px;
  border-radius: 18px;
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.voice-channel h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 15px;
}
.voice-channel h3 svg { color: var(--accent); flex: none; }
.voice-channel-count {
  margin-left: auto;
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(255, 106, 42, 0.14);
  color: #ff8a55;
  font-size: 12px;
  font-weight: 700;
}
.voice-person, .voice-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  --voice-edge: #141414;
}
.voice-person {
  padding: 6px 8px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  --voice-edge: #171717;
}
.voice-chip {
  padding: 5px 12px 5px 5px;
  border-radius: 999px;
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.voice-online { display: flex; flex-wrap: wrap; gap: 8px; }
.voice-face { position: relative; flex: none; display: inline-flex; }
.voice-face .avatar { box-shadow: none; animation: none; }
.voice-dot {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid var(--voice-edge);
}
.voice-dot.online { background: #3ba55d; }
.voice-dot.idle { background: #f0b429; }
.voice-dot.dnd { background: #ed4245; }
.voice-copy { min-width: 0; display: grid; }
.voice-copy strong, .voice-copy p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.voice-copy p { margin: 0; }
.voice-empty { margin: 0; }
[data-scheme="light"] .voice-count,
[data-scheme="light"] .voice-channel,
[data-scheme="light"] .voice-chip {
  background: rgba(255, 252, 247, 0.9);
  border-color: rgba(42, 33, 24, 0.1);
}
[data-scheme="light"] .voice-person { background: rgba(42, 33, 24, 0.04); --voice-edge: #f7f1e8; }
[data-scheme="light"] .voice-chip,
[data-scheme="light"] .voice-count { --voice-edge: #fffdf9; }
@media (max-width: 900px) {
  .widget-grid { grid-template-columns: 1fr; }
  .voice-head { align-items: flex-start; }
  .voice-channels { grid-template-columns: 1fr; }
}
.btn.tiny { min-height: 34px; padding: 6px 14px; border-radius: 999px; font-size: var(--type-sm); }
.btn.back::before { content: "←"; }
.error, .note {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  animation: note-in 0.35s var(--ease-out);
}
.error {
  background: color-mix(in srgb, var(--blood) 16%, transparent);
  color: var(--blood);
}
.error::before { content: "! "; font-weight: 800; }
.note {
  background: color-mix(in srgb, var(--sand) 16%, transparent);
  color: var(--sand);
  overflow-wrap: anywhere;
}
.error.shake { animation: shake 0.35s var(--ease-out); }
.wait-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sand);
}
.gate.wait {
  background:
    radial-gradient(ellipse 80% 42% at 50% 0%, rgba(255, 106, 42, 0.16), transparent 68%),
    var(--field);
}
.wait-scene {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-top: 6px;
  text-align: center;
}
.wait-clock {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  border: 1px solid color-mix(in srgb, var(--sand) 35%, var(--line));
  background: color-mix(in srgb, var(--sand) 12%, transparent);
  animation: wait-glow 2.4s ease-in-out infinite;
}
.wait-clock .bot-emoji { width: 40px; height: 40px; }
.wait-nick {
  margin: 0;
  font-family: Unbounded, Bahnschrift, sans-serif;
  font-size: 22px;
  font-weight: 600;
}
.wait-age { margin: 0; color: var(--sand); font-weight: 700; }
.wait-steps {
  list-style: none;
  width: min(340px, 100%);
  margin: 4px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
  text-align: left;
}
.wait-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 8px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  color: var(--muted);
}
.wait-steps li .bot-emoji { width: 18px; height: 18px; }
.wait-steps li.on {
  color: var(--ink);
  border-color: color-mix(in srgb, var(--moss) 45%, var(--line));
}
.wait-steps li.now {
  color: var(--ink);
  border-color: color-mix(in srgb, var(--sand) 55%, var(--line));
  background: color-mix(in srgb, var(--sand) 12%, transparent);
}
@keyframes wait-glow {
  0%, 100% { opacity: 0.72; }
  50% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .wait-clock { animation: none; }
}
.top, .page-head {
  margin-bottom: 18px;
  padding: 14px 16px;
  position: sticky;
  top: 12px;
  z-index: 5;
}
.top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.page-head { display: grid; }
.page-head.glass-bar { overflow: visible; }
.page-head.glass-bar::before { border-radius: inherit; }
.head-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 16px;
  min-width: 0;
}
.page-head .admin-nav { width: 100%; margin: 14px 0 0; }
.admin-pane { display: none; }
.admin-pane.on { display: grid; gap: 14px; }
.admin-tab-count {
  min-width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  padding: 0 5px;
  border-radius: 999px;
  background: #e15b52;
  color: #fff;
  font-size: 11px;
  line-height: 1;
}
.admin-tab-count[hidden] { display: none; }
.nav button.on .admin-tab-count { background: #fff; color: #c44536; }
.head-bar .nav {
  flex: 1 1 100%;
  order: 3;
  width: 100%;
  min-width: 0;
  max-width: none;
  margin-inline: 0;
  justify-content: flex-start;
}
.brand-block, .head-tools { flex: none; }
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.section-title {
  margin: 0 0 12px;
  text-align: left;
  font-size: var(--type-lg);
  line-height: 1.2;
}
.section-head .section-title { flex: 1; margin: 0; }
.hello-copy {
  display: grid;
  justify-items: start;
  gap: 8px;
  min-width: 0;
}
.hello-copy .stamp { transform: none; }
.hello-copy .section-title { margin-bottom: 0; }
.hello + .btn { margin-top: 16px; }
.profile-name {
  margin: 0;
  font-family: Unbounded, Bahnschrift, sans-serif;
  font-size: var(--type-lg);
  font-weight: 600;
  text-align: left;
}
.brand-block { min-width: 0; }
.brand {
  font-size: 34px;
  line-height: 0.9;
  margin: 0;
  transition: font-size var(--dur-mid) var(--ease-out);
}
.side { display: grid; justify-items: end; gap: 10px; }
.nav {
  position: relative;
  display: flex;
  gap: 4px;
  flex-wrap: nowrap;
  width: auto;
  max-width: 100%;
  overflow-x: auto;
  padding: 5px;
  background: rgba(18, 18, 18, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  box-shadow: none;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }
.nav button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 9px 12px;
  color: #9a9a9a;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  transition: background var(--dur-fast) ease, color var(--dur-fast) ease;
}
.nav button:hover { color: #f2f2f2; background: rgba(255, 255, 255, 0.1); }
.nav button.on {
  color: #fff;
  font-weight: 700;
  background: rgba(242, 92, 29, 0.92);
  box-shadow: none;
}
[data-scheme="light"] .nav {
  background: rgba(255, 248, 240, 0.48);
  border-color: rgba(42, 33, 24, 0.14);
}
[data-scheme="light"] .nav button { color: #6f6256; }
[data-scheme="light"] .nav button:hover { color: #2a2118; background: rgba(42, 33, 24, 0.06); }
[data-scheme="light"] .nav button.on { color: #fff; background: #f25c1d; }
.nav button.has-alert::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 50%;
  width: 7px;
  height: 7px;
  margin-left: -3.5px;
  border-radius: 50%;
  background: #e15b52;
}
a.theme-toggle { text-decoration: none; color: var(--sand); }
.theme-toggle {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 0;
  background: var(--field);
  color: var(--sand);
  box-shadow: inset 0 1px 0 var(--line-strong);
  transition: background var(--dur-fast) ease, color var(--dur-fast) ease, translate var(--dur-fast) ease;
}
.theme-toggle:hover { color: var(--accent); translate: 0 -1px; }
.theme-toggle svg { animation: icon-in 0.28s var(--ease-out); }
.themes {
  position: relative;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 4px;
  border-radius: 999px;
  background: var(--field);
  border: 1px solid var(--line);
}
.themes button {
  position: relative;
  z-index: 1;
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
}
.themes button.on { color: var(--accent-ink); background: var(--accent); }
.look-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.look-swatch, .look-scene {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-height: 72px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--field);
  color: var(--ink);
  text-align: left;
}
.look-swatch.on, .look-scene.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.look-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
}
.look-name { font-size: 12px; font-weight: 700; }
.look-stage {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
}
.look-stage-bar {
  display: flex;
  gap: 6px;
  width: fit-content;
  padding: 4px;
  border-radius: 999px;
  background: var(--field);
}
.look-stage-pill {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.look-stage-pill.on { background: var(--accent); color: var(--accent-ink); }
.look-stage-card {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 14px;
  background: var(--field);
  border: 1px solid var(--line);
}
.look-stage-card p { margin: 0; color: var(--muted); font-size: 13px; }
.look-stage-btn {
  justify-self: start;
  padding: 8px 14px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
}
.look-hue { width: 100%; accent-color: var(--accent); }
.look-summary { display: flex; align-items: center; gap: 12px; }
.look-summary .muted { margin: 0; }
.look-current {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.look-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  justify-content: flex-end;
  background: rgba(0, 0, 0, 0.45);
}
.look-sheet {
  width: min(520px, 100%);
  height: 100%;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px 16px 24px;
  background: var(--glass-strong, #1c1c1c);
  border-left: 1px solid var(--line);
  box-shadow: -16px 0 40px rgba(0, 0, 0, 0.35);
}
.look-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.look-sheet-head h2 { margin: 0; font-size: 20px; }
.look-field {
  position: relative;
  height: 168px;
  border-radius: 14px;
  cursor: crosshair;
  touch-action: none;
  background:
    linear-gradient(to top, #000, transparent),
    linear-gradient(to right, #fff, transparent),
    hsl(var(--pick-h), 100%, 50%);
}
.look-knob {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.45);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.look-hue, .look-sat {
  width: 100%;
  height: 14px;
  margin: 0;
  appearance: none;
  border-radius: 999px;
  background: linear-gradient(90deg, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00);
}
.look-sat { background: linear-gradient(90deg, #888, var(--accent)); }
.look-hue::-webkit-slider-thumb,
.look-sat::-webkit-slider-thumb {
  appearance: none;
  width: 16px;
  height: 16px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4);
}
.look-hex {
  width: 100%;
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--field);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.look-sheet-foot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  position: sticky;
  bottom: 0;
  padding-top: 8px;
  background: inherit;
}
.look-sheet .look-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.look-preview {
  width: 100%;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
}
.look-preview[data-scene="embers"] { background: radial-gradient(circle at 20% 80%, #ff6a2a, #1a0c08 70%); }
.look-preview[data-scene="fog"] { background: linear-gradient(180deg, #2a3140, #12161c); }
.look-preview[data-scene="dunes"] { background: linear-gradient(180deg, #f0d7a4, #6a3a16); }
.look-preview[data-scene="grove"] { background: linear-gradient(180deg, #14301c, #07140c); }
.look-preview[data-scene="metal"] { background: repeating-linear-gradient(135deg, #2a2420 0 8px, #1a1614 8px 16px); }
.look-preview[data-scene="aurora"] { background: linear-gradient(135deg, #50dcb4, #7850ff 55%, #061018); }
.look-preview[data-scene="storm"] { background: linear-gradient(180deg, #1a2030, #070a12); }
.look-preview[data-scene="grid"] { background: linear-gradient(rgba(90, 170, 255, 0.45) 1px, transparent 1px), linear-gradient(90deg, rgba(90, 170, 255, 0.45) 1px, transparent 1px), #071422; background-size: 8px 8px, 8px 8px, cover; }
.look-preview[data-scene="rain"] { background: repeating-linear-gradient(105deg, #0c1424 0 6px, #8eb4e0 6px 7px); }
.look-preview[data-scene="lava"] { background: radial-gradient(circle at 30% 80%, #ff5a1f, #100402 70%); }
.look-preview[data-scene="snow"] { background: radial-gradient(circle at 20% 30%, #fff 0 2px, transparent 3px), linear-gradient(180deg, #e8f2f8, #8ea8bc); }
.look-preview[data-scene="nebula"] { background: linear-gradient(135deg, #ff50a0, #5050ff 55%, #05020c); }
.look-preview[data-scene="circuit"] { background: linear-gradient(rgba(46, 196, 140, 0.5) 1px, transparent 1px), linear-gradient(90deg, rgba(46, 196, 140, 0.5) 1px, transparent 1px), #06110c; background-size: 8px 8px, 8px 8px, cover; }
.look-preview[data-scene="sunset"] { background: linear-gradient(180deg, #ff8a4a, #3a1d6e 70%, #120818); }
.look-preview[data-scene="abyss"] { background: radial-gradient(circle at 50% 100%, #9b6bff, #020106 70%); }
.look-preview[data-scene="custom"] {
  background-color: var(--bg);
  background-image: var(--look-image);
  background-size: cover;
  background-position: center;
}
.look-file { display: block; margin-top: 8px; }
@media (max-width: 720px) {
  .look-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.who {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 4px 14px 4px 4px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #1c1c1c;
  box-shadow: none;
  transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease, translate var(--dur-fast) ease;
}
a.who { color: inherit; text-decoration: none; }
.who:hover {
  translate: 0 -1px;
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: none;
}
[data-scheme="light"] .who,
[data-scheme="light"] .btn.cabinet {
  background: #fff8ef;
  color: #2a2118;
  border-color: rgba(42, 33, 24, 0.12);
}
[data-scheme="light"] .who:hover,
[data-scheme="light"] .btn.cabinet:hover {
  background: #fff;
  color: #2a2118;
  box-shadow: none;
}
.who-face { position: relative; display: inline-flex; }
.who-live {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #5f7d58;
  border: 2px solid #121212;
}
.who-copy { display: grid; gap: 1px; line-height: 1.15; min-width: 0; }
.who-nick { font-weight: 700; font-size: 13px; }
.who-role { font-size: 13px; font-weight: 700; color: var(--ink); letter-spacing: 0.01em; }
.account-pill {
  --pill: #171615;
  --pill-ink: #ece8e2;
  --pill-muted: #b7b1a8;
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
  height: 44px;
  margin-left: auto;
  padding: 4px 4px 4px 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--pill);
  color: var(--pill-ink);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  flex: none;
}
.pill-bell,
.pill-name,
.pill-item {
  border: 0;
  background: transparent;
  color: var(--pill-muted);
  font: inherit;
}
.pill-balance {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  margin-right: 4px;
  padding: 0 10px 0 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--pill-ink);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.pill-balance .coin { width: 22px; height: 22px; }
.pill-balance:hover { background: rgba(255, 255, 255, 0.12); }
.pill-bell,
.pill-name {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  border-radius: 999px;
  transition: background var(--dur-fast) ease, color var(--dur-fast) ease;
}
.pill-bell { position: relative; width: 36px; padding: 0; color: #f4efe6; }
.bell-mark { width: 20px; height: 20px; display: block; }
.bell-clapper { stroke: #ff6a2a; }
.pill-bell:hover,
.pill-name:hover,
.account-pill.is-open .pill-name { background: rgba(255, 255, 255, 0.07); }
.pill-name:hover,
.account-pill.is-open .pill-name { color: var(--pill-ink); }
.pill-bell:hover,
.pill-bell.has-alert { color: #fff; animation: bell-shake 1.6s ease-in-out infinite; }
@keyframes bell-shake {
  0%, 70%, 100% { rotate: 0deg; }
  76% { rotate: -10deg; }
  84% { rotate: 8deg; }
  92% { rotate: -4deg; }
}
.bell-count {
  position: absolute;
  top: 1px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ff2d2d;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 0 0 2px #ff6a2a, 0 0 12px rgba(255, 45, 45, 0.95);
  animation: bell-pulse 1.25s ease-in-out infinite;
}
.bell-count[hidden] { display: none; }
@keyframes bell-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.16); }
}
.notice-drop {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 9;
  width: min(340px, calc(100vw - 24px));
  max-height: 360px;
  overflow: auto;
  display: grid;
  gap: 4px;
  padding: 8px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 3px solid #f25c1d;
  background: rgba(16, 16, 16, 0.72);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(16px);
  animation: note-in 0.28s var(--ease-out);
}
.notice {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.notice-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 6px 6px;
}
.notice-bar strong { font-size: 13px; }
.notice-readall {
  border: 0;
  background: transparent;
  color: var(--sand);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.notice-copy { display: grid; gap: 2px; min-width: 0; }
.notice-copy .bot-emoji,
.notice > .bot-emoji { width: 22px; height: 22px; }
button.notice.is-link {
  cursor: pointer;
  transition: background 0.16s var(--ease-out);
}
button.notice:hover,
button.notice:focus-visible,
button.notice.is-link:hover,
button.notice.is-link:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}
.notice.unread {
  background: rgba(255, 70, 32, 0.28);
  box-shadow: inset 4px 0 0 #ff3b30;
}
button.notice.is-link.unread:hover,
button.notice.is-link.unread:focus-visible { background: rgba(255, 70, 32, 0.4); }
.notice-new {
  display: inline-flex;
  width: fit-content;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #ff3b30;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.notice strong { color: var(--pill-ink); font-size: 14px; }
.notice-copy p { margin: 0; color: var(--pill-muted); font-size: 13px; line-height: 1.35; }
.notice-copy time { color: #8d877e; font-size: 12px; }
.notice-go {
  margin-top: 4px;
  color: #ff8a4a;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.notice-empty { margin: 0; padding: 14px 12px; color: var(--pill-muted); font-size: 14px; }
.pill-menu { position: relative; display: flex; }
.pill-name { gap: 8px; max-width: 220px; padding: 0 10px 0 2px; font-size: 14px; font-weight: 600; color: var(--pill-ink); }
.pill-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pill-name > svg { flex: none; transition: transform var(--dur-fast) var(--ease-out); }
.account-pill.is-open .pill-name > svg { transform: rotate(180deg); }
.pill-avatar {
  display: grid;
  width: 32px;
  height: 32px;
  margin: 0;
  border-radius: 50%;
  overflow: hidden;
  flex: none;
}
.pill-avatar .avatar {
  width: 32px;
  height: 32px;
  box-shadow: none;
  animation: none;
  filter: none;
}
.pill-drop {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 8;
  display: none;
  min-width: 196px;
  padding: 6px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #1c1b19;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
}
.account-pill.is-open .pill-drop { display: grid; gap: 2px; animation: note-in 0.2s var(--ease-out); }
.pill-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--pill-ink);
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
}
.pill-item .bot-emoji,
.nav .bot-emoji { width: 18px; height: 18px; object-fit: contain; flex: none; }
.pill-item.news { position: relative; }
.pill-item.news.has-alert::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 26px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff5a52;
}
.pill-item:hover { background: rgba(255, 255, 255, 0.07); color: white; }
.pill-item:last-child { color: #ffb4ae; }
.cabinet-page { width: min(1080px, calc(100% - 32px)); margin: 0 auto; }
.cabinet-page .page-head { padding: 16px 18px; }
.cabinet-page .head-tools { gap: 8px; }
.cabinet-page .head-tools .cabinet-nav,
.cabinet-page .head-tools .cabinet-out {
  min-height: 40px;
  padding: 0 16px 0 14px;
  border-radius: var(--btn-radius, 999px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #1a1a1a;
  color: #f4efe6;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  box-shadow: none;
}
.cabinet-page .head-tools .cabinet-nav svg,
.cabinet-page .head-tools .cabinet-out svg {
  width: 16px;
  height: 16px;
  flex: none;
}
.cabinet-page .head-tools .cabinet-nav:hover,
.cabinet-page .head-tools .cabinet-out:hover {
  translate: none;
  scale: 1;
  background: #262626;
  border-color: rgba(255, 255, 255, 0.22);
}
.cabinet-page .head-tools .cabinet-out {
  color: #ffc9c4;
  background: #241816;
  border-color: rgba(255, 168, 158, 0.32);
}
.cabinet-page .head-tools .cabinet-out:hover {
  background: #2e1e1c;
  border-color: rgba(255, 168, 158, 0.5);
}
[data-scheme="light"] .cabinet-page .head-tools .cabinet-nav,
[data-scheme="light"] .cabinet-page .head-tools .cabinet-out {
  background: #fff;
  color: #2a2118;
  border-color: rgba(42, 33, 24, 0.14);
}
[data-scheme="light"] .cabinet-page .head-tools .cabinet-out {
  color: #9a3b34;
  background: #fff6f4;
  border-color: rgba(180, 70, 60, 0.3);
}
.cabinet-page .btn {
  min-height: 50px;
  padding: 12px 20px;
  border-radius: var(--btn-radius, 999px);
  font-size: 16px;
}
.cabinet-page form .btn { width: 100%; }
.steam-card.steam-need {
  border-color: rgba(225, 91, 82, 0.75);
  box-shadow: 0 0 0 1px rgba(225, 91, 82, 0.45), 0 18px 40px rgba(120, 24, 18, 0.32);
}
.steam-card.steam-ok { border-color: rgba(125, 206, 106, 0.55); }
.steam-board { display: grid; gap: 14px; }
.steam-state {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.steam-state.ok { color: var(--moss); }
.steam-state.bad { color: #ff8d86; }
.steam-nick {
  margin: 0;
  font-family: Unbounded, Bahnschrift, sans-serif;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.05;
}
.steam-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.steam-actions .btn { flex: 1; min-width: 160px; min-height: 52px; }
.btn.alert {
  background: linear-gradient(180deg, #ff9b94, #e0473f);
  color: #2a0908;
  animation: alert-burn 1.35s ease-in-out infinite;
}
.btn.alert:hover {
  background: linear-gradient(180deg, #ffb0aa, #ef5a52);
  box-shadow: 0 0 0 6px rgba(255, 90, 80, 0.18), 0 16px 28px rgba(180, 40, 30, 0.45);
  animation: none;
}
.inbox-alert {
  display: grid;
  gap: 6px;
  padding: 14px 16px 14px 18px;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, #e15b52 62%, var(--line));
  background: color-mix(in srgb, #e15b52 16%, var(--glass-strong));
  color: #f3d2ce;
}
.inbox-alert strong { color: #ffd7d3; }
.inbox-alert a { color: #ffd7d3; font-weight: 700; }
.steam-plaque {
  display: grid;
  gap: 10px;
  margin-top: 8px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--accent) 58%, var(--line));
  background: color-mix(in srgb, var(--accent) 10%, var(--field));
}
.steam-plaque .steam-kicker {
  margin: 0;
  font-family: Unbounded, Bahnschrift, sans-serif;
  font-size: 16px;
}
.steam-plaque .btn { width: 100%; }
.inbox-alert p { margin: 0; }
.who-nick { font-weight: 700; }
.avatar {
  display: block;
  border-radius: 50%;
  flex: none;
  object-fit: cover;
  box-shadow: 0 0 0 2px rgba(110, 230, 145, 0.8), 0 0 18px rgba(60, 200, 100, 0.75);
  animation: avatar-burn 2.4s ease-in-out infinite;
}
.avatar-ring {
  display: inline-flex;
  padding: 3px;
  border-radius: 50%;
  background: conic-gradient(from 120deg, #8dffb0, #1f8a45, #e8ffe9, #3dcc6a, #8dffb0);
  flex: none;
  box-shadow: 0 0 0 3px rgba(80, 210, 120, 0.35), 0 0 22px rgba(60, 210, 110, 0.7);
  animation: avatar-burn 2.2s ease-in-out infinite;
}
.avatar-ring .avatar { box-shadow: none; animation: none; }
.grid { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: var(--space); }
.pad { padding: 22px 24px; }
.map-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.9fr); gap: var(--space); align-items: start; }
.map-desk { display: grid; gap: 14px; align-content: start; }
.map-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.map-steps li {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
}
.map-steps b {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
  background: var(--field);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 12px;
}
.map-actions { display: grid; gap: 8px; }
.map-actions .btn { width: 100%; }
.map-note { margin: 0; min-height: 1.2em; }
.pair-list { display: grid; gap: 8px; }
.server-head { display: flex; gap: 14px; align-items: center; min-width: 0; }
.server-logo, .pair-logo {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  object-fit: cover;
  flex: none;
  background: var(--field);
  border: 1px solid var(--line);
  transition: filter var(--dur-mid) ease, box-shadow var(--dur-mid) var(--ease-out), scale var(--dur-mid) var(--ease-spring);
}
.server-head:hover .server-logo,
.pair:hover .pair-logo,
.news-admin-label:hover .news-admin-thumb {
  filter: brightness(1.16);
  box-shadow: 0 0 22px color-mix(in srgb, var(--accent) 65%, transparent);
  scale: 1.05;
}
.pair-logo { width: 44px; height: 44px; border-radius: 14px; }
.pair {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--field);
}
.pair.on { border-color: color-mix(in srgb, var(--moss) 55%, var(--line)); }
.pair-copy { min-width: 0; flex: 1; display: grid; gap: 2px; }
.pair-copy strong, .file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pair-copy p { margin: 0; }
.pair-flag {
  justify-self: start;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--moss) 18%, transparent);
  color: var(--moss);
  font-size: 12px;
  font-weight: 700;
}
.wipe-stage { display: grid; gap: 14px; }
.wipe-head { display: grid; gap: 4px; }
.wipe-head .section-title,
.wipe-when,
.wipe-mine { margin: 0; }
.wipe-when { color: var(--muted); }
.wipe-picture {
  width: min(100%, 420px);
  border-radius: 16px;
  border: 1px solid var(--line);
}
.wipe-rsvp {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.wipe-choice {
  min-height: 46px;
  padding: 10px 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--field);
  color: inherit;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.wipe-choice.on.yes {
  border-color: transparent;
  background: color-mix(in srgb, var(--moss) 78%, #12301c);
  color: #fff;
}
.wipe-choice.on.late {
  border-color: transparent;
  background: #c4843a;
  color: #fff;
}
.wipe-choice.on.no {
  border-color: transparent;
  background: #b55248;
  color: #fff;
}
.wipe-mine { font-weight: 700; }
.wipe-hint { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
.wipe-late-picks { display: flex; flex-wrap: wrap; gap: 8px; }
.wipe-min {
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--field);
  color: inherit;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.wipe-min.on {
  border-color: transparent;
  background: #c4843a;
  color: #fff;
}
.wipe-delay {
  flex: none;
  padding: 2px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, #c4843a 24%, transparent);
  color: #e6c27a;
  font-size: 12px;
  font-weight: 700;
}
.wipe-lists { display: grid; gap: 10px; }
.wipe-list {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 16px;
  background: var(--field);
}
.wipe-person { display: flex; align-items: center; gap: 8px; min-width: 0; }
.wipe-person span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wipe-person .avatar { width: 28px; height: 28px; }
.wipe-admin-lists { margin-top: 8px; }
@media (max-width: 800px) {
  .wipe-choice { font-size: 14px; }
}
.wipe-map {
  width: min(100%, 760px);
  aspect-ratio: 1;
  display: block;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #1c2822;
  cursor: crosshair;
  box-shadow: var(--shadow), inset 0 0 0 1px var(--line-strong);
}
.map-tip { min-height: 1.4em; margin: 10px 0 0; }
.team-list { display: grid; gap: 8px; margin-top: 8px; }
.map-picks { display: grid; gap: 8px; margin: 12px 0; max-height: 320px; overflow: auto; }
.map-row {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  border-radius: 12px;
  padding: 6px 8px;
  transition: background var(--dur-fast) ease;
}
.map-row label { display: flex; gap: 8px; align-items: center; min-width: 0; margin: 0; }
.map-row.is-hot,
.map-row:has(input:checked) {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}
.map-row input[type="radio"] {
  appearance: none;
  width: 16px;
  height: 16px;
  margin: 0;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  background: transparent;
}
.map-row input[type="radio"]::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  transform: scale(0);
  transition: transform var(--dur-fast) var(--ease-spring);
}
.map-row input[type="radio"]:checked::before { transform: scale(1); }
input[type="file"] { padding: 10px 12px; }
.stack { display: grid; gap: var(--space); }
.hello, .cabinet-hero, .person-id { display: flex; gap: 14px; align-items: center; min-width: 0; }
.cabinet-hero { align-items: flex-start; }
.cabinet-layout {
  grid-template-columns: 1fr;
  align-items: start;
}
.cabinet-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space);
  align-items: start;
}
.cabinet-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.cabinet-chip {
  display: grid;
  gap: 2px;
  min-width: 132px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--field) 78%, transparent);
}
.cabinet-chip-k {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cabinet-chip-v { font-weight: 700; font-variant-numeric: tabular-nums; }
.cabinet-leave {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  border-radius: var(--cabinet-radius, 16px);
  border: 1px dashed var(--line);
  background: transparent;
}
.cabinet-leave p { margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
.cabinet-leave .btn { min-height: 42px; }
.ledger-empty {
  margin: 0;
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--line);
  background: color-mix(in srgb, var(--field) 70%, transparent);
  color: var(--muted);
}
.look-groups { display: grid; gap: 12px; }
.look-group { display: grid; gap: 8px; }
.cabinet-layout > .cabinet-news { grid-column: 1 / -1; }
.cabinet-layout > .cabinet-news:empty { display: none; }
.cabinet-col { display: grid; gap: var(--space); align-content: start; }
.count-num {
  margin: 8px 0;
  font-size: 64px;
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
}
.connect {
  margin: 8px 0 0;
  font-family: var(--font-mono);
  font-size: clamp(18px, 3.4vw, 28px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.03em;
  word-break: break-all;
}
.play-list { display: grid; gap: 8px; }
.play-row {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(12rem, 1.2fr) auto;
  gap: 8px 16px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--field);
}
.play-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: Unbounded, Bahnschrift, sans-serif;
  font-size: 15px;
  font-weight: 600;
}
.play-title .small { margin: 2px 0 0; }
.play-mode {
  padding: 2px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--moss) 18%, transparent);
  color: var(--moss);
  font-family: Manrope, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.play-mode.clan {
  background: color-mix(in srgb, var(--sand) 18%, transparent);
  color: var(--sand);
}
.play-connect {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.35;
  word-break: break-all;
}
.play-actions { display: flex; gap: 8px; justify-content: flex-end; }
.play-search { margin: 0 0 14px; }
.play-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.play-cat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--field);
  color: var(--ink);
  font-family: Unbounded, Bahnschrift, sans-serif;
  font-size: 14px;
  font-weight: 600;
}
.play-cat.on {
  border-color: transparent;
  background: #f25c1d;
  color: #fff;
}
.play-cat-count {
  font-family: Manrope, sans-serif;
  font-size: 12px;
  font-weight: 700;
  opacity: 0.72;
}
.play-cat.on .play-cat-count { opacity: 0.9; }
.play-groups { margin-top: 14px; }
.play-hint { margin: 0; }
.play-group { display: grid; gap: 8px; }
.play-group + .play-group { margin-top: 16px; }
.play-group-title {
  margin: 0;
  font-family: Unbounded, Bahnschrift, sans-serif;
  font-size: 16px;
  font-weight: 600;
}
.play-wipe {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}
.person, .item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  align-items: center;
  border-radius: 12px;
  transition: background var(--dur-fast) ease;
}
.person:hover, .item:hover { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.coin { width: 22px; height: 22px; flex: none; display: block; }
.shop-balance .coin { width: 36px; height: 36px; }
.point-amount, .shop-balance {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.shop-balance {
  margin: 4px 0 16px;
  font-family: Unbounded, Bahnschrift, sans-serif;
  font-size: 28px;
}
.ledger-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.ledger-row:last-child { border-bottom: 0; padding-bottom: 0; }
.ledger-copy { display: grid; gap: 2px; min-width: 0; }
.ledger-plus, .ledger-minus { font-weight: 700; font-variant-numeric: tabular-nums; flex: none; }
.ledger-plus { color: #3dce70; }
.ledger-minus { color: var(--muted); }
.shop-list { display: grid; gap: 8px; }
.shop-admin { display: grid; gap: 10px; max-width: 560px; }
.shop-admin input { max-width: 360px; }
.publish-preview { display: grid; gap: 8px; margin: 4px 0 8px; }
.preview-kicker { margin: 0; color: var(--muted); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.publish-preview .news-slide {
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--field);
}
.shop-thumb { width: 48px; height: 48px; object-fit: cover; border-radius: 10px; display: block; margin-bottom: 6px; background: #121212; }
.admin-skins { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.admin-skin {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  background: #161616;
  border: 1px solid var(--line);
}
.admin-skin .skin-photo {
  border-radius: 12px;
  background: #101010;
  overflow: hidden;
}
.admin-skin-body { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.admin-skin-copy { display: grid; gap: 4px; min-width: 0; }
.admin-skin-copy .skin-title { font-size: 16px; }
.admin-skin .btn { flex: none; }
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 16px;
  margin-top: 8px;
}
.skin-card {
  display: grid;
  align-content: start;
  gap: 12px;
  width: 100%;
  padding: 14px;
  text-align: left;
  color: inherit;
  background: rgba(16, 16, 16, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  overflow: hidden;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: border-color 0.2s ease, translate 0.25s var(--ease-out), background 0.25s ease;
}
.skin-card:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); translate: 0 -2px; }
.skin-photo {
  aspect-ratio: 16 / 10;
  border-radius: 20px;
  background: #101010;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.skin-photo img { width: 100%; height: 100%; object-fit: contain; }
.skin-body { display: grid; gap: 6px; padding: 0; }
.skin-title { font-size: 16px; line-height: 1.25; letter-spacing: 0.02em; }
.skin-price { justify-content: flex-start; }
.skin-actions { display: grid; gap: 8px; }
.skin-buy { width: 100%; }
.order-list { display: grid; gap: 8px; margin: 16px 0 4px; }
.order-list .section-title { margin: 0; }
.order-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--field) 70%, transparent);
}
.order-copy { display: grid; gap: 2px; min-width: 0; flex: 1; }
.order-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-state {
  flex: none;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.order-state.is-wait { color: #3a2a08; background: #f3d98a; }
.order-state.is-done { color: #14301c; background: #b7e4c7; }
.order-now { display: flex; align-items: center; gap: 8px; margin: 0; }
.skin-buy .buy-poor { display: none; }
.skin-buy.is-poor:hover .buy-label,
.skin-buy.is-poor:focus-visible .buy-label { display: inline; }
.skin-buy.is-poor:hover .buy-poor,
.skin-buy.is-poor:focus-visible .buy-poor { display: inline; margin-left: 8px; }
.skin-modal { background: rgba(0, 0, 0, 0.62); }
.skin-window {
  position: relative;
  width: min(560px, 100%);
  padding: 16px;
  color: #f4efe6;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: none;
}
.skin-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: rgba(18, 18, 18, 0.55);
  color: #f4efe6;
  cursor: pointer;
}
.skin-close:hover { background: rgba(255, 255, 255, 0.14); }
.skin-window .skin-photo {
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  background: #0e0e0e;
}
.skin-window .skin-body {
  display: grid;
  gap: 12px;
  padding: 14px 2px 0;
}
.skin-window .skin-title { color: #f4efe6; font-size: 22px; }
.skin-window .skin-actions {
  grid-template-columns: 1fr 1fr;
  width: 100%;
}
.gift-pick { display: grid; gap: 8px; padding: 0; }
.gift-pick select { min-height: 40px; }
.shop-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 10px 14px;
  border-radius: 16px;
  background: var(--field);
  border: 1px solid var(--line);
}
.shop-copy { display: grid; gap: 2px; min-width: 0; flex: 1; }
.point-grant { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.point-grant input { width: 88px; min-height: 36px; }
.point-grant input.reason { width: 160px; }
.person:last-child, .item:last-child { border-bottom: 0; }
.person.is-revoked .person-id { opacity: 0.55; }
.person-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.person.leaving, .item.leaving { animation: leave 0.28s var(--ease-out) forwards; }
.roster {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 4px;
}
.rest-actions { display: grid; gap: 12px; }
.rest-forms { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.rest-form, .rest-mine {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 16px;
  background: #161616;
  border: 1px solid var(--line);
}
.rest-hours { display: grid; gap: 8px; }
.rest-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rest-chip {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.rest-chip.on { color: #f4f4f4; border-color: #ff6a2a; background: #2a1a14; }
.rest-custom { color: var(--muted); font-size: 13px; }
.rest-custom summary { cursor: pointer; }
.rest-cal {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}
.rest-cal-head {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}
.rest-cal-head:nth-child(6),
.rest-cal-head:nth-child(7) { color: #c4843a; }
.rest-cal-day {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  aspect-ratio: 1;
  width: 100%;
  padding: 10px;
  overflow: hidden;
  border-radius: 16px;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
}
.rest-cal-day.out { aspect-ratio: auto; min-height: 0; padding: 0; background: transparent; border-color: transparent; cursor: default; }
.rest-cal-day.off::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12px;
  right: 12px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: #7eb6ff;
}
.rest-cal-day.today { border-color: #ff6a2a; }
.rest-cal-day.on { border-color: rgba(255, 255, 255, 0.45); }
.rest-cal-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 4px; }
.rest-cal-num {
  font-family: Unbounded, Manrope, sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
}
.rest-cal-day.weekend .rest-cal-num { color: #c4843a; }
.rest-cal-day.today .rest-cal-num {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ff6a2a;
  color: #1a0d08;
  font-size: 13px;
}
.rest-cal-badge {
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: #2c2c2c;
  color: #f4f4f4;
  font-size: 11px;
  font-weight: 700;
  flex: none;
}
.rest-cal-faces { display: flex; align-items: center; }
.rest-cal-faces .avatar {
  width: 22px;
  height: 22px;
  margin-left: -8px;
  box-shadow: 0 0 0 2px #1a1a1a;
  animation: none;
}
.rest-cal-faces .avatar:first-child { margin-left: 0; }
.rest-day {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding: 14px;
  border-radius: 16px;
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.rest-day-list { display: grid; gap: 8px; }
.rest-day-person {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  background: #1c1c1c;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 3px solid #8d8d8d;
}
.rest-window { width: min(640px, 100%); }
.rest-window .rest-day {
  margin: 0;
  padding: 8px 28px 0 0;
  background: transparent;
  border: 0;
}
.rest-day-person.off { border-left-color: #7eb6ff; }
.rest-day-person .avatar { box-shadow: none; animation: none; }
.rest-day-copy { display: grid; gap: 4px; min-width: 0; }
.rest-day-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
@media (max-width: 720px) {
  .rest-cal { gap: 4px; }
  .rest-cal-day { aspect-ratio: auto; min-height: 52px; padding: 6px 4px; border-radius: 12px; align-items: center; }
  .rest-cal-day.off::before { left: 8px; right: 8px; }
  .rest-cal-top { flex-direction: column; align-items: center; gap: 4px; }
  .rest-cal-num { font-size: 14px; }
  .rest-cal-day.today .rest-cal-num { width: 22px; height: 22px; font-size: 11px; }
  .rest-cal-badge {
    width: 6px;
    min-width: 6px;
    height: 6px;
    padding: 0;
    font-size: 0;
    background: #8d8d8d;
  }
  .rest-cal-day.off .rest-cal-badge { background: #7eb6ff; }
  .rest-cal-faces { display: none; }
}
[data-scheme="light"] .rest-cal-day { background: #fffdf9; border-color: rgba(92, 58, 24, 0.12); }
[data-scheme="light"] .rest-cal-day.on { background: #fffdf9; border-color: rgba(42, 33, 24, 0.35); }
[data-scheme="light"] .rest-cal-badge { background: #efe6da; color: #2a2118; }
[data-scheme="light"] .rest-cal-faces .avatar { box-shadow: 0 0 0 2px #fffdf9; }
[data-scheme="light"] .rest-day,
[data-scheme="light"] .rest-day-person { background: #fffdf9; }
[data-scheme="light"] .rest-kind { color: #2a2118; background: #efe6da; }
[data-scheme="light"] .rest-kind.off { color: #2a4a72; background: #e7f0fb; }
.rest-block { display: grid; gap: 8px; margin-top: 16px; }
.rest-list { display: grid; gap: 8px; }
.rest-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 10px 14px;
  border-radius: 16px;
  background: var(--field);
  border: 1px solid var(--line);
}
.rest-card.live { border-left: 3px solid #7eb6ff; }
.rest-card.soon { border-left: 3px solid #8d8d8d; }
.rest-copy { display: grid; gap: 2px; min-width: 0; flex: 1; }
.rest-reason {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}
.rest-kind {
  flex: none;
  padding: 4px 10px;
  border-radius: 999px;
  background: #2c2c2c;
  color: #f4f4f4;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.rest-kind.off { background: color-mix(in srgb, #7eb6ff 22%, #1c1c1c); color: #c5ddff; }
.member-card {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 72px;
  padding: 10px 14px 10px 12px;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: default;
  border-radius: 16px;
  background: var(--field);
  border: 1px solid var(--line);
  box-shadow: none;
}
.member-card:hover {
  border-color: var(--line);
  background: color-mix(in srgb, var(--ink) 5%, var(--field));
  translate: none;
}
.member-card .place,
.board .place {
  width: 28px;
  flex: none;
  text-align: center;
  color: var(--muted);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: 14px;
}
.member-card .place.has-crown,
.board .place.has-crown,
.recruit-row .place.has-crown {
  width: 36px;
}
.member-card.rank-1,
.board-row.rank-1 { box-shadow: inset 4px 0 0 #e6c15a; }
.member-card.rank-2,
.board-row.rank-2 { box-shadow: inset 4px 0 0 #c8c8c8; }
.member-card.rank-3,
.board-row.rank-3 { box-shadow: inset 4px 0 0 #c4843a; }
.member-open {
  display: flex;
  gap: 14px;
  align-items: center;
  flex: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.role-badge {
  width: fit-content;
  margin: 0;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  animation: role-in 0.45s var(--ease-out) both;
}
.role-badge.owner {
  color: #f0d2b0;
  background: color-mix(in srgb, #c4843a 28%, #1c140c);
  border-color: color-mix(in srgb, #c4843a 55%, transparent);
}
.role-badge.manager {
  color: #d5e2f2;
  background: color-mix(in srgb, #6d8eb5 30%, #121820);
  border-color: color-mix(in srgb, #6d8eb5 55%, transparent);
}
.role-badge.caller {
  color: #e8d8f4;
  background: color-mix(in srgb, #9a74c4 28%, #16121c);
  border-color: color-mix(in srgb, #9a74c4 55%, transparent);
}
.role-badge.combater {
  color: #f0d0cc;
  background: color-mix(in srgb, #b86a62 28%, #1c1212);
  border-color: color-mix(in srgb, #b86a62 50%, transparent);
}
.punish-cleared { opacity: 0.62; }
.punish-mine {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--field) 80%, transparent);
}
.punish-mine strong { font-size: 15px; }
.punish-reason { margin: 0; white-space: pre-wrap; }
.punish-mine .small { margin: 0; }
.moment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.moment-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 12px;
  cursor: pointer;
}
.moment-video-still { pointer-events: none; }
.moment-link {
  display: grid;
  place-items: center;
  min-height: 160px;
  border-radius: 14px;
  background: #000;
  color: #f4efe8;
  font-weight: 700;
}
.moment-view-window {
  position: relative;
  width: min(1100px, calc(100vw - 28px));
  max-height: min(92vh, 920px);
  overflow: auto;
  padding: 18px;
  border-radius: 22px;
  background: var(--panel, #12140f);
}
.moment-view-stage { display: grid; gap: 8px; }
.moment-view-stage .moment-shot,
.moment-view-stage .moment-video,
.moment-frame {
  width: 100%;
  max-height: 72vh;
  border: 0;
  border-radius: 16px;
  background: #000;
}
.moment-frame { height: min(72vh, 640px); }
.moment-media { display: grid; gap: 6px; }
.moment-shot,
.moment-video {
  width: 100%;
  max-height: 420px;
  border-radius: 14px;
  background: #000;
  object-fit: contain;
}
.moment-copy {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
  margin-top: 10px;
}
.moment-caption { margin: 0; white-space: pre-wrap; }
.moment-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}
.moment-stats {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: none;
}
.moment-views {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}
.moment-sort { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.moment-sort + .moment-grid { margin-top: 10px; }
.moment-top-btn.on {
  color: var(--ink, #f4efe8);
  background: color-mix(in srgb, var(--accent, var(--moss)) 28%, transparent);
}
.moment-author {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.moment-like {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.moment-like.on { color: var(--accent, var(--moss)); }
.moment-drop {
  justify-self: start;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}
.shop-row .btn.tiny { flex: none; align-self: center; }
.role-badge.builder {
  color: #d5e4c8;
  background: color-mix(in srgb, #7d9a62 28%, #141a12);
  border-color: color-mix(in srgb, #7d9a62 50%, transparent);
}
.role-badge.core {
  color: #f4efe8;
  background: color-mix(in srgb, #e6c27a 18%, #1c1814);
  border-color: color-mix(in srgb, #e6c27a 40%, transparent);
}
.role-pick {
  flex: none;
  max-width: 132px;
  min-height: 32px;
  padding: 4px 8px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--field);
  color: var(--ink);
}
.profile-detail {
  margin-top: 12px;
  padding: 0;
  overflow: hidden;
  border-radius: 20px;
  background:
    linear-gradient(160deg, rgba(255, 106, 42, 0.12), transparent 42%),
    var(--glass-strong);
  border: 1px solid var(--line);
  animation: note-in 0.22s var(--ease-out);
}
.profile-shell {
  display: grid;
  gap: 16px;
  padding: 8px 4px 4px;
}
.profile-shell .stat-grid {
  padding: 12px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.profile-head {
  display: flex;
  gap: 16px;
  align-items: center;
}
.profile-head .avatar-ring {
  flex: none;
  padding: 3px;
  background: linear-gradient(145deg, #ff8a4a, #7eb6ff 70%);
  border-radius: 50%;
}
.profile-meta {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.profile-name {
  margin: 0;
  font-family: Unbounded, Bahnschrift, sans-serif;
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.01em;
}
.profile-game {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.profile-rest-note {
  margin: 0;
  color: #c5ddff;
  font-size: 12px;
  font-weight: 600;
}
.profile-steam {
  width: fit-content;
}
.mark-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.3;
  white-space: nowrap;
}
.chip.warn {
  color: #ffd0c4;
  background: color-mix(in srgb, #ff3b30 22%, #1c1210);
  border-color: color-mix(in srgb, #ff3b30 45%, transparent);
}
.chip.warn.ok {
  color: #c8d2c4;
  background: color-mix(in srgb, #7a9a72 18%, #141814);
  border-color: color-mix(in srgb, #7a9a72 35%, transparent);
}
.chip.rest.live {
  color: #c5ddff;
  background: color-mix(in srgb, #7eb6ff 22%, #121820);
  border-color: color-mix(in srgb, #7eb6ff 48%, transparent);
}
.chip.rest.soon {
  color: #e6d8b8;
  background: color-mix(in srgb, #c4843a 18%, #1a1610);
  border-color: color-mix(in srgb, #c4843a 40%, transparent);
}
.chip.rest.idle {
  color: #a8a8a8;
  background: #1c1c1c;
  border-color: rgba(255, 255, 255, 0.08);
}
.member-card.on-rest {
  border-color: color-mix(in srgb, #7eb6ff 35%, var(--line));
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 10px;
  margin: 0;
}
.stat-cell {
  padding: 12px 12px 10px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--field) 92%, transparent);
  border: 1px solid rgba(255, 255, 255, 0.04);
}
.stat-label {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.stat-value {
  margin: 4px 0 0;
  font-family: Unbounded, Bahnschrift, sans-serif;
  font-size: 18px;
}
@media (max-width: 560px) {
  .profile-head { align-items: flex-start; }
  .member-card .mark-row { gap: 4px; }
  .member-card .chip { font-size: 10px; padding: 2px 7px; }
}
.stat-boards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 8px;
}
.wipe-upload {
  display: grid;
  gap: 10px;
  margin: 0 0 14px;
}
.wipe-upload summary {
  width: fit-content;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.wipe-upload summary::-webkit-details-marker { display: none; }
.wipe-upload textarea {
  width: 100%;
  min-height: 150px;
  resize: vertical;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--field);
  color: var(--ink);
  font: inherit;
  line-height: 1.45;
  padding: 12px;
}
.wipe-upload .btn { justify-self: start; }
.top-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 0 0 12px;
}
.top-season {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(18, 18, 18, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.top-season button {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #c8c8c8;
  font: inherit;
  font-weight: 700;
  padding: 8px 14px;
}
.top-season button.on {
  background: #f25c1d;
  color: #fff;
}
.top-search {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(18, 18, 18, 0.72);
  color: var(--ink);
  font: inherit;
  padding: 9px 12px;
}
.top-search { flex: 1 1 220px; min-width: 180px; background: rgba(18, 18, 18, 0.35); }
.top-me {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 0 0 12px;
  padding: 10px 14px;
  position: sticky;
  top: 84px;
  z-index: 4;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line));
  border-radius: var(--radius-sm, 14px);
  background: color-mix(in srgb, var(--accent) 16%, var(--field));
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.top-me-k {
  flex: none;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--btn-ink, #fff);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.top-me-text { min-width: 0; }
.podium-seat.is-me { box-shadow: inset 0 0 0 2px var(--accent); }
.top-formula { margin: 0 0 12px; }
.rate-podium {
  display: grid;
  grid-template-columns: 1fr 1.16fr 1fr;
  gap: 14px;
  align-items: end;
  margin: 6px 0 20px;
  padding: 22px 12px 0;
  border-radius: 28px;
  background:
    radial-gradient(70% 80% at 50% 0%, rgba(243, 217, 138, 0.18), transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 46%);
}
.rate-seat {
  display: grid;
  justify-items: center;
  align-content: end;
  gap: 8px;
  width: 100%;
  min-width: 0;
  padding: 18px 8px 0;
  border: 0;
  border-radius: 24px 24px 16px 16px;
  background: transparent;
  color: inherit;
  font: inherit;
}
button.rate-seat { cursor: pointer; }
button.rate-seat:hover { translate: 0 -4px; }
.rate-seat.place-2 { grid-column: 1; }
.rate-seat.place-1 { grid-column: 2; }
.rate-seat.place-3 { grid-column: 3; }
.rate-face {
  position: relative;
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  padding: 4px;
  border-radius: 50%;
  box-sizing: border-box;
}
.rate-face .avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: none !important;
  animation: none !important;
}
.rate-seat.place-1 .rate-face {
  width: 98px;
  height: 98px;
  background: linear-gradient(160deg, #fff6d4, #e6c15a 48%, #8d6a24);
  box-shadow: 0 0 32px rgba(230, 193, 90, 0.5);
}
.rate-seat.place-2 .rate-face { background: linear-gradient(160deg, #ffffff, #d5d5d5 52%, #6d6d6d); }
.rate-seat.place-3 .rate-face { background: linear-gradient(160deg, #f6d7b4, #c4843a 52%, #7a4e18); }
.rate-crown {
  position: absolute;
  top: -22px;
  left: 50%;
  translate: -50% 0;
  z-index: 1;
}
.rate-nick {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
}
.rate-seat.place-1 .rate-nick { font-size: 20px; }
.rate-score {
  font-size: 14px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.rate-step {
  display: grid;
  place-items: center;
  width: calc(100% + 16px);
  margin-top: 4px;
  border-radius: 16px 16px 10px 10px;
  font-family: Unbounded, Bahnschrift, sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.rate-seat.place-1 .rate-step {
  height: 112px;
  font-size: 26px;
  color: #3a2a08;
  background: linear-gradient(180deg, #f3d98a, #c9962e);
}
.rate-seat.place-2 .rate-step {
  height: 78px;
  font-size: 20px;
  color: #2c2c2c;
  background: linear-gradient(180deg, #f4f4f4, #b0b0b0);
}
.rate-seat.place-3 .rate-step {
  height: 48px;
  font-size: 18px;
  color: #3d2410;
  background: linear-gradient(180deg, #e7b27a, #a86a32);
}
.rate-seat.is-me .rate-face { box-shadow: 0 0 0 3px var(--accent), 0 0 28px rgba(230, 193, 90, 0.35); }
.top-prize {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.top-prize-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px 4px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, #f3d98a 22%, transparent);
  color: var(--ink);
}
.top-prize-chip .coin { width: 16px; height: 16px; }
.podium-prize {
  padding: 2px 8px;
  border-radius: 999px;
  background: #f3d98a;
  color: #3a2a08;
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.lb th .res-icon { width: 18px; height: 18px; }
.lb-cap {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}
.lb-cap-text { font-weight: 700; }
.profile-builds {
  margin: 0;
  color: #e6c15a;
  font-size: 14px;
  font-weight: 700;
}
.cabinet-layout .card,
.player-profile-window,
.cabinet-hero-card {
  border-radius: var(--cabinet-radius, 28px);
  background: rgba(16, 16, 16, 0.5);
  backdrop-filter: blur(16px);
}
[data-scheme="light"] .cabinet-layout .card,
[data-scheme="light"] .player-profile-window,
[data-scheme="light"] .skin-card,
[data-scheme="light"] .toast,
[data-scheme="light"] .notice-drop {
  background: rgba(255, 250, 244, 0.72);
  color: var(--ink);
}
.cabinet-hero .avatar-ring .avatar {
  width: 96px;
  height: 96px;
}
.profile-head .avatar-ring .avatar {
  width: 112px;
  height: 112px;
}
.top-groups {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  margin: 4px 0 14px;
  overflow: visible;
  align-items: flex-start;
}
.top-group { display: grid; gap: 6px; flex: 1 1 280px; min-width: 0; }
.top-group-label {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.top-podium { margin: 8px 0 18px; }
.top-podium:empty { display: none; }
.top-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  overflow: visible;
}
.top-picker button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #f2f2f2;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}
.top-picker .bot-emoji,
.top-picker .res-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex: none;
}
.top-picker button.on {
  color: #fff;
  border-color: #f25c1d;
  background: #f25c1d;
  box-shadow: 0 8px 18px rgba(242, 92, 29, 0.35);
}
.lb-wrap { overflow: visible; max-width: 100%; margin-top: 8px; }
.lb-scroll { overflow-x: auto; max-width: 100%; }
.lb-main { color: #f2d48a; font-weight: 800; font-size: 16px; }
.lb-empty { text-align: left !important; color: var(--muted); }
.lb {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 6px;
  font-variant-numeric: tabular-nums;
}
.lb th {
  padding: 0 12px 2px;
  color: #8d8d8d;
  font-size: 12px;
  font-weight: 600;
  text-align: right;
}
.lb th.lb-player-h,
.lb th:first-child { text-align: left; }
.lb-sort {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.lb-sort.on { color: #f4f4f4; }
.lb-sort.on::after { content: " ▾"; }
.lb td {
  padding: 10px 12px;
  background: color-mix(in srgb, var(--ink) 5%, var(--field));
  text-align: right;
  white-space: nowrap;
  vertical-align: middle;
}
.lb td:first-child { border-radius: 14px 0 0 14px; text-align: center; }
.lb td:nth-child(2) { text-align: left; }
.lb td:last-child { border-radius: 0 14px 14px 0; }
.lb tbody tr { cursor: pointer; }
.lb tbody tr:hover td { background: color-mix(in srgb, var(--accent) 14%, var(--field)); }
.lb tr.is-me td { background: color-mix(in srgb, var(--accent) 16%, var(--field)); }
.lb tr.is-me td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.lb-rank { width: 52px; color: var(--muted); font-weight: 800; }
.lb-place {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  padding: 0 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 8%, transparent);
  font-variant-numeric: tabular-nums;
}
.lb-score {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  min-width: 52px;
  justify-content: flex-end;
  padding: 4px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, #e6c15a 18%, transparent);
  color: #f2d48a;
  font-weight: 800;
}
[data-scheme="light"] .lb-score { color: #8d5a22; background: color-mix(in srgb, #c4843a 18%, white); }
.lb-player { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lb-copy { display: grid; min-width: 0; }
.lb-nick {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}
.lb-id { color: #8d8d8d; font-size: 12px; }
.lb-pair b { font-weight: 800; }
.lb-pair span { color: #8d8d8d; font-weight: 600; }
.lb .avatar {
  width: 36px;
  height: 36px;
  box-shadow: none;
  animation: none;
}
.board {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.board li { margin: 0; }
.board-row {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 64px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  background: var(--field);
}
.board-row:hover {
  border-color: var(--line);
  background: color-mix(in srgb, var(--ink) 5%, var(--field));
}
.board-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.board .board-nick {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}
.board .board-value {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.member-card .avatar-ring { padding: 2px; }
.member-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.member-nick {
  font-family: Unbounded, Bahnschrift, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.member-activity {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.discord-activity { margin: 4px 0 2px; }
.member-sub,
.board-sub {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.news-home { display: block; width: 100%; }
.news-reel {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.news-reel-head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px 0;
}
.news-reel-head .section-title { margin: 0; }
.news-viewport { overflow: hidden; }
.news-track {
  display: flex;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.news-track.is-jump { transition: none; }
.news-slide {
  position: relative;
  flex: 0 0 100%;
  min-height: 168px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 28px 16px;
  overflow: hidden;
  background: transparent;
}
.news-slide.has-photo {
  min-height: 240px;
  padding: 28px 24px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 8%, transparent) 0%, color-mix(in srgb, var(--bg) 78%, transparent) 100%),
    var(--news-photo) center / cover no-repeat;
}
.news-copy {
  position: relative;
  z-index: 1;
  width: min(100%, 36rem);
  margin: 0 auto;
  text-align: center;
}
.news-slide.has-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(420px 180px at 50% 35%, rgba(255, 214, 150, 0.34), transparent 68%);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}
.news-slide.has-photo:hover::after { opacity: 1; }
.news-slide.has-photo .news-copy {
  padding: 14px 16px 12px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--glass-strong) 92%, transparent);
  border: 1px solid var(--line);
}
.news-slide .prose {
  max-width: 46ch;
  margin: 0 auto;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}
.news-slide.has-photo .prose,
.news-slide.has-photo .news-title { color: var(--ink); }
.news-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 16px 14px;
}
.news-dots { display: flex; flex: 1; justify-content: center; gap: 7px; }
.news-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 28%, transparent);
  transition: width 0.35s var(--ease-out), background 0.35s ease;
}
.news-dot.on { width: 22px; background: var(--accent-2); }
.server-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
}
.home-access { margin: 0; text-align: right; }
.home-access .section-title { margin: 0; }
.home-access .count-num { margin: 4px 0; font-size: 48px; }
.news-admin-label { display: flex; align-items: center; gap: 10px; min-width: 0; }
.news-admin-thumb {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 10px;
  flex: none;
}
.news-arrow {
  position: static;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: var(--field);
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
}
.news-arrow:hover:not(:disabled) {
  background: var(--glass-strong);
  color: var(--accent);
}
.news-arrow:disabled { opacity: 0.35; cursor: default; }
.news-day {
  display: inline-block;
  margin: 0 auto 10px;
  padding: 3px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--sand) 16%, transparent);
  color: var(--sand);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.news-title {
  margin: 0 auto 10px;
  color: var(--ink);
  font-family: Unbounded, Bahnschrift, sans-serif;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
}
.news-card p { margin: 4px 0 0; }
.news-card {
  position: relative;
  padding: 14px 0;
}
.feed { display: grid; gap: 14px; }
.feed-card .section-title { margin-bottom: 12px; font-size: 20px; }
.feed-meta { margin: 0 0 8px; }
.feed-meta time { letter-spacing: 0.04em; }
.stamp {
  display: inline-block;
  border: 2px solid var(--moss);
  color: var(--moss);
  border-radius: 8px;
  padding: 4px 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  transform: rotate(-6deg);
}
pre.rules {
  white-space: pre-wrap;
  font-family: inherit;
  line-height: 1.6;
  margin: 0;
  max-width: 68ch;
}
.help { color: var(--muted); font-size: var(--type-sm); line-height: 1.5; }
.help a { color: var(--sand); }
.legal h2 { margin: 26px 0 8px; font-size: 18px; }
.legal p, .legal li { color: var(--muted); line-height: 1.6; }
.legal p + p { margin-top: 8px; }
.legal strong { color: var(--ink); font-weight: 700; }
.legal ul { margin: 8px 0 0; padding-left: 18px; }
.legal li + li { margin-top: 8px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.admin-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.status-ok { color: var(--moss); }
.status-bad { color: var(--blood); }
.status-ok::before, .status-bad::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: currentColor;
  vertical-align: 1px;
}
.status-ok::before { box-shadow: none; }
.stack > .card { animation: rise 0.42s var(--ease-out) both; }
.stack > .card:nth-child(2) { animation-delay: 0.05s; }
.stack > .card:nth-child(3) { animation-delay: 0.1s; }
.stack > .card:nth-child(4) { animation-delay: 0.15s; }
#main.rise { animation: panel-next 0.5s var(--ease-out) both; }
#main.rise.from-prev { animation-name: panel-prev; }
.rise { animation: rise 0.55s var(--ease-out) both; }
#main .grid > .rise:nth-child(2) { animation-delay: 40ms; }
#main .news-reel.rise { animation-delay: 80ms; }
#main > .card.rise { animation-delay: 120ms; }
.feed > .rise:nth-child(2) { animation-delay: 40ms; }
.feed > .rise:nth-child(3) { animation-delay: 80ms; }
.feed > .rise:nth-child(4) { animation-delay: 120ms; }
.feed > .rise:nth-child(5) { animation-delay: 160ms; }
.feed > .rise:nth-child(6) { animation-delay: 200ms; }
.toast {
  position: fixed;
  top: 22px;
  right: 22px;
  left: auto;
  z-index: 20;
  translate: 18px 0;
  opacity: 0;
  pointer-events: none;
  display: grid;
  gap: 8px;
  min-width: min(300px, calc(100% - 32px));
  padding: 14px 18px 12px;
  border-radius: 18px;
  color: var(--ink);
  background: rgba(16, 16, 16, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 3px solid #f25c1d;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(14px);
  overflow: hidden;
  scale: 0.98;
  transition: opacity 0.35s ease, translate 0.35s var(--ease-out), scale 0.35s var(--ease-out);
}
.toast.show { opacity: 1; translate: 0 0; scale: 1; }
.toast-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.toast-row .bot-emoji { width: 22px; height: 22px; }
.toast-bar {
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
  transform-origin: left center;
  animation: toast-bar 2.6s linear forwards;
}
.skeleton { display: grid; gap: 10px; padding: 8px 0; }
.skeleton span {
  display: block;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--field), color-mix(in srgb, var(--ink) 14%, var(--field)), var(--field));
  background-size: 200% 100%;
  animation: shimmer 1.4s ease infinite;
}
.skeleton span:last-child { width: 62%; }
.empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 22px 8px;
  text-align: center;
  color: var(--muted);
}
.empty p { margin: 0; }
.empty-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--sand);
  font-family: Unbounded, Bahnschrift, sans-serif;
  background: var(--field);
}
.badge {
  min-width: 1.6em;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.chip, .version-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin: 0;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--field);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.legend {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 8px 0 12px;
  font-size: var(--type-sm);
  color: var(--muted);
}
.legend span, .status-dot { display: inline-flex; align-items: center; gap: 6px; }
.dot, .status-dot::before {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
  content: "";
  flex: none;
}
.dot.live, .status-dot.live::before { background: #5f7d58; }
.dot.dead, .status-dot.dead::before { background: var(--blood); }
.dot.off, .status-dot.off::before { background: color-mix(in srgb, var(--ink) 35%, transparent); }
.form-kicker {
  margin: 18px 0 0;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sand);
  font-weight: 700;
}
.secret { position: relative; display: block; }
.secret input { padding-right: 92px; }
.peek {
  position: absolute;
  right: 6px;
  top: 50%;
  translate: 0 -50%;
  border: 0;
  border-radius: 999px;
  padding: 6px 10px;
  background: transparent;
  color: var(--sand);
  font-size: 12px;
  font-weight: 700;
}
.drop {
  position: relative;
  display: grid;
  gap: 8px;
  place-items: center;
  min-height: 148px;
  padding: 22px 16px;
  border: 1.5px dashed color-mix(in srgb, var(--accent) 45%, var(--line-strong));
  border-radius: 18px;
  background:
    radial-gradient(120px 80px at 50% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
    var(--field);
  text-align: center;
  cursor: pointer;
  color: var(--muted);
  transition: border-color var(--dur-fast) ease, background var(--dur-fast) ease, translate var(--dur-fast) ease;
}
.drop-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: color-mix(in srgb, var(--bg) 55%, var(--field));
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.drop-copy { display: grid; gap: 2px; }
.drop strong { color: var(--ink); }
.file-meta { font-size: 12px; }
.drop.over, .drop.has-file {
  border-style: solid;
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, var(--field));
}
.drop.over { translate: 0 -2px; }
.drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.counter {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.counter.hot { color: var(--accent); }
.inbox {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--line);
}
.inbox.full {
  border-style: solid;
  border-color: color-mix(in srgb, var(--moss) 55%, var(--line));
}
.modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.55);
  animation: page-in 0.2s var(--ease-out);
}
.modal .card { width: min(420px, 100%); padding: 22px; animation: pop-in 0.28s var(--ease-out); }
.modal .history-card {
  width: min(440px, 100%);
  max-height: min(80dvh, 640px);
  overflow: auto;
}
.bind-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.bind-head .section-title { margin: 0; }
.modal .bind-picker-window {
  width: min(720px, 100%);
  max-height: min(86dvh, 760px);
  overflow: auto;
  display: grid;
  gap: 14px;
  padding: 22px;
}
.bind-field { display: grid; gap: 8px; }
.bind-field-label {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.bind-select {
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--field);
  color: var(--ink);
}
.bind-fov { display: grid; gap: 8px; }
.bind-fov-chips, .bind-keys { display: flex; flex-wrap: wrap; gap: 6px; }
.bind-fov-chips button, .bind-keys button {
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--field);
  color: var(--ink);
  font-weight: 700;
}
.bind-fov-chips button.on, .bind-keys button.on {
  border-color: transparent;
  background: #f25c1d;
  color: #fff;
}
.bind-preview { margin: 0; }
.history-next { margin-top: 18px; }
.map-skeleton {
  width: min(100%, 760px);
  aspect-ratio: 1;
  border-radius: 18px;
  background: linear-gradient(90deg, #1a1228, #2a1c42, #1a1228);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease infinite;
}

@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0); opacity: 0.45; }
  50% { transform: translate3d(0, -8px, 0); opacity: 0.85; }
}
@keyframes rise {
  from { opacity: 0; translate: 0 14px; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes panel-next {
  from { opacity: 0; translate: 18px 0; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes panel-prev {
  from { opacity: 0; translate: -18px 0; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes pop-in {
  from { opacity: 0; scale: 0.96; }
  to { opacity: 1; scale: 1; }
}
@keyframes icon-in {
  from { opacity: 0; scale: 0.82; }
  to { opacity: 1; scale: 1; }
}
@keyframes rule-in {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@keyframes orb {
  0%, 100% { transform: scale(1); opacity: 0.55; }
  50% { transform: scale(1.06); opacity: 0.9; }
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 12px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
@keyframes notice-glow {
  0%, 100% { box-shadow: 0 0 0 2px var(--pill), 0 0 4px #ff3b30; }
  50% { box-shadow: 0 0 0 2px var(--pill), 0 0 12px 2px #ff3b30; }
}
@keyframes grain { 50% { transform: translate3d(-1%, 1%, 0); } }
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes mark-shift { 50% { background-position: 100% 0; } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}
@keyframes avatar-burn {
  0%, 100% { box-shadow: 0 0 0 2px rgba(110, 230, 145, 0.55), 0 0 14px rgba(60, 200, 100, 0.5); }
  50% { box-shadow: 0 0 0 4px rgba(170, 255, 190, 0.95), 0 0 28px rgba(80, 230, 120, 0.95); }
}
@keyframes btn-live {
  0%, 100% { box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28); }
  50% { box-shadow: 0 12px 26px rgba(226, 161, 90, 0.42); }
}
@keyframes role-in {
  from { opacity: 0; translate: 0 6px; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes cabinet-in {
  from { opacity: 0; translate: 0 12px; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes alert-burn {
  0%, 100% { box-shadow: 0 0 0 0 rgba(225, 70, 60, 0.55), 0 10px 24px rgba(180, 40, 30, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(225, 70, 60, 0), 0 0 32px rgba(255, 90, 70, 0.75); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ripple { to { transform: scale(18); opacity: 0; } }
@keyframes note-in { from { opacity: 0; translate: 0 -6px; } to { opacity: 1; translate: 0 0; } }
@keyframes shake {
  0%, 100% { translate: 0 0; }
  25% { translate: -4px 0; }
  75% { translate: 4px 0; }
}
@keyframes leave { to { opacity: 0; translate: 16px 0; } }
@keyframes toast-bar { to { transform: scaleX(0); } }

.cookie-bar {
  position: fixed;
  z-index: 50;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 880px;
  margin: 0 auto;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--glass-strong);
  box-shadow: var(--shadow);
}
.cookie-bar p { margin: 0; flex: 1 1 240px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.cookie-bar a { color: var(--sand); }
.cookie-bar .row { margin: 0; flex: none; }
body.has-cookie-bar { padding-bottom: 108px; }

.builds-stage, .recruit-stage { display: grid; gap: 16px; padding: 18px; }
.recruit-stage { overflow: visible; }
.builds-head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
  justify-content: space-between;
}
.builds-titles { display: grid; gap: 4px; min-width: 0; flex: 1; }
.builds-actions { display: flex; gap: 10px; align-items: center; }
.build-nav { display: flex; gap: 8px; }
.build-nav-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0 0 2px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(18, 18, 18, 0.46);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.build-nav-btn:hover { background: #f25c1d; color: #fff; }
.build-rail {
  overflow-x: auto;
  margin-inline: -18px;
  padding-inline: 18px;
  scroll-snap-type: none;
  scrollbar-width: none;
  cursor: grab;
}
.build-rail::-webkit-scrollbar { display: none; }
.build-rail.is-drag { cursor: grabbing; scroll-snap-type: none; }
.build-track {
  display: flex;
  gap: 16px;
}
.build-poster {
  position: relative;
  flex: 0 0 calc((100% - 32px) / 3);
  width: auto;
  min-width: 180px;
  height: 420px;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #121212;
  cursor: pointer;
  scroll-snap-align: start;
}
.build-rail.is-static .build-poster { scroll-snap-align: start; }
.build-poster-media,
.build-poster .build-cover,
.build-poster .build-cover.empty {
  width: 100%;
  height: 100%;
}
.build-poster .build-cover { object-fit: cover; display: block; }
.build-poster .build-cover.empty {
  display: grid;
  place-items: center;
  color: var(--muted);
}
.build-poster .build-like {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
}
.build-poster-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: grid;
  gap: 8px;
  padding: 72px 14px 14px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.88));
}
.build-poster .build-title {
  margin: 0;
  font-size: 22px;
  color: #fff;
}
.build-poster-author {
  display: flex;
  gap: 8px;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.build-poster-author span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.build-poster-author:hover span { color: #ff8a4a; }
@media (max-width: 640px) {
  .build-poster { flex-basis: 240px; width: 240px; height: 360px; }
}
@media (prefers-reduced-motion: reduce) {
  .build-rail.is-run .build-marquee { animation: none; }
}
.builds-tools { display: grid; gap: 10px; }
.builds-search {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #1c1c1c;
  color: var(--ink);
  font: inherit;
}
.builder-board {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.builder-card {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 72px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #141414;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.builder-card:hover { border-color: color-mix(in srgb, #ff8a4a 45%, var(--line)); }
.builder-card-copy { display: grid; gap: 2px; min-width: 0; }
.builder-card-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.build-card.is-tile { cursor: pointer; }
.build-card.is-tile .build-cover,
.build-card.is-tile .build-cover.empty { height: clamp(280px, 34vw, 420px); }
.build-author.is-link { cursor: pointer; }
.build-author.is-link:hover strong { color: #ff8a4a; }
.profile-houses { display: grid; gap: 8px; }
.profile-houses-label { margin: 0; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.profile-house-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
}
.profile-house {
  display: grid;
  gap: 4px;
  padding: 0 0 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #141414;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.profile-house img,
.profile-house-empty {
  width: 100%;
  height: 92px;
  object-fit: cover;
  display: grid;
  place-items: center;
  background: #101010;
  color: var(--muted);
  font-size: 12px;
}
.profile-house strong,
.profile-house .small { padding: 0 8px; }
.profile-house strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}
.admin-builder {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}
.admin-builder + .admin-builder { margin-top: 12px; }
.admin-builder-head,
.admin-build-row,
.clan-link-row {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}
.admin-build-list { display: grid; gap: 8px; }
.admin-build-row {
  justify-content: flex-start;
  padding: 8px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
}
.admin-build-copy { display: grid; gap: 2px; min-width: 0; flex: 1; }
.admin-build-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-build-thumb {
  width: 72px;
  height: 54px;
  object-fit: cover;
  border-radius: 8px;
  background: #121212;
  flex: none;
}
.admin-build-thumb.empty {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 11px;
}
.admin-build-row .btn { margin-left: auto; flex: none; }
.clan-link-box { display: grid; gap: 8px; }
.clan-link-status { margin: 0; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.clan-link-status.ok { color: #7dffa1; }
.clan-link-status.bad { color: #ff6a6a; }
.clan-link {
  font-size: 18px;
  font-weight: 800;
  word-break: break-all;
  color: #ff8a4a;
}
.build-post-btn { flex: none; white-space: nowrap; }
.builds-menu,
.builds-tabs {
  display: flex;
  gap: 6px;
  width: 100%;
  padding: 4px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--ink) 4%, var(--field));
}
.builds-menu button,
.builds-tabs button {
  flex: 1;
  min-height: 48px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.16s var(--ease-out), color 0.16s var(--ease-out);
}
.builds-menu button.on,
.builds-tabs button.on {
  color: #1a0d08;
  background: linear-gradient(180deg, #ff8a4a, #ff6a2a);
}
.builds-tabs button.top-tab.on {
  color: #1a1408;
  background: linear-gradient(180deg, #f0d27a, #e6c15a);
}
.builds-tab-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.builds-tab-label .crown { filter: none; }
.builds-top-hint { margin: 0 0 4px; font-size: 13px; }
.build-compose-modal {
  z-index: 45;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(4px);
}
.build-compose-window {
  position: relative;
  width: min(440px, 100%);
  max-height: min(88vh, 720px);
  overflow: auto;
  display: grid;
  gap: 14px;
  padding: 20px 18px 16px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 70% at 0% 0%, color-mix(in srgb, #ff6a2a 14%, transparent), transparent 55%),
    #161412;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.45);
  animation: pop-in 0.24s var(--ease-out);
}
.build-compose-x {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  cursor: pointer;
}
.build-compose-x:hover { background: rgba(255, 255, 255, 0.1); }
.build-compose-head {
  display: grid;
  gap: 4px;
  padding-right: 36px;
}
.build-compose-head .section-title { margin: 0; font-size: 20px; }
.build-compose-head .muted { margin: 0; font-size: 13px; }
.build-compose {
  display: grid;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  animation: none;
}
.build-compose label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.build-compose input,
.build-compose textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #1c1c1c;
  color: var(--ink);
  font: inherit;
}
.build-compose textarea { min-height: 96px; resize: vertical; }
.build-photo-field { display: grid; gap: 8px; }
.build-photo-field .label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.build-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.build-preview {
  position: relative;
  width: 72px;
  height: 72px;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #121212;
}
.build-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.build-preview-x {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}
.build-compose-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.build-gallery {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
}
.build-card {
  position: relative;
  display: grid;
  gap: 0;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #121212;
  transition: border-color 0.18s var(--ease-out);
}
.build-card:hover {
  border-color: color-mix(in srgb, #ff8a4a 35%, var(--line));
}
.build-media { display: grid; gap: 0; }
.build-cover {
  width: 100%;
  height: clamp(380px, 48vw, 560px);
  object-fit: cover;
  display: block;
  background: #121212;
}
.build-author-bar {
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 56px;
  padding: 8px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--field);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.build-author-bar:hover {
  border-color: color-mix(in srgb, #e6c15a 55%, var(--line));
}
.build-author-open {
  margin-left: auto;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.stats-builders {
  display: grid;
  gap: 12px;
  margin: 8px 0 18px;
}
.stats-builders > h3 { margin: 0; }
.build-post-btn {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 14px;
}
.build-author-bar strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 16px;
}
.build-author-bar.is-swap { animation: author-swap 0.35s var(--ease-out); }
.build-flip {
  position: relative;
  overflow: hidden;
  margin-inline: -18px;
  border-radius: 0;
}
.build-flip-face { display: grid; }
.build-flip-face > .build-card {
  grid-area: 1 / 1;
  min-width: 0;
  border-radius: 0;
  border-inline: 0;
}
.build-card.is-enter-next { transform: translateX(18%); opacity: 0; }
.build-card.is-enter-prev { transform: translateX(-18%); opacity: 0; }
.build-card.is-shown,
.build-card.is-leave-next,
.build-card.is-leave-prev {
  transition: transform 0.5s var(--ease-out), opacity 0.5s var(--ease-out);
}
.build-card.is-shown { z-index: 1; transform: none; opacity: 1; }
.build-card.is-leave-next { transform: translateX(-18%); opacity: 0; pointer-events: none; }
.build-card.is-leave-prev { transform: translateX(18%); opacity: 0; pointer-events: none; }
.build-cover.empty {
  display: grid;
  place-items: center;
  height: clamp(320px, 42vw, 480px);
  color: var(--muted);
  font-size: 13px;
}
.build-strip {
  display: flex;
  gap: 6px;
  padding: 8px 10px;
  overflow-x: auto;
  background: color-mix(in srgb, var(--ink) 3%, transparent);
}
.build-thumb {
  flex: none;
  width: 48px;
  height: 48px;
  padding: 0;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
}
.build-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.build-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  gap: 8px;
  padding: 72px 20px 16px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.82));
}
.build-author {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
}
.build-author .avatar {
  width: 32px;
  height: 32px;
  flex: none;
}
.build-author strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}
.build-title {
  margin: 0;
  font-family: Unbounded, Bahnschrift, sans-serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
  color: #fff;
}
.build-body {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.build-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.build-like {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 4px 12px 4px 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(12, 10, 8, 0.72);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  backdrop-filter: blur(8px);
}
.build-like-heart {
  width: 32px;
  height: 32px;
  padding: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  object-fit: contain;
  box-sizing: border-box;
}
.build-like.on .build-like-heart {
  background: rgba(255, 59, 48, 0.28);
  box-shadow: 0 0 14px rgba(255, 59, 48, 0.7);
}
.build-sheet .build-like { min-height: 52px; padding: 6px 16px 6px 6px; font-size: 18px; }
.build-sheet .build-like-heart { width: 40px; height: 40px; padding: 6px; }
.build-post-col { display: grid; gap: 6px; justify-items: end; }
.build-post-hint { margin: 0; max-width: 220px; text-align: right; }
.build-reel { display: grid; gap: 12px; }
.build-viewport { overflow: hidden; border-radius: 20px; }
.build-track {
  display: flex;
  transition: transform 0.45s var(--ease-out);
}
.build-slide { flex: 0 0 100%; min-width: 0; }
.build-card { cursor: pointer; }
.build-bar {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
}
.build-arrow {
  min-width: 112px;
  height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--field);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.stair-list { display: grid; gap: 8px; }
.stair-row {
  --step: 0;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-left: calc(var(--step) * 18px);
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--ink) calc(4% + var(--step) * 1%), var(--field));
  animation: stair-in 0.4s var(--ease-out) both;
  animation-delay: calc(var(--step) * 55ms);
}
.podium-seat { animation: stair-in 0.45s var(--ease-out) both; }
.build-dots { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.build-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: color-mix(in srgb, var(--ink) 25%, transparent);
  cursor: pointer;
}
.build-dot.on { width: 22px; background: #e6c15a; }
.build-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  background: rgba(0, 0, 0, 0.72);
}
.build-sheet {
  position: relative;
  width: min(920px, 100%);
  max-height: min(88vh, 900px);
  overflow: auto;
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--bg, #12100e);
}
.build-sheet-x {
  position: sticky;
  top: 0;
  justify-self: end;
  width: 36px;
  height: 36px;
  margin: -6px -4px -28px 0;
  border: 0;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  z-index: 1;
}
.build-sheet-gallery { display: grid; gap: 10px; }
.build-sheet-photo {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 16px;
  background: #0c0c0c;
}
.build-sheet-video,
.build-sheet-frame {
  width: 100%;
  max-height: 70vh;
  border: 0;
  border-radius: 16px;
  background: #000;
}
.build-sheet-frame { height: min(70vh, 640px); }
.build-poster-media { position: relative; }
.build-clip-mark {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.62);
  color: #f4efe8;
  font-size: 13px;
  font-weight: 700;
}
.build-sheet-how {
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
  white-space: pre-wrap;
}
.builds-top { display: grid; gap: 14px; }
.builds-top > h3 { margin: 0; }

.recruit-mine, .recruit-board, .punish-box {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--field);
}
.recruit-link {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.recruit-url {
  flex: 1 1 180px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 10px 12px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--ink) 6%, transparent);
  font-size: 13px;
}
.recruit-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.recruit-stat {
  display: grid;
  gap: 2px;
  padding: 12px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--ink) 5%, transparent);
  text-align: center;
}
.recruit-stat strong {
  font-size: 28px;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.podium, .recruit-podium {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 12px;
  align-items: end;
  width: 100%;
  min-width: 0;
}
.podium-seat {
  display: grid;
  gap: 8px;
  justify-items: center;
  align-content: end;
  text-align: center;
  min-width: 0;
  width: 100%;
  padding: 16px 10px 0;
  border-radius: 22px 22px 16px 16px;
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--ink) 8%, transparent), transparent 60%),
    var(--field);
  overflow: hidden;
  color: inherit;
  font: inherit;
}
button.podium-seat {
  width: 100%;
  cursor: pointer;
  transition: translate 0.16s var(--ease-out), border-color 0.16s var(--ease-out);
}
button.podium-seat:hover { translate: 0 -3px; }
.podium-seat.place-2 { order: 1; }
.podium-seat.place-1 { order: 2; border-color: color-mix(in srgb, #e6c15a 70%, var(--line)); }
.podium-seat.place-3 { order: 3; }
.podium-base {
  display: grid;
  place-items: center;
  width: calc(100% + 20px);
  margin-top: 6px;
  border-radius: 12px 12px 0 0;
  font-size: 22px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}
.podium-seat.place-1 .podium-base { height: 64px; color: #3a2a08; background: linear-gradient(180deg, #f3d98a, #c9962e); }
.podium-seat.place-2 .podium-base { height: 44px; color: #2c2c2c; background: linear-gradient(180deg, #f4f4f4, #b7b7b7); }
.podium-seat.place-3 .podium-base { height: 32px; color: #3d2410; background: linear-gradient(180deg, #e7b27a, #a86a32); }
.podium-avatar {
  position: relative;
  display: grid;
  justify-items: center;
  padding-top: 22px;
}
.podium-crown {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 2;
  transform: translateX(-50%);
  filter: none;
  pointer-events: none;
}
.podium-face {
  width: fit-content;
  padding: 3px;
  border-radius: 50%;
  overflow: visible;
  animation: none !important;
  box-shadow: none !important;
  background: #9a9a9a;
}
.podium-seat.place-1 .podium-face { background: linear-gradient(160deg, #fff6d4, #e6c15a 46%, #8d6a24); }
.podium-seat.place-2 .podium-face { background: linear-gradient(160deg, #ffffff, #d5d5d5 50%, #7a7a7a); }
.podium-seat.place-3 .podium-face { background: linear-gradient(160deg, #f6d7b4, #c4843a 50%, #7a4e18); }
.podium-face .avatar {
  display: block;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: none !important;
  animation: none !important;
}
.podium-nick {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 16px;
  line-height: 1.2;
}
.podium-seat.place-1 .podium-nick { font-size: 20px; }
.podium-metric {
  margin: 0;
  max-width: 100%;
  padding: 4px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 8%, transparent);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.podium.finalists { gap: 14px; padding-top: 28px; overflow: visible; }
.podium.finalists .podium-seat {
  min-height: 0;
  overflow: visible;
  border-width: 1px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}
.podium.finalists .place-1 {
  min-height: 0;
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(243, 217, 138, 0.34), transparent 62%),
    var(--field);
  box-shadow: 0 0 0 1px rgba(230, 193, 90, 0.35), 0 22px 48px rgba(201, 150, 46, 0.22);
}
.podium.finalists .place-2 {
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(255, 255, 255, 0.16), transparent 62%),
    var(--field);
}
.podium.finalists .place-3 {
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(231, 178, 122, 0.28), transparent 62%),
    var(--field);
}
.podium.finalists .podium-base {
  font-family: Unbounded, Bahnschrift, sans-serif;
  letter-spacing: 0.16em;
}
.podium.finalists .place-1 .podium-base { height: 78px; font-size: 28px; }
.podium.finalists .place-1 .podium-nick { font-size: 22px; }
.podium.finalists .podium-metric {
  max-width: 100%;
  white-space: normal;
  text-align: center;
  line-height: 1.3;
}
.final-board .stair-row { margin-left: 0; border-radius: 16px; }
.player-profile-modal { z-index: 46; }
.role-block {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}
.role-block-title {
  margin: 0;
  color: var(--muted);
  font-family: Unbounded, Bahnschrift, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.role-ribbon {
  padding: 5px 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.profile-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}
.nav-beta {
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--moss) 22%, transparent);
  color: var(--moss);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.chat-stage {
  display: flex;
  flex-direction: column;
  height: calc(100dvh - 148px);
  min-height: 460px;
  padding: 0;
  border-radius: 18px;
}
.chat-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 0;
  flex: 1;
  min-height: 0;
  width: 100%;
}
.chat-side {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 0;
  min-height: 0;
  border-right: 1px solid var(--line);
}
.chat-search {
  width: auto;
  margin: 10px 12px 4px;
  padding: 10px 14px;
  border-radius: 22px;
}
.chat-clan-slot { display: grid; }
.chat-label {
  margin: 8px 0 2px;
  padding: 0 16px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.chat-people {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: auto;
}
.chat-peer {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 64px;
  padding: 8px 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.chat-peer.on,
.chat-peer:hover {
  background: color-mix(in srgb, var(--ink) 6%, transparent);
}
.chat-peer.on { box-shadow: inset 3px 0 0 var(--accent, var(--moss)); }
.chat-peer-copy { display: grid; gap: 3px; min-width: 0; flex: 1; }
.chat-peer-top,
.chat-peer-bottom,
.chat-peer-line { display: flex; align-items: center; gap: 6px; min-width: 0; }
.chat-peer-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
}
.chat-peer-role {
  flex: none;
  color: var(--muted);
  font-size: 12px;
}
.chat-peer-time {
  margin-left: auto;
  flex: none;
  color: var(--muted);
  font-size: 12px;
}
.chat-peer:has(.chat-unread) .chat-peer-time { color: var(--accent, var(--moss)); }
.chat-peer-preview {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.chat-unread {
  flex: none;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--accent, var(--moss));
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}
.chat-empty-side { margin: 12px 16px; color: var(--muted); font-size: 13px; }
.chat-mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent, var(--moss)) 28%, var(--field));
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}
.chat-thread {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 0;
}
.chat-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 58px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--line);
}
.chat-back {
  display: none;
  flex: none;
  padding: 6px 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.chat-bar-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.chat-bar-copy { min-width: 0; }
.chat-bar .chat-mark { width: 40px; height: 40px; }
.chat-title { margin: 0; font-size: 16px; font-weight: 700; }
.chat-sub { margin: 1px 0 0; color: var(--muted); font-size: 13px; }
.chat-log {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-height: 0;
  overflow: auto;
  padding: 12px 14px 16px;
  background:
    radial-gradient(circle at 12% 8%, color-mix(in srgb, var(--accent, var(--moss)) 10%, transparent), transparent 36%),
    color-mix(in srgb, var(--field) 35%, transparent);
}
.chat-day {
  align-self: center;
  margin: 10px 0;
  padding: 3px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--field) 88%, transparent);
  color: var(--muted);
  font-size: 12px;
}
.chat-empty {
  align-self: center;
  margin: auto;
  max-width: 280px;
  color: var(--muted);
  text-align: center;
  line-height: 1.45;
}
.chat-bubble {
  display: flex;
  width: fit-content;
  max-width: min(78%, 540px);
  align-self: flex-start;
  margin-top: 8px;
  padding: 0;
  background: transparent;
}
.chat-bubble.cont { margin-top: 2px; }
.chat-bubble.mine { align-self: flex-end; }
.chat-who { display: flex; gap: 8px; align-items: flex-end; width: fit-content; max-width: 100%; }
.chat-avatar-gap { width: 34px; flex: none; }
.chat-copy {
  width: fit-content;
  max-width: 100%;
  min-width: 0;
  padding: 6px 10px 5px;
  border-radius: 16px 16px 16px 6px;
  background: color-mix(in srgb, var(--field) 92%, var(--ink));
}
.chat-bubble.mine .chat-copy {
  border-radius: 16px 16px 6px 16px;
  background: color-mix(in srgb, var(--accent, var(--moss)) 24%, var(--field));
}
.chat-author {
  display: block;
  margin-bottom: 2px;
  color: var(--accent, var(--moss));
  font-size: 13px;
  font-weight: 700;
}
.chat-text {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.35;
}
.chat-text::after { content: ""; display: table; clear: both; }
.chat-time {
  float: right;
  margin: 6px 0 0 8px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
}
.chat-form {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 8px 12px 12px;
}
.chat-stage.card:focus-within { box-shadow: none; }
.chat-field {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--field);
  padding: 8px 14px;
}
.chat-field:focus-within { border-color: color-mix(in srgb, var(--accent) 70%, var(--line)); }
.chat-form textarea {
  display: block;
  width: 100%;
  min-height: 24px;
  max-height: 140px;
  padding: 2px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  resize: none;
  line-height: 1.4;
  box-shadow: none;
}
.chat-form textarea:focus,
.chat-form textarea:focus-visible {
  outline: none;
  border-color: transparent;
  box-shadow: none;
}
.chat-send {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--accent, #f25c1d);
  color: #fff;
  cursor: pointer;
}
.chat-send:disabled { opacity: 0.55; }
.chat-down {
  display: none;
  position: absolute;
  right: 18px;
  bottom: 76px;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: color-mix(in srgb, var(--field) 92%, var(--ink));
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}
.chat-down.show { display: grid; }
.chat-down-count:empty { display: none; }
.chat-down-count {
  position: absolute;
  top: -6px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent, var(--moss));
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
}
@media (max-width: 800px) {
  .chat-stage { height: calc(100dvh - 120px); border-radius: 16px; }
  .chat-layout { grid-template-columns: 1fr; }
  .chat-layout .chat-thread { display: none; }
  .chat-layout.is-open .chat-side { display: none; }
  .chat-layout.is-open .chat-thread { display: grid; }
  .chat-back { display: inline-flex; }
  .chat-side { border-right: 0; }
}
.player-profile-window {
  position: relative;
  width: min(720px, 100%);
  max-height: min(88vh, 820px);
  overflow: auto;
  padding: 18px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: rgba(16, 16, 16, 0.62);
  backdrop-filter: blur(16px);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.45);
  animation: pop-in 0.24s var(--ease-out);
}
.player-profile-detail {
  margin: 0;
  border: 0;
  background: transparent;
}
.stair-row.is-link {
  width: 100%;
  border: 0;
  cursor: pointer;
  text-align: left;
  color: inherit;
  font: inherit;
}
.stair-row.is-link:hover {
  background: color-mix(in srgb, var(--ink) 6%, var(--field));
}
.crown { display: block; flex: none; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35)); }
.place.has-crown,
.lb-place.has-crown {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
}
.lb td.lb-rank {
  width: 52px;
  vertical-align: middle;
}
.recruit-board .top-picker { margin: 0 0 14px; }
.recruit-row { cursor: default; }
.recruit-row .avatar { flex: none; }

@keyframes stair-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@keyframes author-swap {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 800px) {
  .grid, .split, .map-layout, .server-row, .stat-boards, .cabinet-layout, .cabinet-split, .home-stage, .discord-dock, .play-row, .chat-layout { grid-template-columns: 1fr; }
  .cabinet-leave { flex-direction: column; align-items: stretch; }
  .play-actions { justify-content: flex-start; }
  .promo-card { grid-template-columns: minmax(0, 1fr) 112px; padding: 22px 18px; }
  .promo-art { width: 112px; height: 112px; border-radius: 22px; }
  .build-poster { flex-basis: min(100%, 320px); height: 360px; }
  .recruit-stats { grid-template-columns: 1fr; }
  .podium, .recruit-podium {
    gap: 8px;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "first first"
      "second third";
  }
  .podium-seat.place-1 { grid-area: first; order: 0; }
  .podium-seat.place-2 { grid-area: second; order: 0; }
  .podium-seat.place-3 { grid-area: third; order: 0; }
  .rate-podium { gap: 8px; }
  .rate-seat.place-1 .rate-step { height: 72px; font-size: 18px; }
  .rate-seat.place-2 .rate-step { height: 52px; font-size: 15px; }
  .rate-seat.place-3 .rate-step { height: 40px; font-size: 14px; }
  .rate-nick,
  .rate-seat.place-1 .rate-nick { font-size: 13px; }
  .lb-wrap { max-width: 100%; }
  .top-me { top: 148px; }
  .lb .lb-extra { display: none; }
  .podium-seat { padding: 12px 6px 0; gap: 6px; }
  .podium-nick,
  .podium-seat.place-1 .podium-nick { font-size: 13px; }
  .podium-metric { font-size: 12px; padding: 3px 7px; }
  .podium-seat.place-1 .podium-base { height: 46px; font-size: 18px; }
  .podium-seat.place-2 .podium-base { height: 32px; font-size: 16px; }
  .podium-seat.place-3 .podium-base { height: 24px; font-size: 14px; }
  .stair-row { margin-left: calc(var(--step) * 8px); }
  .final-board .stair-row { margin-left: 0; }
  .builds-head { flex-direction: column; }
  .build-post-col { justify-items: stretch; }
  .build-post-hint { max-width: none; text-align: left; }
  .build-post-btn { width: 100%; }
  .build-gallery { grid-template-columns: 1fr; }
  .build-cover,
  .build-cover.empty { height: 240px; }
  .build-flip { margin-inline: -18px; }
  .build-title { font-size: 18px; }
  .lb { min-width: 0; }
  .home-access { text-align: left; }
  .mark { font-size: 64px; }
  .count-num { font-size: 52px; }
  .top, .admin-head, .head-bar { align-items: flex-start; }
  .head-bar .nav { margin-inline: 0; order: 3; flex-basis: 100%; }
  .top, .page-head { position: sticky; top: 8px; }
  .side, .head-tools, .gate-tools { justify-items: start; justify-content: flex-start; width: 100%; }
  .nav { width: 100%; margin-inline: 0; }
  .nav button { flex: 0 0 auto; justify-content: center; padding: 8px 10px; font-size: 12px; }
  .news-slide { min-height: 150px; padding: 20px 18px 12px; }
  .section-title, .brand-block, .profile-name, .hello-copy { text-align: left; }
  .cabinet-hero, .hello { align-items: flex-start; }
  .btn, .nav button, .themes button, .peek { min-height: 40px; }
}
body.aim-open { overflow: hidden; }
.aim-page {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  margin: 0;
  background: #070605;
}
.aim-stage {
  position: relative;
  flex: 1;
  min-width: 0;
  min-height: 0;
  border-radius: 0;
  overflow: hidden;
  background: #070605;
}
.aim-clock {
  position: absolute;
  top: 16px;
  left: 50%;
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 8px 16px 8px 10px;
  translate: -50% 0;
  border-radius: 999px;
  background: rgba(8, 6, 5, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #f4efe9;
  pointer-events: none;
}
.aim-clock-icon {
  width: 28px;
  height: 28px;
  flex: none;
  color: var(--accent, #ff6a2a);
}
.aim-clock-copy { display: grid; }
.aim-clock-label {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b7b0aa;
}
.aim-clock-digits {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}
.aim-exit {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 9;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(8, 6, 5, 0.72);
  color: #f4efe9;
}
.aim-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  touch-action: none;
}
.aim-canvas.is-locked { cursor: none; }
.aim-hud {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 88px;
  z-index: 4;
  margin: 0;
  text-align: center;
  font-size: 14px;
  pointer-events: none;
}
.aim-phone {
  position: absolute;
  left: 24px;
  right: 24px;
  top: 50%;
  margin: 0;
  translate: 0 -50%;
  text-align: center;
}
.aim-pick {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 14px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 6, 5, 0.05), rgba(7, 6, 5, 0.55));
}
.aim-pick[hidden] { display: none; }
.aim-levels {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 640px;
  padding: 0 16px;
  pointer-events: auto;
}
.aim-level {
  width: 180px;
  display: grid;
  gap: 4px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(20, 17, 15, 0.92);
  text-align: left;
}
.aim-level.is-on { border-color: var(--accent, #ff6a2a); }
.aim-level-name { font-size: 18px; font-weight: 700; }
.aim-level-hint { font-size: 13px; color: #b7b0aa; }
.aim-pick-note,
.aim-pick-error {
  margin: 0;
  pointer-events: none;
}
.aim-pick-error { color: #ff8d7a; min-height: 1.2em; }
.aim-result {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: grid;
  place-items: center;
  background: rgba(7, 6, 5, 0.72);
}
.aim-result[hidden] { display: none; }
.aim-card {
  width: min(420px, calc(100% - 32px));
  padding: 18px 18px 16px;
  border-radius: 16px;
  background: #14110f;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.aim-kicker {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent, #ff6a2a);
}
.aim-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
  margin: 14px 0;
}
.aim-label {
  margin: 0;
  font-size: 12px;
  color: #b7b0aa;
}
.aim-value {
  margin: 2px 0 0;
  font-size: 28px;
  font-weight: 650;
}
.aim-actions {
  display: flex;
  gap: 8px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .card, .member-card, .btn { transform: none; }
  .orb, .grain, .mesh, .bg-video { display: none; }
  .stage { transform: none; }
}

#boot-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 24px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 50% at 50% 42%, rgba(255, 106, 42, 0.12), transparent 70%),
    #121212;
  text-align: center;
}
#boot-screen .boot-hello {
  display: grid;
  justify-items: center;
  gap: 8px;
}
#boot-screen .boot-welcome,
#boot-screen .boot-brand {
  margin: 0;
  font-family: Unbounded, Bahnschrift, "Segoe UI", sans-serif;
  font-weight: 600;
  color: #f4f4f4;
  opacity: 1;
}
#boot-screen .boot-welcome {
  font-size: clamp(26px, 5vw, 48px);
  letter-spacing: 0.04em;
  animation: boot-welcome-in 1.2s ease both !important;
}
#boot-screen .boot-brand {
  font-size: clamp(64px, 12vw, 120px);
  letter-spacing: 0.08em;
  line-height: 0.9;
  color: #ff6a2a;
  animation: boot-brand-in 1.2s ease 0.45s both !important;
}
#boot-screen.is-part .boot-welcome {
  animation: boot-welcome-out 2.6s cubic-bezier(0.45, 0, 0.2, 1) forwards !important;
}
#boot-screen.is-part .boot-brand {
  animation: boot-brand-out 2.6s cubic-bezier(0.45, 0, 0.2, 1) forwards !important;
}
#boot-screen.is-part {
  pointer-events: none;
  animation: boot-veil 0.8s ease 1.9s forwards !important;
}
#boot-screen .boot-sub {
  display: none;
  margin: 0;
  color: #8d8d8d;
  font-size: 15px;
  line-height: 1.4;
}
#boot-screen.is-error .boot-hello { display: none; }
#boot-screen.is-error .boot-sub { display: block; }
#boot-screen .boot-spin,
#boot-screen .boot-bar { display: none; }
@keyframes boot-welcome-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes boot-brand-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes boot-welcome-out {
  0% { opacity: 1; transform: translateX(0); }
  75% { opacity: 1; }
  100% { opacity: 0; transform: translateX(-70vw); }
}
@keyframes boot-brand-out {
  0% { opacity: 1; transform: translateX(0); }
  75% { opacity: 1; }
  100% { opacity: 0; transform: translateX(70vw); }
}
@keyframes boot-veil {
  to { opacity: 0; visibility: hidden; }
}

.site-music {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 14px;
  border-radius: 999px;
  background: rgba(18, 18, 18, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.site-music-title {
  max-width: 148px;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
}
.site-music-gain {
  width: 72px;
  accent-color: #f25c1d;
  cursor: pointer;
}
.site-music-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #f2f2f2;
  cursor: pointer;
}
.site-music-toggle.is-on {
  background: #f25c1d;
  color: #fff;
}
.site-music-note {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  width: max-content;
  max-width: 240px;
  margin: 0;
  padding: 8px 12px;
  border-radius: 12px;
  background: #1c1b19;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f2f2f2;
  font-size: 13px;
  line-height: 1.35;
}
[data-scheme="light"] .site-music {
  background: rgba(255, 250, 244, 0.86);
  border-color: rgba(40, 24, 12, 0.12);
}
[data-scheme="light"] .site-music-toggle { color: #2a211c; }
[data-scheme="light"] .site-music-toggle.is-on { color: #fff; }
[data-scheme="light"] .site-music-note {
  background: #fffaf4;
  color: #2a211c;
}
