/* ============================================
   LOADING & TOAST
   ============================================ */
.loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--light);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-spinner p {
    color: var(--white);
    margin-top: 16px;
    font-size: 18px;
}

.toast-container {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
}

/* Floating bubble shown while an MP minigame is minimized - reachable from
   any tab, sits roughly where the chat input lives. Click restores the game. */
.game-bubble {
    position: fixed;
    /* #app is a centered 600px-max column (the "chat window"), not the full
       browser width - on wide viewports, anchoring to the raw viewport edge
       would strand the bubble far out in empty space. Clamp to the app
       column's right edge (half of 600px = 300px) with a 20px inset, falling
       back to a flush 20px inset once the viewport is narrower than the column. */
    right: max(20px, calc(50vw - 300px + 20px));
    bottom: 90px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--white-shadow);
    box-shadow: var(--shadow-lg);
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    cursor: pointer;
    z-index: 9998;
    transition: transform 0.15s ease, background 0.15s ease;
}

.game-bubble.active {
    display: flex;
}

.game-bubble:hover {
    transform: scale(1.08);
}

/* Heavier, harder-to-miss notifier than the generic badge-pulse - the bubble
   turns red and pulses with an expanding ring, like an incoming-call alert,
   since missing your turn is more urgent than a routine "new" badge. */
.game-bubble.pulsing {
    background: var(--danger);
    animation: game-bubble-pulse 1.1s ease-in-out infinite;
}

@keyframes game-bubble-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: var(--shadow-lg), 0 0 0 0 rgba(239, 68, 68, 0.6);
    }
    50% {
        transform: scale(1.18);
        box-shadow: var(--shadow-lg), 0 0 0 16px rgba(239, 68, 68, 0);
    }
}

.toast {
    background: var(--dark);
    color: var(--white);
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s ease;
}

.toast.success {
    background: var(--success);
}

.toast.error {
    background: var(--danger);
}

.toast.warning {
    background: var(--warning);
}



/* ============================================
   ROCK PAPER SCISSORS GAME STYLES
   ============================================ */
.rps-container {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.rps-scoreboard {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--light);
    padding: 16px;
    border-radius: var(--radius);
}

.rps-scoreboard .score-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.rps-scoreboard .score-label {
    font-size: 14px;
    color: var(--gray);
    font-weight: 600;
}

.rps-scoreboard .score-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
}

.rps-scoreboard .round-counter {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
    text-align: center;
}

.rps-choices-display {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-radius: var(--radius);
}

.choice-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.choice-display p {
    font-size: 14px;
    color: var(--gray);
    font-weight: 600;
    margin: 0;
}

.choice-emoji {
    font-size: 64px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    box-shadow: var(--shadow);
}

.vs-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.rps-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.rps-choice-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px;
    background: white;
    border: 3px solid var(--light);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    min-width: 100px;
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
}

.rps-choice-btn:hover:not(:disabled) {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.rps-choice-btn.selected {
    border-color: var(--success);
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
}

.rps-choice-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.choice-emoji-large {
    font-size: 48px;
}

.rps-round-result {
    text-align: center;
    padding: 16px 24px;
    border-radius: var(--radius);
    font-size: 18px;
    font-weight: 700;
    animation: slideUp 0.3s ease;
}

.rps-round-result.win {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: var(--success);
}

.rps-round-result.lose {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: var(--danger);
}

.rps-round-result.tie {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: var(--warning);
}

.rps-round-result.final {
    font-size: 24px;
    padding: 24px;
    border: 3px solid currentColor;
}

/* ============================================
   LUCKY NUMBER DUEL GAME STYLES
   ============================================ */
.luckynum-container {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.luckynum-scoreboard {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--light);
    padding: 16px;
    border-radius: var(--radius);
}

.luckynum-scoreboard .score-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.luckynum-scoreboard .score-label {
    font-size: 14px;
    color: var(--gray);
    font-weight: 600;
}

.luckynum-scoreboard .score-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
}

.luckynum-scoreboard .round-counter {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
    text-align: center;
}

.game-instruction {
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
    margin: 0;
    padding: 12px;
    background: var(--light);
    border-radius: var(--radius);
}

.luckynum-display {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-radius: var(--radius);
}

.number-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.number-display.target {
    flex: 1.5;
}

.number-display p {
    font-size: 13px;
    color: var(--gray);
    font-weight: 600;
    margin: 0;
}

.number-value {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    box-shadow: var(--shadow);
}

.number-value.big {
    font-size: 64px;
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
}

