:root {
    --bg-dark: #0a0a0a;
    --border: #1a1a1a;
    --fontColor: rgb(248, 250, 252);
    --fontColorHover: rgb(255, 255, 255);
    --text: rgb(248, 250, 252);
    --text-muted: #94a3b8;
    --borderRadius: 10px;
    --sectionFontWeight: 600;
    --green: #1d4ed8;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.03);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.04);
    --surface: #0f0f0f;
    --surface-hover: #141414;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
    background: #0a0a0a;
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

/* Custom thin blue scrollbar */
html {
    scrollbar-width: thin;
    scrollbar-color: rgba(29, 78, 216, 0.75) transparent;
    scrollbar-gutter: stable;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-button {
    width: 0;
    height: 0;
    display: none;
}

::-webkit-scrollbar-thumb {
    background: rgba(29, 78, 216, 0.7);
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(29, 78, 216, 0.7);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2.5rem;
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2.5rem;
}

@media (max-width: 640px) {
    .container,
    .container-wide {
        padding: 0 1.25rem;
    }
}

.header {
    background: #0a0a0a;
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 0;
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
}

.header .container {
    max-width: 1280px;
    width: calc(100% - 3rem);
    margin: 0 auto;
    padding-left: 0;
    padding-right: 0;
}

@media (min-width: 768px) {
    .header .container {
        width: calc(100% - 4rem);
    }
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    border-radius: 6px;
    height: 52px;
    width: auto;
    display: block;
    object-fit: contain;
}

.nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    color: var(--fontColor);
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 500;
    padding: 0.4rem 1rem;
    border-radius: var(--borderRadius);
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover {
    color: var(--fontColorHover);
    background: rgba(255, 255, 255, 0.08);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 1rem;
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--fontColor);
    background: transparent;
    border: none;
    border-radius: var(--borderRadius);
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-dropdown-trigger:hover {
    color: var(--fontColorHover);
    background: rgba(255, 255, 255, 0.08);
}

.nav-dropdown-trigger[aria-expanded="true"] {
    color: var(--fontColorHover);
    background: rgba(255, 255, 255, 0.08);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.3rem;
    min-width: 180px;
    background: #0f0f0f;
    border: 1px solid var(--border);
    border-radius: var(--borderRadius);
    padding: 0.35rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 20;
}

.nav-dropdown.is-open .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    color: var(--fontColor);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 6px;
    transition: color 0.2s ease, background 0.2s ease;
}

.dropdown-menu a:hover {
    color: var(--fontColorHover);
    background: rgba(255, 255, 255, 0.06);
}

.dropdown-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: inherit;
}

.dropdown-icon svg {
    width: 16px;
    height: 16px;
}

.dropdown-icon .fa-solid,
.dropdown-icon .fa,
.dropdown-icon i {
    font-size: 0.95rem;
    width: 1em;
    text-align: center;
}

.dropdown-menu-shop {
    min-width: 200px;
}

.dropdown-menu-server {
    min-width: 200px;
}

/* Yhteisö dropdown – siisti korttilayout */
.dropdown-menu-yhteiso {
    min-width: 220px;
    padding: 0.5rem;
}

.yhteiso-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    color: var(--fontColor);
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 8px;
    transition: color 0.2s ease, background 0.2s ease;
}

.yhteiso-card:hover {
    color: var(--fontColorHover);
    background: rgba(255, 255, 255, 0.06);
}

.yhteiso-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 8px;
    font-size: 1.1rem;
}

