:root {
    --dmv-green: #004d00;
    --dmv-beige: #f5f5dc;
    --dmv-yellow: #ffffcc;
    --dmv-brown: #8b4513;
    --dmv-red: #8b0000;
    --dmv-blue: #00008b;
    --dmv-gray: #d3d3d3;
    --crt-glow: rgba(0, 255, 0, 0.5);
    --good-color: #00aa00;
    --evil-color: #aa0000;
    --stamina-color: #0066cc;
    --coffee-color: #8b4513;
    --bathroom-color: #008b8b;
    --supply-color: #ff8c00;
    --rain-color: #1e90ff;
    --summer-color: #ff8c00;
    --snow-color: #87ceeb;
    --holiday-color: #ff0000;
    --heatwave-color: #ff4500;
    --horror-red: #ff0000;
    --horror-glow: rgba(255, 0, 0, 0.6);
}

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

body {
    font-family: 'IBM Plex Mono', monospace;
    background-color: #000;
    color: #0f0;
    padding: 20px;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* CRT Screen Effect */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15) 0px,
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 999;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    border: 3px solid var(--dmv-green);
    background-color: #000;
    padding: 20px;
    box-shadow: 0 0 30px var(--crt-glow);
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
}

/* Horror Mode Styles */
.container.horror-mode {
    border-color: var(--horror-red);
    box-shadow: 0 0 50px var(--horror-glow);
    color: var(--horror-red);
}

.horror-mode h1 {
    color: var(--horror-red);
    text-shadow: 0 0 15px var(--horror-red);
    animation: glitch 0.2s infinite;
}

.horror-mode .action-btn, .horror-mode .control-btn, .horror-mode .break-btn {
    border-color: var(--horror-red);
    color: var(--horror-red);
}

.horror-mode .action-btn:hover:not(:disabled) {
    background-color: var(--horror-red);
    color: #000;
}

.horror-mode .counter-area {
    border-color: #300;
}

.horror-mode .counter-number {
    border-color: var(--horror-red);
    color: var(--horror-red);
}

@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

.horror-btn {
    border-color: var(--horror-red) !important;
    color: var(--horror-red) !important;
}

.horror-btn:hover {
    background-color: var(--horror-red) !important;
    color: #000 !important;
    box-shadow: 0 0 20px var(--horror-glow) !important;
}

/* Existing styles continue... */
.container::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 50%,
        rgba(0, 255, 0, 0.03) 50%
    );
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 1;
}

header {
    text-align: center;
    padding: 20px;
    border-bottom: 2px dashed var(--dmv-green);
    margin-bottom: 20px;
    position: relative;
}

h1 {
    font-family: 'Press Start 2P', cursive;
    color: var(--dmv-yellow);
    font-size: 28px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px var(--crt-glow);
    margin-bottom: 10px;
}

.subtitle {
    font-family: 'Press Start 2P', cursive;
    color: #fff;
    font-size: 12px;
    margin-bottom: 15px;
}

/* SEASONAL/WEATHER EVENTS SYSTEM */
.weather-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 15px 0;
    padding: 10px;
    background-color: #111;
    border: 2px solid #333;
    position: relative;
}

.weather-label {
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    color: #aaa;
}

.weather-display {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 15px;
    background-color: #222;
    border: 2px solid;
    min-width: 200px;
    justify-content: center;
}

.weather-icon {
    font-size: 20px;
}

.weather-name {
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
}

.weather-effects {
    font-size: 9px;
    color: #aaa;
    text-align: center;
    margin-top: 5px;
}

/* Weather-specific colors */
.weather-rainy {
    border-color: var(--rain-color);
    color: var(--rain-color);
}

.weather-summer {
    border-color: var(--summer-color);
    color: var(--summer-color);
}

.weather-snow {
    border-color: var(--snow-color);
    color: var(--snow-color);
}

.weather-holiday {
    border-color: var(--holiday-color);
    color: var(--holiday-color);
}

.weather-heatwave {
    border-color: var(--heatwave-color);
    color: var(--heatwave-color);
}

.weather-normal {
    border-color: #666;
    color: #aaa;
}

/* Weather visual effects */
.rain-effect::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(transparent 0%, rgba(30, 144, 255, 0.1) 100%);
    pointer-events: none;
    z-index: 1;
    animation: rain 1s linear infinite;
}

