/* Змінні кольорів локально для цього блоку */
.casino-component-wrapper {
    --c-primary: #f97316;
    position: relative;
    min-height: 550px; /* Збільшена висота */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: #050505;
    padding: 100px 20px;
}

/* Частинки */
.embers-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.fire-ember {
    position: absolute; width: 8px; height: 8px; border-radius: 50%;
    background: radial-gradient(circle, hsl(45, 100%, 60%) 0%, hsl(30, 100%, 50%) 40%, transparent 100%);
    box-shadow: 0 0 6px hsl(30, 100%, 50%);
    bottom: 20%; opacity: 0;
    animation: emberFloat var(--duration) ease-out infinite;
    animation-delay: var(--delay);
}
@keyframes emberFloat {
    0% { opacity: 0; transform: translateY(0) scale(0.5); }
    10% { opacity: 1; }
    100% { opacity: 0; transform: translateY(-400px) translateX(var(--drift)) scale(0); }
}

/* Фонові плями */
.glow-spot { 
    position: absolute; 
    border-radius: 50%; 
    filter: blur(80px); 
    z-index: 0; 
    opacity: 0.6;
    animation: spotPulse 6s infinite alternate;
}
.top-glow { top: 10%; left: 20%; width: 300px; height: 300px; background: rgba(249, 115, 22, 0.2); }
.bottom-glow { bottom: 10%; right: 20%; width: 350px; height: 350px; background: rgba(234, 88, 12, 0.15); animation-delay: -3s; }
.center-glow { top: 50%; left: 50%; transform: translate(-50%, -50%); width: 400px; height: 400px; background: rgba(249, 115, 22, 0.05); }
/* Контент */
.casino-content { position: relative; z-index: 10; width: 100%; max-width: 800px; transition: 0.7s; }
.hidden-start { opacity: 0; transform: translateY(30px); }

.casino-flex-container { display: flex; flex-direction: column; align-items: center; gap: 3rem; }
@media (min-width: 768px) { .casino-flex-container { flex-direction: row; justify-content: center; gap: 4rem; } }

/* Колесо */
.wheel-group { position: relative; }
.rings-bg { position: absolute; inset: -15px; border-radius: 50%; opacity: 0.6; pointer-events: none; }
.ring-dash { position: absolute; inset: 0; border: 2px dashed rgba(249, 115, 22, 0.4); border-radius: 50%; animation: c-spin 20s linear infinite; }
.ring-solid { position: absolute; inset: 10px; border: 1px solid rgba(251, 146, 60, 0.3); border-radius: 50%; animation: c-spin 15s reverse linear infinite; }

.decor-spark { position: absolute; color: var(--c-primary); animation: c-pulse 2s infinite; }
.top-right { top: -10px; right: -10px; }
.bottom-left { bottom: -10px; left: -10px; }

/* Нові розміри колеса */
.wheel-sizer { 
    position: relative; 
    width: 300px;  /* Було 220px */
    height: 300px; /* Було 220px */
}

@media (min-width: 768px) { 
    .wheel-sizer { 
        width: 400px;  /* Було 260px */
        height: 400px; /* Було 260px */
    } 
}

.wheel-pointer {
    position: absolute; top: -5px; left: 50%; transform: translateX(-50%); z-index: 20;
    border-left: 12px solid transparent; border-right: 12px solid transparent; border-top: 20px solid var(--c-primary);
    filter: drop-shadow(0 0 8px #f97316);
}

.wheel-element {
    width: 100%; height: 100%; border-radius: 50%;
    border: 4px solid rgba(251, 146, 60, 0.8);
    overflow: hidden; position: relative;
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.4);
}
.animate-fire { animation: fireGlow 3s alternate infinite; }
@keyframes fireGlow { to { box-shadow: 0 0 40px rgba(249, 115, 22, 0.8); border-color: orange; } }

