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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: #333;
    overflow-x: hidden;
}

.game-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 1200px;
    width: 100%;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.game-header {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-back {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    padding: 8px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.btn-back:hover {
    transform: translateY(-50%) translateX(-3px);
    box-shadow: 0 6px 12px rgba(102, 126, 234, 0.4);
}

.btn-back:active {
    transform: translateY(-50%) translateX(-1px);
}

.game-header h1 {
    font-size: 2.5em;
    color: #667eea;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    animation: pulse 2s ease-in-out infinite;
    margin: 0;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.game-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.stats-panel {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 10px 20px;
    border-radius: 10px;
    color: white;
    min-width: 100px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.stat-label {
    font-size: 0.9em;
    opacity: 0.9;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 1.3em;
    font-weight: bold;
}

.control-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: visible;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(245, 87, 108, 0.4);
}

.btn-info {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.btn-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(79, 172, 254, 0.4);
}

.btn-warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(245, 87, 108, 0.4);
}

.btn-warning.active {
    background: linear-gradient(135deg, #ffd93d 0%, #ffb347 100%);
    box-shadow: 0 0 15px rgba(255, 217, 61, 0.6);
}

/* 快捷键角标 */
.key-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 11px;
    font-weight: bold;
    padding: 3px 6px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.5);
    min-width: 18px;
    height: 18px;
    text-align: center;
    line-height: 12px;
    z-index: 100;
    display: inline-block;
    pointer-events: none;
}

/* 确保包含角标的按钮可以显示角标 */
#flagModeBtn {
    overflow: visible;
}

.btn-help {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
}

.btn-help:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(17, 153, 142, 0.4);
}

.btn-fullscreen {
    background: linear-gradient(135deg, #8360c3 0%, #2ebf91 100%);
    color: white;
}

.btn-fullscreen:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(131, 96, 195, 0.4);
}

#modeIndicator.flag-mode {
    background: linear-gradient(135deg, #ffd93d 0%, #ffb347 100%);
    animation: pulse 1.5s ease-in-out infinite;
}

.game-board-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    overflow-x: auto;
}

