body {
  font-family: "Montserrat", "Roboto", Arial, sans-serif;
  background: #f5f6fa;
  color: #212121;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  width: 100vw;
  overflow-y: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
#main-container {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 4px 24px rgba(60, 64, 67, 0.12);
  padding: 20px;
  padding-top: 30px;
  max-width: 800px;
  width: 100%;
  min-height: calc(100vh - 96px);
  /* height: 100vh; */
  margin: 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  transition: box-shadow 0.3s, background 0.3s;
  box-sizing: border-box;
}
#top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 24px;
  font-size: 22px;
}
#high-score-label {
  color: #1a73e8;
  font-weight: 500;
  letter-spacing: 1px;
}
#timer {
  color: #388e3c;
  font-weight: 500;
  letter-spacing: 1px;
}
h1 {
  color: #1a73e8;
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 1px;
}
#instructions {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: #5f6368;
  font-weight: 400;
}
#arrow-trace {
  text-align: center;
  margin-bottom: -60px;
  margin-top: 10px;
  pointer-events: none;
  display: block;
}
#arrow-container {
  font-size: 220px;
  margin: 32px 0 20px 0;
  min-height: 220px;
  transition: color 0.2s, transform 0.1s;
  color: #1a73e8;
  user-select: none;
  -webkit-user-select: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  background: none;
  box-shadow: none;
  width: auto;
  height: auto;
  margin-left: auto;
  margin-right: auto;
}
.arrow-trace-icon {
  color: #1a73e8;
  opacity: 0.18;
  transition: opacity 0.3s;
}
#arrow-container:active {
  transform: scale(1.12);
  color: #388e3c;
  background: none;
  box-shadow: none;
}
#score {
  font-size: 32px;
  margin-bottom: 18px;
  color: #388e3c;
  font-weight: 600;
  letter-spacing: 1px;
}
#time-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 22px;
  transition: opacity 0.3s;
}
#time-controls.faded {
  opacity: 0.13;
  pointer-events: none;
}
.time-option {
  font-size: 18px;
  padding: 6px 18px;
  background: #e8eaed;
  color: #1a73e8;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
  box-shadow: 0 1px 4px rgba(60, 64, 67, 0.06);
}
.time-option.selected {
  background: #1a73e8;
  color: #fff;
}
.time-option:disabled {
  background: #f1f3f4;
  color: #bdbdbd;
  cursor: not-allowed;
}
#restart-btn {
  font-size: 20px;
  padding: 14px 36px;
  background: #1a73e8;
  color: #fff;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  margin-bottom: 16px;
  transition: background 0.2s, box-shadow 0.2s;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(60, 64, 67, 0.1);
  letter-spacing: 1px;
}
#restart-btn:disabled {
  background: #e8eaed;
  color: #bdbdbd;
  cursor: not-allowed;
}
#restart-btn:hover:not(:disabled) {
  background: #388e3c;
  color: #fff;
  box-shadow: 0 4px 16px rgba(60, 64, 67, 0.14);
}
#restart-hint {
  display: block;
  font-size: 15px;
  margin-bottom: 14px;
  color: #5f6368;
  font-weight: 400;
}
#final-score {
  display: none;
  font-size: 28px;
  margin-top: 32px;
  color: #1a73e8;
  font-weight: 600;
  letter-spacing: 1px;
  border-radius: 8px;
  padding: 12px 0;
  box-shadow: none;
  background: none;
}
.instructions-hint {
  font-size: 15px;
  color: #5f6368;
}
@media (max-width: 1200px) {
  #main-container {
    max-width: 90vw;
    padding: 28px 3vw 20px 3vw;
    min-height: 60vh;
    margin: 32px auto;
  }
  #arrow-container {
    font-size: 160px;
    min-height: 160px;
    margin: 24px 0 16px 0;
  }
  h1 {
    font-size: 2rem;
    margin-bottom: 10px;
  }
  #score {
    font-size: 26px;
    margin-bottom: 14px;
  }
  #final-score {
    font-size: 20px;
    margin-top: 18px;
  }
  #restart-btn {
    font-size: 17px;
    padding: 10px 28px;
    margin-bottom: 12px;
  }
  #time-controls {
    gap: 8px;
    margin-bottom: 16px;
  }
  .time-option {
    font-size: 16px;
    padding: 5px 14px;
  }
}
@media (max-width: 900px) {
  #main-container {
    max-width: 98vw;
    padding: 18px 4vw 12px 4vw;
    min-height: 60vh;
  }
  #arrow-container {
    font-size: 120px;
    min-height: 120px;
    width: auto;
    height: auto;
  }
  h1 {
    font-size: 1.7rem;
  }
  #score {
    font-size: 22px;
  }
  #final-score {
    font-size: 18px;
  }
  #restart-btn {
    font-size: 16px;
    padding: 10px 24px;
  }
  #time-controls button {
    font-size: 15px;
    padding: 4px 10px;
  }
  #selected-time {
    font-size: 15px;
  }
}
@media (max-width: 600px) {
  #main-container {
    padding: 8px 1vw 6px 1vw;
    min-height: 40vh;
  }
  #arrow-container {
    font-size: 70px;
    min-height: 70px;
    width: auto;
    height: auto;
  }
  h1 {
    font-size: 1.1rem;
  }
  #score {
    font-size: 15px;
  }
  #final-score {
    font-size: 13px;
  }
  #restart-btn {
    font-size: 13px;
    padding: 6px 12px;
  }
  #time-controls button {
    font-size: 12px;
    padding: 2px 6px;
  }
  #selected-time {
    font-size: 12px;
  }
}
#score-penalty {
  pointer-events: none;
}
