:root {
    --bg: #050505;
    --panel: #121212;
    --panel-soft: #1b1b1b;
    --text: #f2f2f2;
    --muted: #a5a5a5;
    --primary: #BE3DF9;
    --primary-strong: #8700C4;
    --ok: #6C4EF4;
    --error: #E5A5F8;
    --border: #2F005E;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: "Segoe UI", Tahoma, sans-serif;
    color: var(--text);
    font-size: 18px;
    background:
        /*radial-gradient(circle at 12% 18%, rgba(255, 122, 0, 0.18), transparent 26%),*/
        /*radial-gradient(circle at 90% 10%, rgba(255, 122, 0, 0.15), transparent 24%),*/
        var(--bg);
}

h1,
h2 {
    margin: 0;
    color: var(--primary);
}

h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
}

h2 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.raffle-screen {
    min-height: 100vh;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.raffle-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.kpi {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.65rem 0.85rem;
    text-align: right;
}

.kpi span {
    display: block;
    color: var(--muted);
    font-size: 1rem;
}

.kpi strong {
    font-size: 1.9rem;
    color: #fff;
}

.messages {
    display: grid;
    gap: 0.65rem;
}

.notice {
    border-radius: 10px;
    padding: 0.7rem 0.9rem;
    font-size: 1rem;
    border: 1px solid var(--border);
    background: var(--panel-soft);
}

.notice.success {
    color: var(--ok);
}

.notice.error {
    color: var(--error);
}

.podium {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-areas:
        "third second"
        "first first";
    gap: 1rem;
    align-content: center;
}

.place-third {
    grid-area: third;
}

.place-second {
    grid-area: second;
}

.place-first {
    grid-area: first;
    max-width: 600px;
    width: 100%;
    justify-self: center;
}

@media (max-width: 680px) {
    .podium {
        grid-template-columns: 1fr;
        grid-template-areas:
            "third"
            "second"
            "first";
    }

    .place-first {
        max-width: none;
    }
}

.place-card {
    /*background: linear-gradient(180deg, rgba(255, 122, 0, 0.1), rgba(18, 18, 18, 0.95));*/
    background: #3C3264;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
    min-height: 220px;
}

.winner {
    margin: 0;
    line-height: 1.45;
    font-size: 1.25rem;
}

.winner small,
.muted {
    color: var(--muted);
}

.draw-btn {
    width: 100%;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 0.9rem 1rem;
    background: var(--primary);
    color: #111;
    transition: background 0.18s ease;
}

.draw-btn:hover {
    background: var(--primary-strong);
}

.draw-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.bottom-action {
    display: flex;
    justify-content: center;
    padding-top: 0.5rem;
    margin-top: auto;
}

.text-button {
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 0.9rem;
    text-transform: lowercase;
    letter-spacing: 0.3px;
    cursor: pointer;
    text-decoration: underline;
}

.text-button:hover {
    color: var(--primary);
}
