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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #111827;
  min-height: 100vh;
  padding: 20px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  background: #1f2937;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

header {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

header a {
  text-decoration: none;
  display: inline-block;
  transition: transform 0.3s;
}

header a:hover {
  transform: scale(1.05);
}

.logo {
  max-width: 200px;
  height: auto;
  margin-bottom: 20px;
}

h1 {
  color: #ffffff;
  font-size: 2.5em;
  margin-bottom: 10px;
  font-weight: 700;
  background: linear-gradient(to right, #88bae1, #0066cc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

header p {
  color: #9ca3af;
  font-size: 1.1em;
}

.controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.controls label {
  font-weight: 600;
  color: #e5e7eb;
}

#jobSelector {
  padding: 10px 15px;
  font-size: 16px;
  border: 2px solid #0066cc;
  border-radius: 8px;
  background: #374151;
  color: #ffffff;
  cursor: pointer;
  min-width: 200px;
  transition: all 0.3s;
}

#jobSelector:hover {
  background: #4b5563;
  border-color: #88bae1;
}

#jobSelector option {
  background: #374151;
  color: #ffffff;
}

#resetBtn {
  padding: 10px 25px;
  font-size: 16px;
  background: #0066cc;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s;
}

#resetBtn:hover {
  background: #0052a3;
}

.progress-container {
  margin-bottom: 20px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-weight: 600;
  color: #e5e7eb;
}

.progress-bar {
  width: 100%;
  height: 30px;
  background: #374151;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #0066cc 0%, #88bae1 100%);
  transition: width 0.3s ease;
  border-radius: 15px;
}

.canvas-container {
  position: relative;
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

#gameCanvas {
  border: 3px solid #0066cc;
  border-radius: 10px;
  cursor: crosshair;
  max-width: 100%;
  height: auto;
  box-shadow: 0 5px 15px rgba(0, 102, 204, 0.3);
}

.completion-message {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 102, 204, 0.95);
  color: white;
  padding: 30px 50px;
  border-radius: 15px;
  font-size: 1.8em;
  font-weight: bold;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.completion-message.show {
  opacity: 1;
}

.instructions {
  background: #374151;
  padding: 20px;
  border-radius: 10px;
  margin-top: 20px;
  border: 1px solid rgba(136, 186, 225, 0.2);
}

.instructions h3 {
  color: #88bae1;
  margin-bottom: 15px;
  font-weight: 600;
}

.instructions ul {
  list-style-position: inside;
  color: #d1d5db;
  line-height: 1.8;
}

.instructions li {
  margin-bottom: 8px;
}

.instructions li::marker {
  color: #0066cc;
}

.about-section {
  background: #374151;
  padding: 30px;
  border-radius: 10px;
  margin-top: 30px;
  border: 1px solid rgba(136, 186, 225, 0.2);
}

.about-section h3 {
  color: #88bae1;
  margin-bottom: 20px;
  font-weight: 600;
  font-size: 1.5em;
}

.about-section p {
  color: #d1d5db;
  line-height: 1.8;
  margin-bottom: 15px;
  font-size: 1.05em;
}

.cta-section {
  text-align: center;
  margin-top: 30px;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-button {
  display: inline-block;
  padding: 15px 40px;
  font-size: 1.2em;
  background: linear-gradient(135deg, #0066cc 0%, #88bae1 100%);
  color: white;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 700;
  transition: all 0.3s;
  box-shadow: 0 5px 15px rgba(0, 102, 204, 0.4);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 102, 204, 0.6);
  background: linear-gradient(135deg, #0052a3 0%, #6ba0c9 100%);
}

.cta-subtext {
  color: #9ca3af;
  font-size: 0.95em;
  margin-top: 15px;
  font-style: italic;
}

@media (max-width: 768px) {
  .container {
    padding: 20px;
  }

  h1 {
    font-size: 1.8em;
  }

  .controls {
    flex-direction: column;
  }

  #jobSelector {
    width: 100%;
  }
}
