:root {
    --bg-main: #0a0b10;
    --bg-card: rgba(18, 20, 28, 0.88);
    --border-soft: rgba(255, 255, 255, 0.08);
    --text-main: #f5f7ff;
    --text-soft: #aab3c5;
    --cyan: #00eaff;
    --purple: #7a3cff;
    --lime: #9dff00;
    --shadow-neon: 0 0 30px rgba(0, 234, 255, 0.12);
    --radius-xl: 28px;
    --radius-lg: 20px;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg-main);
    color: var(--text-main);
}

body {
    position: relative;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

.bg-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 90%);
    pointer-events: none;
}

.bg-orb {
    position: fixed;
    border-radius: 999px;
    filter: blur(70px);
    opacity: 0.28;
    pointer-events: none;
}

.orb-1 {
    width: 280px;
    height: 280px;
    background: var(--cyan);
    top: 40px;
    left: -60px;
}

.orb-2 {
    width: 320px;
    height: 320px;
    background: var(--purple);
    right: -100px;
    bottom: 60px;
}

.app-shell {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.card-main,
.card {
    width: 100%;
    max-width: 980px;
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-neon);
    backdrop-filter: blur(16px);
    padding: 28px;
}

.brand-wrap {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
}

.brand-badge {
    width: 72px;
    height: 72px;
    border-radius: 22px;
    display: grid;
    place-items: center;
    font-size: 1.4rem;
    font-weight: 700;
    color: #001317;
    background: linear-gradient(135deg, var(--cyan), var(--lime));
    box-shadow: 0 0 20px rgba(157, 255, 0, 0.2);
}

.eyebrow {
    margin: 0 0 6px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.75rem;
    color: var(--cyan);
}

.text-soft {
    color: var(--text-soft);
}

h1 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1.05;
}

h2, h3, h4 {
    margin-top: 0;
}

.lead {
    margin: 0 0 22px;
    color: var(--text-soft);
    font-size: 1.05rem;
    max-width: 700px;
}

.status-box {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(157,255,0,0.16);
    border-radius: 999px;
    margin-bottom: 24px;
    color: #e8ffd1;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--lime);
    box-shadow: 0 0 10px var(--lime);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 28px;
}

.btn {
    border: 0;
    border-radius: 16px;
    padding: 14px 22px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    color: #03131a;
    background: linear-gradient(135deg, var(--cyan), var(--lime));
    box-shadow: 0 12px 28px rgba(0, 234, 255, 0.18);
}

.btn-secondary {
    color: var(--text-main);
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.info-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-lg);
    padding: 18px;
}

.info-card h2 {
    margin: 0 0 10px;
    font-size: 1rem;
    color: var(--cyan);
}

.info-card p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.5;
    font-size: 0.96rem;
}

.affiliate-box {
    margin: 0 0 24px;
    padding: 18px;
    border-radius: 20px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(0, 234, 255, 0.12);
}

.affiliate-label {
    margin: 0 0 8px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--cyan);
}

.affiliate-title {
    margin: 0 0 10px;
    font-size: 1.2rem;
    color: var(--text-main);
}

.affiliate-text {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.5;
}

.warning-box {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 193, 7, 0.08);
    border: 1px solid rgba(255, 193, 7, 0.22);
    color: #ffe9a6;
    font-size: 0.95rem;
}

.waiting-panel {
    display: grid;
    gap: 18px;
}

.waiting-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(157,255,0,0.16);
    border-radius: 999px;
    color: #e8ffd1;
    width: fit-content;
}

.waiting-card,
.code-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 20px;
}

.waiting-label {
    margin: 0 0 8px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--cyan);
}

.waiting-title {
    margin: 0 0 8px;
    font-size: 1.45rem;
    color: var(--text-main);
}

.waiting-subtext {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.5;
}

.short-code {
    display: inline-block;
    margin: 8px 0 12px;
    padding: 16px 20px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(0,234,255,0.14), rgba(157,255,0,0.12));
    border: 1px solid rgba(0,234,255,0.24);
    font-size: clamp(1.5rem, 4vw, 2.4rem);
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--text-main);
    box-shadow: 0 0 24px rgba(0, 234, 255, 0.08);
}

.waiting-note {
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(122, 60, 255, 0.10);
    border: 1px solid rgba(122, 60, 255, 0.20);
    color: #ddd5ff;
    line-height: 1.5;
}

.bingo-board-wrap {
    margin-top: 22px;
    width: 100%;
}

.bingo-board {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 18px;
    border-radius: 24px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 0 24px rgba(0, 234, 255, 0.05);
}

.bingo-grid-header {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 10px;
}

.bingo-grid-header div {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(0,234,255,0.14), rgba(122,60,255,0.12));
    border: 1px solid rgba(0,234,255,0.18);
    color: var(--cyan);
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.bingo-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.bingo-cell {
    min-height: 84px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    background: rgba(255,255,255,0.05);
    color: var(--text-main);
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.bingo-cell span {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1;
}

.bingo-cell:hover {
    transform: translateY(-1px);
    border-color: rgba(0,234,255,0.24);
}

.bingo-cell.is-marked {
    background: linear-gradient(135deg, rgba(0,234,255,0.18), rgba(157,255,0,0.20));
    border-color: rgba(157,255,0,0.35);
    box-shadow: 0 0 18px rgba(157,255,0,0.12);
    color: #f8fff0;
}

.bingo-cell.is-free {
    background: linear-gradient(135deg, rgba(122,60,255,0.24), rgba(0,234,255,0.18));
    border-color: rgba(122,60,255,0.30);
}

.bingo-cell.is-free span {
    font-size: 1rem;
    letter-spacing: 0.06em;
}

.bingo-cell.is-winning {
    background: linear-gradient(135deg, #ffd84d, #ffb800) !important;
    border-color: #ffe58a !important;
    color: #1f1a00 !important;
    outline: 2px solid #fff3b0;
    box-shadow: 0 0 22px rgba(255, 216, 77, 0.45);
    transform: scale(1.02);
}

.draw-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
    margin-bottom: 18px;
}

.draw-box {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 18px;
}

.draw-number {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    color: var(--cyan);
    line-height: 1;
}

.draw-counter {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-main);
}

.called-list-wrap {
    margin-bottom: 18px;
}

.called-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    min-height: 44px;
    align-items: center;
}

.called-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--text-main);
    font-weight: 700;
    font-size: 0.95rem;
}

@media (max-width: 760px) {
    .app-shell {
        align-items: flex-start;
        padding: 18px;
    }

    .card-main,
    .card {
        padding: 22px 18px;
        border-radius: 22px;
    }

    .brand-wrap {
        align-items: flex-start;
        gap: 14px;
    }

    .brand-badge {
        width: 62px;
        height: 62px;
        border-radius: 18px;
        font-size: 1.15rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .bingo-board {
        padding: 12px;
        border-radius: 18px;
    }

    .bingo-grid-header,
    .bingo-grid {
        gap: 8px;
    }

    .bingo-grid-header div {
        min-height: 38px;
        font-size: 0.92rem;
        border-radius: 12px;
    }

    .bingo-cell {
        min-height: 62px;
        border-radius: 14px;
    }

    .bingo-cell span {
        font-size: 1rem;
    }

    .bingo-cell.is-free span {
        font-size: 0.82rem;
    }

    .draw-panel {
        grid-template-columns: 1fr;
    }
}