:root {
    --primary-color: #BED558;
    --primary-hover: #A6BC4D;
    --hero-gradient-start: rgba(190, 213, 88, 0.40);
    --hero-gradient-end: rgba(190, 213, 88, 0.15);
    --summary-bg-start: rgba(190, 213, 88, 0.28);
    --summary-bg-end: rgba(190, 213, 88, 0.10);
    --mode-shadow: rgba(190, 213, 88, 0.30);
    --btn-shadow: rgba(190, 213, 88, 0.50);
    --section-bg-start: rgba(190, 213, 88, 0.14);
    --section-bg-end: rgba(190, 213, 88, 0.06);
    --primary-shadow: rgba(190, 213, 88, 0.38);
    --feature-shadow: rgba(190, 213, 88, 0.22);
    --focus-shadow: rgba(190, 213, 88, 0.32);
    --accordion-icon-filter: invert(70%) sepia(55%) saturate(900%) hue-rotate(40deg) brightness(105%) contrast(100%);
    --btn-text-color: #7a9a2e;
}

.btn-primary-gradient,
.btn-outline-gradient,
.btn-white,

* {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
    font-variant-numeric: oldstyle-nums;
}

/* Question Display - Monospace for numbers */
.question-display {
    font-family: 'Courier New', Consolas, monospace;
    letter-spacing: 0.05em;
}

/* Answer Input - Number specific styling */
.answer-input {
    font-family: 'Courier New', Consolas, monospace;
}

/* Remove spinner arrows from number input */
.answer-input::-webkit-outer-spin-button,
.answer-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.answer-input[type=number] {
    -moz-appearance: textfield;
}

/* Feedback Icon */
.feedback-icon {
    min-width: 40px;
}

/* Timer Animation - Low time warning */
.timer-low {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Rounding instruction text */
.rounding-instruction {
    font-size: 0.95rem;
    color: #666;
    font-style: italic;
    margin-top: 0.5rem;
}

/* Example Box Styling */
.example-box {
    background: rgba(190, 213, 88, 0.1);
    border: 2px solid rgba(190, 213, 88, 0.2);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.example-question {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.example-answer {
    font-size: 1rem;
    color: #666;
}

/* Active state for quick select buttons */
.btn-quick.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    border-color: var(--primary-color);
    color: white;
}

/* Force stat cards to stay on one row with equal widths */
.game-stats {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 1rem;
}

.stat-card {
    flex: 1;
    min-width: 0;
}

/* Question container layout */
.question-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Rounding instruction text - override earlier styles */
.rounding-instruction {
    font-size: 0.95rem;
    color: #666;
    font-style: italic;
    margin-bottom: 1rem;
    width: 100%;
    text-align: center;
}

.question-display {
    width: 100%;
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Multiple Choice Answer Grid */
.answer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.answer-option {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    text-align: left;
}

.answer-option:hover:not(:disabled) {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--feature-shadow);
}

.answer-option:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.answer-option.correct {
    background: linear-gradient(135deg, #10b981, #059669);
    border-color: #10b981;
    color: white;
}

.answer-option.incorrect {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-color: #ef4444;
    color: white;
}

.answer-letter {
    background: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.answer-option.correct .answer-letter,
.answer-option.incorrect .answer-letter {
    background: rgba(255, 255, 255, 0.3);
}

.answer-value {
    font-family: 'Courier New', Consolas, monospace;
    font-size: 1.3rem;
    font-weight: 600;
}

/* Make pills display inline and centered */
.tables-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.table-pill {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

/* Clickable steps */
.step.clickable {
    cursor: pointer;
    transition: all 0.3s ease;
}

.step.clickable:hover {
    transform: scale(1.05);
}

.step.clickable:hover .step-circle {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Locked steps (non-clickable) */
.step.locked {
    cursor: not-allowed;
    opacity: 0.5;
}

.step.locked:hover {
    transform: none;
}
