:root {
    --pm-bg: #0d1020;
    --pm-surface: #181b33;
    --pm-accent: #ffd866;
    --pm-accent-2: #ff8ed8;
    --pm-accent-3: #9ca8ff;
    --pm-text: #f0f3ff;
    --pm-nav-height: 64px;
    --pm-footer-height: 74px;
    --pm-cookie-bottom: 0px;
}

body {
    background:
        radial-gradient(circle at 14% 5%, rgba(255, 145, 216, 0.16), transparent 32%),
        radial-gradient(circle at 85% 4%, rgba(153, 168, 255, 0.20), transparent 36%),
        radial-gradient(circle at 50% 100%, rgba(255, 216, 102, 0.12), transparent 30%),
        linear-gradient(180deg, #0e1227 0%, var(--pm-bg) 42%, #0a0d1d 100%);
    color: var(--pm-text);
    position: relative;
    overflow-x: hidden;
}

.pokemon-theme-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.pokemon-theme-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 8% 18%, rgba(255, 216, 102, 0.08), transparent 26%),
        radial-gradient(circle at 92% 24%, rgba(255, 142, 216, 0.07), transparent 28%),
        radial-gradient(circle at 50% 86%, rgba(156, 168, 255, 0.09), transparent 34%);
}

.pokemon-theme-bg .pkm-bg-sprite {
    position: absolute;
    left: var(--x, 50%);
    top: var(--y, 50%);
    width: var(--size, 84px);
    height: var(--size, 84px);
    object-fit: contain;
    opacity: 0.16;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.35));
    transform: translate(-50%, -50%);
    animation: pkm-bg-float var(--duration, 18s) ease-in-out infinite;
    animation-delay: var(--delay, 0s);
}

@keyframes pkm-bg-float {
    0% { transform: translate(-50%, -50%) translateY(0px) scale(1); }
    50% { transform: translate(-50%, -50%) translateY(-12px) scale(1.03); }
    100% { transform: translate(-50%, -50%) translateY(0px) scale(1); }
}

#siteNavbar,
main.container,
#siteFooter,
.cookie-banner {
    position: relative;
    z-index: 1;
}

.navbar-brand {
    letter-spacing: 0.08em;
}

.brand-logo {
    border-radius: 50%;
    filter: drop-shadow(0 0 8px rgba(255, 141, 216, 0.35));
}

.navbar {
    border-bottom-color: rgba(255, 255, 255, 0.12) !important;
}

