:root {
    --bg-dark: #0a0c0f;
    --surface-dark: #14181c;
    --text-primary: #ffffff;
    --text-secondary: #b0b8c0;
    --accent-orange: #de7219;
    --accent-gold: #feb908;
    --border-dim: #2a2f35;
    --card-bg: #1e2329;
    
    /* Анимации */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Force a single visible vertical scrollbar (body), hide root duplicate */
html {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html::-webkit-scrollbar {
    width: 0;
    height: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    opacity: 1;
    animation: fadeIn 0.5s ease forwards;
    position: relative;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

body::-webkit-scrollbar {
    width: 0;
    height: 0;
}

body::-webkit-scrollbar-button {
    width: 0;
    height: 0;
    display: none;
}

/* Космический фон с звездами */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(120% 95% at 50% 120%, #0d1928 0%, #08121e 42%, #050b14 75%, #02050a 100%),
        radial-gradient(70% 50% at 18% 12%, rgba(132, 164, 202, 0.09), transparent 70%),
        radial-gradient(68% 52% at 82% 18%, rgba(109, 141, 178, 0.08), transparent 72%);
    z-index: -2;
}

/* Звезды (статичные) */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 10px 20px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 30px 40px, #fff, rgba(0,0,0,0)),
        radial-gradient(3px 3px at 50px 60px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 70px 80px, #fff, rgba(0,0,0,0)),
        radial-gradient(3px 3px at 90px 100px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 110px 120px, #fff, rgba(0,0,0,0)),
        radial-gradient(3px 3px at 130px 140px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 150px 160px, #fff, rgba(0,0,0,0)),
        radial-gradient(3px 3px at 170px 180px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 190px 200px, #fff, rgba(0,0,0,0)),
        radial-gradient(3px 3px at 210px 220px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 230px 240px, #fff, rgba(0,0,0,0)),
        radial-gradient(3px 3px at 250px 260px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 270px 280px, #fff, rgba(0,0,0,0)),
        radial-gradient(3px 3px at 290px 300px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 310px 320px, #fff, rgba(0,0,0,0)),
        radial-gradient(3px 3px at 330px 340px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 350px 360px, #fff, rgba(0,0,0,0)),
        radial-gradient(3px 3px at 370px 380px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 390px 400px, #fff, rgba(0,0,0,0)),
        radial-gradient(3px 3px at 410px 420px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 430px 440px, #fff, rgba(0,0,0,0)),
        radial-gradient(3px 3px at 450px 460px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 470px 480px, #fff, rgba(0,0,0,0)),
        radial-gradient(3px 3px at 490px 500px, #fff, rgba(0,0,0,0));
    background-repeat: repeat;
    background-size: 500px 500px;
    opacity: 0.62;
    z-index: -1;
    pointer-events: none;
    animation: starsMove 240s linear infinite;
}

/* Движение звезд для эффекта параллакса */
@keyframes starsMove {
    from {
        transform: translate3d(0, 0, 0);
    }
    to {
        transform: translate3d(-120px, -180px, 0);
    }
}

/* Туманность (опционально, добавим цветные пятна) */
.star-nebula {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(222, 114, 25, 0.05) 0%, transparent 30%),
        radial-gradient(circle at 80% 70%, rgba(254, 185, 8, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 40% 80%, rgba(100, 50, 150, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 70% 20%, rgba(0, 100, 200, 0.03) 0%, transparent 40%);
    z-index: -1;
    pointer-events: none;
    animation: nebulaPulse 20s ease-in-out infinite alternate;
}

@keyframes nebulaPulse {
    0% {
        opacity: 0.5;
        transform: scale(1);
    }
    100% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

/* Падающие звезды / метеоры */
.shooting-star {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.shooting-star::before,
.shooting-star::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.8);
    animation: shootingStar 8s linear infinite;
}

.shooting-star::before {
    top: 10%;
    left: 20%;
    animation-delay: 2s;
}

.shooting-star::after {
    top: 30%;
    left: 80%;
    animation-delay: 5s;
}

@keyframes shootingStar {
    0% {
        transform: translateX(0) translateY(0) rotate(45deg);
        opacity: 1;
        width: 2px;
    }
    20% {
        width: 100px;
    }
    100% {
        transform: translateX(500px) translateY(500px) rotate(45deg);
        opacity: 0;
        width: 2px;
    }
}

/* Анимация загрузки страницы */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Анимация для контейнера */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    animation: slideUp 0.6s var(--transition-bounce);
    position: relative;
    z-index: 1;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header с анимацией появления */
header {
    background-color: rgba(20, 24, 28, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--accent-orange);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    animation: slideDown 0.5s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    position: relative;
    display: inline-block;
    text-shadow: 0 0 20px rgba(222, 114, 25, 0.3);
}

.logo a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-orange), var(--accent-gold));
    transition: width var(--transition-normal);
    box-shadow: 0 0 10px var(--accent-orange);
}

.logo a:hover::after {
    width: 100%;
}

.logo span {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-left: 0.5rem;
    font-weight: normal;
    background: none;
    -webkit-text-fill-color: var(--text-secondary);
}

/* Навигация с анимацией пунктов */
nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

nav li {
    opacity: 1;
    animation: navItemFadeIn 0.5s ease forwards;
}

nav li:nth-child(1) { animation-delay: 0.1s; }
nav li:nth-child(2) { animation-delay: 0.2s; }
nav li:nth-child(3) { animation-delay: 0.3s; }
nav li:nth-child(4) { animation-delay: 0.4s; }
nav li:nth-child(5) { animation-delay: 0.5s; }
nav li:nth-child(6) { animation-delay: 0.6s; }

@keyframes navItemFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: all var(--transition-fast);
    position: relative;
    display: inline-block;
}

nav a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-orange), var(--accent-gold));
    transition: all var(--transition-normal);
    transform: translateX(-50%);
    box-shadow: 0 0 10px var(--accent-orange);
}

nav a:hover::before {
    width: 100%;
}

nav a:hover, nav a.active {
    color: var(--accent-gold);
    transform: translateY(-2px);
    text-shadow: 0 0 8px var(--accent-gold);
}

/* Хлебные крошки с анимацией */
.breadcrumbs {
    padding: 1rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    animation: fadeInRight 0.5s ease;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.breadcrumbs a {
    color: var(--accent-gold);
    text-decoration: none;
    transition: all var(--transition-fast);
    position: relative;
    display: inline-block;
}

.breadcrumbs a:hover {
    color: var(--accent-orange);
    transform: translateX(2px);
    text-shadow: 0 0 8px var(--accent-orange);
}

.breadcrumbs span {
    color: var(--text-secondary);
}

/* Основной контент */
main {
    flex: 1;
    padding: 2rem 0;
    position: relative;
    z-index: 1;
}

/* Добавим легкое свечение по краям */
main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-orange), transparent);
    opacity: 0.3;
}

.page-header {
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-dim);
    padding-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: scaleIn 0.5s var(--transition-bounce);
    position: relative;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-orange), transparent);
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(145deg, white, #e0e0e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.page-header i {
    font-size: 2.5rem;
    color: var(--accent-orange);
    animation: rotateIn 0.6s var(--transition-bounce);
    filter: drop-shadow(0 0 10px var(--accent-orange));
}

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-180deg) scale(0.5);
    }
    to {
        opacity: 1;
        transform: rotate(0) scale(1);
    }
}

/* ========== НОВЫЕ АНИМИРОВАННЫЕ ЭЛЕМЕНТЫ ========== */

/* Rule Group - основной блок для всех страниц */
.rule-group {
    background: rgba(10, 20, 30, 0.5);
    border: 1px solid var(--border-dim);
    border-left: 4px solid var(--accent-orange);
    padding: 1.2rem 1.5rem;
    margin-bottom: 1.2rem;
    border-radius: 0 12px 12px 0;
    transition: all 0.3s var(--transition-bounce);
    opacity: 0;
    animation: ruleGroupFadeIn 0.5s ease forwards;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

/* Индивидуальные задержки для rule-group */
.rule-group:nth-child(1) { animation-delay: 0.1s; }
.rule-group:nth-child(2) { animation-delay: 0.2s; }
.rule-group:nth-child(3) { animation-delay: 0.3s; }
.rule-group:nth-child(4) { animation-delay: 0.4s; }
.rule-group:nth-child(5) { animation-delay: 0.5s; }
.rule-group:nth-child(6) { animation-delay: 0.6s; }
.rule-group:nth-child(7) { animation-delay: 0.7s; }
.rule-group:nth-child(8) { animation-delay: 0.8s; }
.rule-group:nth-child(9) { animation-delay: 0.9s; }
.rule-group:nth-child(10) { animation-delay: 1s; }
.rule-group:nth-child(11) { animation-delay: 1.1s; }
.rule-group:nth-child(12) { animation-delay: 1.2s; }
.rule-group:nth-child(13) { animation-delay: 1.3s; }
.rule-group:nth-child(14) { animation-delay: 1.4s; }

@keyframes ruleGroupFadeIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Эффект свечения при наведении */
.rule-group::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(222, 114, 25, 0.1), transparent);
    transition: left 0.5s ease;
    pointer-events: none;
}

