:root {
    --bg: #02050a;
    --bg-deep: #050810;
    --bg-soft: #0b111c;
    --panel: rgba(9, 13, 22, 0.76);
    --panel-strong: rgba(12, 17, 28, 0.92);
    --panel-glass: rgba(12, 18, 30, 0.64);
    --line: rgba(226, 190, 105, 0.18);
    --line-strong: rgba(240, 207, 122, 0.42);
    --text: #f4efe6;
    --muted: rgba(226, 218, 205, 0.72);
    --muted-soft: rgba(226, 218, 205, 0.48);
    --gold: #d8aa45;
    --gold-light: #f4d784;
    --gold-dark: #7a5520;
    --blue: #6aa7d8;
    --blue-soft: rgba(78, 139, 190, 0.22);
    --red: #df5545;
    --green: #55d478;
    --shadow: 0 28px 90px rgba(0, 0, 0, 0.48);
    --shadow-soft: 0 18px 48px rgba(0, 0, 0, 0.32);
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background: var(--bg);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

::selection {
    color: #050810;
    background: var(--gold-light);
}

a {
    color: inherit;
    text-decoration: none;
}

img,
svg {
    max-width: 100%;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.page-bg {
    position: fixed;
    inset: 0;
    z-index: -3;
    background:
        radial-gradient(circle at 50% 14%, rgba(76, 92, 121, 0.34), transparent 30%),
        radial-gradient(circle at 12% 28%, rgba(34, 54, 84, 0.42), transparent 34%),
        radial-gradient(circle at 82% 18%, rgba(99, 62, 40, 0.22), transparent 32%),
        linear-gradient(180deg, #070c15 0%, #02050a 52%, #000 100%);
}

.page-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.014) 1px, transparent 1px),
        radial-gradient(circle at 50% 38%, transparent 0 20%, rgba(0, 0, 0, 0.18) 48%, rgba(0, 0, 0, 0.76) 100%);
    background-size: 54px 54px, 54px 54px, auto;
    opacity: 0.72;
}

.page-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgba(1, 3, 8, 0.34), rgba(1, 3, 8, 0.66) 58%, rgba(0, 0, 0, 0.92)),
        radial-gradient(ellipse at center, transparent 0 36%, rgba(0, 0, 0, 0.72) 100%);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    width: min(var(--container), calc(100% - 36px));
    margin: 18px auto 0;
    padding: 13px 15px;
    border: 1px solid rgba(240, 207, 122, 0.18);
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(11, 16, 26, 0.92), rgba(4, 7, 12, 0.86));
    box-shadow: 0 18px 56px rgba(0, 0, 0, 0.44);
    backdrop-filter: blur(18px);
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled {
    border-color: rgba(240, 207, 122, 0.32);
    background:
        linear-gradient(180deg, rgba(7, 11, 19, 0.98), rgba(2, 4, 8, 0.94));
    box-shadow: 0 18px 70px rgba(0, 0, 0, 0.58);
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    min-width: max-content;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.logo-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 230, 154, 0.54);
    border-radius: 50%;
    color: #090b10;
    background:
        radial-gradient(circle at 35% 28%, #fff1ba, transparent 34%),
        linear-gradient(135deg, var(--gold-light), var(--gold) 58%, #9f6b22);
    box-shadow:
        0 0 0 4px rgba(216, 170, 69, 0.08),
        0 0 32px rgba(216, 170, 69, 0.34);
}

.logo-text {
    font-size: 1.05rem;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--muted);
    font-size: 0.9rem;
}

.main-nav a,
.header-link {
    padding: 10px 13px;
    border-radius: 999px;
    transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.main-nav a:hover,
.header-link:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-1px);
}

.header-link {
    color: var(--gold-light);
    border: 1px solid rgba(240, 207, 122, 0.26);
    background: rgba(216, 170, 69, 0.08);
}

main {
    width: min(var(--container), calc(100% - 36px));
    margin: 0 auto;
}

.section {
    padding: 94px 0;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.28fr) minmax(310px, 0.72fr);
    align-items: center;
    gap: 34px;
    min-height: calc(100vh - 88px);
    padding-top: 78px;
}

