/* Basic reset */
:root {
    --bg: #0d0f1a;
    --card: #13162a;
    --accent: #7c5dff;
    --accent-2: #29d3c1;
    --text: #e9ecf3;
    --muted: #9aa4c2;
    --border: rgba(255, 255, 255, 0.08);
    --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    font-family: "Inter", system-ui, -apple-system, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: radial-gradient(circle at 20% 20%, rgba(124, 93, 255, 0.12), transparent 25%),
                radial-gradient(circle at 80% 0%, rgba(41, 211, 193, 0.18), transparent 30%),
                var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

.app {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    width: min(720px, 100%);
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 10% 20%, rgba(124, 93, 255, 0.12), transparent 30%),
                radial-gradient(circle at 90% 0%, rgba(41, 211, 193, 0.12), transparent 30%);
    pointer-events: none;
}

.card__header h1 {
    font-size: 28px;
    margin-bottom: 6px;
}

.subtitle {
    color: var(--muted);
}

.eyebrow {
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: 8px;
    font-size: 12px;
}

.form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    margin: 24px 0 12px;
}

.form input {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 16px;
}

.form input:focus {
    outline: 2px solid var(--accent);
    border-color: transparent;
}

.form button {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border: none;
    color: #0b0e1a;
    font-weight: 700;
    padding: 12px 18px;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 120ms ease, box-shadow 120ms ease;
    box-shadow: 0 8px 24px rgba(124, 93, 255, 0.35);
}

.form button:hover {
    transform: translateY(-1px);
}

.form button:active {
    transform: translateY(0);
}

.grid-wrapper {
    margin: 20px 0;
}

.grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 10px;
}

.cell {
    position: relative;
    padding: 16px 0;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    text-align: center;
    font-weight: 700;
    cursor: pointer;
    transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
}

.cell:hover {
    border-color: var(--accent);
    transform: translateY(-1px);
}

.cell:active {
    transform: translateY(0);
}

.cell.hit {
    background: rgba(41, 211, 193, 0.14);
    border-color: var(--accent-2);
    color: var(--accent-2);
}

.cell.miss {
    background: rgba(255, 255, 255, 0.04);
    border-color: #ff6b6b55;
    color: #ffb3b3;
}

.cell.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.feedback {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
}

.feedback p {
    font-weight: 600;
}

.feedback p[data-intent="success"] {
    color: var(--accent-2);
}

.feedback p[data-intent="warn"] {
    color: #ffb347;
}

.feedback p[data-intent="info"] {
    color: var(--accent);
}

.feedback .meta {
    display: flex;
    gap: 12px;
    color: var(--muted);
    margin-top: 8px;
    font-size: 14px;
}

.actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
}

.actions .secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 14px;
    cursor: pointer;
    transition: border-color 120ms ease, transform 120ms ease;
}

.actions .secondary:hover {
    border-color: var(--accent);
    transform: translateY(-1px);
}

.video {
    margin-top: 16px;
}

.video video {
    width: 100%;
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.hidden {
    display: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

