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

:root {
  --primary: #4285F4;
  --secondary: #34A853;
  --accent: #EA4335;
  --bg-dark: #1a1a2e;
  --bg-card: #16213e;
  --text-primary: #eee;
  --text-secondary: #aaa;
}

body {
  font-family: 'Space Grotesk', sans-serif;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

.game-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 1600px;
  margin: 0 auto;
  padding: 1rem;
}

/* Header */
.game-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: rgba(255,255,255,0.05);
  border-radius: 16px;
  margin-bottom: 1rem;
  backdrop-filter: blur(10px);
  gap: 1rem;
  border: 1px solid rgba(255,255,255,0.1);
}

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

.level-badge {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
}

.player-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.25rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.resources {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.resource {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.resource-icon {
  font-size: 1.25rem;
}

.resource-value {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 1.1rem;
}

.resource-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.mini-bar {
  width: 60px;
  height: 8px;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  overflow: hidden;
}

.mini-bar-fill {
  height: 100%;
  transition: width 0.3s;
}

.mini-bar-fill.coffee {
  background: linear-gradient(90deg, #795548, #A67C52);
}

.mini-bar-fill.burnout {
  background: linear-gradient(90deg, #FFC107, #FF5722);
}

.mini-bar-fill.burnout.critical {
  background: linear-gradient(90deg, #FF5722, #F44336);
  animation: pulse 0.5s ease-in-out infinite;
}

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

/* Main Layout */
.game-main {
  display: grid;
  grid-template-columns: 250px 1fr 280px;
  gap: 1rem;
  flex: 1;
}

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

/* Action Panel */
.action-panel {
  background: rgba(255,255,255,0.03);
  border-radius: 16px;
  padding: 1rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.08);
}

.action-panel h2 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}

.action-btn:hover:not(.disabled) {
  background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05));
  transform: translateX(4px);
  border-color: var(--primary);
}

.action-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-color: var(--primary);
}

.action-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.action-btn.rest {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(99, 102, 241, 0.05));
}

.btn-icon {
  font-size: 1.5rem;
}

.btn-text {
  font-weight: 600;
  font-size: 0.9rem;
}

.btn-subtitle {
  font-size: 0.7rem;
  color: var(--text-secondary);
  display: block;
}

/* Office View - New Isometric Style */
.office-view {
  position: relative;
  min-height: 450px;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(180deg, #87CEEB 0%, #E0F4FF 50%, #B8E6B8 100%);
}

.isometric-office {
  width: 100%;
  height: 100%;
  min-height: 450px;
  position: relative;
  overflow: hidden;
}

/* Campus Background */
.campus-bg {
  position: absolute;
  inset: 0;
  opacity: 0.6;
}

.campus-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(2px) saturate(1.2);
}

/* Office Building */
.office-building {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
}

