
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Nunito', sans-serif;
  background: #0a0f2c;
  color: #fff;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}


.popup-overlay#introPopup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
}
.popup-content.intro-content {
  background: #222;
  padding: 40px;
  border-radius: 20px;
  text-align: center;
  max-width: 600px;
  width: 90%;
  box-shadow: 0 0 20px rgba(57, 255, 20, 0.5);
}
.intro-title {
  font-size: 2rem;
  color: #81d4fa;
  margin-bottom: 20px;
}
.intro-paragraph {
  font-size: 1.6rem;
  line-height: 1.5;
  color: #fff;
  margin-bottom: 15px;
}


.page-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(135deg, #111, #333);
  text-align: center;
  padding: 15px;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
.page-header h1 {
  font-size: 2rem;
  color: #39ff14;
  transition: text-shadow 0.3s;
}
.page-header h1:hover {
  text-shadow: 2px 2px 8px #39ff14;
}
.score-progress {
  margin-top: 10px;
  font-size: 1.4rem;
  color: #fff;
}
#scoreLabel {
  font-weight: bold;
  color: #39ff14;
}
.progress-bar-container {
  width: 150px;
  height: 12px;
  background: #333;
  border-radius: 6px;
  overflow: hidden;
  display: inline-block;
  vertical-align: middle;
  margin: 0 10px;
}
.progress-bar-fill {
  width: 0;
  height: 100%;
  background: #39ff14;
  transition: width 0.5s ease;
}
#progressPercentLabel {
  color: #39ff14;
}


#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1;
}
#particles-js canvas {
  filter: blur(2px);
  opacity: 0.7;
}


.bubble-bar-right {
  position: fixed;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.5rem;
  z-index: 1000;
  overflow: visible;
}
.bubble {
  position: relative;
  width: 50px;
  height: 50px;
  background: #39FF14;
  border-radius: 50%;
  cursor: pointer;
  overflow: visible;
  transition: width 0.3s ease, border-radius 0.3s ease;
}
.bubble img {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  pointer-events: none;
}
.bubble .label {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%) translateX(-20px);
  font-size: 1rem;
  font-weight: bold;
  color: #000;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.bubble:hover,
.bubble.expanded {
  width: 160px;
  border-radius: 25px;
}
.bubble:hover .label,
.bubble.expanded .label {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}
.bubble:hover {
  box-shadow: 0 0 12px rgba(57, 255, 20, 0.8);
}


.main-layout {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  padding: 20px;
  position: absolute;
  top: 120px;
  bottom: 20px;
  left: 0;
  right: 0;
}


.instruction-card {
  width: 360px;
  background: linear-gradient(135deg, #1c1c1c, #333);
  border-radius: 20px;
  padding: 25px;
  box-shadow: 0 0 15px rgba(57, 255, 20, 0.3);
  text-align: center;
}
.instruction-card .round-instructions h2 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: #81d4fa;
}
.instruction-card .round-instructions p {
  font-size: 1.4rem;
  margin-bottom: 20px;
  line-height: 1.5;
}


.feed-area {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 360px;
  height: 740px;
}


.phone {
  width: 340px;
  height: 720px;
  background: #222;
  border-radius: 45px;
  position: relative;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.4);
}
.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 30px;
  background: #000;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
}
.phone-screen {
  position: absolute;
  top: 40px;
  left: 5px;
  right: 5px;
  bottom: 60px;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
}
.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
}
.phone-home {
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 35px;
  height: 35px;
  background: linear-gradient(135deg, #666, #444);
  border-radius: 50%;
  box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.6);
}


.round-content {
  background: #1a1a1a;
  padding: 15px;
  border-radius: 15px;
  font-size: 1rem;
  margin-top: 10px;
}


input[type="text"], select {
  width: 90%;
  padding: 10px;
  margin: 10px 0;
  border: 2px solid #39ff14;
  border-radius: 8px;
  font-size: 1.2rem;
  outline: none;
  color: #333;
}
input[type="text"]:focus {
  box-shadow: 0 0 8px 2px #39ff14;
}
.popup-btn {
  background: #39ff14;
  color: #000;
  border: none;
  border-radius: 10px;
  padding: 12px 20px;
  margin: 10px 0;
  cursor: pointer;
  font-size: 1.2rem;
  transition: transform 0.3s, background 0.3s;
}
.popup-btn:hover {
  transform: scale(1.05);
  background: #52ff3f;
  box-shadow: 0 0 10px #39ff14;
}
.bigger-btn {
  font-size: 1.3rem;
  padding: 15px 25px;
}


.hint-btn {
  background: #ffa726;
  color: #000;
  border: none;
  border-radius: 10px;
  padding: 10px 16px;
  margin: 10px 0;
  cursor: pointer;
  font-size: 1.2rem;
  transition: transform 0.3s, background 0.3s;
}
.hint-btn:hover {
  transform: scale(1.05);
  background: #ffb74d;
  box-shadow: 0 0 8px #ffa726;
}


.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}
.hidden {
  display: none !important;
}
.popup-content {
  background: #222;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  max-width: 600px;
  width: 90%;
  position: relative;
  box-shadow: 0 0 20px #39ff14;
  color: #fff;
}



@keyframes shake {
  0% { transform: translateX(0); }
  20% { transform: translateX(-5px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
  100% { transform: translateX(0); }
}
.shake {
  animation: shake 0.5s;
}
