:root {
    --bg-1: #1a1240;
    --bg-2: #2b4dc5;
    --card: rgba(255, 255, 255, 0.14);
    --card-border: rgba(255, 255, 255, 0.22);
    --text: #ffffff;
    --muted: rgba(255, 255, 255, 0.78);
    --accent: #ff7e32;
    --accent-2: #ff4f9f;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: "Inter", system-ui, sans-serif;
    background:
        radial-gradient(circle at 8% 12%, #7d4dff 0%, transparent 40%),
        radial-gradient(circle at 88% 90%, #00b7ff 0%, transparent 32%),
        linear-gradient(135deg, var(--bg-1), var(--bg-2));
}

.container {
    max-width: 1020px;
    margin: 0 auto;
    padding: 28px 18px 40px;
    display: grid;
    gap: 14px;
}

.card {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 20px;
    backdrop-filter: blur(8px);
}

.hero h1 {
    margin: 8px 0;
    line-height: 1.1;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
}

.eyebrow {
    margin: 0;
    color: var(--muted);
}

.sub,
.meta {
    color: var(--muted);
}

.meta {
    margin: 6px 0 0;
}

.poll-form,
.vote-form {
    display: grid;
    gap: 14px;
}

.inline-form {
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(220px, 360px) auto;
    align-items: center;
}

label {
    display: grid;
    gap: 8px;
    font-weight: 600;
}

input,
textarea,
select {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.14);
    color: white;
    padding: 12px;
    font: inherit;
}

input::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.72);
}

textarea {
    resize: vertical;
}

button {
    border: none;
    border-radius: 12px;
    padding: 12px 16px;
    cursor: pointer;
    font-weight: 800;
    color: white;
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
}

.share-box {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr auto;
    margin-top: 8px;
}

.slot-grid,
.results-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.slot-item,
.result-card {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    padding: 12px;
}

.best-choice {
    border-color: rgba(19, 190, 120, 0.65);
    background: rgba(19, 190, 120, 0.15);
}

.slot-label {
    margin: 0 0 8px;
    font-weight: 700;
}

.flash-stack {
    display: grid;
    gap: 8px;
}

.flash {
    border-radius: 12px;
    padding: 10px 12px;
    font-weight: 600;
}

.flash-success {
    background: rgba(19, 190, 120, 0.25);
    border: 1px solid rgba(19, 190, 120, 0.5);
}

.flash-error {
    background: rgba(240, 64, 64, 0.25);
    border: 1px solid rgba(240, 64, 64, 0.5);
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 580px;
}

th,
td {
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 9px 8px;
    text-align: center;
}

th:first-child,
td:first-child {
    text-align: left;
}

@media (max-width: 700px) {
    .share-box {
        grid-template-columns: 1fr;
    }

    .inline-form {
        grid-template-columns: 1fr;
    }
}