.building-roof {
  width: 200px;
  height: 30px;
  background: linear-gradient(135deg, #5B7DB1 0%, #3D5A80 100%);
  clip-path: polygon(10% 100%, 0% 0%, 100% 0%, 90% 100%);
  margin: 0 auto;
}

.building-body {
  width: 180px;
  height: 120px;
  background: linear-gradient(180deg, #E8E8E8 0%, #D0D0D0 100%);
  border-radius: 0 0 8px 8px;
  margin: 0 auto;
  position: relative;
  box-shadow: 
    inset -5px 0 15px rgba(0,0,0,0.1),
    5px 10px 20px rgba(0,0,0,0.3);
}

.window-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 15px;
}

.window {
  width: 40px;
  height: 35px;
  background: linear-gradient(180deg, #1a1a3e 0%, #2a2a5e 100%);
  border-radius: 3px;
  position: relative;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}

.window.lit {
  background: linear-gradient(180deg, #FFE4B5 0%, #FFA500 100%);
  box-shadow: 0 0 15px rgba(255,165,0,0.5);
}

.window.active {
  background: linear-gradient(180deg, #00FF00 0%, #00AA00 100%);
  box-shadow: 0 0 20px rgba(0,255,0,0.6);
  animation: screenGlow 2s ease-in-out infinite;
}

@keyframes screenGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(0,255,0,0.6); }
  50% { box-shadow: 0 0 30px rgba(0,255,0,0.9); }
}

.window-glow {
  position: absolute;
  inset: -5px;
  background: radial-gradient(circle, rgba(0,255,0,0.3) 0%, transparent 70%);
  animation: pulse 1s infinite;
}

.company-sign {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #333;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.sign-text {
  font-family: 'JetBrains Mono', monospace;
}

/* Monitor Head Character - Inspired by reference image 2 */
.monitor-head-character {
  position: absolute;
  bottom: 60px;
  right: 25%;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.monitor-head {
  position: relative;
}

.crt-frame {
  width: 70px;
  height: 55px;
  background: linear-gradient(135deg, #4a4a4a 0%, #2a2a2a 50%, #3a3a3a 100%);
  border-radius: 8px;
  padding: 6px;
  box-shadow: 
    0 4px 15px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.1);
}

.crt-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #001a00 0%, #003300 50%, #001a00 100%);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.screen-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent 0px,
    transparent 2px,
    rgba(0,0,0,0.3) 2px,
    rgba(0,0,0,0.3) 4px
  );
  pointer-events: none;
}

.screen-content-display {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: #00ff00;
  text-shadow: 0 0 10px #00ff00;
  z-index: 1;
}

.typing-code {
  animation: blink-cursor 0.5s infinite;
}

@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.idle-face {
  font-size: 0.9rem;
}

.head-wires {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
}

.wire {
  position: absolute;
  width: 3px;
  height: 15px;
  background: linear-gradient(180deg, #666 0%, #888 100%);
  border-radius: 2px;
}

.wire-1 { left: -10px; height: 12px; transform: rotate(-15deg); }
.wire-2 { left: 0; height: 18px; }
.wire-3 { left: 10px; height: 14px; transform: rotate(15deg); }

.character-torso {
  margin-top: -5px;
}

.shirt {
  width: 60px;
  height: 50px;
  background: linear-gradient(180deg, #C0392B 0%, #A93226 100%);
  border-radius: 0 0 15px 15px;
  position: relative;
}

.arms {
  position: absolute;
  top: 10px;
  width: 100%;
}

.arm {
  position: absolute;
  width: 12px;
  height: 35px;
  background: linear-gradient(180deg, #C0392B 0%, #A93226 100%);
  border-radius: 6px;
}

.arm.left { left: -8px; transform: rotate(-20deg); }
.arm.right { right: -8px; transform: rotate(20deg); }

.monitor-head-character.typing .arm {
  animation: type-arms 0.15s infinite alternate;
}

@keyframes type-arms {
  0% { transform: rotate(-25deg); }
  100% { transform: rotate(-15deg); }
}

/* Desk Setup */
.desk-setup {
  margin-top: 5px;
  position: relative;
}

.desk-surface {
  width: 140px;
  height: 20px;
  background: linear-gradient(180deg, #8B4513 0%, #654321 100%);
  border-radius: 3px;
  margin: 0 auto;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.work-monitors {
  position: absolute;
  top: -55px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
}

.work-monitor {
  width: 45px;
  height: 35px;
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
  border-radius: 4px;
  padding: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.work-monitor.main {
  width: 55px;
  height: 40px;
}

.work-monitor.side, .work-monitor.side-2 {
  width: 35px;
  height: 30px;
  opacity: 0.9;
}

.monitor-content {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #1e3a5f 0%, #0d1b2a 100%);
  border-radius: 2px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.4rem;
  color: #00ff00;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mech-keyboard {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2px;
  padding: 4px;
  background: #333;
  border-radius: 3px;
}

.mech-keyboard .key {
  width: 8px;
  height: 6px;
  background: linear-gradient(180deg, #555 0%, #444 100%);
  border-radius: 1px;
}

.mech-keyboard.active .key {
  animation: key-press 0.1s infinite;
}

@keyframes key-press {
  0%, 100% { transform: translateY(0); background: linear-gradient(180deg, #555 0%, #444 100%); }
  50% { transform: translateY(1px); background: linear-gradient(180deg, #666 0%, #555 100%); }
}

.espresso-machine {
  position: absolute;
  top: -25px;
  right: -30px;
  width: 25px;
  height: 30px;
  background: linear-gradient(180deg, #C0C0C0 0%, #888 100%);
  border-radius: 5px 5px 0 0;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

.espresso-machine::after {
  content: '☕';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.8rem;
}

/* Floating Elements */
.floating-elements {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}

.hot-air-balloon {
  position: absolute;
  top: 10%;
  left: 15%;
  width: 30px;
  height: 40px;
  background: linear-gradient(180deg, #FF6B6B 0%, #FFE66D 50%, #4ECDC4 100%);
  border-radius: 50% 50% 10% 10%;
  animation: float-balloon 8s ease-in-out infinite;
  opacity: 0.8;
}

.hot-air-balloon::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 15px;
  height: 8px;
  background: #8B4513;
  border-radius: 0 0 5px 5px;
}

@keyframes float-balloon {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-20px) rotate(2deg); }
}

.cloud {
  position: absolute;
  background: white;
  border-radius: 50px;
  opacity: 0.9;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.cloud-1 {
  top: 5%;
  right: 20%;
  width: 80px;
  height: 30px;
  animation: drift 20s linear infinite;
}

.cloud-2 {
  top: 15%;
  right: 40%;
  width: 60px;
  height: 25px;
  animation: drift 25s linear infinite reverse;
}

.cloud::before, .cloud::after {
  content: '';
  position: absolute;
  background: white;
  border-radius: 50%;
}

.cloud::before {
  width: 40px;
  height: 40px;
  top: -20px;
  left: 15px;
}

.cloud::after {
  width: 30px;
  height: 30px;
  top: -15px;
  right: 15px;
}

@keyframes drift {
  0% { transform: translateX(0); }
  100% { transform: translateX(100px); }
}

.bird {
  position: absolute;
  font-size: 1rem;
  animation: fly 10s linear infinite;
}

.bird-1 { top: 20%; animation-delay: 0s; }
.bird-2 { top: 25%; animation-delay: 3s; }

.bird::before {
  content: '🐦';
}

@keyframes fly {
  0% { left: -5%; }
  100% { left: 105%; }
}

/* Level-specific extras */
.google-extras, .amazon-extras, .startup-extras {
  position: absolute;
  z-index: 4;
}

.nap-pod-3d {
  position: absolute;
  bottom: 20%;
  left: 10%;
  width: 40px;
  height: 25px;
  background: linear-gradient(180deg, #fff 0%, #e0e0e0 100%);
  border-radius: 20px 20px 5px 5px;
  box-shadow: 3px 3px 10px rgba(0,0,0,0.2);
}

.snack-bar {
  position: absolute;
  bottom: 25%;
  left: 25%;
  width: 35px;
  height: 45px;
  background: linear-gradient(180deg, #4CAF50 0%, #388E3C 100%);
  border-radius: 5px;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.2);
}

.snack-bar::after {
  content: '🍿';
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
}

.colorful-bike {
  position: absolute;
  bottom: 15%;
  right: 15%;
  font-size: 1.5rem;
}

.colorful-bike::before {
  content: '🚲';
}

.package-stack {
  position: absolute;
  bottom: 20%;
  left: 8%;
  display: flex;
  flex-direction: column-reverse;
  gap: 2px;
}

.package {
  width: 30px;
  height: 20px;
  background: linear-gradient(180deg, #D4A574 0%, #8B6914 100%);
  border-radius: 2px;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
}

.pizza-boxes {
  position: absolute;
  bottom: 18%;
  right: 12%;
  width: 35px;
  height: 8px;
  background: repeating-linear-gradient(
    90deg,
    #ff6b6b 0px,
    #ff6b6b 33%,
    #fff 33%,
    #fff 34%
  );
  border-radius: 2px;
}

.energy-drinks {
  position: absolute;
  bottom: 22%;
  right: 8%;
  font-size: 0.8rem;
}

.energy-drinks::before {
  content: '🥤🥤🥤';
}

/* Stress and Burnout Effects */
.stress-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 20;
}

.stress-particle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #FF5722;
  border-radius: 50%;
  animation: stress-float 2s ease-out infinite;
}

.stress-particle:nth-child(1) { top: 30%; left: 60%; }
.stress-particle:nth-child(2) { top: 35%; left: 65%; }
.stress-particle:nth-child(3) { top: 40%; left: 55%; }
.stress-particle:nth-child(4) { top: 32%; left: 70%; }
.stress-particle:nth-child(5) { top: 38%; left: 58%; }

@keyframes stress-float {
  0% { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translateY(-30px) scale(0); opacity: 0; }
}

.burnout-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 30%, rgba(255,0,0,0.2) 100%);
  pointer-events: none;
  animation: burnout-pulse 1s ease-in-out infinite;
  z-index: 15;
}

@keyframes burnout-pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.8; }
}

.floating-text {
  position: absolute;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 1.25rem;
  color: #FFD700;
  animation: float-up 1.5s ease-out forwards;
  pointer-events: none;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  z-index: 25;
}

@keyframes float-up {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-50px); }
}

.burnout-warning {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #F44336, #FF5722);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 8px;
  font-weight: 700;
  animation: shake 0.3s ease-in-out infinite;
  z-index: 30;
}

@keyframes shake {
  0%, 100% { transform: translateX(-50%) rotate(0); }
  25% { transform: translateX(-50%) rotate(-2deg); }
  75% { transform: translateX(-50%) rotate(2deg); }
}

/* Slack Sidebar */
.slack-sidebar {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 160px;
  background: rgba(26, 29, 33, 0.95);
  border-radius: 8px;
  overflow: hidden;
  z-index: 20;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.slack-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.75rem;
  background: #3F0E40;
  color: white;
  font-size: 0.75rem;
}

.unread-badge {
  background: #E01E5A;
  color: white;
  padding: 0.1rem 0.4rem;
  border-radius: 10px;
  font-size: 0.6rem;
}

.slack-messages {
  padding: 0.5rem;
  max-height: 150px;
  overflow-y: auto;
}

.slack-message {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem;
  font-size: 0.65rem;
  color: #D1D2D3;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.slack-avatar {
  font-size: 0.8rem;
}

/* Stats Panel */
.stats-panel {
  background: rgba(255,255,255,0.03);
  border-radius: 16px;
  padding: 1rem;
  backdrop-filter: blur(10px);
  overflow-y: auto;
  max-height: calc(100vh - 250px);
  border: 1px solid rgba(255,255,255,0.08);
}

.stats-section {
  margin-bottom: 1rem;
}

.stats-section h2 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.85rem;
}

.stat-value {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  color: var(--primary);
}

.toggle-btn {
  width: 100%;
  padding: 0.75rem;
  background: rgba(255,255,255,0.05);
  border: none;
  border-radius: 8px;
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  transition: background 0.2s;
}

.toggle-btn:hover {
  background: rgba(255,255,255,0.1);
}

.upgrades-section, .achievements-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.upgrade-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
}

.upgrade-btn:hover:not(.owned):not(.locked) {
  background: rgba(255,255,255,0.1);
  border-color: var(--primary);
}

.upgrade-btn.owned {
  background: rgba(76, 175, 80, 0.2);
  border-color: #4CAF50;
}

.upgrade-btn.locked {
  opacity: 0.5;
  cursor: not-allowed;
}

.upgrade-icon {
  font-size: 1.5rem;
}

.upgrade-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.upgrade-name {
  font-size: 0.8rem;
  font-weight: 600;
}

.upgrade-desc {
  font-size: 0.65rem;
  color: var(--text-secondary);
}

.upgrade-cost {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: #FFD700;
}

.achievement {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
}

.achievement.locked {
  opacity: 0.4;
}

.achievement.unlocked {
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.achievement-icon {
  font-size: 1.25rem;
}

.achievement-info {
  display: flex;
  flex-direction: column;
}

.achievement-name {
  font-size: 0.8rem;
  font-weight: 600;
}

.achievement-desc {
  font-size: 0.65rem;
  color: var(--text-secondary);
}

/* Promotion Section */
.promotion-section {
  background: rgba(255,255,255,0.03);
  border-radius: 16px;
  padding: 1rem 1.5rem;
  margin-top: 1rem;
  border: 1px solid rgba(255,255,255,0.08);
}

.promotion-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}

.promotion-bar {
  height: 12px;
  background: rgba(255,255,255,0.1);
  border-radius: 6px;
  overflow: hidden;
}

.promotion-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width 0.5s;
}

.level-description {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-style: italic;
}

/* Meeting Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 1rem;
}

.meeting-modal {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 2rem;
  max-width: 500px;
  width: 100%;
  animation: slide-in 0.3s ease-out;
  border: 1px solid rgba(255,255,255,0.1);
}

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

.meeting-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  text-align: center;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.meeting-progress {
  height: 10px;
  background: rgba(255,255,255,0.1);
  border-radius: 5px;
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.meeting-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--secondary), var(--primary));
  transition: width 0.2s;
}

.meeting-time {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.meeting-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.meeting-actions button {
  padding: 0.75rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  color: white;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.2s;
}

.meeting-actions button:hover {
  background: rgba(255,255,255,0.2);
  transform: scale(1.02);
}

.bingo-card h3 {
  text-align: center;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
}

.bingo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.bingo-cell {
  padding: 0.5rem;
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
  text-align: center;
  font-size: 0.65rem;
  transition: all 0.2s;
}

.bingo-cell.marked {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  font-weight: 600;
}

/* Event Popup */
.event-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, var(--bg-card), #2a2a4a);
  border: 2px solid var(--primary);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  z-index: 200;
  animation: pop-in 0.3s ease-out;
}

@keyframes pop-in {
  from { transform: translate(-50%, -50%) scale(0.8); opacity: 0; }
  to { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

.event-popup h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.event-popup p {
  color: var(--text-secondary);
}

/* Notifications */
.notifications {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 150;
}

.notification {
  padding: 0.75rem 1.25rem;
  background: var(--bg-card);
  border-radius: 8px;
  border-left: 4px solid var(--primary);
  animation: slide-in-right 0.3s ease-out;
  font-size: 0.85rem;
  max-width: 300px;
}

@keyframes slide-in-right {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.notification.success {
  border-color: #4CAF50;
}

.notification.warning {
  border-color: #FF9800;
}

.notification.error {
  border-color: #F44336;
}

/* Footer */
.game-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.game-footer a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

.game-footer a:hover {
  color: var(--secondary);
}

.playtime {
  font-family: 'JetBrains Mono', monospace;
}

.reset-btn {
  padding: 0.5rem 1rem;
  background: rgba(244, 67, 54, 0.2);
  border: 1px solid #F44336;
  border-radius: 8px;
  color: #F44336;
  cursor: pointer;
  font-size: 0.75rem;
  transition: all 0.2s;
}

.reset-btn:hover {
  background: rgba(244, 67, 54, 0.3);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .game-header {
    flex-direction: column;
    text-align: center;
  }

  .resources {
    justify-content: center;
  }

  .game-main {
    grid-template-columns: 1fr;
  }

  .office-view {
    min-height: 350px;
  }

  .slack-sidebar {
    position: relative;
    width: 100%;
    margin-top: 1rem;
  }

  .action-panel, .stats-panel {
    order: 1;
  }

  .office-view {
    order: 0;
  }

  .meeting-actions {
    grid-template-columns: 1fr;
  }

  .game-footer {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .monitor-head-character {
    right: 15%;
    transform: scale(0.85);
  }

  .office-building {
    transform: translateX(-50%) scale(0.8);
  }
}