    /* game.css */

    canvas {
        background: url('/images/groundpng7-0e28ba2a918c3cd9d280006ba6ae79ec.png') no-repeat center center;
        display: block;
        margin: 0 auto;
        width: 100%;
        height: auto;
        max-width: 640px;
        background-size: 100% 100%;
    }

    /* 토글 버튼 (오른쪽 하단)  */
    .toggle-button {
        position: fixed;
        bottom: 20px;
        right: 30px;
        width: 72px;
        height: 72px;
        background: url("/images/bettoggle-a80296943353ae00f75901e491fb831e.png") no-repeat center center;
        display: flex;
        color: transparent;
        border: none;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        z-index: 2001;
        transition: transform 0.3s;
    }
    .toggle-button:hover {
        transform: scale(1.15);
    }

    /* 오버레이 (playerOverlay) */
    .overlay {
        position: fixed;
        top: -100%;
        max-width: 600px;
        width: 100%;
        /*height: 50%;*/
        /*background-color: rgba(0,0,0,0.8);*/
        color: #fff;
        /*box-shadow: -2px 0 10px rgba(0,0,0,0.7);*/
        transition: top 0.3s ease;
        z-index: 20;
        overflow-y: auto;
    }
    .overlay.active {
        top:0;
      /*  bottom: 15%;*/
        /*padding-bottom: 20px;*/
        /*padding-top: 20px;*/
        /*padding-right: 20px;*/
     }

     .overlay.active::before {
         content: '';
         position: absolute;
         bottom: -9999px;

     }

     /* player-info */
    .player-info {
        background-color: rgba(255,255,255,0.1);
        /*border-radius: 6px;*/
        padding: 5px 15px;
        margin: 10px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.5);
    }
    .player-info h3 {
        margin: 0 0 8px;
        font-size: 16px;
        font-weight: 700;
        color: #ffdd57;
    }
    .player-info p {
        margin: 0 0 8px;
        line-height: 1.4;
        font-size: 14px;
        color: #ddd;
    }

    /* bet-controls */
    .bet-controls {
        /*display: flex;*/
        /*justify-content: space-between;*/
        /*align-items: center;*/
        /*gap: 8px;*/
        /*flex-wrap: nowrap;*/
        /*margin-top: 6px;*/
        display: grid;
        grid-template-columns: 1fr 20px 20px 30px 0.5fr auto 60px;
       /* grid-template-columns: 1.5fr 40px 1fr auto 60px;*/
        align-items: center;
        gap: 8px;
        margin-top: 6px;
    }
    .bet-icon {
        width: 24px;
        height: 24px;
        object-fit: cover;
    }
    .bet-controls .bet-input {
        /*width: 60px;*/
        padding: 3px;
        text-align: center;
        border: 1px solid #ccc;
        border-radius: 4px;
        background-color: #222;
        color: #fff;
        outline: none;
    }
    .numeric-buttons {
        display: flex;
        gap: 4px;
    }
    .numeric-buttons button {
        background-color: #04ca04;
        color: white;
        border: none;
        border-radius: 4px;
        padding: 4px 8px;
        cursor: pointer;
        font-size: 12px;
        transition: background-color 0.3s;
    }
    .numeric-buttons button:hover {
        background-color: #05e905;
    }

    /* playerOverlay 내부 */
    #currentCashContainer {
        padding: 10px;
        font-weight: bold;
        background-color: rgba(255,255,255,0.05);
        border-radius: 4px;
        margin-top: 8px;
        text-align: right;
    }
    #currentCashContainer span {
        color: #ffd700;
    }

    /* ticket-summary */
    .ticket-summary {
        flex: 1;
      /*  margin-top: 10px;
        margin-bottom: 10px;*/
        padding: 10px;
        margin: 10px;
        background-color: rgba(255,255,255,0.1);
        border-radius: 6px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.5);
    }

    .ticket-summary-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 8px;
    }

    .ticket-label {
        color: #ccc;
        font-weight: 600;
        text-align: left;
    }
    .ticket-value {
        color: #fff;
        font-weight: 600;
        text-align: right;
    }

    .status-available {
        color: #28a745;
    }
    .status-unavailable {
        color: #dc3545;
    }

    button:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        background-color: #ccc;
    }

    /* BUY 버튼 */
    #buyButton {
        display: block;
       /* margin: 12px auto 0 auto;*/
        background-color: #04ca04;
        color: #fff;
        font-size: 16px;
        border: none;
        border-radius: 6px;
        padding: 10px 20px;
        cursor: pointer;
        box-shadow: 0 3px 6px rgba(0,0,0,0.4);
        transition: background-color 0.3s, transform 0.2s;
    }
    #buyButton:hover {
        background-color: #12f512;
        transform: scale(1.03);
    }

    #initButton {
        display: block;
        /* margin: 12px auto 0 auto;*/
        background-color: #04ca04;
        color: #fff;
        font-size: 16px;
        border: none;
        border-radius: 6px;
        padding: 10px 20px;
        cursor: pointer;
        box-shadow: 0 3px 6px rgba(0,0,0,0.4);
        transition: background-color 0.3s, transform 0.2s;
    }
    #initButton:hover {
        background-color: #12f512;
        transform: scale(1.03);
    }

    /* 컷신 오버레이 */
    #cutsceneOverlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.7);
        display: none;
        opacity: 0;
        transition: opacity 0.5s ease;
        z-index: 9999;
        justify-content: center;
        align-items: center;
    }
    #cutsceneOverlay.active {
        display: flex;
        opacity: 1;
    }
    .cutscene-wrapper {
        width: 100%;
        height: 30%;
        background-color: black;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .cutscene-overlay img {
        max-width: 70%;
        max-height: 70%;
        object-fit: contain;
    }

    /* 유튜브 관련 추가 */

    .game-video-section {
        margin-top: 20px;
        color: #fff;
        text-align: center;
        padding: 0 10px 200px;

    }

    .game-video-section h3 {
        padding-bottom: 15px;
        font-size: 1.1rem;
        font-weight: 700;
    }


    .video-wrapper {
        position: relative;
        width: 100%;
        padding-bottom: 56.25%;
        background-color: #000;
        overflow: hidden;
        border-radius: 8px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.6);
    }

    .video-wrapper iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: 0;
        outline: none;
    }


    .status-bar-content {
        background-color: rgba(0, 0, 0, 0.8);
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        color: #fff;
        width: 100%;
        min-height: 200px;
        padding: 10px;
        box-sizing: border-box;
        overflow: hidden;
    }


    .status-bar-content table {
        width: 100%;
        border-collapse: collapse;
        margin: 0 auto;
    }


    .status-bar-content th,
    .status-bar-content td {
        padding: 6px 8px;
        text-align: center;
    }

    .status-bar-content th {
        background-color: rgba(0,0,0,0.4);
        font-weight: bold;
    }

    .status-bar-content img.runner-gif {
        width: 40px;
        height: auto;
        object-fit: cover;
    }

    /* status-page */
    .status-page {
        flex: 1;
        margin: 0 5px;
        cursor: pointer;

    }

    .pager-arrow-left {
        cursor: pointer;
        user-select: none;    /* 드래그 방지 (텍스트 선택 X) */
        background: none;     /* 투명 배경 or 본인 스타일 */
        border-top: 30px solid transparent;
        border-bottom: 30px solid transparent;
        border-right: 10px solid #04ca04;;
        transition: transform 0.2s, color 0.2s;
    }

    .pager-arrow-right {
        cursor: pointer;
        user-select: none;    /* 드래그 방지 (텍스트 선택 X) */
        background: none;     /* 투명 배경 or 본인 스타일 */
        border-top: 30px solid transparent;
        border-bottom: 30px solid transparent;
        border-left: 10px solid #04ca04;;
        transition: transform 0.2s, color 0.2s;
    }

    .pager-arrow-left:hover, .pager-arrow-right:hover {
        color: #12f512;
        transform: scale(1.1);
    }

    .past-games-grid {
        margin: 0 auto;
        width: 95%;
        display: grid;
        grid-template-columns: repeat(5, 0.9fr);
        gap: 12px;
        padding: 8px;
    }

    .past-game-card {
        background-color: rgba(255, 255, 255, 0.1);
        border: 1px solid #555;
        border-radius: 8px;
        color: #fff;
        text-align: center;
    }


    .past-game-card .round-num {
        font-weight: bold;
        margin-bottom: 4px;
        /*font-size: 1.1rem;*/
    }
    .past-game-card .winner-name {
       /* font-size: 0.9rem;*/
        margin-bottom: 4px;
    }