.navbar .nav-link {
    color: #e9edff;
    font-size: 0.95rem;
    line-height: 1.2;
    padding: 0.52rem 0.7rem;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    transition: color 0.18s ease, border-color 0.18s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.navbar .nav-link i {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.navbar .dropdown-menu {
    background: rgba(13, 16, 32, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.35rem 0;
}

.navbar .dropdown-item {
    color: #e9edff;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.navbar .dropdown-item i {
    font-size: 1rem;
    flex-shrink: 0;
}

.navbar .dropdown-item:hover {
    background: rgba(255, 216, 102, 0.15);
    color: #ffd866;
}

.navbar .dropdown-item.active {
    background: rgba(255, 216, 102, 0.2);
    color: #ffd866;
}

.navbar .nav-link:hover {
    color: #ffd866;
    border-bottom-color: rgba(255, 216, 102, 0.5);
}

.navbar .nav-link.active,
.navbar .show > .nav-link {
    color: #ffd866;
    background: transparent;
    border-bottom-color: #ffd866;
    box-shadow: none;
}

.nav-bell-link.active {
    box-shadow: none !important;
}

.user-nav-dropdown .dropdown-toggle.active,
.user-nav-dropdown .dropdown-toggle.show {
    box-shadow: none !important;
}

.user-nav-dropdown .dropdown-toggle.active .nav-avatar-wrap,
.user-nav-dropdown .dropdown-toggle.show .nav-avatar-wrap {
    width: 36px;
    height: 36px;
}

.nav-bell-link {
    min-width: 40px;
    padding-left: 0.7rem !important;
    padding-right: 0.7rem !important;
    text-align: center;
}

.nav-bell-link .bi {
    font-size: 1rem;
}

.user-nav-dropdown .dropdown-toggle {
    font-size: 0.95rem;
    line-height: 1.2;
    padding: 0.52rem 0.7rem !important;
    gap: 0.45rem !important;
}

.notif-badge {
    position: absolute;
    top: 0.06rem;
    right: 0.02rem;
    min-width: 1rem;
    height: 1rem;
    padding: 0 0.22rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 1;
    color: #0f1428;
    background: linear-gradient(145deg, #ffd866, #ff8ed8);
    box-shadow: 0 6px 14px rgba(255, 142, 216, 0.34);
}

.user-nav-dropdown .dropdown-toggle::after {
    margin-left: 0.15rem;
}

.nav-avatar-wrap {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    background: linear-gradient(145deg, rgba(255, 216, 102, 0.9), rgba(255, 142, 216, 0.82));
    box-shadow: 0 8px 18px rgba(255, 142, 216, 0.26);
}

.nav-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: #0f1428;
}

.nav-username {
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-dropdown-menu {
    min-width: 260px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(23, 28, 53, 0.98), rgba(12, 16, 31, 0.98));
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.32);
}

.profile-dropdown-menu .dropdown-item {
    color: #eef2ff;
}

.profile-dropdown-menu .dropdown-item:hover,
.profile-dropdown-menu .dropdown-item:focus,
.profile-dropdown-menu .dropdown-item.active {
    color: #0f1428;
    background: linear-gradient(135deg, rgba(255, 216, 102, 0.96), rgba(156, 168, 255, 0.88));
}

.profile-dropdown-menu .dropdown-divider {
    border-top-color: rgba(255, 255, 255, 0.12);
}

.card {
    border-color: #323966;
    background: linear-gradient(165deg, #181d3b 0%, #10152c 65%, #0f1326 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.cookie-banner {
    position: fixed;
    bottom: var(--pm-cookie-bottom);
    left: 0;
    right: 0;
    z-index: 1030;
}

.hero-surface {
    background:
        radial-gradient(circle at 15% 16%, rgba(255, 142, 216, 0.32), transparent 46%),
        radial-gradient(circle at 76% 12%, rgba(156, 168, 255, 0.27), transparent 40%),
        linear-gradient(145deg, #11173a 0%, #1b2650 56%, #11162f 100%);
    border: 1px solid #38498a;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.hero-panel {
    border: 1px solid #405190;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
}

.duo-panel {
    position: relative;
    overflow: hidden;
}

.duo-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 576px) {
    .duo-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.duo-card {
    border: 1px solid rgba(255, 255, 255, 0.20);
    min-height: 112px;
    backdrop-filter: blur(4px);
}

.duo-card h3 {
    color: #fff;
}

.duo-card p {
    color: rgba(255, 255, 255, 0.85);
}

.duo-mew {
    background: linear-gradient(145deg, rgba(255, 143, 216, 0.40), rgba(255, 143, 216, 0.12));
}

.duo-mewtwo {
    background: linear-gradient(145deg, rgba(156, 168, 255, 0.44), rgba(156, 168, 255, 0.12));
}

.pkm-card {
    border: 1px solid #2f3847;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.pkm-card:hover {
    transform: translateY(-3px);
    border-color: var(--pm-accent);
}

.pkm-sprite {
    width: 96px;
    height: 96px;
    object-fit: contain;
}

.pkm-sprite-lg {
    width: 150px;
    height: 150px;
    object-fit: contain;
}

.pkm-sprite-sm {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.pokedex-page-head p {
    font-size: 0.92rem;
}

.pokedex-hub-head p {
    font-size: 0.95rem;
}

.pokedex-hub-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
    border-radius: 0.9rem;
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.pokedex-hub-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 216, 102, 0.6);
    box-shadow: 0 12px 26px rgba(3, 8, 26, 0.28);
}

.pokedex-hub-card--national {
    background:
        radial-gradient(circle at 78% 15%, rgba(255, 216, 102, 0.16), transparent 30%),
        linear-gradient(150deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.018));
}

.pokedex-hub-sprite {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.pokedex-hub-sprite-sm {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.pokedex-filter-card {
    border-color: rgba(255, 255, 255, 0.08);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
}

.pokedex-dex-switch {
    border-color: rgba(255, 255, 255, 0.08);
    background: linear-gradient(145deg, rgba(255, 216, 102, 0.08), rgba(255, 255, 255, 0.02));
}

.pokedex-dex-switch .btn {
    border-radius: 999px;
    padding: 0.26rem 0.72rem;
    font-size: 0.8rem;
}

.pokedex-results .alert {
    margin-bottom: 0;
}

.pokedex-grid {
    --bs-gutter-x: 0.75rem;
    --bs-gutter-y: 0.75rem;
}

.pokedex-card-sprite-wrap {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pokedex-card-title {
    min-height: 2.4rem;
    line-height: 1.1;
}

.pokedex-detail-sidebar {
    border-color: rgba(255, 255, 255, 0.08);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
    top: 80px;
    border-radius: 0.8rem;
    box-shadow: 0 10px 30px rgba(4, 8, 24, 0.28);
}

.pokedex-detail-sidebar .card-body {
    padding: 0.85rem;
}

.pokedex-detail-sidebar-sprite {
    width: 96px;
    height: 96px;
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.25));
}

.pokedex-detail-sidebar-name {
    margin: 0.5rem 0 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #f8f9ff;
}

.pokedex-detail-sidebar-sub {
    margin: 0.1rem 0 0;
    font-size: 0.76rem;
    color: #8f99c8;
}

.pokedex-detail-sidebar-types {
    margin-top: 0.5rem;
}

.pokedex-detail-menu {
    border: 0;
    margin-top: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
    padding: 0;
}

.pokedex-detail-menu li {
    list-style: none;
}

.pokedex-detail-menu .list-group-item {
    border-color: rgba(255, 255, 255, 0.08);
    color: #d7dbee;
    padding: 0.38rem 0.55rem;
    font-size: 0.9rem;
    border-radius: 0.5rem;
    line-height: 1.2;
    transition: all 0.18s ease;
}

.pokedex-detail-menu .list-group-item:hover,
.pokedex-detail-menu .list-group-item.active {
    color: var(--pm-accent, #ffd866);
    border-left: 2px solid var(--pm-accent, #ffd866);
    padding-left: calc(0.55rem - 2px);
    background: linear-gradient(95deg, rgba(255, 216, 102, 0.18), rgba(255, 216, 102, 0.04));
}

.pokedex-detail-panel .card-header {
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.08);
}

.pokedex-detail-panel .card-header h2 {
    color: #ffd866;
    margin-bottom: 0;
}

.pokedex-detail-header {
    padding: 0.62rem 0.75rem;
    border-bottom: 1px solid rgba(255, 216, 102, 0.24);
    margin-bottom: 0;
    background: linear-gradient(90deg, rgba(255, 216, 102, 0.05), rgba(255, 216, 102, 0));
}

.pokedex-detail-header h2 {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #ffd866;
}

@media (max-width: 991.98px) {
    .pokedex-detail-sidebar {
        position: static !important;
        top: auto !important;
    }
}

.pokedex-detail-hero {
    border-color: rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(circle at top right, rgba(255, 216, 102, 0.16), transparent 34%),
        linear-gradient(160deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
    border-radius: 0.8rem;
}

.pokedex-detail-sprite {
    width: 132px;
    height: 132px;
}

.pokedex-hero-artwork {
    width: 300px;
    height: 300px;
    object-fit: contain;
    max-width: 100%;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
}

.pokedex-title-bar {
    border-radius: 0.55rem;
    padding: 0.3rem 0.65rem;
    border: 2px solid rgba(154, 205, 50, 0.9);
    background: rgba(154, 205, 50, 0.06);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    display: inline-block;
    max-width: 100%;
}

.pokedex-title-bar h1 {
    color: #f5ffe6;
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.pokedex-hero-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.pokedex-name-stack {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    font-size: 0.76rem;
    color: #c9d1f2;
    text-align: right;
}

.pokedex-name-stack-label {
    color: #95c84a;
    font-weight: 700;
    font-size: 0.68rem;
    margin-right: 0.2rem;
}

.pokedex-hero-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.pokedex-hero-toolbar-slot {
    flex: 1 1 0;
    min-width: 180px;
}

.pokedex-hero-toolbar-slot--center {
    display: flex;
    justify-content: center;
}

.pokedex-hero-toolbar-slot--right {
    display: flex;
    justify-content: flex-end;
}

.pokedex-name-chip {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 0.25rem;
    overflow: hidden;
    min-width: 240px;
}

.pokedex-name-chip-label {
    background: #56b94d;
    color: #f2fff1;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.36rem 0.6rem;
}

.pokedex-name-chip-value {
    padding: 0.36rem 0.65rem;
    color: #d5dbff;
    font-size: 0.86rem;
}

.pokedex-search-form {
    width: min(100%, 360px);
}

.pokedex-name-chip-input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    outline: none;
    background: transparent;
    color: #d5dbff;
    font-size: 0.9rem;
    padding: 0.36rem 0.65rem;
}

.pokedex-name-chip-input::placeholder {
    color: #98a3d2;
}

.pokedex-next-card {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 0.35rem;
    padding: 0.4rem 0.7rem;
    color: #f0f3ff;
    background: rgba(255, 255, 255, 0.03);
}

.pokedex-next-card:hover {
    color: #fff;
    border-color: rgba(154, 205, 50, 0.8);
    background: rgba(154, 205, 50, 0.1);
}

.pokedex-next-card-text {
    font-size: 0.95rem;
    font-weight: 600;
}

.pokedex-next-card-sprite {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.pokedex-next-card-arrow {
    font-size: 1.05rem;
    line-height: 1;
}

.pokedex-next-card--prev {
    justify-content: flex-start;
}

.pokedex-detail-panel {
    border-color: rgba(255, 255, 255, 0.08);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
    border-radius: 0.8rem;
    box-shadow: 0 8px 24px rgba(3, 8, 26, 0.24);
}

.pokedex-detail-panel .card-body,
.pokedex-detail-hero .card-body {
    padding: 0.75rem;
}

.pokedex-detail-data {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem 0.75rem;
}

.pokedex-detail-data div {
    min-width: 0;
}

.pokedex-detail-data dt {
    margin: 0 0 0.15rem;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ea8d4;
}

.pokedex-detail-data dd {
    margin: 0;
    font-size: 0.88rem;
    color: #f2f4ff;
}

.pokedex-detail-entry {
    border-color: rgba(255, 255, 255, 0.06) !important;
    background: rgba(255, 255, 255, 0.01);
    padding: 0.6rem !important;
    border-radius: 0.6rem !important;
}

.pokedex-stat-table th,
.pokedex-stat-table td {
    font-size: 0.82rem;
    white-space: nowrap;
}

.pokedex-stat-table thead th {
    color: #dce2ff;
    border-color: rgba(255, 255, 255, 0.12);
}

.pokedex-stat-table tbody td {
    border-color: rgba(255, 255, 255, 0.08);
}

.pokedex-stat-bar-col {
    min-width: 190px;
    width: 34%;
}

.pokedex-stat-bar {
    background-color: rgba(255, 255, 255, 0.06);
}

.pokedex-stat-notice {
    border: 1px solid rgba(220, 53, 69, 0.35);
    background: rgba(220, 53, 69, 0.08);
    border-radius: 0.45rem;
    overflow: hidden;
}

.pokedex-stat-notice-title {
    background: rgba(220, 53, 69, 0.16);
    color: #ffb8bf;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.45rem 0.7rem;
    border-bottom: 1px solid rgba(220, 53, 69, 0.25);
}

.pokedex-stat-notice ul {
    margin: 0;
    padding: 0.55rem 1.2rem 0.65rem;
}

.pokedex-stat-notice li {
    color: #f2d6d9;
    font-size: 0.82rem;
}

.pokedex-type-effectiveness {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.45rem 0;
}

.pokedex-type-row {
    padding: 0.15rem 0;
}

.pokedex-type-label {
    min-width: 52px;
    font-weight: 700;
}

.pokedex-type-notice {
    border: 1px solid rgba(255, 193, 7, 0.4);
    background: rgba(255, 193, 7, 0.08);
    border-radius: 0.45rem;
    overflow: hidden;
}

.pokedex-type-notice-title {
    background: rgba(255, 193, 7, 0.16);
    color: #ffe3a0;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.45rem 0.7rem;
    border-bottom: 1px solid rgba(255, 193, 7, 0.25);
}

.pokedex-type-notice ul {
    margin: 0;
    padding: 0.55rem 1.2rem 0.65rem;
}

.pokedex-type-notice li {
    color: #f0e3c2;
    font-size: 0.82rem;
}

.pokedex-move-group {
    border-color: rgba(255, 255, 255, 0.08) !important;
    background:
        radial-gradient(circle at top right, rgba(156, 168, 255, 0.08), transparent 28%),
        rgba(255, 255, 255, 0.02);
    border-radius: 0.8rem !important;
}

.pokedex-move-filters {
    padding: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.02);
}

.pokedex-move-filters .form-select {
    border-color: rgba(255, 255, 255, 0.1);
    background-color: rgba(15, 23, 42, 0.75);
    color: #f2f4ff;
}

.pokedex-move-group-head {
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pokedex-move-group-title {
    font-size: 1rem;
    color: #f2f4ff;
}

.pokedex-move-method-block + .pokedex-move-method-block {
    padding-top: 0.15rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.05);
}

.pokedex-move-method-title {
    font-size: 0.76rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #9ea8d4;
}

.pokedex-move-card {
    border-color: rgba(255, 255, 255, 0.06) !important;
    background: rgba(255, 255, 255, 0.02);
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.pokedex-move-card:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 216, 102, 0.35) !important;
    background: rgba(255, 216, 102, 0.05);
    box-shadow: 0 8px 18px rgba(3, 8, 26, 0.2);
}

.pokedex-move-method-block {
    max-width: none;
}

.pmc-single-table {
    max-width: 480px;
}

.pmc-game-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 480px));
    gap: 1.25rem;
    justify-content: center;
    align-items: start;
}

.pmc-game-row > .pmc-game-sub {
    width: 100%;
    min-width: 0;
    max-width: 480px;
}

.pmc-game-row > .pmc-game-sub:nth-child(odd):last-child {
    grid-column: 1 / -1;
    justify-self: center;
}

.pokedex-move-card--compact {
    padding: 0.2rem 0.5rem !important;
    border-radius: 0.35rem !important;
    gap: 0.3rem;
    font-size: 0.77rem;
    overflow: hidden;
}

.pokedex-move-colheader {
    gap: 0.3rem;
    padding: 0.05rem 0.5rem 0.18rem;
    font-size: 0.63rem;
    color: rgba(255, 255, 255, 0.3);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    user-select: none;
}

.pmc-lv {
    width: 24px;
    flex-shrink: 0;
    text-align: right;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 600;
}

.pmc-name {
    flex-grow: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pmc-type {
    width: 68px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.pmc-cat {
    width: 40px;
    flex-shrink: 0;
    text-align: center;
    font-size: 0.69rem;
    color: rgba(255, 255, 255, 0.5);
}

.pmc-stat {
    width: 30px;
    flex-shrink: 0;
    text-align: right;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
}

.pmc-game-sub {
    margin-bottom: 0.6rem;
}

.pmc-game-label {
    font-size: 0.63rem;
    font-weight: 700;
    color: rgba(255, 216, 102, 0.75);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.1rem 0.5rem;
    margin-bottom: 0.15rem;
}

@media (max-width: 767.98px) {
    .pokedex-move-group {
        padding: 0.85rem !important;
    }

    .pmc-game-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .pmc-game-row > .pmc-game-sub:nth-child(odd):last-child {
        grid-column: auto;
        justify-self: stretch;
    }
}

.pokedex-detail-evo {
    border-color: rgba(255, 255, 255, 0.06) !important;
    background: rgba(255, 255, 255, 0.01);
    padding: 0.6rem !important;
    gap: 0.75rem !important;
    border-radius: 0.6rem !important;
}

.pokedex-detail-evo-arrow {
    color: #ffd866;
    opacity: 0.85;
}

/* ─── Bisafans-Style Evolution Chain ─── */

.evo-chain {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.evo-chain-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    justify-content: center;
    padding: 0.6rem 0.5rem;
    border-radius: 0.7rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.evo-chain-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.evo-chain-stage-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    text-decoration: none;
    color: #d7dbee;
    padding: 0.4rem 0.55rem;
    border-radius: 0.6rem;
    transition: background 0.15s ease, color 0.15s ease;
    min-width: 170px;
    position: relative;
}

.evo-chain-stage-link:hover {
    background: rgba(255, 216, 102, 0.1);
    color: #ffd866;
}

.evo-chain-stage--current .evo-chain-stage-link {
    background: rgba(255, 216, 102, 0.14);
    color: #ffd866;
    box-shadow: 0 0 0 1px rgba(255, 216, 102, 0.35);
}

.evo-chain-sprite {
    width: 150px;
    height: 150px;
    object-fit: contain;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.3));
}

.evo-chain-number {
    font-size: 0.64rem;
    color: #8f99c8;
    line-height: 1;
}

.evo-chain-name {
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
}

.evo-chain-matrix-icon {
    position: absolute;
    top: 0.35rem;
    right: 0.35rem;
    font-size: 0.82rem;
    color: #ffd866;
    background: rgba(9, 15, 35, 0.7);
    border: 1px solid rgba(255, 216, 102, 0.35);
    border-radius: 0.35rem;
    width: 1.3rem;
    height: 1.3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Transition block: icon top / label middle / arrow bottom — like Bisafans */
.evo-chain-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.12rem;
    padding: 0 0.5rem;
    min-width: 54px;
    flex-shrink: 0;
    align-self: center;
}

.evo-chain-trigger-icon {
    font-size: 0.9rem;
    color: #9ea8d4;
    line-height: 1;
}

.evo-chain-label {
    font-size: 0.68rem;
    font-weight: 700;
    color: #c8cff0;
    text-align: center;
    max-width: 140px;
    line-height: 1.2;
    display: block;
}

.eevee-board {
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
}

.eevee-board-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    align-items: start;
}

