:root {
    --bs-color-text: #f1f0ec;
    --primary-color: #663af3;
    --secondary-color: #b997ff;
    --background-color: #05060f;
    --background-color-transparent: #05060ff2;
    --background-gradient-primary-color: #05060f;
    --primary-gradient: none;
    --bs-primary: #663af3;
    --primary-color: #663af3;
    --color-plum: #05060f;
    --color-shadow: #05060f;
    --color-bone: #f1f0ec;
    --color-ash: #d0c9c4;
    --color-lavender: #b997ff;
    --color-signal: #00f575;
    --color-edge: #55505b;
    --color-void: #05060f;
    --color-charcoal: #05060f;
    --color-graphite: #05060f;
    --color-iron: #55505b;
    --color-pearl: #d0c9c4;
    --color-chalk: #f1f0ec;
}

::selection {
    background-color: #d8ecf8;
    color: #05060f;
}

::-moz-selection {
    background-color: #d8ecf8;
    color: #05060f;
}

html,
body {
    height: 100%;
    scroll-behavior: smooth;
    font-family: Tektur, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0;
    background: var(--color-plum);
    color: var(--color-bone);
}

h1, h2, h3, .navbar-brand span {
    font-family: Tektur, sans-serif;
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.15;
    color: var(--color-bone);
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.05;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

h3 {
    font-size: 1.625rem;
    margin-bottom: 0.5rem;
}

p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

#app {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #05060f;
    color: #d1e4fa;
}

.site-spot,
.site-grid {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.site-spot {
    background: conic-gradient(from 180deg at 50% -5%, transparent 45%, rgba(124, 145, 182, 0.3) 49%, rgba(124, 145, 182, 0.5) 50%, rgba(124, 145, 182, 0.3) 51%, transparent 55%);
}

.site-grid {
    background-image:
        linear-gradient(rgba(186, 215, 247, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(186, 215, 247, 0.06) 1px, transparent 1px);
    background-size: 88px 88px;
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 78%);
}

#app > header,
#app > main,
#app > footer,
#app > .auth-stage {
    position: relative;
}

#app > header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: #05060f;
}

.content {
    margin-top: 0;
    min-height: calc(100vh - 260px);
}

.content.home-screens {
    margin-top: 0;
}

.home-screens {
    position: relative;
    margin-top: 0;
    min-height: 0;
    overflow: hidden;
    background-color: transparent;
}

.home-screen {
    position: relative;
    min-height: calc(100vh - 84px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    background-repeat: no-repeat;
}

.home-intro {
    justify-content: center;
    padding: 32px 24px 40px;
}

.home-intro-layout {
    display: flex;
    align-items: stretch;
    width: min(1200px, 100%);
    min-height: calc(100vh - 160px);
    margin: 0 auto;
    gap: 24px;
}

.home-intro-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-width: 0;
    text-align: center;
}

.home-screens .hero {
    width: 100%;
    padding-top: 0;
    padding-bottom: 0;
}

.home-news {
    justify-content: center;
    padding: 72px 0 48px;
}

.home-news .container {
    flex: 0 1 auto;
    display: flex;
    flex-direction: column;
}

.home-news .row {
    flex: none;
}

.home-news .card {
    margin-bottom: 0;
}

.home-news .card-body {
    padding: 1rem 1.1rem 1.15rem;
}

.home-news .gradient-news-img {
    max-height: none;
    height: 168px;
}

.home-info {
    width: 100%;
    margin-top: 36px;
}

.home-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.home-info-card {
    position: relative;
    min-height: 132px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 22px 16px;
    overflow: hidden;
    color: #d1e4fa;
    border: 1px solid rgba(186, 215, 247, 0.18);
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(214, 228, 246, 0.2) 0%, rgba(148, 176, 214, 0.06) 34%, rgba(5, 6, 15, 0) 62%),
        rgba(10, 14, 26, 0.94);
    box-shadow:
        inset 0 1px 0 rgba(236, 244, 255, 0.45),
        inset 0 -20px 28px rgba(0, 0, 0, 0.28),
        0 12px 28px rgba(0, 0, 0, 0.38);
    transition: box-shadow 0.2s ease;
}

.home-info-server {
    align-items: center;
    justify-content: center;
    text-align: center;
}

.home-info-server .home-server-label,
.home-info-server .home-server-count {
    margin: 0;
    width: 100%;
    text-align: center;
}

.home-info-server .home-server-label {
    position: absolute;
    top: 18px;
    left: 22px;
    right: 22px;
    width: auto;
}

.home-server-label {
    color: #9da7ba;
    font-size: 13px;
    line-height: 1.3;
}

.home-server-count {
    color: #d8ecf8;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.25;
}

.home-server-figure {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    width: 100%;
    margin-top: 0;
}

.home-server-note {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    width: max-content;
    max-width: none;
    margin: 0;
    color: #c7d3ea;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.35;
    text-align: center;
    white-space: nowrap;
    transform: translateX(-50%);
}

@media (min-width: 992px) {
    .home-server-note {
        font-size: 12px;
    }
}

.home-info-card:hover {
    box-shadow:
        inset 0 1px 0 rgba(236, 244, 255, 0.55),
        inset 0 -20px 28px rgba(0, 0, 0, 0.28),
        0 14px 32px rgba(0, 0, 0, 0.42);
}

