:root {
    --primary-color: #48E5C2;
    --primary-hover: #3CC4A6; /* slightly deeper mint for hover */
    /* Bold, fresh hero gradient */
    --hero-gradient-start: rgba(72, 229, 194, 0.32);
    --hero-gradient-end: rgba(72, 229, 194, 0.12);
    --summary-bg-start: rgba(72, 229, 194, 0.24);
    --summary-bg-end: rgba(72, 229, 194, 0.10);
    --mode-shadow: rgba(72, 229, 194, 0.28);
    --btn-shadow: rgba(72, 229, 194, 0.50);
    --section-bg-start: rgba(72, 229, 194, 0.12);
    --section-bg-end: rgba(72, 229, 194, 0.05);
    --primary-shadow: rgba(72, 229, 194, 0.38);
    --feature-shadow: rgba(72, 229, 194, 0.20);
    --focus-shadow: rgba(72, 229, 194, 0.32);
    --accordion-icon-filter: invert(70%) sepia(40%) saturate(1000%) hue-rotate(135deg) brightness(100%) contrast(100%);
}

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

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

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

/* Selected state for table pills (mirror lines) */
.table-pill.selected {
    background: linear-gradient(135deg, var(--section-bg-start), var(--section-bg-end));
    border-color: var(--primary-color);
}

.table-pill.selected .table-number {
    color: var(--primary-color);
    font-weight: 700;
}

/* Make mirror line pills more compact */
.mirror-lines-container {
    max-width: 600px;
    margin: 0 auto 2rem;
}

.tables-grid .table-pill {
    padding: 1rem 0.75rem;
    min-height: auto;
}

.tables-grid .table-number {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.tables-grid .table-label {
    font-size: 0.85rem;
}

/* Game Grid Styles */
.grid-container-game {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.grid-game {
    display: inline-grid;
    gap: 2px;
    background-color: #333;
    padding: 2px;
    position: relative;
    border-radius: 0.5rem;
}

.cell {
    background-color: white;
    border: 1px solid #ccc;
    transition: all 0.2s ease;
}

.cell.original {
    background-color: var(--primary-color);
}

.cell.mirrored {
    background-color: #fbbf24;
}

.cell.error {
    background-color: #ef4444;
}

.cell.clickable {
    cursor: pointer;
}

.cell.clickable:hover:not(.mirrored) {
    background-color: #f3f4f6;
    border-color: var(--primary-color);
}

/* Symmetry Lines */
.symmetry-line {
    position: absolute;
    background-color: var(--primary-color);
    pointer-events: none;
    box-shadow: 0 0 8px rgba(72, 229, 194, 0.6);
    z-index: 10;
}

.symmetry-line.vertical {
    width: 4px;
    height: 100%;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.symmetry-line.horizontal {
    height: 4px;
    width: 100%;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.symmetry-line.diagonal-main {
    width: 4px;
    height: 141%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    transform-origin: center;
}

.symmetry-line.diagonal-anti {
    width: 4px;
    height: 141%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    transform-origin: center;
}

/* Question Title */
.question-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1.5rem;
}

/* Answer Buttons */
.answer-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.btn-answer {
    flex: 1;
    max-width: 300px;
    padding: 1.25rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-yes {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.btn-yes:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-no {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.btn-no:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

/* Feedback Icon */
.feedback-icon {
    min-width: 40px;
    text-align: center;
    font-size: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    margin-top: 1rem;
}

.feedback-icon.show {
    opacity: 1;
}

.feedback-icon.correct {
    color: #10b981;
}

.feedback-icon.incorrect {
    color: #ef4444;
}

@keyframes flash-correct {
    0%, 100% {
        background-color: transparent;
        border-color: transparent;
    }
    50% {
        background-color: rgba(76, 175, 80, 0.2);
        border: 3px solid #4caf50;
    }
}

@keyframes flash-incorrect {
    0%, 100% {
        background-color: transparent;
        border-color: transparent;
    }
    50% {
        background-color: rgba(244, 67, 54, 0.2);
        border: 3px solid #f44336;
    }
}

.content-card.flash-correct {
    animation: flash-correct 0.6s ease;
}

.content-card.flash-incorrect {
    animation: flash-incorrect 0.6s ease;
}

/* 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;
}

/* 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;
}