.eevee-board-center {
    display: flex;
    justify-content: center;
}

.eevee-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.eevee-node-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    text-decoration: none;
    color: #d7dbee;
}

.eevee-node-link:hover {
    color: #fff;
}

.eevee-node-art {
    width: 150px;
    height: 150px;
    object-fit: contain;
}

.eevee-node-name {
    color: #98cc2f;
    font-size: 1.05rem;
    font-weight: 500;
    text-align: center;
}

.eevee-node--center .eevee-node-art {
    width: 170px;
    height: 170px;
}

.eevee-node--center .eevee-node-name {
    font-size: 1.25rem;
}

.eevee-node-conditions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    min-height: 3rem;
}

.eevee-node-conditions--up {
    margin-top: 0.15rem;
}

.eevee-node-conditions--down {
    order: -1;
    margin-bottom: 0.15rem;
}

.eevee-cond-line {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #d2d8f5;
    font-size: 0.78rem;
    line-height: 1.2;
    text-align: center;
}

.eevee-cond-line i {
    color: #a9b4e4;
    font-size: 0.84rem;
}

.eevee-cond-line--dir i {
    color: #dfe5ff;
    font-size: 0.95rem;
}

@media (max-width: 767.98px) {
    .pokedex-title-bar h1 {
        font-size: 1.2rem;
    }

    .pokedex-hero-head {
        flex-direction: column;
        gap: 0.4rem;
    }

    .pokedex-name-stack {
        text-align: left;
    }

    .pokedex-hero-toolbar-slot {
        flex-basis: 100%;
    }

    .pokedex-hero-toolbar-slot--right,
    .pokedex-hero-toolbar-slot--center {
        justify-content: center;
    }

    .pokedex-name-chip {
        min-width: 0;
        width: 100%;
    }

    .pokedex-next-card {
        width: 100%;
        justify-content: center;
    }

    .pokedex-hero-artwork {
        width: 220px;
        height: 220px;
    }

    .evo-chain-stage-link {
        min-width: 140px;
    }

    .evo-chain-sprite {
        width: 120px;
        height: 120px;
    }

    .eevee-board-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .eevee-node-art {
        width: 120px;
        height: 120px;
    }

    .eevee-node--center .eevee-node-art {
        width: 140px;
        height: 140px;
    }
}

