/* Theme/visual overrides removed to restore original styling. */
/* Previously there were forced dark-green overrides here; they have been removed. */

/* Game-specific overrides */
body {
    background: #000;
    color: #ddd;
    font-family: 'Courier New', monospace;
    padding: 20px;
    min-height: 100vh;
    margin: 0;
}

.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--grey-100, #1a1a1a);
    border: 2px solid var(--grey-300, #4d4d4d);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.light .container {
    background: #fafafa;
    border-color: #d4d4d4;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    color: var(--white, #ffffff);
    text-shadow: none;
    margin-bottom: 20px;
    font-size: 2em;
    font-weight: 300;
    letter-spacing: 0.05em;
}

.light h1 {
    color: #1a1a1a;
}

.icon-inline {
    display: inline-block;
    width: 1.2em;
    height: 1.2em;
    vertical-align: middle;
    margin: 0 0.2em;
}

.menu, .game-screen, .stats-screen {
    display: none;
}

.menu.active, .game-screen.active, .stats-screen.active {
    display: block;
}

.menu-button, .action-button {
    display: block;
    width: 100%;
    padding: 15px;
    margin: 10px 0;
    background: var(--grey-200, #333333);
    border: 1px solid var(--grey-400, #666666);
    color: var(--white, #ffffff);
    font-family: 'Courier New', monospace;
    font-size: 1.2em;
    cursor: pointer;
    transition: all 0.3s;
}

.light .menu-button, .light .action-button {
    background: #e6e6e6;
    border-color: #999999;
    color: #1a1a1a;
}

.menu-button:hover, .action-button:hover {
    background: var(--grey-300, #4d4d4d);
    border-color: var(--grey-500, #808080);
    transform: translateY(-2px);
}

.light .menu-button:hover, .light .action-button:hover {
    background: #cccccc;
    border-color: #666666;
    transform: translateY(-2px);
}

.enemy-display {
    text-align: center;
    padding: 20px;
    background: var(--grey-200, #333333);
    border: 1px solid var(--grey-400, #666666);
    border-radius: 5px;
    margin-bottom: 20px;
    position: relative;
}

.light .enemy-display {
    background: #f0f0f0;
    border-color: #cccccc;
}

.enemy-art {
    color: #ff4136;
    font-size: 0.9em;
    white-space: pre;
    line-height: 1.2;
    max-width: 300px;
    margin: 0 auto;
}

.enemy-art img {
    display: block;
    width: 100%;
    max-width: 300px;
    height: auto;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

.damage-numbers {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 60px;
    margin: 0;
    pointer-events: none;
    z-index: 10;
}

.hp-bar-container {
    margin: 10px 0;
    padding: 5px;
}

.hp-label {
    margin-bottom: 5px;
    font-weight: bold;
}

.hp-bar {
    width: 100%;
    height: 25px;
    background: #1a1f2e;
    border: 2px solid var(--grey-300, #4d4d4d);
    position: relative;
    overflow: hidden;
}

.hp-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff4136, #ff6b6b);
    transition: width 0.5s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.player-hp-fill {
    background: linear-gradient(90deg, #00ff41, #00cc33);
}

.damage-numbers {
    position: relative;
    height: 40px;
    margin: 10px 0;
}

.damage-number {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2em;
    font-weight: bold;
    animation: floatUp 1.5s ease-out forwards;
    pointer-events: none;
}

.damage-number.normal {
    color: #ff6b6b;
}

.damage-number.critical {
    color: #ffd700;
    font-size: 2.5em;
    text-shadow: 0 0 10px #ffd700;
}

.damage-number.miss {
    color: #666;
    font-size: 1.5em;
}

@keyframes floatUp {
    0% {
        bottom: 0;
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
    50% {
        transform: translateX(-50%) scale(1.2);
    }
    100% {
        bottom: 40px;
        opacity: 0;
        transform: translateX(-50%) scale(0.8);
    }
}

.typing-area {
    background: var(--grey-200, #333333);
    border: 1px solid var(--grey-400, #666666);
    padding: 20px;
    margin: 20px 0;
}

.light .typing-area {
    background: #f5f5f5;
    border-color: #cccccc;
}

.sentence-prompt {
    font-size: 1.3em;
    color: var(--grey-800, #cccccc);
    margin-bottom: 15px;
    text-align: center;
    padding: 10px;
    background: var(--black, #000000);
    border-radius: 5px;
}

.light .sentence-prompt {
    background: #ffffff;
    color: #333333;
}

.typing-input {
    width: 100%;
    padding: 10px;
    font-family: 'Courier New', monospace;
    font-size: 1.2em;
    line-height: 1.2;
    background: var(--black, #000000);
    border: 1px solid var(--grey-400, #666666);
    color: var(--white, #ffffff);
    outline: none;
    box-sizing: border-box;
    min-height: 42px;
    border-radius: 4px;
}

.light .typing-input {
    background: white;
    border-color: #999999;
    color: #333;
}

.typing-input.error {
    border-color: #ff4136;
    color: #ff4136;
}

.stats-bar {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    background: var(--grey-200, #333333);
    border: 1px solid var(--grey-400, #666666);
    margin: 10px 0;
    flex-wrap: wrap;
}

.light .stats-bar {
    background: #f5f5f5;
    border-color: #cccccc;
}

.stat {
    padding: 5px 15px;
}

.stat-label {
    color: var(--grey-600, #999999);
    font-size: 0.9em;
}

.stat-value {
    color: var(--white, #ffffff);
    font-size: 1.2em;
    font-weight: bold;
}

.combo-indicator {
    color: var(--grey-800, #cccccc);
    font-size: 1.5em;
}

.victory-screen, .defeat-screen {
    text-align: center;
    padding: 30px;
    background: var(--grey-200, #333333);
    border: 1px solid var(--grey-400, #666666);
    margin: 20px 0;
}

.light .victory-screen, .light .defeat-screen {
    background: #f5f5f5;
    border-color: #cccccc;
}

.victory-screen h2 {
    color: #ffd700;
    font-size: 2em;
    margin-bottom: 20px;
}

.defeat-screen h2 {
    color: #ff4136;
    font-size: 2em;
    margin-bottom: 20px;
}

.stats-summary {
    text-align: left;
    margin: 20px auto;
    max-width: 500px;
}

.stats-summary div {
    padding: 8px;
    margin: 5px 0;
    background: var(--black, #000000);
    border-left: 3px solid var(--grey-500, #808080);
    padding-left: 15px;
}

.light .stats-summary div {
    background: white;
    border-left-color: #999999;
}

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

.element-fire { color: #ff6b6b; }
.element-water { color: #66d9ef; }
.element-lightning { color: #ffd700; }
.element-earth { color: #a5d6a7; }

.how-to-play {
    background: var(--grey-200, #333333);
    padding: 20px;
    border: 1px solid var(--grey-400, #666666);
    margin: 20px 0;
    line-height: 1.8;
}

.light .how-to-play {
    background: #f5f5f5;
    border-color: #cccccc;
}

.how-to-play h3 {
    color: var(--grey-800, #cccccc);
    margin: 15px 0 10px 0;
}

.light .how-to-play h3 {
    color: #333333;
}