:root {
    --primary: #003A6F;
    --primary-dark: #0669c4;
    --primary-soft: #5aa9ff40;
    --dark-bg-base: #010408;
    --dark-bg: rgba(0, 12, 24, 0.92);
    --card-bg: rgba(0, 10, 22, 0.88);
    --surface-elevated: rgba(0, 8, 20, 0.82);
    --header-bg: rgba(0, 10, 22, 0.88);
    --header-bg-scrolled: rgba(0, 12, 26, 0.94);
    --text: #ffffff;
    --text-muted: #b0b0b0;
    --border: rgba(90, 169, 255, 0.1);
    --success: #2ecc71;
    --warning: #f39c12;
    --error: #e74c3c;
    --discord: #5865f2;
    --header-height: 72px;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    --transition: 0.25s ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: var(--text);
    background-color: var(--dark-bg-base);
    background-image:
        radial-gradient(ellipse 80% 55% at 50% -15%, rgba(0, 45, 85, 0.16), transparent 62%),
        radial-gradient(ellipse 60% 40% at 100% 100%, rgba(0, 35, 70, 0.1), transparent 55%),
        linear-gradient(180deg, rgba(0, 14, 28, 0.72) 0%, var(--dark-bg-base) 100%);
    background-attachment: fixed;
    user-select: none;
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

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

.container {
    width: min(1140px, 92%);
    margin: 0 auto;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    background: var(--header-bg);
    border-bottom: 1px solid rgba(90, 169, 255, 0.08);
    transition: background var(--transition);
}

.site-header.is-scrolled {
    background: var(--header-bg-scrolled);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    gap: 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-img {
    display: block;
    height: 40px;
    width: auto;
    max-width: min(220px, 42vw);
    object-fit: contain;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    padding: 0.5rem 0.85rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    transition: color var(--transition), background var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text);
    background: var(--primary-soft);
}

.nav-cta {
    background: var(--primary);
    color: var(--text) !important;
    margin-left: 0.5rem;
}

.nav-cta:hover {
    background: var(--primary-dark);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: var(--transition);
}

main {
    padding-top: var(--header-height);
    min-height: calc(100vh - 200px);
    position: relative;
    z-index: 2;
    background: transparent;
}

/* Fixierter Seiten-Charakter (Homestate-Style) */
.page-fixed-character-scrim {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        to right,
        var(--dark-bg) 0%,
        rgba(28, 28, 28, 0.98) 36%,
        rgba(28, 28, 28, 0.55) 58%,
        rgba(28, 28, 28, 0.08) 82%,
        transparent 100%
    );
}

.page-fixed-character {
    position: fixed;
    top: 0;
    right: -3%;
    bottom: 0;
    z-index: 0;
    width: min(58vw, 880px);
    height: 100vh;
    padding-top: calc(var(--header-height) - 1rem);
    box-sizing: border-box;
    pointer-events: none;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    overflow: visible;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.35) 22%, black 48%);
    mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.35) 22%, black 48%);
}

.page-fixed-character img {
    display: block;
    height: calc(100vh - var(--header-height) + 2.5rem);
    width: auto;
    min-width: 115%;
    max-width: none;
    object-fit: contain;
    object-position: bottom right;
    opacity: 0.78;
    transform: translateX(5%) scale(1.08);
    transform-origin: bottom right;
    -webkit-mask-image: linear-gradient(to top, black 72%, transparent 100%);
    mask-image: linear-gradient(to top, black 72%, transparent 100%);
}

body.has-page-character .page-hero {
    background: transparent;
}

body.has-page-character .section-alt {
    background: transparent;
}

body.has-page-character .site-footer {
    position: relative;
    z-index: 3;
}

@media (min-width: 1025px) {
    body.has-page-character main .container {
        width: min(960px, calc(100vw - min(36vw, 420px) - 3.5rem));
        margin-left: max(3%, calc((100% - 1200px) / 2));
        margin-right: auto;
    }

    body.has-page-character .rules-layout {
        width: 100%;
        max-width: none;
    }

    body.page-admin.has-page-character main .container {
        width: min(100%, calc(100vw - 2rem));
        max-width: none;
        margin-left: auto;
        margin-right: auto;
    }

    body.page-dashboard.has-page-character main .container {
        width: min(920px, calc(100vw - min(36vw, 420px) - 3rem));
    }
}

/* Hero */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: stretch;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--primary) 100%);
    overflow: hidden;
}

.hero[style*="--hero-bg"] {
    background-image: linear-gradient(135deg, rgba(28, 28, 28, 0.92) 0%, rgba(0, 58, 111, 0.85) 100%), var(--hero-bg);
    background-size: cover;
    background-position: center;
}

.hero-with-character {
    background: radial-gradient(circle at 80% 100%, rgba(0, 58, 111, 0.45) 0%, transparent 55%),
        linear-gradient(135deg, var(--dark-bg) 0%, #152535 55%, var(--primary) 100%);
}

.hero-with-video {
    background: var(--dark-bg);
}

.hero-with-video.hero-with-character {
    background: var(--dark-bg);
}

.hero-video {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to right, rgba(28, 28, 28, 0.92) 0%, rgba(28, 28, 28, 0.72) 42%, rgba(28, 28, 28, 0.35) 68%, rgba(28, 28, 28, 0.15) 100%),
        linear-gradient(to top, var(--dark-bg) 0%, transparent 48%);
    pointer-events: none;
}

.hero-with-video .hero-overlay {
    background: linear-gradient(to right, rgba(28, 28, 28, 0.94) 0%, rgba(28, 28, 28, 0.78) 40%, rgba(0, 58, 111, 0.35) 72%, rgba(28, 28, 28, 0.25) 100%),
        linear-gradient(to top, var(--dark-bg) 0%, rgba(28, 28, 28, 0.2) 45%, transparent 100%);
}

.hero-with-character .section-character-hero {
    z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
    .hero-video {
        display: none;
    }

    .hero-with-video {
        background: linear-gradient(135deg, var(--dark-bg) 0%, var(--primary) 100%);
    }
}

.hero-layout {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    min-height: 85vh;
    width: 100%;
}

