body {
    font-family: 'Segoe UI', Arial, sans-serif;
    text-align: center;
    margin: 0;
    background: radial-gradient(ellipse at 50% 0%, #1b5e20 0%, #0d2e0d 60%, #060f06 100%);
    min-height: 100vh;
}

/* ── Maintenance Banner ──────────────────────────────────────────────────── */
#maintenanceBanner {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 9999;
    background: #b71c1c;
    color: #fff;
    text-align: center;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* ── Pre-Game Window Banner ─────────────────────────────────────────────── */
#preGameBanner {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 9998;
    background: #1565c0;
    color: #fff;
    text-align: center;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* ── Turn-Timer ──────────────────────────────────────────────────────────── */
#turnTimer {
    position: fixed;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 15px;
    font-weight: bold;
    z-index: 200;
    pointer-events: none;
}
#turnTimer.timer-ok      { background: rgba(76,175,80,0.85); color: #fff; }
#turnTimer.timer-warning { background: rgba(255,152,0,0.9);  color: #fff; }
#turnTimer.timer-urgent  { background: rgba(211,47,47,0.95); color: #fff; animation: timerPulse 0.5s infinite alternate; }
@keyframes timerPulse { from { opacity: 1; } to { opacity: 0.6; } }

/* ── Landing Page ────────────────────────────────────────────────────────── */
#landingScreen {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    color: white;
}

.landing-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 40px;
    background: rgba(0,0,0,0.3);
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.landing-brand {
    font-size: 20px;
    font-weight: 800;
    color: #aed581;
    letter-spacing: 0.01em;
}

.landing-header-actions {
    display: flex;
    gap: 10px;
}

.landing-login-btn {
    background: transparent;
    color: rgba(255,255,255,0.8);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 8px;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.landing-login-btn:hover { background: rgba(255,255,255,0.08); color: white; }

.landing-register-btn {
    background: linear-gradient(135deg, #388e3c, #2e7d32);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}
.landing-register-btn:hover { opacity: 0.85; }

.landing-hero {
    padding: 90px 20px 70px;
    text-align: center;
}

.landing-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #aed581;
    margin: 0 0 20px;
    letter-spacing: -0.01em;
}

.landing-tagline {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.7);
    max-width: 520px;
    margin: 0 auto 44px;
    line-height: 1.65;
}

.landing-cta {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.landing-cta-btn {
    padding: 14px 34px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}
.landing-cta-btn.primary {
    background: linear-gradient(135deg, #388e3c, #2e7d32);
    color: white;
    box-shadow: 0 4px 20px rgba(56,142,60,0.4);
}
.landing-cta-btn.secondary {
    background: rgba(255,255,255,0.08);
    color: #aed581;
    border: 1px solid rgba(174,213,129,0.3);
}
.landing-cta-btn:hover { opacity: 0.85; transform: translateY(-1px); }

.landing-section {
    padding: 50px 24px 40px;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.landing-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #aed581;
    text-align: center;
    margin: 0 0 8px;
}

.landing-section-sub {
    text-align: center;
    color: rgba(255,255,255,0.45);
    font-size: 14px;
    margin: 0 0 28px;
}

/* Live table grid on landing */
.landing-table-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 14px;
    margin-top: 12px;
}

.landing-table-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    padding: 18px 16px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}
.landing-table-card:hover {
    background: rgba(255,255,255,0.09);
    border-color: rgba(174,213,129,0.35);
    transform: translateY(-2px);
}

.landing-table-cat {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}

.landing-table-name {
    font-size: 15px;
    font-weight: 600;
    color: white;
    margin-bottom: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.landing-table-slots {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.lslot {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 20px;
}
.lslot.filled {
    background: rgba(76,175,80,0.2);
    color: #a5d6a7;
    border: 1px solid rgba(76,175,80,0.3);
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.lslot.empty {
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.35);
    border: 1px solid rgba(255,255,255,0.1);
}

.landing-table-waiting {
    font-size: 11px;
    color: rgba(255,152,0,0.8);
    margin-top: 8px;
}

.landing-loading, .landing-no-tables {
    text-align: center;
    color: rgba(255,255,255,0.4);
    padding: 40px 20px;
    grid-column: 1/-1;
}
.landing-no-tables a { color: #aed581; }

/* Features */
.landing-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 12px;
}

.landing-feature {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 28px 24px;
    text-align: left;
}

.landing-feature-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.landing-feature-title {
    font-size: 16px;
    font-weight: 700;
    color: #aed581;
    margin-bottom: 8px;
}

.landing-feature-text {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    line-height: 1.6;
}

/* Footer CTA */
.landing-footer-cta {
    text-align: center;
    padding: 50px 20px 30px;
    margin-top: auto;
}
.landing-footer-cta p {
    color: rgba(255,255,255,0.5);
    margin: 0 0 20px;
    font-size: 14px;
}

.landing-footer {
    display: flex;
    justify-content: center;
    gap: 24px;
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.07);
}
.landing-footer a {
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}
.landing-footer a:hover { color: rgba(255,255,255,0.75); }

/* ── Auth-Screen (Login / Register Modal) ─────────────────────────────────── */
#authScreen {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 300;
}

#authScreen[data-modal="1"] {
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
}

.auth-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.45);
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
}
.auth-modal-close:hover { color: white; background: rgba(255,255,255,0.1); }

.auth-box { position: relative; }

.auth-box {
    background: linear-gradient(160deg, rgba(15,35,15,0.97), rgba(5,18,5,0.98));
    border: 1px solid rgba(76,175,80,0.25);
    border-radius: 20px;
    padding: 40px 48px;
    min-width: 340px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.65);
    color: white;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-logo {
    font-size: 22px;
    font-weight: 700;
    color: #aed581;
    letter-spacing: 0.02em;
    margin-bottom: 4px;
}

.auth-tabs {
    display: flex;
    gap: 0;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(76,175,80,0.25);
}

.auth-tab {
    flex: 1;
    padding: 10px;
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.auth-tab.active {
    background: rgba(76,175,80,0.2);
    color: #aed581;
}

#loginForm, #registerForm {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.auth-box input {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    color: white;
    padding: 11px 14px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.auth-box input:focus {
    border-color: rgba(76,175,80,0.6);
}

.auth-box input::placeholder { color: rgba(255,255,255,0.3); }

.auth-box button {
    background: linear-gradient(135deg, #388e3c, #2e7d32);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 4px;
    transition: opacity 0.2s;
}

.auth-box button:hover { opacity: 0.88; }

.auth-error {
    color: #ef9a9a;
    font-size: 13px;
    min-height: 18px;
    margin: 0;
}

/* ── Tisch-Vorraum ───────────────────────────────────────────────────────── */
#tableRoomScreen {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(160deg, rgba(15,35,15,0.97), rgba(5,18,5,0.98));
    border: 1px solid rgba(76,175,80,0.25);
    color: white;
    padding: 30px 40px;
    border-radius: 18px;
    z-index: 200;
    min-width: 320px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

#tableRoomScreen h3 {
    margin-top: 0;
    font-size: 20px;
    color: #aed581;
}

#tableRoomScreen p {
    font-size: 14px;
    color: #ccc;
    margin: 10px 0;
}

