/* Google Fonts imported via style.css — duplicate removed (W6/M4) */

:root {
    --mp-bg-dark: #0a0a0f;
    --mp-bg-card: #12121c;
    --mp-bg-input: #1a1a2e;
    --mp-bg-sidebar: #0d0d16;
    --mp-bg-hover: #1e1e32;
    --mp-text-primary: #e0d8c8;
    --mp-text-secondary: #8b8072;
    --mp-text-muted: #5a5347;
    --mp-accent-gold: #d4af37;
    --mp-accent-gold-bright: #f0d060;
    --mp-accent-gold-dim: #8b7520;
    --mp-accent-green: #2ecc71;
    --mp-accent-green-bright: #58d68d;
    --mp-accent-red: #e74c3c;
    --mp-accent-red-bright: #f1948a;
    --mp-accent-blue: #3498db;
    --mp-accent-blue-bright: #5dade2;
    --mp-accent-purple: #9b59b6;
    --mp-border-color: #2a2a3e;
    --mp-border-light: #3a3a52;
    --mp-font-display: 'Cinzel', serif;
    --mp-font-body: 'Raleway', sans-serif;
    --mp-shadow-dark: 0 4px 24px rgba(0, 0, 0, 0.6);
    --mp-shadow-glow-gold: 0 0 15px rgba(212, 175, 55, 0.3);
    --mp-shadow-glow-red: 0 0 20px rgba(231, 76, 60, 0.4);
    --mp-transition: 0.3s ease;
    --mp-sidebar-width: 280px;
    --mp-topbar-height: 48px;
}

/* ============ ANIMATIONS ============ */

@keyframes mp-pulse-glow {
    0%, 100% { box-shadow: 0 0 5px rgba(212, 175, 55, 0.3); }
    50% { box-shadow: 0 0 20px rgba(212, 175, 55, 0.6), 0 0 40px rgba(212, 175, 55, 0.2); }
}

@keyframes mp-horror-flash {
    0% { background-color: rgba(139, 0, 0, 0); }
    15% { background-color: rgba(139, 0, 0, 0.5); }
    30% { background-color: rgba(139, 0, 0, 0); }
    45% { background-color: rgba(139, 0, 0, 0.3); }
    60% { background-color: rgba(139, 0, 0, 0); }
    100% { background-color: rgba(139, 0, 0, 0); }
}

@keyframes mp-slide-in-left {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

@keyframes mp-slide-in-right {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

@keyframes mp-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes mp-fumble-pulse {
    0%, 100% { border-left-color: var(--mp-accent-red); }
    50% { border-left-color: var(--mp-accent-red-bright); box-shadow: 0 0 12px rgba(231, 76, 60, 0.5); }
}

@keyframes mp-critical-shine {
    0%, 100% { border-left-color: var(--mp-accent-gold); box-shadow: 0 0 5px rgba(212, 175, 55, 0.2); }
    50% { border-left-color: var(--mp-accent-gold-bright); box-shadow: 0 0 20px rgba(212, 175, 55, 0.5); }
}

@keyframes mp-tentacle-sway {
    0%, 100% { transform: rotate(-2deg); }
    50% { transform: rotate(2deg); }
}

@keyframes mp-blood-drip {
    0% { transform: translateY(-100%); opacity: 0; }
    10% { opacity: 1; }
    100% { transform: translateY(100vh); opacity: 0; }
}

/* ============ LOBBY VIEW ============ */

.lobby-view {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--mp-bg-dark);
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(212, 175, 55, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(231, 76, 60, 0.02) 0%, transparent 50%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    overflow-y: auto;
    animation: mp-fade-in 0.5s ease;
    font-family: var(--mp-font-body);
    color: var(--mp-text-primary);
}

.lobby-container {
    max-width: 900px;
    width: 100%;
    padding: 40px 20px;
    margin: 0 auto;
}

.lobby-header {
    text-align: center;
    margin-bottom: 40px;
}

.lobby-header .tentacle-icon {
    font-size: 3rem;
    color: var(--mp-accent-gold);
    display: block;
    margin-bottom: 12px;
    animation: mp-tentacle-sway 4s ease-in-out infinite;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.lobby-header h1 {
    font-family: var(--mp-font-display);
    font-size: 2.2rem;
    color: var(--mp-text-primary);
    margin: 0 0 8px 0;
    letter-spacing: 2px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.lobby-subtitle {
    font-size: 0.95rem;
    color: var(--mp-text-secondary);
    margin: 0;
    font-weight: 300;
    letter-spacing: 1px;
}

.lobby-room-code-display {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding: 8px 18px;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid var(--mp-accent-gold);
    border-radius: 8px;
    animation: mp-fade-in 0.4s ease;
}

.lobby-room-code-label {
    font-size: 0.85rem;
    color: var(--mp-text-secondary);
    font-weight: 400;
}

.lobby-room-code-value {
    font-family: 'Courier New', monospace;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--mp-accent-gold-bright);
    letter-spacing: 3px;
    user-select: all;
}

.btn-copy-code {
    background: none;
    border: 1px solid var(--mp-border-light);
    border-radius: 4px;
    color: var(--mp-text-secondary);
    cursor: pointer;
    padding: 4px 8px;
    font-size: 1rem;
    transition: var(--mp-transition);
}

.btn-copy-code:hover {
    background: rgba(212, 175, 55, 0.15);
    color: var(--mp-accent-gold-bright);
    border-color: var(--mp-accent-gold);
}

@keyframes mp-fade-in {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.lobby-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

.lobby-card {
    background: var(--mp-bg-card);
    border: 1px solid var(--mp-border-color);
    border-radius: 12px;
    padding: 28px;
    transition: var(--mp-transition);
    position: relative;
    overflow: hidden;
}

.lobby-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--mp-accent-gold), transparent);
    opacity: 0;
    transition: opacity var(--mp-transition);
}

.lobby-card:hover {
    border-color: var(--mp-border-light);
    box-shadow: var(--mp-shadow-dark);
    transform: translateY(-2px);
}

.lobby-card:hover::before {
    opacity: 1;
}

.lobby-card h3 {
    font-family: var(--mp-font-display);
    font-size: 1.15rem;
    color: var(--mp-accent-gold);
    margin: 0 0 8px 0;
}

.lobby-card > p {
    font-size: 0.82rem;
    color: var(--mp-text-secondary);
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.lobby-card .form-group {
    margin-bottom: 14px;
}

.lobby-card label {
    display: block;
    font-size: 0.78rem;
    color: var(--mp-text-secondary);
    margin-bottom: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lobby-card input[type="text"],
.lobby-card input[type="password"],
.lobby-card select {
    width: 100%;
    padding: 10px 14px;
    background: var(--mp-bg-input);
    border: 1px solid var(--mp-border-color);
    border-radius: 6px;
    color: var(--mp-text-primary);
    font-family: var(--mp-font-body);
    font-size: 0.9rem;
    transition: border-color var(--mp-transition);
    box-sizing: border-box;
}

.lobby-card input[type="text"]:focus,
.lobby-card input[type="password"]:focus,
.lobby-card select:focus {
    outline: none;
    border-color: var(--mp-accent-gold);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.15);
}

.lobby-card .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.lobby-card .btn-lg {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    margin-top: 8px;
}

.lobby-footer {
    text-align: center;
    margin-top: 24px;
}

.lobby-footer .btn-sm {
    color: var(--mp-text-muted);
    border-color: var(--mp-border-color);
}

.lobby-footer .btn-sm:hover {
    color: var(--mp-text-secondary);
    border-color: var(--mp-border-light);
}

/* ============ SESSION TOP BAR ============ */

.session-top-bar {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 16px;
    background: var(--mp-bg-dark);
    border-bottom: 1px solid var(--mp-border-color);
    height: var(--mp-topbar-height);
    box-sizing: border-box;
    font-family: var(--mp-font-body);
}

.session-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.room-code-badge {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--mp-accent-gold);
    border-radius: 4px;
    color: var(--mp-accent-gold-bright);
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
}

#mp-session-name {
    font-size: 0.85rem;
    color: var(--mp-text-primary);
    font-weight: 600;
}

.session-timer {
    font-size: 0.8rem;
    color: var(--mp-text-muted);
    font-family: 'Courier New', monospace;
}