.hero-with-character .hero-layout {
    padding-left: clamp(2rem, 11vw, 10rem);
    padding-right: min(42vw, 520px);
    box-sizing: border-box;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    padding: 5rem 0 4rem;
}

.hero-character,
.section-character {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.section-character img {
    position: absolute;
    bottom: 0;
    display: block;
    width: auto;
    height: 100%;
    min-height: 100%;
    max-width: none;
    object-fit: contain;
    object-position: bottom center;
}

.section-character-right img {
    right: -4%;
    object-position: bottom right;
}

.section-character-left img {
    left: -4%;
    object-position: bottom left;
}

.section-character-hero img {
    right: -6%;
    height: 108%;
    min-width: 58vw;
    object-position: bottom right;
}

.has-section-character {
    position: relative;
    overflow: hidden;
}

.has-section-character::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(to right, var(--dark-bg) 0%, rgba(28, 28, 28, 0.92) 42%, rgba(28, 28, 28, 0.35) 68%, transparent 100%);
}

.story-section.has-section-character {
    min-height: 72vh;
    display: flex;
    align-items: center;
}

.story-section .section-character img {
    min-width: 52vw;
    height: 108%;
}

.page-hero-with-character {
    position: relative;
    overflow: hidden;
    min-height: 42vh;
    padding: 5rem 0 3rem;
    background: linear-gradient(135deg, var(--card-bg) 0%, var(--dark-bg) 100%);
}

.page-hero-with-character.has-section-character::before {
    background: linear-gradient(to right, var(--dark-bg) 0%, rgba(28, 28, 28, 0.94) 46%, rgba(28, 28, 28, 0.4) 72%, transparent 100%);
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(to top, var(--dark-bg) 0%, transparent 55%);
}

.page-hero-with-character h1,
.page-hero-with-character p {
    position: relative;
    z-index: 2;
}

.section-content {
    position: relative;
    z-index: 2;
}

.hero-eyebrow {
    font-size: 1rem;
    font-weight: 500;
    color: var(--primary-dark);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.5rem;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 1rem;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.75rem;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-primary {
    background: var(--primary);
    color: var(--text);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border-color: var(--text-muted);
}

.btn-outline:hover {
    border-color: var(--text);
    background: var(--primary-soft);
}

.btn-danger {
    background: rgba(231, 76, 60, 0.15);
    color: #f0a898;
    border-color: rgba(231, 76, 60, 0.45);
}

.btn-danger:hover {
    background: rgba(231, 76, 60, 0.28);
    border-color: rgba(231, 76, 60, 0.65);
    color: #ffd0c8;
}

.btn-discord {
    background: var(--discord);
    color: var(--text);
    border-color: var(--discord);
}

.btn-discord:hover {
    filter: brightness(1.1);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

/* Info Banner */
.info-banner {
    position: relative;
    z-index: 3;
    background: var(--primary);
    padding: 1rem 0;
    text-align: center;
}

.info-banner p {
    margin: 0;
    font-weight: 500;
}

/* Sections */
.section {
    padding: 5rem 0;
}

.dashboard-section {
    padding-top: 3rem;
    padding-bottom: 5rem;
}

.section-alt {
    background: var(--card-bg);
}

.page-hero {
    padding: 5rem 0 3rem;
    background: linear-gradient(180deg, rgba(0, 12, 26, 0.82) 0%, transparent 100%);
}

.page-hero-small {
    padding: 3rem 0 2rem;
}

.page-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin: 0 0 1rem;
}

.page-hero p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0;
}

/* Story */
.story-text {
    max-width: 760px;
}

body.page-home .story-section .container {
    padding-left: clamp(1.5rem, 8vw, 7rem);
    box-sizing: border-box;
}

body.page-home .features-section .container,
body.page-home .stats-section .container {
    width: min(960px, 92%);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
}

.story-text h2 {
    font-size: 1.75rem;
    margin: 0 0 1.5rem;
}

.story-text p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.story-cta {
    color: var(--text) !important;
    margin-top: 1.5rem !important;
}

.image-placeholder {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--card-bg);
    aspect-ratio: 4/3;
    box-shadow: var(--shadow);
}

.image-placeholder.no-image img {
    display: none;
}

.image-placeholder.no-image {
    background: linear-gradient(135deg, var(--card-bg), var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-placeholder.no-image::after {
    content: "Bild folgt";
    color: var(--text-muted);
    font-size: 0.9rem;
}

.section-heading {
    max-width: 640px;
    margin: 0 auto 2.5rem;
    text-align: center;
}

.section-heading h2 {
    margin: 0 0 0.75rem;
    font-size: 2rem;
}

.section-heading p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.65;
}

/* Feature Showcases */
.features-section {
    padding: 5rem 0;
}

.guide-resources-grid {
    display: grid;
    gap: 1.5rem;
}

.guide-resource-card {
    display: grid;
    grid-template-columns: minmax(220px, 360px) 1fr;
    gap: 1.5rem;
    align-items: center;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
}

.guide-resource-image {
    display: block;
    border-radius: calc(var(--radius) - 4px);
    overflow: hidden;
    border: 1px solid var(--border);
}

.guide-resource-image img {
    display: block;
    width: 100%;
    height: auto;
}

.guide-resource-body h3 {
    margin: 0 0 0.75rem;
}

.guide-resource-body p {
    margin: 0 0 1rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* Stats */
.stats-section {
    background: transparent;
    border-top: 1px solid rgba(90, 169, 255, 0.05);
    padding-top: 4rem;
    padding-bottom: 3rem;
}

.stats-section .container {
    display: flex;
    justify-content: center;
}

.stats-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    align-items: stretch;
}

.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 9.5rem;
    background: var(--surface-elevated);
    border: 1px solid rgba(90, 169, 255, 0.1);
    border-radius: var(--radius);
    padding: 1.5rem 1rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 8, 18, 0.35);
}

.stat-value-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 4.25rem;
}

.stat-value {
    display: block;
    font-size: clamp(1.75rem, 2.4vw, 2.35rem);
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.15;
}

.stat-value-time {
    font-size: clamp(1.2rem, 1.8vw, 1.75rem);
    white-space: nowrap;
}

