/* ========================================
   PEG SOLITAIRE STYLES
   Classic English Cross Board
   ======================================== */
.peg-solitaire-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.peg-board-frame {
    background: linear-gradient(145deg, #8B7355, #6B5344);
    padding: 15px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3), inset 0 2px 5px rgba(255,255,255,0.1);
}

.peg-board {
    display: grid;
    grid-template-columns: repeat(7, 45px);
    grid-template-rows: repeat(7, 45px);
    gap: 5px;
}

.peg-cell {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease;
}

.peg-cell.corner {
    background: transparent;
    box-shadow: none;
}

.peg-cell.hole {
    background: radial-gradient(circle at 50% 40%, #4a3a2a, #2d1f14);
    box-shadow: inset 0 3px 8px rgba(0,0,0,0.7);
    cursor: pointer;
}

.peg-cell.hole.empty {
    background: radial-gradient(circle at 50% 40%, #3a2a1a, #1d0f04);
    box-shadow: inset 0 4px 10px rgba(0,0,0,0.8);
}

.peg-cell.hole.valid-move {
    background: radial-gradient(circle at 50% 40%, #4a6a4a, #2d4a2d);
    box-shadow: inset 0 3px 8px rgba(0,0,0,0.5), 0 0 12px var(--green);
}

.peg-marble {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #FF9999, #E74C3C, #B03030);
    box-shadow: 0 3px 6px rgba(0,0,0,0.4), inset 0 -3px 6px rgba(0,0,0,0.2), inset 0 3px 6px rgba(255,255,255,0.3);
    transition: all 0.2s ease;
    cursor: pointer;
}

.peg-marble:hover {
    transform: scale(1.08);
}

.peg-marble.selected {
    background: radial-gradient(circle at 35% 30%, #FFEE88, #F1C40F, #C9A40D);
    box-shadow: 0 0 15px var(--yellow), 0 3px 6px rgba(0,0,0,0.4);
    transform: scale(1.1);
}

.peg-stats {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
}

/* ========================================
   HANGMAN STYLES
   ======================================== */
.hangman-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.hangman-mode-select {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.hangman-mode-select .mode-btn {
    padding: 8px 12px;
    font-size: 0.85rem;
}

.hangman-drawing {
    width: 200px;
    height: 200px;
    position: relative;
}

.hangman-drawing svg {
    width: 100%;
    height: 100%;
}

.hangman-drawing .part {
    stroke: var(--text-dark);
    stroke-width: 4;
    stroke-linecap: round;
    fill: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hangman-drawing .part.face {
    stroke-width: 2;
    fill: var(--text-dark);
}

.hangman-drawing .part#mouth {
    fill: none;
    stroke-width: 2;
}

.hangman-drawing .part.visible {
    opacity: 1;
}

.hangman-tip {
    font-size: 0.95rem;
    color: #888;
    margin-bottom: 10px;
}

.hangman-word {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.word-group {
    display: flex;
    gap: 10px;
}

.letter-slot {
    width: 40px;
    height: 50px;
    border-bottom: 4px solid var(--text-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Fredoka One', cursive;
    font-size: 2rem;
}

.letter-slot.revealed {
    color: var(--green);
}

.letter-slot.space {
    border-bottom: none;
    width: 20px;
}

.hangman-keyboard {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    max-width: 400px;
}

.key-btn {
    width: 40px;
    height: 45px;
    border: none;
    border-radius: 8px;
    background: var(--blue);
    color: white;
    font-family: 'Fredoka One', cursive;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.key-btn:hover:not(:disabled) {
    transform: scale(1.1);
    background: var(--teal);
}

.key-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.key-btn.correct {
    background: var(--green);
}

.key-btn.wrong {
    background: var(--red);
}

.hangman-status {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--red);
}

/* ========================================
   SUDOKU STYLES
   ======================================== */
.sudoku-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.sudoku-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    background: var(--text-dark);
    padding: 3px;
    border-radius: 10px;
}

.sudoku-grid.sudoku-9x9 {
    grid-template-columns: repeat(9, 1fr);
}

.sudoku-cell {
    width: 40px;
    height: 40px;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Fredoka One', cursive;
    font-size: 1.3rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

/* 3x3 box borders for 9x9 grid */
.sudoku-cell.box-right {
    border-right: 3px solid var(--text-dark);
}

.sudoku-cell.box-bottom {
    border-bottom: 3px solid var(--text-dark);
}

/* Alternating box colors for 9x9 sudoku */
.sudoku-9x9 .sudoku-cell:nth-child(9n+1),
.sudoku-9x9 .sudoku-cell:nth-child(9n+2),
.sudoku-9x9 .sudoku-cell:nth-child(9n+3),
.sudoku-9x9 .sudoku-cell:nth-child(9n+7),
.sudoku-9x9 .sudoku-cell:nth-child(9n+8),
.sudoku-9x9 .sudoku-cell:nth-child(9n+9) {
    background: white;
}

.sudoku-9x9 .sudoku-cell:nth-child(9n+4),
.sudoku-9x9 .sudoku-cell:nth-child(9n+5),
.sudoku-9x9 .sudoku-cell:nth-child(9n+6) {
    background: #E8F4FD;
}

.sudoku-9x9 .sudoku-cell:nth-child(n+28):nth-child(-n+54):nth-child(9n+1),
.sudoku-9x9 .sudoku-cell:nth-child(n+28):nth-child(-n+54):nth-child(9n+2),
.sudoku-9x9 .sudoku-cell:nth-child(n+28):nth-child(-n+54):nth-child(9n+3),
.sudoku-9x9 .sudoku-cell:nth-child(n+28):nth-child(-n+54):nth-child(9n+7),
.sudoku-9x9 .sudoku-cell:nth-child(n+28):nth-child(-n+54):nth-child(9n+8),
.sudoku-9x9 .sudoku-cell:nth-child(n+28):nth-child(-n+54):nth-child(9n+9) {
    background: #E8F4FD;
}

.sudoku-9x9 .sudoku-cell:nth-child(n+28):nth-child(-n+54):nth-child(9n+4),
.sudoku-9x9 .sudoku-cell:nth-child(n+28):nth-child(-n+54):nth-child(9n+5),
.sudoku-9x9 .sudoku-cell:nth-child(n+28):nth-child(-n+54):nth-child(9n+6) {
    background: white;
}

.sudoku-cell.selected {
    background: var(--yellow) !important;
}

.sudoku-cell.given {
    color: var(--text-dark);
    font-weight: 800;
}

.sudoku-cell.user-input {
    color: var(--blue);
}

.sudoku-cell.error {
    background: #FFEBEE !important;
    color: var(--red);
}

.sudoku-numbers {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 400px;
}

.sudoku-num-btn {
    width: 38px;
    height: 42px;
    border: 3px solid var(--purple);
    background: white;
    border-radius: 8px;
    font-family: 'Fredoka One', cursive;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sudoku-num-btn:hover {
    background: var(--purple);
    color: white;
    transform: scale(1.1);
}

/* ========================================
   MATH BINGO STYLES
   ======================================== */
.bingo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.bingo-question {
    background: linear-gradient(135deg, var(--purple), var(--blue));
    color: white;
    padding: 20px 40px;
    border-radius: 20px;
    font-family: 'Fredoka One', cursive;
    font-size: 2rem;
    text-align: center;
    min-width: 250px;
}

.bingo-answer-input {
    display: flex;
    gap: 10px;
    align-items: center;
}

.bingo-answer-input input {
    width: 100px;
    height: 50px;
    font-size: 1.5rem;
    text-align: center;
    border: 3px solid var(--purple);
    border-radius: 10px;
    font-family: 'Nunito', sans-serif;
}

.bingo-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
    background: var(--text-dark);
    padding: 5px;
    border-radius: 15px;
}

.bingo-cell {
    width: 55px;
    height: 55px;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Fredoka One', cursive;
    font-size: 1.3rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.bingo-cell.marked {
    background: var(--green);
    color: white;
    transform: scale(0.95);
}

.bingo-cell.free {
    background: var(--yellow);
    font-size: 1rem;
}

.bingo-cell.highlight {
    animation: bingoWin 0.5s ease infinite alternate;
}

@keyframes bingoWin {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

/* ========================================
   SLIDING PUZZLE STYLES
   ======================================== */
.sliding-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.sliding-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    background: #34495e;
    padding: 10px;
    border-radius: 15px;
}

.sliding-tile {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--teal), var(--blue));
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Fredoka One', cursive;
    font-size: 2.5rem;
    color: white;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.15s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.sliding-tile.empty {
    background: #2c3e50;
    box-shadow: inset 0 4px 8px rgba(0,0,0,0.3);
    cursor: default;
}

.sliding-tile:not(.empty):hover {
    transform: scale(1.05);
}

.sliding-moves {
    font-size: 1.2rem;
    font-weight: 700;
}

/* ========================================
   MEMORY MATCH STYLES
   ======================================== */
.memory-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.memory-theme-select {
    display: flex;
    gap: 10px;
}

.memory-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.memory-card {
    width: 75px;
    height: 75px;
    perspective: 1000px;
    cursor: pointer;
}

.memory-card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.4s ease;
}

.memory-card.flipped .memory-card-inner {
    transform: rotateY(180deg);
}

.memory-card-front, .memory-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
}

.memory-card-back {
    background: linear-gradient(135deg, var(--coral), var(--purple));
    box-shadow: 0 4px 15px var(--shadow);
}

.memory-card-back::after {
    content: "?";
    font-family: 'Fredoka One', cursive;
    font-size: 2rem;
    color: white;
}

.memory-card-front {
    background: white;
    transform: rotateY(180deg);
    box-shadow: 0 4px 15px var(--shadow);
}

.memory-card.matched .memory-card-front {
    background: #E8F8E8;
}

.memory-stats {
    display: flex;
    gap: 30px;
    font-size: 1.1rem;
    font-weight: 700;
}

/* ========================================
   PATTERN MATCHER STYLES
   ======================================== */
.pattern-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.pattern-display {
    display: flex;
    gap: 15px;
    align-items: center;
}

.pattern-item {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    box-shadow: 0 4px 10px var(--shadow);
}

.pattern-item.question {
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
    border: 3px dashed var(--purple);
}

.pattern-item.question::after {
    content: "?";
    font-family: 'Fredoka One', cursive;
    font-size: 2rem;
    color: var(--purple);
}

.pattern-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.pattern-option {
    width: 70px;
    height: 70px;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    background: white;
    border: 3px solid #ddd;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pattern-option:hover {
    transform: scale(1.1);
    border-color: var(--purple);
}

.pattern-option.correct {
    background: var(--green);
    border-color: var(--green);
}

.pattern-option.wrong {
    background: var(--red);
    border-color: var(--red);
}

.pattern-score {
    font-size: 1.3rem;
    font-weight: 700;
}

.pattern-level {
    background: var(--purple);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
}

/* ========================================
   WORD SEARCH STYLES
   ======================================== */
.wordsearch-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

@media (min-width: 700px) {
    .wordsearch-container {
        flex-direction: row;
        align-items: flex-start;
        justify-content: center;
    }
}

.wordsearch-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 3px;
    background: var(--text-dark);
    padding: 5px;
    border-radius: 10px;
    user-select: none;
}

.wordsearch-cell {
    width: 38px;
    height: 38px;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Fredoka One', cursive;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.2s ease;
    border-radius: 4px;
}

.wordsearch-cell.selecting {
    background: var(--yellow);
}

.wordsearch-cell.found {
    background: var(--green);
    color: white;
}

.wordsearch-words {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 15px;
    min-width: 150px;
}

.wordsearch-words h3 {
    color: var(--purple);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.wordsearch-words ul {
    list-style: none;
}

.wordsearch-words li {
    padding: 8px 0;
    font-weight: 600;
    font-size: 1.1rem;
    border-bottom: 1px solid #eee;
}

.wordsearch-words li.found {
    text-decoration: line-through;
    color: var(--green);
}

/* ========================================
   ANAGRAM STYLES
   ======================================== */
.anagram-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.anagram-hint {
    font-size: 4rem;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 20px;
}

.anagram-category {
    background: var(--purple);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
}

.anagram-letters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.anagram-letter {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--orange), var(--coral));
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Fredoka One', cursive;
    font-size: 1.8rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px var(--shadow);
}

.anagram-letter:hover:not(.used) {
    transform: scale(1.1) rotate(-5deg);
}

.anagram-letter.used {
    opacity: 0.3;
    cursor: not-allowed;
}

.anagram-answer {
    display: flex;
    gap: 8px;
}

.anagram-slot {
    width: 50px;
    height: 55px;
    border: 3px dashed var(--purple);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Fredoka One', cursive;
    font-size: 1.8rem;
    background: #f8f8f8;
}

.anagram-slot.filled {
    border-style: solid;
    background: var(--teal);
    color: white;
}

.anagram-controls {
    display: flex;
    gap: 15px;
}


/* ========================================
   TIC TAC TOE STYLES
   ======================================== */
.tictactoe-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.tictactoe-score {
    display: flex;
    gap: 30px;
    font-size: 1.1rem;
}

.score-item {
    background: #f8f9fa;
    padding: 8px 15px;
    border-radius: 20px;
}

.tictactoe-status {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--purple);
}

.tictactoe-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    background: var(--text-dark);
    padding: 8px;
    border-radius: 15px;
}

.tictactoe-cell {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Fredoka One', cursive;
    font-size: 3rem;
    transition: all 0.2s ease;
}

.tictactoe-cell.clickable {
    cursor: pointer;
}

.tictactoe-cell.clickable:hover {
    background: #f0f0f0;
}

.tictactoe-cell.player-x {
    color: var(--blue);
}

.tictactoe-cell.player-o {
    color: var(--coral);
}

.current-player-x {
    color: var(--blue);
    font-weight: 700;
}

.current-player-o {
    color: var(--coral);
    font-weight: 700;
}

.player-x-score {
    color: var(--blue);
}

.player-o-score {
    color: var(--coral);
}

/* ========================================
   CONNECT FOUR STYLES
   ======================================== */
.connect4-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.connect4-mode-select,
.reversi-mode-select,
.checkers-mode-select,
.nim-mode-select,
.chain-reaction-mode-select,
.dots-boxes-mode-select,
.go-mode-select,
.go-junior-mode-select {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 10px;
}

.connect4-status {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--purple);
}