.hero-content {
    position: relative;
    padding: 50px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(135deg, rgba(13, 18, 30, 0.88), rgba(5, 8, 14, 0.82)),
        radial-gradient(circle at top left, rgba(216, 170, 69, 0.18), transparent 42%),
        radial-gradient(circle at 78% 12%, rgba(92, 126, 165, 0.18), transparent 38%);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.hero-content::before {
    content: "";
    position: absolute;
    inset: 1px;
    pointer-events: none;
    border-radius: calc(var(--radius-lg) - 1px);
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.06), transparent 34%),
        radial-gradient(circle at 70% 110%, rgba(216, 170, 69, 0.11), transparent 38%);
}

.hero-content::after {
    content: "";
    position: absolute;
    right: -110px;
    bottom: -150px;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: rgba(216, 170, 69, 0.12);
    filter: blur(18px);
}

.hero-content > * {
    position: relative;
    z-index: 2;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--gold-light);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 10px;
    font-family: Cinzel, Inter, serif;
    font-size: clamp(4.1rem, 9vw, 8.4rem);
    line-height: 0.86;
    letter-spacing: -0.08em;
    text-transform: uppercase;
    text-shadow: 0 18px 60px rgba(0, 0, 0, 0.52);
}

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

.status-side {
    display: grid;
    gap: 18px;
    align-content: center;
}

.status-logo-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 126px;
    padding: 0 18px;
}

.status-logo {
    display: block;
    width: min(100%, 340px);
    height: auto;
    object-fit: contain;
    filter:
        drop-shadow(0 24px 46px rgba(0, 0, 0, 0.72))
        drop-shadow(0 0 28px rgba(95, 151, 218, 0.2));
}

