::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

.wheel-wrap {
    display: flex;
    justify-content: center;
}

.wheel-box {
    width: min(92vw, 560px);
    aspect-ratio: 1 / 1;
    position: relative;
}

.wheel-box canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.wheel-pointer {
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-top: 26px solid #ef4444;
    z-index: 3;
    filter: drop-shadow(0 3px 4px rgba(15, 23, 42, 0.22));
}

.result-card {
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    background: #f8fafc;
    padding: 1rem;
    text-align: center;
}

.result-value {
    font-size: 1.2rem;
    line-height: 1.7;
    font-weight: 700;
    color: #0f172a;
    margin-top: 0.3rem;
}

.result-value.is-alert {
    color: #dc2626;
}

.food-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 0.6rem;
}

.food-item {
    border: 1px solid #e2e8f0;
    border-radius: 0.65rem;
    background: #fff;
    font-size: 0.85rem;
    color: #475569;
    padding: 0.45rem 0.5rem;
    text-align: center;
    transition: all 0.2s ease;
}

.food-item.is-hit {
    border-color: #93c5fd;
    background: #dbeafe;
    color: #1d4ed8;
    font-weight: 700;
    transform: translateY(-1px);
}

.blocked-cover {
    position: relative;
    overflow: hidden;
}

.blocked-cover::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    z-index: 4;
}

.blocked-cover::after {
    content: '✕';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(110px, 20vw, 190px);
    line-height: 1;
    font-weight: 700;
    color: #dc2626;
    text-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
    z-index: 5;
}

.btn-fading {
    transition: opacity 5s linear, transform 5s linear;
}

.btn-fading-out {
    transition: opacity 5s linear, transform 5s linear;
    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;
}

.jump-btn {
    padding: 0.7rem 1.2rem;
    border-radius: 0.7rem;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.jump-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(29, 78, 216, 0.3);
    filter: brightness(1.03);
}

.toast {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    background: #1e293b;
    color: #fff;
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast.danger {
    background: #991b1b;
    color: #fecaca;
}