.rule-group:hover::before {
    left: 100%;
}

.rule-group:hover {
    transform: translateX(5px) translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 20px rgba(222, 114, 25, 0.2);
    border-color: var(--accent-gold);
    border-left-color: var(--accent-gold);
    background: linear-gradient(90deg, rgba(222, 114, 25, 0.15) 0%, rgba(10, 20, 30, 0.5) 80%);
}

.rule-group h3 {
    color: var(--accent-orange);
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    transition: color 0.2s ease;
}

.rule-group:hover h3 {
    color: var(--accent-gold);
    text-shadow: 0 0 8px rgba(254, 185, 8, 0.3);
}

.rule-group h3 i {
    transition: transform 0.3s var(--transition-bounce);
    display: inline-block;
}

.rule-group:hover h3 i {
    transform: scale(1.2) rotate(5deg);
    filter: drop-shadow(0 0 5px var(--accent-gold));
}

.rule-group h3 a {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
}

.rule-group h3 a:hover {
    color: var(--accent-gold);
    text-decoration: underline;
    text-shadow: 0 0 8px var(--accent-gold);
}

.rule-group p {
    margin-bottom: 0;
    color: var(--text-secondary);
    transition: color 0.2s ease;
    line-height: 1.6;
}

.rule-group:hover p {
    color: #e0e8f0;
}