.hero h2 {
    max-width: 760px;
    margin-bottom: 22px;
    color: var(--gold-light);
    font-size: clamp(1.65rem, 3.7vw, 3rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-text {
    max-width: 730px;
    margin-bottom: 30px;
    color: var(--muted);
    font-size: 1.08rem;
}

.hero-actions,
.cabinet-actions,
.download-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 20px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 900;
    letter-spacing: 0.01em;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease, opacity 0.18s ease;
}

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

.btn-primary {
    color: #080a0f;
    background:
        radial-gradient(circle at 32% 20%, #fff2bd, transparent 32%),
        linear-gradient(135deg, var(--gold-light), var(--gold) 62%, #a87325);
    box-shadow: 0 18px 40px rgba(216, 170, 69, 0.28);
}

.btn-primary:hover {
    box-shadow: 0 24px 54px rgba(216, 170, 69, 0.38);
}

.btn-secondary {
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
}

.btn-ghost {
    color: var(--gold-light);
    border-color: rgba(240, 207, 122, 0.22);
    background: rgba(216, 170, 69, 0.06);
}

.btn.is-disabled,
a.is-disabled {
    opacity: 0.62;
    pointer-events: none;
}

.telegram-link,
.btn-telegram,
.telegram-card-link,
.community-card {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.telegram-icon,
.community-icon {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, #42b8f1, #1b86c7);
    box-shadow: 0 10px 28px rgba(25, 136, 205, 0.34);
    font-size: 0.9rem;
    line-height: 1;
}

.btn-telegram {
    color: #f5fbff;
    border-color: rgba(75, 178, 235, 0.34);
    background: linear-gradient(135deg, rgba(66, 184, 241, 0.22), rgba(27, 134, 199, 0.14));
}

.btn-telegram:hover {
    box-shadow: 0 20px 44px rgba(27, 134, 199, 0.24);
}

.hero-points {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 11px;
    margin-top: 24px;
}

.hero-points span {
    display: grid;
    gap: 5px;
    min-height: 84px;
    padding: 14px;
    border: 1px solid rgba(240, 207, 122, 0.18);
    border-radius: 16px;
    color: var(--muted);
    background: rgba(0, 0, 0, 0.22);
}

.hero-points strong {
    display: block;
    color: var(--gold-light);
    font-size: 1.34rem;
    line-height: 1;
}

.launch-card {
    display: grid;
    gap: 2px;
    width: min(100%, 420px);
    margin-top: 28px;
    padding: 18px 20px;
    border: 1px solid rgba(240, 207, 122, 0.22);
    border-radius: var(--radius-md);
    background: rgba(0, 0, 0, 0.24);
}

.launch-label,
.launch-card small {
    color: var(--muted-soft);
}

.launch-card strong {
    color: var(--text);
    font-size: clamp(1.35rem, 3.6vw, 1.95rem);
    line-height: 1.15;
}

.launch-card.is-open {
    border-color: rgba(85, 212, 120, 0.36);
    background: rgba(85, 212, 120, 0.08);
}

.prelaunch-note,
.status-start-note {
    display: grid;
    gap: 6px;
    margin-top: 14px;
    padding: 16px 18px;
    border: 1px solid rgba(106, 167, 216, 0.26);
    border-radius: var(--radius-md);
    color: #e1f3ff;
    background:
        radial-gradient(circle at top left, rgba(106, 167, 216, 0.16), transparent 48%),
        rgba(0, 0, 0, 0.2);
}

.prelaunch-note strong,
.status-start-note strong {
    color: #fff;
}

.prelaunch-note span,
.status-start-note span {
    color: rgba(225, 243, 255, 0.74);
    font-size: 0.94rem;
}

.status-start-note {
    margin: 0 0 16px;
}

.status-card,
.table-card,
.rate-card,
.feature-grid article,
.notice-grid article,
.starter-grid article,
.steps article,
.service-list,
.cabinet-panel,
.wiki-card,
.wiki-sidebar,
.wiki-content,
.rating-card,
.castle-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background:
        linear-gradient(180deg, rgba(14, 20, 33, 0.82), rgba(6, 9, 16, 0.76));
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(12px);
}

.status-card {
    padding: 26px;
}

.status-card h3 {
    margin-bottom: 22px;
    font-size: 1.3rem;
}

.status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.075);
    color: var(--muted);
}

.status-row:last-of-type {
    border-bottom: 0;
}

.status-row em {
    margin-left: 6px;
    color: var(--muted-soft);
    font-size: 0.76rem;
    font-style: normal;
    text-transform: uppercase;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 92px;
    justify-content: center;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 0.78rem;
    text-transform: uppercase;
}

.status-pill::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 16px currentColor;
}

.is-online {
    color: var(--green);
    background: rgba(85, 212, 120, 0.1);
    border: 1px solid rgba(85, 212, 120, 0.26);
}

.is-offline {
    color: var(--red);
    background: rgba(223, 85, 69, 0.1);
    border: 1px solid rgba(223, 85, 69, 0.26);
}

.status-note {
    margin: 18px 0 0;
    color: var(--muted-soft);
    font-size: 0.9rem;
}

.telegram-card-link {
    width: 100%;
    margin-top: 18px;
    padding: 14px 16px;
    border: 1px solid rgba(75, 178, 235, 0.28);
    border-radius: var(--radius-md);
    background: rgba(75, 178, 235, 0.08);
    align-items: flex-start;
    line-height: 1.35;
}

.telegram-card-text {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.telegram-card-link strong,
.telegram-card-link small {
    display: block;
}

.telegram-card-link strong {
    color: #fff;
    line-height: 1.15;
}

.telegram-card-link small {
    color: rgba(225, 243, 255, 0.72);
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
    align-items: center;
    gap: 36px;
}

.split-section.reverse {
    grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1.15fr);
}

.split-section.reverse > div:first-child {
    order: 2;
}

.split-section.reverse > div:last-child {
    order: 1;
}

.section-heading {
    max-width: 780px;
    margin-bottom: 28px;
}

.section h2,
.section-heading h2,
.rating-head h1,
.castle-head h1 {
    margin-bottom: 14px;
    font-size: clamp(2rem, 4vw, 3.35rem);
    line-height: 1.04;
    letter-spacing: -0.045em;
}