.evo-chain-arrow-icon {
    font-size: 1.1rem;
    color: #ffd866;
    line-height: 1;
    opacity: 0.9;
}

.pokedex-ability-list .list-group-item {
    border-color: rgba(255, 255, 255, 0.06);
    font-size: 0.9rem;
    padding: 0.5rem 0;
}

.pokedex-nav-links {
    margin-top: 0.25rem;
}

.profile-panel-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
}

.profile-panel-head {
    padding-bottom: 0.45rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-panel-nav-grid {
    display: grid;
    gap: 0.6rem;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.profile-panel-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.62rem 0.72rem;
    color: #f1f3ff;
    text-decoration: none;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
    transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.profile-panel-link:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 216, 102, 0.48);
    background: linear-gradient(145deg, rgba(255, 216, 102, 0.13), rgba(255, 142, 216, 0.11));
    color: #fff;
}

.profile-panel-link.active {
    border-color: rgba(255, 216, 102, 0.78);
    background: linear-gradient(135deg, rgba(255, 216, 102, 0.14), rgba(255, 142, 216, 0.12));
}

.profile-panel-icon {
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 216, 102, 0.16);
    border: 1px solid rgba(255, 216, 102, 0.32);
    flex: 0 0 auto;
}

.profile-panel-link i {
    font-size: 0.95rem;
    color: #ffd866;
}