@media (max-width: 991.98px) {
    .home-info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.news-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.news-column .card {
    width: 100%;
    margin-bottom: 0;
}

a {
    color: #d1e4fa;
    text-decoration: none;
    text-underline-offset: 4px;
}

a:hover {
    color: #d8ecf8;
}

.navbar {
    position: relative;
    z-index: 1;
    border-bottom: 0;
    color: var(--bs-color-text);
    background-color: #05060f;
    box-shadow: inset 0 -1px 0 rgba(186, 215, 247, 0.12);
}

.navbar-inner {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.navbar-links {
    flex-grow: 1;
}

.navbar-links .navbar-nav {
    justify-content: flex-start;
}

.navbar-end {
    display: flex;
    align-items: center;
    margin-left: auto;
    gap: 0.75rem;
    flex-shrink: 0;
}

.navbar-nav {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    list-style: none;
    margin-bottom: 0;
    font-weight: bold;
    gap: 1rem;
    color: var(--bs-color-text);
    --bs-navbar-active-color: var(--bs-color-text);
}

@media (max-width: 991.98px) {
    .navbar-inner {
        flex-wrap: wrap;
    }

    .navbar-links {
        flex-basis: 100%;
        order: 3;
    }
}

.nav-link {
    color: var(--bs-color-text);
}

/* text gradient */
.nav-link.active {
    color: #d8ecf8;
    box-shadow: inset 0 -1px 0 rgba(186, 215, 247, 0.24);
}

.navbar-nav .nav-link:hover, .navbar-nav .nav-link:focus, .navbar-nav .nav-link:active {
    color: var(--color-chalk);
    text-shadow: none;
}

.navbar-wordmark {
    display: block;
    height: 36px;
    width: auto;
    max-width: min(52vw, 240px);
    object-fit: contain;
    mix-blend-mode: lighten;
}

.navbar-brand, .navbar-brand:hover, .navbar-brand:focus {
    text-decoration: none;
    color: var(--bs-color-text);
}

.navbar-toggler {
    color: var(--bs-color-text);
    border: none;
    font-size: 32px;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--color-chalk);
}

.hamburger.change .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.change .bar:nth-child(2) { opacity: 0; }

.hamburger.change .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: none;
}

.hero {
    position: relative;
    padding-top: 64px;
    padding-bottom: 64px;
    background: transparent;
}

.hero-kicker {
    margin-bottom: 18px;
    color: #9da7ba;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.42em;
}

.hero-title {
    margin-bottom: 20px;
    font-size: clamp(48px, 6vw, 84px);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: #d8ecf8;
    background: none;
    -webkit-text-fill-color: #d8ecf8;
}

.hero-title span {
    display: block;
    margin-top: 0.06em;
    color: #e4d7a8;
    -webkit-text-fill-color: #e4d7a8;
}

.hero-lead {
    max-width: 40rem;
    margin-right: auto;
    margin-bottom: 0;
    margin-left: auto;
    color: #c7d3ea;
    font-size: 28px;
    line-height: 1.45;
}

.hero-note {
    display: block;
    margin-top: 0.55em;
    color: #e4d7a8;
    text-decoration: underline;
    text-decoration-color: rgba(228, 215, 168, 0.55);
    text-underline-offset: 0.18em;
}

.hero-art-col {
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 min(38%, 420px);
    width: min(38%, 420px);
    min-height: 0;
}

.hero-art {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 0;
}