.section p,
.section-heading p {
    color: var(--muted);
    font-size: 1.03rem;
}

.feature-grid,
.rate-grid,
.notice-grid,
.starter-grid,
.steps,
.wiki-card-grid,
.wiki-block-grid,
.rating-grid,
.castle-grid {
    display: grid;
    gap: 14px;
}

.feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-grid article,
.rate-card,
.notice-grid article,
.starter-grid article,
.steps article {
    padding: 22px;
}

.feature-grid span,
.rate-card span,
.notice-grid span,
.starter-grid span {
    display: block;
    color: var(--muted-soft);
}

.feature-grid strong,
.rate-card strong,
.notice-grid strong,
.starter-grid strong {
    display: block;
    color: var(--text);
}

.feature-grid strong {
    margin-top: 8px;
    font-size: 1.15rem;
}

.rate-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.rate-card {
    min-height: 128px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.rate-card strong {
    color: var(--gold-light);
    font-size: clamp(1.6rem, 3vw, 2.35rem);
    line-height: 1;
}

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

.notice-grid article {
    min-height: 150px;
}

.notice-grid article:nth-child(1),
.notice-grid article:nth-child(4) {
    background:
        radial-gradient(circle at top left, rgba(216, 170, 69, 0.14), transparent 46%),
        linear-gradient(180deg, rgba(14, 20, 33, 0.88), rgba(6, 9, 16, 0.76));
}

.notice-grid strong {
    margin-bottom: 10px;
    color: var(--gold-light);
    font-size: 1.18rem;
}

.clean-list,
.service-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.clean-list {
    display: grid;
    gap: 10px;
    margin-top: 22px;
    color: var(--muted);
}

.service-list {
    display: grid;
    gap: 14px;
    padding: 26px;
    color: var(--muted);
}

.clean-list li,
.service-list li {
    position: relative;
    padding-left: 26px;
}

.clean-list li::before,
.service-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 18px rgba(216, 170, 69, 0.34);
}

.service-list li strong {
    color: var(--gold-light);
}

.table-card {
    padding: 18px;
    overflow: hidden;
}

table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: var(--radius-sm);
}

th,
td {
    padding: 15px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.075);
    text-align: left;
}

th {
    color: #080a0f;
    background:
        radial-gradient(circle at 32% 20%, #fff2bd, transparent 32%),
        linear-gradient(135deg, var(--gold-light), var(--gold));
    font-size: 0.9rem;
}

td {
    color: var(--muted);
    background: rgba(255, 255, 255, 0.025);
}

tbody tr:last-child td {
    border-bottom: 0;
}

.table-card p {
    margin: 16px 4px 0;
    color: var(--muted-soft);
    font-size: 0.92rem;
}

.starter-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.starter-grid article {
    display: grid;
    gap: 8px;
    min-height: 122px;
    align-content: center;
    text-align: center;
}

.starter-grid strong {
    color: var(--gold-light);
    font-size: 1.55rem;
    line-height: 1.05;
}

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

.steps article {
    min-height: 220px;
}

.steps article > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-bottom: 22px;
    border-radius: 50%;
    color: #080a0f;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    font-weight: 900;
}

.steps h3 {
    margin-bottom: 10px;
    font-size: 1.35rem;
}

.steps p {
    color: var(--muted);
}

.cabinet-showcase {
    display: grid;
    grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
    gap: 18px;
    align-items: stretch;
}

.cabinet-panel {
    min-height: 100%;
    padding: 22px;
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at top left, rgba(240, 207, 122, 0.15), transparent 42%),
        linear-gradient(180deg, rgba(14, 20, 33, 0.92), rgba(6, 9, 16, 0.82));
}

.cabinet-topbar {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--muted);
}

.cabinet-topbar strong {
    color: var(--gold-light);
}