.session-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.session-actions .btn-sm {
    font-size: 0.75rem;
    padding: 4px 10px;
}

/* ============ SESSION LAYOUT ============ */

.session-layout {
    display: flex;
    min-height: calc(100vh - var(--mp-topbar-height));
    position: relative;
    font-family: var(--mp-font-body);
}

.session-sidebar {
    width: var(--mp-sidebar-width);
    min-width: var(--mp-sidebar-width);
    background: var(--mp-bg-sidebar);
    border-right: 1px solid var(--mp-border-color);
    overflow-y: auto;
    padding: 0;
    transition: transform var(--mp-transition), opacity var(--mp-transition);
}

.session-sidebar-right {
    border-right: none;
    border-left: 1px solid var(--mp-border-color);
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--mp-border-color);
    position: sticky;
    top: 0;
    background: var(--mp-bg-sidebar);
    z-index: 2;
}

.sidebar-header h4 {
    font-family: var(--mp-font-display);
    font-size: 0.9rem;
    color: var(--mp-accent-gold);
    margin: 0;
}

.sidebar-close {
    font-size: 1.2rem !important;
    padding: 2px 8px !important;
    line-height: 1;
    color: var(--mp-text-muted);
    background: transparent;
    border: none;
    cursor: pointer;
}

.sidebar-close:hover {
    color: var(--mp-text-primary);
}

.session-main {
    flex: 1;
    overflow-y: auto;
    min-width: 0;
    padding: 0;
}

/* ============ PLAYER LIST ============ */

.player-list {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.player-card {
    background: var(--mp-bg-card);
    border: 1px solid var(--mp-border-color);
    border-radius: 8px;
    padding: 10px 12px;
    transition: var(--mp-transition);
    position: relative;
}

.player-card:hover {
    border-color: var(--mp-border-light);
}

.player-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.player-card-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--mp-text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.player-connection-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--mp-accent-green);
    display: inline-block;
    flex-shrink: 0;
}

.player-card.disconnected .player-connection-dot {
    background: var(--mp-accent-red);
}

.player-role-badge {
    font-size: 0.65rem;
    padding: 1px 6px;
    border-radius: 3px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.player-role-badge.gm {
    background: rgba(212, 175, 55, 0.15);
    color: var(--mp-accent-gold);
    border: 1px solid var(--mp-accent-gold-dim);
}

.player-role-badge.player {
    background: rgba(52, 152, 219, 0.15);
    color: var(--mp-accent-blue);
    border: 1px solid rgba(52, 152, 219, 0.3);
}

.player-role-badge.spectator {
    background: rgba(139, 128, 114, 0.15);
    color: var(--mp-text-muted);
    border: 1px solid rgba(139, 128, 114, 0.3);
}

.player-mini-bars {
    display: flex;
    gap: 6px;
    margin-top: 4px;
}

.player-mini-bar {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    overflow: hidden;
}

.player-mini-bar-fill {
    height: 100%;
    border-radius: 2px;
    transition: width var(--mp-transition);
}

.player-mini-bar-fill.hp {
    background: linear-gradient(90deg, var(--mp-accent-red), #c0392b);
}

.player-mini-bar-fill.san {
    background: linear-gradient(90deg, var(--mp-accent-green), var(--mp-accent-green-bright));
}

.player-mini-bar-label {
    font-size: 0.65rem;
    color: var(--mp-text-muted);
    margin-top: 2px;
    display: flex;
    justify-content: space-between;
}

.player-card.disconnected {
    opacity: 0.45;
}

.player-card.disconnected .player-card-name {
    text-decoration: line-through;
}

/* ============ DICE FEED ============ */

.dice-feed-list {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: calc(100vh - var(--mp-topbar-height) - 52px);
    overflow-y: auto;
}

.dice-feed-entry {
    padding: 8px 12px;
    background: var(--mp-bg-card);
    border-left: 3px solid var(--mp-border-color);
    border-radius: 0 6px 6px 0;
    font-size: 0.8rem;
    animation: mp-fade-in 0.3s ease;
    transition: var(--mp-transition);
}

.dice-feed-entry:hover {
    background: var(--mp-bg-hover);
}

.dice-feed-entry.success {
    border-left-color: var(--mp-accent-green);
}

.dice-feed-entry.failure {
    border-left-color: var(--mp-accent-red);
}

.dice-feed-entry.critical {
    border-left-color: var(--mp-accent-gold);
    animation: mp-critical-shine 2s ease-in-out infinite;
    background: rgba(212, 175, 55, 0.05);
}

.dice-feed-entry.fumble {
    border-left-color: var(--mp-accent-red);
    animation: mp-fumble-pulse 1.5s ease-in-out infinite;
    background: rgba(231, 76, 60, 0.05);
}

.dice-feed-entry-player {
    font-weight: 600;
    color: var(--mp-accent-blue);
    font-size: 0.72rem;
    margin-bottom: 2px;
}

.dice-feed-entry-roll {
    color: var(--mp-text-primary);
    font-weight: 700;
    font-size: 1rem;
}

.dice-feed-entry-detail {
    color: var(--mp-text-secondary);
    font-size: 0.7rem;
    margin-top: 2px;
}

.dice-feed-entry.success .dice-feed-entry-roll {
    color: var(--mp-accent-green-bright);
}

.dice-feed-entry.failure .dice-feed-entry-roll {
    color: var(--mp-accent-red-bright);
}

.dice-feed-entry.critical .dice-feed-entry-roll {
    color: var(--mp-accent-gold-bright);
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
}

.dice-feed-entry.fumble .dice-feed-entry-roll {
    color: var(--mp-accent-red-bright);
    text-shadow: 0 0 8px rgba(231, 76, 60, 0.4);
}

.dice-feed-entry-time {
    color: var(--mp-text-muted);
    font-size: 0.65rem;
    margin-top: 3px;
}

/* ============ COMBAT TRACKER ============ */

.combat-tracker-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--mp-bg-dark);
    border-top: 2px solid var(--mp-accent-red);
    box-shadow: 0 -4px 20px rgba(231, 76, 60, 0.15);
    z-index: 1100;
    padding: 10px 16px;
    font-family: var(--mp-font-body);
    animation: mp-fade-in 0.3s ease;
}

.combat-tracker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    color: var(--mp-accent-red-bright);
    font-family: var(--mp-font-display);
    font-size: 0.9rem;
}

.combat-tracker-actions {
    display: flex;
    gap: 6px;
}

.combat-initiative-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0;
    scrollbar-width: thin;
    scrollbar-color: var(--mp-accent-gold-dim) transparent;
}

.combat-initiative-list::-webkit-scrollbar {
    height: 4px;
}

.combat-initiative-list::-webkit-scrollbar-thumb {
    background: var(--mp-accent-gold-dim);
    border-radius: 2px;
}

.combat-initiative-entry {
    flex-shrink: 0;
    background: var(--mp-bg-card);
    border: 1px solid var(--mp-border-color);
    border-radius: 6px;
    padding: 6px 12px;
    min-width: 100px;
    text-align: center;
    transition: var(--mp-transition);
    cursor: pointer;
}

.combat-initiative-entry:hover {
    border-color: var(--mp-border-light);
}

.combat-initiative-entry.active {
    border-color: var(--mp-accent-gold);
    box-shadow: var(--mp-shadow-glow-gold);
    transform: scale(1.05);
    background: rgba(212, 175, 55, 0.08);
}

.combat-initiative-name {
    font-size: 0.8rem;
    color: var(--mp-text-primary);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 90px;
}

.combat-initiative-value {
    font-size: 0.7rem;
    color: var(--mp-text-muted);
    margin-top: 2px;
}

.combat-log-entries {
    font-size: 0.75rem;
    color: var(--mp-text-secondary);
    border-top: 1px solid var(--mp-border-color);
    margin-top: 6px;
    padding-top: 6px;
}

.combat-log-entry {
    padding: 2px 0;
    border-bottom: 1px solid rgba(42, 42, 62, 0.3);
}

/* ============ GM DASHBOARD ============ */

.gm-dashboard {
    position: fixed;
    top: 0;
    right: 0;
    width: 380px;
    height: 100vh;
    background: var(--mp-bg-dark);
    border-left: 1px solid var(--mp-accent-gold-dim);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.5);
    z-index: 2000;
    overflow-y: auto;
    font-family: var(--mp-font-body);
    animation: mp-slide-in-right 0.3s ease;
}