/*    .past-game-card .lane-num {
        font-size: 0.95rem;
        opacity: 0.8;
    }*/

    .status-page p {
        text-align: center;
        margin: 2px;
    }

    .bottom-nav {
        position: fixed;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        max-width: 640px; /* 모바일 기준이면 동일 */
        height: 60px;
        background-color: #000; /* 검은 배경 */
        border-top: 2px solid #04ca04; /* 상단 네온그린 테두리 */
        display: flex;
        justify-content: space-around;
        align-items: center;
        z-index: 9999; /* 버튼들이 다른 요소 위에 오도록 충분히 높은 값 */
    }

    /* 버튼들: 네온 그린 포인트, 호버시 살짝 확대 */
    .nav-btn {
        background: none;
        border: none;
        color: #04ca04;
        font-size: 1.4rem;
        cursor: pointer;
        transition: transform 0.3s, color 0.3s;
    }

    .nav-btn:hover {
        transform: scale(1.2);
        color: #53ff53; /* 호버시 더 밝은 녹색 */
    }
    button.option {
        touch-action: manipulation;
    }
    .summary-container {
        box-sizing: border-box;
        width: 100%;
        display: flex;
      /*  gap: 16px;*/
       /* margin-top: 10px;*/
        background-color: rgba(0, 0, 0, 0.8);
        /*justify-content: center;*/

    }

    #playerInfoContainer{
        overflow: auto;
        background-color: rgba(0, 0, 0, 0.8);
    }

    .button-row {
        display: flex;
        /*  justify-content: flex-end; 수평 오른쪽 정렬 */
    }
    /* 띠배너 효과 */
    @keyframes blink-bg {
        0%, 100% {
            background-color: #04ca04;
        }
        50% {
            background-color: #ff4040;
        }
    }

    .blinking {
        animation: blink-bg 1s infinite;
    }

    @media screen and (max-width: 768px) {

        .numeric-buttons button {
            font-size: 1.1rem;
        }

        .status-bar-content img.runner-gif {
            width: 50px;
        }


        .past-game-card {
            padding: 5px;
        }

        .ticket-icon {
            width: 1.2rem;
            height: 1.2rem;
        }

        #buyButton {
            font-size: 1.2rem;
        }

        #initButton {
            font-size: 1.2rem;
        }

        .bottom-nav {
            height: 80px;
        }


        .past-games-grid {
            font-size: 0.7rem;
        }
    }

    /*@media screen and (min-width: 768px) {*/
    /*    .toggle-button {*/
    /*        left: calc(50% + 350px);*/
    /*        right: auto;*/
    /*    }*/
    /*}*/
