:root {
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --text-color: #e0e0e0;
    --primary: #ff2a5f;
    --picas: #2ecc71;
    --corazones: #ff2a5f;
    --treboles: #3498db;
    --diamantes: #f1c40f;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0;
    padding: 15px;
    line-height: 1.4;
}

.container {
    max-width: 600px;
    margin: 0 auto;
}

h1 {
    color: var(--primary);
    text-align: center;
    text-transform: uppercase;
    font-size: 24px;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.subtitle {
    display: block;
    text-align: center;
    font-style: italic;
    color: #888;
    font-size: 13px;
    margin-bottom: 20px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.subtitle:hover {
    color: var(--primary);
    text-decoration: underline;
    text-shadow: 0 0 6px rgba(255, 42, 95, 0.5);
}

.panel {
    background-color: var(--card-bg);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.hidden { display: none !important; }

button {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    font-size: 15px;
    font-weight: bold;
    width: 100%;
    cursor: pointer;
    margin-top: 10px;
    text-transform: uppercase;
}

button:active { opacity: 0.8; }

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 14px;
}

.checkbox-container input {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
}

.status-bar {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #aaa;
    border-bottom: 1px solid #333;
    padding-bottom: 8px;
    margin-bottom: 15px;
}

.card-display {
    text-align: center;
    font-size: 70px;
    font-weight: bold;
    margin: 20px 0;
    min-height: 90px;
    line-height: 90px;
}

.picas-text { color: var(--picas); }
.corazones-text { color: var(--corazones); }
.treboles-text { color: var(--treboles); }
.diamantes-text { color: var(--diamantes); }

.action-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    border-bottom: 1px solid #444;
    padding-bottom: 5px;
}

.action-desc {
    font-size: 14px;
    background-color: #151515;
    padding: 12px;
    border-radius: 5px;
    border-left: 3px solid var(--primary);
}

.secret-alert {
    background-color: #2a151b;
    border: 1px dashed var(--primary);
    color: #ff80a0;
    padding: 10px;
    border-radius: 5px;
    font-size: 13px;
    text-align: center;
    margin-bottom: 15px;
}

.spoiler-box {
    background-color: #1a1a1a;
    border: 1px solid #444;
    border-radius: 5px;
    padding: 12px;
    margin: 15px 0;
}

.spoiler-btn {
    background-color: #333;
    color: #ff2a5f;
    border: 1px dashed #ff2a5f;
    text-transform: none;
    font-size: 13px;
    padding: 8px;
    margin-top: 0;
}

.inventory {
    margin-top: 20px;
    border-top: 1px solid #333;
    padding-top: 15px;
}

.inventory-title {
    font-size: 14px;
    color: #888;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.player-hand {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.hand-card {
    background-color: #2a2a2a;
    border: 1px solid #444;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
}

.hand-card:hover {
    background-color: var(--primary);
    color: white;
}

.top-bar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
}

.lang-selector {
    font-size: 13px;
    font-weight: bold;
    color: #888;
    user-select: none;
}

.lang-btn {
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    color: var(--primary);
}

.lang-btn.active {
    color: white;
    background-color: var(--primary);
}

.lang-separator {
    margin: 0 4px;
    color: #444;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 15px;
}

.input-group label {
    font-size: 13px;
    font-weight: bold;
    color: #aaa;
}