.yhteiso-card:first-child .yhteiso-card-icon { background: rgba(88, 101, 242, 0.2); color: #5865f2; }
.yhteiso-card:nth-child(2) .yhteiso-card-icon { background: rgba(28, 40, 51, 0.3); color: #c7d5e0; }
.yhteiso-card:nth-child(3) .yhteiso-card-icon { background: rgba(0, 0, 0, 0.4); color: #fff; }
.yhteiso-card:nth-child(4) .yhteiso-card-icon { background: rgba(255, 55, 95, 0.2); color: #ff375f; }

.yhteiso-card-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.yhteiso-card-title {
    font-weight: 600;
}

.yhteiso-card-desc,
.yhteiso-card-stat {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.dropdown-ressut {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.6rem 0.75rem;
    margin-top: 0.25rem;
    border-top: 1px solid var(--border);
}

.dropdown-ressut-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.dropdown-ressut-times {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--green);
    font-variant-numeric: tabular-nums;
}

.ressut-block {
    background: #0d0d0d;
    border: 1px solid var(--border);
    border-radius: var(--borderRadius);
    padding: 2rem 2.5rem;
    text-align: center;
}

.ressut-inner {
    max-width: 640px;
    margin: 0 auto;
}

.ressut-title {
    display: inline-flex;
    align-items: center;
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff !important;
    margin: 0 0 0.5rem 0;
    line-height: 1;
}

.ressut-title i {
    margin-right: 0.4rem;
    color: var(--green);
    flex-shrink: 0;
}

.ressut-badge {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-left: 0.5rem;
}

.ressut-intro {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.ressut-times {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 0.25rem;
    margin-bottom: 1.75rem;
}

.ressut-time-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.85rem 1.25rem;
    background: #0a0a0a;
    border: 1px solid var(--border);
    border-radius: 10px;
    min-width: 5rem;
    transition: border-color 0.2s, background 0.2s;
}

.ressut-time {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--green);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}

.ressut-sep {
    display: flex;
    align-items: center;
    color: rgba(29, 78, 216, 0.35);
    font-size: 0.6rem;
    padding: 0 0.25rem;
}

.ressut-cta-wrap {
    margin: 0;
}

.ressut-cta {
    display: inline-flex !important;
    align-items: center;
    gap: 0.6rem;
}

@media (max-width: 560px) {
    .ressut-times {
        gap: 0.75rem;
    }

    .ressut-sep {
        display: none;
    }

    .ressut-time-item {
        flex: 1 1 calc(50% - 0.5rem);
        min-width: 0;
    }
}

.hero {
    padding: 2rem 0;
    text-align: center;
    background: var(--bg-dark);
    position: relative;
}

.hero-image-wrap {
    width: calc(100% - 3rem);
    max-width: 1280px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    min-height: 420px;
    padding: 4rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-dark);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

@media (min-width: 768px) {
    .hero-image-wrap {
        width: calc(100% - 4rem);
        max-width: 1280px;
        min-height: 520px;
        padding: 5rem 0;
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.hero-image-wrap .hero-content.container,
.hero-image-wrap .hero-content.container-wide {
    max-width: 100%;
    box-sizing: border-box;
}

.hero-logo {
    border-radius: 6px;
    max-width: 200px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 0.75rem;
    object-fit: contain;
}

.hero-desc {
    color: #fff;
    margin-bottom: 1.0rem;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.75rem 1rem;
    background: #1d4ed8;
    border-radius: 6px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: transform 0.25s ease, border-radius 0.3s ease, box-shadow 0.3s ease, background 0.25s ease;
}

.action-btn:hover {
    border-radius: 10px;
}

.action-btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.action-btn-text {
    color: #fff;
}

.action-btn-num {
    color: #fff;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.btn {
    display: inline-block;
    padding: 0.6rem 1.25rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: background 0.2s, color 0.2s;
}

.btn-primary {
    background: var(--green);
    color: #fff;
}

.btn-primary:hover {
    background: #1d4ed8;
}

.section {
    padding: 2rem 0;
    background: var(--bg-dark);
}

.section-alt {
    background: var(--bg-dark);
}

.section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.cards {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.25rem;
}

@media (max-width: 700px) {
    .cards {
        grid-template-columns: 1fr;
    }
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--borderRadius);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--green);
    margin-bottom: 0.5rem;
}

.card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.rules-list {
    margin-left: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.rules-list li {
    margin-bottom: 0.5rem;
}

.rules-list-ul {
    list-style: disc;
}

.page-main {
    padding: 1rem 0 4rem;
    background: #0a0a0a;
}

body.page-kauppa {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
body.page-kauppa .page-main {
    flex: 1 1 auto;
    display: block;
    width: 100%;
}
body.page-kauppa .section-coming-soon {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 0;
    width: 100%;
}
body.page-kauppa .section-coming-soon .container {
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.coming-soon-img {
    max-width: 100%;
    width: auto;
    height: auto;
    max-height: 400px;
    object-fit: contain;
}
.page-lead-center {
    text-align: center !important;
    font-size: 1.25rem;
    margin: 0;
    width: 100%;
}

.page-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.page-lead {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1.15rem;
    line-height: 1.5;
}

.shop-intro .page-lead {
    margin-bottom: 2rem;
}

.shop-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.75rem;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--borderRadius);
    transition: background 0.2s, transform 0.15s;
}

.shop-cta:hover {
    transform: translateY(-1px);
}

/* Kauppa: Jengit landing */
.shop-jengit-hero {
    padding: 2.5rem 0 1.5rem;
}

.shop-jengit-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 2rem;
    align-items: center;
}

.shop-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
}

.shop-pill-muted {
    color: var(--text);
    background: rgba(29, 78, 216, 0.08);
    border-color: rgba(29, 78, 216, 0.18);
}

.shop-jengit-title {
    margin: 0.75rem 0 0.75rem;
    font-size: 2.4rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.08;
}

.shop-jengit-lead {
    margin: 0 0 1.25rem;
    color: var(--text-muted);
    max-width: 62ch;
}

.shop-jengit-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.shop-jengit-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.shop-jengit-cta-secondary.btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    color: #fff;
}

.shop-jengit-cta-secondary.btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

.shop-jengit-art {
    width: 100%;
    min-height: 360px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(120% 120% at 20% 0%, rgba(29, 78, 216, 0.35) 0%, rgba(10, 10, 10, 0) 55%),
        radial-gradient(140% 140% at 90% 20%, rgba(29, 78, 216, 0.18) 0%, rgba(10, 10, 10, 0) 60%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 100%);
    box-shadow: var(--shadow-md);
}

.shop-jengit-image-wrap {
    width: 100%;
    min-height: 360px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    background:
        radial-gradient(120% 120% at 20% 0%, rgba(29, 78, 216, 0.35) 0%, rgba(10, 10, 10, 0) 55%),
        radial-gradient(140% 140% at 90% 20%, rgba(29, 78, 216, 0.18) 0%, rgba(10, 10, 10, 0) 60%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 100%);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.shop-jengit-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.shop-jengit-image-wrap.is-placeholder::after {
    content: "";
    width: min(320px, 72%);
    height: 50%;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.shop-jengit-section {
    padding: 1.5rem 0 3rem;
}

.shop-jengit-head {
    max-width: 70ch;
    margin-bottom: 1.5rem;
}

.shop-jengit-h2 {
    margin: 0.6rem 0 0.6rem;
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.shop-jengit-sub {
    margin: 0;
    color: var(--text-muted);
}

.shop-jengit-features {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
}

.shop-jengit-feature {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.15rem 1.15rem;
    box-shadow: var(--shadow-sm);
    min-width: 0;
}

.shop-jengit-feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(29, 78, 216, 0.1);
    color: var(--green);
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
}

.shop-jengit-feature h3 {
    margin: 0 0 0.35rem;
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
}

.shop-jengit-feature p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.55;
}

.shop-jengit-buy {
    margin-top: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 1.1rem 1.1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.shop-jengit-buy-title {
    margin: 0 0 0.25rem;
    color: #fff;
    font-weight: 900;
    font-size: 1.05rem;
}

.shop-jengit-buy-desc {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.shop-jengit-buy-cta {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 193, 7, 0.35);
    background: rgba(255, 193, 7, 0.12);
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    min-width: 220px;
    flex: 0 0 auto;
}

.shop-jengit-buy-cta:hover {
    border-color: rgba(255, 193, 7, 0.55);
    background: rgba(255, 193, 7, 0.16);
}

@media (max-width: 1000px) {
    .shop-jengit-features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .shop-jengit-grid {
        grid-template-columns: 1fr;
    }
    .shop-jengit-art {
        min-height: 260px;
    }
}

@media (max-width: 560px) {
    .shop-jengit-features {
        grid-template-columns: 1fr;
    }
    .shop-jengit-buy {
        flex-direction: column;
        align-items: stretch;
    }
    .shop-jengit-buy-cta {
        min-width: 0;
        width: 100%;
    }
}

.shop-categories-lead {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    max-width: 560px;
    font-size: 0.95rem;
}

.shop-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.shop-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 1.25rem;
    background: #0d0d0d;
    border: 1px solid var(--border);
    border-radius: var(--borderRadius);
    color: inherit;
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.shop-card:hover {
    border-color: var(--green);
    background: rgba(29, 78, 216, 0.06);
    box-shadow: 0 0 0 1px rgba(29, 78, 216, 0.2);
}

.shop-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(29, 78, 216, 0.15);
    color: var(--green);
}

.shop-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}

.shop-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

.shop-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.2s;
}

