:root {
    --bg: #111418;
    --bg-deep: #1a1f25;
    --surface: rgba(28, 34, 40, 0.92);
    --surface-strong: #252c34;
    --surface-muted: #323b45;
    --ink: #eef8fa;
    --ink-soft: #aebbc2;
    --accent: #7de4f3;
    --accent-strong: #55bfd0;
    --accent-pale: #b6f3ff;
    --parchment: #9fdbe5;
    --line: rgba(125, 228, 243, 0.18);
    --shadow: 0 22px 55px rgba(0, 0, 0, 0.4);
    --radius-lg: 10px;
    --radius-md: 8px;
    --radius-sm: 4px;
    --content-width: 1140px;
    --chrome-offset-top: 84px;
    --chrome-offset-bottom: 112px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Sora", "Segoe UI", sans-serif;
    color: var(--ink);
    background:
    linear-gradient(180deg, rgba(10, 14, 18, 0.72) 0%, rgba(13, 18, 23, 0.78) 48%, rgba(17, 23, 29, 0.84) 100%),
    radial-gradient(circle at top center, rgba(125, 228, 243, 0.12), transparent 22%),
    url('/assets/img/background-img.jpg') center top / cover fixed no-repeat,
    linear-gradient(180deg, #111418 0%, #171d23 48%, #1d232a 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: 0.15;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.site-shell {
    position: relative;
    z-index: 1;
    padding-top: var(--chrome-offset-top);
    padding-bottom: var(--chrome-offset-bottom);
}

.page-section,
.content-panel,
.hero-panel,
.card,
.member-box,
.sidebar,
.section,
.notice-card,
.shop-card {
    background: linear-gradient(180deg, rgba(33, 42, 51, 0.98) 0%, rgba(23, 30, 37, 0.98) 100%);
    border: 1px solid rgba(169, 192, 204, 0.12);
    box-shadow: var(--shadow);
}

.page-wrap {
    width: min(calc(100% - 32px), var(--content-width));
    margin: 0 auto;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    width: 100%;
    padding: 0;
    transform: translateY(0);
    transition: transform 0.24s ease;
}

.site-header.is-hidden {
    transform: translateY(-100%);
}

.navbar {
    width: 100%;
    margin: 0;
    background: rgba(26, 32, 38, 0.56);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 0;
    border-bottom: 1px solid rgba(125, 228, 243, 0.18);
    border-radius: 0;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.3), 0 0 24px rgba(85, 191, 208, 0.08);
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand-mark {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    min-width: 0;
}

.brand-badge {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: linear-gradient(180deg, #83e6f4 0%, #4ba7b8 100%);
    color: #f8fbfc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    letter-spacing: 0.06em;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.brand-copy {
    min-width: 0;
}

.brand-title {
    display: block;
    font-family: "Montserrat", "Segoe UI", sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
}

.brand-subtitle {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-soft);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-toggle {
    display: none;
    border: 0;
    border-radius: var(--radius-sm);
    background: rgba(125, 228, 243, 0.14);
    color: var(--ink);
    padding: 11px 13px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links a {
    text-decoration: none;
    padding: 11px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.96rem;
    font-weight: 700;
    color: var(--ink-soft);
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus {
    background: rgba(125, 228, 243, 0.14);
    color: var(--ink);
    transform: translateY(-1px);
}

.nav-links a.is-active {
    background: transparent;
    color: var(--accent-strong);
}

.discord-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(125, 228, 243, 0.18);
    background: rgba(125, 228, 243, 0.08);
}

.discord-link img {
    width: 18px;
    height: 18px;
}

.hero-panel {
    width: min(calc(100% - 32px), var(--content-width));
    margin: 34px auto 0;
    border-radius: var(--radius-lg);
    padding: 0;
    overflow: hidden;
    position: relative;
}

.hero-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(124, 168, 187, 0.16) 0, rgba(124, 168, 187, 0.16) 4px, transparent 4px, transparent 100%),
        linear-gradient(180deg, rgba(194, 183, 156, 0.12) 0, rgba(194, 183, 156, 0.12) 4px, transparent 4px, transparent 100%);
    background-size: 72px 72px;
    opacity: 0.2;
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.9fr);
    gap: 28px;
    align-items: center;
    padding: 42px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    background: rgba(124, 168, 187, 0.12);
    border: 1px solid rgba(124, 168, 187, 0.24);
    color: var(--parchment);
    font-size: 0.84rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero-title,
.page-title,
.wiki-content h1,
.role-title {
    font-family: "Montserrat", "Segoe UI", sans-serif;
    letter-spacing: 0.01em;
}

.hero-title {
    margin: 18px 0 12px;
    font-size: clamp(2.7rem, 5vw, 4.6rem);
    line-height: 0.94;
    text-transform: uppercase;
    text-shadow: 0 0 24px rgba(124, 168, 187, 0.08);
}

.hero-text,
.page-intro,
.wiki-content p,
.section p,
.copy-info,
.shop-copy,
.notice-text {
    color: var(--ink-soft);
    line-height: 1.7;
    font-size: 1rem;
}

.copy-info {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 40;
    padding: 12px 16px;
    border: 1px solid rgba(116, 214, 154, 0.45);
    border-radius: 12px;
    background: rgba(40, 78, 54, 0.96);
    color: #dfffe9;
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.26), 0 0 18px rgba(116, 214, 154, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
}

.copy-info.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cta-row,
.stats-grid,
.feature-grid,
.member-grid,
.shop-grid,
.wiki-links {
    display: grid;
    gap: 18px;
}

.cta-row {
    grid-template-columns: repeat(2, minmax(0, max-content));
    margin-top: 28px;
}

.button,
.server-ip,
.sidebar a,
.wiki-link,
.shop-link {
    border: 0;
    border-radius: var(--radius-sm);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.button-primary,
.server-ip,
.shop-link {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
    color: #041318;
    box-shadow: 0 14px 26px rgba(49, 167, 184, 0.28), 0 0 26px rgba(125, 228, 243, 0.22);
}

.button-secondary,
.sidebar a,
.wiki-link {
    background: rgba(169, 192, 204, 0.12);
    color: var(--ink);
    border: 1px solid rgba(169, 192, 204, 0.16);
}

.button:hover,
.server-ip:hover,
.sidebar a:hover,
.wiki-link:hover,
.shop-link:hover {
    transform: translateY(-2px);
}

.server-ip {
    padding: 16px 24px;
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero-card {
    border-radius: var(--radius-md);
    padding: 24px;
    background: linear-gradient(180deg, rgba(18, 25, 32, 0.98) 0%, rgba(14, 19, 25, 0.98) 100%);
    border: 1px solid rgba(194, 183, 156, 0.18);
}

.hero-art {
    margin: 0 0 18px;
    border: 1px solid rgba(169, 192, 204, 0.12);
    overflow: hidden;
}

.hero-art img {
    width: 100%;
    display: block;
}

.hero-card h2,
.section h3,
.shop-card h3,
.member-name,
.card h3 {
    margin: 0 0 10px;
}

.hero-card h2,
.section h3,
.shop-card h3,
.member-name,
.card h3,
.sidebar h2 {
    font-family: "Montserrat", "Segoe UI", sans-serif;
    font-size: 1.9rem;
}

.hero-list {
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}

.hero-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ink-soft);
}

.hero-list li::before {
    content: "";
    width: 10px;
    height: 10px;
    background: var(--parchment);
    flex: 0 0 auto;
}

.stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 24px 0 0;
}

