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

body {
    font-family: 'JetBrains Mono', monospace;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #e0e0e0;
    min-height: 100vh;
    overflow-x: hidden;
}

.game-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
}

.game-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #ff6b35;
    padding-bottom: 20px;
}

.game-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ff6b35;
    text-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
    margin-bottom: 10px;
    font-family: 'Space Mono', monospace;
}

.game-subtitle {
    font-size: 1.2rem;
    color: #999;
    font-weight: 400;
}

.game-interface {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr auto;
    gap: 20px;
    margin-bottom: 30px;
    min-height: 500px;
}

.story-panel {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #444;
    border-radius: 8px;
    padding: 20px;
    position: relative;
    overflow-y: auto;
    max-height: 400px;
}

.story-content {
    line-height: 1.6;
    font-size: 1rem;
}

.story-text {
    margin-bottom: 15px;
}

.story-text p {
    margin-bottom: 10px;
    animation: fadeIn 0.5s ease-in;
}

.stats-panel {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #444;
    border-radius: 8px;
    padding: 20px;
    grid-row: 1 / 3;
}

.character-info h3 {
    color: #ff6b35;
    margin-bottom: 20px;
    font-size: 1.2rem;
    text-align: center;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #333;
}

.stat-label {
    color: #aaa;
    font-weight: 400;
}

.stat-value {
    color: #e0e0e0;
    font-weight: 700;
}

.choices-panel {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #444;
    border-radius: 8px;
    padding: 20px;
}

.choices-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.choice-button {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    border: none;
    border-radius: 6px;
    color: white;
    padding: 12px 20px;
    font-size: 1rem;
    font-family: 'JetBrains Mono', monospace;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.choice-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.choice-button:active {
    transform: translateY(0);
}

.choice-button:disabled {
    background: #444;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.game-log {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #444;
    border-radius: 8px;
    padding: 20px;
    max-height: 200px;
    overflow-y: auto;
}

.game-log h4 {
    color: #ff6b35;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.log-content {
    font-size: 0.9rem;
    line-height: 1.4;
}

.log-entry {
    margin-bottom: 8px;
    padding: 4px 0;
    color: #bbb;
}

.log-entry.important {
    color: #ff6b35;
    font-weight: 700;
}

.log-entry.warning {
    color: #ffcc00;
}

.log-entry.danger {
    color: #ff4444;
}

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 10px;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff6b35;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-indicator span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typing {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

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

@media (max-width: 768px) {
    .game-interface {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
    }
    
    .stats-panel {
        grid-row: auto;
    }
    
    .game-title {
        font-size: 2rem;
    }
    
    .story-panel {
        max-height: 300px;
    }
}

.character-creation {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid #555;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
}

.character-creation h3 {
    color: #ff6b35;
    margin-bottom: 15px;
    text-align: center;
}

.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    color: #aaa;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #555;
    border-radius: 4px;
    color: #e0e0e0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 5px rgba(255, 107, 53, 0.3);
}

.input-group textarea {
    width: 100%;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #555;
    border-radius: 4px;
    color: #e0e0e0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    resize: vertical;
    min-height: 80px;
}

.input-group textarea:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 5px rgba(255, 107, 53, 0.3);
}

.dialogue-input {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid #555;
    border-radius: 6px;
}

.dialogue-input input {
    flex: 1;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #555;
    border-radius: 4px;
    color: #e0e0e0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
}

.dialogue-input input:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 5px rgba(255, 107, 53, 0.3);
}

.dialogue-input button {
    padding: 8px 16px;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    border: none;
    border-radius: 4px;
    color: white;
    font-family: 'JetBrains Mono', monospace;
    cursor: pointer;
    transition: all 0.3s ease;
}

.radiation-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
    border-radius: 8px;
}

.radiation-dot {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: radDot 3s infinite ease-in-out;
}

@keyframes radDot {
    0%, 100% {
        opacity: 0;
        transform: scale(0.5);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

.game-mode-toggle {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #444;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #aaa;
    font-size: 0.9rem;
    cursor: pointer;
}

.toggle-label input[type="checkbox"] {
    display: none;
}

.toggle-slider {
    width: 40px;
    height: 20px;
    background: #333;
    border-radius: 10px;
    position: relative;
    transition: background 0.3s;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #666;
    top: 1px;
    left: 1px;
    transition: transform 0.3s;
}

.toggle-label input[type="checkbox"]:checked + .toggle-slider {
    background: #ff6b35;
}

.toggle-label input[type="checkbox"]:checked + .toggle-slider::before {
    transform: translateX(20px);
    background: white;
}

.custom-action-input {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid #555;
    border-radius: 6px;
}

.custom-action-input input {
    flex: 1;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #555;
    border-radius: 4px;
    color: #e0e0e0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
}

.custom-action-input input:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 5px rgba(255, 107, 53, 0.3);
}

.custom-action-input button {
    padding: 8px 16px;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    border: none;
    border-radius: 4px;
    color: white;
    font-family: 'JetBrains Mono', monospace;
    cursor: pointer;
    transition: all 0.3s ease;
}