@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 800;
  font-display: optional;
  src: url(../fonts/inter-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 800;
  font-display: optional;
  src: url(../fonts/inter-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 800;
  font-display: optional;
  src: url(../fonts/inter-greek-ext.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 800;
  font-display: optional;
  src: url(../fonts/inter-greek.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 800;
  font-display: optional;
  src: url(../fonts/inter-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 800;
  font-display: optional;
  src: url(../fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 800;
  font-display: optional;
  src: url(../fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-full: 9999px;

    --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --ease-out: cubic-bezier(0.25, 1, 0.5, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.5s var(--ease-out), color 0.5s var(--ease-out);
    position: relative;
}

.bg-mesh { display: none; }

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0;
}

h1 { font-size: 4.5rem; }
h2 { font-size: 3rem; }
h3 { font-size: 1.5rem; }
p { font-size: 1rem; color: var(--text-secondary); }

.gradient-text {
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 120px 0;
    position: relative;
    z-index: 1;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: var(--nav-bg);
    border-bottom: 1px solid var(--nav-border);
    transition: transform 0.3s ease;
}

.header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.header.hidden {
    transform: translateY(-100%);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.nav-logo {
    font-size: 1.25rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0;
}

.nav-logo span {
    font-weight: 500;
    color: var(--text-secondary);
}

.nav-logo-img {
    height: 36px;
    width: auto;
    display: block;
    border-radius: 6px;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
    position: relative;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s var(--ease-out);
}

.nav-links a.active::after, .nav-links a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-links a.nav-external {
    display: inline-flex;
    align-items: flex-start;
    gap: 3px;
}

.nav-external-icon {
    width: .72em;
    height: .72em;
    flex: none;
    margin-top: .08em;
    opacity: .7;
    transition: opacity .2s ease, transform .2s ease;
}

.nav-links a.nav-external:hover .nav-external-icon {
    opacity: 1;
    transform: translate(1px, -1px);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    outline: none;
}

.btn-primary {
    background-color: var(--brand-primary);
    color: var(--bg-color);
}

.btn-primary:hover {
    background-color: var(--brand-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(8px);
}

.btn-outline:hover {
    background-color: var(--card-bg);
    border-color: var(--text-tertiary);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.search-form {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.search-input {
    flex: 1;
    min-width: 180px;
    padding: 11px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    color: var(--text-primary);
    font-size: 0.95rem;
    outline: none;
    backdrop-filter: blur(12px);
}

.search-input:focus { border-color: var(--brand-accent); }

.search-select {
    padding: 11px 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
    cursor: pointer;
}

.search-results {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.search-row {
    display: flex;
    gap: 14px;
    padding: 16px 18px;
    border-radius: var(--radius-lg);
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(12px);
    text-decoration: none;
    transition: border-color 0.2s, transform 0.2s;
}

.search-row:hover {
    border-color: var(--brand-accent);
    transform: translateY(-2px);
}

.search-main { flex: 1; min-width: 0; }
.search-title { font-weight: 600; font-size: 1rem; color: var(--text-primary); margin-bottom: 6px; }
.search-excerpt { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; }

.search-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.search-board {
    padding: 1px 8px;
    border-radius: 4px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--brand-accent);
    font-weight: 600;
}

.search-hit {
    background: rgba(245, 158, 11, 0.25);
    color: inherit;
    padding: 0 2px;
    border-radius: 2px;
}

.nav-bell {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    padding: 4px !important;
}

.nav-bell svg {
    width: 20px;
    height: 20px;
}

.nav-bell::after { display: none !important; }

.nav-bell-badge {
    position: absolute;
    top: -2px;
    right: -6px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: var(--radius-full);
    background: #ef4444;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
}

.nav-user {
    position: relative;
    display: flex;
    align-items: center;
    flex: none;
}

.nav-avatar-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.375rem;
    min-width: 2.375rem;
    min-height: 2.375rem;
    aspect-ratio: 1;
    padding: 2px;
    border: 2px solid rgba(255, 255, 255, .32);
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.nav-avatar-toggle:hover,
.nav-user.open .nav-avatar-toggle,
.nav-user.active .nav-avatar-toggle {
    border-color: #7cb5ff;
    box-shadow: 0 0 0 3px rgba(77, 152, 255, .2);
    transform: translateY(-1px);
}

.nav-avatar {
    display: block;
    width: 1.875rem;
    min-width: 1.875rem;
    min-height: 1.875rem;
    aspect-ratio: 1;
    border-radius: 50%;
    object-fit: cover;
}

.nav-user-popover {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    z-index: 80;
    width: min(310px, calc(100vw - 24px));
    padding: 16px;
    color: var(--text-primary);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    background: var(--card-bg);
    box-shadow: 0 24px 60px rgba(3, 17, 39, .28);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-7px) scale(.98);
    transform-origin: top right;
    transition: opacity .16s ease, visibility .16s, transform .16s ease;
}

.nav-user-popover::before {
    content: '';
    position: absolute;
    right: 0;
    bottom: 100%;
    width: 72px;
    height: 14px;
}

.nav-user.open .nav-user-popover {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.nav-user-head {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.nav-user-head > img {
    width: 3rem;
    min-width: 3rem;
    min-height: 3rem;
    aspect-ratio: 1;
    flex: none;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--card-border);
}

.nav-user-head > div { min-width: 0; }
.nav-user-head strong,
.nav-user-head span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-user-head strong { font-size: 1rem; line-height: 1.4; }
.nav-user-head span { margin-top: 3px; color: var(--brand-accent); font-size: .76rem; font-weight: 700; }

.nav-level-track {
    min-height: .3125rem;
    margin: 13px 0 5px;
    overflow: hidden;
    border-radius: var(--radius-full);
    background: var(--card-border);
}
.nav-level-track i { display: block; min-height: .3125rem; border-radius: inherit; background: linear-gradient(90deg, #1769e8, #6caeff); }

.nav-user-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    padding: 10px 0 13px;
    border-bottom: 1px solid var(--card-border);
}

.header .nav-links .nav-user-stats a,
.nav-user-stats .nav-user-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 0;
    padding: 7px 3px;
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    text-align: center;
}
.header .nav-links .nav-user-stats a:hover { color: var(--brand-accent); background: rgba(23, 105, 232, .08); }
.header .nav-links .nav-user-stats a::after { display: none; }
.nav-user-stats b { font-size: .98rem; }
.nav-user-stats span { max-width: 100%; overflow: hidden; color: var(--text-tertiary); font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }

.nav-user-links { display: grid; gap: 3px; padding: 10px 0; }
.header .nav-links .nav-user-links a,
.header .nav-links .nav-user-logout {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 11px;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    font-size: .84rem;
    font-weight: 600;
}
.nav-user-logout-form { margin: 0; }
.header .nav-links .nav-user-logout { border: 0; background: none; font-family: inherit; line-height: inherit; text-align: center; cursor: pointer; }
.header .nav-links .nav-user-links a:hover { color: var(--text-primary); background: rgba(127, 145, 170, .12); }
.header .nav-links .nav-user-links a::after,
.header .nav-links .nav-user-logout::after { display: none; }
.nav-user-link-icon { display: inline-flex; align-items: center; justify-content: center; width: 22px; color: var(--brand-accent); font-size: 1rem; }
.header .nav-links .nav-user-logout {
    justify-content: center;
    padding-top: 11px;
    color: #e5484d;
    border-top: 1px solid var(--card-border);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}
.header .nav-links .nav-user-logout:hover { color: #ef4444; background: rgba(239, 68, 68, .08); }

[dir="rtl"] .nav-user-popover { right: auto; left: 0; transform-origin: top left; }
[dir="rtl"] .nav-user-popover::before { right: auto; left: 0; }

.notif-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    border-radius: var(--radius-lg);
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(12px);
    transition: border-color 0.2s;
}

.notif-item.unread {
    border-left: 3px solid var(--brand-accent);
    background: rgba(37, 99, 235, 0.04);
}

.notif-item:hover { border-color: var(--brand-accent); }
.notif-icon { font-size: 1.2rem; line-height: 1.4; flex-shrink: 0; }
.notif-main { flex: 1; min-width: 0; }
.notif-title { font-weight: 600; font-size: 0.95rem; color: var(--text-primary); }
.notif-title a { color: inherit; text-decoration: none; }
.notif-title a:hover { color: var(--brand-accent); }
.notif-content { font-size: 0.85rem; color: var(--text-secondary); margin-top: 4px; word-break: break-word; }
.notif-time { font-size: 0.75rem; color: var(--text-tertiary); margin-top: 6px; }

.notif-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
}

.notif-btn {
    background: none;
    border: none;
    color: var(--text-tertiary);
    font-size: 0.78rem;
    cursor: pointer;
    padding: 2px 4px;
    white-space: nowrap;
}

.notif-btn:hover { color: var(--brand-accent); }
.notif-btn.danger:hover { color: #ef4444; }

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 72px;
    position: relative;
}

.hero-content {
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.hero-title {
    font-size: 5.5rem;
    letter-spacing: 0;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.375rem;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-top: 16px;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 40px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: all 0.4s var(--ease-spring);
    position: relative;
    transform-style: preserve-3d;
}

.card-glare {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    pointer-events: none;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.2), transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    mix-blend-mode: overlay;
}

.card:hover .card-glare {
    opacity: 1;
}

.card h3 {
    margin-bottom: 16px;
    transform: translateZ(20px);
}

.card p {
    transform: translateZ(10px);
    line-height: 1.7;
}

.rules-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 48px;
}

.rule-group {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 32px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rule-group:hover {
    transform: translateX(8px);
    box-shadow: var(--card-shadow);
    border-color: var(--text-tertiary);
}

.rule-group h3 {
    margin-bottom: 16px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.rule-group ul {
    list-style: none;
}

.rule-group ul li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.rule-group ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--text-tertiary);
    transition: background-color 0.3s ease;
}

.rule-group:hover ul li::before {
    background-color: var(--brand-accent);
}

.ban-list { display: flex; flex-direction: column; gap: 12px; }

.ban-row {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    backdrop-filter: blur(12px);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ban-row:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-shadow);
    border-color: var(--text-tertiary);
}

.ban-avatar {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    flex-shrink: 0;
    image-rendering: pixelated;
    background: var(--bg-color);
}

.ban-info { flex: 1; min-width: 0; }
.ban-name { font-weight: 600; color: var(--text-primary); font-size: 1.05rem; margin-bottom: 4px; word-break: break-all; }
.ban-reason { font-size: 0.875rem; color: var(--text-secondary); margin-bottom: 6px; }
.ban-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 0.8rem; color: var(--text-tertiary); }

.ban-status {
    flex-shrink: 0;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}
.ban-status.active { background: rgba(239, 68, 68, 0.12); color: #ef4444; }
.ban-status.lifted { background: rgba(16, 185, 129, 0.12); color: #10b981; }

.pager { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 40px; }
.pager .btn.disabled { opacity: 0.45; pointer-events: none; }
.pager-info { color: var(--text-secondary); font-size: 0.9rem; }

.board-list { display: flex; flex-direction: column; gap: 14px; }
.board-row {
    display: flex; align-items: center; gap: 18px;
    background: var(--card-bg); border: 1px solid var(--card-border);
    border-radius: var(--radius-md); padding: 20px 24px; text-decoration: none;
    backdrop-filter: blur(12px); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.board-row:hover { transform: translateY(-2px); box-shadow: var(--card-shadow); border-color: var(--text-tertiary); }
.board-icon-svg { display: flex; flex: none; }
.board-icon-svg svg { display: block; }
.board-icon { width: 48px; height: 48px; border-radius: var(--radius-md); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--brand-accent), #8b5cf6); }
.board-main { flex: 1; min-width: 0; }
.board-name { font-weight: 600; font-size: 1.1rem; color: var(--text-primary); display: flex; align-items: center; gap: 10px; }
.board-desc { font-size: .875rem; color: var(--text-tertiary); margin-top: 4px; }
.board-tag { font-size: .7rem; font-weight: 500; padding: 2px 8px; border-radius: var(--radius-full); background: rgba(239,68,68,.1); color: #ef4444; }
.board-meta { text-align: right; flex-shrink: 0; }
.board-count { font-weight: 600; color: var(--text-secondary); font-size: .9rem; }
.board-latest { font-size: .8rem; color: var(--text-tertiary); margin-top: 4px; max-width: 200px; }

.crumb { font-size: .9rem; color: var(--text-tertiary); }
.crumb a { color: var(--text-secondary); text-decoration: none; }
.crumb a:hover { color: var(--text-primary); }
.thread-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 28px; }
.thread-list { display: flex; flex-direction: column; gap: 10px; }
.thread-row {
    display: flex; align-items: center; gap: 14px;
    background: var(--card-bg); border: 1px solid var(--card-border);
    border-radius: var(--radius-md); padding: 14px 18px; text-decoration: none;
    transition: transform .15s ease, border-color .15s ease;
}
.thread-row:hover { transform: translateX(4px); border-color: var(--text-tertiary); }
.thread-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.thread-main { flex: 1; min-width: 0; }
.thread-title { font-weight: 600; color: var(--text-primary); display: flex; align-items: center; gap: 8px; }
.thread-sub { font-size: .8rem; color: var(--text-tertiary); margin-top: 2px; }
.thread-stat { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: .8rem; color: var(--text-tertiary); flex-shrink: 0; }
.t-badge { font-size: .7rem; font-weight: 600; padding: 1px 7px; border-radius: 4px; }
.t-badge.pin { background: rgba(245,158,11,.14); color: #d97706; }
.t-badge.lock { background: rgba(107,114,128,.16); color: #6b7280; }

.thread-post { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius-lg); padding: 32px; backdrop-filter: blur(12px); }
.thread-post-title { font-size: 1.6rem; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.thread-post-by { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--card-border); margin-bottom: 20px; }
.thread-post-body { color: var(--text-secondary); line-height: 1.8; word-break: break-word; }
.thread-post .post-image { margin-top: 16px; }
.comment-quote-ref { font-size: .82rem; color: var(--text-tertiary); background: var(--bg-color); border-left: 3px solid var(--card-border); padding: 6px 10px; border-radius: 6px; margin-bottom: 6px; }
.comment-quote { margin-left: 4px; background: none; border: none; color: var(--text-tertiary); cursor: pointer; font-size: .75rem; }
.comment-quote:hover { color: var(--brand-accent); }
.reply-form { margin-top: 24px; background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius-md); padding: 20px; }
.reply-form textarea { width: 100%; padding: 12px 14px; border-radius: var(--radius-md); border: 1px solid var(--card-border); background: var(--bg-color); color: var(--text-primary); outline: none; resize: vertical; min-height: 90px; }
.reply-form textarea:focus { border-color: var(--brand-accent); }
.quote-indicator { display: flex; align-items: center; gap: 10px; font-size: .82rem; color: var(--text-secondary); background: var(--bg-color); padding: 8px 12px; border-radius: 6px; margin-bottom: 10px; }
.quote-clear { color: var(--brand-accent); cursor: pointer; }
.post-action.admin-act { color: var(--text-tertiary); }
.post-action.admin-act:hover { color: var(--brand-accent); }

.post-image { max-width: 100%; border-radius: var(--radius-md); max-height: 480px; object-fit: cover; display: block; }
.post-actions { display: flex; align-items: center; gap: 18px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--card-border); }
.post-action { display: inline-flex; align-items: center; gap: 6px; background: none; border: none; cursor: pointer; color: var(--text-tertiary); font-size: .9rem; padding: 4px 8px; border-radius: var(--radius-md); transition: color .2s, background .2s; }
.post-action:hover { color: var(--text-secondary); background: var(--bg-color); }
.post-action.liked { color: #ef4444; }
.post-action.liked svg { fill: #ef4444; }
.post-action svg { width: 18px; height: 18px; }
.post-action.danger:hover { color: #ef4444; }
.post-action.disabled { cursor: not-allowed; opacity: .55; }
.like-count { font-variant-numeric: tabular-nums; }

.comments { margin-top: 8px; }
.comment-item { display: flex; gap: 12px; padding: 14px 0; border-top: 1px solid var(--card-border); }
.comment-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.comment-main { flex: 1; min-width: 0; }
.comment-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; flex-wrap: wrap; }
.comment-name { font-weight: 600; font-size: .9rem; color: var(--text-primary); }
.comment-time { font-size: .75rem; color: var(--text-tertiary); }
.comment-text { font-size: .92rem; color: var(--text-secondary); line-height: 1.6; word-break: break-word; }
.comment-del { margin-left: auto; background: none; border: none; color: var(--text-tertiary); cursor: pointer; font-size: .75rem; }
.comment-del:hover { color: #ef4444; }

.toast-wrap { position: fixed; top: 72px; left: 50%; transform: translateX(-50%); z-index: 3000; display: flex; flex-direction: column; gap: 10px; align-items: center; width: max-content; max-width: calc(100vw - 32px); pointer-events: none; }
.ui-toast {
    position: relative; display: flex; align-items: center; gap: 12px; min-width: min(300px, calc(100vw - 32px)); max-width: min(460px, calc(100vw - 32px));
    padding: 13px 16px; overflow: hidden; border: 1px solid #e2e8f1; border-radius: 12px; background: #fff; color: #0b1730;
    box-shadow: 0 12px 32px rgba(11, 23, 48, .14), 0 2px 6px rgba(11, 23, 48, .06);
    font-size: .93rem; font-weight: 500; line-height: 1.5; pointer-events: auto;
    animation: ui-toast-in .32s cubic-bezier(.22, 1, .36, 1);
}
.ui-toast.out { animation: ui-toast-out .22s ease forwards; }
.ui-toast-msg { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.ui-toast-icon { display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%; color: #fff; }
.ui-toast-icon svg { width: 13px; height: 13px; }
.ui-toast-x { display: grid; place-items: center; flex: none; width: 26px; height: 26px; margin: -4px -6px -4px 4px; padding: 0; border: 0; border-radius: 6px; background: none; color: #94a3b8; cursor: pointer; }
.ui-toast-x:hover { background: rgba(148, 163, 184, .16); color: #334155; }
.ui-toast-x svg { width: 14px; height: 14px; }
.ui-toast-bar { position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; opacity: .85; transform-origin: left; animation: ui-toast-count var(--toast-life, 4s) linear forwards; }
.ui-toast:hover .ui-toast-bar { animation-play-state: paused; }
.ui-toast-success .ui-toast-icon, .ui-toast-success .ui-toast-bar { background: #1f9d5c; }
.ui-toast-error .ui-toast-icon, .ui-toast-error .ui-toast-bar { background: #d93b3b; }
.ui-toast-info .ui-toast-icon, .ui-toast-info .ui-toast-bar { background: #1769e8; }
.ui-toast-warning .ui-toast-icon, .ui-toast-warning .ui-toast-bar { background: #e08a12; }
@keyframes ui-toast-in { from { opacity: 0; transform: translateY(-12px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes ui-toast-out { to { opacity: 0; transform: scale(.96); } }
@keyframes ui-toast-count { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { .ui-toast, .ui-toast.out { animation: none; } .ui-toast.out { opacity: 0; } }

.ui-modal-mask { position: fixed; inset: 0; background: rgba(0,0,0,.45); backdrop-filter: blur(2px); z-index: 3001; display: flex; align-items: center; justify-content: center; padding: 24px; opacity: 0; transition: opacity .2s; }
.ui-modal-mask.show { opacity: 1; }
.ui-modal { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius-lg); padding: 28px; max-width: 380px; width: 100%; backdrop-filter: blur(16px); transform: scale(.94); transition: transform .2s var(--ease-spring); }
.ui-modal-mask.show .ui-modal { transform: scale(1); }
.ui-modal-body { color: var(--text-primary); font-size: 1rem; line-height: 1.6; margin-bottom: 24px; }
.ui-modal-actions { display: flex; gap: 12px; justify-content: flex-end; }
.ui-modal-actions .btn { padding: 8px 20px; }

input[type="file"] { font-size: .9rem; color: var(--text-tertiary); max-width: 100%; }
input[type="file"]::file-selector-button {
    margin-right: 12px; padding: 9px 18px; border-radius: var(--radius-md);
    border: 1px solid var(--card-border); background: var(--bg-color); color: var(--text-primary);
    cursor: pointer; font-weight: 500; font-size: .9rem; transition: border-color .2s, color .2s, background .2s;
}
input[type="file"]::file-selector-button:hover { border-color: var(--brand-accent); color: var(--brand-accent); }

@media (max-width: 560px) {
    .ban-row { flex-wrap: wrap; }
    .ban-status { order: -1; margin-left: auto; }
}

.alert {
    padding: 16px 24px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    font-weight: 500;
    display: inline-block;
    backdrop-filter: blur(8px);
}

.alert-red {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.alert-blue {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.footer {
    padding: 48px 0;
    text-align: center;
    border-top: 1px solid var(--nav-border);
    color: var(--text-tertiary);
    font-size: 0.875rem;
}

.footer-disclaimer {
    margin: 16px auto 0 auto;
    max-width: 720px;
    font-size: 0.75rem;
    line-height: 1.7;
    color: var(--text-tertiary);
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
    will-change: opacity, transform;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.stagger-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
    will-change: opacity, transform;
}

.stagger-item.active {
    opacity: 1;
    transform: translateY(0);
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.9);
    cursor: zoom-out;
    backdrop-filter: blur(4px);
}

.lightbox.open {
    display: flex;
    animation: lb-fade 0.25s var(--ease-out);
}

.lightbox img {
    max-width: 95%;
    max-height: 90vh;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

@keyframes lb-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    line-height: 0;
}
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 768px) {
    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .nav-pages {
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 24px 16px;
        background: var(--nav-bg);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--nav-border);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        pointer-events: none;
        transition: max-height 0.3s var(--ease-out), opacity 0.3s var(--ease-out), padding 0.3s var(--ease-out);
    }

    .nav-pages.open {
        max-height: 80vh;
        opacity: 1;
        pointer-events: auto;
        overflow-y: auto;
    }

    .nav-pages li { width: 100%; }

    .nav-pages a {
        display: block;
        width: 100%;
        padding: 14px 4px;
        border-bottom: 1px solid var(--nav-border);
    }

    .nav-pages a::after { display: none; }

    .section {
        padding: 80px 0;
    }
}

:root {
    --bg-color: #f7faff;
    --text-primary: #0b1730;
    --text-secondary: #5f6f87;
    --text-tertiary: #8a99ad;
    --brand-primary: #1769e8;
    --brand-primary-hover: #0d58cd;
    --brand-accent: #1769e8;
    --card-bg: #ffffff;
    --card-border: #e2eaf4;
    --card-shadow: 0 18px 40px rgba(24, 65, 123, .09);
    --nav-bg: #061a38;
    --nav-border: rgba(255, 255, 255, .1);
}

html { background: var(--bg-color); }
body { background: var(--bg-color); color: var(--text-primary); }
.container { max-width: 1200px; padding-left: 24px; padding-right: 24px; }

.header {
    height: 56px;
    background: rgba(6, 26, 56, .97);
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    box-shadow: 0 4px 18px rgba(3, 17, 39, .12);
}
.navbar { height: 56px; }
.header .nav-logo { color: #fff; gap: 8px; font-size: 17px; letter-spacing: 0; }
.nav-logo-img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
    padding: 1px;
}
.nav-logo-copy { display: inline-flex; align-items: baseline; gap: 5px; }
.nav-logo-copy b { font-weight: 800; }
.nav-logo-copy > span { color: rgba(255, 255, 255, .84); font-weight: 500; }
.header .nav-links { gap: clamp(12px, 2.2vw, 27px); margin-left: auto; }
.header .nav-links a {
    color: rgba(255, 255, 255, .8);
    font-size: .83rem;
    font-weight: 600;
    white-space: nowrap;
}
.header .nav-links a:hover,
.header .nav-links a.active { color: #fff; }
.header .nav-links a::after {
    bottom: -17px;
    height: 2px;
    background: #4d98ff;
}
.header .nav-links .nav-admin {
    display: inline-flex;
    align-items: center;
    padding: 7px 13px;
    border-radius: 5px;
    color: #fff;
    background: #1769e8;
    box-shadow: 0 5px 13px rgba(23, 105, 232, .3);
}
.header .nav-links .nav-admin::after { display: none; }
.header .nav-links .nav-account-link { color: rgba(255, 255, 255, .65); }
.header .nav-links .nav-account-link:hover { color: #fff; }
.header .nav-bell { color: rgba(255, 255, 255, .85); }
.header .nav-bell-badge { top: -4px; right: -7px; }
.nav-icon-item { display: flex; align-items: center; }
.header .nav-actions { flex: none; }

.header .nav-logo { flex: none; white-space: nowrap; }
.nav-logo-copy, .nav-logo-copy > span { white-space: nowrap; }
.header .nav-links > li > a, .lang-toggle { white-space: nowrap; }

.header.has-announcement-rail { height: auto; min-height: 96px; }
body.has-announcement-rail { padding-top: 40px; }
.site-announcement-rail {
    min-height: 40px;
    color: #eaf3ff;
    background: linear-gradient(90deg, #0a346d, #0d4a91 52%, #0a346d);
    border-top: 1px solid rgba(255, 255, 255, .1);
    box-shadow: 0 8px 22px rgba(3, 17, 39, .16);
}
.site-announcement-rail.announcement-level-success { background: linear-gradient(90deg, #075b4c, #087968 52%, #075b4c); }
.site-announcement-rail.announcement-level-warning { background: linear-gradient(90deg, #70400a, #9a5b0b 52%, #70400a); }
.site-announcement-rail.announcement-level-urgent { background: linear-gradient(90deg, #7d1b29, #ad2638 52%, #7d1b29); }
.site-announcement-rail[hidden] { display: none; }
.site-announcement-rail-inner { display: flex; align-items: center; gap: 14px; min-height: 40px; }
.site-announcement-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: none;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    color: #fff;
}
.site-announcement-label svg { width: 17px; height: 17px; flex: none; }
.site-announcement-track { flex: 1; min-width: 0; overflow: hidden; }
.site-announcement-item { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: .8rem; white-space: nowrap; }
.site-announcement-item[hidden] { display: none; }
.site-announcement-item strong { flex: none; color: #fff; font-size: .82rem; }
.site-announcement-summary { min-width: 0; overflow: hidden; color: rgba(255, 255, 255, .78); text-overflow: ellipsis; }
.site-announcement-item > a { flex: none; color: #fff; font-weight: 700; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .55); }
.site-announcement-item > a:hover { border-color: #fff; }
.site-announcement-level {
    flex: none;
    padding: 2px 7px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, .1);
    font-size: .65rem;
    font-weight: 800;
}
.site-announcement-controls { display: flex; align-items: center; gap: 3px; flex: none; }
.site-announcement-controls button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 27px;
    height: 27px;
    padding: 0;
    color: rgba(255, 255, 255, .82);
    border: 0;
    border-radius: 50%;
    background: transparent;
    font: inherit;
    font-size: 1.05rem;
    line-height: 1;
    cursor: pointer;
}
.site-announcement-controls button:hover { color: #fff; background: rgba(255, 255, 255, .14); }

body.announcement-modal-open { overflow: hidden; }
.site-announcement-modal-mask {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(3, 17, 39, .62);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity .22s var(--ease-out);
}
.site-announcement-modal-mask[hidden] { display: none; }
.site-announcement-modal-mask.show { opacity: 1; }
.site-announcement-modal {
    position: relative;
    width: 100%;
    max-width: 560px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding: 34px 36px 32px;
    color: var(--text-primary);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    background: var(--card-bg);
    box-shadow: 0 28px 80px rgba(3, 17, 39, .28);
    transform: translateY(16px) scale(.97);
    transition: transform .24s var(--ease-spring);
}
.site-announcement-modal-mask.show .site-announcement-modal { transform: translateY(0) scale(1); }
.site-announcement-modal-accent { position: absolute; inset: 0 0 auto; height: 5px; background: #1769e8; }
.site-announcement-modal.announcement-level-success .site-announcement-modal-accent { background: #10b981; }
.site-announcement-modal.announcement-level-warning .site-announcement-modal-accent { background: #f59e0b; }
.site-announcement-modal.announcement-level-urgent .site-announcement-modal-accent { background: #ef4444; }
.site-announcement-modal-x {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 34px;
    height: 34px;
    color: var(--text-tertiary);
    border: 1px solid var(--card-border);
    border-radius: 50%;
    background: var(--bg-color);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}
.site-announcement-modal-x:hover { color: var(--brand-accent); border-color: var(--brand-accent); }
.site-announcement-modal-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    color: #1769e8;
    border-radius: var(--radius-md);
    background: #eaf3ff;
}
.site-announcement-modal-icon svg { width: 25px; height: 25px; }
.announcement-level-success .site-announcement-modal-icon { color: #047857; background: #d1fae5; }
.announcement-level-warning .site-announcement-modal-icon { color: #b45309; background: #fef3c7; }
.announcement-level-urgent .site-announcement-modal-icon { color: #dc2626; background: #fee2e2; }
.site-announcement-modal-level { display: block; margin-bottom: 8px; color: var(--brand-accent); font-size: .72rem; font-weight: 800; letter-spacing: .08em; }
.site-announcement-modal h2 { margin: 0; padding-right: 32px; color: var(--text-primary); font-size: 1.65rem; line-height: 1.3; }
.site-announcement-modal-summary { margin-top: 10px; color: var(--text-secondary); font-size: .95rem; }
.site-announcement-modal-content { margin-top: 20px; padding-top: 20px; color: var(--text-secondary); border-top: 1px solid var(--card-border); font-size: .92rem; line-height: 1.8; word-break: break-word; }
.site-announcement-modal-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 26px; }
.site-announcement-modal-actions .btn { min-width: 108px; }
[dir="rtl"] .site-announcement-modal-x { right: auto; left: 16px; }
[dir="rtl"] .site-announcement-modal h2 { padding-right: 0; padding-left: 32px; }
.ann-confirm-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; }
.ann-confirm-links a { color: var(--brand-accent); font-size: .9rem; font-weight: 600; text-decoration: none; }
.ann-confirm-links a:hover { text-decoration: underline; }
.ann-confirm-items { display: grid; gap: 10px; margin-top: 20px; padding: 16px 18px; border-radius: var(--radius-md); background: #f7faff; border: 1px solid var(--card-border); }
.ann-confirm-items label { display: flex; align-items: flex-start; gap: 10px; color: var(--text-primary); font-size: .9rem; line-height: 1.6; cursor: pointer; }
.ann-confirm-items input { flex: none; width: 17px; height: 17px; margin-top: 3px; accent-color: var(--brand-accent); }
.ann-confirm .btn[disabled] { opacity: .5; cursor: not-allowed; box-shadow: none; transform: none; }

@media (max-width: 720px) {
    .site-announcement-rail-inner { gap: 9px; padding-left: 14px; padding-right: 10px; }
    .site-announcement-label { font-size: 0; }
    .site-announcement-label svg { width: 18px; height: 18px; }
    .site-announcement-level { display: none; }
    .site-announcement-item { gap: 7px; }
    .site-announcement-item strong { max-width: 42%; overflow: hidden; text-overflow: ellipsis; }
    .site-announcement-item > a { display: none; }
    .site-announcement-controls { gap: 0; }
    .site-announcement-controls button { width: 24px; height: 26px; }
    .header.has-announcement-rail.nav-compact .nav-pages { top: 96px; }
    .site-announcement-modal { padding: 30px 22px 24px; }
    .site-announcement-modal h2 { font-size: 1.35rem; }
    .site-announcement-modal-actions { flex-direction: column-reverse; }
    .site-announcement-modal-actions .btn { width: 100%; min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .site-announcement-modal-mask, .site-announcement-modal { transition: none; }
}

.nav-group { position: relative; }
.nav-group-btn { display: inline-flex; align-items: center; gap: 3px; padding: 0; border: 0; background: none; color: inherit; font: inherit; font-size: .95rem; font-weight: 500; line-height: inherit; white-space: nowrap; cursor: pointer; transition: color .2s; }
.header .nav-group-btn { color: rgba(255, 255, 255, .8); }
.header .nav-group-btn:hover, .header .nav-group.active > .nav-group-btn, .header .nav-group.is-open > .nav-group-btn { color: #fff; }
.nav-group-btn { position: relative; }
.nav-group-btn::after { content: ""; position: absolute; inset: -14px -10px; }
.nav-group-arrow { flex: none; width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--ease-out); }
.nav-group.is-open > .nav-group-btn .nav-group-arrow { transform: rotate(180deg); }
.nav-group-menu { position: absolute; top: calc(100% + 14px); left: 50%; z-index: 50; display: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; width: 470px; margin-left: -235px; padding: 8px; box-sizing: border-box; border-radius: 12px; background: #fff; box-shadow: 0 22px 46px -18px rgba(6, 26, 56, .5), 0 0 0 1px rgba(6, 26, 56, .08); }
.nav-group-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.nav-group.is-open > .nav-group-menu { display: grid; animation: nav-group-in .18s var(--ease-out); }
@keyframes nav-group-in { from { opacity: 0; transform: translateY(-6px); } }
.header .nav-links a.nav-card { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: #16202e; font-size: .9rem; white-space: normal; transition: background .15s; }
.header .nav-links a.nav-card::after { display: none; }
.header .nav-links a.nav-card:hover, .header .nav-links a.nav-card.active { background: #f0f5fd; }
.nav-card-ico { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; background: #eaf2fe; color: #1769e8; transition: background .15s, color .15s; }
.nav-card-ico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.header .nav-links a.nav-card:hover .nav-card-ico { background: #1769e8; color: #fff; }
.nav-card-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.nav-card-text b { color: #16202e; font-weight: 600; }
.nav-card-text b .nav-external-icon { margin-left: 2px; vertical-align: super; }
.nav-card-text small { color: #748094; font-size: .76rem; font-weight: 400; line-height: 1.4; }
.header.nav-compact .nav-group { position: static; }
.header.nav-compact .nav-group-btn { display: none; }
.header.nav-compact .nav-group-menu { position: static; display: block; width: auto; margin: 0; padding: 0; border-radius: 0; background: none; box-shadow: none; animation: none; }
.header.nav-compact .nav-group-menu::before { display: none; }
.header.nav-compact.header .nav-links a.nav-card { padding: 10px 4px; border-bottom: 1px solid var(--nav-border); border-radius: 0; color: #fff; background: none; }
.header.nav-compact .nav-card-ico { background: rgba(255, 255, 255, .1); color: #fff; }
.header.nav-compact .nav-card-text b { color: rgba(255, 255, 255, .92); }
.header.nav-compact .nav-card-text small { color: rgba(255, 255, 255, .55); }

.header.nav-compact .nav-toggle { display: inline-flex; align-items: center; justify-content: center; margin-left: 8px; color: #fff; }
.header.nav-compact .nav-toggle:hover { background: rgba(255, 255, 255, .1); }
.header.nav-compact .nav-actions { margin-left: auto; }
.header.nav-compact .nav-pages {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 16px;
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--nav-border);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height .3s var(--ease-out), opacity .3s var(--ease-out), padding .3s var(--ease-out);
}
.header.nav-compact .nav-pages.open { max-height: 80vh; opacity: 1; pointer-events: auto; overflow-y: auto; }
.header.nav-compact .nav-pages li { width: 100%; }
.header.nav-compact .nav-pages > li > a { display: block; width: 100%; padding: 14px 4px; border-bottom: 1px solid var(--nav-border); }
.header.nav-compact .nav-pages > li:last-child > a { border-bottom: 0; }
.header.nav-compact .nav-pages > li > a::after { display: none; }
@media (min-width: 901px) {
    .header.nav-compact .navbar { position: relative; }
    .header.nav-compact .nav-pages,
    .header.has-announcement-rail.nav-compact .nav-pages {
        top: calc(100% + 1px);
        left: auto;
        right: 24px;
        width: min(300px, calc(100vw - 32px));
        padding: 6px 16px;
        border: 1px solid var(--nav-border);
        border-top: 0;
        border-radius: 0 0 var(--radius-md) var(--radius-md);
        box-shadow: 0 18px 44px rgba(3, 17, 39, .3);
    }
    [dir="rtl"] .header.nav-compact .nav-pages { right: auto; left: 24px; }
}

.nav-lang { position: relative; }
.lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: rgba(255, 255, 255, .8);
    font: inherit;
    font-size: .78rem;
    line-height: 1;
    cursor: pointer;
    transition: background .2s var(--ease-out), color .2s var(--ease-out);
}
.lang-toggle:hover, .nav-lang.open .lang-toggle { color: #fff; background: rgba(255, 255, 255, .1); }
.lang-toggle svg { width: 17px; height: 17px; flex: none; }
.lang-toggle .lang-caret { width: 13px; height: 13px; transition: transform .2s var(--ease-out); }
.nav-lang.open .lang-caret { transform: rotate(180deg); }
.lang-current { white-space: nowrap; max-width: 96px; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1080px) {
    .lang-current, .lang-toggle .lang-caret { display: none; }
}

.lang-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    z-index: 60;
    min-width: 196px;
    max-height: 336px;
    overflow-y: auto;
    overscroll-behavior: contain;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    box-shadow: 0 18px 44px rgba(0, 0, 0, .3);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .18s var(--ease-out), transform .18s var(--ease-out), visibility .18s, display .18s allow-discrete;
}
.nav-lang.open .lang-menu { display: block; opacity: 1; visibility: visible; transform: translateY(0); }
@starting-style {
    .nav-lang.open .lang-menu { opacity: 0; transform: translateY(-6px); }
}

.header .nav-links .lang-menu li { width: 100%; }
.header .nav-links .lang-menu a {
    display: block;
    padding: 8px 12px;
    border: 0;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: .82rem;
    white-space: nowrap;
    text-decoration: none;
}
.header .nav-links .lang-menu a::after { display: none; }
.header .nav-links .lang-menu a:hover { background: rgba(127, 145, 170, .16); color: var(--text-primary); }
.header .nav-links .lang-menu a.active { color: var(--brand-accent); font-weight: 600; }

@media (max-width: 768px) {
    .header .nav-user { position: static; }
    .header .nav-user-popover { top: calc(100% + 8px); right: 12px; }
    [dir="rtl"] .header .nav-user-popover { right: auto; left: 12px; }
}

[dir="rtl"] .lang-menu { right: auto; left: 0; }
[dir="rtl"] .footer-main, [dir="rtl"] .footer-bottom { direction: rtl; }
[dir="rtl"] .rules-list ul { padding-right: 20px; padding-left: 0; }

.home-hero {
    position: relative;
    min-height: 460px;
    min-height: min(520px, 52vw);
    overflow: hidden;
    color: #fff;
    background: #071c3c;
}
.home-hero-media,
.home-hero-scrim,
.home-hero-grid { position: absolute; inset: 0; }
.home-hero-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center 54%;
    filter: saturate(.9) contrast(1.05);
}
.home-hero-scrim {
    background: linear-gradient(90deg, rgba(3, 19, 49, .94) 0%, rgba(3, 26, 67, .78) 41%, rgba(6, 43, 91, .2) 100%);
}
.home-hero-grid {
    opacity: .13;
    background-image: linear-gradient(rgba(119, 185, 255, .27) 1px, transparent 1px), linear-gradient(90deg, rgba(119, 185, 255, .27) 1px, transparent 1px);
    background-size: 68px 68px;
    mask-image: linear-gradient(90deg, #000, transparent 78%);
}
.home-hero-inner {
    position: relative;
    z-index: 1;
    min-height: 100%;
    display: flex;
    align-items: center;
    padding-top: 56px;
    padding-bottom: 42px;
}
.home-hero-copy { max-width: 630px; }
.home-hero-title { margin: 0; color: #fff; letter-spacing: 0; }
.home-hero-brand {
    display: block;
    font-size: 5.35rem;
    font-weight: 800;
    line-height: .98;
    letter-spacing: 0;
}
.home-hero-promise {
    display: block;
    max-width: 610px;
    margin-top: 17px;
    font-size: 3.1rem;
    font-weight: 750;
    line-height: 1.18;
    letter-spacing: 0;
}
.home-hero-line { white-space: nowrap; }
.home-hero-subtitle {
    margin: 20px 0 0;
    color: rgba(255, 255, 255, .86);
    font-size: 1.24rem;
    font-weight: 500;
}
.home-hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 26px; }
.home-btn {
    flex: none;
    min-height: 42px;
    padding: 10px 21px;
    border-radius: 5px;
    gap: 12px;
    font-size: .91rem;
    font-weight: 700;
}
.home-btn svg { width: 17px; height: 17px; flex: none; }
.home-btn-primary { color: #fff; background: #1769e8; box-shadow: 0 10px 22px rgba(0, 79, 202, .24); }
.home-btn-primary:hover { color: #fff; background: #2b7af3; transform: translateY(-2px); }
.home-btn-ghost { color: #fff; border: 1px solid rgba(255, 255, 255, .55); background: rgba(7, 31, 68, .2); }
.home-btn-ghost:hover { color: #fff; border-color: #fff; background: rgba(255, 255, 255, .1); }
.home-server-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 21px;
    padding: 0;
    border: 0;
    color: rgba(255, 255, 255, .72);
    background: transparent;
    font: inherit;
    font-size: .82rem;
    cursor: copy;
}
.home-server-pill strong { color: #fff; font-weight: 700; letter-spacing: .02em; }
.home-server-copy { color: rgba(255, 255, 255, .5); }
.home-server-dot { width: 7px; height: 7px; border-radius: 50%; background: #f59e0b; }
.home-server-dot.is-online { background: #3ee08d; box-shadow: 0 0 0 4px rgba(62, 224, 141, .14); }

.home-announcement-center { padding: 24px 0; background: #f7faff; border-bottom: 1px solid #e6eef9; }
.home-announcement-center .container { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: stretch; }
.home-announcement-heading { display: flex; align-items: flex-start; gap: 12px; padding: 15px 0; }
.home-announcement-heading-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: none;
    color: #1769e8;
    border-radius: 50%;
    background: #eaf3ff;
}
.home-announcement-heading-icon svg { width: 21px; height: 21px; }
.home-announcement-heading p { margin: 1px 0 5px; color: #1769e8; font-size: .66rem; font-weight: 800; letter-spacing: .12em; }
.home-announcement-heading h2 { color: #0b1730; font-size: 1.45rem; }
.home-announcement-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.home-announcement-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 150px;
    padding: 18px 18px 16px;
    overflow: hidden;
    border: 1px solid #dfe9f6;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(42, 86, 140, .06);
}
.home-announcement-card::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 3px; background: #1769e8; }
.home-announcement-card.announcement-level-success::before { background: #10b981; }
.home-announcement-card.announcement-level-warning::before { background: #f59e0b; }
.home-announcement-card.announcement-level-urgent::before { background: #ef4444; }
.home-announcement-card-level { align-self: flex-start; margin-bottom: 10px; color: #1769e8; font-size: .66rem; font-weight: 800; letter-spacing: .08em; }
.home-announcement-card.announcement-level-success .home-announcement-card-level { color: #059669; }
.home-announcement-card.announcement-level-warning .home-announcement-card-level { color: #b45309; }
.home-announcement-card.announcement-level-urgent .home-announcement-card-level { color: #dc2626; }
.home-announcement-card h3 { overflow: hidden; color: #0b1730; font-size: 1rem; text-overflow: ellipsis; white-space: nowrap; }
.home-announcement-card p { display: -webkit-box; margin-top: 8px; overflow: hidden; color: #6e7f97; font-size: .76rem; line-height: 1.65; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.home-announcement-card a { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin-top: auto; padding-top: 12px; color: #1769e8; font-size: .76rem; font-weight: 700; text-decoration: none; }
.home-announcement-card a:hover { color: #0d58cd; }
[dir="rtl"] .home-announcement-card::before { inset: 0 0 0 auto; }
@media (max-width: 980px) {
    .home-announcement-center .container { grid-template-columns: 1fr; gap: 12px; }
    .home-announcement-heading { padding: 0; }
    .home-announcement-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
    .home-announcement-grid { grid-template-columns: 1fr; }
    .home-announcement-card { min-height: 136px; }
}

.home-stats { background: #fff; border-bottom: 1px solid #e8eef7; }
.home-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.home-stat {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 118px;
    padding: 20px 28px;
    border-right: 1px solid #e5ebf4;
}
.home-stat:last-child { border-right: 0; }
.home-stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: none;
    color: #1769e8;
    border-radius: 50%;
    background: #eaf3ff;
}
.home-stat-icon svg { width: 23px; height: 23px; }
.home-stat span:last-child { display: flex; flex-direction: column; min-width: 0; }
.home-stat strong { color: #0a1730; font-size: 1.72rem; line-height: 1.1; letter-spacing: 0; }
.home-stat small { margin-top: 5px; color: #344765; font-size: .84rem; font-weight: 700; }
.home-stat em { margin-top: 1px; color: #8a99ad; font-size: .72rem; font-style: normal; white-space: nowrap; }

.home-section { padding: 48px 0; }
.home-features { padding: 38px 0 46px; background: #f1f7ff; }
.home-section-heading { margin: 0 auto 22px; text-align: center; }
.home-section-heading h2 { margin: 7px 0 9px; color: #0c1b35; font-size: 2.25rem; letter-spacing: 0; }
.home-section-heading > p:last-child { color: #73839b; font-size: .9rem; }
.home-eyebrow { color: #1769e8 !important; font-size: .68rem !important; font-weight: 800; letter-spacing: .16em; }
.home-feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.home-feature-card {
    display: flex;
    flex-direction: column;
    min-height: 190px;
    padding: 20px;
    border: 1px solid #e1eaf6;
    border-radius: 8px;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 12px 28px rgba(42, 86, 140, .06);
    transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}
.home-feature-card:hover { border-color: #b6d1f4; box-shadow: 0 18px 36px rgba(42, 86, 140, .12); transform: translateY(-4px); }
.home-feature-icon { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 38px; height: 38px; color: #1769e8; border-radius: 50%; background: #e9f2ff; }
.home-feature-icon svg { width: 20px; height: 20px; }
.home-feature-card h3 { margin: 18px 0 9px; color: #0b1730; font-size: 1.1rem; }
.home-feature-card p { color: #6e7f97; font-size: .78rem; line-height: 1.7; }
.home-feature-card a { margin-top: auto; color: #1769e8; font-size: 1.8rem; line-height: 1; text-decoration: none; }
.home-worlds { background: #fff; padding-top: 40px; padding-bottom: 14px; }
.world-track { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.world-card {
    display: block;
    min-width: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 8px;
    color: inherit;
    background: transparent;
    text-align: left;
    cursor: zoom-in;
}
.world-card-image { display: block; overflow: hidden; aspect-ratio: 1.76; border-radius: 8px; background: #dce9f8; }
.world-card-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.world-card:hover .world-card-image img { transform: scale(1.05); }
.world-card-copy { display: flex; flex-direction: column; gap: 4px; padding: 10px 2px 0; }
.world-card-copy strong { color: #142542; font-size: .9rem; }
.world-card-copy small { overflow: hidden; color: #8090a7; font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.home-cta { position: relative; min-height: 164px; margin-bottom: 0; overflow: hidden; border-radius: 8px 8px 0 0; color: #fff; background: #092c68; }
.home-cta-image, .home-cta-scrim { position: absolute; inset: 0; width: 100%; height: 100%; }
.home-cta-image { display: block; object-fit: cover; object-position: center 48%; opacity: .72; }
.home-cta-scrim { background: rgba(3, 25, 65, .72); }
.home-cta-content { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 164px; padding: 22px 24px; text-align: center; }
.home-cta-content h2 { color: #fff; font-size: 2.7rem; letter-spacing: 0; }
.home-cta-content p { margin: 7px 0 17px; color: rgba(255, 255, 255, .85); font-size: .9rem; }
.home-btn-light { color: #1769e8; background: #fff; box-shadow: 0 8px 18px rgba(0, 0, 0, .12); }
.home-btn-light:hover { color: #0d58cd; background: #f4f8ff; transform: translateY(-2px); }

.home-contact { padding: 44px 0 52px; background: #f1f7ff; border-top: 1px solid #e6eef9; }
.home-contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.home-contact-card {
    display: flex;
    flex-direction: column;
    padding: 22px;
    border: 1px solid #e1eaf6;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(42, 86, 140, .06);
}
.home-contact-icon { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; color: #1769e8; }
.home-contact-icon svg { width: 21px; height: 21px; }
.home-contact-card h3 { margin: 14px 0 9px; color: #0b1730; font-size: 1.1rem; }
.home-contact-card p { margin-bottom: 16px; color: #6e7f97; font-size: .78rem; line-height: 1.7; }
.home-contact-value {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    margin-top: auto;
    padding: 11px 14px;
    border: 1px solid #dbe7f7;
    border-radius: 6px;
    color: #1769e8;
    background: #f7fbff;
    font: inherit;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: border-color .24s ease, background .24s ease;
}
.home-contact-value:hover { border-color: #b6d1f4; background: #eaf3ff; }
.home-contact-value strong { font-size: 1rem; }
.home-contact-value span { color: #8496ae; font-size: .72rem; white-space: nowrap; }

.home-certifications { padding: 48px 0 52px; background: #fff; border-top: 1px solid #e6eef9; }
.home-certification-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.home-certification-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 126px;
    padding: 18px;
    overflow: hidden;
    border: 1px solid #dfe9f6;
    border-radius: 8px;
    background: #f8fbff;
    box-shadow: 0 10px 24px rgba(42, 86, 140, .05);
    transition: border-color .24s ease, box-shadow .24s ease, transform .24s ease;
}
.home-certification-card[type="button"] { width: 100%; color: inherit; font: inherit; cursor: pointer; }
.home-certification-card:hover { border-color: #aacaf1; box-shadow: 0 16px 32px rgba(42, 86, 140, .12); transform: translateY(-3px); }
.home-certification-card:focus-visible { outline: 3px solid rgba(23, 105, 232, .32); outline-offset: 3px; }
.home-certification-card img { display: block; max-width: 100%; height: auto; object-fit: contain; }
.home-certification-note { max-width: 840px; margin: 18px auto 0; color: #8493a8; font-size: .7rem; line-height: 1.65; text-align: center; }

body.oxvelo-modal-open { overflow: hidden; }
.oxvelo-modal-mask {
    position: fixed;
    inset: 0;
    z-index: 3100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(16px, 4vw, 32px);
    background: rgba(2, 15, 35, .68);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity .2s ease;
}
.oxvelo-modal-mask[hidden] { display: none; }
.oxvelo-modal-mask.show { opacity: 1; }
.oxvelo-modal {
    position: relative;
    width: min(100%, 36rem);
    max-height: 86vh;
    overflow-y: auto;
    padding: clamp(24px, 5vw, 38px);
    border: 1px solid #dce9f8;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(2, 22, 51, .3);
    transform: translateY(14px) scale(.97);
    transition: transform .2s ease;
}
.oxvelo-modal-mask.show .oxvelo-modal { transform: translateY(0) scale(1); }
.oxvelo-modal:focus { outline: none; }
.oxvelo-modal-x {
    position: absolute;
    top: 14px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    min-height: 38px;
    padding: 0;
    border: 1px solid #d8e4f2;
    border-radius: 50%;
    color: #5d7089;
    background: #f6faff;
    font: inherit;
    font-size: 1.35rem;
    cursor: pointer;
}
.oxvelo-modal-x:hover { color: #1769e8; border-color: #9fc3f5; }
.oxvelo-modal-eyebrow { margin: 0 44px 8px 0; color: #1769e8; font-size: .72rem; font-weight: 800; letter-spacing: .12em; }
.oxvelo-modal h2 { margin: 0 44px 0 0; color: #10294b; font-size: clamp(1.35rem, 4vw, 1.8rem); line-height: 1.25; }
.oxvelo-modal-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    margin: 18px 0 0;
    padding: 7px 13px;
    border-radius: 999px;
    font-size: .84rem;
    font-weight: 750;
}
.oxvelo-modal-status::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.oxvelo-modal-status.is-loading { color: #49637f; background: #eef4fb; }
.oxvelo-modal-status.is-valid { color: #087b4d; background: #dcfce7; }
.oxvelo-modal-status.is-invalid, .oxvelo-modal-status.is-error { color: #b42318; background: #fee4e2; }
.oxvelo-modal-record { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 22px 0 0; }
.oxvelo-modal-record[hidden] { display: none; }
.oxvelo-modal-record > div { min-width: 0; padding: 14px 15px; border: 1px solid #e1ebf7; border-radius: 10px; background: #f7faff; }
.oxvelo-modal-record dt { color: #74869c; font-size: .7rem; font-weight: 650; }
.oxvelo-modal-record dd { margin: 5px 0 0; overflow-wrap: anywhere; color: #153458; font-size: .94rem; font-weight: 750; }
.oxvelo-modal-source { margin: 18px 0 0; color: #788ba3; font-size: .72rem; line-height: 1.65; }
.oxvelo-modal-close { display: flex; margin: 22px 0 0 auto; min-width: 108px; justify-content: center; }
[dir="rtl"] .oxvelo-modal-x { right: auto; left: 14px; }
[dir="rtl"] .oxvelo-modal-eyebrow, [dir="rtl"] .oxvelo-modal h2 { margin-right: 0; margin-left: 44px; }

.site-footer { padding: 30px 0 14px; color: #aab9ce; background: #061a38; border-top: 0; text-align: left; }
.footer-main { display: grid; grid-template-columns: 1.65fr 1fr 1fr 1.2fr; gap: 30px; padding-bottom: 20px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer-brand { padding-right: 20px; }
.footer-logo { display: inline-flex; align-items: center; gap: 9px; color: #fff; font-size: 1.02rem; font-weight: 600; text-decoration: none; }
.footer-logo img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: #fff; padding: 1px; }
.footer-logo b { font-weight: 800; }
.footer-brand p { margin-top: 9px; color: #8fa2bd; font-size: .74rem; }
.footer-brand p + p { margin-top: 4px; }
.footer-column { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.footer-column h2 { margin-bottom: 6px; color: #fff; font-size: .79rem; font-weight: 700; }
.footer-column a, .footer-column p { color: #8fa2bd; font-size: .77rem; text-decoration: none; }
.footer-column a:hover { color: #fff; }
.footer-report p { display: flex; flex-direction: column; gap: 1px; margin: 0; }
.footer-report p + p { margin-top: 4px; }
.footer-report p a { color: #dbe8fa; overflow-wrap: anywhere; }
.footer-ext { flex: none; width: .8em; height: .8em; margin-left: 3px; vertical-align: -1px; opacity: .7; }
.footer-partners { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer-partners h2 { flex: none; margin: 0; color: #fff; font-size: .72rem; font-weight: 700; }
.footer-partners a { color: #8fa2bd; font-size: .7rem; text-decoration: none; }
.footer-partners a:hover { color: #fff; }
.footer-stack a { color: #8fa2bd; font-size: inherit; text-decoration: none; }
.footer-stack a:hover { color: #fff; text-decoration: underline; }
.footer-stack { white-space: nowrap; color: #5f7290; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .95em; }
.site-footer .footer-disclaimer { max-width: none; margin: 11px 0 0; color: #6f829f; font-size: .64rem; line-height: 1.5; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 11px; }
.footer-bottom p, .footer-bottom a { color: #7f91aa; font-size: .7rem; }
.footer-bottom nav { display: flex; gap: 20px; }
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: #fff; }
.footer-bottom .footer-unity { position: relative; display: inline-flex; flex: none; align-items: center; gap: .38em; margin-left: .7em; max-width: 100%; padding: .1em .15em; font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", STSong, SimSun, serif; font-weight: 700; letter-spacing: .14em; text-decoration: none; isolation: isolate; }
.footer-unity::after { content: ""; position: absolute; right: .15em; bottom: -.12em; left: 1.5em; height: 1px; background: linear-gradient(90deg, rgba(255, 60, 60, 0), #ffd77a 50%, rgba(255, 60, 60, 0)); transform: scaleX(0); transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.footer-unity:hover::after, .footer-unity:focus-visible::after { transform: scaleX(1); }
.footer-unity-text { min-width: 0; }
.footer-unity-star { flex: none; width: 1.05em; height: 1.05em; fill: #ffc93c; }
.footer-unity-text > span { display: inline-block; white-space: pre; color: #e8202f; }
.footer-unity:hover .footer-unity-text > span, .footer-unity:focus-visible .footer-unity-text > span { animation: unity-hop .5s cubic-bezier(.3, 1.6, .5, 1) calc(var(--i) * .045s) 1 both; }
.footer-unity.is-fancy::before { content: ""; position: absolute; inset: -.35em -.6em; z-index: -1; border-radius: 999px; background: radial-gradient(closest-side, rgba(230, 20, 40, .32), rgba(230, 20, 40, 0)); animation: unity-breathe 3.2s ease-in-out infinite; pointer-events: none; }
.footer-unity.is-fancy .footer-unity-star { fill: #ffd34d; filter: drop-shadow(0 0 3px rgba(255, 196, 60, .85)) drop-shadow(0 0 7px rgba(255, 40, 40, .55)); animation: unity-star 6s linear infinite; }
.footer-unity.is-fancy .footer-unity-text > span { color: #f0283a; text-shadow: 0 0 4px rgba(240, 30, 50, .45); animation: unity-flow 3.2s ease-in-out calc(var(--i) * .11s) infinite; }
.footer-unity.is-fancy:hover .footer-unity-text > span, .footer-unity.is-fancy:focus-visible .footer-unity-text > span { animation: unity-flow 3.2s ease-in-out calc(var(--i) * .11s) infinite, unity-hop .5s cubic-bezier(.3, 1.6, .5, 1) calc(var(--i) * .045s) 1 both; }
@keyframes unity-flow {
    0%, 22%, 100% { color: #f0283a; text-shadow: 0 0 4px rgba(240, 30, 50, .45); }
    9% { color: #fff1c2; text-shadow: 0 0 5px rgba(255, 215, 120, .95), 0 0 12px rgba(255, 70, 40, .8), 0 0 20px rgba(255, 30, 30, .45); }
}
@keyframes unity-hop { 0%, 100% { transform: translateY(0); } 45% { transform: translateY(-.32em); } }
@keyframes unity-star { 0% { transform: rotate(0) scale(1); } 8% { transform: rotate(29deg) scale(1.22); } 16%, 100% { transform: rotate(72deg) scale(1); } }
@keyframes unity-breathe { 0%, 100% { opacity: .55; transform: scale(.94); } 50% { opacity: 1; transform: scale(1.04); } }
@media (prefers-reduced-motion: reduce) {
    .footer-unity::before, .footer-unity-star, .footer-unity-text > span, .footer-unity:hover .footer-unity-text > span { animation: none !important; }
}
.footer-unity.is-unity { z-index: 9995; }
.unity-stage { position: fixed; inset: 0; z-index: 9990; overflow: hidden; pointer-events: none; visibility: hidden; opacity: 0; transition: opacity .55s ease, visibility 0s linear .55s; }
.unity-stage.on { visibility: visible; opacity: 1; transition: opacity .25s ease; }
.unity-scene { position: absolute; inset: 0; }
.unity-scene.shake { animation: unity-shake .55s cubic-bezier(.36, .07, .19, .97) 1; }
.unity-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.unity-veil { position: absolute; inset: 0; overflow: hidden; background: radial-gradient(ellipse at 50% 40%, rgba(150, 6, 24, .74), rgba(70, 0, 10, .9) 58%, rgba(14, 0, 3, .97)); -webkit-backdrop-filter: blur(7px) saturate(1.3); backdrop-filter: blur(7px) saturate(1.3); clip-path: circle(0 at var(--ox, 50%) var(--oy, 100%)); transition: clip-path .5s ease-in; }
.unity-stage.on .unity-veil { clip-path: circle(var(--or, 150vmax) at var(--ox, 50%) var(--oy, 100%)); transition: clip-path 1.1s cubic-bezier(.2, .7, .1, 1); }
.unity-veil::after { content: ""; position: absolute; inset: -50%; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); opacity: .09; mix-blend-mode: overlay; animation: unity-grain .9s steps(5) infinite; }
.unity-bloom { position: absolute; top: 40%; left: 50%; width: min(92vw, 1150px); height: min(42vw, 480px); border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 196, 96, .4), rgba(255, 70, 40, .2) 55%, rgba(255, 40, 40, 0)); opacity: 0; filter: blur(12px); transform: translate(-50%, -50%); scale: .5; transition: opacity .4s ease, scale .4s ease; }
.unity-stage.lit .unity-bloom { opacity: 1; scale: 1; transition: opacity .8s ease, scale 1.3s cubic-bezier(.2, .7, .1, 1); animation: unity-pulse 3.6s ease-in-out 1.3s infinite; }
.unity-hero { position: absolute; top: 40%; left: 50%; width: min(94vw, 1150px); transform: translate(-50%, -50%); perspective: 900px; }
.unity-hero-inner { display: flex; flex-direction: column; align-items: center; transform-style: preserve-3d; }
.unity-stage.lit .unity-hero-inner { animation: unity-sway 9s ease-in-out infinite; }
.unity-hero-text { display: flex; flex-wrap: wrap; justify-content: center; font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", STSong, SimSun, serif; font-size: clamp(2.4rem, 6.4vw, 5.8rem); font-weight: 900; line-height: 1.2; letter-spacing: .1em; }
.unity-hero-text > span { display: inline-block; white-space: pre; color: transparent; background: linear-gradient(110deg, transparent 38%, rgba(255, 255, 255, .95) 50%, transparent 62%) 160% 0 / 320% 100% no-repeat, linear-gradient(180deg, #fff6d2 0%, #ffd75e 34%, #ff5b3b 66%, #c20a24 100%); -webkit-background-clip: text; background-clip: text; opacity: 0; filter: blur(16px) drop-shadow(0 0 0 rgba(255, 70, 40, 0)) drop-shadow(0 0 0 rgba(90, 0, 12, 0)); transition: opacity .3s ease, filter .3s ease; }
.unity-stage.lit .unity-hero-text > span { opacity: 1; filter: blur(0) drop-shadow(0 0 16px rgba(255, 70, 40, .6)) drop-shadow(0 .06em 0 rgba(90, 0, 12, .9)); transition: opacity .7s ease calc(var(--i) * .05s), filter 1s ease calc(var(--i) * .05s); animation: unity-sheen 3s ease-in-out calc(.9s + var(--i) * .06s) infinite; }
.unity-hero-line { width: min(70vw, 660px); height: 2px; margin-top: .55em; background: linear-gradient(90deg, rgba(255, 215, 94, 0), #ffd75e 28%, #fff4d0 50%, #ffd75e 72%, rgba(255, 215, 94, 0)); box-shadow: 0 0 14px rgba(255, 200, 80, .85); transform: scaleX(0); transition: transform .3s ease; }
.unity-stage.lit .unity-hero-line { transform: scaleX(1); transition: transform 1.1s cubic-bezier(.2, .7, .1, 1) .45s; }
.unity-frame { position: absolute; inset: clamp(14px, 2.4vw, 32px); opacity: 0; transition: opacity .3s ease; }
.unity-stage.lit .unity-frame { opacity: 1; transition: opacity 1s ease .3s; }
.unity-frame::before { content: ""; position: absolute; inset: 9px; border: 1px solid rgba(255, 215, 120, .2); }
.unity-frame > i { position: absolute; width: clamp(34px, 4vw, 60px); height: clamp(34px, 4vw, 60px); border: 2px solid #ffd75e; filter: drop-shadow(0 0 6px rgba(255, 190, 70, .8)); scale: 0; transition: scale .3s ease; }
.unity-stage.lit .unity-frame > i { scale: 1; transition: scale .8s cubic-bezier(.2, 1.5, .4, 1) .35s; }
.unity-frame > i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; transform-origin: 0 0; }
.unity-frame > i:nth-child(2) { top: 0; right: 0; border-bottom: 0; border-left: 0; transform-origin: 100% 0; }
.unity-frame > i:nth-child(3) { bottom: 0; left: 0; border-top: 0; border-right: 0; transform-origin: 0 100%; }
.unity-frame > i:nth-child(4) { right: 0; bottom: 0; border-top: 0; border-left: 0; transform-origin: 100% 100%; }
.unity-flash { position: absolute; inset: 0; background: radial-gradient(circle at 50% 40%, rgba(255, 246, 220, .85), rgba(255, 200, 120, .3) 40%, rgba(255, 120, 60, 0) 75%); opacity: 0; }
.unity-stage.lit .unity-flash { animation: unity-flash 1s ease-out 1 both; }
@keyframes unity-sheen { 0% { background-position: 160% 0, 0 0; } 45%, 100% { background-position: -60% 0, 0 0; } }
@keyframes unity-sway { 0%, 100% { transform: rotateX(7deg) rotateY(-10deg); } 50% { transform: rotateX(-5deg) rotateY(10deg); } }
@keyframes unity-pulse { 0%, 100% { scale: 1; } 50% { scale: 1.09; } }
@keyframes unity-flash { 0% { opacity: 0; } 14% { opacity: 1; } 100% { opacity: 0; } }
@keyframes unity-grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-6%, 4%); } 40% { transform: translate(5%, -7%); } 60% { transform: translate(-3%, 8%); } 80% { transform: translate(7%, 3%); } 100% { transform: translate(0, 0); } }
@keyframes unity-shake { 0%, 100% { transform: translate(0, 0); } 15% { transform: translate(-7px, 4px); } 30% { transform: translate(6px, -5px); } 45% { transform: translate(-4px, -3px); } 60% { transform: translate(3px, 4px); } 80% { transform: translate(-1px, -1px); } }


@media (max-width: 1050px) {
    .header .nav-links { gap: 14px; }
    .header .nav-links a { font-size: .77rem; }
    .home-stat { padding-left: 18px; padding-right: 18px; }
    .home-hero-brand { font-size: 4.5rem; }
    .home-hero-promise { font-size: 2.15rem; }
    .home-hero-subtitle { font-size: 1.1rem; }
}

@media (max-width: 900px) {
    h1 { font-size: 3.5rem; }
    h2 { font-size: 2.5rem; }
    h3 { font-size: 1.35rem; }
    .hero-title { font-size: 4rem; }
    .hero-subtitle { font-size: 1.2rem; }
    .header .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: 8px;
        color: #fff;
    }
    .header .nav-pages {
        position: absolute;
        top: 56px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        max-height: 0;
        padding: 8px 24px 16px;
        overflow: hidden;
        opacity: 0;
        pointer-events: none;
        background: rgba(6, 26, 56, .98);
        border-bottom: 1px solid rgba(255, 255, 255, .1);
        transition: max-height .3s var(--ease-out), opacity .3s var(--ease-out), padding .3s var(--ease-out);
    }
    .header .nav-pages.open {
        max-height: 80vh;
        overflow-y: auto;
        opacity: 1;
        pointer-events: auto;
    }
    .header .nav-pages li { width: 100%; }
    .header .nav-pages a { display: block; width: 100%; padding: 13px 4px; border-bottom: 1px solid rgba(255, 255, 255, .1); font-size: .9rem; }
    .header .nav-pages a::after { display: none; }
    .header .nav-actions { gap: 14px; }
}

@media (max-width: 850px) {
    .home-hero { min-height: 520px; }
    .home-hero-inner { align-items: flex-end; padding-top: 95px; padding-bottom: 46px; }
    .home-hero-brand { font-size: 4.1rem; }
    .home-hero-promise { font-size: 2.2rem; }
    .home-stat { min-height: 105px; gap: 9px; padding: 16px 12px; }
    .home-stat strong { font-size: 1.35rem; }
    .home-stat small { font-size: .75rem; }
    .home-stat em { font-size: .66rem; }
    .home-stat-icon { width: 35px; height: 35px; }
    .home-stat-icon svg { width: 20px; height: 20px; }
    .home-feature-grid { grid-template-columns: repeat(2, 1fr); }
    .home-certification-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .footer-main { grid-template-columns: 1.4fr 1fr 1fr; }
    .footer-report { grid-column: 2 / -1; }
}

@media (max-width: 768px) {
    .header { height: 56px; }
    .navbar { height: 56px; }
    .header .nav-toggle { display: inline-flex; align-items: center; justify-content: center; color: #fff; margin-left: 4px; }
    .header .nav-toggle:hover { background: rgba(255, 255, 255, .1); }
    .header .nav-pages {
        top: 56px;
        gap: 0;
        padding: 8px 24px 16px;
        background: rgba(6, 26, 56, .98);
        border-bottom: 1px solid rgba(255, 255, 255, .1);
    }
    .header .nav-pages a { padding: 13px 4px; color: rgba(255, 255, 255, .84); font-size: .9rem; }
    .header .nav-actions { gap: 10px; }
    .home-hero { min-height: 590px; }
    .home-hero-inner { padding-top: 90px; padding-bottom: 42px; }
    .home-hero-brand { font-size: 3.7rem; }
    .home-hero-promise { font-size: 1.95rem; }
    .home-hero-line { white-space: normal; }
    .home-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 4px; padding-bottom: 4px; }
    .home-stat > span { min-width: 0; }
    .home-stat em { white-space: normal; }
    .home-stat:nth-child(2) { border-right: 0; }
    .home-stat:nth-child(-n + 2) { border-bottom: 1px solid #e5ebf4; }
    .home-section { padding: 50px 0; }
    .home-features { padding-top: 48px; padding-bottom: 50px; }
    .home-worlds { padding-top: 46px; padding-bottom: 16px; }
    .world-track { display: flex; overflow-x: auto; gap: 14px; padding-bottom: 5px; scroll-snap-type: x mandatory; scrollbar-width: none; }
    .world-track::-webkit-scrollbar { display: none; }
    .world-card { min-width: min(76vw, 330px); scroll-snap-align: start; }
    .home-contact { padding: 46px 0 50px; }
    .home-contact-grid { grid-template-columns: 1fr; }
    .footer-main { grid-template-columns: 1fr 1fr; gap: 28px 22px; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-report { grid-column: auto; }
}

@media (max-width: 520px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.25rem; }
    .hero-title { font-size: 3rem; }
    .hero-subtitle { font-size: 1.125rem; }
    .container { padding-left: 18px; padding-right: 18px; }
    .home-hero { min-height: 620px; }
    .home-hero-brand { font-size: 3rem; }
    .home-hero-promise { font-size: 1.65rem; }
    .home-hero-subtitle { font-size: 1rem; }
    .home-section-heading h2 { font-size: 1.9rem; }
    .home-cta-content h2 { font-size: 2rem; }
    .home-hero-image { object-position: 62% center; }
    .home-hero-scrim { background: linear-gradient(90deg, rgba(3, 19, 49, .95), rgba(3, 26, 67, .55)); }
    .home-hero-actions { flex-direction: column; align-items: stretch; max-width: 255px; }
    .home-btn { justify-content: space-between; }
    .home-server-pill { flex-wrap: wrap; }
    .home-stat { min-height: 102px; padding: 13px 7px; }
    .home-stat-icon { width: 32px; height: 32px; }
    .home-stat-icon svg { width: 18px; height: 18px; }
    .home-stat strong { font-size: 1.18rem; }
    .home-stat small { font-size: .7rem; }
    .home-stat em { font-size: .6rem; }
    .home-feature-grid { grid-template-columns: 1fr; }
    .home-feature-card { min-height: 185px; }
    .home-cta { width: auto; margin-left: 18px; margin-right: 18px; }
    .home-contact-value { align-items: flex-start; flex-direction: column; gap: 4px; }
    .home-contact-value strong { font-size: .94rem; word-break: break-all; }
    .home-certification-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .home-certification-card { min-height: 108px; padding: 12px; }
    .home-certification-note { font-size: .65rem; }
    .oxvelo-modal-record { grid-template-columns: 1fr; }
    .oxvelo-modal-close { width: 100%; min-width: 0; }
    .footer-main { grid-template-columns: 1fr 1fr; }
    .footer-brand, .footer-report { grid-column: 1 / -1; }
    .footer-bottom { align-items: flex-start; flex-direction: column; }
    .footer-bottom nav { gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    .home-feature-card, .world-card-image img, .home-btn, .home-certification-card, .oxvelo-modal-mask, .oxvelo-modal { transition: none; }
}

.home-page main { padding-top: 56px; }

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.header .nav-logo { gap: 5px; }
.nav-logo-copy b { color: #fff; }
.home-eyebrow { display: none; }
.home-stat-icon,
.home-feature-icon { overflow: hidden; background: transparent; }
.home-cta-image { opacity: 1; }
.home-cta-scrim { background: linear-gradient(90deg, rgba(3, 25, 65, .82), rgba(3, 25, 65, .46)); }
.home-cta { margin-top: 48px; margin-bottom: 48px; border-radius: 8px; }
.site-footer { position: relative; }
.footer-top {
    position: absolute;
    right: 15px;
    bottom: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 50%;
    color: #c6d4e7;
    background: rgba(255, 255, 255, .07);
    cursor: pointer;
}
.footer-top:hover { color: #fff; background: rgba(255, 255, 255, .13); }
.footer-top svg { width: 16px; height: 16px; }

@media (min-width: 901px) {
    .header .nav-pages {
        flex: 1;
        gap: 27px;
        margin-left: 78px;
    }
    .header .nav-actions { gap: 27px; margin-left: 27px; }
    .header .nav-links .nav-account-start { margin-left: auto; }
    .header .nav-links .nav-account-start ~ li { margin-left: -13px; }

    .home-hero {
        min-height: 414px;
    }
    .home-hero-image {
        object-fit: cover;
        object-position: center;
        filter: none;
    }
    .home-hero-scrim { background: linear-gradient(90deg, rgba(3, 21, 51, .78) 0%, rgba(3, 30, 67, .5) 48%, rgba(3, 24, 54, .12) 100%); }
    .home-hero-grid { opacity: .08; }
    .home-hero-inner {
        align-items: flex-start;
        max-width: 1024px;
        padding: 70px 24px 0 72px;
    }
    .home-hero-copy { max-width: 600px; }
    .home-hero-brand { font-size: 4.25rem; line-height: 1; transform: translateY(1px) scale(1.02, .95); transform-origin: left top; }
    .home-hero-promise { margin-top: 16px; font-size: 2rem; font-weight: 750; line-height: 1.25; transform: translate(1px, -1px) scale(.997, 1.015); transform-origin: left top; }
    .home-hero-subtitle { margin-top: 15px; font-size: 1.08rem; transform: translateX(1px) scale(1.01, .95); transform-origin: left top; }
    .home-hero-actions { margin-top: 24px; gap: 14px; }
    .home-btn { min-height: 42px; padding: 9px 18px; gap: 10px; font-size: .84rem; white-space: nowrap; }
    .home-btn-primary { min-width: 160px; }
    .home-btn-ghost { min-width: 145px; padding-right: 14px; padding-left: 14px; gap: 8px; }
    .home-server-pill { display: none !important; }

    .home-stats { height: 122px; }
    .home-stats-grid { width: 100%; max-width: 928px; height: 122px; padding: 0; }
    .home-stat { position: relative; min-height: 122px; padding: 18px 28px; gap: 13px; border-right: 0; }
    .home-stat:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 29px;
        right: -2px;
        width: 1px;
        height: 68px;
        background: #e5ebf4;
    }
    .home-stat-icon { width: 54px; height: 54px; transform: translateY(4px); }
    .home-stat > span:last-child { transform: translateY(6px); }
    .home-stat strong { font-size: 1.5rem; }
    .home-stat small { margin-top: 3px; font-size: .8rem; }
    .home-stat em { font-size: .68rem; }

    .home-features {
        min-height: 304px;
        padding: 31px 0 24px;
        background-color: #f1f7ff;
        background-image: none;
        background-position: center;
        background-repeat: no-repeat;
        background-size: 100% 100%;
    }
    .home-features > .container { max-width: 896px; padding: 0; }
    .home-section-heading { margin-bottom: 11px; }
    .home-section-heading h2 { margin: 0 0 7px; font-size: 1.5rem; }
    .home-section-heading > p:last-child { font-size: .76rem; }
    .home-feature-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; }
    .home-feature-card { min-height: 182px; padding: 17px 19px; }
    .home-feature-icon { width: 42px; height: 42px; }
    .home-feature-card h3 { margin: 12px 0 7px; font-size: 1rem; }
    .home-feature-card p { font-size: .7rem; line-height: 1.65; }
    .home-feature-card a { font-size: 1.45rem; }

    .home-worlds { min-height: 302px; padding: 15px 0 14px; }
    .home-worlds > .container { max-width: 960px; padding: 0; }
    .home-worlds .home-section-heading { margin-bottom: 5px; }
    .home-worlds .home-section-heading h2 { margin-bottom: 6px; font-size: 1.5rem; }
    .home-worlds .home-section-heading > p:last-child { font-size: .73rem; }
    .world-track { gap: 10px; }
    .world-card-image { aspect-ratio: 1.6; }
    .world-card-copy { gap: 2px; padding: 7px 1px 0; }
    .world-card-copy strong { font-size: .78rem; }
    .world-card-copy small { font-size: .66rem; }
    .home-cta {
        width: 100%;
        max-width: 960px;
        min-height: 162px;
        margin-top: 28px;
        margin-bottom: 28px;
        padding: 0;
    }
    .home-cta-content { min-height: 162px; padding: 20px 24px; }
    .home-cta-content { transform: translate(-16px, 5px); }
    .home-cta-content h2 { font-size: 2rem; }
    .home-cta-content p { margin: 5px 0 15px; font-size: .82rem; }
    .home-btn-light { min-width: 144px; min-height: 38px; position: relative; top: -2px; justify-content: center; }

    .home-contact { padding: 26px 0 32px; }
    .home-contact > .container { max-width: 960px; padding: 0; }
    .home-contact-grid { gap: 14px; }
    .home-contact-card { padding: 16px 18px; }
    .home-contact-icon { width: 34px; height: 34px; }
    .home-contact-icon svg { width: 19px; height: 19px; }
    .home-contact-card h3 { margin: 10px 0 6px; font-size: .98rem; }
    .home-contact-card p { margin-bottom: 12px; font-size: .69rem; line-height: 1.6; }
    .home-contact-value { padding: 9px 12px; }
    .home-contact-value strong { font-size: .88rem; }
    .home-contact-value span { font-size: .64rem; }

    .home-certifications { padding: 30px 0 34px; }
    .home-certifications > .container { max-width: 960px; padding: 0; }
    .home-certification-grid { gap: 12px; }
    .home-certification-card { min-height: 112px; padding: 15px; }

    .site-footer { min-height: 176px; padding: 21px 0 10px; }
    .site-footer > .container { max-width: 1024px; padding: 0 50px; }
    .footer-main { grid-template-columns: 264px 172px 172px 1fr; gap: 30px; padding-bottom: 16px; }
    .footer-logo { gap: 8px; font-size: .98rem; }
    .footer-logo img { width: 28px; height: 28px; }
    .footer-brand p { margin-top: 5px; font-size: .69rem; }
    .footer-brand p + p { margin-top: 4px; }
    .footer-column { gap: 3px; }
    .footer-column h2 { margin-bottom: 3px; font-size: .73rem; }
    .footer-column a,
    .footer-column p { font-size: .69rem; }
    .footer-partners { padding: 8px 0; }
    .footer-partners h2 { font-size: .67rem; }
    .footer-partners a { font-size: .65rem; }
    .footer-bottom { padding-top: 11px; }
    .footer-bottom p,
    .footer-bottom a { font-size: .65rem; }
}

@media (max-width: 900px) {
    .home-hero-image { object-position: 62% center; filter: none; }
    .home-hero-scrim { background: linear-gradient(90deg, rgba(3, 19, 49, .78), rgba(3, 26, 67, .32)); }
    .home-server-pill { display: none; }
    .home-stat-icon { background: #eaf3ff; }
    .home-feature-icon { width: 42px; height: 42px; }
    .home-cta-image { object-position: center; }
    .home-cta { margin-bottom: 32px; }
}

@media (max-width: 520px) {
    .footer-top { right: 10px; bottom: 10px; }
    .home-cta { margin-bottom: 28px; }
}

@media (min-width: 1200px) {
    .container { max-width: 1440px; padding-left: 40px; padding-right: 40px; }
    .header .nav-links { margin-left: 58px; }

    .home-hero {
        min-height: clamp(480px, 32vw, 560px);
    }
    .home-hero-scrim { background: linear-gradient(90deg, rgba(3, 21, 51, .8) 0%, rgba(3, 30, 67, .48) 48%, rgba(3, 24, 54, .1) 100%); }
    .home-hero-inner {
        max-width: 1440px;
        padding: 92px 64px 64px;
    }
    .home-hero-copy { max-width: 780px; }
    .home-hero-brand { font-size: clamp(4.5rem, 5.2vw, 6rem); }
    .home-hero-promise { max-width: 760px; font-size: clamp(2.25rem, 3vw, 3.4rem); }
    .home-hero-subtitle { font-size: 1.2rem; }
    .home-hero-actions { margin-top: 30px; }

    .home-stats { min-height: 132px; }
    .home-stats-grid { max-width: 1280px; height: auto; }
    .home-stat { min-height: 132px; padding: 24px 36px; }
    .home-stat-icon { width: 58px; height: 58px; }
    .home-stat strong { font-size: 1.72rem; }

    .home-features {
        height: auto;
        padding: 72px 0 82px;
        background-image: none;
    }
    .home-features > .container { max-width: 1280px; padding-left: 40px; padding-right: 40px; }
    .home-section-heading { margin-bottom: 32px; }
    .home-section-heading h2 { font-size: 2.35rem; }
    .home-section-heading > p:last-child { font-size: .98rem; }
    .home-feature-grid { gap: 24px; }
    .home-feature-card { min-height: 228px; padding: 28px; }
    .home-feature-icon { width: 48px; height: 48px; }
    .home-feature-card h3 { margin-top: 18px; font-size: 1.15rem; }
    .home-feature-card p { font-size: .84rem; }

    .home-worlds { height: auto; padding: 74px 0 24px; }
    .home-worlds > .container { max-width: 1320px; padding-left: 40px; padding-right: 40px; }
    .home-worlds .home-section-heading { margin-bottom: 32px; }
    .home-worlds .home-section-heading h2 { font-size: 2.35rem; }
    .world-track { gap: 20px; }
    .world-card-image { aspect-ratio: 1.72; }
    .world-card-copy { gap: 5px; padding: 13px 2px 0; }
    .world-card-copy strong { font-size: .98rem; }
    .world-card-copy small { font-size: .78rem; }
    .home-cta {
        width: calc(100% - 80px);
        max-width: 1280px;
        min-height: 220px;
        margin-top: 64px;
        margin-bottom: 64px;
        border-radius: 8px;
    }
    .home-cta-content { min-height: 220px; padding: 28px 40px; transform: none; }
    .home-cta-content h2 { font-size: 2.5rem; }
    .home-cta-content p { margin: 8px 0 20px; font-size: .96rem; }
    .home-btn-light { min-width: 158px; min-height: 42px; }

    .home-contact { padding: 68px 0 76px; }
    .home-contact > .container { max-width: 1280px; padding-left: 40px; padding-right: 40px; }
    .home-contact-grid { gap: 24px; }
    .home-contact-card { padding: 28px; }
    .home-contact-icon { width: 44px; height: 44px; }
    .home-contact-icon svg { width: 24px; height: 24px; }
    .home-contact-card h3 { margin-top: 18px; font-size: 1.15rem; }
    .home-contact-card p { margin-bottom: 20px; font-size: .84rem; }
    .home-contact-value { padding: 13px 16px; }

    .home-certifications { padding: 68px 0 76px; }
    .home-certifications > .container { max-width: 1280px; padding-left: 40px; padding-right: 40px; }
    .home-certification-grid { gap: 24px; }
    .home-certification-card { min-height: 142px; padding: 24px; }
    .home-certification-note { margin-top: 22px; font-size: .76rem; }

    .site-footer { height: auto; min-height: 246px; padding: 46px 0 20px; overflow: visible; }
    .site-footer > .container { max-width: 1280px; padding-left: 40px; padding-right: 40px; }
    .footer-main { grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 48px; padding-bottom: 26px; }
    .footer-logo { font-size: 1.08rem; }
    .footer-brand p { font-size: .78rem; }
    .footer-column { gap: 8px; }
    .footer-column h2 { font-size: .84rem; }
    .footer-column a, .footer-column p { font-size: .78rem; }
    .footer-bottom { padding-top: 16px; }
    .footer-bottom p, .footer-bottom a { font-size: .72rem; }
}

body:not(.home-page) {
    background: #f7faff;
}

body:not(.home-page) .gradient-text {
    background: none;
    color: #1769e8;
    -webkit-text-fill-color: currentColor;
}

body:not(.home-page) main { min-height: 0; }

body:not(.home-page) .hero {
    min-height: 258px !important;
    padding: 96px 0 42px !important;
    justify-content: flex-start;
    align-items: center;
    text-align: left;
    background: #f7faff;
    border-bottom: 1px solid transparent;
}
body:not(.home-page) .hero-content {
    width: 100%;
    max-width: 1200px;
    align-items: flex-start;
    gap: 12px;
}
body:not(.home-page) .hero-title {
    color: #0b1730;
    font-size: clamp(2rem, 4vw, 3.35rem);
}
body:not(.home-page) .hero-subtitle {
    max-width: 680px;
    color: #5f6f87;
    font-size: 1rem;
}
body:not(.home-page) .hero-actions { margin-top: 8px; }

body:not(.home-page) .section {
    padding: 72px 0 !important;
}
body:not(.home-page) .section > .container {
    max-width: 1200px;
}

body:not(.home-page) .card,
body:not(.home-page) .rule-group,
body:not(.home-page) .ban-row,
body:not(.home-page) .board-row,
body:not(.home-page) .thread-row,
body:not(.home-page) .thread-post,
body:not(.home-page) .reply-form,
body:not(.home-page) .search-row,
body:not(.home-page) .notif-item,
body:not(.home-page) .auth-container,
body:not(.home-page) .profile-card,
body:not(.home-page) .settings-card,
body:not(.home-page) .appeal-card,
body:not(.home-page) .post-form-card,
body:not(.home-page) .terms-doc,
body:not(.home-page) .admin-nav,
body:not(.home-page) .admin-content {
    background: #fff !important;
    border: 1px solid #e2eaf4 !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 28px rgba(42, 86, 140, .06);
    backdrop-filter: none !important;
}

body:not(.home-page) .card:hover,
body:not(.home-page) .rule-group:hover,
body:not(.home-page) .ban-row:hover,
body:not(.home-page) .board-row:hover,
body:not(.home-page) .thread-row:hover,
body:not(.home-page) .search-row:hover,
body:not(.home-page) .notif-item:hover {
    border-color: #b6d1f4 !important;
    box-shadow: 0 14px 30px rgba(42, 86, 140, .1);
}

body:not(.home-page) .btn {
    border-radius: 5px;
    font-size: .88rem;
}
body:not(.home-page) .btn-primary {
    background: #1769e8;
    color: #fff;
    box-shadow: 0 7px 16px rgba(23, 105, 232, .2);
}
body:not(.home-page) .btn-primary:hover { background: #2b7af3; }
body:not(.home-page) .btn-outline {
    color: #1769e8;
    border-color: #b9cde8;
    background: #fff;
    backdrop-filter: none;
}
body:not(.home-page) .btn-outline:hover { background: #eef5ff; border-color: #1769e8; }

body:not(.home-page) .search-input,
body:not(.home-page) .search-select,
body:not(.home-page) .form-control,
body:not(.home-page) input,
body:not(.home-page) textarea,
body:not(.home-page) select {
    border-radius: 5px;
    border-color: #d5e1ef;
    background: #f8fbff;
    box-shadow: none;
}
body:not(.home-page) .search-input:focus,
body:not(.home-page) .search-select:focus,
body:not(.home-page) .form-control:focus,
body:not(.home-page) input:focus,
body:not(.home-page) textarea:focus,
body:not(.home-page) select:focus { border-color: #1769e8; }

body:not(.home-page) .rule-group { padding: 28px; }
body:not(.home-page) .rule-group:hover { transform: translateY(-2px); }
body:not(.home-page) .rules-list { gap: 14px; margin-top: 28px; }
body:not(.home-page) .ban-list,
body:not(.home-page) .board-list,
body:not(.home-page) .thread-list,
body:not(.home-page) .search-results,
body:not(.home-page) .notif-list { gap: 10px; }
body:not(.home-page) .board-icon { border-radius: 6px; background: #1769e8; }
body:not(.home-page) .thread-row:hover { transform: translateY(-2px); }

body:not(.home-page) .profile-wrap,
body:not(.home-page) .settings-wrap,
body:not(.home-page) .appeal-wrap,
body:not(.home-page) .terms-wrap,
body:not(.home-page) .admin-layout {
    margin-top: 88px !important;
    margin-bottom: 72px !important;
}
body:not(.home-page) .terms-wrap { max-width: 920px; }
body:not(.home-page) .terms-doc { padding: 44px; }
body:not(.home-page) .terms-section { margin-top: 32px; }
body:not(.home-page) .profile-wrap { max-width: 820px; }
body:not(.home-page) .profile-card,
body:not(.home-page) .settings-card,
body:not(.home-page) .appeal-card { padding: 30px; }
body:not(.home-page) .stat-card { border-radius: 6px; }

body:not(.home-page) .admin-layout {
    max-width: 1280px;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 20px;
    padding-left: 24px;
    padding-right: 24px;
}
body:not(.home-page) .admin-nav { padding: 14px; top: 76px; }
body:not(.home-page) .admin-nav a { border-radius: 5px; padding: 10px 12px; }
body:not(.home-page) .admin-content { padding: 30px; }
body:not(.home-page) .stat-card { background: #f8fbff !important; box-shadow: none; }
body:not(.home-page) .section-title { font-size: 1.25rem; color: #0b1730; }
body:not(.home-page) .table th { color: #5f6f87; }

body:not(.home-page) .auth-container {
    max-width: 430px;
    margin: 88px auto 72px !important;
    padding: 32px !important;
}
body.auth-page { min-height: 100vh; }
body.auth-page { display: flex; flex-direction: column; }
body.auth-page > .container { flex: 1 0 auto; width: 100%; max-width: 1200px; }
body.auth-page .site-footer { margin-top: auto; }

@media (max-width: 900px) {
    body:not(.home-page) .hero { min-height: 220px !important; padding: 84px 0 32px !important; }
    body:not(.home-page) .section { padding: 56px 0 !important; }
    body:not(.home-page) .profile-wrap,
    body:not(.home-page) .settings-wrap,
    body:not(.home-page) .appeal-wrap,
    body:not(.home-page) .terms-wrap,
    body:not(.home-page) .admin-layout { margin-top: 76px !important; margin-bottom: 48px !important; }
    body:not(.home-page) .terms-doc,
    body:not(.home-page) .profile-card,
    body:not(.home-page) .settings-card,
    body:not(.home-page) .appeal-card,
    body:not(.home-page) .admin-content { padding: 22px !important; }
    body:not(.home-page) .admin-layout { grid-template-columns: 1fr; }
    body:not(.home-page) .admin-nav { position: static; }
}

@media (max-width: 520px) {
    body:not(.home-page) .hero { min-height: 198px !important; padding: 78px 0 26px !important; }
    body:not(.home-page) .hero-title { font-size: 2rem; }
    body:not(.home-page) .hero-subtitle { font-size: .9rem; }
    body:not(.home-page) .thread-head { align-items: flex-start; flex-direction: column; }
    body:not(.home-page) .thread-head > div:last-child,
    body:not(.home-page) .thread-head > .hero-actions { width: 100%; }
    body:not(.home-page) .thread-head .btn { flex: 1; }
    body:not(.home-page) .thread-post { padding: 20px !important; }
    body:not(.home-page) .thread-post-title { font-size: 1.3rem; }
    body:not(.home-page) .board-row { padding: 15px; gap: 12px; }
    body:not(.home-page) .board-meta { display: none; }
    body:not(.home-page) .ban-row { padding: 14px; }
    body:not(.home-page) .profile-top { align-items: flex-start; text-align: left; }
    body:not(.home-page) .profile-top .btn { align-self: stretch; }
    body:not(.home-page) .terms-doc { padding: 18px !important; }
    body:not(.home-page) .terms-section p { text-align: left; font-size: .92rem; }
    body:not(.home-page) .auth-container { padding: 24px 18px !important; }
}

body:not(.home-page) {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body:not(.home-page) main {
    flex: 1 0 auto;
}

body:not(.home-page) .site-footer {
    flex-shrink: 0;
}

body.rules-page main > .section {
    padding-top: 36px !important;
}

body.forum-board-page main > .section,
body.forum-thread-page main > .section,
body.forum-compose-page main > .section {
    padding-top: 88px !important;
    padding-bottom: 64px !important;
}

@media (max-width: 900px) {
    body.rules-page main > .section {
        padding-top: 28px !important;
    }

    body.forum-board-page main > .section,
    body.forum-thread-page main > .section,
    body.forum-compose-page main > .section {
        padding-top: 76px !important;
        padding-bottom: 52px !important;
    }
}

@media (max-width: 520px) {
    body.rules-page main > .section {
        padding-top: 22px !important;
    }

    body.forum-board-page main > .section,
    body.forum-thread-page main > .section,
    body.forum-compose-page main > .section {
        padding-top: 64px !important;
        padding-bottom: 44px !important;
    }
}

.row-link { position: relative; }
.row-link-target { color: inherit; text-decoration: none; }

.row-link .row-link-target::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
}

.fuser {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    flex: none;
    gap: 5px;
    max-width: 100%;
    color: inherit;
    white-space: nowrap;
    text-decoration: none;
    transition: color .18s ease;
}

.fuser:hover { color: var(--brand-accent); text-decoration: underline; }
.fuser img { flex: none; }

.nav-progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 0;
    height: 3px;
    background: var(--brand-accent);
    box-shadow: 0 0 8px var(--brand-accent);
    pointer-events: none;
}

.nav-progress.run {
    animation: nav-progress-run 8s cubic-bezier(0.1, 0.7, 0.2, 1) forwards, nav-progress-show 1ms linear 150ms both;
}

@keyframes nav-progress-show {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes nav-progress-run {
    0% { width: 0; }
    5% { width: 30%; }
    100% { width: 90%; }
}

.nav-progress-done {
    transition: width 0.3s ease-out, opacity 0.3s ease 0.35s;
}

.nav-progress-done.end { opacity: 0; }

.nav-skeleton {
    position: fixed;
    inset: 0;
    z-index: 99;
    overflow: hidden;
    padding-top: 96px;
    background: var(--bg-color);
    animation: nav-skel-in .12s ease-out;
}


@keyframes nav-skel-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.nav-skel-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 96px;
    margin-bottom: 14px;
    padding: 18px 20px;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    background: var(--card-bg);
}

.nav-skel-line {
    display: block;
    flex: none;
    height: 12px;
    border-radius: var(--radius-full);
    background: linear-gradient(90deg, var(--card-border) 25%, rgba(127, 127, 127, 0.18) 50%, var(--card-border) 75%);
    background-size: 200% 100%;
    animation: nav-skel-shimmer 1.2s linear infinite;
}

.nav-skel-title { width: 220px; max-width: 60%; height: 22px; margin-bottom: 22px; }
.nav-skel-line.w-40 { width: 40%; }
.nav-skel-line.w-60 { width: 60%; height: 16px; }
.nav-skel-line.w-90 { width: 90%; }

.nav-skeleton .sk-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 72px;
    margin-bottom: 14px;
    padding: 18px 20px;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    background: var(--card-bg);
}
.nav-skeleton .sk-row { flex-direction: row; align-items: center; gap: 14px; }
.nav-skeleton .sk-grow { display: flex; flex: 1; flex-direction: column; gap: 10px; min-width: 0; }
.nav-skeleton .sk-avatar,
.nav-skeleton .sk-icon,
.nav-skeleton .sk-btn,
.nav-skeleton .sk-input,
.nav-skeleton .sk-tab { display: block; flex: none; background: var(--card-border); }
.nav-skeleton .sk-avatar { width: 40px; min-height: 40px; border-radius: 50%; }
.nav-skeleton .sk-avatar-lg { width: 88px; min-height: 88px; }
.nav-skeleton .sk-icon { width: 44px; min-height: 44px; border-radius: var(--radius-md, 10px); }
.nav-skeleton .sk-big { height: 22px; }
.nav-skeleton .sk-grid { display: grid; gap: 16px; }
.nav-skeleton .sk-grid .sk-card { margin-bottom: 0; min-height: 110px; }
.nav-skeleton .sk-grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.nav-skeleton .sk-grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.nav-skeleton .sk-split { display: flex; flex-wrap: wrap; gap: 20px; }
.nav-skeleton .sk-split > .sk-grow { flex: 1 1 520px; display: block; }
.nav-skeleton .sk-side { flex: 1 1 260px; max-width: 100%; }
.nav-skeleton .sk-narrow { max-width: 900px; }
.nav-skeleton .sk-thread-title { width: 70%; height: 28px; margin-bottom: 12px; }
.nav-skeleton .sk-floor { min-height: 160px; }
.nav-skeleton .sk-floor-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.nav-skeleton .sk-floor-head .nav-skel-line { flex: 1; max-width: 200px; }
.nav-skeleton .sk-form { display: flex; justify-content: center; padding-top: 40px; }
.nav-skeleton .sk-form .sk-card { width: 420px; max-width: 100%; gap: 16px; padding: 32px; }
.nav-skeleton .sk-input { width: 100%; min-height: 44px; border-radius: var(--radius-md, 10px); }
.nav-skeleton .sk-btn { width: 150px; min-height: 46px; border-radius: var(--radius-md, 10px); }
.nav-skeleton .sk-btn-wide { width: 100%; }
.nav-skeleton .sk-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; }
.nav-skeleton .sk-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.nav-skeleton .sk-tab { width: 96px; min-height: 36px; border-radius: var(--radius-full); }
.nav-skeleton .sk-profile-hero { display: flex; align-items: center; gap: 20px; min-height: 150px; margin-bottom: 18px; padding: 24px; border-radius: var(--radius-lg); background: var(--card-bg); border: 1px solid var(--card-border); }
.nav-skeleton .sk-tall { min-height: 320px; }
.nav-skeleton .sk-admin { display: flex; gap: 20px; padding: 0 20px; }
.nav-skeleton .sk-admin-side { display: flex; flex: none; flex-direction: column; gap: 18px; width: 200px; padding: 20px; border-radius: var(--radius-lg); background: var(--card-bg); border: 1px solid var(--card-border); }
.nav-skeleton .sk-admin > .sk-grow { gap: 16px; }
.nav-skeleton.sk-home { padding-top: 0; }
.nav-skeleton .sk-hero { display: flex; align-items: center; min-height: min(72vh, 680px); margin-bottom: 28px; padding-top: 72px; background: #0b1a33; }
.nav-skeleton .sk-hero .nav-skel-line { background: linear-gradient(90deg, rgba(255,255,255,.12) 25%, rgba(255,255,255,.22) 50%, rgba(255,255,255,.12) 75%); background-size: 200% 100%; }
.nav-skeleton .sk-hero .sk-btn { background: rgba(255,255,255,.14); }
.nav-skeleton .sk-hero-h1 { width: 420px; max-width: 80%; height: 64px; margin-bottom: 18px; }
.nav-skeleton .sk-hero-h2 { width: 560px; max-width: 90%; height: 36px; margin-bottom: 12px; }
@media (max-width: 768px) {
    .nav-skeleton .sk-admin-side { display: none; }
    .nav-skeleton .sk-hero-h1 { height: 44px; }
}

@keyframes nav-skel-shimmer {
    from { background-position: 200% 0; }
    to { background-position: -200% 0; }
}

@media (prefers-reduced-motion: no-preference) {
    @view-transition { navigation: auto; }
    .header { view-transition-name: site-header; }
    .nav-progress { view-transition-name: nav-progress; }
}

::view-transition-group(site-header),
::view-transition-new(site-header),
::view-transition-group(nav-progress),
::view-transition-new(nav-progress) { animation: none; }
::view-transition-old(site-header),
::view-transition-old(nav-progress) { display: none; }
::view-transition-old(root),
::view-transition-new(root) { animation-duration: .16s; }

[data-swap] { transition: opacity .15s ease; }
[data-swap].swap-busy { opacity: .55; }
html.swap-wait body { cursor: progress; }

@media (prefers-reduced-motion: reduce) {
    .nav-progress.run, .nav-skel-line, .nav-skeleton { animation: none; }
    [data-swap] { transition: none; }
    .nav-progress.run { width: 60%; }
    .nav-progress-done { transition: opacity 0.3s ease 0.2s; }
}

.tabbar { display: none; }
@media (max-width: 768px) {
    .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; display: flex;
        padding: 4px 6px calc(4px + env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, .94); border-top: 1px solid #e2eaf4;
        -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px);
        box-shadow: 0 -6px 20px rgba(42, 86, 140, .06); transition: transform .25s ease; }
    body.tabbar-hide .tabbar { transform: translateY(110%); }
    .tabbar a { position: relative; flex: 1 1 0; min-width: 0; min-height: 50px; display: flex; flex-direction: column;
        align-items: center; justify-content: center; gap: 3px; border-radius: 10px; color: #6b7a8d;
        font-size: .66rem; font-weight: 600; text-decoration: none; -webkit-tap-highlight-color: transparent;
        transition: color .15s ease, background-color .15s ease; }
    .tabbar a span { max-width: 100%; padding: 0 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .tabbar svg { width: 23px; height: 23px; flex: none; }
    .tabbar img { width: 24px; height: 24px; flex: none; border-radius: 50%; object-fit: cover; }
    .tabbar a.on { color: #1769e8; }
    .tabbar a.on svg { stroke-width: 2.5; }
    .tabbar a.on img { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #1769e8; }
    .tabbar a:active { background: rgba(23, 105, 232, .08); }
    .tabbar-badge { position: absolute; top: 3px; left: calc(50% + 4px); min-width: 17px; min-height: 17px; padding: 0 5px;
        border-radius: 999px; background: #ef4444; color: #fff; font-size: .6rem; font-weight: 700; line-height: 17px;
        text-align: center; box-shadow: 0 0 0 2px #fff; }
    .tabbar-badge[hidden] { display: none; }
    [dir="rtl"] .tabbar-badge { left: auto; right: calc(50% + 4px); }

    body:has(> .tabbar) { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
    body:has(> .tabbar) .header .nav-actions > .nav-account-start { display: none; }
    body:has(:is(input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]), textarea, select, [contenteditable="true"]):focus) .tabbar { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .tabbar { transition: none; }
}

@media (hover: none) {
    a, button { -webkit-tap-highlight-color: transparent; }
    body:not(.home-page) .thread-row:hover,
    body:not(.home-page) .search-row:hover,
    body:not(.home-page) .board-row:hover,
    body:not(.home-page) .rule-group:hover,
    body:not(.home-page) .notif-item:hover { transform: none; }
    body:not(.home-page) .thread-row:active,
    body:not(.home-page) .search-row:active,
    body:not(.home-page) .board-row:active,
    body:not(.home-page) .notif-item:active,
    .member-card:active { transform: scale(.985); transition: transform .1s ease; }
}

:root { color-scheme: light; accent-color: #1769e8; }
::selection { background: rgba(23, 105, 232, .2); }
:where(a, button, select, input, textarea, summary, [tabindex]):focus-visible { outline: 2px solid rgba(23, 105, 232, .5); outline-offset: 2px; }
select:focus:not(:focus-visible) { outline: none; }
.fpager-jump input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.fpager-jump input[type="number"]::-webkit-inner-spin-button,
.fpager-jump input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

@media (max-width: 640px) {
    .container { padding-left: 16px; padding-right: 16px; }

    .home-section { padding: 30px 0; }
    .home-section-heading { margin-bottom: 16px; }
    .home-section-heading h2 { font-size: 1.45rem; margin: 4px 0 4px; }
    .home-section-heading > p:last-child { font-size: .78rem; }

    .home-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .home-feature-card { position: relative; min-height: 0; padding: 14px 14px 13px; }
    .home-feature-icon { width: 34px; height: 34px; }
    .home-feature-icon svg { width: 20px; height: 20px; }
    .home-feature-card h3 { margin: 10px 0 4px; font-size: .95rem; }
    .home-feature-card p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3;
        overflow: hidden; font-size: .72rem; line-height: 1.6; }
    .home-feature-card a { position: absolute; inset: 0; font-size: 0; }
    .home-feature-card:hover { transform: none; }

    .world-card { min-width: min(72vw, 300px); }

    .home-cta { margin-left: 16px; margin-right: 16px; }
    .home-cta-content h2 { font-size: 1.6rem; }

    .home-contact-grid { gap: 10px; }
    .home-contact-card { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; padding: 14px; }
    .home-contact-icon { grid-row: 1 / span 2; align-self: start; border-radius: 50%; background: #e9f2ff; }
    .home-contact-card h3 { margin: 2px 0 2px; font-size: .95rem; }
    .home-contact-card p { margin: 0; font-size: .74rem; line-height: 1.6; }
    .home-contact-value { grid-column: 1 / -1; margin-top: 11px; padding: 10px 12px;
        flex-direction: row; align-items: center; }
    .home-contact-value strong { font-size: .92rem; min-width: 0; }

    .home-certifications { padding: 28px 0 30px; }
    .home-certification-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .home-certification-card { min-height: 64px; padding: 8px; }
    .home-certification-card img { max-height: 40px; }

    .site-footer { padding: 22px 0 12px; }
    .footer-main { grid-template-columns: 1fr; gap: 16px; padding-bottom: 14px; }
    .footer-brand { padding-right: 0; }
    .footer-main > nav.footer-column { display: none; }
    .footer-report { gap: 6px; }
    .footer-report p { flex-direction: row; flex-wrap: wrap; gap: 0 8px; }
    .footer-partners { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
    .footer-partners::-webkit-scrollbar { display: none; }
    .footer-bottom { gap: 6px; }
}

.oauth-divider { display: flex; align-items: center; gap: 12px; margin: 22px 0 14px; color: var(--text-tertiary); font-size: .8rem; }
.oauth-divider::before, .oauth-divider::after { content: ''; flex: 1; height: 1px; background: var(--card-border); }
.oauth-btns { display: grid; gap: 10px; }
.oauth-btn { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 8px 16px;
    border: 1px solid #d5e1ef; border-radius: 6px; background: #fff; color: var(--text-primary);
    font-size: .9rem; font-weight: 600; text-decoration: none; transition: border-color .18s ease, background .18s ease; }
.oauth-btn:hover { border-color: #9cc2f5; background: #f5f9ff; }
.oauth-btn svg { width: 18px; height: 18px; flex: none; }
.oauth-btn span { min-width: 0; text-align: center; }

.oauth-finish h2 { margin-bottom: 8px; text-align: center; }
.oauth-finish-lead { margin-bottom: 32px; color: var(--text-secondary); line-height: 1.7; text-align: center; overflow-wrap: anywhere; }
.oauth-finish-foot { margin-top: 16px; text-align: center; font-size: .86rem; }
.oauth-finish-foot a { color: var(--brand-accent); text-decoration: none; }
.oauth-finish input[readonly] { color: var(--text-tertiary); cursor: default; }
.oauth-terms { display: flex; align-items: flex-start; gap: 8px; margin: 4px 0 18px; color: var(--text-secondary); font-size: .86rem; cursor: pointer; }
.oauth-terms input { flex: none; margin-top: 3px; }
.oauth-terms a { color: var(--brand-accent); text-decoration: none; }

.oauth-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.oauth-row .btn { flex: none; }
.oauth-row-name { display: flex; align-items: center; gap: 12px; min-width: 0; }
.oauth-row-name > svg { width: 22px; height: 22px; flex: none; }
.oauth-flash { margin: 14px 24px 0; padding: 10px 14px; border-radius: 6px; font-size: .84rem; }
.oauth-flash.ok { background: #e6f5ec; color: #0f7a45; }
.oauth-flash.bad { background: #fdecec; color: #c0262d; }
.oauth-note { padding: 14px 24px 18px; color: var(--text-tertiary); font-size: .76rem; line-height: 1.6; }

h2[id] { scroll-margin-top: 76px; }

.mc-head {
    --u: 6px;
    display: block;
    flex: none;
    width: calc(8 * var(--u));
    height: calc(8 * var(--u));
    border-radius: 8px;
    background-color: var(--bg-color);
    background-image: var(--skin), var(--skin);
    background-size: calc(64 * var(--u)) auto;
    background-repeat: no-repeat;
    background-position: calc(-40 * var(--u)) calc(-8 * var(--u)), calc(-8 * var(--u)) calc(-8 * var(--u));
    image-rendering: pixelated;
}
.mc-head.legacy {
    background-image: var(--skin);
    background-position: calc(-8 * var(--u)) calc(-8 * var(--u));
}

.mc-bust {
    --u: 9px;
    position: relative;
    flex: none;
    width: calc(16 * var(--u));
    height: calc(20 * var(--u));
    image-rendering: pixelated;
}
.mc-bust i {
    position: absolute;
    background-image: var(--skin), var(--skin);
    background-size: calc(64 * var(--u)) auto;
    background-repeat: no-repeat;
}
.mc-bust .h {
    left: calc(4 * var(--u)); top: 0;
    width: calc(8 * var(--u)); height: calc(8 * var(--u));
    background-position: calc(-40 * var(--u)) calc(-8 * var(--u)), calc(-8 * var(--u)) calc(-8 * var(--u));
}
.mc-bust .b {
    left: calc(4 * var(--u)); top: calc(8 * var(--u));
    width: calc(8 * var(--u)); height: calc(12 * var(--u));
    background-position: calc(-20 * var(--u)) calc(-36 * var(--u)), calc(-20 * var(--u)) calc(-20 * var(--u));
}
.mc-bust .ra {
    left: 0; top: calc(8 * var(--u));
    width: calc(4 * var(--u)); height: calc(12 * var(--u));
    background-position: calc(-44 * var(--u)) calc(-36 * var(--u)), calc(-44 * var(--u)) calc(-20 * var(--u));
}
.mc-bust .la {
    left: calc(12 * var(--u)); top: calc(8 * var(--u));
    width: calc(4 * var(--u)); height: calc(12 * var(--u));
    background-position: calc(-52 * var(--u)) calc(-52 * var(--u)), calc(-36 * var(--u)) calc(-52 * var(--u));
}
.mc-bust.slim .ra { left: var(--u); width: calc(3 * var(--u)); }
.mc-bust.slim .la { width: calc(3 * var(--u)); }
.mc-bust.legacy .h {
    background-image: var(--skin);
    background-position: calc(-8 * var(--u)) calc(-8 * var(--u));
}
.mc-bust.legacy .la {
    background-image: var(--skin);
    background-position: calc(-44 * var(--u)) calc(-20 * var(--u));
    transform: scaleX(-1);
}
