/* static/css/pages/home.css */

/* =========================================
   1. Search Bar
   ========================================= */
.top-search-section {
    display: flex;
    justify-content: center;
    margin: 12px 0 24px;
}

.search-wrapper {
    /* 1. Dimensions */
    width: min(430px, calc(100vw - 40px));
    height: 50px;
    
    /* 2. Layout & Alignment */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 14px;
    
    /* 3. Gradient Border Implementation */
    border: 1px solid transparent; /* Must be transparent */
    border-radius: 100px;
    
    /* Background: Inner dark layer + Gradient border layer */
    background-image: 
        linear-gradient(#0F1216, #0F1216), 
        linear-gradient(to right, #33EA7E, #0035F8);
        
    background-origin: border-box;
    background-clip: padding-box, border-box;
    
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
    position: relative;
    overflow: hidden;
    cursor: text;
}

.search-wrapper::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at 18% 50%, rgba(51, 234, 126, 0.16), transparent 50%);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.search-wrapper::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(115deg, transparent 0%, rgba(255,255,255,0.12) 48%, transparent 60%);
    transform: translateX(-120%);
    opacity: 0;
    pointer-events: none;
}

.search-wrapper:focus-within,
.search-wrapper[data-focused="true"] {
    transform: translateY(-2px);
    box-shadow:
        0 14px 30px rgba(0, 0, 0, 0.24),
        0 0 0 1px rgba(51, 234, 126, 0.34),
        0 0 0 5px rgba(13, 235, 112, 0.14);
    filter: saturate(1.12) brightness(1.04);
}

.search-wrapper:hover {
    box-shadow:
        0 8px 22px rgba(0, 0, 0, 0.18),
        0 0 0 4px rgba(13, 235, 112, 0.1);
}

.search-wrapper:focus-within::before,
.search-wrapper[data-focused="true"]::before {
    opacity: 1;
}

.search-wrapper:focus-within::after,
.search-wrapper[data-focused="true"]::after {
    opacity: 1;
    animation: search-sheen 0.9s ease;
}

.search-input {          
    width: 100%;
    min-width: 0;
    height: 100%;
    
    background: transparent;
    border: none;
    outline: none;
    
    font-weight: 400;
    font-size: 16px;
    text-align: left;
    color: #fff;
    flex: 1;
}

