.start-screen {
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  border: 4px solid rgba(0, 0, 0, 0.5);
  border-radius: 12px;
  box-shadow: 0px 0px 12px rgba(0, 0, 0, 0.6);
  /*object-fit: contain;*/
}

.start-btn {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 14px 32px;
  background: linear-gradient(135deg, #00c6ff, #0072ff);
  color: white;
  font-size: 20px;
  font-weight: bold;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.start-btn:hover {
  transform: translateX(-50%) scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 114, 255, 0.4);
}

.start-btn:active {
  transform: translateX(-50%) scale(0.95);
}

.after-level-overlay {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 50;
  height: 100svh;
  width: 100svw;
  background-color: rgba(251, 117, 79, 1);
}

.after-level-dialog {
  background-color: rgba(255, 255, 255, 0.85);
  width: clamp(300px, 70svw, 500px);
  height: auto;
  border-radius: 30px;
  position: fixed;
  left: 50%;
  color: black;
  display: flex;
  align-items: center;
  flex-direction: column;
  transform: translate(-50%, 200%);
  transition: transform 0.4s ease;
  padding: 0 0 20px;
}

.after-level-dialog.show {
  transform: translate(-50%, -50%);
  top: 50%;
}

.result-overlay-buttons {
  margin-top: clamp(1rem, svw, 10rem);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-direction: column;
  gap: clamp(5px, 1svw, 15px);
  margin-bottom: 10px;
}

.result-overlay-buttons button {
  cursor: pointer;
  color: rgba(0, 0, 0, 0.8);
  background-color: rgba(255, 229, 192, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  outline: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  height: 40px;
  width: clamp(200px, 20svw, 400px);
}

.result-overlay-buttons button:hover {
  background-color: rgba(255, 214, 165, 1);
}

.achievements {
  color: rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 20px;
  gap: 16px;
}

.results-title {
  color: rgba(0, 0, 0, 0.85);
  margin: 20px 0 20px;
}

.achievement {
  display: flex;
  align-items: center;
  justify-content: baseline;
  gap: 8px;
}

.over-canvas-message {
  position: absolute;
  top: 0;
  left: 0;
  width: 101%;
  height: 102%;
}

.full-screen-bg {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.8));
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  height: 100svh;
  width: 100svw;
  object-fit: cover;
}

.object-fit-contain {
  object-fit: contain;
}

.privacy-policy-dialog {
  position: absolute;
  left: 50%;
  background-color: rgba(255, 255, 255, 0.85);
  transform: translate(-50%, 200%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2); /* light, elegant border */
  backdrop-filter: blur(6px); /* optional: for a "frosted glass" look */
  border-radius: 12px; /* smooth corners to match the soft shadow */
  padding: 15px;
}

.full-screen-canvas {
  border-radius: 0 !important;
}