/* ==================== CSS Variables ==================== */
:root {
    --plinko-primary: #667eea;
    --plinko-secondary: #764ba2;
    --plinko-accent: #f093fb;
    --plinko-success: #4caf50;
    --plinko-warning: #ff9800;
    --plinko-info: #2196f3;
    --plinko-rare: #e91e63;
    --plinko-gold: #ffd700;
    --plinko-shadow: rgba(102, 126, 234, 0.3);
}

/* ==================== Hero Section - ลดความสูง ==================== */
.plinko-hero {
    padding: 50px 20px 70px;
    /* ลดจาก 90px 20px 120px */
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Floating Particles */
.plinko-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="10" cy="10" r="1.5" fill="rgba(255,255,255,0.3)"/><circle cx="90" cy="20" r="2" fill="rgba(255,215,0,0.4)"/><circle cx="30" cy="80" r="1" fill="rgba(255,255,255,0.2)"/><circle cx="70" cy="60" r="1.5" fill="rgba(255,255,255,0.25)"/><circle cx="50" cy="30" r="2" fill="rgba(255,215,0,0.3)"/></svg>');
    background-size: 150px 150px;
    animation: float-particles 25s linear infinite;
    pointer-events: none;
}

@keyframes float-particles {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    100% {
        transform: translateY(-100px) rotate(10deg);
    }
}

/* Decorative Coins */
.plinko-hero-coins {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: hidden;
}

.plinko-coin {
    position: absolute;
    font-size: 24px;
    /* ลดขนาด */
    opacity: 0.5;
    animation: coin-float 6s ease-in-out infinite;
}

.plinko-coin:nth-child(1) {
    left: 5%;
    top: 20%;
    animation-delay: 0s;
}

.plinko-coin:nth-child(2) {
    left: 15%;
    top: 60%;
    animation-delay: 1s;
    font-size: 20px;
}

.plinko-coin:nth-child(3) {
    right: 10%;
    top: 25%;
    animation-delay: 2s;
}

.plinko-coin:nth-child(4) {
    right: 20%;
    top: 65%;
    animation-delay: 0.5s;
    font-size: 18px;
}

.plinko-coin:nth-child(5) {
    left: 50%;
    top: 10%;
    animation-delay: 1.5s;
    font-size: 22px;
}

@keyframes coin-float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-10px) rotate(10deg);
    }

    75% {
        transform: translateY(8px) rotate(-10deg);
    }
}

.plinko-hero h1 {
    font-size: 2.5rem;
    /* ลดจาก 3rem */
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 10px 0;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 40px rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
    letter-spacing: 1px;
}

.plinko-hero h1 .emoji {
    display: inline-block;
    animation: bounce-slot 1.5s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

@keyframes bounce-slot {

    0%,
    100% {
        transform: translateY(0) rotate(-5deg) scale(1);
    }

    50% {
        transform: translateY(-10px) rotate(10deg) scale(1.1);
    }
}

.plinko-hero p {
    font-size: 1.1rem;
    /* ลดจาก 1.3rem */
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Hero Badge */
.plinko-hero-badge {
    display: inline-block;
    margin-top: 15px;
    /* ลดจาก 20px */
    padding: 8px 20px;
    /* ลดจาก 10px 25px */
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 13px;
    /* ลดจาก 14px */
    font-weight: 600;
    position: relative;
    z-index: 1;
    animation: badge-glow 2s ease-in-out infinite;
}

.plinko-hero-badge i {
    margin-right: 8px;
    color: var(--plinko-gold);
}

@keyframes badge-glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
    }

    50% {
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.4);
    }
}

/* ==================== Main Container ==================== */
.plinko-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px 50px;
    margin-top: -40px;
    /* ลดจาก -60px */
    position: relative;
    z-index: 10;
}

/* ==================== Main Card ==================== */
.plinko-main-card {
    background: #ffffff;
    border-radius: 28px;
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.8) inset;
    overflow: hidden;
    margin-bottom: 30px;
}

/* ==================== Rules Section ==================== */
.plinko-rules {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    padding: 28px;
    margin: 25px;
    border-radius: 20px;
    border-left: 6px solid var(--plinko-success);
    position: relative;
    overflow: hidden;
}