.shop-back-link:hover {
    color: var(--green);
}

.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;
}

.shop-tebex-only {
    padding: 4rem 0;
}

.shop-tebex-intro {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.tebex-dropdown-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.tebex-select {
    min-width: 220px;
    padding: 0.65rem 1rem;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--borderRadius);
    cursor: pointer;
}

.tebex-select:focus {
    outline: none;
    border-color: var(--green);
}

.tebex-go-btn {
    flex-shrink: 0;
}

.shop-note {
    font-size: 0.95rem;
    color: var(--text-muted);
    padding: 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--borderRadius);
    border-left: 3px solid var(--green);
}

.shop-note code {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.85em;
}

.shop-block {
    padding: 4rem 0;
}

.shop-block:first-of-type {
    padding-top: 1rem;
}

.shop-block-head {
    margin-bottom: 1.75rem;
}

.shop-block-title {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.shop-block-title-icon {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    background: var(--green);
    flex-shrink: 0;
}

.shop-block-intro {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin: 0;
    max-width: 600px;
    line-height: 1.5;
}

.shop-block-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1.25rem;
}

.shop-usecases {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 2.25rem;
}

.shop-usecase {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--borderRadius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.shop-usecase:hover {
    border-color: rgba(29, 78, 216, 0.4);
    box-shadow: var(--shadow-md);
}

.shop-usecase h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.4rem;
}

.shop-usecase-tag {
    font-size: 0.9rem;
    color: var(--green);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.shop-usecase-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.45;
}

.shop-usecase code {
    background: rgba(29, 78, 216, 0.12);
    color: var(--green);
    padding: 0.12rem 0.4rem;
    border-radius: 4px;
    font-size: 0.85em;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
}

.product-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--borderRadius);
    color: inherit;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.product-card:hover {
    border-color: rgba(29, 78, 216, 0.5);
    background: var(--surface-hover);
    box-shadow: var(--shadow-md);
}

.product-card-img-wrap {
    width: 100px;
    height: 100px;
    min-height: 100px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-card-img-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 80px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--borderRadius);
}

.product-card-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.35rem;
}

.product-card-meta {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 0.85rem;
}

.product-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: var(--green);
    border-radius: 8px;
    transition: background 0.2s;
}

.product-card:hover .product-card-btn {
    background: #2548e6;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--borderRadius);
    color: inherit;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.category-card-img-wrap {
    width: 100%;
    height: 80px;
    min-height: 80px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-card-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.category-card:hover {
    border-color: rgba(29, 78, 216, 0.5);
    background: var(--surface-hover);
    box-shadow: var(--shadow-md);
}

.category-card-label {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.4rem;
}

.category-card-desc {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    line-height: 1.4;
}

.category-card-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    background: var(--green);
    border-radius: 8px;
    transition: background 0.2s;
}

.category-card:hover .category-card-btn {
    background: #2548e6;
}

@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .category-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 900px) {
    .shop-usecases {
        grid-template-columns: repeat(2, 1fr);
    }
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .shop-usecases {
        grid-template-columns: 1fr;
    }
    .product-grid {
        grid-template-columns: 1fr;
    }
    .category-grid {
        grid-template-columns: 1fr;
    }
}

