/* RoboCraps - Authentic Vegas Craps Table - Full Width Layout */
.robocraps-game {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 10px;
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #2c1810 0%, #1a0f08 100%);
    color: white;
    min-height: 100vh;
    overflow-x: visible;
    overflow-y: visible;
}

/* Mobile: Reduce overall height by 30% */
@media (max-width: 768px) {
    .robocraps-game {
        padding: 7px;
    }
}

/* Override WordPress container constraints */
.robocraps-game,
.robocraps-game * {
    box-sizing: border-box;
}

/* Desktop: Full width, no container constraints */
@media (min-width: 769px) {
    .robocraps-game {
        padding: 20px;
        width: 100%;
        max-width: 100%;
    }
}

/* Override common WordPress container classes - break out of containers */
.entry-content .robocraps-game,
.wp-block-group .robocraps-game,
.container .robocraps-game,
.site-content .robocraps-game,
.content-area .robocraps-game,
.elementor-element .robocraps-game,
.elementor-widget-container .robocraps-game {
    width: 100% !important;
    max-width: 100% !important;
}

/* Ensure table container is full width */
.robocraps-game .craps-table-container {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
}

/* Ensure table itself is full width and visible */
.robocraps-game .craps-table {
    width: 100% !important;
    min-width: 100% !important;
    overflow: visible !important;
}

/* Ensure all grid columns are visible */
.robocraps-game .numbers-top,
.robocraps-game .field-area {
    overflow: visible !important;
    min-width: 0 !important;
}

.robocraps-game * {
    box-sizing: border-box;
}

/* Sidebar Column - Full Width Layout */
.craps-sidebar-column {
    width: 100%;
    max-width: 100%;
    margin-top: 15px;
}