/* Стили для тегов (species-tag, corp-tag, tech-tag, game-tag) */
.species-tag,
.corp-tag,
.tech-tag,
.game-tag {
    display: inline-block;
    background: rgba(222, 114, 25, 0.15);
    color: var(--accent-orange);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    margin-left: 0.5rem;
    vertical-align: middle;
    text-transform: lowercase;
    border: 1px solid rgba(222, 114, 25, 0.3);
    transition: all 0.3s var(--transition-bounce);
    animation: tagPulse 3s infinite;
    cursor: default;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Индивидуальные анимации для тегов */
@keyframes tagPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 5px rgba(222, 114, 25, 0.2);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 2px 10px rgba(222, 114, 25, 0.4);
    }
}

.species-tag:hover,
.corp-tag:hover,
.tech-tag:hover,
.game-tag:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px var(--accent-orange);
    background: rgba(222, 114, 25, 0.25);
}

/* Специальные теги */
.corp-tag.big-five {
    background: rgba(212, 175, 55, 0.15);
    color: var(--accent-gold);
    border-color: rgba(212, 175, 55, 0.3);
    animation: goldTagPulse 3s infinite;
}

@keyframes goldTagPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 5px rgba(212, 175, 55, 0.2);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 2px 15px rgba(212, 175, 55, 0.5);
    }
}

.corp-tag.big-five:hover {
    background: rgba(212, 175, 55, 0.25);
    box-shadow: 0 0 20px var(--accent-gold);
}

/* Цветные теги для технологий */
.tech-tag.ftl {
    background: rgba(52, 152, 219, 0.15);
    color: #3498db;
    border-color: rgba(52, 152, 219, 0.3);
    animation: blueTagPulse 3s infinite;
}

@keyframes blueTagPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 5px rgba(52, 152, 219, 0.2);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 2px 15px rgba(52, 152, 219, 0.4);
    }
}

.tech-tag.ftl:hover {
    background: rgba(52, 152, 219, 0.25);
    box-shadow: 0 0 20px #3498db;
}

.tech-tag.energy {
    background: rgba(241, 196, 15, 0.15);
    color: #f1c40f;
    border-color: rgba(241, 196, 15, 0.3);
    animation: yellowTagPulse 3s infinite;
}

@keyframes yellowTagPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 5px rgba(241, 196, 15, 0.2);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 2px 15px rgba(241, 196, 15, 0.4);
    }
}

.tech-tag.energy:hover {
    background: rgba(241, 196, 15, 0.25);
    box-shadow: 0 0 20px #f1c40f;
}

.tech-tag.cyber {
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
    border-color: rgba(46, 204, 113, 0.3);
    animation: greenTagPulse 3s infinite;
}

@keyframes greenTagPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 5px rgba(46, 204, 113, 0.2);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 2px 15px rgba(46, 204, 113, 0.4);
    }
}

.tech-tag.cyber:hover {
    background: rgba(46, 204, 113, 0.25);
    box-shadow: 0 0 20px #2ecc71;
}

.tech-tag.space {
    background: rgba(155, 89, 182, 0.15);
    color: #9b59b6;
    border-color: rgba(155, 89, 182, 0.3);
    animation: purpleTagPulse 3s infinite;
}

@keyframes purpleTagPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 5px rgba(155, 89, 182, 0.2);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 2px 15px rgba(155, 89, 182, 0.4);
    }
}

.tech-tag.space:hover {
    background: rgba(155, 89, 182, 0.25);
    box-shadow: 0 0 20px #9b59b6;
}

/* Теги для игрового раздела */
.game-tag.legal {
    background: rgba(52, 152, 219, 0.15);
    color: #3498db;
    border-color: rgba(52, 152, 219, 0.3);
    animation: blueTagPulse 3s infinite;
}

.game-tag.sop {
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
    border-color: rgba(46, 204, 113, 0.3);
    animation: greenTagPulse 3s infinite;
}

.game-tag.doc {
    background: rgba(241, 196, 15, 0.15);
    color: #f1c40f;
    border-color: rgba(241, 196, 15, 0.3);
    animation: yellowTagPulse 3s infinite;
}

