:root {
    --ice-blue: #a8d8ea;
    --dark-blue: #0a1128;
    --blue-900: #0d1b3e;
    --blue-800: #0f2252;
    --blue-700: #122c6a;
    --blue-600: #143785;
    --blue-500: #1745a9;
    --dark-accent: #141e30;
    --highlight: #51cbee;
    --highlight-glow: rgba(81, 203, 238, 0.5);
    --warning: #ff9800;
    --danger: #ff5a5f;
    --success: #4caf50;
    --critical: #ff2c36;
    --text: #e9ecef;
    --text-dim: #b0b7be;
    --grid-line: rgba(81, 203, 238, 0.15);
    --card-bg: rgba(10, 17, 40, 0.7);
    --modal-bg: rgba(13, 27, 62, 0.95);
    --terminal-bg: rgba(0, 0, 0, 0.7);
    --frost: rgba(255, 255, 255, 0.05);
}

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

body {
    margin: 0;
    padding: 0;
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    background-color: var(--dark-blue);
    color: var(--text);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 30px 30px, 20px 20px;
    overflow-x: hidden;
    line-height: 1.5;
}

h1, h2, h3, h4 {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    letter-spacing: 1px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem;
}

/* Header */
header {
    padding: 1.5rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--grid-line);
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    border: 2px solid var(--highlight);
    border-radius: 50%;
    margin-right: 1rem;
    position: relative;
    overflow: hidden;
}

.logo-icon::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    background-color: var(--highlight);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--highlight-glow);
}

h1 {
    font-size: 2.5rem;
    margin: 0;
    color: var(--highlight);
    text-shadow: 0 0 10px var(--highlight-glow);
}

header p {
    text-align: center;
    color: var(--text-dim);
    margin-bottom: 1rem;
}

.status-bar {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 0.5rem 1rem;
    background-color: var(--blue-900);
    border: 1px solid var(--grid-line);
    border-radius: 5px;
}

.status-item {
    display: flex;
    align-items: center;
}

.status-label {
    color: var(--text-dim);
    margin-right: 0.5rem;
}

.status-value {
    font-weight: bold;
}

.status-value.operational {
    color: var(--success);
}

.status-value.warning {
    color: var(--warning);
}

/* Main Grid Layout */
.main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    gap: 1.5rem;
    grid-template-areas: 
        "terminal map"
        "expendables expendables"
        "controls controls"
        "mission resources";
}

.terminal-section {
    grid-area: terminal;
}

.colony-map-section {
    grid-area: map;
}

.expendables-section {
    grid-area: expendables;
}

.controls-section {
    grid-area: controls;
}

.mission-section {
    grid-area: mission;
}

.resources-section {
    grid-area: resources;
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.section-header h2 {
    color: var(--highlight);
    font-size: 1.5rem;
    border-bottom: 2px solid var(--highlight);
    padding-bottom: 0.25rem;
    text-shadow: 0 0 5px var(--highlight-glow);
}

.header-controls {
    display: flex;
    gap: 0.5rem;
}

/* Terminal */
.terminal {
    background-color: var(--terminal-bg);
    border-radius: 5px;
    padding: 1rem;
    font-family: 'Share Tech Mono', monospace;
    border: 1px solid var(--highlight);
    box-shadow: 0 0 15px rgba(81, 203, 238, 0.3);
    height: 400px;
    display: flex;
    flex-direction: column;
}

.terminal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--highlight);
    padding-bottom: 0.5rem;
}

.terminal-indicators {
    display: flex;
    gap: 5px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.indicator.green {
    background-color: var(--success);
}

.indicator.yellow {
    background-color: var(--warning);
}

.indicator.red {
    background-color: var(--danger);
}

.terminal-content {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--highlight) var(--dark-blue);
}

.terminal-content::-webkit-scrollbar {
    width: 6px;
}

.terminal-content::-webkit-scrollbar-thumb {
    background-color: var(--highlight);
    border-radius: 3px;
}

.terminal-content::-webkit-scrollbar-track {
    background-color: var(--dark-blue);
}

.line {
    margin-bottom: 0.5rem;
    word-wrap: break-word;
}

.prompt {
    color: var(--highlight);
}

.terminal-input {
    display: flex;
    margin-top: 1rem;
    border-top: 1px solid var(--highlight);
    padding-top: 0.5rem;
    position: relative;
}

.terminal-input span {
    color: var(--highlight);
    margin-right: 0.5rem;
}

.terminal-input input {
    flex-grow: 1;
    background: transparent;
    border: none;
    color: var(--text);
    font-family: 'Share Tech Mono', monospace;
    font-size: 1rem;
    outline: none;
}