.connect4-board {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    background: var(--blue);
    padding: 10px;
    border-radius: 15px;
}

.connect4-cell {
    width: 50px;
    height: 50px;
    background: #1a5276;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.connect4-disc {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: white;
    transition: all 0.3s ease;
}

.connect4-disc.red {
    background: linear-gradient(135deg, #E74C3C, #C0392B);
    box-shadow: inset 0 -3px 8px rgba(0,0,0,0.3);
}

.connect4-disc.yellow {
    background: linear-gradient(135deg, #F1C40F, #F39C12);
    box-shadow: inset 0 -3px 8px rgba(0,0,0,0.3);
}

/* ========================================
   SIMON SAYS STYLES
   ======================================== */
.simon-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.simon-info {
    display: flex;
    gap: 30px;
    font-size: 1.1rem;
}

.simon-status {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    min-height: 30px;
}

.simon-board {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 15px;
    background: #2C3E50;
    border-radius: 50%;
    width: 280px;
    height: 280px;
}

.simon-btn {
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.simon-btn:hover {
    opacity: 0.85;
}

.simon-btn.active {
    opacity: 1;
    transform: scale(1.05);
    box-shadow: 0 0 30px currentColor;
}

.simon-red {
    background: #E74C3C;
    border-radius: 100% 0 0 0;
}

.simon-blue {
    background: #3498DB;
    border-radius: 0 100% 0 0;
}

.simon-green {
    background: #2ECC71;
    border-radius: 0 0 0 100%;
}

.simon-yellow {
    background: #F1C40F;
    border-radius: 0 0 100% 0;
}

/* ========================================
   MAZE RUNNER STYLES
   ======================================== */
.maze-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.maze-info {
    display: flex;
    gap: 30px;
    font-size: 1.1rem;
}

.maze-grid {
    display: grid;
    gap: 1px;
    background: #2C3E50;
    padding: 5px;
    border-radius: 10px;
    max-width: 95vw;
    overflow: auto;
}

.maze-cell {
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    border-radius: 3px;
}

.maze-cell.wall {
    background: #34495E;
}

.maze-cell.path {
    background: #ECF0F1;
}

.maze-cell.start {
    background: var(--green);
}

.maze-cell.end {
    background: var(--coral);
}

.maze-cell.player {
    background: var(--yellow);
}

.maze-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.maze-btn-row {
    display: flex;
    gap: 5px;
}

.maze-btn {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    border: none;
    border-radius: 10px;
    background: var(--purple);
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.maze-btn:hover {
    background: var(--blue);
    transform: scale(1.1);
}

/* ========================================
   COLOR MATCH STYLES
   ======================================== */
.colormatch-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.colormatch-info {
    display: flex;
    gap: 40px;
    font-size: 1.2rem;
}

.colormatch-question p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 15px;
}

.colormatch-word {
    font-family: 'Fredoka One', cursive;
    font-size: 4rem;
    padding: 30px 50px;
    background: #f8f9fa;
    border-radius: 20px;
    transition: background 0.2s ease;
}

.colormatch-buttons {
    display: flex;
    gap: 20px;
}

.colormatch-yes {
    background: linear-gradient(135deg, var(--green), var(--teal)) !important;
    padding: 15px 50px !important;
}

.colormatch-no {
    background: linear-gradient(135deg, var(--coral), var(--red)) !important;
    padding: 15px 50px !important;
}

/* ========================================
   NUMBER SEQUENCE STYLES
   ======================================== */
.numseq-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.numseq-info {
    display: flex;
    gap: 30px;
    font-size: 1.1rem;
}

.numseq-display p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 15px;
}

.numseq-numbers {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.numseq-num {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--blue), var(--teal));
    color: white;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Fredoka One', cursive;
    font-size: 1.8rem;
    box-shadow: 0 4px 10px var(--shadow);
}

.numseq-num.question {
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
    color: var(--purple);
    border: 3px dashed var(--purple);
}

.numseq-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.numseq-option {
    width: 70px;
    height: 70px;
    background: white;
    border: 3px solid #ddd;
    border-radius: 15px;
    font-family: 'Fredoka One', cursive;
    font-size: 1.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.numseq-option:hover {
    border-color: var(--purple);
    transform: scale(1.1);
}

.numseq-option.correct {
    background: var(--green);
    border-color: var(--green);
    color: white;
}

.numseq-option.wrong {
    background: var(--red);
    border-color: var(--red);
    color: white;
}

.numseq-hint {
    display: flex;
    align-items: center;
    gap: 15px;
}

#ns-hint {
    color: var(--orange);
    font-weight: 700;
}

/* ========================================
   SPOT THE DIFFERENCE SVG STYLES
   ======================================== */
.spotdiff-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.spotdiff-info {
    display: flex;
    gap: 30px;
    font-size: 1.1rem;
    align-items: center;
}

.spotdiff-info .scene-name {
    background: var(--purple);
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    font-weight: 600;
}

.spotdiff-images {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.spotdiff-image {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--shadow);
}

.spotdiff-image h3 {
    text-align: center;
    margin-bottom: 8px;
    color: var(--purple);
    font-size: 1rem;
    font-family: 'Fredoka One', cursive;
}

.spotdiff-image svg {
    width: 320px;
    height: 260px;
    border-radius: 8px;
    border: 3px solid var(--text-dark);
    cursor: crosshair;
    display: block;
}

.spotdiff-image:first-child svg {
    cursor: default;
}

.found-marker {
    animation: markerPulse 0.5s ease;
}

@keyframes markerPulse {
    0% { r: 10; opacity: 0; }
    50% { r: 30; }
    100% { r: 25; opacity: 1; }
}

@media (max-width: 700px) {
    .spotdiff-image svg {
        width: 280px;
        height: 227px;
    }
}

/* ========================================
   TYPING SPEED STYLES
   ======================================== */
.typing-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.typing-info {
    display: flex;
    gap: 40px;
    font-size: 1.2rem;
}

.typing-word {
    font-family: 'Fredoka One', cursive;
    font-size: 3rem;
    color: var(--purple);
    padding: 20px 40px;
    background: #f8f9fa;
    border-radius: 15px;
    min-width: 250px;
    text-align: center;
}

.typing-input-area {
    display: flex;
    gap: 10px;
}

.typing-input {
    width: 250px;
    height: 50px;
    font-size: 1.5rem;
    text-align: center;
    border: 3px solid var(--purple);
    border-radius: 10px;
    font-family: 'Nunito', sans-serif;
}

.typing-input:focus {
    outline: none;
    border-color: var(--teal);
}

.typing-feedback {
    font-size: 1.3rem;
    font-weight: 700;
    min-height: 30px;
}

.typing-feedback.correct {
    color: var(--green);
}

.typing-feedback.wrong {
    color: var(--red);
}

/* ========================================
   BUBBLE POP STYLES
   ======================================== */
.bubble-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.bubble-info {
    display: flex;
    gap: 40px;
    font-size: 1.2rem;
}

.bubble-question {
    font-family: 'Fredoka One', cursive;
    font-size: 2rem;
    color: var(--purple);
    background: #f8f9fa;
    padding: 15px 30px;
    border-radius: 15px;
}

.bubble-area {
    width: 100%;
    max-width: 400px;
    height: 350px;
    background: linear-gradient(180deg, #87CEEB, #E0F7FA);
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

.bubble {
    position: absolute;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(255,255,255,0.8), rgba(200,230,255,0.6));
    border: 3px solid rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Fredoka One', cursive;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
    transition: transform 0.2s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1), inset 0 -5px 15px rgba(255,255,255,0.5);
}

.bubble:hover {
    transform: scale(1.1);
}

.bubble.popped {
    animation: pop 0.2s ease forwards;
}

@keyframes pop {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* ========================================
   JIGSAW PUZZLE STYLES
   ======================================== */
.jigsaw-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.jigsaw-info {
    display: flex;
    gap: 30px;
    font-size: 1.1rem;
}

.jigsaw-preview {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.jigsaw-emoji {
    font-size: 2.5rem;
}

.jigsaw-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    background: #2C3E50;
    padding: 8px;
    border-radius: 12px;
}

.jigsaw-piece {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Fredoka One', cursive;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.jigsaw-piece:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255,255,255,0.5);
}

.jigsaw-piece.selected {
    box-shadow: 0 0 0 4px var(--yellow), 0 0 20px var(--yellow);
    transform: scale(1.05);
}

.jigsaw-piece.correct {
    opacity: 0.9;
}

.jigsaw-hint {
    color: #666;
    font-size: 1rem;
}

/* ========================================
   SNAKE GAME STYLES
   ======================================== */
.snake-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 10px;
}

.snake-header {
    display: flex;
    gap: 30px;
    font-size: 1.1rem;
}

.snake-gameover,
.snake-start {
    padding: 15px;
    text-align: center;
}

.snake-controls-hint {
    color: #888;
    font-size: 0.9rem;
    margin-top: 5px;
}

/* ========================================
   WORDLE GAME STYLES
   ======================================== */
.wordle-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 15px;
}