/* Специальные информационные блоки (с золотой полосой) */
.wiki-article > div[style*="border-left: 4px solid var(--accent-gold)"] {
    opacity: 0;
    animation: infoBlockFadeIn 0.6s var(--transition-bounce) forwards;
    animation-delay: 0.3s;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

@keyframes infoBlockFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.wiki-article > div[style*="border-left: 4px solid var(--accent-gold)"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 0 30px rgba(254, 185, 8, 0.15);
    background: rgba(0, 0, 0, 0.3) !important;
}

.wiki-article > div[style*="border-left: 4px solid var(--accent-gold)"] h3 i {
    animation: iconPulse 2s infinite;
    display: inline-block;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 5px var(--accent-gold));
    }
    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 15px var(--accent-gold));
    }
}

/* Стили для списков в хронологии и ключевых понятиях */
.wiki-article ul[style*="list-style-type: none"] li {
    border-left: 3px solid var(--accent-orange);
    padding-left: 1rem;
    margin-bottom: 0.8rem;
    transition: all 0.3s ease;
    opacity: 0;
    animation: listItemSlideIn 0.4s ease forwards;
    position: relative;
}

.wiki-article ul[style*="list-style-type: none"] li:nth-child(1) { animation-delay: 0.1s; }
.wiki-article ul[style*="list-style-type: none"] li:nth-child(2) { animation-delay: 0.2s; }
.wiki-article ul[style*="list-style-type: none"] li:nth-child(3) { animation-delay: 0.3s; }
.wiki-article ul[style*="list-style-type: none"] li:nth-child(4) { animation-delay: 0.4s; }
.wiki-article ul[style*="list-style-type: none"] li:nth-child(5) { animation-delay: 0.5s; }

@keyframes listItemSlideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.wiki-article ul[style*="list-style-type: none"] li:hover {
    border-left-color: var(--accent-gold);
    transform: translateX(5px);
    background: linear-gradient(90deg, rgba(222, 114, 25, 0.1), transparent);
    padding-left: 1.5rem;
}

.wiki-article ul[style*="list-style-type: none"] li:hover strong {
    color: var(--accent-gold);
    text-shadow: 0 0 5px var(--accent-gold);
}

/* Стили для блоков с фоном (хронология, ключевые понятия) */
.wiki-article > div[style*="background: rgba(0,0,0,0.2)"] {
    opacity: 0;
    animation: fadeInScale 0.5s ease forwards;
    transition: all 0.3s ease;
}

.wiki-article > div[style*="background: rgba(0,0,0,0.2)"]:hover {
    background: rgba(0, 0, 0, 0.3) !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

/* Анимация для legend-блоков (цветные кружки с пояснениями) */
.wiki-article div[style*="display: flex; gap: 1.5rem"] {
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
    animation-delay: 0.5s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wiki-article div[style*="display: flex; gap: 1.5rem"] > div {
    transition: transform 0.3s var(--transition-bounce);
}

.wiki-article div[style*="display: flex; gap: 1.5rem"] > div:hover {
    transform: translateY(-3px);
}

.wiki-article div[style*="display: flex; gap: 1.5rem"] i {
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 5px currentColor);
}

.wiki-article div[style*="display: flex; gap: 1.5rem"] > div:hover i {
    transform: scale(1.2);
    filter: drop-shadow(0 0 10px currentColor);
}

/* ========== КОНЕЦ НОВЫХ АНИМИРОВАННЫХ ЭЛЕМЕНТОВ ========== */

/* Карточки с анимацией появления */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.card {
    background-color: rgba(30, 35, 41, 0.85);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid var(--border-dim);
    border-left-width: 4px;
    border-left-style: solid;
    border-left-color: var(--border-dim);
    border-radius: 12px;
    padding: 1.5rem;
    transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.3s ease, transform 0.2s ease;
    margin-bottom: 0.75rem;
    opacity: 0;
    animation: cardFadeIn 0.5s ease forwards;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }
.card:nth-child(6) { animation-delay: 0.6s; }

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Анимация для иконок в карточках */
.card h3 i {
    transition: transform 0.3s var(--transition-bounce);
    display: inline-block;
    margin-right: 0.5rem;
}

.card:hover {
    transform: translateY(-2px) scale(1.02);
    border-left-color: var(--accent-gold);
    border-color: var(--accent-orange);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4), 0 8px 20px rgba(222, 114, 25, 0.2);
    background: linear-gradient(90deg, rgba(222, 114, 25, 0.15) 0%, rgba(222, 114, 25, 0) 80%);
}

.card h3 {
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.card h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease, text-shadow 0.3s ease;
}

.card:hover h3 a {
    color: var(--accent-gold);
    text-shadow: 0 0 8px var(--accent-gold);
}

.card:hover h3 i {
    transform: scale(1.2) rotate(5deg);
    color: var(--accent-gold);
    filter: drop-shadow(0 0 5px var(--accent-gold));
}