/* Rules decoration */
.plinko-rules::before {
    content: '📋';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 80px;
    opacity: 0.08;
}

.plinko-rules-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #2e7d32;
    margin-bottom: 18px;
}

.plinko-rules-title i {
    font-size: 1.4rem;
    color: var(--plinko-success);
}

.plinko-rules ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.plinko-rules li {
    padding-left: 32px;
    position: relative;
    font-size: 14px;
    color: #333;
    line-height: 2.2;
    transition: transform 0.2s ease;
}

.plinko-rules li:hover {
    transform: translateX(5px);
}

.plinko-rules li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #fff;
    font-weight: bold;
    font-size: 12px;
    width: 22px;
    height: 22px;
    background: var(--plinko-success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 4px;
}

.plinko-rules li strong {
    color: #1b5e20;
    font-weight: 700;
}

/* Highlight Box */
.plinko-rules .highlight {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    padding: 18px 20px;
    border-radius: 14px;
    margin-top: 20px;
    border: 2px solid #ffc107;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.2);
    position: relative;
    overflow: hidden;
}

.plinko-rules .highlight::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shine-sweep 3s ease-in-out infinite;
}

@keyframes shine-sweep {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

.plinko-rules .highlight .ticket-img {
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.2));
    animation: ticket-bounce 2s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

@keyframes ticket-bounce {

    0%,
    100% {
        transform: translateY(0) rotate(-5deg);
    }

    50% {
        transform: translateY(-8px) rotate(5deg);
    }
}

.plinko-rules .highlight .highlight-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.plinko-rules .highlight .highlight-content p {
    margin: 0 0 5px 0;
    font-weight: 700;
    color: #f57c00;
    font-size: 14px;
}

.plinko-rules .highlight .highlight-content small {
    color: #795548;
    font-size: 12px;
}

.plinko-rules .highlight .shop-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: #fff;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 13px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.4);
    position: relative;
    z-index: 1;
    white-space: nowrap;
}

.plinko-rules .highlight .shop-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.5);
}

/* ==================== Game Section ==================== */
.plinko-game-section {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
    padding: 30px;
}

/* Game Container - อยู่ตรงกลาง */
.plinko-game-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.plinko-game-wrapper::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 20px);
    max-width: 820px;
    height: calc(100% + 20px);
    background: linear-gradient(135deg, var(--plinko-primary), var(--plinko-accent));
    border-radius: 28px;
    z-index: -1;
    opacity: 0.3;
    filter: blur(20px);
}

#gameContainer {
    width: 100%;
    max-width: 800px;
    height: 600px;
    border: none;
    overflow: hidden;
    position: relative;
    background-image: url('/assets/img/plinko/plinko-bg.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 24px;
    box-shadow:
        0 15px 50px var(--plinko-shadow),
        0 0 0 4px rgba(255, 255, 255, 0.5),
        inset 0 0 30px rgba(0, 0, 0, 0.1);
}

/* Control Panel */
.plinko-control-panel {
    background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 24px;
    padding: 25px;
    border: 1px solid #dee2e6;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

/* User Stats */
.plinko-user-stats {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 22px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #eee;
}

.plinko-user-header {
    background: linear-gradient(135deg, var(--plinko-primary) 0%, var(--plinko-secondary) 100%);
    color: white;
    padding: 14px 18px;
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.plinko-user-header i {
    font-size: 1.2rem;
}

.plinko-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid #f5f5f5;
    font-size: 14px;
    transition: background 0.2s ease;
}

.plinko-stat-row:hover {
    background: #fafafa;
}

.plinko-stat-row:last-child {
    border-bottom: none;
}

.plinko-stat-label {
    color: #555;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.plinko-stat-value {
    font-weight: 700;
    color: #333;
    font-size: 16px;
}

.plinko-stat-value.highlight {
    color: var(--plinko-primary);
    position: relative;
}

.plinko-stat-value.highlight::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--plinko-primary), var(--plinko-accent));
    border-radius: 2px;
}

/* Form Controls */
.plinko-form-group {
    margin-bottom: 18px;
}

.plinko-form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-bottom: 10px;
}

.plinko-select {
    width: 100%;
    padding: 14px 18px;
    font-size: 14px;
    border: 2px solid #e0e0e0;
    border-radius: 14px;
    background: #ffffff;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23667eea' stroke-width='2'%3E%3Cpolyline points='6,9 12,15 18,9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
}