.command-suggestions {
    position: absolute;
    bottom: 100%;
    left: 0;
    width: 100%;
    background-color: var(--blue-800);
    border: 1px solid var(--highlight);
    border-radius: 3px;
    max-height: 150px;
    overflow-y: auto;
    z-index: 10;
    display: none;
}

.suggestion-item {
    padding: 0.5rem 1rem;
    cursor: pointer;
}

.suggestion-item:hover {
    background-color: var(--blue-700);
}

.suggestion-item.selected {
    background-color: var(--blue-600);
}

/* Colony Map */
.colony-map {
    background-color: var(--card-bg);
    border: 1px solid var(--highlight);
    border-radius: 5px;
    padding: 1rem;
    height: 400px;
    display: flex;
    flex-direction: column;
}

.map-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(8, 1fr);
    gap: 2px;
    margin-bottom: 1rem;
}

.map-cell {
    background-color: var(--blue-900);
    border-radius: 3px;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.map-cell:hover {
    transform: scale(1.05);
    z-index: 2;
    box-shadow: 0 0 8px var(--highlight-glow);
}

.map-cell.safe {
    background-color: rgba(76, 175, 80, 0.3);
}

.map-cell.warning {
    background-color: rgba(255, 152, 0, 0.3);
}

.map-cell.danger {
    background-color: rgba(255, 90, 95, 0.3);
}

.map-cell.unknown {
    background-color: rgba(255, 255, 255, 0.1);
}

.map-cell.expendable {
    border: 2px solid var(--highlight);
}

.map-cell .cell-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.7rem;
    color: var(--text);
}

.map-legend {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-right: 1rem;
    font-size: 0.8rem;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    margin-right: 5px;
}

.legend-color.safe {
    background-color: rgba(76, 175, 80, 0.5);
}

.legend-color.warning {
    background-color: rgba(255, 152, 0, 0.5);
}

.legend-color.danger {
    background-color: rgba(255, 90, 95, 0.5);
}

.legend-color.unknown {
    background-color: rgba(255, 255, 255, 0.2);
}

.legend-color.expendable {
    border: 2px solid var(--highlight);
    background-color: transparent;
}

/* Expendable Status */
.mickey-status {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.mickey-card {
    background-color: var(--card-bg);
    border-radius: 5px;
    padding: 1.25rem;
    flex: 1;
    border: 1px solid var(--highlight);
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto 1fr auto;
    gap: 1rem;
    grid-template-areas:
        "header header"
        "info info"
        "vitals notes"
        "actions actions";
}

.mickey-header {
    grid-area: header;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.mickey-portrait {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--blue-700);
    border: 2px solid var(--highlight);
    color: var(--highlight);
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 0 10px var(--highlight-glow);
}

.mickey-info {
    grid-area: info;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
}

.info-row {
    flex-basis: 30%;
    margin-bottom: 0.5rem;
}

.info-label {
    color: var(--text-dim);
    font-size: 0.9rem;
    display: block;
}

.vitals-container {
    grid-area: vitals;
}

.vital-row {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.vital-label {
    width: 100px;
    color: var(--text-dim);
    font-size: 0.9rem;
}

.stats-bar {
    flex: 1;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin: 0 0.75rem;
}

.stats-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease, background-color 0.5s ease;
}

.health-fill {
    background-color: var(--success);
}

.energy-fill {
    background-color: var(--warning);
}

.memory-fill {
    background-color: var(--highlight);
}

.temp-fill {
    background-color: #4ea8de;
}

.vital-value {
    width: 50px;
    text-align: right;
    font-size: 0.9rem;
}

.mickey-notes {
    grid-area: notes;
    padding: 0.75rem;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    height: 100%;
}

.mickey-notes h4 {
    color: var(--highlight);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.mickey-notes p {
    font-size: 0.9rem;
    line-height: 1.4;
}

.mickey-actions {
    grid-area: actions;
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
}

.mickey-btn {
    background-color: var(--blue-700);
    color: var(--text);
    border: 1px solid var(--highlight);
    border-radius: 3px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-family: 'Share Tech Mono', monospace;
    flex: 1;
    margin: 0 0.25rem;
    transition: all 0.3s ease;
}

.mickey-btn:hover {
    background-color: var(--blue-600);
    box-shadow: 0 0 8px var(--highlight-glow);
}

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

.mickey-btn.danger:hover {
    background-color: var(--danger);
    color: white;
    box-shadow: 0 0 8px rgba(255, 90, 95, 0.5);
}

.status-indicator {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 15px;
    height: 15px;
    border-radius: 50%;
}

.active {
    background-color: var(--success);
    box-shadow: 0 0 10px var(--success);
}

.inactive {
    background-color: var(--danger);
    box-shadow: 0 0 10px var(--danger);
}

/* Controls Section */
.controls {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.control-panel {
    background-color: var(--card-bg);
    border-radius: 5px;
    flex: 1;
    border: 1px solid var(--highlight);
    overflow: hidden;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.25rem;
    background-color: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--grid-line);
}

.panel-header h3 {
    margin: 0;
    color: var(--highlight);
    font-size: 1.25rem;
}

.panel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-left: 0.5rem;
}

.panel-indicator.operational {
    background-color: var(--success);
    box-shadow: 0 0 5px var(--success);
}

.panel-indicator.warning {
    background-color: var(--warning);
    box-shadow: 0 0 5px var(--warning);
}

.panel-indicator.critical {
    background-color: var(--danger);
    box-shadow: 0 0 5px var(--danger);
}

.btn-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 1.25rem;
}

