/* Beginscherm overlay voor Start je Veldje */

.startscreen-overlay {
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: linear-gradient(135deg, #87ceeb 0%, #98fb98 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.7s;
  min-height: 100dvh;
  min-height: 100vh;
  width: 100vw;
  height: 100dvh;
  height: 100vh;
  overflow-y: auto;
  box-sizing: border-box;
}

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

.startscreen-title {
  font-size: 2.5em;
  color: #2e8b57;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  font-family: "Arial", sans-serif;
  font-weight: bold;
  letter-spacing: 1px;
  text-align: center;
}

.startscreen-box {
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid #daa520;
  border-radius: 15px;
  padding: 22px 16px 18px 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  min-width: 0;
  width: 100%;
  max-width: 600px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-height: 90vh;
  overflow-y: auto;
  box-sizing: border-box;
}
@media (max-width: 700px) {
  .startscreen-box {
    max-width: 98vw;
    padding: 14px 4vw 14px 4vw;
    font-size: 0.98em;
    max-height: 90dvh;
  }
  .startscreen-title {
    font-size: 2em;
  }
}

@media (max-width: 480px) {
  .startscreen-overlay {
    padding: 0;
    min-height: 100dvh;
    height: 100dvh;
    width: 100vw;
    overflow-y: auto;
  }
  .startscreen-box {
    max-width: 100vw;
    min-width: 0;
    padding: 10px 2vw 10px 2vw;
    font-size: 0.95em;
    max-height: 92dvh;
    overflow-y: auto;
  }
  .startscreen-title {
    font-size: 1.3em;
  }
  .startscreen-stats {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

.startscreen-welcome {
  color: #b8860b;
  font-size: 1.1em;
  margin-bottom: 12px;
  font-weight: bold;
  text-shadow: 0 1px 0 #fff8dc;
}

.startscreen-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
  margin: 0 0 16px 0;
  padding: 0;
  width: 100%;
  list-style: none;
}

.startscreen-stats li {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(240, 248, 255, 0.6) 100%);
  border: 2px solid rgba(70, 130, 180, 0.3);
  border-radius: 8px;
  padding: 8px 10px;
  margin: 0;
  text-align: center;
  font-size: 0.95em;
  font-weight: bold;
  color: #2e8b57;
  text-shadow: none;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.startscreen-stats li::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.4s ease;
}

.startscreen-stats li:hover::before {
  left: 100%;
}

.startscreen-stats li:hover {
  transform: translateY(-1px) scale(1.02);
  border-color: #4682b4;
  box-shadow: 0 2px 8px rgba(70, 130, 180, 0.2);
}

/* Verschillende kleuren voor elke stat in startscherm */
.startscreen-stats li:nth-child(1) {
  /* Geld */
  color: #d4af37;
  border-color: rgba(212, 175, 55, 0.4);
}

.startscreen-stats li:nth-child(2) {
  /* Zaden */
  color: #228b22;
  border-color: rgba(34, 139, 34, 0.4);
}

.startscreen-stats li:nth-child(3) {
  /* Fruit */
  color: #ff6347;
  border-color: rgba(255, 99, 71, 0.4);
}

.startscreen-stats li:nth-child(4) {
  /* IJs */
  color: #ff69b4;
  border-color: rgba(255, 105, 180, 0.4);
}

.startscreen-stats li:nth-child(5) {
  /* Water */
  color: #1e90ff;
  border-color: rgba(30, 144, 255, 0.4);
}

.startscreen-stats li:nth-child(6) {
  /* Dag */
  color: #9932cc;
  border-color: rgba(153, 50, 204, 0.4);
}

.startscreen-stats li:nth-child(5) {
  /* Limonade */
  color: #ffa500;
  border-color: rgba(255, 165, 0, 0.4);
}

.startscreen-stats li:nth-child(6) {
  /* Water */
  color: #1e90ff;
  border-color: rgba(30, 144, 255, 0.4);
}

.startscreen-stats li:nth-child(7) {
  /* Dag */
  color: #9932cc;
  border-color: rgba(153, 50, 204, 0.4);
}

.startscreen-stats li:nth-child(8) {
  /* Seizoen */
  color: #32cd32;
  border-color: rgba(50, 205, 50, 0.4);
}

.startscreen-btn {
  margin-top: 10px;
  font-size: 1.1em;
  padding: 8px 28px;
  background: #32cd32;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 1px 4px #0001;
  letter-spacing: 0.5px;
  transition: background 0.18s, transform 0.12s;
}
.startscreen-btn:hover,
.startscreen-btn:focus {
  background: #228b22;
  transform: scale(1.04);
}

.startscreen-tip {
  margin-top: 16px;
  font-size: 0.98em;
  color: #2e8b57;
  opacity: 0.8;
  text-shadow: 0 1px 0 #fff8dc;
}

#gameContainer.startscreen-blur {
  filter: blur(2px);
  pointer-events: none;
  user-select: none;
}