.cabinet-menu-preview {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.cabinet-menu-preview span {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 14px;
    color: var(--text);
    background: rgba(0, 0, 0, 0.2);
}

.cabinet-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.wiki-card {
    min-height: 164px;
    padding: 22px;
    background:
        radial-gradient(circle at top left, rgba(216, 170, 69, 0.11), transparent 44%),
        var(--panel);
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.wiki-card:hover {
    transform: translateY(-3px);
    border-color: var(--line-strong);
    background:
        radial-gradient(circle at top left, rgba(240, 207, 122, 0.18), transparent 44%),
        var(--panel-strong);
}

.wiki-card strong {
    display: block;
    margin-bottom: 10px;
    color: var(--gold-light);
    font-size: 1.18rem;
}

.wiki-card span {
    display: block;
    color: var(--muted);
}

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

.wiki-sidebar {
    position: sticky;
    top: 106px;
    display: grid;
    gap: 8px;
    padding: 18px;
}

.wiki-sidebar strong {
    display: block;
    margin-bottom: 8px;
    color: var(--gold-light);
    font-size: 1.1rem;
}

.wiki-sidebar a {
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--muted);
    transition: background 0.18s ease, color 0.18s ease;
}

.wiki-sidebar a:hover,
.wiki-sidebar a.is-active {
    color: var(--text);
    background: rgba(240, 207, 122, 0.09);
}

.wiki-content {
    padding: 34px;
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at top right, rgba(216, 170, 69, 0.12), transparent 45%),
        var(--panel);
}

.wiki-content h1 {
    margin-bottom: 18px;
    font-size: clamp(2.8rem, 7vw, 5.6rem);
    line-height: 0.92;
    letter-spacing: -0.06em;
}

.wiki-lead {
    max-width: 860px;
    color: var(--muted);
    font-size: 1.12rem;
}

.wiki-block-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 28px;
}

.wiki-block-grid article {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(0, 0, 0, 0.18);
}

.wiki-block-grid strong {
    display: block;
    margin-bottom: 8px;
    color: var(--gold-light);
    font-size: 1.12rem;
}

.wiki-block-grid p {
    margin: 0;
    color: var(--muted);
}

.wiki-note {
    margin-top: 22px;
    padding: 18px 20px;
    border: 1px solid rgba(240, 207, 122, 0.2);
    border-radius: var(--radius-md);
    color: var(--gold-light);
    background: rgba(216, 170, 69, 0.08);
}

.wiki-note a {
    color: #8bd7ff;
    font-weight: 800;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.wiki-card-grid-page {
    margin-top: 28px;
}

.community-card {
    max-width: 560px;
    padding: 22px;
    border: 1px solid rgba(75, 178, 235, 0.28);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at top left, rgba(75, 178, 235, 0.18), transparent 46%),
        var(--panel);
    box-shadow: var(--shadow);
    transition: transform 0.18s ease, border-color 0.18s ease;
}

.community-card:hover {
    transform: translateY(-3px);
    border-color: rgba(75, 178, 235, 0.48);
}

.community-icon {
    width: 58px;
    height: 58px;
    font-size: 1.45rem;
}

.community-card strong,
.community-card small {
    display: block;
}

.community-card strong {
    color: #fff;
    font-size: 1.45rem;
    line-height: 1.1;
}

.community-card small {
    margin-top: 5px;
    color: rgba(225, 243, 255, 0.72);
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    width: min(var(--container), calc(100% - 36px));
    margin: 30px auto 0;
    padding: 28px 0 42px;
    border-top: 1px solid var(--line);
    color: var(--muted);
}

.site-footer strong {
    display: block;
    color: var(--text);
    font-size: 1.1rem;
}

.site-footer p {
    margin: 6px 0 0;
    color: var(--muted-soft);
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    justify-content: flex-end;
}

.site-footer a {
    color: var(--gold-light);
}

.rating-wrap,
.castle-wrap {
    width: min(var(--container), calc(100% - 36px));
    margin: 0 auto;
    padding: 58px 0 78px;
}

.rating-head,
.castle-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 28px;
}

.rating-head h1,
.castle-head h1 {
    margin: 0 0 12px;
    font-family: Cinzel, Inter, serif;
    color: var(--text);
}

.rating-head p,
.castle-head p {
    max-width: 720px;
    margin: 0;
    color: var(--muted);
}