@keyframes rain {
    0% { background-position: 0 0; }
    100% { background-position: 0 20px; }
}

.snow-effect::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #fff 50%, transparent 50%),
        radial-gradient(2px 2px at 40px 70px, #fff 50%, transparent 50%),
        radial-gradient(2px 2px at 60px 20px, #fff 50%, transparent 50%),
        radial-gradient(2px 2px at 80px 50px, #fff 50%, transparent 50%),
        radial-gradient(2px 2px at 100px 80px, #fff 50%, transparent 50%);
    background-repeat: repeat;
    pointer-events: none;
    z-index: 1;
    animation: snow 10s linear infinite;
}

@keyframes snow {
    0% { background-position: 0 0; }
    100% { background-position: 0 100px; }
}

.heatwave-effect::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 69, 0, 0.1) 25%, 
        transparent 50%, 
        rgba(255, 69, 0, 0.1) 75%, 
        transparent 100%);
    pointer-events: none;
    z-index: 1;
    animation: heatwave 2s linear infinite;
}

@keyframes heatwave {
    0% { background-position: -200px 0; }
    100% { background-position: 200px 0; }
}

/* MORALITY SYSTEM */
.morality-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 15px 0;
    padding: 10px;
    background-color: #111;
    border: 2px solid #333;
}

.morality-label {
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    color: #aaa;
}

.morality-value {
    font-family: 'Press Start 2P', cursive;
    font-size: 14px;
    color: var(--dmv-yellow);
    min-width: 120px;
    text-align: center;
}

.morality-slider-container {
    flex-grow: 1;
    max-width: 300px;
}

.morality-slider {
    width: 100%;
    height: 20px;
    background: linear-gradient(to right, var(--evil-color), #444, var(--good-color));
    border: 2px solid #000;
    border-radius: 0;
    position: relative;
}

.morality-marker {
    position: absolute;
    top: -2px;
    width: 4px;
    height: 24px;
    background-color: #fff;
    transform: translateX(-50%);
    transition: left 0.3s ease;
}

.morality-icons {
    display: flex;
    gap: 20px;
    margin-left: 10px;
}

.morality-icon {
    font-size: 20px;
    opacity: 0.5;
    transition: opacity 0.3s, transform 0.3s;
}

.morality-icon.active {
    opacity: 1;
    transform: scale(1.2);
}

.evil-icon {
    color: var(--evil-color);
}

.good-icon {
    color: var(--good-color);
}

/* RESOURCE MANAGEMENT SYSTEM */
.resource-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 20px 0;
    padding: 15px;
    background-color: #111;
    border: 2px solid var(--dmv-blue);
}

@media (max-width: 900px) {
    .resource-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

.resource-box {
    padding: 10px;
    background-color: #222;
    border: 1px solid #444;
    min-height: 80px;
}

.resource-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.resource-label {
    font-family: 'Press Start 2P', cursive;
    font-size: 9px;
    color: #aaa;
}

.resource-value {
    font-family: 'Press Start 2P', cursive;
    font-size: 14px;
    color: var(--dmv-yellow);
}

.resource-bar-container {
    height: 15px;
    background-color: #333;
    border: 1px solid #555;
    margin-top: 5px;
}

.resource-bar {
    height: 100%;
    width: 100%;
    transition: width 0.3s ease;
}

.stamina-bar {
    background-color: var(--stamina-color);
}

.coffee-bar {
    background-color: var(--coffee-color);
}

.bathroom-bar {
    background-color: var(--bathroom-color);
}

.supply-bar {
    background-color: var(--supply-color);
}

.resource-warning {
    color: var(--dmv-red);
    animation: pulse 1s infinite;
}

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

.break-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 15px 0;
}