.input-group input,
.input-group select {
    background-color: #151515;
    border: 1px solid #333;
    border-radius: 5px;
    color: white;
    padding: 10px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.input-group input:focus,
.input-group select:focus {
    border-color: var(--primary);
    outline: none;
}

/* HOT O METER STYLES */
.hot-title {
    font-size: 13px;
    font-weight: bold;
    color: #aaa;
    margin-bottom: 5px;
}

.chili-row {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.chili-icon {
    font-size: 24px;
    cursor: pointer;
    filter: grayscale(100%) opacity(40%);
    transition: all 0.2s ease;
    user-select: none;
}

.chili-icon:hover {
    filter: grayscale(0%) opacity(80%) drop-shadow(0 0 4px orange);
    transform: scale(1.15);
}

.chili-icon.active {
    filter: grayscale(0%) opacity(100%) drop-shadow(0 0 6px red);
}

.spice-label {
    font-size: 12px;
    color: #888;
    align-self: center;
    font-style: italic;
    margin-left: 10px;
}

/* MASKED CARD STYLES */
.hand-card.masked {
    background-color: #1a1a1a;
    border: 1px dashed #333;
    color: #555;
    cursor: not-allowed;
}

.hand-card.masked:hover {
    background-color: #1a1a1a;
    color: #555;
}

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

.mini-chili-row {
    margin-bottom: 0 !important;
}

.mini-chili-row .chili-icon {
    font-size: 16px !important;
}

/* MODAL OVERLAY & POPUP STYLES */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.modal-content {
    background: linear-gradient(135deg, #1e1e1e 0%, #121212 100%);
    border: 1px solid #333;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    border-radius: 12px;
    width: 90%;
    max-width: 420px;
    padding: 25px;
    position: relative;
    text-align: center;
    transform: scale(1);
    transition: transform 0.3s ease;
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: #888;
    cursor: pointer;
    transition: color 0.2s ease;
}

.modal-close-btn:hover {
    color: var(--primary);
}

.modal-svg-container {
    margin: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 160px;
}

.btn-guide {
    background-color: #2c3e50;
    border: 1px solid #34495e;
    color: #ecf0f1;
    padding: 6px 12px;
    font-size: 11px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
}

.btn-guide:hover {
    background-color: #34495e;
    box-shadow: 0 0 8px rgba(52, 152, 219, 0.4);
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.anal-toggle-container {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #aaa;
    cursor: pointer;
    user-select: none;
}

.anal-toggle-container input {
    cursor: pointer;
    width: 14px;
    height: 14px;
    accent-color: var(--primary);
    margin: 0;
}

.age-gate-content {
    border-color: rgba(231, 76, 60, 0.4) !important;
    box-shadow: 0 10px 35px rgba(231, 76, 60, 0.15) !important;
}

.btn-video {
    background-color: #8e44ad;
    color: white;
    border: none;
    padding: 12px 15px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
    width: auto;
}

.btn-video:hover {
    background-color: #9b59b6;
    box-shadow: 0 0 8px rgba(155, 89, 182, 0.5);
    transform: scale(1.05);
}

/* ORGASM TRACKER STYLES */
.orgasm-tracker-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.orgasm-track-btn {
    flex: 1;
    background-color: #1a1a1a;
    border: 1px solid #444;
    color: #bbb;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 0;
    text-transform: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.25s ease;
}

.orgasm-track-btn:hover {
    border-color: var(--primary);
    color: white;
}

.orgasm-track-btn.reached {
    background: linear-gradient(135deg, #c0392b 0%, #ff2a5f 100%);
    border-color: #ff2a5f;
    color: white;
    box-shadow: 0 0 10px rgba(255, 42, 95, 0.5);
    animation: pulseGlow 2s infinite alternate;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 8px rgba(255, 42, 95, 0.4); }
    100% { box-shadow: 0 0 16px rgba(255, 42, 95, 0.8); }
}

.btn-score-partner {
    background: linear-gradient(135deg, #8e44ad, #ff2a5f);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
    text-transform: none;
    box-shadow: 0 4px 12px rgba(255, 42, 95, 0.3);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-score-partner:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(255, 42, 95, 0.5);
}

/* GAME OVER PANEL STYLES */
.game-over-panel {
    background: linear-gradient(135deg, #2a0813 0%, #15050a 100%);
    border: 2px solid var(--primary);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    margin-top: 15px;
    box-shadow: 0 0 25px rgba(255, 42, 95, 0.4);
    animation: fadeIn 0.4s ease;
}

.game-over-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.game-over-title {
    font-size: 20px;
    font-weight: bold;
    color: #ff2a5f;
    margin-bottom: 10px;
    letter-spacing: 1px;
    text-shadow: 0 0 8px rgba(255, 42, 95, 0.6);
}

.game-over-desc {
    font-size: 14px;
    color: #eee;
    line-height: 1.5;
    margin-bottom: 20px;
}

.game-over-stats {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 15px;
}

.stat-badge {
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    color: #ddd;
}

/* SESSION TIMELINE / ROUTE MAP STYLES */
.session-path-container {
    margin-top: 20px;
    background-color: #161616;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 12px;
}

.session-path-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #2a2a2a;
    padding-bottom: 8px;
    margin-bottom: 12px;
}

.path-badge {
    background-color: #222;
    border: 1px solid #444;
    color: #aaa;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 10px;
}

.path-timeline {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 220px;
    overflow-y: auto;
    padding-right: 5px;
}

.final-path-timeline {
    max-height: 300px;
}

.path-node {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #1e1e1e;
    border: 1px solid #333;
    border-left: 4px solid #555;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 13px;
    transition: all 0.2s ease;
}

.path-node.picas { border-left-color: var(--picas); }
.path-node.corazones { border-left-color: var(--corazones); }
.path-node.treboles { border-left-color: var(--treboles); }
.path-node.diamantes { border-left-color: var(--diamantes); }

.path-node.has-orgasm {
    background: linear-gradient(135deg, #2c0e18 0%, #1e1e1e 100%);
    border-color: #ff2a5f;
    box-shadow: 0 0 8px rgba(255, 42, 95, 0.4);
}

.path-step-num {
    font-size: 11px;
    font-weight: bold;
    color: #777;
    min-width: 24px;
}

.path-card-val {
    font-size: 15px;
    font-weight: bold;
    min-width: 38px;
}

.path-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.path-player-tag {
    font-size: 11px;
    color: #999;
    font-weight: bold;
}

.path-action-title {
    font-size: 12px;
    color: #ddd;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.path-orgasm-tag {
    background: linear-gradient(135deg, #c0392b, #ff2a5f);
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 3px 7px;
    border-radius: 4px;
    box-shadow: 0 0 6px rgba(255, 42, 95, 0.6);
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-top: 3px;
}

.btn-end-session {
    background-color: #c0392b;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 0;
    text-transform: none;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

.btn-end-session:hover {
    background-color: #e74c3c;
    box-shadow: 0 0 8px rgba(231, 76, 60, 0.5);
}

/* MULTIPLAYER STYLES */
.game-connection-status {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #1a1a1a;
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid #333;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.status-dot.connected {
    background-color: #2ecc71;
    box-shadow: 0 0 6px #2ecc71;
}

.status-dot.disconnected {
    background-color: #e74c3c;
    box-shadow: 0 0 6px #e74c3c;
}

.btn-mini {
    background-color: #333;
    border: 1px solid #444;
    color: white;
    font-size: 14px;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    width: auto;
    margin-top: 0;
    text-transform: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.btn-mini:hover {
    background-color: var(--primary);
    border-color: var(--primary);
}

#setup-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

/* INACTIVITY COUNTDOWN CLOCK STYLES */
.inactivity-clock {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background-color: rgba(255, 42, 95, 0.15);
    border: 1px solid rgba(255, 42, 95, 0.3);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    color: #ff2a5f;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.inactivity-clock.warning {
    background-color: rgba(231, 76, 60, 0.3);
    border-color: #e74c3c;
    color: #fff;
    animation: clock-pulse 1s infinite alternate;
}

@keyframes clock-pulse {
    0% {
        box-shadow: 0 0 2px rgba(231, 76, 60, 0.4);
        transform: scale(1);
    }
    100% {
        box-shadow: 0 0 8px rgba(231, 76, 60, 0.8);
        transform: scale(1.05);
    }
}






