/* ==========================================================================
   Lucky Slot Machine Section (Small/Compact Size)
   ========================================================================== */
.lucky-slot-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
    font-family: 'Kanit', sans-serif;
    box-sizing: border-box;
}

.lucky-slot-card {
    width: 100%;
    max-width: 360px;
    background: #2a2d34;
    padding: 15px 10px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
}

/* ชื่อหัวข้อด้านบนสุด จัดตำแหน่งชิดซ้าย */
.slot-card-title {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: left;
    margin-bottom: 12px;
    padding-left: 4px;
}

.slot-header-labels {
    display: grid;
    grid-template-columns: 3fr 2fr 1fr;
    gap: 6px;
    margin-bottom: 10px;
}

.slot-label {
    background: #e0f2f1;
    color: #1a1a1a;
    padding: 4px 0;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.75rem;
}

.slot-main-display {
    display: grid;
    grid-template-columns: 3fr 2fr 1fr;
    gap: 6px;
    margin-bottom: 20px;
}

.slot-group { 
    display: flex; 
    justify-content: center; 
    gap: 4px; 
}

.slot-box {
    flex: 1;
    height: 60px;
    max-width: 45px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
}

.red-box {
    background: linear-gradient(180deg, #a52a2a 0%, #7b1d1d 100%);
    border: 1.5px solid #ff4d4d;
}
.green-box {
    background: linear-gradient(180deg, #2e7d32 0%, #1b5e20 100%);
    border: 1.5px solid #4caf50;
}
.blue-box {
    background: linear-gradient(180deg, #0087af 0%, #005f7a 100%);
    border: 1.5px solid #00d2ff;
}

.slot-number-strip {
    display: flex;
    flex-direction: column;
    will-change: transform;
}

.slot-num {
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.2rem;
    font-weight: 700;
    color: white;
    /* ป้องกันการขึ้นแถบสีฟ้าคลุมดำตัวเลขเวลาแอนิเมชันทำงานหรือกดรัวๆ */
    user-select: none;
    -webkit-user-select: none;
}

.slot-btn-spin {
    width: 100%;
    background: #f1b400;
    color: #332100;
    border: none;
    padding: 12px 0;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 0 #b38600;
    font-family: 'Kanit', sans-serif;
    outline: none;
    transition: all 0.15s ease-in-out; /* ปรับการ Transition ให้ครอบคลุมทุกเอฟเฟกต์ */
}

.slot-btn-spin:hover {
    background: #ffc41a; /* เพิ่มสถานะโฮเวอร์ปรับสีให้สว่างขึ้นดูมีมิติการกด */
}

.slot-btn-spin:focus-visible {
    box-shadow: 0 0 0 3px rgba(241, 180, 0, 0.5);
}

.slot-btn-spin:active { 
    transform: translateY(3px); 
    box-shadow: 0 1px 0 #b38600; 
}

.slot-btn-spin:disabled { 
    background: #555; 
    color: #888; 
    box-shadow: none; 
    cursor: not-allowed;
    transform: none;
}

/* หน้ากากเลเยอร์ซ้อนเพื่อไล่เฉดเงาหัว-ท้ายของช่องตัวเลข */
.slot-box::after {
    content: '';
    position: absolute;
    inset: 0; /* ลดรูปจาก top/left/right/bottom เหลือเพียงบรรทัดเดียว */
    background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, transparent 20%, transparent 80%, rgba(0,0,0,0.4) 100%);
    pointer-events: none;
}

/* กล่องวิธีใช้งาน สูง 100px ชิดซ้าย และรองรับการเลื่อน Scrollbar */
.slot-instruction-box {
    background: #0D0F12;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 12px;
    margin-top: 15px;
    text-align: left;
    height: 100px; /* แก้ไขคอมเมนต์ด้านบนให้ตรงกับค่าจริง 100px */
    box-sizing: border-box;
    overflow-y: auto; /* ระบบ Scrollbar สไลด์เลื่อนขึ้นลงอัตโนมัติเมื่อข้อความยาวเกิน */
}

.slot-instruction-box h4 {
    color: #bbbcbc;
    margin: 0 0 6px 0;
    font-size: 0.85rem;
    font-weight: 700;
}

.slot-instruction-box p {
    color: #bbbcbc;
    margin: 0;
    font-size: 0.75rem;
    font-weight: 300;
    line-height: 1.5;
    opacity: 0.85;
    text-align: justify;    /* จัดขอบอักษรซ้ายขวาให้เป็นระเบียบ */
    word-break: break-word; /* ป้องกันปัญหาข้อความภาษาไทยยาวติดกันหลุดขอบการ์ด */
}

/* ตกแต่งความสวยงามของแถบ Scrollbar ขนาดเล็กด้านข้างกล่องวิธีใช้งาน */
.slot-instruction-box::-webkit-scrollbar {
    width: 5px;
}

.slot-instruction-box::-webkit-scrollbar-track {
    background: #1A1E25;
}

.slot-instruction-box::-webkit-scrollbar-thumb {
    background: #f1b400;
    border-radius: 10px;
}