:root {
    color-scheme: dark;
    --background: #0c0d12;
    --surface: #151720;
    --surface-raised: #1c1f2b;
    --text: #f5f6fa;
    --muted: #a7abba;
    --accent: #9147ff;
    --accent-hover: #a66bff;
    --success: #2ecc71;
    --danger: #ef5350;
    --border: #2b2e3a;
    --radius: 14px;
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.55;
}

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

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

button,
input,
textarea,
select {
    font: inherit;
}

.container {
    width: min(1180px, 92%);
    margin: 0 auto;
    padding: 32px 0 72px;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 70px;
    padding: 12px 4%;
    background: rgba(12, 13, 18, 0.92);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.brand-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    background: var(--accent);
    border-radius: 11px;
    box-shadow: 0 8px 24px rgba(145, 71, 255, 0.3);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.main-nav > a:not(.button) {
    color: var(--muted);
}

.main-nav > a:hover {
    color: var(--text);
}

.nav-toggle {
    display: none;
}

.user-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
}

.user-chip img {
    width: 30px;
    height: 30px;
    object-fit: cover;
    border-radius: 50%;
}

.button,
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 10px;
    padding: 11px 17px;
    background: var(--accent);
    color: #ffffff;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease;
}

.button:hover,
button:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.button-small {
    padding: 8px 13px;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 380px;
    margin-bottom: 28px;
    padding: clamp(34px, 7vw, 72px);
    background:
        radial-gradient(circle at 80% 20%, rgba(145, 71, 255, 0.34), transparent 35%),
        linear-gradient(135deg, #191c29, #171224);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.hero-content {
    max-width: 720px;
}

.eyebrow {
    color: #c9a9ff;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 800px;
    margin: 12px 0 16px;
    font-size: clamp(2.4rem, 7vw, 5rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.hero p {
    max-width: 660px;
    margin: 0 0 26px;
    color: #c5c8d3;
    font-size: 1.1rem;
}

.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 26px 0;
}

.search-form {
    display: flex;
    flex: 1;
    max-width: 520px;
    gap: 8px;
}

.search-form input {
    flex: 1;
}

.tabs {
    display: flex;
    gap: 8px;
}

.tabs a {
    padding: 9px 13px;
    background: var(--surface);
    color: var(--muted);
    border: 1px solid var(--border);
    border-radius: 9px;
}

.tabs a.active {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 20px;
}

.game-card {
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: transform 0.18s ease, border-color 0.18s ease;
}

.game-card:hover {
    transform: translateY(-4px);
    border-color: rgba(145, 71, 255, 0.65);
}

.game-card-image {
    position: relative;
}

.game-card-image img {
    width: 100%;
    aspect-ratio: 460 / 215;
    object-fit: cover;
}

.card-status-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 1;
    margin-left: 0;
}

.score-badge {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 6px 9px;
    background: rgba(10, 10, 14, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    font-weight: 900;
}

.game-card-body {
    padding: 18px;
}

.game-card h2 {
    margin: 0 0 8px;
    font-size: 1.18rem;
}

.game-card p {
    min-height: 68px;
    margin: 0 0 14px;
    color: var(--muted);
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.tag-list span {
    padding: 4px 8px;
    background: var(--surface-raised);
    color: #c4c7d3;
    border-radius: 999px;
    font-size: 0.78rem;
}

input,
textarea,
select {
    display: block;
    width: 100%;
    margin-top: 7px;
    padding: 12px;
    background: #10121a;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 9px;
}


.game-mode-selector {
    margin: 15px 0;
    padding: 0;
    border: 0;
}

.game-mode-selector legend {
    margin-bottom: 9px;
    font-weight: 700;
}

.game-mode-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.game-mode-option {
    margin: 0;
    cursor: pointer;
}

.game-mode-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.game-mode-option span {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    background: var(--surface-raised);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 9px;
    font-weight: 900;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.game-mode-option:hover span {
    border-color: var(--accent);
    transform: translateY(-1px);
}

.game-mode-option input:focus-visible + span {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.game-mode-option input:checked + span {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
}

.game-mode-tags {
    margin-top: 10px;
}

textarea {
    min-height: 140px;
    resize: vertical;
}

label {
    display: block;
    margin: 15px 0;
    font-weight: 700;
}

.form-card,
.comment,
.empty-state {
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.form-card {
    max-width: 760px;
    margin: 30px auto;
}

.empty-state {
    text-align: center;
}

.flash {
    margin: 12px 0;
    padding: 13px 16px;
    border-radius: 10px;
}

.flash.success {
    background: #173c2a;
}

.flash.error {
    background: #512424;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 28px;
}

.pagination a {
    min-width: 38px;
    padding: 8px 11px;
    text-align: center;
    background: var(--surface);
    border-radius: 7px;
}

.pagination a.active {
    background: var(--accent);
}

.site-footer {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 28px;
    color: var(--muted);
    border-top: 1px solid var(--border);
}

@media (max-width: 860px) {
    .toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .search-form {
        max-width: none;
    }

    .tabs {
        overflow-x: auto;
    }
}

@media (max-width: 720px) {
    .nav-toggle {
        display: inline-flex;
        width: 42px;
        padding: 9px;
    }

    .main-nav {
        position: absolute;
        top: 70px;
        right: 4%;
        display: none;
        min-width: 230px;
        padding: 16px;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 12px;
        box-shadow: var(--shadow);
    }

    .main-nav.open {
        display: flex;
        align-items: stretch;
        flex-direction: column;
    }

    .hero {
        min-height: auto;
        padding: 34px 25px;
    }

    .hero h1 {
        font-size: clamp(2.3rem, 13vw, 4rem);
    }

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

/* Vollflächiges Seitenlayout */
html,
body {
    min-height: 100%;
    background: var(--background);
}

body {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

main.container {
    flex: 1 0 auto;
}

.site-footer {
    flex-shrink: 0;
    background: var(--background);
}

/* Spiel-Detailseite */
.back-button {
    gap: 8px;
    margin-bottom: 34px;
    padding-inline: 22px;
}

.game-showcase {
    display: grid;
    grid-template-columns: minmax(280px, 0.85fr) minmax(420px, 1.45fr);
    align-items: center;
    gap: clamp(36px, 7vw, 90px);
}

.game-information {
    min-width: 0;
}

.game-cover {
    width: min(100%, 460px);
    max-height: 310px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: var(--shadow);
}

.game-score {
    display: inline-flex;
    margin-top: 12px;
    padding: 6px 14px;
    background: #ffffff;
    color: #11131a;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 950;
    text-transform: uppercase;
}

.game-title-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    margin-top: 8px;
}

.game-title-row h1 {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    line-height: 1.1;
}

.game-price {
    flex-shrink: 0;
    font-size: 1.15rem;
    white-space: nowrap;
}

.game-description {
    margin: 24px 0 0;
    color: #d5d8e2;
}

.game-meta {
    margin-top: 20px;
}

.streamer-comment {
    margin: 24px 0 0;
    padding: 16px 18px;
    background: var(--surface);
    border-left: 4px solid var(--accent);
    border-radius: 0 10px 10px 0;
}

.steam-client-button {
    margin-top: 30px;
}

.media-carousel {
    position: relative;
    min-width: 0;
    padding: 34px 58px 58px;
}

.carousel-stage {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    display: grid;
    visibility: hidden;
    place-items: center;
    opacity: 0;
    transform: scale(0.94);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
}

.carousel-slide.active {
    visibility: visible;
    z-index: 2;
    opacity: 1;
    transform: scale(1);
}

.carousel-slide img,
.carousel-slide video,
.media-zoom {
    width: 100%;
    height: 100%;
}

.carousel-slide img,
.carousel-slide video {
    object-fit: contain;
    background: #08090d;
    border: 5px solid #ffffff;
    border-radius: 8px;
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.42);
}

.media-zoom {
    display: block;
    padding: 0;
    background: transparent;
    border-radius: 8px;
    cursor: zoom-in;
}

.media-zoom:hover {
    background: transparent;
    transform: none;
}

.carousel-arrow,
.lightbox-arrow {
    position: absolute;
    z-index: 4;
    top: 50%;
    width: 40px;
    height: 40px;
    padding: 0;
    background: transparent;
    color: #ffffff;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    transform: translateY(-50%);
}

.carousel-arrow:hover,
.lightbox-arrow:hover {
    background: transparent;
    color: var(--accent-hover);
    transform: translateY(-50%) scale(1.06);
}

.carousel-arrow-left {
    left: 0;
}

.carousel-arrow-right {
    right: 0;
}

.carousel-dots {
    position: absolute;
    right: 0;
    bottom: 14px;
    left: 0;
    z-index: 4;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.carousel-dot {
    width: 14px;
    height: 14px;
    padding: 0;
    background: #e8e8eb;
    border-radius: 50%;
}

.carousel-dot:hover {
    background: #ffffff;
    transform: scale(1.1);
}

.carousel-dot.active {
    width: 22px;
    height: 22px;
    background: var(--accent);
}

.community-section {
    width: min(820px, 100%);
    margin: 58px auto 0;
}

.community-section h2 {
    text-align: center;
}

.comment-list {
    display: grid;
    gap: 14px;
}

.comment-card {
    padding: 18px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.comment-card p {
    margin: 12px 0 0;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 11px;
}

.comment-author img,
.comment-avatar-placeholder {
    display: grid;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    place-items: center;
    object-fit: cover;
    background: var(--accent);
    color: #ffffff;
    border-radius: 50%;
    font-weight: 900;
}

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

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr) 70px;
    align-items: center;
    padding: 70px 24px 30px;
    background: rgba(3, 4, 8, 0.94);
    backdrop-filter: blur(8px);
}

.lightbox[hidden] {
    display: none;
}

.lightbox-content {
    display: grid;
    max-width: 1500px;
    max-height: calc(100vh - 100px);
    margin: auto;
    place-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: calc(100vh - 100px);
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.7);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    left: 22px;
    z-index: 5;
    width: 46px;
    height: 46px;
    padding: 0;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    font-size: 2rem;
}

.lightbox-arrow {
    position: relative;
    top: auto;
    transform: none;
}

.lightbox-arrow:hover {
    transform: scale(1.06);
}

.lightbox-arrow-left {
    justify-self: start;
}

.lightbox-arrow-right {
    justify-self: end;
}

body.lightbox-open {
    overflow: hidden;
}

@media (max-width: 900px) {
    .game-showcase {
        grid-template-columns: 1fr;
    }

    .game-information {
        max-width: 650px;
        margin: 0 auto;
    }

    .media-carousel {
        width: 100%;
        max-width: 820px;
        margin: 0 auto;
    }
}

@media (max-width: 600px) {
    .game-title-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .media-carousel {
        padding: 18px 34px 50px;
    }

    .carousel-arrow {
        width: 34px;
        font-size: 3rem;
    }

    .lightbox {
        grid-template-columns: 42px minmax(0, 1fr) 42px;
        padding-inline: 8px;
    }

    .lightbox-arrow {
        width: 38px;
        font-size: 3rem;
    }
}

/* --------------------------------------------------------------------------
   Rumathra Games – überarbeitete Spiel-Detailseite
   -------------------------------------------------------------------------- */

.back-button {
    gap: 9px;
    margin-bottom: 26px;
    padding: 10px 22px;
    border-radius: 9px;
    box-shadow: 0 10px 30px rgba(82, 0, 204, 0.24);
}

.game-detail-layout {
    display: grid;
    grid-template-columns: minmax(320px, 0.72fr) minmax(560px, 1.45fr);
    align-items: stretch;
    gap: 20px;
}

.game-information-panel,
.media-carousel {
    overflow: hidden;
    min-width: 0;
    background:
        linear-gradient(145deg, rgba(23, 26, 37, 0.98), rgba(12, 14, 21, 0.98));
    border: 1px solid #464954;
    border-radius: 9px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.game-information-panel {
    display: flex;
    flex-direction: column;
}

.game-cover {
    width: 100%;
    max-width: none;
    height: auto;
    max-height: none;
    aspect-ratio: 460 / 215;
    object-fit: cover;
    image-rendering: auto;
    border-radius: 0;
    box-shadow: none;
}

.game-information-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 14px 18px 17px;
}

.game-score {
    align-self: flex-start;
    margin: -4px 0 5px;
    padding: 4px 12px;
    background: linear-gradient(135deg, #6d15dd, #9147ff);
    color: #fff;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 900;
    line-height: 1.2;
}

.game-information-content h1 {
    margin: 0;
    font-size: clamp(1.85rem, 2.2vw, 2.55rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.game-price {
    display: block;
    margin-top: 4px;
    font-size: clamp(1.3rem, 1.8vw, 1.7rem);
    line-height: 1.2;
}

.game-description {
    margin: 12px 0 0;
    color: #e1e3ea;
    font-size: 0.92rem;
    line-height: 1.55;
}

.game-facts {
    display: grid;
    gap: 8px;
    margin: 18px 0 0;
}

.game-facts > div {
    display: grid;
    grid-template-columns: minmax(120px, 0.8fr) minmax(0, 1.35fr);
    gap: 14px;
    align-items: baseline;
}

.game-facts dt,
.game-facts dd {
    margin: 0;
    font-size: 0.86rem;
}

.game-facts dt {
    color: #d8dae2;
}

.game-facts dd {
    color: #f2f3f7;
}

.fact-highlight {
    color: #55d4ff !important;
    font-weight: 800;
}

.streamer-comment {
    margin-top: 17px;
}

.steam-client-button {
    align-self: flex-start;
    gap: 9px;
    margin-top: auto;
    padding: 10px 16px;
}

.steam-client-hint {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.76rem;
}

.media-carousel {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 0;
}

.carousel-stage {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #07080c;
    border-bottom: 1px solid #464954;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    display: grid;
    visibility: hidden;
    place-items: center;
    opacity: 0;
    transform: scale(1.015);
    transition: opacity 0.24s ease, transform 0.34s ease, visibility 0.24s;
}

.carousel-slide.active {
    visibility: visible;
    z-index: 2;
    opacity: 1;
    transform: scale(1);
}

.carousel-slide img,
.carousel-slide video,
.media-zoom {
    width: 100%;
    height: 100%;
}

.carousel-slide img,
.carousel-slide video {
    object-fit: cover;
    background: #07080c;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.media-zoom {
    display: block;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    cursor: zoom-in;
}

.media-zoom:hover {
    background: transparent;
    transform: none;
}

.carousel-arrow {
    position: absolute;
    z-index: 5;
    top: 50%;
    width: 50px;
    height: 62px;
    padding: 0;
    background: rgba(9, 11, 18, 0.72);
    color: #fff;
    border-radius: 999px;
    font-size: 3.7rem;
    font-weight: 700;
    line-height: 0.8;
    backdrop-filter: blur(6px);
    transform: translateY(-50%);
}

.carousel-arrow:hover {
    background: rgba(24, 27, 39, 0.92);
    color: #fff;
    transform: translateY(-50%) scale(1.05);
}

.carousel-arrow-left {
    left: 14px;
}

.carousel-arrow-right {
    right: 14px;
}

.carousel-thumbnails {
    display: flex;
    flex: 0 0 auto;
    gap: 7px;
    overflow-x: auto;
    padding: 8px 10px 7px;
    scrollbar-color: #555867 transparent;
    scrollbar-width: thin;
}

.carousel-thumbnail {
    overflow: hidden;
    width: clamp(105px, 14vw, 150px);
    min-width: clamp(105px, 14vw, 150px);
    aspect-ratio: 16 / 9;
    padding: 0;
    background: #090a0f;
    color: #fff;
    border: 1px solid #464954;
    border-radius: 5px;
    opacity: 0.78;
    transition: opacity 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.carousel-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-thumbnail:hover {
    background: #090a0f;
    border-color: #797d8d;
    opacity: 1;
    transform: translateY(-1px);
}

.carousel-thumbnail.active {
    border: 2px solid var(--accent);
    opacity: 1;
}

.carousel-dots {
    position: static;
    display: flex;
    min-height: 56px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 17px;
    padding: 9px 16px 13px;
}

.carousel-dot {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
    padding: 0;
    background: #f1f1f3;
    border-radius: 50%;
    box-shadow: none;
    transform-origin: center bottom;
}

.carousel-dot:hover {
    background: #fff;
    transform: scale(1.08);
}

.carousel-dot.active {
    width: 25px;
    height: 25px;
    background: #6500cf;
    transform: translateY(-5px);
}

.community-section {
    width: min(920px, 100%);
    margin: 30px auto 0;
}

.community-section h2 {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 12px;
    font-size: clamp(1.35rem, 2vw, 1.7rem);
    text-align: center;
}

.community-section h2::before,
.community-section h2::after {
    height: 1px;
    flex: 1;
    content: '';
    background: linear-gradient(to var(--line-direction, right), transparent, #7015d9);
}

.community-section h2::after {
    --line-direction: left;
}

.community-section h2 span {
    flex-shrink: 0;
}

.comment-list {
    display: grid;
    gap: 7px;
}

.comment-card {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 11px 16px;
    background: linear-gradient(135deg, rgba(25, 28, 40, 0.98), rgba(20, 22, 32, 0.98));
    border: 1px solid #3b3e49;
    border-radius: 9px;
}

.comment-avatar {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    object-fit: cover;
    background: var(--accent);
    color: #fff;
    border: 1px solid #5c606e;
    border-radius: 50%;
    font-weight: 900;
}

.comment-content {
    min-width: 0;
}

.comment-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.comment-heading time {
    flex-shrink: 0;
    color: #d0d2db;
    font-size: 0.73rem;
}

.comment-card p {
    margin: 5px 0 0;
    color: #f0f1f5;
    font-size: 0.9rem;
}

@media (max-width: 1050px) {
    .game-detail-layout {
        grid-template-columns: minmax(280px, 0.78fr) minmax(460px, 1.22fr);
    }

    .game-facts > div {
        grid-template-columns: 105px minmax(0, 1fr);
    }
}

@media (max-width: 860px) {
    .game-detail-layout {
        grid-template-columns: 1fr;
    }

    .game-information-panel,
    .media-carousel {
        width: min(760px, 100%);
        margin-inline: auto;
    }
}

@media (max-width: 600px) {
    .game-information-content {
        padding: 14px;
    }

    .game-facts > div {
        grid-template-columns: 1fr;
        gap: 1px;
    }

    .game-facts dt {
        color: var(--muted);
        font-size: 0.75rem;
    }

    .carousel-arrow {
        width: 42px;
        height: 52px;
        font-size: 3rem;
    }

    .carousel-arrow-left {
        left: 7px;
    }

    .carousel-arrow-right {
        right: 7px;
    }

    .carousel-thumbnail {
        width: 100px;
        min-width: 100px;
    }

    .carousel-dots {
        min-height: 48px;
        gap: 12px;
    }

    .carousel-dot.active {
        width: 21px;
        height: 21px;
        transform: translateY(-4px);
    }

    .comment-card {
        grid-template-columns: 44px minmax(0, 1fr);
        padding: 11px;
    }

    .comment-avatar {
        width: 44px;
        height: 44px;
    }

    .comment-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 1px;
    }
}

/* --------------------------------------------------------------------------
   Rumathras Choice and shared toolbar additions
   -------------------------------------------------------------------------- */

.choice-heading {
    max-width: 760px;
    margin: 18px 0 34px;
}

.choice-heading h1 {
    margin: 10px 0 12px;
    font-size: clamp(2.2rem, 5vw, 4.3rem);
    line-height: 1;
    letter-spacing: -0.045em;
}

.choice-heading p {
    max-width: 680px;
    margin: 0;
    color: var(--muted);
    font-size: 1.05rem;
}

.toolbar-primary {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    gap: 10px;
}

.toolbar-primary .search-form {
    min-width: 0;
    margin: 0;
}

.submit-game-button {
    flex: 0 0 auto;
    white-space: nowrap;
}

.search-button {
    flex: 0 0 52px;
    width: 52px;
    min-height: 46px;
    padding: 0;
}

.search-button svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

@media (max-width: 860px) {
    .choice-heading {
        margin-bottom: 24px;
    }

    .toolbar-primary {
        width: 100%;
        flex-wrap: wrap;
    }

    .toolbar-primary .search-form {
        max-width: none;
        flex-basis: 100%;
        order: 2;
    }

    .submit-game-button {
        order: 1;
    }
}

/* --------------------------------------------------------------------------
   Uniform toolbar control heights
   -------------------------------------------------------------------------- */

.toolbar {
    --toolbar-control-height: 52px;
}

.toolbar-primary,
.toolbar-primary .search-form,
.tabs {
    align-items: stretch;
}

.toolbar .submit-game-button,
.toolbar .search-form input,
.toolbar .search-button,
.toolbar .tabs a {
    box-sizing: border-box;
    height: var(--toolbar-control-height);
    min-height: var(--toolbar-control-height);
}

.toolbar .submit-game-button,
.toolbar .tabs a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-top: 0;
    padding-bottom: 0;
    line-height: 1;
}

.toolbar .search-form input {
    padding-top: 0;
    padding-bottom: 0;
}

.toolbar .search-button {
    flex-basis: var(--toolbar-control-height);
    width: var(--toolbar-control-height);
}

@media (max-width: 860px) {
    .toolbar .submit-game-button,
    .toolbar .search-form input,
    .toolbar .search-button,
    .toolbar .tabs a {
        height: 48px;
        min-height: 48px;
    }

    .toolbar .search-button {
        flex-basis: 48px;
        width: 48px;
    }
}

/* --------------------------------------------------------------------------
   Toolbar alignment fix
   The search field is the visual reference for every toolbar control.
   -------------------------------------------------------------------------- */

.toolbar {
    --toolbar-control-height: 50px;
}

.toolbar-primary,
.toolbar-primary .search-form,
.toolbar .tabs {
    align-items: center;
}

.toolbar .search-form {
    min-height: var(--toolbar-control-height);
}

.toolbar .search-form input,
.toolbar .submit-game-button,
.toolbar .search-button,
.toolbar .tabs a {
    box-sizing: border-box;
    height: var(--toolbar-control-height);
    min-height: var(--toolbar-control-height);
    margin-top: 0;
    margin-bottom: 0;
    border-radius: 10px;
}

.toolbar .search-form input {
    appearance: none;
    padding: 0 14px;
    line-height: normal;
}

.toolbar .submit-game-button,
.toolbar .tabs a {
    padding: 0 16px;
    line-height: 1;
}

.toolbar .search-button {
    flex: 0 0 var(--toolbar-control-height);
    width: var(--toolbar-control-height);
    padding: 0;
}

@media (max-width: 860px) {
    .toolbar {
        --toolbar-control-height: 48px;
    }
}

/* --------------------------------------------------------------------------
   Globaler Rumathra-Games-Header
   -------------------------------------------------------------------------- */

.sr-only {
    position: absolute;
    overflow: hidden;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    white-space: nowrap;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 11, 16, 0.96);
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(18px);
}

.site-header-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    width: min(1480px, 96%);
    min-height: 72px;
    margin: 0 auto;
    gap: clamp(22px, 3vw, 46px);
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    min-width: max-content;
    color: #f7f7fb;
    font-size: 1.08rem;
    font-weight: 900;
    letter-spacing: -0.025em;
    text-transform: uppercase;
}

.site-brand strong {
    color: #a868ff;
}

.site-brand-mark {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    background: linear-gradient(145deg, #a45bff, #6d16d5);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(145, 71, 255, 0.3);
}

.site-brand-mark svg {
    width: 25px;
    height: 25px;
    fill: #15111d;
}

.site-navigation {
    display: flex;
    align-items: center;
    gap: clamp(16px, 2.2vw, 34px);
}

.site-navigation > a:not(.header-submit-button) {
    position: relative;
    padding: 25px 0 23px;
    color: #d7d8df;
    font-size: 0.94rem;
    font-weight: 700;
    white-space: nowrap;
}

.site-navigation > a:not(.header-submit-button)::after {
    position: absolute;
    right: 0;
    bottom: 15px;
    left: 0;
    height: 2px;
    content: '';
    background: var(--accent);
    border-radius: 99px;
    opacity: 0;
    transform: scaleX(0.35);
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.site-navigation > a:hover,
.site-navigation > a.active {
    color: #fff;
}

.site-navigation > a:hover::after,
.site-navigation > a.active::after {
    opacity: 1;
    transform: scaleX(1);
}

.header-submit-button,
.header-login-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 18px;
    background: linear-gradient(135deg, #a05bff, #7b2ee8);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9px;
    box-shadow: 0 10px 24px rgba(111, 26, 214, 0.25);
    font-size: 0.91rem;
    font-weight: 850;
    white-space: nowrap;
}

.header-submit-button:hover,
.header-login-button:hover {
    background: linear-gradient(135deg, #ad72ff, #8a42ee);
    transform: translateY(-1px);
}

.site-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
}

.header-search {
    display: flex;
    align-items: stretch;
    width: clamp(210px, 22vw, 330px);
    height: 42px;
    margin: 0;
    background: #151720;
    border: 1px solid #373a46;
    border-radius: 9px;
}

.header-search:focus-within {
    border-color: rgba(145, 71, 255, 0.85);
    box-shadow: 0 0 0 3px rgba(145, 71, 255, 0.13);
}

.header-search input {
    min-width: 0;
    height: 100%;
    margin: 0;
    padding: 0 13px;
    background: transparent;
    border: 0;
    border-radius: 9px 0 0 9px;
    outline: 0;
    font-size: 0.88rem;
}

.header-search button {
    display: grid;
    width: 44px;
    height: 100%;
    flex: 0 0 44px;
    padding: 0;
    place-items: center;
    background: #20232d;
    border-left: 1px solid #373a46;
    border-radius: 0 8px 8px 0;
}

.header-search button:hover {
    background: #292d39;
    transform: none;
}

.header-search svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.header-user-menu {
    position: relative;
}

.header-user-menu summary {
    display: flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    list-style: none;
}

.header-user-menu summary::-webkit-details-marker {
    display: none;
}

.header-user-menu summary img,
.header-user-placeholder {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    object-fit: cover;
    background: #252834;
    border: 2px solid #4b4e5b;
    border-radius: 50%;
    font-weight: 900;
}

.header-user-chevron {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: #d3d5dd;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.16s ease;
}

.header-user-menu[open] .header-user-chevron {
    transform: rotate(180deg);
}

.header-user-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    display: grid;
    min-width: 190px;
    padding: 10px;
    background: #171923;
    border: 1px solid #343744;
    border-radius: 10px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.42);
}

.header-user-dropdown strong,
.header-user-dropdown a {
    padding: 9px 10px;
    border-radius: 7px;
}

.header-user-dropdown strong {
    color: #fff;
}

.header-user-dropdown a {
    color: #c9ccd6;
}

.header-user-dropdown a:hover {
    background: #222531;
    color: #fff;
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 9px;
    background: #1d202a;
}

.nav-toggle span {
    display: block;
    width: 21px;
    height: 2px;
    margin: 4px auto;
    background: #fff;
    border-radius: 99px;
}

/* SVG-Pfeile für Galerie und Lightbox */
.carousel-arrow,
.lightbox-arrow {
    display: grid;
    width: 48px;
    height: 48px;
    padding: 0;
    place-items: center;
    line-height: 0;
}

.carousel-arrow-icon {
    display: block;
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 3;
    stroke-linecap: square;
    stroke-linejoin: miter;
}

@media (max-width: 1180px) {
    .site-header-inner {
        grid-template-columns: auto auto minmax(0, 1fr);
    }

    .site-navigation {
        position: absolute;
        top: calc(100% + 1px);
        right: 2%;
        left: 2%;
        display: none;
        align-items: stretch;
        flex-direction: column;
        gap: 4px;
        padding: 14px;
        background: #141620;
        border: 1px solid #343744;
        border-radius: 0 0 12px 12px;
        box-shadow: 0 22px 44px rgba(0, 0, 0, 0.4);
    }

    .site-navigation.open {
        display: flex;
    }

    .site-navigation > a:not(.header-submit-button) {
        padding: 11px 13px;
        border-radius: 8px;
    }

    .site-navigation > a:not(.header-submit-button)::after {
        display: none;
    }

    .header-submit-button {
        width: 100%;
    }

    .nav-toggle {
        display: inline-block;
        order: 3;
    }

    .site-header-actions {
        justify-self: end;
    }
}

@media (max-width: 760px) {
    .site-header-inner {
        grid-template-columns: auto auto;
        min-height: 64px;
    }

    .site-brand-text {
        font-size: 0.92rem;
    }

    .site-header-actions {
        grid-column: 1 / -1;
        width: 100%;
        padding-bottom: 10px;
    }

    .header-search {
        width: 100%;
    }

    .header-login-button {
        flex: 0 0 auto;
    }
}

@media (max-width: 520px) {
    .site-brand-text {
        display: none;
    }

    .header-login-button {
        padding-inline: 12px;
        font-size: 0.78rem;
    }
}


/* --------------------------------------------------------------------------
   Zentrierte Filterleiste auf Rumathras Choice
   -------------------------------------------------------------------------- */

.choice-filter-bar {
    display: flex;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 32px;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.choice-filter-bar a {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    white-space: nowrap;
}

@media (max-width: 520px) {
    .choice-filter-bar {
        width: 100%;
    }

    .choice-filter-bar a {
        flex: 1 1 auto;
    }
}

/* --------------------------------------------------------------------------
   Score- und Statusanzeige auf der Spiel-Detailseite
   -------------------------------------------------------------------------- */

.game-badge-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 30px;
    margin: -4px 0 5px;
}

.game-badge-row .game-score {
    margin: 0;
}

.game-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    padding: 5px 12px;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 900;
    line-height: 1.2;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.2);
}

.game-status-considering {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
}

.game-status-planned {
    background: linear-gradient(135deg, #c48100, #f0ad00);
    color: #17120a;
    border-color: rgba(255, 222, 128, 0.55);
}

.game-status-playing {
    background: rgba(34, 197, 94, 0.16);
    border-color: rgba(34, 197, 94, 0.55);
    color: #86efac;
}

.game-status-played {
    background: linear-gradient(135deg, #168447, #2ecc71);
}

.game-status-rated {
    background: linear-gradient(135deg, #6d15dd, #9147ff);
}

.game-status-rejected {
    background: linear-gradient(135deg, #b4232b, #ef5350);
}

.game-status-unknown {
    background: linear-gradient(135deg, #555a67, #747986);
}

@media (max-width: 420px) {
    .game-badge-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    .game-status {
        margin-left: 0;
    }
}

.youtube-player {
    aspect-ratio: 16 / 9;
    background: #07080c;
}

.youtube-player iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Spielnavigation und Admin-Schnellbearbeitung */
.game-page-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 26px;
}

.game-page-navigation .back-button {
    margin-bottom: 0;
}

.game-sibling-navigation {
    display: flex;
    gap: 10px;
}

.game-navigation-button {
    gap: 8px;
    padding: 10px 16px;
}

.game-navigation-button.disabled {
    cursor: default;
    opacity: 0.35;
    pointer-events: none;
}

.quick-edit-control {
    position: relative;
}

.quick-edit-status-control {
    margin-left: auto;
}

button.quick-edit-trigger {
    border: 0;
    cursor: pointer;
    font-family: inherit;
}

button.game-score.quick-edit-trigger,
button.game-status.quick-edit-trigger {
    margin-top: 0;
}

.quick-edit-popover {
    position: absolute;
    z-index: 40;
    top: calc(100% + 9px);
    left: 0;
    display: grid;
    width: min(260px, 75vw);
    gap: 10px;
    padding: 14px;
    background: #151822;
    border: 1px solid #515562;
    border-radius: 9px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
}

.quick-edit-popover[hidden] {
    display: none;
}

.quick-edit-status-popover {
    right: 0;
    left: auto;
}

.quick-edit-popover label {
    margin: 0;
    color: #f4f5f8;
    font-size: 0.82rem;
    font-weight: 800;
}

.quick-edit-popover input[type="range"] {
    width: 100%;
    accent-color: var(--accent);
}

.quick-edit-popover select {
    width: 100%;
}

.quick-edit-popover .button {
    justify-self: end;
}

/* Gewünschter zusätzlicher Abstand oberhalb des Steam-Buttons, ohne die Panel-Ausrichtung zu verändern. */
.steam-button-spacer {
    flex: 1 0 18px;
    min-height: 18px;
}

.game-information-content .steam-client-button {
    margin-top: 0;
}

.game-status-pending {
    background: linear-gradient(135deg, #555a67, #747986);
}

@media (max-width: 760px) {
    .game-page-navigation {
        align-items: stretch;
        flex-direction: column;
    }

    .game-sibling-navigation {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .game-navigation-button {
        text-align: center;
    }
}

/* --------------------------------------------------------------------------
   Adminbereich: Sidebar, Tabellen und Userprofile
   -------------------------------------------------------------------------- */
.admin-shell {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 26px;
    align-items: start;
}

.admin-sidebar {
    position: sticky;
    top: 104px;
    overflow: hidden;
    background: #151822;
    border: 1px solid #303440;
    border-radius: 12px;
}

.admin-sidebar-title {
    padding: 18px 20px;
    color: #fff;
    border-bottom: 1px solid #303440;
    font-size: 1rem;
    font-weight: 900;
}

.admin-sidebar nav {
    display: grid;
    padding: 8px;
    gap: 4px;
}

.admin-sidebar a {
    padding: 12px 14px;
    color: #bec1cb;
    border-radius: 8px;
    font-weight: 800;
    text-decoration: none;
}

.admin-sidebar a:hover,
.admin-sidebar a.active {
    color: #fff;
    background: rgba(145, 71, 255, 0.2);
}

.admin-content { min-width: 0; }
.admin-page-heading,
.admin-profile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.admin-page-heading h1,
.admin-profile-header h1 { margin: 3px 0 0; }
.admin-total-count { color: #aeb2bf; font-weight: 800; }

.admin-tabs {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    margin-bottom: 18px;
    padding-bottom: 3px;
}

.admin-tabs a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 13px;
    color: #bfc2cc;
    background: #151822;
    border: 1px solid #303440;
    border-radius: 8px;
    font-size: .84rem;
    font-weight: 850;
    text-decoration: none;
    white-space: nowrap;
}

.admin-tabs a.active,
.admin-tabs a:hover { color: #fff; border-color: #9147ff; }
.admin-tabs a span {
    min-width: 24px;
    padding: 2px 7px;
    text-align: center;
    background: rgba(255,255,255,.08);
    border-radius: 999px;
    font-size: .74rem;
}

.admin-table-wrap { border-radius: 12px; }
.admin-table { width: 100%; }
.admin-table th { white-space: nowrap; }
.admin-table td { vertical-align: middle; }
.admin-table tr.is-banned { opacity: .68; }
.admin-empty-cell { padding: 42px !important; text-align: center; color: #9da1ad; }

.admin-game-cell,
.admin-user-cell {
    display: flex;
    align-items: center;
    gap: 11px;
    color: #fff;
    text-decoration: none;
}

.admin-game-cell img {
    width: 72px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 6px;
}

.admin-user-cell img,
.admin-user-cell > span,
.admin-profile-header > img,
.admin-profile-header > span {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    object-fit: cover;
    color: #fff;
    background: #9147ff;
    border-radius: 50%;
    font-weight: 900;
}

.admin-profile-header > img,
.admin-profile-header > span { width: 72px; height: 72px; }
.admin-profile-header > div { margin-right: auto; }
.admin-profile-header p { margin: 5px 0 0; color: #aeb2bf; }

.admin-inline-form { margin: 0; }
.admin-inline-form select { min-width: 125px; margin: 0; }
.admin-count-link {
    display: inline-flex;
    min-width: 34px;
    justify-content: center;
    padding: 6px 9px;
    color: #fff;
    background: rgba(145,71,255,.18);
    border-radius: 7px;
    font-weight: 900;
    text-decoration: none;
}

.admin-user-status {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 900;
    text-transform: uppercase;
}
.admin-user-status.active { color: #72e59e; background: rgba(46,204,113,.14); }
.admin-user-status.banned { color: #ff8b8f; background: rgba(239,83,80,.14); }

.admin-row-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.admin-row-actions form { margin: 0; }
.button-small { min-height: 34px; padding: 7px 11px; font-size: .76rem; }
.danger-outline { color: #ff8b8f; background: transparent; border: 1px solid rgba(239,83,80,.55); }
.muted { color: #8f93a0; font-size: .82rem; }

.admin-profile-list { display: grid; gap: 12px; }
.admin-profile-entry {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px;
    background: #151822;
    border: 1px solid #303440;
    border-radius: 10px;
}
.admin-profile-entry > img { width: 120px; aspect-ratio: 16/9; object-fit: cover; border-radius: 7px; }
.admin-profile-entry > div { flex: 1; min-width: 0; }
.admin-profile-entry h2 { margin: 0 0 5px; font-size: 1rem; }
.admin-profile-entry h2 a { color: #fff; text-decoration: none; }
.admin-profile-entry p { margin: 0; color: #aeb2bf; }
.admin-comment-entry { align-items: flex-start; }
.admin-comment-entry p { color: #e7e8ed; line-height: 1.65; }
.admin-comment-entry small { display: block; margin-top: 8px; color: #898e9b; }

@media (max-width: 900px) {
    .admin-shell { grid-template-columns: 1fr; }
    .admin-sidebar { position: static; }
    .admin-sidebar nav { display: flex; overflow-x: auto; }
    .admin-sidebar a { white-space: nowrap; }
}

/* Update 3: Einreicher, Streamerkommentar und Kommentar-Aktionen */
.game-submitters {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,.08);
}
.game-submitters-label {
    display: block;
    margin-bottom: 10px;
    color: #9297a5;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.game-submitter-avatars { display: flex; flex-wrap: wrap; gap: 8px; }
.game-submitter,
.game-submitter img,
.game-submitter-placeholder {
    width: 34px;
    height: 34px;
    border-radius: 50%;
}
.game-submitter { display: inline-flex; border: 2px solid rgba(255,255,255,.12); box-shadow: 0 5px 14px rgba(0,0,0,.25); }
.game-submitter img { display: block; object-fit: cover; }
.game-submitter-placeholder { display: grid; place-items: center; background: #302650; color: #fff; font-weight: 800; }

.streamer-comment-section { margin-top: 22px; }
.streamer-comment-card {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 14px;
    padding: 16px;
    border: 1px solid rgba(153, 86, 255, .25);
    border-radius: 12px;
    background: rgba(112, 54, 184, .12);
    color: inherit;
    text-align: left;
    font: inherit;
}
.streamer-comment-card.is-editable { cursor: pointer; }
.streamer-comment-card.is-editable:hover { border-color: rgba(177, 113, 255, .58); }
.streamer-comment-card > span:last-child { display: grid; gap: 6px; line-height: 1.55; }
.streamer-comment-card strong { color: #c89cff; }
.streamer-comment-avatar {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 50%;
    object-fit: cover;
}
.streamer-comment-avatar-placeholder { display: grid; place-items: center; background: #6e36a8; color: #fff; font-weight: 900; }
.streamer-comment-add { margin-top: 2px; }

.inline-editor {
    margin-top: 12px;
    padding: 16px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 12px;
    background: rgba(12, 13, 19, .72);
}
.inline-editor label { display: block; margin-bottom: 8px; font-weight: 800; }
.inline-editor textarea {
    width: 100%;
    resize: vertical;
    min-height: 110px;
    padding: 12px 14px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 9px;
    background: #111219;
    color: #fff;
    font: inherit;
}
.inline-editor-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 10px; }
.button-secondary { background: rgba(255,255,255,.07); }

.comment-card.own-comment { border-color: rgba(153, 86, 255, .38); }
.comment-heading > div:first-child { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.own-comment-label {
    padding: 3px 7px;
    border-radius: 999px;
    background: rgba(153, 86, 255, .16);
    color: #bf94ff;
    font-size: .68rem;
    font-weight: 800;
    text-transform: uppercase;
}
.comment-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.comment-actions form { margin: 0; }
.icon-action {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 8px;
    background: rgba(255,255,255,.04);
    color: #c9ccd5;
    cursor: pointer;
}
.icon-action:hover { background: rgba(255,255,255,.1); color: #fff; }
.icon-action.danger-icon:hover { border-color: rgba(255,82,108,.45); background: rgba(255,82,108,.12); color: #ff7087; }
.icon-action svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.comment-inline-editor { margin-top: 14px; }
.comment-compose { margin-top: 24px; }
.comment-create-form { max-width: 760px; }

@media (max-width: 680px) {
    .comment-heading { align-items: flex-start; }
    .comment-actions { width: 100%; margin: 8px 0 0; }
}


.header-logout-form { margin: 0; }
.header-logout-form button {
    width: 100%;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    padding: 0;
}

/* Moderations-Logs */
.moderation-main-tabs { margin-bottom: 14px; }
.moderation-log-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 18px;
}
.moderation-log-filters a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 13px;
    color: #bfc2cc;
    background: #151822;
    border: 1px solid #303440;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 850;
    text-decoration: none;
}
.moderation-log-filters a:hover,
.moderation-log-filters a.active {
    color: #fff;
    border-color: #9147ff;
    background: rgba(145, 71, 255, .12);
}
.moderation-log-filters span { color: #9da1ad; }
.moderation-log-list { display: grid; gap: 12px; }
.moderation-log-entry {
    display: grid;
    grid-template-columns: minmax(180px, .7fr) minmax(260px, 1.5fr) auto;
    align-items: center;
    gap: 18px;
    padding: 16px;
    background: #151822;
    border: 1px solid #2d313d;
    border-radius: 12px;
}
.moderation-log-entry.moderator-log {
    background: linear-gradient(135deg, rgba(35, 134, 84, .28), rgba(18, 52, 37, .94));
    border-color: rgba(72, 199, 116, .62);
    box-shadow: inset 4px 0 0 #48c774;
}
.moderation-log-entry.moderator-log:hover { border-color: #69db98; }
.moderation-log-actor {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}
.moderation-log-actor img,
.moderation-log-actor > span {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 50%;
    object-fit: cover;
}
.moderation-log-actor > span {
    display: grid;
    place-items: center;
    background: #292d38;
    font-weight: 900;
}
.moderation-log-actor strong,
.moderation-log-actor small { display: block; }
.moderation-log-actor strong {
    overflow: hidden;
    color: #fff;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.moderation-log-actor small { margin-top: 2px; color: #9da1ad; }
.moderation-log-description { color: #d7d9e0; line-height: 1.45; }
.moderation-log-description time {
    display: block;
    margin-top: 5px;
    color: #9297a5;
    font-size: .78rem;
    font-weight: 750;
}
.moderation-log-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
}
.moderation-log-actions form { margin: 0; }
.moderation-log-empty {
    padding: 38px 20px;
    color: #9da1ad;
    text-align: center;
    background: #151822;
    border: 1px solid #2d313d;
    border-radius: 12px;
}
.moderation-log-entry[data-log-detail] {
    cursor: pointer;
    transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.moderation-log-entry[data-log-detail]:hover,
.moderation-log-entry[data-log-detail]:focus-visible {
    border-color: rgba(145, 71, 255, .68);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .2);
    outline: none;
    transform: translateY(-1px);
}
@media (max-width: 900px) {
    .moderation-log-entry { grid-template-columns: 1fr; gap: 12px; }
    .moderation-log-actions { justify-content: flex-start; }
}

.header-submit-button-restricted,
.header-submit-button-restricted:hover {
    background: linear-gradient(135deg, #dc3545, #9f1f2d);
    border-color: rgba(255, 112, 126, .48);
    box-shadow: 0 10px 24px rgba(159, 31, 45, .28);
    color: #fff;
    cursor: not-allowed;
    transform: none;
}


.moderation-log-entry.profanity-log {
    border-color: rgba(255, 196, 61, .72);
    background: linear-gradient(135deg, rgba(104, 76, 10, .72), rgba(48, 37, 12, .94));
    box-shadow: inset 4px 0 0 #ffc43d;
}
.moderation-log-entry.profanity-log:hover { border-color: #ffd36f; }

.moderation-log-entry.security-log {
    border-color: rgba(255, 76, 96, .72);
    background: linear-gradient(135deg, rgba(112, 18, 30, .72), rgba(50, 12, 19, .92));
    box-shadow: inset 4px 0 0 #ff4c60;
}
.moderation-log-entry.security-log:hover { border-color: #ff7180; }
.moderation-log-security-details { display: grid; gap: .65rem; margin: 1rem 0; }
.moderation-log-security-details div { display: grid; grid-template-columns: minmax(90px, 130px) 1fr; gap: .75rem; }
.moderation-log-security-details dt { color: var(--muted); font-weight: 700; }
.moderation-log-security-details dd { margin: 0; overflow-wrap: anywhere; }



/* Website-interne Bestätigung für Moderationsaktionen */
body.confirmation-modal-open {
    overflow: hidden;
}

.confirmation-modal[hidden] {
    display: none;
}

.confirmation-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
    padding: 20px;
}

.confirmation-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 6, 10, .82);
    backdrop-filter: blur(5px);
}

.confirmation-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 460px);
    padding: 26px;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 18px;
    background: #15161d;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .55);
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 16px;
}

.confirmation-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    border: 0;
    background: transparent;
    color: #9296a3;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.confirmation-modal-close:hover {
    color: #fff;
}

.confirmation-modal-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(239, 68, 68, .14);
    border: 1px solid rgba(239, 68, 68, .36);
    color: #ff6b6b;
    font-size: 24px;
    font-weight: 800;
}

.confirmation-modal-copy h2 {
    margin: 2px 34px 8px 0;
    font-size: 21px;
}

.confirmation-modal-copy p {
    margin: 0;
    color: #b9bdc8;
    line-height: 1.55;
}

.confirmation-modal-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 8px;
}

@media (max-width: 520px) {
    .confirmation-modal-dialog {
        grid-template-columns: 40px 1fr;
        padding: 22px 18px 18px;
    }

    .confirmation-modal-icon {
        width: 40px;
        height: 40px;
    }

    .confirmation-modal-actions {
        flex-direction: column-reverse;
    }

    .confirmation-modal-actions .button,
    .confirmation-modal-actions .danger {
        width: 100%;
    }
}


/* Detailansicht für Moderationslogs */
.log-detail-modal[hidden] {
    display: none;
}

.log-detail-modal {
    position: fixed;
    inset: 0;
    z-index: 10020;
    display: grid;
    place-items: center;
    padding: 20px;
}

.log-detail-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 6, 10, .86);
    backdrop-filter: blur(5px);
}

.log-detail-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 720px);
    max-height: min(84vh, 760px);
    overflow: auto;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 18px;
    background: #15161d;
    box-shadow: 0 24px 90px rgba(0, 0, 0, .62);
}

.log-detail-modal-close {
    position: absolute;
    top: 12px;
    right: 15px;
    border: 0;
    background: transparent;
    color: #9296a3;
    font-size: 30px;
    cursor: pointer;
}

.log-detail-modal-close:hover {
    color: #fff;
}

.log-detail-modal-dialog h3 {
    margin: 0 42px 22px 0;
    font-size: 22px;
}

.log-detail-modal-dialog dl {
    display: grid;
    gap: 10px;
    margin: 0;
}

.log-detail-modal-dialog dl > div {
    display: grid;
    grid-template-columns: minmax(130px, 180px) 1fr;
    gap: 14px;
    padding: 12px 14px;
    border: 1px solid #2d313d;
    border-radius: 10px;
    background: #101219;
}

.log-detail-modal-dialog dt {
    color: #8f94a2;
}

.log-detail-modal-dialog dd {
    margin: 0;
    color: #f4f5f7;
    overflow-wrap: anywhere;
}

.moderation-log-comment-compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 18px;
}

.moderation-log-comment-compare > div,
.moderation-log-comment-single {
    padding: 16px;
    border: 1px solid #2d313d;
    border-radius: 12px;
    background: #101219;
}

.moderation-log-comment-compare strong,
.moderation-log-comment-single strong {
    display: block;
    margin-bottom: 9px;
}

.moderation-log-comment-compare p,
.moderation-log-comment-single p {
    margin: 0;
    color: #c7cad3;
    line-height: 1.55;
    white-space: normal;
    overflow-wrap: anywhere;
}

.log-detail-modal-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 22px;
}

body.log-detail-modal-open {
    overflow: hidden;
}

@media (max-width: 640px) {
    .log-detail-modal-dialog {
        padding: 24px 18px 18px;
    }

    .log-detail-modal-dialog dl > div,
    .moderation-log-comment-compare {
        grid-template-columns: 1fr;
    }
}


.game-moderation-actions {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.game-moderation-actions form {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

/* Rechtliche Seiten und Footer */
.site-footer {
    display: block;
    padding: 0;
}

.site-footer-inner {
    display: grid;
    width: min(1180px, 92%);
    margin: 0 auto;
    padding: 28px 0;
    grid-template-columns: minmax(180px, 0.8fr) minmax(280px, 1.4fr);
    align-items: start;
    gap: 18px 32px;
}

.site-footer-copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.site-footer-copy strong {
    color: var(--text);
}

.site-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px 18px;
}

.site-footer-links a {
    color: var(--muted);
    font-weight: 750;
}

.site-footer-links a:hover,
.site-footer-links a:focus-visible {
    color: var(--text);
}

.site-footer-notice {
    margin: 0;
    grid-column: 1 / -1;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.55;
    text-align: center;
}

.legal-page {
    width: min(920px, 100%);
    margin: 0 auto;
    padding: 18px 0 42px;
}

.legal-page-header {
    margin-bottom: 24px;
    padding: clamp(24px, 5vw, 48px);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.legal-page-header h1 {
    margin: 8px 0 10px;
    font-size: clamp(2.1rem, 7vw, 4rem);
    line-height: 1;
}

.legal-page-header p {
    max-width: 720px;
    margin: 0;
    color: var(--muted);
    font-size: 1.02rem;
}

.legal-content {
    display: grid;
    gap: 14px;
}

.legal-section {
    padding: clamp(22px, 4vw, 34px);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
}

.legal-section h2 {
    margin: 0 0 14px;
    font-size: 1.25rem;
}

.legal-section h3 {
    margin: 22px 0 8px;
    font-size: 1rem;
}

.legal-section p,
.legal-section address,
.legal-section li {
    line-height: 1.72;
}

.legal-section p,
.legal-section address {
    margin: 0 0 14px;
}

.legal-section p:last-child,
.legal-section address:last-child {
    margin-bottom: 0;
}

.legal-section address {
    color: inherit;
    font-style: normal;
}

.legal-section ul {
    margin: 0 0 14px;
    padding-left: 22px;
}

.legal-section a {
    color: #b89aff;
    text-decoration: underline;
    text-decoration-color: rgba(184, 154, 255, 0.42);
    text-underline-offset: 3px;
}

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

.legal-section code {
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    border-radius: 5px;
}

@media (max-width: 720px) {
    .site-footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .site-footer-links {
        justify-content: center;
    }

    .site-footer-notice {
        grid-column: auto;
    }

    .legal-page {
        padding-top: 8px;
    }
}