.wordle-board {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wordle-row {
    display: flex;
    gap: 6px;
}

.wordle-cell {
    width: 52px;
    height: 52px;
    border: 2px solid #d3d6da;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    color: #1a1a2e;
}

.wordle-cell.wordle-filled {
    border-color: #878a8c;
}

.wordle-cell.wordle-correct {
    background-color: #6AAA64;
    border-color: #6AAA64;
    color: #fff;
}

.wordle-cell.wordle-present {
    background-color: #C9B458;
    border-color: #C9B458;
    color: #fff;
}

.wordle-cell.wordle-absent {
    background-color: #787C7E;
    border-color: #787C7E;
    color: #fff;
}

.wordle-keyboard {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
}

.wordle-kb-row {
    display: flex;
    gap: 5px;
}

.wordle-key {
    min-width: 35px;
    height: 50px;
    border: none;
    border-radius: 6px;
    background: #d3d6da;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    transition: background-color 0.2s ease;
    padding: 0 8px;
    font-family: 'Nunito', sans-serif;
}

.wordle-key:hover {
    opacity: 0.85;
}

.wordle-key-wide {
    min-width: 56px;
    font-size: 0.75rem;
}

.wordle-key-correct {
    background-color: #6AAA64;
    color: #fff;
}

.wordle-key-present {
    background-color: #C9B458;
    color: #fff;
}

.wordle-key-absent {
    background-color: #787C7E;
    color: #fff;
}

.wordle-reveal {
    text-align: center;
    margin-top: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #c0392b;
    padding: 10px;
    background: #ffeaa7;
    border-radius: 8px;
}

/* ========================================
   CODE BREAKER GAME STYLES
   ======================================== */
.cb-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 15px;
}