.card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.card:hover p {
    color: #e0e8f0;
}

/* Вики-статья с анимацией */
.wiki-article {
    background-color: rgba(30, 35, 41, 0.9);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid var(--border-dim);
    border-radius: 16px;
    padding: 2rem;
    animation: fadeInScale 0.6s var(--transition-bounce);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.wiki-article h2 {
    color: var(--accent-gold);
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
    border-left: 4px solid var(--accent-orange);
    padding-left: 1rem;
    animation: slideInLeft 0.5s ease;
    text-shadow: 0 0 10px rgba(254, 185, 8, 0.2);
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.wiki-article h2:first-of-type {
    margin-top: 0;
}

.wiki-article h3 {
    color: var(--text-primary);
    font-size: 1.3rem;
    margin: 1.5rem 0 1rem;
    animation: fadeIn 0.5s ease;
}

.wiki-article p {
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
    animation: fadeIn 0.5s ease;
}

.wiki-article ul, .wiki-article ol {
    color: var(--text-secondary);
    margin: 1rem 0 1.5rem 2rem;
}

.wiki-article li {
    margin-bottom: 0.3rem;
    opacity: 0;
    animation: listItemFadeIn 0.3s ease forwards;
}

.wiki-article li:nth-child(1) { animation-delay: 0.1s; }
.wiki-article li:nth-child(2) { animation-delay: 0.2s; }
.wiki-article li:nth-child(3) { animation-delay: 0.3s; }
.wiki-article li:nth-child(4) { animation-delay: 0.4s; }
.wiki-article li:nth-child(5) { animation-delay: 0.5s; }

@keyframes listItemFadeIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Теги */
.tag {
    display: inline-block;
    background: linear-gradient(145deg, var(--accent-orange), #b2550e);
    color: white;
    font-weight: 600;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    transition: all var(--transition-fast);
    animation: tagPulse 2s infinite;
    box-shadow: 0 2px 10px rgba(222, 114, 25, 0.3);
}

@keyframes tagPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 10px rgba(222, 114, 25, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 2px 20px rgba(222, 114, 25, 0.5);
    }
}

.tag:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--accent-orange);
}

/* Правила */
.rules-list {
    list-style: none;
}

.rule-item {
    padding: 1.2rem 1.5rem;
    margin-bottom: 1rem;
    background-color: rgba(0,0,0,0.35);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    border-radius: 12px;
    border-left: 4px solid var(--accent-orange);
    transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.3s ease, transform 0.2s ease;
    opacity: 0;
    animation: ruleFadeIn 0.5s ease forwards;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.rule-item:nth-child(1) { animation-delay: 0.1s; }
.rule-item:nth-child(2) { animation-delay: 0.2s; }
.rule-item:nth-child(3) { animation-delay: 0.3s; }
.rule-item:nth-child(4) { animation-delay: 0.4s; }
.rule-item:nth-child(5) { animation-delay: 0.5s; }
.rule-item:nth-child(6) { animation-delay: 0.6s; }
.rule-item:nth-child(7) { animation-delay: 0.7s; }
.rule-item:nth-child(8) { animation-delay: 0.8s; }
.rule-item:nth-child(9) { animation-delay: 0.9s; }
.rule-item:nth-child(10) { animation-delay: 1s; }

@keyframes ruleFadeIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.rule-item .rule-title i {
    transition: transform 0.3s var(--transition-bounce);
    display: inline-block;
}

.rule-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4), 0 0 20px rgba(222, 114, 25, 0.2);
    border-left-color: #ffaa33;
    background: linear-gradient(90deg, rgba(222, 114, 25, 0.15) 0%, rgba(222, 114, 25, 0) 80%);
    transform: translateX(5px);
}

.rule-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.rule-title a {
    transition: color 0.2s ease, text-shadow 0.3s ease;
    color: inherit;
    text-decoration: none;
}

.rule-item:hover .rule-title a {
    color: var(--accent-gold);
    text-shadow: 0 0 8px var(--accent-gold);
}

.rule-item:hover .rule-title i {
    transform: scale(1.2) rotate(5deg);
    color: var(--accent-gold);
    filter: drop-shadow(0 0 5px var(--accent-gold));
}

.rule-desc {
    color: #cbd5e0;
    font-size: 0.95rem;
    padding-left: 1.8rem;
    transition: color 0.2s ease;
}

.rule-item:hover .rule-desc {
    color: #e0e8f0;
}

/* Инфобокс (для рас) */
.infobox {
    float: right;
    width: 300px;
    background-color: rgba(20, 24, 28, 0.9);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid var(--border-dim);
    border-radius: 12px;
    padding: 1rem;
    margin: 0 0 1.5rem 1.5rem;
    animation: slideInRight 0.5s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.infobox-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-gold);
    text-align: center;
    border-bottom: 1px solid var(--border-dim);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(254, 185, 8, 0.2);
}