/* Сектори (класи додає JS) */
.c-segment { position: absolute; width: 50%; height: 50%; transform-origin: 100% 100%; left: 0; top: 0; }
.c-seg-inner { position: absolute; left: 50%; top: 35%; display: flex; flex-direction: column; align-items: center; color: #fff; font-weight: 700; font-size: 10px; }

.wheel-knob {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 44px; height: 44px; background: linear-gradient(135deg, #fb923c, #ea580c);
    border-radius: 50%; border: 4px solid #111; z-index: 5;
    display: flex; align-items: center; justify-content: center;
}

/* Картка вводу */
.input-card-box { width: 100%; max-width: 320px; }
.casino-card {
    position: relative; padding: 20px; border-radius: 12px;
    background: linear-gradient(135deg, rgba(30,30,30,0.9), rgba(20,20,20,0.5));
    border: 1px solid rgba(249,115,22,0.3);
}

.c-corner { position: absolute; width: 12px; height: 12px; border-color: var(--c-primary); border-style: solid; }
.tl { top: 0; left: 0; border-width: 2px 0 0 2px; border-radius: 6px 0 0 0; }
.tr { top: 0; right: 0; border-width: 2px 2px 0 0; border-radius: 0 6px 0 0; }
.bl { bottom: 0; left: 0; border-width: 0 0 2px 2px; border-radius: 0 0 0 6px; }
.br { bottom: 0; right: 0; border-width: 0 2px 2px 0; border-radius: 0 0 6px 0; }

.c-title { display: flex; align-items: center; gap: 8px; margin: 0 0 15px 0; font-size: 18px; color: white; }
.c-icon { color: var(--c-primary); width: 20px; }
.c-grad-text { background: linear-gradient(to right, #fb923c, #ea580c); -webkit-background-clip: text; color: transparent; }

.c-form { display: flex; flex-direction: column; gap: 10px; }
.c-input {
    width: 100%; height: 42px; background: rgba(0,0,0,0.4); border: 1px solid #444;
    border-radius: 6px; padding: 0 10px; color: #fff; text-transform: uppercase;
    box-sizing: border-box; /* Важливо для верстки */
}
.c-input:focus { border-color: var(--c-primary); outline: none; }

.c-btn {
    width: 100%; height: 42px; border: none; border-radius: 6px;
    background: linear-gradient(to right, #f97316, #ea580c);
    color: white; font-weight: bold; cursor: pointer; transition: 0.3s;
}
.c-btn:hover:not(:disabled) { box-shadow: 0 0 15px rgba(249, 115, 22, 0.5); transform: scale(1.02); }
.c-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.spin-anim { animation: c-spin 1s linear infinite; width: 18px; }

/* Toast */
.c-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translate(-50%, 100px);
    width: 90%; /* Ширина на мобільному */
    max-width: 500px; /* Обмеження на ПК */
    background: rgba(10, 10, 10, 0.95);
    color: white;
    padding: 25px 20px;
    border-radius: 12px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 9999;
    font-weight: 500;
    text-align: center;
    border: 2px solid var(--c-primary);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}
.c-toast.show {
    transform: translate(-50%, 0);
    opacity: 1;
    visibility: visible;
}
.toast-close-btn {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    transition: 0.2s;
}
.toast-close-btn:hover { color: white; }

/* Текст всередині */
.toast-msg-body {
    line-height: 1.5;
    font-size: 15px;
}
.toast-msg-body strong {
    color: #fff;
    font-size: 1.2em;
    display: block;
    margin-top: 10px;
    letter-spacing: 1px;
}

@keyframes c-spin { to { transform: rotate(360deg); } }
@keyframes c-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes spotPulse {
    0% { opacity: 0.3; transform: scale(1); }
    100% { opacity: 0.7; transform: scale(1.2); }
}
.fire-ember {
    position: absolute; 
    width: 4px; /* Дрібніші */
    height: 4px; 
    border-radius: 50%;
    background: #ffba08;
    box-shadow: 0 0 10px #f97316, 0 0 20px #ff4500;
    bottom: -10px;
    opacity: 0;
    animation: emberFloat var(--duration) ease-in infinite;
    animation-delay: var(--delay);
}

@keyframes emberFloat {
    0% { opacity: 0; transform: translateY(0) scale(0.5) rotate(0deg); }
    20% { opacity: 1; }
    100% { opacity: 0; transform: translateY(-700px) translateX(var(--drift)) scale(1.5) rotate(360deg); }
}