.hero-art img {
    display: block;
    height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: center center;
    filter:
        drop-shadow(1px 0 0 #000)
        drop-shadow(-1px 0 0 #000)
        drop-shadow(0 1px 0 #000)
        drop-shadow(0 -1px 0 #000);
}

@media (max-width: 991.98px) {
    .home-intro-layout {
        flex-direction: column;
        min-height: 0;
    }

    .hero-art-col {
        flex-basis: auto;
        width: 100%;
    }

    .hero-art {
        min-height: 420px;
    }

    .hero-art img {
        height: auto;
        max-height: 70vh;
    }
}

.bg-gradient-bottom {
    background: var(--color-plum);
}

.border {
    border: 1px solid #9ca3af0a !important;
}

.border-top {
    border-top: 1px solid #9ca3af0a !important;
}

.border-bottom {
    border-bottom: 1px solid #9ca3af0a !important;
}

.border-left {
    border-left: 1px solid #9ca3af0a !important;
}

.btn.btn-primary,
.btn.btn-secondary,
.btn.btn-danger {
    border-radius: 999px;
    font-family: Tektur, sans-serif;
    font-weight: 500;
    letter-spacing: 0;
    padding: 12px 24px;
}

.btn.btn-primary {
    --bs-btn-color: #ffffff;
    --bs-btn-bg: #663af3;
    --bs-btn-border-color: #663af3;
    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-bg: #663af3;
    --bs-btn-hover-border-color: #663af3;
    --bs-btn-active-color: #ffffff;
    --bs-btn-active-bg: #663af3;
    --bs-btn-active-border-color: #663af3;
    --bs-btn-disabled-color: #ffffff;
    --bs-btn-disabled-bg: #663af3;
    --bs-btn-disabled-border-color: #663af3;
    background: #663af3;
    color: #ffffff;
    border: 0;
    box-shadow: inset 0 1px 1px rgba(216, 236, 248, 0.2);
}

.btn.btn-primary:hover, .btn.btn-primary:focus, .btn.btn-primary:active {
    background: #663af3;
    color: #ffffff;
    border: 0;
    box-shadow:
        inset 0 1px 1px rgba(216, 236, 248, 0.28),
        0 0 24px rgba(102, 58, 243, 0.35);
    filter: none;
}

.btn.btn-secondary,
.btn.btn-danger {
    display: inline-block;
    background: rgba(186, 214, 247, 0.06);
    color: #ffffff;
    border: 0;
    box-shadow: inset 0 0 0 1px rgba(186, 215, 247, 0.12);
    -webkit-text-fill-color: currentColor;
}

.btn.btn-secondary:hover,
.btn.btn-secondary:focus,
.btn.btn-secondary:active,
.btn.btn-danger:hover,
.btn.btn-danger:focus,
.btn.btn-danger:active {
    background: rgba(186, 214, 247, 0.12);
    color: #ffffff;
    border: 0;
}

.card {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(214, 228, 246, 0.2) 0%, rgba(148, 176, 214, 0.06) 34%, rgba(5, 6, 15, 0) 62%),
        rgba(10, 14, 26, 0.94);
    box-shadow:
        inset 0 1px 0 rgba(236, 244, 255, 0.45),
        inset 0 -20px 28px rgba(0, 0, 0, 0.28),
        0 12px 28px rgba(0, 0, 0, 0.38);
    margin-bottom: 2rem;
    border: 1px solid rgba(186, 215, 247, 0.18);
    border-radius: 28px;
    padding: 0;
}

.card-footer {
    background: transparent;
    color: var(--color-bone);
    border-top-color: rgba(255, 255, 255, 0.18);
}

.card-hover-shadow {
    position: relative;
    transition: background-color 0.2s ease;
}

.card-hover-shadow:hover {
    box-shadow:
        inset 0 1px 0 rgba(236, 244, 255, 0.55),
        inset 0 -20px 28px rgba(0, 0, 0, 0.28),
        0 14px 32px rgba(0, 0, 0, 0.42);
    scale: 1;
}

.dropdown-menu {
    background: rgba(5, 6, 15, 0.97);
    border: 0;
    border-radius: 16px;
    box-shadow:
        inset 0 1px 1px rgba(216, 236, 248, 0.2),
        0 16px 32px rgba(0, 0, 0, 0.3);
}

.dropdown-item {
    color: #d1e4fa;
}

.dropdown-item:hover,
.dropdown-item:focus,
.list-group-item:hover {
    background: rgba(186, 214, 247, 0.08);
    color: #d8ecf8;
    filter: none;
}


[data-bs-theme="dark"] .form-control,
.form-control {
    background: rgba(199, 211, 234, 0.06);
    color: #ffffff;
    border: 0;
    border-radius: 6px;
    box-shadow: inset 0 0 0 1px rgba(186, 215, 247, 0.12);
    filter: none;
}

.form-control:focus {
    background: rgba(199, 211, 234, 0.06);
    color: #ffffff;
    border-color: transparent;
    box-shadow: inset 0 0 0 1px rgba(186, 215, 247, 0.24);
}

.form-control.is-invalid {
    background-image: none;
    border-color: transparent;
    box-shadow: inset 0 0 0 1px rgba(216, 236, 248, 0.45);
}

.invalid-feedback {
    color: #d8ecf8;
}

[data-bs-theme="dark"] .form-check-input {
    border-color: rgba(156, 163, 175, 0.1);
    filter: drop-shadow(0 0 0.75rem rgba(0, 0, 0, 0.1));
}

.avatar {
    box-shadow: 0 1px 4px 0 rgba(31, 29, 29, 0.4);
    width: 32px;
    height: 32px;
}

.text-primary {
    color: var(--color-lavender) !important;
}

.footer a,
footer a {
    box-shadow: none;
}

.site-footer {
    border-top: 0;
    padding: 52px 0 36px;
    background: transparent;
    box-shadow: inset 0 1px 0 rgba(186, 215, 247, 0.12);
}

.site-footer-grid {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 2rem 3rem;
    align-items: center;
}

.site-footer-name {
    margin: 0 0 8px;
    color: #fff;
    font-size: clamp(36px, 4vw, 52px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
}

.site-footer-copy {
    margin: 0;
    color: rgba(241, 240, 236, 0.62);
    font-size: 14px;
    line-height: 1.45;
}

.site-footer-copy a {
    color: inherit;
    font-size: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.site-footer-copy a:hover {
    color: #fff;
}

.site-footer-links {
    display: flex;
    justify-content: center;
    gap: 4.5rem;
}

.site-footer h2 {
    margin: 0 0 16px;
    color: #c7d3ea;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.site-footer ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer a {
    color: #d7d5de;
    font-size: 15px;
    text-decoration: none;
}

.site-footer a:hover {
    color: #fff;
}

.site-footer-top {
    width: 52px;
    height: 52px;
    margin-left: 8px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(186, 215, 247, 0.18);
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(214, 228, 246, 0.2) 0%, rgba(148, 176, 214, 0.06) 34%, rgba(5, 6, 15, 0) 62%),
        rgba(10, 14, 26, 0.94);
    color: #d8ecf8;
    box-shadow:
        inset 0 1px 0 rgba(236, 244, 255, 0.45),
        inset 0 -20px 28px rgba(0, 0, 0, 0.28),
        0 12px 28px rgba(0, 0, 0, 0.38);
    cursor: pointer;
}

.site-footer-top svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.site-footer-top:hover,
.site-footer-top:focus {
    color: #d8ecf8;
    border-color: rgba(186, 215, 247, 0.28);
    background:
        linear-gradient(180deg, rgba(214, 228, 246, 0.2) 0%, rgba(148, 176, 214, 0.06) 34%, rgba(5, 6, 15, 0) 62%),
        rgba(10, 14, 26, 0.94);
    box-shadow:
        inset 0 1px 0 rgba(236, 244, 255, 0.55),
        inset 0 -20px 28px rgba(0, 0, 0, 0.28),
        0 14px 32px rgba(0, 0, 0, 0.42);
}

@media (max-width: 767.98px) {
    .site-footer-grid {
        grid-template-columns: 1fr auto;
    }

    .site-footer-links {
        grid-column: 1 / -1;
        justify-content: flex-start;
        gap: 2.5rem;
    }
}

.text-primary-gradient {
    color: var(--primary-gradient) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

.bg-secondary {
    background-color: var(--secondary-color) !important;
}

/* light and rotate*/
.social-icon-link:hover {
    filter: brightness(1.2) saturate(1.2) hue-rotate(180deg);
    transition: filter 0.5s;
}

.table-dark {
    border-radius: 10%;
}

.playerlist {
    color:var(--text-color-7);
    display:flex;
    align-items: center;
    font-size:var(--mini-button-text-size);
}

.playerlist .online {
    animation: flashgreen ease-in-out 1.5s infinite;
    background: rgb(42, 231, 42);
    border-radius:50px;
    width:11px;
    height:11px;
}

.playerlist .offline {
    animation: flashred ease-in-out 1.5s infinite;
    background: rgb(231, 64, 42);
    border-radius:50px;
    transform:translateY(-1px);
    width:11px;
    height:11px;
}

@keyframes flashgreen {
    0% {
        box-shadow: 0 0 #31c73db0;
    }
    75% {
        box-shadow: 0 0 0 6px rgb(40 167 69 / 0%);
    }
    100% {
        box-shadow: 0 0 rgb(40 167 69 / 0%);
    }
}

.vote-step p {
    margin-bottom: 0.25rem;
}

.blog-text {
    font-size: 1.125rem;
    line-height: 1.6;
    width: 1000px;
    max-width: 90%;
    margin: 3rem auto;
}


/* News cards — uniform height */
.gradient-news-img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    width: 100%;
}

/* Shop payment-method tiles (shop/offers/select, shop/payments/pay) */
.payment-method {
    text-decoration: none;
}

.payment-method .card-body {
    padding: 3rem;
}

.payment-method h3 {
    color: #d8ecf8;
}

.payment-method h4 {
    color: var(--bs-secondary);
}

/* Shop categories/show — centered package cards with bottom-aligned button */
#shop .card-body {
    display: flex;
    flex-direction: column;
    text-align: center;
}

#shop .card-body .card-title {
    color: #d8ecf8;
}

#shop .card-body .btn {
    margin-top: auto;
    width: 100%;
}

.wiki-search {
    margin-top: 4px;
}

.wiki-search > .form-control {
    border-radius: 6px 0 0 6px;
}

.wiki-search > .btn.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    height: auto;
    padding: 0 16px;
    line-height: 1;
    border-radius: 0 6px 6px 0;
    transform: none;
}