.stat-label {
    flex-shrink: 0;
    width: 100%;
    min-height: 2.6em;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1.35;
    padding-top: 0.75rem;
}

.stats-section .stat-label {
    padding-top: 0;
    padding-bottom: 0.75rem;
}

/* Features */
.features-section .container {
    display: flex;
    justify-content: center;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
}

.feature-card {
    background: var(--surface-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: border-color var(--transition), transform var(--transition);
}

.feature-card:hover {
    border-color: var(--primary-dark);
    transform: translateY(-4px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature-card h3 {
    margin: 0 0 0.75rem;
    font-size: 1.15rem;
}

.feature-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Team */
.team-department {
    margin-bottom: 3rem;
}

.department-title {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 1.5rem;
    margin: 0 0 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary);
}

.department-title i {
    color: var(--primary-dark);
    font-size: 1.15rem;
    width: 1.35rem;
    text-align: center;
    flex-shrink: 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1.5rem;
}

.team-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem 1rem;
    text-align: center;
    transition: border-color var(--transition);
}

.team-card:hover {
    border-color: var(--primary-dark);
}

.team-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    background: var(--primary);
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 1.75rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.avatar-fallback-icon {
    color: #fff;
}

.avatar-fallback-icon i {
    font-size: 1.85rem;
    line-height: 1;
}

.team-card h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Rules */
.rules-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 2rem;
    align-items: start;
}

.rules-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: sticky;
    top: calc(var(--header-height) + 1.25rem);
    z-index: 5;
    align-self: start;
    max-height: calc(100vh - var(--header-height) - 2rem);
    overflow-y: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: thin;
}

.rules-content {
    position: relative;
    min-width: 0;
}

.rules-tab {
    background: var(--card-bg);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: all var(--transition);
}

.rules-tab:hover,
.rules-tab.active {
    background: var(--primary-soft);
    border-color: var(--primary-dark);
    color: var(--text);
}

.rules-panel {
    display: none;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
}

.rules-panel.active {
    display: block;
}

.rules-panel h2 {
    margin: 0 0 1.5rem;
    font-size: 1.5rem;
}

.rules-intro {
    color: var(--text-muted);
    margin: 0 0 1.5rem;
    line-height: 1.65;
}

.rules-subtitle {
    margin: 1.75rem 0 1rem;
    font-size: 1.05rem;
    color: var(--primary-dark);
}

.rules-sublist {
    margin: 0.75rem 0 0;
    padding: 0;
    list-style: none;
}

.rules-sublist li {
    position: relative;
    padding: 0.45rem 0 0.45rem 1.25rem;
    color: var(--text-muted);
    border-bottom: none;
}

.rules-sublist li::before {
    content: "�??";
    position: absolute;
    left: 0;
    color: var(--primary-dark);
}

.rules-list li:has(.rules-sublist)::before {
    background: var(--primary-dark);
}

.rules-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.rules-list li {
    position: relative;
    padding: 0.75rem 0 0.75rem 1.5rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}

.rules-list li:last-child {
    border-bottom: none;
}

.rules-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.15rem;
    width: 8px;
    height: 8px;
    background: var(--primary-dark);
    border-radius: 50%;
}

/* Values */
.value-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.value-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
}

.value-card h3 {
    margin: 0 0 0.75rem;
    color: var(--primary-dark);
}

.value-card p {
    margin: 0;
    color: var(--text-muted);
}

.rp-details p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.rp-details p:last-child {
    margin-bottom: 0;
}

/* Guides */
.steps-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.step-card {
    display: flex;
    gap: 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    align-items: flex-start;
}

.step-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.25rem;
}

.step-body h3 {
    margin: 0 0 0.5rem;
}

.step-body p {
    margin: 0 0 0.75rem;
    color: var(--text-muted);
}

.step-link {
    color: var(--primary-dark);
    font-weight: 500;
    font-size: 0.9rem;
}

.step-link:hover {
    text-decoration: underline;
}

/* Streams */
.stream-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.stream-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color var(--transition), transform var(--transition);
}

.stream-card:hover {
    border-color: var(--primary-dark);
    transform: translateY(-4px);
}

.stream-card-offline {
    border-color: rgba(255, 255, 255, 0.08);
}

.stream-card-offline:hover {
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
}

.stream-thumb {
    position: relative;
    aspect-ratio: 16/9;
    background: var(--dark-bg);
    overflow: hidden;
}

.stream-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter var(--transition), opacity var(--transition);
}

.stream-card-offline .stream-thumb img {
    filter: grayscale(100%) brightness(0.45);
    opacity: 0.72;
}

.stream-card-offline .stream-thumb-placeholder {
    filter: grayscale(100%);
    opacity: 0.55;
}

.stream-card-offline .stream-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(28, 28, 28, 0.42);
    pointer-events: none;
}

.stream-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--card-bg), var(--primary));
    color: var(--primary-dark);
}

.stream-thumb-placeholder svg {
    width: 48px;
    height: 48px;
    opacity: 0.5;
}

.live-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 2;
    background: #e91916;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    letter-spacing: 0.05em;
}

.offline-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 2;
    background: rgba(28, 28, 28, 0.92);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.stream-info {
    padding: 1.25rem;
}

.stream-info h3 {
    margin: 0 0 0.35rem;
    font-size: 1rem;
}

.stream-title {
    margin: 0 0 0.65rem;
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.stream-card-offline .stream-info h3 {
    color: var(--text-muted);
}

.stream-card-offline .stream-platform {
    color: rgba(90, 169, 255, 0.55);
}

.stream-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.85rem;
}

.stream-platform {
    font-size: 0.85rem;
    color: var(--primary-dark);
    font-weight: 500;
}

.stream-viewers {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.stream-card-live {
    border-color: rgba(233, 25, 22, 0.45);
}

.stream-guidelines {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.25rem;
    margin: 0 0 1.75rem;
    padding: 1.15rem 1.35rem;
    border: 1px solid rgba(90, 169, 255, 0.12);
    border-radius: var(--radius);
    background: var(--surface-elevated);
}

.streams-section {
    padding-top: 1.25rem;
    padding-bottom: 4rem;
}

.stream-guidelines p {
    flex: 1 1 280px;
    margin: 0;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.65;
}

.stream-notice,
.stream-empty {
    margin: 0 0 1.5rem;
    padding: 1rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card-bg);
    color: var(--text-muted);
}