.reveal-animation {
    animation: pulse 1s ease;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.luckynum-buttons {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.luckynum-btn {
    padding: 16px;
    font-size: 24px;
    font-weight: 700;
    background: white;
    border: 3px solid var(--light);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    color: var(--dark);
}

.luckynum-btn:hover:not(:disabled) {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    background: linear-gradient(135deg, #ddd6fe 0%, #c4b5fd 100%);
}

.luckynum-btn.selected {
    border-color: var(--success);
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: var(--success);
}

.luckynum-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.luckynum-result {
    text-align: center;
    padding: 16px 24px;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 700;
    animation: slideUp 0.3s ease;
}

.luckynum-result.win {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: var(--success);
}

.luckynum-result.lose {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: var(--danger);
}

.luckynum-result.tie {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: var(--warning);
}

.luckynum-result.final {
    font-size: 20px;
    padding: 20px;
    border: 3px solid currentColor;
}

/* ============================================
   WINNER CHOOSES EXPOSURE FEATURE
   ============================================ */

/* Highlighted setting item */
.setting-item-highlight {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    padding: 16px;
    border-radius: var(--radius);
    border: 2px solid var(--danger);
    margin: 12px 0;
}

.setting-label-warning {
    display: flex;
    align-items: center;
    cursor: pointer;
    width: 100%;
}

.setting-label-warning input[type="checkbox"] {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.setting-label-warning .setting-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.setting-label-warning .setting-text strong {
    font-size: 16px;
    color: var(--danger);
}

.setting-label-warning .setting-text small {
    font-size: 13px;
    color: #666;
    font-weight: normal;
}

/* Warning modal */
.warning-modal-content {
    max-width: 500px;
    padding: 32px;
}

.warning-modal-content h2 {
    color: var(--danger);
    margin-bottom: 24px;
    font-size: 24px;
    text-align: center;
}

.warning-text {
    margin-bottom: 24px;
    line-height: 1.6;
}

.warning-text p {
    margin: 12px 0;
}

.warning-highlight {
    background: #fef3c7;
    padding: 16px;
    border-left: 4px solid var(--warning);
    border-radius: 4px;
    margin: 20px 0;
}

.warning-highlight p {
    margin: 8px 0;
}

.warning-highlight strong {
    color: var(--warning);
}

.warning-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
    font-weight: bold;
}

/* Winner exposure selection modal */
.exposure-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    margin: 20px 0;
    max-height: 400px;
    overflow-y: auto;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius);
}

.exposure-pic-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s;
}

.exposure-pic-item:hover {
    transform: scale(1.05);
}

.exposure-pic-item img,
.exposure-pic-item video {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.exposure-pic-item.selected {
    border: 4px solid var(--primary);
    box-shadow: 0 0 20px var(--primary-light);
}

.exposure-pic-item.selected::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--primary);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
}

.exposure-selection-info {
    text-align: center;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.exposure-selection-info p {
    margin: 8px 0;
    line-height: 1.5;
}

.exposure-selection-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
}

/* Liar's Dice Game */
.liars-dice-container {
    display: flex;
    flex-direction: column;
    padding: 12px;
    max-width: 650px;
    margin: 0 auto;
    gap: 12px;
    height: 100%;
    position: relative;
}

/* Partner's Dice Section (Top) */
.partner-dice-section {
    background: var(--bg-secondary);
    border-radius: var(--radius);
    padding: 10px;
    border: 2px solid var(--border);
}

.partner-dice-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.section-header h3 {
    font-size: 14px;
    margin: 0;
    color: var(--text-secondary);
}

.dice-count-badge {
    background: var(--primary);
    color: white;
    padding: 3px 10px;
    border-radius: 10px;
    font-weight: bold;
    font-size: 14px;
}

.partner-dice {
    min-height: 50px;
}

.die-back {
    font-size: 44px;
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4),
    inset 0 2px 4px rgba(255, 255, 255, 0.2);
    color: white;
    font-weight: bold;
    animation: mysterySpin 3s infinite ease-in-out;
}

@keyframes mysterySpin {
    0%, 100% {
        transform: rotateY(0deg);
    }
    50% {
        transform: rotateY(10deg);
    }
}

/* Middle Section: Game Controls */
.game-controls-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-grow: 0;
}

/* My Dice Section (Bottom) */
.my-dice-section-new {
    background: var(--bg-secondary);
    border-radius: var(--radius);
    padding: 10px;
    border: 2px solid var(--primary);
}

.my-dice-section-new .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

/* Overlay Indicators */
.overlay-indicator {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 20px;
    font-weight: bold;
    z-index: 10000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.overlay-indicator.show {
    opacity: 1;
}

.overlay-emote {
    position: fixed;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 60px;
    z-index: 10001;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
}

.overlay-emote.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
}