.gm-dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--mp-border-color);
    background: var(--mp-bg-card);
    position: sticky;
    top: 0;
    z-index: 2;
}

.gm-dashboard-header h3 {
    font-family: var(--mp-font-display);
    font-size: 1.1rem;
    color: var(--mp-accent-gold);
    margin: 0;
}

.gm-dashboard-content {
    padding: 16px;
}

.gm-quick-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 20px;
}

.gm-quick-actions .btn-sm {
    font-size: 0.72rem;
    padding: 8px 6px;
    text-align: center;
    white-space: nowrap;
}

.gm-panels {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.gm-panel {
    background: var(--mp-bg-card);
    border: 1px solid var(--mp-border-color);
    border-radius: 8px;
    padding: 14px;
}

.gm-panel h4 {
    font-family: var(--mp-font-display);
    font-size: 0.85rem;
    color: var(--mp-accent-gold);
    margin: 0 0 10px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--mp-border-color);
}

#session-view .npc-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.npc-entry {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--mp-bg-input);
    border: 1px solid var(--mp-border-color);
    border-radius: 6px;
    padding: 8px 10px;
    transition: var(--mp-transition);
}

.npc-entry:hover {
    border-color: var(--mp-border-light);
}

.npc-entry-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.npc-entry-name {
    font-size: 0.82rem;
    color: var(--mp-text-primary);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.npc-type-badge {
    font-size: 0.6rem;
    padding: 1px 5px;
    border-radius: 3px;
    font-weight: 700;
    text-transform: uppercase;
    flex-shrink: 0;
}

.npc-type-badge.hostile {
    background: rgba(231, 76, 60, 0.15);
    color: var(--mp-accent-red);
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.npc-type-badge.neutral {
    background: rgba(52, 152, 219, 0.15);
    color: var(--mp-accent-blue);
    border: 1px solid rgba(52, 152, 219, 0.3);
}

.npc-type-badge.friendly {
    background: rgba(46, 204, 113, 0.15);
    color: var(--mp-accent-green);
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.npc-type-badge.mythos {
    background: rgba(155, 89, 182, 0.15);
    color: var(--mp-accent-purple);
    border: 1px solid rgba(155, 89, 182, 0.3);
}

.npc-entry-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.npc-entry-actions .btn-sm {
    font-size: 0.65rem;
    padding: 3px 6px;
}

/* ============ HORROR OVERLAY ============ */

.mp-horror-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9998;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: mp-horror-flash 2s ease-out;
    pointer-events: none;
    font-family: var(--mp-font-body);
}

.mp-horror-text {
    font-family: var(--mp-font-display);
    font-size: 3rem;
    color: var(--mp-accent-red-bright);
    text-shadow:
        0 0 20px rgba(231, 76, 60, 0.6),
        0 0 60px rgba(231, 76, 60, 0.3);
    text-align: center;
    padding: 0 20px;
    animation: mp-fade-in 0.5s ease;
}

.mp-horror-image {
    max-width: 80vw;
    max-height: 60vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: var(--mp-shadow-glow-red);
    margin-top: 20px;
}

/* ============ HANDOUT OVERLAY ============ */

.mp-handout-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9997;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
    animation: mp-fade-in 0.3s ease;
    font-family: var(--mp-font-body);
}

.mp-handout-image {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: var(--mp-shadow-dark);
    transition: transform 0.3s ease;
}

.mp-handout-overlay.zoomed .mp-handout-image {
    transform: scale(1.5);
    cursor: grab;
}

.mp-handout-close {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 1.5rem;
    color: var(--mp-text-secondary);
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--mp-border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--mp-transition);
}

.mp-handout-close:hover {
    color: var(--mp-text-primary);
    border-color: var(--mp-border-light);
}

/* ============ SCENE PANEL ============ */

.mp-scene-panel {
    display: none;
    position: fixed;
    top: var(--mp-topbar-height);
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    max-width: 90vw;
    background: var(--mp-bg-card);
    border: 1px solid var(--mp-border-color);
    border-radius: 8px;
    box-shadow: var(--mp-shadow-dark);
    z-index: 1050;
    animation: mp-fade-in 0.3s ease;
    font-family: var(--mp-font-body);
}

.mp-scene-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--mp-border-color);
}

.mp-scene-panel-header h4 {
    font-family: var(--mp-font-display);
    font-size: 0.9rem;
    color: var(--mp-accent-gold);
    margin: 0;
}

.mp-scene-panel-body {
    padding: 16px;
}

.mp-scene-description {
    color: var(--mp-text-primary);
    font-size: 0.85rem;
    line-height: 1.6;
}

.mp-scene-atmosphere {
    margin-top: 10px;
    padding: 8px;
    background: var(--mp-bg-input);
    border-radius: 4px;
    font-size: 0.78rem;
    color: var(--mp-text-secondary);
    font-style: italic;
}

/* ============ WHISPER / CHAT ============ */

.mp-whisper-notification {
    position: fixed;
    bottom: 60px;
    right: 20px;
    background: var(--mp-bg-card);
    border: 1px solid var(--mp-accent-purple);
    border-radius: 8px;
    padding: 12px 16px;
    max-width: 300px;
    z-index: 1200;
    animation: mp-slide-in-right 0.3s ease;
    font-family: var(--mp-font-body);
    box-shadow: 0 4px 16px rgba(155, 89, 182, 0.2);
}

.mp-whisper-sender {
    font-size: 0.72rem;
    color: var(--mp-accent-purple);
    font-weight: 700;
    margin-bottom: 4px;
}

.mp-whisper-text {
    font-size: 0.82rem;
    color: var(--mp-text-primary);
    line-height: 1.4;
}

/* ============ PAUSE OVERLAY ============ */

.mp-pause-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9996;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: var(--mp-font-body);
    animation: mp-fade-in 0.5s ease;
}

.mp-pause-text {
    font-family: var(--mp-font-display);
    font-size: 2.5rem;
    color: var(--mp-accent-gold);
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
    letter-spacing: 4px;
}

.mp-pause-subtitle {
    font-size: 0.9rem;
    color: var(--mp-text-muted);
    margin-top: 12px;
}

/* ============ BUTTONS (multiplayer specific) ============ */

#session-view .btn-gold {
    background: linear-gradient(135deg, var(--mp-accent-gold-dim), var(--mp-accent-gold));
    color: #0a0a0f;
    border: none;
    font-weight: 600;
}

#session-view .btn-gold:hover {
    background: linear-gradient(135deg, var(--mp-accent-gold), var(--mp-accent-gold-bright));
    box-shadow: var(--mp-shadow-glow-gold);
}

#session-view .btn-danger {
    background: rgba(231, 76, 60, 0.15);
    color: var(--mp-accent-red);
    border: 1px solid rgba(231, 76, 60, 0.3);
}

#session-view .btn-danger:hover {
    background: rgba(231, 76, 60, 0.25);
    border-color: var(--mp-accent-red);
}

#session-view .btn-success {
    background: rgba(46, 204, 113, 0.15);
    color: var(--mp-accent-green);
    border: 1px solid rgba(46, 204, 113, 0.3);
}

#session-view .btn-success:hover {
    background: rgba(46, 204, 113, 0.25);
    border-color: var(--mp-accent-green);
}

#session-view .btn-primary {
    background: rgba(52, 152, 219, 0.15);
    color: var(--mp-accent-blue);
    border: 1px solid rgba(52, 152, 219, 0.3);
}

#session-view .btn-primary:hover {
    background: rgba(52, 152, 219, 0.25);
    border-color: var(--mp-accent-blue);
}

#session-view .btn {
    font-family: var(--mp-font-body);
    cursor: pointer;
    border-radius: 4px;
    transition: var(--mp-transition);
}

#session-view .btn-sm {
    font-size: 0.78rem;
    padding: 4px 10px;
}

#session-view .btn-lg {
    padding: 12px 24px;
    font-size: 1rem;
}

/* ============ SCROLLBAR STYLING ============ */

.session-sidebar::-webkit-scrollbar,
.dice-feed-list::-webkit-scrollbar,
.gm-dashboard::-webkit-scrollbar {
    width: 5px;
}