.content-block {
    margin-bottom: 2rem;
}

.content-block h2 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--green);
    margin-bottom: 0.75rem;
}

.content-block p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.content-block p:last-child {
    margin-bottom: 0;
}

.content-block code {
    background: #111;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
    color: var(--green);
}

.rules-block {
    background: #0d0d0d;
    border: 1px solid var(--border);
    border-radius: var(--borderRadius);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
}

.rules-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    grid-template-areas: "sidebar content";
    gap: 1.25rem;
    align-items: start;
}

.rules-content {
    grid-area: content;
    min-width: 0;
}

.rules-sidebar {
    grid-area: sidebar;
    position: sticky;
    top: 50vh;
    align-self: start;
    transform: translateY(-50%);
}

.rules-nav-box {
    background: #0d0d0d;
    border: 1px solid var(--border);
    border-radius: var(--borderRadius);
    padding: 1rem;
}

.rules-nav-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    color: #fff;
}

.rules-nav-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.rules-nav-list a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 0.55rem;
    border-radius: 8px;
    transition: color 0.2s ease, background 0.2s ease;
}

.rules-nav-list a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.rules-nav-list a.is-active {
    color: var(--green);
    background: rgba(29, 78, 216, 0.12);
}

.rules-nav-list a i {
    width: 1rem;
    text-align: center;
    color: var(--green);
}

.rules-section-title,
.rules-block .rules-section-title,
.content-block .rules-section-title {
    font-size: 1.15rem;
    font-weight: var(--sectionFontWeight);
    color: #fff !important;
    margin-bottom: 1rem;
    padding-bottom: 0.35rem;
}

.rules-section-title .fa-solid,
.rules-section-title .fa,
.rules-section-title i {
    margin-right: 0.4rem;
    color: var(--green);
}

.rules-block .rule-term {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-top: 1rem;
    margin-bottom: 0.4rem;
}

.rules-block .rule-term:first-of-type {
    margin-top: 0;
}

.rule-item-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.rule-item-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.95rem 1rem;
}

.rule-item-card .rule-term {
    margin-top: 0;
}

.rule-item-card .rules-list {
    margin-bottom: 0;
}

.rules-block .rules-list {
    margin-top: 0.25rem;
    margin-bottom: 0;
}

.rules-block .rules-list li {
    margin-bottom: 0.4rem;
}

.rules-block p {
    margin-bottom: 0.5rem;
}

.rules-block p:last-child {
    margin-bottom: 0;
}

@media (max-width: 1020px) {
    .rules-layout {
        grid-template-columns: 1fr;
        grid-template-areas:
            "content"
            "sidebar";
    }

    .rules-sidebar {
        position: static;
        top: auto;
        transform: none;
    }
}

@media (max-width: 700px) {
    .rule-item-grid {
        grid-template-columns: 1fr;
    }
}

.content-block-card {
    background: #0d0d0d;
    border: 1px solid var(--border);
    border-radius: var(--borderRadius);
    padding: 1.25rem 1.5rem;
}

.roles-block {
    border-color: #1d4ed865;
}

.roles-intro {
    margin-bottom: 1.25rem;
}

.roles-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (max-width: 600px) {
    .roles-buttons {
        grid-template-columns: 1fr;
    }
}

.role-card {
    display: block;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.role-card:hover {
    border-color: rgba(29, 78, 216, 0.4);
}

.role-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.role-card-title i {
    font-size: 1rem;
}

.role-card-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.45;
}

.roles-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.roles-note i {
    color: var(--green);
}

.admin-block {
    border-color: rgba(255, 7, 7, 0.2);
}

.admin-block .rules-section-title i {
    margin-right: 0.4rem;
    color: rgb(255, 7, 7);
}

.admin-intro {
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.keybind-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 1.5rem;
    margin-bottom: 1rem;
}

@media (max-width: 560px) {
    .keybind-grid {
        grid-template-columns: 1fr;
    }
}

.keybind-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.keybind-key {
    flex-shrink: 0;
    min-width: 5rem;
    font-weight: 600;
    color: var(--fontColor);
    font-family: ui-monospace, monospace;
    font-size: 0.85rem;
}

.keybind-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.highlight-block {
    border-color: rgba(237, 195, 58, 0.35);
    background: rgba(29, 78, 216, 0);
}

.character-block {
    padding: 1rem 1.25rem;
    position: relative;
    overflow: hidden;
}

.character-block-inner {
    display: flex;
    align-items: center;
}

.character-block-text {
    flex: 1;
    min-width: 0;
    padding-right: 130px;
}

@media (max-width: 600px) {
    .character-block-text {
        padding-right: 110px;
    }
}

.character-block .rules-section-title {
    margin-bottom: 0.4rem;
}

.character-block p {
    margin: 0;
}

.character-block-img {
    position: absolute;
    top: 0.8arem;
    right: -0.3rem;
    width: 130px;
    height: auto;
    max-height: 85px;
    object-fit: contain;
    object-position: top right;
}

@media (max-width: 500px) {
    .character-block-img {
        width: 100px;
        max-height: 65px;
    }
}