.glow-btn {
    background-color: var(--blue-700);
    color: var(--text);
    border: 1px solid var(--highlight);
    border-radius: 5px;
    padding: 0.75rem 1rem;
    cursor: pointer;
    font-family: 'Share Tech Mono', monospace;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.glow-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(81, 203, 238, 0.2),
        transparent
    );
    transition: all 0.6s ease;
}

.glow-btn:hover {
    background-color: var(--blue-600);
    box-shadow: 0 0 15px var(--highlight-glow);
}

.glow-btn:hover::before {
    left: 100%;
}

.btn-icon {
    width: 20px;
    height: 20px;
    margin-right: 0.5rem;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.scan-icon::before {
    content: "⚡";
}

.explore-icon::before {
    content: "🔍";
}

.contact-icon::before {
    content: "📡";
}

.deploy-icon::before {
    content: "🚀";
}

.resources-icon::before {
    content: "📊";
}

.weather-icon::before {
    content: "❄️";
}

.alert-icon::before {
    content: "⚠️";
}

.protocol-icon::before {
    content: "🔐";
}

.btn-small {
    background-color: var(--blue-800);
    color: var(--text);
    border: 1px solid var(--highlight);
    border-radius: 3px;
    padding: 0.25rem 0.75rem;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-small:hover {
    background-color: var(--blue-700);
    box-shadow: 0 0 8px var(--highlight-glow);
}

/* Mission Log */
.mission-log {
    background-color: var(--card-bg);
    border-radius: 5px;
    padding: 1rem;
    border: 1px solid var(--highlight);
    height: 400px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--highlight) var(--dark-blue);
}

.mission-log::-webkit-scrollbar {
    width: 6px;
}

.mission-log::-webkit-scrollbar-thumb {
    background-color: var(--highlight);
    border-radius: 3px;
}

.mission-log::-webkit-scrollbar-track {
    background-color: var(--dark-blue);
}

.mission-entry {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
}

.mission-entry:last-child {
    border-bottom: none;
}

.entry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.date {
    color: var(--highlight);
    font-size: 0.9rem;
}

.entry-tag {
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: bold;
}

.entry-tag.normal {
    background-color: rgba(76, 175, 80, 0.2);
    color: var(--success);
}

.entry-tag.warning {
    background-color: rgba(255, 152, 0, 0.2);
    color: var(--warning);
}

.entry-tag.critical {
    background-color: rgba(255, 44, 54, 0.2);
    color: var(--danger);
}

.filter-controls {
    display: flex;
    gap: 0.5rem;
}

.filter-btn {
    background-color: var(--blue-800);
    color: var(--text);
    border: 1px solid var(--highlight);
    border-radius: 3px;
    padding: 0.25rem 0.75rem;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--blue-600);
    box-shadow: 0 0 8px var(--highlight-glow);
}

/* Resources Section */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 0.5rem;
}

.resource-card {
    background-color: var(--card-bg);
    border-radius: 5px;
    padding: 1rem;
    border: 1px solid var(--grid-line);
    display: flex;
    align-items: center;
}

.resource-card.warning {
    border-color: var(--warning);
}

.resource-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--blue-700);
    margin-right: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.food-icon::before {
    content: "🍽️";
}

.water-icon::before {
    content: "💧";
}

.fuel-icon::before {
    content: "⚡";
}

.medical-icon::before {
    content: "🩺";
}

.resource-info {
    flex: 1;
}