.waiting-slots {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 16px 0;
}

.waiting-slot {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
}

.waiting-slot.filled {
    background: rgba(76,175,80,0.18);
    border: 1px solid rgba(76,175,80,0.35);
    color: #c8e6c9;
}

.waiting-slot.empty {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.3);
}

.waiting-status {
    font-size: 13px;
    color: #aed581;
    margin: 8px 0 14px;
}

#tableRoomReady {
    background: linear-gradient(135deg, #388e3c, #2e7d32);
    color: white;
    border: none;
    padding: 12px 36px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 8px;
    transition: opacity 0.2s;
}

#tableRoomReady:hover { opacity: 0.85; }

.table-room-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 6px;
}

.waiting-limit-panel {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    margin-top: 12px;
    font-size: 13px;
    color: #aed581;
}

.waiting-limit-panel input {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    color: white;
    padding: 4px 8px;
    font-size: 13px;
}

/* ── Warteliste-Panel (linke Seite) ──────────────────────────────────────── */
.waiting-queue-panel {
    position: fixed;
    left: 12px;
    bottom: 180px;
    display: flex;
    flex-direction: column-reverse;
    gap: 6px;
    background: rgba(0,0,0,0.55);
    border: 1px solid rgba(76,175,80,0.2);
    border-radius: 12px;
    padding: 10px 8px;
    max-height: calc(100vh - 160px);
    overflow-y: auto;
    z-index: 10;
}

.waiting-queue-panel::-webkit-scrollbar { width: 3px; }
.waiting-queue-panel::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius:2px; }

.wq-section-label {
    font-size: 9px;
    font-weight: 700;
    color: rgba(174,213,129,0.5);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    text-align: center;
    padding: 2px 0;
}

.wq-divider {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.08);
    margin: 2px 0;
}

.wq-avatar {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    cursor: default;
}

.wq-avatar-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.15);
    flex-shrink: 0;
}

.wq-avatar-circle.wq-waiting { border-color: rgba(174,213,129,0.5); }
.wq-avatar-circle.wq-spectator { border-color: rgba(100,181,246,0.4); opacity: 0.75; }

.wq-avatar-name {
    font-size: 9px;
    color: rgba(255,255,255,0.6);
    max-width: 44px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
}

.wq-pos-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: rgba(174,213,129,0.85);
    color: #1a2e1a;
    border-radius: 50%;
    width: 14px;
    height: 14px;
    font-size: 8px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

#sitButton {
    padding: 10px 28px;
    font-size: 16px;
    background-color: rgba(100, 200, 100, 0.8);
    border: none;
    border-radius: 7px;
    cursor: pointer;
    margin-top: 8px;
}

#sitButton:hover:not(:disabled) {
    background-color: rgba(80, 180, 80, 0.95);
}

#sitButton:disabled {
    opacity: 0.6;
    cursor: default;
}

/* ── Lobby-Screen ────────────────────────────────────────────────────────── */
#lobbyScreen {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    background: linear-gradient(160deg, #0f2010 0%, #07150a 100%);
    color: white;
    z-index: 200;
    overflow: hidden;
}

.lobby-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 28px;
    background: rgba(0, 0, 0, 0.45);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.lobby-brand {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #c8e6c9;
}

.lobby-welcome {
    font-size: 14px;
    color: #a5d6a7;
}

.logout-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.5);
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}
.logout-btn:hover {
    border-color: rgba(255,255,255,0.4);
    color: rgba(255,255,255,0.8);
}

.lobby-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 16px 24px 0;
}

.lobby-footer {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    gap: 24px;
    padding: 12px 24px;
    border-top: 1px solid rgba(255,255,255,0.07);
}

.lobby-footer a {
    color: rgba(255,255,255,0.35);
    text-decoration: none;
    font-size: 12px;
}

.lobby-footer a:hover {
    color: rgba(255,255,255,0.65);
}

/* Cookie-Banner */
#cookieBanner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1e1e3a;
    border-top: 1px solid rgba(255,255,255,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 14px 24px;
    z-index: 9999;
    flex-wrap: wrap;
}

.cookie-text {
    color: rgba(255,255,255,0.75);
    font-size: 13px;
    line-height: 1.5;
}

.cookie-text a {
    color: #7986cb;
    margin-left: 6px;
}

.cookie-btn {
    background: #3f51b5;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 20px;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}

.cookie-btn:hover {
    background: #5c6bc0;
}

/* Category tabs */
.category-tabs {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 7px 18px;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    color: #ccc;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.13);
    color: white;
}

.tab-btn.active {
    background: rgba(76, 175, 80, 0.35);
    border-color: #4caf50;
    color: #a5d6a7;
    font-weight: 600;
}

/* Table grid */
.table-grid {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-content: flex-start;
    padding-bottom: 10px;
}

.table-grid::-webkit-scrollbar {
    width: 5px;
}
.table-grid::-webkit-scrollbar-track { background: transparent; }
.table-grid::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 3px; }

/* Table cards */
.table-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.07), rgba(255,255,255,0.03));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px 18px;
    width: 200px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: border-color 0.2s, transform 0.15s;
}

.table-card:hover {
    border-color: rgba(76, 175, 80, 0.5);
    transform: translateY(-2px);
}

