/* ═══════════════════════════════════════════════════════════
   INFINITE CRAPS - COMPONENT STYLES
   UI components: ticker, dice, charts, stats, bonus tracker
   ═══════════════════════════════════════════════════════════ */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Roboto', sans-serif;
            background: linear-gradient(135deg, #2c1810 0%, #1a0f0a 100%);
            color: #e8e0d0;
            min-height: 100vh;
            overflow-y: auto;
            overflow-x: hidden;
        }

        /* ===== TICKER BAR AT TOP ===== */
        .ticker-bar {
            width: 100%;
            height: 50px;
            background: linear-gradient(90deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
            border-bottom: 3px solid #ffd700;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 20px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
            position: relative;
            z-index: 100;
            gap: 30px;
        }

        .ticker-section {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .ticker-current-compact {
            flex: 0 0 auto;
            white-space: nowrap;
        }

        .ticker-history-expanded {
            flex: 1;
            display: flex;
            align-items: center;
            gap: 10px;
            overflow: hidden;
            min-width: 0;
        }

        .ticker-total-compact {
            flex: 0 0 auto;
            white-space: nowrap;
        }

        .ticker-label-inline {
            font-size: 11px;
            font-weight: 600;
            color: rgba(200,195,170,0.5);
            letter-spacing: 0.5px;
            text-transform: uppercase;
        }

        .ticker-value-inline {
            font-size: 24px;
            font-weight: 900;
            color: #ffd700;
            font-family: 'Anton', sans-serif;
            text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
        }

        .ticker-numbers-left {
            display: flex;
            gap: 6px;
            font-size: 16px;
            font-weight: 700;
            color: rgba(200,195,170,0.8);
            font-family: 'Anton', sans-serif;
            overflow: hidden;
            flex: 1;
            justify-content: flex-start;
        }

        .ticker-number {
            min-width: 28px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 4px;
            border: 1px solid rgba(255, 255, 255, 0.2);
            transition: all 0.3s ease;
            text-align: center;
            flex-shrink: 0;
        }

        .ticker-number.latest {
            background: rgba(255, 215, 0, 0.2);
            border-color: #ffd700;
            color: #ffd700;
        }

        .ticker-total {
            flex: 0 0 auto;
        }

            font-weight: 500;
        }

        .tab:hover {
            background: rgba(139, 0, 0, 0.5);
        }

        .tab.active {
            background: linear-gradient(135deg, #8b0000 0%, #dc143c 100%);
            color: #ffd700;
            box-shadow: inset 0 -3px 0 #ffd700;
        }

        .tab.locked {
            opacity: 0.5;
            cursor: not-allowed;
        }

        .tab.locked::after {
            content: "\00a0\00a0🔒";
        }

        .tab.tab-games {
            background: rgba(20, 60, 120, 0.3);
            border: none;
            border-right: 1px solid #8b7355;
            color: #90caf9;
            text-decoration: none;
        }
        .tab.tab-games:visited {
            color: #90caf9;
        }
        .tab.tab-games:hover {
            background: rgba(33, 100, 180, 0.4);
            color: #bbdefb;
        }

        .viewer-count {
            display: inline-block;
            background: rgba(0, 0, 0, 0.4);
            padding: 2px 8px;
            border-radius: 12px;
            font-size: 12px;
            font-weight: 600;
            margin-left: 8px;
            color: #4caf50;
        }

        /* ==================== DESKTOP LAYOUT ==================== */
        .container {
            display: flex;
            flex-direction: column;
            gap: 0;
            padding: 0;
        }

        /* Dice area = Section A, sized by content grid row */
        .dice-area {
            width: auto;
            height: auto;
            background: 
                radial-gradient(ellipse at 30% 40%, rgba(15, 60, 15, 0.3) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 60%, rgba(10, 50, 10, 0.2) 0%, transparent 50%),
                linear-gradient(135deg, #0a3d0a 0%, #082d08 50%, #061f06 100%);
            border: 3px solid #4a3820;
            border-radius: 8px;
            position: relative;
            box-shadow: 
                inset 0 0 40px rgba(0,0,0,0.6),
                inset 0 4px 8px rgba(0,0,0,0.4),
                0 4px 15px rgba(0,0,0,0.7);
            overflow: hidden;
            perspective: 900px;
            perspective-origin: 50% 50%;
            padding-bottom: 80px;
        }

        /* Right: Stats panel - 35% width, fixed height, SCROLLS */
        .bottom-section {
            width: 35%;
            height: 100%;
            background: rgba(26, 15, 10, 0.8);
            border: 2px solid #8b7355;
            border-radius: 8px;
            padding: 20px;
            color: #e8e0d0;
            overflow-y: auto;
            overflow-x: hidden;
        }
        .table-layout {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            display: grid;
            grid-template-columns: repeat(18, 1fr);
            grid-template-rows: repeat(4, 1fr);
            padding: 10px;
            gap: 4px;
            opacity: 1;
            pointer-events: none;
            z-index: 1;
        }

        /* Prop section background container */
        .table-layout::after {
            content: '';
            position: absolute;
            right: 10px;
            top: 10px;
            bottom: 10px;
            width: calc(33.33% - 14px);
            background: linear-gradient(135deg, rgba(139, 0, 0, 0.15) 0%, rgba(80, 0, 0, 0.1) 100%);
            border: 2px solid rgba(200, 50, 50, 0.4);
            border-radius: 10px;
            pointer-events: none;
            z-index: -1;
            box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.3);
        }

        /* Base bet zone - vintage muted style */
        .bet-zone {
            border: 1px solid rgba(139, 115, 85, 0.4);
            border-radius: 2px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            font-size: 10px;
            font-weight: 600;
            color: rgba(200,195,170,0.8);
            text-align: center;
            padding: 3px 4px;
            background: rgba(0, 0, 0, 0.2);
            line-height: 1.1;
            font-family: 'Anton', sans-serif;
            letter-spacing: 0.5px;
            transition: all 0.3s ease;
        }

        /* Win/Lose animations - flat, no gradients */
        @keyframes winFlash {
            0%, 100% { 
                background: rgba(160, 120, 50, 0.4);
                border-color: rgba(255,215,0,0.5);
                box-shadow: 0 0 12px rgba(180, 140, 60, 0.4);
            }
            50% { 
                background: rgba(180, 130, 60, 0.6);
                box-shadow: 0 0 18px rgba(200, 150, 70, 0.6);
            }
        }

        @keyframes loseFlash {
            0%, 100% { 
                background: rgba(60, 60, 60, 0.4);
                border-color: rgba(200,195,170,0.5);
                box-shadow: 0 0 8px rgba(80, 80, 80, 0.3);
                opacity: 0.6;
            }
            50% { 
                background: rgba(70, 70, 70, 0.5);
                box-shadow: 0 0 12px rgba(100, 100, 100, 0.4);
                opacity: 0.5;
            }
        }

        .bet-zone.win {
            animation: winFlash 1s ease-in-out 2;
        }

        .bet-zone.lose {
            animation: loseFlash 1s ease-in-out 1;
        }

        /* ==================== MAIN TABLE (LEFT 2/3) ==================== */

        /* Pass Line - Flat tan */
        .bet-zone.pass-line {
            grid-column: 1 / 13;
            grid-row: 4;
            font-size: 14px;
            background: rgba(139, 115, 85, 0.3);
            border: 2px solid rgba(139, 115, 85, 0.6);
            color: rgba(200,195,170,0.8);
        }

        .bet-zone.pass-line::before {
            content: '';
            font-size: 0;
        }

        /* Don't Pass - Flat dark */
        .bet-zone.dont-pass {
            grid-column: 1 / 13;
            grid-row: 1;
            font-size: 11px;
            background: rgba(20, 20, 25, 0.5);
            border: 2px solid rgba(139, 115, 85, 0.4);
            color: rgba(200,195,170,0.8);
        }

        .bet-zone.dont-pass::after {
            content: ' BAR';
            font-size: 9px;
            display: inline;
            opacity: 0.7;
        }

        /* Come Area - removed for simplification */

        /* Field - spans full row */
        .bet-zone.field {
            grid-column: 1 / 13;
            grid-row: 3;
            font-size: 11px;
            background: rgba(0, 0, 0, 0.15);
            border: 1px solid rgba(180, 160, 130, 0.5);
            color: rgba(200,195,170,0.8);
        }

        .bet-zone.field::before {
            content: '';
            font-size: 0;
        }

        .bet-zone.field::after {
            content: 'Pays 2:1 on 2 & 12  •  Even on 3-4-9-10-11';
            font-size: 9px;
            color: rgba(200,195,170,0.8);
            display: block;
            margin-top: 2px;
        }

        /* Place Bets - Simple rectangles in ONE row */
        .bet-zone.place-4,
        .bet-zone.place-5,
        .bet-zone.place-6,
        .bet-zone.place-8,
        .bet-zone.place-9,
        .bet-zone.place-10 {
            background: rgba(0, 0, 0, 0.2);
            border: 1px solid rgba(180, 160, 130, 0.5);
            color: rgba(200,195,170,0.8);
            font-size: 18px;
            font-weight: 700;
            box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
        }

        .bet-zone.place-4 { grid-column: 1 / 3; grid-row: 2; }
        .bet-zone.place-5 { grid-column: 3 / 5; grid-row: 2; }
        .bet-zone.place-6 { grid-column: 5 / 7; grid-row: 2; }
        .bet-zone.place-8 { grid-column: 7 / 9; grid-row: 2; }
        .bet-zone.place-9 { grid-column: 9 / 11; grid-row: 2; }
        .bet-zone.place-10 { grid-column: 11 / 13; grid-row: 2; }

        .bet-zone.place-4::before,
        .bet-zone.place-5::before,
        .bet-zone.place-9::before,
        .bet-zone.place-10::before,
        .bet-zone.place-6::before,
        .bet-zone.place-8::before {
            content: 'PLACE';
            font-size: 9px;
            display: block;
            margin-bottom: 2px;
            opacity: 0.6;
        }

        /* Big 6 & Big 8 */
        .bet-zone.big-6,
        .bet-zone.big-8 {
            background: linear-gradient(135deg, rgba(255, 200, 0, 0.25) 0%, rgba(200, 150, 0, 0.15) 100%);
            border-color: rgba(255,215,0,0.8);
            font-size: 20px;
            border-width: 2px;
        }

        .bet-zone.big-6 { grid-column: 5 / 7; grid-row: 6; }
        .bet-zone.big-8 { grid-column: 7 / 9; grid-row: 6; }

        .bet-zone.big-6::before {
            content: '🔶 BIG';
            display: block;
            font-size: 9px;
            margin-bottom: 1px;
        }

        .bet-zone.big-8::before {
            content: '🔶 BIG';
            display: block;
            font-size: 9px;
            margin-bottom: 1px;
        }

        /* Don't Come Point Numbers */
        .bet-zone.dc-4,
        .bet-zone.dc-5,
        .bet-zone.dc-6,
        .bet-zone.dc-8,
        .bet-zone.dc-9,
        .bet-zone.dc-10 {
            background: linear-gradient(135deg, rgba(220, 20, 60, 0.2) 0%, rgba(139, 0, 0, 0.1) 100%);
            border-color: rgba(239,83,80,0.5);
            color: rgba(239,83,80,0.5);
            font-size: 10px;
        }

        .bet-zone.dc-4 { grid-column: 1 / 3; grid-row: 3; }
        .bet-zone.dc-5 { grid-column: 3 / 5; grid-row: 3; }
        .bet-zone.dc-6 { grid-column: 5 / 7; grid-row: 3; }
        .bet-zone.dc-8 { grid-column: 7 / 9; grid-row: 3; }
        .bet-zone.dc-9 { grid-column: 1 / 3; grid-row: 5; }
        .bet-zone.dc-10 { grid-column: 3 / 5; grid-row: 5; }

        /* ==================== PROPOSITION BETS - FLAT STYLE ==================== */

        /* Hardways */
        .bet-zone.hard-4,
        .bet-zone.hard-6,
        .bet-zone.hard-8,
        .bet-zone.hard-10 {
            background: rgba(40, 15, 15, 0.3);
            border: 1px solid rgba(139, 115, 85, 0.5);
            color: rgba(200,195,170,0.8);
            font-size: 9px;
        }

        .bet-zone.hard-4 { grid-column: 13 / 15; grid-row: 1; }
        .bet-zone.hard-6 { grid-column: 15 / 17; grid-row: 1; }
        .bet-zone.hard-8 { grid-column: 17 / 19; grid-row: 1; }
        .bet-zone.hard-10 { grid-column: 13 / 15; grid-row: 2; }

        .bet-zone.hard-4::before,
        .bet-zone.hard-6::before,
        .bet-zone.hard-8::before,
        .bet-zone.hard-10::before {
            content: '';
            font-size: 0;
        }

        /* Yo-11, Aces, Ace-Deuce, Boxcars, Any Craps */
        .bet-zone.yo-11,
        .bet-zone.aces,
        .bet-zone.ace-deuce,
        .bet-zone.boxcars,
        .bet-zone.any-craps {
            background: rgba(40, 15, 15, 0.3);
            border: 1px solid rgba(139, 115, 85, 0.5);
            color: rgba(200,195,170,0.8);
            font-size: 10px;
        }

        .bet-zone.yo-11 { grid-column: 15 / 17; grid-row: 2; }
        .bet-zone.aces { grid-column: 17 / 19; grid-row: 2; }
        .bet-zone.ace-deuce { grid-column: 15 / 17; grid-row: 3; }
        .bet-zone.boxcars { grid-column: 17 / 19; grid-row: 3; }
        .bet-zone.any-craps { grid-column: 13 / 15; grid-row: 3; font-size: 9px; }

        .bet-zone.yo-11::before,
        .bet-zone.aces::before,
        .bet-zone.ace-deuce::before,
        .bet-zone.boxcars::before,
        .bet-zone.any-craps::before {
            content: '';
            font-size: 0;
        }

        /* C & E */
        .bet-zone.c-bet,
        .bet-zone.e-bet {
            background: rgba(40, 15, 15, 0.3);
            border: 2px solid rgba(139, 115, 85, 0.6);
            color: rgba(200,195,170,0.8);
            font-size: 18px;
            font-weight: 700;
        }

        .bet-zone.c-bet { grid-column: 13 / 15; grid-row: 4; }
        .bet-zone.e-bet { grid-column: 15 / 17; grid-row: 4; }

        .bet-zone.c-bet::before,
        .bet-zone.e-bet::before {
            content: '';
            font-size: 0;
        }

        /* Any 7 */
        .bet-zone.any-7 {
            grid-column: 17 / 19;
            grid-row: 4;
            background: rgba(40, 15, 15, 0.3);
            border: 2px solid rgba(139, 115, 85, 0.6);
            color: rgba(200,195,170,0.8);
            font-size: 13px;
        }

        .bet-zone.any-7::before {
            content: '';
            font-size: 0;
            animation: none;
        }

        .live-indicator {
            position: absolute;
            top: 15px;
            right: 15px;
            display: flex;
            align-items: center;
            gap: 8px;
            background: rgba(0,0,0,0.7);
            padding: 8px 15px;
            border-radius: 20px;
            font-size: 12px;
            z-index: 10;
        }

        .live-dot {
            width: 10px;
            height: 10px;
            background: #ff0000;
            border-radius: 50%;
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.3; }
        }

        .point-indicator {
            position: absolute;
            top: 15px;
            left: 15px;
            background: rgba(0, 0, 0, 0.85);
            padding: 12px 20px;
            border-radius: 8px;
            border: 2px solid #ffd700;
            font-size: 14px;
            font-weight: 700;
            color: #ffd700;
            z-index: 10;
            font-family: 'Anton', sans-serif;
            letter-spacing: 1px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
            min-width: 120px;
            text-align: center;
        }

        .point-indicator.off {
            border-color: rgba(200,195,170,0.2);
            color: rgba(200,195,170,0.5);
        }

        .point-indicator .point-label {
            font-size: 10px;
            opacity: 0.7;
            display: block;
            margin-bottom: 2px;
        }

        .point-indicator .point-value {
            font-size: 32px;
            line-height: 1;
            text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
        }

        .point-indicator.off .point-value {
            text-shadow: none;
        }

        .result-display {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-family: 'Anton', sans-serif;
            z-index: 5;
            pointer-events: none;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
            gap: 10px;
            background: rgba(30, 30, 30, 0.85);
            padding: 25px 40px;
            border-radius: 12px;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
            max-width: 90%;
        }

        .dice-out-text {
            position: absolute;
            font-size: 56px;
            color: #ffd700;
            text-shadow: 4px 4px 8px rgba(0,0,0,0.9), 0 0 40px rgba(255,215,0,0.9);
            letter-spacing: 3px;
            font-style: italic;
            font-weight: bold;
            white-space: nowrap;
            top: 50%;
            transform: translateY(-50%);
        }

        @keyframes diceOutFly {
            0% {
                left: -300px;
                opacity: 0;
            }
            10% {
                opacity: 1;
            }
            85% {
                opacity: 1;
            }
            100% {
                left: calc(100% + 100px);
                opacity: 0;
            }
        }

        .dice-out-text.flying {
            animation: diceOutFly 1.6s cubic-bezier(0.12, 0, 0.39, 0) forwards;
        }

        .result-dice-images {
            display: flex;
            gap: 20px;
            margin-bottom: 10px;
        }

        .result-die-img {
            width: 100px;
            height: 100px;
            background: #ffffff;
            border-radius: 10px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.5);
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            grid-template-rows: repeat(3, 1fr);
            padding: 8px;
            gap: 3px;
        }

        .result-die-img .dot {
            width: 20px !important;
            height: 20px !important;
            background: #000000;
            border-radius: 50%;
            display: block;
            margin: auto;
            opacity: 1;
            position: relative;
        }

        .result-die-img .dot.hidden {
            opacity: 0 !important;
            visibility: hidden !important;
        }

        .result-number {
            font-size: 72px;
            color: #ffd700;
            text-shadow: 3px 3px 10px rgba(0,0,0,0.9);
            font-weight: bold;
        }

        .result-special {
            font-size: 24px;
            color: #ef5350;
            font-weight: bold;
            text-align: center;
            width: 100%;
        }

        .result-slang {
            font-size: 20px;
            color: rgba(76,175,80,0.5);
            font-style: italic;
            text-align: center;
            width: 100%;
            white-space: nowrap;
        }

        /* "Throw" hand */
        .throw-hand {
            position: absolute;
            left: -260px;
            top: 55%;
            transform: translateY(-50%);
            font-size: 140px;
            z-index: 6;
            pointer-events: none;
            opacity: 0;
            filter: drop-shadow(0 10px 18px rgba(0,0,0,0.75));
            user-select: none;
            will-change: transform, opacity;
        }

        .throw-hand.throwing {
            animation: handThrow 900ms cubic-bezier(.15,.9,.2,1) forwards;
        }

        @keyframes handThrow {
            0%   { transform: translate(-120px, -50%) rotate(-18deg) scale(1.05); opacity: 0; }
            18%  { transform: translate(40px, -50%) rotate(-22deg) scale(1.12); opacity: 1; }
            55%  { transform: translate(170px, -50%) rotate(30deg) scale(1.12); opacity: 1; }
            70%  { transform: translate(240px, -50%) rotate(8deg) scale(1.10); opacity: 1; }
            88%  { transform: translate(230px, -50%) rotate(2deg) scale(1.08); opacity: 1; }
            100% { transform: translate(160px, -50%) rotate(-2deg) scale(1.06); opacity: 0; }
        }

        /* Physics canvas */
        #physicsCanvas {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 2;
            pointer-events: none;
        }

        /* 3D Dice overlays */
        .die-overlay {
            position: absolute;
            width: 60px;
            height: 60px;
            transform-style: preserve-3d;
            pointer-events: none;
            left: -100px;
            top: -100px;
            transition: none;
        }

        #die1Overlay {
            z-index: 4;
        }

        #die2Overlay {
            z-index: 3;
        }

        .die-face {
            position: absolute;
            width: 60px;
            height: 60px;
            background: linear-gradient(145deg, #ffffff, #f0f0f0);
            border: 2px solid #ccc;
            border-radius: 8px;
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            grid-template-rows: repeat(3, 1fr);
            padding: 8px;
            gap: 3px;
            backface-visibility: hidden;
        }

        .die-face.front  { transform: translateZ(30px); }
        .die-face.back   { transform: rotateY(180deg) translateZ(30px); }
        .die-face.right  { transform: rotateY(90deg) translateZ(30px); }
        .die-face.left   { transform: rotateY(-90deg) translateZ(30px); }
        .die-face.top    { transform: rotateX(90deg) translateZ(30px); }
        .die-face.bottom { transform: rotateX(-90deg) translateZ(30px); }

        .dot {
            width: 10px;
            height: 10px;
            background: #1a0f0a;
            border-radius: 50%;
            opacity: 0;
        }

        .dot.active {
            opacity: 1;
        }

        /* ===== BONUS TRACKER - INLINE AT BOTTOM OF BOARD ===== */
        .bonus-tracker {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: rgba(0, 0, 0, 0.85);
            border-top: 2px solid rgba(139, 115, 85, 0.6);
            padding: 8px 15px;
            display: flex;
            flex-direction: row;
            gap: 30px;
            z-index: 1;
            justify-content: space-around;
            pointer-events: none;
        }

        .bonus-row {
            display: flex;
            align-items: center;
            gap: 12px;
            flex: 1;
        }

        .bonus-row:last-child {
            justify-content: flex-end;
            gap: 4px;
        }

        .bonus-row:last-child .bonus-label {
            min-width: 70px;
        }

        .bonus-label {
            font-size: 11px;
            font-weight: 600;
            color: rgba(200,195,170,0.5);
            font-family: 'Anton', sans-serif;
            letter-spacing: 0.5px;
            text-transform: uppercase;
            min-width: 120px;
            white-space: nowrap;
        }

        .bonus-numbers-inline {
            display: flex;
            gap: 4px;
            flex: 0 0 auto;
        }

        .bonus-num-inline {
            width: 28px;
            height: 28px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(0, 0, 0, 0.5);
            border: 1px solid rgba(120, 100, 80, 0.4);
            border-radius: 3px;
            font-size: 14px;
            font-weight: 700;
            font-family: 'Anton', sans-serif;
            color: rgba(200,195,170,0.8);
            transition: all 0.3s ease;
        }

        .bonus-num-inline.small-num {
            border-color: rgba(200,195,170,0.5);
        }

        .bonus-num-inline.tall-num {
            border-color: rgba(200,195,170,0.5);
        }

        .bonus-num-inline.fire-num {
            border-color: rgba(200,195,170,0.5);
        }

        .bonus-num-inline.hit {
            background: linear-gradient(135deg, rgba(160, 120, 50, 0.7) 0%, rgba(120, 90, 40, 0.6) 100%);
            border-width: 2px;
            color: rgba(200,195,170,0.8);
            box-shadow: 0 0 8px rgba(180, 140, 60, 0.5);
        }

        .bonus-num-inline.small-num.hit {
            border-color: rgba(200,195,170,0.8);
            box-shadow: 0 0 8px rgba(100, 150, 200, 0.5);
        }

        .bonus-num-inline.tall-num.hit {
            border-color: rgba(200,195,170,0.8);
            box-shadow: 0 0 8px rgba(200, 150, 100, 0.5);
        }

        .bonus-num-inline.fire-num.hit {
            border-color: rgba(200,195,170,0.8);
            box-shadow: 0 0 8px rgba(200, 100, 50, 0.6);
        }
        }

        /* Stats section - Full height */

        .stats-header {
            font-size: 18px;
            color: #ffd700;
            font-family: 'Anton', sans-serif;
            text-align: center;
            margin: 0 0 20px 0;
            padding-bottom: 10px;
            border-bottom: 2px solid #8b7355;
        }

        /* Current Shooter Section */
        .current-shooter-section {
            display: flex;
            flex-direction: column;
            gap: 15px;
            margin-bottom: 15px;
            min-height: 150px;
        }

        /* Best of All Time Section */
        .best-section {
            display: flex;
            flex-direction: column;
            gap: 15px;
            margin-bottom: 15px;
            min-height: 150px;
        }

        /* Points Distribution Section */
        .points-distribution-section {
            margin-bottom: 15px;
            min-height: 250px;
        }

        /* Distribution Section */
        .distribution-section {
            margin-bottom: 15px;
            min-height: 300px;
        }

        .section-title {
            font-size: 16px;
            color: #ffd700;
            font-family: 'Anton', sans-serif;
            margin: 10px 0 10px 0;
            padding-bottom: 8px;
            border-bottom: 1px solid rgba(139, 115, 85, 0.5);
        }

        .section-title:first-child {
            margin-top: 0;
        }

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

        .shooter-stats {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px;
            margin-bottom: 10px;
        }

        .stat-item {
            background: rgba(0, 0, 0, 0.3);
            padding: 15px;
            border-radius: 5px;
            border: 1px solid #8b7355;
            text-align: center;
        }

        .stat-label {
            font-size: 12px;
            color: rgba(200,195,170,0.8);
            margin-bottom: 8px;
            font-weight: 600;
        }

        .stat-value {
            font-size: 36px;
            color: #ffd700;
            font-weight: bold;
            font-family: 'Anton', sans-serif;
        }

        /* Points Distribution Chart */
        .points-distribution-section {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .points-chart-container {
            background: rgba(0, 0, 0, 0.2);
            border: 1px solid rgba(139, 115, 85, 0.3);
            border-radius: 6px;
            padding: 15px;
        }

        .points-chart {
            display: flex;
            justify-content: space-around;
            align-items: flex-end;
            height: 150px;
            padding-top: 10px;
            gap: 8px;
            position: relative;
        }

        .points-bar-container {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            position: relative;
            height: 100%;
        }

        .points-bar {
            width: 100%;
            background: linear-gradient(180deg, rgba(180, 140, 60, 0.8) 0%, rgba(140, 100, 40, 0.6) 100%);
            border-radius: 3px 3px 0 0;
            transition: height 0.3s ease;
            position: absolute;
            bottom: 25px;
            left: 0;
            right: 0;
            min-height: 3px;
        }

        .points-bar-label {
            position: absolute;
            bottom: 0;
            font-size: 10px;
            color: rgba(200,195,170,0.8);
            font-weight: 600;
        }

        .points-chart-legend {
            text-align: center;
            font-size: 9px;
            color: rgba(200,195,170,0.8);
            margin-top: 10px;
            font-style: italic;
        }

        /* Rolls Distribution Chart (same styling as points chart) */
        .rolls-chart {
            display: flex;
            justify-content: space-around;
            align-items: flex-end;
            height: 150px;
            padding-top: 10px;
            gap: 8px;
            position: relative;
        }

        .rolls-bar-container {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            position: relative;
            height: 100%;
        }

        .rolls-bar {
            width: 100%;
            background: linear-gradient(180deg, rgba(100, 150, 200, 0.8) 0%, rgba(70, 110, 160, 0.6) 100%);
            border-radius: 3px 3px 0 0;
            transition: height 0.3s ease;
            position: absolute;
            bottom: 25px;
            left: 0;
            right: 0;
            min-height: 3px;
        }

        .rolls-bar-label {
            position: absolute;
            bottom: 0;
            font-size: 10px;
            color: rgba(200,195,170,0.8);
            font-weight: 600;
        }

        /* Roll Distribution Section (bottom 1/3) */
        .distribution-section {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 10px;
            min-height: 200px;
        }

        .charts-container {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 10px;
            flex: 1;
        }

        .chart-box {
            background: rgba(0, 0, 0, 0.3);
            border: 1px solid #8b7355;
            border-radius: 5px;
            padding: 10px;
            display: flex;
            flex-direction: column;
        }

        .chart-title {
            font-size: 10px;
            color: rgba(200,195,170,0.8);
            text-align: center;
            margin-bottom: 8px;
            font-weight: 600;
        }

        .chart-bars {
            flex: 1;
            display: flex;
            align-items: flex-end;
            justify-content: space-around;
            gap: 2px;
            min-height: 120px;
            position: relative;
            padding-top: 15px;
        }

        .bar-container {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 3px;
            height: 100%;
            position: relative;
        }

        .bar {
            width: 100%;
            background: linear-gradient(to top, #ffd700, #ffed4e);
            border-radius: 2px 2px 0 0;
            transition: height 0.3s ease;
            position: absolute;
            bottom: 16px;
            left: 0;
            right: 0;
        }

        .bar-label {
            font-size: 9px;
            color: rgba(200,195,170,0.8);
            font-weight: 600;
            position: absolute;
            bottom: 0;
        }


/* ═══════════════════════════════════════════════════════════
   BLOG LINK CARDS & GUIDE PILLS
   Replaces 90+ repeated inline style= attributes in index.html
   ═══════════════════════════════════════════════════════════ */

/* Blog link card — the grid of bet-type links in the SEO section */
.blog-link-card {
    display: inline-flex;
    flex-direction: column;
    background: rgba(0,0,0,.25);
    border: 1px solid rgba(139,115,85,.3);
    border-radius: 6px;
    padding: 6px 10px;
    text-decoration: none;
    transition: border-color .15s;
}
.blog-link-card:hover {
    border-color: rgba(255,215,0,.5);
}
.blog-link-card__title {
    font-size: 12px;
    color: #e8e0d0;
    font-weight: 600;
}
.blog-link-card__edge {
    font-size: 10px;
    color: rgba(200,195,170,.5);
    margin-top: 1px;
}

/* Guide pill — inline "📖 Guide" badge next to strategy names */
.guide-pill {
    display: inline-block;
    vertical-align: middle;
    margin-left: 4px;
    padding: 2px 7px;
    background: rgba(255,215,0,0.1);
    border: 1px solid rgba(255,215,0,0.3);
    border-radius: 4px;
    font-size: 10px;
    color: #ffd700;
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-decoration: none;
    white-space: nowrap;
}
.guide-pill:hover {
    background: rgba(255,215,0,0.2);
}
.guide-pill--offset {
    margin-left: 6px;
}

@media (max-width: 768px) {
    .guide-pill {
        display: inline-flex;
        align-items: center;
        margin-left: 0;
        margin-top: 6px;
        margin-bottom: 6px;
        width: fit-content;
        font-size: 11px;
        font-weight: 600;
        padding: 4px 10px;
        background: rgba(255,215,0,0.12);
        border: 1px solid rgba(255,215,0,0.35);
        border-radius: 5px;
        color: #ffd700 !important;
        text-decoration: none !important;
        letter-spacing: 0.3px;
        font-family: 'Roboto', sans-serif;
        white-space: nowrap;
    }
    .guide-pill:hover, .guide-pill:active {
        background: rgba(255,215,0,0.22);
        text-decoration: none !important;
    }
    .guide-pill--offset {
        margin-left: 0;
    }
    /* Lucky body: on mobile give pills their own line */
    .lucky-body {
        line-height: 1.8;
    }
}

/* Gold CTA link — "All bet types →" / "All guides →" */
.gold-cta-link {
    display: inline-flex;
    align-items: center;
    background: rgba(255,215,0,.08);
    border: 1px solid rgba(255,215,0,.3);
    border-radius: 6px;
    padding: 6px 12px;
    text-decoration: none;
    font-size: 12px;
    color: #ffd700;
    font-weight: 700;
}
.gold-cta-link:hover {
    background: rgba(255,215,0,.14);
}

/* ══════════════════════════════════════════════════════════
   CANONICAL HEADER SYSTEM
   ic-header-t1: full-width section headers
                 (Board, Bets, Charts, Guide, Bonus & Multi-Roll)
   ic-header-t2: sub-collapse headers inside bet matrix
                 (Bets inner, Foundational Bets, Hop Bets)
   ══════════════════════════════════════════════════════════ */

.ic-header-t1 {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 28px;
    height: 40px;
    min-height: 40px;
    flex-shrink: 0;
    position: relative;
    cursor: pointer;
    user-select: none;
    background: rgba(12,8,2,0.92);
    border-bottom: 1px solid rgba(139,115,85,0.25);
    transition: background 0.15s;
    box-sizing: border-box;
}
.ic-header-t1:hover { background: rgba(20,13,3,0.96); }
.ic-header-t1 .ic-label {
    font-family: 'Roboto', sans-serif;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,215,0,0.65);
    text-shadow: 1px 1px 0 rgba(0,0,0,0.9);
    text-align: center;
    white-space: nowrap;
}
.ic-header-t1 .ic-line {
    display: none;
}
.ic-header-t1 .ic-chevron {
    position: absolute;
    right: 10px;
    font-size: 9px;
    color: rgba(200,195,170,0.4);
    transition: transform 0.2s;
}
.ic-header-t1.closed .ic-chevron,
.ic-header-t1.collapsed .ic-chevron { transform: rotate(180deg); }

.ic-header-t2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 8px;
    height: 36px;
    min-height: 36px;
    flex-shrink: 0;
    position: relative;
    cursor: pointer;
    user-select: none;
    background: rgba(8,5,0,0.88);
    border-top: 1px solid rgba(0,0,0,0.6);
    border-bottom: 1px solid rgba(0,0,0,0.5);
    transition: background 0.15s;
}
.ic-header-t2:hover { background: rgba(12,8,0,0.92); }
.ic-header-t2 .ic-label {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 2.5px;
    color: rgba(255,215,0,0.82);
    text-shadow: 1px 1px 0 rgba(0,0,0,0.9);
    text-align: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    white-space: nowrap;
}
.ic-header-t2 .ic-line {
    flex: 1;
    height: 1px;
    background: rgba(139,115,85,0.15);
    margin: 0 8px;
}
.ic-header-t2 .ic-chevron {
    position: absolute;
    right: 10px;
    font-size: 9px;
    color: rgba(200,195,170,0.35);
    transition: transform 0.2s;
}
.ic-header-t2.closed .ic-chevron,
.ic-header-t2.collapsed .ic-chevron { transform: rotate(180deg); }