.cb-secret-row,
.cb-current-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cb-secret-label,
.cb-current-label {
    font-weight: 700;
    font-size: 0.9rem;
    min-width: 90px;
    color: #555;
}

.cb-slot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cb-slot-hidden {
    background: #e0e0e0;
    color: #999;
}

.cb-slot-revealed {
    border-color: rgba(0, 0, 0, 0.2);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.cb-slot-active {
    border-color: rgba(0, 0, 0, 0.2);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.cb-slot-active:hover {
    transform: scale(1.1);
}

.cb-slot-empty {
    background: #f5f5f5;
    border: 3px dashed #ccc;
}

.cb-slot-small {
    width: 30px;
    height: 30px;
    border-width: 2px;
    border-color: rgba(0, 0, 0, 0.2);
}

.cb-history {
    max-height: 300px;
    overflow-y: auto;
    width: 100%;
    max-width: 400px;
}

.cb-history-empty {
    text-align: center;
    color: #999;
    padding: 20px;
    font-style: italic;
}

.cb-history-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px solid #eee;
}

.cb-row-number {
    min-width: 24px;
    font-weight: 700;
    color: #888;
    text-align: right;
}

.cb-guess-slots {
    display: flex;
    gap: 5px;
}

.cb-pegs {
    display: flex;
    gap: 4px;
    margin-left: 8px;
}

.cb-peg {
    font-size: 1.2rem;
    line-height: 1;
}

.cb-peg-black {
    color: #2c3e50;
}

.cb-peg-white {
    color: #7f8c8d;
}

.cb-peg-empty {
    color: #ddd;
    font-size: 1.5rem;
}

.cb-palette-row {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.cb-color-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 3px solid rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.cb-color-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.cb-actions {
    display: flex;
    gap: 10px;
}

.cb-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Nunito', sans-serif;
    transition: opacity 0.2s ease, transform 0.1s ease;
}

.cb-btn:active {
    transform: scale(0.96);
}

.cb-btn-submit {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
}

.cb-btn-submit:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.cb-btn-clear {
    background: #e0e0e0;
    color: #555;
}

.cb-btn-clear:hover {
    background: #d0d0d0;
}

/* ======== GO & GO JUNIOR STYLES ======== */

.go-size-select,
.go-junior-size-select {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 6px;
}

.size-btn {
    padding: 6px 14px;
    border: 3px solid var(--purple);
    background: rgba(255, 255, 255, 0.1);
    color: #ccc;
    border-radius: 25px;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
}

.size-btn.active {
    background: var(--purple);
    color: white;
}

.size-btn:hover:not(.active) {
    background: rgba(155, 89, 182, 0.25);
}

@keyframes go-danger-pulse {
    0% { box-shadow: 0 0 4px rgba(231, 76, 60, 0.5); }
    50% { box-shadow: 0 0 14px rgba(231, 76, 60, 0.95); }
    100% { box-shadow: 0 0 4px rgba(231, 76, 60, 0.5); }
}

.go-stone-danger {
    animation: go-danger-pulse 1s ease-in-out infinite;
    border-radius: 50%;
}

.go-liberty-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 10px;
    font-weight: bold;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    pointer-events: none;
}

.go-liberty-safe { background: #2ECC71; }
.go-liberty-warning { background: #FF8C42; }
.go-liberty-danger { background: #E74C3C; }

.go-junior-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 3px 0;
}

.go-junior-progress-bar {
    height: 14px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.12);
    flex: 1;
    overflow: hidden;
}

.go-junior-progress-fill {
    height: 100%;
    border-radius: 7px;
    transition: width 0.3s ease;
}

/* ========================================
   FLAG QUIZ STYLES
   ======================================== */
.flag-quiz-flag-img {
    width: 200px;
    border: 3px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.flag-quiz-flag-img.small {
    width: 100px;
}