.rating-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.rating-card,
.castle-card {
    padding: 20px;
}

.rating-card h2,
.castle-card h2 {
    margin: 0 0 14px;
    color: var(--gold-light);
    font-size: 1.38rem;
}

.rating-table {
    width: 100%;
    border-collapse: collapse;
}

.rating-table th,
.rating-table td {
    padding: 10px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.075);
    text-align: left;
    font-size: 0.9rem;
}

.rating-table th {
    color: rgba(244, 239, 230, 0.6);
    background: transparent;
    font-weight: 700;
}

.rating-table td {
    color: rgba(244, 239, 230, 0.9);
    background: transparent;
}

.rating-table tr:last-child td {
    border-bottom: 0;
}

.muted {
    color: var(--muted-soft);
}

.rank {
    width: 38px;
    color: var(--gold-light);
    font-weight: 900;
}

.back-link {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(240, 207, 122, 0.22);
    border-radius: 999px;
    padding: 10px 14px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.back-link:hover {
    transform: translateY(-2px);
    border-color: var(--line-strong);
    background: rgba(240, 207, 122, 0.08);
}

.badge {
    display: inline-flex;
    border: 1px solid rgba(240, 207, 122, 0.35);
    color: var(--gold-light);
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 0.78rem;
    font-weight: 900;
}

.castle-meta {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.castle-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.075);
    padding-bottom: 9px;
}

.castle-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.value {
    color: rgba(244, 239, 230, 0.92);
    font-weight: 800;
    text-align: right;
}

.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.48s ease, transform 0.48s ease;
}

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

@media (max-width: 1100px) {
    .rate-grid,
    .starter-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hero-points,
    .wiki-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cabinet-showcase,
    .wiki-layout {
        grid-template-columns: 1fr;
    }

    .wiki-sidebar {
        position: static;
    }

    .castle-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 920px) {
    .site-header {
        align-items: flex-start;
        border-radius: 24px;
    }

    .main-nav {
        display: none;
    }

    .hero,
    .split-section,
    .split-section.reverse {
        grid-template-columns: 1fr;
    }

    .split-section.reverse > div:first-child,
    .split-section.reverse > div:last-child {
        order: initial;
    }

    .hero {
        min-height: auto;
        padding-top: 56px;
    }

    .hero-content {
        padding: 34px;
    }

    .notice-grid,
    .steps,
    .rating-grid {
        grid-template-columns: 1fr;
    }

    .rating-head,
    .castle-head {
        flex-direction: column;
    }
}

@media (max-width: 760px) {
    .cabinet-grid,
    .wiki-card-grid,
    .wiki-block-grid,
    .castle-grid {
        grid-template-columns: 1fr;
    }

    .wiki-content {
        padding: 24px;
    }
}

@media (max-width: 640px) {
    main,
    .site-header,
    .site-footer,
    .rating-wrap,
    .castle-wrap {
        width: min(100% - 24px, var(--container));
    }

    .site-header {
        margin-top: 12px;
        padding: 12px;
    }

    .logo-mark {
        width: 36px;
        height: 36px;
    }

    .header-link {
        padding: 9px 11px;
        font-size: 0.9rem;
    }

    .section {
        padding: 64px 0;
    }

    .hero-content {
        padding: 26px;
        border-radius: 22px;
    }

    h1 {
        font-size: clamp(3.2rem, 18vw, 5rem);
    }

    .status-logo-wrap {
        min-height: 90px;
        padding: 0 8px;
    }

    .status-logo {
        width: min(100%, 290px);
    }

    .hero-actions,
    .btn,
    .download-links .btn {
        width: 100%;
    }

    .btn {
        min-height: 50px;
    }

    .feature-grid,
    .rate-grid,
    .starter-grid,
    .hero-points {
        grid-template-columns: 1fr;
    }

    .status-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .table-card {
        overflow-x: auto;
    }

    table {
        min-width: 560px;
    }

    .rating-card,
    .castle-card {
        overflow-x: auto;
    }

    .site-footer {
        flex-direction: column;
    }

    .site-footer nav {
        justify-content: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