.dice-hand {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 10px;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    min-height: 60px;
}

.die {
    font-size: 48px;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15),
    inset 0 2px 4px rgba(255, 255, 255, 0.5);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 2px solid rgba(0, 0, 0, 0.05);
}

.die.rolling {
    animation: rollDice 0.6s ease-out, dicePulse 0.6s ease-out;
}

@keyframes rollDice {
    0% {
        transform: rotate(0deg) scale(0.5);
        opacity: 0;
    }
    50% {
        transform: rotate(180deg) scale(1.2);
        opacity: 1;
    }
    100% {
        transform: rotate(360deg) scale(1);
        opacity: 1;
    }
}

@keyframes dicePulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    50% {
        box-shadow: 0 0 20px rgba(102, 126, 234, 0.6),
        0 4px 12px rgba(0, 0, 0, 0.15);
    }
}

.die:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.current-bet-compact {
    text-align: center;
    padding: 12px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--radius);
    font-size: 24px;
    font-weight: bold;
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.current-bet-compact::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.current-bet-compact strong {
    margin-right: 8px;
}

.current-bet-compact em {
    font-style: normal;
    opacity: 0.9;
}

/* Floating Emote Buttons */
.emote-section-floating {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 100;
}

.emote-btn-small {
    width: 36px;
    height: 36px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--border);
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.emote-btn-small:hover:not(:disabled) {
    background: var(--primary);
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.emote-btn-small:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Compact Betting Controls */
.bet-controls-compact {
    padding: 10px;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.bet-dice-selector {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.bet-die {
    font-size: 36px;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    border: 3px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

.bet-die:hover:not(.disabled) {
    transform: scale(1.15) translateY(-3px);
    border-color: var(--primary);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.bet-die.selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.6);
    animation: betDiceSelected 0.3s ease-out;
}

@keyframes betDiceSelected {
    0% {
        transform: scale(1) translateY(0);
    }
    50% {
        transform: scale(1.15) translateY(-4px);
    }
    100% {
        transform: scale(1.08) translateY(-2px);
    }
}

.bet-die.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
    filter: grayscale(0.8);
}

.bet-count-control-compact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.count-label-small {
    font-weight: bold;
    font-size: 16px;
    color: var(--text-secondary);
}

.btn-control-small {
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-control-small:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.btn-control-small:active {
    transform: scale(0.95);
}

.bet-count-control-compact input {
    width: 60px;
    padding: 6px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: white;
}

/* Action Buttons Row */
.action-buttons-row {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.action-buttons-row .btn {
    flex: 1;
    padding: 14px 24px;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.action-buttons-row .btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.action-buttons-row .btn:active::before {
    width: 300px;
    height: 300px;
}

.action-buttons-row .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.action-buttons-row .btn-danger {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.action-buttons-row .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(0.5);
}

.action-buttons-row .btn:hover:not(:disabled) {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.action-buttons-row .btn-primary:hover:not(:disabled) {
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.action-buttons-row .btn-danger:hover:not(:disabled) {
    box-shadow: 0 6px 20px rgba(245, 87, 108, 0.5);
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateY(-3px) scale(1.02) rotate(0deg); }
    25% { transform: translateY(-3px) scale(1.02) rotate(-2deg); }
    75% { transform: translateY(-3px) scale(1.02) rotate(2deg); }
}

.bet-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    margin: 20px 0;
}

.bet-input-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.bet-input-group label {
    font-weight: bold;
    min-width: 100px;
}

.number-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-control {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-control:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.btn-control:active {
    transform: scale(0.95);
}

.number-control input {
    width: 80px;
    padding: 10px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: white;
}

#call-liar-btn {
    margin: 20px 0;
    animation: pulse 1.5s infinite;
}

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

.reveal-section {
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    text-align: center;
}

.reveal-section h3 {
    margin-bottom: 15px;
    font-size: 24px;
}

.all-dice {
    margin: 20px 0;
    padding: 15px;
    background: white;
    border-radius: var(--radius);
}

.all-dice div {
    margin: 10px 0;
    font-size: 16px;
}

.win-text {
    color: var(--success);
    font-size: 20px;
    font-weight: bold;
    margin: 15px 0;
}

.lose-text {
    color: var(--danger);
    font-size: 20px;
    font-weight: bold;
    margin: 15px 0;
}

.game-end-section {
    padding: 30px;
    text-align: center;
    background: var(--bg-secondary);
    border-radius: var(--radius);
}

.game-end-section h2 {
    font-size: 28px;
    margin-bottom: 15px;
}

/* Dare Chance Slider */
.dare-chance-slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: var(--border);
    outline: none;
    -webkit-appearance: none;
    margin-top: 8px;
}

.dare-chance-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    transition: transform 0.2s;
}

.dare-chance-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.dare-chance-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: none;
}

/* Disabled state for dare settings when wheel is active */
#dare-random-settings.disabled {
    opacity: 0.5;
    pointer-events: none;
    position: relative;
}

#dare-random-settings.disabled::after {
    content: "Using Dares Wheel instead";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(99, 102, 241, 0.9);
    color: white;
    padding: 8px 16px;
    border-radius: var(--radius);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

/* ============================================
   DARES WHEEL STYLES
   ============================================ */

/* Dares Wheel Setting in Game Settings */
.dares-wheel-setting {
    margin-top: 8px;
    padding: 12px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius);
    border: 1px dashed var(--primary);
}

