/*
 * GameDB Frontend Styles
 * Bereinigte Fassung: doppelte alte Layout-Blöcke entfernt, fehlerhafte Werte korrigiert.
 */

:root {
    --gamedb-bg-sky: #eef8ff;
    --gamedb-bg-page: #fff8e8;
    --gamedb-panel: #fffdf6;
    --gamedb-panel-soft: #fff8ea;
    --gamedb-border: #e0bf8c;
    --gamedb-border-strong: #c89152;

    --gamedb-blue: #6daee8;
    --gamedb-blue-dark: #3c79b6;
    --gamedb-pink: #f59dc0;
    --gamedb-pink-dark: #d56d97;

    --gamedb-brown: #68452e;
    --gamedb-text: #4b3a2d;
    --gamedb-text-soft: #7a6453;

    --gamedb-shadow: 0 4px 14px rgba(160, 110, 50, 0.12);
    --gamedb-radius: 18px;
    --gamedb-radius-small: 12px;
}

/* =========================================================
   GameDB Basis, Hintergrund und Theme-Neutralisierung
   ========================================================= */

html {
    min-height: 100%;
}

body.gamedb-template-page,
body.gamedb-view {
    margin-top: 0 !important;
    padding-top: 0 !important;
    min-height: 100%;
    background:
        linear-gradient(
            90deg,
            #ffd0aa 0%,
            #ffe2c2 9%,
            #fff7e7 22%,
            #fffaf0 50%,
            #fff7e7 78%,
            #ffe2c2 91%,
            #ffd0aa 100%
        ) fixed !important;
    color: var(--gamedb-text);
}

body.gamedb-template-page .site,
body.gamedb-template-page .site-content,
body.gamedb-template-page .site-main,
body.gamedb-template-page #page,
body.gamedb-template-page #wrapper,
body.gamedb-template-page #container,
body.gamedb-template-page #content,
body.gamedb-template-page #main,
body.gamedb-view .site,
body.gamedb-view .site-content,
body.gamedb-view .site-main,
body.gamedb-view #page,
body.gamedb-view #wrapper,
body.gamedb-view #container,
body.gamedb-view #content,
body.gamedb-view #main {
    margin-top: 0 !important;
    padding-top: 0 !important;
    background: transparent !important;
    background-image: none !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
}

body.gamedb-template-page::before,
body.gamedb-template-page::after,
body.gamedb-template-page #page::before,
body.gamedb-template-page #wrapper::before,
body.gamedb-template-page #container::before,
body.gamedb-template-page #content::before,
body.gamedb-template-page #main::before,
body.gamedb-view::before,
body.gamedb-view::after {
    display: none !important;
    content: none !important;
}

/* Theme-Header auf GameDB-Seiten ausblenden */
body.gamedb-template-page #header,
body.gamedb-template-page #headerimg,
body.gamedb-template-page .wp-site-blocks > header,
body.gamedb-template-page header.wp-block-template-part,
body.gamedb-template-page .site-header,
body.gamedb-template-page #masthead,
body.gamedb-template-page .header,
body.gamedb-template-page .site-branding {
    display: none !important;
}

/* =========================================================
   GameDB Headerbild
   ========================================================= */

body.gamedb-template-page .gamedb-hero,
body.gamedb-view .gamedb-hero {
    width: calc(100vw - 48px) !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 24px auto !important;
    padding: 0 !important;
    border: 2px solid var(--gamedb-border-strong) !important;
    border-radius: 12px !important;
    background: var(--gamedb-panel) !important;
    box-shadow: var(--gamedb-shadow) !important;
    overflow: hidden !important;
}

body.gamedb-template-page .gamedb-hero-image,
body.gamedb-view .gamedb-hero-image {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-width: none !important;
    object-fit: contain !important;
}

body.gamedb-template-page .gamedb-hero::before,
body.gamedb-template-page .gamedb-hero::after,
body.gamedb-view .gamedb-hero::before,
body.gamedb-view .gamedb-hero::after,
body.gamedb-template-page .gamedb-hero-inner,
body.gamedb-view .gamedb-hero-inner,
body.gamedb-template-page .gamedb-hero h1,
body.gamedb-view .gamedb-hero h1 {
    display: none !important;
    content: none !important;
}
/* Layout */
.gamedb-layout {
    max-width: 1540px;
    margin: 0 auto;
    padding: 0 18px 40px;
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr) 290px;
    gap: 20px;
    align-items: start;
}

.gamedb-main-content {
    min-width: 0;
    background: var(--gamedb-panel);
    border: 2px solid var(--gamedb-border);
    border-radius: 22px;
    box-shadow: var(--gamedb-shadow);
    padding: 22px 22px 26px;
    position: relative;
}

.gamedb-main-content::before {
    content: "";
    position: absolute;
    inset: 10px;
    border: 1px dashed rgba(200, 145, 82, 0.45);
    border-radius: 16px;
    pointer-events: none;
}

.gamedb-page-header,
.gamedb-filter-nav,
.gamedb-subtype-filter-nav,
.gamedb-table-wrap,
.gamedb-detail-card,
.gamedb-detail-section {
    position: relative;
    z-index: 1;
}

.gamedb-page-header {
    margin-bottom: 22px;
}

.gamedb-kicker {
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gamedb-text-soft);
}

.gamedb-page-header h1 {
    margin: 0 0 10px;
    font-size: clamp(38px, 4vw, 58px);
    line-height: 1;
    color: var(--gamedb-brown);
}

.gamedb-description {
    max-width: 760px;
    color: var(--gamedb-text-soft);
    font-size: 16px;
}

/* Filter */
.gamedb-filter-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 24px;
}

.gamedb-subtype-filter-nav {
    margin-top: -12px;
    margin-bottom: 24px;
}

.gamedb-filter-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 6px 12px;
    border: 1px solid currentColor;
    border-radius: 999px;
    color: var(--gamedb-blue-dark);
    text-decoration: none;
    font-size: 14px;
    opacity: 0.85;
}

.gamedb-filter-nav a:hover,
.gamedb-filter-nav a:focus,
.gamedb-filter-nav a.is-active {
    opacity: 1;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Tabellen */
.gamedb-table-wrap {
    overflow-x: auto;
    border: 2px solid var(--gamedb-border);
    border-radius: 18px;
    background: #fffdf8;
    box-shadow: var(--gamedb-shadow);
}

.gamedb-table {
    width: 100%;
    min-width: 850px;
    border-collapse: separate;
    border-spacing: 0;
    color: var(--gamedb-text);
    font-size: 15px;
}

.gamedb-table th,
.gamedb-table td {
    padding: 12px;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid rgba(224, 191, 140, 0.45);
    white-space: normal;
}

.gamedb-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: linear-gradient(to bottom, #6db2ec, #4f91d1) !important;
    color: #fff !important;
    border-bottom: 2px solid #3d78b8 !important;
    font-weight: 700;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.22);
}

.gamedb-table tbody tr:nth-child(even) {
    background: rgba(255, 246, 229, 0.42);
}

.gamedb-table tbody tr:hover {
    background: rgba(255, 234, 183, 0.35);
}

.gamedb-table th button {
    all: unset;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    color: #fff !important;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.gamedb-table th button::after {
    content: " ↕";
    color: #fff;
    opacity: 0.85;
    font-size: 12px;
}

.gamedb-table th button[data-sort-direction="asc"]::after {
    content: " ↑";
    opacity: 1;
}

.gamedb-table th button[data-sort-direction="desc"]::after {
    content: " ↓";
    opacity: 1;
}

.gamedb-table td[data-label="Bild"],
.gamedb-table th:first-child {
    width: 52px;
    text-align: center;
}

.gamedb-table td[data-label="Beschreibung"] {
    min-width: 260px;
}

.gamedb-item-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    image-rendering: auto;
    display: inline-block;
    vertical-align: middle;
}

.gamedb-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.gamedb-icon-placeholder {
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(127, 127, 127, 0.4);
    border-radius: 6px;
    opacity: 0.55;
    font-weight: 700;
}

.gamedb-item-name {
    font-weight: 700;
    text-decoration: none;
}

.gamedb-item-name:hover,
.gamedb-item-name:focus {
    text-decoration: underline;
}

/* Seitenleisten */
.gamedb-sidebar {
    position: sticky;
    top: 20px;
}

.gamedb-sidebar-box {
    border: 2px solid var(--gamedb-border);
    border-radius: 18px;
    padding: 14px;
    margin-bottom: 18px;
    background: linear-gradient(to bottom, #fffdf8, #fff6e5);
    box-shadow: var(--gamedb-shadow);
    position: relative;
}

.gamedb-sidebar-box::before {
    content: "";
    position: absolute;
    inset: 8px;
    border: 1px dashed rgba(200, 145, 82, 0.35);
    border-radius: 12px;
    pointer-events: none;
}

.gamedb-sidebar-box h2 {
    margin: -4px -4px 14px;
    padding: 10px 14px;
    border-radius: 14px;
    color: #fff;
    font-size: 20px;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.16);
    box-shadow: 0 3px 0 rgba(160, 110, 60, 0.22);
    position: relative;
    z-index: 1;
}

