* {
  margin: 0;
  padding: 0;
}

html {
  background: linear-gradient(135deg, #0a0a1a 0%, #1a1a2e 30%, #16213e 60%, #0f0f23 100%);
  color: #eee;
  font-family: 'SF Mono', Menlo, Noto Mono;
  scroll-behavior: smooth;
}

html, body {
  overflow: hidden;
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
}

#phaser-game {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: auto;
}

#phaser-game canvas {
  pointer-events: auto;
}

.profile-toggle-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  width: 50px;
  height: 50px;
  border: 2px solid #64ffda;
  border-radius: 50%;
  background: rgba(10, 10, 26, 0.9);
  color: #64ffda;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(100, 255, 218, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
}

.clock-widget {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1000;
  display: none;
}

.clock-widget .clock-container {
  text-align: left;
}

.clock-time {
  color: #ccd6f6;
  animation: slideUp 0.8s ease-out;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  font-weight: bold;
  font-size: 2.5rem;
  margin-bottom: 5px;
}

.clock-date {
  color: #8892b0;
  animation: slideUp 1s ease-out;
  font-weight: 500;
  font-size: 1.25rem;
}

.profile-toggle-btn:hover {
  background: rgba(100, 255, 218, 0.1);
  border-color: #ffd700;
  color: #ffd700;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(100, 255, 218, 0.4);
}

.profile-toggle-btn:active {
  transform: scale(0.95);
}

.pop-box {
  height: 100%;
  left: 0;
  overflow: hidden;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 200;
}

.pop-box .pop-container {
  height: 100%;
  left: 0;
  position: relative;
  text-align: center;
  top: 0;
  width: 100%;
}

.pop-box .pop-container .pop-pic {
  height: 40%;
  margin-top: 7%;
  padding: 1%;
  animation: fadeIn 1s ease-in;
}

.pop-box .pop-container .pop-pic img {
  height: 100%;
  border-radius: 100%;
  border: 3px solid #64ffda;
  box-shadow: 0 0 20px rgba(100, 255, 218, 0.3), 0 0 40px rgba(100, 255, 218, 0.1);
  transition: all 0.5s ease;
  cursor: pointer;
}

.pop-box .pop-container .pop-pic img:hover {
  transform: scale(1.08) rotate(5deg);
  box-shadow: 0 0 40px rgba(100, 255, 218, 0.6), 0 0 80px rgba(255, 215, 0, 0.4);
  border: 3px solid #ffd700;
}

.pop-box .pop-container .pop-name {
  color: #ccd6f6;
  padding: 2%;
  animation: slideUp 0.8s ease-out;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  font-weight: bold;
}

.pop-box .pop-container .pop-bio {
  color: #8892b0;
  padding: 2%;
  animation: slideUp 1s ease-out;
  font-weight: 500;
  font-size: 1.25rem;
}

.pop-box .pop-container .pop-bio img {
  height: 25px;
}

.pop-box .pop-container .pop-sns {
  color: #ccd6f6;
  padding: 2%;
  animation: slideUp 1.2s ease-out;
  font-size: 3rem;
}

.pop-box .pop-container .pop-sns a {
  border-radius: 50%;
  color: #64ffda;
  margin: 0 15px;
  padding: 10px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: inline-block;
  cursor: pointer;
}

.pop-box .pop-container .pop-sns a:hover {
  transform: translateY(-8px) scale(1.2) rotate(10deg);
  color: #ffd700;
  background-color: rgba(100, 255, 218, 0.2);
  box-shadow: 0 8px 25px rgba(100, 255, 218, 0.4);
  text-decoration: none;
}

.aws-hero-link {
  color: #64ffda;
  text-decoration: none;
  transition: all 0.3s ease;
}

.aws-hero-link:hover {
  color: #ffd700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

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

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

@media (max-width: 768px) {
  .pop-box .pop-container .pop-pic {
    height: 30%;
    margin-top: 15%;
  }

  .pop-box .pop-container .pop-name {
    font-size: 1.5rem;
  }

  .pop-box .pop-container .pop-bio {
    font-size: 1rem;
  }

  .pop-box .pop-container .pop-sns {
    font-size: 1.5rem;
  }

  .pop-box .pop-container .pop-sns a:hover {
    transform: translateY(-5px) scale(1.1) rotate(5deg);
  }
}

@media (max-width: 480px) {
  .pop-box .pop-container .pop-pic {
    height: 25%;
    margin-top: 20%;
  }

  .pop-box .pop-container .pop-name {
    font-size: 1.3rem;
    padding: 3%;
  }

  .pop-box .pop-container .pop-bio {
    font-size: 0.9rem;
    padding: 3%;
  }

  .pop-box .pop-container .pop-bio img {
    height: 20px;
  }

  .pop-box .pop-container .pop-sns {
    font-size: 1.3rem;
    padding: 3%;
  }

  .pop-box .pop-container .pop-sns a {
    margin: 0 10px;
    padding: 8px;
  }
}

.home-link {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1000;
  padding: 8px 14px;
  border: 2px solid #64ffda;
  border-radius: 20px;
  background: rgba(10, 10, 26, 0.9);
  color: #64ffda;
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 13px;
  text-decoration: none;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(100, 255, 218, 0.3);
  transition: all 0.3s ease;
}

.home-link:hover {
  background: rgba(100, 255, 218, 0.15);
  transform: translateY(-2px);
}