.plinko-select:hover {
    border-color: #bbb;
}

.plinko-select:focus {
    outline: none;
    border-color: var(--plinko-primary);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
}

.plinko-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #555;
    margin-bottom: 20px;
    cursor: pointer;
    padding: 10px 12px;
    border-radius: 10px;
    transition: background 0.2s ease;
}

.plinko-checkbox:hover {
    background: rgba(102, 126, 234, 0.05);
}

.plinko-checkbox input {
    width: 20px;
    height: 20px;
    accent-color: var(--plinko-primary);
}

/* Play Button */
.plinko-play-btn {
    width: 100%;
    padding: 18px 24px;
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, var(--plinko-primary) 0%, var(--plinko-secondary) 100%);
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px var(--plinko-shadow);
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.plinko-play-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.plinko-play-btn:hover::before {
    left: 100%;
}

.plinko-play-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.45);
}

.plinko-play-btn:active {
    transform: translateY(-1px);
}

.plinko-play-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.plinko-play-btn i {
    margin-right: 8px;
}

/* Reward History - Floating Window */
.plinko-reward-history {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 320px;
    height: 350px;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: box-shadow 0.3s ease;
    resize: both;
    min-width: 280px;
    max-width: 450px;
    min-height: 200px;
    max-height: 500px;
    display: flex;
    flex-direction: column;
}

.plinko-reward-history:hover {
    box-shadow:
        0 15px 50px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(102, 126, 234, 0.3);
}

.plinko-reward-history.dragging {
    opacity: 0.9;
    box-shadow:
        0 20px 60px rgba(102, 126, 234, 0.3),
        0 0 0 2px var(--plinko-primary);
}

.plinko-reward-history.minimized {
    height: auto !important;
    min-height: auto;
    resize: none;
}

.plinko-reward-history.minimized .plinko-reward-list {
    display: none;
}

.plinko-reward-header {
    background: linear-gradient(135deg, var(--plinko-primary) 0%, var(--plinko-secondary) 100%);
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: grab;
    user-select: none;
    flex-shrink: 0;
}

.plinko-reward-header:active {
    cursor: grabbing;
}

.plinko-reward-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.plinko-reward-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.plinko-reward-header-btn {
    width: 26px;
    height: 26px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.2s ease;
}

.plinko-reward-header-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.plinko-reward-header-btn.close:hover {
    background: #e74c3c;
}

.plinko-reward-count {
    background: rgba(255, 255, 255, 0.25);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
}

.plinko-reward-list {
    flex: 1;
    overflow-y: auto;
    background: #fff;
}

.plinko-reward-list::-webkit-scrollbar {
    width: 6px;
}

.plinko-reward-list::-webkit-scrollbar-track {
    background: #f5f5f5;
}

.plinko-reward-list::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--plinko-primary), var(--plinko-secondary));
    border-radius: 3px;
}

.plinko-reward-list::-webkit-scrollbar-thumb:hover {
    background: var(--plinko-primary);
}

.plinko-reward-empty {
    padding: 30px 20px;
    text-align: center;
    color: #999;
    font-size: 13px;
}

.plinko-reward-empty i {
    font-size: 2rem;
    margin-bottom: 10px;
    opacity: 0.5;
}

.plinko-reward-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #f5f5f5;
    font-size: 13px;
    transition: all 0.2s ease;
    animation: reward-slide-in 0.3s ease;
}

