body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: 'Georgia', serif;
    background: #1a1a1a;
    color: #e0e0e0;
}

.game-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.status-bar {
    background: #2a2a2a;
    padding: 1rem;
    display: flex;
    gap: 2rem;
    border-bottom: 2px solid #3a3a3a;
    flex-shrink: 0;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-label {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: bold;
    color: #fff;
}

.story-container {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.message {
    max-width: 800px;
    animation: fadeIn 0.3s ease-out;
}

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

.message-header {
    font-size: 0.875rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.message-content {
    background: #2a2a2a;
    padding: 1rem;
    border-radius: 8px;
    line-height: 1.6;
}

.dm-message {
    align-self: flex-start;
}

.dm-message .message-header {
    color: #c9a86a;
}

.dm-message .message-content {
    border-left: 3px solid #c9a86a;
}

.player-message {
    align-self: flex-end;
}

.player-message .message-header {
    color: #6ac9a8;
    text-align: right;
}

.player-message .message-content {
    border-left: 3px solid #6ac9a8;
    background: #253530;
}

.dice-result {
    background: #1a1a1a;
    padding: 0.75rem;
    border-radius: 6px;
    margin-top: 0.5rem;
    font-family: monospace;
    border: 1px solid #3a3a3a;
}

.input-container {
    padding: 1rem;
    background: #2a2a2a;
    border-top: 2px solid #3a3a3a;
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

#actionInput {
    flex: 1;
    padding: 0.875rem;
    background: #1a1a1a;
    border: 2px solid #3a3a3a;
    border-radius: 6px;
    color: #e0e0e0;
    font-size: 1rem;
    font-family: 'Georgia', serif;
    transition: border-color 0.2s;
}

#actionInput:focus {
    outline: none;
    border-color: #c9a86a;
}

#actionButton {
    padding: 0.875rem 2rem;
    background: #c9a86a;
    color: #1a1a1a;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Georgia', serif;
}

#actionButton:hover:not(:disabled) {
    background: #d4b875;
    transform: translateY(-1px);
}

#actionButton:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.dice-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.dice-overlay.active {
    display: flex;
}

.dice-container {
    text-align: center;
}

.dice {
    width: 120px;
    height: 120px;
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-weight: bold;
    color: #1a1a1a;
    margin: 0 auto 1rem;
    animation: diceRoll 0.5s ease-in-out;
}

@keyframes diceRoll {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(90deg); }
    50% { transform: rotate(180deg); }
    75% { transform: rotate(270deg); }
}

.dice-label {
    font-size: 1.5rem;
    color: #c9a86a;
}

.game-over {
    text-align: center;
    padding: 2rem;
    background: #2a2a2a;
    border: 2px solid #c9a86a;
    border-radius: 12px;
    margin: 2rem auto;
    max-width: 600px;
}

.game-over h2 {
    color: #c9a86a;
    margin-top: 0;
}