.rules-note {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.tip-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--borderRadius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tip-card-header {
    padding: 1rem 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    background: rgba(26, 26, 26, 0.02);
    border-bottom: 1px solid var(--border);
    flex: 0 0 auto;
    order: 1;
}

.tip-card-image {
    flex: 0 0 auto;
    width: 100%;
    aspect-ratio: 16 / 10;
    min-height: 140px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0d0d0d;
    order: 2;
}

.tip-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tip-card-image.tip-card-image-placeholder {
    background: linear-gradient(135deg, rgba(29, 78, 216, 0.12) 0%, rgba(29, 78, 216, 0.04) 100%);
}

.tip-card-image.tip-card-image-placeholder img {
    display: none;
}

.tip-card-footer,
.tip-card-desc {
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    background: rgba(26, 26, 26, 0.02);
    border-top: 1px solid var(--border);
    margin: 0;
    flex: 1 1 auto;
    order: 3;
}

@media (max-width: 900px) {
    .tips-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .tips-grid {
        grid-template-columns: 1fr;
    }
}

.link {
    color: var(--green);
    text-decoration: none;
}

.link:hover {
    text-decoration: underline;
}

.section-faq {
    background: var(--bg-dark);
}

.faq-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    gap: 2rem;
    align-items: start;
}

.faq-right {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.05rem 1.5rem 1.25rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.faq-right-title {
    font-size: 26px;
    font-weight: 800;
    margin: 0;
    color: #fff;
    line-height: 1.15;
}

.faq-right-desc {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.55;
    font-size: 15px;
    margin-top: -0.15rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: var(--sectionFontWeight);
    color: var(--text);
    margin-bottom: 1.5rem;
}

.split-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
}

.split-row-image-left {
    grid-template-areas: "img text";
}

.split-row-image-left .split-image-wrap { grid-area: img; }
.split-row-image-left .split-text { grid-area: text; }

.split-row-image-right {
    grid-template-areas: "text img";
}

.split-row-image-right .split-text { grid-area: text; }
.split-row-image-right .split-image-wrap { grid-area: img; }

.split-image-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}

.split-image {
    max-width: 100%;
    width: auto;
    height: auto;
    max-height: 320px;
    object-fit: contain;
    display: block;
}

.split-text {
    padding: 0.5rem 0;
}

.about-content p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.about-content p:last-child {
    margin-bottom: 0;
}

.promo-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.75rem;
    border: none;
    padding: 0;
    display: block;
}

.promo-content p {
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

@media (max-width: 768px) {
    .split-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .split-row-image-left {
        grid-template-areas: "img" "text";
    }
    .split-row-image-right {
        grid-template-areas: "text" "img";
    }
    .split-image {
        max-height: 240px;
    }
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--borderRadius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.faq-item:hover {
    border-color: var(--green);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 16px 20px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    color: var(--fontColor);
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    line-height: 1.25;
    transition: color 0.2s ease, background 0.2s ease;
}

.faq-question:hover {
    color: var(--fontColorHover);
}

.faq-question[aria-expanded="true"] {
    color: var(--fontColorHover);
}

.faq-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    position: relative;
}

.faq-icon::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translate(-50%, -60%) rotate(45deg);
    transition: transform 0.25s ease;
    opacity: 0.9;
}

.faq-question[aria-expanded="true"] .faq-icon::before {
    transform: translate(-50%, -40%) rotate(-135deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.faq-question[aria-expanded="true"] + .faq-answer {
    max-height: 420px;
}

.faq-answer p,
.faq-answer ol {
    margin: 0;
    padding: 0 1.25rem 1rem 1.25rem;
    padding-top: 0;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.faq-steps {
    list-style-position: inside;
    padding-left: 1.25rem !important;
}

.faq-steps li {
    margin-bottom: 0.35rem;
}

.faq-steps .link {
    color: var(--green);
    text-decoration: none;
}

.faq-steps .link:hover {
    text-decoration: underline;
}

.faq-answer .link {
    color: var(--green);
}

.faq-answer code {
    background: #111;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
    color: var(--green);
}

@media (max-width: 900px) {
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

.section-steps {
    padding: 3.5rem 0;
}

.steps-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2rem;
    text-align: center;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.step-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-width: 0;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.step-card:hover {
    border-color: rgba(29, 78, 216, 0.25);
}

.step-card-media {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    position: relative;
    overflow: hidden;
}

.step-card-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.step-card-media.is-placeholder::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(240px, 70%);
    height: 52%;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.step-card-body {
    padding: 1.25rem 1.25rem 1.35rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    align-items: center;
    text-align: center;
    width: 100%;
}

.step-card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--green);
    background: rgba(29, 78, 216, 0.1);
    border-radius: 50%;
}

.step-card-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.01em;
    margin: 0;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.step-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--fontColor);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.1;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.step-btn i,
.step-btn .fa,
.step-btn .fa-solid {
    font-size: 14px;
    line-height: 1;
}

.step-btn:hover {
    background: rgba(114, 114, 114, 0.15);
    color: #fff;
}

@media (max-width: 900px) {
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .steps-grid {
        grid-template-columns: 1fr;
    }
}

.footer {
    background: #0a0a0a;
    border-top: 1px solid var(--border);
    padding: 0;
    margin-top: 2rem;
}

.footer .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2.5rem;
}

@media (max-width: 640px) {
    .footer .container {
        padding: 0 1.25rem;
    }
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    padding: 2.5rem 0 2rem;
    align-items: start;
}