/* Auth screens only — AuthKit frost glass. Do not reuse these tokens on the rest of the site. */
body.auth-shell {
    background: #05060f;
    color: #d1e4fa;
    font-family: Tektur, sans-serif;
    letter-spacing: -0.01em;
}

body.auth-shell ::selection {
    background: #d8ecf8;
    color: #05060f;
}

body.auth-shell #app {
    background: #05060f;
    color: #d1e4fa;
    min-height: 100vh;
}

body.auth-shell .auth-stage {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 84px);
    padding: 32px 16px 48px;
    overflow: hidden;
}

body.auth-shell .auth-spot,
body.auth-shell .auth-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

body.auth-shell .auth-spot {
    background: conic-gradient(from 180deg at 50% -5%, transparent 45%, rgba(124, 145, 182, 0.3) 49%, rgba(124, 145, 182, 0.5) 50%, rgba(124, 145, 182, 0.3) 51%, transparent 55%);
}

body.auth-shell .auth-grid {
    background-image:
        linear-gradient(rgba(186, 215, 247, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(186, 215, 247, 0.06) 1px, transparent 1px);
    background-size: 88px 88px;
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 78%);
}

body.auth-shell .auth-mark {
    position: relative;
    z-index: 1;
    margin: 0 0 28px;
    font-family: Tektur, sans-serif;
    font-weight: 500;
    font-size: clamp(40px, 6vw, 48px);
    line-height: 1.16;
    letter-spacing: 0;
    text-decoration: none;
    background-image: linear-gradient(0deg, #d8ecf8 0%, #98c0ef 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

body.auth-shell .auth-alerts,
body.auth-shell .auth-card {
    position: relative;
    z-index: 1;
    width: min(420px, 100%);
}

body.auth-shell .auth-alerts:empty {
    display: none;
}

body.auth-shell .auth-card {
    padding: 32px 24px;
    border-radius: 16px;
    background: rgba(5, 6, 15, 0.97);
    box-shadow:
        inset 0 1px 1px rgba(216, 236, 248, 0.2),
        inset 0 24px 48px rgba(168, 216, 245, 0.06),
        0 16px 32px rgba(0, 0, 0, 0.3);
}

body.auth-shell .auth-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    margin: 0 0 20px;
    font-family: Tektur, sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #c7d3ea;
}

body.auth-shell .auth-eyebrow::before,
body.auth-shell .auth-eyebrow::after {
    content: "";
    height: 1px;
    flex: 1;
    background: linear-gradient(90deg, transparent, rgba(186, 215, 247, 0.12), transparent);
}

body.auth-shell .auth-card-2fa .auth-eyebrow,
body.auth-shell .auth-card-2fa .form-label {
    font-size: 12px;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

body.auth-shell h1,
body.auth-shell h2 {
    margin: 0 0 20px;
    font-family: Tektur, sans-serif;
    font-size: 28px;
    font-weight: 500;
    line-height: 1.14;
    letter-spacing: 0;
    text-align: center;
    color: #d8ecf8;
}

body.auth-shell p,
body.auth-shell .auth-lead {
    margin: 0 0 16px;
    font-family: Tektur, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: #c7d3ea;
}

body.auth-shell .auth-field {
    margin-bottom: 16px;
}

body.auth-shell .form-label {
    margin-bottom: 8px;
    font-family: Tektur, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.43;
    color: #c7d3ea;
}

body.auth-shell .form-control {
    width: 100%;
    padding: 10px 12px;
    border: 0;
    border-radius: 6px;
    background: rgba(199, 211, 234, 0.06);
    color: #ffffff;
    font-family: Tektur, sans-serif;
    font-size: 16px;
    box-shadow: inset 0 0 0 1px rgba(186, 215, 247, 0.12);
}

body.auth-shell .form-control::placeholder {
    color: rgba(199, 211, 234, 0.6);
}

body.auth-shell .form-control:focus {
    background: rgba(199, 211, 234, 0.06);
    color: #ffffff;
    border-color: transparent;
    outline: none;
    box-shadow: inset 0 0 0 1px rgba(186, 215, 247, 0.24);
}

body.auth-shell .form-control.is-invalid {
    background-image: none;
    border-color: transparent;
    box-shadow: inset 0 0 0 1px rgba(216, 236, 248, 0.45);
}

body.auth-shell .invalid-feedback {
    display: block;
    margin-top: 8px;
    color: #d8ecf8;
    font-size: 14px;
}

body.auth-shell .auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

body.auth-shell .form-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    min-height: 0;
    padding-left: 0;
}

body.auth-shell .form-check-input {
    float: none;
    margin: 3px 0 0;
    background-color: rgba(199, 211, 234, 0.06);
    border: 0;
    box-shadow: inset 0 0 0 1px rgba(186, 215, 247, 0.24);
}

body.auth-shell .form-check-input:checked {
    background-color: #663af3;
    border-color: #663af3;
    box-shadow: none;
}

body.auth-shell .form-check-label {
    color: #c7d3ea;
    font-size: 14px;
    line-height: 1.43;
}

body.auth-shell a {
    color: #d1e4fa;
    text-decoration: none;
}

body.auth-shell a:hover {
    color: #d8ecf8;
}

body.auth-shell .btn.btn-primary {
    --bs-btn-color: #ffffff;
    --bs-btn-bg: #663af3;
    --bs-btn-border-color: #663af3;
    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-bg: #663af3;
    --bs-btn-hover-border-color: #663af3;
    --bs-btn-active-color: #ffffff;
    --bs-btn-active-bg: #663af3;
    --bs-btn-active-border-color: #663af3;
    --bs-btn-disabled-color: #ffffff;
    --bs-btn-disabled-bg: #663af3;
    --bs-btn-disabled-border-color: #663af3;
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 12px 24px;
    border: 0;
    border-radius: 999px;
    background: #663af3;
    color: #ffffff;
    font-family: Tektur, sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0;
    box-shadow: inset 0 1px 1px rgba(216, 236, 248, 0.2);
}

body.auth-shell .btn.btn-primary:hover,
body.auth-shell .btn.btn-primary:focus,
body.auth-shell .btn.btn-primary:active {
    background: #663af3;
    color: #ffffff;
    border: 0;
    filter: none;
    box-shadow:
        inset 0 1px 1px rgba(216, 236, 248, 0.28),
        0 0 24px rgba(102, 58, 243, 0.35);
}

body.auth-shell .btn.btn-secondary {
    display: inline-flex;
    width: auto;
    margin-top: 8px;
    padding: 8px 16px;
    border: 0;
    border-radius: 999px;
    background: rgba(186, 214, 247, 0.06);
    color: #ffffff;
    font-family: Tektur, sans-serif;
    font-size: 14px;
    font-weight: 500;
    box-shadow: inset 0 0 0 1px rgba(186, 215, 247, 0.12);
}

body.auth-shell .btn.btn-secondary:hover,
body.auth-shell .btn.btn-secondary:focus,
body.auth-shell .btn.btn-secondary:active {
    background: rgba(186, 214, 247, 0.12);
    color: #ffffff;
    border: 0;
}

body.auth-shell .auth-switch {
    margin: 16px 0 0;
    text-align: center;
    font-size: 14px;
}

body.auth-shell .alert {
    margin-bottom: 16px;
    padding: 12px 14px;
    border: 0;
    border-radius: 6px;
    background: rgba(186, 214, 247, 0.06);
    color: #d1e4fa;
    box-shadow: inset 0 0 0 1px rgba(186, 215, 247, 0.12);
}

body.auth-shell .auth-qr {
    display: flex;
    justify-content: center;
    margin: 8px 0 20px;
}

body.auth-shell .auth-qr svg,
body.auth-shell .auth-qr img {
    width: 180px;
    height: 180px;
    padding: 8px;
    border-radius: 6px;
    background: #ffffff;
}

body.auth-shell .auth-secret {
    font-size: 14px;
    color: #9da7ba;
    word-break: break-all;
}

body.auth-shell .auth-codes-panel {
    margin-bottom: 16px;
    padding: 16px;
    border-radius: 16px;
    background: rgba(186, 214, 247, 0.03);
    box-shadow: inset 0 1px 1px rgba(199, 211, 234, 0.12);
}

body.auth-shell .auth-codes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
    margin: 0 0 12px;
    padding: 0;
    list-style: none;
}