.profile-panel-copy {
    min-width: 0;
}

.profile-panel-copy strong {
    display: block;
    margin-bottom: 0.02rem;
    font-size: 0.9rem;
}

.profile-panel-copy small {
    display: block;
    color: #adb6df;
    font-size: 0.74rem;
    line-height: 1.2;
}

.profile-avatar-lg {
    width: 92px;
    height: 92px;
    object-fit: cover;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
    border: 2px solid rgba(255, 216, 102, 0.4);
}

.profile-stat-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
}

.member-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(165deg, #161b37 0%, #0f1329 78%);
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.member-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 216, 102, 0.42);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
}

.member-card-avatar {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.22);
    background: #111631;
}

.member-name {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.member-stat-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.35rem 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.8rem;
    color: #d7ddff;
}

.member-search-form {
    min-width: min(420px, 100%);
}

.member-search-form .form-control {
    min-width: 190px;
}

.member-search-form .form-select {
    min-width: 150px;
}

.profile-hero {
    position: relative;
    overflow: hidden;
}

.profile-teams-section .profile-team-card {
    border-color: rgba(255, 255, 255, 0.12);
}

.profile-meta-card {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
}

.profile-bio-card {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(165deg, rgba(255, 216, 102, 0.055), rgba(156, 168, 255, 0.04));
}

.profile-bio-text {
    color: #e8ecff;
    line-height: 1.6;
    white-space: normal;
    word-break: break-word;
}

@media (min-width: 992px) and (max-width: 1299.98px) {
    .nav-main-links {
        gap: 0.1rem;
    }

    .navbar .nav-link,
    .user-nav-dropdown .dropdown-toggle {
        padding: 0.38rem 0.55rem;
        font-size: 0.92rem;
    }

    .navbar .container {
        max-width: 100%;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .nav-bell-link {
        min-width: 38px;
        padding-left: 0.55rem !important;
        padding-right: 0.55rem !important;
    }
}

@media (max-width: 767.98px) {
    .pokedex-detail-data {
        grid-template-columns: 1fr;
    }

    .pokedex-detail-sprite {
        width: 112px;
        height: 112px;
    }

    .pokedex-card-sprite-wrap {
        min-height: 74px;
    }

    .pokedex-card-title {
        min-height: 2.15rem;
        font-size: 0.95rem;
    }

    .profile-panel-head {
        flex-direction: column;
        align-items: flex-start !important;
    }

    .profile-panel-nav-grid {
        grid-template-columns: 1fr;
    }

    .member-search-form {
        width: 100%;
        flex-wrap: wrap;
    }

    .member-search-form .form-control,
    .member-search-form .form-select,
    .member-search-form .btn {
        width: 100%;
    }
}

.type-pill {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.28rem;
    min-width: 48px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    text-decoration: none;
}

.type-pill__icon {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--type-color, #888888);
    color: rgba(10, 12, 18, 0.92);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 12px 22px rgba(0, 0, 0, 0.24);
}

.type-pill__icon svg {
    width: 61%;
    height: 61%;
    display: block;
    fill: currentColor;
}

.type-pill__label {
    color: #d7dbee;
    font-size: 0.63rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.01em;
    text-align: center;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.22);
}

.type-pill--compact {
    flex-direction: row;
    justify-content: flex-start;
    gap: 0.45rem;
    min-width: 0;
}

.type-pill--compact .type-pill__icon {
    width: 1.4rem;
    height: 1.4rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 6px 14px rgba(0, 0, 0, 0.18);
}

.type-pill--compact .type-pill__icon svg {
    width: 60%;
    height: 60%;
}

.type-pill--compact .type-pill__label {
    font-size: 0.62rem;
    text-align: left;
}

.pkm-card .type-pill {
    transform: translateY(0);
    transition: transform 0.16s ease, filter 0.16s ease;
}

.pkm-card:hover .type-pill,
.type-pill:hover {
    transform: translateY(-1px);
    filter: saturate(1.06);
}

.type-pill--compact .type-pill__label {
    transform: translateY(1px);
}

footer a {
    color: #d7dcff;
    text-decoration: none;
}

footer a:hover {
    color: #ffd866;
}

#siteFooter {
    padding-top: 0.85rem !important;
    padding-bottom: 0.85rem !important;
}

.footer-bar {
    min-height: 0;
}

.footer-brand {
    white-space: nowrap;
}

.footer-links {
    flex-wrap: nowrap;
    white-space: nowrap;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

@media (max-width: 767.98px) {
    .footer-bar {
        justify-content: center !important;
    }

    .footer-links {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        row-gap: 0.5rem;
    }
}

@media (min-width: 992px) {
    body {
        padding-top: var(--pm-nav-height);
        padding-bottom: var(--pm-footer-height);
    }

    #siteNavbar {
        position: fixed !important;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1040;
        backdrop-filter: blur(8px);
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.28);
    }

    body > main.container {
        min-height: calc(100vh - var(--pm-nav-height) - var(--pm-footer-height));
    }

    #siteFooter {
        position: fixed !important;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1020;
        background-color: rgba(13, 17, 23, 0.96);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 -8px 20px rgba(0, 0, 0, 0.35);
    }
}

/* =========================================================
   FORUM STYLES
   ========================================================= */

/* --- Forum Index: Gruppen + Boards ------------------------ */
.forum-shell {
    position: relative;
    border-radius: 1rem;
    padding: .1rem;
}

.forum-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(6, 12, 34, .7), rgba(6, 10, 26, .62));
    backdrop-filter: blur(2px);
    z-index: 0;
}

.forum-shell > * {
    position: relative;
    z-index: 1;
}

.forum-hero {
    width: 100%;
    border: 1px solid rgba(255, 216, 102, .25);
    border-radius: .9rem;
    padding: .95rem 1.05rem;
    background:
        radial-gradient(120% 140% at 0% 0%, rgba(255, 216, 102, .2) 0%, rgba(255, 216, 102, 0) 45%),
        linear-gradient(135deg, rgba(44, 58, 126, .45), rgba(17, 26, 58, .45));
    box-shadow: 0 10px 24px rgba(0, 0, 0, .28);
}

.forum-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.forum-chip {
    display: inline-flex;
    align-items: center;
    padding: .3rem .58rem;
    border-radius: 999px;
    font-size: .75rem;
    letter-spacing: .02em;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.22);
    color: var(--bs-light);
}

.forum-group {
    margin-bottom: 1.25rem;
}