.footer-brand {
    max-width: 520px;
    padding-top: 1.95rem;
}

.footer-logo {
    width: 64px;
    height: auto;
    margin-bottom: 0.5rem;
    display: block;
}

.footer-brand-name {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.footer-desc {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
    white-space: nowrap;
}

.footer-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem 3rem;
    justify-self: end;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-col-title {
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0 0 0.5rem 0;
}

.footer-link {
    display: inline-flex;
    text-decoration: none;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--green);
}

.footer-link-inner {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.footer-link .fa-fw {
    width: 1em;
    text-align: center;
    color: rgba(29, 78, 216, 0.9);
    transition: color 0.2s ease;
}

.footer-link:hover .fa-fw {
    color: var(--green);
}

.footer-link .footer-num {
    margin-left: 0.2rem;
    color: var(--green);
    font-weight: 600;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.25rem 0;
    border-top: 1px solid var(--border);
}

.footer-copy {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

.footer-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    align-items: center;
}

.footer-action-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.35rem 0;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.footer-action-link:hover {
    color: var(--green);
}

.footer-action-link i {
    color: rgba(29, 78, 216, 0.9);
}

.footer-num {
    color: var(--green);
    font-weight: 600;
}

@media (max-width: 768px) {
    .footer-top {
        grid-template-columns: 1fr;
    }

    .footer-desc {
        white-space: normal;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-columns {
        gap: 1.5rem 2rem;
    }
}

/* Jengitilat – sijaintikortit (kuten palvelimen vihjeet) */
.tptilat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.tptila-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--borderRadius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tptila-card-header {
    padding: 1rem 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    background: rgba(26, 26, 26, 0.02);
    border-bottom: 1px solid var(--border);
    flex: 0 0 auto;
}

.tptila-card-slider {
    flex: 0 0 auto;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.tptila-card-preview .tptila-card-slider {
    line-height: 0;
}

.tptilat-track {
    display: flex;
    width: 100%;
    background: #0d0d0d;
    transition: transform 0.5s ease;
}

.tptilat-slide {
    flex: 0 0 100%;
    flex-shrink: 0;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.tptilat-slide img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    margin: 0;
    padding: 0;
}

.tptilat-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
}

.tptilat-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: var(--border);
    cursor: pointer;
    padding: 0;
    transition: background 0.2s ease, transform 0.2s ease;
}

.tptilat-dot:hover {
    background: rgba(29, 78, 216, 0.4);
}

.tptilat-dot.is-active {
    background: var(--green);
    transform: scale(1.2);
}

@media (max-width: 900px) {
    .tptilat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .tptilat-grid {
        grid-template-columns: 1fr;
    }
}

/* Etusivun Jengitilat esikatselu */
#tptilat-esikatselu {
    background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(10, 10, 10, 0.98) 100%);
}

.tptilat-preview-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.tptilat-preview-boxes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    max-width: 800px;
    justify-self: end;
}

.tptila-card-preview {
    border-color: var(--border);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    transition: border-color 0.2s ease;
}

.tptila-card-preview .tptila-card-header {
    padding: 0.85rem 1.25rem;
    font-size: 0.95rem;
    color: var(--text);
    border-bottom-color: var(--border);
}

.tptila-card-preview .tptilat-slide {
    aspect-ratio: 16 / 10;
}

.tptila-card-preview .tptilat-dots {
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.2);
}

.tptila-card-preview .tptilat-track {
    border-radius: 0;
}

.tptilat-preview-text {
    padding-right: 1rem;
}

.tptilat-preview-text .section-title {
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
}

.tptilat-preview-text p {
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    line-height: 1.6;
    font-size: 1rem;
}

.tptilat-preview-link {
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: gap 0.2s ease;
}

.tptilat-preview-link:hover {
    gap: 0.5rem;
}

.tptilat-preview-link i {
    font-size: 0.85em;
}

@media (max-width: 768px) {
    .tptilat-preview-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .tptilat-preview-text {
        order: 1;
        text-align: center;
        padding-right: 0;
    }
    .tptilat-preview-boxes {
        max-width: 100%;
        order: 2;
        justify-self: center;
        grid-template-columns: 1fr;
    }
}

.tpslider-draggable {
    cursor: grab;
}

.tpslider-draggable:active {
    cursor: grabbing;
}

/* Lasekisat – turnausbracket (fontit periytyvät bodysta) */
.page-lasekisat button,
.page-lasekisat input,
.page-lasekisat select,
.page-lasekisat .lasekisat-btn {
    font-family: inherit;
}

.page-lasekisat .page-lead {
    margin-bottom: 1rem;
}

.page-lasekisat .container-wide {
    overflow-x: hidden;
}

.lasekisat-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.lasekisat-stat-card {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    padding: 0.75rem 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--borderRadius);
}

.lasekisat-stat-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--green);
}

.lasekisat-stat-label {
    font-size: 1rem;
    color: var(--text-muted);
}

.lasekisat-format {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--borderRadius);
}

.lasekisat-format-label {
    font-size: 1rem;
    color: var(--text-muted);
}

.lasekisat-dropdown {
    position: relative;
}

.lasekisat-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 1rem;
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text);
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--borderRadius);
    cursor: pointer;
    min-width: 150px;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.lasekisat-dropdown-trigger:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(29, 78, 216, 0.4);
}