/* Auth */
.auth-box {
    max-width: 480px;
    margin: 0 auto;
}

.auth-content {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
    text-align: center;
}

.auth-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    color: var(--discord);
}

.auth-icon svg {
    width: 100%;
    height: 100%;
}

.auth-content h2 {
    margin: 0 0 0.75rem;
}

.auth-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.alert-error {
    background: rgba(231, 76, 60, 0.15);
    border: 1px solid var(--error);
    color: #ff8a80;
}

.alert-warning {
    background: rgba(243, 156, 18, 0.15);
    border: 1px solid var(--warning);
    color: #ffd54f;
}

.alert-success {
    background: rgba(46, 204, 113, 0.15);
    border: 1px solid var(--success);
    color: #8ff0b0;
}

.alert code {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

/* Dashboard */
.dashboard-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.dashboard-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 3px solid var(--primary-dark);
}

.dashboard-header .btn {
    margin-left: auto;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

.dashboard-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 320px;
    overflow: hidden;
}

.dashboard-card-content {
    padding: 2.5rem 2.5rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.dashboard-card-actions {
    margin-top: auto;
    padding: 1.5rem 2.5rem 2.5rem;
    border-top: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.12);
}

.dashboard-card-actions .btn {
    min-width: 200px;
}

.dashboard-card-icon {
    width: 44px;
    height: 44px;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
}

.dashboard-card-icon svg {
    width: 100%;
    height: 100%;
}

.dashboard-card h2 {
    margin: 0 0 1.25rem;
    font-size: 1.35rem;
}

.dashboard-card .status-badge {
    margin-bottom: 1.25rem;
    align-self: flex-start;
    width: auto;
}

.dashboard-card-text {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.65;
    max-width: 42ch;
}

.dashboard-fivem-code-box {
    margin-top: 1.25rem;
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--primary-soft);
    background: rgba(0, 58, 111, 0.18);
    width: 100%;
    max-width: 100%;
}

.dashboard-fivem-code-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.dashboard-fivem-code {
    display: block;
    font-family: "Consolas", "Courier New", monospace;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    color: #fff;
    margin-bottom: 0.75rem;
}

.dashboard-fivem-code-meta {
    margin: 0 0 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.dashboard-fivem-error {
    margin: 1rem 0 0;
    color: #ff8a8a;
    font-size: 0.9rem;
}

.dashboard-card .btn {
    margin-top: 0;
}

.btn-disabled {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
    user-select: none;
}

.dashboard-characters {
    margin-top: 2.5rem;
}

.dashboard-characters-title {
    margin: 0 0 1.5rem;
    font-size: 1.5rem;
}

.character-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.25rem;
}

.character-card {
    position: relative;
    background: var(--surface-elevated);
    border: 1px solid rgba(90, 169, 255, 0.1);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(0, 8, 18, 0.28);
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.character-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.character-card:hover {
    border-color: rgba(90, 169, 255, 0.22);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 12, 28, 0.38);
}

.character-card-body {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    padding: 1.5rem 1.5rem 1.35rem;
}

.character-card-disabled {
    opacity: 0.72;
}

.character-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.character-card-identity {
    flex: 1;
    min-width: 0;
}

.character-card-top h3 {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0 0 0.2rem;
    font-size: 1.15rem;
    line-height: 1.25;
    word-break: normal;
    overflow-wrap: anywhere;
}

.character-flag {
    flex-shrink: 0;
    font-size: 1.05em;
    line-height: 1;
}

.character-sub {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.45;
}

.character-sub-ssn {
    white-space: nowrap;
}

.character-tags {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
    gap: 0.35rem;
}

.character-tags .role-badge,
.character-tags .status-badge {
    margin-bottom: 0;
    width: max-content;
}

.character-role {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    background: rgba(0, 58, 111, 0.14);
    border: 1px solid rgba(90, 169, 255, 0.1);
}

.character-role > i {
    flex-shrink: 0;
    margin-top: 0.15rem;
    font-size: 0.95rem;
    color: var(--primary-dark);
}

.character-role-label {
    display: block;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 0.15rem;
}

.character-role strong {
    display: block;
    font-size: 0.95rem;
    line-height: 1.3;
}

.character-role-rank {
    display: block;
    margin-top: 0.1rem;
    font-size: 0.82rem;
    color: var(--primary-dark);
}

.character-metrics {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid rgba(90, 169, 255, 0.08);
    border-bottom: 1px solid rgba(90, 169, 255, 0.08);
}

.character-metrics li {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.85rem 0.75rem;
    text-align: center;
}

.character-metrics li:not(:last-child) {
    border-right: 1px solid rgba(90, 169, 255, 0.08);
}

.character-metric-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.character-metric-label i {
    font-size: 0.72rem;
    color: var(--primary-dark);
}

.character-metrics strong {
    font-size: clamp(0.78rem, 2.2vw, 0.92rem);
    font-weight: 600;
    color: var(--text);
    line-height: 1.2;
    white-space: nowrap;
}

.character-card-footer {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.character-card-footer p {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.45;
}

.character-card-footer i {
    flex-shrink: 0;
    width: 14px;
    text-align: center;
    font-size: 0.75rem;
    color: rgba(90, 169, 255, 0.65);
}

.character-page-actions {
    margin-top: 2rem;
}

.character-empty-card {
    max-width: 720px;
    margin: 0 auto;
}

@media (max-width: 520px) {
    .character-card-top {
        flex-direction: column;
    }

    .character-tags {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-start;
        justify-content: flex-start;
    }

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

    .character-metrics li:not(:last-child) {
        border-right: none;
        border-bottom: 1px solid rgba(90, 169, 255, 0.08);
    }
}

.dashboard-meta {
    margin-top: 0.5rem !important;
    font-size: 0.85rem !important;
    color: var(--text-muted) !important;
}

.status-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    margin-bottom: 1rem;
}

.status-soon {
    background: var(--primary-soft);
    color: var(--primary-dark);
}