body.auth-shell .auth-codes samp {
    font-family: Tektur, sans-serif;
    font-size: 14px;
    color: #d1e4fa;
}

.profile-hero-row {
    display: flex;
    align-items: center;
    gap: 28px;
}

.profile-hero-avatar {
    flex: 0 0 auto;
    text-align: center;
}

.profile-hero-avatar img {
    width: 112px;
    height: 112px;
    object-fit: cover;
}

.profile-hero-meta {
    flex: 1 1 auto;
    min-width: 0;
}

.profile-hero-meta h2 {
    margin-bottom: 0.75rem;
}

.profile-actions {
    display: flex;
    flex: 0 0 240px;
    flex-direction: column;
    gap: 12px;
}

.profile-action {
    appearance: none;
    width: 100%;
    margin: 0;
    padding: 16px 18px;
    border: 1px solid rgba(186, 215, 247, 0.18);
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(214, 228, 246, 0.2) 0%, rgba(148, 176, 214, 0.06) 34%, rgba(5, 6, 15, 0) 62%),
        rgba(10, 14, 26, 0.94);
    box-shadow:
        inset 0 1px 0 rgba(236, 244, 255, 0.45),
        inset 0 -20px 28px rgba(0, 0, 0, 0.28),
        0 12px 28px rgba(0, 0, 0, 0.38);
    color: #d8ecf8;
    font-family: Tektur, sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
}

.profile-action:hover,
.profile-action:focus {
    color: #d8ecf8;
    box-shadow:
        inset 0 1px 0 rgba(236, 244, 255, 0.55),
        inset 0 -20px 28px rgba(0, 0, 0, 0.28),
        0 14px 32px rgba(0, 0, 0, 0.42);
}

.profile-dialog {
    max-width: 480px;
}