.table-card-header {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.table-card-name {
    font-size: 14px;
    font-weight: 600;
    color: #e8f5e9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Category badges */
.cat-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.4px;
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    align-self: flex-start;
}

.cat-FREIES_SPIEL  { background: rgba(100, 181, 246, 0.25); color: #90caf9; border: 1px solid rgba(100,181,246,0.3); }
.cat-QUALIFIKATION { background: rgba(255, 213, 79, 0.2);   color: #ffd54f; border: 1px solid rgba(255,213,79,0.3);  }
.cat-LIGA_2        { background: rgba(239, 154, 154, 0.2);  color: #ef9a9a; border: 1px solid rgba(239,154,154,0.3); }
.cat-LIGA_1        { background: rgba(206, 147, 216, 0.25); color: #ce93d8; border: 1px solid rgba(206,147,216,0.3); }
.cat-VEREIN        { background: rgba(174, 213, 129, 0.2);  color: #aed581; border: 1px solid rgba(174,213,129,0.3); }

/* Club table badge */
.club-table-badge {
    display: inline-block;
    font-size: 11px;
    color: #aed581;
    background: rgba(174,213,129,0.12);
    border: 1px solid rgba(174,213,129,0.25);
    border-radius: 5px;
    padding: 1px 7px;
    margin-left: 7px;
    text-decoration: none;
    vertical-align: middle;
    line-height: 1.6;
}
.club-table-badge:hover { background: rgba(174,213,129,0.25); text-decoration: none; }

/* Player slots */
.player-slots {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.player-slot {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 6px;
}

.player-slot.filled {
    background: rgba(76, 175, 80, 0.15);
    color: #c8e6c9;
    border: 1px solid rgba(76, 175, 80, 0.25);
}

.player-slot.empty {
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.3);
    border: 1px dashed rgba(255, 255, 255, 0.12);
}

.slot-icon {
    font-size: 14px;
    line-height: 1;
}

/* Card footer */
.table-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 2px;
}

.table-status {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
}

.join-btn {
    padding: 5px 14px;
    font-size: 12px;
    background: rgba(76, 175, 80, 0.6);
    border: 1px solid rgba(76, 175, 80, 0.5);
    border-radius: 6px;
    color: white;
    cursor: pointer;
    transition: background 0.15s;
}

.join-btn:hover {
    background: rgba(76, 175, 80, 0.85);
}

.join-btn.waitlist {
    background: rgba(255, 167, 38, 0.35);
    border-color: rgba(255, 167, 38, 0.4);
    color: #ffcc80;
}

.join-btn.waitlist:hover {
    background: rgba(255, 167, 38, 0.55);
}

/* Create table bar */
.create-table-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 0 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    flex-shrink: 0;
    flex-wrap: wrap;
}

.create-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
    white-space: nowrap;
}

#newTableName {
    padding: 7px 10px;
    font-size: 13px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.08);
    color: white;
    flex: 1;
    min-width: 120px;
}

#newTableName::placeholder { color: rgba(255,255,255,0.3); }
#newTableName:focus { outline: none; border-color: rgba(76,175,80,0.5); }

#newTableCategory {
    padding: 7px 10px;
    font-size: 13px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(30,50,30,0.9);
    color: white;
    cursor: pointer;
}

.create-table-bar button {
    padding: 7px 16px;
    font-size: 13px;
    background: rgba(100, 160, 255, 0.5);
    border: 1px solid rgba(100, 160, 255, 0.4);
    border-radius: 6px;
    color: white;
    cursor: pointer;
    white-space: nowrap;
}

.create-table-bar button:hover {
    background: rgba(100, 160, 255, 0.7);
}

#joinScreen h2 {
    margin-top: 0;
    font-size: 26px;
    color: #c8e6c9;
    letter-spacing: 0.5px;
}

#playerNameInput {
    padding: 11px 14px;
    font-size: 16px;
    border-radius: 8px;
    border: 1px solid rgba(76, 175, 80, 0.4);
    background: rgba(255, 255, 255, 0.08);
    color: white;
    width: 210px;
}

#playerNameInput::placeholder { color: rgba(255,255,255,0.35); }
#playerNameInput:focus { outline: none; border-color: #4caf50; }

#joinScreen button {
    padding: 11px 32px;
    font-size: 16px;
    background: linear-gradient(135deg, #2e7d32, #388e3c);
    border: 1px solid rgba(76,175,80,0.5);
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: background 0.15s;
}

#joinScreen button:hover {
    background: linear-gradient(135deg, #388e3c, #43a047);
}

#waitingText {
    margin-top: 16px;
    font-size: 14px;
    color: #a5d6a7;
    min-height: 20px;
}

#hand {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    max-width: 100%;
    align-self: center;
}

#hand img {
    position: relative;
    z-index: 1;
    width: min(6vw, 80px);
    height: min(9vw, 120px);
    max-width: 85px;
    max-height: 128px;
    cursor: pointer;
    border: 2px solid #ccc;
    border-radius: 5px;
    /* clip the overlapped right edge so cards behind don't show through */
    clip-path: inset(0 22px 0 0 round 5px 0 0 5px);
}

#hand img ~ img {
    margin-left: -22px;
}

/* last card and hovered card show fully */
#hand img:last-child {
    clip-path: none;
}

#hand img:hover {
    transform: translateY(-14px);
    z-index: 10;
    clip-path: none;
    box-shadow: 0 6px 18px rgba(0,0,0,0.55);
    border-color: #4fc3f7;
}

/* ── Spieltisch (Trick + Avatare integriert) ─────────────────────────────── */
#trick {
    position: fixed;
    top: calc(50% - 85px);
    left: 50%;
    transform: translate(-50%, -50%);
    display: grid;
    grid-template-areas:
        ". top ."
        "left . right"
        ". bottom .";
    grid-template-columns: auto 70px auto;
    grid-template-rows: auto 50px auto;
    align-items: center;
    justify-items: center;
    z-index: 10;
}

/* Each player slot */
.tslot {
    display: flex;
    align-items: center;
}

.tslot-top    { grid-area: top;    flex-direction: column; align-items: center; }
.tslot-left   { grid-area: left;   flex-direction: row;    align-items: center; }
.tslot-right  { grid-area: right;  flex-direction: row;    align-items: center; }
.tslot-bottom { grid-area: bottom; flex-direction: column; align-items: center; }

/* Avatar info box */
.tslot-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    padding: 8px 12px;
    color: white;
    gap: 2px;
    min-width: 64px;
    z-index: 2;
    position: relative;
}

.player-icon { font-size: 26px; line-height: 1; }

.player-name {
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    color: rgba(255,255,255,0.9);
}
.player-name:hover { color: #aed581; text-decoration: underline; }

/* Card area within each slot – gap between avatar and card */
.tslot-card {
    width: 88px;
    height: 132px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Gap between avatar and card: 10px for vertical, 10px for horizontal */
.tslot-top    .tslot-info { margin-bottom: 8px; }
.tslot-bottom .tslot-info { margin-top: 8px; }
.tslot-left   .tslot-info { margin-right: 8px; }
.tslot-right  .tslot-info { margin-left: 8px; }

/* Trick card images */
.tslot-card img {
    width: 86px;
    height: 130px;
    border: 2px solid #ccc;
    border-radius: 5px;
    display: block;
}

/* Re/Kontra-Badge */
.call-badge {
    display: none;
    font-size: 10px;
    font-weight: bold;
    color: #fff176;
    background: rgba(0,0,0,0.5);
    border-radius: 4px;
    padding: 1px 5px;
    margin-top: 2px;
    white-space: nowrap;
}
.call-badge:not(:empty) { display: inline-block; }

/* Won-trick stacks */
.trick-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    pointer-events: none;
    min-width: 95px;
    min-height: 38px;
}

/* Stack positioning per slot */
.tslot-top    .trick-stack { margin-bottom: 6px; justify-content: center; }
.tslot-bottom .trick-stack { margin-top: 6px; justify-content: center; }
.tslot-left   .trick-stack { margin-right: 6px; flex-direction: column; }
.tslot-right  .trick-stack { margin-left: 6px; flex-direction: column; }

#lastTrick {
    position: fixed;
    right: 20px;
    top: 20px;
    display: flex;
    flex-wrap: nowrap;
    gap: 5px;
}

