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

body {
  background: #2a2118;
  height: 100vh;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.screen {
  display: none;
  width: 100%;
  height: 100vh;
  position: absolute;
  top: 0;
  left: 0;
}

.screen.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#introScreen h1,
#endScreen h1 {
  color: #B2977F;
  font-size: 36px;
  margin-bottom: 20px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, #AE967F, #937D64);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#introScreen p,
#endScreen p {
  color: #AA927F;
  font-size: 24px;
  margin-bottom: 40px;
  text-align: center;
  padding: 0 20px;
  font-weight: 500;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  letter-spacing: 0.5px;
}

#introScreen img {
  padding-right: 10px;
}

#introScreen p {
  font-size: 18px !important;
  font-weight: 700 !important;
  background: linear-gradient(135deg, #AA927F, #8B6F5C);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  letter-spacing: 1px;
}

#timeResult {
  font-size: 48px !important;
  font-weight: 800 !important;
  background: linear-gradient(135deg, #AE967F, #937D64);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  letter-spacing: 2px;
  margin: 30px 0;
}

#startBtn,
#restartBtn {
  padding: 16px 32px;
  font-size: 18px;
  font-weight: 700;
  background: linear-gradient(135deg, #AE967F, #937D64);
  color: #2a2118;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(147, 125, 100, 0.4);
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

#startBtn:hover,
#restartBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(147, 125, 100, 0.6);
}

#startBtn:active,
#restartBtn:active {
  background: linear-gradient(135deg, #937D64, #645546);
  transform: translateY(0);
}

#gameScreen.active {
  display: block;
}

#progressBar {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  overflow: hidden;
  -webkit-mask-image: url('assets/dick.png');
  -webkit-mask-size: auto calc(100vh - 160px);
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-image: url('assets/dick.png');
  mask-size: auto calc(100vh - 160px);
  mask-position: center;
  mask-repeat: no-repeat;
}

#dickImg {
  display: block;
  height: calc(100vh - 160px);
  width: auto;
}

#fill {
  width: 100%;
  height: 0%;
  background: rgba(147, 125, 100, 0.5);
  position: absolute;
  left: 0;
  bottom: 0;
  transition: height 0.2s ease-out;
}

#line {
  width: 100%;
  height: 6px;
  background: rgba(100, 85, 70, 0.5);
  border-radius: 3px;
  position: absolute;
  left: 0;
  top: 50%;
  box-shadow: 0 0 8px rgba(100, 85, 70, 0.4);
}
