/* Game Specific Overlays */

/* Volleyball / Kanduka Kridha Scoreboard */
#volleyballScoreboard {
    position: absolute;
    top: 72px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 8px 24px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.9);
    border: 2px solid var(--gold);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px var(--gold-glow);
    z-index: 35;
}

.team-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-name {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
}

.team-score {
    font-size: 1.8rem;
    font-weight: 900;
    font-family: 'Cinzel', serif;
}

.score-player {
    color: #38bdf8;
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.6);
}

.score-krishna {
    color: #facc15;
    text-shadow: 0 0 10px rgba(250, 204, 21, 0.6);
}

.vs-divider {
    font-size: 0.85rem;
    font-weight: 900;
    color: #64748b;
}

.rally-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    padding-left: 16px;
}

.rally-count {
    font-size: 1.2rem;
    font-weight: 800;
    color: #4ade80;
}

/* Modal Panels */
.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 7, 15, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 60;
}

.modal-card {
    width: 90%;
    max-width: 520px;
    padding: 28px;
    text-align: center;
    position: relative;
}

.modal-header {
    margin-bottom: 20px;
}

.modal-title {
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 6px;
}

.modal-subtitle {
    font-size: 0.9rem;
    color: #94a3b8;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.action-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 12px;
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.12);
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
    color: #ffffff;
}

.action-card:hover {
    background: rgba(51, 65, 85, 0.9);
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.action-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.action-info h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.action-info p {
    font-size: 0.8rem;
    color: #cbd5e1;
}

.modal-close-btn {
    margin-top: 18px;
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    text-decoration: underline;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.modal-close-btn:hover {
    color: #ffffff;
}

/* Map Grid Selector */
.map-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 14px;
    margin: 18px 0;
}

.map-option-card {
    background: rgba(30, 41, 59, 0.8);
    border: 2px solid transparent;
    border-radius: 14px;
    padding: 14px 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.map-option-card:hover, .map-option-card.selected {
    border-color: var(--gold);
    background: rgba(51, 65, 85, 0.9);
    box-shadow: 0 0 15px var(--gold-glow);
    transform: translateY(-2px);
}

.map-icon {
    font-size: 2.2rem;
}

.map-title {
    font-weight: 700;
    font-size: 0.9rem;
}

/* Instructions / Help */
.help-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    text-align: left;
    margin: 16px 0;
    font-size: 0.85rem;
}

.help-row {
    background: rgba(30, 41, 59, 0.6);
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.key-badge {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 2px 7px;
    border-radius: 6px;
    font-family: monospace;
    font-weight: 700;
    color: var(--gold);
    display: inline-block;
    margin-right: 4px;
}

/* ==============================================================
   SAKHA POTLI (BAG & INVENTORY) - RamSena Two-Pane Style
   ============================================================== */
.potli-card {
    width: 92%;
    max-width: 680px;
    background: #0f172a;
    border: 1.5px solid #0f766e;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.85), 0 0 25px rgba(15, 118, 110, 0.25);
    display: flex;
    flex-direction: column;
}

.potli-header {
    background: #0d9488;
    padding: 11px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #0f766e;
}

.potli-header-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.potli-bag-icon {
    font-size: 1.25rem;
}

.potli-heading {
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: #ffffff;
    margin: 0;
}

.potli-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bhakti-badge {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 0.78rem;
    color: #fef08a;
    letter-spacing: 0.08em;
}

.potli-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 290px;
}

.potli-item-list {
    background: #0f172a;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
}

.potli-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.15s ease;
}

.potli-item-row:hover {
    background: rgba(30, 41, 59, 0.7);
}

.potli-item-row.active {
    background: #134e4a;
}

.potli-row-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.potli-row-icon {
    font-size: 1.15rem;
}

.potli-row-name {
    font-weight: 700;
    font-size: 0.88rem;
    color: #ffffff;
}

.potli-row-qty {
    font-family: 'Courier New', monospace;
    font-weight: 800;
    font-size: 0.95rem;
    color: #facc15;
}

.potli-detail-pane {
    background: #0a0f1d;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.potli-detail-icon-wrap {
    margin-bottom: 14px;
}

.potli-detail-icon {
    font-size: 3.2rem;
    filter: drop-shadow(0 0 12px rgba(250, 204, 21, 0.4));
}

.potli-detail-title {
    font-family: 'Cinzel', serif;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #2dd4bf;
    margin-bottom: 10px;
}

.potli-detail-desc {
    font-size: 0.84rem;
    line-height: 1.55;
    color: #cbd5e1;
    margin-bottom: 20px;
}

.potli-action-wrap {
    margin-top: auto;
    width: 100%;
}

.btn-potli-action {
    width: 100%;
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    border: none;
}