.lasekisat-dropdown.is-open .lasekisat-dropdown-trigger {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--green);
}

.lasekisat-dropdown-value {
    flex: 1;
    text-align: left;
}

.lasekisat-dropdown-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
}

.lasekisat-dropdown-icon {
    font-size: 0.7rem;
    color: var(--text-muted);
    transition: transform 0.2s ease;
}

.lasekisat-dropdown.is-open .lasekisat-dropdown-icon {
    transform: rotate(180deg);
}

.lasekisat-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0.3rem;
    min-width: 100%;
    background: #0f0f0f;
    border: 1px solid var(--border);
    border-radius: var(--borderRadius);
    padding: 0.35rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    z-index: 50;
    overflow: hidden;
}

.lasekisat-dropdown-menu[hidden] {
    display: none !important;
}

.lasekisat-dropdown-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    font-weight: 500;
    text-align: left;
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    border-radius: 6px;
    transition: color 0.2s ease, background 0.2s ease;
}

.lasekisat-dropdown-option:hover {
    background: rgba(255, 255, 255, 0.06);
}

.lasekisat-dropdown-option span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.lasekisat-dropdown-option:hover span {
    color: var(--text-muted);
}

.lasekisat-controls {
    margin-bottom: 2rem;
}

.lasekisat-teams-hint {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0 0 1rem;
}

.lasekisat-add-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.lasekisat-teams-row {
    margin-top: 0.5rem;
}

.lasekisat-team-limit {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.lasekisat-teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.lasekisat-team-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--borderRadius);
    padding: 1rem;
}

.lasekisat-team-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.lasekisat-team-name-input {
    flex: 1;
    min-width: 0;
    padding: 0.5rem 0.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
}

.lasekisat-team-name-input:focus {
    outline: none;
    border-color: var(--green);
}

.lasekisat-team-card-players {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.lasekisat-team-player-input {
    padding: 0.4rem 0.6rem;
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid transparent;
    border-radius: 6px;
    color: var(--text);
}

.lasekisat-team-player-input:focus {
    outline: none;
    border-color: rgba(29, 78, 216, 0.5);
}

.lasekisat-team-remove {
    padding: 0.2rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 4px;
    transition: color 0.2s ease, background 0.2s ease;
}

.lasekisat-team-remove:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.lasekisat-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.5rem 0 2rem;
}

.lasekisat-btn-shuffle {
    background: rgba(168, 85, 247, 0.2);
    color: #a855f7;
}

.lasekisat-btn-shuffle:hover {
    background: rgba(168, 85, 247, 0.3);
}

.lasekisat-btn-save {
    background: rgba(29, 78, 216, 0.2);
    color: var(--green);
}

.lasekisat-btn-save:hover {
    background: rgba(29, 78, 216, 0.3);
}

.lasekisat-btn-history {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
}

.lasekisat-btn-history:hover {
    border-color: var(--green);
}

.lasekisat-btn-clear {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.lasekisat-btn-clear:hover {
    background: rgba(239, 68, 68, 0.25);
}

.lasekisat-history-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.lasekisat-history-modal[hidden] {
    display: none !important;
}

.lasekisat-history-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
}

.lasekisat-history-content {
    position: relative;
    z-index: 1;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--borderRadius);
    padding: 1.5rem;
    max-width: 420px;
    width: 100%;
    max-height: 80vh;
    overflow: auto;
    font-family: inherit;
}

.lasekisat-history-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.lasekisat-history-desc {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.lasekisat-history-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.lasekisat-history-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    border-radius: var(--borderRadius);
    color: var(--text);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.lasekisat-history-item:hover {
    border-color: var(--green);
    background: rgba(255, 255, 255, 0.06);
}

.lasekisat-history-item-label {
    font-weight: 600;
}

.lasekisat-history-item-summary {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.lasekisat-history-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.lasekisat-history-empty {
    color: var(--text-muted);
    font-size: 1rem;
    padding: 1rem 0;
}

/* Confirm modal */
.lasekisat-confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 101;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.lasekisat-confirm-modal[hidden] {
    display: none !important;
}

.lasekisat-confirm-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
}

.lasekisat-confirm-content {
    position: relative;
    z-index: 1;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--borderRadius);
    padding: 1.5rem;
    max-width: 360px;
    width: 100%;
}

.lasekisat-confirm-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.lasekisat-confirm-desc {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.lasekisat-confirm-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.lasekisat-btn-confirm,
.lasekisat-btn-cancel {
    padding: 0.6rem 1.25rem;
    font-size: 1.05rem;
    font-weight: 600;
    font-family: inherit;
}

.lasekisat-btn-confirm {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.35);
}

.lasekisat-btn-confirm:hover {
    background: rgba(239, 68, 68, 0.3);
}

.lasekisat-btn-cancel {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
}

.lasekisat-btn-cancel:hover {
    border-color: var(--green);
}

.lasekisat-input {
    padding: 0.6rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--borderRadius);
    color: var(--text);
    min-width: 200px;
}

.lasekisat-input:focus {
    outline: none;
    border-color: var(--green);
}