.search-input::placeholder {
    color: #fff;
    text-align: center;
    opacity: 1;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.search-input:focus::placeholder {
    opacity: 0;
    transform: translateX(6px);
}

.search-btn {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
    flex-shrink: 0;
}

.search-wrapper:focus-within .search-btn {
    transform: scale(1.12) translateX(2px);
    opacity: 1;
}

.search-wrapper:focus-within .search-btn img,
.search-wrapper[data-focused="true"] .search-btn img {
    filter: drop-shadow(0 0 8px rgba(51, 234, 126, 0.28));
}

@keyframes search-sheen {
    0% { transform: translateX(-120%); opacity: 0; }
    20% { opacity: 0.55; }
    100% { transform: translateX(120%); opacity: 0; }
}


/* =========================================
   2. Category Nav
   ========================================= */
.category-nav-section {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 50px;
}

.cat-item {
    /* 1. Fixed Dimensions */
    width: 120px;
    height: 85px;
    
    /* 2. Layout */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    
    /* 3. Interactive */
    border-radius: 12px;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
}

.cat-icon-box {
    position: relative;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cat-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.3s;
}

.cat-text {
    font-size: 18px;
    color: #fff;
    font-weight: 700;
}

.cat-text,
.cat-item.active .cat-text {
    color: #fff;
    font-weight: 700;
}

/* =========================================
   3. Hero Slider
   ========================================= */
.hero-slider-section {
    position: relative;
    width: 100%;
    height: 380px;
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 24px;
    background-color: #1A1A2E;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out, visibility 0.6s;
}

.hero-slide.active {
    z-index: 2;
    opacity: 1;
    visibility: visible;
}

/* Placeholder Image Style */
.slide-placeholder-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

/* Pagination Dots */
.hero-pagination {
    position: relative; 
    z-index: 10;
    
    display: flex;
    justify-content: flex-end; 
    align-items: center;
    gap: 8px;
    
    margin-top: 12px;
    margin-bottom: 40px;
    padding-right: 10px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #4A5568;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.hero-dot.active {
    width: 40px;
    border-radius: 100px;
    background: #0DEB70;
}


/* =========================================
   4. Common Section Components
   ========================================= */

/* Header (Title Left + Button Right) */
.section-header-common {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 20px;
}

.section-title-group {
    display: flex;
    align-items: center;
}

.section-title-text {
    font-family: 'GmarketSans', sans-serif; 
    font-weight: 700;
    font-size: 24px;
    line-height: 1.4;
    letter-spacing: 0;
    color: #fff;
    margin-top: 2px;
}

/* More Button */
.btn-section-more {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    
    background: transparent;
    border: none;
    cursor: pointer;
}

.btn-section-more img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.btn-section-more span {
    font-family: 'Pretendard', sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.4;
    letter-spacing: 0;
    color: #fff; 
}


/* =========================================
   5. Sportsbook Section
   ========================================= */

/* Glass Container */
.sports-glass-container {
    position: relative;
    z-index: 1;
    
    /* Layout */
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Dimensions & Positioning */
    width: 1543px;
    min-height: 458px;
    margin-left: 50%;
    transform: translateX(-50%);
    margin-bottom: 60px;
    
    /* Styles */
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
}

/* Full Width Background Wrapper */
.sport-background {
    position: relative !important;
    z-index: 0 !important;
    width: 100% !important;
    padding-top: 60px !important;
    padding-bottom: 40px !important;
}

/* Pseudo-element for Full Width Breakout */
.sport-background::before {
    content: '' !important;
    position: absolute !important;
    z-index: -1 !important;
    top: 0 !important;
    bottom: 0 !important;
    
    /* Magic Hack: Stretch off-canvas */
    left: -9999px !important;
    right: -9999px !important;

    /* Background Image */
    background-image:
        linear-gradient(to bottom, rgba(18,18,18,0) 60%, #121212 100%),
        linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
        url('/static/img/sport-bg.png') !important; 
    
    background-size: 110vw auto !important;
    background-position: center 75% !important;
    background-repeat: no-repeat !important;
}

/* Inner Layout */
.sports-inner-layout {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 1380px;
    height: 350px;
}

.sports-inner-layout .section-header-common {
    height: 34px;     
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 0;
}

.sports-inner-layout .section-title-group {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 100%;
}

.sports-inner-layout .section-title-text {
    line-height: 1;
    margin-top: 2px;
}

/* Grid Layout */
.sports-card-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    flex-grow: 1;
}

/* Sport Card */
.sport-card {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: visible; /* Allows badge to protrude */
    cursor: pointer;
    background: none;
    border: none;
}

/* Layers */
.layer-bg {
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: transform 0.5s ease;
}

.card-mask {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    overflow: hidden; /* Clips corners */
    
    background-color: #121212;
    border: 1px solid transparent; 
    border-radius: 16px;
    transition: box-shadow 0.3s, border 0.3s;
}

.layer-char {
    position: absolute;
    z-index: 2;
    bottom: 0;
    height: 105%;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.layer-overlay {
    position: absolute;
    z-index: 3;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 60%);
}

.layer-content {
    position: absolute;
    z-index: 4;
    bottom: 20px;
    left: 20px;
    right: 20px;
    
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    gap: 10px;
}

.layer-content img:first-child {
    width: auto;
    height: 24px;
    object-fit: contain;
    margin-bottom: 0 !important;
}

.sport-name-kr {
    display: block;
    font-size: 14px;
    color: #fff;
    font-weight: 700;
}

.sport-name-en {
    font-size: 12px;
    color: #718096;
}

/* Badge (HOT/NEW) */
.layer-badge {
    position: absolute;
    z-index: 10;
    top: -12px; 
    left: 0;
    
    width: auto;
    height: 24px;
    object-fit: contain;
    pointer-events: none; 
}


/* =========================================
   6. Live Casino Section
   ========================================= */

/* Decoration Objects Wrapper */
.casino-background {
    position: relative !important;
    width: 100% !important;
    overflow: visible !important; /* Allow decoration overflow */
    padding-top: 60px !important;
    padding-bottom: 60px !important;
}

/* Decoration Objects Common */
.casino-deco-obj {
    position: absolute !important;
    z-index: 0 !important;
    pointer-events: none !important;
    opacity: 1 !important;
}

/* Left Decoration Object (Front) */
.obj-left {
    left: -500px !important; 
    bottom: 350px !important;
    width: 700px !important;
    height: 466px !important;
}

/* Right Decoration Object (Back) */
.obj-right {
    right: -300px !important; /* Set to -300px */
    bottom: 0 !important;
    width: 412px !important;
    height: 288px !important;
}

/* Layout Container */
.casino-section-container {
    display: flex;
    flex-direction: column;
    width: 1380px;
    margin: 0 auto 60px;
    padding-top: 40px;
    gap: 16px;
}

/* Main Grid (1 Big + 6 Small) */
.casino-main-grid {
    display: grid;
    /* Left Auto (approx 474px) + Right 3 fixed columns */
    grid-template-columns: 1fr 286px 286px 286px; 
    grid-template-rows: 286px 286px;
    gap: 16px;
    max-width: 100%;
}

/* Card Common Style */
.casino-card {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 100%;
    overflow: hidden;
    
    background-color: #1e1e1e;
    border-radius: 16px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

/* Left VIP Card */
.card-vip {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    background: linear-gradient(135deg, #3d3318, #1a1a1a);
}

/* Standard Card */
.card-standard {
    background-color: #2c2c2c;
}

/* Top Label Area */
.casino-card-top {
    position: absolute;
    z-index: 10;
    top: 0;
    left: 0;
    
    display: flex;
    justify-content: flex-start;
    width: 100%;
    padding: 12px;
}

.temp-label {
    display: flex;
    align-items: center;
    height: 24px;
    padding: 0 10px;
    border-radius: 4px;
    
    font-size: 12px;
    font-weight: bold;
    color: #fff;
}
.label-hot { background: #FF416C; }
.label-new { background: #7F00FF; }
.label-best { background: #00b09b; }

.temp-logo-text {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}
.temp-sub-text {
    font-size: 12px;
    color: #aaa;
}

/* Bottom Strip (4 Wide Cards) */
.casino-bottom-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px; 
    width: 100%;
    margin-top: 16px;
}

.card-wide {
    position: relative;
    width: 100%;
    height: 192px;
    overflow: hidden;
    
    background-color: #1e1e1e;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    
    cursor: pointer;
    transition: transform 0.3s, border 0.3s, box-shadow 0.3s;
}

/* Layers */
.card-bg {
    position: absolute;
    z-index: 0;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-char {
    position: absolute;
    z-index: 1;
    bottom: 0;
    right: -10px;
    height: 90%;
    width: auto;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Bottom Info Bar */
.casino-card-bottom {
    position: absolute;
    z-index: 2;
    bottom: 0;
    left: 0;
    
    display: flex;
    align-items: center;
    justify-content: space-between;
    
    width: 100%;
    height: 44px;
    padding-left: 8px;
    padding-right: 8px;
    box-sizing: border-box;
    background: #000000A3; 
}

.card-logo-img {
    height: 18px;
    width: auto;
    padding-left: 16px;
    object-fit: contain;
}

.card-info-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-info-text {
    font-family: 'Pretendard', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.4;
    color: #fff;
    white-space: nowrap; 
}

.icon-info {
    width: 24px;
    height: 24px;
    padding-right: 16px;
    cursor: pointer;
}

/* Wide Card Specifics */
.card-wide .card-bg {
    position: absolute;
    z-index: 0;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-wide .card-char {
    position: absolute;
    z-index: 1;
    right: 56px; 
    bottom: -16px; 
    height: 100%; 
    width: auto;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Wide Card Logo Box (Top Left) */
.card-wide-logo-box {
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    
    display: flex;
    align-items: center;
    justify-content: center;
    
    width: 124px;
    height: 44px;
    
    background: #000000; 
    opacity: 0.64;
    
    /* Unique Border Radius */
    border-top-left-radius: 16px;
    border-bottom-right-radius: 16px;
    border-top-right-radius: 0;
    border-bottom-left-radius: 0;
}

.card-wide-logo-box img {
    max-width: 80%;
    max-height: 24px;
    object-fit: contain;
}

/* Wide Card Info (Bottom Left) */
.card-wide-info {
    position: absolute;
    z-index: 3;
    bottom: 16px;
    left: 16px;
    
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-wide-info span {
    font-family: 'Pretendard', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.4;
    color: #fff;
    opacity: 0.7;
}

.card-wide-info .icon-info {
    width: 24px;
    height: 24px;
}


/* =========================================
   8. Stats & Winner Section
   ========================================= */
.stats-section-container {
    display: grid;
    grid-template-columns: 1fr 650px; 
    grid-template-rows: auto auto;
    grid-template-areas: 
        "stats header"
        "stats body";
    
    width: 1380px;
    margin: 60px auto 100px;
    column-gap: 40px; 
    align-items: end; 
}

/* Area 1: Left Stats */
.stats-group-left {
    grid-area: stats;
    display: flex;
    gap: 80px;
    padding-bottom: 20px;
}

/* Area 2: Winner Header */
.winner-header {
    grid-area: header;
    justify-self: center; 
    
    display: flex;
    align-items: center;
    gap: 8px;
    
    width: 348px; 
    padding-left: 16px;
    margin-bottom: 16px; 
    
    font-family: 'GmarketSans', sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: #fff;
}

/* Area 3: Winner Body */
.winner-body-wrapper {
    grid-area: body;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}

/* Stats Styling */
.stat-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stat-label {
    font-family: 'GmarketSans', sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 1.4;
    color: #fff;
}

.stat-number {
    font-family: 'GmarketSans', sans-serif;
    font-weight: 700;
    font-size: 54px;
    line-height: 1.4;
    color: #fff;
}

/* Wings */
.wing-col {
    flex: 1;
    display: flex;
    justify-content: center;
}

/* Winner Card Box */
.winner-card-box {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 16px;
    
    width: 348px;
    height: 178px;
    padding: 16px;
    overflow: hidden; 
    box-sizing: border-box;
    
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);

    /* Animation Props */
    transform-style: preserve-3d;
    transform: rotateX(0deg);
    transition: transform 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.winner-card-box.flipping-out { transform: rotateX(90deg); }
.winner-card-box.flipping-in-start { transform: rotateX(-90deg); transition: none; }

/* Shine Effect */
.winner-card-box::after {
    content: '';
    position: absolute;
    z-index: 10;
    top: 0; left: -150%; 
    width: 100%; height: 100%;
    
    background: linear-gradient(to right, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
    transform: skewX(-25deg);
    pointer-events: none;
}

.winner-card-box.shining::after {
    animation: shineEffect 0.8s ease-out forwards;
}

@keyframes shineEffect {
    0% { left: -150%; }
    100% { left: 150%; }
}

/* Winner Content */
.winner-inner-content {
    display: flex; 
    gap: 16px;
    width: 100%; 
    height: 100%;
}

.winner-left-group {
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: space-between;
    width: 100px;
    height: 100%; 
}

.winner-avatar {
    width: 100px; 
    height: 100px; 
    border-radius: 12px; 
    object-fit: cover;
}

.winner-game-logo {
    width: 90px; 
    height: auto; 
    object-fit: contain;
}

.winner-info-group {
    flex: 1; 
    display: flex; 
    flex-direction: column; 
    justify-content: space-between; 
    height: 100%;
}

.winner-name {
    font-family: 'Pretendard', sans-serif; 
    font-size: 14px; 
    color: #ccc;
}

.winner-amount-main {
    font-family: 'Pretendard', sans-serif; 
    font-weight: 700; 
    font-size: 18px; 
    color: #00FF85;
}

.winner-amount-sub {
    font-family: 'Pretendard', sans-serif; 
    font-size: 16px; 
    color: #00FF85;
}

.winner-game-name {
    margin-top: auto;
    font-family: 'Pretendard', sans-serif; 
    font-weight: 700; 
    font-size: 14px; 
    color: rgba(255, 255, 255, 0.7); 
}


/* =========================================
   9. Slot Game Grid
   ========================================= */

.slot-section {
    width: 1380px;
    margin: 0 auto 80px;
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.section-title {
    font-family: 'GmarketSans', sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: #fff;
}

.section-link {
    font-family: 'Pretendard', sans-serif;
    font-size: 14px;
    color: #999;
    text-decoration: none;
}

/* Grid Layout */
.slot-grid {
    display: grid;
    grid-template-columns: repeat(5, 260px); 
    gap: 20px;
}

/* Slot Card */
.slot-card {
    display: flex;
    flex-direction: column;
    gap: 0px;
    width: 100%; 
    overflow: visible; 
    cursor: pointer;
}

/* Slot Top Bar */
.slot-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end; 
    height: 24px; 
    margin-bottom: 16px;
}

/* Status Badge */
.slot-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-family: 'Pretendard', sans-serif;
    font-weight: 800;
    font-size: 11px;
    color: #000;
    line-height: 1;
}
.badge-green { background-color: #00FF85; }
.badge-red   { background-color: #FF4D4D; color: #fff; }
.badge-purple{ background-color: #7F56D9; color: #fff; }

/* Provider Logo */
.slot-provider-logo {
    height: auto; 
    max-height: 42px; 
    width: auto;
    object-fit: contain;
}

/* Slot Thumbnail */
.slot-thumb-box {
    width: 260px;
    height: 260px;
    margin-bottom: 12px;
    overflow: hidden;
    
    background: #1e1e1e;
    border-radius: 16px;
}

.slot-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

/* Slot Name */
.slot-name {
    display: block;
    width: 100%;
    
    font-family: 'Pretendard', sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 1.4;
    text-align: center;
    text-transform: uppercase;
    color: #FFFFFF;
    
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s;
}


/* =========================================
   10. Real-time Withdrawal Section
   ========================================= */

.withdrawal-section {
    width: 1380px;
}

.withdrawal-window {
    width: 1380px;
    overflow: hidden; 
}

.withdrawal-track {
    display: flex;
    gap: 20px;
    transform: translateX(0);
    transition: transform 0.5s ease-in-out;
}

/* Withdrawal Card */
.withdrawal-card {
    flex-shrink: 0; 
    
    display: flex;
    align-items: center;
    
    width: 260px;
    height: 88px;
    padding: 16px;
    gap: 6px;
    box-sizing: border-box;
    
    background: linear-gradient(180deg, #27292D 0%, #010101 100%);
    border: 1px solid #2A2727;
    border-radius: 8px;
}

.withdrawal-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    
    border: 2px solid var(--green-500); 
    box-sizing: border-box;
}

.withdrawal-name {
    font-family: 'Pretendard', sans-serif;
    font-weight: 500;
    font-size: 12px;
    line-height: 1;
    color: rgba(255, 255, 255, 0.8);
    
    margin-left: 12px;
    white-space: nowrap;
}

.withdrawal-amount {
    margin-left: auto; /* Push to right */
    font-family: 'Pretendard', sans-serif;
    font-weight: 700;
    font-size: 12px;
    line-height: 1;
    color: var(--green-500);
}


/* =========================================
   11. Event Section
   ========================================= */

.event-section {
    position: relative; 
    width: 1380px;
    margin: 80px auto 100px;
}

/* Header */
.event-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.event-title {
    font-family: 'KBODiaGothic', 'Pretendard', sans-serif; 
    font-weight: 700;
    font-size: 24px;
    line-height: 1.4;
    letter-spacing: 0;
    color: #fff;
}

.event-tabs {
    display: flex;
    gap: 32px;
}

.event-tab-item {
    position: relative;
    padding-bottom: 4px;
    
    font-family: 'Pretendard', sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.4;
    color: #fff;
    
    cursor: pointer;
    transition: color 0.3s;
}

.event-tab-item.active {
    color: #00FF85;
    text-decoration: underline;
}

.event-tab-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    
    background-color: var(--green-500);
    transform: scaleX(0); 
    transform-origin: center;
    transition: transform 0.3s ease;
}

.event-tab-item.active::after {
    text-decoration: underline;
}

/* Event Grid */
.event-grid {
    display: grid;
    grid-template-columns: repeat(4, 330px); 
    gap: 20px;
}

/* Event Card */
.event-card {
    position: relative; 
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 330px;
    cursor: pointer;
}

.event-thumb-box {
    position: relative; 
    width: 330px;
    height: 210px;
    overflow: hidden; 
    
    background-color: #3d3459;
    border-radius: 16px;
}

.event-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.event-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.event-card-title {
    font-family: 'Pretendard', sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 1.4;
    text-transform: uppercase;
    color: #fff;
}

.event-card-desc {
    display: block;
    width: 100%;
    
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.44);
    
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Navigation Buttons (Global) */
.event-nav-btn {
    position: absolute;
    z-index: 10;
    top: 145px; 
    
    display: flex;
    justify-content: center;
    align-items: center;
    
    width: 40px;
    height: 40px;
    border-radius: 50%;
    
    background-color: rgba(60, 60, 60, 0.8); 
    backdrop-filter: blur(4px);
    
    color: #fff;
    font-size: 18px; 
    cursor: pointer;
    transition: all 0.3s;
}

.nav-prev { left: 10px; }
.nav-next { right: 10px; }

/* Navigation Buttons (Inside Card) */
.card-nav-btn {
    position: absolute;
    z-index: 20;
    top: 105px; 
    transform: translateY(-50%);
    
    display: flex;
    justify-content: center;
    align-items: center;
    
    width: 54px;
    height: 54px;
    border-radius: 50%;
    
    background-color: rgba(30, 30, 30, 0.6);
    backdrop-filter: blur(4px);
    
    color: #fff;
    transition: all 0.3s ease;
}

.card-nav-btn svg {
    width: 14px;
    height: 22px;
}

.btn-prev { left: -27px; }
.btn-next { right: -27px; }


/* =========================================
   12. Play Safe Section
   ========================================= */

.playsafe-section {
    width: 1380px;
    margin: 0 auto 100px;
}

.playsafe-container {
    position: relative;
    
    display: flex;
    align-items: center;
    justify-content: space-between;
    
    width: 100%;
    height: 151px;
    padding: 0 60px;
    box-sizing: border-box;
    
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(27.77px);
    -webkit-backdrop-filter: blur(27.77px);
}

/* Middle Divider */
.playsafe-container::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    width: 1px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Left Content */
.playsafe-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.playsafe-icon-big {
    width: 64px;
    height: 64px;
}

.playsafe-text-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.playsafe-title-big {
    font-family: 'GmarketSans', sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 1.4;
    color: #fff;
}

.playsafe-title-small {
    font-family: 'GmarketSans', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.4;
    color: #fff;
}

/* Right Content */
.playsafe-right {
    display: flex;
    align-items: center;
    gap: 60px;
}

.playsafe-tool-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.playsafe-tool-icon {
    width: 32px;
    height: 32px;
}

.playsafe-tool-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.4;
    color: #fff;
}


/* =========================================
   13. Partner Banner
   ========================================= */

.partner-section {
    display: flex;
    align-items: center;
    gap: 24px;
    
    width: 1380px;
    margin: 0 auto 100px;
}

.partner-title {
    flex-shrink: 0;
    
    font-family: 'GmarketSans', sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 1.4;
    letter-spacing: 0;
    color: #ffffff;
    
    white-space: nowrap;
}

.partner-viewport {
    flex: 1;
    display: flex;
    align-items: center;
    overflow: hidden;
    
    height: 64px;
    padding: 0 32px;
    
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.partner-track {
    display: flex;
    align-items: center;
    gap: 60px;
    width: max-content;
    
    animation: scroll-footerBanner 75s linear 0s infinite normal none running;
}

@keyframes scroll-footerBanner {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.partner-logo {
    max-height: 24px;
    width: auto;
    object-fit: contain;
    transition: opacity 0.3s;
}


/* =========================================
   14. Footer Section
   ========================================= */

.site-footer {
    width: 100%;
    min-width: 1380px;
    margin-top: 104px;
    padding-bottom: 64px;
    background-color: var(--grey-900);
}

.footer-container {
    width: 1380px;
    margin: 0 auto;
}

/* Top Bar */
.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 88px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 48px;
}

.footer-socials {
    display: flex;
    gap: 8px;
}

.footer-social-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    
    width: 44px;
    height: 44px;
    background-color: #FFFFFF0A;
    border-radius: 12px;
    
    color: #FFFFFFB2;
    cursor: pointer;
}

.footer-scroll-top {
    display: flex;
    justify-content: center;
    align-items: center;
    
    width: 32px;
    height: 32px;
    border: 1px solid #F5F5F5;
    box-sizing: border-box;
    background-color: transparent;
    
    opacity: 1;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
}

/* Main Grid */
.footer-main {
    display: flex;
    justify-content: space-between;
    padding-bottom: 24px;
}

.footer-links-group {
    display: flex;
    gap: 80px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.footer-heading {
    font-family: 'Pretendard', sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 1;
    letter-spacing: 0;
    color: #ffffff;
}

.footer-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-list.double-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 40px;
    row-gap: 16px;
}

.footer-link {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.4;
    letter-spacing: 0;
    
    color: rgba(255, 255, 255, 0.44);
    text-decoration: none;
    transition: color 0.3s;
    white-space: nowrap;
}

/* Contact Box */
.footer-contact-box {
    display: flex;
    flex-direction: column;
    gap: 18px;
    
    width: 307px;
    height: 182px;
    padding: 24px 20px;
    box-sizing: border-box;
    
    background: #FFFFFF0A;
    border: 1.5px solid #FFFFFF14;
    border-radius: 16px;
}

.contact-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1;
    color: #ffffff;
}

.contact-desc {
    display: block;
    width: 100%;
    
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.44);
    
    white-space: normal;
    word-break: keep-all;
}

.contact-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    
    width: 267px;
    height: 52px;
    padding: 14px 40px;
    box-sizing: border-box;
    
    background: #FFFFFF14;
    border: 1.5px solid #FFFFFF1F;
    border-radius: 12px;
    
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: #ffffff;
    
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s;
}

/* Bottom Area */
.footer-bottom {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 40px;
}

.footer-bottom-logo {
    display: flex;
    align-items: center;
}

.footer-copyright-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.4;
    letter-spacing: 0;
    color: #ffffff;
}


/* =============================================================
   MOBILE ADAPTATION
   ============================================================= */
.mobile-bottom-nav {
    display: none !important;
}

/* Hover States (Desktop Only) */
@media (hover: hover) {
    .search-btn:hover {
        color: #fff;
    }

    .hero-dot:hover {
        background: #718096;
    }

    .sport-card:hover .layer-char {
        transform: scale(1.05) translateY(-10px); 
        transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    }

    .casino-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.5);
        z-index: 2;
    }    

    .card-wide:hover {
        transform: translateY(-5px);
        border: 1px solid rgba(255, 255, 255, 0.5); 
        box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    }

    .casino-card:hover .card-bg {
        transform: scale(1.08);
    }

    .casino-card:hover .card-char {
        transform: scale(1.10) translateY(-10px);
    }

    .card-wide:hover .card-bg {
        transform: scale(1.08);
    }

    .card-wide:hover .card-char {
        transform: scale(1.05) translateY(-10px); 
    }

    .event-tab-item:hover {
        color: #fff;
        text-decoration: underline;
    }    

    .event-nav-btn:hover {
        background-color: #00FF85;
        color: #000;
        transform: scale(1.1);
    }

    .card-nav-btn:hover {
        background-color: #00FF85;
        color: #000;
        transform: translateY(-50%) scale(1.05); 
    }

    .partner-logo:hover {
        opacity: 1;
    }

    .footer-social-btn:hover {
        background-color: #333;
    }

    .footer-scroll-top:hover {
        background-color: #F5F5F5;
        color: #000;
    }

    .footer-link:hover {
        color: #00FF85;
    }

    .contact-btn:hover {
        background: #FFFFFF1F; 
        border-color: #FFFFFF2F;
    }
}

/* Touch Feedback (Mobile Only) */
@media (hover: none) {
    /* 1. Cards: Slight shrink on press */
    .sport-card:active,
    .casino-card:active,
    .card-wide:active,
    .slot-card:active,
    .event-card:active {
        transform: scale(0.98) !important;
        transition: transform 0.1s ease;
        opacity: 0.9;
    }

    /* 2. Buttons: Dim or Shrink */
    .search-btn:active,
    .btn-section-more:active,
    .event-nav-btn:active,
    .card-nav-btn:active,
    .footer-social-btn:active,
    .footer-scroll-top:active,
    .contact-btn:active {
        opacity: 0.7;
        transform: scale(0.95);
    }

    /* 3. Text/Links: Color change */
    .event-tab-item:active,
    .footer-link:active,
    .section-link:active {
        color: #00FF85 !important;
        opacity: 1;
    }

    /* 4. Dots */
    .hero-dot:active {
        background: #fff;
    }
    
    /* 5. Partner Logo */
    .partner-logo:active {
        opacity: 1;
    }
}

.bottom-bg {
    position: relative !important;
    width: 100% !important;
    z-index: 0 !important;
    padding-top: 60px !important;
    padding-bottom: 80px !important;
}

.bottom-bg::before {
    content: '' !important;
    position: absolute !important;
    z-index: -1 !important; 
    top: 0 !important;
    bottom: 0 !important;
    left: -9999px !important;
    right: -9999px !important;
    background-image: 
        linear-gradient(to bottom, rgba(18,18,18,0) 0%, rgba(18,18,18,0.8) 100%),
        url('/static/img/bottom-bg.jpg')!important; 
    background-size: 3200px auto !important; 
    background-position: center bottom !important; 
    background-repeat: no-repeat !important;
    mask-image: linear-gradient(to bottom, transparent, black 20%, black 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 20%, black 100%);
}

/* Optional: Tweaks to inner sections to fit better */
.bottom-bg .withdrawal-section,
.bottom-bg .event-section,
.bottom-bg .playsafe-section,
.bottom-bg .partner-section {
    position: relative;
    z-index: 1; /* Ensure content sits on top of the bg */
}

/* Remove huge margins from inner sections since the wrapper handles spacing now */
.bottom-bg .event-section {
    margin-top: 60px !important; /* Reduce gap if needed */
    margin-bottom: 60px !important;
}
.bottom-bg .playsafe-section {
    margin-bottom: 60px !important;
}
.bottom-bg .partner-section {
    margin-bottom: 0 !important; /* Last item doesn't need bottom margin */
}

.badge-best {
    background-color: #17F973 !important;
    color: #000000 !important; /* 浅绿背景配黑字才看得清 */
}

/* 🟣 NEW: #5D2CFF (白字) */
.badge-new {
    background-color: #5D2CFF !important;
    color: #ffffff !important;
}

/* 🔴 HOT: #FF3C3C (白字) */
.badge-hot {
    background-color: #FF3C3C !important;
    color: #ffffff !important;
}

.floating-badge {
    border-radius: 100px !important; /* Radius: 100 */
    display:flex;
    padding: 4px 8px !important;  /* Padding: 4 12 */
    font-family: 'Pretendard', sans-serif;
    font-size: 12px !important;       /* ✅ Size: 12px */
    font-weight: 700 !important;      /* ✅ Weight: Bold (700) */
    letter-spacing: -0.5px !important;/* ✅ Spacing: -1 (紧凑) */
    line-height: 1 !important;        /* 垂直居中修正 */
    text-transform: uppercase;
    justify-content: center !important;
    position: absolute !important;
    top: 110px !important;
}

/* =========================================
   VIP Card (最终调整版：翻转、放大、Logo调整)
   ========================================= */

/* 1. VIP 卡片容器 (保持不变) */
.card-vip {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    position: relative;
    overflow: hidden;
    background-color: #000;
}

.card-vip .card-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;

    /* 1. 保持翻转和放大 (1.2倍) */
    transform: scaleX(-1);
    
    /* 2. ✅ 位置核心调整 */
    /* 这里的两个百分比控制：X轴(左右) Y轴(上下) */
    /* 80% = 向右移 (配合翻转后) */
    /* 35% = 向下移 (露出更多头部空间) */
    object-position: 65% 65% !important; 
    
    transform-origin: center center;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 3. 底部双 Logo 容器 - 核心修改区域 */
.vip-bottom-logos {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    /* height: 44px;  <-- 删掉固定高度，让 padding 来控制 */

    /* 布局 */
    display: flex;
    justify-content: space-between;
    /* ✅ 修改 C: Logo 靠上一点 */
    /* 改为底部对齐，然后用 padding 把它们顶上去 */
    align-items: flex-end; 
    
    /* 增加底部内边距，把 Logo 往上推 (原来是0，现在给20px试试) */
    padding: 0 24px 24px 24px; /* 上 右 下 左 */
    box-sizing: border-box;
    
    z-index: 2;
    /* (可选) 为了让Logo更清晰，可以加一点点底部渐变黑影，不需要就删掉下面这行 */
     background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 100%); 
}

/* 4. 底部 Logo 尺寸控制 - 核心修改区域 */
.vip-logo {
    /* ✅ 修改 D: Logo 大一点 */
    /* 原来是 20px，现在加大到 32px (根据实际效果微调) */
    height: 32px; 
    width: auto;
    object-fit: contain;
}

/* 5. VIP 徽章 (保持不变) */
.badge-vip {
    background: linear-gradient(90deg, #FFD700, #FDB931) !important;
    color: #000 !important;
    width: 54px !important;
}

/* --- 交互动画 (需要配合基础状态修改) --- */
/* 鼠标悬停时，在已有的翻转和放大基础上，再放大一点点 */
.card-vip:hover .card-bg {
    /* 保持翻转(-1)，把缩放从 1.2 增加到 1.3 */
    transform: scaleX(-1) scale(1.3);
}

.vip-icon{
    padding:8px
}

        body {
            background-color: var(--bg-body);
            color: #fff;
            margin: 0;
            padding: 0;
        }

        .app-layout {
            display: flex;
            min-height: 100vh;
        }

        .app-main {
            margin-left: 156px;
            flex: 1;
        }

        /* Space for phone with safe area */
        .safe-area-spacer {
            display: none;
            /* default in PC screen */
        }

        @media screen and (max-width: 768px) {

            /* ==================== 1. Base ==================== */
            html,
            body {
                width: 100% !important;
                overflow-x: hidden !important;
                /* 禁止左右滑动 */
                position: relative;
                padding: 0 !important;
                margin: 0 !important;
            }

            /* Release size limitation from big screen (1380px, 1543px 等) */
            .app-layout,
            .app-main,
            .page-container,
            .sports-glass-container,
            .sports-inner-layout,
            .casino-section-container,
            .stats-section-container,
            .withdrawal-section,
            .withdrawal-window,
            .slot-section,
            .event-section,
            .partner-section,
            .site-footer,
            .footer-container {
                width: 100% !important;
                min-width: 0 !important;
                max-width: 100vw !important;
                margin-left: 0 !important;
                margin-right: 0 !important;
                transform: none !important;
                box-sizing: border-box !important;
                left: 0 !important;
            }

            /* No side bar */
            .app-sidebar {
                display: none !important;
            }

            .app-layout {
                padding-top: 100px;
            }

            .app-main {
                padding: 0;
            }

            /* ==================== 2. Header ==================== */
            .app-header {
                position: fixed !important;
                top: 0 !important;
                left: 0 !important;
                width: 100% !important;
                height: 100px !important;
                /*Space for mobile header height*/
                display: flex !important;
                align-items: flex-end !important;
                padding: 0 16px 16px 16px !important;
                box-sizing: border-box !important;
                z-index: 9999 !important;
                background-color: var(--bg-body);
            }

            .header-shortcuts {
                display: none !important;
            }

            .logo-area img {
                height: 24px !important;
                width: auto !important;
            }

            .top-search-section {
                padding: 16px 24px !important;
                margin-bottom: 0;
            }

            .search-wrapper {
                width: 100% !important;
                height: 48px !important;
                display: flex !important;
                align-items: center !important;
                justify-content: center !important;
                gap: 0;
            }

            .search-input {
                width: 170px !important;
                text-align: left !important;
                font-size: 12px;
            }

            /* ==================== 3. Sport section  ==================== */

            .sports-glass-container {
                display: block !important;
                height: auto !important;
                min-height: 0 !important;
                border-radius: 12px !important;
                margin-bottom: 30px !important;
            }

            .sports-inner-layout {
                height: auto !important;
                display: block !important;
            }

            .sports-card-grid {
                display: grid !important;
                grid-template-columns: 1fr 1fr !important;
                gap: 10px !important;
            }

            .casino-main-grid {
                display: grid !important;
                grid-template-columns: 1fr 1fr !important;
                grid-template-rows: auto !important;
                gap: 10px !important;
            }

            .casino-card {
                height: 200px !important;
            }

            .card-vip {
                grid-column: span 2 !important;
                grid-row: auto !important;
            }


            .casino-bottom-strip {
                grid-template-columns: 1fr !important;
            }

            .card-wide {
                height: 80px !important;
            }

            .slot-grid {
                grid-template-columns: repeat(3, 1fr) !important;
                gap: 8px !important;
            }

            .slot-thumb-box {
                width: 100% !important;
                height: auto !important;
                aspect-ratio: 1/1 !important;
            }

            .event-grid {
                grid-template-columns: 1fr !important;
            }

            .event-card,
            .event-thumb-box {
                width: 100% !important;
            }

            .stats-section-container {
                flex-direction: column !important;
                align-items: flex-start !important;
                column-gap: 0;
            }

            .winner-section-right {
                padding-left: 16px;
                padding-right: 16px;
                width: 100% !important;
            }

            .center-col {
                width: 100% !important;
            }

            /* Footer */
            .footer-main,
            .footer-links-group {
                flex-direction: column !important;
                gap: 30px !important;
            }

            .footer-list.double-col {
                grid-template-columns: 1fr 1fr !important;
            }


            .playsafe-container::after {
                display: none !important;
            }

            .header-left,
            .header-right {
                display: flex;
                align-items: center;
                gap: 0
            }

            .social-icon-link img,
            .social-icon-link {
                height: 24px;
                width: 24px;
                padding-right: 4px;
            }

            .btn-tiny {
                height: auto;
                width: auto;
                gap: 0;
                padding: 0;
                min-width: auto;
            }

            .btn.btn-tiny.btn-outline-white {
                font-size: 0 !important;
                height: 18px;
                width: 18px;
                padding: 4px 4.8px;
                width: 32px;
                height: 24px;
            }

            .btn.btn-tiny.btn-outline-white img {
                width: 18px;
                height: 18px;
            }

            .lang-text {
                display: none;
            }

            .btn.btn-tiny.btn-primary {
                display: none;
            }

            .lang-toggle {
                padding: 0;
                padding-left: 4px;
                gap: 8px;
            }

            /*category */
            .category-nav-section {
                display: grid !important;
                gap: 0;
                grid-template-columns: repeat(5, 1fr) !important;
                margin-bottom: 20px !important;
                overflow: hidden !important;
                flex-wrap: wrap !important;
                justify-content: center !important;
            }

            .cat-item {
                width: 100% !important;
                height: 58px !important;
                display: flex !important;
                flex-direction: column !important;
                align-items: center !important;
                justify-content: center !important;
                gap: 2px !important;
                margin: 0 !important;
                opacity: 1 !important;
            }

            .cat-item:nth-child(n+6) {
                display: none !important;
            }

            .cat-icon-box {
                width: 36px !important;
                height: 36px !important;
                background: transparent !important;
                margin-bottom: 0 !important;
            }

            .cat-text {
                font-size: 12px !important;
            }

            .hero-slider-section {
                width: 100% !important;
                height: 180px !important;
                aspect-ratio: auto !important;
                margin-bottom: 8px !important;
                border-radius: 12px !important;
                overflow: hidden !important;
            }

            .hero-slide,
            .slide-banner-img {
                width: 100% !important;
                height: 100% !important;
                object-fit: cover !important;
            }


            /******* sport card *******/
            .sports-glass-container {
                width: 100% !important;
                height: auto !important;
                min-height: 0 !important;
                background: transparent !important;
                border: none !important;
                backdrop-filter: none !important;
                margin-left: 0 !important;
                transform: none !important;
                padding: 0 !important;
                margin-bottom: 0 !important;
                display: block !important;
            }

            .sports-inner-layout {
                width: 100% !important;
                height: auto !important;
                display: flex !important;
                flex-direction: column !important;
            }

            .sports-inner-layout .section-header-common {
                padding: 0 16px !important;
                margin-bottom: 0;
            }

            .sports-card-grid {
                display: flex !important;
                flex-wrap: nowrap !important;
                overflow-x: auto !important;
                gap: 16px !important;
                align-items: flex-start !important;
                padding: 10px 16px 24px 16px !important;
                scrollbar-width: none;
                -webkit-overflow-scrolling: touch;
            }

            .sport-wrapper {
                flex: 0 0 160px !important;
                width: 160px !important;
                height: 200px !important;
                position: relative !important;
                overflow: visible !important;
                margin: 0 !important;
            }

            .floating-badge {
                position: absolute !important;
                top: -8px !important;
                height: 15.6px !important;
                width: auto !important;
                z-index: 10 !important;
                pointer-events: none;
            }

            /* 5. Card:  */
            .sport-card {
                width: 100% !important;
                height: 100% !important;
                border-radius: 10px !important;
                background-color: #1e1e1e !important;
                overflow: hidden !important;
                position: relative !important;
                z-index: 1;
            }

            .layer-bg {
                border-radius: 0 !important;
            }

            .layer-char {
                height: 100% !important;
                bottom: 0 !important;
                right: -10px !important;
                transform: none !important;
            }

            .layer-content {
                left: 10px !important;
                right: 10px !important;
            }

            .sport-name-kr {
                font-size: 13px !important;
            }

            .section-title-text {
                font-size: 20px;
            }

            .section-header-common {
                margin-bottom: 8px;
            }

            .casino-section-container {
                padding-left: 16px;
                padding-right: 16px;
            }

            .hero-pagination {
                margin-bottom: 24px;
            }

            .live-casino-grid {
                display: grid !important;
                grid-template-columns: 1fr 1fr !important;
                gap: 10px !important;
                padding: 0 16px !important;
                margin-bottom: 30px !important;
                grid-auto-rows: auto !important;
            }

            .casino-card {
                width: 100% !important;
                height: auto !important;
                margin: 0 !important;
                position: relative !important;
                border-radius: 12px !important;
                overflow: hidden !important;
            }

            /* ========== 3. casino ========== */

            .casino-card:nth-child(1) {
                grid-column: 1 / 2 !important;
                grid-row: 1 / 3 !important;
                height: 100% !important;
            }

            .casino-card:nth-child(2) {
                grid-column: 2 / 3 !important;
                grid-row: 1 / 2 !important;
                aspect-ratio: 4 / 3 !important;
            }

            .casino-card:nth-child(3) {
                grid-column: 2 / 3 !important;
                grid-row: 2 / 3 !important;
                aspect-ratio: 4 / 3 !important;
            }

            .casino-card:nth-child(n+4) {
                display: block !important;
                grid-column: auto !important;
                grid-row: auto !important;
                aspect-ratio: 4 / 3 !important;
                height: auto !important;
            }

            .casino-bg,
            .layer-bg {
                width: 100% !important;
                height: 100% !important;
                object-fit: cover !important;
            }

            .casino-bottom-strip {
                display: grid !important;
                grid-template-columns: repeat(2, 1fr) !important;
                gap: 16px !important;
                width: 100% !important;
                margin-top: 10px !important;
                box-sizing: border-box !important;
            }

            .casino-card,
            .card-wide,
            .card-standard {
                width: 100% !important;
                height: auto !important;
                aspect-ratio: 4 / 3 !important;

                min-height: 0 !important;
            }

            .card-char {
                height: 95% !important;
                right: 0px !important;
            }

            .casino-card-bottom {
                height: 36px !important;
                padding: 0 8px !important;
            }

            .card-logo-img {
                height: 14px !important;
                padding-left: 0 !important;
            }

            .card-info-text {
                max-width: 60px;
                overflow: hidden;
                text-overflow: ellipsis;
            }

            .icon-info {
                width: 16px !important;
                height: 16px !important;
                padding-right: 0 !important;
            }

            .layer-badge {
                height: 16px !important;
                left: 8px !important;
                top: 8px !important;
            }

            .card-wide-logo-box {
                width: 90px !important;
                height: 32px !important;
                border-bottom-right-radius: 12px !important;
            }

            .card-wide-info {
                bottom: 8px;
            }

            .stats-group-left {
                width: 100% !important;
                box-sizing: border-box !important;
                padding-left: 16px !important;
                padding-right: 16px !important;
                display: flex !important;
                justify-content: flex-start !important;
                align-items: center !important;
                gap: 24px !important;
            }

            .stats-group-left>div {
                flex: 1 !important;
                text-align: left !important;
                min-width: 0 !important;
            }

            .stat-label {
                font-size: 14px;
            }

            .stat-number {
                font-size: 28px;
            }

            .stats-section-container {
                width: 100% !important;
                margin: 40px 0 !important;
                padding: 0 16px !important;
                box-sizing: border-box !important;

                /* ✅ Force Flexbox to stack vertically on Mobile */
                display: flex !important;
                flex-direction: column !important;
                align-items: center !important;
                gap: 40px !important;

                /* ✅ Disable PC Grid properties */
                grid-template-columns: none !important;
                grid-template-rows: none !important;
                grid-template-areas: none !important;
            }

            /* 1. Left Stats (Top) */
            .stats-group-left {
                width: 100% !important;
                justify-content: space-between !important;
                gap: 0 !important;
                padding-bottom: 0 !important;
            }

            .stat-item {
                align-items: center !important;
            }

            .stat-label {
                font-size: 12px !important;
                opacity: 0.8 !important;
            }

            .stat-number {
                font-size: 24px !important;
            }

            /* 2. Header (Middle) */
            .winner-header {
                width: 100% !important;
                margin-bottom: 0px !important;
                justify-content: flex-start !important;
                font-size: 18px !important;
            }

            /* 3. Body (Bottom - Background Wings) */
            .winner-body-wrapper {
                padding-left: 72px;
                padding-right: 72px;
                justify-content: center !important;
                position: relative !important;
                width: 85%
            }

            /* Wings as background on mobile */
            .wing-col {
                position: absolute !important;
                top: 50% !important;
                transform: translateY(-50%) !important;
                padding: 0 !important;
                width: 60px !important;
                z-index: 0 !important;
            }

            .wing-col.left {
                left: 10px !important;
                justify-content: flex-start !important;
            }

            .wing-col.right {
                right: 10px !important;
                justify-content: flex-end !important;
            }

            /* Card Box Mobile */
            .winner-card-box {
                width: 100% !important;
                height: auto !important;
                min-height: 140px !important;
                z-index: 5 !important;
                backdrop-filter: blur(2.7680845260620117px);
                opacity: 0.95
            }

            .slot-grid {
                display: flex !important;
                flex-wrap: nowrap !important;
                overflow-x: auto !important;
                gap: 12px !important;
                padding: 0 16px 24px 16px !important;
                grid-template-columns: none !important;
                scrollbar-width: none;
                -webkit-overflow-scrolling: touch;
            }

            .slot-grid::-webkit-scrollbar {
                display: none;
            }

            .slot-card {
                flex: 0 0 120px !important;
                width: 120px !important;

                display: flex !important;
                flex-direction: column !important;
                cursor: pointer !important;
            }

            .slot-top-bar {
                height: 20px !important;
                margin-bottom: 6px !important;
                align-items: center !important;
            }

            .slot-badge {
                font-size: 9px !important;
                padding: 2px 6px !important;
                border-radius: 4px !important;
            }

            .slot-provider-logo {
                max-height: 14px !important;
                width: auto !important;
            }

            .slot-thumb-box {
                width: 120px !important;
                height: 124px !important;

                border-radius: 12px !important;
                margin-bottom: 8px !important;
                background: #1e1e1e !important;
            }

            .slot-thumb-img {
                width: 100% !important;
                height: 100% !important;
                object-fit: cover !important;
            }

            .slot-name {
                font-size: 12px !important;
                text-align: center !important;
                width: 100% !important;
                white-space: nowrap !important;
                overflow: hidden !important;
                text-overflow: ellipsis !important;
                color: #ccc !important;
            }

            .section-title-text {
                font-family: 'Pretendard', sans-serif !important;
                font-weight: 700 !important;
                font-size: 14px !important;
                color: #ffffff !important;
            }

            .section-header {
                padding-left: 16px;
                padding-right: 16px
            }

            .withdrawal-window {
                padding-left: 16px;
                padding-right: 16px;
            }

            .event-section {
                width: 100% !important;
                margin: 40px 0 !important;
                padding: 0 !important;
            }

            .event-header {
                display: flex !important;
                flex-direction: column !important;
                align-items: flex-start !important;
                gap: 16px !important;
                padding: 0 16px !important;
                margin-bottom: 16px !important;
            }

            .event-title {
                font-size: 18px !important;
            }

            .event-tabs {
                width: 100% !important;
                overflow-x: auto !important;
                white-space: nowrap !important;
                gap: 16px !important;
                -webkit-overflow-scrolling: touch;
                scrollbar-width: none;
            }

            .event-tabs::-webkit-scrollbar {
                display: none;
            }

            .event-tab-item {
                font-size: 13px !important;
                flex-shrink: 0 !important;
            }

            .event-grid {
                display: flex !important;
                flex-wrap: nowrap !important;
                overflow-x: auto !important;
                gap: 16px !important;

                padding: 0 16px 40px 16px !important;
                grid-template-columns: none !important;

                scrollbar-width: none;
                -webkit-overflow-scrolling: touch;
            }

            .event-grid::-webkit-scrollbar {
                display: none;
            }


            .event-card {
                flex: 0 0 190px !important;
                width: 190px !important;

                display: flex !important;
                flex-direction: column !important;
                gap: 12px !important;
            }


            .event-thumb-box {
                width: 190px !important;
                height: 154px !important;
                border-radius: 11.74px !important;
                overflow: hidden !important;
                background-color: #3d3459 !important;
            }

            .card-nav-btn {
                display: none !important;
            }

            .event-info {
                gap: 4px !important;
            }

            .event-card-title {
                font-family: 'Pretendard', sans-serif !important;
                font-weight: 700 !important;
                font-size: 12px !important;
                line-height: 1 !important;
                letter-spacing: 0 !important;
                margin-bottom: 2px !important;
            }

            .event-card-desc {
                font-family: 'Pretendard', sans-serif !important;
                font-weight: 500 !important;
                font-size: 12px !important;
                line-height: 1 !important;
                letter-spacing: 0 !important;
                color: rgba(255, 255, 255, 0.6) !important;
            }

            /* ==================== Play Safe Section ==================== */
            .playsafe-section {
                width: 100% !important;
                padding: 0 16px !important;
                box-sizing: border-box !important;
                margin-bottom: 60px !important;
            }

            .playsafe-container {
                width: 100% !important;
                height: 168px !important;
                display: flex !important;
                flex-direction: column !important;
                justify-content: space-between !important;
                align-items: flex-start !important;
                padding: 16px !important;
                border-radius: 16px !important;
                border: 1.87px solid rgba(255, 255, 255, 0.1) !important;
                background: rgba(0, 0, 0, 0.3) !important;
                backdrop-filter: blur(27.77px) !important;
                -webkit-backdrop-filter: blur(27.77px) !important;
            }

            .playsafe-left {
                width: 100% !important;
                display: flex !important;
                flex-direction: row !important;
                align-items: center !important;
                gap: 24px !important;
                margin-bottom: 0 !important;
            }

            .playsafe-icon-big {
                width: 32px !important;
                height: 34.33px !important;
                flex-shrink: 0 !important;
            }

            .playsafe-icon-big img {
                width: 100% !important;
                height: 100% !important;
            }

            .playsafe-text-group {
                gap: 2px !important;
            }

            .playsafe-title-big {
                font-family: 'GmarketSans', sans-serif !important;
                font-weight: 700 !important;
                font-size: 16px !important;
                line-height: 1.4 !important;
            }

            .playsafe-title-small {
                font-family: 'GmarketSans', sans-serif !important;
                font-weight: 500 !important;
                font-size: 12px !important;
                line-height: 1.4 !important;

            }

            .playsafe-right {
                width: 100% !important;
                display: flex !important;
                flex-direction: row !important;
                flex-wrap: wrap !important;
                justify-content: flex-start !important;
                row-gap: 12px !important;
                column-gap: 16px !important;

                align-items: center !important;
            }

            .playsafe-tool-item {
                display: flex !important;
                flex-direction: row !important;
                align-items: center !important;
                gap: 8px !important;
                flex: 0 0 auto !important;
                width: auto !important;
            }

            .playsafe-tool-item img {
                width: 22px !important;
                height: 22px !important;
                flex-shrink: 0 !important;
            }

            /* 4. 文字样式 */
            .playsafe-tool-text {
                font-family: 'Poppins', sans-serif !important;
                font-weight: 500 !important;
                font-size: 13px !important;
                line-height: 1.2 !important;
                color: #fff !important;
                white-space: nowrap !important;
            }

            .partner-section {
                width: 100% !important;
                margin: 40px 0 60px !important;
                display: flex !important;
                flex-direction: column !important;
                align-items: flex-start !important;
                gap: 16px !important;
            }

            .partner-title {
                padding-left: 16px !important;
                width: 100% !important;
                box-sizing: border-box !important;
                font-size: 16px !important;
                text-align: left !important;
            }

            .partner-viewport {
                width: 100% !important;
                height: 64px !important;

                background: rgba(255, 255, 255, 0.05) !important;
                border-left: none !important;
                border-right: none !important;
                padding: 0 16px !important;
                mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent) !important;
                -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent) !important;
            }

            .partner-logo {
                height: 100% !important;
                width: auto !important;
                padding-top: 4px !important;
                padding-bottom: 4px !important;
                box-sizing: border-box !important;
                object-fit: contain !important;
            }

            .partner-track {
                gap: 40px !important;
            }

            .site-footer {
                width: 100% !important;
                min-width: 0 !important;
                margin-top: 60px !important;
                padding-bottom: 40px !important;
                padding-top: 24px !important;
                box-sizing: border-box !important;
                padding-left: 16px !important;
                padding-right: 16px !important;
            }

            .footer-container {
                width: 100% !important;
                padding: 0 16px !important;
                box-sizing: border-box !important;
            }

            /* ==================== Top Bar (Socials + Scroll) ==================== */

            .footer-top {
                height: auto !important;
                margin-bottom: 24px !important;
                border-bottom: none !important;
                padding-bottom: 0 !important;

                display: flex !important;
                justify-content: space-between !important;
                align-items: center !important;
            }

            .footer-socials {
                gap: 8px !important;
            }

            .footer-social-btn {
                width: 32px !important;
                height: 32px !important;
                border-radius: 8px !important;
            }

            .footer-social-btn svg {
                width: 16px !important;
                height: 16px !important;
            }

            .footer-scroll-top {
                width: 32px !important;
                height: 32px !important;
                border: 1px solid #F5F5F5 !important;
            }

            .footer-scroll-top svg {
                width: 14px !important;
                height: 14px !important;
            }


            /* ====================  Main Links (Grid 布局) ==================== */

            .footer-main {
                flex-direction: column !important;
                gap: 24px !important;
                padding-bottom: 0 !important;
            }

            .footer-links-group {
                width: 100% !important;
                display: grid !important;
                grid-template-columns: 1fr 1fr !important;
                gap: 16px !important;
            }

            .footer-column {
                gap: 12px !important;
            }

            .footer-heading {
                font-family: 'Pretendard', sans-serif !important;
                font-weight: 700 !important;
                font-size: 16px !important;
                line-height: 1 !important;
                color: #fff !important;
            }

            .footer-link {
                font-family: 'Pretendard', sans-serif !important;
                font-weight: 500 !important;
                font-size: 12px !important;
                line-height: 1.4 !important;
                color: rgba(255, 255, 255, 0.44) !important;
            }

            .footer-list {
                gap: 4px !important;
            }

            .footer-list.double-col {
                display: flex !important;
                flex-direction: column !important;
            }

            /* ====================  Contact Box ==================== */

            .footer-contact-box {
                width: 100% !important;
                height: auto !important;
                padding: 16px !important;
                gap: 16px !important;

                margin-top: 16px !important;
            }

            .contact-title-row {
                font-size: 14px !important;
            }

            .contact-title-row img {
                width: 16px !important;
                height: 16px !important;
            }

            .contact-desc {
                white-space: normal !important;
                font-size: 12px !important;
                line-height: 1.5 !important;
            }

            .contact-btn {
                width: 100% !important;
                height: 48px !important;
                padding: 0 !important;
                font-size: 14px !important;
            }

            .contact-btn img {
                width: 18px !important;
                height: 18px !important;
            }


            /* ====================  Bottom (Logo & Copyright) ==================== */

            .footer-bottom {
                flex-direction: column !important;
                align-items: center !important;
                justify-content: center !important;
                gap: 16px !important;
                margin-top: 32px !important;
                text-align: center !important;
            }

            .footer-bottom-logo {
                justify-content: center !important;
            }

            .footer-copyright-text {
                font-size: 12px !important;
                color: fff;
                line-height: 1.4 !important;
            }

            .mobile-bottom-nav {
                position: fixed !important;
                bottom: 0 !important;
                left: 0 !important;
                width: 100% !important;
                z-index: 9999 !important;
                background-color: #000000 !important;
                display: flex !important;
                justify-content: space-around !important;
                align-items: center !important;
                padding-top: 12px !important;
                padding-bottom: 24px !important;
                box-sizing: border-box !important;
                box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.5) !important;
            }

            .nav-item {
                display: flex !important;
                flex-direction: column !important;
                align-items: center !important;
                justify-content: center !important;
                gap: 6px !important;
                cursor: pointer !important;
                color: #ffffff !important;
                opacity: 0.5 !important;
                transition: all 0.3s !important;
            }

            .nav-item.active {
                color: var(--green-500) !important;
                opacity: 1 !important;
            }

            .nav-item svg {
                width: 24px !important;
                height: 24px !important;
            }

            .nav-item span {
                font-family: 'Pretendard', sans-serif !important;
                font-size: 11px !important;
                font-weight: 500 !important;
                text-align: center !important;
                line-height: 1.2 !important;
            }

            .site-footer {
                padding-bottom: 110px !important;
            }

            .hero-slider-section,
            .category-nav-section,
            .sports-glass-container,
            .casino-section-container,
            .stats-section-container,
            .withdrawal-section,
            .event-section,
            .playsafe-section,
            .withdrawal-window,
            .partner-section {
                margin-top: 0 !important;
                /* 顶部清零，防止叠加 */
                margin-bottom: 40px !important;
                /* ✅ 统一底部间距：40px (呼吸感刚刚好) */
                padding-top: 0 !important;
                /* 避免内边距干扰 */
                padding-bottom: 0 !important;
                /* 避免内边距干扰 */
                width: 100% !important;
                box-sizing: border-box !important;
            }

            /* 2. 顶部区域特殊微调 (让搜索、分类、轮播图紧凑一点) */

            /* 搜索栏：离分类导航近一点 */
            .top-search-section {
                margin-bottom: 12px !important;
                padding-bottom: 0 !important;
            }

            /* 分类导航：离轮播图稍微近一点 */
            .category-nav-section {
                margin-bottom: 24px !important;
            }

            /* 轮播图：下面给 30px 即可 */
            .hero-slider-section {
                margin-bottom: 30px !important;
            }

            /* 3. 统计区域 (Stats) 特殊处理 */
            /* 之前这里可能太宽了，因为它内部有 gap，外部又有 margin */
            .stats-section-container {
                gap: 24px !important;
                /* 内部元素间距 */
                margin-bottom: 40px !important;
                /* 外部间距 */
            }

            /* 4. 页脚 (Footer) */
            /* 上方需要更多留白区分内容，底部需要留给固定导航栏 */
            .site-footer {
                margin-top: 0 !important;
                padding-top: 60px !important;
                /* 内部上留白 */
                padding-bottom: 120px !important;
                /* ✅ 底部留给固定导航栏的空间 */
            }

            /* 5. 修复 Grid 底部被阴影切断的问题 */
            /* 给横向滚动的容器底部一点内边距，防止阴影显示不全 */
            .sports-card-grid,
            .slot-grid,
            .event-grid {
                padding-bottom: 15px !important;
                margin-bottom: 0 !important;
            }
        }


        /* ==================== Tablet / Small Laptop (769px - 1399px) ==================== */
        @media screen and (min-width: 769px) and (max-width: 1399px) {

            /* ==================== 1. Global / Layout ==================== */
            .app-main {
                margin-left: 156px !important;
                padding: 0 !important;
            }

            body.sidebar-collapsed .app-main {
                margin-left: 72px !important;
            }

            .app-layout {
                padding-top: 90px !important;
                padding-bottom: 0 !important;
                display: block !important;
            }

            /* Container Width Control */
            .page-container,
            .footer-container,
            .partner-section {
                width: 100% !important;
                margin: 0 auto !important;
                padding: 0 24px !important;
                box-sizing: border-box !important;
            }

            /* ==================== 2. Header ==================== */
            .app-header {
                height: 90px !important;
                padding: 0 24px !important;
                justify-content: space-between !important;
                align-items: center !important;
                left: 0 !important;
                width: 100% !important;
            }

            .header-shortcuts {
                display: none !important;
            }

            .top-search-section {
                display: flex !important;
                padding: 20px 24px !important;
                max-width: 1133px !important;
                margin: 0 auto !important;
            }

            .lang-toggle {
                padding-left: 0;
            }

            .btn-tiny {
                height: auto;
                width: auto;
                gap: 0;
                padding: 0;
                min-width: auto;
            }

            .btn.btn-tiny.btn-outline-white {
                font-size: 0 !important;
                padding: 4px 4.8px;
                width: 60px;
                height: 40px;
            }

            .btn.btn-tiny.btn-primary {
                display: none;
            }

            /* ==================== 3. Hero / Category ==================== */
            .category-nav-section {
                gap: 20px;
            }

            /* ==================== 4. Sports Section ==================== */
            /* Note: Early definition (3 cols) vs Later definition (5 cols). 5 cols wins. */
            .sports-glass-container {
                display: block !important;
                width: 100%;
                min-height: 0;
            }

            .sports-card-grid {
                display: grid !important;
                /* Force 5 Columns logic overrides 3 columns */
                grid-template-columns: repeat(5, 1fr) !important;
                gap: 12px !important;
                width: 100% !important;
                justify-items: center !important;
                /* Center cards if they hit max width */
                height: auto !important;
                overflow: visible !important;
                padding: 0 !important;
                margin: 0 !important;
            }

            .sport-wrapper {
                width: 100% !important;
                max-width: 261px !important;
                /* Cap width */
                min-width: 0 !important;
                /* Allow shrink */
                aspect-ratio: 261 / 300 !important;
                /* Proportional scaling */
                position: relative !important;
                margin: 0 !important;
                flex: none !important;
            }

            .sport-card {
                width: 100% !important;
                height: 100% !important;
                border-radius: 12px !important;
                object-fit: cover !important;
            }

            .sports-inner-layout {
                width: 100%;
            }

            /* ==================== 5. Casino Section ==================== */
            .casino-section-container {
                width: 100%;
            }

            .casino-main-grid {
                display: grid !important;
                grid-template-columns: 1.66fr 1fr 1fr 1fr !important;
                /* Proportional scaling */
                gap: 16px !important;
            }

            .card-info-text {
                max-width: 60px;
                overflow: hidden;
                text-overflow: ellipsis;
            }

            .card-wide .card-char {
                right: 10%
            }

            /* ==================== 6. Stats & Winner Section ==================== */
            /* Early definitions */
            .wing-col {
                flex: 0 2 auto !important;
                /* Shrink fast */
                display: flex !important;
                justify-content: center !important;
                align-items: center !important;
                max-width: 160px !important;
                /* Fixed typo 160x -> 160px */
                min-width: 0 !important;
            }

            .winner-wing {
                width: 100% !important;
                height: auto !important;
                object-fit: contain !important;
            }

            .winner-card-box {
                flex: 0 1 348px !important;
                max-width: 348px !important;
                min-width: 0 !important;
                height: 178px !important;
                box-sizing: border-box !important;
            }

            .winner-inner-content {
                width: 100% !important;
                overflow: hidden !important;
            }

            /* Layout overrides (Grid Areas) */
            .stats-section-container {
                display: grid !important;
                width: 100% !important;
                padding: 0 10px !important;
                margin: 40px auto !important;
                box-sizing: border-box !important;
                grid-template-columns: 1fr auto !important;
                grid-template-rows: auto auto !important;
                grid-template-areas:
                    "stats header"
                    "stats card"
                    !important;
                gap: 0 !important;
                row-gap: 10px !important;
            }

            .winner-header {
                grid-area: header !important;
                position: relative !important;
                top: auto !important;
                right: 30px;
                display: flex !important;
                justify-content: center !important;
                align-items: flex-end !important;
                width: 100% !important;
                margin-bottom: 5px !important;
            }

            .stats-group-left {
                grid-area: stats !important;
                display: flex !important;
                flex-direction: row !important;
                justify-content: space-around !important;
                align-items: center !important;
                padding-right: 20px !important;
                height: 80% !important;
            }

            .stat-item .stat-label {
                font-size: 18px !important;
                white-space: nowrap !important;
            }

            .stat-item .stat-number {
                font-size: 32px !important;
            }

            .winner-body-wrapper {
                grid-area: card !important;
                justify-self: center !important;
                width: auto !important;
                flex: none !important;
                transform: scale(0.95);
                transform-origin: top center;
                margin: 0 !important;
            }

            /* ==================== 7. Slot Section ==================== */
            .slot-section {
                width: 100% !important;
                max-width: 100% !important;
                padding: 0 10px !important;
                box-sizing: border-box !important;
                overflow: hidden !important;
                margin-bottom: 40px;
            }

            .slot-grid {
                display: grid !important;
                grid-template-columns: repeat(5, 1fr) !important;
                /* 5 Cols */
                gap: 20px !important;
                width: 100% !important;
                margin: 0 !important;
                padding: 0 !important;
            }

            .slot-card {
                display: flex !important;
                flex-direction: column !important;
                width: 100% !important;
                min-width: 0 !important;
                position: relative !important;
                background: transparent !important;
            }

            .slot-top-bar {
                display: flex !important;
                justify-content: space-between !important;
                align-items: center !important;
                width: 100% !important;
                height: 24px !important;
                margin-bottom: 8px !important;
                overflow: hidden !important;
            }

            .slot-provider-logo {
                height: 100% !important;
                width: auto !important;
                max-width: 60% !important;
                /* Scale logo */
                object-fit: contain !important;
                margin-left: auto !important;
            }

            .slot-thumb-box {
                width: 100% !important;
                height: auto;
                aspect-ratio: 1 / 1 !important;
                /* Square */
                border-radius: 12px !important;
                overflow: hidden !important;
                position: relative !important;
                background: #2a2a2a !important;
            }

            .slot-thumb-img {
                width: 100% !important;
                height: 100% !important;
                object-fit: cover !important;
                display: block !important;
            }

            .slot-name {
                display: block !important;
                width: 100% !important;
                margin-top: 12px !important;
                font-size: 14px !important;
                text-align: center !important;
                color: #fff !important;
                white-space: nowrap !important;
                overflow: hidden !important;
                text-overflow: ellipsis !important;
            }

            /* ==================== 8. Event Section ==================== */
            .event-section {
                width: 100% !important;
                padding: 0 24px !important;
                box-sizing: border-box !important;
                margin-bottom: 40px !important;
            }

            .event-grid {
                display: grid !important;
                grid-template-columns: repeat(4, 1fr) !important;
                /* 4 Cols */
                gap: 20px !important;
                width: 100% !important;
                margin: 0 !important;
                overflow: visible !important;
            }

            .event-card {
                width: 100% !important;
                min-width: 0 !important;
                display: flex !important;
                flex-direction: column !important;
                position: relative !important;
            }

            .event-thumb-box {
                width: 100% !important;
                aspect-ratio: 260 / 210 !important;
                /* Proportional */
                border-radius: 12px !important;
                overflow: hidden !important;
                position: relative !important;
                background: #3d3459 !important;
            }

            .event-thumb-box img {
                width: 100% !important;
                height: 100% !important;
                object-fit: cover !important;
                display: block !important;
            }

            .card-nav-btn {
                position: absolute !important;
                z-index: 10 !important;
                width: 44px !important;
                height: 44px !important;
                cursor: pointer !important;
            }

            .btn-prev {
                left: -18px !important;
            }

            .btn-next {
                right: -18px !important;
            }

            .event-info {
                margin-top: 12px !important;
                width: 100% !important;
            }

            .event-card-title {
                font-size: 16px !important;
                font-weight: bold !important;
                color: #fff !important;
                white-space: nowrap !important;
                overflow: hidden !important;
                text-overflow: ellipsis !important;
            }

            .event-card-desc {
                font-size: 13px !important;
                color: #888 !important;
                margin-top: 4px !important;
                white-space: nowrap !important;
                overflow: hidden !important;
                text-overflow: ellipsis !important;
            }

            /* ==================== 9. Withdrawal ==================== */
            .withdrawal-section,
            .withdrawal-window {
                width: 100%;
            }

            .withdrawal-section {
                margin-bottom: 40px;
            }

            /* ==================== 10. Play Safe Section ==================== */
            .playsafe-section {
                padding-left: 24px;
                padding-right: 24px;
                width: 100% !important;
                margin-bottom: 40px;
            }

            .playsafe-container {
                width: 100% !important;
                height: 151px !important;
                display: flex !important;
                justify-content: space-between !important;
                align-items: center !important;
                padding: 0 20px !important;
                /* Reduced Padding */
                box-sizing: border-box !important;
                overflow: hidden !important;
                gap: 10px !important;
            }

            .playsafe-container::after {
                display: none !important;
            }

            .playsafe-container>div,
            .playsafe-section {
                width: auto !important;
                flex: 0 1 auto !important;
                /* Shrinkable */
                min-width: 0 !important;
                white-space: nowrap !important;
                margin-bottom: 40px;
                /* Kept from source logic */
            }

            .playsafe-left {
                width: 100% !important;
                display: flex !important;
                flex-direction: row !important;
                align-items: center !important;
                gap: 24px !important;
                margin-bottom: 0 !important;
            }

            .playsafe-right {
                gap: clamp(20px, 4vw, 60px) !important;
            }

            .playsafe-title-big {
                font-size: 20px !important;
            }

            .playsafe-title-small {
                font-size: 16px !important;
                white-space: normal !important;
            }

            /* ==================== 11. Footer ==================== */
            .site-footer {
                padding-bottom: 100px !important;
                margin-top: 40px;
                min-width: auto;
            }

            .footer-links-group {
                display: grid !important;
                grid-template-columns: repeat(4, 1fr) !important;
                gap: 20px !important;
                padding-right: 20px;
            }

            .footer-main {
                flex-direction: row !important;
            }



            .footer-copyright-text {
                font-size: 12px !important;
                color: fff;
                line-height: 1.4 !important;
            }

            /* ==================== 12. Mobile Bottom Nav (Tablet View) ==================== */
            .mobile-bottom-nav {
                position: fixed !important;
                bottom: 0 !important;
                left: 0 !important;
                width: 100% !important;
                z-index: 9999 !important;
                background-color: #000000 !important;
                display: flex !important;
                justify-content: space-around !important;
                align-items: center !important;
                padding-top: 12px !important;
                padding-bottom: 24px !important;
                box-sizing: border-box !important;
                box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.5) !important;
            }

            .nav-item {
                display: flex !important;
                flex-direction: column !important;
                align-items: center !important;
                justify-content: center !important;
                gap: 6px !important;
                cursor: pointer !important;
                color: #ffffff !important;
                opacity: 0.5 !important;
                transition: all 0.3s !important;
            }

            .nav-item.active {
                color: var(--green-500) !important;
                opacity: 1 !important;
            }

            .nav-item svg {
                width: 24px !important;
                height: 24px !important;
            }

            .nav-item span {
                font-family: 'Pretendard', sans-serif !important;
                font-size: 14px !important;
                font-weight: 500 !important;
                text-align: center !important;
                line-height: 1.2 !important;
            }
        }