.game-board {
    display: inline-grid;
    gap: 2px;
    background: #ddd;
    padding: 5px;
    border-radius: 10px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 揭示模式下的光标样式 - 扫帚图标 */
.cell {
    width: 35px;
    height: 35px;
    /* 白色 - 未揭示的格子 */
    background: #ffffff;
    border: 2px solid #d0d0d0;
    border-radius: 5px;
    box-shadow: 
        inset 0 1px 2px rgba(0, 0, 0, 0.3),
        0 1px 0 rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 14px;
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><defs><filter id="broomShadow"><feDropShadow dx="0.5" dy="0.5" stdDeviation="0.4" flood-color="%23000" flood-opacity="0.4"/></filter></defs><g transform="rotate(45 12 12)" filter="url(%23broomShadow)"><rect x="10.5" y="2" width="3" height="14" fill="%23666" stroke="%23444" stroke-width="0.4" rx="1"/><path d="M7 16 L17 16 L16 20 L8 20 Z" fill="%23d4af37" stroke="%23b8941e" stroke-width="0.5"/><line x1="9" y1="18" x2="15" y2="18" stroke="%23855e0e" stroke-width="0.8"/><line x1="10" y1="19" x2="14" y2="19" stroke="%23855e0e" stroke-width="0.6"/><line x1="11" y1="20" x2="13" y2="20" stroke="%23855e0e" stroke-width="0.4"/></g></svg>') 12 12, pointer;
    transition: all 0.2s ease;
    user-select: none;
    position: relative;
    overflow: hidden;
}


/* 插旗模式下的光标样式 - 旗帜图标 */
.game-board.flag-mode .cell {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect x="4" y="3" width="3" height="18" fill="%23ff6b6b" stroke="%23cc0000" stroke-width="0.5"/><path d="M7 3 L18 3 L14 8 L18 13 L7 13 Z" fill="%23ff0000" stroke="%23cc0000" stroke-width="0.5"/><circle cx="13" cy="8" r="2" fill="%23fff"/></svg>') 6 6, pointer;
}

.cell:hover:not(.revealed):not(.flagged) {
    background: #f5f5f5;
    border-color: #c0c0c0;
    transform: scale(1.05);
    box-shadow: 
        inset 0 1px 2px rgba(0, 0, 0, 0.1),
        0 2px 4px rgba(0, 0, 0, 0.1);
}

.cell.revealed {
    /* 灰色 - 已揭示的格子 */
    background: #808080;
    border: 1px solid #606060;
    box-shadow: 
        inset 0 1px 2px rgba(255, 255, 255, 0.1),
        0 1px 0 rgba(0, 0, 0, 0.1);
    cursor: default;
    animation: reveal 0.3s ease-out;
}

@keyframes reveal {
    0% {
        transform: scale(1.2);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.cell.mine {
    background: 
        radial-gradient(circle at 30% 40%, rgba(255, 0, 0, 0.6) 2px, transparent 2px),
        linear-gradient(135deg, #ff0000 0%, #ff6b6b 50%, #ff8c8c 100%);
    background-size: 6px 6px, 100% 100%;
    border: 2px solid #8b0000;
    box-shadow: 
        inset 0 1px 2px rgba(0, 0, 0, 0.4),
        0 0 10px rgba(255, 0, 0, 0.6);
    animation: mineExplode 0.6s ease-out;
}

@keyframes mineExplode {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3) rotate(180deg);
    }
    100% {
        transform: scale(1) rotate(360deg);
    }
}

.cell.flagged {
    /* 旗帜在红色荆棘上，使用金色/黄色突出显示 */
    background: 
        radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.3) 1px, transparent 1px),
        linear-gradient(145deg, #ffd700 0%, #ffb347 50%, #ffa500 100%);
    background-size: 4px 4px, 100% 100%;
    border: 2px solid #daa520;
    box-shadow: 
        inset 0 1px 2px rgba(255, 255, 255, 0.3),
        0 2px 4px rgba(255, 215, 0, 0.4),
        inset 0 -1px 2px rgba(0, 0, 0, 0.2);
    animation: flag 0.3s ease-out;
}

@keyframes flag {
    0% {
        transform: scale(0) rotate(-180deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
    }
}

/* 数字颜色 - 在灰色草地上要有良好的对比度 */
.cell.revealed.number-1 { 
    color: #0000ff; 
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.9), 0 1px 1px rgba(0, 0, 0, 0.5);
}
.cell.revealed.number-2 { 
    color: #006400; 
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.9), 0 1px 1px rgba(0, 0, 0, 0.5);
}
.cell.revealed.number-3 { 
    color: #8b0000; 
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.9), 0 1px 1px rgba(0, 0, 0, 0.5);
}
.cell.revealed.number-4 { 
    color: #000080; 
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.9), 0 1px 1px rgba(0, 0, 0, 0.5);
}
.cell.revealed.number-5 { 
    color: #8b0000; 
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.9), 0 1px 1px rgba(0, 0, 0, 0.5);
}
.cell.revealed.number-6 { 
    color: #008080; 
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.9), 0 1px 1px rgba(0, 0, 0, 0.5);
}
.cell.revealed.number-7 { 
    color: #000000; 
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.9), 0 1px 1px rgba(0, 0, 0, 0.5);
}
.cell.revealed.number-8 { 
    color: #2f4f4f; 
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.9), 0 1px 1px rgba(0, 0, 0, 0.5);
}

.settings-panel,
.history-panel,
.help-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transition: transform 0.3s ease;
}

.settings-panel.active,
.history-panel.active,
.help-panel.active {
    transform: translate(-50%, -50%) scale(1);
}

.help-panel {
    max-width: 800px;
}