.profile-dialog .modal-content {
    position: relative;
    padding: 28px 28px 22px;
    border: 1px solid rgba(186, 215, 247, 0.18);
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(214, 228, 246, 0.2) 0%, rgba(148, 176, 214, 0.06) 34%, rgba(5, 6, 15, 0) 62%),
        rgba(10, 14, 26, 0.97);
    box-shadow:
        inset 0 1px 0 rgba(236, 244, 255, 0.45),
        inset 0 -20px 28px rgba(0, 0, 0, 0.28),
        0 24px 48px rgba(0, 0, 0, 0.5);
    color: #c7d3ea;
}

.profile-dialog .btn-close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 2;
}

.profile-dialog h1,
.profile-dialog h2,
.profile-dialog .profile-modal-title {
    margin: 0 36px 10px 0;
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-align: left;
    color: #d8ecf8;
}

.profile-dialog .profile-modal-lead,
.profile-dialog .auth-lead {
    margin: 0 0 18px;
    font-family: Tektur, sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.45;
    text-align: left;
    color: #9da7ba;
}

.profile-dialog .auth-card {
    width: 100%;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.profile-dialog .auth-eyebrow {
    display: none;
}

.profile-dialog .auth-field {
    margin-bottom: 16px;
}

.profile-dialog .auth-qr {
    display: flex;
    justify-content: center;
    margin: 8px 0 18px;
}

.profile-dialog .auth-qr svg,
.profile-dialog .auth-qr img {
    width: 180px;
    height: 180px;
    padding: 8px;
    border-radius: 6px;
    background: #ffffff;
}

.profile-dialog .auth-secret {
    margin-bottom: 16px;
    font-size: 14px;
    color: #9da7ba;
    word-break: break-all;
}

.profile-dialog .auth-codes-panel {
    margin-bottom: 16px;
    padding: 16px;
    border-radius: 16px;
    background: rgba(186, 214, 247, 0.03);
    box-shadow: inset 0 1px 1px rgba(199, 211, 234, 0.12);
}

.profile-dialog .auth-codes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
    margin: 0 0 12px;
    padding: 0;
    list-style: none;
}

.profile-dialog .auth-codes samp {
    font-family: Tektur, sans-serif;
    font-size: 14px;
    color: #d1e4fa;
}

.profile-dialog .auth-switch {
    margin: 14px 0 0;
    text-align: center;
    font-size: 14px;
}

.profile-dialog .auth-switch a {
    color: #9da7ba;
    text-decoration: none;
}

.profile-dialog .btn.btn-primary,
.profile-dialog .btn.btn-secondary {
    width: 100%;
}

.profile-modal-cancel {
    display: block;
    width: 100%;
    margin-top: 12px;
    padding: 8px;
    border: 0;
    background: transparent;
    color: #9da7ba;
    font-family: Tektur, sans-serif;
    font-size: 14px;
    text-align: center;
}

.profile-modal-cancel:hover,
.profile-modal-cancel:focus {
    color: #d8ecf8;
}

@media (max-width: 767px) {
    .profile-hero-row {
        flex-wrap: wrap;
    }

    .profile-actions {
        flex: 1 1 100%;
    }
}

@media (max-width: 480px) {
    body.auth-shell .auth-stage {
        padding: 32px 16px;
        justify-content: flex-start;
    }

    body.auth-shell .auth-card {
        padding: 24px 16px;
    }

    body.auth-shell .auth-row {
        flex-direction: column;
        align-items: flex-start;
    }

    body.auth-shell .auth-codes {
        grid-template-columns: 1fr;
    }
}


/* Shop package cards — fixed small size so the image keeps its own resolution */
#shop .shop-package-image {
    display: block;
    padding: 12px 12px 0;
}

#shop .row > [class*="col-"] {
    flex: 0 0 340px;
    width: 340px;
    max-width: 100%;
}

#shop .shop-package-image .card-img-top {
    width: 100%;
    height: 190px;
    object-fit: contain;
    border-radius: 6px;
}

#shop .card-body {
    padding: 12px;
}

#shop .card-body .card-title {
    font-size: 18px;
    white-space: nowrap;
    margin-bottom: 4px;
}

#shop .card-body .card-subtitle {
    font-size: 17px;
    margin-bottom: 12px;
}

#itemModal .shop-package-price {
    font-size: 17px;
    line-height: 1.35;
}

#itemModal .shop-price-old,
#shop .card-body .shop-price-old {
    display: block;
    color: #db4d4d;
    text-decoration: line-through;
    font-size: 15px;
}

#itemModal .shop-price,
#shop .card-body .shop-price {
    display: block;
}

