/* Modern CSS Reset & Global Styling */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-outer: #ffffff;
  --card-bg: #ffffff;
  --text-main: #2b303a;
  --text-muted: #677180;
  --border-light: #eaedf2;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --color-blue: #009FE3;
  --color-green: #00E65C;
}

html, body {
  height: 100%;
  width: 100%;
  font-family: var(--font-family);
  background-color: #ffffff;
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Full Screen Page Layout */
.page-wrapper {
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: #ffffff;
}

.card-container {
  background-color: #ffffff;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

/* Header & Logo */
.header {
  width: 100%;
  padding-top: 48px;
  padding-bottom: 24px;
}

.header-inner {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: inline-flex;
  align-items: center;
  border: 1px solid #111111;
  padding: 3px;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.logo:hover {
  transform: scale(1.02);
}

.logo-box {
  background-color: #111111;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  padding: 6px 12px;
  text-transform: uppercase;
}

.logo-text {
  background-color: transparent;
  color: #111111;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  padding: 6px 12px;
  text-transform: uppercase;
}

/* Main Content Section */
.main-content {
  text-align: center;
  padding: 20px 0 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
  width: 100%;
}

.headline {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.25;
  color: #2b303a;
  letter-spacing: -0.6px;
  margin-bottom: 20px;
  padding: 0 20px;
}

/* Mini-Game Header Launcher Button */
.game-trigger-btn {
  background: #ffffff;
  color: #111111;
  border: 1px solid #111111;
  padding: 8px 16px;
  border-radius: 4px;
  font-family: var(--font-family);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.game-trigger-btn:hover {
  background: #111111;
  color: #ffffff;
  transform: scale(1.02);
}

.btn-icon {
  font-size: 13px;
}

/* Illustration Container */
.illustration-container {
  position: relative;
}

/* Light Minimalist Pro-Luce Game Overlay Modal */
.game-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(17, 24, 39, 0.45);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.game-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.game-modal-card {
  background: #ffffff;
  border: 1px solid #eaedf2;
  border-radius: 12px;
  width: 94%;
  max-width: 820px;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  color: #2b303a;
}

.game-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.game-title {
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #2b303a;
  letter-spacing: -0.2px;
}

.game-badge {
  background: #111111;
  color: #ffffff;
  font-size: 9px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.15em;
}

.game-highscore {
  font-size: 13px;
  font-weight: 700;
  color: #009FE3;
}

.game-close-btn {
  background: transparent;
  border: none;
  color: #647082;
  font-size: 26px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.15s ease;
}

.game-close-btn:hover {
  color: #111111;
}

.game-scoreboard {
  display: flex;
  justify-content: space-between;
  background: #f4f6f9;
  border: 1px solid #eaedf2;
  padding: 10px 16px;
  border-radius: 8px;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.score-badge { color: #009FE3; }
.combo-badge { color: #00B848; }
.lives-badge { color: #E63946; }

.canvas-wrapper {
  position: relative;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #eaedf2;
  background: #f8fafc;
}

#game-canvas {
  width: 100%;
  height: auto;
  aspect-ratio: 800 / 520;
  display: block;
  background: #f8fafc;
}

/* Light Theme Game Over Screen */
.game-over-modal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.game-over-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.game-over-modal h2 {
  font-size: 30px;
  font-weight: 800;
  color: #2b303a;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.final-score-text {
  font-size: 18px;
  color: #009FE3;
  font-weight: 700;
  margin-bottom: 6px;
}

.final-highscore-text {
  font-size: 14px;
  color: #647082;
  margin-bottom: 24px;
}

.restart-btn {
  background: #111111;
  color: #ffffff;
  border: none;
  padding: 12px 28px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
}

.restart-btn:hover {
  background: #009FE3;
  transform: scale(1.02);
}

/* Controls Bar */
.game-controls-bar {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #647082;
}

.touch-controls {
  display: none;
  gap: 10px;
}

.touch-btn {
  background: #111111;
  color: #ffffff;
  border: none;
  padding: 10px 18px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.mobile-game-btn {
  display: none;
}

/* Media Queries for Mobile Responsiveness */
@media (max-width: 768px) {
  .header {
    padding-top: 28px;
    padding-bottom: 16px;
  }

  .header-inner {
    padding: 0 20px;
    justify-content: center;
  }

  /* Hide header button on mobile */
  .header .game-trigger-btn {
    display: none;
  }

  /* Show game button below illustration switches on mobile */
  .mobile-game-btn {
    display: inline-flex;
    margin-top: 16px;
    margin-bottom: 24px;
    padding: 10px 22px;
    font-size: 11px;
    border-radius: 20px;
    background: #111111;
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  }

  .headline {
    font-size: 28px;
    letter-spacing: -0.4px;
    margin-bottom: 14px;
  }

  .subtitle {
    font-size: 14px;
    margin-bottom: 24px;
  }

  .plug-illustration {
    height: 150px;
  }

  .footer {
    padding: 20px 24px;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }

  .contact-info {
    flex-direction: column;
    gap: 8px;
  }

  .touch-controls {
    display: flex;
    width: 100%;
    gap: 12px;
  }

  .touch-btn {
    flex: 1;
    padding: 14px 0;
    font-size: 13px;
    border-radius: 6px;
  }

  .controls-hint {
    display: none;
  }
}



/* Plug Vector Illustration (Edge-To-Edge Cables, Perfect Plug Geometry) */
.illustration-container {
  width: 100%;
  margin-top: 10px;
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.plug-illustration {
  width: 100%;
  max-width: 720px;
  height: 200px;
  display: block;
  overflow: visible !important;
}

/* Modern Entry & Motion Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Plug Magnetic Pulse Animation */
.plug-left {
  animation: plugPulseLeft 4s ease-in-out infinite alternate;
}

.plug-right {
  animation: plugPulseRight 4s ease-in-out infinite alternate;
}

@keyframes plugPulseLeft {
  0% { transform: translateX(0px); }
  50% { transform: translateX(4px); }
  100% { transform: translateX(0px); }
}

@keyframes plugPulseRight {
  0% { transform: translateX(0px); }
  50% { transform: translateX(-4px); }
  100% { transform: translateX(0px); }
}

/* Spark Micro-Animations */
.spark-left {
  animation: floatSparkLeft 2.5s ease-in-out infinite alternate;
}

.spark-right {
  animation: floatSparkRight 2.5s ease-in-out infinite alternate;
}

@keyframes floatSparkLeft {
  0% { transform: translateY(0px) scale(1); opacity: 0.85; }
  100% { transform: translateY(-6px) scale(1.1); opacity: 1; }
}

@keyframes floatSparkRight {
  0% { transform: translateY(0px) scale(1); opacity: 0.85; }
  100% { transform: translateY(6px) scale(1.1); opacity: 1; }
}

/* Page Entry Animations */
.header {
  animation: fadeInDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.headline {
  animation: fadeInUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

.subtitle {
  animation: fadeInUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.illustration-container {
  animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.45s both;
}

.footer {
  animation: fadeIn 1s ease-out 0.6s both;
}

/* Footer Section */
.footer {
  border-top: 1px solid var(--border-light);
  padding: 24px 60px;
  background-color: #ffffff;
  width: 100%;
}

.footer-content {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13.5px;
  color: var(--text-muted);
  max-width: 1320px;
  margin: 0 auto;
  width: 100%;
}

.contact-info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.contact-label {
  color: #647082;
  font-weight: 400;
}

.contact-item {
  display: flex;
  gap: 6px;
}

.item-label {
  color: #647082;
}

.item-address {
  color: #2c323e;
  font-weight: 500;
}

.item-value {
  color: #2c323e;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s ease;
}

.item-value:hover {
  color: #009FE3;
}

/* Social Media Buttons */
.social-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #dcdfe6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8c96a6;
  text-decoration: none;
  transition: all 0.2s ease;
  background-color: #ffffff;
}

.social-icon-btn:hover {
  border-color: #b0b7c6;
  color: #2c323e;
  background-color: #f7f9fc;
  transform: translateY(-1px);
}

/* Media Queries for Mobile Responsiveness */
@media (max-width: 768px) {
  .header {
    padding-top: 32px;
  }

  .headline {
    font-size: 30px;
  }

  .subtitle {
    font-size: 14.5px;
  }

  .footer {
    padding: 20px 24px;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }

  .contact-info {
    flex-direction: column;
    gap: 8px;
  }
}