#lastTrick div {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* #trick img sizing is handled by .tslot-card img above */

#lastTrick img {
    width: 5vw;
    height: 7.5vw;
    max-width: 75px;
    max-height: 112px;
    border: 2px solid #ccc;
    border-radius: 5px;
}

#statusIndicator {
    position: fixed;
    top: 10px;
    left: 10px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ccc;
    transition: background-color 0.3s;
}

#statusText {
    position: fixed;
    top: 10px;
    left: 30px;
    background: rgba(255, 255, 255, 0.7);
    padding: 5px;
    border-radius: 5px;
    font-size: 12px;
}

#buttons {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: rgba(255, 255, 255, 0.7);
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: rgba(200, 200, 200, 0.7);
}

#modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 999;
}

#modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(160deg, #0f2010 0%, #07150a 100%);
    border: 1px solid rgba(76, 175, 80, 0.25);
    border-radius: 16px;
    z-index: 1000;
    min-width: 340px;
    max-width: min(640px, 98vw);
    width: 92%;
    max-height: 88vh;
    color: white;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.75);
    overflow: hidden;
    text-align: left;
    flex-direction: column;
}

#modal-header {
    padding: 14px 22px;
    background: rgba(0, 0, 0, 0.35);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #a5d6a7;
    flex-shrink: 0;
}

#modal-content {
    padding: 20px 22px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

#modal-content::-webkit-scrollbar { width: 4px; }
#modal-content::-webkit-scrollbar-track { background: transparent; }
#modal-content::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 2px; }

#modal-footer {
    padding: 14px 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-shrink: 0;
}