.profile-plugin-card form > .btn.btn-primary {
    border-radius: 28px;
    padding: 16px 22px;
    border: 1px solid rgba(176, 150, 255, 0.35);
    background:
        linear-gradient(180deg, #8d6bff 0%, #663af3 40%, #3a246e 100%);
    box-shadow:
        inset 0 1px 0 rgba(236, 244, 255, 0.45),
        inset 0 -18px 24px rgba(0, 0, 0, 0.32),
        0 12px 28px rgba(0, 0, 0, 0.38);
    color: #ffffff;
    font-size: 15px;
    line-height: 1.2;
}

.profile-plugin-card form > .btn.btn-primary:hover,
.profile-plugin-card form > .btn.btn-primary:focus,
.profile-plugin-card form > .btn.btn-primary:active {
    background:
        linear-gradient(180deg, #9a7cff 0%, #7448f5 40%, #46307f 100%);
    color: #ffffff;
    border-color: rgba(196, 176, 255, 0.5);
    box-shadow:
        inset 0 1px 0 rgba(236, 244, 255, 0.55),
        inset 0 -18px 24px rgba(0, 0, 0, 0.32),
        0 14px 32px rgba(0, 0, 0, 0.42);
    filter: none;
}

.shop-nav .btn.btn-primary,
#shop .card-body .btn.btn-primary,
#itemModal .btn.btn-primary,
.cart-tools .btn.btn-primary,
.cart-checkout .btn.btn-primary {
    border-radius: 28px;
    padding: 16px 22px;
    border: 1px solid rgba(176, 150, 255, 0.35);
    background: linear-gradient(180deg, #8d6bff 0%, #663af3 40%, #3a246e 100%);
    box-shadow:
        inset 0 1px 0 rgba(236, 244, 255, 0.45),
        inset 0 -18px 24px rgba(0, 0, 0, 0.32),
        0 12px 28px rgba(0, 0, 0, 0.38);
    color: #ffffff;
    font-size: 15px;
    line-height: 1.2;
}

.shop-nav .btn.btn-primary:hover,
.shop-nav .btn.btn-primary:focus,
.shop-nav .btn.btn-primary:active,
#shop .card-body .btn.btn-primary:hover,
#shop .card-body .btn.btn-primary:focus,
#shop .card-body .btn.btn-primary:active,
#itemModal .btn.btn-primary:hover,
#itemModal .btn.btn-primary:focus,
#itemModal .btn.btn-primary:active,
.cart-tools .btn.btn-primary:hover,
.cart-tools .btn.btn-primary:focus,
.cart-tools .btn.btn-primary:active,
.cart-checkout .btn.btn-primary:hover,
.cart-checkout .btn.btn-primary:focus,
.cart-checkout .btn.btn-primary:active {
    background: linear-gradient(180deg, #9a7cff 0%, #7448f5 40%, #46307f 100%);
    color: #ffffff;
    border-color: rgba(196, 176, 255, 0.5);
    box-shadow:
        inset 0 1px 0 rgba(236, 244, 255, 0.55),
        inset 0 -18px 24px rgba(0, 0, 0, 0.32),
        0 14px 32px rgba(0, 0, 0, 0.42);
    filter: none;
}

.cart-actions > .btn.btn-secondary,
.cart-tools .btn.btn-danger {
    appearance: none;
    padding: 16px 18px;
    border: 1px solid rgba(186, 215, 247, 0.18);
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(214, 228, 246, 0.2) 0%, rgba(148, 176, 214, 0.06) 34%, rgba(5, 6, 15, 0) 62%),
        rgba(10, 14, 26, 0.94);
    box-shadow:
        inset 0 1px 0 rgba(236, 244, 255, 0.45),
        inset 0 -20px 28px rgba(0, 0, 0, 0.28),
        0 12px 28px rgba(0, 0, 0, 0.38);
    color: #d8ecf8;
    font-size: 15px;
    line-height: 1.2;
    -webkit-text-fill-color: #d8ecf8;
}

.cart-actions > .btn.btn-secondary:hover,
.cart-actions > .btn.btn-secondary:focus,
.cart-actions > .btn.btn-secondary:active,
.cart-tools .btn.btn-danger:hover,
.cart-tools .btn.btn-danger:focus,
.cart-tools .btn.btn-danger:active {
    color: #d8ecf8;
    background:
        linear-gradient(180deg, rgba(214, 228, 246, 0.2) 0%, rgba(148, 176, 214, 0.06) 34%, rgba(5, 6, 15, 0) 62%),
        rgba(10, 14, 26, 0.94);
    border-color: rgba(186, 215, 247, 0.28);
    box-shadow:
        inset 0 1px 0 rgba(236, 244, 255, 0.55),
        inset 0 -20px 28px rgba(0, 0, 0, 0.28),
        0 14px 32px rgba(0, 0, 0, 0.42);
    -webkit-text-fill-color: #d8ecf8;
}
/* FreakLand: центрированные заголовки внутренних страниц (как /bans) */
.page-inner .page-title{text-align:center;font-size:40px;font-weight:700;margin:10px 0 48px}
.page-inner .page-title + p{text-align:center;color:#d0c9c4;margin-bottom:48px}
.page-inner .page-title:has(+ p){margin-bottom:6px}
/* Вики: поиск-таблетка под заголовком */
.wiki-head{display:flex;flex-direction:column;align-items:center;margin-bottom:0;padding-bottom:0}
.wiki-head>[class*="col-"]{width:auto;max-width:100%;flex:0 0 auto}
.page-inner .wiki-head .page-title{margin-bottom:0}
.wiki-head form{width:380px;max-width:100%;margin-top:12px;margin-bottom:48px!important}
.wiki-head .input-group{position:relative;display:block}
.wiki-head .form-control{width:100%;border-radius:999px!important;padding:10px 50px 10px 18px;color:#f1f0ec;background:linear-gradient(180deg,rgba(214,228,246,.2) 0%,rgba(148,176,214,.06) 34%,rgba(5,6,15,0) 62%),rgba(10,14,26,.94);border:1px solid rgba(186,215,247,.18);box-shadow:inset 0 1px 0 rgba(236,244,255,.45),inset 0 -10px 16px rgba(0,0,0,.28),0 8px 20px rgba(0,0,0,.32)}
.wiki-head .form-control::placeholder{color:#d0c9c4}
.wiki-head .form-control:focus{border-color:#663af3;outline:none;box-shadow:inset 0 1px 0 rgba(236,244,255,.45),0 0 0 3px rgba(102,58,243,.25)}
.wiki-head .wiki-search > .btn.btn-primary{position:absolute;right:5px;top:50%;transform:translateY(-50%);z-index:5;width:36px;height:36px;padding:0;border-radius:999px!important;border:0;background:#663af3;color:#fff;display:flex;align-items:center;justify-content:center}
.wiki-head .wiki-search > .btn.btn-primary:hover{background:#7448f5}
/* FreakLand v3: заголовки страниц без переопределения шаблона (ядро, магазин) — по route-классу */
.page-inner:is(.route-pages-show,.route-profile-delete-index,.route-shop-cart-index,.route-shop-profile,.route-shop-offers-select,.route-shop-offers-buy,.route-shop-payments-payment,.route-shop-packages-buy-options) main.content > h1,
.page-inner.route-notifications-index main.content h1{text-align:center;font-size:40px;font-weight:700;margin:10px 0 48px}
/* Лаунчер: больше места под заголовком, текст -> карточки как текст Zip -> кнопка (24px) */
.page-inner .page-title:has(+ .launcher-lead){margin-bottom:24px}
.page-inner .page-title + .launcher-lead{margin-bottom:24px;color:inherit}

.launcher-updates {
    max-width: 100%;
    margin-top: 8px;
}

.launcher-updates .card {
    margin-bottom: 0;
}

.launcher-updates .card-body {
    padding: 28px 32px 24px;
}

.launcher-updates h2 {
    margin: 0;
    font-family: Tektur, sans-serif;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.2;
    color: #f1f0ec;
}

.launcher-updates-latest {
    margin: 8px 0 22px;
    color: #d0c9c4;
    font-size: 14px;
}

.launcher-updates-latest time {
    color: #b997ff;
}

.launcher-updates-item + .launcher-updates-item,
.launcher-updates-group + .launcher-updates-group {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(186, 215, 247, 0.14);
}

.launcher-updates-line {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px 16px;
    max-width: 100%;
}

.launcher-updates-name,
.launcher-updates-versions,
.launcher-updates-summary {
    margin: 0;
    overflow-wrap: anywhere;
}

.launcher-updates-name {
    color: #f1f0ec;
    font-family: Tektur, sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
}

.launcher-updates-versions {
    margin-left: auto;
    color: #d0c9c4;
    font-size: 15px;
    white-space: normal;
}

.launcher-updates-to {
    color: #b997ff;
    font-weight: 600;
}

.launcher-updates-summary {
    margin-top: 4px;
    color: #d0c9c4;
    font-size: 14px;
    line-height: 1.45;
}

.launcher-updates-group h3 {
    margin: 0 0 12px;
    color: #b997ff;
    font-family: Tektur, sans-serif;
    font-size: 14px;
    font-weight: 500;
}

.launcher-updates:has(.launcher-updates-history[open]) .launcher-updates-preview {
    display: none;
}

.launcher-updates-history {
    display: flex;
    flex-direction: column;
}

.launcher-updates-history > summary {
    width: fit-content;
    max-width: 100%;
    margin-top: 22px;
    padding: 10px 18px;
    border-radius: 999px;
    background: #663af3;
    color: #f1f0ec;
    font-family: Tektur, sans-serif;
    font-size: 15px;
    line-height: 1.2;
    cursor: pointer;
    list-style: none;
    order: 2;
}

.launcher-updates-history > summary::-webkit-details-marker {
    display: none;
}

.launcher-updates-history > summary:hover,
.launcher-updates-history > summary:focus {
    background: #7448f5;
}

.launcher-updates-history[open] .launcher-updates-when-closed,
.launcher-updates-history:not([open]) .launcher-updates-when-open {
    display: none;
}

.launcher-updates-groups {
    order: 1;
    margin-top: 4px;
}

.launcher-updates-download {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    margin-top: 10px;
}

.launcher-updates-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: 1px solid rgba(185, 151, 255, 0.6);
    border-radius: 999px;
    background: rgba(185, 151, 255, 0.08);
    color: #b997ff;
    font-family: Tektur, sans-serif;
    font-size: 14px;
    line-height: 1.2;
    text-decoration: none;
}

.launcher-updates-btn:hover,
.launcher-updates-btn:focus {
    border-color: #663af3;
    background: #663af3;
    color: #f1f0ec;
}

.launcher-updates-hint {
    color: #d0c9c4;
    font-size: 13px;
}

@media (max-width: 575.98px) {
    .launcher-updates .card-body {
        padding: 20px 16px 18px;
    }

    .launcher-updates-versions {
        margin-left: 0;
    }
}

/* ---- Wiki step cards (Старт / Лаунчер и другие гайды) ---- */
#wiki .wiki-shot {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 1.1rem 0 0.65rem;
    border: 1px solid rgba(186, 215, 247, 0.16);
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.38);
}

#wiki .wiki-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 0 1.35rem;
    padding: 14px 14px 12px;
    border-radius: 16px;
    border: 1px solid rgba(185, 151, 255, 0.38);
    background:
        linear-gradient(180deg, rgba(214, 228, 246, 0.10) 0%, rgba(148, 176, 214, 0.04) 40%, rgba(5, 6, 15, 0) 70%),
        rgba(10, 14, 26, 0.92);
    box-shadow: inset 0 1px 0 rgba(236, 244, 255, 0.22), 0 10px 24px rgba(0, 0, 0, 0.28);
}

#wiki .wiki-step {
    display: grid;
    grid-template-columns: 36px 1fr;
    column-gap: 12px;
    align-items: start;
}

#wiki .wiki-step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: Tektur, sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    background: radial-gradient(circle at 35% 30%, #9d80ff, #663af3 60%, #4a2bb0);
    box-shadow: 0 0 0 2px #05060f, 0 0 0 3.5px rgba(185, 151, 255, 0.85), 0 4px 12px rgba(102, 58, 243, 0.55);
    flex-shrink: 0;
}

#wiki .wiki-step b {
    display: block;
    font-family: Tektur, sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #f1f0ec;
    line-height: 1.3;
    margin-bottom: 2px;
}

#wiki .wiki-step p {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    color: #d0c9c4;
}

#wiki .wiki-note {
    margin: -0.5rem 0 1.2rem;
    font-size: 13px;
    color: #8d9ab3;
}

@media (max-width: 575.98px) {
    #wiki .wiki-steps {
        padding: 12px 12px 10px;
        gap: 12px;
    }

    #wiki .wiki-step {
        grid-template-columns: 32px 1fr;
        column-gap: 10px;
    }

    #wiki .wiki-step-num {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    #wiki .wiki-step b {
        font-size: 14px;
    }

    #wiki .wiki-step p {
        font-size: 13px;
    }
}