.dares-wheel-setting .setting-label-flex {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.wheel-status-hint {
    display: block;
    margin-top: 8px;
    font-size: 12px;
}

/* Dares Wheel Configuration Modal */
.dares-wheel-config-content {
    max-width: 500px;
}

.wheel-agreement-status {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin: 16px 0;
}

.wheel-status-badge {
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 600;
}

.wheel-status-badge.pending {
    background: var(--light);
    color: var(--gray);
}

.wheel-status-badge.agreed {
    background: var(--success);
    color: white;
}

.wheel-dare-count {
    text-align: center;
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 12px;
}

.wheel-dares-list {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin: 16px 0;
    background: var(--bg-secondary);
}

.wheel-dares-empty {
    padding: 24px;
    text-align: center;
    color: var(--gray);
    font-style: italic;
}

.wheel-dare-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid var(--light);
    gap: 8px;
}

.wheel-dare-item:last-child {
    border-bottom: none;
}

.wheel-dare-number {
    font-weight: 600;
    color: var(--primary);
    min-width: 24px;
}

.wheel-dare-text {
    flex: 1;
    font-size: 14px;
    word-break: break-word;
}

.wheel-dare-remove-btn {
    background: none;
    border: none;
    color: var(--danger);
    font-size: 20px;
    cursor: pointer;
    padding: 0 4px;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.wheel-dare-remove-btn:hover:not(:disabled) {
    opacity: 1;
}

.wheel-dare-remove-btn:disabled {
    cursor: not-allowed;
    opacity: 0.3;
}

.wheel-add-custom {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.wheel-dare-input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
}

.wheel-presets {
    margin-bottom: 16px;
}

.wheel-presets-label {
    display: block;
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 8px;
}

.wheel-preset-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.wheel-preset-btn {
    font-size: 13px;
    padding: 6px 12px;
}

.wheel-preset-picker {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--light);
    margin-bottom: 16px;
    max-height: 250px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.wheel-preset-picker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}

.wheel-preset-picker-actions {
    display: flex;
    gap: 8px;
}

.wheel-preset-dares-list {
    overflow-y: auto;
    flex: 1;
}

.wheel-preset-dare-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-bottom: 1px solid var(--border);
    gap: 12px;
}

.wheel-preset-dare-item:last-child {
    border-bottom: none;
}

.wheel-preset-dare-item.added {
    background: rgba(16, 185, 129, 0.1);
}

.wheel-preset-dare-text {
    flex: 1;
    font-size: 13px;
    word-break: break-word;
}

.wheel-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 16px;
}

.wheel-actions .btn.agreed {
    background: var(--success);
    opacity: 0.8;
}

.wheel-hint {
    display: block;
    text-align: center;
    color: var(--gray);
    margin-top: 12px;
}

/* Dares Wheel Spin Modal */
.dares-wheel-spin-content {
    max-width: 400px;
    text-align: center;
    padding: 24px;
}

.dares-wheel-container {
    position: relative;
    width: 280px;
    height: 280px;
    margin: 24px auto;
}

.dares-wheel-pointer {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 32px;
    z-index: 10;
    color: var(--danger);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.dares-wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3),
                inset 0 0 10px rgba(0, 0, 0, 0.1);
    border: 6px solid var(--dark);
}

.dares-wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: var(--dark);
    border-radius: 50%;
    z-index: 5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.wheel-segment-label {
    position: absolute;
    font-size: 10px;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    max-width: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    pointer-events: none;
}

.dares-wheel-result {
    margin-top: 24px;
    padding: 20px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: var(--radius);
    animation: resultPop 0.5s ease;
}

@keyframes resultPop {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.dares-wheel-result h3 {
    margin: 0 0 12px 0;
    color: var(--warning);
}

#dares-wheel-result-text {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.5;
}

#dares-wheel-spin-close-btn {
    margin-top: 20px;
}