.session-sidebar::-webkit-scrollbar-track,
.dice-feed-list::-webkit-scrollbar-track,
.gm-dashboard::-webkit-scrollbar-track {
    background: transparent;
}

.session-sidebar::-webkit-scrollbar-thumb,
.dice-feed-list::-webkit-scrollbar-thumb,
.gm-dashboard::-webkit-scrollbar-thumb {
    background: var(--mp-border-color);
    border-radius: 3px;
}

.session-sidebar::-webkit-scrollbar-thumb:hover,
.dice-feed-list::-webkit-scrollbar-thumb:hover,
.gm-dashboard::-webkit-scrollbar-thumb:hover {
    background: var(--mp-border-light);
}

/* ============ RESPONSIVE DESIGN ============ */

@media (max-width: 1024px) {
    .session-sidebar {
        position: fixed;
        top: var(--mp-topbar-height);
        height: calc(100vh - var(--mp-topbar-height));
        z-index: 900;
        transform: translateX(-100%);
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
    }

    .session-sidebar.session-sidebar-right {
        right: 0;
        left: auto;
        transform: translateX(100%);
    }

    .session-sidebar.open {
        transform: translateX(0);
    }

    .session-sidebar.session-sidebar-right.open {
        transform: translateX(0);
    }

    .session-sidebar-left.open {
        animation: mp-slide-in-left 0.3s ease;
    }

    .session-sidebar-right.open {
        animation: mp-slide-in-right 0.3s ease;
    }

    .gm-dashboard {
        width: 100vw;
    }

    .combat-tracker-bar {
        max-height: 200px;
        overflow-y: auto;
    }
}

@media (max-width: 768px) {
    .lobby-actions {
        grid-template-columns: 1fr;
    }

    .lobby-container {
        padding: 24px 16px;
    }

    .lobby-header h1 {
        font-size: 1.6rem;
    }

    .lobby-card {
        padding: 20px;
    }

    .lobby-card .form-row {
        grid-template-columns: 1fr;
    }

    .session-top-bar {
        flex-wrap: wrap;
        height: auto;
        padding: 8px 12px;
        gap: 6px;
    }

    .session-info {
        flex-wrap: wrap;
        gap: 8px;
    }

    .session-actions {
        flex-wrap: wrap;
        gap: 4px;
    }

    .session-sidebar {
        width: 100vw;
        min-width: 100vw;
    }

    .gm-dashboard {
        width: 100vw;
    }

    .gm-quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }

    .combat-initiative-list {
        flex-wrap: nowrap;
    }

    .mp-horror-text {
        font-size: 2rem;
    }

    .room-code-badge {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .lobby-header h1 {
        font-size: 1.3rem;
    }

    .lobby-header .tentacle-icon {
        font-size: 2.2rem;
    }

    .gm-quick-actions {
        grid-template-columns: 1fr 1fr;
    }

    .mp-horror-text {
        font-size: 1.5rem;
    }

    .mp-handout-image {
        max-width: 95vw;
        max-height: 80vh;
    }
}

/* ============ UTILITY CLASSES ============ */

.mp-hidden {
    display: none !important;
}

.mp-overlay-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 899;
    animation: mp-fade-in 0.2s ease;
}

.mp-text-gold {
    color: var(--mp-accent-gold);
}

.mp-text-red {
    color: var(--mp-accent-red);
}

.mp-text-green {
    color: var(--mp-accent-green);
}

.mp-text-blue {
    color: var(--mp-accent-blue);
}

.mp-text-muted {
    color: var(--mp-text-muted);
}

.mp-divider {
    border: none;
    border-top: 1px solid var(--mp-border-color);
    margin: 12px 0;
}

.mp-empty-state {
    text-align: center;
    padding: 24px 16px;
    color: var(--mp-text-muted);
    font-size: 0.85rem;
    font-style: italic;
}

/* ===== Timer Overlay ===== */
.mp-timer-overlay {
    position: fixed;
    top: var(--mp-topbar-height);
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(10, 10, 15, 0.95) 0%, rgba(10, 10, 15, 0.85) 100%);
    border-bottom: 2px solid var(--mp-accent-red);
    padding: 12px 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    animation: mp-slide-down 0.3s ease;
    box-shadow: 0 4px 20px rgba(231, 76, 60, 0.3);
}

.mp-timer-overlay.mp-hidden {
    display: none;
}

.mp-timer-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mp-timer-label {
    color: var(--mp-text-secondary);
    font-family: var(--mp-font-body);
    font-size: 0.9rem;
}

.mp-timer-display {
    color: var(--mp-accent-red);
    font-family: var(--mp-font-display);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(231, 76, 60, 0.5);
}

.mp-timer-overlay.mp-timer-expired .mp-timer-display {
    color: #ff0000;
    animation: mp-timer-flash 0.5s ease infinite alternate;
}

@keyframes mp-slide-down {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes mp-timer-flash {
    from { opacity: 1; text-shadow: 0 0 10px rgba(255, 0, 0, 0.5); }
    to { opacity: 0.6; text-shadow: 0 0 30px rgba(255, 0, 0, 0.8); }
}

/* ===== Madness Overlay ===== */
.mp-madness-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    animation: mp-madness-appear 0.5s ease;
}

.mp-madness-overlay.mp-hidden {
    display: none;
}

.mp-madness-content {
    max-width: 500px;
    padding: 40px;
    text-align: center;
    border: 2px solid var(--mp-accent-red);
    border-radius: 8px;
    background: var(--mp-bg-dark);
    box-shadow: var(--mp-shadow-glow-red), 0 0 60px rgba(0, 0, 0, 0.8);
    animation: mp-madness-pulse 2s ease infinite;
}

.mp-madness-type-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--mp-accent-red);
    color: #fff;
    font-family: var(--mp-font-display);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 4px;
    margin-bottom: 20px;
}

.mp-madness-name {
    color: var(--mp-accent-gold-bright);
    font-family: var(--mp-font-display);
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.mp-madness-description {
    color: var(--mp-text-primary);
    font-family: var(--mp-font-body);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.mp-madness-duration {
    color: var(--mp-text-secondary);
    font-family: var(--mp-font-body);
    font-size: 0.85rem;
    font-style: italic;
    margin-bottom: 16px;
}

.mp-madness-delusion {
    color: var(--mp-accent-purple);
    font-family: var(--mp-font-body);
    font-size: 0.9rem;
    line-height: 1.5;
    padding: 12px;
    background: rgba(155, 89, 182, 0.1);
    border-left: 3px solid var(--mp-accent-purple);
    text-align: left;
    margin-bottom: 16px;
}

.mp-madness-dismiss {
    color: var(--mp-text-muted);
    font-size: 0.75rem;
    margin-top: 16px;
}

@keyframes mp-madness-appear {
    from { opacity: 0; }
    50% { opacity: 0; background: rgba(231, 76, 60, 0.3); }
    to { opacity: 1; background: rgba(0, 0, 0, 0.95); }
}

.mp-madness-fade-out {
    animation: mp-madness-fade-out 0.5s ease forwards;
}

@keyframes mp-madness-fade-out {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes mp-madness-pulse {
    0%, 100% { border-color: var(--mp-accent-red); box-shadow: var(--mp-shadow-glow-red); }
    50% { border-color: var(--mp-accent-purple); box-shadow: 0 0 20px rgba(155, 89, 182, 0.4); }
}

/* ===== Journal Panel ===== */
.mp-journal-panel {
    z-index: 50;
    display: none;
}

.mp-journal-panel.active {
    display: flex;
}

.mp-journal-toolbar {
    padding: 8px 12px;
    border-bottom: 1px solid var(--mp-border-color);
}

.mp-journal-entries {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.mp-journal-tag-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--mp-border-color);
}

.mp-tag-filter-badge {
    display: inline-block;
    padding: 2px 8px;
    background: var(--mp-bg-input);
    color: var(--mp-text-secondary);
    font-size: 0.7rem;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--mp-transition);
    border: 1px solid transparent;
}

.mp-tag-filter-badge:hover {
    background: var(--mp-bg-hover);
    color: var(--mp-text-primary);
}

.mp-tag-filter-badge.active {
    background: var(--mp-accent-gold-dim);
    color: var(--mp-accent-gold-bright);
    border-color: var(--mp-accent-gold);
}

.mp-journal-entry {
    background: var(--mp-bg-card);
    border: 1px solid var(--mp-border-color);
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 8px;
    transition: var(--mp-transition);
}

.mp-journal-entry:hover {
    border-color: var(--mp-border-light);
}

.mp-journal-entry.mp-journal-pinned {
    border-left: 3px solid var(--mp-accent-gold);
    background: rgba(212, 175, 55, 0.05);
}

.mp-journal-entry-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.mp-journal-author {
    color: var(--mp-accent-gold);
    font-size: 0.8rem;
    font-weight: 600;
}

.mp-journal-date {
    color: var(--mp-text-muted);
    font-size: 0.7rem;
    margin-left: auto;
}

.mp-journal-entry-header .mp-btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 2px 4px;
    opacity: 0.6;
    transition: var(--mp-transition);
}