.infobox-row {
    padding: 0.3rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    animation: fadeIn 0.3s ease;
    display: flow-root;
    line-height: 1.45;
}

.infobox-label {
    font-weight: 600;
    color: var(--text-secondary);
    float: left;
    width: 120px;
    margin-right: 12px;
    word-break: normal;
    overflow-wrap: normal;
}

@media (max-width: 420px) {
    .infobox-label {
        float: none;
        display: block;
        width: auto;
        margin: 0 0 4px;
    }
}

/* Футер */
footer {
    background-color: rgba(20, 24, 28, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-dim);
    padding: 2rem 0;
    margin-top: 3rem;
    text-align: center;
    color: var(--text-secondary);
    animation: slideUp 0.5s ease;
    position: relative;
    z-index: 1;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

/* Анимация для ссылок */
a {
    transition: all var(--transition-fast);
    position: relative;
    text-decoration: none;
}

a:not(.logo a):not(nav a):not(.card h3 a):not(.rule-title a):not(.breadcrumbs a):not(.rule-group h3 a) {
    color: var(--accent-gold);
}

a:not(.logo a):not(nav a):not(.card h3 a):not(.rule-title a):not(.breadcrumbs a):not(.rule-group h3 a):hover {
    color: var(--accent-orange);
    transform: translateX(2px);
    text-shadow: 0 0 8px var(--accent-orange);
}

/* Анимация для кнопок */
button, .button {
    transition: all var(--transition-fast);
    background: linear-gradient(145deg, var(--accent-orange), #b2550e);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(222, 114, 25, 0.3);
}

button:hover, .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(222, 114, 25, 0.5);
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .infobox {
        float: none;
        width: 100%;
        margin: 1rem 0;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    /* Уменьшаем анимации на мобильных для производительности */
    .card:hover, .rule-item:hover, .rule-group:hover {
        transform: none;
    }
    
    /* Убираем тяжелые эффекты на мобильных */
    body::after {
        animation: none;
    }
    
    .shooting-star {
        display: none;
    }
    
    /* Уменьшаем пульсации на мобильных */
    .species-tag,
    .corp-tag,
    .tech-tag,
    .game-tag {
        animation: none;
    }
}

/* ========================================================================== */
/* 2026 HOME REDESIGN (Navigation + Cards + Motion) */
/* ========================================================================== */

:root {
    --bg-dark: #050a14;
    --surface-dark: #111c2b;
    --accent-orange: #ff8c42;
    --accent-gold: #ffd06a;
    --text-secondary: #a6bdd3;
    --border-dim: rgba(145, 193, 234, 0.2);
}

html,
body {
    overflow-x: hidden;
}

body {
    background:
        linear-gradient(180deg, #040a13 0%, #07121f 44%, #0a1624 100%);
}

.wiki-ambient {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -1;
}

.wiki-ambient-a {
    inset: -12%;
    background:
        radial-gradient(circle at 24% 76%, rgba(142, 176, 214, 0.14), transparent 34%),
        radial-gradient(circle at 76% 28%, rgba(116, 150, 188, 0.12), transparent 32%),
        radial-gradient(circle at 54% 52%, rgba(88, 120, 160, 0.1), transparent 44%);
    filter: blur(22px);
    opacity: 0.58;
    animation: homeAmbientMove 140s linear infinite alternate;
}

.wiki-ambient-b {
    inset: 0;
    background-image:
        radial-gradient(1px 1px at 18px 28px, rgba(255, 255, 255, 0.5), transparent 70%),
        radial-gradient(1.2px 1.2px at 88px 62px, rgba(223, 236, 255, 0.48), transparent 70%),
        radial-gradient(1px 1px at 142px 114px, rgba(255, 255, 255, 0.4), transparent 70%),
        radial-gradient(1.4px 1.4px at 214px 156px, rgba(210, 229, 252, 0.52), transparent 70%),
        radial-gradient(1px 1px at 296px 208px, rgba(255, 255, 255, 0.42), transparent 70%);
    background-size: 340px 340px;
    background-repeat: repeat;
    opacity: 0.34;
    animation: spaceTwinkle 8s ease-in-out infinite alternate, spaceDriftNear 170s linear infinite;
}

.wiki-ambient-c {
    inset: 0;
    background:
        radial-gradient(circle at 14% 22%, rgba(174, 203, 235, 0.16), transparent 18%),
        radial-gradient(circle at 84% 68%, rgba(180, 209, 236, 0.13), transparent 15%),
        radial-gradient(circle at 58% 34%, rgba(205, 225, 248, 0.12), transparent 16%);
    filter: blur(10px);
    opacity: 0.24;
    animation: homeAmbientRotate 180s linear infinite;
}

@keyframes homeAmbientMove {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(-6%, -4%, 0); }
}

@keyframes homeAmbientRotate {
    from { transform: translate3d(0, 0, 0) scale(1); opacity: 0.2; }
    50% { opacity: 0.3; }
    to { transform: translate3d(5%, -6%, 0) scale(1.08); opacity: 0.22; }
}

@keyframes spaceTwinkle {
    from { opacity: 0.24; }
    to { opacity: 0.4; }
}

@keyframes spaceDriftNear {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(95px, -130px, 0); }
}

.home-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 10px 12px;
    border: 1px solid var(--border-dim);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(12, 24, 36, 0.85), rgba(10, 19, 30, 0.68));
    color: var(--text-secondary);
    font-size: 12px;
    letter-spacing: 0.04em;
}

