:root {
    --bg-color: #05050c;
    --text-main: #e2e8f0;
    --text-muted: #8a8f98;
    --accent-primary: #8b5cf6;
    --accent-secondary: #06b6d4;
    --accent-green: #10b981;
    --accent-red: #ef4444;
    --glass-bg: rgba(15, 15, 30, 0.6);
    --glass-border: rgba(139, 92, 246, 0.15);
    --glass-border-hover: rgba(6, 182, 212, 0.3);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

/* Ambient Glowing Backgrounds */
.bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.07) 0%, rgba(0, 0, 0, 0) 70%);
    top: -200px;
    left: -200px;
    z-index: -1;
    pointer-events: none;
}

.bg-glow.second {
    background: radial-gradient(circle, rgba(6, 182, 212, 0.07) 0%, rgba(0, 0, 0, 0) 70%);
    bottom: -200px;
    right: -200px;
    top: auto;
    left: auto;
}

header {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #fff;
}

.logo span {
    color: var(--accent-secondary);
}

/* Language Switcher */
.lang-switch {
    display: flex;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 3px;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    border-radius: 17px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.lang-btn.active {
    background: var(--accent-primary);
    color: #fff;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
}

/* Content Container */
.main-container {
    max-width: 1000px;
    width: 100%;
    margin: 1rem auto auto auto;
    padding: 0 2rem 4rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
}

/* Intro Section */
.intro-section {
    text-align: center;
}

.coming-soon-badge {
    display: inline-block;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid var(--glass-border);
    color: var(--accent-primary);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.intro-section h1 {
    font-size: 2.8rem;
    font-weight: 800;
    background: linear-gradient(to right, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.intro-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 750px;
    margin: 0 auto;
}

/* Product Showcase Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 180px;
}

.product-card:hover {
    border-color: var(--glass-border-hover);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -10px rgba(6, 182, 212, 0.15);
}

.product-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
}

.product-status {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.product-card.live .product-status {
    color: var(--accent-green);
}

.product-card.live .status-dot {
    background-color: var(--accent-green);
    box-shadow: 0 0 8px var(--accent-green);
}

.product-card.coming .product-status {
    color: var(--text-muted);
}

.product-card.coming .status-dot {
    background-color: var(--text-muted);
}

/* Game Section */
.game-section {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    position: relative;
}

.game-section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.game-section-header h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
}

.game-section-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Game Controls & Dropdowns */
.game-controls {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

.control-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.selector-group {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.selector-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

select.dropdown {
    background: rgba(15, 15, 30, 0.9);
    border: 1px solid var(--glass-border);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    outline: none;
    transition: all 0.3s ease;
}

select.dropdown:hover, select.dropdown:focus {
    border-color: var(--accent-secondary);
}

.diff-select {
    display: flex;
    gap: 0.5rem;
}

.btn-diff {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 0.4rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-diff.active {
    background: var(--accent-secondary);
    color: #fff;
    border-color: var(--accent-secondary);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
}

.game-stats {
    display: flex;
    gap: 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--text-main);
}

/* Wordoku Helper Row */
.wordoku-helper {
    display: none;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-family: 'JetBrains Mono', monospace;
}

.wordoku-letter {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid var(--glass-border);
    color: var(--accent-primary);
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 700;
}

/* Confetti Canvas Overlay */
#confettiCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

/* Sudoku Grid Wrapper */
.sudoku-container {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    position: relative;
}

/* Grid Layout Styling */
.sudoku-grid {
    display: grid;
    border: 3px solid #fff;
    background-color: rgba(255, 255, 255, 0.02);
    width: 100%;
    max-width: 450px;
    aspect-ratio: 1 / 1;
}

/* Cell Layout */
.sudoku-cell {
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    aspect-ratio: 1 / 1;
}

/* 4x4 Grid Subgrid Borders */
.grid-4x4 {
    grid-template-columns: repeat(4, 1fr);
}
.grid-4x4 .sudoku-cell:nth-child(2n) {
    border-right: 2px solid #fff;
}
.grid-4x4 .sudoku-cell:nth-child(4n) {
    border-right: none;
}
.grid-4x4 > div:nth-child(n+5):nth-child(-n+8) {
    border-bottom: 2px solid #fff;
}

/* 6x6 Grid Subgrid Borders */
.grid-6x6 {
    grid-template-columns: repeat(6, 1fr);
}
.grid-6x6 .sudoku-cell:nth-child(3n) {
    border-right: 2px solid #fff;
}
.grid-6x6 .sudoku-cell:nth-child(6n) {
    border-right: none;
}
.grid-6x6 > div:nth-child(n+13):nth-child(-n+18),
.grid-6x6 > div:nth-child(n+25):nth-child(-n+30) {
    border-bottom: 2px solid #fff;
}

/* 9x9 Grid Subgrid Borders (Standard, X, Hyper, Wordoku, Odd-Even) */
.grid-9x9 {
    grid-template-columns: repeat(9, 1fr);
}
.grid-9x9:not(.variant-jigsaw) .sudoku-cell:nth-child(3n) {
    border-right: 2px solid #fff;
}
.grid-9x9:not(.variant-jigsaw) .sudoku-cell:nth-child(9n) {
    border-right: none;
}
.grid-9x9:not(.variant-jigsaw) > div:nth-child(n+19):nth-child(-n+27),
.grid-9x9:not(.variant-jigsaw) > div:nth-child(n+46):nth-child(-n+54) {
    border-bottom: 2px solid #fff;
}

/* Shading Variations */

/* Hyper Sudoku (Windoku) Extra 3x3 Zones Shading */
.grid-9x9.variant-hyper .cell-hyper-shaded {
    background-color: rgba(139, 92, 246, 0.08);
    border-color: rgba(139, 92, 246, 0.2);
}

/* Odd-Even Shading */
.grid-9x9.variant-oddeven .cell-even-shaded {
    background-color: rgba(6, 182, 212, 0.08); /* Cyan shade for even numbers */
}

/* Diagonal Sudoku X Crossed Highlight lines */
.grid-9x9.variant-diagonal .cell-diagonal-main {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.08) 0%, rgba(6, 182, 212, 0.08) 100%);
}
.grid-9x9.variant-diagonal .cell-diagonal-anti {
    background: linear-gradient(45deg, rgba(6, 182, 212, 0.08) 0%, rgba(6, 182, 212, 0.08) 100%);
}
.grid-9x9.variant-diagonal .cell-diagonal-center {
    background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, rgba(6, 182, 212, 0.08) 100%);
}

/* Input Fields */
.sudoku-input {
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
    text-align: center;
    color: #fff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.4rem;
    font-weight: 700;
    outline: none;
    padding: 0;
    transition: all 0.2s ease;
}

.grid-4x4 .sudoku-input {
    font-size: 1.8rem;
}
.grid-6x6 .sudoku-input {
    font-size: 1.6rem;
}

/* Remove default spin buttons */
.sudoku-input::-webkit-outer-spin-button,
.sudoku-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.sudoku-input[type=number] {
    -moz-appearance: textfield;
}

.sudoku-input:disabled {
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.015);
    cursor: not-allowed;
}