.mp-journal-entry-header .mp-btn-icon:hover {
    opacity: 1;
}

.mp-journal-content {
    color: var(--mp-text-primary);
    font-size: 0.85rem;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
    margin-bottom: 8px;
}

.mp-journal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.mp-tag-badge {
    display: inline-block;
    padding: 1px 6px;
    background: var(--mp-bg-input);
    color: var(--mp-accent-blue);
    font-size: 0.65rem;
    border-radius: 8px;
    border: 1px solid var(--mp-border-color);
}

.mp-tag-badge.tag-hinweis { color: var(--mp-accent-gold); border-color: var(--mp-accent-gold-dim); }
.mp-tag-badge.tag-verdaechtig { color: var(--mp-accent-red); border-color: var(--mp-accent-red); }
.mp-tag-badge.tag-ort { color: var(--mp-accent-green); border-color: var(--mp-accent-green); }
.mp-tag-badge.tag-npc { color: var(--mp-accent-purple); border-color: var(--mp-accent-purple); }
.mp-tag-badge.tag-wichtig { color: var(--mp-accent-gold-bright); border-color: var(--mp-accent-gold); background: rgba(212, 175, 55, 0.1); }

/* ===== Voting Panel ===== */
.mp-voting-panel {
    z-index: 50;
    display: none;
}

.mp-voting-panel.active {
    display: flex;
}

.mp-voting-toolbar {
    padding: 8px 12px;
    border-bottom: 1px solid var(--mp-border-color);
}

.mp-voting-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.mp-vote-card {
    background: var(--mp-bg-card);
    border: 1px solid var(--mp-border-color);
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 10px;
    transition: var(--mp-transition);
}

.mp-vote-card.mp-vote-active {
    border-color: var(--mp-accent-gold-dim);
}

.mp-vote-card.mp-vote-closed {
    opacity: 0.65;
}

.mp-vote-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.mp-vote-question {
    color: var(--mp-text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    flex: 1;
}

.mp-vote-status-badge {
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mp-vote-status-badge.mp-vote-active {
    background: rgba(46, 204, 113, 0.15);
    color: var(--mp-accent-green);
}

.mp-vote-status-badge.mp-vote-closed {
    background: rgba(231, 76, 60, 0.15);
    color: var(--mp-accent-red);
}

.mp-vote-header .mp-btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--mp-accent-red);
    font-size: 0.85rem;
    opacity: 0.7;
    transition: var(--mp-transition);
}

.mp-vote-header .mp-btn-icon:hover {
    opacity: 1;
}

.mp-vote-options {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
}

.mp-vote-option {
    position: relative;
    padding: 8px 12px;
    background: var(--mp-bg-input);
    border: 1px solid var(--mp-border-color);
    border-radius: 4px;
    cursor: default;
    transition: var(--mp-transition);
    overflow: hidden;
}

.mp-vote-option.mp-vote-clickable {
    cursor: pointer;
}

.mp-vote-option.mp-vote-clickable:hover {
    border-color: var(--mp-accent-gold-dim);
    background: var(--mp-bg-hover);
}

.mp-vote-option.mp-vote-option-voted {
    border-color: var(--mp-accent-gold);
}

.mp-vote-option-text {
    position: relative;
    z-index: 1;
    color: var(--mp-text-primary);
    font-size: 0.85rem;
}

.mp-vote-result-bar {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    background: rgba(212, 175, 55, 0.1);
    transition: width 0.5s ease;
    pointer-events: none;
}

.mp-vote-result-fill {
    height: 100%;
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.05));
}

.mp-vote-count {
    display: block;
    margin-top: 4px;
    position: relative;
    z-index: 1;
    color: var(--mp-text-muted);
    font-size: 0.7rem;
}

.mp-vote-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mp-vote-total {
    color: var(--mp-text-secondary);
    font-size: 0.75rem;
}

.mp-vote-date {
    color: var(--mp-text-muted);
    font-size: 0.7rem;
}

/* ===== Sound Board ===== */
.mp-sound-board-modal .mp-modal-content {
    max-width: 600px;
}

.mp-sound-categories {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.mp-sound-cat-btn {
    padding: 6px 12px;
    background: var(--mp-bg-input);
    border: 1px solid var(--mp-border-color);
    color: var(--mp-text-secondary);
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: var(--mp-transition);
}

.mp-sound-cat-btn:hover {
    background: var(--mp-bg-hover);
    color: var(--mp-text-primary);
}

.mp-sound-cat-btn.active {
    background: var(--mp-accent-gold-dim);
    color: var(--mp-accent-gold-bright);
    border-color: var(--mp-accent-gold);
}

.mp-sound-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 8px;
    margin-bottom: 16px;
}

.mp-sound-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 8px;
    background: var(--mp-bg-card);
    border: 1px solid var(--mp-border-color);
    border-radius: 6px;
    cursor: pointer;
    transition: var(--mp-transition);
}

.mp-sound-card:hover {
    border-color: var(--mp-accent-gold-dim);
    background: var(--mp-bg-hover);
    transform: translateY(-1px);
}

.mp-sound-card-icon {
    font-size: 1.5rem;
}

.mp-sound-card-name {
    color: var(--mp-text-primary);
    font-size: 0.75rem;
    text-align: center;
}

.mp-sound-card-duration {
    color: var(--mp-text-muted);
    font-size: 0.65rem;
}

.mp-sound-indicator {
    position: fixed;
    top: calc(var(--mp-topbar-height) + 8px);
    right: 16px;
    z-index: 999;
    background: var(--mp-bg-card);
    border: 1px solid var(--mp-accent-gold-dim);
    border-radius: 20px;
    padding: 6px 14px;
    color: var(--mp-accent-gold);
    font-size: 0.8rem;
    animation: mp-fade-in 0.3s ease;
    box-shadow: var(--mp-shadow-glow-gold);
}

/* ===== Token Notification ===== */
.mp-token-float {
    position: fixed;
    z-index: 9000;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--mp-accent-gold-bright);
    font-family: var(--mp-font-display);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
    pointer-events: none;
    animation: mp-token-rise 2s ease forwards;
}

@keyframes mp-token-rise {
    0% { opacity: 1; transform: translateY(0) scale(1); }
    50% { opacity: 1; transform: translateY(-40px) scale(1.2); }
    100% { opacity: 0; transform: translateY(-80px) scale(0.8); }
}

/* ===== Bookmarks ===== */
.mp-bookmark-entry {
    display: flex;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--mp-border-color);
}

.mp-bookmark-entry:last-child {
    border-bottom: none;
}

.mp-bookmark-time {
    color: var(--mp-accent-gold);
    font-size: 0.75rem;
    font-family: var(--mp-font-display);
    min-width: 50px;
    white-space: nowrap;
}

.mp-bookmark-desc {
    color: var(--mp-text-primary);
    font-size: 0.85rem;
    line-height: 1.4;
}

/* ===== Pregen Characters ===== */
.mp-pregen-section {
    margin-top: 20px;
    padding: 16px;
    background: var(--mp-bg-card);
    border: 1px solid var(--mp-border-color);
    border-radius: 8px;
}

.mp-pregen-section h3 {
    color: var(--mp-accent-gold);
    font-family: var(--mp-font-display);
    margin-bottom: 12px;
    font-size: 1rem;
}

.mp-pregen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.mp-pregen-card {
    background: var(--mp-bg-input);
    border: 1px solid var(--mp-border-color);
    border-radius: 6px;
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--mp-transition);
}