.home-breadcrumbs a {
    color: #cde6fb;
    text-decoration: none;
}

.home-breadcrumbs a:hover {
    color: #ffffff;
}

.home-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.home-main {
    min-width: 0;
}

.home-header {
    margin-bottom: 1rem;
}

.home-hero,
.about-panel {
    border: 1px solid rgba(145, 193, 234, 0.22);
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03)),
        radial-gradient(circle at 84% 12%, rgba(102, 218, 255, 0.14), transparent 48%);
}

.home-hero .welcome-title {
    font-family: "Sora", "Inter", sans-serif;
    font-size: clamp(1.6rem, 2.7vw, 2.4rem);
    letter-spacing: 0.02em;
}

.article-showcase {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 1.2rem;
}

.showcase-card {
    border-radius: 14px;
    border: 1px solid rgba(145, 193, 234, 0.24);
    padding: 14px;
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
    box-shadow: 0 14px 30px rgba(3, 13, 24, 0.35);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.showcase-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 208, 106, 0.5);
    box-shadow: 0 20px 38px rgba(3, 13, 24, 0.45);
}

.showcase-card .card-kicker {
    margin: 0;
    color: #9cb8d1;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.showcase-card h3 {
    margin: 6px 0 8px;
    font-family: "Sora", "Inter", sans-serif;
    font-size: 1.05rem;
    color: #f4fbff;
}

.showcase-card p {
    margin: 0;
    color: #c5d9ea;
    font-size: 0.92rem;
}