.gamedb-sidebar-left .gamedb-sidebar-box h2 {
    background: linear-gradient(to bottom, #69aee9, #3f84c2);
}

.gamedb-sidebar-right .gamedb-sidebar-box h2 {
    background: linear-gradient(to bottom, #ff9abd, #e66f9f);
}

.gamedb-sidebar-box p,
.gamedb-sidebar-empty {
    margin: 0;
    color: var(--gamedb-text-soft);
    font-size: 13px;
    position: relative;
    z-index: 1;
}

.gamedb-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
    position: relative;
    z-index: 1;
}

.gamedb-sidebar-nav li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.gamedb-sidebar-nav a {
    box-sizing: border-box;
    width: 100%;
    display: block;
    padding: 9px 12px;
    border-radius: 10px;
    border: 1px solid rgba(224, 191, 140, 0.65);
    background: rgba(255, 255, 255, 0.65);
    color: var(--gamedb-text);
    text-decoration: none;
    font-size: 14px;
    line-height: 1.2;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.gamedb-sidebar-nav a:hover,
.gamedb-sidebar-nav a:focus,
.gamedb-sidebar-nav a.is-active,
.gamedb-sidebar-nav .current-menu-item > a,
.gamedb-sidebar-nav .current-menu-ancestor > a {
    background: #fff2c9;
    border-color: var(--gamedb-border-strong);
    transform: translateY(-1px);
    text-decoration: none;
    font-weight: 700;
}

.gamedb-sidebar-nav .sub-menu {
    margin: 4px 0 4px 12px;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gamedb-sidebar-nav .sub-menu a {
    font-size: 13px;
    opacity: 0.9;
}

/* Suche / Widgets */
.gamedb-widget {
    margin: 0;
    position: relative;
    z-index: 1;
}

.gamedb-widget-title {
    margin: 0 0 8px;
    font-size: 14px;
}

.gamedb-sidebar-search form {
    display: flex;
    gap: 6px;
    position: relative;
    z-index: 1;
}

.gamedb-sidebar-search input[type="search"],
.gamedb-sidebar-search input[type="text"] {
    min-width: 0;
    width: 100%;
    padding: 7px 8px;
    border: 1px solid rgba(224, 191, 140, 0.75);
    border-radius: 6px;
}

.gamedb-sidebar-search input[type="submit"],
.gamedb-sidebar-search button[type="submit"] {
    padding: 7px 10px;
    border: 1px solid rgba(224, 191, 140, 0.75);
    border-radius: 6px;
    background: #fff2c9;
    cursor: pointer;
}

.gamedb-sidebar-poll p:last-child,
.gamedb-sidebar-search p:last-child {
    margin-bottom: 0;
}

/* Detailseiten */
.gamedb-detail-card {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
    padding: 16px;
    border: 1px solid rgba(224, 191, 140, 0.75);
    border-radius: 12px;
    margin-bottom: 24px;
    background: rgba(255, 246, 229, 0.42);
}

.gamedb-detail-image .gamedb-item-icon,
.gamedb-detail-image .gamedb-icon-placeholder {
    width: 64px;
    height: 64px;
}

.gamedb-detail-list {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 8px 14px;
    margin: 0;
}

.gamedb-detail-list dt {
    font-weight: 700;
    color: var(--gamedb-text-soft);
}

.gamedb-detail-list dd {
    margin: 0;
}

.gamedb-detail-section {
    margin: 0 0 28px;
}

.gamedb-detail-section h2 {
    margin: 0 0 12px;
    font-size: 22px;
}

.gamedb-drop-front-table th:first-child,
.gamedb-drop-front-table td[data-label="Bild"] {
    width: 52px;
    text-align: center;
}

/* Monster-Tabelle */
.gamedb-table.gamedb-monster-table {
    width: 100%;
    min-width: 0 !important;
    table-layout: fixed;
}

.gamedb-monster-table th:nth-child(1),
.gamedb-monster-table td[data-label="Bild"] {
    width: 56px;
    text-align: center;
}

.gamedb-monster-table th:nth-child(2),
.gamedb-monster-table td[data-label="Name"] {
    width: 120px;
}

.gamedb-monster-table th:nth-child(3),
.gamedb-monster-table td[data-label="Level"] {
    width: 64px;
}

.gamedb-monster-table th:nth-child(4),
.gamedb-monster-table td[data-label="Element"] {
    width: 90px;
}

.gamedb-monster-table th:nth-child(5),
.gamedb-monster-table td[data-label="Gebiete"] {
    width: 130px;
}

.gamedb-monster-table th:nth-child(6),
.gamedb-monster-table td[data-label="Mods"] {
    width: 105px;
}

.gamedb-monster-table th:nth-child(7),
.gamedb-monster-table td[data-label="Stats"] {
    width: auto;
}

.gamedb-monster-table td[data-label="Mods"] {
    font-size: 13px;
    line-height: 1.35;
    white-space: normal;
}

.gamedb-monster-table td[data-label="Stats"] {
    min-width: 0 !important;
    white-space: normal;
}

.gamedb-monster-stats-compact {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.gamedb-monster-stats-row {
    display: grid;
    gap: 6px;
}

.gamedb-monster-stats-row-primary {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.gamedb-monster-stats-row-secondary {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.gamedb-monster-stat-box {
    min-width: 0;
    padding: 4px 2px;
    text-align: center;
}

.gamedb-monster-stats-row-secondary .gamedb-monster-stat-box {
    border-top: 1px solid rgba(127, 127, 127, 0.18);
    padding-top: 6px;
}

.gamedb-monster-stat-box-primary {
    position: relative;
    min-height: 72px;
    border-top: 0;
    padding: 6px 2px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.gamedb-monster-stat-box-primary .gamedb-stat-icon {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    width: 46px;
    height: 46px;
    border-radius: 0;
    opacity: 0.25;
    z-index: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.gamedb-monster-stat-box-primary .gamedb-monster-stat-label,
.gamedb-monster-stat-box-primary .gamedb-monster-stat-value {
    position: relative;
    z-index: 1;
}

.gamedb-monster-stat-label {
    display: block;
    font-size: 10px;
    line-height: 1.1;
    font-weight: 700;
    opacity: 0.72;
}

.gamedb-monster-stat-box-primary .gamedb-monster-stat-label {
    font-size: 13px;
    font-weight: 800;
    opacity: 0.95;
    margin-bottom: 4px;
}

.gamedb-monster-stat-value {
    display: block;
    font-size: 13px;
    line-height: 1.15;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.gamedb-monster-stat-box-primary .gamedb-monster-stat-value {
    font-size: 18px;
    font-weight: 800;
}

.gamedb-stat-icon--str { background-image: url("icons/stricon.png"); }
.gamedb-stat-icon--agi { background-image: url("icons/agiicon.png"); }
.gamedb-stat-icon--vit { background-image: url("icons/viticon.png"); }
.gamedb-stat-icon--int { background-image: url("icons/inticon.png"); }
.gamedb-stat-icon--dex { background-image: url("icons/dexicon.png"); }
.gamedb-stat-icon--luk { background-image: url("icons/lukicon.png"); }

/* Taxonomie-Badges */
.gamedb-term-badges {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.gamedb-term-badge {
    display: inline-block;
    max-width: 100%;
    padding: 4px 9px;
    border-radius: 999px;
    background: linear-gradient(to bottom, #f5f3ff, #e4ebff);
    border: 1px solid #b8c7ec;
    color: var(--gamedb-blue-dark);
    text-decoration: none;
    font-size: 12px;
    line-height: 1.25;
    white-space: normal;
}

.gamedb-term-badge:hover,
.gamedb-term-badge:focus {
    background: #fff2c9;
    border-color: var(--gamedb-border-strong);
    text-decoration: none;
}


/* =========================================================
   GameDB finales Layout, Footer und warme Farbgebung
   ========================================================= */

:root {
    --gamedb-header-warm-1: #8b4d22;
    --gamedb-header-warm-2: #b86b2b;
    --gamedb-header-warm-3: #f0b35d;
    --gamedb-header-text: #fff7df;
    --gamedb-header-border: #c89152;
}

.gamedb-layout {
    width: calc(100vw - 48px) !important;
    max-width: none !important;
    margin: 0 auto !important;
    padding: 0 0 48px !important;
    display: grid !important;
    grid-template-columns: 280px minmax(0, 1fr) 300px !important;
    gap: 28px !important;
    align-items: start !important;
    overflow: visible !important;
}

.gamedb-layout > * {
    min-width: 0 !important;
    box-sizing: border-box !important;
}

.gamedb-main-content {
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.gamedb-sidebar {
    width: auto !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

.gamedb-sidebar-box,
.gamedb-table-wrap {
    box-sizing: border-box !important;
    max-width: 100% !important;
}

.gamedb-table-wrap {
    width: 100%;
    overflow-x: auto !important;
}

.gamedb-table {
    width: 100%;
    max-width: 100%;
}

.gamedb-table.gamedb-monster-table {
    min-width: 0 !important;
    table-layout: fixed !important;
}

.gamedb-sidebar-left .gamedb-sidebar-box h2,
.gamedb-sidebar-right .gamedb-sidebar-box h2,
.gamedb-main-content .gamedb-table thead th {
    background:
        linear-gradient(
            to bottom,
            var(--gamedb-header-warm-3) 0%,
            var(--gamedb-header-warm-2) 52%,
            var(--gamedb-header-warm-1) 100%
        ) !important;
    color: var(--gamedb-header-text) !important;
    border-color: #6f3b19 !important;
    text-shadow: 0 1px 2px rgba(70, 35, 10, 0.45) !important;
}

.gamedb-sidebar-left .gamedb-sidebar-box h2,
.gamedb-sidebar-right .gamedb-sidebar-box h2 {
    border: 1px solid rgba(255, 235, 190, 0.65);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.45),
        0 3px 0 rgba(110, 65, 25, 0.28) !important;
}

.gamedb-main-content .gamedb-table thead th button,
.gamedb-main-content .gamedb-table thead th a,
.gamedb-main-content .gamedb-table thead th button::after {
    color: var(--gamedb-header-text) !important;
}

.gamedb-sidebar-nav a.is-active,
.gamedb-sidebar-nav .current-menu-item > a,
.gamedb-sidebar-nav .current-menu-ancestor > a,
.gamedb-sidebar-nav a:hover,
.gamedb-sidebar-nav a:focus {
    background: linear-gradient(to bottom, #fff1bd 0%, #f6d47d 100%) !important;
    border-color: var(--gamedb-header-border) !important;
    color: #5b3218 !important;
    font-weight: 700 !important;
}

body.gamedb-template-page #footer,
body.gamedb-view #footer {
    display: block !important;
    width: fit-content;
    max-width: calc(100% - 48px);
    margin: 36px auto 24px;
    padding: 10px 22px;
    border: 2px solid var(--gamedb-border);
    border-radius: 12px;
    background: linear-gradient(to bottom, #fffdf7, #fff1d6);
    box-shadow: var(--gamedb-shadow);
    color: var(--gamedb-text);
    text-align: center;
    font-weight: 700;
}

body.gamedb-template-page #footer p,
body.gamedb-view #footer p {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 0 !important;
    line-height: 1 !important;
}

body.gamedb-template-page #footer p > *,
body.gamedb-view #footer p > * {
    display: none !important;
}

body.gamedb-template-page #footer p::before,
body.gamedb-view #footer p::before {
    content: "SVCards - Copyright 2026";
    font-size: 15px;
    line-height: 1.2;
    font-weight: 700;
}

@media (max-width: 1100px) {
    .gamedb-layout {
        width: calc(100vw - 24px) !important;
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .gamedb-sidebar {
        position: static !important;
    }

    .gamedb-sidebar-left { order: 1; }
    .gamedb-main-content { order: 2; }
    .gamedb-sidebar-right { order: 3; }
}

@media (max-width: 1000px) {
    body.gamedb-template-page .gamedb-hero,
    body.gamedb-view .gamedb-hero {
        width: calc(100vw - 24px) !important;
        margin-top: 12px !important;
    }
}

@media (max-width: 700px) {
    body.gamedb-template-page .gamedb-hero,
    body.gamedb-view .gamedb-hero {
        width: calc(100vw - 20px) !important;
    }

    .gamedb-layout {
        padding-bottom: 28px !important;
    }

    .gamedb-main-content {
        padding: 18px 14px 22px;
    }

    .gamedb-detail-card,
    .gamedb-detail-list {
        grid-template-columns: 1fr;
    }

    .gamedb-table {
        min-width: 760px;
    }
}

	/* =========================================================
   GameDB News-Accordion
   ========================================================= */

.gamedb-news-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    z-index: 1;
}

.gamedb-news-card {
    border: 2px solid var(--gamedb-border);
    border-radius: 16px;
    background: linear-gradient(to bottom, #fffdf8, #fff6e5);
    box-shadow: var(--gamedb-shadow);
    overflow: hidden;
}

.gamedb-news-details {
    margin: 0;
}

.gamedb-news-summary {
    cursor: pointer;
    display: grid;
    grid-template-columns: 110px minmax(180px, 280px) minmax(0, 1fr) 28px;
    gap: 14px;
    align-items: center;
    padding: 14px 16px;
    list-style: none;
    color: var(--gamedb-text);
}

.gamedb-news-summary::-webkit-details-marker {
    display: none;
}

.gamedb-news-summary::after {
    content: "+";
    justify-self: end;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: linear-gradient(to bottom, #f0b35d, #b86b2b);
    color: #fff7df;
    font-weight: 900;
    line-height: 1;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.gamedb-news-details[open] .gamedb-news-summary::after {
    content: "−";
}

.gamedb-news-details[open] .gamedb-news-summary {
    border-bottom: 1px solid rgba(224, 191, 140, 0.75);
    background: rgba(255, 242, 201, 0.6);
}

.gamedb-news-date {
    font-size: 13px;
    font-weight: 800;
    color: var(--gamedb-text-soft);
}

.gamedb-news-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--gamedb-brown);
}

.gamedb-news-excerpt {
    font-size: 14px;
    color: var(--gamedb-text-soft);
    line-height: 1.35;
}

.gamedb-news-body {
    padding: 18px 20px 22px;
}

.gamedb-news-image-wrap {
    margin: 0 0 16px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(224, 191, 140, 0.75);
}

.gamedb-news-image {
    display: block;
    width: 100%;
    height: auto;
}

.gamedb-news-content {
    font-size: 16px;
    line-height: 1.65;
    color: var(--gamedb-text);
}

.gamedb-news-content > :first-child {
    margin-top: 0;
}

.gamedb-news-content > :last-child {
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .gamedb-news-summary {
        grid-template-columns: 1fr 28px;
    }

    .gamedb-news-date,
    .gamedb-news-title,
    .gamedb-news-excerpt {
        grid-column: 1;
    }

    .gamedb-news-summary::after {
        grid-column: 2;
        grid-row: 1 / span 3;
    }
}
	/* =========================================================
   GameDB News: Accordion + Alte News laden
   ========================================================= */

.gamedb-news-card.is-hidden {
    display: none !important;
}

.gamedb-news-load-more-wrap {
    position: relative;
    z-index: 1;
    margin-top: 18px;
    text-align: center;
}

.gamedb-news-load-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 18px;
    border: 2px solid var(--gamedb-border);
    border-radius: 999px;
    background: linear-gradient(to bottom, #fffdf7, #fff1d6);
    color: var(--gamedb-text);
    box-shadow: var(--gamedb-shadow);
    font-weight: 800;
    cursor: pointer;
}

.gamedb-news-load-more:hover,
.gamedb-news-load-more:focus {
    background: linear-gradient(to bottom, #fff1bd, #f6d47d);
    border-color: var(--gamedb-border-strong);
}
	/* =========================================================
   GameDB AJAX/PJAX Navigation
   Header bleibt stehen, nur Layout wird ausgetauscht
   ========================================================= */

body.gamedb-is-loading .gamedb-layout {
    opacity: 0.72;
    pointer-events: none;
    transition: opacity 0.15s ease;
}
	/* =========================================================
   GameDB Umfrage
   ========================================================= */

.gamedb-poll {
    position: relative;
    z-index: 1;
}

.gamedb-poll-question {
    margin: 0 0 12px;
    padding: 10px 12px;
    border: 1px solid rgba(224, 191, 140, 0.8);
    border-radius: 12px;
    background: linear-gradient(to bottom, #fffaf0, #fff1d6);
    color: var(--gamedb-brown);
    font-weight: 800;
    line-height: 1.3;
}

.gamedb-poll-message {
    min-height: 18px;
    margin: 0 0 8px;
    color: var(--gamedb-text-soft);
    font-size: 13px;
    font-weight: 700;
}

.gamedb-poll-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gamedb-poll-option-button {
    width: 100%;
    padding: 9px 11px;
    border: 1px solid rgba(224, 191, 140, 0.85);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--gamedb-text);
    cursor: pointer;
    font-weight: 700;
    text-align: left;
    line-height: 1.25;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.gamedb-poll-option-button:hover,
.gamedb-poll-option-button:focus {
    background: linear-gradient(to bottom, #fff1bd, #f6d47d);
    border-color: var(--gamedb-border-strong);
    color: #5b3218;
}

.gamedb-poll-option-button:disabled {
    cursor: wait;
    opacity: 0.7;
}

.gamedb-poll-results {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gamedb-poll-result {
    padding: 8px 9px;
    border: 1px solid rgba(224, 191, 140, 0.75);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.65);
}

.gamedb-poll-result-top {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.gamedb-poll-result-label {
    font-weight: 800;
    color: var(--gamedb-text);
}

.gamedb-poll-result-percent {
    font-weight: 900;
    color: var(--gamedb-brown);
    white-space: nowrap;
}

.gamedb-poll-result-bar {
    height: 10px;
    border-radius: 999px;
    background: rgba(224, 191, 140, 0.35);
    overflow: hidden;
}

.gamedb-poll-result-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(to right, #f0b35d, #b86b2b);
}

.gamedb-poll-result-votes {
    margin-top: 4px;
    font-size: 12px;
    color: var(--gamedb-text-soft);
    font-weight: 700;
}

.gamedb-poll-total {
    margin: 2px 0 0;
    font-size: 13px;
    color: var(--gamedb-text-soft);
    font-weight: 800;
    text-align: center;
}
	/* =========================================================
   GameDB Suche
   ========================================================= */

.gamedb-database-search-form {
    display: flex;
    gap: 6px;
    position: relative;
    z-index: 1;
}

.gamedb-database-search-form input[type="search"] {
    min-width: 0;
    width: 100%;
    padding: 8px 9px;
    border: 1px solid rgba(224, 191, 140, 0.85);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--gamedb-text);
}

.gamedb-database-search-form button {
    padding: 8px 11px;
    border: 1px solid rgba(224, 191, 140, 0.85);
    border-radius: 8px;
    background: linear-gradient(to bottom, #fff1bd, #f6d47d);
    color: #5b3218;
    cursor: pointer;
    font-weight: 800;
}

.gamedb-database-search-form button:hover,
.gamedb-database-search-form button:focus {
    border-color: var(--gamedb-border-strong);
    background: linear-gradient(to bottom, #f0b35d, #b86b2b);
    color: #fff7df;
}

.gamedb-search-inline-form {
    position: relative;
    z-index: 1;
    margin: 0 0 22px;
    padding: 14px;
    border: 1px solid rgba(224, 191, 140, 0.75);
    border-radius: 14px;
    background: rgba(255, 246, 229, 0.45);
}

.gamedb-search-results {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.gamedb-search-result-card {
    border: 2px solid var(--gamedb-border);
    border-radius: 16px;
    background: linear-gradient(to bottom, #fffdf8, #fff6e5);
    box-shadow: var(--gamedb-shadow);
    overflow: hidden;
}

.gamedb-search-result-link {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
    color: inherit;
    text-decoration: none;
}

.gamedb-search-result-link:hover,
.gamedb-search-result-link:focus {
    background: rgba(255, 242, 201, 0.55);
    text-decoration: none;
}

.gamedb-search-result-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gamedb-search-result-thumb {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.gamedb-search-result-meta {
    display: inline-flex;
    width: fit-content;
    margin: 0 0 5px;
    padding: 3px 9px;
    border-radius: 999px;
    background: linear-gradient(to bottom, #fff1bd, #f6d47d);
    color: #5b3218;
    font-size: 12px;
    font-weight: 900;
}

.gamedb-search-result-content h2 {
    margin: 0 0 6px;
    color: var(--gamedb-brown);
    font-size: 20px;
    line-height: 1.2;
}

.gamedb-search-result-content p {
    margin: 0;
    color: var(--gamedb-text-soft);
    line-height: 1.45;
}

.gamedb-empty-state {
    position: relative;
    z-index: 1;
    padding: 16px;
    border: 1px solid rgba(224, 191, 140, 0.75);
    border-radius: 14px;
    background: rgba(255, 246, 229, 0.45);
}

@media (max-width: 700px) {
    .gamedb-search-result-link {
        grid-template-columns: 1fr;
    }

    .gamedb-search-result-image {
        justify-content: flex-start;
    }
}
	/* =========================================================
   GameDB Gebiete / Maps
   ========================================================= */

.gamedb-region-table {
    min-width: 720px;
}

.gamedb-region-table td[data-label="Level"] {
    width: 120px;
    font-weight: 800;
    color: var(--gamedb-brown);
}

.gamedb-region-monster-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
}

.gamedb-region-monster-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(224, 191, 140, 0.85);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}

.gamedb-region-monster-icon-link:hover,
.gamedb-region-monster-icon-link:focus {
    transform: translateY(-1px);
    background: linear-gradient(to bottom, #fff1bd, #f6d47d);
    border-color: var(--gamedb-border-strong);
    text-decoration: none;
}

.gamedb-region-monster-thumb {
    display: block;
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.gamedb-region-description {
    position: relative;
    z-index: 1;
    margin: 0 0 22px;
    padding: 16px 18px;
    border: 1px solid rgba(224, 191, 140, 0.75);
    border-radius: 14px;
    background: rgba(255, 246, 229, 0.45);
    color: var(--gamedb-text);
    line-height: 1.6;
}

.gamedb-region-description > :first-child {
    margin-top: 0;
}

.gamedb-region-description > :last-child {
    margin-bottom: 0;
}

.gamedb-region-monsters-section {
    position: relative;
    z-index: 1;
}

.gamedb-section-title {
    margin: 0 0 14px;
    color: var(--gamedb-brown);
    font-size: 24px;
    line-height: 1.2;
}

.gamedb-region-detail-monster-table {
    min-width: 760px;
}
	/* =========================================================
   GameDB normale WordPress-Seiten
   ========================================================= */

.gamedb-static-page-content {
    position: relative;
    z-index: 1;
    padding: 20px 22px;
    border: 2px solid var(--gamedb-border);
    border-radius: 16px;
    background: linear-gradient(to bottom, #fffdf8, #fff6e5);
    box-shadow: var(--gamedb-shadow);
    color: var(--gamedb-text);
    font-size: 16px;
    line-height: 1.65;
}

.gamedb-static-page-content > :first-child {
    margin-top: 0;
}

.gamedb-static-page-content > :last-child {
    margin-bottom: 0;
}

.gamedb-static-page-content h2,
.gamedb-static-page-content h3,
.gamedb-static-page-content h4 {
    color: var(--gamedb-brown);
    line-height: 1.25;
}

.gamedb-static-page-content a {
    color: var(--gamedb-brown);
    font-weight: 700;
}

.gamedb-static-page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.gamedb-static-page-image-wrap {
    position: relative;
    z-index: 1;
    margin: 0 0 18px;
    border: 2px solid var(--gamedb-border);
    border-radius: 16px;
    background: linear-gradient(to bottom, #fffdf8, #fff6e5);
    box-shadow: var(--gamedb-shadow);
    overflow: hidden;
}

.gamedb-static-page-image {
    display: block;
    width: 100%;
    height: auto;
}
	/* =========================================================
   GameDB wpForo Forum
   ========================================================= */

.gamedb-static-page-content #wpforo,
.gamedb-static-page-content .wpforo-main {
    position: relative;
    z-index: 1;
}

.gamedb-static-page-content #wpforo {
    margin: 0;
    color: var(--gamedb-text);
}

.gamedb-static-page-content #wpforo a {
    color: var(--gamedb-brown);
    font-weight: 700;
}

.gamedb-static-page-content #wpforo a:hover,
.gamedb-static-page-content #wpforo a:focus {
    text-decoration: underline;
}

.gamedb-static-page-content #wpforo-wrap {
    background: transparent !important;
    color: var(--gamedb-text);
}

.gamedb-static-page-content #wpforo-wrap .wpforo-content,
.gamedb-static-page-content #wpforo-wrap .wpforo-post,
.gamedb-static-page-content #wpforo-wrap .wpforo-topic,
.gamedb-static-page-content #wpforo-wrap .wpf-card,
.gamedb-static-page-content #wpforo-wrap .wpf-cat-panel,
.gamedb-static-page-content #wpforo-wrap .wpf-thread-box {
    border-color: var(--gamedb-border) !important;
    border-radius: 14px !important;
    background: linear-gradient(to bottom, #fffdf8, #fff6e5) !important;
    box-shadow: var(--gamedb-shadow);
}

.gamedb-static-page-content #wpforo-wrap .wpf-head-bar,
.gamedb-static-page-content #wpforo-wrap .wpf-cat-title,
.gamedb-static-page-content #wpforo-wrap .wpf-table-head,
.gamedb-static-page-content #wpforo-wrap .wpforo-category {
    background:
        linear-gradient(
            to bottom,
            #d99642 0%,
            #b9692c 52%,
            #87491f 100%
        ) !important;
    color: #fff7df !important;
    border-color: #6f3b19 !important;
    text-shadow: 0 1px 2px rgba(70, 35, 10, 0.45);
}

.gamedb-static-page-content #wpforo-wrap .wpf-head-bar a,
.gamedb-static-page-content #wpforo-wrap .wpf-cat-title a,
.gamedb-static-page-content #wpforo-wrap .wpf-table-head a,
.gamedb-static-page-content #wpforo-wrap .wpforo-category a {
    color: #fff7df !important;
}

.gamedb-static-page-content #wpforo-wrap input[type="text"],
.gamedb-static-page-content #wpforo-wrap input[type="password"],
.gamedb-static-page-content #wpforo-wrap input[type="email"],
.gamedb-static-page-content #wpforo-wrap textarea,
.gamedb-static-page-content #wpforo-wrap select {
    border: 1px solid rgba(224, 191, 140, 0.85) !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, 0.78) !important;
    color: var(--gamedb-text) !important;
}

.gamedb-static-page-content #wpforo-wrap button,
.gamedb-static-page-content #wpforo-wrap input[type="submit"],
.gamedb-static-page-content #wpforo-wrap .wpf-button,
.gamedb-static-page-content #wpforo-wrap .wpforo-button {
    border: 1px solid rgba(224, 191, 140, 0.85) !important;
    border-radius: 999px !important;
    background: linear-gradient(to bottom, #fff1bd, #f6d47d) !important;
    color: #5b3218 !important;
    cursor: pointer;
    font-weight: 900;
}

.gamedb-static-page-content #wpforo-wrap button:hover,
.gamedb-static-page-content #wpforo-wrap input[type="submit"]:hover,
.gamedb-static-page-content #wpforo-wrap .wpf-button:hover,
.gamedb-static-page-content #wpforo-wrap .wpforo-button:hover {
    border-color: var(--gamedb-border-strong) !important;
    background: linear-gradient(to bottom, #f0b35d, #b86b2b) !important;
    color: #fff7df !important;
}
	/* =========================================================
   GameDB wpForo iframe
   ========================================================= */

.gamedb-wpforo-shell {
    padding: 0 !important;
    overflow: hidden;
}

.gamedb-wpforo-frame {
    display: block;
    width: 100%;
    min-height: 760px;
    border: 0;
    background: transparent;
}

body.gamedb-wpforo-frame-body {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

.gamedb-wpforo-frame-inner {
    margin: 0;
    padding: 0;
}
	/* =========================================================
   GameDB wpForo iframe Design
   ========================================================= */

body.gamedb-wpforo-frame-body {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    color: var(--gamedb-text);
}

body.gamedb-wpforo-frame-body .gamedb-wpforo-frame-inner {
    margin: 0;
    padding: 0;
}

body.gamedb-wpforo-frame-body #wpforo,
body.gamedb-wpforo-frame-body #wpforo-wrap {
    margin: 0 !important;
    background: transparent !important;
    color: var(--gamedb-text) !important;
}

body.gamedb-wpforo-frame-body #wpforo-wrap a {
    color: var(--gamedb-brown) !important;
    font-weight: 700;
}

body.gamedb-wpforo-frame-body #wpforo-wrap a:hover,
body.gamedb-wpforo-frame-body #wpforo-wrap a:focus {
    text-decoration: underline;
}

body.gamedb-wpforo-frame-body #wpforo-wrap .wpforo-content,
body.gamedb-wpforo-frame-body #wpforo-wrap .wpforo-post,
body.gamedb-wpforo-frame-body #wpforo-wrap .wpforo-topic,
body.gamedb-wpforo-frame-body #wpforo-wrap .wpf-card,
body.gamedb-wpforo-frame-body #wpforo-wrap .wpf-cat-panel,
body.gamedb-wpforo-frame-body #wpforo-wrap .wpf-thread-box,
body.gamedb-wpforo-frame-body #wpforo-wrap .wpf-forum-item,
body.gamedb-wpforo-frame-body #wpforo-wrap .wpf-topic-item,
body.gamedb-wpforo-frame-body #wpforo-wrap .wpf-post {
    border-color: var(--gamedb-border) !important;
    border-radius: 14px !important;
    background: linear-gradient(to bottom, #fffdf8, #fff6e5) !important;
    box-shadow: var(--gamedb-shadow);
}

body.gamedb-wpforo-frame-body #wpforo-wrap .wpf-head-bar,
body.gamedb-wpforo-frame-body #wpforo-wrap .wpf-cat-title,
body.gamedb-wpforo-frame-body #wpforo-wrap .wpf-table-head,
body.gamedb-wpforo-frame-body #wpforo-wrap .wpforo-category,
body.gamedb-wpforo-frame-body #wpforo-wrap .wpf-htr {
    background:
        linear-gradient(
            to bottom,
            #d99642 0%,
            #b9692c 52%,
            #87491f 100%
        ) !important;
    color: #fff7df !important;
    border-color: #6f3b19 !important;
    text-shadow: 0 1px 2px rgba(70, 35, 10, 0.45);
}

body.gamedb-wpforo-frame-body #wpforo-wrap .wpf-head-bar a,
body.gamedb-wpforo-frame-body #wpforo-wrap .wpf-cat-title a,
body.gamedb-wpforo-frame-body #wpforo-wrap .wpf-table-head a,
body.gamedb-wpforo-frame-body #wpforo-wrap .wpforo-category a,
body.gamedb-wpforo-frame-body #wpforo-wrap .wpf-htr a {
    color: #fff7df !important;
}

body.gamedb-wpforo-frame-body #wpforo-wrap input[type="text"],
body.gamedb-wpforo-frame-body #wpforo-wrap input[type="password"],
body.gamedb-wpforo-frame-body #wpforo-wrap input[type="email"],
body.gamedb-wpforo-frame-body #wpforo-wrap textarea,
body.gamedb-wpforo-frame-body #wpforo-wrap select {
    border: 1px solid rgba(224, 191, 140, 0.85) !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, 0.78) !important;
    color: var(--gamedb-text) !important;
}

body.gamedb-wpforo-frame-body #wpforo-wrap button,
body.gamedb-wpforo-frame-body #wpforo-wrap input[type="submit"],
body.gamedb-wpforo-frame-body #wpforo-wrap .wpf-button,
body.gamedb-wpforo-frame-body #wpforo-wrap .wpforo-button,
body.gamedb-wpforo-frame-body #wpforo-wrap .wpf-action {
    border: 1px solid rgba(224, 191, 140, 0.85) !important;
    border-radius: 999px !important;
    background: linear-gradient(to bottom, #fff1bd, #f6d47d) !important;
    color: #5b3218 !important;
    cursor: pointer;
    font-weight: 900;
}

body.gamedb-wpforo-frame-body #wpforo-wrap button:hover,
body.gamedb-wpforo-frame-body #wpforo-wrap input[type="submit"]:hover,
body.gamedb-wpforo-frame-body #wpforo-wrap .wpf-button:hover,
body.gamedb-wpforo-frame-body #wpforo-wrap .wpforo-button:hover,
body.gamedb-wpforo-frame-body #wpforo-wrap .wpf-action:hover {
    border-color: var(--gamedb-border-strong) !important;
    background: linear-gradient(to bottom, #f0b35d, #b86b2b) !important;
    color: #fff7df !important;
}

body.gamedb-wpforo-frame-body #wpforo-wrap .wpf-profile-section,
body.gamedb-wpforo-frame-body #wpforo-wrap .wpf-member-profile,
body.gamedb-wpforo-frame-body #wpforo-wrap .wpf-member-info,
body.gamedb-wpforo-frame-body #wpforo-wrap .wpf-form-wrapper {
    border-color: var(--gamedb-border) !important;
    border-radius: 14px !important;
    background: linear-gradient(to bottom, #fffdf8, #fff6e5) !important;
    box-shadow: var(--gamedb-shadow);
}

body.gamedb-wpforo-frame-body #wpforo-wrap .wpf-topic-title,
body.gamedb-wpforo-frame-body #wpforo-wrap .wpf-forum-title,
body.gamedb-wpforo-frame-body #wpforo-wrap .wpf-post-title {
    color: var(--gamedb-brown) !important;
    font-weight: 900;
}

body.gamedb-wpforo-frame-body #wpforo-wrap .wpf-post-content,
body.gamedb-wpforo-frame-body #wpforo-wrap .wpf-topic-content,
body.gamedb-wpforo-frame-body #wpforo-wrap .wpf-forum-description {
    color: var(--gamedb-text) !important;
}
	/* =========================================================
   GameDB interaktive Weltkarte
   ========================================================= */

.gamedb-worldmap {
    position: relative;
    z-index: 1;
    border: 2px solid var(--gamedb-border);
    border-radius: 16px;
    background: linear-gradient(to bottom, #fffdf8, #fff6e5);
    box-shadow: var(--gamedb-shadow);
    overflow: hidden;
}

.gamedb-worldmap-stage {
    position: relative;
    width: 100%;
    line-height: 0;
}

.gamedb-worldmap-image {
    display: block;
    width: 100%;
    height: auto;
}

.gamedb-worldmap-overlay {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.gamedb-worldmap-region-link,
.gamedb-worldmap-region {
    pointer-events: auto;
}

.gamedb-worldmap-region {
    fill: rgba(240, 179, 93, 0.16);
    stroke: rgba(255, 247, 223, 0.85);
    stroke-width: 0.35;
    cursor: pointer;
    transition: fill 0.15s ease, stroke 0.15s ease;
}

.gamedb-worldmap-region-link:hover .gamedb-worldmap-region,
.gamedb-worldmap-region-link:focus .gamedb-worldmap-region {
    fill: rgba(240, 179, 93, 0.42);
    stroke: #fff7df;
}

.gamedb-worldmap-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid rgba(224, 191, 140, 0.75);
    background: rgba(255, 246, 229, 0.85);
    line-height: 1.4;
}

.gamedb-worldmap-legend a {
    display: inline-flex;
    padding: 5px 10px;
    border: 1px solid rgba(224, 191, 140, 0.85);
    border-radius: 999px;
    background: linear-gradient(to bottom, #fff1bd, #f6d47d);
    color: #5b3218;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.gamedb-worldmap-legend a:hover,
.gamedb-worldmap-legend a:focus {
    background: linear-gradient(to bottom, #f0b35d, #b86b2b);
    color: #fff7df;
    text-decoration: none;
}
/* =========================================================
   GameDB Drops / Loot-Tabelle
   ========================================================= */

.gamedb-drops-table-wrap {
    margin: 0;
    width: 100%;
    overflow-x: auto;
}

.gamedb-drops-table {
    width: 100%;
    min-width: 520px;
    table-layout: auto;
    font-size: 14px;
}

.gamedb-drops-table th,
.gamedb-drops-table td {
    padding: 10px 12px;
    vertical-align: middle;
}

.gamedb-drops-table th:first-child,
.gamedb-drops-table td:first-child {
    width: 72%;
}

.gamedb-drops-table th:last-child,
.gamedb-drops-table td:last-child {
    width: 28%;
    text-align: right;
    white-space: nowrap;
}

.gamedb-drop-item-link {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-width: 0;
    color: var(--gamedb-brown);
    font-weight: 800;
    text-decoration: none;
}

.gamedb-drop-item-link:hover,
.gamedb-drop-item-link:focus {
    text-decoration: underline;
}

.gamedb-drop-item-link span {
    display: block;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gamedb-drop-item-icon {
    width: 34px;
    height: 34px;
    object-fit: contain;
    flex: 0 0 34px;
}

.gamedb-drops-table td[data-label="Dropchance"] {
    font-weight: 900;
    color: var(--gamedb-brown);
}

/* Auf Monster-Detailseiten darf die Loot-Tabelle noch etwas luftiger wirken */
.single-game_monster .gamedb-drops-table,
.gamedb-main-content .gamedb-drops-table {
    min-width: 620px;
}

.single-game_monster .gamedb-drops-table th,
.single-game_monster .gamedb-drops-table td {
    padding: 12px 14px;
}

.single-game_monster .gamedb-drop-item-icon {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
}

@media (max-width: 700px) {
    .gamedb-drops-table {
        min-width: 480px;
    }

    .gamedb-drops-table th,
    .gamedb-drops-table td {
        padding: 9px 10px;
    }

    .gamedb-drop-item-icon {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
    }
}
	/* =========================================================
   GameDB Monster-Detailseite: Werte wie in der Übersicht
   ========================================================= */

.gamedb-monster-detail-stats-wrap {
    padding: 14px;
    background: linear-gradient(to bottom, #fffdf8, #fff6e5);
}

.gamedb-monster-detail-stats {
    width: 100%;
}

.gamedb-monster-detail-stats .gamedb-monster-stats-compact {
    gap: 12px;
}

.gamedb-monster-detail-stats .gamedb-monster-stats-row {
    gap: 10px;
}

.gamedb-monster-detail-stats .gamedb-monster-stat-box {
    border: 1px solid rgba(224, 191, 140, 0.65);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.52);
    padding: 9px 6px;
}

.gamedb-monster-detail-stats .gamedb-monster-stats-row-secondary .gamedb-monster-stat-box {
    border-top: 1px solid rgba(224, 191, 140, 0.65);
    padding-top: 9px;
}

.gamedb-monster-detail-stats .gamedb-monster-stat-box-primary {
    min-height: 92px;
    padding: 12px 6px 10px;
}

.gamedb-monster-detail-stats .gamedb-monster-stat-box-primary .gamedb-stat-icon {
    width: 62px;
    height: 62px;
    opacity: 0.22;
}

.gamedb-monster-detail-stats .gamedb-monster-stat-label {
    font-size: 12px;
    letter-spacing: 0.04em;
}

.gamedb-monster-detail-stats .gamedb-monster-stat-value {
    font-size: 18px;
    font-weight: 900;
}

@media (max-width: 900px) {
    .gamedb-monster-detail-stats .gamedb-monster-stats-row-primary {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .gamedb-monster-detail-stats .gamedb-monster-stats-row-secondary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .gamedb-monster-detail-stats .gamedb-monster-stats-row-primary,
    .gamedb-monster-detail-stats .gamedb-monster-stats-row-secondary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
	/* =========================================================
   GameDB Sidebar-Menüs: Aufklappbare Elternpunkte
   ========================================================= */

.gamedb-sidebar-nav,
.gamedb-sidebar-nav ul {
    list-style: none;
}

.gamedb-sidebar-nav li {
    margin: 0;
    padding: 0;
}

.gamedb-sidebar-nav .sub-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 7px 0 0 14px;
    padding: 0 0 0 10px;
    border-left: 2px solid rgba(224, 191, 140, 0.55);
}

.gamedb-sidebar-nav .gamedb-menu-toggle-only:not(.is-open) > .sub-menu {
    display: none;
}

.gamedb-sidebar-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    min-height: 38px;
    padding: 8px 10px;

    border: 1px solid rgba(224, 191, 140, 0.85);
    border-radius: 10px;
    background: linear-gradient(to bottom, #fffdf7, #fff1d6);
    color: var(--gamedb-text);

    cursor: pointer;
    font: inherit;
    font-weight: 800;
    text-align: left;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.gamedb-sidebar-toggle:hover,
.gamedb-sidebar-toggle:focus {
    background: #fff2c9;
    border-color: var(--gamedb-header-border);
    color: #5b3218;
}

.gamedb-sidebar-toggle-text {
    min-width: 0;
}

.gamedb-sidebar-toggle-arrow {
    flex: 0 0 auto;
    font-size: 18px;
    font-weight: 900;
    transition: transform 0.15s ease;
}

.gamedb-menu-toggle-only.is-open > .gamedb-sidebar-toggle .gamedb-sidebar-toggle-arrow {
    transform: rotate(90deg);
}

.gamedb-sidebar-nav .sub-menu a {
    min-height: 34px;
    padding-left: 12px;
    font-size: 14px;
}
	/* =========================================================
   GameDB Sidebar-Menüs: Toggle-Button optisch wie normale Links
   ========================================================= */

.gamedb-sidebar-nav .gamedb-sidebar-toggle {
    font-family: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
    letter-spacing: inherit !important;
    text-transform: none !important;
}

.gamedb-sidebar-nav > li > .gamedb-sidebar-toggle {
    font-size: 15px !important;
    line-height: 1.25 !important;
}

.gamedb-sidebar-nav .sub-menu > li > .gamedb-sidebar-toggle {
    font-size: 14px !important;
    line-height: 1.25 !important;
}
/* =========================================================
   GameDB NPC Detailseite
   ========================================================= */

.gamedb-npc-profile-card,
.gamedb-npc-description-card {
    position: relative;
    z-index: 1;
    margin: 0 0 20px;
    padding: 20px 22px;
    border: 2px solid var(--gamedb-border);
    border-radius: 16px;
    background: linear-gradient(to bottom, #fffdf8, #fff6e5);
    box-shadow: var(--gamedb-shadow);
}

.gamedb-npc-profile-card {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 22px;
    align-items: center;
}

.gamedb-npc-profile-image {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    padding: 14px;
    border: 1px solid rgba(224, 191, 140, 0.75);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.45);
}

.gamedb-npc-profile-thumb {
    display: block;
    max-width: 130px;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.gamedb-npc-profile-info h2,
.gamedb-npc-description-card h2 {
    margin: 0 0 14px;
    color: var(--gamedb-brown);
    font-size: 24px;
    line-height: 1.2;
}

.gamedb-npc-info-list {
    margin: 0;
    display: grid;
    gap: 10px;
}

.gamedb-npc-info-list div {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 10px 12px;
    border: 1px solid rgba(224, 191, 140, 0.65);
    border-radius: 12px;
    background: rgba(255, 246, 229, 0.5);
}

.gamedb-npc-info-list dt {
    margin: 0;
    font-weight: 900;
    color: var(--gamedb-text-soft);
}

.gamedb-npc-info-list dd {
    margin: 0;
    color: var(--gamedb-text);
    font-weight: 700;
}

.gamedb-npc-description-content {
    color: var(--gamedb-text);
    font-size: 16px;
    line-height: 1.65;
}

.gamedb-npc-description-content > :first-child {
    margin-top: 0;
}

.gamedb-npc-description-content > :last-child {
    margin-bottom: 0;
}

.gamedb-npc-description-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 14px 0;
    border: 2px solid var(--gamedb-border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.45);
    box-shadow: var(--gamedb-shadow);
}

.gamedb-npc-description-content figure {
    max-width: 100%;
    margin: 16px 0;
}

.gamedb-npc-description-content figure img {
    margin: 0;
}

.gamedb-npc-description-content figcaption {
    margin-top: 8px;
    color: var(--gamedb-text-soft);
    font-size: 14px;
    text-align: center;
}

@media (max-width: 760px) {
    .gamedb-npc-profile-card {
        grid-template-columns: 1fr;
    }

    .gamedb-npc-profile-image {
        justify-content: flex-start;
    }

    .gamedb-npc-info-list div {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}
/* =========================================================
   GameDB Bedienbarkeit: Mittelbereich scrollt, danach Seite
   ========================================================= */

@media (min-width: 1101px) {
    body.gamedb-template-page .gamedb-layout,
    body.gamedb-view .gamedb-layout {
        align-items: start !important;
    }

    /*
     * Der mittlere Inhaltsbereich bekommt nur dann einen eigenen Scrollbereich,
     * wenn sein Inhalt höher als der sichtbare Bereich ist.
     *
     * Wichtig:
     * overscroll-behavior bleibt AUTO.
     * Dadurch wird beim oberen/unteren Ende wieder die normale Seite gescrollt.
     */
    body.gamedb-template-page .gamedb-main-content,
    body.gamedb-view .gamedb-main-content {
        max-height: calc(100vh - 32px) !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        padding-right: 10px !important;
        overscroll-behavior: auto !important;
        scrollbar-gutter: stable;
    }

    /*
     * Sidebars bleiben normale Seiteninhalte.
     * Sie bekommen keinen eigenen Scrollbereich.
     */
    body.gamedb-template-page .gamedb-sidebar,
    body.gamedb-view .gamedb-sidebar {
        position: static !important;
        top: auto !important;
        max-height: none !important;
        overflow: visible !important;
        padding-right: 0 !important;
        scrollbar-gutter: auto;
        overscroll-behavior: auto !important;
    }
}

/* dezente Scrollbar nur für den mittleren GameDB-Inhaltsbereich */
body.gamedb-template-page .gamedb-main-content::-webkit-scrollbar,
body.gamedb-view .gamedb-main-content::-webkit-scrollbar {
    width: 10px;
}

body.gamedb-template-page .gamedb-main-content::-webkit-scrollbar-track,
body.gamedb-view .gamedb-main-content::-webkit-scrollbar-track {
    background: rgba(255, 246, 229, 0.65);
    border-radius: 999px;
}

body.gamedb-template-page .gamedb-main-content::-webkit-scrollbar-thumb,
body.gamedb-view .gamedb-main-content::-webkit-scrollbar-thumb {
    background: rgba(184, 107, 43, 0.45);
    border-radius: 999px;
}

body.gamedb-template-page .gamedb-main-content::-webkit-scrollbar-thumb:hover,
body.gamedb-view .gamedb-main-content::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 77, 34, 0.65);
}
	/* =========================================================
   GameDB NPC Detailseite: Standortbild oben
   ========================================================= */

.gamedb-npc-profile-card {
    grid-template-columns: 170px minmax(0, 1fr);
    align-items: start;
}

.gamedb-npc-profile-main {
    min-width: 0;
}

.gamedb-npc-location-row {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(260px, 420px);
    gap: 18px;
    align-items: start;
}

.gamedb-npc-location-card {
    padding: 12px;
    border: 1px solid rgba(224, 191, 140, 0.75);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.45);
}

.gamedb-npc-location-label {
    margin: 0 0 8px;
    color: var(--gamedb-text-soft);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.gamedb-npc-location-image {
    display: block;
    width: 100%;
    height: auto;
    border: 2px solid var(--gamedb-border);
    border-radius: 12px;
    box-shadow: var(--gamedb-shadow);
}

@media (max-width: 900px) {
    .gamedb-npc-location-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .gamedb-npc-profile-card {
        grid-template-columns: 1fr;
    }
}
	/* =========================================================
   GameDB NPC Detailseite: kompakte Profilansicht
   ========================================================= */

.gamedb-npc-profile-card-compact {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr) minmax(260px, 390px);
    gap: 22px;
    align-items: start;
}

.gamedb-npc-profile-card-compact .gamedb-npc-profile-image {
    min-height: 160px;
}

.gamedb-npc-profile-card-compact .gamedb-npc-profile-main {
    min-width: 0;
}

.gamedb-npc-profile-card-compact .gamedb-npc-profile-main h2 {
    margin: 0 0 14px;
    color: var(--gamedb-brown);
    font-size: 24px;
    line-height: 1.2;
}

.gamedb-npc-profile-card-compact .gamedb-npc-info-list {
    margin-bottom: 14px;
}

.gamedb-npc-profile-description {
    padding: 12px 14px;
    border: 1px solid rgba(224, 191, 140, 0.65);
    border-radius: 12px;
    background: rgba(255, 246, 229, 0.5);
}

.gamedb-npc-profile-description h3 {
    margin: 0 0 8px;
    color: var(--gamedb-text-soft);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.gamedb-npc-profile-description-content {
    color: var(--gamedb-text);
    font-size: 15px;
    line-height: 1.55;
}

.gamedb-npc-profile-description-content > :first-child {
    margin-top: 0;
}

.gamedb-npc-profile-description-content > :last-child {
    margin-bottom: 0;
}

.gamedb-npc-profile-description-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 12px 0;
    border: 2px solid var(--gamedb-border);
    border-radius: 12px;
    box-shadow: var(--gamedb-shadow);
}

.gamedb-npc-profile-card-compact .gamedb-npc-location-card {
    align-self: start;
}

@media (max-width: 1000px) {
    .gamedb-npc-profile-card-compact {
        grid-template-columns: 150px minmax(0, 1fr);
    }

    .gamedb-npc-profile-card-compact .gamedb-npc-location-card {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    .gamedb-npc-profile-card-compact {
        grid-template-columns: 1fr;
    }

    .gamedb-npc-profile-card-compact .gamedb-npc-profile-image {
        justify-content: flex-start;
    }
}
	/* =========================================================
   GameDB Gebiet-Detailseite: NPCs
   ========================================================= */

.gamedb-region-npcs-section {
    position: relative;
    z-index: 1;
    margin-top: 28px;
}

.gamedb-region-npc-table {
    min-width: 720px;
}

.gamedb-region-npc-table th:first-child,
.gamedb-region-npc-table td:first-child {
    width: 72px;
    text-align: center;
}

.gamedb-region-npc-table th:nth-child(2),
.gamedb-region-npc-table td:nth-child(2) {
    width: 220px;
}

.gamedb-region-npc-table td[data-label="Beschreibung"] {
    line-height: 1.45;
}

.gamedb-region-npc-table .gamedb-npc-icon {
    width: 42px;
    height: 42px;
    object-fit: contain;
}
	/* =========================================================
   GameDB NPC Archiv-Tabelle wiederherstellen
   ========================================================= */

.gamedb-npc-table {
    width: 100%;
    min-width: 820px;
    table-layout: auto;
}

.gamedb-npc-table th:first-child,
.gamedb-npc-table td:first-child {
    width: 260px;
}

.gamedb-npc-table th:nth-child(2),
.gamedb-npc-table td:nth-child(2) {
    width: 180px;
    white-space: nowrap;
}

.gamedb-npc-table th:nth-child(3),
.gamedb-npc-table td:nth-child(3) {
    width: auto;
}

.gamedb-npc-table td {
    vertical-align: middle;
}

.gamedb-npc-name {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: 100%;
    color: var(--gamedb-brown);
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
}

.gamedb-npc-name:hover,
.gamedb-npc-name:focus {
    text-decoration: underline;
}

.gamedb-npc-name span {
    display: inline-block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gamedb-npc-table .gamedb-npc-icon {
    width: 38px;
    height: 38px;
    object-fit: contain;
    flex: 0 0 38px;
}

.gamedb-npc-table td[data-label="Beschreibung"] {
    line-height: 1.45;
    color: var(--gamedb-text);
}

.gamedb-npc-table td[data-label="Gebiet"] {
    font-weight: 700;
}
	/* =========================================================
   GameDB NPC-Typen in Tabellen
   ========================================================= */

.gamedb-npc-table th:nth-child(2),
.gamedb-npc-table td:nth-child(2) {
    width: 160px;
    white-space: nowrap;
}

.gamedb-npc-table th:nth-child(3),
.gamedb-npc-table td:nth-child(3) {
    width: 180px;
    white-space: nowrap;
}

.gamedb-npc-table th:nth-child(4),
.gamedb-npc-table td:nth-child(4) {
    width: auto;
}

.gamedb-region-npc-table th:nth-child(3),
.gamedb-region-npc-table td:nth-child(3) {
    width: 160px;
    white-space: nowrap;
}

.gamedb-npc-table td[data-label="Typ"],
.gamedb-region-npc-table td[data-label="Typ"] {
    font-weight: 800;
}

.gamedb-npc-table td[data-label="Typ"] a,
.gamedb-region-npc-table td[data-label="Typ"] a {
    display: inline-flex;
    padding: 3px 9px;
    border-radius: 999px;
    background: linear-gradient(to bottom, #fff1bd, #f6d47d);
    color: #5b3218;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

.gamedb-npc-table td[data-label="Typ"] a:hover,
.gamedb-region-npc-table td[data-label="Typ"] a:hover {
    background: linear-gradient(to bottom, #f0b35d, #b86b2b);
    color: #fff7df;
    text-decoration: none;
}
	/* =========================================================
   GameDB Mitgliederbereich / Login Popup
   ========================================================= */

.gamedb-member-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
}

.gamedb-member-modal.is-open {
    display: block;
}

.gamedb-member-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(47, 28, 12, 0.58);
    backdrop-filter: blur(3px);
}

.gamedb-member-modal-dialog {
    position: relative;
    width: min(460px, calc(100vw - 32px));
    margin: 8vh auto 0;
    padding: 24px 26px 26px;

    border: 2px solid var(--gamedb-border-strong);
    border-radius: 18px;
    background: linear-gradient(to bottom, #fffdf8, #fff1d6);
    box-shadow:
        0 22px 80px rgba(42, 24, 8, 0.45),
        var(--gamedb-shadow);
    color: var(--gamedb-text);
}

.gamedb-member-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;

    width: 34px;
    height: 34px;
    border: 1px solid rgba(224, 191, 140, 0.85);
    border-radius: 999px;
    background: linear-gradient(to bottom, #fffdf7, #fff1d6);
    color: #5b3218;
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
}

.gamedb-member-modal-dialog h2,
.gamedb-member-area-card h2 {
    margin: 0 0 10px;
    color: var(--gamedb-brown);
    font-size: 28px;
    line-height: 1.15;
}

.gamedb-member-modal-text,
.gamedb-member-area-card p {
    color: var(--gamedb-text-soft);
    line-height: 1.55;
}

.gamedb-member-login-form,
.gamedb-member-register-form {
    display: grid;
    gap: 9px;
    margin-top: 18px;
}

.gamedb-member-login-form label,
.gamedb-member-register-form label {
    font-weight: 900;
    color: var(--gamedb-text);
}

.gamedb-member-login-form input[type="text"],
.gamedb-member-login-form input[type="password"],
.gamedb-member-register-form input[type="text"],
.gamedb-member-register-form input[type="email"] {
    width: 100%;
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid rgba(224, 191, 140, 0.9);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.8);
    color: var(--gamedb-text);
}

.gamedb-member-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0;
    font-weight: 700 !important;
    color: var(--gamedb-text-soft) !important;
}

.gamedb-member-primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    width: fit-content;
    padding: 9px 18px;

    border: 2px solid var(--gamedb-border);
    border-radius: 999px;
    background: linear-gradient(to bottom, #fff1bd, #f6d47d);
    color: #5b3218;

    box-shadow: var(--gamedb-shadow);
    cursor: pointer;
    font-weight: 900;
    text-decoration: none;
}

.gamedb-member-primary-button:hover,
.gamedb-member-primary-button:focus {
    border-color: var(--gamedb-border-strong);
    background: linear-gradient(to bottom, #f0b35d, #b86b2b);
    color: #fff7df;
    text-decoration: none;
}

.gamedb-member-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(224, 191, 140, 0.75);
}

.gamedb-member-modal-actions a,
.gamedb-member-secondary-link {
    color: var(--gamedb-brown);
    font-weight: 900;
    text-decoration: none;
}

.gamedb-member-modal-actions a:hover,
.gamedb-member-secondary-link:hover {
    text-decoration: underline;
}

.gamedb-member-area-card {
    position: relative;
    z-index: 1;
    padding: 22px 24px;
    border: 2px solid var(--gamedb-border);
    border-radius: 16px;
    background: linear-gradient(to bottom, #fffdf8, #fff6e5);
    box-shadow: var(--gamedb-shadow);
}

.gamedb-member-area-card .gamedb-member-primary-button {
    margin-right: 12px;
}

.gamedb-member-message {
    margin: 12px 0;
    padding: 10px 12px;
    border-radius: 12px;
    font-weight: 800;
    line-height: 1.45;
}

.gamedb-member-message-error {
    border: 1px solid rgba(160, 45, 30, 0.45);
    background: rgba(255, 230, 224, 0.85);
    color: #7a2418;
}

.gamedb-member-message-success {
    border: 1px solid rgba(72, 130, 62, 0.45);
    background: rgba(232, 249, 224, 0.9);
    color: #2f6d28;
}

.gamedb-member-form-note {
    margin: 4px 0 8px;
    font-size: 14px;
}
	/* =========================================================
   GameDB Fanart
   ========================================================= */

.gamedb-fanart-upload-card,
.gamedb-fanart-gallery-card {
    position: relative;
    z-index: 1;
    margin: 0 0 22px;
    padding: 22px 24px;
    border: 2px solid var(--gamedb-border);
    border-radius: 16px;
    background: linear-gradient(to bottom, #fffdf8, #fff6e5);
    box-shadow: var(--gamedb-shadow);
}

.gamedb-fanart-upload-card h2,
.gamedb-fanart-gallery-card h2 {
    margin: 0 0 10px;
    color: var(--gamedb-brown);
    font-size: 28px;
    line-height: 1.15;
}

.gamedb-fanart-upload-form {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.gamedb-fanart-upload-form label {
    font-weight: 900;
    color: var(--gamedb-text);
}

.gamedb-fanart-upload-form input[type="text"],
.gamedb-fanart-upload-form input[type="file"] {
    width: 100%;
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid rgba(224, 191, 140, 0.9);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.8);
    color: var(--gamedb-text);
}

.gamedb-fanart-permission-checkbox {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 12px;
    border: 1px solid rgba(224, 191, 140, 0.75);
    border-radius: 12px;
    background: rgba(255, 246, 229, 0.55);
    font-weight: 700 !important;
    line-height: 1.45;
}

.gamedb-fanart-permission-checkbox input {
    margin-top: 4px;
}

.gamedb-fanart-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.gamedb-fanart-card {
    overflow: hidden;
    border: 2px solid var(--gamedb-border);
    border-radius: 16px;
    background: linear-gradient(to bottom, #fffdf8, #fff6e5);
    box-shadow: var(--gamedb-shadow);
}

.gamedb-fanart-image-link {
    display: block;
    background: rgba(255, 246, 229, 0.65);
}

.gamedb-fanart-image {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    object-fit: cover;
}

.gamedb-fanart-info {
    padding: 13px 14px 15px;
}

.gamedb-fanart-info h3 {
    margin: 0 0 8px;
    color: var(--gamedb-brown);
    font-size: 18px;
    line-height: 1.2;
}

.gamedb-fanart-info p {
    margin: 4px 0 0;
    color: var(--gamedb-text-soft);
    font-size: 14px;
    line-height: 1.35;
}
	/* =========================================================
   GameDB Fanart Galerie als Carousel
   ========================================================= */

.gamedb-fanart-gallery {
    position: relative;
    z-index: 1;
}

.gamedb-fanart-gallery-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin: 0 0 16px;
}

.gamedb-fanart-gallery-header h2 {
    margin: 0;
    color: var(--gamedb-brown);
    font-size: 28px;
    line-height: 1.15;
}

.gamedb-fanart-carousel-controls {
    display: inline-flex;
    gap: 8px;
    flex: 0 0 auto;
}

.gamedb-fanart-carousel-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    border: 2px solid var(--gamedb-border);
    border-radius: 999px;
    background: linear-gradient(to bottom, #fff1bd, #f6d47d);
    color: #5b3218;

    box-shadow: var(--gamedb-shadow);
    cursor: pointer;
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
}

.gamedb-fanart-carousel-button:hover,
.gamedb-fanart-carousel-button:focus {
    border-color: var(--gamedb-border-strong);
    background: linear-gradient(to bottom, #f0b35d, #b86b2b);
    color: #fff7df;
}

.gamedb-fanart-carousel {
    position: relative;
    overflow: hidden;
}

.gamedb-fanart-carousel-track {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;

    padding: 4px 4px 14px;
    scrollbar-gutter: stable;
}

.gamedb-fanart-carousel-track::-webkit-scrollbar {
    height: 10px;
}

.gamedb-fanart-carousel-track::-webkit-scrollbar-track {
    background: rgba(255, 246, 229, 0.65);
    border-radius: 999px;
}

.gamedb-fanart-carousel-track::-webkit-scrollbar-thumb {
    background: rgba(184, 107, 43, 0.45);
    border-radius: 999px;
}

.gamedb-fanart-carousel-track::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 77, 34, 0.65);
}

.gamedb-fanart-card {
    flex: 0 0 min(320px, 82vw);
    scroll-snap-align: start;

    overflow: hidden;
    border: 2px solid var(--gamedb-border);
    border-radius: 16px;
    background: linear-gradient(to bottom, #fffdf8, #fff6e5);
    box-shadow: var(--gamedb-shadow);
}

.gamedb-fanart-image-link {
    display: block;
    background: rgba(255, 246, 229, 0.65);
}

.gamedb-fanart-image {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    object-fit: cover;
}

.gamedb-fanart-info {
    padding: 13px 14px 15px;
}

.gamedb-fanart-info h3 {
    margin: 0 0 8px;
    color: var(--gamedb-brown);
    font-size: 18px;
    line-height: 1.2;
}

.gamedb-fanart-info p {
    margin: 4px 0 0;
    color: var(--gamedb-text-soft);
    font-size: 14px;
    line-height: 1.35;
}

/* Alte äußere Galerie-Karte neutralisieren, falls sie noch irgendwo im Cache/Markup auftaucht */
.gamedb-fanart-gallery-card {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

@media (max-width: 700px) {
    .gamedb-fanart-gallery-header {
        align-items: stretch;
        flex-direction: column;
    }

    .gamedb-fanart-carousel-controls {
        justify-content: flex-start;
    }

    .gamedb-fanart-card {
        flex-basis: min(280px, 86vw);
    }
}
	/* =========================================================
   GameDB Meine Fanarts + Fanart Likes
   ========================================================= */

.gamedb-my-fanarts-card {
    position: relative;
    z-index: 1;
    margin: 0 0 22px;
    padding: 22px 24px;
    border: 2px solid var(--gamedb-border);
    border-radius: 16px;
    background: linear-gradient(to bottom, #fffdf8, #fff6e5);
    box-shadow: var(--gamedb-shadow);
}

.gamedb-my-fanarts-card h2 {
    margin: 0 0 10px;
    color: var(--gamedb-brown);
    font-size: 28px;
    line-height: 1.15;
}

.gamedb-my-fanarts-list {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.gamedb-my-fanart-item {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 14px;
    align-items: center;

    padding: 12px;
    border: 1px solid rgba(224, 191, 140, 0.75);
    border-radius: 14px;
    background: rgba(255, 246, 229, 0.55);
}

.gamedb-my-fanart-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gamedb-my-fanart-thumb {
    display: block;
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(224, 191, 140, 0.85);
}

.gamedb-my-fanart-content h3 {
    margin: 0 0 6px;
    color: var(--gamedb-brown);
    font-size: 18px;
}

.gamedb-my-fanart-content p {
    margin: 3px 0;
    color: var(--gamedb-text-soft);
    line-height: 1.35;
}

.gamedb-fanart-status {
    display: inline-flex;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.gamedb-fanart-status-publish {
    background: rgba(232, 249, 224, 0.9);
    color: #2f6d28;
}

.gamedb-fanart-status-pending {
    background: rgba(255, 241, 189, 0.95);
    color: #7a4a16;
}

.gamedb-fanart-status-draft,
.gamedb-fanart-status-private {
    background: rgba(235, 235, 235, 0.95);
    color: #555;
}

.gamedb-fanart-like-wrap {
    margin-top: 10px;
}

.gamedb-fanart-like-button {
    display: inline-flex;
    align-items: center;
    gap: 5px;

    min-height: 32px;
    padding: 6px 11px;
    border: 1px solid rgba(224, 191, 140, 0.9);
    border-radius: 999px;
    background: linear-gradient(to bottom, #fffdf7, #fff1d6);
    color: #5b3218;

    cursor: pointer;
    font-weight: 900;
}

.gamedb-fanart-like-button:hover,
.gamedb-fanart-like-button:focus,
.gamedb-fanart-like-button.is-liked {
    border-color: var(--gamedb-border-strong);
    background: linear-gradient(to bottom, #f0b35d, #b86b2b);
    color: #fff7df;
}

.gamedb-fanart-like-button:disabled {
    opacity: 0.65;
    cursor: wait;
}

.gamedb-fanart-like-button.is-disabled {
    cursor: pointer;
}
	/* =========================================================
   GameDB Favoriten
   ========================================================= */

.gamedb-detail-actions {
    position: relative;
    z-index: 1;
    margin: 12px 0 0;
}

.gamedb-favorite-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    min-height: 38px;
    padding: 8px 14px;

    border: 2px solid var(--gamedb-border);
    border-radius: 999px;
    background: linear-gradient(to bottom, #fffdf7, #fff1d6);
    color: #5b3218;

    box-shadow: var(--gamedb-shadow);
    cursor: pointer;
    font-weight: 900;
    text-decoration: none;
}

.gamedb-favorite-button:hover,
.gamedb-favorite-button:focus,
.gamedb-favorite-button.is-favorite {
    border-color: var(--gamedb-border-strong);
    background: linear-gradient(to bottom, #f0b35d, #b86b2b);
    color: #fff7df;
}

.gamedb-favorite-button:disabled {
    opacity: 0.7;
    cursor: wait;
}

.gamedb-favorite-icon {
    font-size: 17px;
    line-height: 1;
}

.gamedb-my-favorites-card {
    position: relative;
    z-index: 1;
    margin: 0 0 22px;
    padding: 22px 24px;
    border: 2px solid var(--gamedb-border);
    border-radius: 16px;
    background: linear-gradient(to bottom, #fffdf8, #fff6e5);
    box-shadow: var(--gamedb-shadow);
}

.gamedb-my-favorites-card h2 {
    margin: 0 0 10px;
    color: var(--gamedb-brown);
    font-size: 28px;
    line-height: 1.15;
}

.gamedb-my-favorites-list {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.gamedb-my-favorite-item {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;

    padding: 12px;
    border: 1px solid rgba(224, 191, 140, 0.75);
    border-radius: 14px;
    background: rgba(255, 246, 229, 0.55);
}

.gamedb-my-favorite-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gamedb-favorite-thumb {
    display: block;
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.gamedb-my-favorite-type {
    display: inline-flex;
    width: fit-content;
    margin: 0 0 5px;
    padding: 3px 9px;
    border-radius: 999px;
    background: linear-gradient(to bottom, #fff1bd, #f6d47d);
    color: #5b3218;
    font-size: 12px;
    font-weight: 900;
}

.gamedb-my-favorite-content h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.2;
}

.gamedb-my-favorite-content h3 a {
    color: var(--gamedb-brown);
    text-decoration: none;
}

.gamedb-my-favorite-content h3 a:hover,
.gamedb-my-favorite-content h3 a:focus {
    text-decoration: underline;
}

.gamedb-my-favorite-action {
    display: flex;
    justify-content: flex-end;
}

.gamedb-my-favorite-action .gamedb-favorite-button {
    white-space: nowrap;
}

@media (max-width: 760px) {
    .gamedb-my-favorite-item {
        grid-template-columns: 58px minmax(0, 1fr);
    }

    .gamedb-my-favorite-action {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }
}
	/* =========================================================
   GameDB Merken-Button
   ========================================================= */

.gamedb-detail-actions {
    position: relative;
    z-index: 1;
    margin: 12px 0 0;
}

.gamedb-favorite-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    min-height: 36px;
    padding: 7px 14px;

    border: 1px solid rgba(224, 191, 140, 0.9);
    border-radius: 999px;
    background: linear-gradient(to bottom, #fff8df, #f6d47d);
    color: #5b3218;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.65),
        0 2px 5px rgba(91, 50, 24, 0.14);

    cursor: pointer;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    transition:
        transform 0.12s ease,
        background 0.12s ease,
        border-color 0.12s ease,
        color 0.12s ease;
}

.gamedb-favorite-button:hover,
.gamedb-favorite-button:focus {
    transform: translateY(-1px);
    border-color: var(--gamedb-border-strong);
    background: linear-gradient(to bottom, #f0b35d, #b86b2b);
    color: #fff7df;
}

.gamedb-favorite-button.is-favorite {
    border-color: #9c5a22;
    background: linear-gradient(to bottom, #d99642, #8b4d22);
    color: #fff7df;
}

.gamedb-favorite-button:disabled {
    opacity: 0.7;
    cursor: wait;
    transform: none;
}

.gamedb-favorite-icon {
    font-size: 17px;
    line-height: 1;
}

.gamedb-favorite-text {
    line-height: 1;
}
	/* =========================================================
   GameDB Datenbank-Hinweise
   ========================================================= */

.gamedb-database-report-card,
.gamedb-my-reports-card {
    position: relative;
    z-index: 1;
    margin: 24px 0 0;
    padding: 22px 24px;
    border: 2px solid var(--gamedb-border);
    border-radius: 16px;
    background: linear-gradient(to bottom, #fffdf8, #fff6e5);
    box-shadow: var(--gamedb-shadow);
}

.gamedb-my-reports-card {
    margin-bottom: 22px;
}

.gamedb-database-report-card h2,
.gamedb-my-reports-card h2 {
    margin: 0 0 10px;
    color: var(--gamedb-brown);
    font-size: 26px;
    line-height: 1.15;
}

.gamedb-database-report-card p,
.gamedb-my-reports-card p {
    color: var(--gamedb-text-soft);
    line-height: 1.55;
}

.gamedb-database-report-form {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.gamedb-database-report-form label {
    font-weight: 900;
    color: var(--gamedb-text);
}

.gamedb-database-report-form select,
.gamedb-database-report-form textarea {
    width: 100%;
    padding: 9px 10px;
    border: 1px solid rgba(224, 191, 140, 0.9);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--gamedb-text);
}

.gamedb-database-report-form textarea {
    min-height: 120px;
    resize: vertical;
}

.gamedb-my-reports-list {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.gamedb-my-report-item {
    padding: 13px 14px;
    border: 1px solid rgba(224, 191, 140, 0.75);
    border-radius: 14px;
    background: rgba(255, 246, 229, 0.55);
}

.gamedb-my-report-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 8px;
}

.gamedb-my-report-type,
.gamedb-my-report-status {
    display: inline-flex;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.gamedb-my-report-type {
    background: linear-gradient(to bottom, #fff1bd, #f6d47d);
    color: #5b3218;
}

.gamedb-my-report-status-open,
.gamedb-my-report-status-reviewing {
    background: rgba(255, 241, 189, 0.95);
    color: #7a4a16;
}

.gamedb-my-report-status-accepted {
    background: rgba(232, 249, 224, 0.9);
    color: #2f6d28;
}

.gamedb-my-report-status-rejected {
    background: rgba(255, 230, 224, 0.85);
    color: #7a2418;
}

.gamedb-my-report-item h3 {
    margin: 0 0 6px;
    font-size: 18px;
    line-height: 1.25;
}

.gamedb-my-report-item h3 a {
    color: var(--gamedb-brown);
    text-decoration: none;
}

.gamedb-my-report-item h3 a:hover,
.gamedb-my-report-item h3 a:focus {
    text-decoration: underline;
}

.gamedb-my-report-item p {
    margin: 0;
}
	/* =========================================================
   GameDB Mitgliederbereich Dashboard
   ========================================================= */

.gamedb-member-dashboard {
    position: relative;
    z-index: 1;
}

.gamedb-member-dashboard-nav {
    position: sticky;
    top: 0;
    z-index: 20;

    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    margin: 0 0 20px;
    padding: 12px;

    border: 2px solid var(--gamedb-border);
    border-radius: 16px;
    background:
        linear-gradient(
            to bottom,
            rgba(255, 253, 248, 0.97),
            rgba(255, 241, 214, 0.97)
        );
    box-shadow: var(--gamedb-shadow);
    backdrop-filter: blur(4px);
}

.gamedb-member-dashboard-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 38px;
    padding: 8px 15px;

    border: 1px solid rgba(224, 191, 140, 0.9);
    border-radius: 999px;
    background: linear-gradient(to bottom, #fffdf7, #fff1d6);
    color: #5b3218;

    font-weight: 900;
    text-decoration: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.gamedb-member-dashboard-nav a:hover,
.gamedb-member-dashboard-nav a:focus {
    border-color: var(--gamedb-border-strong);
    background: linear-gradient(to bottom, #fff1bd, #f6d47d);
    color: #5b3218;
    text-decoration: none;
}

.gamedb-member-dashboard-nav a.is-active {
    border-color: #8b4d22;
    background:
        linear-gradient(
            to bottom,
            #d99642 0%,
            #b9692c 52%,
            #87491f 100%
        );
    color: #fff7df;
    text-shadow: 0 1px 2px rgba(70, 35, 10, 0.45);
}

.gamedb-member-dashboard-content {
    position: relative;
    z-index: 1;
}

.gamedb-member-dashboard-content > :first-child {
    margin-top: 0;
}

.gamedb-member-dashboard-content > :last-child {
    margin-bottom: 0;
}

.gamedb-member-forum-card {
    position: relative;
    z-index: 1;
    margin: 0 0 22px;
    padding: 22px 24px;
    border: 2px solid var(--gamedb-border);
    border-radius: 16px;
    background: linear-gradient(to bottom, #fffdf8, #fff6e5);
    box-shadow: var(--gamedb-shadow);
}

.gamedb-member-forum-card h2 {
    margin: 0 0 14px;
    color: var(--gamedb-brown);
    font-size: 28px;
    line-height: 1.15;
}

.gamedb-member-wpforo-profile {
    margin-top: 14px;
}

/* wpForo-Profil optisch in das GameDB-Theme einpassen */
.gamedb-member-wpforo-profile #wpforo,
.gamedb-member-wpforo-profile #wpforo-wrap {
    background: transparent !important;
    color: var(--gamedb-text) !important;
}

.gamedb-member-wpforo-profile #wpforo-wrap a {
    color: var(--gamedb-brown) !important;
    font-weight: 700;
}

.gamedb-member-wpforo-profile #wpforo-wrap input[type="text"],
.gamedb-member-wpforo-profile #wpforo-wrap input[type="password"],
.gamedb-member-wpforo-profile #wpforo-wrap input[type="email"],
.gamedb-member-wpforo-profile #wpforo-wrap textarea,
.gamedb-member-wpforo-profile #wpforo-wrap select {
    border: 1px solid rgba(224, 191, 140, 0.85) !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, 0.78) !important;
    color: var(--gamedb-text) !important;
}

.gamedb-member-wpforo-profile #wpforo-wrap button,
.gamedb-member-wpforo-profile #wpforo-wrap input[type="submit"],
.gamedb-member-wpforo-profile #wpforo-wrap .wpf-button,
.gamedb-member-wpforo-profile #wpforo-wrap .wpforo-button {
    border: 1px solid rgba(224, 191, 140, 0.85) !important;
    border-radius: 999px !important;
    background: linear-gradient(to bottom, #fff1bd, #f6d47d) !important;
    color: #5b3218 !important;
    cursor: pointer;
    font-weight: 900;
}

.gamedb-member-wpforo-profile #wpforo-wrap button:hover,
.gamedb-member-wpforo-profile #wpforo-wrap input[type="submit"]:hover,
.gamedb-member-wpforo-profile #wpforo-wrap .wpf-button:hover,
.gamedb-member-wpforo-profile #wpforo-wrap .wpforo-button:hover {
    border-color: var(--gamedb-border-strong) !important;
    background: linear-gradient(to bottom, #f0b35d, #b86b2b) !important;
    color: #fff7df !important;
}

@media (max-width: 700px) {
    .gamedb-member-dashboard-nav {
        position: static;
        padding: 10px;
    }

    .gamedb-member-dashboard-nav a {
        flex: 1 1 calc(50% - 8px);
    }
}
	/* =========================================================
   GameDB Mitgliederbereich: Account verwalten
   ========================================================= */

.gamedb-member-account-card {
    position: relative;
    z-index: 1;
    margin: 0 0 22px;
    padding: 22px 24px;
    border: 2px solid var(--gamedb-border);
    border-radius: 16px;
    background: linear-gradient(to bottom, #fffdf8, #fff6e5);
    box-shadow: var(--gamedb-shadow);
}

.gamedb-member-account-card h2 {
    margin: 0 0 14px;
    color: var(--gamedb-brown);
    font-size: 28px;
    line-height: 1.15;
}

.gamedb-member-account-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.gamedb-member-account-panel {
    padding: 16px;
    border: 1px solid rgba(224, 191, 140, 0.75);
    border-radius: 14px;
    background: rgba(255, 246, 229, 0.55);
}

.gamedb-member-account-panel h3 {
    margin: 0 0 12px;
    color: var(--gamedb-brown);
    font-size: 21px;
    line-height: 1.2;
}

.gamedb-member-account-panel p {
    margin: 0 0 14px;
    color: var(--gamedb-text-soft);
    line-height: 1.5;
}

.gamedb-member-account-form {
    display: grid;
    gap: 10px;
}

.gamedb-member-account-form label {
    font-weight: 900;
    color: var(--gamedb-text);
}

.gamedb-member-account-form input[type="password"],
.gamedb-member-account-form input[type="text"] {
    width: 100%;
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid rgba(224, 191, 140, 0.9);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--gamedb-text);
}

.gamedb-member-danger-panel {
    border-color: rgba(160, 45, 30, 0.35);
    background: rgba(255, 236, 230, 0.55);
}

.gamedb-member-danger-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    width: fit-content;
    padding: 9px 18px;

    border: 2px solid rgba(160, 45, 30, 0.55);
    border-radius: 999px;
    background: linear-gradient(to bottom, #ffd7cf, #b94b36);
    color: #fff7df;

    box-shadow: var(--gamedb-shadow);
    cursor: pointer;
    font-weight: 900;
    text-decoration: none;
}

.gamedb-member-danger-button:hover,
.gamedb-member-danger-button:focus {
    border-color: #7a2418;
    background: linear-gradient(to bottom, #c95a42, #7a2418);
    color: #fff7df;
}

@media (max-width: 900px) {
    .gamedb-member-account-grid {
        grid-template-columns: 1fr;
    }
}
/* =========================================================
   GameDB: kleine Kicker-Überschriften seitenweit ausblenden
   ========================================================= */

body.gamedb-template-page .gamedb-kicker,
body.gamedb-view .gamedb-kicker {
    display: none !important;
}

body.gamedb-template-page .gamedb-kicker + h1,
body.gamedb-template-page .gamedb-kicker + h2,
body.gamedb-view .gamedb-kicker + h1,
body.gamedb-view .gamedb-kicker + h2 {
    margin-top: 0 !important;
}
	/* =========================================================
   GameDB Mitgliederbereich: Datenbank-Einreichungen
   ========================================================= */

.gamedb-database-submission-card {
    position: relative;
    z-index: 1;
    margin: 24px 0 0;
    padding: 22px 24px;
    border: 2px solid var(--gamedb-border);
    border-radius: 16px;
    background: linear-gradient(to bottom, #fffdf8, #fff6e5);
    box-shadow: var(--gamedb-shadow);
}

.gamedb-database-submission-card h2 {
    margin: 0 0 10px;
    color: var(--gamedb-brown);
    font-size: 26px;
    line-height: 1.15;
}

.gamedb-database-submission-card p {
    color: var(--gamedb-text-soft);
    line-height: 1.55;
}

.gamedb-database-submission-form {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.gamedb-database-submission-form label,
.gamedb-submission-fields legend {
    font-weight: 900;
    color: var(--gamedb-text);
}

.gamedb-database-submission-form input[type="text"],
.gamedb-database-submission-form input[type="file"],
.gamedb-database-submission-form select,
.gamedb-database-submission-form textarea {
    width: 100%;
    padding: 9px 10px;
    border: 1px solid rgba(224, 191, 140, 0.9);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--gamedb-text);
}

.gamedb-database-submission-form textarea {
    min-height: 110px;
    resize: vertical;
}

.gamedb-submission-fields {
    display: none;
    margin: 10px 0;
    padding: 16px;
    border: 1px solid rgba(224, 191, 140, 0.75);
    border-radius: 14px;
    background: rgba(255, 246, 229, 0.55);
}

.gamedb-submission-fields.is-active {
    display: grid;
    gap: 10px;
}

.gamedb-submission-fields legend {
    padding: 0 8px;
    color: var(--gamedb-brown);
}

.gamedb-my-submissions-card {
    margin-bottom: 22px;
}

.gamedb-my-submissions-list {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.gamedb-my-submission-item {
    padding: 13px 14px;
    border: 1px solid rgba(224, 191, 140, 0.75);
    border-radius: 14px;
    background: rgba(255, 246, 229, 0.55);
}

.gamedb-my-submission-item h3 {
    margin: 8px 0 0;
    color: var(--gamedb-brown);
    font-size: 18px;
    line-height: 1.25;
}

.gamedb-my-submission-type,
.gamedb-my-submission-status {
    display: inline-flex;
    margin: 0 6px 0 0;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.gamedb-my-submission-type {
    background: linear-gradient(to bottom, #fff1bd, #f6d47d);
    color: #5b3218;
}

.gamedb-my-submission-status-pending {
    background: rgba(255, 241, 189, 0.95);
    color: #7a4a16;
}

.gamedb-my-submission-status-accepted {
    background: rgba(232, 249, 224, 0.9);
    color: #2f6d28;
}

.gamedb-my-submission-status-rejected {
    background: rgba(255, 230, 224, 0.85);
    color: #7a2418;
}
	/* =========================================================
   GameDB Mitgliederbereich: Item-Einreichungen
   ========================================================= */

.gamedb-submission-item-type-fields {
    display: none;
}

.gamedb-submission-item-type-fields.is-active {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(224, 191, 140, 0.65);
    border-radius: 12px;
    background: rgba(255, 253, 248, 0.55);
}
	/* =========================================================
   GameDB Item-Einreichungen: Dropquellen
   ========================================================= */

.gamedb-submission-drop-box {
    display: grid;
    gap: 10px;
    margin-top: 12px;
    padding: 14px;
    border: 1px solid rgba(224, 191, 140, 0.75);
    border-radius: 14px;
    background: rgba(255, 246, 229, 0.55);
}

.gamedb-submission-drop-box h3 {
    margin: 0;
    color: var(--gamedb-brown);
    font-size: 18px;
    line-height: 1.2;
}

.gamedb-submission-drop-box p {
    margin: 0;
    color: var(--gamedb-text-soft);
}

.gamedb-submission-drop-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.gamedb-submission-drop-table {
    width: 100%;
    min-width: 520px;
    border-collapse: separate;
    border-spacing: 0 8px;
}

.gamedb-submission-drop-table th {
    padding: 0 8px 2px;
    color: var(--gamedb-brown);
    font-size: 13px;
    text-align: left;
}

.gamedb-submission-drop-table td {
    padding: 0 8px;
}

.gamedb-submission-add-row-button {
    width: fit-content;
}

.gamedb-member-secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 38px;
    padding: 8px 15px;

    border: 1px solid rgba(224, 191, 140, 0.9);
    border-radius: 999px;
    background: linear-gradient(to bottom, #fffdf7, #fff1d6);
    color: #5b3218;

    cursor: pointer;
    font-weight: 900;
    text-decoration: none;
}

.gamedb-member-secondary-button:hover,
.gamedb-member-secondary-button:focus {
    border-color: var(--gamedb-border-strong);
    background: linear-gradient(to bottom, #fff1bd, #f6d47d);
    color: #5b3218;
}
	/* =========================================================
   GameDB Mitgliederbereich: Monster-Einreichungen
   ========================================================= */

.gamedb-submission-monster-stats-box {
    display: grid;
    gap: 12px;
    margin-top: 12px;
    padding: 14px;
    border: 1px solid rgba(224, 191, 140, 0.75);
    border-radius: 14px;
    background: rgba(255, 246, 229, 0.55);
}

.gamedb-submission-monster-stats-box h3 {
    margin: 0;
    color: var(--gamedb-brown);
    font-size: 18px;
    line-height: 1.2;
}

.gamedb-submission-monster-stats-grid {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 10px 12px;
    align-items: center;
}

.gamedb-submission-monster-stats-grid label {
    font-weight: 900;
    color: var(--gamedb-text);
}

@media (max-width: 700px) {
    .gamedb-submission-monster-stats-grid {
        grid-template-columns: 1fr;
    }
}
	/* =========================================================
   GameDB Mitgliederbereich: wpForo-Profil als Frame
   ========================================================= */

.gamedb-member-forum-frame-card {
    position: relative;
    z-index: 1;
    margin: 0 0 22px;
    padding: 22px 24px;
    border: 2px solid var(--gamedb-border);
    border-radius: 16px;
    background: linear-gradient(to bottom, #fffdf8, #fff6e5);
    box-shadow: var(--gamedb-shadow);
}

.gamedb-member-forum-frame-card h2 {
    margin: 0 0 16px;
    color: var(--gamedb-brown);
    font-size: 28px;
    line-height: 1.15;
}

.gamedb-member-forum-frame-wrap {
    width: 100%;
    overflow: hidden;
    border-radius: 14px;
    background: #fffdf8;
}

.gamedb-member-forum-frame {
    display: block;
    width: 100%;
    min-height: 900px;
    border: 0;
    background: transparent;
}
/* =========================================================
   wpForo Threaded Layout: einspaltig, kompakt mit Icon / Info / Statistik
   ========================================================= */

/* Forum-Liste einspaltig halten */
body.gamedb-template-page #wpforo #wpforo-wrap .wpfl-4 .wpf-forums,
body.gamedb-view #wpforo #wpforo-wrap .wpfl-4 .wpf-forums,
body.gamedb-wpforo-frame-body #wpforo #wpforo-wrap .wpfl-4 .wpf-forums {
    display: block !important;
}

/* Eine Forum-Zeile: Icon | Titel/Beschreibung | Statistik */
body.gamedb-template-page #wpforo #wpforo-wrap .wpfl-4 .wpf-forum,
body.gamedb-view #wpforo #wpforo-wrap .wpfl-4 .wpf-forum,
body.gamedb-wpforo-frame-body #wpforo #wpforo-wrap .wpfl-4 .wpf-forum,
body.gamedb-template-page #wpforo #wpforo-wrap .wpfl-4 .wpf-forum-item,
body.gamedb-view #wpforo #wpforo-wrap .wpfl-4 .wpf-forum-item,
body.gamedb-wpforo-frame-body #wpforo #wpforo-wrap .wpfl-4 .wpf-forum-item {
    float: none !important;
    clear: both !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;

    display: grid !important;
    grid-template-columns: 38px minmax(0, 1fr) 88px !important;
    gap: 12px !important;
    align-items: center !important;

    margin: 0 !important;
    padding: 14px 16px !important;
}

/* Icon wieder anzeigen und links halten */
body.gamedb-template-page #wpforo #wpforo-wrap .wpfl-4 .wpf-forum-icon,
body.gamedb-view #wpforo #wpforo-wrap .wpfl-4 .wpf-forum-icon,
body.gamedb-wpforo-frame-body #wpforo #wpforo-wrap .wpfl-4 .wpf-forum-icon {
    display: flex !important;
    grid-column: 1 !important;
    align-items: center !important;
    justify-content: center !important;

    width: 32px !important;
    min-width: 32px !important;
    max-width: 32px !important;
    margin: 0 !important;
}

/* Info-Bereich direkt rechts neben dem Icon */
body.gamedb-template-page #wpforo #wpforo-wrap .wpfl-4 .wpf-forum-info,
body.gamedb-view #wpforo #wpforo-wrap .wpfl-4 .wpf-forum-info,
body.gamedb-wpforo-frame-body #wpforo #wpforo-wrap .wpfl-4 .wpf-forum-info {
    display: block !important;
    grid-column: 2 !important;

    min-width: 0 !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Titel links neben dem Icon, einzeilig */
body.gamedb-template-page #wpforo #wpforo-wrap .wpfl-4 .wpf-forum-title,
body.gamedb-view #wpforo #wpforo-wrap .wpfl-4 .wpf-forum-title,
body.gamedb-wpforo-frame-body #wpforo #wpforo-wrap .wpfl-4 .wpf-forum-title {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.gamedb-template-page #wpforo #wpforo-wrap .wpfl-4 .wpf-forum-title a,
body.gamedb-view #wpforo #wpforo-wrap .wpfl-4 .wpf-forum-title a,
body.gamedb-wpforo-frame-body #wpforo #wpforo-wrap .wpfl-4 .wpf-forum-title a {
    display: block !important;
    max-width: 100% !important;

    overflow: hidden !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;

    font-weight: 800 !important;
    text-align: left !important;
}

/* Beschreibung wieder unter den Titel, nicht als eigene mittlere Spalte */
body.gamedb-template-page #wpforo #wpforo-wrap .wpfl-4 .wpf-forum-desc,
body.gamedb-view #wpforo #wpforo-wrap .wpfl-4 .wpf-forum-desc,
body.gamedb-wpforo-frame-body #wpforo #wpforo-wrap .wpfl-4 .wpf-forum-desc,
body.gamedb-template-page #wpforo #wpforo-wrap .wpfl-4 .wpf-forum-description,
body.gamedb-view #wpforo #wpforo-wrap .wpfl-4 .wpf-forum-description,
body.gamedb-wpforo-frame-body #wpforo #wpforo-wrap .wpfl-4 .wpf-forum-description {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;

    margin: 4px 0 0 !important;
    padding: 0 !important;

    font-size: 13px !important;
    line-height: 1.35 !important;
    text-align: left !important;
}

/* Statistik rechts deutlich schmaler */
body.gamedb-template-page #wpforo #wpforo-wrap .wpfl-4 .wpf-forum-stats,
body.gamedb-view #wpforo #wpforo-wrap .wpfl-4 .wpf-forum-stats,
body.gamedb-wpforo-frame-body #wpforo #wpforo-wrap .wpfl-4 .wpf-forum-stats,
body.gamedb-template-page #wpforo #wpforo-wrap .wpfl-4 .wpf-forum-stat,
body.gamedb-view #wpforo #wpforo-wrap .wpfl-4 .wpf-forum-stat,
body.gamedb-wpforo-frame-body #wpforo #wpforo-wrap .wpfl-4 .wpf-forum-stat {
    grid-column: 3 !important;
    justify-self: end !important;

    width: 78px !important;
    min-width: 78px !important;
    max-width: 78px !important;

    margin: 0 !important;
    padding: 0 !important;

    text-align: center !important;
}

/* Grauer Zählerbalken nicht überbreit ziehen */
body.gamedb-template-page #wpforo #wpforo-wrap .wpfl-4 .wpf-forum-stats *,
body.gamedb-view #wpforo #wpforo-wrap .wpfl-4 .wpf-forum-stats *,
body.gamedb-wpforo-frame-body #wpforo #wpforo-wrap .wpfl-4 .wpf-forum-stats *,
body.gamedb-template-page #wpforo #wpforo-wrap .wpfl-4 .wpf-forum-stat *,
body.gamedb-view #wpforo #wpforo-wrap .wpfl-4 .wpf-forum-stat *,
body.gamedb-wpforo-frame-body #wpforo #wpforo-wrap .wpfl-4 .wpf-forum-stat * {
    max-width: 78px !important;
    box-sizing: border-box !important;
}

/* Tabellenkopf darunter unverändert lassen */
body.gamedb-template-page #wpforo #wpforo-wrap .wpfl-4 .wpf-head-bar,
body.gamedb-view #wpforo #wpforo-wrap .wpfl-4 .wpf-head-bar,
body.gamedb-wpforo-frame-body #wpforo #wpforo-wrap .wpfl-4 .wpf-head-bar {
    display: flex !important;
}

/* Mobil wieder sauber untereinander */
@media (max-width: 780px) {
    body.gamedb-template-page #wpforo #wpforo-wrap .wpfl-4 .wpf-forum,
    body.gamedb-view #wpforo #wpforo-wrap .wpfl-4 .wpf-forum,
    body.gamedb-wpforo-frame-body #wpforo #wpforo-wrap .wpfl-4 .wpf-forum,
    body.gamedb-template-page #wpforo #wpforo-wrap .wpfl-4 .wpf-forum-item,
    body.gamedb-view #wpforo #wpforo-wrap .wpfl-4 .wpf-forum-item,
    body.gamedb-wpforo-frame-body #wpforo #wpforo-wrap .wpfl-4 .wpf-forum-item {
        grid-template-columns: 32px minmax(0, 1fr) !important;
        gap: 10px !important;
    }

    body.gamedb-template-page #wpforo #wpforo-wrap .wpfl-4 .wpf-forum-stats,
    body.gamedb-view #wpforo #wpforo-wrap .wpfl-4 .wpf-forum-stats,
    body.gamedb-wpforo-frame-body #wpforo #wpforo-wrap .wpfl-4 .wpf-forum-stats,
    body.gamedb-template-page #wpforo #wpforo-wrap .wpfl-4 .wpf-forum-stat,
    body.gamedb-view #wpforo #wpforo-wrap .wpfl-4 .wpf-forum-stat,
    body.gamedb-wpforo-frame-body #wpforo #wpforo-wrap .wpfl-4 .wpf-forum-stat {
        grid-column: 2 !important;
        justify-self: start !important;
        width: 78px !important;
        min-width: 78px !important;
        max-width: 78px !important;
        margin-top: 6px !important;
    }
}
	/* =========================================================
   wpForo Threaded Layout: alle Forum-Zeilen gleichmäßig
   ========================================================= */

body.gamedb-template-page #wpforo #wpforo-wrap .wpfl-4 .wpf-forum,
body.gamedb-view #wpforo #wpforo-wrap .wpfl-4 .wpf-forum,
body.gamedb-wpforo-frame-body #wpforo #wpforo-wrap .wpfl-4 .wpf-forum,
body.gamedb-template-page #wpforo #wpforo-wrap .wpfl-4 .wpf-forum-item,
body.gamedb-view #wpforo #wpforo-wrap .wpfl-4 .wpf-forum-item,
body.gamedb-wpforo-frame-body #wpforo #wpforo-wrap .wpfl-4 .wpf-forum-item {
    border-left: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
}

/* Auch jede zweite Zeile explizit neutralisieren */
body.gamedb-template-page #wpforo #wpforo-wrap .wpfl-4 .wpf-forum:nth-child(odd),
body.gamedb-template-page #wpforo #wpforo-wrap .wpfl-4 .wpf-forum:nth-child(even),
body.gamedb-view #wpforo #wpforo-wrap .wpfl-4 .wpf-forum:nth-child(odd),
body.gamedb-view #wpforo #wpforo-wrap .wpfl-4 .wpf-forum:nth-child(even),
body.gamedb-wpforo-frame-body #wpforo #wpforo-wrap .wpfl-4 .wpf-forum:nth-child(odd),
body.gamedb-wpforo-frame-body #wpforo #wpforo-wrap .wpfl-4 .wpf-forum:nth-child(even),
body.gamedb-template-page #wpforo #wpforo-wrap .wpfl-4 .wpf-forum-item:nth-child(odd),
body.gamedb-template-page #wpforo #wpforo-wrap .wpfl-4 .wpf-forum-item:nth-child(even),
body.gamedb-view #wpforo #wpforo-wrap .wpfl-4 .wpf-forum-item:nth-child(odd),
body.gamedb-view #wpforo #wpforo-wrap .wpfl-4 .wpf-forum-item:nth-child(even),
body.gamedb-wpforo-frame-body #wpforo #wpforo-wrap .wpfl-4 .wpf-forum-item:nth-child(odd),
body.gamedb-wpforo-frame-body #wpforo #wpforo-wrap .wpfl-4 .wpf-forum-item:nth-child(even) {
    border-left: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
}

/* Falls wpForo die Hervorhebung über ein Pseudo-Element macht */
body.gamedb-template-page #wpforo #wpforo-wrap .wpfl-4 .wpf-forum::before,
body.gamedb-template-page #wpforo #wpforo-wrap .wpfl-4 .wpf-forum::after,
body.gamedb-view #wpforo #wpforo-wrap .wpfl-4 .wpf-forum::before,
body.gamedb-view #wpforo #wpforo-wrap .wpfl-4 .wpf-forum::after,
body.gamedb-wpforo-frame-body #wpforo #wpforo-wrap .wpfl-4 .wpf-forum::before,
body.gamedb-wpforo-frame-body #wpforo #wpforo-wrap .wpfl-4 .wpf-forum::after,
body.gamedb-template-page #wpforo #wpforo-wrap .wpfl-4 .wpf-forum-item::before,
body.gamedb-template-page #wpforo #wpforo-wrap .wpfl-4 .wpf-forum-item::after,
body.gamedb-view #wpforo #wpforo-wrap .wpfl-4 .wpf-forum-item::before,
body.gamedb-view #wpforo #wpforo-wrap .wpfl-4 .wpf-forum-item::after,
body.gamedb-wpforo-frame-body #wpforo #wpforo-wrap .wpfl-4 .wpf-forum-item::before,
body.gamedb-wpforo-frame-body #wpforo #wpforo-wrap .wpfl-4 .wpf-forum-item::after {
    border-left: 0 !important;
    box-shadow: none !important;
}
	/* =========================================================
   GameDB Sidebar-Dekorationen
   ========================================================= */

body.gamedb-template-page .gamedb-layout,
body.gamedb-view .gamedb-layout {
    overflow: visible !important;
}

body.gamedb-template-page .gamedb-sidebar,
body.gamedb-view .gamedb-sidebar {
    position: sticky !important;
    top: 20px !important;
    overflow: visible !important;
    z-index: 5 !important;
}

body.gamedb-template-page .gamedb-sidebar-box,
body.gamedb-view .gamedb-sidebar-box {
    position: relative !important;
    overflow: visible !important;
}

body.gamedb-template-page .gamedb-sidebar-box::after,
body.gamedb-view .gamedb-sidebar-box::after {
    content: "";
    display: none;

    position: absolute;
    z-index: 20;
    pointer-events: none;

    width: 76px;
    height: 76px;

    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* Linke Sidebar: Bilder ragen nach rechts heraus */

body.gamedb-template-page .gamedb-sidebar-menu-gamedb_left_sidebar::after,
body.gamedb-view .gamedb-sidebar-menu-gamedb_left_sidebar::after {
    display: block;
    top: -10px;
    right: -42px;
    background-image: url("decor/sidebar-home.png");
}

body.gamedb-template-page .gamedb-sidebar-menu-gamedb_left_game_info::after,
body.gamedb-view .gamedb-sidebar-menu-gamedb_left_game_info::after {
    display: block;
    top: -18px;
    right: -46px;
    background-image: url("decor/sidebar-game-info.png");
}

body.gamedb-template-page .gamedb-sidebar-menu-gamedb_left_etc::after,
body.gamedb-view .gamedb-sidebar-menu-gamedb_left_etc::after {
    display: block;
    top: -18px;
    right: -42px;
    background-image: url("decor/sidebar-etc.png");
}

/* Rechte Sidebar: Bilder ragen nach links heraus */

body.gamedb-template-page .gamedb-sidebar-menu-gamedb_right_sidebar::after,
body.gamedb-view .gamedb-sidebar-menu-gamedb_right_sidebar::after {
    display: block;
    top: -20px;
    left: -44px;
    background-image: url("decor/sidebar-database.png");
}

body.gamedb-template-page .gamedb-sidebar-search::after,
body.gamedb-view .gamedb-sidebar-search::after {
    display: block;
    top: -18px;
    left: -42px;
    background-image: url("decor/sidebar-search.png");
}

body.gamedb-template-page .gamedb-sidebar-poll::after,
body.gamedb-view .gamedb-sidebar-poll::after {
    display: block;
    top: -18px;
    left: -42px;
    background-image: url("decor/sidebar-poll.png");
}

body.gamedb-template-page .gamedb-sidebar-menu-gamedb_right_legal::after,
body.gamedb-view .gamedb-sidebar-menu-gamedb_right_legal::after {
    display: block;
    top: -18px;
    left: -42px;
    background-image: url("decor/sidebar-legal.png");
}

/* Auf kleineren Screens ausblenden, damit nichts überlappt */
@media (max-width: 1100px) {
    body.gamedb-template-page .gamedb-sidebar-box::after,
    body.gamedb-view .gamedb-sidebar-box::after {
        display: none !important;
    }
}
	/* =========================================================
   GameDB Sidebar-Aufklapper: geschlossener Grundzustand
   ========================================================= */

.gamedb-sidebar-nav .gamedb-menu-collapsible > .sub-menu {
    display: none !important;
}

.gamedb-sidebar-nav .gamedb-menu-collapsible.is-open > .sub-menu {
    display: block !important;
}
/* =========================================================
   GameDB Responsive Sidebars / Offcanvas
   Stand: vor den Scroll-Fix-Experimenten
   ========================================================= */

.gamedb-mobile-sidebar-controls,
.gamedb-sidebar-drawer-close,
.gamedb-sidebar-overlay {
    display: none;
}

@media (max-width: 1450px) {
    body.gamedb-template-page .gamedb-layout,
    body.gamedb-view .gamedb-layout {
        width: calc(100vw - 24px) !important;
        max-width: none !important;
        display: block !important;
        padding-bottom: 48px !important;
    }

    body.gamedb-template-page .gamedb-main-content,
    body.gamedb-view .gamedb-main-content {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        overflow: visible !important;
    }

    .gamedb-mobile-sidebar-controls {
        position: sticky;
        top: 8px;
        z-index: 99980;

        display: flex;
        gap: 10px;
        justify-content: center;

        margin: 0 0 14px;
        padding: 10px;

        border: 2px solid var(--gamedb-border);
        border-radius: 16px;
        background: linear-gradient(to bottom, #fffdf8, #fff1d6);
        box-shadow: var(--gamedb-shadow);
    }

    .gamedb-mobile-sidebar-controls button,
    .gamedb-sidebar-drawer-close {
        appearance: none;
        border: 1px solid rgba(133, 72, 28, 0.45);
        border-radius: 999px;
        background: linear-gradient(to bottom, #d99642, #87491f);
        color: #fff7df;
        cursor: pointer;
        font-weight: 900;
        padding: 10px 16px;
        text-shadow: 0 1px 2px rgba(70, 35, 10, 0.45);
    }

    .gamedb-mobile-sidebar-controls button:hover,
    .gamedb-mobile-sidebar-controls button:focus,
    .gamedb-sidebar-drawer-close:hover,
    .gamedb-sidebar-drawer-close:focus {
        filter: brightness(1.08);
    }

   body.gamedb-template-page .gamedb-sidebar,
body.gamedb-view .gamedb-sidebar {
    position: fixed !important;
    top: 0;
    bottom: 0;
    z-index: 100000;

    width: min(360px, calc(100vw - 36px)) !important;
    max-width: min(360px, calc(100vw - 36px)) !important;

    padding: 16px !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;

    background: linear-gradient(to bottom, #fff1d6, #ffe0b8);
    box-shadow: 0 16px 40px rgba(70, 35, 10, 0.38);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        transform 0.22s ease,
        opacity 0.22s ease,
        visibility 0s linear 0.22s;
}

    body.admin-bar.gamedb-template-page .gamedb-sidebar,
    body.admin-bar.gamedb-view .gamedb-sidebar {
        top: 32px;
    }

    body.gamedb-template-page .gamedb-sidebar-left,
    body.gamedb-view .gamedb-sidebar-left {
        left: 0;
        transform: translateX(-105%);
    }

    body.gamedb-template-page .gamedb-sidebar-right,
    body.gamedb-view .gamedb-sidebar-right {
        right: 0;
        transform: translateX(105%);
    }

   body.gamedb-template-page .gamedb-sidebar.is-open,
body.gamedb-view .gamedb-sidebar.is-open {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transition:
        transform 0.22s ease,
        opacity 0.22s ease,
        visibility 0s linear 0s;
}

    .gamedb-sidebar-drawer-close {
        display: block;
        width: 100%;
        margin: 0 0 14px;
    }

    .gamedb-sidebar-overlay {
        position: fixed;
        inset: 0;
        z-index: 99990;

        display: block;
        pointer-events: none;
        opacity: 0;

        background: rgba(45, 23, 8, 0.44);
        transition: opacity 0.22s ease;
    }

    .gamedb-sidebar-overlay.is-active {
        pointer-events: auto;
        opacity: 1;
    }

    body.gamedb-sidebar-drawer-open {
        overflow: hidden;
    }

    /* Deko-Bilder in Drawer-Ansicht ausblenden, damit nichts überlappt */
    body.gamedb-template-page .gamedb-sidebar-box::after,
    body.gamedb-view .gamedb-sidebar-box::after {
        display: none !important;
    }
}

@media (max-width: 782px) {
    body.admin-bar.gamedb-template-page .gamedb-sidebar,
    body.admin-bar.gamedb-view .gamedb-sidebar {
        top: 46px;
    }
}

@media (max-width: 700px) {
    body.gamedb-template-page .gamedb-layout,
    body.gamedb-view .gamedb-layout {
        width: calc(100vw - 16px) !important;
        padding-bottom: 24px !important;
    }

    .gamedb-mobile-sidebar-controls {
        position: sticky;
        top: 10px;
        left: auto;
        right: auto;
        bottom: auto;

        z-index: 99980;

        margin: 0 0 14px;
        padding: 8px;

        border-radius: 18px;
    }

    body.admin-bar .gamedb-mobile-sidebar-controls {
        top: 56px;
    }

    .gamedb-mobile-sidebar-controls button {
        flex: 1 1 50%;
        padding: 11px 10px;
        font-size: 13px;
    }

    body.gamedb-template-page .gamedb-sidebar,
    body.gamedb-view .gamedb-sidebar {
        width: min(340px, calc(100vw - 28px)) !important;
        max-width: min(340px, calc(100vw - 28px)) !important;
        padding: 12px !important;
    }

    body.gamedb-template-page .gamedb-page-header h1,
    body.gamedb-view .gamedb-page-header h1 {
        font-size: clamp(32px, 10vw, 48px) !important;
    }

    body.gamedb-template-page .gamedb-detail-card,
    body.gamedb-view .gamedb-detail-card {
        display: block !important;
    }

    body.gamedb-template-page .gamedb-detail-image,
    body.gamedb-view .gamedb-detail-image {
        margin: 0 0 16px !important;
    }
}
	/* =========================================================
   GameDB Mobile Drawer Fixes
   - Sidebars scrollbar machen
   - Mobile-Buttons ausblenden, wenn Drawer offen ist
   ========================================================= */

@media (max-width: 1450px) {
    body.gamedb-template-page .gamedb-sidebar,
    body.gamedb-view .gamedb-sidebar {
        height: 100dvh !important;
        max-height: 100dvh !important;

        overflow-y: auto !important;
        overflow-x: hidden !important;

        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
    }

    body.admin-bar.gamedb-template-page .gamedb-sidebar,
    body.admin-bar.gamedb-view .gamedb-sidebar {
        height: calc(100dvh - 32px) !important;
        max-height: calc(100dvh - 32px) !important;
    }

    body.gamedb-sidebar-drawer-open .gamedb-mobile-sidebar-controls {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        z-index: 1 !important;
    }
}

@media (max-width: 782px) {
    body.admin-bar.gamedb-template-page .gamedb-sidebar,
    body.admin-bar.gamedb-view .gamedb-sidebar {
        height: calc(100dvh - 46px) !important;
        max-height: calc(100dvh - 46px) !important;
    }
}

/* Fallback für ältere Browser ohne dvh */
@supports not (height: 100dvh) {
    @media (max-width: 1450px) {
        body.gamedb-template-page .gamedb-sidebar,
        body.gamedb-view .gamedb-sidebar {
            height: 100vh !important;
            max-height: 100vh !important;
        }

        body.admin-bar.gamedb-template-page .gamedb-sidebar,
        body.admin-bar.gamedb-view .gamedb-sidebar {
            height: calc(100vh - 32px) !important;
            max-height: calc(100vh - 32px) !important;
        }
    }

    @media (max-width: 782px) {
        body.admin-bar.gamedb-template-page .gamedb-sidebar,
        body.admin-bar.gamedb-view .gamedb-sidebar {
            height: calc(100vh - 46px) !important;
            max-height: calc(100vh - 46px) !important;
        }
    }
}
/* =========================================================
   Fix: Mobile Sidebar Overlay darf die Seite nicht blockieren
   ========================================================= */

.gamedb-sidebar-overlay,
.gamedb-sidebar-overlay.is-active {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}