.sudoku-input.conflict {
    color: var(--accent-red) !important;
    background: rgba(239, 68, 68, 0.12) !important;
}

.sudoku-input.correct {
    color: var(--accent-green);
}

.sudoku-input:focus:not(:disabled) {
    background: rgba(139, 92, 246, 0.15);
    box-shadow: inset 0 0 8px rgba(139, 92, 246, 0.5);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn-action {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: #fff;
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-action:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-secondary);
}

.btn-primary-action {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.btn-primary-action:hover {
    background: var(--accent-primary);
    opacity: 0.9;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
}

/* Win Overlay */
.win-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 12, 0.95);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    border: 2px solid var(--accent-green);
    text-align: center;
    padding: 2rem;
}

.win-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.win-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-green);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

.win-subtitle {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

footer {
    margin-top: auto;
    max-width: 1200px;
    width: 100%;
    margin: auto auto 0 auto;
    padding: 2rem;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Leaderboard Specific Styles */
.leaderboard-panel table th,
.leaderboard-panel table td {
    padding: 0.8rem 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.leaderboard-panel table tr:hover td {
    background: rgba(139, 92, 246, 0.03);
}

.rank-highlight-1 { color: #ffd700; font-weight: 800; } /* Gold */
.rank-highlight-2 { color: #c0c0c0; font-weight: 800; } /* Silver */
.rank-highlight-3 { color: #cd7f32; font-weight: 800; } /* Bronze */

.country-flag-cell {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

#nicknameInput:focus {
    border-color: var(--accent-primary) !important;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
}

/* ========================================================
   Jigsaw Sudoku (Irregular) Variations
   ======================================================== */
.variant-jigsaw .sudoku-cell {
    /* Base internal cell styles are standard, borders are added conditionally */
}

.variant-jigsaw .sudoku-input {
    border-radius: 0; /* Square cells */
}

/* Thick borders for the irregular regions */
.variant-jigsaw .jigsaw-border-top {
    border-top: 3px solid var(--accent-primary) !important;
}
.variant-jigsaw .jigsaw-border-bottom {
    border-bottom: 3px solid var(--accent-primary) !important;
}
.variant-jigsaw .jigsaw-border-left {
    border-left: 3px solid var(--accent-primary) !important;
}
.variant-jigsaw .jigsaw-border-right {
    border-right: 3px solid var(--accent-primary) !important;
}

/* Subtle background shading to help distinguish regions */
.variant-jigsaw .jigsaw-region-0 { background-color: rgba(6, 182, 212, 0.05); }
.variant-jigsaw .jigsaw-region-1 { background-color: rgba(139, 92, 246, 0.05); }
.variant-jigsaw .jigsaw-region-2 { background-color: rgba(250, 204, 21, 0.05); }
.variant-jigsaw .jigsaw-region-3 { background-color: rgba(239, 68, 68, 0.05); }
.variant-jigsaw .jigsaw-region-4 { background-color: rgba(16, 185, 129, 0.05); }
.variant-jigsaw .jigsaw-region-5 { background-color: rgba(249, 115, 22, 0.05); }
.variant-jigsaw .jigsaw-region-6 { background-color: rgba(236, 72, 153, 0.05); }
.variant-jigsaw .jigsaw-region-7 { background-color: rgba(59, 130, 246, 0.05); }
.variant-jigsaw .jigsaw-region-8 { background-color: rgba(168, 85, 247, 0.05); }

/* ========================================================
   Samurai Sudoku (21x21) Variations
   ======================================================== */
.grid-21x21 {
    grid-template-columns: repeat(21, 1fr);
    max-width: 900px; /* Samurai needs more space */
}

.grid-21x21 .sudoku-cell {
    border: none; /* Strip standard borders */
}

.variant-samurai .empty-cell {
    background: transparent !important;
    border: none !important;
    pointer-events: none;
}

/* Thick outer borders for the 5 9x9 grids */
.variant-samurai .samurai-border-top { border-top: 3px solid var(--accent-primary) !important; }
.variant-samurai .samurai-border-bottom { border-bottom: 3px solid var(--accent-primary) !important; }
.variant-samurai .samurai-border-left { border-left: 3px solid var(--accent-primary) !important; }
.variant-samurai .samurai-border-right { border-right: 3px solid var(--accent-primary) !important; }

/* Standard 3x3 inner borders inside the 5 grids */
.variant-samurai .samurai-inner-right { border-right: 2px solid rgba(255, 255, 255, 0.6) !important; }
.variant-samurai .samurai-inner-bottom { border-bottom: 2px solid rgba(255, 255, 255, 0.6) !important; }

/* Scale down font size so it fits 21 cells across */
.grid-21x21 .sudoku-input {
    font-size: 0.9rem;
}

/* ========================================================
   3D Cube Sudoku Variations
   ======================================================== */
.variant-cube {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px;
    height: 850px; /* Increased height to fit rotated diagonal */
    width: 100%;
    max-width: 900px; /* Override default 450px max-width */
    aspect-ratio: auto; /* Override default 1/1 aspect ratio */
    overflow: hidden;
    border: none; /* Remove the 2D border of the parent */
}

.cube-scene {
    width: 450px;
    height: 450px;
    perspective: 1200px;
    cursor: grab;
}
.cube-scene:active {
    cursor: grabbing;
}

.cube-object {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateX(-20deg) rotateY(-30deg); /* Initial view */
    transition: transform 0.3s ease-out;
}

.cube-face {
    position: absolute;
    width: 450px;
    height: 450px;
    background: rgba(15, 23, 42, 0.95);
    border: 2px solid var(--accent-primary);
    box-shadow: inset 0 0 20px rgba(6, 182, 212, 0.2);
    display: grid;
    /* Subgrid styles handled by .grid-9x9 */
}

/* Position the 6 faces in 3D space */
.cube-front  { transform: rotateY(0deg) translateZ(225px); }
.cube-back   { transform: rotateY(180deg) translateZ(225px); }
.cube-right  { transform: rotateY(90deg) translateZ(225px); }
.cube-left   { transform: rotateY(-90deg) translateZ(225px); }
.cube-top    { transform: rotateX(90deg) translateZ(225px); }
.cube-bottom { transform: rotateX(-90deg) translateZ(225px); }

/* Make inputs look good on the cube */
.cube-face .sudoku-input {
    background: transparent;
    border-radius: 0;
}
.cube-face .sudoku-input:focus {
    background: rgba(139, 92, 246, 0.2);
}

/* ========================================================
   Circular Sudoku (Target) Variations
   ======================================================== */
.sudoku-grid.variant-circular {
    display: block;
    position: relative;
    border: none !important;
    background: transparent !important;
    overflow: visible;
    max-width: 1000px; /* Increased to 1000px for maximum space and readability */
    margin: 0 auto 2rem auto;
}

.variant-circular .circular-svg-bg {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.variant-circular .sudoku-cell,
.sudoku-grid.variant-circular .sudoku-cell:nth-child(3n),
.sudoku-grid.variant-circular .sudoku-cell:nth-child(9n),
.sudoku-grid.variant-circular > div:nth-child(n+19):nth-child(-n+27),
.sudoku-grid.variant-circular > div:nth-child(n+46):nth-child(-n+54) {
    position: absolute;
    /* width and height are set dynamically by JS based on ring depth */
    border: none !important;
    border-right: none !important;
    border-bottom: none !important;
    background: transparent !important;
    transform: translate(-50%, -50%);
    aspect-ratio: auto;
    z-index: 2;
}

/* Hide HTML5 number spinners for clean round inputs */
.variant-circular .sudoku-input::-webkit-outer-spin-button,
.variant-circular .sudoku-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.variant-circular .sudoku-input {
    -moz-appearance: textfield;
    border-radius: 50% !important;
    border: 1px solid rgba(6, 182, 212, 0.3) !important;
    background: rgba(5, 5, 12, 0.7) !important; /* Slightly transparent so overlapping borders are not harsh */
    color: #facc15 !important; /* USER INPUT COLOR: VIBRANT NEON YELLOW */
    text-shadow: 0 0 5px rgba(250, 204, 21, 0.4);
    font-weight: 700;
    text-align: center;
    padding: 0 !important;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 4px rgba(6, 182, 212, 0.1);
    transition: all 0.2s ease;
    /* font-size set dynamically in JS */
}

/* Styled pre-filled starting cells (clean floating glow text like reference) */
.variant-circular .sudoku-input:disabled {
    background: transparent !important;
    border: none !important;
    color: #c084fc !important; /* GIVEN NUMBERS: VIBRANT NEON PURPLE */
    font-weight: 800;
    text-shadow: 0 0 8px rgba(192, 132, 252, 0.8) !important;
    box-shadow: none !important;
    /* font-size set dynamically in JS */
}

.variant-circular .sudoku-input:not(:disabled):hover {
    border-color: #facc15 !important;
    box-shadow: 0 0 8px rgba(250, 204, 21, 0.4) !important;
    background: rgba(5, 5, 12, 0.85) !important;
}

.variant-circular .sudoku-input:not(:disabled):focus {
    border-color: #a78bfa !important;
    box-shadow: 0 0 10px rgba(167, 139, 250, 0.6) !important;
    background: rgba(5, 5, 12, 0.95) !important;
}

.variant-circular .sudoku-input.conflict {
    color: var(--accent-red) !important;
    background: rgba(239, 68, 68, 0.3) !important;
    border-color: var(--accent-red) !important;
    text-shadow: 0 0 8px rgba(239, 68, 68, 0.8) !important;
    box-shadow: inset 0 0 10px rgba(239, 68, 68, 0.5), 0 0 15px rgba(239, 68, 68, 0.4) !important;
}

/* Magnify Effect for Inner Rings (Center) */
.variant-circular .sudoku-cell.ring-6,
.variant-circular .sudoku-cell.ring-7,
.variant-circular .sudoku-cell.ring-8 {
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), z-index 0s;
}

.variant-circular .sudoku-cell.ring-6:hover {
    transform: translate(-50%, -50%) scale(1.6);
    z-index: 100 !important;
}

.variant-circular .sudoku-cell.ring-7:hover {
    transform: translate(-50%, -50%) scale(2.0);
    z-index: 100 !important;
}

.variant-circular .sudoku-cell.ring-8:hover {
    transform: translate(-50%, -50%) scale(2.6);
    z-index: 100 !important;
}

/* Responsive design */
@media (max-width: 768px) {
    header {
        padding: 1.5rem;
    }
    .intro-section h1 {
        font-size: 2.2rem;
    }
    .main-container {
        padding: 0 1.5rem 3rem 1.5rem;
        gap: 3rem;
    }
    .game-section {
        padding: 1.5rem;
    }
    .sudoku-grid {
        max-width: 320px;
    }
    .sudoku-input {
        font-size: 1.1rem;
    }
    .grid-4x4 .sudoku-input {
        font-size: 1.4rem;
    }
    .grid-6x6 .sudoku-input {
        font-size: 1.3rem;
    }
    .game-controls {
        gap: 1rem;
    }
}