.btn-potli-action.btn-active-action {
    background: linear-gradient(135deg, #0d9488 0%, #059669 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.4);
}

.btn-potli-action.btn-active-action:hover {
    background: linear-gradient(135deg, #14b8a6 0%, #10b981 100%);
    box-shadow: 0 0 16px rgba(45, 212, 191, 0.5);
    transform: translateY(-1px);
}

.btn-potli-action.disabled {
    background: rgba(51, 65, 85, 0.5);
    color: #64748b;
    cursor: not-allowed;
}

/* ==============================================================
   OPTIONS & AUDIO (विकल्प) - RamSena Style
   ============================================================== */
.options-card {
    width: 92%;
    max-width: 520px;
    background: #0d1527;
    border: 1px solid #ca8a04;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.85), 0 0 25px rgba(202, 138, 4, 0.25);
}

.opt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(202, 138, 4, 0.4);
    padding-bottom: 14px;
    margin-bottom: 18px;
}

.opt-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.opt-chakra-icon {
    font-size: 1.35rem;
}

.opt-title {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #facc15;
    margin: 0;
}

.opt-close-btn {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #94a3b8;
    cursor: pointer;
    font-size: 1rem;
    padding: 3px 9px;
    transition: all 0.2s ease;
}

.opt-close-btn:hover {
    color: #ffffff;
    border-color: #ffffff;
}

.opt-rows {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.opt-row {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.opt-row-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #ffffff;
}

.opt-volume-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.opt-val-gold {
    font-family: 'Cinzel', serif;
    font-weight: 800;
    font-size: 0.95rem;
    color: #facc15;
    min-width: 44px;
    text-align: right;
}

.opt-slider-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.opt-step-btn {
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid rgba(250, 204, 21, 0.4);
    color: #facc15;
    font-weight: 800;
    font-size: 0.9rem;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.opt-step-btn:hover {
    background: #facc15;
    color: #0f172a;
}

.opt-range {
    -webkit-appearance: none;
    width: 140px;
    height: 6px;
    border-radius: 3px;
    background: #334155;
    outline: none;
}

.opt-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #facc15;
    cursor: pointer;
    box-shadow: 0 0 6px rgba(250, 204, 21, 0.7);
}

.opt-toggle-btn {
    padding: 6px 20px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.85rem;
    cursor: pointer;
    border: none;
    min-width: 75px;
    transition: all 0.2s ease;
}

.opt-toggle-btn.on {
    background: rgba(16, 185, 129, 0.15);
    border: 1.5px solid #10b981;
    color: #34d399;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.2);
}

.opt-toggle-btn.off {
    background: rgba(239, 68, 68, 0.15);
    border: 1.5px solid #ef4444;
    color: #f87171;
}

.opt-cycle-btn {
    background: rgba(30, 41, 59, 0.9);
    border: 1.5px solid #ca8a04;
    color: #facc15;
    padding: 6px 14px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.opt-cycle-btn:hover {
    background: rgba(202, 138, 4, 0.25);
    border-color: #facc15;
    box-shadow: 0 0 10px rgba(250, 204, 21, 0.35);
}

/* ==============================================================
   CHARACTER MENUS (KRISHNA & BALRAM)
   ============================================================== */
.character-menu-card {
    width: 92%;
    max-width: 620px;
    background: rgba(13, 21, 39, 0.96);
    backdrop-filter: blur(20px);
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
}

.border-krishna {
    border: 2px solid #facc15;
    box-shadow: 0 0 25px rgba(250, 204, 21, 0.25);
}

.border-balram {
    border: 2px solid #38bdf8;
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.25);
}

.char-menu-header {
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding-bottom: 14px;
    margin-bottom: 16px;
}

.char-avatar-icon {
    font-size: 2.4rem;
    flex-shrink: 0;
}

.char-menu-title {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    font-weight: 800;
    margin: 0 0 4px 0;
}

.char-menu-subtitle {
    font-size: 0.85rem;
    color: #cbd5e1;
    margin: 0;
    font-style: italic;
}

.char-options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    max-height: 380px;
    overflow-y: auto;
    padding-right: 4px;
}

.char-option-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: 10px;
    background: rgba(30, 41, 59, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.12);
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
    color: #ffffff;
}

.char-option-card:hover {
    background: rgba(51, 65, 85, 0.95);
    border-color: #facc15;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.char-option-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.char-option-info h4 {
    font-size: 0.96rem;
    font-weight: 700;
    margin: 0 0 3px 0;
    color: #f8fafc;
}

.char-option-info p {
    font-size: 0.78rem;
    color: #94a3b8;
    margin: 0;
}

.char-menu-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-flute-action {
    background: rgba(250, 204, 21, 0.15);
    border: 1px solid #facc15;
    color: #facc15;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-flute-action:hover {
    background: #facc15;
    color: #0f172a;
    box-shadow: 0 0 14px rgba(250, 204, 21, 0.5);
}
