/* JoJo ABC Patti Game CSS - MOBILE OPTIMIZED SINGLE PAGE FIT */
/* Fixed: Entire game fits in single mobile screen without scrolling */
/* Fixed: Player/Role/CoinDashboard in ONE horizontal line on mobile */

/* Root Container - Fits in viewport */
.jojo-game-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8px;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    color: #fff;
    font-family: 'Arial', sans-serif;
    position: relative;
    overflow: hidden;
    min-height: auto;
    max-height: 100vh;
    display: flex;
    flex-direction: column;
}

.jojo-game-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="stars" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23stars)"/></svg>');
    pointer-events: none;
    z-index: 0;
}

.jojo-game-container > * {
    position: relative;
    z-index: 1;
}

/* Header - Ultra Compact */
.jojo-header {
    text-align: center;
    margin-bottom: 4px;
}

.jojo-title {
    font-size: 1.5rem;
    background: linear-gradient(45deg, #FFD700, #FFA500, #FF6347);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin: 0;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

.jojo-subtitle {
    font-size: 0.8rem;
    color: #87CEEB;
    margin: 2px 0 0 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

@keyframes titleGlow {
    from { filter: brightness(1); }
    to { filter: brightness(1.2); }
}

/* Winner History Section - Ultra Compact */
.winner-history-section {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border-radius: 8px;
    padding: 5px;
    margin-bottom: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.history-title {
    color: #ecf0f1;
    font-size: 11px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 3px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.winner-history {
    display: flex;
    justify-content: center;
    gap: 4px;
    flex-wrap: wrap;
}

.history-item {
    width: 20px;
    height: 20px;
    font-size: 10px;
    border-radius: 50%;
    background: #34495e;
    color: #ecf0f1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    border: 2px solid #5d6d7e;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.history-item.winner-a {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border-color: #c0392b;
    color: white;
    animation: winnerPulse 2s infinite;
}

.history-item.winner-b {
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-color: #2980b9;
    color: white;
    animation: winnerPulse 2s infinite;
}

.history-item.winner-c {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    border-color: #27ae60;
    color: white;
    animation: winnerPulse 2s infinite;
}

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

/* Timer, Balance, Phase - Ultra Compact Single Row */
.jojo-timer-balance-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4px;
    margin-bottom: 4px;
    flex-wrap: nowrap;
}

.jojo-timer {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 6px 8px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
    border: 2px solid #c0392b;
    animation: timerPulse 1s ease-in-out infinite alternate;
    flex: 1;
    min-width: 60px;
}

.user-balance {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    border-radius: 8px;
    padding: 6px 8px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
    flex: 1;
    min-width: 60px;
}

.balance-label {
    font-size: 0.65rem;
    color: #d5f4e6;
    margin-bottom: 1px;
    font-weight: bold;
}

.balance-amount {
    font-size: 0.95rem;
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.jojo-phase {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 8px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex: 1;
    min-width: 60px;
}

.phase-icon {
    font-size: 0.95rem;
}

.phase-name {
    font-size: 0.75rem;
    font-weight: bold;
    color: #ecf0f1;
}

@keyframes timerPulse {
    from { transform: scale(1); }
    to { transform: scale(1.05); }
}

/* FIXED: Live Stats Section - Horizontal Single Line - Ultra Compact */
.jojo-live-stats {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 4px;
    margin-bottom: 4px;
    flex-wrap: nowrap;
}

.stat-card {
    flex: 1;
    background: linear-gradient(135deg, rgba(52, 73, 94, 0.8), rgba(44, 62, 80, 0.8));
    border-radius: 6px;
    padding: 4px 6px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    min-width: 0;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.stat-value {
    font-size: 0.9rem;
    font-weight: bold;
    color: #f1c40f;
    margin-bottom: 1px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stat-label {
    font-size: 0.6rem;
    color: #bdc3c7;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Game Boxes - Compact Spacing */
.jojo-game-boxes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    margin-bottom: 4px;
}

.jojo-game-box {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border-radius: 6px;
    padding: 12px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 160px;
}

.jojo-game-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.jojo-game-box:hover::before {
    transform: translateX(100%);
}

.jojo-game-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.jojo-game-box[data-box="A"] {
    border-color: #e74c3c;
}

.jojo-game-box[data-box="B"] {
    border-color: #3498db;
}

.jojo-game-box[data-box="C"] {
    border-color: #2ecc71;
}

.jojo-game-box.winner {
    border-color: #f1c40f;
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    animation: winnerGlow 2s ease-in-out infinite alternate;
    transform: scale(1.05);
}

.jojo-game-box.loser {
    opacity: 0.6;
    filter: grayscale(50%);
}

@keyframes winnerGlow {
    from { box-shadow: 0 8px 25px rgba(241, 196, 15, 0.5); }
    to { box-shadow: 0 8px 35px rgba(241, 196, 15, 0.8); }
}

.box-label {
    position: absolute;
    top: -8px;
    left: -8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    font-weight: bold;
    font-size: 14px;
    color: white;
}

.jojo-game-box[data-box="A"] .box-label {
    background: #10b981;
}

.jojo-game-box[data-box="B"] .box-label {
    background: #3b82f6;
}

.jojo-game-box[data-box="C"] .box-label {
    background: #eab308;
}

/* Playing Cards - UNCHANGED */
.playing-cards-container {
    margin: 10px 0 6px 0;
}

.playing-cards {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 6px;
}

.playing-card {
    width: 44px;
    height: 64px;
    background: linear-gradient(135deg, #ecf0f1, #bdc3c7);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    border: 1.5px solid #d1d5db;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.playing-card.card-hidden {
    background: linear-gradient(135deg, #34495e, #2c3e50);
    color: #7f8c8d;
}

.playing-card.card-revealed {
    background: linear-gradient(135deg, #ecf0f1, #ffffff);
    transform: rotateY(0deg);
}

.playing-card.card-revealing {
    animation: cardFlip 0.6s ease-in-out;
}

@keyframes cardFlip {
    0% { transform: rotateY(0deg); }
    50% { transform: rotateY(90deg); }
    100% { transform: rotateY(0deg); }
}

.card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.card-rank {
    position: absolute;
    top: 1px;
    left: 3px;
    font-weight: bold;
    font-size: 12px;
    line-height: 1;
}

.card-suit {
    font-size: 24px;
    line-height: 1;
}

.card-red {
    color: #dc2626;
}

.card-black {
    color: #1f2937;
}

.hand-rank {
    font-size: 0.85rem;
    font-weight: bold;
    color: #f1c40f;
    margin-bottom: 2px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    min-height: 16px;
}

.box-info {
    font-size: 0.7rem;
    color: #bdc3c7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.winner-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #eab308;
    color: black;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.bet-badge {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: #eab308;
    color: black;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Betting Section - Ultra Compact */
.jojo-betting-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 8px;
    margin-bottom: 4px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.betting-title {
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 10px;
    color: #f1c40f;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    display: none !important;
}

.betting-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    margin-bottom: 6px;
}

.bet-option {
    background: linear-gradient(135deg, #34495e, #2c3e50);
    border-radius: 8px;
    padding: 6px 4px;
    text-align: center;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.bet-option:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.bet-option.placing-bet {
    animation: placingBet 0.8s ease-in-out;
}

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

.bet-label {
    font-size: 0.95rem;
    font-weight: bold;
    margin-bottom: 3px;
}

.bet-cards-display {
    display: flex;
    justify-content: center;
    gap: 3px;
    margin: 6px 0;
}

.card-placeholder {
    width: 20px;
    height: 28px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: #bdc3c7;
}

.box-total-bet {
    font-size: 0.65rem;
    color: #f1c40f;
    font-weight: bold;
    margin-top: 3px;
}

.bet-stats {
    font-size: 0.6rem;
    color: #95a5a6;
    margin-top: 2px;
}

/* Bet Amount Section - Ultra Compact */
.bet-amount-section {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 6px;
    margin-bottom: 4px;
}

.amount-selection-title {
    font-size: 0.85rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 4px;
    color: #ecf0f1;
}

.quick-bet-buttons {
    display: flex;
    justify-content: center;
    gap: 4px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.quick-bet-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    min-width: 40px;
    font-size: 0.7rem;
}

.quick-bet-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

.quick-bet-btn.selected {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    animation: selectedPulse 1s ease-in-out infinite alternate;
}

@keyframes selectedPulse {
    from { box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4); }
    to { box-shadow: 0 4px 20px rgba(231, 76, 60, 0.8); }
}

.selected-amount-display {
    text-align: center;
    font-size: 0.8rem;
    color: #f1c40f;
    font-weight: bold;
}

.selected-amount-value {
    color: #e74c3c;
    font-size: 0.9rem;
}

/* Phase Messages — DISABLED per user request.
   These floating notifications were covering the A/B/C cards on the dashboard.
   The rules below are kept only so that any stray .phase-message element that
   might still be injected by a cached older version of the JS is hidden. */
.phase-message {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.phase-notification {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

@keyframes messageSlide {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
    20% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
    80% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
}

/* Loading Spinner */
.jojo-loading {
    text-align: center;
    padding: 30px;
}

.jojo-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #f1c40f;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* MOBILE OPTIMIZATION - SINGLE PAGE FIT */
@media (max-width: 768px) {
    .jojo-game-container {
        padding: 6px;
        border-radius: 8px;
        max-height: 100vh;
        overflow-y: auto;
    }
    
    .jojo-header {
        margin-bottom: 2px;
    }
    
    .jojo-title {
        font-size: 1.3rem;
    }
    
    .jojo-subtitle {
        font-size: 0.7rem;
        margin: 1px 0 0 0;
    }
    
    .winner-history-section {
        padding: 3px;
        margin-bottom: 3px;
    }
    
    .history-title {
        font-size: 10px;
        margin-bottom: 2px;
    }
    
    .jojo-timer-balance-section {
        gap: 3px;
        margin-bottom: 3px;
    }
    
    .jojo-timer {
        padding: 4px 6px;
        font-size: 0.95rem;
        border-width: 1px;
    }
    
    .user-balance,
    .jojo-phase {
        padding: 4px 6px;
    }
    
    .balance-label {
        font-size: 0.6rem;
        margin-bottom: 0;
    }
    
    .balance-amount {
        font-size: 0.8rem;
    }
    
    .phase-name {
        font-size: 0.7rem;
    }
    
    .phase-icon {
        font-size: 0.85rem;
    }
    
    .jojo-live-stats {
        gap: 2px;
        margin-bottom: 3px;
    }
    
    .stat-card {
        padding: 3px 4px;
    }
    
    .stat-value {
        font-size: 0.8rem;
        margin-bottom: 0;
    }
    
    .stat-label {
        font-size: 0.55rem;
    }
    
    .jojo-game-boxes {
        gap: 3px;
        margin-bottom: 3px;
    }
    
    .jojo-game-box {
        padding: 10px;
        min-height: 150px;
    }
    
    .jojo-betting-section {
        padding: 6px;
        margin-bottom: 3px;
    }
    
    .betting-options {
        gap: 3px;
        margin-bottom: 4px;
    }
    
    .bet-option {
        padding: 8px 4px;
        min-height: 60px;
    }
    
    .bet-amount-section {
        padding: 4px;
        margin-bottom: 3px;
    }
    
    .quick-bet-buttons {
        gap: 3px;
        margin-bottom: 2px;
    }
    
    .quick-bet-btn {
        padding: 3px 6px;
        font-size: 0.65rem;
        min-width: 35px;
    }
}

@media (max-width: 480px) {
    .jojo-game-container {
        padding: 4px;
        max-height: 100vh;
        overflow-y: auto;
    }
    
    .jojo-header {
        margin-bottom: 2px;
    }
    
    .jojo-title {
        font-size: 1.1rem;
    }
    
    .jojo-subtitle {
        font-size: 0.6rem;
        margin: 1px 0 0 0;
    }
    
    .winner-history-section {
        padding: 3px;
        margin-bottom: 2px;
    }
    
    .history-title {
        font-size: 9px;
        margin-bottom: 1px;
    }
    
    .jojo-timer-balance-section {
        gap: 2px;
        margin-bottom: 2px;
    }
    
    .jojo-timer {
        padding: 3px 5px;
        font-size: 0.85rem;
        border-width: 1px;
    }
    
    .user-balance,
    .jojo-phase {
        padding: 3px 5px;
    }
    
    .balance-label {
        font-size: 0.55rem;
        margin-bottom: 0;
    }
    
    .balance-amount {
        font-size: 0.75rem;
    }
    
    .phase-name {
        font-size: 0.6rem;
    }
    
    .jojo-live-stats {
        gap: 2px;
        margin-bottom: 2px;
    }
    
    .stat-card {
        padding: 2px 3px;
    }
    
    .stat-value {
        font-size: 0.7rem;
        margin-bottom: 0;
    }
    
    .stat-label {
        font-size: 0.5rem;
    }
    
    .jojo-game-boxes {
        gap: 2px;
        margin-bottom: 2px;
    }
    
    .jojo-game-box {
        padding: 8px;
        min-height: 130px;
    }
    
    .jojo-betting-section {
        padding: 4px;
        margin-bottom: 2px;
    }
    
    .betting-options {
        gap: 2px;
        margin-bottom: 3px;
    }
    
    .bet-option {
        padding: 6px 2px;
        min-height: 50px;
    }
    
    .bet-label {
        font-size: 0.85rem;
        margin-bottom: 2px;
    }
    
    .bet-amount-section {
        padding: 3px;
        margin-bottom: 2px;
    }
    
    .quick-bet-buttons {
        gap: 2px;
        margin-bottom: 2px;
    }
    
    .quick-bet-btn {
        padding: 2px 4px;
        font-size: 0.6rem;
        min-width: 30px;
    }
}

/* Extra Small Devices - Ultra Compact */
@media (max-width: 360px) {
    .jojo-game-container {
        padding: 3px;
    }
    
    .jojo-title {
        font-size: 1rem;
    }
    
    .jojo-subtitle {
        font-size: 0.55rem;
    }
    
    .jojo-timer {
        font-size: 0.8rem;
        padding: 3px 4px;
    }
    
    .balance-amount {
        font-size: 0.7rem;
    }
    
    .phase-name {
        font-size: 0.55rem;
    }
    
    .jojo-live-stats {
        gap: 1px;
    }
    
    .stat-card {
        padding: 2px;
    }
    
    .stat-value {
        font-size: 0.65rem;
    }
    
    .stat-label {
        font-size: 0.45rem;
    }
    
    .jojo-game-box {
        padding: 6px;
        min-height: 120px;
    }
}

/* === MOBILE TOUCH OPTIMIZATIONS === */
@media (max-width: 768px) {
    .jojo-game-box { min-height: 160px; padding: 10px; }
    .playing-card { width: 36px; height: 52px; font-size: 1.4rem; }
    .card-rank { font-size: 9px; }
    .card-suit { font-size: 18px; }
    .bet-option { padding: 8px 4px; min-height: 60px; }
    .bet-label { font-size: 0.85rem; margin-bottom: 2px; }
    .quick-bet-btn { min-height: 36px; display: flex; align-items: center; justify-content: center; }
    .jojo-btn { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; }
    .jojo-modal-content { width: 95%; margin: 1% auto; padding: 15px; }
    .jojo-close { font-size: 32px; right: 10px; top: 5px; padding: 5px; }
    .winner-history { gap: 2px; }
    .history-item { width: 18px; height: 18px; font-size: 9px; }
}

@media (max-width: 480px) {
    .jojo-game-box { min-height: 130px; padding: 8px; }
    .playing-card { width: 30px; height: 44px; font-size: 1.2rem; }
    .card-suit { font-size: 15px; }
    .card-rank { font-size: 8px; }
    .hand-rank { font-size: 0.7rem; margin-bottom: 2px; }
    .box-label { width: 22px; height: 22px; font-size: 10px; top: -5px; left: -5px; }
    .winner-badge, .bet-badge { font-size: 7px; padding: 1px 4px; }
    .bet-option { padding: 6px 2px; min-height: 50px; }
    .bet-label { font-size: 0.8rem; }
    .box-total-bet { font-size: 0.6rem; }
    .bet-stats { font-size: 0.5rem; }
    .quick-bet-btn { min-height: 32px; font-size: 0.65rem; padding: 3px 5px; min-width: 36px; }
    .jojo-phase { padding: 3px 4px; }
    .phase-icon { font-size: 0.75rem; }
    .phase-name { font-size: 0.55rem; }
    .amount-selection-title { font-size: 0.75rem; margin-bottom: 3px; }
    .selected-amount-display { font-size: 0.75rem; }
}

/* Touch-friendly tap targets */
.bet-option, .quick-bet-btn, .jojo-btn, .playing-card {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* Prevent iOS zoom on input focus */
.jojo-game-container input, .jojo-game-container select, .jojo-game-container textarea {
    font-size: 16px;
}

/* Safe area for notched phones */
@supports (padding: max(0px)) {
    .jojo-game-container { padding-left: max(10px, env(safe-area-inset-left)); padding-right: max(10px, env(safe-area-inset-right)); }
}
/* Defensive: hide any lingering Transaction History button in the dashboard header
   (removed per user request — keeps the header clean). The standalone Transaction
   History page/shortcode is NOT affected. */
.jojo-game-container .history-btn,
.coin-dashboard-link .history-btn {
    display: none !important;
    visibility: hidden !important;
}