/* ── Auswertungs-Inhalt ──────────────────────────────────────────────────── */
.eval-winner {
    font-size: 26px;
    font-weight: 800;
    text-align: center;
    padding: 10px 0 18px;
    letter-spacing: 0.5px;
}
.eval-winner.re     { color: #81c784; }
.eval-winner.kontra { color: #ff8a65; }
.eval-winner.none   { color: #90a4ae; }

.eval-parties {
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 14px;
    font-size: 13px;
    color: #e0e0e0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.party-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 8px;
    border-radius: 10px;
    margin-right: 6px;
    text-transform: uppercase;
}
.party-tag.re { background: rgba(76, 175, 80, 0.3); color: #a5d6a7; }
.party-tag.ko { background: rgba(255, 138, 101, 0.3); color: #ffccbc; }

.eval-augen {
    display: flex;
    justify-content: space-around;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 16px;
    text-align: center;
}
.eval-augen-col span { display: block; font-size: 11px; color: rgba(255,255,255,0.6); margin-bottom: 4px; }
.eval-augen-col strong { font-size: 26px; font-weight: 700; color: #ffffff; }

.eval-section-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: rgba(165, 214, 167, 0.7);
    margin-top: 14px;
    margin-bottom: 6px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 3px;
}

.eval-bonus-list {
    margin-bottom: 14px;
}
.eval-bonus-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 4px;
    font-size: 13px;
    color: #e0e0e0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.eval-bonus-line:last-child { border-bottom: none; }
.eval-bonus-pts { font-weight: 600; white-space: nowrap; margin-left: 12px; }
.eval-bonus-pts.pos { color: #81c784; }
.eval-bonus-pts.neg { color: #e57373; }

.eval-scores {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    overflow: hidden;
}
.eval-score-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 14px;
    color: #e8e8e8;
}
.eval-score-row:last-child { border-bottom: none; }
.eval-score-pts {
    font-size: 18px;
    font-weight: 700;
}
.eval-score-pts.pos { color: #81c784; }
.eval-score-pts.neg { color: #e57373; }

/* ── Startkarten & Stiche in der Auswertung ─────────────────────────────── */
.eval-hands {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}
.eval-hand-row {
    display: flex;
    align-items: center;
    gap: 6px;
}
.eval-hand-name {
    min-width: 52px;
    max-width: 52px;
    font-size: 11px;
    color: #90a4ae;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.eval-hand-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
}
.eval-card-img {
    width: 30px;
    height: 45px;
    border-radius: 2px;
    border: 1px solid rgba(255,255,255,0.15);
    display: block;
}

.eval-tricks-section {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 14px;
}
.eval-stich-row {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 2px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    flex-wrap: wrap;
}
.eval-stich-nr {
    min-width: 18px;
    font-size: 10px;
    color: #666;
}
.eval-stich-card-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
}
.eval-stich-img {
    width: 28px;
    height: 42px;
    border-radius: 2px;
    border: 1px solid rgba(255,255,255,0.12);
    display: block;
}
.eval-stich-player {
    font-size: 8px;
    color: #888;
    max-width: 30px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.eval-stich-winner {
    font-size: 11px;
    color: #ffd54f;
    font-weight: 600;
    margin-left: 4px;
}

.modal-btn-ready {
    padding: 9px 22px;
    font-size: 14px;
    background: linear-gradient(135deg, #2e7d32, #388e3c);
    border: 1px solid rgba(76,175,80,0.5);
    border-radius: 8px;
    color: white;
    cursor: pointer;
}
.modal-btn-ready:hover { background: linear-gradient(135deg, #388e3c, #43a047); }

.modal-btn-leave {
    padding: 9px 22px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #ccc;
    cursor: pointer;
}
.modal-btn-leave:hover { background: rgba(255, 255, 255, 0.12); color: white; }

#aboveCenterBtns {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding-bottom: 8px;
    white-space: nowrap;
    pointer-events: none;
}
#aboveCenterBtns > * { pointer-events: auto; }

#declarationButtons {
    display: flex;
    flex-direction: row;
    gap: 12px;
    white-space: nowrap;
    z-index: 10;
}

/* Vorbehalt-Auswahl als zentriertes Popup-Overlay */
#soloChoicePanel {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 300;
}

.solo-choice-modal {
    background: #1e2a1e;
    border: 1px solid rgba(76,175,80,0.35);
    border-radius: 12px;
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    min-width: 220px;
}

.solo-choice-modal h3 {
    margin: 0;
    color: #a5d6a7;
    font-size: 1rem;
    letter-spacing: 0.04em;
}

.solo-choice-buttons {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.solo-choice-buttons button {
    width: 100%;
    padding: 8px 12px;
    background: #2e3d2e;
    color: #e0e0e0;
    border: 1px solid rgba(76,175,80,0.25);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.15s;
}

.solo-choice-buttons button:hover {
    background: #3a4f3a;
    border-color: rgba(76,175,80,0.5);
}

/* Old .player-position, #player-top/left/right/bottom, .player-info, .trick-stack, #stack-bottom
   removed — replaced by .tslot / .tslot-info / .trick-stack inside #trick grid above */

/* Gruppe von 4 Karten pro gewonnenem Stich */
.trick-group {
    position: relative;
    width: 95px;
    height: 38px; /* ~30% der Kartenhöhe sichtbar */
    flex-shrink: 0;
}

/* Einzelne gestapelte Karte */
.stacked-card {
    position: absolute;
    top: 0;
    width: 58px;
    height: 38px;
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

.stacked-card img {
    width: 58px;
    height: auto;
    display: block;
}

/* ── Lobby Header Actions ───────────────────────────────────────── */
.lobby-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.archive-btn {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  padding: 7px 14px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s;
}
.archive-btn:hover { background: rgba(255,255,255,0.22); }

/* ── Archive Modal ──────────────────────────────────────────────── */
.archive-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 24px 12px;
}
.archive-modal {
  background: #1e2d3d;
  border-radius: 12px;
  width: 100%;
  max-width: 1000px;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
}
.archive-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.archive-title { margin:0; color:#fff; font-size:20px; }
.archive-close-btn {
  background: none;
  border: none;
  color: #aaa;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  padding: 2px 6px;
}
.archive-close-btn:hover { color: #fff; }

.archive-tabs {
  display: flex;
  gap: 4px;
  padding: 10px 20px 0;
}
.arch-tab {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  color: #bbb;
  padding: 8px 20px;
  font-size: 14px;
  cursor: pointer;
}
.arch-tab.active {
  background: rgba(255,255,255,0.14);
  color: #fff;
}

.archive-search-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 20px;
  background: rgba(255,255,255,0.04);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.arch-input, .arch-select {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  color: #fff;
  padding: 6px 10px;
  font-size: 13px;
}
.arch-input::placeholder { color: #888; }
.arch-select option { background: #1e2d3d; }
.arch-input { width: 140px; }
.arch-date { width: 130px; }
.arch-search-btn {
  background: #4caf50;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 6px 16px;
  font-size: 13px;
  cursor: pointer;
}
.arch-search-btn:hover { background: #43a047; }

.archive-content {
  flex: 1;
  padding: 16px 20px;
  overflow-y: auto;
  color: #ddd;
  min-height: 200px;
}
.archive-loading { color: #888; font-style: italic; }
.archive-empty { color: #888; text-align: center; padding: 40px; }

/* Game list table */
.arch-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.arch-table th {
  text-align: left;
  color: #aaa;
  padding: 6px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-weight: normal;
  white-space: nowrap;
}
.arch-table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  vertical-align: middle;
}
.arch-table tr:hover td { background: rgba(255,255,255,0.05); cursor: pointer; }
.arch-winner-re { color: #81c784; }
.arch-winner-kontra { color: #e57373; }
.arch-winner-draw { color: #aaa; }
.arch-party-re { color: #81c784; font-weight: bold; }
.arch-party-kontra { color: #ef9a9a; }
.arch-bot { color: #888; font-style: italic; }
.arch-points-pos { color: #81c784; }
.arch-points-neg { color: #e57373; }

/* Pagination */
.archive-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: #aaa;
  font-size: 13px;
}
.arch-page-btn {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  color: #fff;
  padding: 4px 12px;
  cursor: pointer;
  font-size: 13px;
}
.arch-page-btn:hover { background: rgba(255,255,255,0.2); }
.arch-page-btn:disabled { opacity: 0.4; cursor: default; }

/* Detail view */
.arch-back-btn {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  color: #fff;
  padding: 6px 14px;
  cursor: pointer;
  font-size: 13px;
}
.arch-back-btn:hover { background: rgba(255,255,255,0.2); }
.arch-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: #aaa;
  font-size: 13px;
  margin-bottom: 14px;
}
.arch-detail-meta span { background: rgba(255,255,255,0.07); border-radius:4px; padding:3px 8px; }
.arch-parties {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}
.arch-party-box {
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 10px 14px;
}
.arch-party-box h4 { margin: 0 0 8px; font-size: 14px; }
.arch-party-box.re h4 { color: #81c784; }
.arch-party-box.kontra h4 { color: #ef9a9a; }
.arch-section-title {
  font-size: 13px;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 14px 0 6px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding-bottom: 4px;
}
.arch-tag {
  display: inline-block;
  background: rgba(255,255,255,0.09);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 12px;
  margin: 2px;
  color: #ccc;
}
.arch-tag.re { background: rgba(129,199,132,0.18); color: #81c784; }
.arch-tag.kontra { background: rgba(229,115,115,0.18); color: #ef9a9a; }

/* Trick display */
.arch-trick { margin: 6px 0; }
.arch-trick summary {
  cursor: pointer;
  padding: 6px 10px;
  background: rgba(255,255,255,0.05);
  border-radius: 6px;
  font-size: 13px;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.arch-trick summary::-webkit-details-marker { display: none; }
.arch-trick-cards {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding: 10px 12px;
  background: rgba(255,255,255,0.03);
  border-radius: 0 0 6px 6px;
}
.arch-card-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #aaa;
}
.arch-card-img {
  width: 46px;
  height: 69px;
  border-radius: 4px;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}
.arch-badge-dk {
  background: #ffd54f;
  color: #333;
  border-radius: 3px;
  padding: 1px 5px;
  font-size: 11px;
  font-weight: bold;
}

/* Initial hand display */
.arch-hand-row {
  margin: 4px 0;
}
.arch-hand-row summary {
  cursor: pointer;
  padding: 5px 8px;
  background: rgba(255,255,255,0.04);
  border-radius: 6px;
  font-size: 13px;
  list-style: none;
}
.arch-hand-row summary::-webkit-details-marker { display: none; }
.arch-hand-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 8px;
}

/* ── Geber label ─────────────────────────────────────────────────────────── */
.geber-label {
    font-size: 10px;
    color: #ffd54f;
    font-weight: bold;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-top: 2px;
}

/* ── Vorbehalt banner ────────────────────────────────────────────────────── */
#vorbehaltBanner {
    position: fixed;
    top: 16px;
    left: 16px;
    background: rgba(0,0,0,0.72);
    border: 1px solid rgba(255,213,79,0.45);
    border-radius: 10px;
    color: #ffd54f;
    font-size: 14px;
    font-weight: bold;
    padding: 6px 20px;
    z-index: 210;
    pointer-events: none;
    white-space: nowrap;
}

/* ── Spielauswertungs-Vollbild ───────────────────────────────────────────── */
#evalScreen {
    position: fixed;
    inset: 0;
    z-index: 900;
    background: #091509;
    display: flex;
    flex-direction: row;
    overflow: hidden;
}

#es-eval-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
}

/* top and bottom card strips */
#es-top, #es-bot {
    flex: none;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 3px;
    padding: 8px 6px;
    background: rgba(0,0,0,0.25);
}

/* middle row: left strip | score center | right strip */
#es-mid {
    flex: 1;
    display: flex;
    flex-direction: row;
    overflow: hidden;
    min-height: 0;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
}

/* left and right card strips */
#es-left, #es-right {
    flex: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3px;
    padding: 4px;
}

/* score summary in center */
#es-score {
    flex: 0 1 420px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
    min-height: 0;
    align-self: stretch;
}

#es-actions {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    padding: 8px 0 4px;
}
#es-score .eval-winner    { font-size: 22px; }
#es-score .eval-augen strong { font-size: 22px; }
#es-score .eval-section-label { margin-top: 10px; }

/* tricks panel on the right */
#es-tricks {
    flex: none;
    width: 185px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 3px;
    padding: 10px 8px;
    background: rgba(0,0,0,0.35);
    border-left: 1px solid rgba(255,255,255,0.07);
    overflow-y: auto;
}

/* card images in top/bottom strips */
.es-card-h {
    width: 34px;
    height: 51px;
    border-radius: 3px;
    border: 1px solid rgba(255,255,255,0.18);
    display: block;
}

/* card images in left/right strips */
.es-card-v {
    width: 30px;
    height: 45px;
    border-radius: 3px;
    border: 1px solid rgba(255,255,255,0.18);
    display: block;
}

/* trick rows in tricks panel */
.es-trick-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2px;
    padding: 2px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    flex-wrap: nowrap;
}
.es-trick-nr {
    font-size: 9px;
    color: #555;
    min-width: 16px;
    text-align: right;
    padding-right: 3px;
}
.es-trick-img {
    width: 24px;
    height: 36px;
    border-radius: 2px;
    border: 1px solid rgba(255,255,255,0.12);
    display: block;
    flex-shrink: 0;
}
.es-trick-winner {
    font-size: 9px;
    color: #ffd54f;
    font-weight: 600;
    margin-left: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.es-action-btns {
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* score card panel — feste Größe durch Eltern, innen scrollbar */
.es-score-card {
    width: 100%;
    max-width: 380px;
    background: linear-gradient(160deg, #0f2a12 0%, #071510 100%);
    border: 1px solid rgba(100, 200, 100, 0.22);
    border-radius: 14px;
    padding: 18px 20px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.7);
    color: #e8f5e9;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    box-sizing: border-box;
}

/* ── Archive view/simulate buttons ────────────────────────────────────────── */
.arch-view-btn {
  background: rgba(80, 160, 200, 0.15);
  border: 1px solid rgba(80, 160, 200, 0.35);
  border-radius: 5px;
  color: #80cbc4;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}
.arch-view-btn:hover { background: rgba(80, 160, 200, 0.3); }

.arch-sim-btn {
  background: rgba(130, 190, 130, 0.15);
  border: 1px solid rgba(130, 190, 130, 0.35);
  border-radius: 6px;
  color: #aed581;
  padding: 6px 14px;
  font-size: 13px;
  cursor: pointer;
}
.arch-sim-btn:hover { background: rgba(130, 190, 130, 0.3); }

/* Simulation hands layout */
.sim-hands {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 16px;
}
.sim-player-hand {
  flex: 1 1 200px;
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  padding: 10px;
}
.sim-player-name {
  font-size: 13px;
  margin-bottom: 8px;
}
.sim-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}
.sim-card {
  position: relative;
}
.sim-card img {
  width: 42px;
  height: 63px;
}
.sim-card.played {
  opacity: 0.22;
}
.sim-trick-area {
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 12px;
  margin-top: 8px;
}
.sim-trick-title {
  font-size: 13px;
  color: #aaa;
  margin-bottom: 10px;
}

/* Disable row hover pointer on arch-table when it has view buttons */
.arch-table tr { cursor: default; }

/* ── Player name links ───────────────────────────────────────────────────── */
/* .player-name styles are now defined in the tslot-info block above */

/* ── Bottom Panel ────────────────────────────────────────────────────────── */
#bottomPanel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 170px;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    background: rgba(5, 14, 5, 0.97);
    border-top: 1px solid rgba(76,175,80,0.18);
    z-index: 100;
}

#bottomLeft {
    width: 72px;
    flex-shrink: 0;
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    align-self: stretch;
    overflow: hidden;
    border-right: 1px solid rgba(76,175,80,0.12);
    padding: 6px 4px;
}

#bottomCenter {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 0 6px 4px;
    overflow: visible;
    min-width: 0;
}

#bottomRight {
    width: 130px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 1px solid rgba(76,175,80,0.12);
    padding: 6px 8px;
    overflow-y: auto;
}

/* ── Tisch-Navigation (jetzt in #bottomLeft) ─────────────────────────────── */
#tableNavBar {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: stretch;
    width: 100%;
}

.table-nav-btn {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    color: #fff;
    padding: 7px 4px;
    font-size: 18px;
    cursor: pointer;
    text-align: center;
    line-height: 1;
}
.table-nav-btn:hover { background: rgba(255,255,255,0.18); }

#zogernButton {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    color: #fff;
    padding: 4px 14px;
    font-size: 13px;
    cursor: pointer;
}
#zogernButton:hover { background: rgba(255,255,255,0.18); }
#zogernButton:disabled { opacity: 0.4; cursor: default; }

/* ── Zögern-Karte Animation ─────────────────────────────────────────────── */
#zogernCard {
    position: fixed;
    width: 54px;
    height: 82px;
    left: 50%;
    bottom: 175px;
    transform: translateX(-50%);
    z-index: 500;
    pointer-events: none;
    display: none;
    border-radius: 6px;
    background:
        repeating-linear-gradient(
            45deg,
            #1a3a1a 0px, #1a3a1a 4px,
            #0f2510 4px, #0f2510 8px
        );
    border: 2px solid rgba(76,175,80,0.6);
    box-shadow: 0 4px 18px rgba(0,0,0,0.7);
}

#zogernCard.animating {
    display: block;
    animation: zogern-slide 5s ease-in-out forwards;
}

@keyframes zogern-slide {
    0%   { bottom: 175px; opacity: 1;   transform: translateX(-50%) scale(1); }
    85%  { opacity: 0.85; transform: translateX(-50%) scale(0.92); }
    100% { bottom: calc(50vh + 20px); opacity: 0; transform: translateX(-50%) scale(0.85); }
}

/* ── Chat-Panel ──────────────────────────────────────────────────────────── */
#chatPanel {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 170px;
    width: 240px;
    background: rgba(10, 25, 10, 0.92);
    border-left: 1px solid rgba(255,255,255,0.10);
    display: flex;
    flex-direction: column;
    z-index: 200;
    backdrop-filter: blur(6px);
}
#chatHeader {
    padding: 10px 12px 8px;
    font-size: 13px;
    font-weight: 600;
    color: #aed581;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
#spectatorBadge {
    background: rgba(100,181,246,0.18);
    color: #64b5f6;
    border-radius: 10px;
    padding: 1px 8px;
    font-size: 11px;
    font-weight: 500;
}
#chatFeed {
    flex: 1;
    overflow-y: auto;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    scroll-behavior: smooth;
}
#chatFeed::-webkit-scrollbar { width: 4px; }
#chatFeed::-webkit-scrollbar-track { background: transparent; }
#chatFeed::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 2px; }
.chat-msg {
    display: flex;
    flex-direction: column;
    max-width: 100%;
}
.chat-msg-own { align-items: flex-end; }
.chat-msg-other { align-items: flex-start; }
.chat-bubble {
    padding: 5px 9px;
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.4;
    max-width: 190px;
    word-break: break-word;
}
.chat-msg-own .chat-bubble {
    background: rgba(102,187,106,0.25);
    border-bottom-right-radius: 3px;
    color: #e8f5e9;
}
.chat-msg-other .chat-bubble {
    background: rgba(255,255,255,0.08);
    border-bottom-left-radius: 3px;
    color: #e0e0e0;
}
.chat-sender {
    font-size: 10px;
    color: #9e9e9e;
    margin-bottom: 2px;
    padding: 0 2px;
}
.chat-event {
    font-size: 11px;
    color: #757575;
    font-style: italic;
    text-align: center;
    padding: 2px 0;
}
#chatInput {
    display: flex;
    gap: 4px;
    padding: 8px 8px;
    border-top: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
}
#chatText {
    flex: 1;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 14px;
    color: #fff;
    padding: 5px 10px;
    font-size: 12px;
    outline: none;
}
#chatText:focus { border-color: rgba(174,213,129,0.5); }
#chatInput button {
    background: rgba(102,187,106,0.3);
    border: none;
    border-radius: 50%;
    color: #aed581;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 13px;
    flex-shrink: 0;
    transition: background 0.15s;
}
#chatInput button:hover { background: rgba(102,187,106,0.5); }

/* Letzter Stich rückt nach links wenn Chat offen */
body.chat-open #lastTrick { right: 260px; }

/* ── Speech Bubbles ──────────────────────────────────────────────────────── */
.speech-bubble {
    position: absolute;
    background: rgba(30,60,30,0.96);
    border: 1px solid rgba(174,213,129,0.45);
    border-radius: 10px;
    padding: 5px 9px;
    font-size: 11px;
    color: #e8f5e9;
    max-width: 140px;
    word-break: break-word;
    white-space: pre-wrap;
    z-index: 250;
    pointer-events: none;
    animation: bubbleFadeIn 0.2s ease, bubbleFadeOut 0.4s ease 3.6s forwards;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.speech-bubble::after {
    content: '';
    position: absolute;
    border: 6px solid transparent;
}
.speech-bubble.bubble-bottom::after {
    bottom: -12px; left: 50%; transform: translateX(-50%);
    border-top-color: rgba(174,213,129,0.45);
}
.speech-bubble.bubble-top::after {
    top: -12px; left: 50%; transform: translateX(-50%);
    border-bottom-color: rgba(174,213,129,0.45);
}
.speech-bubble.bubble-left::after {
    left: -12px; top: 50%; transform: translateY(-50%);
    border-right-color: rgba(174,213,129,0.45);
}
.speech-bubble.bubble-right::after {
    right: -12px; top: 50%; transform: translateY(-50%);
    border-left-color: rgba(174,213,129,0.45);
}
@keyframes bubbleFadeIn  { from { opacity:0; transform: scale(0.85); } to { opacity:1; transform: scale(1); } }
@keyframes bubbleFadeOut { from { opacity:1; } to { opacity:0; } }

/* ── Bot-Takeover Banner ─────────────────────────────────────────────────── */
#resumeControlButton {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(20, 50, 20, 0.97);
    border: 2px solid rgba(174,213,129,0.6);
    border-radius: 14px;
    padding: 18px 36px;
    font-size: 17px;
    font-weight: 700;
    color: #aed581;
    cursor: pointer;
    z-index: 300;
    text-align: center;
    line-height: 1.5;
    box-shadow: 0 4px 24px rgba(0,0,0,0.6);
    animation: takoverPulse 1.8s ease-in-out infinite;
}
#resumeControlButton:hover { background: rgba(30,70,30,0.97); border-color: #aed581; }
#resumeControlButton::before {
    content: '🤖 Bot spielt für dich';
    display: block;
    font-size: 13px;
    font-weight: 400;
    color: rgba(255,255,255,0.55);
    margin-bottom: 6px;
}
@keyframes takoverPulse {
    0%, 100% { box-shadow: 0 4px 24px rgba(0,0,0,0.6); }
    50%       { box-shadow: 0 4px 32px rgba(174,213,129,0.25); }
}

/* ── Aufstehen-Button ────────────────────────────────────────────────────── */
#aufstehenButton {
    position: fixed;
    bottom: 178px;
    left: 8px;
    background: rgba(255,183,77,0.2);
    border: 1px solid rgba(255,183,77,0.4);
    border-radius: 8px;
    color: #ffcc80;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    cursor: pointer;
    z-index: 110;
    white-space: nowrap;
    transition: background 0.15s;
}
#aufstehenButton:hover { background: rgba(255,183,77,0.38); }