.resource-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.resource-bar {
    height: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.resource-fill {
    height: 100%;
    background-color: var(--success);
    border-radius: 4px;
}

.resource-fill.warning {
    background-color: var(--warning);
}

.resource-details {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.resource-percent {
    font-weight: bold;
}

.resource-status {
    color: var(--danger);
    font-weight: bold;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--modal-bg);
    border: 2px solid var(--highlight);
    border-radius: 5px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 0 20px var(--highlight-glow);
}

.modal-content.danger {
    border-color: var(--danger);
    box-shadow: 0 0 20px rgba(255, 90, 95, 0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--grid-line);
}

.modal-header h2 {
    margin: 0;
    color: var(--highlight);
    border: none;
    padding: 0;
}

.modal-content.danger .modal-header h2 {
    color: var(--danger);
}

.close-btn {
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: var(--highlight);
}

.modal-content.danger .close-btn:hover {
    color: var(--danger);
}

.modal-body {
    padding: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dim);
}

.form-group select, .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--blue-800);
    border: 1px solid var(--grid-line);
    border-radius: 5px;
    color: var(--text);
    font-family: 'Share Tech Mono', monospace;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.modal-footer {
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    border-top: 1px solid var(--grid-line);
}

/* Alert System */
.creeper-alert {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 0, 0, 0.15);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    animation: pulse 2s infinite;
    backdrop-filter: blur(3px);
}

.alert-content {
    background-color: rgba(0, 0, 0, 0.9);
    border: 2px solid var(--danger);
    border-radius: 5px;
    padding: 2rem;
    max-width: 600px;
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
    box-shadow: 0 0 30px rgba(255, 44, 54, 0.6);
}

.alert-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.alert-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--danger);
    margin-right: 1rem;
    position: relative;
    box-shadow: 0 0 15px var(--danger);
}

.alert-icon::before, .alert-icon::after {
    content: "";
    position: absolute;
    background-color: white;
}

.alert-icon::before {
    width: 6px;
    height: 20px;
    border-radius: 3px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.alert-icon::after {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
}

.alert-header h2 {
    color: var(--danger);
    margin: 0;
    font-size: 2rem;
    border: none;
    text-shadow: 0 0 10px var(--danger);
}

.alert-body {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.5;
}

.alert-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

@keyframes pulse {
    0% { background-color: rgba(255, 0, 0, 0.1); }
    50% { background-color: rgba(255, 0, 0, 0.2); }
    100% { background-color: rgba(255, 0, 0, 0.1); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Footer */
footer {
    margin-top: 3rem;
    border-top: 1px solid var(--grid-line);
    padding-top: 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.footer-section {
    flex: 1;
    min-width: 200px;
    margin-bottom: 1.5rem;
}

.footer-section h3 {
    color: var(--highlight);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p {
    margin-bottom: 0.5rem;
    color: var(--text-dim);
    font-size: 0.9rem;
}

.footer-legal {
    text-align: center;
    padding: 1rem 0;
    border-top: 1px solid var(--grid-line);
    font-size: 0.8rem;
    color: var(--text-dim);
}

/* Snow effect */
.snow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.snowflake {
    position: absolute;
    background-color: white;
    border-radius: 50%;
    opacity: 0.8;
    animation-name: snowfall;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes snowfall {
    0% {
        transform: translateY(-5vh) translateX(0);
    }
    100% {
        transform: translateY(105vh) translateX(20px);
    }
}

.frost-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    background-image: 
        linear-gradient(135deg, var(--frost) 25%, transparent 25%),
        linear-gradient(225deg, var(--frost) 25%, transparent 25%),
        linear-gradient(45deg, var(--frost) 25%, transparent 25%),
        linear-gradient(315deg, var(--frost) 25%, transparent 25%);
    background-position: 10px 0, 10px 0, 0 0, 0 0;
    background-size: 20px 20px;
    background-repeat: repeat;
}

/* Error, Warning, Success messages */
.error {
    color: var(--danger);
}

.success {
    color: var(--success);
}

.warning {
    color: var(--warning);
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .main-grid {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "terminal"
            "map"
            "expendables"
            "controls"
            "mission"
            "resources";
    }
    
    .mickey-status {
        flex-direction: column;
    }
    
    .mickey-card {
        margin-bottom: 1rem;
    }
    
    .controls {
        flex-direction: column;
    }
    
    .control-panel {
        margin-bottom: 1rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .status-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .status-item {
        margin-bottom: 0.5rem;
    }
    
    .mickey-card {
        grid-template-columns: 1fr;
        grid-template-areas:
            "header"
            "info"
            "vitals"
            "notes"
            "actions";
    }
    
    .btn-grid {
        grid-template-columns: 1fr;
    }
    
    .resources-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .terminal {
        height: 300px;
    }
    
    .colony-map {
        height: 300px;
    }
    
    .mission-log {
        height: 300px;
    }
}