/* Multistate Lottery Oracle — lottery-oracle.css */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@300;400;500;600&display=swap');

.mlo-root *,
.mlo-root *::before,
.mlo-root *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.mlo-root {
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
    background: #0a0a0f;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    font-family: 'Inter', 'Segoe UI', sans-serif;
    color: #e0e0e0;
}

/* ── Header ── */
.mlo-header {
    background: linear-gradient(180deg, #111118 0%, #0a0a0f 100%);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 22px 24px 18px;
    text-align: center;
}
.mlo-header__eyebrow {
    font-size: 11px;
    letter-spacing: 4px;
    color: #666;
    text-transform: uppercase;
    margin-bottom: 6px;
    font-family: monospace;
}
.mlo-header__title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 38px;
    letter-spacing: 3px;
    line-height: 1;
    background: linear-gradient(135deg, #fff 30%, var(--mlo-accent, #ffd60a));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.mlo-header__sub {
    font-size: 12px;
    color: #555;
    margin-top: 6px;
}

/* ── Tabs ── */
.mlo-tabs {
    display: flex;
    background: #0d0d14;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mlo-tab {
    flex: 1;
    padding: 13px 0;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: #666;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
}
.mlo-tab:hover { background: rgba(255,255,255,0.04); }
.mlo-tab.is-active {
    color: var(--mlo-accent, #ffd60a);
    border-bottom-color: var(--mlo-accent, #ffd60a);
}

/* ── Body ── */
.mlo-body {
    padding: 20px 18px;
    min-height: 300px;
}

/* ── Game Grid ── */
.mlo-section-label {
    font-size: 10px;
    letter-spacing: 2.5px;
    color: #555;
    text-transform: uppercase;
    margin-bottom: 12px;
    font-family: monospace;
}
.mlo-game-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 20px;
}
.mlo-game-card {
    background: rgba(255,255,255,0.03);
    border: 1.5px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 13px 15px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.mlo-game-card:hover {
    border-color: rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.05);
}
.mlo-game-card.is-selected {
    transform: translateY(-2px);
}
.mlo-game-card__top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}
.mlo-game-card__icon { font-size: 22px; }
.mlo-game-card__name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 16px;
    letter-spacing: 0.8px;
    color: #e0e0e0;
    line-height: 1.2;
}
.mlo-game-card.is-selected .mlo-game-card__name { /* colored via JS */ }
.mlo-game-card__draw { font-size: 10px; color: #888; font-family: monospace; }
.mlo-game-card__dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    margin-left: auto;
    flex-shrink: 0;
}
.mlo-game-card__jackpot {
    font-size: 11px;
    font-weight: 700;
    font-family: monospace;
}

/* ── Selected game info bar ── */
.mlo-game-info {
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 20px;
}
.mlo-game-info__top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}
.mlo-game-info__icon { font-size: 30px; }
.mlo-game-info__title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 22px;
    letter-spacing: 1.5px;
    line-height: 1.1;
}
.mlo-game-info__states { font-size: 11px; color: #777; }
.mlo-game-info__jackpot-wrap { margin-left: auto; text-align: right; }
.mlo-game-info__jackpot { font-size: 13px; font-weight: 700; }
.mlo-game-info__jackpot-label { font-size: 10px; color: #666; }
.mlo-game-info__desc { font-size: 11px; color: #888; font-style: italic; }

/* ── Controls row ── */
.mlo-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
    align-items: center;
}
.mlo-mode-toggle {
    display: flex;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 3px;
    flex: 1;
}
.mlo-mode-btn {
    flex: 1;
    padding: 8px 6px;
    background: none;
    border: none;
    border-radius: 7px;
    color: #666;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}
.mlo-mode-btn.is-active { color: #fff; }
.mlo-sets-box {
    display: flex;
    align-items: center;
    gap: 7px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 8px 12px;
}
.mlo-sets-label { font-size: 11px; color: #666; }
.mlo-sets-btn {
    width: 26px; height: 26px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid #444;
    color: #888;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}
.mlo-sets-btn.is-active { color: #000; }

/* ── Generate button ── */
.mlo-generate-btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: 'Bebas Neue', sans-serif;
    transition: all 0.2s ease;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.mlo-generate-btn:hover:not(:disabled) {
    filter: brightness(1.15);
    transform: translateY(-1px);
}
.mlo-generate-btn:active:not(:disabled) { transform: translateY(1px); }
.mlo-generate-btn:disabled { cursor: not-allowed; }

/* Spinner */
.mlo-spinner {
    width: 18px; height: 18px;
    border: 2px solid #444;
    border-radius: 50%;
    animation: mlo-spin 0.8s linear infinite;
    flex-shrink: 0;
}
@keyframes mlo-spin {
    to { transform: rotate(360deg); }
}

/* ── Oracle reasoning ── */
.mlo-reasoning {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 20px;
    font-size: 12px;
    color: #aaa;
    line-height: 1.7;
    font-style: italic;
    animation: mlo-slide-up 0.3s ease;
}
.mlo-reasoning__label {
    font-style: normal;
    font-weight: 600;
}

/* ── Number sets ── */
.mlo-sets { animation: mlo-slide-up 0.3s ease; }
.mlo-set-card {
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 12px;
}
.mlo-set-label {
    font-size: 10px;
    font-family: monospace;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.mlo-balls-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.mlo-ball {
    width: 52px; height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 18px;
    color: #fff;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
    flex-shrink: 0;
    cursor: default;
    user-select: none;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                opacity  0.4s ease;
    transform: scale(0);
    opacity: 0;
}
.mlo-ball.is-visible {
    transform: scale(1);
    opacity: 1;
}
.mlo-ball-sep { font-size: 18px; color: #444; }
.mlo-set-meta {
    margin-top: 10px;
    font-size: 11px;
    color: #555;
}

/* ── All games tab ── */
.mlo-all-game {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 12px;
    animation: mlo-slide-up 0.3s ease;
}
.mlo-all-game__top {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.mlo-all-game__icon { font-size: 28px; }
.mlo-all-game__info { flex: 1; }
.mlo-all-game__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.mlo-all-game__name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 20px;
    letter-spacing: 1px;
}
.mlo-all-game__jackpot { font-size: 12px; font-weight: 700; }
.mlo-all-game__desc { font-size: 11px; color: #777; margin-bottom: 4px; }
.mlo-all-game__meta { display: flex; gap: 16px; font-size: 11px; color: #555; }
.mlo-all-game__btn {
    margin-top: 12px;
    width: 100%;
    padding: 9px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 1px;
    transition: filter 0.2s;
}
.mlo-all-game__btn:hover { filter: brightness(1.2); }

/* ── Footer ── */
.mlo-footer {
    text-align: center;
    padding: 12px;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 10px;
    color: #444;
    line-height: 1.6;
}

/* Animations */
@keyframes mlo-slide-up {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 480px) {
    .mlo-game-grid { grid-template-columns: 1fr; }
    .mlo-ball { width: 44px; height: 44px; font-size: 16px; }
    .mlo-controls { flex-wrap: wrap; }
    .mlo-mode-toggle { flex: 1 1 100%; }
}