@keyframes reward-slide-in {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.plinko-reward-item:hover {
    background: linear-gradient(90deg, #f8f9ff, #fff);
}

.plinko-reward-item:last-child {
    border-bottom: none;
}

.plinko-reward-item img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.plinko-reward-item-info {
    flex: 1;
}

.plinko-reward-item-name {
    font-weight: 600;
    color: #333;
    font-size: 12px;
    display: block;
}

.plinko-reward-item-qty {
    font-size: 11px;
    color: #888;
}

.plinko-reward-item-time {
    font-size: 10px;
    color: #bbb;
}

.plinko-reward-item.rare {
    background: linear-gradient(90deg, #fff5f8, #fff);
    border-left: 3px solid var(--plinko-rare);
}

.plinko-reward-item.rare .plinko-reward-item-name {
    color: var(--plinko-rare);
}

/* Resize Handle */
.plinko-reward-history::after {
    content: '';
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, transparent 50%, #ddd 50%);
    border-radius: 0 0 4px 0;
    cursor: se-resize;
}

/* Mobile - Fixed at bottom */
@media (max-width: 768px) {
    .plinko-reward-history {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        border-radius: 16px 16px 0 0;
        max-height: 50vh;
    }

    .plinko-reward-history::after {
        display: none;
    }
}

/* Login Required */
.plinko-login-required {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    border-radius: 20px;
    padding: 50px 30px;
    text-align: center;
    border: 2px dashed #e57373;
    position: relative;
}

.plinko-login-required .lock-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #e57373, #ef5350);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 10px 30px rgba(229, 115, 115, 0.3);
}

.plinko-login-required .lock-icon i {
    font-size: 2rem;
    color: #fff;
}

.plinko-login-required p {
    color: #c62828;
    font-weight: 600;
    margin-bottom: 25px;
    font-size: 16px;
}

.plinko-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    background: linear-gradient(135deg, #e57373 0%, #ef5350 100%);
    color: white;
    text-decoration: none;
    border-radius: 14px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(229, 115, 115, 0.35);
}

.plinko-login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(229, 115, 115, 0.45);
    color: white;
}

/* ==================== Rewards Section ==================== */
.plinko-rewards-section {
    padding: 40px 30px 50px;
    background: linear-gradient(180deg, #f8f9fa 0%, #fff 100%);
    position: relative;
}

.plinko-rewards-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #ddd, transparent);
}

.plinko-rewards-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 800;
    color: #333;
    margin-bottom: 15px;
}

.plinko-rewards-title span {
    background: linear-gradient(135deg, var(--plinko-primary) 0%, var(--plinko-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.plinko-rewards-subtitle {
    text-align: center;
    color: #777;
    font-size: 14px;
    margin-bottom: 35px;
}

.plinko-rewards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Reward Card */
.plinko-reward-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.06);
    transition: all 0.4s ease;
    border: 1px solid #eee;
}

.plinko-reward-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.plinko-reward-card-header {
    padding: 18px;
    text-align: center;
    font-weight: 700;
    font-size: 15px;
    color: white;
    position: relative;
    overflow: hidden;
}

.plinko-reward-card-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: card-shine 3s ease-in-out infinite;
}

@keyframes card-shine {

    0%,
    100% {
        transform: translateX(-100%) rotate(45deg);
    }

    50% {
        transform: translateX(100%) rotate(45deg);
    }
}

.plinko-reward-card-header.free {
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
}

.plinko-reward-card-header.cookie {
    background: linear-gradient(135deg, #ff9800 0%, #ffb74d 100%);
}

.plinko-reward-card-header.pang {
    background: linear-gradient(135deg, #2196f3 0%, #64b5f6 100%);
}

.plinko-reward-card-header.point {
    background: linear-gradient(135deg, #9c27b0 0%, #ba68c8 100%);
}

/* Reward Table - ทั้ง th, td อยู่ตรงกลาง v, h center */
.plinko-reward-table {
    width: 100%;
    border-collapse: collapse;
}

.plinko-reward-table th {
    background: #f9f9f9;
    padding: 12px 10px;
    font-size: 11px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    text-align: center !important;
    vertical-align: middle;
    letter-spacing: 0.5px;
}

.plinko-reward-table td {
    padding: 14px 10px;
    text-align: center !important;
    vertical-align: middle;
    border-bottom: 1px solid #f5f5f5;
    font-size: 13px;
}

.plinko-reward-table tr:last-child td {
    border-bottom: none;
}

.plinko-reward-table tr {
    transition: background 0.2s ease;
}

.plinko-reward-table tr:hover {
    background: #fafafa;
}

.plinko-item-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.plinko-item-cell img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.plinko-reward-table tr:hover .plinko-item-cell img {
    transform: scale(1.1);
}

.plinko-item-name {
    font-size: 12px;
    font-weight: 600;
    color: #444;
}

.plinko-item-name.rare {
    color: var(--plinko-rare);
    position: relative;
}

.plinko-item-name.rare::after {
    content: '★';
    margin-left: 4px;
    font-size: 10px;
}

.plinko-item-note {
    font-size: 10px;
    color: #999;
    display: block;
}

/* VIP Bonus Text */
.vip-bonus {
    color: var(--plinko-rare);
    font-size: 11px;
    font-weight: 700;
}

.plinko-chance {
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    display: inline-block;
}

.plinko-chance.high {
    color: #2e7d32;
    background: #e8f5e9;
}

.plinko-chance.medium {
    color: #f57c00;
    background: #fff3e0;
}

.plinko-chance.low {
    color: var(--plinko-rare);
    background: #fce4ec;
    animation: rare-pulse 2s ease-in-out infinite;
}

@keyframes rare-pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(233, 30, 99, 0.2);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(233, 30, 99, 0);
    }
}

/* ==================== Mobile Warning ==================== */
.plinko-mobile-warning {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 300px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-radius: 24px;
    z-index: 100;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px;
    box-sizing: border-box;
}

.plinko-mobile-warning-content {
    color: #fff;
}

.plinko-mobile-warning-content>i {
    font-size: 4rem;
    color: var(--plinko-primary);
    margin-bottom: 20px;
    display: block;
    animation: float-icon 3s ease-in-out infinite;
}

@keyframes float-icon {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.plinko-mobile-warning h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: #fff;
}

.plinko-mobile-warning p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin: 0 0 25px 0;
}