/* Desktop: Sidebar styling */
@media (min-width: 769px) {
    .craps-sidebar-column {
        margin-top: 20px;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
}

.craps-header {
    text-align: center;
    margin-bottom: 10px;
}

.craps-header h2 {
    margin: 0 0 5px 0;
    font-size: 1.8em;
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    letter-spacing: 3px;
}

.game-info {
    color: #ddd;
    font-size: 0.7em;
}

.game-info p {
    margin: 2px 0;
}

/* Game Topbar */
.game-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.game-title {
    margin: 0;
    font-size: 1.5em;
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    flex: 1;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.topbar-tutorial {
    padding: 8px 12px;
    font-size: 0.85em;
}

.exit-game-btn {
    background: linear-gradient(135deg, #f44336 0%, #c62828 100%);
    border: 2px solid #ffeb3b;
    border-radius: 6px;
    color: #fff;
    font-weight: bold;
    padding: 8px 16px;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.exit-game-btn:hover {
    background: linear-gradient(135deg, #ff5252 0%, #d32f2f 100%);
}

/* Chip Selector and Balance Container */
/* Chip Selector Column */
.chip-selector-container {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: stretch;
    flex-wrap: wrap;
}

.chip-column {
    grid-row: 7;
    grid-column: 1 / -1;
    align-self: stretch;
}

/* Chip Selector - Vertical layout */
.chip-selector {
    background: rgba(0,0,0,0.75);
    padding: 8px;
    border-radius: 8px;
    text-align: center;
    border: 2px solid #8B4513;
}

.chip-selector h3 {
    margin: 0 0 4px 0;
    color: #ffd700;
    font-size: 0.85em;
}

.chip-tray-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.chip-tray {
    display: flex;
    flex-direction: row; /* show chips in a horizontal row */
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
    align-items: center;
}

.chip {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 3px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.75em;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    box-shadow: 
        0 3px 8px rgba(0,0,0,0.6), 
        inset 0 2px 3px rgba(255,255,255,0.3),
        inset 0 -2px 3px rgba(0,0,0,0.3);
}

.chip:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 6px 16px rgba(0,0,0,0.8);
}

.chip.selected {
    transform: translateY(-6px) scale(1.15);
    box-shadow: 0 0 20px currentColor;
    animation: pulse 0.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 20px currentColor; }
    50% { box-shadow: 0 0 25px currentColor; }
}

/* Enhanced Chip Colors with More Detail */
.chip-1 { 
    background: linear-gradient(135deg, #f8f8f8 0%, #e8e8e8 100%); 
    color: #333; 
    border-color: #ccc;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.chip-5 { 
    background: linear-gradient(135deg, #e53935 0%, #c62828 100%); 
    color: white; 
    border-color: #b71c1c;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
.chip-10 { 
    background: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%); 
    color: white; 
    border-color: #0d47a1;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
.chip-25 { 
    background: linear-gradient(135deg, #43a047 0%, #2e7d32 100%); 
    color: white; 
    border-color: #1b5e20;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
.chip-50 { 
    background: linear-gradient(135deg, #fb8c00 0%, #e65100 100%); 
    color: white; 
    border-color: #bf360c;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
.chip-100 { 
    background: linear-gradient(135deg, #000 0%, #424242 100%); 
    color: #ffd700; 
    border-color: #ffd700;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

.chip-value {
    font-size: 0.9em;
    font-weight: bold;
    text-shadow: inherit;
}

.selected-amount-container {
    min-width: 140px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-top: 4px;
}

.balance-inline-left {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 8px;
    padding: 8px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.5);
    border: 2px solid #ffd700;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 180px;
}

.balance-inline-left h3 {
    color: #ffd700;
    margin: 0 0 6px 0;
    font-size: 0.75em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.balance-inline-left .balance-amount {
    color: #4caf50;
    font-weight: bold;
    font-size: 1.2em;
    text-shadow: 0 1px 6px rgba(76, 175, 80, 0.5);
}

.selected-amount {
    margin-top: 0;
    font-size: 0.95em;
    color: #ffd700;
    font-weight: bold;
}

/* Main Craps Table - Full Width Landscape Layout */
.craps-table-container {
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
    border-radius: 12px;
    padding: 8px;
    box-shadow: 
        inset 0 0 30px rgba(0,0,0,0.5),
        0 15px 40px rgba(0,0,0,0.8);
    border: 4px solid #654321;
    margin-bottom: 6px;
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow-x: visible;
    overflow-y: visible;
}

/* Desktop: Full width landscape table */
@media (min-width: 769px) {
    .craps-table-container {
        padding: 12px;
    }
}

@media (max-width: 1024px) {
    .craps-table {
        grid-template-columns: 1fr;
    }
    
    .pass-row {
        grid-template-columns: 1fr;
    }
    
    .chip-column {
        grid-column: 1 / -1;
        grid-row: 7;
    }
    
    .chip-selector-container {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .chip-selector,
    .balance-display {
        flex: 1 1 220px;
    }
    
    .chip-selector-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .chip-selector-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .chip-tray {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .field-row {
        grid-template-columns: 1fr;
    }
    
    .field-row .dice-area,
    .field-row .roll-dice-container {
        width: 100%;
        grid-column: 1 / -1;
    }
    
    .balance-panel {
        grid-column: 1 / -1;
        grid-row: 9;
    }
    
    .tape-and-scores {
        grid-template-columns: 1fr;
    }
}

.craps-table {
    background: linear-gradient(135deg, #0a5f0a 0%, #085208 100%);
    border-radius: 15px;
    padding: 7px;
    position: relative;
    width: 100%;
    min-width: 100%;
    border: 3px solid #2d5f2d;
    display: grid;
    /* New layout: chips, dice, roll, balance */
    grid-template-columns: 230px 1fr 140px 160px;
    grid-template-rows: auto auto auto auto auto auto auto auto;
    gap: 5px;
    /* Ensure table is wider than tall */
    aspect-ratio: 50/17;
    min-height: auto;
    overflow: visible;
    /* Ensure grid items don't overflow */
    grid-auto-flow: row;
}

/* Desktop: Larger landscape table - ensure full width and all columns visible */
@media (min-width: 769px) {
    .craps-table {
        padding: 12px;
        /* Desktop layout */
        grid-template-columns: 260px 1fr 150px 170px;
        gap: 7px;
        aspect-ratio: 35/9; /* compressed landscape */
        width: 100%;
        min-width: 100%;
        /* Prevent grid items from overflowing */
        grid-auto-columns: minmax(0, 1fr);
    }
}

/* Wooden Table Border with More Detail */
.craps-table::before {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    background: linear-gradient(45deg, #8B4513, #A0522D, #8B4513, #654321);
    border-radius: 26px;
    z-index: -1;
    box-shadow: 
        inset 0 0 15px rgba(0,0,0,0.4),
        0 0 20px rgba(0,0,0,0.3);
}

/* Numbers Row - Horizontal across top */
.numbers-top {
    grid-row: 1;
    grid-column: 1 / -1;
    display: flex;
    flex-direction: row;
    gap: 6px;
    min-width: 0;
    overflow: visible;
    margin-bottom: 8px;
}

.numbers-top .number-bet-container {
    flex: 1;
    min-width: 0;
    background: rgba(0,0,0,0.3);
    border: 2px solid #4caf50;
    border-radius: 8px;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.numbers-top .number-label {
    font-size: 1.4em;
    font-weight: bold;
    color: #ffd700;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    margin-bottom: 4px;
}

.numbers-top .place-bet-inline,
.numbers-top .buy-bet-inline {
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    padding: 4px 6px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    min-height: 34px;
}

.numbers-top .place-bet-inline {
    border-color: #2196f3;
}

.numbers-top .buy-bet-inline {
    border-color: #9c27b0;
}

.numbers-top .place-bet-inline:hover {
    background: rgba(33, 150, 243, 0.3);
    transform: scale(1.02);
}

.numbers-top .buy-bet-inline:hover {
    background: rgba(156, 39, 176, 0.3);
    transform: scale(1.02);
}

.numbers-top .bet-type-label {
    font-size: 0.72em;
    font-weight: bold;
    color: white;
    text-transform: uppercase;
    margin: 0;
}

.numbers-top .bet-payout {
    font-size: 0.68em;
    color: #ffd700;
    margin: 0;
}

.numbers-top .bet-amount-display {
    font-size: 0.8em;
    color: #4caf50;
    font-weight: bold;
    margin: 0;
}

.numbers-top .bet-chips-display {
    margin-top: 2px;
    min-height: 20px;
}

.numbers-top .number-bet {
    flex: 1;
    min-width: 0;
}

.field-row {
    grid-row: 3;
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px 220px;
    gap: 8px;
    align-items: stretch;
}


/* Dice Area */
.dice-area {
    text-align: center;
    background: rgba(0, 80, 24, 0.45);
    padding: 12px;
    border-radius: 10px;
    border: 2px solid #2d5f2d;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 140px;
    position: relative;
}

.dice-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    width: 100%;
    margin-bottom: 8px;
}

.die {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 7px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform 0.3s;
    border: 2px solid #ddd;
}

.die.rolling {
    animation: roll 0.5s ease-in-out;
}

@keyframes roll {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(90deg) scale(1.1); }
    50% { transform: rotate(180deg) scale(1.2); }
    75% { transform: rotate(270deg) scale(1.1); }
}

.die-face {
    font-size: 2.5em;
    font-weight: bold;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.die-svg {
    width: 100%;
    height: auto;
    display: block;
}

/* Enhanced Dice dot patterns */
.die-dots {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template: repeat(3, 1fr) / repeat(3, 1fr);
    padding: 8px;
}

.die-dot {
    width: 10px;
    height: 10px;
    background: #d32f2f;
    border-radius: 50%;
    margin: auto;
    box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Dice dot positions for each number */
.die-1 .die-dot:nth-child(5) { grid-area: 2/2; }

.die-2 .die-dot:nth-child(1) { grid-area: 1/1; }
.die-2 .die-dot:nth-child(2) { grid-area: 3/3; }

.die-3 .die-dot:nth-child(1) { grid-area: 1/1; }
.die-3 .die-dot:nth-child(2) { grid-area: 2/2; }
.die-3 .die-dot:nth-child(3) { grid-area: 3/3; }

.die-4 .die-dot:nth-child(1) { grid-area: 1/1; }
.die-4 .die-dot:nth-child(2) { grid-area: 1/3; }
.die-4 .die-dot:nth-child(3) { grid-area: 3/1; }
.die-4 .die-dot:nth-child(4) { grid-area: 3/3; }

.die-5 .die-dot:nth-child(1) { grid-area: 1/1; }
.die-5 .die-dot:nth-child(2) { grid-area: 1/3; }
.die-5 .die-dot:nth-child(3) { grid-area: 2/2; }
.die-5 .die-dot:nth-child(4) { grid-area: 3/1; }
.die-5 .die-dot:nth-child(5) { grid-area: 3/3; }

.die-6 .die-dot:nth-child(1) { grid-area: 1/1; }
.die-6 .die-dot:nth-child(2) { grid-area: 1/3; }
.die-6 .die-dot:nth-child(3) { grid-area: 2/1; }
.die-6 .die-dot:nth-child(4) { grid-area: 2/3; }
.die-6 .die-dot:nth-child(5) { grid-area: 3/1; }
.die-6 .die-dot:nth-child(6) { grid-area: 3/3; }

/* Roll Dice Button Container */
.roll-dice-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    padding: 5px;
    gap: 10px;
}

.field-row .roll-dice-container {
    justify-content: center;
}

.roll-dice-container .roll-btn {
    width: 100%;
    max-width: 180px;
    padding: 12px 20px;
    font-size: 0.9em;
}

.dice-total {
    display: none; /* Hide dice total text */
}

/* Game Status - Positioned below chips on desktop */
.game-status {
    grid-row: 2;
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 7px;
    background: rgba(0,0,0,0.5);
    border-radius: 5px;
    border: 1px solid #2d5f2d;
    flex-wrap: wrap;
}

.game-status-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.game-status-controls .on-off-chip-container {
    margin: 0;
}

.game-status-controls .new-game-btn {
    padding: 8px 15px;
    font-size: 0.85em;
}

.phase-indicator, .point-indicator {
    font-size: 1em;
}

.phase-label, .point-label {
    color: #aaa;
    margin-right: 8px;
}

.phase-value {
    color: #4caf50;
    font-weight: bold;
    text-transform: uppercase;
}

.point-value {
    color: #ffd700;
    font-weight: bold;
    font-size: 1.2em;
}

/* On/Off Button for Standard Betting Practice - Next to Roll Dice */
/* On/Off Poker Chip Button - White Chip Style */
.on-off-chip-container {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 10px !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.on-off-chip {
    width: 70px !important;
    height: 70px !important;
    border-radius: 50% !important;
    border: 5px solid #fff !important;
    background: linear-gradient(135deg, #f8f8f8 0%, #e8e8e8 100%) !important;
    cursor: pointer !important;
    position: relative !important;
    perspective: 1000px;
    transition: transform 0.6s;
    box-shadow: 
        0 4px 12px rgba(0,0,0,0.6), 
        inset 0 2px 4px rgba(255,255,255,0.3),
        inset 0 -2px 4px rgba(0,0,0,0.3) !important;
    padding: 0 !important;
    overflow: visible !important;
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
}

.on-off-chip:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 
        0 6px 16px rgba(0,0,0,0.8), 
        inset 0 2px 4px rgba(255,255,255,0.3),
        inset 0 -2px 4px rgba(0,0,0,0.3);
}

.on-off-chip.flipped {
    transform: rotateY(180deg);
}

.chip-face {
    position: absolute !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
    backface-visibility: hidden;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 5px solid #fff !important;
    top: 0 !important;
    left: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.chip-face-on {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: white;
    z-index: 2;
}

.chip-face-off {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    color: white;
    transform: rotateY(180deg);
    z-index: 1;
}

.chip-text {
    font-weight: bold;
    font-size: 1.2em;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    letter-spacing: 2px;
}

/* Point Marker - White Puck Style */
.point-marker {
    position: absolute !important;
    top: -20px !important;
    right: -20px !important;
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    background-image: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%) !important;
    border: 5px solid #000000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: bold !important;
    font-size: 1em !important;
    color: #000000 !important;
    box-shadow: 
        0 6px 16px rgba(0,0,0,0.8), 
        inset 0 3px 6px rgba(255,255,255,0.6),
        inset 0 -3px 6px rgba(0,0,0,0.3) !important;
    z-index: 9999 !important;
    animation: markerAppear 0.5s ease-out !important;
    text-shadow: 0 1px 2px rgba(255,255,255,0.8) !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: none !important;
}

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

.number-bet {
    position: relative;
}

/* Result Message */
.dice-area .result-message {
    width: 100%;
    text-align: center;
    margin: 0;
    font-size: 1.1em;
    font-weight: bold;
    padding: 10px;
    border-radius: 8px;
    background: rgba(0,0,0,0.65);
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.result-win { color: #4caf50; }
.result-lose { color: #f44336; }
.result-push { color: #ff9800; }
.result-point { color: #ffd700; }

/* Duplicate removed - using the one at line 330 */

/* PASS LINE LEFT - Removed */

.pass-line-left:hover {
    background: rgba(76, 175, 80, 0.3);
    transform: scale(1.02);
}

.pass-line-left .bet-label {
    font-size: 0.7em;
    letter-spacing: 2px;
    color: #4caf50;
    font-weight: bold;
}


.number-bet {
    background: rgba(255,255,255,0.1);
    border: 2px solid #ff9800;
    border-radius: 5px;
    padding: 5px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    min-height: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0; /* Allow content to shrink if needed */
    overflow: visible !important; /* Ensure content is visible */
    position: relative !important; /* Required for absolute positioned marker */
}

/* Ensure point marker container is positioned correctly */
.number-bet .point-marker {
    position: absolute !important;
    top: -20px !important;
    right: -20px !important;
}

/* Point number box - darker shading to indicate point */
.number-bet.point-highlight {
    background: rgba(0, 0, 0, 0.5) !important;
    border: 4px solid #ffd700 !important;
    box-shadow: 
        0 0 20px rgba(255, 215, 0, 0.6),
        inset 0 0 20px rgba(0, 0, 0, 0.5) !important;
}

.number-bet-container.point-highlight {
    background: rgba(0, 0, 0, 0.5) !important;
    border: 4px solid #ffd700 !important;
    box-shadow: 
        0 0 20px rgba(255, 215, 0, 0.6),
        inset 0 0 20px rgba(0, 0, 0, 0.5) !important;
}

.number-bet.point-highlight .number-label {
    border: 3px solid #ffd700;
    border-radius: 50%;
    padding: 6px 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.7);
    background: rgba(0,0,0,0.35);
}

.number-bet-container.point-highlight .number-label {
    border: 3px solid #ffd700;
    border-radius: 50%;
    padding: 6px 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.7);
    background: rgba(0,0,0,0.35);
}

.number-bet.point-highlight .bet-label {
    color: #ffd700 !important;
    font-weight: bold !important;
    font-size: 1.3em !important;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8) !important;
}

@keyframes pointPulse {
    0%, 100% {
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.6), inset 0 0 10px rgba(255, 215, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 25px rgba(255, 215, 0, 0.8), inset 0 0 15px rgba(255, 215, 0, 0.5);
    }
}

/* When betting is OFF, disable betting areas */
.robocraps-game.betting-off .number-bet,
.robocraps-game.betting-off .field-area,
.robocraps-game.betting-off .prop-bet-area,
.robocraps-game.betting-off .hardway-bet,
.robocraps-game.betting-off .odds-bet-area,
.robocraps-game.betting-off .pass-line-left,
.robocraps-game.betting-off .pass-line-bottom,
.robocraps-game.betting-off .dont-pass-bar,
.robocraps-game.betting-off .place-bet,
.robocraps-game.betting-off .buy-bet,
.robocraps-game.betting-off .horn-bet {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.robocraps-game.betting-off .number-bet:hover,
.robocraps-game.betting-off .field-area:hover,
.robocraps-game.betting-off .prop-bet-area:hover {
    transform: none;
    background: inherit;
}

.number-bet .bet-label {
    font-size: 1.25em;
    font-weight: bold;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    margin-bottom: 5px;
}

.number-bet .bet-amount-display {
    font-size: 1.375em;
    color: #ffd700;
    font-weight: bold;
    min-height: 25px;
}

.number-bet .bet-chips-display {
    min-height: 30px;
    margin-top: 5px;
}

.number-bet:hover {
    background: rgba(255, 152, 0, 0.2);
    transform: scale(1.02);
}

.number-bet.big-six, .number-bet.big-eight {
    border-color: #f44336;
    background: rgba(255,0,0,0.1);
}

.number-bet.big-six:hover, .number-bet.big-eight:hover {
    background: rgba(255,0,0,0.2);
}

/* CENTER - Field Numbers Area */
.field-area {
    background: rgba(33, 150, 243, 0.2);
    border: 2px solid #2196f3;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    padding: 6px;
    min-width: 0;
    overflow: visible;
    min-height: auto;
    z-index: 1;
}

.field-area:hover {
    background: rgba(33, 150, 243, 0.3);
    transform: scale(1.02);
}

.field-label {
    font-size: 1em;
    font-weight: bold;
    color: #2196f3;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.field-numbers {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 4px;
    margin-bottom: 4px;
}

.field-number {
    background: rgba(255,255,0,0.8);
    color: #333;
    padding: 3px 5px;
    border-radius: 5px;
    font-size: 0.8em;
    font-weight: bold;
    border: 2px solid #333;
    text-align: center;
    min-height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.field-number.double {
    background: #ffd700;
    border: 2px solid #333;
    font-size: 0.9em;
    font-weight: bold;
    min-height: 22px;
}

.field-payout-info {
    font-size: 0.65em;
    color: #ffd700;
    text-align: center;
    margin-top: 2px;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}


/* Row 4: Don't Pass Bar (Top) */
.pass-row {
    grid-row: 4;
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 10px;
    align-items: stretch;
}

.dont-pass-bar {
    background: rgba(255,255,255,0.1);
    border: 2px solid #f44336;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    padding: 7px;
}

.dont-pass-bar:hover {
    background: rgba(244, 67, 54, 0.2);
    transform: scale(1.02);
}

.dont-pass-bar::before {
    content: '';
}

/* Row 5: Pass Line (Bottom) */
.pass-line-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 10px;
    align-items: stretch;
}

.pass-line-bottom {
    background: rgba(255,255,255,0.1);
    border: 3px solid #4caf50;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    padding: 10px 16px;
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.3);
}

.pass-line-bottom::before,
.pass-line-bottom::after {
    content: '';
}

.pass-line-bottom:hover {
    background: rgba(76, 175, 80, 0.2);
    transform: scale(1.02);
}

/* Locked bets - Pass Line and Don't Pass during point phase */
.pass-line-left.locked-bet,
.pass-line-bottom.locked-bet,
.dont-pass-bar.locked-bet {
    opacity: 0.9;
    cursor: not-allowed;
    position: relative;
}

.pass-line-left.locked-bet::after,
.pass-line-bottom.locked-bet::after,
.dont-pass-bar.locked-bet::after {
    content: '🔒';
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 0.8em;
    opacity: 0.7;
}

.pass-line-left.locked-bet:hover,
.pass-line-bottom.locked-bet:hover,
.dont-pass-bar.locked-bet:hover {
    transform: none;
    background: inherit;
}

/* Bet Labels */
.bet-label {
    font-size: 0.9em;
    font-weight: bold;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    text-align: center;
    margin-bottom: 5px;
}

.bet-amount-display {
    font-size: 1.1em;
    color: #ffd700;
    font-weight: bold;
    text-align: center;
    min-height: 25px;
}

.bet-chips-display {
    display: flex;
    justify-content: center;
    gap: 4px;
    flex-wrap: wrap;
    min-height: 30px;
    align-items: center;
    margin-top: 5px;
}

.placed-chip {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 3px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.7em;
    box-shadow: 0 3px 6px rgba(0,0,0,0.5);
}

/* Horn & Hardways Container - Between table and controls */
.horn-hardways-container {
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    padding: 6px;
    margin: 6px 0;
    border: 2px solid #ffd700;
}

/* Place Bets Section */
.place-bets-section {
    margin: 9px 0;
    padding: 9px;
    background: rgba(33, 150, 243, 0.1);
    border: 2px solid #2196f3;
    border-radius: 8px;
}

.place-bets-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
    margin-top: 6px;
}

.place-bet {
    background: rgba(33, 150, 243, 0.15);
    border: 2px solid #2196f3;
    border-radius: 6px;
    padding: 6px 4px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.place-bet:hover {
    background: rgba(33, 150, 243, 0.3);
    transform: scale(1.05);
}

.place-bet .bet-label {
    font-size: 1.2em;
    font-weight: bold;
    color: white;
    margin-bottom: 5px;
}

.place-bet .bet-payout {
    font-size: 0.7em;
    color: #ffd700;
    margin-bottom: 5px;
}

/* Buy Bets Section */
.buy-bets-section {
    margin: 9px 0;
    padding: 9px;
    background: rgba(156, 39, 176, 0.1);
    border: 2px solid #9c27b0;
    border-radius: 8px;
}

.buy-bets-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
    margin-top: 6px;
}

.buy-bet {
    background: rgba(156, 39, 176, 0.15);
    border: 2px solid #9c27b0;
    border-radius: 6px;
    padding: 6px 4px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.buy-bet:hover {
    background: rgba(156, 39, 176, 0.3);
    transform: scale(1.05);
}

.buy-bet .bet-label {
    font-size: 0.9em;
    font-weight: bold;
    color: white;
    margin-bottom: 5px;
}

.buy-bet .bet-payout {
    font-size: 0.7em;
    color: #ffd700;
    margin-bottom: 5px;
}

/* Horn Bets Row - 4 Column Layout */
.horn-bets-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin: 15px 0 10px 0;
}

.horn-bet {
    background: rgba(255, 152, 0, 0.15);
    border: 3px solid #ff9800;
}

/* Horn Bet Button */
.horn-bet-button-container {
    text-align: center;
    margin: 10px 0 15px 0;
}

.horn-bet-btn {
    padding: 10px 20px;
    font-size: 0.9em;
    font-weight: bold;
    border: 2px solid #ff9800;
    border-radius: 5px;
    cursor: pointer;
    background: rgba(255, 152, 0, 0.2);
    color: #ff9800;
    transition: all 0.3s;
}

.horn-bet-btn:hover {
    background: rgba(255, 152, 0, 0.4);
    transform: translateY(-2px);
}

/* All Hardways Button */
.all-hardways-button-container {
    text-align: center;
    margin-top: 10px;
}

.all-hardways-btn {
    padding: 10px 20px;
    font-size: 0.9em;
    font-weight: bold;
    border: 2px solid #ff9800;
    border-radius: 5px;
    cursor: pointer;
    background: rgba(255, 152, 0, 0.2);
    color: #ff9800;
    transition: all 0.3s;
}

.all-hardways-btn:hover {
    background: rgba(255, 152, 0, 0.4);
    transform: translateY(-2px);
}

/* Dice Images for Prop Bets */
.dice-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
    min-height: 80px;
}

.dice-image {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.dice-pair {
    display: flex;
    gap: 10px;
}

.dice-image.dice-craps {
    gap: 8px;
}

.die-small {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 4px;
    border: 2px solid #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3em;
    font-weight: bold;
    color: #000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    line-height: 1;
}

/* Dice images using Unicode dice characters */
.dice-1-1 .die-small,
.dice-1-2 .die-small,
.dice-5-6 .die-small,
.dice-6-6 .die-small,
.dice-hard-4 .die-small,
.dice-hard-6 .die-small,
.dice-hard-8 .die-small,
.dice-hard-10 .die-small,
.dice-7 .die-small {
    font-size: 3.2em;
}

/* Clear Selected Button */
.selected-amount-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.clear-selected-btn {
    padding: 6px 12px;
    font-size: 0.8em;
    font-weight: bold;
    border: 2px solid #f44336;
    border-radius: 5px;
    cursor: pointer;
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
    transition: all 0.3s;
}

.clear-selected-btn:hover {
    background: rgba(244, 67, 54, 0.4);
    transform: translateY(-2px);
}

/* Proposition Bets Row - 3 Column Layout */
.prop-bets-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 10px;
}

.prop-bet-area {
    background: rgba(255, 152, 0, 0.15);
    border: 3px solid #ff9800;
    border-radius: 8px;
    padding: 10px 6px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.prop-bet-area:hover {
    background: rgba(255, 152, 0, 0.3);
    transform: scale(1.05);
}

.prop-bet-area .bet-label {
    font-size: 0.8em;
    margin-bottom: 5px;
}

.prop-bet-area .bet-amount-display {
    font-size: 1em;
}

.bet-payout {
    font-size: 0.7em;
    color: #ffd700;
    font-weight: bold;
    margin: 2px 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

/* Section Labels */
.section-label {
    font-size: 0.9em;
    font-weight: bold;
    color: #ffd700;
    text-align: center;
    margin-bottom: 6px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Odds Section */
.odds-inline {
    background: rgba(76, 175, 80, 0.15);
    border: 2px solid #4caf50;
    border-radius: 10px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.odds-inline .odds-bet-area {
    background: rgba(76, 175, 80, 0.2);
    border: 2px solid #4caf50;
    border-radius: 6px;
    padding: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.odds-inline .odds-bet-area:hover {
    background: rgba(76, 175, 80, 0.3);
    transform: scale(1.02);
}

.odds-inline .bet-label {
    font-size: 0.95em;
    margin-bottom: 6px;
    color: #4caf50;
}

.odds-inline .bet-payout {
    font-size: 0.8em;
    color: #ffd700;
    margin-bottom: 6px;
}

.odds-inline.disabled {
    opacity: 0.5;
    pointer-events: none;
    filter: grayscale(10%);
}

/* Hardways Section */
.hardways-section {
    margin: 15px 0;
    padding: 15px;
    background: rgba(255, 152, 0, 0.1);
    border: 3px solid #ff9800;
    border-radius: 10px;
}

.hardways-bets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.hardway-bet {
    background: rgba(255, 152, 0, 0.15);
    border: 3px solid #ff9800;
    border-radius: 8px;
    padding: 10px 6px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.hardway-bet:hover {
    background: rgba(255, 152, 0, 0.3);
    transform: scale(1.05);
}

.hardway-bet .bet-label {
    font-size: 0.8em;
    margin-bottom: 5px;
}

.hardway-bet .bet-amount-display {
    font-size: 1em;
}

/* Quick Bet Controls */
.quick-bet-bar {
    margin: 12px 0;
    padding: 8px 12px;
    background: rgba(0,0,0,0.35);
    border: 2px solid #ffd700;
    border-radius: 10px;
}

.quick-bet-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.quick-bet-btn {
    padding: 8px 16px;
    font-size: 0.8em;
    font-weight: bold;
    border: 2px solid #ffd700;
    border-radius: 5px;
    cursor: pointer;
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
    transition: all 0.3s;
}

.quick-bet-btn:hover {
    background: rgba(255, 215, 0, 0.4);
    transform: translateY(-2px);
}

.tape-and-scores {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 10px 0 16px;
}

.tape-panel,
.scores-panel {
    background: rgba(0,0,0,0.35);
    border: 2px solid #ffd700;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 8px;
}

.panel-header h4 {
    margin: 0;
    color: #ffd700;
}

.panel-subtitle {
    font-size: 0.75em;
    color: #ccc;
}

.tape-list {
    max-height: 220px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tape-entry {
    display: grid;
    grid-template-columns: 50px 1fr 90px 90px;
    gap: 8px;
    padding: 8px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 6px;
    font-size: 0.9em;
}

.tape-entry .roll-tag {
    font-weight: bold;
    color: #ffd700;
}

.tape-entry .result-text {
    color: #fff;
}

.tape-entry .net.win {
    color: #4caf50;
    font-weight: bold;
}

.tape-entry .net.lose {
    color: #f44336;
    font-weight: bold;
}

.tape-entry .net.push {
    color: #ff9800;
    font-weight: bold;
}

.tape-entry .balance-after {
    color: #9ccc65;
    font-weight: bold;
}

.tape-empty {
    color: #ccc;
    text-align: center;
    padding: 10px 0;
    font-size: 0.9em;
}

.score-entry {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    align-items: center;
}

.score-entry input {
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #ffd700;
    background: rgba(0,0,0,0.4);
    color: #fff;
    width: 90px;
    text-transform: uppercase;
}

.save-score-btn {
    padding: 8px 12px;
    font-size: 0.85em;
}

.scores-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9em;
}

.scores-table th,
.scores-table td {
    padding: 6px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.scores-table th {
    color: #ffd700;
}

.scores-table td {
    color: #fff;
}

.scores-table .balance-val {
    color: #9ccc65;
    font-weight: bold;
}
.quick-bet-btn.clear-bets {
    border-color: #f44336;
    color: #f44336;
    background: rgba(244, 67, 54, 0.2);
}

.quick-bet-btn.clear-bets:hover {
    background: rgba(244, 67, 54, 0.4);
}

/* Game Controls */
.game-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.craps-btn {
    padding: 15px 30px;
    font-size: 1em;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.roll-btn {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: white;
}

.roll-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.5);
}

.new-game-btn {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
}

.new-game-btn:hover {
    background: linear-gradient(135deg, #f57c00 0%, #e65100 100%);
    transform: translateY(-3px);
}

.craps-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Balance Display - Positioned to the right of chip selector */
.balance-display {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 8px;
    padding: 8px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.5);
    border: 2px solid #ffd700;
}

.balance-display h3 {
    color: #ffd700;
    margin: 0 0 6px 0;
    font-size: 0.75em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.balance-amount {
    color: #4caf50;
    font-weight: bold;
    font-size: 1.3em;
    text-shadow: 0 1px 6px rgba(76, 175, 80, 0.5);
}

.balance-panel {
    grid-row: 5;
    grid-column: 4;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

/* Paytables */
.paytable {
    background: rgba(255,255,255,0.95);
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.paytable h4 {
    text-align: center;
    color: #0a5f0a;
    margin: 0 0 8px 0;
    font-size: 0.9em;
    padding-bottom: 6px;
    border-bottom: 2px solid #0a5f0a;
}

.paytable table {
    width: 100%;
    border-collapse: collapse;
}

.paytable td {
    padding: 6px;
    font-size: 0.8em;
    border-bottom: 1px solid #eee;
}

.paytable tr:last-child td {
    border-bottom: none;
}

.paytable td:first-child {
    font-weight: bold;
    color: #333;
}

.paytable td:last-child {
    text-align: right;
    color: #0a5f0a;
    font-weight: bold;
}

/* Rules Box */
.rules-box {
    background: rgba(33, 150, 243, 0.2);
    border: 2px solid #2196f3;
    border-radius: 8px;
    padding: 10px;
}

.rules-box h4 {
    color: #ffffff;
    margin: 0 0 8px 0;
    font-size: 0.9em;
}

.rules-box p {
    margin: 6px 0;
    font-size: 0.8em;
    line-height: 1.5;
    color: #ccc;
}

.rules-box strong {
    color: #ffd700;
}

.rules-box ul,
.rules-box ol {
    margin: 0 0 10px 15px;
    padding-left: 18px;
    font-size: 0.8em;
    color: #ccc;
    line-height: 1.5;
}

.rules-box li {
    margin-bottom: 6px;
}

/* Tutorial Overlay */
.tutorial-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: none;
    z-index: 1000;
    overflow-y: auto;
}

.tutorial-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.tutorial-content {
    background: linear-gradient(135deg, #2c1810 0%, #1a0f08 100%);
    border: 3px solid #ffd700;
    border-radius: 15px;
    padding: 20px;
    max-width: 90%;
    max-height: 90%;
    overflow-y: auto;
    position: relative;
}

.tutorial-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: #f44336;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
}

.tutorial-step {
    display: none;
}

.tutorial-step.active {
    display: block;
}

.tutorial-animation {
    margin: 10px 0 20px;
    padding: 10px;
    background: rgba(0,0,0,0.3);
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 10px;
}

.tutorial-track {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding: 10px 0 20px;
}

.tutorial-track::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 45px;
    right: 45px;
    height: 3px;
    background: rgba(255,255,255,0.2);
}

.tutorial-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 110px;
    text-align: center;
    animation: tutorialPulse 8s infinite;
}

.tutorial-node:nth-child(2) { animation-delay: 1.2s; }
.tutorial-node:nth-child(3) { animation-delay: 2.4s; }
.tutorial-node:nth-child(4) { animation-delay: 3.6s; }
.tutorial-node:nth-child(5) { animation-delay: 4.8s; }

.tutorial-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid #ffd700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1em;
    color: #ffd700;
    box-shadow: 0 0 10px rgba(255,215,0,0.5);
    background: rgba(0,0,0,0.6);
}

.tutorial-caption {
    font-size: 0.75em;
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
}

.tutorial-description {
    text-align: center;
    color: #ccc;
    font-size: 0.85em;
}

@keyframes tutorialPulse {
    0% { transform: scale(1); opacity: 0.4; }
    20% { transform: scale(1.15); opacity: 1; }
    40% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1); opacity: 0.4; }
}

.tutorial-step h3 {
    color: #ffd700;
    margin: 0 0 15px 0;
    text-align: center;
    font-size: 1.3em;
}

.tutorial-step p {
    color: #ddd;
    line-height: 1.6;
    margin: 10px 0;
    font-size: 0.9em;
}

.tutorial-step .highlight {
    color: #ffd700;
    font-weight: bold;
}

.tutorial-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.tutorial-nav-btn {
    padding: 8px 16px;
    background: #ffd700;
    color: #333;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.tutorial-nav-btn:hover {
    background: #ffed4e;
    transform: translateY(-2px);
}

.tutorial-nav-btn:disabled {
    background: #666;
    color: #999;
    cursor: not-allowed;
    transform: none;
}

/* Mobile Responsive - Portrait Layout Optimized */
@media (max-width: 768px) {
    .robocraps-game {
        padding: 8px;
    }
    
    /* Top bar */
    .game-topbar {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        margin-bottom: 10px;
    }
    
    .game-title {
        text-align: center;
        font-size: 1.1em;
    }
    
    .topbar-actions {
        width: 100%;
        justify-content: center;
    }
    
    .exit-game-btn,
    .topbar-tutorial {
        flex: 1;
        min-width: 120px;
    }
    
    /* Chip selector - Make it prominent and visible */
    .chip-column {
        grid-column: 1 / -1;
        grid-row: 1;
        order: -1;
        margin-bottom: 12px;
    }
    
    .chip-selector-container {
        display: flex;
        flex-direction: row;
        gap: 10px;
        width: 100%;
        align-items: flex-start;
    }
    
    .balance-inline-left {
        min-width: 140px;
        flex-shrink: 0;
    }
    
    .chip-selector {
        flex: 1;
        min-width: 0;
        padding: 10px;
    }
    
    .chip-selector h3 {
        font-size: 0.9em;
        margin-bottom: 8px;
    }
    
    .chip-tray-row {
        display: flex;
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }
    
    .chip-tray {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        width: 100% !important;
        min-height: 50px !important;
        justify-content: flex-start !important;
        align-items: center !important;
        padding: 5px 0;
    }
    
    .chip {
        width: 45px !important;
        height: 45px !important;
        font-size: 0.8em !important;
        border-width: 3px !important;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        flex-shrink: 0;
    }
    
    .chip-value {
        font-size: 0.75em !important;
    }
    
    .selected-amount-container {
        width: 100%;
        padding: 8px;
        background: rgba(0,0,0,0.3);
        border-radius: 6px;
    }
    
    .selected-amount {
        font-size: 0.85em;
        margin-bottom: 6px;
    }
    
    .clear-selected-btn {
        width: 100%;
        padding: 6px;
        font-size: 0.75em;
    }
    
    /* Game table - simplified grid */
    .craps-table-container {
        padding: 8px;
        margin-bottom: 10px;
    }
    
    .craps-table {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: 8px;
        aspect-ratio: auto;
        min-height: auto;
    }
    
    /* Numbers row */
    .numbers-top {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 4px;
        margin-bottom: 8px;
    }
    
    .numbers-top .number-bet-container {
        padding: 6px;
    }
    
    .numbers-top .number-label {
        font-size: 1.1em;
    }
    
    .numbers-top .bet-type-label {
        font-size: 0.65em;
    }
    
    .numbers-top .bet-payout {
        font-size: 0.6em;
    }
    
    /* Game status */
    .game-status {
        padding: 8px;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .phase-indicator,
    .point-indicator {
        font-size: 0.85em;
    }
    
    .game-status-controls {
        width: 100%;
        justify-content: center;
        margin-top: 8px;
    }
    
    /* Field row */
    .field-row {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    
    .field-area {
        width: 100%;
        padding: 8px;
    }
    
    .dice-area {
        width: 100%;
        padding: 12px;
        min-height: 120px;
    }
    
    .die {
        width: 50px;
        height: 50px;
    }
    
    .roll-dice-container {
        width: 100%;
        padding: 8px;
    }
    
    .roll-btn {
        width: 100%;
        max-width: none;
        padding: 14px;
        font-size: 1em;
    }
    
    /* Pass/Don't Pass row */
    .pass-row {
        display: flex;
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }
    
    .dont-pass-bar,
    .pass-line-bottom {
        width: 100%;
        padding: 10px;
    }
    
    .pass-line-row {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    
    .odds-inline {
        width: 100%;
    }
    
    /* Odds section */
    .odds-section {
        width: 100%;
        padding: 8px;
    }
    
    /* Quick bet controls */
    .quick-bet-bar {
        margin: 10px 0;
        padding: 10px;
    }
    
    .quick-bet-controls {
        flex-direction: column;
        gap: 6px;
    }
    
    .quick-bet-btn {
        width: 100%;
        padding: 10px;
        font-size: 0.85em;
    }
    
    /* Horn and hardways */
    .horn-hardways-container {
        margin: 10px 0;
        padding: 10px;
    }
    
    .horn-bets-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    
    .prop-bets-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    
    .hardways-bets {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    
    /* Tape and scores */
    .tape-and-scores {
        grid-template-columns: 1fr;
        gap: 10px;
        margin: 10px 0;
    }
    
    /* General button sizing */
    .craps-btn {
        padding: 12px 20px;
        font-size: 0.9em;
    }
    
    .on-off-chip {
        width: 50px;
        height: 50px;
    }
    
    /* Balance display */
    .balance-inline-left h3 {
        font-size: 0.8em;
    }
    
    .balance-inline-left .balance-amount {
        font-size: 1.1em;
    }
}

/* Very small phones - Further scaled down */
@media (max-width: 480px) {
    .robocraps-game {
        padding: 2.1px;
    }
    
    .craps-table-container {
        padding: 4.2px;
    }
    
    .craps-table {
        padding: 4.2px;
        gap: 2.8px;
        grid-template-columns: 1fr 100px;
        grid-template-rows: auto auto auto auto auto auto auto auto;
        /* Increased width ratio to reduce height by 30% */
        aspect-ratio: 114.29/33;
    }
    
    .chip {
        width: 24.5px;
        height: 24.5px;
        font-size: 0.49em;
    }
    
    .die {
        width: 21px;
        height: 21px;
    }
    
    .die-dot {
        width: 2.8px;
        height: 2.8px;
    }
    
    .number-bet {
        min-height: 21px;
        padding: 2.1px;
    }
    
    .field-number {
        padding: 2.1px 2.8px;
        font-size: 0.525em;
        min-height: 15.4px;
    }
    
    .bet-label {
        font-size: 0.455em;
    }
    
    .bet-amount-display {
        font-size: 0.56em;
    }
}

/* Very small phones - Extra small */
@media (max-width: 375px) {
    .craps-header h2 {
        font-size: 0.77em;
    }
    
    .chip {
        width: 22.4px;
        height: 22.4px;
        font-size: 0.49em;
    }
    
    .chip-selector h3 {
        font-size: 0.525em;
    }
    
    .craps-table {
        grid-template-columns: 1fr 90px;
        grid-template-rows: auto auto auto auto auto auto auto auto;
        padding: 3.5px;
        gap: 2.1px;
    }
    
    .die {
        width: 19.6px;
        height: 19.6px;
    }
    
    .die-dot {
        width: 2.8px;
        height: 2.8px;
    }
    
    .dice-total {
        font-size: 0.595em;
    }
    
    .game-status {
        font-size: 0.49em;
        padding: 2.8px;
    }
    
    .number-bet {
        padding: 2.1px;
        min-height: 19.6px;
    }
    
    .number-bet .bet-label {
        font-size: 0.9em;
    }
    
    .field-label {
        font-size: 0.9em;
    }
    
    .field-number {
        padding: 2px 3px;
        font-size: 0.7em;
        min-height: 20px;
    }
    
    .field-number.double {
        font-size: 0.85em;
        min-height: 22px;
    }
    
    .field-payout-info {
        font-size: 0.65em;
    }
    
    .bet-label {
        font-size: 0.65em;
    }
    
    .bet-amount-display {
        font-size: 0.75em;
    }
    
    .balance-amount {
        font-size: 1.2em;
    }
    
    .craps-btn {
        padding: 8px 14px;
        font-size: 0.8em;
    }
    
    .paytable td {
        font-size: 0.6em;
        padding: 2px;
    }
    
    .placed-chip {
        width: 16px;
        height: 16px;
        font-size: 0.5em;
    }
}