.showcase-card.hot { border-left: 4px solid #ff9b61; }
.showcase-card.info { border-left: 4px solid #6ad8ff; }
.showcase-card.neutral { border-left: 4px solid #ffd06a; }

.section-grid {
    margin-top: 0.2rem;
}

.section-grid .card {
    border-radius: 14px;
    border: 1px solid rgba(145, 193, 234, 0.18);
    border-left-width: 4px;
    background:
        linear-gradient(170deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    box-shadow: 0 12px 26px rgba(4, 14, 24, 0.34);
}

.section-grid .card:hover {
    border-color: rgba(255, 208, 106, 0.5);
    background:
        linear-gradient(170deg, rgba(255, 140, 66, 0.14), rgba(255, 255, 255, 0.03));
}

.toc-rail {
    position: sticky;
    top: 86px;
}

.toc-sticky {
    border: 1px solid rgba(145, 193, 234, 0.22);
    border-radius: 14px;
    padding: 14px 12px;
    background:
        linear-gradient(165deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03)),
        radial-gradient(circle at 82% 8%, rgba(102, 218, 255, 0.12), transparent 50%);
}

.toc-title {
    margin: 0 0 10px;
    color: #9db8d0;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.toc-link {
    display: block;
    padding: 8px 9px;
    border-radius: 10px;
    color: #d0e5f7;
    text-decoration: none;
    font-size: 13px;
    border: 1px solid transparent;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.toc-link:hover {
    border-color: rgba(106, 216, 255, 0.38);
    background: rgba(106, 216, 255, 0.08);
}

.toc-link.active {
    border-color: rgba(106, 216, 255, 0.54);
    background:
        linear-gradient(90deg, rgba(106, 216, 255, 0.2), rgba(106, 216, 255, 0.03));
    color: #f2fbff;
}

.toc-progress {
    margin-top: 12px;
    width: 100%;
    height: 7px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
}

.toc-progress span {
    display: block;
    width: 66%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #ffb068, #68d8ff);
    animation: tocPulse 2.2s ease-in-out infinite;
}

@keyframes tocPulse {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.2); }
}

[data-reveal] {
    opacity: 1;
    transform: none;
    transition: opacity 0.45s ease, transform 0.45s ease;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1100px) {
    .home-layout {
        grid-template-columns: 1fr;
    }

    .toc-rail {
        position: static;
    }
}

@media (max-width: 900px) {
    .article-showcase {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .home-breadcrumbs {
        white-space: nowrap;
        overflow-x: auto;
    }

    .home-breadcrumbs::-webkit-scrollbar {
        height: 6px;
    }

    .home-breadcrumbs::-webkit-scrollbar-thumb {
        border-radius: 999px;
        background: rgba(106, 216, 255, 0.4);
    }
}

/* ========================================================================== */
/* 2026 HOME POWER-UP (Command Deck + Ticker + Quick Dock) */
/* ========================================================================== */

.home-command-deck {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.95fr);
    gap: 14px;
    margin: 0 0 1rem;
    padding: 16px;
    border: 1px solid rgba(122, 205, 250, 0.22);
    border-radius: 16px;
    background:
        linear-gradient(145deg, rgba(10, 23, 38, 0.86), rgba(8, 18, 31, 0.78)),
        radial-gradient(circle at 15% 15%, rgba(255, 173, 112, 0.16), transparent 45%),
        radial-gradient(circle at 88% 10%, rgba(106, 216, 255, 0.16), transparent 40%);
    box-shadow: 0 18px 38px rgba(2, 12, 22, 0.46);
    overflow: hidden;
}

.home-command-deck::before {
    content: "";
    position: absolute;
    inset: -40% auto auto -30%;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(255, 176, 104, 0.2), transparent 70%);
    pointer-events: none;
}

.deck-main {
    position: relative;
    z-index: 1;
}

.deck-kicker {
    margin: 0 0 8px;
    color: #7fdfff;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.deck-main h2 {
    margin: 0;
    font-family: "Sora", "Inter", sans-serif;
    font-size: clamp(1.28rem, 2.4vw, 1.95rem);
    line-height: 1.2;
    color: #f5fcff;
}

.deck-description {
    margin: 12px 0 14px;
    color: #b9cee0;
    max-width: 58ch;
}

.deck-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.deck-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 13px;
    border-radius: 10px;
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: 0.015em;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.deck-btn.primary {
    color: #f7fbff;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
    border-color: rgba(255, 255, 255, 0.22);
    background: linear-gradient(135deg, #cf6b35, #9a4222);
    box-shadow: 0 10px 22px rgba(174, 84, 42, 0.42);
}

.deck-btn.primary i {
    color: #ffe2c5;
}

.deck-btn.secondary {
    color: #d8ecff;
    border-color: rgba(127, 223, 255, 0.26);
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
}

.deck-btn:hover {
    transform: translateY(-2px);
}

.deck-btn.primary:hover {
    background: linear-gradient(135deg, #dc7440, #a74926);
    box-shadow: 0 14px 30px rgba(174, 84, 42, 0.55);
}

.deck-btn.secondary:hover {
    border-color: rgba(127, 223, 255, 0.55);
    background: linear-gradient(155deg, rgba(106, 216, 255, 0.17), rgba(255, 255, 255, 0.02));
}

.deck-metrics {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.metric-card {
    position: relative;
    border: 1px solid rgba(142, 198, 244, 0.24);
    border-radius: 12px;
    padding: 12px 13px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.04));
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.metric-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 208, 106, 0.45);
}

.metric-label {
    margin: 0;
    color: #9fc0da;
    font-size: 0.72rem;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.metric-value {
    margin: 5px 0 2px;
    font-family: "Sora", "Inter", sans-serif;
    font-size: clamp(1.2rem, 2.2vw, 1.75rem);
    color: #f5fcff;
    line-height: 1.1;
}

.metric-footnote {
    margin: 0;
    font-size: 0.8rem;
    color: #bed3e4;
}

.ops-ticker {
    border: 1px solid rgba(142, 198, 244, 0.22);
    border-radius: 12px;
    margin: 0 0 1rem;
    padding: 10px 0;
    overflow: hidden;
    position: relative;
    background: linear-gradient(180deg, rgba(11, 23, 34, 0.8), rgba(8, 17, 27, 0.6));
}

.ticker-track {
    display: inline-flex;
    align-items: center;
    gap: 24px;
    padding-left: 16px;
    width: max-content;
    white-space: nowrap;
    will-change: transform;
    animation: tickerMove var(--ticker-duration, 24s) linear infinite;
}

.ticker-track span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #d4e6f8;
    font-size: 0.84rem;
}

.ticker-track i {
    color: #7fdfff;
}

@keyframes tickerMove {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(calc(-1 * var(--ticker-loop-distance, 50%)));
    }
}

.quick-dock {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 120;
    display: flex;
    gap: 8px;
    padding: 8px;
    border: 1px solid rgba(145, 193, 234, 0.28);
    border-radius: 999px;
    background: rgba(7, 17, 27, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 12px 26px rgba(2, 11, 22, 0.45);
}

.dock-link {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #d7ecff;
    text-decoration: none;
    border: 1px solid rgba(145, 193, 234, 0.26);
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.03));
    transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.dock-link:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 208, 106, 0.6);
    color: #fff8e5;
}

@media (max-width: 1100px) {
    .home-command-deck {
        grid-template-columns: 1fr;
    }

    .deck-metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .deck-actions {
        gap: 8px;
    }

    .deck-btn {
        width: 100%;
        justify-content: center;
    }

    .deck-metrics {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .quick-dock {
        right: 10px;
        bottom: 10px;
    }

    .dock-link {
        width: 32px;
        height: 32px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ticker-track {
        animation: none;
        transform: none;
    }
}