.lasekisat-btn {
    padding: 0.6rem 1.25rem;
    font-size: 1.05rem;
    font-weight: 600;
    font-family: inherit;
    border: none;
    border-radius: var(--borderRadius);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.lasekisat-btn-add {
    background: var(--green);
    color: #fff;
}

.lasekisat-btn-add:hover {
    background: #2d5fff;
}

.lasekisat-btn-match {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
}

.lasekisat-btn-match:hover {
    border-color: var(--green);
}

.lasekisat-bracket {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: flex-start;
}

.lasekisat-round {
    flex: 1 1 240px;
    min-width: 240px;
    max-width: 100%;
}

.lasekisat-round-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.lasekisat-matches {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.lasekisat-match {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--borderRadius);
    min-width: 0;
    flex-wrap: wrap;
}

.lasekisat-participant {
    flex: 1;
    min-width: 0;
}

.lasekisat-match .lasekisat-team {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex: 1 1 80px;
    min-width: 80px;
    max-width: 50%;
}

.lasekisat-match .lasekisat-team .lasekisat-match-input {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.lasekisat-match-input {
    padding: 0.6rem 0.85rem;
    font-size: 1.05rem;
    font-family: inherit;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid transparent;
    border-radius: 6px;
    color: var(--text);
    min-height: 2.25rem;
}

.lasekisat-match-input:focus {
    outline: none;
    border-color: rgba(29, 78, 216, 0.5);
}

.lasekisat-vs {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    flex-shrink: 0;
}

.lasekisat-winner-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    margin-left: auto;
}

.lasekisat-winner-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
}

.lasekisat-winner-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text);
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--borderRadius);
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.lasekisat-winner-trigger:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(29, 78, 216, 0.4);
}

.lasekisat-winner-wrap.is-open .lasekisat-winner-trigger {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--green);
}

.lasekisat-winner-text {
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lasekisat-winner-chevron {
    font-size: 0.65rem;
    color: var(--text-muted);
    transition: transform 0.2s ease;
}

.lasekisat-winner-wrap.is-open .lasekisat-winner-chevron {
    transform: rotate(180deg);
}

.lasekisat-winner-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.3rem;
    min-width: 120px;
    max-width: 200px;
    width: max-content;
    background: #0f0f0f;
    border: 1px solid var(--border);
    border-radius: var(--borderRadius);
    padding: 0.35rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    z-index: 99999;
    overflow: visible;
}

.lasekisat-winner-dropdown[hidden] {
    display: none !important;
}

.lasekisat-winner-option {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: left;
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    border-radius: 6px;
    transition: color 0.2s ease, background 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.lasekisat-winner-option:hover {
    background: rgba(255, 255, 255, 0.06);
}


.lasekisat-winner-value {
    display: none;
}

.lasekisat-match-remove {
    padding: 0.35rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 6px;
    transition: color 0.2s ease, background 0.2s ease;
}

.lasekisat-match-remove:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

/* Auth overlay – Discord OAuth gate */
.auth-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0a0a0a;
}

.auth-overlay.auth-overlay-hidden {
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.auth-overlay-inner {
    text-align: center;
    padding: 2rem;
    max-width: 400px;
}

.auth-overlay-loading,
.auth-overlay-connect,
.auth-overlay-denied {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.auth-overlay-loading i,
.auth-overlay-connect i,
.auth-overlay-denied i {
    font-size: 3rem;
    color: var(--green);
}

.auth-overlay-denied i {
    color: #ef4444;
}

.auth-overlay h2 {
    font-size: 1.5rem;
    margin: 0;
}

.auth-overlay p {
    color: var(--text-muted);
    margin: 0;
}

.auth-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--borderRadius);
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.auth-btn-discord {
    background: #5865f2;
    color: #fff;
}

.auth-btn-discord:hover {
    background: #4752c4;
}

.auth-btn-logout {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
}

.auth-btn-logout:hover {
    border-color: var(--green);
    color: var(--green);
}

/* Jesse-sivu: kuvat + videot */
.jesse-page .page-lead code {
    font-size: 0.9em;
    background: rgba(255, 255, 255, 0.06);
    padding: 0.15em 0.45em;
    border-radius: 6px;
    color: var(--green);
}

.jesse-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
    align-items: start;
}

.jesse-item-image {
    margin: 0;
    border-radius: var(--borderRadius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow-md);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.jesse-item-image:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.jesse-thumb-btn {
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    background: #111;
    cursor: zoom-in;
    line-height: 0;
}

.jesse-thumb-btn img {
    width: 100%;
    height: auto;
    vertical-align: middle;
    object-fit: contain;
    aspect-ratio: 4 / 3;
    display: block;
}

.jesse-item-video {
    grid-column: 1 / -1;
    max-width: 920px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    border-radius: var(--borderRadius);
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.jesse-video-wrap {
    position: relative;
    background: #000;
    line-height: 0;
}

.jesse-item-video video {
    width: 100%;
    max-height: min(70vh, 520px);
    display: block;
    margin: 0 auto;
}

.jesse-caption {
    margin: 0;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
}

.jesse-empty {
    grid-column: 1 / -1;
    color: var(--text-muted);
    padding: 2rem;
    text-align: center;
    background: var(--surface);
    border: 1px dashed var(--border);
    border-radius: var(--borderRadius);
}

.jesse-empty code {
    font-size: 0.9em;
    color: var(--green);
}

.jesse-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    cursor: zoom-out;
}

.jesse-lightbox img {
    max-width: min(96vw, 1400px);
    max-height: 92vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    cursor: default;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
}

.jesse-lightbox-close {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1001;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: var(--borderRadius);
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: background 0.2s, color 0.2s;
}

.jesse-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--green);
}