.mp-pregen-card:hover {
    border-color: var(--mp-border-light);
}

.mp-pregen-name {
    color: var(--mp-text-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.mp-pregen-claim-btn {
    padding: 4px 10px;
    background: var(--mp-accent-gold-dim);
    color: var(--mp-accent-gold-bright);
    border: 1px solid var(--mp-accent-gold);
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    transition: var(--mp-transition);
}

.mp-pregen-claim-btn:hover {
    background: var(--mp-accent-gold);
    color: var(--mp-bg-dark);
}

.mp-pregen-claimed {
    color: var(--mp-text-muted);
    font-size: 0.75rem;
    font-style: italic;
}

/* ===== Session Summary ===== */
.mp-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 16px 0;
}

.mp-summary-card {
    background: var(--mp-bg-card);
    border: 1px solid var(--mp-border-color);
    border-radius: 6px;
    padding: 16px;
    text-align: center;
}

.mp-summary-value {
    color: var(--mp-accent-gold-bright);
    font-family: var(--mp-font-display);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.mp-summary-label {
    color: var(--mp-text-secondary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .mp-summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .mp-summary-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Combat: New Actions & Surprise ===== */
.mp-combat-action-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0;
}

.mp-combat-action-btn {
    padding: 6px 12px;
    background: var(--mp-bg-input);
    border: 1px solid var(--mp-border-color);
    color: var(--mp-text-secondary);
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: var(--mp-transition);
}

.mp-combat-action-btn:hover {
    background: var(--mp-bg-hover);
    color: var(--mp-text-primary);
    border-color: var(--mp-accent-gold-dim);
}

.mp-combat-action-btn.mp-action-attack { border-color: var(--mp-accent-red); }
.mp-combat-action-btn.mp-action-maneuver { border-color: var(--mp-accent-blue); }
.mp-combat-action-btn.mp-action-flee { border-color: var(--mp-accent-green); }
.mp-combat-action-btn.mp-action-spell { border-color: var(--mp-accent-purple); }
.mp-combat-action-btn.mp-action-item { border-color: var(--mp-accent-gold); }

.mp-surprise-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(231, 76, 60, 0.15);
    color: var(--mp-accent-red);
    border: 1px solid var(--mp-accent-red);
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    animation: mp-pulse-gold 1.5s ease infinite;
}

/* ===== Character Approval ===== */
.mp-approval-actions {
    display: flex;
    gap: 6px;
    margin-top: 6px;
}

.mp-approval-btn {
    padding: 4px 10px;
    border: 1px solid var(--mp-border-color);
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    transition: var(--mp-transition);
}

.mp-approval-btn.mp-approve {
    background: rgba(46, 204, 113, 0.15);
    color: var(--mp-accent-green);
    border-color: var(--mp-accent-green);
}

.mp-approval-btn.mp-approve:hover {
    background: var(--mp-accent-green);
    color: #fff;
}

.mp-approval-btn.mp-reject {
    background: rgba(231, 76, 60, 0.15);
    color: var(--mp-accent-red);
    border-color: var(--mp-accent-red);
}

.mp-approval-btn.mp-reject:hover {
    background: var(--mp-accent-red);
    color: #fff;
}

/* ===== GM-only Elements ===== */
.gm-only {
    display: none;
}

body.mp-role-gm .gm-only {
    display: inline-block;
}

body.mp-role-gm .gm-only.flex {
    display: flex;
}

body.mp-role-gm .gm-only.grid {
    display: grid;
}

/* ===== Floating Notifications ===== */
.mp-float-notification {
    position: fixed;
    top: calc(var(--mp-topbar-height) + 16px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 9000;
    padding: 12px 24px;
    border-radius: 8px;
    font-family: var(--mp-font-body);
    font-size: 0.9rem;
    animation: mp-fade-in 0.3s ease;
    pointer-events: none;
    text-align: center;
    max-width: 400px;
}

.mp-float-notification.mp-notification-mythos {
    background: rgba(155, 89, 182, 0.2);
    border: 1px solid var(--mp-accent-purple);
    color: #d4a0e8;
    box-shadow: 0 0 15px rgba(155, 89, 182, 0.3);
}

.mp-float-notification.mp-notification-luck {
    background: rgba(212, 175, 55, 0.2);
    border: 1px solid var(--mp-accent-gold);
    color: var(--mp-accent-gold-bright);
    box-shadow: var(--mp-shadow-glow-gold);
}

.mp-float-notification.mp-notification-luck-fail {
    background: rgba(231, 76, 60, 0.2);
    border: 1px solid var(--mp-accent-red);
    color: var(--mp-accent-red);
}

.mp-float-notification.mp-notification-token {
    background: rgba(212, 175, 55, 0.2);
    border: 1px solid var(--mp-accent-gold);
    color: var(--mp-accent-gold-bright);
    box-shadow: var(--mp-shadow-glow-gold);
}

/* TODO: M6 - mp-clue-* styles defined but no HTML uses them yet. Remove or implement. */
/* ===== Clue / Investigation System ===== */
.mp-clue-list {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 8px;
}

.mp-clue-empty {
    text-align: center;
    color: var(--mp-text-muted);
    font-size: 0.8rem;
    padding: 16px;
}

.mp-clue-card {
    background: var(--mp-bg-card);
    border: 1px solid var(--mp-border-color);
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 6px;
    transition: var(--mp-transition);
}

.mp-clue-card:hover {
    border-color: var(--mp-border-light);
}

.mp-clue-card.mp-clue-discovered {
    border-left: 3px solid var(--mp-accent-green);
    background: rgba(46, 204, 113, 0.03);
}

.mp-clue-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.mp-clue-type {
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 3px;
    background: rgba(212, 175, 55, 0.15);
    color: var(--mp-accent-gold-bright);
    white-space: nowrap;
}

.mp-clue-title {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--mp-text-primary);
}

.mp-clue-meta {
    display: flex;
    gap: 8px;
    font-size: 0.7rem;
    color: var(--mp-text-muted);
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.mp-clue-difficulty {
    padding: 1px 5px;
    border-radius: 3px;
    background: rgba(52, 152, 219, 0.15);
    color: #5dade2;
}

.mp-clue-skill {
    color: var(--mp-accent-gold);
}

.mp-clue-found {
    color: var(--mp-accent-green);
    font-weight: 600;
}

.mp-clue-desc {
    font-size: 0.8rem;
    color: var(--mp-text-secondary);
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px solid var(--mp-border-color);
}

.mp-clue-actions {
    display: flex;
    gap: 4px;
    margin-top: 6px;
}

/* ===== Initiative Drag-to-Reorder ===== */
.mp-combat-turn-draggable {
    cursor: grab;
}

.mp-combat-turn-draggable:active {
    cursor: grabbing;
}

.mp-combat-turn-dragging {
    opacity: 0.4;
    transform: scale(0.95);
    border: 2px dashed var(--mp-accent-gold) !important;
}

.mp-combat-turn-drag-over {
    border: 2px solid var(--mp-accent-gold) !important;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
    transform: scale(1.03);
}

.mp-combat-turn-dead {
    opacity: 0.4;
    background: rgba(231, 76, 60, 0.08);
    text-decoration: line-through;
}

.mp-turn-dead-badge {
    font-size: 0.8rem;
    margin-left: 4px;
}

/* ===== Death Animation ===== */
.mp-death-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: mp-death-appear 0.5s ease;
    pointer-events: none;
}

.mp-death-content {
    text-align: center;
    animation: mp-death-pulse 1.5s ease-in-out infinite;
}

.mp-death-skull {
    font-size: 6rem;
    animation: mp-death-skull-shake 0.5s ease-in-out;
}

.mp-death-text {
    font-family: var(--mp-font-display);
    font-size: 2rem;
    color: #c0392b;
    text-shadow: 0 0 20px rgba(231, 76, 60, 0.6);
    margin-top: 16px;
}

.mp-blood-drips {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.mp-blood-drip {
    display: inline-block;
    width: 4px;
    height: 0;
    background: #8b0000;
    border-radius: 0 0 4px 4px;
    animation: mp-blood-drip-anim 2s ease-in forwards;
}

.mp-blood-drip:nth-child(2) {
    animation-delay: 0.3s;
}

.mp-blood-drip:nth-child(3) {
    animation-delay: 0.6s;
}

.mp-death-fade-out {
    animation: mp-death-fade-out 2s ease forwards;
}

@keyframes mp-death-appear {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes mp-death-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes mp-death-skull-shake {
    0% { transform: rotate(0); }
    20% { transform: rotate(-10deg); }
    40% { transform: rotate(10deg); }
    60% { transform: rotate(-5deg); }
    80% { transform: rotate(5deg); }
    100% { transform: rotate(0); }
}

@keyframes mp-blood-drip-anim {
    0% { height: 0; }
    100% { height: 80px; }
}

@keyframes mp-death-fade-out {
    from { opacity: 1; }
    to { opacity: 0; }
}

.mp-player-dead {
    opacity: 0.5;
    border-color: #8b0000 !important;
    position: relative;
}

.mp-player-dead::after {
    content: '💀';
    position: absolute;
    top: 4px;
    right: 4px;
    font-size: 1.2rem;
}

/* ===== Scenario Packs ===== */
.mp-scenario-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--mp-border-color);
    padding-bottom: 4px;
}

.mp-scenario-tab {
    padding: 6px 14px;
    border: 1px solid var(--mp-border-color);
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    background: transparent;
    color: var(--mp-text-muted);
    cursor: pointer;
    font-size: 0.8rem;
    transition: var(--mp-transition);
}

.mp-scenario-tab.mp-active {
    background: var(--mp-bg-card);
    color: var(--mp-accent-gold-bright);
    border-color: var(--mp-accent-gold);
    border-bottom: 1px solid var(--mp-bg-card);
    margin-bottom: -1px;
}

.mp-scenario-panel {
    min-height: 150px;
}

.mp-scenario-list {
    max-height: 400px;
    overflow-y: auto;
}

.mp-scenario-loading,
.mp-scenario-empty {
    text-align: center;
    color: var(--mp-text-muted);
    padding: 24px;
    font-size: 0.85rem;
}

.mp-scenario-card {
    background: var(--mp-bg-card);
    border: 1px solid var(--mp-border-color);
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 8px;
    transition: var(--mp-transition);
}

.mp-scenario-card:hover {
    border-color: var(--mp-border-light);
}

.mp-scenario-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.mp-scenario-card-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--mp-text-primary);
}