.card,
.shop-card,
.notice-card,
.section,
.member-box {
    border-radius: var(--radius-md);
    padding: 22px;
    position: relative;
}

.card::before,
.shop-card::before,
.section::before,
.member-box::before,
.hero-card::before,
.wiki-content::before,
.sidebar::before,
.content-panel::before,
.page-section::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-strong) 0%, var(--parchment) 100%);
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--ink);
}

.stat-label {
    margin-top: 8px;
    color: var(--ink-soft);
    font-size: 0.95rem;
}

.page-section {
    width: min(calc(100% - 32px), var(--content-width));
    margin: 24px auto 0;
    border-radius: var(--radius-lg);
    padding: 32px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.page-title {
    margin: 0;
    font-size: clamp(2.2rem, 4vw, 3.4rem);
}

.feature-grid,
.shop-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card p,
.shop-card p,
.section p,
.member-role,
.member-note {
    margin: 0;
    color: var(--ink-soft);
}

.content-panel {
    width: min(calc(100% - 32px), var(--content-width));
    margin: 24px auto 0;
    border-radius: 30px;
    padding: 30px;
}

.team-container,
.shop-container {
    width: min(calc(100% - 32px), var(--content-width));
    margin: 26px auto 0;
}

.role-title {
    margin: 36px 0 18px;
    font-size: 2.25rem;
}

.member-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.member-box {
    text-align: center;
}

.member-box img {
    width: 124px;
    height: 124px;
    margin: 0 auto 14px;
    object-fit: contain;
    filter: drop-shadow(0 10px 15px rgba(76, 98, 108, 0.14));
}

.member-name {
    font-size: 1.8rem;
}

.member-role,
.member-note {
    margin-top: 6px;
}

.empty-slot {
    display: flex;
    min-height: 244px;
    align-items: center;
    justify-content: center;
    border: 1px dashed rgba(124, 168, 187, 0.38);
    background: rgba(169, 192, 204, 0.08);
}

.wiki-wrapper {
    width: min(calc(100% - 32px), var(--content-width));
    margin: 24px auto 0;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 24px;
}

.sidebar {
    border-radius: var(--radius-lg);
    padding: 22px;
    align-self: start;
    position: relative;
}

.sidebar h2 {
    margin: 0 0 16px;
}

.sidebar a {
    width: 100%;
    margin-bottom: 12px;
    padding: 14px 16px;
}

.sidebar a:last-child {
    margin-bottom: 0;
}

.wiki-disabled {
    display: block;
    margin-bottom: 12px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    background: rgba(169, 192, 204, 0.08);
    color: #91a0a8;
    text-align: center;
}

.wiki-disabled:last-child {
    margin-bottom: 0;
}

.mobile-toggle {
    display: none;
    width: min(calc(100% - 32px), var(--content-width));
    margin: 24px auto 0;
    border: 0;
    border-radius: var(--radius-sm);
    padding: 15px 18px;
    background: rgba(18, 25, 32, 0.9);
    color: var(--ink);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    box-shadow: var(--shadow);
}

.wiki-content {
    border-radius: var(--radius-lg);
    padding: 28px;
    background: rgba(26, 34, 42, 0.8);
    border: 1px solid rgba(169, 192, 204, 0.12);
    box-shadow: var(--shadow);
    position: relative;
}

.wiki-content h1 {
    margin: 0 0 12px;
    font-size: clamp(2.4rem, 4vw, 3.5rem);
}

.wiki-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 24px;
}