/* Zuschauer-Hinweis */
#spectatorHint {
    position: fixed;
    bottom: 180px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(100,181,246,0.15);
    border: 1px solid rgba(100,181,246,0.3);
    color: #64b5f6;
    border-radius: 20px;
    padding: 6px 18px;
    font-size: 12px;
    z-index: 190;
    pointer-events: none;
}

/* ── Spielverlauf-Panel (nach Spielende) ────────────────────────────────── */
.tricks-panel {
    position: fixed;
    top: 16px;
    right: 16px;
    width: 220px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    background: rgba(5, 20, 5, 0.88);
    border: 1px solid rgba(76,175,80,0.25);
    border-radius: 12px;
    padding: 10px;
    z-index: 140;
    scrollbar-width: thin;
    scrollbar-color: rgba(76,175,80,0.3) transparent;
}

.tp-title {
    font-size: 13px;
    font-weight: 700;
    color: #aed581;
    margin-bottom: 8px;
    text-align: center;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.tp-row {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 3px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.tp-num {
    font-size: 10px;
    color: rgba(255,255,255,0.4);
    min-width: 16px;
}

.tp-cards {
    display: flex;
    flex: 1;
}
.tp-cards img {
    width: 22px;
    height: 33px;
    border-radius: 2px;
    border: 1px solid rgba(255,255,255,0.2);
    margin-left: -6px;
}
.tp-cards img:first-child { margin-left: 0; }

.tp-winner {
    font-size: 10px;
    color: #aed581;
    white-space: nowrap;
    max-width: 55px;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* ══════════════════════════════════════════════════════════════════
   THEMES
   ══════════════════════════════════════════════════════════════════ */

/* Nachtblau */
body[data-theme="blau"] {
    background: radial-gradient(ellipse at 50% 0%, #0d47a1 0%, #0a2744 60%, #050f1a 100%);
}

/* Bordeaux */
body[data-theme="bordeaux"] {
    background: radial-gradient(ellipse at 50% 0%, #880e4f 0%, #3e0024 60%, #1a000e 100%);
}

/* Klassisch (neutral dark) */
body[data-theme="klassisch"] {
    background: radial-gradient(ellipse at 50% 0%, #37474f 0%, #1c2b30 60%, #080d0f 100%);
}

/* ── Große Karten ────────────────────────────────────────────────── */
body.large-cards #hand img {
    width: min(8vw, 100px);
    height: min(12vw, 150px);
    max-width: 105px;
    max-height: 158px;
}
body.large-cards #hand img ~ img {
    margin-left: -28px;
}

/* ── Keine Animationen ───────────────────────────────────────────── */
body.no-animations *,
body.no-animations *::before,
body.no-animations *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
}

/* ══════════════════════════════════════════════════════════════════
   SETTINGS MODAL
   ══════════════════════════════════════════════════════════════════ */
#settingsOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
}
#settingsModal {
    background: linear-gradient(160deg, rgba(15,35,15,0.98), rgba(5,18,5,0.99));
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 18px;
    padding: 28px 32px;
    min-width: 340px;
    max-width: 420px;
    width: 90%;
    color: #e0e0e0;
    box-shadow: 0 24px 64px rgba(0,0,0,0.7);
}
#settingsModal h3 {
    margin: 0 0 22px;
    font-size: 17px;
    color: #aed581;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
#settingsModal h3 button {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.4);
    font-size: 18px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}