.mp-scenario-era {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 3px;
    background: rgba(155, 89, 182, 0.15);
    color: #bb8fce;
}

.mp-scenario-card-desc {
    font-size: 0.8rem;
    color: var(--mp-text-secondary);
    margin-bottom: 6px;
}

.mp-scenario-card-meta {
    display: flex;
    gap: 10px;
    font-size: 0.7rem;
    color: var(--mp-text-muted);
    margin-bottom: 8px;
}

.mp-scenario-import-btn {
    width: 100%;
}

@keyframes mp-pulse-gold {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(201, 168, 76, 0.4);
    }
    50% {
        box-shadow: 0 0 8px 2px rgba(201, 168, 76, 0.7);
    }
}

/* ===== Multiplayer UI (migrated from style.css - M9) ===== */

.mp-player-card {
    background: var(--mp-bg-card);
    border: 1px solid var(--mp-border-color);
    border-radius: 6px;
    padding: 10px 12px;
    margin-bottom: 8px;
    transition: border-color 0.2s;
}

.mp-player-card:hover {
    border-color: var(--mp-accent-gold);
}

.mp-player-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.mp-player-icon {
    font-size: 1.1rem;
}

.mp-player-name {
    font-weight: 600;
    color: var(--mp-text-primary);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mp-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.mp-status-dot.mp-online {
    background: var(--mp-accent-green);
    box-shadow: 0 0 6px rgba(74, 124, 89, 0.6);
}

.mp-status-dot.mp-offline {
    background: var(--mp-accent-red);
    box-shadow: 0 0 6px rgba(139, 58, 58, 0.6);
}

.mp-stat-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
    font-size: 0.8rem;
}

.mp-stat-label {
    color: var(--mp-text-secondary);
    width: 28px;
    text-align: right;
}

.mp-bar-track {
    flex: 1;
    height: 6px;
    background: var(--mp-bg-dark);
    border-radius: 3px;
    overflow: hidden;
}

.mp-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.4s ease;
}

.mp-hp-fill {
    background: linear-gradient(90deg, var(--mp-accent-green), var(--mp-accent-red));
}

.mp-san-fill {
    background: linear-gradient(90deg, var(--mp-accent-purple), var(--mp-accent-blue-bright));
}

.mp-stat-value {
    color: var(--mp-text-secondary);
    font-size: 0.75rem;
    width: 44px;
    text-align: left;
}

.mp-conditions {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}

.mp-condition-tag {
    background: rgba(139, 58, 58, 0.3);
    color: var(--mp-accent-red-bright);
    border: 1px solid var(--mp-accent-red);
    border-radius: 3px;
    padding: 1px 6px;
    font-size: 0.7rem;
}

/* Dice Feed */
.mp-dice-entry {
    background: var(--mp-bg-card);
    border: 1px solid var(--mp-border-color);
    border-radius: 4px;
    padding: 6px 10px;
    margin-bottom: 6px;
    font-size: 0.85rem;
}

.mp-dice-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3px;
}

.mp-dice-player {
    color: var(--mp-accent-gold);
    font-weight: 500;
}

.mp-dice-time {
    color: var(--mp-text-secondary);
    font-size: 0.7rem;
}

.mp-dice-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mp-dice-skill {
    color: var(--mp-text-primary);
}

.mp-dice-result {
    font-weight: 700;
    font-size: 1.1rem;
    font-family: 'Cinzel', Georgia, serif;
}