.wiki-link {
    min-height: 120px;
    padding: 22px;
    border-radius: var(--radius-md);
    align-items: start;
    flex-direction: column;
}

.wiki-link strong {
    font-family: "Montserrat", "Segoe UI", sans-serif;
    font-size: 1.8rem;
}

.wiki-link span {
    color: var(--ink-soft);
    line-height: 1.6;
}

.section {
    margin-bottom: 18px;
}

.section:last-child {
    margin-bottom: 0;
}

.notice-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.shop-grid {
    margin-top: 24px;
}

.shop-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.shop-tag {
    align-self: start;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    background: rgba(124, 168, 187, 0.18);
    color: var(--ink);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.shop-link {
    margin-top: auto;
    padding: 13px 18px;
}

.site-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 19;
    transform: translateY(100%);
    transition: transform 0.24s ease;
    pointer-events: none;
}

.site-footer.is-visible {
    transform: translateY(0);
    pointer-events: auto;
}

.footer {
    width: 100%;
    margin: 0;
    padding: 24px 28px;
    text-align: center;
    border-radius: 0;
    background: rgba(26, 32, 38, 0.52);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: var(--ink-soft);
    border: 0;
    border-top: 1px solid rgba(125, 228, 243, 0.16);
    box-shadow: var(--shadow), 0 0 22px rgba(85, 191, 208, 0.06);
}