.forum-group-header {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .48rem .75rem;
    background: linear-gradient(90deg, rgba(255, 216, 102, 0.18), rgba(255, 216, 102, 0.04));
    border-left: 4px solid var(--bs-warning);
    border-radius: 0 .55rem .55rem 0;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--bs-warning);
    margin-bottom: .25rem;
}

.forum-board-list {
    border: 1px solid rgba(255,255,255,.1);
    border-radius: .75rem;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
    backdrop-filter: blur(1px);
}

.forum-board-item-empty {
    padding: 1rem;
    background: rgba(255,255,255,.025);
}

.forum-board-item {
    display: grid;
    grid-template-columns: 2.5rem 1fr auto auto;
    align-items: center;
    gap: .75rem;
    padding: .72rem .95rem;
    background: rgba(8, 14, 36, .58);
    border-bottom: 1px solid rgba(255,255,255,.07);
    transition: background .18s ease, transform .18s ease;
}
.forum-board-item:last-child { border-bottom: none; }
.forum-board-item:hover {
    background: rgba(18, 31, 72, .72);
    transform: translateY(-1px);
}

.forum-board-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: .5rem;
    background: linear-gradient(135deg, rgba(255, 216, 102, .22), rgba(156, 168, 255, .25));
    color: #ffe39b;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.forum-board-name {
    font-weight: 600;
    color: var(--bs-body-color);
    text-decoration: none;
}
.forum-board-name:hover { color: var(--bs-info); }

.forum-board-desc {
    font-size: .8rem;
    color: rgba(227, 234, 252, .82);
    margin-top: .1rem;
}

.forum-board-stats {
    text-align: center;
    min-width: 5.4rem;
    display: grid;
    gap: .2rem;
    border-left: 1px solid rgba(255,255,255,.12);
    padding-left: .85rem;
}

.forum-board-last {
    text-align: right;
    min-width: 8rem;
    font-size: .78rem;
    color: var(--bs-secondary-color);
    border-left: 1px solid rgba(255,255,255,.1);
    padding-left: .8rem;
}

.forum-stat-num {
    font-weight: 700;
    color: var(--bs-body-color);
    display: block;
    font-size: .9rem;
}
.forum-stat-label {
    display: block;
    font-size: .72rem;
    color: var(--bs-secondary-color);
}

@media (max-width: 991.98px) {
    .forum-board-item {
        grid-template-columns: 2.5rem 1fr;
        gap: .68rem;
    }

    .forum-board-stats {
        grid-column: 2;
        display: flex;
        justify-content: flex-start;
        gap: 1rem;
        text-align: left;
        min-width: 0;
        border-left: none;
        padding-left: 0;
        margin-top: .3rem;
    }
}

/* --- Forum Thread List ------------------------------------ */
.forum-thread-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .6rem .75rem;
    border-radius: .375rem;
    transition: background .15s;
    text-decoration: none;
    color: inherit;
}
.forum-thread-item:hover { background: rgba(255,255,255,.05); color: inherit; }

.forum-thread-icon {
    font-size: 1.1rem;
    color: var(--bs-secondary-color);
    flex-shrink: 0;
    width: 1.5rem;
    text-align: center;
}
.forum-thread-icon.pinned { color: var(--bs-warning); }
.forum-thread-icon.locked { color: var(--bs-danger); }

.forum-thread-title {
    font-weight: 600;
    color: var(--bs-body-color);
}
.forum-thread-meta {
    font-size: .78rem;
    color: var(--bs-secondary-color);
    margin-top: .1rem;
}

/* --- Forum Posts ------------------------------------------ */
.forum-post {
    border: 1px solid rgba(255,255,255,.08);
    border-radius: .5rem;
    overflow: hidden;
    margin-bottom: 1rem;
}
.forum-post-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .5rem 1rem;
    background: rgba(255,255,255,.04);
    border-bottom: 1px solid rgba(255,255,255,.07);
    font-size: .82rem;
    color: var(--bs-secondary-color);
}
.forum-post-body {
    padding: 1rem;
}

.forum-post-sidebar {
    width: 9rem;
    flex-shrink: 0;
    text-align: center;
    padding: 1rem .5rem;
    border-right: 1px solid rgba(255,255,255,.07);
}