.break-btn {
    padding: 12px;
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    background-color: #000;
    border: 2px solid;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.break-btn:hover:not(:disabled) {
    transform: translateY(-2px);
}

.break-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.coffee-btn {
    color: var(--coffee-color);
    border-color: var(--coffee-color);
}

.coffee-btn:hover:not(:disabled) {
    background-color: var(--coffee-color);
    color: #000;
    box-shadow: 0 0 10px rgba(139, 69, 19, 0.5);
}

.bathroom-btn {
    color: var(--bathroom-color);
    border-color: var(--bathroom-color);
}

.bathroom-btn:hover:not(:disabled) {
    background-color: var(--bathroom-color);
    color: #000;
    box-shadow: 0 0 10px rgba(0, 139, 139, 0.5);
}

.supply-btn {
    color: var(--supply-color);
    border-color: var(--supply-color);
}

.supply-btn:hover:not(:disabled) {
    background-color: var(--supply-color);
    color: #000;
    box-shadow: 0 0 10px rgba(255, 140, 0, 0.5);
}

/* Supervisor Alert */
.supervisor-alert {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    background-color: #000;
    border: 5px solid var(--dmv-red);
    padding: 30px;
    z-index: 2000;
    display: none;
    text-align: center;
}

.supervisor-alert.active {
    display: block;
    animation: alertPulse 0.5s 3;
}

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

.supervisor-title {
    font-family: 'Press Start 2P', cursive;
    color: var(--dmv-red);
    font-size: 16px;
    margin-bottom: 20px;
}

.supervisor-message {
    margin: 20px 0;
    font-size: 14px;
    line-height: 1.6;
}

.supervisor-btn {
    padding: 15px 30px;
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
    background-color: #000;
    color: #fff;
    border: 2px solid var(--dmv-red);
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.2s;
}

.supervisor-btn:hover {
    background-color: var(--dmv-red);
    transform: translateY(-2px);
}

/* Action Buttons */
.action-buttons.evil-mode button {
    border-color: var(--dmv-red);
    color: #f00;
}

.action-buttons.evil-mode button:hover:not(:disabled) {
    background-color: var(--dmv-red);
    color: #000;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

.action-buttons.good-mode button {
    border-color: var(--good-color);
    color: #0f0;
}

.action-buttons.good-mode button:hover:not(:disabled) {
    background-color: var(--good-color);
    color: #000;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

/* Existing styles continue... */
.game-area {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 900px) {
    .game-area {
        grid-template-columns: 1fr;
    }
}

.counter-area {
    background-color: #111;
    border: 3px solid var(--dmv-brown);
    padding: 20px;
    min-height: 400px;
    position: relative;
}

.counter-top {
    background-color: var(--dmv-brown);
    height: 20px;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.counter-number {
    position: absolute;
    top: -15px;
    left: 20px;
    background-color: #000;
    color: var(--dmv-yellow);
    padding: 5px 10px;
    font-family: 'Press Start 2P', cursive;
    font-size: 14px;
    border: 2px solid var(--dmv-yellow);
}

.current-customer {
    margin-top: 30px;
    padding: 15px;
    background-color: #222;
    border: 2px solid var(--dmv-green);
    min-height: 180px;
}

.customer-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--dmv-green);
}

.customer-name {
    font-family: 'Press Start 2P', cursive;
    color: var(--dmv-yellow);
    font-size: 16px;
}

.customer-patience {
    display: flex;
    align-items: center;
    gap: 10px;
}

.patience-bar {
    width: 100px;
    height: 15px;
    background-color: #333;
    border: 1px solid var(--dmv-gray);
}

.patience-fill {
    height: 100%;
    width: 100%;
    background-color: var(--dmv-green);
    transition: width 0.5s linear;
}

.customer-request {
    margin: 15px 0;
    font-size: 18px;
    line-height: 1.8;
}

.customer-documents {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.document {
    padding: 8px 15px;
    background-color: #333;
    border: 1px solid var(--dmv-gray);
    font-size: 14px;
}

.document.required {
    border-color: var(--dmv-green);
    background-color: rgba(0, 77, 0, 0.2);
}

.document.missing {
    border-color: var(--dmv-red);
    background-color: rgba(139, 0, 0, 0.2);
    text-decoration: line-through;
    opacity: 0.7;
}

.document.smudged {
    border-color: var(--rain-color);
    background-color: rgba(30, 144, 255, 0.2);
    opacity: 0.8;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.action-btn {
    padding: 15px;
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
    background-color: #000;
    color: #0f0;
    border: 2px solid var(--dmv-green);
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.action-btn:hover:not(:disabled) {
    transform: translateY(-2px);
}

.action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.action-btn:disabled:hover {
    background-color: #000;
    color: #0f0;
    box-shadow: none;
}

.queue-area {
    background-color: #111;
    border: 3px solid var(--dmv-blue);
    padding: 20px;
}

.queue-header {
    font-family: 'Press Start 2P', cursive;
    color: var(--dmv-yellow);
    font-size: 16px;
    margin-bottom: 15px;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 2px dashed var(--dmv-blue);
}

.queue-list {
    list-style-type: none;
    min-height: 300px;
}

.queue-person {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 10px;
    background-color: #222;
    border: 1px solid #444;
    transition: all 0.3s;
}

.queue-person.current {
    border: 2px solid var(--dmv-yellow);
    background-color: rgba(255, 255, 204, 0.1);
}

.queue-person.angry {
    border: 2px solid var(--dmv-red);
    background-color: rgba(139, 0, 0, 0.1);
}

.queue-person-name {
    font-weight: bold;
}

.queue-person-request {
    font-size: 12px;
    color: #aaa;
}

.stats-area {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .stats-area {
        grid-template-columns: repeat(2, 1fr);
    }
}

.stat-box {
    background-color: #111;
    border: 2px solid var(--dmv-brown);
    padding: 15px;
    text-align: center;
}

.stat-value {
    font-family: 'Press Start 2P', cursive;
    font-size: 24px;
    color: var(--dmv-yellow);
    margin: 10px 0;
}

.stat-label {
    font-size: 14px;
    color: #aaa;
}

.game-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.control-btn {
    padding: 15px 30px;
    font-family: 'Press Start 2P', cursive;
    font-size: 14px;
    background-color: #000;
    color: #fff;
    border: 2px solid var(--dmv-red);
    cursor: pointer;
    transition: all 0.2s;
}

.control-btn:hover {
    background-color: var(--dmv-red);
    transform: translateY(-2px);
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

.control-btn.start {
    border-color: var(--dmv-green);
}

.control-btn.start:hover {
    background-color: var(--dmv-green);
    box-shadow: 0 0 10px var(--crt-glow);
}

.message-area {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 300px;
    background-color: #000;
    border: 3px solid var(--dmv-blue);
    padding: 15px;
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
    color: #fff;
    z-index: 100;
    display: none;
}

.message-area.active {
    display: block;
    animation: fadeIn 0.5s;
}

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

.message-header {
    color: var(--dmv-yellow);
    margin-bottom: 10px;
    font-size: 14px;
}

.game-over {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    display: none;
}

.game-over.active {
    display: flex;
}

.game-over-content {
    background-color: #000;
    border: 5px solid var(--dmv-red);
    padding: 40px;
    text-align: center;
    max-width: 600px;
    width: 90%;
}

.game-over-title {
    font-family: 'Press Start 2P', cursive;
    color: var(--dmv-red);
    font-size: 32px;
    margin-bottom: 20px;
}

.game-over-score {
    font-family: 'Press Start 2P', cursive;
    color: var(--dmv-yellow);
    font-size: 24px;
    margin: 20px 0;
}

.nyc-logo {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-family: 'Press Start 2P', cursive;
    color: #fff;
    font-size: 10px;
    opacity: 0.7;
}

.flashing {
    animation: flash 1s infinite;
}

@keyframes flash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Evil messages styling */
.evil-message {
    color: #f00;
    border-color: var(--dmv-red);
}

.evil-message .message-header {
    color: #f00;
}

.good-message {
    color: #0f0;
    border-color: var(--good-color);
}

.good-message .message-header {
    color: #0f0;
}

/* Low resource effects */
.low-stamina .action-btn {
    opacity: 0.8;
    border-color: #666;
}

.low-stamina .action-btn:hover:not(:disabled) {
    transform: translateY(0);
}

.out-of-supplies .document {
    opacity: 0.5;
}

.urgent-bathroom .bathroom-btn {
    animation: pulse 0.5s infinite;
}

/* Weather-specific body effects */
body.rainy-day {
    background-color: #001122;
}

body.summer-day {
    background-color: #221100;
}

body.snow-day {
    background-color: #001122;
}

body.holiday-rush {
    background-color: #220000;
}

body.heat-wave {
    background-color: #221100;
}