.status-passed {
    background: rgba(46, 204, 113, 0.2);
    color: #8ff0b0;
}

.status-failed {
    background: rgba(231, 76, 60, 0.2);
    color: #ff8a80;
}

.status-progress {
    background: rgba(6, 105, 196, 0.25);
    color: #8ec5ff;
}

/* Whitelist */
.whitelist-start,
.whitelist-quiz,
.whitelist-result {
    max-width: 760px;
    margin: 0 auto;
}

.whitelist-rules {
    margin: 1rem 0 1.5rem;
    padding-left: 1.2rem;
    color: var(--text-muted);
}

.whitelist-rules li {
    margin-bottom: 0.35rem;
}

.whitelist-back {
    margin-top: 1rem;
}

.whitelist-progress-wrap {
    margin-bottom: 1.5rem;
}

.whitelist-progress-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

#whitelist-timer {
    font-weight: 600;
    color: var(--primary-dark);
}

#whitelist-timer.timer-warning {
    color: #ff8a80;
}

.whitelist-progress-bar {
    height: 10px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 999px;
    overflow: hidden;
}

.whitelist-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    transition: width 0.35s ease;
}

.whitelist-question-card h2 {
    font-size: 1.2rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

.whitelist-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.whitelist-option {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.9rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: border-color var(--transition), background var(--transition);
}

.whitelist-option:hover {
    border-color: var(--primary-dark);
    background: var(--primary-soft);
}

.whitelist-option input {
    margin-top: 0.2rem;
    accent-color: var(--primary-dark);
}

.whitelist-option span {
    line-height: 1.45;
}

.whitelist-result-card {
    min-height: auto;
}

.whitelist-score-box {
    width: 100%;
    margin-top: 0.5rem;
    padding: 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: rgba(0, 0, 0, 0.15);
}

.whitelist-score-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.85rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.whitelist-score-top strong {
    color: var(--text);
    font-size: 1.05rem;
}

.whitelist-score-hint {
    margin: 0.85rem 0 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.whitelist-progress-fill-failed {
    background: linear-gradient(90deg, #8b2e2e, #e74c3c);
}

.whitelist-result-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.25rem;
}

/* Admin */
.section-compact {
    padding-top: 2rem;
}

body.page-admin main .container {
    width: min(100%, calc(100vw - 2rem));
    max-width: none;
}

.admin-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.admin-header h1 {
    margin-bottom: 0.5rem;
}

.admin-player-hero {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.admin-player-hero-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.admin-player-overview {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.admin-player-panel {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.35rem;
}

.admin-player-panel h2 {
    margin: 0 0 1rem;
    font-size: 1rem;
}

.admin-detail-list {
    display: grid;
    gap: 0.85rem;
    margin: 0;
}

.admin-detail-list > div {
    min-width: 0;
}

.admin-detail-list dt {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

.admin-detail-list dd {
    margin: 0.25rem 0 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.9rem;
}

.admin-section-head {
    margin-bottom: 1.25rem;
}

.admin-section-head h2 {
    margin: 0 0 0.35rem;
    font-size: 1.15rem;
}

.admin-section-head p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.admin-action-cell {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.4rem;
    min-width: 0;
}

.admin-action-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.15rem 0.45rem;
    line-height: 1.25;
}

.admin-action-link {
    display: inline-block;
    padding: 0.18rem 0.55rem;
    border: 1px solid transparent;
    border-radius: 999px;
    background: none;
    font-family: inherit;
    font-size: 0.68rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    line-height: 1.25;
    transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.admin-action-link-green {
    color: #8ff0b0;
    background: rgba(46, 204, 113, 0.14);
    border-color: rgba(46, 204, 113, 0.35);
}

.admin-action-link-green:hover {
    color: #c8ffe0;
    background: rgba(46, 204, 113, 0.24);
    border-color: rgba(46, 204, 113, 0.55);
}

.admin-action-link-yellow {
    color: #f5d067;
    background: rgba(241, 196, 15, 0.12);
    border-color: rgba(241, 196, 15, 0.35);
}

.admin-action-link-yellow:hover {
    color: #ffe9a8;
    background: rgba(241, 196, 15, 0.22);
    border-color: rgba(241, 196, 15, 0.55);
}

.admin-action-link-red {
    color: #f0a898;
    background: rgba(231, 76, 60, 0.14);
    border-color: rgba(231, 76, 60, 0.4);
}

.admin-action-link-red:hover {
    color: #ffd0c8;
    background: rgba(231, 76, 60, 0.26);
    border-color: rgba(231, 76, 60, 0.6);
}

.admin-action-link-form {
    display: inline;
    margin: 0;
    padding: 0;
}

.admin-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.admin-panel-actions {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.admin-panel-actions-compact {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
}

.admin-wl-answers {
    display: grid;
    gap: 1rem;
}

.admin-wl-answer-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.15rem 1.25rem;
}

.admin-wl-answer-card.admin-wl-answer-correct {
    border-color: rgba(46, 204, 113, 0.28);
}

.admin-wl-answer-card.admin-wl-answer-wrong {
    border-color: rgba(231, 76, 60, 0.28);
}

.admin-wl-answer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
}

.admin-wl-answer-num {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.admin-wl-answer-card h3 {
    margin: 0 0 0.85rem;
    font-size: 0.95rem;
    line-height: 1.45;
    font-weight: 500;
}

.admin-wl-answer-body {
    display: grid;
    gap: 0.65rem;
}

.admin-wl-answer-row p {
    margin: 0.2rem 0 0;
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.admin-wl-answer-label {
    display: block;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.42);
}

.admin-wl-answer-row-correct p {
    color: #8ff0b0;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.admin-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    align-items: center;
}

.admin-input,
.admin-select {
    background: var(--card-bg);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: var(--radius-sm);
    padding: 0.65rem 0.85rem;
    font-family: inherit;
    font-size: 0.9rem;
}

.admin-input {
    min-width: 260px;
    flex: 1 1 260px;
}

.admin-table-wrap {
    overflow-x: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card-bg);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.admin-table th,
.admin-table td {
    padding: 0.8rem 0.65rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
    overflow: hidden;
}

.admin-table th {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.15);
    white-space: nowrap;
}

.admin-table th:nth-child(1),
.admin-table td:nth-child(1) {
    width: 29%;
}

.admin-table th.admin-col-meta,
.admin-table td.admin-col-meta {
    width: 10%;
    text-align: center;
}

.admin-table th.admin-col-meta:nth-child(4),
.admin-table td.admin-col-meta:nth-child(4) {
    width: 11%;
}

.admin-table th:nth-child(5),
.admin-table td:nth-child(5) {
    width: 14%;
}

.admin-table th:nth-child(6),
.admin-table td:nth-child(6) {
    width: 18%;
}

.admin-table th.admin-col-meta {
    background: rgba(0, 58, 111, 0.12);
}

.admin-table td.admin-col-meta {
    background: rgba(255, 255, 255, 0.015);
}

.admin-table td.admin-col-meta + td.admin-col-meta,
.admin-table th.admin-col-meta + th.admin-col-meta {
    box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.04);
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-empty {
    text-align: center;
    color: var(--text-muted);
}

.admin-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.admin-user-avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    font-weight: 600;
    font-size: 0.85rem;
}

.admin-user-cell {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    min-width: 0;
}

.admin-user-cell strong {
    display: block;
    font-size: 0.92rem;
    line-height: 1.3;
}

.admin-user-sub {
    display: block;
    font-size: 0.74rem;
    color: var(--text-muted);
    margin-top: 0.1rem;
    line-height: 1.35;
}

.admin-discord-id {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.68rem;
    color: var(--text-muted);
    word-break: break-all;
    line-height: 1.35;
    background: none;
    padding: 0;
}

.admin-pill-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 3.1rem;
    margin: 0 auto;
    max-width: 8.5rem;
}

.admin-pill-cell .role-badge {
    min-width: 5.75rem;
    text-align: center;
    padding: 0.28rem 0.65rem;
}

.admin-pill-sub {
    display: block;
    font-size: 0.68rem;
    color: var(--text-muted);
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
    text-align: center;
    white-space: nowrap;
}

.admin-wl-badge.admin-wl-open,
.admin-wl-badge.admin-wl-no {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
}

.admin-wl-badge.admin-wl-progress {
    background: var(--primary-soft);
    color: var(--primary-dark);
}

.admin-wl-badge.admin-wl-passed,
.admin-wl-badge.admin-wl-yes {
    background: rgba(46, 204, 113, 0.18);
    color: #8ff0b0;
}

.admin-wl-badge.admin-wl-failed {
    background: rgba(231, 76, 60, 0.18);
    color: #f0a898;
}

.admin-login-cell {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 0;
}

.admin-login-line {
    display: block;
    font-size: 0.74rem;
    color: var(--text-muted);
    line-height: 1.35;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-login-label {
    display: inline-block;
    min-width: 2.8rem;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.admin-role-form {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
}

.admin-select-sm {
    padding: 0.32rem 0.45rem;
    font-size: 0.72rem;
    width: auto;
    min-width: 0;
    flex: 1 1 auto;
    max-width: 6.75rem;
}

.admin-role-form .btn {
    width: auto;
    flex-shrink: 0;
    padding: 0.32rem 0.55rem;
    font-size: 0.72rem;
    white-space: nowrap;
}

.role-badge {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 600;
    white-space: nowrap;
}

.role-spieler {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
}

.role-teamler {
    background: rgba(243, 156, 18, 0.16);
    color: #ffcc70;
    border: 1px solid rgba(243, 156, 18, 0.35);
}

.role-projektleitung {
    background: rgba(6, 105, 196, 0.22);
    color: #b3dcff;
    border: 1px solid rgba(142, 197, 255, 0.4);
    box-shadow: 0 0 10px rgba(6, 105, 196, 0.12);
}

.admin-hint {
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.admin-table code {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Footer */
.site-footer {
    background: var(--card-bg);
    border-top: 1px solid rgba(90, 169, 255, 0.06);
    padding: 1.75rem 0 1.15rem;
    margin-top: 0;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.85rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo {
    display: inline-flex;
    line-height: 0;
}

.footer-logo-img {
    display: block;
    height: 34px;
    width: auto;
    max-width: min(200px, 60vw);
    object-fit: contain;
}

.footer-brand p {
    margin: 0.5rem 0 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-socials {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--card-bg);
    color: var(--text-muted);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    transition: color var(--transition), border-color var(--transition), background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.footer-social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

.footer-social-link--discord {
    color: #5865f2;
    border-color: rgba(88, 101, 242, 0.35);
    background: rgba(88, 101, 242, 0.1);
}

.footer-social-link--discord:hover {
    color: #ffffff;
    border-color: #5865f2;
    background: #5865f2;
    box-shadow: 0 8px 22px rgba(88, 101, 242, 0.35);
}

.footer-social-link--teamspeak {
    color: #2580c3;
    border-color: rgba(37, 128, 195, 0.35);
    background: rgba(37, 128, 195, 0.1);
}

.footer-social-link--teamspeak:hover {
    color: #ffffff;
    border-color: #2580c3;
    background: #2580c3;
    box-shadow: 0 8px 22px rgba(37, 128, 195, 0.35);
}

.footer-social-link--youtube {
    color: #ff0000;
    border-color: rgba(255, 0, 0, 0.32);
    background: rgba(255, 0, 0, 0.08);
}

.footer-social-link--youtube:hover {
    color: #ffffff;
    border-color: #ff0000;
    background: #ff0000;
    box-shadow: 0 8px 22px rgba(255, 0, 0, 0.32);
}

.footer-social-link--tiktok {
    color: #fe2c55;
    border-color: rgba(254, 44, 85, 0.35);
    background: rgba(254, 44, 85, 0.08);
}

.footer-social-link--tiktok:hover {
    color: #ffffff;
    border-color: #fe2c55;
    background: #fe2c55;
    box-shadow: 0 8px 22px rgba(254, 44, 85, 0.32);
}

.footer-social-link svg {
    width: 18px;
    height: 18px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--primary-dark);
}

.footer-legal {
    width: 100%;
    margin-top: 0.15rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-copy {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.footer-disclaimer {
    margin: 0.35rem auto 0;
    color: var(--text-muted);
    font-size: 0.75rem;
    line-height: 1.5;
    max-width: 52rem;
}

.footer-cookie-settings {
    background: none;
    border: none;
    padding: 0;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.85rem;
    cursor: pointer;
    transition: color var(--transition);
}

.footer-cookie-settings:hover {
    color: var(--primary-dark);
}

/* Cookie-Banner */
body.cookie-banner-open {
    overflow: hidden;
}

.cookie-banner {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1rem;
    background: rgba(1, 4, 8, 0.72);
}

.cookie-banner-hidden {
    display: none;
}

.cookie-banner-panel {
    width: min(640px, 100%);
    max-height: min(90vh, 720px);
    overflow: auto;
    background: rgba(0, 10, 22, 0.96);
    border: 1px solid rgba(90, 169, 255, 0.14);
    border-radius: var(--radius);
    box-shadow: 0 16px 48px rgba(0, 8, 18, 0.45);
    padding: 1.35rem 1.35rem 1.25rem;
}

.cookie-banner-title {
    margin: 0 0 0.75rem;
    font-size: 1.15rem;
    color: var(--text);
}

.cookie-banner-text {
    margin: 0 0 1.15rem;
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.65;
}

.cookie-banner-text a {
    color: var(--primary-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cookie-banner-settings-hidden {
    display: none;
}

.cookie-option {
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(90, 169, 255, 0.1);
    border-radius: var(--radius-sm);
    background: rgba(0, 14, 28, 0.55);
}

.cookie-option p {
    margin: 0.45rem 0 0;
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.55;
}

.cookie-option-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.cookie-option-head strong {
    font-size: 0.92rem;
    color: var(--text);
}

.cookie-option-badge {
    flex-shrink: 0;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary-dark);
    background: var(--primary-soft);
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
}

.cookie-toggle {
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
    width: 44px;
    height: 24px;
    cursor: pointer;
}

.cookie-toggle input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle-slider {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: background var(--transition);
}

.cookie-toggle-slider::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--text);
    transition: transform var(--transition);
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.cookie-toggle input:checked + .cookie-toggle-slider::before {
    transform: translateX(20px);
}

.cookie-toggle input:focus-visible + .cookie-toggle-slider {
    outline: 2px solid var(--primary-dark);
    outline-offset: 2px;
}

@media (max-width: 520px) {
    .cookie-banner-actions .btn {
        flex: 1 1 100%;
        justify-content: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.65rem;
    }
}

/* Animations */
.legal-page {
    max-width: 52rem;
    margin: 0 auto;
}

.legal-toc {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin-bottom: 2.5rem;
    padding: 1rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card-bg);
}

.legal-toc a {
    color: var(--primary-dark);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--transition);
}

.legal-toc a:hover {
    color: var(--text);
}

.legal-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--border);
}

.legal-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.legal-section,
#datenschutz,
#datenschutz-teamspeak,
#cookies,
#nutzungsbedingungen {
    scroll-margin-top: 6rem;
}

.legal-section-head {
    margin-bottom: 1.25rem;
}

.legal-heading {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
}

.legal-heading i {
    flex-shrink: 0;
    width: 1.75rem;
    font-size: 1.35rem;
    color: var(--text);
    text-align: center;
}

.legal-heading-divider {
    margin: 0.85rem 0 0;
    border: none;
    border-top: 1px solid var(--border);
}

.legal-section h2 {
    margin: 0 0 1rem;
    font-size: 1.5rem;
    color: var(--text);
}

.legal-section h3 {
    margin: 1.75rem 0 0.75rem;
    font-size: 1.15rem;
    color: var(--text);
}

.legal-section h4 {
    margin: 1.5rem 0 0.65rem;
    font-size: 1rem;
    color: var(--text);
}

.legal-lead {
    margin: 0 0 1rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.legal-sublead {
    margin: -0.25rem 0 1.25rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.legal-subsection {
    margin-top: 1.25rem;
}

.legal-section p {
    margin: 0 0 0.85rem;
    color: var(--text-muted);
    line-height: 1.75;
    font-size: 0.92rem;
}

.legal-section ul {
    margin: 0 0 0.85rem;
    padding-left: 1.35rem;
    color: var(--text-muted);
    line-height: 1.75;
    font-size: 0.92rem;
}

.legal-section li + li {
    margin-top: 0.35rem;
}

.legal-section a {
    color: var(--primary-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color var(--transition);
}

.legal-section a:hover {
    color: var(--text);
}

.legal-stand {
    margin-top: 1.25rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.rules-sidebar.fade-in,
.rules-sidebar.fade-in.visible {
    transform: none;
}

/* Responsive */
@media (max-width: 1024px) {
    .page-fixed-character,
    .page-fixed-character-scrim {
        display: none;
    }

    body.has-page-character main .container {
        width: min(1140px, 92%);
        margin-left: auto;
        margin-right: auto;
    }

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

    body.page-home .feature-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .section-character img {
        min-width: 70vw;
        height: 100%;
        opacity: 0.45;
    }

    .section-character-hero img {
        min-width: 75vw;
        right: -12%;
    }

    .story-section.has-section-character {
        min-height: auto;
    }

    .story-text {
        max-width: 100%;
    }

    .page-hero-with-character {
        min-height: 32vh;
    }

    .guide-resource-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--card-bg);
        flex-direction: column;
        padding: 1rem;
        border-bottom: 1px solid var(--border);
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
        transition: transform var(--transition), opacity var(--transition);
    }

    .main-nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-link {
        width: 100%;
        text-align: center;
        padding: 0.85rem;
    }

    .nav-cta {
        margin-left: 0;
    }

    .feature-grid,
    .value-grid,
    .dashboard-grid,
    .rules-layout {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
    }

    .story-text {
        max-width: 100%;
    }

    .section-character img {
        min-width: 85vw;
        opacity: 0.28;
    }

    .section-character-hero img {
        min-width: 90vw;
        right: -18%;
    }

    .has-section-character::before,
    .page-hero-with-character.has-section-character::before {
        background: linear-gradient(to bottom, var(--dark-bg) 0%, rgba(28, 28, 28, 0.94) 55%, rgba(28, 28, 28, 0.75) 100%);
    }

    .rules-sidebar {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        max-height: none;
        overflow: visible;
    }

    .rules-tab {
        flex: 1 1 auto;
        min-width: 120px;
        text-align: center;
    }

    .dashboard-header {
        flex-direction: column;
        text-align: center;
    }

    .dashboard-header .btn {
        margin-left: 0;
    }

    .dashboard-grid {
        gap: 1.5rem;
    }

    .dashboard-card {
        min-height: auto;
    }

    .dashboard-card-content,
    .dashboard-card-actions {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .dashboard-card-actions .btn {
        width: 100%;
        min-width: 0;
    }

    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    body.page-admin main .container {
        width: min(100%, calc(100vw - 1.25rem));
    }

    .admin-table-wrap {
        overflow-x: auto;
    }

    .admin-table {
        table-layout: auto;
        min-width: 720px;
    }

    .admin-role-form {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-select-sm {
        max-width: none;
        width: 100%;
    }

    .admin-role-form .btn {
        width: 100%;
    }

    .admin-player-overview {
        grid-template-columns: 1fr;
    }

    .admin-player-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-with-character .hero-layout {
        padding-left: 1.5rem;
        padding-right: 0;
    }

    body.page-home .story-section .container {
        padding-left: 0;
    }

    body.page-home .features-section .container,
    body.page-home .stats-section .container {
        width: min(960px, 92%);
        margin-left: auto;
        margin-right: auto;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    body.page-home .feature-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
    }

    .stat-card {
        min-height: 8.5rem;
        padding: 1.25rem 0.85rem;
    }

    .stat-value-wrap {
        min-height: 3.5rem;
    }

    .stat-value-time {
        font-size: clamp(1rem, 3.2vw, 1.35rem);
    }

    .hero-content {
        padding: 3rem 0;
    }
}

/* Features showcase ? Tracklinie */
.features-hero .features-eyebrow {
    margin: 0 0 0.65rem;
    color: var(--primary-dark);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.features-jump {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1.75rem;
    max-width: 820px;
}

.features-jump a {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: rgba(0, 20, 40, 0.45);
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 500;
    transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.features-jump a:hover {
    color: var(--text);
    border-color: rgba(90, 169, 255, 0.35);
    background: rgba(6, 105, 196, 0.18);
}

.features-track-section {
    padding-top: 1.5rem;
    padding-bottom: 2rem;
}

.features-track {
    position: relative;
    list-style: none;
    margin: 0 auto;
    padding: 0;
    max-width: 960px;
}

.features-track::before {
    content: "";
    position: absolute;
    top: 0.85rem;
    bottom: 0.85rem;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(6, 105, 196, 0.55) 8%,
        rgba(6, 105, 196, 0.55) 92%,
        transparent 100%
    );
}

.features-track-item {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 3.25rem 1fr;
    gap: 0 1.25rem;
    align-items: start;
    padding: 1.65rem 0;
    scroll-margin-top: calc(var(--header-height) + 1rem);
}

.features-track-marker {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    justify-content: center;
    z-index: 1;
}

.features-track-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 50%;
    border: 2px solid rgba(90, 169, 255, 0.55);
    background: #04101c;
    color: var(--text);
    font-size: 0.78rem;
    font-weight: 600;
    box-shadow: 0 0 0 4px rgba(6, 105, 196, 0.12);
}

.features-track-content {
    max-width: 26rem;
}

.features-track-item--left .features-track-content {
    grid-column: 1;
    grid-row: 1;
    justify-self: end;
    text-align: right;
}

.features-track-item--right .features-track-content {
    grid-column: 3;
    grid-row: 1;
    justify-self: start;
    text-align: left;
}

.features-track-item--left .feature-showcase-list li {
    padding-left: 0;
    padding-right: 1.15rem;
}

.features-track-item--left .feature-showcase-list li::before {
    left: auto;
    right: 0;
}

.feature-showcase-eyebrow {
    margin: 0 0 0.55rem;
    color: var(--primary-dark);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.features-track-content h2 {
    margin: 0 0 0.75rem;
    font-size: clamp(1.35rem, 2.2vw, 1.85rem);
    line-height: 1.2;
}

.feature-showcase-text {
    margin: 0 0 1rem;
    color: var(--text-muted);
}

.feature-showcase-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.55rem;
}

.feature-showcase-list li {
    position: relative;
    padding-left: 1.15rem;
    color: var(--text);
    font-size: 0.92rem;
}

.feature-showcase-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: var(--primary-dark);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

.feature-showcase-cta {
    text-align: center;
    padding-top: 3.5rem;
    padding-bottom: 5rem;
}

@media (min-width: 1025px) {
    body.has-page-character .feature-showcase-cta .container {
        width: min(1140px, 92%);
        margin-left: auto;
        margin-right: auto;
    }
}

.feature-showcase-cta h2 {
    margin: 0 0 0.75rem;
    font-size: clamp(1.5rem, 2.4vw, 2rem);
}

.feature-showcase-cta p {
    margin: 0 auto 1.5rem;
    max-width: 36rem;
    color: var(--text-muted);
}

.feature-showcase-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    justify-content: center;
}

@media (max-width: 768px) {
    .features-jump {
        gap: 0.45rem;
    }

    .features-track {
        max-width: none;
        padding-left: 0.25rem;
    }

    .features-track::before {
        left: 1.05rem;
        transform: none;
    }

    .features-track-item {
        grid-template-columns: 2.15rem 1fr;
        gap: 0 1rem;
        padding: 1.25rem 0;
    }

    .features-track-marker {
        grid-column: 1;
    }

    .features-track-item--left .features-track-content,
    .features-track-item--right .features-track-content {
        grid-column: 2;
        justify-self: stretch;
        text-align: left;
        max-width: none;
    }

    .features-track-item--left .feature-showcase-list li {
        padding-left: 1.15rem;
        padding-right: 0;
    }

    .features-track-item--left .feature-showcase-list li::before {
        left: 0;
        right: auto;
    }

    .feature-showcase-cta-actions {
        flex-direction: column;
    }

    .feature-showcase-cta-actions .btn {
        width: 100%;
    }
}
