:root {
    --bg: #000000;
    --fg: #ffffff;
    --text-sub: #e4e4e7; 
    --muted: #71717a;
    --border: #27272a; 
    --accent: #ffffff;
    --wrong: #ef4444;
    --extra: #991b1b;
    --font: "Space Grotesk", sans-serif;
}

*, *::before, *::after, html, body, input, button, textarea {
    cursor: none !important;
    user-select: none !important;
    -webkit-user-select: none !important;
}


* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg);
    color: var(--fg);
    font-family: var(--font);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2.5rem;
}

::selection {
    background-color: var(--text-sub);
    color: var(--bg);
}

.header-bar, .footer-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: var(--muted);
}

.title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--fg);
    letter-spacing: -0.025em;
}

.board-container {
    width: 100%;
    max-width: 690px; /* 69 hehe */
    margin: auto;
}

.board {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.75rem;
    background-color: var(--bg);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.board-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: var(--muted);
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.inputs-wrapper {
    display: flex;
    gap: 0.5rem;
    flex-direction: column;
}

.field {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    border: 1px solid var(--border);
    color: var(--fg);
    font-size: 0.875rem;
    background-color: var(--bg);
}

.field.focused {
    border-color: #52525b;
    color: var(--fg);
    background-color: rgba(255, 255, 255, 0.04);
}

.field input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--fg);
    font-family: var(--font);
    font-size: 0.875rem;
    text-align: right;
    width: 67%; /* not on purpose i swear */
}

.field input::placeholder {
    color: var(--muted);
}

.math-problem {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--fg);
    padding: 0.5rem 0;
    font-weight: 500;
}

.choices {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.choice-item {
    padding: 0.9rem 1.1rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.075rem;
    color: var(--text-sub);
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    transition: all 0.15s ease;
}

.choice-item:hover {
  border-color: #52525b;
  color: var(--fg);
}

.choice-item.picked {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
    font-weight: 600;
}

.choice-badge {
    color: var(--muted);
    font-size: 0.875rem;
}

.choice-item.picked .choice-badge {
  color: rgba(0, 0, 0, 0.6);
}

.hidden {
  display: none !important;
}

.state-loading {
  text-align: center;
  padding: 3rem 0;
  color: var(--muted);
  font-size: 0.9rem;
}