.forum-post-avatar-placeholder {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: rgba(99,102,241,.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto .5rem;
    font-size: 1.5rem;
    color: var(--bs-info);
}

/* Role badges */
.forum-role-badge {
    display: inline-block;
    font-size: .7rem;
    padding: .15rem .4rem;
    border-radius: .25rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.forum-role-admin  { background: rgba(255,193,7,.15);  color: #ffc107; border: 1px solid rgba(255,193,7,.3); }
.forum-role-mod    { background: rgba(13,202,240,.12); color: #0dcaf0; border: 1px solid rgba(13,202,240,.3); }
.forum-role-moderator { background: rgba(13,202,240,.12); color: #0dcaf0; border: 1px solid rgba(13,202,240,.3); }
.forum-role-helper { background: rgba(255,193,7,.15); color: #ffd866; border: 1px solid rgba(255,193,7,.35); }
.forum-role-assistant { background: rgba(34,197,94,.16); color: #42d392; border: 1px solid rgba(66,211,146,.35); }
.forum-role-user   { background: rgba(108,117,125,.15); color: #adb5bd; border: 1px solid rgba(108,117,125,.25); }

.forum-editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    padding: .45rem;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: .55rem;
    background: rgba(255,255,255,.04);
}

.forum-editor-toolbar .btn {
    min-width: 2.1rem;
    padding: .25rem .5rem;
}

.forum-editor-pane {
    border-color: rgba(255,255,255,.16) !important;
    background: rgba(9,12,24,.46);
}

.forum-editor-pane:focus {
    outline: 0;
    box-shadow: 0 0 0 .2rem rgba(156,168,255,.22);
    border-color: rgba(156,168,255,.6) !important;
}

.forum-view-toggle .btn.active {
    background: linear-gradient(135deg, rgba(255, 216, 102, 0.92), rgba(156, 168, 255, 0.92));
    border-color: rgba(255,255,255,.26);
    color: #111827;
}

.forum-sync-toggle {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
}

.forum-sync-toggle .form-check-input {
    margin-top: 0;
    background-color: rgba(255,255,255,.18);
    border-color: rgba(255,255,255,.28);
}

.forum-sync-toggle .form-check-input:checked {
    background-color: #9ca8ff;
    border-color: #9ca8ff;
}

.forum-editor-shell {
    display: grid;
    grid-template-columns: 1fr;
    gap: .75rem;
}

.forum-editor-shell.is-split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
}

.forum-editor-main {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.forum-editor-preview-pane .card-body {
    max-height: 440px;
    overflow: auto;
}

.forum-preview-card {
    border-color: rgba(255,255,255,.12);
    background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
}

.forum-preview-card .card-header {
    background: rgba(255,255,255,.05);
    border-bottom-color: rgba(255,255,255,.10);
}

.forum-preview-card .card-body {
    min-height: 120px;
}

.forum-preview-status {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: .12rem .55rem;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .02em;
    border: 1px solid transparent;
}

.forum-preview-status.is-idle {
    color: rgba(255,255,255,.78);
    border-color: rgba(255,255,255,.2);
    background: rgba(255,255,255,.08);
}

.forum-preview-status.is-pending {
    color: #111827;
    border-color: rgba(255,216,102,.6);
    background: linear-gradient(135deg, rgba(255,216,102,.95), rgba(255,198,74,.92));
}

.forum-preview-status.is-updated {
    color: #0f1428;
    border-color: rgba(156,168,255,.6);
    background: linear-gradient(135deg, rgba(156,168,255,.95), rgba(127,214,255,.92));
}

.forum-draft-status {
    font-size: .76rem;
    font-weight: 600;
    color: rgba(255,255,255,.74);
}

.forum-draft-status.is-pending {
    color: #ffd866;
}

.forum-draft-status.is-saved {
    color: #9ca8ff;
}

.forum-draft-status.is-empty {
    color: rgba(255,255,255,.62);
}

/* =========================================================
   QUILL EDITOR – DARK THEME OVERRIDES
   ========================================================= */
.quill-editor-wrap .ql-toolbar {
    border-color: rgba(255,255,255,.15) !important;
    background: rgba(255,255,255,.04);
    border-radius: .375rem .375rem 0 0;
}
.quill-editor-wrap .ql-container {
    border-color: rgba(255,255,255,.15) !important;
    border-radius: 0 0 .375rem .375rem;
    font-size: 1rem;
    min-height: 160px;
}
.ql-editor {
    min-height: 160px;
    color: var(--bs-body-color);
    font-family: inherit;
}
.ql-editor.ql-blank::before {
    color: var(--bs-secondary-color);
    font-style: italic;
}
/* Toolbar SVG icons → white tint on dark */
.ql-snow .ql-stroke  { stroke: #ccc !important; }
.ql-snow .ql-fill    { fill: #ccc !important; }
.ql-snow .ql-picker-label { color: #ccc !important; }
.ql-snow.ql-toolbar button:hover .ql-stroke,
.ql-snow .ql-toolbar button:hover .ql-stroke,
.ql-snow.ql-toolbar button.ql-active .ql-stroke,
.ql-snow .ql-toolbar button.ql-active .ql-stroke { stroke: #fff !important; }
.ql-snow.ql-toolbar button:hover .ql-fill,
.ql-snow .ql-toolbar button.ql-active .ql-fill   { fill: #fff !important; }
.ql-picker-options {
    background: #1e2533 !important;
    border-color: rgba(255,255,255,.15) !important;
}

/* Rendered Quill HTML in thread view */
.ql-editor-content { line-height: 1.7; }
.ql-editor-content p   { margin-bottom: .5rem; }
.ql-editor-content blockquote {
    border-left: 3px solid var(--bs-secondary-color);
    padding-left: 1rem;
    color: var(--bs-secondary-color);
    margin: .75rem 0;
}
.ql-editor-content pre {
    background: rgba(0,0,0,.35);
    padding: .75rem 1rem;
    border-radius: .375rem;
    overflow-x: auto;
}
.ql-editor-content img { max-width: 100%; border-radius: .375rem; }

@media (max-width: 575.98px) {
    .forum-editor-toolbar {
        padding: .4rem;
    }

    .forum-editor-toolbar .btn {
        min-width: 1.9rem;
    }
}

@media (max-width: 991.98px) {
    .forum-editor-shell.is-split {
        grid-template-columns: 1fr;
    }
}

.trainer-portrait {
    width: 84px;
    height: 84px;
    object-fit: cover;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 8px 18px rgba(2, 6, 20, 0.28);
}

.trainer-portrait-sm {
    width: 64px;
    height: 64px;
}

.game-content-hero {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 22px 44px rgba(4, 8, 24, 0.28);
}

.game-content-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.07), transparent 50%);
    pointer-events: none;
}

.game-content-hero--walkthrough {
    background:
        radial-gradient(circle at 12% 22%, rgba(34, 197, 94, 0.20), transparent 28%),
        radial-gradient(circle at 88% 12%, rgba(255, 216, 102, 0.18), transparent 26%),
        linear-gradient(145deg, #12231d 0%, #143227 48%, #0e1727 100%);
    border-color: rgba(66, 211, 146, 0.28);
}

.game-content-hero--gameside {
    background:
        radial-gradient(circle at 15% 20%, rgba(156, 168, 255, 0.24), transparent 30%),
        radial-gradient(circle at 84% 16%, rgba(255, 142, 216, 0.20), transparent 28%),
        linear-gradient(145deg, #131d3a 0%, #1a2750 52%, #12162a 100%);
    border-color: rgba(156, 168, 255, 0.30);
}

.game-content-kicker {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.28rem 0.72rem;
    margin-bottom: 0.85rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #0f1428;
    background: linear-gradient(135deg, #ffd866, #ff8ed8);
}

.game-content-hero-copy {
    max-width: 58ch;
}

.game-content-hero-stats {
    position: relative;
    z-index: 1;
}

.game-content-stat {
    height: 100%;
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(7, 10, 22, 0.26);
    backdrop-filter: blur(8px);
}

.game-content-stat strong {
    display: block;
    font-size: 1rem;
    color: #fff;
}

.game-content-stat-label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(240, 243, 255, 0.66);
}

.game-content-card {
    border-color: rgba(255, 255, 255, 0.10);
}

.game-content-card--muted {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
}

.game-content-card--sidebar {
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.055), rgba(99, 102, 241, 0.05));
}

.game-content-card--seo {
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.045), rgba(255, 216, 102, 0.05));
}

.game-content-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #eef2ff;
    background: rgba(255, 255, 255, 0.04);
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.game-content-chip:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.08);
}

.game-content-chip[href^="#"] {
    scroll-behavior: smooth;
}

#walkthrough-intro,
#walkthrough-steps,
#walkthrough-notes,
#walkthrough-next,
#gameside-hero,
#gameside-cta,
#gameside-seo,
#gameside-next {
    scroll-margin-top: 92px;
}

.game-content-chip.is-active.is-walkthrough {
    border-color: rgba(66, 211, 146, 0.48);
    background: rgba(34, 197, 94, 0.14);
}

.game-content-chip.is-active.is-gameside {
    border-color: rgba(156, 168, 255, 0.46);
    background: rgba(156, 168, 255, 0.14);
}

.game-content-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.68rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #d9e0ff;
    background: rgba(255, 255, 255, 0.08);
}

.game-content-pill--accent {
    color: #0f1428;
    background: linear-gradient(135deg, #ffd866, #9ca8ff);
}

.game-content-note {
    padding: 0.85rem 1rem;
    border-left: 3px solid rgba(255, 216, 102, 0.72);
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(240, 243, 255, 0.88);
}

.game-step-list {
    list-style: none;
    display: grid;
    gap: 0.85rem;
}

.game-step-item {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 0.9rem;
    align-items: start;
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
}

.game-step-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-weight: 800;
    color: #0f1428;
    background: linear-gradient(135deg, #ffd866, #42d392);
}

.game-step-copy {
    color: rgba(240, 243, 255, 0.88);
    line-height: 1.55;
}

.game-content-aside-item {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 0.7rem;
    padding: 0.85rem 0.95rem;
    border-radius: 0.95rem;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(240, 243, 255, 0.86);
}

.game-content-aside-item i {
    color: #ffd866;
    margin-top: 0.12rem;
}

.game-content-aside-item--cta i {
    color: #9ca8ff;
}

.game-content-hero-block {
    padding: 1rem 1.05rem;
    border-radius: 1rem;
    border: 1px solid rgba(156, 168, 255, 0.14);
    background: linear-gradient(145deg, rgba(156, 168, 255, 0.12), rgba(255, 255, 255, 0.03));
    color: rgba(240, 243, 255, 0.9);
}

.game-content-seo-tile {
    height: 100%;
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 216, 102, 0.16);
    background: linear-gradient(145deg, rgba(255, 216, 102, 0.08), rgba(255, 255, 255, 0.02));
    color: rgba(240, 243, 255, 0.88);
}

@media (max-width: 575.98px) {
    .game-step-item {
        grid-template-columns: 1fr;
    }

    .game-step-index {
        width: 38px;
        height: 38px;
    }

    #walkthrough-intro,
    #walkthrough-steps,
    #walkthrough-notes,
    #walkthrough-next,
    #gameside-hero,
    #gameside-cta,
    #gameside-seo,
    #gameside-next {
        scroll-margin-top: 76px;
    }
}

/* Forum overview (phpBB-inspired) */
.forum-phpbb .forum-block {
  border: 1px solid rgba(92, 130, 190, 0.35);
  border-radius: 12px;
  overflow: hidden;
  background: transparent;
}

.forum-phpbb .forum-block-head {
  padding: 10px 16px;
  background: linear-gradient(90deg, #1f9ddf, #208bc6);
  color: #f3f8ff;
  font-size: 0.88rem;
}

.forum-phpbb .forum-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 100px 100px minmax(200px, 300px);
  border-top: 1px solid rgba(160, 185, 220, 0.18);
  background: transparent;
  cursor: pointer;
  transition: background 0.15s;
}

.forum-phpbb .forum-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.forum-phpbb .forum-main {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 16px;
}

.forum-phpbb .forum-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(42, 130, 219, 0.9);
  color: #85bbea;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.forum-phpbb .forum-title a {
  color: #e9f2ff;
}

.forum-phpbb .forum-desc {
  color: #c2d2eb;
  font-size: 0.88rem;
}

.forum-phpbb .forum-num {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-left: 1px solid rgba(160, 185, 220, 0.18);
  padding: 10px 6px;
  gap: 2px;
}

.forum-phpbb .forum-num-label {
  font-size: 0.72rem;
  color: #8aa8cc;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.forum-phpbb .forum-num strong {
  font-size: 1.05rem;
  font-weight: 700;
  color: #d9e6fb;
}

.forum-phpbb .forum-lastpost {
  border-left: 1px solid rgba(160, 185, 220, 0.18);
  padding: 10px 14px;
}

.forum-phpbb .forum-row-empty {
  padding: 14px 16px;
  color: #b7c8df;
}

/* Slim forum statistics */
.forum-phpbb .forum-stats-slim {
  border: 1px solid rgba(92, 130, 190, 0.25);
  border-radius: 10px;
  background: transparent;
  padding: 10px 16px;
  font-size: 0.85rem;
  color: #c4d6ee;
}

.forum-phpbb .forum-stats-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}

