/* Modern orangefluid KMS Design */

/* Roboto Flex Font Face Declaration */
@font-face {
    font-family: 'Roboto Flex';
    src: url('/assets/fonts/Roboto_Flex/RobotoFlex-VariableFont_GRAD,XOPQ,XTRA,YOPQ,YTAS,YTDE,YTFI,YTLC,YTUC,opsz,slnt,wdth,wght.ttf') format('truetype-variations');
    font-weight: 100 1000;
    font-stretch: 25% 151%;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Orange nur als Akzent, nicht als Seitenfläche */
    --accent: #c2410c;
    --accent-hover: #9a3412;
    --accent-soft: rgba(194, 65, 12, 0.1);
    --accent-ring: rgba(194, 65, 12, 0.22);
    --primary-color: var(--accent);
    --secondary-color: #b45309;
    --dark-color: #1a1a1a;
    --light-color: #f8f9fa;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --border-radius: 12px;
    --box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --box-shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.08);
    --transition: all 0.2s ease;
    
    /* Challenge Alert Colors */
    --challenge-alert-bg: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    --challenge-alert-shadow: 0 8px 25px rgba(220, 53, 69, 0.3);
    --challenge-alert-text: #ffffff;
    
    /* Light: neutraler Grau-Verlauf */
    --bg-gradient: linear-gradient(155deg, #f5f5f4 0%, #e4e4e7 42%, #d4d4d8 100%);
    --heading-color: #1c1917;
    --card-bg: #ffffff;
    --card-border: rgba(28, 25, 23, 0.08);
    --card-header-bg: var(--card-bg);
    --card-header-text: var(--heading-color);
    --text-primary: #292524;
    --text-secondary: #78716c;
    --text-muted: #a8a29e;
    --navbar-bg: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    
    /* Light Mode Component Colors */
    --stats-card-bg: #ffffff;
    --list-item-bg: rgba(255, 255, 255, 0.95);
    --list-item-hover: rgba(245, 245, 244, 0.98);
    --table-bg: #ffffff;
    --table-hover: rgba(120, 113, 108, 0.07);
    --badge-bg: rgba(255, 255, 255, 0.9);
    --border-color: rgba(28, 25, 23, 0.1);
    --input-bg: #ffffff;
    --button-secondary-bg: rgba(120, 113, 108, 0.08);
    --alert-bg: rgba(255, 255, 255, 0.98);

    /* Bootstrap 5: an Markenfarbe anbinden */
    --bs-primary: #c2410c;
    --bs-primary-rgb: 194, 65, 12;
    --bs-link-color: #c2410c;
    --bs-link-hover-color: #9a3412;
    
    /* Roboto Flex Font Weight Variables */
    --font-weight-thin: 100;
    --font-weight-extralight: 200;
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
    --font-weight-black: 900;

    /* App-Shell (Dashboard mit Sidebar) — gleicher Grau-Verlauf wie Gastseiten */
    --app-main-bg: linear-gradient(155deg, #f5f5f4 0%, #e4e4e7 42%, #d4d4d8 100%);
    --radius-xl: 1.75rem;
    --sidebar-gradient: linear-gradient(180deg, #fb923c 0%, #ea580c 40%, #c2410c 100%);
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --bs-primary: #ea580c;
    --bs-primary-rgb: 234, 88, 12;
    --bs-link-color: #fb923c;
    --bs-link-hover-color: #fdba74;
    /* Bootstrap-Text-Utilities (.text-body, .card-body, …) — sonst oft Schwarz auf dunklem Grund */
    --bs-body-color: #e7e5e4;
    --bs-body-bg: #18181b;
    --bs-secondary-color: #a8a29e;
    --bs-tertiary-color: #78716c;
    --bs-emphasis-color: #fafaf9;
    --heading-color: #fafaf9;
    --bg-gradient: linear-gradient(158deg, #18181b 0%, #27272a 48%, #3f3f46 100%);
    --card-bg: rgba(39, 39, 42, 0.96);
    --card-border: rgba(255, 255, 255, 0.08);
    --card-header-bg: var(--card-bg);
    --card-header-text: var(--heading-color);
    --text-primary: #fafaf9;
    --text-secondary: #a8a29e;
    --text-muted: #78716c;
    --navbar-bg: linear-gradient(135deg, #000000, #1a1a1a);
    --light-color: #212529;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.35);
    --box-shadow-hover: 0 12px 28px rgba(0, 0, 0, 0.45);
    
    /* Dark Mode Component Colors */
    --stats-card-bg: rgba(39, 39, 42, 0.95);
    --list-item-bg: rgba(63, 63, 70, 0.65);
    --list-item-hover: rgba(82, 82, 91, 0.75);
    --table-bg: rgba(39, 39, 42, 0.92);
    --table-hover: rgba(113, 113, 122, 0.35);
    --badge-bg: rgba(63, 63, 70, 0.85);
    --border-color: rgba(255, 255, 255, 0.12);
    --input-bg: rgba(63, 63, 70, 0.85);
    --button-secondary-bg: rgba(113, 113, 122, 0.45);
    --alert-bg: rgba(39, 39, 42, 0.95);

    --app-main-bg: linear-gradient(158deg, #18181b 0%, #27272a 48%, #3f3f46 100%);
    --sidebar-gradient: linear-gradient(180deg, #ea580c 0%, #c2410c 55%, #7c2d12 100%);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Roboto Flex', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: var(--font-weight-regular);
    background: var(--bg-gradient);
    background-attachment: fixed;
    min-height: 100vh;
    margin: 0;
    color: var(--text-primary);
    transition: var(--transition);
    position: relative;
}

/**
 * Hintergrund-Overlay: weiche „Mesh“-Lichtflecken + leichte Vignette (kein Rauschen).
 * Wirkt ruhiger als Pixel-Körnung und bleibt neutral lesbar.
 */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    mix-blend-mode: multiply;
    background:
        radial-gradient(ellipse 88% 58% at 10% 16%, rgba(113, 113, 122, 0.14), transparent 54%),
        radial-gradient(ellipse 78% 52% at 94% 82%, rgba(113, 113, 122, 0.1), transparent 50%),
        radial-gradient(ellipse 110% 72% at 50% 108%, rgba(0, 0, 0, 0.05), transparent 46%);
}

html[data-theme="dark"] body::before {
    mix-blend-mode: normal;
    background:
        radial-gradient(ellipse 92% 62% at 8% 12%, rgba(234, 88, 12, 0.14), transparent 56%),
        radial-gradient(ellipse 72% 56% at 96% 88%, rgba(255, 255, 255, 0.07), transparent 52%),
        radial-gradient(ellipse 130% 85% at 50% 100%, rgba(0, 0, 0, 0.35), transparent 58%);
}

@media (prefers-reduced-motion: reduce) {
    body::before {
        mix-blend-mode: normal;
        opacity: 0.65;
    }

    html[data-theme="dark"] body::before {
        opacity: 0.75;
    }
}

/* Font Awesome 6: Roboto Flex darf die Icon-Schrift nicht übernehmen */
.fa-solid,
.fas {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    font-style: normal;
    font-variant: normal;
}

.fa-regular,
.far {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 400 !important;
    font-style: normal;
}

.fa-brands,
.fab {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400 !important;
    font-style: normal;
}

body.app-body {
    background: var(--app-main-bg);
    background-attachment: scroll;
}

body.app-body--guest {
    background: var(--bg-gradient);
    background-attachment: fixed;
}

/* Login / Auth: gleiche ruhige Fläche wie App */
.bg-gradient-primary {
    background: var(--bg-gradient) !important;
    min-height: 100vh;
}

/* Typography Scale with Roboto Flex */
h1, .h1 {
    font-weight: var(--font-weight-extrabold);
    font-size: 2.5rem;
    color: var(--heading-color);
}

h2, .h2 {
    font-weight: var(--font-weight-bold);
    font-size: 2rem;
    color: var(--heading-color);
}

h3, .h3 {
    font-weight: var(--font-weight-bold);
    font-size: 1.75rem;
    color: var(--heading-color);
}

h4, .h4 {
    font-weight: var(--font-weight-semibold);
    font-size: 1.5rem;
    color: var(--heading-color);
}

h5, .h5 {
    font-weight: var(--font-weight-semibold);
    font-size: 1.25rem;
    color: var(--heading-color);
}

h6, .h6 {
    font-weight: var(--font-weight-medium);
    font-size: 1rem;
    color: var(--heading-color);
}

.display-1 {
    font-weight: var(--font-weight-black) !important;
    color: var(--heading-color) !important;
}

.display-2 {
    font-weight: var(--font-weight-extrabold) !important;
    color: var(--heading-color) !important;
}

.display-3 {
    font-weight: var(--font-weight-extrabold) !important;
    color: var(--heading-color) !important;
}

.display-4 {
    font-weight: var(--font-weight-bold) !important;
    color: var(--heading-color) !important;
}

.fw-thin { font-weight: var(--font-weight-thin) !important; }
.fw-extralight { font-weight: var(--font-weight-extralight) !important; }
.fw-light { font-weight: var(--font-weight-light) !important; }
.fw-normal { font-weight: var(--font-weight-regular) !important; }
.fw-medium { font-weight: var(--font-weight-medium) !important; }
.fw-semibold { font-weight: var(--font-weight-semibold) !important; }
.fw-bold { font-weight: var(--font-weight-bold) !important; }
.fw-extrabold { font-weight: var(--font-weight-extrabold) !important; }
.fw-black { font-weight: var(--font-weight-black) !important; }

/* UI Component Font Weight Optimizations */
.btn {
    font-weight: var(--font-weight-medium);
}

.btn-primary, .btn-success, .btn-warning, .btn-danger {
    font-weight: var(--font-weight-semibold);
}

.card-title {
    font-weight: var(--font-weight-semibold);
}

.card-header h5, .card-header h4, .card-header h3 {
    font-weight: var(--font-weight-semibold);
}

.badge {
    font-weight: var(--font-weight-medium);
}

/* Dark Mode Badge Styles */
[data-theme="dark"] .badge.bg-light {
    background-color: var(--badge-bg) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] .badge.bg-secondary {
    background-color: var(--button-secondary-bg) !important;
    color: var(--text-primary) !important;
}

.nav-link {
    font-weight: var(--font-weight-regular);
}

.nav-link.active {
    font-weight: var(--font-weight-semibold);
}

.table th {
    font-weight: var(--font-weight-semibold);
}

.table td {
    font-weight: var(--font-weight-regular);
}

.stats-number, .counter {
    font-weight: var(--font-weight-extrabold);
}

.stats-label {
    font-weight: var(--font-weight-medium);
}

.form-label {
    font-weight: var(--font-weight-medium);
}

.form-control {
    font-weight: var(--font-weight-regular);
}

.alert {
    font-weight: var(--font-weight-regular);
    background: var(--alert-bg);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.alert-heading {
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
}

.dropdown-item {
    font-weight: var(--font-weight-regular);
    color: var(--text-primary);
}

.dropdown-menu {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: var(--box-shadow);
}

.dropdown-item:hover {
    background: var(--list-item-hover);
    color: var(--text-primary);
}

.list-group-item {
    font-weight: var(--font-weight-regular);
    background: var(--list-item-bg);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.list-group-item:hover {
    background: var(--list-item-hover);
}

.list-group-item.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.text-muted {
    font-weight: var(--font-weight-light);
    color: var(--text-muted) !important;
}

.small, small {
    font-weight: var(--font-weight-light);
}

/* Achievement specific styling */
.achievement-title {
    font-weight: var(--font-weight-semibold);
}

.achievement-description {
    font-weight: var(--font-weight-light);
}

.difficulty-badge {
    font-weight: var(--font-weight-medium);
}

.player-name {
    font-weight: var(--font-weight-medium);
}

.player-details {
    font-weight: var(--font-weight-light);
}

/* Dashboard specific styling */
.category-header {
    font-weight: var(--font-weight-bold);
}

.performance-metric {
    font-weight: var(--font-weight-semibold);
}

/* Roboto Flex Optical Size Optimization */
.display-1, .display-2, .display-3, .display-4 {
    font-variation-settings: "opsz" 40;
}

h1, h2, h3 {
    font-variation-settings: "opsz" 32;
}

h4, h5, h6 {
    font-variation-settings: "opsz" 24;
}

body, p, .btn, .form-control {
    font-variation-settings: "opsz" 16;
}

.small, small, .text-muted {
    font-variation-settings: "opsz" 12;
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.btn-dark-mode {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-primary);
    font-size: 1.2rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-dark-mode:hover {
    background: var(--list-item-hover);
    transform: translateY(-1px);
    box-shadow: var(--box-shadow-hover);
}

.btn-dark-mode:active {
    transform: translateY(0);
}

[data-theme="dark"] .btn-dark-mode {
    background: rgba(255, 255, 255, 0.08);
    color: #fb923c;
    border-color: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .btn-dark-mode:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #fdba74;
}

@media (max-width: 768px) {
    .dark-mode-toggle {
        bottom: 15px;
        right: 15px;
    }
    
    .btn-dark-mode {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

/* Theme Transition */
.theme-transition,
.theme-transition *,
.theme-transition *::before,
.theme-transition *::after {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease !important;
}

/* Navigation */
.modern-navbar {
    background: var(--navbar-bg) !important;
    backdrop-filter: blur(10px);
    box-shadow: var(--box-shadow);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem 0;
}

.navbar-brand {
    font-weight: var(--font-weight-medium);
    text-decoration: none !important;
}

.brand-main {
    font-size: 1.5rem;
    font-weight: var(--font-weight-extrabold);
    color: #f8fafc;
    line-height: 1;
    letter-spacing: -0.02em;
}

.brand-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: var(--font-weight-regular);
    line-height: 1;
}

.logo-container {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, var(--accent) 0%, #9a3412 100%);
    border-radius: 50%;
    font-size: 1.2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.nav-link {
    font-weight: var(--font-weight-medium);
    transition: var(--transition);
    border-radius: 6px;
    margin: 0 2px;
    padding: 0.5rem 1rem !important;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.nav-link.btn {
    font-weight: var(--font-weight-semibold);
    border-radius: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.nav-link.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
}

/* Container */
.modern-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Cards */
.card {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    margin-bottom: 2rem;
}

.card:hover {
    transform: translateY(-1px);
    box-shadow: var(--box-shadow-hover);
}

/* Neutrale Card-Header (kein dunkler Verlauf — Lesbarkeit mit --heading-color) */
.card-header {
    background: var(--card-bg);
    color: var(--heading-color);
    border-radius: var(--border-radius) var(--border-radius) 0 0 !important;
    border-bottom: 1px solid var(--border-color);
    border-left: none;
    padding: 1.25rem 1.5rem;
    font-weight: var(--font-weight-semibold);
}

[data-theme="dark"] .card-header {
    border-bottom-color: var(--border-color);
}

/* Farbige Bootstrap-Header: kein zusätzlicher Akzent-Streifen */
.card-header[class*="bg-"] {
    border-left: none;
}

.card-body {
    padding: 2rem;
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: var(--font-weight-medium);
    transition: var(--transition);
    border: none;
    padding: 0.75rem 1.5rem;
}

.btn-primary {
    background: var(--accent);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(194, 65, 12, 0.35);
    background: var(--accent-hover);
    filter: brightness(1.02);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color), #20c997);
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning-color), var(--secondary-color));
    color: var(--dark-color) !important;
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-color), #e74c3c);
}

.btn-outline-primary {
    border: 2px solid var(--accent);
    color: var(--accent);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-1px);
}

/* Stats Cards */
.stats-card {
    background: var(--stats-card-bg);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    box-shadow: var(--box-shadow);
}

.stats-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.stats-number {
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: 0.5rem;
    color: var(--accent);
}

[data-theme="dark"] .stats-number {
    color: #fb923c !important;
}

.stats-label {
    color: var(--text-secondary);
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

/* Tables */
.table {
    background: var(--table-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    color: var(--text-primary);
}

.table th {
    background: var(--list-item-bg);
    border: none;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    padding: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
}

.table td {
    padding: 1rem;
    border-color: var(--border-color);
    vertical-align: middle;
    color: var(--text-primary);
}

.table tbody tr {
    transition: var(--transition);
}

.table tbody tr:hover {
    background-color: var(--table-hover);
}

/* Forms */
.form-control, .form-select {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: var(--transition);
    background: var(--input-bg);
    color: var(--text-primary);
}

.form-control:focus, .form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 0.2rem var(--accent-ring);
    background: var(--input-bg);
    color: var(--text-primary);
}

.form-control::placeholder {
    color: var(--text-muted);
}

[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus {
    box-shadow: 0 0 0 0.2rem rgba(251, 146, 60, 0.35);
}

.form-label {
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

/* Game Creation */
.game-side-card {
    border-radius: var(--border-radius);
    transition: var(--transition);
    box-shadow: var(--box-shadow);
}

.game-side-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.bg-warning.game-side-card {
    background: linear-gradient(135deg, #ea580c, #fb923c) !important;
    border: 2px solid #ea580c;
    color: #fff;
}

.bg-dark.game-side-card {
    background: linear-gradient(135deg, #2c3e50, #34495e) !important;
    border: 2px solid var(--dark-color);
}

/* Alerts */
.alert {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border-left: 4px solid;
}

.alert-success {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1), rgba(32, 201, 151, 0.1));
    border-left-color: var(--success-color);
}

.alert-danger {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1), rgba(231, 76, 60, 0.1));
    border-left-color: var(--danger-color);
}

.alert-warning {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.12), rgba(253, 230, 138, 0.15));
    border-left-color: #ca8a04;
}

/* Badges */
.badge {
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    font-weight: var(--font-weight-medium);
}

.badge.bg-warning {
    background: linear-gradient(135deg, #ea580c, #fb923c) !important;
    color: #fff !important;
}

.badge.bg-dark {
    background: linear-gradient(135deg, var(--dark-color), #2d2d2d) !important;
    color: white !important;
}

/* Player color bubbles in tables */
.table .badge.bg-warning.me-2,
.table .badge.bg-dark.me-2 {
    width: 16px;
    height: 16px;
    min-width: 16px;
    min-height: 16px;
    border-radius: 50% !important;
    display: inline-block;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.table .badge.bg-warning.me-2 {
    background: linear-gradient(135deg, #ea580c, #fb923c) !important;
}

.table .badge.bg-dark.me-2 {
    background: linear-gradient(135deg, #343a40, #1a1a1a) !important;
}

.progress-bar.bg-warning {
    background: linear-gradient(90deg, #ea580c, #fb923c) !important;
}

.avatar-circle.bg-warning,
.card-header.bg-warning {
    background: linear-gradient(135deg, #ea580c, #fb923c) !important;
    color: #fff !important;
    border-color: rgba(234, 88, 12, 0.5);
}

/* Fix dropdown z-index issues in tables */
.table .dropdown {
    position: relative;
    z-index: 1;
}

.table .dropdown.show {
    z-index: 1000;
}

.table .dropdown-menu {
    z-index: 1001 !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0,0,0,0.1);
}

.table tbody tr {
    position: relative;
}

.table tbody tr:hover {
    z-index: 10;
}

/* Dashboard specific */
.dashboard-header {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 3rem 2rem;
    text-align: center;
    margin-bottom: 3rem;
    box-shadow: var(--box-shadow);
}

.dashboard-title {
    font-size: 3rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: 1rem;
    color: var(--heading-color);
    letter-spacing: -0.03em;
}

[data-theme="dark"] .dashboard-title {
    color: var(--heading-color);
}

.dashboard-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: var(--font-weight-regular);
}

/* Leaderboard */
.leaderboard-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-radius: 8px;
    transition: var(--transition);
    margin-bottom: 0.5rem;
    background: var(--list-item-bg);
}

.leaderboard-item:hover {
    background: var(--list-item-hover);
    transform: translateX(5px);
}

.leaderboard-position {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-weight-bold);
    margin-right: 1rem;
}

.leaderboard-position.first {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: var(--dark-color);
}

.leaderboard-position.second {
    background: linear-gradient(135deg, #c0c0c0, #e5e5e5);
    color: var(--dark-color);
}

.leaderboard-position.third {
    background: linear-gradient(135deg, #cd7f32, #d4925a);
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .modern-container {
        padding: 0 1rem;
    }
    
    .dashboard-title {
        font-size: 2rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .navbar-brand {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .brand-main {
        font-size: 1.2rem;
    }
    
    .brand-sub {
        font-size: 0.7rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Winner display animation */
#winnerDisplay {
    animation: bounceIn 0.6s ease-out;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Celebration and Fireworks */
.celebration-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: clamp(1rem, 4vw, 2.5rem);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.celebration-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.celebration-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 120% 80% at 50% -20%, rgba(251, 146, 60, 0.22), transparent 55%),
        radial-gradient(ellipse 90% 60% at 100% 100%, rgba(194, 65, 12, 0.12), transparent 50%),
        rgba(12, 10, 9, 0.72);
    backdrop-filter: blur(14px) saturate(1.15);
    -webkit-backdrop-filter: blur(14px) saturate(1.15);
}

.celebration-panel {
    position: relative;
    z-index: 2;
    width: min(100%, 38rem);
    max-height: min(90vh, 44rem);
    overflow: auto;
    padding: clamp(2rem, 5vw, 3rem) clamp(1.75rem, 4vw, 2.75rem);
    text-align: center;
    color: var(--text-primary);
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-xl);
    box-shadow:
        var(--box-shadow-hover),
        0 0 0 1px rgba(251, 146, 60, 0.18),
        0 0 0 8px rgba(194, 65, 12, 0.06),
        0 0 96px rgba(194, 65, 12, 0.1);
    opacity: 0;
    transform: translateY(1.25rem) scale(0.96);
    filter: blur(4px);
    animation: celebrationPanelIn 0.72s cubic-bezier(0.22, 1, 0.36, 1) 0.06s forwards;
}

.celebration-eyebrow {
    font-size: 0.72rem;
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 0.5rem;
}

.celebration-headline {
    font-family: 'Bebas Neue', Impact, system-ui, sans-serif;
    font-size: clamp(2.75rem, 8vw, 3.75rem);
    font-weight: var(--font-weight-regular);
    line-height: 1;
    letter-spacing: 0.02em;
    margin: 0 0 1.25rem;
    color: var(--heading-color);
}

.celebration-score {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.35rem;
    margin: 0.25rem 0 1.5rem;
    font-family: 'Bebas Neue', Impact, system-ui, sans-serif;
    font-size: clamp(4rem, 14vw, 6.5rem);
    line-height: 0.9;
    color: var(--accent);
    text-shadow: 0 2px 24px rgba(194, 65, 12, 0.25);
}

.celebration-score-num {
    display: inline-block;
    animation: celebrationScorePop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) 0.35s both;
}

.celebration-score-num:last-of-type {
    animation-delay: 0.48s;
}

.celebration-score-sep {
    opacity: 0.45;
    font-size: 0.55em;
    vertical-align: middle;
    padding: 0 0.1em;
}

.celebration-winner-line {
    font-size: clamp(1.15rem, 3vw, 1.35rem);
    margin: 0 0 1rem;
    color: var(--text-primary);
}

.celebration-quote {
    font-size: 1.05rem;
    font-style: italic;
    line-height: 1.45;
    margin: 0 0 1.25rem;
    color: var(--text-secondary);
}

.celebration-hint {
    margin: 0;
    color: var(--text-muted);
}

.celebration-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: var(--button-secondary-bg);
    color: var(--text-secondary);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    transition: var(--transition);
}

.celebration-close:hover {
    color: var(--accent);
    border-color: rgba(194, 65, 12, 0.35);
    background: var(--accent-soft);
    transform: scale(1.06);
}

.celebration-close--on-dark {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(0, 0, 0, 0.25);
    color: rgba(255, 255, 255, 0.9);
}

.celebration-close--on-dark:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.45);
}

@keyframes celebrationPanelIn {
    0% {
        opacity: 0;
        transform: translateY(1.5rem) scale(0.94);
        filter: blur(6px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes celebrationScorePop {
    0% {
        opacity: 0;
        transform: translateY(0.5rem) scale(0.85);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Fireworks */
.fireworks {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.firework {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    animation: fireworkExplode 1.5s ease-out forwards;
}

.firework.red { background: #ff4757; box-shadow: 0 0 10px #ff4757; }
.firework.blue { background: #3742fa; box-shadow: 0 0 10px #3742fa; }
.firework.yellow { background: #ffa502; box-shadow: 0 0 10px #ffa502; }
.firework.green { background: #2ed573; box-shadow: 0 0 10px #2ed573; }
.firework.purple { background: #a55eea; box-shadow: 0 0 10px #a55eea; }
.firework.orange { background: var(--primary-color); box-shadow: 0 0 10px var(--primary-color); }

@keyframes fireworkExplode {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    20% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.confetti {
    position: absolute;
    width: 8px;
    height: 8px;
    animation: confettiFall 3s linear forwards;
}

.confetti.rect { border-radius: 0; }
.confetti.circle { border-radius: 50%; }

@keyframes confettiFall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Responsive celebration */
@media (max-width: 768px) {
    .celebration-panel {
        padding: 1.75rem 1.35rem 2rem;
    }

    .celebration-headline {
        font-size: 2.5rem;
    }
}

/* Shake Animation for 10:0 games */
@keyframes shake {
    0% { transform: translate(1px, 1px) rotate(0deg); }
    10% { transform: translate(-1px, -2px) rotate(-1deg); }
    20% { transform: translate(-3px, 0px) rotate(1deg); }
    30% { transform: translate(3px, 2px) rotate(0deg); }
    40% { transform: translate(1px, -1px) rotate(1deg); }
    50% { transform: translate(-1px, 2px) rotate(-1deg); }
    60% { transform: translate(-3px, 1px) rotate(0deg); }
    70% { transform: translate(3px, 1px) rotate(-1deg); }
    80% { transform: translate(-1px, -1px) rotate(1deg); }
    90% { transform: translate(1px, 2px) rotate(0deg); }
    100% { transform: translate(1px, -2px) rotate(-1deg); }
}

.shake-animation {
    animation: shake 0.45s ease-in-out 2;
}

/* Hall of Fame modal (10:0) */
.hall-of-fame-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: clamp(1rem, 4vw, 2.5rem);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.hall-of-fame-modal.active {
    opacity: 1;
    pointer-events: all;
}

/* Vollflächiges Video, darüber abgedunkelt + 50 % Rot (ohne Ton) */
.hall-of-fame-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.hall-of-fame-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hall-of-fame-dim {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(0, 0, 0, 0.5);
}

.hall-of-fame-red {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: rgba(185, 28, 28, 0.5);
}

.hall-of-fame-panel {
    position: relative;
    z-index: 3;
    width: min(100%, 40rem);
    padding: clamp(2.25rem, 5vw, 3.25rem) clamp(1.75rem, 4vw, 2.75rem);
    text-align: center;
    color: #fff;
    background: linear-gradient(
        155deg,
        rgba(220, 38, 38, 0.92) 0%,
        rgba(153, 27, 27, 0.95) 50%,
        rgba(69, 10, 10, 0.98) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius-xl);
    box-shadow:
        0 24px 64px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(251, 191, 36, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    opacity: 0;
    transform: perspective(900px) rotateX(8deg) translateY(2rem) scale(0.92);
    animation: hallOfFamePanelIn 0.78s cubic-bezier(0.22, 1, 0.36, 1) 0.08s forwards;
}

.hall-of-fame-eyebrow {
    font-size: 0.72rem;
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(254, 243, 199, 0.95);
    margin: 0 0 0.75rem;
}

.hall-of-fame-headline {
    font-family: 'Bebas Neue', Impact, system-ui, sans-serif;
    font-size: clamp(4.5rem, 16vw, 7.5rem);
    line-height: 0.95;
    margin: 0 0 0.5rem;
    letter-spacing: 0.04em;
    color: #fef3c7;
    text-shadow:
        0 2px 0 rgba(127, 29, 29, 0.6),
        0 8px 32px rgba(0, 0, 0, 0.35);
    animation: hallOfFameScorePulse 2.2s ease-in-out 0.6s infinite;
}

.hall-of-fame-tagline {
    font-size: 0.95rem;
    font-weight: var(--font-weight-medium);
    color: rgba(255, 255, 255, 0.82);
    margin: 0 0 1.75rem;
}

.hall-of-fame-names {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.65rem 1rem;
    margin: 0 0 1.5rem;
}

.hall-of-fame-winner {
    font-size: clamp(1.35rem, 4vw, 1.85rem);
    font-weight: var(--font-weight-bold);
    color: #fde047;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.hall-of-fame-vs {
    font-size: 0.75rem;
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.hall-of-fame-loser {
    font-size: clamp(1.1rem, 3vw, 1.35rem);
    font-weight: var(--font-weight-medium);
    color: rgba(254, 226, 226, 0.95);
}

.hall-of-fame-footer {
    font-size: 1rem;
    line-height: 1.5;
    margin: 0 0 1rem;
    color: rgba(255, 255, 255, 0.88);
}

.hall-of-fame-panel .celebration-hint--inverse {
    color: rgba(255, 255, 255, 0.55);
}

.hall-of-fame-close-btn {
    margin-top: 0.25rem;
    padding: 0.55rem 1.75rem;
    font-weight: var(--font-weight-semibold);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.hall-of-fame-close-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

@keyframes hallOfFamePanelIn {
    0% {
        opacity: 0;
        transform: perspective(900px) rotateX(12deg) translateY(2.5rem) scale(0.88);
    }
    100% {
        opacity: 1;
        transform: perspective(900px) rotateX(0deg) translateY(0) scale(1);
    }
}

@keyframes hallOfFameScorePulse {
    0%,
    100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.08);
    }
}

@media (max-width: 576px) {
    .hall-of-fame-names {
        flex-direction: column;
    }

    .hall-of-fame-vs {
        transform: rotate(90deg);
    }
}

/* Player Profile Links */
.dashboard-player-link,
.dashboard-winner-link,
.dashboard-loser-link,
.games-player-link,
.games-player-link-sub,
.games-winner-link,
.player-match-link,
.player-match-link-sub,
.winner-link {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    position: relative;
}

/* Dashboard Player Links */
.dashboard-player-link {
    color: var(--accent);
    font-weight: var(--font-weight-semibold);
}

.dashboard-player-link:hover {
    color: var(--accent-hover);
    text-decoration: underline;
    text-decoration-color: var(--accent-hover);
    text-underline-offset: 3px;
}

.dashboard-winner-link {
    color: #28a745;
    font-weight: var(--font-weight-semibold);
}

.dashboard-winner-link:hover {
    color: #20c997;
    text-decoration: underline;
    text-decoration-color: #20c997;
    text-underline-offset: 3px;
}

.dashboard-loser-link {
    color: #dc3545;
    font-weight: var(--font-weight-semibold);
}

.dashboard-loser-link:hover {
    color: #c82333;
    text-decoration: underline;
    text-decoration-color: #c82333;
    text-underline-offset: 3px;
}

/* Games Index Player Links */
.games-player-link {
    color: var(--text-primary);
    font-weight: var(--font-weight-bold);
}

.games-player-link:hover {
    color: var(--accent);
    text-decoration: none;
    transform: translateX(2px);
}

.games-player-link-sub {
    color: var(--text-secondary);
    font-weight: var(--font-weight-regular);
    font-size: 0.9rem;
}

.games-player-link-sub:hover {
    color: var(--accent-hover);
    text-decoration: none;
}

/* ——— Spieler-Profilseite ——— */
.page-player-profile .player-profile-page {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.page-player-profile .player-profile-hero-inner {
    width: 100%;
}

.page-player-profile .player-profile-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

.page-player-profile .player-profile-card--accent-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ea580c, #fb923c, #fdba74);
    z-index: 2;
    pointer-events: none;
}

.page-player-profile .player-profile-eyebrow {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.page-player-profile .player-profile-name {
    font-size: clamp(1.35rem, 3vw, 1.85rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--heading-color);
    line-height: 1.2;
}

.page-player-profile .player-profile-realname {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: var(--font-weight-medium);
}

.page-player-profile .player-profile-email {
    font-size: 0.8rem;
}

.page-player-profile .player-profile-avatar-img {
    width: 88px;
    height: 88px;
    object-fit: cover;
    border: 3px solid rgba(234, 88, 12, 0.22);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .page-player-profile .player-profile-avatar-img {
    border-color: rgba(251, 146, 60, 0.35);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

.page-player-profile .player-profile-achievement-meter-value {
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: 1.75rem;
    letter-spacing: 0.04em;
    color: var(--heading-color);
    line-height: 1.1;
}

.page-player-profile .player-profile-progress {
    height: 8px;
    border-radius: 999px;
    background: rgba(120, 113, 108, 0.15);
}

.page-player-profile .player-profile-progress .progress-bar {
    background: linear-gradient(90deg, #ea580c, #fb923c);
}

.page-player-profile .player-profile-stat-card {
    border-radius: var(--radius-xl);
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

.page-player-profile .player-profile-stat-value {
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 400;
    letter-spacing: 0.04em;
    display: block;
    line-height: 1;
    color: var(--heading-color);
}

.page-player-profile .player-profile-stat-card--wins .player-profile-stat-value {
    color: #15803d;
}

.page-player-profile .player-profile-stat-card--goals .player-profile-stat-value {
    color: #c2410c;
}

.page-player-profile .player-profile-stat-card--ach .player-profile-stat-value {
    color: #0d9488;
}

.page-player-profile .player-profile-stat-card--tournament .player-profile-stat-value {
    color: #b45309;
}

[data-theme="dark"] .page-player-profile .player-profile-stat-card--wins .player-profile-stat-value {
    color: #4ade80;
}

[data-theme="dark"] .page-player-profile .player-profile-stat-card--goals .player-profile-stat-value {
    color: #fb923c;
}

[data-theme="dark"] .page-player-profile .player-profile-stat-card--ach .player-profile-stat-value {
    color: #2dd4bf;
}

[data-theme="dark"] .page-player-profile .player-profile-stat-card--tournament .player-profile-stat-value {
    color: #fbbf24;
}

/* Head-to-Head: Spieler-Vergleich */
.page-player-h2h .h2h-page {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.page-player-h2h .h2h-duel-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

.page-player-h2h .h2h-duel-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ea580c, #fb923c, #fdba74);
    z-index: 2;
    pointer-events: none;
}

.page-player-h2h .h2h-duel-grid {
    min-height: 140px;
}

.page-player-h2h .h2h-duel-side {
    padding: 1.35rem 1.25rem;
    display: flex;
    align-items: center;
}

.page-player-h2h .h2h-duel-side--p1 {
    background: linear-gradient(165deg, rgba(234, 88, 12, 0.09) 0%, rgba(251, 146, 60, 0.04) 100%);
    border-bottom: 1px solid var(--border-color);
}

.page-player-h2h .h2h-duel-side--p2 {
    background: linear-gradient(195deg, rgba(52, 58, 64, 0.12) 0%, rgba(73, 80, 87, 0.05) 100%);
    border-bottom: 1px solid var(--border-color);
}

@media (min-width: 768px) {
    .page-player-h2h .h2h-duel-side--p1 {
        border-bottom: none;
        border-right: 1px solid var(--border-color);
    }

    .page-player-h2h .h2h-duel-side--p2 {
        border-bottom: none;
        border-left: 1px solid var(--border-color);
    }
}

.page-player-h2h .h2h-duel-side__inner {
    width: 100%;
}

.page-player-h2h .h2h-duel-side__label {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.page-player-h2h .h2h-duel-side__nick {
    display: inline-block;
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 400;
    letter-spacing: 0.04em;
    line-height: 1.1;
    color: var(--heading-color);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.page-player-h2h .h2h-duel-side__nick:hover {
    color: var(--accent);
    border-bottom-color: rgba(194, 65, 12, 0.35);
}

.page-player-h2h .h2h-duel-side__realname {
    display: block;
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.page-player-h2h .h2h-duel-vs {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem 0.75rem;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
}

@media (min-width: 768px) {
    .page-player-h2h .h2h-duel-vs {
        border-bottom: none;
    }
}

.page-player-h2h .h2h-duel-vs__text {
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 400;
    letter-spacing: 0.18em;
    line-height: 1;
    color: var(--text-muted);
    opacity: 0.9;
}

.page-player-h2h .h2h-duel-vs__sub {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 0.35rem;
}

.page-player-h2h .h2h-empty-card {
    border-radius: var(--radius-xl);
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

.page-player-h2h .h2h-empty-icon {
    width: 4rem;
    height: 4rem;
    margin-left: auto;
    margin-right: auto;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: rgba(234, 88, 12, 0.1);
    color: var(--accent);
}

.page-player-h2h .h2h-stat-card {
    position: relative;
    border-radius: var(--radius-xl);
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

.page-player-h2h .h2h-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ea580c, #fb923c);
    opacity: 0.85;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    pointer-events: none;
}

.page-player-h2h .h2h-stat-card__eyebrow {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0;
}

.page-player-h2h .h2h-stat-card__score {
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 400;
    letter-spacing: 0.04em;
    line-height: 1;
}

.page-player-h2h .h2h-stat-card__score--p1 {
    color: #c2410c;
}

.page-player-h2h .h2h-stat-card__score--p2 {
    color: #3f3f46;
}

.page-player-h2h .h2h-stat-card__score--goals {
    color: var(--heading-color);
}

[data-theme="dark"] .page-player-h2h .h2h-stat-card__score--p2 {
    color: #d4d4d8;
}

.page-player-h2h .h2h-stat-card__sep {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-muted);
    opacity: 0.6;
}

.page-player-h2h .h2h-win-split {
    display: flex;
    width: 100%;
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(120, 113, 108, 0.12);
    gap: 2px;
}

.page-player-h2h .h2h-win-split__bar {
    flex-basis: 0;
    flex-shrink: 0;
    min-width: 0;
    border-radius: 2px;
    transition: flex-grow 0.3s ease;
}

.page-player-h2h .h2h-win-split__bar--p1 {
    background: linear-gradient(90deg, #ea580c, #fb923c);
}

.page-player-h2h .h2h-win-split__bar--p2 {
    background: linear-gradient(90deg, #343a40, #495057);
}

.page-player-h2h .h2h-streak-count {
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: clamp(2.25rem, 6vw, 3rem);
    font-weight: 400;
    letter-spacing: 0.04em;
    line-height: 1;
    color: var(--heading-color);
}

.page-player-h2h .h2h-streak-count--muted {
    font-size: 2rem;
    opacity: 0.45;
}

.page-player-h2h .h2h-streak-badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 700;
}

.page-player-h2h .h2h-streak-badge--p1 {
    background: rgba(234, 88, 12, 0.15);
    color: #9a3412;
    border: 1px solid rgba(234, 88, 12, 0.35);
}

.page-player-h2h .h2h-streak-badge--p2 {
    background: rgba(52, 58, 64, 0.14);
    color: var(--text-primary);
    border: 1px solid rgba(52, 58, 64, 0.28);
}

[data-theme="dark"] .page-player-h2h .h2h-streak-badge--p1 {
    background: rgba(251, 146, 60, 0.18);
    color: #fdba74;
    border-color: rgba(251, 146, 60, 0.35);
}

.page-player-h2h .h2h-stat-card--sub::before {
    opacity: 0.55;
}

.page-player-h2h .h2h-sub-metric {
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: 1.65rem;
    font-weight: 400;
    letter-spacing: 0.03em;
    color: var(--heading-color);
    line-height: 1.2;
}

.page-player-h2h .h2h-sub-metric--lead {
    font-size: 1.25rem;
    letter-spacing: 0;
    font-family: inherit;
    font-weight: 700;
}

.page-player-h2h .h2h-sub-metric--tie {
    color: #ca8a04;
}

.page-player-h2h .h2h-big-win-col {
    border-right: 1px solid var(--border-color);
}

.page-player-h2h .h2h-big-win {
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    margin-bottom: 0.25rem;
}

.page-player-h2h .h2h-big-win--p1 {
    color: #c2410c;
}

.page-player-h2h .h2h-big-win--p2 {
    color: var(--heading-color);
}

.page-player-h2h .h2h-table-card {
    border-radius: var(--radius-xl);
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

.page-player-h2h .h2h-table-card::before {
    content: '';
    display: block;
    height: 4px;
    background: linear-gradient(90deg, #ea580c, #fb923c, #fdba74);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.page-player-h2h .h2h-table-card__title {
    color: var(--heading-color);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.page-player-h2h .h2h-table thead th {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    padding: 0.85rem 0.75rem;
    background: rgba(234, 88, 12, 0.06);
}

[data-theme="dark"] .page-player-h2h .h2h-table thead th {
    background: rgba(251, 146, 60, 0.08);
}

.page-player-h2h .h2h-table tbody td {
    padding: 0.85rem 0.75rem;
    vertical-align: middle;
    border-color: var(--border-color);
}

.page-player-h2h .h2h-table tbody tr:hover td {
    background: rgba(120, 113, 108, 0.06);
}

.page-player-h2h .h2h-table__row--wos td {
    background: rgba(220, 53, 69, 0.08) !important;
}

[data-theme="dark"] .page-player-h2h .h2h-table__row--wos td {
    background: rgba(248, 113, 113, 0.1) !important;
}

.page-player-h2h .h2h-table__score-link {
    color: var(--heading-color);
    text-decoration: none;
    font-variant-numeric: tabular-nums;
}

.page-player-h2h .h2h-table__score-link:hover {
    color: var(--accent);
    text-decoration: underline;
}

.page-player-h2h .h2h-table__goal--p1 {
    color: #c2410c;
    font-weight: 700;
}

.page-player-h2h .h2h-table__goal--p2 {
    color: var(--heading-color);
    font-weight: 700;
}

.page-player-h2h .h2h-table__wos-badge {
    font-size: 0.65rem;
    font-weight: 700;
    background: rgba(220, 53, 69, 0.2);
    color: #b91c1c;
}

.page-player-h2h .h2h-table__winner {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
}

.page-player-h2h .h2h-table__winner--p1 {
    background: rgba(234, 88, 12, 0.14);
    color: #9a3412;
}

.page-player-h2h .h2h-table__winner--p2 {
    background: rgba(52, 58, 64, 0.12);
    color: var(--text-primary);
}

[data-theme="dark"] .page-player-h2h .h2h-table__winner--p1 {
    background: rgba(251, 146, 60, 0.18);
    color: #fdba74;
}

[data-theme="dark"] .page-player-h2h .h2h-table__winner--p2 {
    background: rgba(255, 255, 255, 0.08);
    color: #e7e5e4;
}

.page-player-h2h .h2h-actions {
    margin-top: 0.5rem;
    margin-bottom: 2rem;
}

.page-player-profile .player-profile-stat-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.page-player-profile .player-profile-stat-meta {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.page-player-profile .player-profile-section-card {
    border-radius: var(--radius-xl);
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

.page-player-profile .player-profile-section-title {
    font-size: clamp(1.1rem, 2.2vw, 1.35rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--heading-color);
}

.page-player-profile .player-profile-subsection-title {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--heading-color);
}

.page-player-profile .player-profile-difficulty {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.page-player-profile .player-profile-difficulty--bronze {
    color: #8b5a2b;
}

.page-player-profile .player-profile-difficulty--silver {
    color: #64748b;
}

.page-player-profile .player-profile-difficulty--gold {
    color: #a16207;
}

.page-player-profile .player-profile-difficulty--platinum {
    color: #475569;
}

[data-theme="dark"] .page-player-profile .player-profile-difficulty--bronze {
    color: #d4a574;
}

[data-theme="dark"] .page-player-profile .player-profile-difficulty--silver {
    color: #cbd5e1;
}

[data-theme="dark"] .page-player-profile .player-profile-difficulty--gold {
    color: #fcd34d;
}

[data-theme="dark"] .page-player-profile .player-profile-difficulty--platinum {
    color: #e2e8f0;
}

.page-player-profile .player-profile-games-thead th {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    padding: 0.65rem 0.75rem;
    background: rgba(234, 88, 12, 0.06);
}

[data-theme="dark"] .page-player-profile .player-profile-games-thead th {
    background: rgba(251, 146, 60, 0.08);
}

.page-player-profile .player-profile-games-table td {
    font-size: 0.9rem;
    vertical-align: middle;
}

.page-player-profile .player-profile-game-link {
    color: var(--heading-color);
    transition: color 0.2s ease;
}

.page-player-profile .player-profile-game-link:hover {
    color: var(--accent);
}

.page-player-profile .player-profile-game-link:hover .player-profile-game-result:not(.text-danger) {
    color: var(--accent);
}

.page-player-profile .player-profile-actions-card {
    border-radius: var(--radius-xl);
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

.page-player-profile .player-profile-tournament-summary {
    border-color: var(--border-color) !important;
    background: rgba(234, 88, 12, 0.04);
    border-radius: var(--border-radius);
}

[data-theme="dark"] .page-player-profile .player-profile-tournament-summary {
    background: rgba(251, 146, 60, 0.06);
}

.page-player-profile .player-profile-summary-stat-value {
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: 1.65rem;
    font-weight: 400;
    letter-spacing: 0.03em;
    color: var(--heading-color);
    margin-bottom: 0.25rem;
}

/* Achievements: metallische Stufen, ruhige Karte + Medaillen-Icon (keine Emoji-Icons) */
.page-player-profile .achievement-card,
.page-achievements-index .achievement-catalog-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.65rem 0.85rem;
    background: var(--card-bg);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    border-left-width: 4px;
    border-left-style: solid;
}

.page-achievements-index .achievement-catalog-card {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    height: 100%;
    padding: 0.85rem 0.95rem;
}

.page-player-profile .achievement-card:hover,
.page-achievements-index .achievement-catalog-card:hover {
    box-shadow: var(--box-shadow);
}

.page-player-profile .achievement-card-row,
.page-achievements-index .achievement-card-row {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
}

.page-player-profile .achievement-medal,
.page-achievements-index .achievement-medal {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.page-player-profile .achievement-bronze,
.page-achievements-index .achievement-catalog-card.achievement-bronze {
    border-left-color: #b87333;
    background: linear-gradient(90deg, rgba(184, 115, 51, 0.1) 0%, var(--card-bg) 48%);
}

.page-player-profile .achievement-bronze .achievement-medal,
.page-achievements-index .achievement-catalog-card.achievement-bronze .achievement-medal {
    background: linear-gradient(145deg, #e8c4a0, #cd7f32);
    color: #4a2c12;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.page-player-profile .achievement-silver,
.page-achievements-index .achievement-catalog-card.achievement-silver {
    border-left-color: #9ca3af;
    background: linear-gradient(90deg, rgba(148, 163, 184, 0.12) 0%, var(--card-bg) 48%);
}

.page-player-profile .achievement-silver .achievement-medal,
.page-achievements-index .achievement-catalog-card.achievement-silver .achievement-medal {
    background: linear-gradient(145deg, #e2e8f0, #94a3b8);
    color: #334155;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.page-player-profile .achievement-gold,
.page-achievements-index .achievement-catalog-card.achievement-gold {
    border-left-color: #d4af37;
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.12) 0%, var(--card-bg) 48%);
}

.page-player-profile .achievement-gold .achievement-medal,
.page-achievements-index .achievement-catalog-card.achievement-gold .achievement-medal {
    background: linear-gradient(145deg, #fde68a, #d4af37);
    color: #713f12;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.page-player-profile .achievement-platinum,
.page-achievements-index .achievement-catalog-card.achievement-platinum {
    border-left-color: #94a3b8;
    background: linear-gradient(90deg, rgba(148, 163, 184, 0.14) 0%, var(--card-bg) 50%);
}

.page-player-profile .achievement-platinum .achievement-medal,
.page-achievements-index .achievement-catalog-card.achievement-platinum .achievement-medal {
    background: linear-gradient(145deg, #f1f5f9, #cbd5e1);
    color: #475569;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.65),
        0 0 0 1px rgba(148, 163, 184, 0.35);
}

.page-player-profile .achievement-body,
.page-achievements-index .achievement-body {
    min-width: 0;
    flex: 1;
}

.page-player-profile .achievement-name,
.page-achievements-index .achievement-name {
    font-weight: var(--font-weight-semibold);
    font-size: 0.88rem;
    color: var(--heading-color);
    margin-bottom: 0.2rem;
    line-height: 1.3;
}

.page-player-profile .achievement-description,
.page-achievements-index .achievement-description {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 0.35rem;
}

.page-player-profile .achievement-date {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
}

[data-theme="dark"] .page-player-profile .achievement-bronze,
[data-theme="dark"] .page-achievements-index .achievement-catalog-card.achievement-bronze {
    background: linear-gradient(90deg, rgba(184, 115, 51, 0.18) 0%, var(--card-bg) 55%);
}

[data-theme="dark"] .page-player-profile .achievement-silver,
[data-theme="dark"] .page-player-profile .achievement-platinum,
[data-theme="dark"] .page-achievements-index .achievement-catalog-card.achievement-silver,
[data-theme="dark"] .page-achievements-index .achievement-catalog-card.achievement-platinum {
    background: linear-gradient(90deg, rgba(148, 163, 184, 0.12) 0%, var(--card-bg) 55%);
}

[data-theme="dark"] .page-player-profile .achievement-gold,
[data-theme="dark"] .page-achievements-index .achievement-catalog-card.achievement-gold {
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.14) 0%, var(--card-bg) 55%);
}

/* Achievements — Katalog (Übersichtsseite) */
.page-achievements-index .achievement-catalog-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding-top: 0.35rem;
    border-top: 1px solid var(--border-color);
}

.page-achievements-index .achievement-catalog-tier {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: var(--list-item-bg);
    color: var(--text-secondary);
}

.page-achievements-index .achievement-catalog-card.achievement-bronze .achievement-catalog-tier {
    border-color: rgba(184, 115, 51, 0.45);
    color: #8b5a2b;
    background: rgba(184, 115, 51, 0.08);
}

.page-achievements-index .achievement-catalog-card.achievement-silver .achievement-catalog-tier {
    border-color: rgba(148, 163, 184, 0.5);
    color: #64748b;
    background: rgba(148, 163, 184, 0.1);
}

.page-achievements-index .achievement-catalog-card.achievement-gold .achievement-catalog-tier {
    border-color: rgba(212, 175, 55, 0.5);
    color: #a16207;
    background: rgba(212, 175, 55, 0.1);
}

.page-achievements-index .achievement-catalog-card.achievement-platinum .achievement-catalog-tier {
    border-color: rgba(148, 163, 184, 0.55);
    color: #475569;
    background: rgba(148, 163, 184, 0.1);
}

.page-achievements-index .achievement-catalog-req {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: var(--list-item-bg);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.page-achievements-index .achievement-catalog-status {
    border-radius: 10px;
    padding: 0.65rem 0.75rem;
    font-size: 0.82rem;
    line-height: 1.4;
}

.page-achievements-index .achievement-catalog-status--locked {
    background: var(--list-item-bg);
    color: var(--text-secondary);
    border: 1px dashed var(--border-color);
}

.page-achievements-index .achievement-catalog-status--unlocked {
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.25);
    color: var(--heading-color);
}

.page-achievements-index .achievement-catalog-player-list {
    margin-top: 0.5rem;
}

.page-achievements-index .achievement-catalog-player-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--border-color);
}

.page-achievements-index .achievement-catalog-player-row:last-child {
    border-bottom: none;
}

.page-achievements-index .achievement-catalog-player-link {
    font-weight: var(--font-weight-semibold);
    color: var(--heading-color);
    text-decoration: none;
}

.page-achievements-index .achievement-catalog-player-link:hover {
    color: var(--accent);
}

.page-achievements-index .achievement-catalog-player-sub {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.page-achievements-index .achievement-catalog-date {
    font-size: 0.72rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.page-achievements-index .achievements-catalog-tabs {
    gap: 0.35rem;
}

.page-achievements-index .achievements-catalog-tabs .nav-link {
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    font-size: 0.85rem;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    background: var(--list-item-bg);
}

.page-achievements-index .achievements-catalog-tabs .nav-link:hover {
    background: var(--list-item-hover);
    border-color: var(--border-color);
}

.page-achievements-index .achievements-catalog-tabs .nav-link.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.page-achievements-index .achievements-catalog-tabs .nav-link .badge {
    font-size: 0.65rem;
    vertical-align: middle;
}

.page-achievements-index .achievements-category-block {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.page-achievements-index .achievements-category-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

[data-theme="dark"] .page-achievements-index .achievements-catalog-tabs .nav-link.active {
    color: #fff;
}

/* Analytics & Insights */
.page-player-profile .player-profile-section--performance .card-body {
    padding-top: 1.35rem;
}

.page-player-profile .player-profile-section--performance .player-profile-section-head {
    padding-bottom: 0.35rem;
}

.page-player-profile .player-profile-performance-metrics {
    margin-bottom: 0.35rem;
}

.page-player-profile .player-profile-performance-insights {
    margin-top: 2rem;
}

.page-player-profile .player-profile-performance-insights .player-profile-subsection-title {
    margin-bottom: 1.125rem;
}

.page-player-profile .player-profile-performance-insights-opponents {
    margin-top: 1.25rem !important;
}

.page-player-profile .analytics-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.5rem 1.25rem;
    text-align: center;
    height: 100%;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-player-profile .analytics-card--with-form {
    justify-content: flex-start;
}

.page-player-profile .analytics-card:not(.analytics-card--with-form) {
    justify-content: center;
}

.page-player-profile .analytics-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ea580c, #fb923c, #fdba74);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.page-player-profile .analytics-card:hover {
    box-shadow: var(--box-shadow-hover);
    border-color: rgba(234, 88, 12, 0.35);
}

.page-player-profile .analytics-card:hover::before {
    opacity: 1;
}

.page-player-profile .analytics-card .analytics-icon {
    font-size: 1.65rem;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.page-player-profile .analytics-card .analytics-title {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.45rem;
}

.page-player-profile .analytics-card .analytics-value {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--heading-color);
    letter-spacing: -0.02em;
    margin-top: 0.1rem;
    margin-bottom: 0.25rem;
}

.page-player-profile .analytics-card .analytics-subtitle {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 0.35rem;
}

.page-player-profile .analytics-card > small.text-muted {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.78rem;
}

.page-player-profile .analytics-card .form-string {
    margin-top: auto;
    width: 100%;
    padding-top: 0.85rem;
    padding-bottom: 0.2rem;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.5rem 0.4rem;
    justify-items: center;
    max-width: 11rem;
    margin-left: auto;
    margin-right: auto;
}

.page-player-profile .analytics-card .form-badge {
    margin: 0;
    padding: 0.4rem 0.45rem;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 1.65rem;
    line-height: 1;
}

.page-player-profile .analytics-card > div.mt-2:not(.form-string) {
    margin-top: 0.75rem !important;
}

.page-player-profile .insight-box {
    background: var(--list-item-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.05rem 1.15rem 1.1rem 1.1rem;
    margin-bottom: 0;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    transition: box-shadow 0.2s ease;
}

.page-player-profile .insight-box:hover {
    box-shadow: var(--box-shadow);
}

.page-player-profile .insight-icon {
    flex-shrink: 0;
    font-size: 1.1rem;
    line-height: 1.4;
    padding-left: 0.1rem;
    margin-top: 0.12rem;
}

.page-player-profile .insight-text {
    font-size: 0.9rem;
    color: var(--text-primary);
    line-height: 1.5;
    flex: 1;
    min-width: 0;
    padding: 0.15rem 0;
}

/* Turnier-Siege — kompakt */
.page-player-profile .player-profile-section--tournaments .player-profile-section-title {
    font-size: clamp(1rem, 2vw, 1.2rem);
}

.page-player-profile .tournament-win-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 0.6rem 0.75rem;
    height: 100%;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.page-player-profile .tournament-win-card:hover {
    box-shadow: var(--box-shadow);
    border-color: rgba(234, 88, 12, 0.25);
}

.page-player-profile .tournament-win-card-main {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
}

.page-player-profile .tournament-trophy {
    font-size: 1rem;
    line-height: 1;
    margin: 0;
    padding-top: 0.1rem;
    color: var(--accent);
    opacity: 0.95;
}

.page-player-profile .tournament-win-card-text {
    min-width: 0;
    flex: 1;
}

.page-player-profile .tournament-name {
    font-size: 0.9rem;
    font-weight: var(--font-weight-semibold);
    color: var(--heading-color);
    line-height: 1.3;
    margin-bottom: 0.2rem;
}

.page-player-profile .tournament-meta-line {
    font-size: 0.72rem;
    line-height: 1.35;
}

.page-player-profile .tournament-meta-sep {
    opacity: 0.45;
    margin: 0 0.15rem;
}

.page-player-profile .tournament-actions {
    margin-top: 0.45rem;
    padding-top: 0.45rem;
    border-top: 1px solid var(--border-color);
}

.page-player-profile .tournament-actions .btn {
    --bs-btn-padding-y: 0.2rem;
    --bs-btn-padding-x: 0.65rem;
    font-size: 0.75rem;
}

.page-player-profile .player-profile-achievement-toast {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    background: linear-gradient(135deg, #15803d, #0d9488);
    color: #fff;
    padding: 1rem 1.25rem;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 10050;
    transform: translateX(120%);
    transition: transform 0.45s ease;
    max-width: 320px;
}

.page-player-profile .player-profile-achievement-toast--show {
    transform: translateX(0);
}

.page-player-profile .player-profile-achievement-toast-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

@media (max-width: 767.98px) {
    .page-player-profile .player-profile-achievement-toast {
        left: 1rem;
        right: 1rem;
        max-width: none;
    }
}

/* Spiele Übersicht */
.page-games-index .game-list-card,
.page-players-index .player-list-card {
    border-radius: var(--border-radius);
    background: var(--card-bg);
    overflow: hidden;
}

.page-games-index .game-list-table,
.page-players-index .player-list-table {
    --bs-table-bg: #ffffff;
    --bs-table-striped-bg: #f3f4f6;
    --bs-table-hover-bg: rgba(234, 88, 12, 0.06);
    --bs-table-border-color: var(--border-color);
}

[data-theme="dark"] .page-games-index .game-list-table,
[data-theme="dark"] .page-players-index .player-list-table {
    --bs-table-bg: var(--card-bg);
    --bs-table-striped-bg: rgba(255, 255, 255, 0.045);
    --bs-table-hover-bg: rgba(251, 146, 60, 0.1);
}

.page-games-index .game-list-empty-title,
.page-players-index .player-list-empty-title {
    font-weight: var(--font-weight-semibold);
    color: var(--heading-color);
}

/* Spiele Übersicht: Filter zwei Spieler (Header-Leiste) */
.page-games-index .game-list-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    padding: 0.9rem 1.1rem;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, #ea580c 0%, #fb923c 48%, #f97316 100%);
    color: #fff;
    box-shadow: 0 12px 36px rgba(234, 88, 12, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.page-games-index .game-list-filter-bar__head {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.page-games-index .game-list-filter-bar__eyebrow {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.88);
}

.page-games-index .game-list-filter-bar__title {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.55rem;
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.35;
}

.page-games-index .game-list-filter-bar__vs {
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    text-transform: lowercase;
}

.page-games-index .game-list-filter-bar__nick--yellow {
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.page-games-index .game-list-filter-bar__nick--black {
    opacity: 0.96;
}

.page-games-index .game-list-filter-bar__actions {
    flex-shrink: 0;
}

.page-games-index .game-list-filter-bar .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.55);
    color: #fff;
}

.page-games-index .game-list-filter-bar .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
    color: #fff;
}

[data-theme="dark"] .page-games-index .game-list-filter-bar {
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.45);
}

.page-games-index .game-list-filter-panel {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
}

.page-games-index .game-list-filter-panel__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 0;
}

.page-games-index .game-list-filter-form .form-label {
    font-size: 0.72rem;
    letter-spacing: 0.02em;
}

.page-games-index .game-list-filter-bar__summary {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-top: 0.25rem;
}

@media (min-width: 576px) {
    .page-games-index .game-list-filter-bar__summary {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
    }
}

.page-games-index .game-list-filter-bar__chip {
    font-size: 0.88rem;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.96);
}

.page-games-index .game-list-filter-bar__chip strong {
    font-weight: 800;
}

.page-games-index .game-list-filter-stats {
    margin-top: 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
}

.page-games-index .game-list-filter-stats__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 0;
}

.page-games-index .game-list-filter-stats__tile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    padding: 0.65rem 0.75rem;
    border-radius: 0.85rem;
    background: rgba(234, 88, 12, 0.06);
    border: 1px solid rgba(234, 88, 12, 0.12);
    min-height: 100%;
}

[data-theme="dark"] .page-games-index .game-list-filter-stats__tile {
    background: rgba(251, 146, 60, 0.1);
    border-color: rgba(251, 146, 60, 0.18);
}

.page-games-index .game-list-filter-stats__value {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--heading-color);
    font-variant-numeric: tabular-nums;
}

.page-games-index .game-list-filter-stats__label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    color: var(--text-muted);
}

.page-games-index .game-list-filter-stats__block {
    padding: 0.85rem 1rem;
    border-radius: 0.85rem;
    background: rgba(120, 113, 108, 0.06);
    border: 1px solid var(--border-color);
    height: 100%;
}

[data-theme="dark"] .page-games-index .game-list-filter-stats__block {
    background: rgba(255, 255, 255, 0.04);
}

.page-games-index .game-list-filter-stats__block-title {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.page-games-index .game-list-filter-stats__list {
    padding-left: 1.15rem;
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.page-games-index .game-list-filter-stats__list li {
    margin-bottom: 0.35rem;
}

.page-games-index .game-list-filter-stats__list li:last-child {
    margin-bottom: 0;
}

.page-games-index .game-list-filter-stats__list a {
    font-weight: 600;
    margin-right: 0.35rem;
    color: var(--text-primary);
    text-decoration: none;
}

.page-games-index .game-list-filter-stats__list a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.page-games-index .game-list-thead th,
.page-players-index .player-list-thead th {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    padding: 0.85rem 1rem;
    background: rgba(234, 88, 12, 0.06);
}

[data-theme="dark"] .page-games-index .game-list-thead th,
[data-theme="dark"] .page-players-index .player-list-thead th {
    background: rgba(251, 146, 60, 0.08);
}

.page-games-index .game-list-table tbody tr.game-list-row {
    cursor: pointer;
}

.page-games-index .game-list-table td,
.page-players-index .player-list-table td {
    padding: 1rem;
    vertical-align: middle;
}

.page-players-index .player-list-table .player-list-name-link {
    color: var(--text-primary);
    transition: color 0.2s ease;
}

.page-players-index .player-list-table .player-list-name-link:hover {
    color: var(--accent);
}

.page-players-index .player-list-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.page-games-index .game-list-result-link {
    color: inherit;
    display: inline-block;
}

.page-games-index .game-list-result-score:not(.text-danger) {
    color: var(--heading-color);
    transition: color 0.2s ease;
}

.page-games-index .game-list-result-link:hover .game-list-result-score:not(.text-danger) {
    color: var(--accent);
}

.page-games-index .game-list-result-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.page-games-index .reactions-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.page-games-index .reaction-mini {
    display: inline-flex;
    align-items: center;
    font-size: 0.7rem;
    background: rgba(234, 88, 12, 0.1);
    border: 1px solid rgba(234, 88, 12, 0.22);
    border-radius: 8px;
    padding: 0.1rem 0.3rem;
    color: var(--text-secondary);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.page-games-index .reaction-mini:hover {
    background: rgba(234, 88, 12, 0.16);
    border-color: rgba(234, 88, 12, 0.35);
}

.page-games-index .reaction-total {
    font-size: 0.65rem;
    opacity: 0.75;
    margin-left: 0.25rem;
}

.page-games-index .game-list-actions {
    gap: 0.5rem !important;
}

.page-games-index .game-list-action-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem;
    line-height: 1;
    font-size: 1rem;
    color: var(--text-muted);
    text-decoration: none;
    border: none;
    background: transparent;
    border-radius: 0.35rem;
    transition: color 0.15s ease, background 0.15s ease;
}

.page-games-index a.game-list-action-link:hover,
.page-games-index a.game-list-action-link:focus-visible {
    color: var(--accent);
    background: rgba(234, 88, 12, 0.1);
    outline: none;
}

.page-games-index button.game-list-action-link {
    cursor: pointer;
    font: inherit;
}

.page-games-index button.game-list-action-link:hover,
.page-games-index button.game-list-action-link:focus-visible {
    color: var(--accent);
    background: rgba(234, 88, 12, 0.1);
}

.page-games-index .game-list-action-link--delete:hover,
.page-games-index .game-list-action-link--delete:focus-visible {
    color: var(--danger-color);
    background: rgba(220, 53, 69, 0.1);
}

.page-games-index .game-list-action-link i {
    font-size: 0.95rem;
}

.page-games-index .side-indicator {
    width: 4px;
    height: 40px;
    border-radius: 2px;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-games-index .yellow-indicator {
    background: linear-gradient(135deg, #ea580c 0%, #fb923c 100%);
    box-shadow: 0 2px 8px rgba(234, 88, 12, 0.25);
}

.page-games-index .black-indicator {
    background: linear-gradient(135deg, #343a40 0%, #495057 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-games-index .side-indicator:hover {
    transform: scaleY(1.08);
}

@media (max-width: 768px) {
    .page-games-index .reaction-mini {
        font-size: 0.6rem;
        padding: 0.05rem 0.2rem;
    }

    .page-games-index .reaction-total {
        font-size: 0.6rem;
    }
}

/* Turniere — Übersicht */
.page-tournaments-index .tournaments-index-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.page-tournaments-index .tournaments-index-empty-icon--active {
    background: rgba(34, 197, 94, 0.12);
    color: #16a34a;
}

.page-tournaments-index .tournaments-index-empty-icon--done {
    background: rgba(148, 163, 184, 0.18);
    color: var(--text-secondary);
}

.page-tournaments-index .tournaments-index-empty-title {
    font-size: 1.05rem;
    font-weight: var(--font-weight-semibold);
    color: var(--heading-color);
    margin-bottom: 0.35rem;
}

.page-tournaments-index .tournament-index-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl, 1rem);
    padding: 1rem 1.1rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    border-left: 4px solid transparent;
}

.page-tournaments-index .tournament-index-card:hover {
    box-shadow: var(--box-shadow-hover);
}

.page-tournaments-index .tournament-index-card--active {
    border-left-color: rgba(34, 197, 94, 0.65);
}

.page-tournaments-index .tournament-index-card--active:hover {
    border-color: var(--border-color);
    border-left-color: #22c55e;
}

.page-tournaments-index .tournament-index-card--completed {
    border-left-color: rgba(234, 179, 8, 0.55);
}

.page-tournaments-index .tournament-index-card--completed:hover {
    border-color: var(--border-color);
    border-left-color: #eab308;
}

.page-tournaments-index .tournament-index-card-main {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    flex: 1;
}

.page-tournaments-index .tournament-index-card-icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.page-tournaments-index .tournament-index-card--active .tournament-index-card-icon {
    background: linear-gradient(145deg, rgba(34, 197, 94, 0.2), rgba(34, 197, 94, 0.08));
    color: #16a34a;
}

.page-tournaments-index .tournament-index-card--completed .tournament-index-card-icon {
    background: linear-gradient(145deg, rgba(234, 179, 8, 0.22), rgba(234, 179, 8, 0.08));
    color: #ca8a04;
}

.page-tournaments-index .tournament-index-card-text {
    min-width: 0;
    flex: 1;
}

.page-tournaments-index .tournament-index-card-name {
    font-size: 1rem;
    font-weight: var(--font-weight-semibold);
    color: var(--heading-color);
    line-height: 1.35;
    margin: 0 0 0.35rem;
}

.page-tournaments-index .tournament-index-card-meta {
    line-height: 1.45;
}

.page-tournaments-index .tournament-index-meta-sep {
    opacity: 0.45;
    margin: 0 0.2rem;
}

.page-tournaments-index .tournament-index-card-winner {
    line-height: 1.4;
}

.page-tournaments-index .tournament-index-winner-link {
    color: var(--accent);
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
    margin-left: 0.25rem;
}

.page-tournaments-index .tournament-index-winner-link:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.page-tournaments-index .tournament-index-card-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    margin-top: 0.85rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.page-tournaments-index .tournament-index-card-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
}

.page-tournaments-index .tournament-index-card-actions .btn {
    --bs-btn-padding-y: 0.3rem;
    --bs-btn-padding-x: 0.75rem;
    font-size: 0.8rem;
}

[data-theme="dark"] .page-tournaments-index .tournaments-index-empty-icon--active {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
}

[data-theme="dark"] .page-tournaments-index .tournament-index-card--active .tournament-index-card-icon {
    background: linear-gradient(145deg, rgba(34, 197, 94, 0.25), rgba(34, 197, 94, 0.1));
    color: #4ade80;
}

[data-theme="dark"] .page-tournaments-index .tournament-index-card--completed .tournament-index-card-icon {
    background: linear-gradient(145deg, rgba(234, 179, 8, 0.2), rgba(234, 179, 8, 0.08));
    color: #facc15;
}

/* Turnier — Detailseite */
.page-tournament-show .tournament-show-winner-card {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.12) 0%, var(--card-bg) 45%, var(--card-bg) 100%);
    border: 1px solid var(--border-color) !important;
    border-left: 4px solid #eab308 !important;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.page-tournament-show .tournament-show-winner-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
}

.page-tournament-show .tournament-show-winner-trophy {
    flex-shrink: 0;
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: linear-gradient(145deg, rgba(234, 179, 8, 0.35), rgba(234, 179, 8, 0.12));
    color: #ca8a04;
}

.page-tournament-show .tournament-show-winner-body {
    min-width: 0;
    flex: 1;
}

.page-tournament-show .tournament-show-winner-eyebrow {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0;
}

.page-tournament-show .tournament-show-winner-heading {
    font-size: clamp(1.35rem, 3vw, 1.85rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0;
    line-height: 1.2;
}

.page-tournament-show .tournament-show-winner-name-link {
    color: var(--heading-color);
    text-decoration: none;
}

.page-tournament-show .tournament-show-winner-name-link:hover {
    color: var(--accent);
}

.page-tournament-show .tournament-show-winner-sub-link {
    color: var(--text-secondary);
    text-decoration: none;
}

.page-tournament-show .tournament-show-winner-sub-link:hover {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.page-tournament-show .tournament-show-avail-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 1.15rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.page-tournament-show .tournament-show-avail-card:hover {
    box-shadow: var(--box-shadow-hover);
    border-color: rgba(234, 88, 12, 0.25);
}

.page-tournament-show .tournament-show-avail-round {
    text-align: center;
}

.page-tournament-show .tournament-show-avail-vs {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    flex: 1;
}

.page-tournament-show .tournament-show-avail-player {
    text-align: center;
}

.page-tournament-show .tournament-show-avail-avatar {
    width: 2.5rem;
    height: 2.5rem;
    margin: 0 auto 0.35rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    background: linear-gradient(145deg, rgba(234, 179, 8, 0.35), rgba(234, 179, 8, 0.1));
    color: var(--heading-color);
}

.page-tournament-show .tournament-show-avail-avatar--dark {
    background: linear-gradient(145deg, rgba(51, 65, 85, 0.45), rgba(51, 65, 85, 0.15));
    color: var(--text-primary);
}

.page-tournament-show .tournament-show-avail-link {
    font-weight: var(--font-weight-semibold);
    color: var(--heading-color);
    text-decoration: none;
    display: inline-block;
}

.page-tournament-show .tournament-show-avail-link:hover {
    color: var(--accent);
}

.page-tournament-show .tournament-show-side-badge {
    margin-top: 0.35rem;
    font-size: 0.65rem;
    font-weight: 600;
}

.page-tournament-show .tournament-show-vs-label {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    text-transform: uppercase;
}

.page-tournament-show .tournament-bracket {
    overflow-x: auto;
    padding: 0.5rem 0 1rem;
    -webkit-overflow-scrolling: touch;
}

.page-tournament-show .bracket-container {
    display: flex;
    gap: clamp(1.5rem, 4vw, 3.5rem);
    min-width: max-content;
    justify-content: center;
    padding-bottom: 0.5rem;
}

.page-tournament-show .bracket-round {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    min-height: 280px;
}

.page-tournament-show .round-title {
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.page-tournament-show .bracket-match {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1rem;
    margin: 0.5rem 0;
    min-width: 200px;
    max-width: 280px;
    box-shadow: var(--box-shadow);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.page-tournament-show .bracket-match:hover {
    box-shadow: var(--box-shadow-hover);
}

.page-tournament-show .bracket-match.completed {
    border-color: rgba(34, 197, 94, 0.45);
    background: linear-gradient(180deg, rgba(34, 197, 94, 0.08) 0%, var(--card-bg) 100%);
}

.page-tournament-show .bracket-match.pending {
    border-color: var(--border-color);
    opacity: 0.95;
}

.page-tournament-show .bracket-match.final-match {
    border-width: 2px;
    border-color: rgba(234, 179, 8, 0.5);
}

.page-tournament-show .match-participants {
    margin-bottom: 0.65rem;
}

.page-tournament-show .participant {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.45rem 0.25rem;
    border-bottom: 1px solid var(--border-color);
    gap: 0.5rem;
}

.page-tournament-show .match-participants .participant:last-child {
    border-bottom: none;
}

.page-tournament-show .participant.winner {
    background: rgba(34, 197, 94, 0.12);
    border-radius: 8px;
    padding: 0.45rem 0.5rem;
    font-weight: var(--font-weight-semibold);
    color: var(--heading-color);
    border-bottom: none;
    margin-bottom: 0.25rem;
}

.page-tournament-show .participant .player-name {
    font-weight: 500;
    min-width: 0;
}

.page-tournament-show .participant .score {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--accent);
    flex-shrink: 0;
}

.page-tournament-show .vs-divider {
    text-align: center;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin: 0.15rem 0;
    font-weight: 600;
    letter-spacing: 0.06em;
}

.page-tournament-show .match-status {
    text-align: center;
    font-size: 0.78rem;
    padding: 0.45rem 0.5rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.page-tournament-show .match-status.completed {
    background: rgba(34, 197, 94, 0.12);
    color: var(--heading-color);
}

.page-tournament-show .match-status.available {
    background: rgba(34, 197, 94, 0.1);
    color: var(--heading-color);
}

.page-tournament-show .match-status.pending {
    background: var(--list-item-bg);
    color: var(--text-secondary);
}

.page-tournament-show .tournament-show-match-edit {
    --bs-btn-padding-y: 0.15rem;
    --bs-btn-padding-x: 0.5rem;
    font-size: 0.72rem;
}

.page-tournament-show .bracket-player-link {
    color: var(--heading-color);
    text-decoration: none;
    border-radius: 4px;
    padding: 1px 2px;
}

.page-tournament-show .bracket-player-link:hover {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.page-tournament-show .tournament-show-participant-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--border-color);
}

.page-tournament-show .tournament-show-participant-row:last-child {
    border-bottom: none;
}

.page-tournament-show .tournament-show-participant-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(234, 88, 12, 0.2), rgba(234, 88, 12, 0.06));
    color: var(--accent);
    font-size: 0.95rem;
}

.page-tournament-show .tournament-show-participant-name {
    font-weight: var(--font-weight-semibold);
    color: var(--heading-color);
    text-decoration: none;
}

.page-tournament-show .tournament-show-participant-name:hover {
    color: var(--accent);
}

.page-tournament-show .tournament-show-participant-sub {
    color: var(--text-secondary);
    text-decoration: none;
}

.page-tournament-show .tournament-show-participant-sub:hover {
    color: var(--accent);
    text-decoration: underline;
}

.page-tournament-show .tournament-show-info-dl {
    margin: 0;
}

.page-tournament-show .tournament-show-info-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--border-color);
}

.page-tournament-show .tournament-show-info-row:last-child {
    border-bottom: none;
}

.page-tournament-show .tournament-show-info-row dt {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin: 0;
}

.page-tournament-show .tournament-show-info-row dd {
    margin: 0;
    font-size: 0.9rem;
    font-weight: var(--font-weight-semibold);
    color: var(--heading-color);
    text-align: right;
}

.page-tournament-show .tournament-show-info-winner-link {
    color: var(--accent);
    text-decoration: none;
}

.page-tournament-show .tournament-show-info-winner-link:hover {
    text-decoration: underline;
}

[data-theme="dark"] .page-tournament-show .tournament-show-winner-card {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.1) 0%, var(--card-bg) 50%);
    border-left-color: #facc15 !important;
}

[data-theme="dark"] .page-tournament-show .tournament-show-winner-trophy {
    background: linear-gradient(145deg, rgba(234, 179, 8, 0.25), rgba(234, 179, 8, 0.08));
    color: #facc15;
}

@media (max-width: 767.98px) {
    .page-tournament-show .bracket-container {
        gap: 1.25rem;
    }

    .page-tournament-show .bracket-match {
        min-width: 180px;
        padding: 0.85rem;
    }

    .page-tournament-show .tournament-show-winner-inner {
        flex-direction: column;
        text-align: center;
    }

    .page-tournament-show .tournament-show-winner-body {
        width: 100%;
    }
}

/* Games Winner Links (in badges) */
.games-winner-link {
    color: inherit;
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
}

.games-winner-link:hover {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.8);
    text-underline-offset: 2px;
}

/* Tournament Match Player Links */
.player-match-link {
    color: var(--text-primary);
    font-weight: var(--font-weight-bold);
    font-size: 1.2rem;
}

.player-match-link:hover {
    color: var(--accent);
    text-decoration: none;
    transform: scale(1.02);
}

.player-match-link-sub {
    color: var(--text-secondary);
    font-weight: var(--font-weight-regular);
    font-size: 0.9rem;
}

.player-match-link-sub:hover {
    color: var(--accent-hover);
    text-decoration: none;
}

/* Tournament Winner Links */
.winner-link {
    color: #ffd700;
    font-weight: var(--font-weight-bold);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.winner-link:hover {
    color: #ffed4e;
    text-decoration: underline;
    text-decoration-color: #ffed4e;
    text-underline-offset: 3px;
    transform: scale(1.02);
}

/* Dropdown Menu Dark Mode */
.dropdown-menu {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.dropdown-item {
    color: var(--text-primary);
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: var(--list-item-hover);
    color: var(--text-primary);
}

/* Theme transition */
.theme-transition {
    transition: background-color 0.3s ease, color 0.3s ease !important;
}

.theme-transition * {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease !important;
}

/* List Group Dark Mode Override */
.list-group-item {
    background-color: var(--list-item-bg) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}

.list-group-item:hover {
    background-color: var(--list-item-hover) !important;
}

.list-group-item.active {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

/* Override Bootstrap table styling for Dark Mode */
.table tbody tr:hover {
    background-color: var(--table-hover) !important;
}

.table-striped > tbody > tr:nth-of-type(odd) > td,
.table-striped > tbody > tr:nth-of-type(odd) > th {
    background-color: var(--list-item-bg) !important;
}

.table-striped > tbody > tr:nth-of-type(even) > td,
.table-striped > tbody > tr:nth-of-type(even) > th {
    background-color: var(--table-bg) !important;
}

/* Override table-striped for table-danger rows */
[data-theme="dark"] .table-striped > tbody > tr:nth-of-type(odd).table-danger > td,
[data-theme="dark"] .table-striped > tbody > tr:nth-of-type(odd).table-danger > th,
[data-theme="dark"] .table-striped > tbody > tr:nth-of-type(even).table-danger > td,
[data-theme="dark"] .table-striped > tbody > tr:nth-of-type(even).table-danger > th {
    background-color: #441818 !important;
    --bs-table-bg: #441818 !important;
}

/* Hover state for table-striped table-danger rows */
[data-theme="dark"] .table-striped > tbody > tr:nth-of-type(odd).table-danger:hover > td,
[data-theme="dark"] .table-striped > tbody > tr:nth-of-type(odd).table-danger:hover > th,
[data-theme="dark"] .table-striped > tbody > tr:nth-of-type(even).table-danger:hover > td,
[data-theme="dark"] .table-striped > tbody > tr:nth-of-type(even).table-danger:hover > th {
    background-color: #552020 !important;
    --bs-table-bg: #552020 !important;
}

/* Wall of Shame Row Styling for Dark Mode */
.table-danger.wall-of-shame-row {
    background-color: rgba(220, 53, 69, 0.15) !important;
}

[data-theme="dark"] .table-danger.wall-of-shame-row {
    background-color: #441818 !important;
    --bs-table-bg: #441818 !important;
}

[data-theme="dark"] .table-danger {
    background-color: #441818 !important;
    --bs-table-bg: #441818 !important;
}

/* Override Bootstrap table cell background for table-danger rows in Dark Mode */
[data-theme="dark"] .table > :not(caption) > * > .table-danger,
[data-theme="dark"] .table-danger > td,
[data-theme="dark"] .table-danger > th {
    background-color: #441818 !important;
    --bs-table-bg: #441818 !important;
}

/* Games page table-danger rows - ensure Bootstrap override */
[data-theme="dark"] tbody tr.table-danger.wall-of-shame-row > td,
[data-theme="dark"] tbody tr.table-danger.wall-of-shame-row > th {
    background-color: #441818 !important;
    --bs-table-bg: #441818 !important;
}

/* Hover state for games page table-danger rows */
[data-theme="dark"] tbody tr.table-danger.wall-of-shame-row:hover > td,
[data-theme="dark"] tbody tr.table-danger.wall-of-shame-row:hover > th {
    background-color: #552020 !important;
    --bs-table-bg: #552020 !important;
}

/* General fallback for ALL table-danger rows in Dark Mode */
[data-theme="dark"] tr.table-danger {
    --bs-table-bg: #441818 !important;
}

[data-theme="dark"] tr.table-danger:hover {
    --bs-table-bg: #552020 !important;
}

/* Dashboard „Letzte Spiele“ – Karte + helle Tabelle */
.dashboard-recent-games-card {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.08);
}

.dashboard-recent-games-card .card-body {
    position: relative;
    z-index: 1;
}

.dashboard-recent-games-table {
    background-color: transparent !important;
    color: var(--heading-color, inherit) !important;
    --bs-table-bg: transparent;
}

.dashboard-recent-games-table thead tr {
    background: linear-gradient(
        180deg,
        rgba(234, 88, 12, 0.1) 0%,
        rgba(234, 88, 12, 0.05) 100%
    ) !important;
    border-bottom: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
}

.dashboard-recent-games-table thead th {
    background-color: transparent !important;
    color: var(--heading-color) !important;
    border-color: var(--border-color, rgba(0, 0, 0, 0.08)) !important;
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}

[data-theme="dark"] .dashboard-recent-games-table thead tr {
    background: linear-gradient(
        180deg,
        rgba(251, 146, 60, 0.14) 0%,
        rgba(251, 146, 60, 0.06) 100%
    ) !important;
}

.dashboard-recent-games-table tbody tr {
    background-color: transparent !important;
    color: inherit !important;
    border-color: var(--border-color, rgba(0, 0, 0, 0.06)) !important;
}

.dashboard-recent-games-table tbody td {
    background-color: transparent !important;
    color: inherit !important;
    border-color: var(--border-color, rgba(0, 0, 0, 0.06)) !important;
    vertical-align: middle;
}

.dashboard-recent-games-table tbody tr:hover {
    background-color: rgba(234, 88, 12, 0.07) !important;
}

[data-theme="dark"] .dashboard-recent-games-table tbody tr:hover {
    background-color: rgba(251, 146, 60, 0.1) !important;
}

/* Hall of Fame Table - Dark Mode styling for table-danger rows */
.hall-of-fame-table {
    background-color: var(--table-bg) !important;
    color: var(--text-primary) !important;
}

.hall-of-fame-table thead tr {
    background-color: var(--list-item-bg) !important;
}

.hall-of-fame-table thead th {
    background-color: var(--list-item-bg) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}

.hall-of-fame-table tbody tr {
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}

.hall-of-fame-table tbody td {
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}

/* Light Mode - subtle red background for Hall of Fame */
.hall-of-fame-table tbody tr.table-danger {
    background-color: rgba(220, 53, 69, 0.1) !important;
}

/* Dark Mode - very dark red background */
[data-theme="dark"] .hall-of-fame-table tbody tr.table-danger {
    background-color: #441818 !important;
    --bs-table-bg: #441818 !important;
}

/* Override Bootstrap for Hall of Fame table cells */
[data-theme="dark"] .hall-of-fame-table tbody tr.table-danger > td,
[data-theme="dark"] .hall-of-fame-table tbody tr.table-danger > th {
    background-color: #441818 !important;
    --bs-table-bg: #441818 !important;
}

.hall-of-fame-table tbody tr:hover {
    background-color: var(--table-hover) !important;
}

/* Ensure table-danger rows in Hall of Fame are visible in Dark Mode */
[data-theme="dark"] .hall-of-fame-table tbody tr.table-danger:hover {
    background-color: #552020 !important;
    --bs-table-bg: #552020 !important;
}

[data-theme="dark"] .hall-of-fame-table tbody tr.table-danger:hover > td,
[data-theme="dark"] .hall-of-fame-table tbody tr.table-danger:hover > th {
    background-color: #552020 !important;
    --bs-table-bg: #552020 !important;
}

/* Page Headlines - Unified styling */
.page-headline {
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--heading-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: -0.02em;
}

.page-headline .emoji {
    font-size: 2.8rem;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.12));
}

@media (max-width: 768px) {
    .page-headline {
        font-size: 2rem;
    }
    
    .page-headline .emoji {
        font-size: 2.2rem;
    }
}

/* Dashboard / gemeinsame Seiten-Toolbar (umrahmte Button-Gruppe, z. B. Top-3, Zurück) */
.dashboard-top3-toolbar {
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.12));
    border-radius: 0.5rem;
    padding: 0.2rem 0.35rem;
    gap: 0;
    background: rgba(255, 255, 255, 0.35);
}

[data-theme="dark"] .dashboard-top3-toolbar {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.14);
}

.dashboard-top3-toolbar-seg {
    padding: 0 0.2rem;
}

.dashboard-top3-toolbar-sep {
    width: 1px;
    flex-shrink: 0;
    align-self: stretch;
    min-height: 2rem;
    margin: 0 0.15rem;
    background: var(--border-color, rgba(0, 0, 0, 0.12));
}

[data-theme="dark"] .dashboard-top3-toolbar-sep {
    background: rgba(255, 255, 255, 0.15);
}

/* ——— Spiel-Detailseite ——— */
.page-game-show .game-detail-page {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.page-game-show .game-detail-hero-inner {
    width: 100%;
}

.page-game-show .game-detail-page-title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--heading-color);
    line-height: 1.2;
}

.page-game-show .game-detail-eyebrow {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.page-game-show .game-detail-card {
    position: relative;
    border-radius: 1.15rem;
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.08)) !important;
}

/* Orangener Balken nur bei rein informativen Karten (z. B. Statistiken) */
.page-game-show .game-detail-card--accent-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ea580c, #fb923c, #fdba74);
    z-index: 2;
    pointer-events: none;
}

.page-game-show .game-detail-card-head {
    position: relative;
    z-index: 1;
    background: transparent !important;
    color: var(--heading-color) !important;
    border-bottom: none !important;
}

.page-game-show .game-detail-match-title {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--heading-color);
}

.page-game-show .game-detail-scoreboard {
    align-items: stretch;
}

.page-game-show .game-detail-player-link {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, opacity 0.2s ease;
}

.page-game-show .game-detail-player-link:hover {
    border-bottom-color: currentColor;
    opacity: 0.92;
}

.page-game-show .goals-display {
    margin-top: 1rem;
}

.page-game-show .goals-number {
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: clamp(2.75rem, 8vw, 4rem);
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: 0.04em;
    display: block;
}

.page-game-show .vs-divider {
    text-align: center;
    position: relative;
    min-height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-game-show .vs-text {
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 400;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    opacity: 0.85;
}

.page-game-show .game-detail-meta-grid {
    padding-top: 0.5rem;
}

.page-game-show .game-detail-meta-item {
    padding: 1rem 0.75rem;
    border-radius: 0.85rem;
    background: rgba(234, 88, 12, 0.06);
    border: 1px solid rgba(234, 88, 12, 0.14);
    height: 100%;
}

[data-theme="dark"] .page-game-show .game-detail-meta-item {
    background: rgba(251, 146, 60, 0.08);
    border-color: rgba(251, 146, 60, 0.2);
}

.page-game-show .game-detail-meta-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.page-game-show .game-detail-meta-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--heading-color);
    letter-spacing: -0.02em;
}

.page-game-show .game-detail-meta-hint {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.8rem;
}

.page-game-show .game-detail-section-heading {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--heading-color);
}

.page-game-show .game-detail-subheading {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--heading-color);
}

.page-game-show .game-detail-hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
    opacity: 0.9;
}

.page-game-show .game-detail-textarea {
    border-radius: 0.75rem;
    border-color: var(--border-color);
}

.page-game-show .game-detail-comment-field {
    min-height: 5.5rem;
}

.page-game-show .game-detail-gif-btn {
    min-width: 3.75rem;
    max-width: 4.5rem;
    border-radius: 0.85rem;
    border-width: 2px;
    border-color: rgba(234, 88, 12, 0.35);
    color: var(--heading-color);
    background: rgba(234, 88, 12, 0.06);
}

.page-game-show .game-detail-gif-btn:hover {
    border-color: #ea580c;
    background: rgba(234, 88, 12, 0.12);
    color: #c2410c;
}

[data-theme="dark"] .page-game-show .game-detail-gif-btn {
    border-color: rgba(251, 146, 60, 0.4);
    background: rgba(251, 146, 60, 0.08);
    color: var(--heading-color);
}

[data-theme="dark"] .page-game-show .game-detail-gif-btn:hover {
    border-color: #fb923c;
    background: rgba(251, 146, 60, 0.15);
    color: #fdba74;
}

.page-game-show .game-detail-gif-icon {
    font-size: 1.65rem;
    line-height: 1;
    color: #ea580c;
}

[data-theme="dark"] .page-game-show .game-detail-gif-icon {
    color: #fb923c;
}

.page-game-show .game-detail-gif-label {
    line-height: 1;
    letter-spacing: 0.06em;
}

.page-game-show .game-detail-send-btn {
    min-width: 3.75rem;
    max-width: 4.5rem;
    border-radius: 0.85rem;
    border-width: 2px;
}

.page-game-show .game-detail-send-icon {
    font-size: 1.65rem;
    line-height: 1;
    color: rgba(255, 255, 255, 0.95);
}

.page-game-show .game-detail-send-label {
    line-height: 1;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.95);
}

[data-theme="dark"] .page-game-show .game-detail-send-btn {
    border-color: rgba(0, 0, 0, 0.15);
}

/* Challenge-Match Hinweis auf Spiel-Detailseite (KMS / orangefluid, kein blaues Info-Alert) */
.page-game-show .game-detail-challenge-banner__inner {
    border-radius: var(--radius-xl);
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.page-game-show .game-detail-challenge-banner__head {
    background: linear-gradient(135deg, #ea580c 0%, #fb923c 48%, #f97316 100%);
    color: #fff;
    font-weight: var(--font-weight-bold);
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    padding: 0.75rem 1.15rem;
    display: flex;
    align-items: center;
}

.page-game-show .game-detail-challenge-banner__body {
    padding: 1rem 1.15rem 1.1rem;
}

[data-theme="dark"] .page-game-show .game-detail-challenge-banner__inner {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.page-game-show .game-detail-challenge-alert {
    border-radius: 0.85rem !important;
}

.page-game-show .game-detail-narrow-alert {
    border-radius: 0.85rem !important;
}

.page-game-show .game-detail-wos-title {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ea580c, #fb923c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

[data-theme="dark"] .page-game-show .game-detail-wos-title {
    background: linear-gradient(135deg, #fdba74, #fb923c);
    -webkit-background-clip: text;
    background-clip: text;
}

.page-game-show .wall-of-shame-section {
    background: linear-gradient(135deg, rgba(234, 88, 12, 0.1), rgba(251, 146, 60, 0.05));
    border: 2px dashed rgba(234, 88, 12, 0.35);
    border-radius: 1rem;
}

.page-game-show .wos-header h5,
.page-game-show .game-detail-wos-title {
    text-shadow: none;
}

.page-game-show .wos-photo-display img {
    border-color: rgba(234, 88, 12, 0.35);
}

/* Spiel-Einzelseite: Seitenverhältnis erhalten (kein w-100 / keine Zwangsskalierung) */
.wos-photo-display--detail {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 0;
}

.wos-photo-display--detail .wos-detail-photo {
    max-width: 100%;
    width: auto;
    height: auto;
    max-height: min(400px, 75vh);
    object-fit: contain;
    display: block;
}

.page-game-show .wos-photo-upload .upload-area {
    border-color: rgba(234, 88, 12, 0.4);
    background: rgba(234, 88, 12, 0.04);
}

.page-game-show .wos-photo-upload .upload-area:hover {
    border-color: rgba(234, 88, 12, 0.65);
    background: rgba(234, 88, 12, 0.08);
}

.page-game-show .reaction-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.page-game-show .reaction-btn {
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 0.5rem 1rem;
    background: var(--card-bg);
    color: var(--text-muted);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.page-game-show .reaction-btn:hover {
    border-color: rgba(234, 88, 12, 0.45);
    color: var(--heading-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(234, 88, 12, 0.15);
}

.page-game-show .reaction-btn.active {
    border-color: #ea580c;
    background: linear-gradient(145deg, #fb923c 0%, #ea580c 100%);
    color: #fff;
    box-shadow: 0 6px 20px rgba(234, 88, 12, 0.35);
}

.page-game-show .reaction-emoji {
    font-size: 1.2rem;
    line-height: 1;
}

.page-game-show .reaction-count {
    background: rgba(0, 0, 0, 0.08);
    border-radius: 999px;
    padding: 0.1rem 0.45rem;
    font-size: 0.78rem;
    min-width: 1.5rem;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.page-game-show .reaction-btn.active .reaction-count {
    background: rgba(255, 255, 255, 0.25);
}

.page-game-show .comment-item {
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.page-game-show .comment-item:last-child {
    border-bottom: none;
}

.page-game-show .comment-content {
    margin-left: 2.75rem;
    line-height: 1.55;
    color: var(--text-primary);
}

.page-game-show .stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--border-color);
}

.page-game-show .stat-item:last-child {
    border-bottom: none;
}

.page-game-show .stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.page-game-show .stat-value {
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    font-size: 1.15rem;
    color: #ea580c;
}

[data-theme="dark"] .page-game-show .stat-value {
    color: #fb923c;
}

.page-game-show .game-detail-stat-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.page-game-show .game-detail-stat-text {
    font-size: 0.92rem;
    line-height: 1.45;
    color: var(--text-primary);
}

.page-game-show .stat-item.game-detail-stat-bilanz {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    border-bottom: none;
    padding-bottom: 0;
}

.page-game-show .game-detail-bilanz-body {
    width: 100%;
}

.page-game-show .game-detail-bilanz-total {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

.page-game-show .game-detail-bilanz-rows {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.5rem;
    row-gap: 0.5rem;
}

.page-game-show .game-detail-bilanz-play {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
}

.page-game-show .game-detail-bilanz-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--heading-color);
}

.page-game-show .game-detail-bilanz-wins {
    font-size: 1.1rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    color: #ea580c;
    min-width: 1.25rem;
    text-align: center;
}

[data-theme="dark"] .page-game-show .game-detail-bilanz-wins {
    color: #fb923c;
}

.page-game-show .game-detail-bilanz-sep {
    color: var(--text-muted);
    font-weight: 600;
    user-select: none;
}

/* Spiel-Detail: Mini-Liste letzte H2H-Duelle (Sidebar) */
.page-game-show .game-detail-h2h-mini-wrap {
    border-top: 1px solid var(--border-color);
}

.page-game-show .game-detail-h2h-mini {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.page-game-show .game-detail-h2h-mini__row {
    margin: 0;
    border-radius: 0.5rem;
    transition: background 0.15s ease;
}

.page-game-show .game-detail-h2h-mini__row:nth-child(odd) {
    background: rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .page-game-show .game-detail-h2h-mini__row:nth-child(odd) {
    background: rgba(255, 255, 255, 0.05);
}

.page-game-show .game-detail-h2h-mini__row:nth-child(even) {
    background: transparent;
}

.page-game-show .game-detail-h2h-mini__row--current {
    background: rgba(234, 88, 12, 0.08);
    outline: 1px solid rgba(234, 88, 12, 0.22);
}

[data-theme="dark"] .page-game-show .game-detail-h2h-mini__row--current {
    background: rgba(251, 146, 60, 0.1);
    outline-color: rgba(251, 146, 60, 0.28);
}

.page-game-show .game-detail-h2h-mini__link {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    padding: 0.5rem 0.55rem;
    text-decoration: none;
    color: var(--text-primary);
    border-radius: 0.5rem;
    width: 100%;
}

.page-game-show .game-detail-h2h-mini__link:hover {
    background: rgba(234, 88, 12, 0.06);
    color: var(--text-primary);
}

[data-theme="dark"] .page-game-show .game-detail-h2h-mini__link:hover {
    background: rgba(251, 146, 60, 0.08);
}

.page-game-show .game-detail-h2h-mini__date-line {
    font-size: 0.78rem;
    font-variant-numeric: tabular-nums;
    color: var(--text-muted);
    line-height: 1.3;
}

.page-game-show .game-detail-h2h-mini__comma {
    color: var(--text-muted);
}

.page-game-show .game-detail-h2h-mini__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 0.35rem 0.5rem;
    align-items: center;
    width: 100%;
}

.page-game-show .game-detail-h2h-mini__name {
    font-size: 0.88rem;
    line-height: 1.3;
    word-break: break-word;
    hyphens: auto;
}

.page-game-show .game-detail-h2h-mini__name--p1 {
    text-align: left;
    color: var(--text-primary);
    padding-right: 0.15rem;
}

.page-game-show .game-detail-h2h-mini__name--p2 {
    text-align: right;
    color: var(--text-primary);
    padding-left: 0.15rem;
}

.page-game-show .game-detail-h2h-mini__name--winner {
    font-weight: 800;
    color: #ea580c;
}

[data-theme="dark"] .page-game-show .game-detail-h2h-mini__name--winner {
    color: #fdba74;
}

.page-game-show .game-detail-h2h-mini__goals {
    font-size: 0.92rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    text-align: center;
    color: var(--heading-color);
    padding: 0 0.15rem;
}

.page-game-show .game-detail-h2h-mini__badge {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #ea580c;
    background: rgba(234, 88, 12, 0.12);
    border-radius: 999px;
    padding: 0.15rem 0.45rem;
    align-self: flex-start;
}

[data-theme="dark"] .page-game-show .game-detail-h2h-mini__badge {
    color: #fdba74;
    background: rgba(251, 146, 60, 0.15);
}

.page-game-show .game-detail-h2h-mini__footer {
    border-top: 1px solid var(--border-color);
}

.page-game-show .game-detail-h2h-mini__all-link {
    font-size: 0.88rem;
    font-weight: 600;
    color: #ea580c;
    text-decoration: none;
}

.page-game-show .game-detail-h2h-mini__all-link:hover {
    color: #c2410c;
    text-decoration: underline;
}

[data-theme="dark"] .page-game-show .game-detail-h2h-mini__all-link {
    color: #fdba74;
}

[data-theme="dark"] .page-game-show .game-detail-h2h-mini__all-link:hover {
    color: #fff;
}

.page-game-show .user-reaction-badge {
    background: rgba(234, 88, 12, 0.12);
    border-color: rgba(234, 88, 12, 0.25);
}

.page-game-show .comment-content .comment-gif-wrap {
    margin: 0.5rem 0 0.25rem;
    max-width: min(100%, 320px);
}

.page-game-show .comment-content .comment-gif {
    display: block;
    border-radius: 0.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.page-game-show .game-comment-editor {
    position: relative;
    min-height: 5.5rem;
    max-height: 18rem;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-word;
    cursor: text;
    outline: none;
}

.page-game-show .game-comment-editor.is-empty:before {
    content: attr(data-placeholder);
    color: var(--bs-secondary-color);
    pointer-events: none;
    position: absolute;
    left: 0.75rem;
    top: 0.5rem;
}

.page-game-show .game-comment-gif-inline {
    display: inline-block;
    vertical-align: middle;
    max-width: min(100%, 280px);
    margin: 0.1rem 0.15rem;
    user-select: none;
}

.page-game-show .game-comment-gif-inline-inner {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
    max-width: 100%;
}

.page-game-show .game-comment-editor-gif {
    display: block;
    max-height: 180px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    border-radius: 0.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
    background: rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .page-game-show .game-comment-editor-gif {
    background: rgba(255, 255, 255, 0.06);
}

.page-game-show .game-comment-gif-remove-inline {
    border-radius: 0.5rem;
    flex-shrink: 0;
}

.page-game-show .giphy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.5rem;
}

.page-game-show .giphy-grid-item {
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0;
    overflow: hidden;
    background: var(--card-bg);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.page-game-show .giphy-grid-item:hover {
    transform: scale(1.02);
    box-shadow: var(--box-shadow-hover);
}

.page-game-show .giphy-grid-item img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    display: block;
}

.page-game-show .giphy-attribution a {
    color: var(--text-muted);
}

.page-game-show .giphy-modal-content .giphy-modal-toolbar {
    margin-top: -0.25rem;
    padding-bottom: 0.5rem;
    z-index: 2;
    background: var(--card-bg);
    box-shadow: 0 8px 12px -10px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .page-game-show .giphy-modal-content .giphy-modal-toolbar {
    box-shadow: 0 8px 16px -10px rgba(0, 0, 0, 0.5);
}

.page-game-show .giphy-modal-content .input-group-text {
    border-color: var(--border-color);
}

.page-game-show .giphy-modal-content .form-control {
    border-color: var(--border-color);
}

@media (max-width: 768px) {
    .page-game-show .reaction-buttons {
        justify-content: center;
    }

    .page-game-show .reaction-btn {
        flex: 1 1 auto;
        min-width: 8rem;
        justify-content: center;
    }

    .page-game-show .comment-content {
        margin-left: 0;
        padding-top: 0.35rem;
    }
}

/* Responsive adjustments for player links */
@media (max-width: 768px) {
    .player-match-link {
        font-size: 1.1rem;
    }
    
    .dashboard-player-link,
    .dashboard-winner-link,
    .dashboard-loser-link {
        font-size: 0.9rem;
    }
    
    .games-player-link {
        font-size: 0.95rem;
    }
    
    .games-player-link-sub,
    .player-match-link-sub {
        font-size: 0.8rem;
    }
    
    .dark-mode-toggle {
        bottom: 15px;
        right: 15px;
    }
    
    .btn-dark-mode {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

/* Wall of Shame — Übersichtsseite */
.page-wall-of-shame .wall-of-shame-empty-card {
    border-radius: var(--radius-xl);
    background: var(--card-bg);
}

.page-wall-of-shame .wall-of-shame-empty-icon {
    display: inline-flex;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    background: rgba(220, 53, 69, 0.12);
    color: #dc3545;
}

[data-theme="dark"] .page-wall-of-shame .wall-of-shame-empty-icon {
    background: rgba(248, 113, 113, 0.15);
    color: #f87171;
}

/* Wall of Shame Cards */
.wall-of-shame-card {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    background: var(--card-bg);
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
}

.wall-of-shame-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0.75rem 1.75rem rgba(0, 0, 0, 0.12);
}

[data-theme="dark"] .wall-of-shame-card:hover {
    box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.45);
}

.wos-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    container-type: inline-size;
    container-name: wos-card;
}

.wos-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.wos-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.55) 0%,
        rgba(0, 0, 0, 0.25) 42%,
        rgba(0, 0, 0, 0.82) 100%
    );
    color: white;
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 0.75rem 0.85rem 0.85rem;
    z-index: 2;
    pointer-events: none;
}

.wos-image-container.wos-has-video .wos-poster-img,
.wos-image-container.wos-has-video .wos-hover-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wos-image-container.wos-has-video:not(.wos-only-video) .wos-hover-video {
    opacity: 0;
    transition: opacity 0.22s ease;
}

.wos-card-has-video:hover .wos-hover-video {
    opacity: 1;
}

.wos-image-container.wos-only-video .wos-hover-video {
    opacity: 1;
}

.page-game-show .game-detail-wos-video {
    max-height: min(70vh, 480px);
    background: #000;
}

.wos-card-link.wall-of-shame-card {
    display: block;
    color: inherit;
}

.wos-card-link.wall-of-shame-card:hover {
    color: inherit;
}

.wos-result-wrap {
    position: relative;
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 0;
    padding: 0.2rem 0.15rem;
    transform: rotate(-4deg);
    transform-origin: 50% 50%;
    filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.45)) drop-shadow(0 10px 28px rgba(0, 0, 0, 0.55));
}

/* Krissel nur auf der Schrift (alle Layer mit background-clip: text) */
.wos-result {
    font-family: 'Bebas Neue', Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    font-size: clamp(3.75rem, 22vw, 8.5rem);
    font-weight: 400;
    line-height: 0.88;
    letter-spacing: 0.05em;
    font-variant-numeric: tabular-nums;
    background-image:
        repeating-linear-gradient(
            -13deg,
            transparent,
            transparent 1px,
            rgba(255, 255, 255, 0.16) 1px,
            rgba(255, 255, 255, 0.16) 2px
        ),
        repeating-linear-gradient(
            10deg,
            transparent 0 2px,
            rgba(0, 0, 0, 0.09) 2px 3px
        ),
        repeating-radial-gradient(
            circle at 24% 32%,
            rgba(0, 0, 0, 0.11) 0 0.5px,
            transparent 0.5px 5px
        ),
        repeating-radial-gradient(
            circle at 76% 64%,
            rgba(255, 255, 255, 0.12) 0 0.5px,
            transparent 0.5px 4px
        ),
        linear-gradient(
            165deg,
            #fffbeb 0%,
            #fde68a 14%,
            #fb923c 42%,
            #ea580c 68%,
            #9a3412 100%
        );
    background-blend-mode: soft-light, overlay, overlay, overlay, normal;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

@supports (container-type: inline-size) {
    .wos-result {
        font-size: clamp(3.75rem, 42cqw, 9rem);
    }
}

[data-theme="dark"] .wos-result {
    background-image:
        repeating-linear-gradient(
            -13deg,
            transparent,
            transparent 1px,
            rgba(255, 255, 255, 0.14) 1px,
            rgba(255, 255, 255, 0.14) 2px
        ),
        repeating-linear-gradient(
            10deg,
            transparent 0 2px,
            rgba(0, 0, 0, 0.12) 2px 3px
        ),
        repeating-radial-gradient(
            circle at 24% 32%,
            rgba(0, 0, 0, 0.14) 0 0.5px,
            transparent 0.5px 5px
        ),
        repeating-radial-gradient(
            circle at 76% 64%,
            rgba(255, 255, 255, 0.1) 0 0.5px,
            transparent 0.5px 4px
        ),
        linear-gradient(
            165deg,
            #fff7ed 0%,
            #fdba74 22%,
            #fb923c 48%,
            #ea580c 72%,
            #7c2d12 100%
        );
    background-blend-mode: soft-light, overlay, overlay, overlay, normal;
    -webkit-background-clip: text;
    background-clip: text;
}

.wos-details {
    flex-shrink: 0;
    text-align: center;
    margin-top: 0;
    padding-top: 0;
}

.wos-players {
    margin-bottom: 0.65rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.wos-player {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.05rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.55);
    line-height: 1.25;
}

.wos-player-name {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wos-side-dot {
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.wos-side-dot--yellow {
    background: linear-gradient(145deg, #ea580c, #fb923c);
}

.wos-side-dot--black {
    background: linear-gradient(145deg, #52525b, #18181b);
}

.wos-player--yellow {
    color: #ffedd5;
}

.wos-player--black {
    color: #e4e4e7;
}

.wos-trophy {
    font-size: 0.95rem;
    flex-shrink: 0;
}

.wos-date {
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.wos-no-photo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    z-index: 2;
    pointer-events: none;
}

/* Default image overlay for cards without photos */
.wall-of-shame-card .wos-image-container:not(:has(.wos-image[src*=".jpg"], .wos-image[src*=".jpeg"], .wos-image[src*=".png"], .wos-image[src*=".webp"])) {
    background: linear-gradient(135deg, #dc3545, #c82333);
}

.wall-of-shame-card .wos-image-container:not(:has(.wos-image[src*=".jpg"], .wos-image[src*=".jpeg"], .wos-image[src*=".png"], .wos-image[src*=".webp"])) .wos-image {
    opacity: 0.1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .wos-result {
        font-size: clamp(3rem, 24vw, 6.5rem);
    }

    @supports (container-type: inline-size) {
        .wos-result {
            font-size: clamp(3rem, 44cqw, 7rem);
        }
    }

    .wos-player {
        font-size: 0.9rem;
    }

    .wos-date {
        font-size: 0.8rem;
    }
}

/* Wall of Shame Photo Upload Interface */
.wall-of-shame-section {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1), rgba(220, 53, 69, 0.05));
    border: 2px dashed rgba(220, 53, 69, 0.3);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
}

.wos-header h5 {
    text-shadow: 0 1px 3px rgba(220, 53, 69, 0.3);
}

.wos-photo-display img {
    max-width: 100%;
    max-height: min(400px, 75vh);
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin-left: auto;
    margin-right: auto;
    box-shadow: var(--box-shadow);
    border: 3px solid rgba(220, 53, 69, 0.3);
}

.wos-photo-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.wos-photo-upload .upload-area {
    padding: 3rem 2rem;
    border: 2px dashed rgba(220, 53, 69, 0.4);
    border-radius: var(--border-radius);
    background: rgba(220, 53, 69, 0.05);
    transition: var(--transition);
}

.wos-photo-upload .upload-area:hover {
    border-color: rgba(220, 53, 69, 0.6);
    background: rgba(220, 53, 69, 0.08);
}

/* Loading and success states */
.wos-uploading {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

.wos-uploading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid rgba(220, 53, 69, 0.3);
    border-top: 3px solid #dc3545;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Challenge System Styles */
.challenge-btn {
    background: var(--accent);
    border: none;
    color: white;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 2px 6px rgba(194, 65, 12, 0.25);
}

.challenge-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(194, 65, 12, 0.35);
    background: var(--accent-hover);
    color: white;
}

.challenge-btn:active {
    transform: translateY(0);
}

/* Eine Zeile: ausgehende Herausforderung + Abbrechen (Dashboard) */
.challenge-outgoing-chip {
    background: var(--card-bg);
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-xl);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
    padding: 0.75rem 1rem;
}

[data-theme="dark"] .challenge-outgoing-chip {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

/* Challenge: Modal „Herausforderung senden“ (KMS / orangefluid) */
.challenge-modal.challenge-modal--send .challenge-modal__content {
    border-radius: var(--radius-xl);
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

[data-theme="dark"] .challenge-modal.challenge-modal--send .challenge-modal__content {
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.45);
}

.challenge-modal.challenge-modal--send .challenge-modal__header {
    background: linear-gradient(135deg, #ea580c 0%, #fb923c 48%, #f97316 100%);
    color: #fff;
    padding: 1.15rem 1.25rem 1rem;
    align-items: flex-start;
}

.challenge-modal.challenge-modal--send .challenge-modal__eyebrow {
    font-size: 0.68rem;
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 0.25rem;
}

.challenge-modal.challenge-modal--send .challenge-modal__title {
    font-size: 1.15rem;
    font-weight: var(--font-weight-bold);
    color: #fff;
    letter-spacing: -0.02em;
}

.challenge-modal.challenge-modal--send .challenge-modal__header .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.88;
    margin-top: 0.15rem;
}

.challenge-modal.challenge-modal--send .challenge-modal__body {
    padding: 1.35rem 1.5rem 1.25rem;
}

.challenge-modal.challenge-modal--send .challenge-modal__icon-wrap {
    display: flex;
    justify-content: center;
}

.challenge-modal.challenge-modal--send .challenge-modal__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(251, 146, 60, 0.2), rgba(234, 88, 12, 0.12));
    color: var(--accent);
    font-size: 1.65rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

[data-theme="dark"] .challenge-modal.challenge-modal--send .challenge-modal__icon {
    background: linear-gradient(145deg, rgba(251, 146, 60, 0.22), rgba(234, 88, 12, 0.14));
    color: #fdba74;
}

.challenge-modal.challenge-modal--send .challenge-modal__lead {
    font-size: 1.02rem;
    line-height: 1.45;
}

.challenge-modal.challenge-modal--send .challenge-modal__footer {
    padding: 0 1.5rem 1.35rem;
    gap: 0.65rem;
}

.challenge-modal.challenge-modal--send .challenge-modal__footer .btn-primary {
    background: linear-gradient(135deg, #fb923c 0%, #ea580c 100%);
    border: none;
    font-weight: var(--font-weight-semibold);
    box-shadow: 0 4px 14px rgba(234, 88, 12, 0.35);
}

.challenge-modal.challenge-modal--send .challenge-modal__footer .btn-primary:hover {
    background: linear-gradient(135deg, #fdba74 0%, #fb923c 55%, #ea580c 100%);
    box-shadow: 0 6px 18px rgba(234, 88, 12, 0.42);
}

.challenge-modal.challenge-modal--send .challenge-modal__footer .btn-outline-secondary {
    border-color: var(--border-color);
    color: var(--text-primary);
}

.challenge-modal.challenge-modal--send .challenge-modal__footer .btn-outline-secondary:hover {
    background: var(--list-item-hover);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.challenge-modal.challenge-modal--send .challenge-modal__side-box {
    background: var(--list-item-bg);
    border: 1px solid var(--border-color);
}

.challenge-modal.challenge-modal--send .challenge-modal__side-box--yellow {
    border-left: 4px solid #facc15;
}

.challenge-modal.challenge-modal--send .challenge-modal__side-box--black {
    border-left: 4px solid #1f2937;
}

[data-theme="dark"] .challenge-modal.challenge-modal--send .challenge-modal__side-box--black {
    border-left-color: #9ca3af;
}

/* Dashboard: eingehende Herausforderung (gleiche KMS-Optik wie Modals) */
.challenge-dashboard-incoming .challenge-modal__side-box {
    background: var(--list-item-bg);
    border: 1px solid var(--border-color);
}

.challenge-dashboard-incoming .challenge-modal__side-box--yellow {
    border-left: 4px solid #facc15;
}

.challenge-dashboard-incoming .challenge-modal__side-box--black {
    border-left: 4px solid #1f2937;
}

[data-theme="dark"] .challenge-dashboard-incoming .challenge-modal__side-box--black {
    border-left-color: #9ca3af;
}

.challenge-dashboard-incoming__inner {
    border-radius: var(--radius-xl);
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.challenge-dashboard-incoming__head {
    background: linear-gradient(135deg, #ea580c 0%, #fb923c 48%, #f97316 100%);
    color: #fff;
    padding: 1rem 1.25rem 0.85rem;
}

.challenge-dashboard-incoming__eyebrow {
    font-size: 0.68rem;
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 0.25rem;
}

.challenge-dashboard-incoming__title {
    font-size: 1.15rem;
    font-weight: var(--font-weight-bold);
    color: #fff;
    letter-spacing: -0.02em;
}

.challenge-dashboard-incoming__body {
    padding: 1.25rem 1.25rem 1.35rem;
}

.challenge-dashboard-incoming__lead {
    font-size: 1.02rem;
    line-height: 1.45;
    color: var(--text-primary);
}

[data-theme="dark"] .challenge-dashboard-incoming__inner {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.42);
}

/* Challenge Notification Animations */
.pulse-animation {
    animation: challengePulse 2s ease-in-out infinite;
}

@keyframes challengePulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

.challenge-animation {
    animation: challengeBounce 1s ease-in-out;
}

@keyframes challengeBounce {
    0% { transform: scale(0.3) rotate(0deg); opacity: 0; }
    50% { transform: scale(1.1) rotate(180deg); opacity: 0.8; }
    100% { transform: scale(1) rotate(360deg); opacity: 1; }
}

/* Side Assignment Display */
.side-assignment {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(44, 44, 44, 0.1));
    border-radius: var(--border-radius);
    padding: 1rem;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.side-info {
    text-align: center;
    padding: 0.5rem;
    border-radius: 8px;
    transition: var(--transition);
}

.side-info.active {
    background: var(--accent-soft);
    border: 2px solid var(--accent);
}

.side-color {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin: 0 auto 0.5rem auto;
    border: 3px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Challenge History Styles */
.challenge-history-item {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-left: 4px solid var(--accent);
    transition: var(--transition);
}

.challenge-history-item:hover {
    transform: translateX(5px);
    box-shadow: var(--box-shadow);
}

.challenge-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.challenge-status.pending {
    background: rgba(255, 193, 7, 0.2);
    color: #856404;
    border: 1px solid rgba(255, 193, 7, 0.5);
}

.challenge-status.accepted {
    background: rgba(40, 167, 69, 0.2);
    color: #155724;
    border: 1px solid rgba(40, 167, 69, 0.5);
}

.challenge-status.declined {
    background: rgba(220, 53, 69, 0.2);
    color: #721c24;
    border: 1px solid rgba(220, 53, 69, 0.5);
}

.challenge-status.delayed {
    background: rgba(23, 162, 184, 0.2);
    color: #0c5460;
    border: 1px solid rgba(23, 162, 184, 0.5);
}

.challenge-status.cancelled {
    background-color: #6c757d;
    color: #fff;
}

.challenge-status.expired {
    background: rgba(108, 117, 125, 0.2);
    color: #495057;
    border: 1px solid rgba(108, 117, 125, 0.5);
}

.challenge-status.completed {
    background: rgba(111, 66, 193, 0.2);
    color: #4a2c79;
    border: 1px solid rgba(111, 66, 193, 0.5);
}

/* Challenge Modal Enhancements */
.modal-content.border-warning {
    border-width: 3px !important;
    box-shadow: 0 10px 30px rgba(255, 193, 7, 0.3);
}

.challenge-notification-animation {
    position: relative;
}

.challenge-notification-animation::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: radial-gradient(circle, rgba(255, 193, 7, 0.3), transparent);
    border-radius: 50%;
    animation: challengeGlow 2s ease-in-out infinite;
}

@keyframes challengeGlow {
    0%, 100% { opacity: 0; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Challenge Button States */
.btn-group .btn {
    transition: all 0.2s ease;
}

.btn-group .btn:hover {
    transform: translateY(-1px);
    z-index: 2;
}

/* Toast Positioning for Multiple Toasts */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

/* Dark Mode Challenge Styles */
[data-theme="dark"] .challenge-history-item {
    background: var(--card-bg);
    border-left-color: var(--accent);
}

[data-theme="dark"] .side-assignment {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05), rgba(44, 44, 44, 0.05));
    border-color: rgba(255, 215, 0, 0.2);
}

[data-theme="dark"] .side-info.active {
    background: rgba(234, 88, 12, 0.12);
    border-color: var(--accent);
}

/* Challenge Stats Display */
.challenge-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

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

.challenge-stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    display: block;
}

.challenge-stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 600;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .challenge-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .side-assignment {
        padding: 0.75rem;
    }
    
    .side-color {
        width: 25px;
        height: 25px;
    }
    
    .challenge-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .modal-dialog {
        margin: 1rem;
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Weekly Top 3 Dashboard Styles */
.week-navigation .btn {
    border-color: rgba(255, 255, 255, 0.3);
}

.week-navigation .btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.week-period {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.weekly-podium {
    transition: var(--transition);
}

.weekly-podium:hover {
    transform: translateY(-5px);
}

.player-avatar-wrapper {
    position: relative;
    display: inline-block;
}

.weekly-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid;
    transition: var(--transition);
}

.weekly-avatar.position-1 {
    border-color: #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

.weekly-avatar.position-2 {
    border-color: #c0c0c0;
    box-shadow: 0 0 15px rgba(192, 192, 192, 0.3);
}

.weekly-avatar.position-3 {
    border-color: #cd7f32;
    box-shadow: 0 0 10px rgba(205, 127, 50, 0.3);
}

.podium-badge {
    position: absolute;
    bottom: -5px;
    right: -5px;
    font-size: 1.5rem;
    background: var(--card-bg);
    border-radius: 50%;
    padding: 5px;
    border: 2px solid;
    line-height: 1;
}

.podium-badge.position-1 {
    border-color: #ffd700;
}

.podium-badge.position-2 {
    border-color: #c0c0c0;
}

.podium-badge.position-3 {
    border-color: #cd7f32;
}

.weekly-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 1rem;
}

.weekly-stats .stat-item {
    text-align: center;
}

.weekly-stats .stat-value {
    font-weight: bold;
    font-size: 1.1rem;
    line-height: 1.2;
}

/* Yellow vs Black Head-to-Head Styles */
.vs-stats .wins-count {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
}

.vs-divider {
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.side-color {
    border: 2px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.win-rates .fw-bold {
    font-size: 1.1rem;
}

/* Responsive adjustments for new dashboard */
@media (max-width: 768px) {
    .weekly-avatar {
        width: 60px;
        height: 60px;
    }
    
    .podium-badge {
        font-size: 1.2rem;
        bottom: -3px;
        right: -3px;
    }
    
    .weekly-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .vs-stats .wins-count {
        font-size: 1.5rem;
    }
    
    .side-color {
        width: 30px !important;
        height: 30px !important;
    }
}

/* Challenge Alert Styling */
.challenge-alert {
    background: var(--challenge-alert-bg) !important;
    border: none !important;
    box-shadow: var(--challenge-alert-shadow) !important;
    color: var(--challenge-alert-text) !important;
    border-radius: var(--border-radius) !important;
    padding: 1.5rem !important;
    margin-bottom: 1.5rem !important;
    animation: challengePulse 2s ease-in-out infinite alternate;
}

.challenge-alert .alert-heading,
.challenge-alert p,
.challenge-alert small {
    color: var(--challenge-alert-text) !important;
}

.challenge-alert .btn-light {
    background-color: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(255, 255, 255, 0.9) !important;
    color: var(--dark-color) !important;
    font-weight: 600 !important;
}

.challenge-alert .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.7) !important;
    color: var(--challenge-alert-text) !important;
}

.challenge-alert .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.9) !important;
}

@keyframes challengePulse {
    0% { box-shadow: var(--challenge-alert-shadow); }
    100% { box-shadow: 0 12px 35px rgba(220, 53, 69, 0.5); }
}

/* =============================================================================
   App-Shell: Sidebar + Hauptbereich (modernes Dashboard-Layout)
   ============================================================================= */

.app-shell {
    --app-shell-inset-x: 1rem;
    --app-shell-inset-top: 0.75rem;
    --app-shell-inset-bottom: 1rem;
    --app-shell-v-gap: calc(var(--app-shell-inset-top) + var(--app-shell-inset-bottom));
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    min-height: 100vh;
    width: 100%;
    margin: 0;
    /* Abstand zum Rand: Navigation wirkt wie freistehende Kachel */
    padding: var(--app-shell-inset-top) var(--app-shell-inset-x) var(--app-shell-inset-bottom);
    box-sizing: border-box;
}

/* Sidebar: Viewport-Höhe minus Shell-Padding; „schwebend“ mit Abstand zu allen Randkanten */
.app-sidebar {
    width: 268px;
    flex-shrink: 0;
    align-self: flex-start;
    display: flex;
    flex-direction: column;
    height: calc(100vh - var(--app-shell-v-gap));
    max-height: calc(100vh - var(--app-shell-v-gap));
    min-height: calc(100vh - var(--app-shell-v-gap));
    position: sticky;
    top: var(--app-shell-inset-top);
    background: var(--sidebar-gradient);
    padding: 1.25rem 1rem 1rem;
    margin: 0;
    border-radius: var(--radius-xl);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    overflow: hidden;
    z-index: 2;
}

/* Bildmarke als dezentes Gestaltungselement (ca. 10 % Deckkraft, stark vergrößert) */
.app-sidebar::before,
.app-offcanvas-nav::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background-image: url('/assets/logos/of_bildmarke_weiss.svg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 520% 520%;
    opacity: 0.1;
    pointer-events: none;
    z-index: 0;
}

@supports (height: 100dvh) {
    .app-sidebar {
        height: calc(100dvh - var(--app-shell-v-gap));
        max-height: calc(100dvh - var(--app-shell-v-gap));
        min-height: calc(100dvh - var(--app-shell-v-gap));
    }
}

/* Extrem viele Menüpunkte: mittlerer Bereich scrollt, CTA + Nutzer bleiben unten sichtbar */
.app-sidebar-inner {
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
}

.app-sidebar-nav {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.app-sidebar-brand-row {
    flex-shrink: 0;
    padding: 0.35rem 0.5rem 1rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.app-sidebar-brand {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0;
    margin: 0;
    border: 0;
}

.btn-dark-mode--sidebar {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.22);
    color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.btn-dark-mode--sidebar:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.35);
}

[data-theme="dark"] .btn-dark-mode--sidebar {
    background: rgba(255, 255, 255, 0.1);
    color: #fdba74;
}

.app-sidebar-logo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.app-sidebar-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.app-sidebar-brand-title {
    font-weight: var(--font-weight-extrabold);
    font-size: 1.2rem;
    color: #fff;
    letter-spacing: -0.02em;
}

.app-sidebar-brand-sub {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.75);
    font-weight: var(--font-weight-medium);
}

.app-nav-section {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.app-nav-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.55);
    padding: 0.5rem 0.75rem 0.35rem;
    font-weight: var(--font-weight-semibold);
}

.app-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.9rem;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    font-size: 0.95rem;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.app-nav-link i {
    width: 1.25rem;
    text-align: center;
    opacity: 0.9;
}

.app-nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.app-nav-link.active {
    background: #fff;
    color: #1c1917;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
}

.app-nav-link.active i {
    color: var(--accent);
    opacity: 1;
}

.app-nav-cta {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--accent-hover);
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.app-nav-cta:hover {
    transform: translateY(-1px);
    color: #7c2d12;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.15);
}

.app-sidebar-user {
    flex-shrink: 0;
    padding-top: 0.5rem;
}

.app-sidebar-user-btn {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.75rem;
    border: none;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.15);
    color: #fff;
    font-size: 0.9rem;
    text-align: left;
}

.app-sidebar-user-fallback {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.app-sidebar-user-name {
    flex: 1;
    min-width: 0;
}

.app-user-dropdown {
    border-radius: var(--border-radius);
    min-width: 220px;
}

.app-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - var(--app-shell-v-gap));
    position: relative;
}

/* Mobile: Footer-Leiste — Burger (Vollbild-Nav) + „Spiel eintragen“ (Desktop: Sidebar unverändert) */
.app-mobile-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1040;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    padding-bottom: calc(0.5rem + env(safe-area-inset-bottom, 0px));
    min-height: 56px;
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .app-mobile-footer {
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.45);
}

.app-mobile-footer__burger {
    flex-shrink: 0;
}

.app-mobile-footer__cta {
    flex: 1;
    min-width: 0;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Vollbild-Offcanvas (Navigation), außerhalb .app-shell eingebunden */
.app-offcanvas-nav {
    background: var(--sidebar-gradient);
    overflow: hidden;
}

/* Burger-Menü: gesamten Viewport nutzen (unabhängig von Bootstrap-Patchlevel) */
.app-offcanvas-nav.offcanvas-fullscreen {
    display: flex !important;
    flex-direction: column !important;
    width: 100vw !important;
    max-width: none !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: none !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    border-radius: 0 !important;
    border: none !important;
    box-sizing: border-box;
}

.app-offcanvas-nav.offcanvas-fullscreen::before {
    border-radius: 0;
}

.app-offcanvas-nav .offcanvas-header,
.app-offcanvas-nav .offcanvas-body {
    position: relative;
    z-index: 1;
}

.app-offcanvas-nav .app-offcanvas-body {
    min-height: 0;
    flex: 1 1 auto;
}

.app-offcanvas-nav .offcanvas-header {
    background: transparent;
    flex-shrink: 0;
    padding-top: max(0.75rem, env(safe-area-inset-top, 0px));
    padding-left: max(1rem, env(safe-area-inset-left, 0px));
    padding-right: max(1rem, env(safe-area-inset-right, 0px));
}

.app-offcanvas-nav.offcanvas-fullscreen .app-offcanvas-body {
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding-bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
    padding-left: max(0, env(safe-area-inset-left, 0px));
    padding-right: max(0, env(safe-area-inset-right, 0px));
}

/* Mobile-Menü: Abstand zu den Rändern (Navigation + Fußbereich CTA / Nutzer) */
.app-offcanvas-nav .app-sidebar-inner {
    padding-top: 0.35rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    padding-bottom: 0.85rem;
}

.app-offcanvas-nav .app-sidebar-brand-row {
    padding-left: 0;
    padding-right: 0;
}

.app-offcanvas-nav .app-nav-label {
    padding-left: 0.15rem;
    padding-right: 0.15rem;
}

.app-offcanvas-nav .app-nav-cta {
    margin-left: 0;
    margin-right: 0;
}

.app-offcanvas-nav .app-sidebar-user {
    padding-left: 0;
    padding-right: 0;
    padding-top: 0.85rem;
    padding-bottom: 0.35rem;
}

@media (max-width: 991.98px) {
    .app-body:not(.app-body--guest) .app-content {
        padding-top: 1.25rem;
    }

    .app-body:not(.app-body--guest) .app-main {
        padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px) + 0.5rem);
    }
}

.app-search-input {
    border-radius: 999px !important;
    padding-left: 2.75rem !important;
    border: 1px solid var(--border-color) !important;
    background: var(--input-bg) !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

.app-search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.85rem;
    pointer-events: none;
}

.app-btn-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--button-secondary-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.app-btn-icon:hover {
    background: var(--list-item-hover);
}

.app-content {
    flex: 1;
    padding: 1.25rem 1.25rem 2rem;
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
}

.app-content .card {
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.app-content .card:hover {
    box-shadow: 0 14px 48px rgba(0, 0, 0, 0.07);
}

.btn-dark-mode--toolbar {
    position: static;
    width: 44px;
    height: 44px;
    border-radius: 50%;
}

/* Weiße Bildmarke auf hellen Karten (Login etc.) */
.auth-of-logo-wrap {
    width: 112px;
    height: 112px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: linear-gradient(145deg, #fb923c, #ea580c, #c2410c);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(194, 65, 12, 0.35);
}

.auth-of-logo-wrap img {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

/* Gast-Layout (Registrierung etc.) */
.guest-topbar {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--box-shadow);
}

.guest-brand-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--sidebar-gradient);
    flex-shrink: 0;
}

.guest-brand-logo img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.guest-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.guest-brand-title {
    font-weight: var(--font-weight-extrabold);
    color: var(--heading-color);
    font-size: 1.1rem;
}

.guest-brand-sub {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.app-main-guest {
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

/* Gast-Startseite (page-welcome) */
.welcome-hero {
    position: relative;
    background: var(--card-bg);
    border-radius: var(--radius-xl);
}

.welcome-hero__accent {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 85% 55% at 100% 0%, rgba(251, 146, 60, 0.2), transparent 52%),
        radial-gradient(ellipse 55% 45% at 0% 100%, rgba(194, 65, 12, 0.1), transparent 48%);
    pointer-events: none;
    border-radius: inherit;
}

.welcome-hero .card-body {
    position: relative;
    z-index: 1;
}

.welcome-eyebrow {
    letter-spacing: 0.14em;
    font-weight: var(--font-weight-semibold);
    color: var(--accent);
}

.welcome-hero-title {
    font-family: 'Bebas Neue', Impact, system-ui, sans-serif;
    font-size: clamp(2.5rem, 7vw, 3.75rem);
    font-weight: var(--font-weight-regular);
    letter-spacing: 0.02em;
    line-height: 1.05;
    color: var(--heading-color);
}

.welcome-hero-lead {
    font-size: 1.05rem;
    line-height: 1.55;
    max-width: 38rem;
}

.welcome-hero-logo.auth-of-logo-wrap {
    width: 120px;
    height: 120px;
}

.welcome-stat-card {
    border-radius: var(--border-radius);
    background: var(--card-bg);
    transition: var(--transition);
}

.welcome-stat-card:hover {
    box-shadow: var(--box-shadow-hover);
    border-color: rgba(194, 65, 12, 0.22) !important;
}

.welcome-stat-num {
    font-family: 'Bebas Neue', Impact, system-ui, sans-serif;
    font-size: clamp(1.85rem, 4.5vw, 2.65rem);
    line-height: 1.1;
    color: var(--accent);
}

.welcome-feature-card {
    border-radius: var(--radius-xl);
    background: var(--card-bg);
    transition: var(--transition);
}

.welcome-feature-card:hover {
    box-shadow: var(--box-shadow-hover);
}

.welcome-feature-icon {
    color: var(--accent);
}

.welcome-cta__strip {
    border-radius: var(--radius-xl);
    background: var(--sidebar-gradient);
    box-shadow: 0 12px 40px rgba(194, 65, 12, 0.22);
}

.welcome-footer a:hover {
    color: var(--accent);
}

@media (max-width: 991.98px) {
    .app-sidebar.d-lg-flex {
        display: none !important;
    }
}

/* =============================================================================
   Spiel eintragen (page-game-create)
   ============================================================================= */

/* Breite wie Spiele-Übersicht: volle app-content-Breite (kein max-width) */

.game-create-lead {
    max-width: none;
}

.game-create-card {
    border-radius: var(--radius-xl, 1rem);
    background: var(--card-bg);
}

.game-create-side {
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--box-shadow);
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.game-create-side--yellow {
    background: linear-gradient(160deg, var(--gc-yellow, #ea580c) 0%, var(--gc-yellow-2, #fb923c) 100%);
    color: var(--gc-yellow-txt, #fff);
    border-color: rgba(255, 255, 255, 0.28);
}

.game-create-side--black {
    background: linear-gradient(160deg, #2d2d2d 0%, #1a1a1a 100%);
    color: #f8f9fa;
    border-color: rgba(255, 255, 255, 0.12);
}

.game-create-side-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.game-create-side--black .game-create-side-head {
    border-bottom-color: rgba(255, 255, 255, 0.12);
}

.game-create-side-dot {
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.15);
}

.game-create-side-dot--black {
    background: #fbbf24;
}

.game-create-side-body {
    padding: 1.15rem 1.1rem 1.25rem;
    flex: 1;
}

.game-create-side--yellow .form-label {
    color: rgba(255, 255, 255, 0.95);
}

.game-create-side--black .form-label {
    color: rgba(255, 255, 255, 0.92);
}

.game-create-select-yellow,
.game-create-goal-input--yellow {
    background-color: #fff !important;
    color: #111 !important;
    border-color: var(--gc-yellow, #ea580c) !important;
    border-radius: 0.65rem;
}

.game-create-select-yellow:focus,
.game-create-goal-input--yellow:focus {
    border-color: var(--gc-yellow-2, #fb923c) !important;
    box-shadow: 0 0 0 0.2rem rgba(234, 88, 12, 0.28) !important;
}

.game-create-select-yellow option {
    background: #fff;
    color: #111;
}

.game-create-select-black,
.game-create-goal-input--black {
    background-color: #3d4349 !important;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
    border-radius: 0.65rem;
}

.game-create-select-black:focus,
.game-create-goal-input--black:focus {
    border-color: rgba(255, 255, 255, 0.45) !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.12) !important;
}

.game-create-select-black option {
    background: #3d4349;
    color: #fff;
}

.game-create-goal-input {
    font-size: clamp(1.75rem, 5vw, 2.25rem);
    font-weight: 800;
    line-height: 1.1;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}

.game-create-vs-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    font-family: 'Bebas Neue', 'Impact', system-ui, sans-serif;
    font-size: 1.35rem;
    letter-spacing: 0.06em;
    color: var(--heading-color);
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    box-shadow: var(--box-shadow);
}

.game-create-vs-hint {
    max-width: 8rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.35;
}

.game-create-meta .form-control {
    border-radius: 0.65rem;
}

.game-create-winner {
    border-radius: 0.85rem;
}

.game-create-winner--yellow {
    background: linear-gradient(135deg, rgba(234, 88, 12, 0.12), var(--card-bg)) !important;
    color: var(--heading-color) !important;
    border: 1px solid rgba(234, 88, 12, 0.35) !important;
}

.game-create-winner--black {
    background: linear-gradient(135deg, #2d2d2d, #1e1e1e) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.game-create-winner-text {
    font-weight: 700;
    font-size: 1.1rem;
}

.game-create-quick {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.15rem 1rem 1.25rem;
    box-shadow: var(--box-shadow);
}

/* Beim Scrollen unter dem oberen Rand kleben (Schnellwahl griffbereit) */
.page-game-create .game-create-quick.game-create-quick--sticky {
    position: sticky;
    top: 0.75rem;
    z-index: 20;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .page-game-create .game-create-quick.game-create-quick--sticky {
    box-shadow: 0 14px 44px rgba(0, 0, 0, 0.4);
}

.game-create-quick-head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--heading-color);
}

.game-create-quick-icon {
    font-size: 1.1rem;
}

.game-create-quick-scroll {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.35rem;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.2rem;
    scrollbar-gutter: stable;
}

.game-create-quick-scroll::-webkit-scrollbar {
    height: 6px;
}

.game-create-quick-scroll::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

@media (min-width: 992px) {
    .game-create-quick-scroll {
        justify-content: center;
    }
}

.game-create-btn-yellow {
    min-width: 3.1rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.8rem;
    border: 2px solid transparent;
    background: linear-gradient(135deg, var(--gc-yellow, #ea580c), var(--gc-yellow-2, #fb923c));
    color: var(--gc-yellow-txt, #fff);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.game-create-btn-yellow:hover {
    color: var(--gc-yellow-txt, #fff);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.45);
}

.game-create-btn-black {
    min-width: 3.1rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.8rem;
    border: 2px solid #495057;
    background: linear-gradient(180deg, #495057, #343a40);
    color: #fff;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.game-create-btn-black:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(33, 37, 41, 0.35);
}

@media (max-width: 991.98px) {
    .game-create-vs-badge {
        width: 3.75rem;
        height: 3.75rem;
        font-size: 1.15rem;
    }
}

[data-theme="dark"] .page-game-create .game-create-meta .form-control {
    background: var(--input-bg);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .page-game-create .game-create-quick {
    background: var(--card-bg);
    border-color: var(--border-color);
}