/* 🎯 ========== BASE UNIVERSAL STYLES ========== */

/* Main display container (for letters, images, or color blocks) */
#game-screen {
  display: block;
  text-align: center;
}

/* Container for the main object (word or image) */
#object-container {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: white;
  padding: 10px 20px;
  margin: 0 auto 20px auto;
  border-radius: 1em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  width: fit-content;
  min-width: 60px;
  max-width: 90vw;
}

/* Main object text styling */
#object-container .object-text {
  font-size: clamp(50px, 10vw, 140px);
  font-weight: bold;
  color: #ff4081;
  text-align: center;
  text-shadow: 2px 2px 0 #fff, 3px 3px 5px rgba(0,0,0,0.2);
}

/* Options container */
.options {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  gap: 1em;
  flex-wrap: wrap;
  margin-top: 1.5em;
}

/* ✅ Option boxes - bigger & mobile friendly */
.option-box,
.option-img,
.color-option,
.option-text {
  width: clamp(80px, 22vw, 130px);    /* Increased min/max size */
  height: clamp(80px, 22vw, 130px);
  background: #fff;
  border-radius: 15%;
  border: 3px solid transparent;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  flex-shrink: 0;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s, border 0.25s, box-shadow 0.25s;
}

/* ✅ Images inside options */
.option-box img,
.option-img img,
.color-option img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
  display: block;
}

/* ✅ Text options */
.option-text {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2.5vw;
  font-weight: bold;
  background: #e94f08;
  color: #fff;
  border-radius: 12%;
}

/* ✅ Hover effect for desktop */
.option-box:hover,
.option-img:hover,
.color-option:hover,
.option-text:hover {
  transform: scale(1.05);
  border-color: #ffeb3b;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* ✅ Animations */
.shake { animation: shake 0.3s; }
@keyframes shake {
  0%,100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  50% { transform: translateX(4px); }
  75% { transform: translateX(-4px); }
}
.celebrate { animation: pop 0.5s; }
@keyframes pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* ✅ Mobile optimization - keep options big */
@media (max-width: 480px) {
  .option-box,
  .option-img,
  .color-option,
  .option-text {
    width: clamp(70px, 26vw, 110px);
    height: clamp(70px, 26vw, 110px);
  }
}