.join-hero {
    width: min(calc(100% - 32px), 1080px);
    margin: 32px auto 0;
}

.join-topbar {
    margin: 0 0 26px;
    text-align: center;
}

.join-panel {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(280px, 3fr);
    align-items: stretch;
    gap: 0;
    overflow: hidden;
    border: 1px solid rgba(125, 228, 243, 0.16);
    background:
        radial-gradient(circle at top center, rgba(125, 228, 243, 0.12), transparent 32%),
        linear-gradient(180deg, rgba(31, 37, 44, 0.96) 0%, rgba(18, 22, 28, 0.98) 100%);
    box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.join-main {
    padding: 56px 46px;
}

.join-side {
    display: grid;
    grid-template-rows: auto 1fr;
    border-left: 1px solid rgba(125, 228, 243, 0.18);
}

.side-card {
    padding: 28px 24px;
}

.side-card + .side-card {
    border-top: 1px solid rgba(125, 228, 243, 0.14);
}

.vote-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.join-kicker {
    display: inline-block;
    margin-bottom: 16px;
    padding: 8px 14px;
    background: rgba(125, 228, 243, 0.1);
    border: 1px solid rgba(125, 228, 243, 0.18);
    color: var(--accent-pale);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.join-title {
    margin: 0;
    font-family: "Montserrat", "Segoe UI", sans-serif;
    font-size: clamp(2.55rem, 6vw, 4.4rem);
    line-height: 0.95;
    color: var(--ink);
}

.join-subtitle {
    margin: 34px 0 0;
    font-family: "Montserrat", "Segoe UI", sans-serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1;
    color: var(--ink);
}

.join-text {
    width: min(100%, 580px);
    margin: 16px 0 0;
    color: var(--ink-soft);
    font-size: 1.05rem;
    line-height: 1.7;
}

.join-panel .server-ip,
.top-server-ip {
    min-width: min(100%, 360px);
    justify-content: center;
    font-size: clamp(1.15rem, 3vw, 1.55rem);
}

.top-server-ip {
    margin-top: 22px;
}

.join-panel .copy-info {
    right: 16px;
    bottom: 16px;
}

.server-card h3,
.vote-card h3 {
    margin: 0 0 18px;
    font-family: "Montserrat", "Segoe UI", sans-serif;
    font-size: 2rem;
    line-height: 1;
}

.server-meta {
    display: grid;
    gap: 14px;
}

.meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(125, 228, 243, 0.1);
}

.meta-row:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.meta-row span {
    color: var(--ink-soft);
}

.meta-row strong {
    color: var(--ink);
    font-size: 1rem;
}

.meta-row-players {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.meta-value {
    display: block;
    width: 100%;
    text-align: center;
}

.meta-row-split {
    gap: 0;
    align-items: stretch;
}

.meta-half {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.meta-half-left {
    padding-right: 14px;
    border-right: 1px solid rgba(125, 228, 243, 0.16);
    justify-content: center;
    text-align: center;
}

.meta-half-right {
    padding-left: 14px;
    justify-content: center;
}

.meta-inline-label {
    color: var(--ink-soft);
    font-weight: 700;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d74f5f;
    box-shadow: 0 0 14px rgba(215, 79, 95, 0.35);
}

.status-pill.is-online .status-dot {
    background: #6ae28a;
    box-shadow: 0 0 14px rgba(106, 226, 138, 0.35);
}

.vote-copy {
    margin: 0 0 16px;
    color: var(--ink-soft);
    line-height: 1.6;
}

.vote-note {
    margin: -4px 0 16px;
    color: #8fa2ab;
    font-size: 0.9rem;
    line-height: 1.55;
}

.vote-form {
    display: grid;
    gap: 12px;
}

.vote-input,
.vote-submit {
    width: 100%;
    border: 0;
    font: inherit;
    box-sizing: border-box;
}

.vote-input {
    padding: 12px 14px;
    background: rgba(8, 16, 22, 0.72);
    color: var(--ink);
    border: 1px solid rgba(125, 228, 243, 0.12);
    outline: none;
}

.vote-input::placeholder {
    color: #80929a;
}

.vote-input:focus {
    border-color: rgba(125, 228, 243, 0.32);
    box-shadow: 0 0 0 3px rgba(125, 228, 243, 0.08);
}

.vote-submit {
    padding: 12px 14px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
    color: #041318;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 14px 26px rgba(49, 167, 184, 0.2), 0 0 18px rgba(125, 228, 243, 0.14);
}

.vote-submit:hover {
    transform: translateY(-1px);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 920px) {
    .navbar {
        border-radius: var(--radius-lg);
        flex-wrap: wrap;
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .nav-links {
        width: 100%;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding-top: 8px;
    }

    .navbar.is-open .nav-links {
        display: flex;
    }

    .nav-links a {
        text-align: center;
    }

    .hero-grid,
    .feature-grid,
    .shop-grid,
    .wiki-links,
    .wiki-wrapper {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: none;
    }

    .sidebar.show {
        display: block;
    }

    .mobile-toggle {
        display: block;
    }
}

@media (max-width: 680px) {
    .hero-panel,
    .page-section,
    .content-panel,
    .wiki-content,
    .sidebar,
    .footer {
        border-radius: var(--radius-lg);
    }

    .hero-panel,
    .page-section,
    .content-panel,
    .wiki-content,
    .sidebar,
    .footer,
    .team-container,
    .shop-container {
        width: min(calc(100% - 20px), var(--content-width));
    }

    .hero-panel,
    .page-section,
    .content-panel,
    .wiki-content {
        padding: 22px;
    }

    .site-header {
        padding: 0;
    }

    .navbar {
        padding: 10px 12px;
    }

    .brand-title {
        font-size: 1.55rem;
    }

    .brand-subtitle {
        font-size: 0.74rem;
    }

    .cta-row,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .section-heading,
    .notice-card {
        align-items: start;
        flex-direction: column;
    }

    .role-title {
        font-size: 1.95rem;
    }

    .mobile-toggle,
    .wiki-wrapper {
        width: min(calc(100% - 20px), var(--content-width));
    }
}

    .landing-hero,
    .portal-section,
    .progress-band,
    .page-hero-block,
    .wiki-hub-grid,
    .info-grid-section,
    .role-board,
    .offer-grid {
        width: min(calc(100% - 32px), var(--content-width));
        margin: 26px auto 0;
    }

    .landing-hero {
        border: 1px solid rgba(169, 192, 204, 0.14);
        background:
            linear-gradient(120deg, rgba(9, 15, 20, 0.92) 0%, rgba(16, 24, 31, 0.82) 48%, rgba(11, 18, 24, 0.94) 100%),
            url('/assets/img/minecraft-hero.svg') center/cover no-repeat;
        box-shadow: var(--shadow);
        overflow: hidden;
        position: relative;
    }

    .landing-hero::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, rgba(124, 168, 187, 0.12) 0, rgba(124, 168, 187, 0.12) 1px, transparent 1px, transparent 100%), linear-gradient(180deg, rgba(194, 183, 156, 0.08) 0, rgba(194, 183, 156, 0.08) 1px, transparent 1px, transparent 100%);
        background-size: 44px 44px;
        opacity: 0.28;
        pointer-events: none;
    }

    .landing-stage,
    .page-hero-block {
        position: relative;
        z-index: 1;
        display: grid;
        grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
        gap: 26px;
        align-items: stretch;
    }

    .landing-stage {
        padding: 42px;
    }

    .landing-copy,
    .landing-side,
    .mini-panel,
    .portal-card,
    .info-card,
    .role-block,
    .offer-card {
        position: relative;
    }

    .landing-label,
    .portal-tag {
        display: inline-flex;
        align-items: center;
        padding: 7px 12px;
        border: 1px solid rgba(124, 168, 187, 0.26);
        background: rgba(124, 168, 187, 0.1);
        color: var(--parchment);
        font-size: 0.76rem;
        font-weight: 800;
        letter-spacing: 0.09em;
        text-transform: uppercase;
    }

    .landing-title,
    .section-title,
    .role-heading h2,
    .status-panel h2,
    .portal-card h3,
    .offer-card h3,
    .info-card h3 {
        font-family: "Montserrat", "Segoe UI", sans-serif;
        line-height: 0.95;
    }

    .landing-title {
        margin: 18px 0 14px;
        font-size: clamp(3rem, 6vw, 5.4rem);
        text-transform: uppercase;
    }

    .landing-body,
    .section-copy,
    .status-item span,
    .quick-stat span,
    .portal-card p,
    .offer-card p,
    .info-card p,
    .mini-panel p,
    .text-link.is-static {
        color: var(--ink-soft);
        line-height: 1.7;
    }

    .landing-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 14px;
        margin-top: 24px;
    }

    .quick-stats {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
        margin-top: 26px;
    }

    .quick-stat,
    .status-panel,
    .mini-panel,
    .portal-card,
    .info-card,
    .role-block,
    .offer-card,
    .rail-card {
        border: 1px solid rgba(169, 192, 204, 0.14);
        background: linear-gradient(180deg, rgba(27, 35, 43, 0.94) 0%, rgba(17, 23, 29, 0.96) 100%);
        box-shadow: var(--shadow);
    }

    .quick-stat {
        padding: 18px;
    }

    .quick-stat strong,
    .status-item strong,
    .mini-panel strong {
        display: block;
        margin-bottom: 6px;
        font-size: 1rem;
        letter-spacing: 0.03em;
    }

    .art-frame {
        border: 1px solid rgba(169, 192, 204, 0.14);
        background: rgba(8, 12, 16, 0.64);
        overflow: hidden;
    }

    .art-frame img {
        width: 100%;
        aspect-ratio: 16 / 11;
        object-fit: cover;
    }

    .status-panel {
        margin-top: 16px;
        padding: 22px;
    }

    .status-panel h2,
    .section-title {
        margin: 0 0 14px;
        font-size: clamp(2.2rem, 4vw, 3.5rem);
    }

    .status-list {
        display: grid;
        gap: 14px;
    }

    .status-item {
        padding-top: 14px;
        border-top: 1px solid rgba(169, 192, 204, 0.12);
    }

    .status-item:first-child {
        padding-top: 0;
        border-top: 0;
    }

    .portal-head,
    .compact-section,
    .role-board,
    .offer-grid,
    .info-grid-section,
    .wiki-hub-grid,
    .page-hero-block {
        position: relative;
        z-index: 1;
    }

    .portal-section,
    .page-hero-block {
        padding: 34px;
        border: 1px solid rgba(169, 192, 204, 0.14);
        background: linear-gradient(180deg, rgba(21, 28, 35, 0.95) 0%, rgba(15, 20, 26, 0.98) 100%);
        box-shadow: var(--shadow);
    }

    .compact-section {
        padding: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .portal-grid,
    .wiki-hub-grid,
    .info-grid-section,
    .role-members,
    .offer-grid {
        display: grid;
        gap: 18px;
    }

    .portal-grid,
    .offer-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .topic-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .portal-card,
    .offer-card,
    .info-card,
    .role-block,
    .mini-panel,
    .rail-card {
        padding: 22px;
    }

    .portal-card h3,
    .offer-card h3,
    .info-card h3,
    .role-heading h2 {
        margin: 14px 0 10px;
        font-size: 2rem;
    }

    .text-link {
        display: inline-flex;
        margin-top: 18px;
        color: var(--accent-pale);
        text-decoration: none;
        font-weight: 800;
        letter-spacing: 0.02em;
    }

    .text-link.is-static {
        margin-top: 18px;
        display: block;
    }

    .progress-band {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }

    .progress-node {
        padding: 22px;
        border-top: 3px solid var(--accent-strong);
        background: linear-gradient(180deg, rgba(26, 34, 42, 0.96) 0%, rgba(14, 20, 25, 0.98) 100%);
        box-shadow: var(--shadow);
    }

    .progress-node span {
        display: inline-block;
        margin-bottom: 10px;
        color: var(--parchment);
        font-size: 0.82rem;
        font-weight: 800;
        letter-spacing: 0.08em;
    }

    .progress-node strong {
        display: block;
        margin-bottom: 8px;
        font-size: 1.1rem;
    }

    .progress-node p {
        margin: 0;
        color: var(--ink-soft);
        line-height: 1.7;
    }

    .wiki-hub-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .compact-rail {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rail-card {
        text-decoration: none;
    }

    .rail-card strong {
        display: block;
        margin-bottom: 8px;
        font-size: 1.12rem;
    }

    .rail-card span {
        color: var(--ink-soft);
        line-height: 1.6;
    }

    .rail-card.is-current {
        border-color: rgba(124, 168, 187, 0.34);
    }

    .rail-card.is-muted {
        opacity: 0.82;
    }

    .info-grid-section {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wide-card {
        grid-column: span 2;
    }

    .role-board {
        display: grid;
        gap: 18px;
    }

    .role-block {
        padding: 24px;
    }

    .role-heading {
        display: flex;
        align-items: end;
        justify-content: space-between;
        gap: 18px;
        margin-bottom: 18px;
    }

    .role-heading p {
        margin: 0;
        color: var(--ink-soft);
    }

    .role-members {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }

    .profile-card {
        min-height: 230px;
        padding: 22px;
        border: 1px solid rgba(169, 192, 204, 0.14);
        background: rgba(10, 16, 20, 0.42);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .profile-card img {
        width: 112px;
        height: 112px;
        margin-bottom: 14px;
        object-fit: contain;
    }

    .profile-card strong {
        display: block;
        margin-bottom: 6px;
        font-size: 1.2rem;
    }

    .profile-card span {
        color: var(--ink-soft);
        line-height: 1.6;
    }

    .empty-profile {
        border-style: dashed;
        background: rgba(124, 168, 187, 0.04);
    }

    @media (max-width: 980px) {
        .landing-stage,
        .page-hero-block,
        .portal-grid,
        .wiki-hub-grid,
        .info-grid-section,
        .offer-grid,
        .progress-band,
        .topic-grid,
        .compact-rail {
            grid-template-columns: 1fr;
        }

        .wide-card {
            grid-column: auto;
        }
    }

    @media (max-width: 680px) {
        .landing-hero,
        .portal-section,
        .progress-band,
        .page-hero-block,
        .wiki-hub-grid,
        .info-grid-section,
        .role-board,
        .offer-grid {
            width: min(calc(100% - 20px), var(--content-width));
        }

        .landing-stage,
        .portal-section,
        .page-hero-block {
            padding: 22px;
        }

        .landing-title,
        .section-title,
        .status-panel h2 {
            line-height: 1;
        }

        .quick-stats {
            grid-template-columns: 1fr;
        }

        .role-heading {
            flex-direction: column;
            align-items: start;
        }

        .join-hero {
            width: min(calc(100% - 20px), 1080px);
            margin-top: 22px;
        }

        .join-topbar {
            margin-bottom: 18px;
        }

        .join-panel {
            grid-template-columns: 1fr;
        }

        .join-main {
            padding: 34px 20px 28px;
        }

        .join-side {
            grid-template-rows: auto;
            border-left: 0;
            border-top: 1px solid rgba(125, 228, 243, 0.18);
        }

        .join-subtitle {
            margin-top: 28px;
            font-size: clamp(1.8rem, 8vw, 2.5rem);
        }

        .meta-row {
            align-items: start;
            flex-direction: column;
        }

        .meta-row-players {
            display: flex;
        }

        .meta-row-split {
            gap: 12px;
        }

        .meta-half {
            width: 100%;
        }

        .meta-half-left {
            padding-right: 0;
            border-right: 0;
            padding-bottom: 12px;
            border-bottom: 1px solid rgba(125, 228, 243, 0.1);
        }

        .meta-half-right {
            padding-left: 0;
        }
    }