.forum-phpbb .forum-stats-row .fsl-label {
  color: #8aa8cc;
}

.forum-phpbb .forum-stats-row .fsl-sep {
  color: rgba(160, 185, 220, 0.4);
}

.forum-phpbb .forum-stats-row .fsl-date {
  color: #8aa8cc;
  font-size: 0.8rem;
}

.forum-phpbb .forum-stats-online {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(160, 185, 220, 0.15);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.82rem;
}

.forum-phpbb .online-group-line {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 0.82rem;
}

/* Attachment hint in thread forms */
.forum-attach-hint {
  color: #8aa8cc;
  font-weight: 400;
}

/* Post attachments display */
.forum-post-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(160, 185, 220, 0.15);
}

.forum-attach-img-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.forum-attach-img {
  max-width: 260px;
  max-height: 200px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(92, 130, 190, 0.35);
  cursor: pointer;
  transition: opacity 0.15s;
}

.forum-attach-img:hover {
  opacity: 0.85;
}

.forum-attach-name {
  font-size: 0.78rem;
  color: #8aa8cc;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.forum-attach-file {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border: 1px solid rgba(92, 130, 190, 0.35);
  border-radius: 6px;
  font-size: 0.85rem;
  color: #c4d6ee;
  text-decoration: none;
  transition: background 0.15s;
}

.forum-attach-file:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #e9f2ff;
}

.forum-attach-size {
  color: #8aa8cc;
  font-size: 0.78rem;
}

@media (max-width: 991.98px) {
  .forum-phpbb .forum-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .forum-phpbb .forum-num,
  .forum-phpbb .forum-lastpost {
    border-left: 0;
    border-top: 1px solid rgba(160, 185, 220, 0.18);
    padding: 8px 16px;
    align-items: flex-start;
    flex-direction: row;
    gap: 8px;
  }

  .forum-phpbb .forum-num-label {
    display: inline;
    margin-right: 4px;
  }
}