.help-content {
    margin-bottom: 20px;
}

.help-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.help-section:last-of-type {
    border-bottom: none;
}

.help-section h3 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.help-item {
    margin-bottom: 20px;
}

.help-item p {
    margin-bottom: 10px;
    line-height: 1.6;
    color: #333;
}

.example-grid {
    display: inline-grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
    margin: 15px 0;
    background: #ddd;
    padding: 5px;
    border-radius: 5px;
}

.example-grid.small {
    grid-template-columns: repeat(3, 35px);
}

.example-cell {
    width: 40px;
    height: 40px;
    background: #f5f5f5;
    border: 2px solid #ccc;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 14px;
}

.example-grid.small .example-cell {
    width: 35px;
    height: 35px;
    font-size: 12px;
}

.example-cell.number-1 { color: #0000ff; background: #e6f3ff; }
.example-cell.number-2 { color: #008000; background: #e6ffe6; }
.example-cell.number-3 { color: #ff0000; background: #ffe6e6; }
.example-cell.flagged { background: #fff4d6; }
.example-cell.safe { background: #d4edda; color: #155724; }
.example-cell.empty { background: #f8f9fa; }

.help-note {
    font-size: 0.9em;
    color: #666;
    font-style: italic;
    margin-top: 10px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-left: 3px solid #667eea;
    border-radius: 4px;
}

.help-tips ul {
    list-style: none;
    padding: 0;
}

.help-tips li {
    padding: 10px 0;
    padding-left: 10px;
    border-left: 3px solid #38ef7d;
    margin-bottom: 10px;
    background: #f8fff9;
    border-radius: 4px;
    line-height: 1.6;
}

.help-tips li strong {
    color: #11998e;
}

.setting-group {
    margin-bottom: 20px;
}

.setting-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.setting-input {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s;
}

.setting-input:focus {
    outline: none;
    border-color: #667eea;
}

.history-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.history-stat {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 15px;
    border-radius: 10px;
    color: white;
    text-align: center;
}

.history-label {
    display: block;
    font-size: 0.9em;
    opacity: 0.9;
    margin-bottom: 5px;
}

.history-value {
    display: block;
    font-size: 1.5em;
    font-weight: bold;
}

.history-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.history-item {
    background: #f5f5f5;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 响应式设计 - 平板与手机 */
/* 触摸优化：按钮增大可点击区域，格子保持可读 */
@media (hover: none) and (pointer: coarse) {
    .btn,
    .btn-back {
        min-height: 44px;
        min-width: 44px;
    }
}

/* 安全区域（刘海屏、横屏） */
@supports (padding: env(safe-area-inset-bottom)) {
    body {
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
        padding-bottom: max(20px, env(safe-area-inset-bottom));
    }
}

/* 平板端 768px - 1024px */
@media (max-width: 1024px) {
    body {
        padding: 12px;
        align-items: flex-start;
    }
    .game-container {
        padding: 16px;
        max-width: 100%;
    }
    .game-header h1 {
        font-size: 2.2em;
    }
    .game-controls {
        gap: 12px;
    }
    .control-buttons {
        justify-content: center;
    }
    .cell {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
    .game-board-container {
        -webkit-overflow-scrolling: touch;
        overflow-x: auto;
        justify-content: flex-start;
    }
    .settings-panel,
    .history-panel,
    .help-panel {
        max-height: 85vh;
        padding: 24px;
    }
}

@media (max-width: 768px) {
    .game-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn-back {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        margin-bottom: 10px;
        align-self: flex-start;
        min-height: 44px;
        padding: 10px 18px;
    }

    .game-header h1 {
        font-size: 2em;
        width: 100%;
    }

    .game-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .stats-panel {
        justify-content: space-around;
    }

    .stat-item {
        flex: 1;
        min-width: auto;
    }

    .control-buttons {
        justify-content: center;
        gap: 8px;
    }

    .btn {
        min-height: 44px;
        padding: 10px 16px;
    }

    .cell {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .history-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .help-panel {
        padding: 20px;
        max-width: 95%;
    }

    .example-grid {
        grid-template-columns: repeat(3, 35px);
    }

    .example-cell {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }
}

/* 手机端 */
@media (max-width: 480px) {
    body {
        padding: 10px;
        padding-left: max(10px, env(safe-area-inset-left));
        padding-right: max(10px, env(safe-area-inset-right));
    }

    .game-container {
        padding: 12px;
        border-radius: 12px;
    }

    .game-header h1 {
        font-size: 1.5em;
    }

    .stats-panel {
        gap: 8px;
    }

    .stat-item {
        padding: 8px 12px;
        min-width: 0;
    }

    .stat-label {
        font-size: 0.8em;
    }

    .stat-value {
        font-size: 1.1em;
    }

    .cell {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }

    .btn {
        padding: 10px 14px;
        font-size: 0.85em;
    }

    .key-badge {
        font-size: 10px;
        padding: 2px 5px;
    }

    .control-buttons {
        gap: 6px;
    }

    .settings-panel,
    .history-panel,
    .help-panel {
        padding: 16px;
        max-width: 96%;
        max-height: 90vh;
        border-radius: 12px;
    }

    .help-section h3 {
        font-size: 1.1em;
    }

    .help-content {
        font-size: 0.95em;
    }

    .example-grid {
        grid-template-columns: repeat(3, 30px);
    }

    .example-cell {
        width: 30px;
        height: 30px;
        font-size: 10px;
    }

    .example-grid.small .example-cell {
        width: 28px;
        height: 28px;
    }

    .history-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* 游戏结束动画 */
.game-over {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.game-win {
    animation: celebrate 1s ease-in-out;
}

@keyframes celebrate {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.05) rotate(2deg); }
    75% { transform: scale(1.05) rotate(-2deg); }
}

/* 成功揭示动画 */
.cell.revealed.success {
    animation: successReveal 0.4s ease-out;
}

@keyframes successReveal {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* 滚动条样式 */
.history-list::-webkit-scrollbar,
.settings-panel::-webkit-scrollbar,
.history-panel::-webkit-scrollbar {
    width: 8px;
}

.history-list::-webkit-scrollbar-track,
.settings-panel::-webkit-scrollbar-track,
.history-panel::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.history-list::-webkit-scrollbar-thumb,
.settings-panel::-webkit-scrollbar-thumb,
.history-panel::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 10px;
}

.history-list::-webkit-scrollbar-thumb:hover,
.settings-panel::-webkit-scrollbar-thumb:hover,
.history-panel::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}

/* 全屏模式 */
body.fullscreen {
    padding: 0;
}

body.fullscreen .game-container {
    max-width: 100%;
    width: 100%;
    height: 100vh;
    border-radius: 0;
    padding: 10px;
    display: flex;
    flex-direction: column;
}

body.fullscreen .game-header {
    display: none;
}

body.fullscreen .game-controls {
    position: fixed;
    top: 10px;
    left: 10px;
    right: 10px;
    z-index: 100;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

body.fullscreen .control-buttons {
    flex-wrap: wrap;
    gap: 5px;
}

body.fullscreen .control-buttons .btn {
    padding: 6px 12px;
    font-size: 0.85em;
}

body.fullscreen .key-badge {
    font-size: 9px;
    padding: 1px 4px;
    top: -5px;
    right: -5px;
}

body.fullscreen .stats-panel {
    flex-wrap: wrap;
    gap: 8px;
}

body.fullscreen .stat-item {
    padding: 6px 12px;
    font-size: 0.9em;
}

body.fullscreen .game-board-container {
    flex: 1;
    margin-top: 80px;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: auto;
    min-height: 0;
}

body.fullscreen .game-board {
    max-width: 100%;
    max-height: 100%;
    transform-origin: center;
}

body.fullscreen .cell {
    /* 单元格大小将在JavaScript中动态设置 */
    min-width: 20px;
    min-height: 20px;
}

/* 赛博风格 */
body.theme-cyber {
    background: #000;
    color: #0ff;
}

body.theme-cyber .game-container {
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid #0ff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5),
                inset 0 0 20px rgba(0, 255, 255, 0.1);
}

body.theme-cyber .game-header h1 {
    color: #0ff;
    text-shadow: 0 0 10px #0ff, 0 0 20px #0ff, 0 0 30px #0ff;
}

body.theme-cyber .stat-item {
    background: linear-gradient(135deg, #00ffff 0%, #0080ff 100%);
    border: 1px solid #0ff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

body.theme-cyber .btn-primary {
    background: linear-gradient(135deg, #00ffff 0%, #0080ff 100%);
    border: 1px solid #0ff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

body.theme-cyber .btn-secondary {
    background: linear-gradient(135deg, #ff00ff 0%, #8000ff 100%);
    border: 1px solid #f0f;
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
}

body.theme-cyber .btn-info {
    background: linear-gradient(135deg, #0080ff 0%, #00ffff 100%);
    border: 1px solid #0ff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

body.theme-cyber .btn-warning {
    background: linear-gradient(135deg, #ff8000 0%, #ffff00 100%);
    border: 1px solid #ff0;
    box-shadow: 0 0 10px rgba(255, 255, 0, 0.5);
}

body.theme-cyber .btn-help {
    background: linear-gradient(135deg, #00ff80 0%, #00ff00 100%);
    border: 1px solid #0f0;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

body.theme-cyber .btn-fullscreen {
    background: linear-gradient(135deg, #8000ff 0%, #ff00ff 100%);
    border: 1px solid #f0f;
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
}

body.theme-cyber .game-board {
    background: #001;
    border: 2px solid #0ff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

body.theme-cyber .cell {
    background: linear-gradient(145deg, #003, #001);
    border: 1px solid #0ff;
    box-shadow: 0 0 5px rgba(0, 255, 255, 0.2);
}

body.theme-cyber .cell:hover:not(.revealed):not(.flagged) {
    background: linear-gradient(145deg, #006, #003);
    border-color: #0ff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

body.theme-cyber .cell.revealed {
    background: #002;
    border: 1px solid #008;
}

body.theme-cyber .cell.mine {
    background: #f00;
    border: 1px solid #ff0;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.8);
}

body.theme-cyber .cell.flagged {
    background: linear-gradient(145deg, #ff0, #fa0);
    border: 1px solid #ff0;
    box-shadow: 0 0 10px rgba(255, 255, 0, 0.6);
}

body.theme-cyber .cell.number-1 { color: #0ff; text-shadow: 0 0 5px #0ff; }
body.theme-cyber .cell.number-2 { color: #0f0; text-shadow: 0 0 5px #0f0; }
body.theme-cyber .cell.number-3 { color: #ff0; text-shadow: 0 0 5px #ff0; }
body.theme-cyber .cell.number-4 { color: #f0f; text-shadow: 0 0 5px #f0f; }
body.theme-cyber .cell.number-5 { color: #f00; text-shadow: 0 0 5px #f00; }
body.theme-cyber .cell.number-6 { color: #0ff; text-shadow: 0 0 5px #0ff; }
body.theme-cyber .cell.number-7 { color: #fff; text-shadow: 0 0 5px #fff; }
body.theme-cyber .cell.number-8 { color: #888; text-shadow: 0 0 5px #888; }

body.theme-cyber .settings-panel,
body.theme-cyber .history-panel,
body.theme-cyber .help-panel {
    background: #001;
    border: 2px solid #0ff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
    color: #0ff;
}

body.theme-cyber .setting-input {
    background: #003;
    border: 1px solid #0ff;
    color: #0ff;
}

body.theme-cyber .setting-input:focus {
    border-color: #0ff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    outline: none;
}