#settingsModal h3 button:hover { color: white; }
.settings-section {
    margin-bottom: 20px;
}
.settings-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.4);
    margin-bottom: 10px;
}
/* Theme swatches */
.theme-swatches {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.theme-swatch {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}
.theme-swatch-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid transparent;
    transition: border-color 0.15s;
}
.theme-swatch.active .theme-swatch-circle {
    border-color: #aed581;
}
.theme-swatch-label {
    font-size: 10px;
    color: rgba(255,255,255,0.55);
}
/* Toggle switch */
.settings-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.settings-toggle-row:last-child { border-bottom: none; }
.settings-toggle-row span {
    font-size: 14px;
    color: #ccc;
}
.toggle-switch {
    position: relative;
    width: 40px;
    height: 22px;
    cursor: pointer;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-track {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.15);
    border-radius: 22px;
    transition: background 0.2s;
}
.toggle-switch input:checked + .toggle-track { background: #388e3c; }
.toggle-thumb {
    position: absolute;
    top: 3px; left: 3px;
    width: 16px; height: 16px;
    background: white;
    border-radius: 50%;
    transition: transform 0.2s;
    pointer-events: none;
}
.toggle-switch input:checked ~ .toggle-thumb { transform: translateX(18px); }
/* Card size buttons */
.card-size-btns {
    display: flex;
    gap: 8px;
}
.card-size-btn {
    flex: 1;
    padding: 7px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    color: #ccc;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s;
}
.card-size-btn.active {
    background: rgba(76,175,80,0.25);
    border-color: rgba(76,175,80,0.5);
    color: #aed581;
}

/* ── Lobby Announcement Banner ───────────────────────────────────── */
.lobby-announcement {
    background: linear-gradient(90deg, rgba(245,197,24,0.12) 0%, rgba(245,197,24,0.06) 100%);
    border-bottom: 1px solid rgba(245,197,24,0.2);
    padding: 10px 24px;
}
.lobby-announcement-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 1100px;
    margin: 0 auto;
    font-size: 13px;
    color: rgba(255,255,255,0.75);
    line-height: 1.5;
}
.lobby-ann-badge {
    background: rgba(245,197,24,0.25);
    color: #f5c518;
    border: 1px solid rgba(245,197,24,0.4);
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}
.lobby-ann-text strong { color: #f5c518; }

/* ── Feedback Modal ─────────────────────────────────────────────── */
#feedbackOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
}
#feedbackModal {
    background: linear-gradient(160deg, rgba(15,35,15,0.98), rgba(5,18,5,0.99));
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 18px;
    padding: 28px 32px;
    min-width: 340px;
    max-width: 460px;
    width: 90%;
    color: #e0e0e0;
    box-shadow: 0 24px 64px rgba(0,0,0,0.7);
}
#feedbackModal h3 {
    margin: 0 0 22px;
    font-size: 17px;
    color: #aed581;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
#feedbackModal h3 button {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.4);
    font-size: 18px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}
#feedbackModal h3 button:hover { color: white; }
#feedbackText {
    width: 100%;
    box-sizing: border-box;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 14px;
    font-family: inherit;
    padding: 10px 14px;
    resize: vertical;
    min-height: 120px;
    outline: none;
}
#feedbackText:focus { border-color: rgba(76,175,80,0.5); }
.feedback-type-btns {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.feedback-type-btn {
    padding: 7px 12px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    color: #ccc;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s;
}
.feedback-type-btn.active {
    background: rgba(76,175,80,0.25);
    border-color: rgba(76,175,80,0.5);
    color: #aed581;
}

/* ── Gut gespielt Button ─────────────────────────────────────────── */
.es-gut-gespielt-btn {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 8px;
    font-size: 20px;
    padding: 6px 14px;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    line-height: 1;
}
.es-gut-gespielt-btn:hover { background: rgba(255,255,255,0.18); transform: scale(1.1); }
.es-gut-gespielt-btn:active { transform: scale(0.95); }