.mp-roll-critical, .mp-float-critical { color: var(--mp-accent-gold-bright); text-shadow: 0 0 8px rgba(212, 176, 80, 0.5); }
.mp-roll-hard, .mp-roll-extreme { color: var(--mp-accent-blue-bright); }
.mp-roll-regular { color: var(--mp-accent-green-bright); }
.mp-roll-fail, .mp-float-fail { color: var(--mp-accent-red-bright); }
.mp-roll-fumble, .mp-float-fumble { color: #ff4444; text-shadow: 0 0 8px rgba(255, 0, 0, 0.4); }
.mp-float-success { color: var(--mp-accent-green-bright); }

.mp-dice-label {
    font-size: 0.75rem;
    margin-top: 2px;
}

/* Floating Dice Result */
.mp-dice-float {
    position: fixed;
    top: 80px;
    right: 20px;
    background: var(--mp-bg-card);
    border: 2px solid var(--mp-accent-gold);
    border-radius: 8px;
    padding: 12px 18px;
    z-index: 10000;
    text-align: center;
    box-shadow: 0 4px 20px var(--mp-shadow-dark);
    animation: mp-slide-in 0.3s ease;
    transition: opacity 0.5s;
}

.mp-float-name {
    color: var(--mp-accent-gold);
    font-size: 0.8rem;
}

.mp-float-roll {
    font-size: 2rem;
    font-family: 'Cinzel', Georgia, serif;
    font-weight: 700;
}

.mp-float-label {
    font-size: 0.85rem;
}

.mp-float-fade {
    opacity: 0;
}

@keyframes mp-slide-in {
    from { transform: translateX(40px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Combat Tracker */
.mp-combat-header h4 {
    color: var(--mp-accent-red-bright);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.mp-combat-empty, .mp-scene-empty, .mp-npc-empty {
    color: var(--mp-text-secondary);
    font-style: italic;
    padding: 12px;
    text-align: center;
}

.mp-combat-turn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 4px;
    margin-bottom: 3px;
    background: var(--mp-bg-card);
    border: 1px solid transparent;
    transition: all 0.2s;
}

.mp-combat-turn.mp-active-turn {
    background: rgba(184, 150, 62, 0.15);
    border-color: var(--mp-accent-gold);
}

.mp-turn-icon { font-size: 0.9rem; }
.mp-turn-name { flex: 1; color: var(--mp-text-primary); }
.mp-turn-init { color: var(--mp-text-secondary); font-size: 0.85rem; }
.mp-turn-active-indicator { color: var(--mp-accent-gold); font-weight: 700; }

.mp-combat-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.mp-combat-log {
    margin-top: 12px;
    border-top: 1px solid var(--mp-border-color);
    padding-top: 8px;
}

.mp-combat-log h5 {
    font-size: 0.85rem;
    color: var(--mp-text-secondary);
    margin-bottom: 6px;
}

.mp-combat-log-entry {
    font-size: 0.8rem;
    color: var(--mp-text-secondary);
    padding: 2px 0;
    border-bottom: 1px solid rgba(42, 42, 74, 0.3);
}

/* Scene */
.mp-scene-canvas {
    border: 1px solid var(--mp-border-color);
    border-radius: 4px;
    cursor: grab;
    display: block;
    max-width: 100%;
}

.mp-scene-canvas:active {
    cursor: grabbing;
}

/* NPC List */
.mp-npc-card {
    background: var(--mp-bg-card);
    border: 1px solid var(--mp-border-color);
    border-radius: 4px;
    padding: 8px 12px;
    margin-bottom: 6px;
}

.mp-npc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.mp-npc-name {
    font-weight: 600;
    color: var(--mp-text-primary);
}

.mp-npc-type {
    font-size: 0.75rem;
    color: var(--mp-text-secondary);
    background: var(--mp-bg-dark);
    padding: 1px 8px;
    border-radius: 3px;
}

.mp-npc-stats {
    display: flex;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--mp-text-secondary);
}

.mp-npc-revealed-badge {
    display: inline-block;
    font-size: 0.7rem;
    color: var(--mp-accent-green-bright);
    background: rgba(74, 124, 89, 0.2);
    padding: 1px 6px;
    border-radius: 3px;
    margin-top: 4px;
}

.mp-npc-actions {
    display: flex;
    gap: 6px;
    margin-top: 6px;
}

/* Buttons */
.mp-btn {
    background: var(--mp-bg-card);
    border: 1px solid var(--mp-border-color);
    color: var(--mp-text-primary);
    padding: 6px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.mp-btn:hover {
    border-color: var(--mp-accent-gold);
    color: var(--mp-text-primary);
}

.mp-btn-primary {
    background: rgba(184, 150, 62, 0.2);
    border-color: var(--mp-accent-gold);
    color: var(--mp-accent-gold-bright);
}

.mp-btn-primary:hover {
    background: rgba(184, 150, 62, 0.35);
}

.mp-btn-danger {
    border-color: var(--mp-accent-red);
    color: var(--mp-accent-red-bright);
}

.mp-btn-danger:hover {
    background: rgba(139, 58, 58, 0.25);
}

.mp-btn-sm {
    padding: 3px 10px;
    font-size: 0.78rem;
}

/* Overlays */
.mp-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.mp-overlay.mp-overlay-visible {
    opacity: 1;
    pointer-events: all;
}

.mp-horror-overlay {
    background: rgba(5, 0, 0, 0.97);
    flex-direction: column;
}

.mp-horror-image {
    max-width: 80vw;
    max-height: 60vh;
    object-fit: contain;
    border: 2px solid var(--mp-accent-red);
    box-shadow: 0 0 40px rgba(139, 58, 58, 0.4);
    margin-bottom: 20px;
}

.mp-horror-text {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 1.6rem;
    color: var(--mp-accent-red-bright);
    text-shadow: 0 0 20px rgba(196, 80, 80, 0.6);
    text-align: center;
    max-width: 80vw;
    line-height: 1.5;
    animation: mp-horror-pulse 3s ease-in-out infinite;
}

@keyframes mp-horror-pulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; text-shadow: 0 0 30px rgba(196, 80, 80, 0.8); }
}

.mp-handout-overlay {
    background: rgba(0, 0, 0, 0.92);
}

.mp-handout-content {
    background: var(--mp-bg-card);
    border: 2px solid var(--mp-accent-gold);
    border-radius: 8px;
    padding: 20px;
    max-width: 85vw;
    max-height: 85vh;
    overflow: auto;
    text-align: center;
}

.mp-handout-title {
    font-family: 'Cinzel', Georgia, serif;
    color: var(--mp-accent-gold);
    margin-bottom: 16px;
    font-size: 1.3rem;
}

.mp-handout-image {
    max-width: 100%;
    max-height: 60vh;
    object-fit: contain;
    border-radius: 4px;
    margin-bottom: 12px;
}

.mp-handout-text {
    color: var(--mp-text-primary);
    line-height: 1.6;
    white-space: pre-wrap;
    text-align: left;
}

.mp-overlay-close {
    position: absolute;
    bottom: 30px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--mp-border-color);
    color: var(--mp-text-primary);
    padding: 10px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.mp-overlay-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--mp-accent-gold);
}

/* SAN Flash */
.mp-san-flash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(139, 0, 0, calc(var(--mp-flash-intensity, 0.5) * 0.7)), rgba(80, 0, 0, calc(var(--mp-flash-intensity, 0.5) * 0.9)));
    z-index: 99999;
    pointer-events: none;
    animation: mp-san-shake 0.3s ease;
}

.mp-san-flash-fade {
    opacity: 0;
    transition: opacity 1s ease;
}

@keyframes mp-san-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Whisper */
.mp-whisper-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, var(--mp-bg-card), rgba(107, 74, 143, 0.3));
    border: 2px solid var(--mp-accent-purple);
    border-radius: 8px;
    padding: 16px 24px;
    z-index: 50000;
    text-align: center;
    box-shadow: 0 0 30px rgba(107, 74, 143, 0.4);
    animation: mp-slide-in 0.3s ease;
    max-width: 400px;
}

.mp-whisper-header {
    font-family: 'Cinzel', Georgia, serif;
    color: var(--mp-accent-purple);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.mp-whisper-body {
    color: var(--mp-text-primary);
    margin-bottom: 12px;
    line-height: 1.5;
}

.mp-whisper-fade {
    opacity: 0;
    transition: opacity 0.5s;
}

/* Group Roll Modal */
.mp-group-roll-overlay {
    background: rgba(0, 0, 0, 0.85);
}

.mp-group-roll-modal {
    background: var(--mp-bg-card);
    border: 2px solid var(--mp-accent-gold);
    border-radius: 8px;
    padding: 24px 32px;
    text-align: center;
    max-width: 400px;
}

.mp-group-roll-modal h3 {
    color: var(--mp-accent-gold);
    margin-bottom: 12px;
}

.mp-group-roll-skill {
    font-size: 1.3rem;
    color: var(--mp-text-primary);
    font-family: 'Cinzel', Georgia, serif;
    margin-bottom: 8px;
}

.mp-group-roll-msg {
    color: var(--mp-text-secondary);
    margin-bottom: 16px;
}

.mp-group-roll-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* NPC Edit Modal */
.mp-modal {
    background: var(--mp-bg-card);
    border: 2px solid var(--mp-border-light);
    border-radius: 8px;
    padding: 24px;
    max-width: 500px;
    width: 90vw;
    max-height: 80vh;
    overflow-y: auto;
}

.mp-modal h3 {
    color: var(--mp-accent-gold);
    margin-bottom: 16px;
}

.mp-form-group {
    margin-bottom: 12px;
}

.mp-form-group label {
    display: block;
    color: var(--mp-text-secondary);
    margin-bottom: 4px;
    font-size: 0.85rem;
}

.mp-form-group input,
.mp-form-group textarea {
    width: 100%;
    background: var(--mp-bg-input);
    border: 1px solid var(--mp-border-color);
    color: var(--mp-text-primary);
    padding: 8px 10px;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.9rem;
}

.mp-form-group textarea {
    min-height: 80px;
    resize: vertical;
}

.mp-modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

/* NPC Reveal Notification */
.mp-npc-reveal-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--mp-bg-card);
    border: 2px solid var(--mp-accent-gold);
    border-radius: 8px;
    padding: 12px 24px;
    z-index: 50000;
    text-align: center;
    animation: mp-slide-in 0.5s ease;
    box-shadow: 0 4px 20px var(--mp-shadow-dark);
}

.mp-npc-reveal-label {
    color: var(--mp-text-secondary);
    font-size: 0.8rem;
}

.mp-npc-reveal-name {
    font-family: 'Cinzel', Georgia, serif;
    color: var(--mp-accent-gold);
    font-size: 1.1rem;
}

.mp-npc-reveal-fade {
    opacity: 0;
    transition: opacity 1s;
}
