/* L2 Essence — тема «Celestial Destiny» для KaevCMS.
   Часть 1: стили темы Dark (default) KaevCMS — компоненты, формы, статистика, модули.
   Часть 2: слой темы — сумеречное небо, Сфера Судьбы на главной, жемчуг и небесное золото. */
:root{--bg:#0d0a1c;--bg2:#111839;--panel:rgba(28,21,54,.94);--panel2:#1b1538;--line:#382c63;--gold:#e2b866;--gold2:#f2cf83;--text:#f3eefc;--muted:#b3aad0;--green:#8fd0a2;--danger:#e58a83;--radius:3px;--shadow:0 24px 70px rgba(0,0,0,.42)}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:radial-gradient(circle at 70% 0,#23305c 0,transparent 32%),var(--bg);color:var(--text);font:15px/1.6 var(--body)}a{color:inherit;text-decoration:none}button,input{font:inherit}.container{width:min(1420px,calc(100% - 64px));margin:auto}.site-header{height:78px;position:relative;z-index:10;background:rgba(11,16,40,.96);border-bottom:1px solid rgba(226,184,102,.28)}.header-inner{height:100%;display:flex;align-items:center;gap:34px}.brand{display:flex;align-items:center;gap:13px;min-width:max-content}.brand-mark{width:48px;height:54px;display:grid;place-items:center;color:var(--gold2);font:700 16px var(--display);border:1px solid var(--gold);clip-path:polygon(50% 0,100% 18%,86% 80%,50% 100%,14% 80%,0 18%)}.brand strong{display:block;font:26px/1 var(--display);letter-spacing:.08em}.brand small{display:block;color:#a99fc6;letter-spacing:.32em;font-size:9px;margin-top:7px}.main-nav{display:flex;align-items:stretch;height:100%;margin-left:auto}.main-nav a{display:flex;align-items:center;padding:0 22px;text-transform:none;font-size:13px;color:#cdc5e2;border-bottom:2px solid transparent}.main-nav a:hover,.main-nav a.active{color:var(--gold2);border-color:var(--gold)}.header-actions{display:flex;gap:10px}.button{min-height:42px;padding:0 24px;display:inline-flex;align-items:center;justify-content:center;text-transform:none;letter-spacing:.04em;font-weight:600;border:1px solid #43376f;background:#1b1538;color:#f3eefc;cursor:pointer;transition:.2s}.button:hover{transform:translateY(-1px);filter:brightness(1.12)}.button-gold{border-color:#c99a4e;background:linear-gradient(#e2b866,#c99a4e);box-shadow:inset 0 1px rgba(255,255,255,.15)}.button-ghost{background:rgba(11,16,40,.45)}.button-large{min-height:56px;padding:0 36px}.menu-toggle{display:none}.hero{min-height:420px;position:relative;background:#111 none center top/cover no-repeat;border-bottom:1px solid rgba(226,184,102,.35);overflow:hidden}.hero:after{content:"";position:absolute;inset:auto 0 0;height:80px;background:linear-gradient(transparent,var(--bg))}.hero-overlay{position:absolute;inset:0;background:linear-gradient(90deg,rgba(11,16,40,.94) 0%,rgba(11,16,40,.74) 32%,rgba(11,16,40,.14) 65%,rgba(11,16,40,.35)),linear-gradient(0deg,rgba(11,16,40,.6),transparent 45%)}.hero-content{position:relative;z-index:1;padding:58px 0 80px}.eyebrow{margin:0 0 10px;color:var(--gold2);letter-spacing:.24em;font-size:13px}.hero h1,.page-hero h1{font:72px/1 var(--display);letter-spacing:.06em;margin:0 0 13px;text-shadow:0 3px 20px #000}.hero h2{margin:0 0 22px;font:20px var(--display);color:#f2cf83;letter-spacing:.12em}.hero-copy{max-width:520px;color:#dcd5ec;font-size:16px}.hero-actions{display:flex;gap:14px;margin-top:28px}.dashboard{position:relative;z-index:2;margin-top:-20px;padding-bottom:30px}.panel{background:linear-gradient(145deg,rgba(30,22,58,.98),rgba(17,24,57,.98));border:1px solid #382c63;box-shadow:var(--shadow);position:relative}.panel:before{content:"";position:absolute;inset:-1px;pointer-events:none;border-top:1px solid rgba(242,207,131,.16)}.panel-title{min-height:56px;padding:0 18px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #2c2350}.panel-title h2{font:17px var(--display);text-transform:none;letter-spacing:.05em;margin:0}.panel-title a{color:var(--gold2);font-size:12px;text-transform:none}.server-panel{margin-bottom:16px}.server-row{display:grid;grid-template-columns:190px 1fr 440px;align-items:center;gap:28px;padding:20px}.server-row>div:first-child strong,.server-row>div:first-child span{display:block}.server-row>div:first-child strong{font:19px var(--display)}.server-row>div:first-child span{color:var(--green);margin-top:3px}.progress{height:8px;background:#2c2350;overflow:hidden}.progress span{height:100%;display:block;background:linear-gradient(90deg,#73c54d,#b8d56c)}dl{display:flex;margin:0;gap:0}dl div{flex:1;padding:0 24px;border-left:1px solid #2c2350}dt{font-size:10px;color:#a99fc6;text-transform:none}dd{margin:2px 0 0}.status{font-size:12px;text-transform:none}.status:before{content:"";display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:8px}.status.online{color:var(--green)}.status.online:before{background:var(--green);box-shadow:0 0 12px rgba(143,208,162,.65)}.status.offline{color:var(--danger)}.status.offline:before{background:var(--danger)}.content-grid{display:grid;grid-template-columns:1fr 1.15fr .95fr;gap:16px}.news-list{padding:10px 18px}.news-item{display:grid;grid-template-columns:135px 1fr;gap:16px;padding:14px 0;border-bottom:1px solid #2c2350}.news-item:last-child{border:0}.news-thumb{min-height:82px;background:linear-gradient(135deg,#33276a,#231b45);border:1px solid #43376f}.news-item time{font-size:11px;color:#8d9293}.news-item h3{font-size:15px;margin:2px 0}.news-item p{margin:0;color:var(--muted);font-size:13px}.features-grid{display:grid;grid-template-columns:1fr 1fr;padding:10px 16px}.features-grid article{display:flex;gap:14px;padding:20px 14px;border-bottom:1px solid #2c2350}.features-grid article:nth-child(odd){border-right:1px solid #2c2350}.feature-icon{width:42px;height:42px;flex:0 0 42px;display:grid;place-items:center;border:1px solid var(--gold);color:var(--gold2);transform:rotate(45deg)}.feature-icon+div{transform:none}.features-grid h3{margin:0 0 4px;font:14px var(--display);text-transform:none}.features-grid p{margin:0;color:var(--muted);font-size:12px}.side-column{display:grid;gap:16px}.login-panel form{padding:16px}.login-panel label,.auth-card label{display:block;color:#cdc5e2;font-size:12px;margin-bottom:12px}.login-panel input,.auth-card input{display:block;width:100%;height:44px;margin-top:5px;background:#0d0a1c;border:1px solid #43376f;color:#fff;padding:0 12px}.login-panel .button,.auth-card .button{width:100%;margin-top:2px}.login-panel form p{text-align:center;font-size:12px;color:var(--muted);margin:10px 0 0}.login-panel a{color:var(--gold2)}table{width:100%;border-collapse:collapse}th,td{text-align:left;padding:10px 13px;border-bottom:1px solid #2c2350}th{font-size:10px;color:#a99fc6;text-transform:none;font-weight:500}td{font-size:13px}.rating-panel table{padding:10px}.site-footer{border-top:1px solid rgba(226,184,102,.22);background:#0d0a1c;margin-top:20px}.footer-grid{display:grid;grid-template-columns:1.5fr repeat(2,1fr);gap:60px;padding:44px 0}.footer-brand{margin-bottom:12px}.footer-grid p{color:var(--muted);max-width:360px}.footer-grid h3{font:14px var(--display);text-transform:none;color:#e6e0f3}.footer-grid>div>a{display:block;color:#b3aad0;margin:7px 0}.socials{display:flex;gap:8px}.socials a{border:1px solid #382c63;padding:8px 12px}.footer-bottom{display:flex;justify-content:space-between;color:#8f86b0;font-size:11px;border-top:1px solid #1f2850;padding:18px 0}.page-hero{padding:70px 0 50px;background:linear-gradient(90deg,rgba(11,16,40,.9),rgba(11,16,40,.4)),none center top/cover;border-bottom:1px solid #382c63}.page-hero h1{font-size:52px}.page-content{padding:36px 0}.article-list article,.prose{padding:26px}.article-list article{border-bottom:1px solid #2c2350}.article-list time{color:var(--gold2);font-size:12px}.article-list h2{font:24px var(--display);margin:6px 0}.article-list p,.prose{color:#cdc5e2}.auth-page{min-height:650px;display:grid;place-items:center;padding:70px 20px;background:linear-gradient(rgba(11,16,40,.78),rgba(11,16,40,.92)),none center/cover}.auth-card{width:min(460px,100%);padding:34px}.auth-card h1{font:42px var(--display);margin:0}.muted,.empty{color:var(--muted)}@media(max-width:1150px){.main-nav a{padding:0 11px}.header-actions .button-ghost{display:none}.content-grid{grid-template-columns:1fr 1fr}.side-column{grid-column:1/-1;grid-template-columns:1fr 1fr}.server-row{grid-template-columns:170px 1fr}.server-row dl{grid-column:1/-1}.footer-grid{gap:30px}}@media(max-width:780px){.container{width:min(100% - 28px,1420px)}.site-header{height:68px}.brand strong{font-size:20px}.brand-mark{width:38px;height:44px}.menu-toggle{display:block;margin-left:auto;background:transparent;border:1px solid #43376f;color:#e6e0f3;padding:8px 12px}.main-nav{display:none;position:absolute;left:0;right:0;top:68px;height:auto;background:#120d24;flex-direction:column;padding:12px}.main-nav.open{display:flex}.main-nav a{min-height:48px}.header-actions{display:none}.hero{min-height:520px}.hero h1{font-size:50px}.hero-content{padding-top:70px}.hero-actions{flex-direction:column;align-items:flex-start}.server-row{grid-template-columns:1fr}.server-row dl{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr))}.server-row dl div{padding:0 8px}.content-grid{grid-template-columns:1fr}.side-column{grid-column:auto;grid-template-columns:1fr}.features-grid{grid-template-columns:1fr}.features-grid article:nth-child(odd){border-right:0}.footer-grid{grid-template-columns:1fr 1fr}.footer-bottom{flex-direction:column;gap:8px}.news-item{grid-template-columns:100px 1fr}}@media(max-width:520px){.hero h1{font-size:42px}.footer-grid{grid-template-columns:1fr}.server-row dl{grid-template-columns:1fr}.server-row dl div{border-left:0;border-top:1px solid #2c2350;padding:10px 0}.features-grid{padding:6px}.news-item{grid-template-columns:1fr}.news-thumb{display:none}}

.public-pagination{display:flex;align-items:center;justify-content:center;gap:16px;margin-top:22px;color:var(--muted);font-size:12px}.prose{white-space:normal;overflow-wrap:anywhere}@media(max-width:520px){.public-pagination{justify-content:space-between;gap:8px}.public-pagination .button{padding:0 14px}.public-pagination span{font-size:10px;text-align:center}}

/* Rich news content */
.news-thumb { overflow: hidden; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.public-news-list { display: grid; gap: 18px; }
.public-news-card { display: grid; grid-template-columns: minmax(260px, 34%) minmax(0, 1fr); overflow: hidden; }
.public-news-cover { min-height: 230px; display: grid; place-items: center; overflow: hidden; background: linear-gradient(135deg,#33276a,#231b45); color: var(--gold2); font: 18px var(--display); letter-spacing: .16em; }
.public-news-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.public-news-card:hover .public-news-cover img { transform: scale(1.025); }
.public-news-copy { padding: 28px 30px; }
.public-news-copy time { color: var(--gold2); font-size: 12px; }
.public-news-copy h2 { margin: 7px 0 10px; font: 30px/1.2 var(--display); }
.public-news-copy p { margin: 0; color: var(--muted); }
.public-news-more { display: inline-block; margin-top: 18px; color: var(--gold2); text-transform:none; font-size: 11px; letter-spacing: .08em; }
.news-page { display: grid; gap: 20px; max-width: 1050px; }
.news-page-cover { margin: 0; overflow: hidden; }
.news-page-cover img { display: block; width: 100%; max-height: 590px; object-fit: cover; }
.news-prose { padding: 38px 44px; color: #dcd5ec; font-size: 16px; line-height: 1.8; }
.news-prose > :first-child { margin-top: 0; }
.news-prose > :last-child { margin-bottom: 0; }
.news-prose p { margin: 0 0 1.15em; }
.news-prose h2,
.news-prose h3,
.news-prose h4 { color: #f3eefc; font-family: var(--display); font-weight: 500; }
.news-prose h2 { margin: 1.5em 0 .55em; font-size: 32px; }
.news-prose h3 { margin: 1.35em 0 .5em; font-size: 26px; }
.news-prose h4 { margin: 1.2em 0 .45em; font-size: 21px; }
.news-prose strong { color: #f3eefc; }
.news-prose a { color: var(--gold2); text-decoration: underline; text-underline-offset: 3px; }
.news-prose ul,
.news-prose ol { margin: 1em 0 1.2em; padding-left: 30px; }
.news-prose li + li { margin-top: .35em; }
.news-prose blockquote { margin: 1.4em 0; padding: 18px 22px; border-left: 3px solid var(--gold); background: rgba(226,184,102,.08); color: #e6e0f3; }
.news-prose hr { margin: 32px 0; border: 0; border-top: 1px solid #382c63; }
.news-prose figure { margin: 28px 0; }
.news-prose figure img { display: block; max-width: 100%; height: auto; margin: 0 auto; border: 1px solid #43376f; }
.news-prose figcaption { margin-top: 8px; color: #a99fc6; font-size: 12px; text-align: center; }
.news-prose pre { overflow-x: auto; padding: 18px; border: 1px solid #382c63; background: #0d0a1c; color: #e6e0f3; white-space: pre-wrap; }
.news-prose code { font-family: Consolas,"Courier New",monospace; }
.news-prose [data-color="gold"] { color: #f2cf83; }
.news-prose [data-color="red"] { color: #ef6969; }
.news-prose [data-color="green"] { color: #72ca7e; }
.news-prose [data-color="blue"] { color: #76a9ea; }
.news-prose [data-color="muted"] { color: #a99fc6; }
.news-prose [data-align="center"] { text-align: center; }
.news-prose [data-align="right"] { text-align: right; }

@media(max-width:780px){
    .public-news-card{grid-template-columns:1fr}
    .public-news-cover{min-height:190px}
    .public-news-copy{padding:22px}
    .public-news-copy h2{font-size:25px}
    .news-prose{padding:24px 20px;font-size:15px}
    .news-prose h2{font-size:27px}
    .news-prose h3{font-size:23px}
}

/* News preview */
.news-preview-banner {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 48px;
    padding: 10px 18px;
    border-bottom: 1px solid rgba(255, 210, 112, .45);
    background: #f3c866;
    color: #1b1710;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .24);
}
.news-preview-banner strong { font-weight: 800; }
.news-preview-banner span { opacity: .82; font-size: 13px; }

@media (max-width: 680px) {
    .news-preview-banner { align-items: flex-start; flex-direction: column; gap: 2px; text-align: left; }
}

/* Site settings 0.7.0 */
.brand-logo { display: block; width: auto; max-width: 230px; height: auto; max-height: 54px; object-fit: contain; }
.footer-brand-logo { max-width: 250px; max-height: 64px; }
@media(max-width:780px){.brand-logo{max-width:180px;max-height:44px}.footer-brand-logo{max-width:220px;max-height:56px}}

/* Multiple game servers and hero alignment 0.7.2 */
.server-list{display:grid}
.server-row+.server-row{border-top:1px solid #2c2350}
.server-summary strong,.server-summary small{display:block}
.server-summary small{margin-top:5px;color:var(--muted);font-size:11px}
.server-summary .status{display:block;margin-top:5px}
.about-server-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px;margin:20px 0}
.about-server-card{padding:18px;border:1px solid #382c63;background:#18122f}
.about-server-card h3{margin:0 0 14px;color:var(--text);font:20px var(--display)}
.about-server-card dl{display:grid;gap:10px}
.about-server-card dl div{padding:0;border:0}
@media(max-width:780px){.hero{background-position:62% top}.server-row{gap:18px}.server-summary{display:grid;grid-template-columns:1fr auto;align-items:center}.server-summary small{grid-column:1/-1}.server-summary .status{margin:0}}
.server-row .server-summary .status.online{color:var(--green)}
.server-row .server-summary .status.offline{color:var(--danger)}

/* Public users and mail flows 0.8.0 */
.header-logout-form { margin: 0; }
.header-logout-form .button { height: 100%; }
.mobile-account-link { display: none !important; }
.public-flash-stack { position: relative; z-index: 8; padding-top: 14px; }
.public-flash {
    padding: 12px 15px;
    border: 1px solid;
    background: #1b1538;
    box-shadow: 0 12px 35px rgba(0,0,0,.28);
}
.public-flash p { margin: 0; }
.public-flash p + p { margin-top: 5px; }
.public-flash-success { border-color: rgba(143,208,162,.55); color: #a9dfb7; }
.public-flash-warning { border-color: rgba(242,207,131,.55); color: var(--gold2); }
.public-flash-error { border-color: rgba(213,107,100,.58); color: #efaaa5; }
.auth-card form { margin-top: 22px; }
.auth-card label small { display: block; margin-top: 5px; color: #a99fc6; line-height: 1.4; }
.auth-checkbox {
    display: flex !important;
    align-items: center;
    gap: 9px;
    margin: 2px 0 15px !important;
    cursor: pointer;
}
.auth-checkbox input { width: 16px !important; height: 16px !important; margin: 0 !important; accent-color: var(--gold); }
.auth-links { display: flex; justify-content: space-between; gap: 18px; margin-top: 18px; font-size: 12px; }
.auth-links a { color: var(--gold2); }
.auth-links-center { justify-content: center; }
.auth-info { margin: 2px 0 15px; padding: 10px 12px; border-left: 2px solid var(--gold); background: rgba(226,184,102,.08); color: #dcd5ec; font-size: 12px; }
.auth-info-error { border-color: var(--danger); background: rgba(213,107,100,.08); color: #efaaa5; }
.auth-message-card { text-align: center; }
.auth-message-card .button { margin-top: 18px; }
.auth-message-card form + form { margin-top: 10px; }
.login-panel-user { padding: 22px 18px; }
.login-panel-user span,
.login-panel-user strong { display: block; }
.login-panel-user span { color: var(--muted); font-size: 12px; }
.login-panel-user strong { margin: 4px 0 18px; font: 22px var(--display); }
.login-panel-user .button { width: 100%; }
.account-page { max-width: 980px; }
.account-card { padding: 28px; }
.account-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 22px; border-bottom: 1px solid #2c2350; }
.account-heading h2 { margin: 3px 0 0; font: 34px var(--display); }
.account-label { color: var(--muted); font-size: 10px; letter-spacing: .12em; text-transform:none; }
.account-status { padding: 6px 10px; border: 1px solid; font-size: 11px; text-transform:none; }
.account-status.verified { border-color: rgba(143,208,162,.55); color: var(--green); }
.account-status.unverified { border-color: rgba(242,207,131,.55); color: var(--gold2); }
.account-details { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); margin: 0; }
.account-details div { padding: 20px 0; border-left: 0; border-bottom: 1px solid #2c2350; }
.account-details div:nth-child(odd) { padding-right: 24px; }
.account-details div:nth-child(even) { padding-left: 24px; border-left: 1px solid #2c2350; }
.account-details dt { color: #a99fc6; }
.account-details dd { overflow-wrap: anywhere; font-size: 15px; }
.account-note { margin-top: 22px; padding: 14px 16px; border-left: 2px solid var(--gold); background: rgba(226,184,102,.07); color: #cdc5e2; }

@media(max-width:780px){
    .mobile-account-link { display: flex !important; }
}

@media(max-width:560px){
    .auth-links { align-items: center; flex-direction: column; }
    .account-heading { align-items: flex-start; flex-direction: column; }
    .account-details { grid-template-columns: 1fr; }
    .account-details div:nth-child(odd),
    .account-details div:nth-child(even) { padding: 16px 0; border-left: 0; }
}

/* Language menu: the current code opens a list of languages by their own names. */
.language-menu { position: relative; align-self: center; }
.language-menu > summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 10px 0 12px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 7px;
    background: rgba(0, 0, 0, .16);
    color: rgba(255, 255, 255, .86);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    list-style: none;
    cursor: pointer;
}
.language-menu > summary::-webkit-details-marker { display: none; }
.language-menu > summary:hover,
.language-menu[open] > summary { border-color: var(--gold, #e2b866); }
.language-menu > summary:focus-visible { outline: 2px solid var(--gold, #e2b866); outline-offset: 2px; }
.language-menu-chevron { color: rgba(255, 255, 255, .6); transition: transform .16s ease; }
.language-menu[open] .language-menu-chevron { transform: rotate(180deg); }
.language-menu-list {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 60;
    display: grid;
    min-width: 176px;
    padding: 6px;
    border: 1px solid #43376f;
    border-radius: 8px;
    background: #1b1538;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .45);
}
.language-menu-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 9px 12px;
    border-radius: 5px;
    color: #e6e0f3;
    font-size: 13px;
    text-decoration: none;
}
.language-menu-list a small { color: #a99fc6; font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.language-menu-list a:hover { background: rgba(255, 255, 255, .06); }
.language-menu-list a.active { background: var(--gold, #e2b866); color: #120d24; }
.language-menu-list a.active small { color: rgba(21, 17, 11, .7); }
[dir="rtl"] body { direction: rtl; }
[dir="rtl"] .main-nav,
[dir="rtl"] .header-actions,
[dir="rtl"] .header-inner { flex-direction: row-reverse; }
[dir="rtl"] .language-menu-list { right: auto; left: 0; }
@keyframes language-menu-slide { from { opacity: 0; margin-top: -6px; } to { opacity: 1; margin-top: 0; } }
@media (prefers-reduced-motion: reduce) { .language-menu-list { animation: none !important; } }

/* Language menu at the foot of the phone menu (the header actions are hidden there). */
.mobile-language-menu { display: none !important; }
@media (max-width: 780px) {
    .mobile-language-menu { display: grid !important; justify-items: center; margin: 10px 0 4px; }
    /* The list slides over the page below the button, so the menu itself keeps its size. */
    .mobile-language-menu .language-menu-list { right: auto; left: 50%; width: min(240px, calc(100vw - 48px)); transform: translateX(-50%); animation: language-menu-slide .16s ease-out; }
    .main-nav .language-menu-list a { min-height: 0; border-bottom: 0; text-transform: none; }
    .main-nav .language-menu-list a.active { color: #120d24; }
}

/* CMS content pages */
.cms-page { max-width: 980px; }
.cms-page-prose { padding: clamp(24px, 4vw, 48px); }

/* Real per-server status 0.13.23 */
.server-row{grid-template-columns:minmax(210px,.65fr) minmax(320px,1.35fr)}
.server-row .status.unknown{color:var(--muted)}
.server-row .status.unknown:before{background:#8f86b0;box-shadow:none}
.server-row .status.offline:before{box-shadow:0 0 10px rgba(213,107,100,.35)}
@media(max-width:780px){.server-row{grid-template-columns:1fr}}
.footer-section-links{display:grid;grid-auto-flow:column;grid-template-rows:repeat(3,auto);grid-auto-columns:minmax(150px,1fr);column-gap:28px;overflow-x:auto;scrollbar-width:thin}.footer-section-links>a{display:block;color:#b3aad0;margin:7px 0;white-space:nowrap}.footer-sections{min-width:0}@media(max-width:780px){.footer-sections{grid-column:span 1}.footer-section-links{grid-auto-columns:minmax(135px,1fr)}}@media(max-width:520px){.footer-section-links{grid-auto-columns:minmax(130px,1fr)}}.status.maintenance{color:#f59e0b}.status.maintenance:before{background:#f59e0b;box-shadow:0 0 12px rgba(245,158,11,.55)}.server-maintenance-message{display:block;margin-top:4px;color:#d6a85d}.server-maintenance-message{color:var(--muted)}

/* Public game statistics 0.15.0 */
.compact-page-hero { padding: 52px 0 38px; }
.compact-page-hero h1 { margin-bottom: 8px; }
.compact-page-hero p:last-child { max-width: 720px; margin: 0; color: #dcd5ec; }
.statistics-page { padding: 34px 0 54px; }
.statistics-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 16px; padding: 18px 20px; border: 1px solid #382c63; background: rgba(28,21,54,.9); }
.statistics-toolbar > div > span { display: block; color: var(--muted); font-size: 10px; letter-spacing: .12em; text-transform:none; }
.statistics-toolbar > div > strong { display: block; margin-top: 3px; font: 22px var(--display); }
.statistics-server-switcher,.statistics-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: thin; }
.statistics-server-switcher a,.statistics-tabs a { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 0 16px; border: 1px solid #43376f; background: #18122f; color: #cdc5e2; white-space: nowrap; text-transform:none; font-size: 11px; letter-spacing: .04em; }
.statistics-server-switcher a:hover,.statistics-server-switcher a.active,.statistics-tabs a:hover,.statistics-tabs a.active { border-color: #c99a4e; background: rgba(226,184,102,.14); color: var(--gold2); }
.statistics-tabs { margin-bottom: 16px; padding-bottom: 2px; }
.statistics-table-card { overflow: hidden; }
.statistics-table-wrap { overflow-x: auto; }
.statistics-table { min-width: 960px; }
.statistics-table th { padding: 15px 16px; background: rgba(255,255,255,.018); }
.statistics-table td { padding: 16px; vertical-align: middle; }
.statistics-table tbody tr { transition: background .18s ease; }
.statistics-table tbody tr:hover { background: rgba(242,207,131,.035); }
.statistics-rank { width: 32px; height: 32px; display: inline-grid; place-items: center; border: 1px solid #43376f; color: #cdc5e2; font: 14px var(--display); }
.statistics-table tbody tr:nth-child(1) .statistics-rank { border-color: #e2b866; background: rgba(182,138,53,.13); color: #ecd29a; }
.statistics-table tbody tr:nth-child(2) .statistics-rank { border-color: #8f86b0; background: rgba(125,133,137,.12); color: #dcd5ec; }
.statistics-table tbody tr:nth-child(3) .statistics-rank { border-color: #a0785a; background: rgba(143,95,55,.12); color: #d9a882; }
.statistics-character { display: flex; align-items: center; gap: 11px; min-width: 180px; }
.statistics-character > span { min-width: 0; }
.statistics-character-avatar { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 38px; overflow: hidden; border: 1px solid #43376f; border-radius: 10px; background: #231b45; color: #f2cf83; font-weight: 800; }
.statistics-character-avatar > img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; }
.statistics-character strong,.statistics-character small { display: block; }
.statistics-character strong { color: #f3eefc; font-size: 14px; }
.statistics-character small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.statistics-value { color: var(--gold2); font-size: 15px; }
.statistics-value.danger { color: #e58a83; }
.statistics-online { color: var(--muted); font-size: 11px; text-transform:none; }
.statistics-online:before { content: ""; width: 7px; height: 7px; display: inline-block; margin-right: 7px; border-radius: 50%; background: #8f86b0; }
.statistics-online.online { color: var(--green); }
.statistics-online.online:before { background: var(--green); box-shadow: 0 0 9px rgba(143,208,162,.55); }
.statistics-hero-badge { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border: 1px solid #c99a4e; background: linear-gradient(135deg,rgba(226,184,102,.2),rgba(92,59,21,.12)); color: #f2cf83; font-size: 10px; letter-spacing: .08em; text-transform:none; }
.statistics-empty-state { min-height: 300px; display: grid; place-items: center; align-content: center; padding: 40px; text-align: center; }
.statistics-empty-state > span { width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 14px; border: 1px solid #c99a4e; color: var(--gold2); font: 24px var(--display); transform: rotate(45deg); }
.statistics-empty-state > span i { display: block; font-style: normal; transform: rotate(-45deg); }
.statistics-empty-state h2 { margin: 0; font: 28px var(--display); }
.statistics-empty-state p { max-width: 560px; margin: 10px 0 0; color: var(--muted); }
.statistics-error-state > span { border-color: rgba(213,107,100,.6); color: #e58a83; }
.castle-owner-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(310px,1fr)); gap: 16px; }
.castle-owner-card { display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding: 24px; }
.castle-owner-mark { width: 58px; height: 58px; display: grid; place-items: center; border: 1px solid #c99a4e; color: var(--gold2); font-size: 27px; }
.castle-owner-card span { color: var(--muted); font-size: 10px; letter-spacing: .12em; text-transform:none; }
.castle-owner-card h2 { margin: 2px 0 8px; font: 29px var(--display); }
.castle-owner-card > div > strong { color: var(--gold2); font-size: 15px; }
.castle-owner-card dl { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin-top: 18px; }
.castle-owner-card dl div { padding: 0 12px; }
.castle-owner-card dl div:first-child { padding-left: 0; border-left: 0; }
.castle-owner-card dd { overflow-wrap: anywhere; }
@media(max-width:780px){.statistics-toolbar{align-items:flex-start;flex-direction:column}.statistics-server-switcher{width:100%}.statistics-server-switcher a{flex:1}.statistics-page{padding-top:22px}.castle-owner-card{grid-template-columns:1fr}.castle-owner-card dl{grid-template-columns:1fr}.castle-owner-card dl div{padding:10px 0;border-left:0;border-top:1px solid #2c2350}}
/* Character avatar foundation 0.31.0 */
.rating-character { display: inline-flex; align-items: center; gap: 8px; }
.rating-character-avatar { width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 30px; overflow: hidden; border: 1px solid #43376f; border-radius: 8px; background: #231b45; color: #f2cf83; font-weight: 800; }
.rating-character-avatar > img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; }

/* Safe rich content produced by the administration editor */
:where(.news-prose,.cms-page-prose) [data-color="gold"] { color: #f2cf83; }
:where(.news-prose,.cms-page-prose) [data-color="amber"] { color: #fbbf24; }
:where(.news-prose,.cms-page-prose) [data-color="yellow"] { color: #fde047; }
:where(.news-prose,.cms-page-prose) [data-color="red"] { color: #f87171; }
:where(.news-prose,.cms-page-prose) [data-color="rose"] { color: #fb7185; }
:where(.news-prose,.cms-page-prose) [data-color="coral"] { color: #fb8a78; }
:where(.news-prose,.cms-page-prose) [data-color="orange"] { color: #fb923c; }
:where(.news-prose,.cms-page-prose) [data-color="brown"] { color: #d6a36a; }
:where(.news-prose,.cms-page-prose) [data-color="lime"] { color: #a3e635; }
:where(.news-prose,.cms-page-prose) [data-color="green"] { color: #72ca7e; }
:where(.news-prose,.cms-page-prose) [data-color="emerald"] { color: #6ee7b7; }
:where(.news-prose,.cms-page-prose) [data-color="teal"] { color: #5eead4; }
:where(.news-prose,.cms-page-prose) [data-color="cyan"] { color: #67e8f9; }
:where(.news-prose,.cms-page-prose) [data-color="sky"] { color: #7dd3fc; }
:where(.news-prose,.cms-page-prose) [data-color="blue"] { color: #76a9ea; }
:where(.news-prose,.cms-page-prose) [data-color="indigo"] { color: #a5b4fc; }
:where(.news-prose,.cms-page-prose) [data-color="violet"] { color: #c4b5fd; }
:where(.news-prose,.cms-page-prose) [data-color="purple"] { color: #d8b4fe; }
:where(.news-prose,.cms-page-prose) [data-color="fuchsia"] { color: #f0abfc; }
:where(.news-prose,.cms-page-prose) [data-color="pink"] { color: #f9a8d4; }
:where(.news-prose,.cms-page-prose) [data-color="slate"] { color: #cbd5e1; }
:where(.news-prose,.cms-page-prose) [data-color="gray"] { color: #9ca3af; }
:where(.news-prose,.cms-page-prose) [data-color="zinc"] { color: #a1a1aa; }
:where(.news-prose,.cms-page-prose) [data-color="muted"] { color: #a99fc6; }
:where(.news-prose,.cms-page-prose) [data-highlight] {
    padding-inline: .12em;
    border-radius: .18em;
    color: #120d24;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}
:where(.news-prose,.cms-page-prose) [data-highlight="yellow"] { background: #f9e68a; }
:where(.news-prose,.cms-page-prose) [data-highlight="amber"] { background: #f8d477; }
:where(.news-prose,.cms-page-prose) [data-highlight="orange"] { background: #f6c995; }
:where(.news-prose,.cms-page-prose) [data-highlight="rose"] { background: #f4b6c2; }
:where(.news-prose,.cms-page-prose) [data-highlight="red"] { background: #f3b2b2; }
:where(.news-prose,.cms-page-prose) [data-highlight="lime"] { background: #cfe88b; }
:where(.news-prose,.cms-page-prose) [data-highlight="green"] { background: #a9dab1; }
:where(.news-prose,.cms-page-prose) [data-highlight="teal"] { background: #91d8ca; }
:where(.news-prose,.cms-page-prose) [data-highlight="cyan"] { background: #9edce4; }
:where(.news-prose,.cms-page-prose) [data-highlight="blue"] { background: #a9c9ed; }
:where(.news-prose,.cms-page-prose) [data-highlight="purple"] { background: #d5b7ea; }
:where(.news-prose,.cms-page-prose) [data-highlight="gray"] { background: #c8cccd; }
:where(.news-prose,.cms-page-prose) [data-text-size="small"] { font-size: .84em; }
:where(.news-prose,.cms-page-prose) [data-text-size="large"] { font-size: 1.25em; line-height: 1.5; }
:where(.news-prose,.cms-page-prose) [data-align="center"] { text-align: center; }
:where(.news-prose,.cms-page-prose) [data-align="right"] { text-align: right; }
:where(.news-prose,.cms-page-prose) [data-align="justify"] { text-align: justify; }
:where(.news-prose,.cms-page-prose) figure { max-width: 100%; }
:where(.news-prose,.cms-page-prose) figure img { display: block; width: 100%; max-width: 100%; height: auto; }
:where(.news-prose,.cms-page-prose) figure[data-size="narrow"] { width: 45%; }
:where(.news-prose,.cms-page-prose) figure[data-size="medium"] { width: 65%; }
:where(.news-prose,.cms-page-prose) figure[data-size="wide"] { width: 85%; }
:where(.news-prose,.cms-page-prose) figure[data-align="center"] { margin-right: auto; margin-left: auto; }
:where(.news-prose,.cms-page-prose) figure[data-align="right"] { margin-left: auto; }
:where(.news-prose,.cms-page-prose) table { display: block; overflow-x: auto; width: 100%; margin: 24px 0; border: 1px solid #43376f; border-collapse: collapse; }
:where(.news-prose,.cms-page-prose) th,
:where(.news-prose,.cms-page-prose) td { min-width: 120px; padding: 10px 13px; border: 1px solid #43376f; vertical-align: top; }
:where(.news-prose,.cms-page-prose) th { background: rgba(242,207,131,.08); color: #f3eefc; }
:where(.news-prose,.cms-page-prose) code { padding: .12em .32em; background: #0d0a1c; color: #f2cf83; }
:where(.news-prose,.cms-page-prose) pre code { padding: 0; background: transparent; color: inherit; }
@media(max-width:780px){
    :where(.news-prose,.cms-page-prose) figure[data-size="narrow"] { width: 65%; }
    :where(.news-prose,.cms-page-prose) figure[data-size="medium"],
    :where(.news-prose,.cms-page-prose) figure[data-size="wide"] { width: 100%; }
}

/* Mobile footer containment */
@media(max-width:780px){
    .footer-grid > *,
    .footer-bottom > * { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
    .socials { min-width: 0; flex-wrap: wrap; }
}
/* Footer navigation: built-in and custom links share one presentation. */
.footer-section-links a{display:block;margin:7px 0;color:#b3aad0;font-size:13px;line-height:1.6}.footer-section-links a:hover{color:var(--gold2)}

/* Compact social sign-in buttons shared by both public themes. */
.social-signin-section { margin-top: 20px; border-top: 1px solid rgba(145,145,145,.22); padding-top: 18px; text-align: center; }
.social-signin-section .muted { margin: 0 0 12px; }
.social-signin-options { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; }
.auth-card .social-signin-button { display: inline-flex; flex: 0 1 auto; align-items: center; justify-content: center; gap: 8px; width: auto; max-width: 100%; min-height: 40px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper, var(--panel)); color: var(--ink, var(--text)); font: inherit; font-size: 13px; font-weight: 600; line-height: 1.3; letter-spacing: normal; text-transform: none; text-decoration: none; transition: border-color 160ms ease, background-color 160ms ease; }
.auth-card .social-signin-button:hover { border-color: var(--gold); }
.auth-card .social-signin-button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.social-signin-icon { display: block; width: 18px; height: 18px; flex: 0 0 18px; object-fit: contain; }
@media (prefers-reduced-motion: reduce) { .auth-card .social-signin-button { transition: none; } }

.auth-inline-feedback { display:grid; gap:8px; margin:20px 0; min-width:0; }
.auth-inline-feedback .public-flash { font-size:14px; line-height:1.5; overflow-wrap:anywhere; box-shadow:none; }



/* ---------- Часть 2: слой темы «Celestial Destiny» ----------
   Сумеречное небо с сиянием, «Сфера Судьбы» на главной, жемчужный текст и небесное золото.
   Заголовки — Lora курсивом, текст — Inter. Движение одно: медленно вращаются орбиты Сферы. */

@font-face { font-family: "Lora"; src: url("../fonts/lora-variable.woff") format("woff"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("../fonts/lora-italic-variable.woff") format("woff"); font-weight: 400 700; font-style: italic; font-display: swap; }
/* Inter — из комплекта KaevCMS (public/assets/admin/fonts). */
@font-face { font-family: "Inter"; src: url("../../../../assets/admin/fonts/inter-variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
    --void: #120d24;
    --void-deep: #0d0a1c;
    --veil: rgba(29, 21, 56, .74);
    --veil-2: #231b45;
    --rule: #382c63;
    --rule-2: #4a3d7a;
    --pearl: #f3eefc;
    --lilac: #b3aad0;
    --aether: #8fe3f0;
    --halo: #f2cf83;
    --halo-deep: #e2b866;
    --rose: #e7a3c4;
    --ok: #8fe0b0;
    --warn: #f0c46a;
    --bad: #f29a9a;
    --display: "Lora", Georgia, "Times New Roman", serif;
    --body: "Inter", "Segoe UI", system-ui, sans-serif;
    --r-control: 12px;
    --r-panel: 20px;

    /* переменные темы Dark KaevCMS, на которых держатся её стили и стили модулей */
    --bg: var(--void);
    --bg2: var(--void-deep);
    --panel: var(--veil);
    --panel2: var(--veil-2);
    --line: var(--rule);
    --gold: var(--halo-deep);
    --gold2: var(--halo);
    --text: var(--pearl);
    --muted: var(--lilac);
    --green: var(--ok);
    --danger: var(--bad);
    --radius: var(--r-control);
    --shadow: 0 24px 60px rgba(6, 4, 16, .5);
    --paper: var(--veil-2);
    --ink-text: var(--pearl);
}

html { background: var(--void); }
body.le-body {
    position: relative;
    min-height: 100vh;
    background: transparent;
    color: var(--pearl);
    font: 400 16px/1.6 var(--body);
    -webkit-font-smoothing: antialiased;
}
/* Небо: туманность, полярное сияние и звёзды (images/cd-sky.svg) поверх сумеречного градиента;
   внизу — тёплая полоса рассвета. */
.le-sky {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-color: var(--void);
    background-image:
        url("../images/cd-sky.svg"),
        radial-gradient(1100px 520px at 50% 118%, rgba(231, 163, 196, .16) 0%, transparent 70%),
        radial-gradient(1300px 700px at 72% -10%, #2c2160 0%, transparent 70%),
        linear-gradient(180deg, #120d24 0%, #161036 60%, #1b1236 100%);
    background-size: cover, auto, auto, auto;
    background-position: center, 0 0, 0 0, 0 0;
    background-repeat: no-repeat;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--aether); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(143, 227, 240, .3); color: var(--pearl); }

.container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }

/* шапка */
.site-header { height: auto; background: rgba(13, 10, 28, .7); border-bottom: 1px solid var(--rule); backdrop-filter: blur(10px); }
.header-inner { min-height: 76px; gap: 28px; }
.brand { gap: 12px; color: var(--pearl); }
.le-brand-star { color: var(--halo); flex: none; }
.le-brand-name { font: italic 600 25px/1 var(--display); letter-spacing: 0; }
.main-nav { gap: 4px; }
.main-nav a { padding: 0 14px; font-size: 15px; letter-spacing: 0; color: var(--lilac); border-bottom: 1px solid transparent; }
.main-nav a:hover { color: var(--pearl); border-color: transparent; }
.main-nav a.active { color: var(--pearl); border-color: var(--aether); }
.header-actions { gap: 10px; align-items: center; }

/* кнопки */
.button {
    min-height: 44px;
    padding: 0 22px;
    border: 1px solid var(--rule-2);
    border-radius: 999px;
    background: transparent;
    color: var(--pearl);
    font: 600 15px/1 var(--body);
    letter-spacing: 0;
    text-transform: none;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.button:hover { transform: none; filter: none; border-color: var(--aether); }
.button-gold { border-color: var(--halo); background: var(--halo); color: #1a1230; box-shadow: 0 0 0 0 rgba(242, 207, 131, 0); }
.button-gold:hover { background: #f7dda2; border-color: #f7dda2; color: #1a1230; box-shadow: 0 0 28px rgba(242, 207, 131, .28); }
.button-ghost { background: rgba(13, 10, 28, .35); }
.button-large { min-height: 54px; padding: 0 30px; font-size: 16px; }

/* панели: тонкая светящаяся кромка сверху — единственное украшение */
.panel { background: var(--veil); border: 1px solid var(--rule); border-radius: var(--r-panel); box-shadow: none; overflow: hidden; position: relative; }
.panel:before { display: block; content: ""; position: absolute; inset: 0 0 auto; height: 1px; border: 0; background: linear-gradient(90deg, transparent, rgba(143, 227, 240, .55), rgba(242, 207, 131, .55), transparent); }
.panel-title { min-height: 64px; padding: 0 22px; border-bottom: 1px solid var(--rule); }
.panel-title h2 { font: italic 600 21px/1.25 var(--display); letter-spacing: 0; }
.panel-title a { font-size: 14px; letter-spacing: 0; color: var(--aether); }

/* герой: Сфера Судьбы */
.cd-hero { position: relative; padding: 40px 0 132px; text-align: center; overflow: hidden; }
.cd-hero:after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: min(1400px, 160%);
    height: 220px;
    transform: translate(-50%, 62%);
    border-radius: 50%;
    border-top: 1px solid rgba(242, 207, 131, .55);
    box-shadow: 0 -18px 60px -30px rgba(231, 163, 196, .55), inset 0 24px 60px -40px rgba(143, 227, 240, .45);
    pointer-events: none;
}
.cd-hero-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.cd-sphere { position: relative; width: min(340px, 72vw); margin: 0 auto 8px; }
.cd-sphere svg { display: block; width: 100%; height: auto; overflow: visible; }
.cd-orbit { fill: none; stroke: rgba(179, 170, 208, .35); stroke-width: 1; }
.cd-orbit-gold { stroke: rgba(242, 207, 131, .6); }
.cd-orbit-aether { stroke: rgba(143, 227, 240, .5); stroke-dasharray: 2 7; }
.cd-spin { transform-box: view-box; transform-origin: 170px 170px; animation: cd-spin 120s linear infinite; }
.cd-spin-rev { animation-duration: 160s; animation-direction: reverse; }
.cd-body-gold { fill: var(--halo); filter: drop-shadow(0 0 6px rgba(242, 207, 131, .9)); }
.cd-body-aether { fill: var(--aether); filter: drop-shadow(0 0 6px rgba(143, 227, 240, .9)); }
.cd-core-glow { fill: url(#cd-core); }
.cd-core-star { fill: var(--pearl); }
.cd-sphere.is-down .cd-core-star { fill: var(--lilac); }
.cd-sphere.is-down .cd-body-gold, .cd-sphere.is-down .cd-body-aether { filter: none; opacity: .6; }
@keyframes cd-spin { to { transform: rotate(360deg); } }

.cd-kicker { margin: 0 0 12px; color: var(--aether); font-size: 15px; font-weight: 500; letter-spacing: .02em; }
.cd-hero h1 { margin: 0; font: italic 600 clamp(48px, 8.4vw, 108px)/.98 var(--display); letter-spacing: -.015em; color: var(--pearl); text-shadow: 0 0 48px rgba(143, 227, 240, .18); overflow-wrap: anywhere; }
.cd-lead { max-width: 34em; margin: 22px auto 0; color: var(--lilac); font-size: 19px; line-height: 1.6; }
.cd-hero .hero-actions { margin-top: 32px; justify-content: center; flex-wrap: wrap; }
.cd-online { display: inline-flex; align-items: center; gap: 10px; margin: 26px 0 0; color: var(--lilac); font-size: 15px; }
.cd-online strong { color: var(--pearl); font: italic 600 22px/1 var(--display); }
.cd-online:before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px rgba(143, 224, 176, .8); }
.cd-online.is-down:before { background: var(--bad); box-shadow: none; }

/* статус серверов */
.le-servers { margin-bottom: 72px; }
.server-row { padding: 22px; }
.server-summary strong { font: italic 600 21px/1.3 var(--display); }
.status { font-size: 14px; letter-spacing: 0; }
.status:before { width: 8px; height: 8px; }
.status.online:before { box-shadow: 0 0 10px rgba(143, 224, 176, .7); }
dt { font-size: 13px; letter-spacing: 0; color: var(--lilac); }
dd { font-size: 16px; color: var(--pearl); }
dl div { border-left-color: var(--rule); }

/* разделы главной */
.le-section { margin-bottom: 72px; }
.le-section-title { margin: 0 0 28px; font: italic 600 clamp(32px, 4vw, 46px)/1.1 var(--display); }
.le-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 40px; margin: 0; padding: 0; list-style: none; }
.le-features li { display: flex; gap: 16px; align-items: flex-start; padding-top: 20px; border-top: 1px solid var(--rule); }
.le-features svg { flex: none; margin-top: 3px; color: var(--aether); }
.le-features h3 { margin: 0; font: italic 600 20px/1.3 var(--display); }
.le-features p { margin: 6px 0 0; color: var(--lilac); font-size: 15px; line-height: 1.55; }

.le-content-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; margin-bottom: 80px; }
.news-list { padding: 8px 22px; }
.news-item { grid-template-columns: 120px 1fr; border-bottom-color: var(--rule); }
.news-thumb { min-height: 80px; border: 1px solid var(--rule); border-radius: 14px; background: linear-gradient(135deg, #33276a, #1b1538); }
.news-item time { font-size: 13px; color: var(--lilac); }
.news-item h3 { margin: 2px 0 4px; font: italic 600 19px/1.3 var(--display); }
.news-item p { font-size: 14px; }
.empty, .rating-empty { padding: 18px 22px; color: var(--lilac); }

/* формы */
.login-panel form { padding: 22px; }
.login-panel label, .auth-card label { font-size: 15px; color: var(--pearl); margin-bottom: 16px; }
.login-panel input, .auth-card input {
    height: 48px;
    margin-top: 8px;
    padding: 0 14px;
    border: 1px solid var(--rule-2);
    border-radius: var(--r-control);
    background: var(--void-deep);
    color: var(--pearl);
    font-size: 16px;
}
.login-panel input:focus, .auth-card input:focus { border-color: var(--aether); outline: none; box-shadow: 0 0 0 3px rgba(143, 227, 240, .18); }
.auth-card label small { color: var(--lilac); font-size: 13px; }
.login-panel form p { font-size: 14px; }
.login-panel a, .auth-links a { color: var(--aether); }
.login-panel-user strong { font: italic 600 24px var(--display); }
th { font-size: 13px; letter-spacing: 0; color: var(--lilac); }
td { font-size: 15px; }
th, td { border-bottom-color: var(--rule); }

/* внутренние страницы */
.page-hero { padding: 64px 0 36px; background: none; border-bottom: 0; }
.page-hero h1, .compact-page-hero h1 { margin: 0; font: italic 600 clamp(40px, 6vw, 62px)/1.05 var(--display); letter-spacing: -.01em; text-shadow: none; }
.compact-page-hero p:last-child { margin-top: 14px; color: var(--lilac); font-size: 18px; }
.eyebrow { margin: 0 0 12px; color: var(--aether); font-size: 15px; letter-spacing: 0; }
.page-content { padding: 8px 0 72px; }
.public-news-card { border-radius: var(--r-panel); }
.public-news-cover { background: linear-gradient(135deg, #33276a, #1b1538); color: var(--halo); font: italic 600 22px var(--display); letter-spacing: 0; }
.public-news-copy time { font-size: 14px; color: var(--aether); }
.public-news-copy h2 { font: italic 600 30px/1.2 var(--display); }
.public-news-more { font-size: 14px; letter-spacing: 0; color: var(--aether); }
.news-prose, .cms-page-prose { color: #dcd5ec; font-size: 17px; line-height: 1.75; }
.news-prose h2, .news-prose h3, .news-prose h4 { font-family: var(--display); font-style: italic; font-weight: 600; color: var(--pearl); }
.news-prose a { color: var(--aether); }
.news-prose blockquote { border-left: 0; border-radius: 14px; background: rgba(143, 227, 240, .07); }

.auth-page { min-height: 0; padding: 72px 20px 96px; background: none; }
.auth-card { padding: 40px; border-radius: 24px; }
.auth-card h1 { font: italic 600 42px/1.1 var(--display); }
.auth-card .muted { margin: 12px 0 0; }
.auth-info { border-left: 0; border-radius: var(--r-control); background: rgba(143, 227, 240, .08); font-size: 14px; }
.auth-links { font-size: 14px; }

.statistics-toolbar { border-radius: var(--r-panel); border-color: var(--rule); background: var(--veil); }
.statistics-toolbar > div > span { font-size: 13px; letter-spacing: 0; }
.statistics-toolbar > div > strong { font: italic 600 22px var(--display); }
.statistics-server-switcher a, .statistics-tabs a { min-height: 44px; border-radius: 999px; font-size: 14px; letter-spacing: 0; background: transparent; }
.statistics-server-switcher a.active, .statistics-tabs a.active { border-color: var(--aether); background: rgba(143, 227, 240, .12); color: var(--pearl); }
.statistics-rank { border-radius: 50%; font-family: var(--display); }
.statistics-online, .statistics-hero-badge, .castle-owner-card span { font-size: 13px; letter-spacing: 0; }
.statistics-hero-badge { border-radius: 999px; }
.statistics-empty-state > span { border-radius: 50%; transform: none; }
.statistics-empty-state > span i { transform: none; }
.statistics-empty-state h2, .castle-owner-card h2 { font-family: var(--display); font-style: italic; font-weight: 600; }
.castle-owner-mark { border-radius: 50%; }

.public-flash { border-radius: var(--r-control); background: var(--veil-2); box-shadow: none; }

/* подвал */
.site-footer { margin-top: 0; background: rgba(13, 10, 28, .74); border-top: 1px solid var(--rule); }
.footer-grid { padding: 48px 0; }
.footer-grid h3 { font: italic 600 18px var(--display); letter-spacing: 0; color: var(--pearl); }
.footer-grid p { color: var(--lilac); }
.footer-section-links a, .footer-section-links > a { color: var(--lilac); font-size: 15px; }
.footer-section-links a:hover { color: var(--aether); }
.footer-bottom { border-top-color: var(--rule); color: #8f86b0; font-size: 13px; }

/* телефон */
@media (max-width: 1150px) {
    .main-nav a { padding: 0 10px; }
}
@media (max-width: 960px) {
    .le-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .le-content-grid { grid-template-columns: 1fr; }
}
@media (max-width: 780px) {
    .container { width: min(100% - 32px, 1180px); }
    .header-inner { min-height: 64px; }
    .menu-toggle { min-height: 44px; border-radius: 999px; border-color: var(--rule-2); color: var(--pearl); padding: 0 16px; }
    .main-nav { top: 64px; background: var(--void-deep); border-bottom: 1px solid var(--rule); }
    .main-nav a { min-height: 48px; font-size: 16px; }
    .cd-hero { padding: 24px 0 104px; }
    .cd-sphere { width: min(240px, 64vw); }
    .cd-lead { font-size: 17px; }
    .cd-hero .hero-actions { flex-direction: column; align-items: stretch; width: 100%; }
    .le-features { grid-template-columns: 1fr; gap: 24px; }
    .auth-card { padding: 28px 22px; }
}
@media (max-width: 520px) {
    .news-item { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .cd-spin { animation: none; }
    .button { transition: none; }
}