.plinko-mobile-warning-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.5);
}

.plinko-mobile-warning-icon .fa-mobile-alt {
    color: #e74c3c;
}

.plinko-mobile-warning-icon .fa-arrow-right {
    font-size: 1rem;
    animation: arrow-move 1s ease-in-out infinite;
}

@keyframes arrow-move {

    0%,
    100% {
        transform: translateX(0);
        opacity: 0.5;
    }

    50% {
        transform: translateX(5px);
        opacity: 1;
    }
}

.plinko-mobile-warning-icon .fa-laptop {
    color: #2ecc71;
}

/* Show warning on mobile and tablet, require 993px to play */
@media (max-width: 992px) {
    .plinko-game-wrapper {
        position: relative;
        min-height: 300px;
    }

    .plinko-mobile-warning {
        display: flex;
    }

    #gameContainer {
        display: none;
    }

    .plinko-game-wrapper::before {
        display: none;
    }
}

/* Control panel แยกแถวเมื่อ ≤ 1234px */
@media (max-width: 1234px) {
    .plinko-game-section {
        grid-template-columns: 1fr;
    }

    .plinko-control-panel {
        max-width: 100%;
    }

    #gameContainer {
        max-width: 800px;
        margin: 0 auto;
    }
}

/* Desktop 1235px+ - control panel same row */
@media (min-width: 1235px) {
    .plinko-game-section {
        grid-template-columns: 1fr 380px;
    }

    .plinko-mobile-warning {
        display: none;
    }
}

/* Desktop 993px - 1234px - can play but control panel separate row */
@media (min-width: 993px) and (max-width: 1234px) {
    .plinko-mobile-warning {
        display: none;
    }

    #gameContainer {
        display: block;
    }
}

/* ==================== Responsive ==================== */
@media (max-width: 1200px) {
    .plinko-rewards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .plinko-control-panel {
        max-width: 100%;
    }

    .plinko-rewards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .plinko-hero {
        padding: 40px 15px 60px;
    }

    .plinko-hero h1 {
        font-size: 2rem;
    }

    .plinko-rewards-grid {
        grid-template-columns: 1fr;
    }

    .plinko-container {
        padding: 0 15px 30px;
    }

    .plinko-game-section {
        padding: 20px;
        gap: 20px;
    }

    .plinko-hero-coins .plinko-coin {
        display: none;
    }

    .plinko-rules .highlight {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .plinko-hero {
        padding: 30px 15px 50px;
    }

    .plinko-hero h1 {
        font-size: 1.6rem;
    }

    .plinko-hero p {
        font-size: 0.95rem;
    }

    .plinko-rules {
        margin: 15px;
        padding: 20px;
    }

    .plinko-rules li {
        font-size: 13px;
        padding-left: 30px;
    }

    .plinko-item-cell img {
        width: 36px;
        height: 36px;
    }
}