.game-card {
  position: relative;
}

.screen {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.start-order {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin: 0.4rem 0 0.1rem;
  pointer-events: none;
}

.start-order-step {
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: #fff;
  border: 3px solid #9fcbb3;
  box-shadow: 0 4px 0 #6da88a;
}

.start-order-arrow {
  align-self: center;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-mango-deep);
}

.status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-text-muted);
  padding: 0.15rem 0;
}

.question-text {
  text-align: center;
  font-size: clamp(1.15rem, 4.5vw, 1.35rem);
  font-weight: 700;
  color: var(--color-grove-deep);
  margin: 0.1rem 0 0.25rem;
}

.btn-order-item .item-label,
.btn-order-item .choice-label,
#items .btn-order-item > :not(.item-emoji) {
  display: none !important;
}

#items .btn-order-item {
  font-size: 0;
  letter-spacing: 0;
}

.order-slots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 0.15rem 0;
  width: 100%;
}

.order-slot {
  position: relative;
  min-height: 5rem;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px dashed #9fcbb3;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  font-size: clamp(1.4rem, 5vw, 2.1rem);
  font-weight: 700;
  color: var(--color-text-muted);
  overflow: hidden;
}

.order-slot::before {
  content: attr(data-step);
  position: absolute;
  top: 0.25rem;
  left: 0.4rem;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--color-grove-deep);
  opacity: 0.75;
}

.order-slot.is-filled {
  border-style: solid;
  border-color: var(--color-leaf);
  background: var(--color-success-bg);
  color: var(--color-text);
  animation: slot-fill 0.28s ease;
}

.order-slot.is-next {
  border-color: var(--color-mango);
  box-shadow: inset 0 0 0 2px rgba(255, 138, 31, 0.25);
}

.choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  margin-top: 0.15rem;
  width: 100%;
}

.btn-order-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
  min-height: 5.4rem;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  padding: 0.4rem 0.2rem;
  overflow: hidden;
  box-sizing: border-box;
}

.btn-order-item .item-emoji {
  font-size: clamp(1.45rem, 5vw, 2.1rem);
  line-height: 1.1;
  max-width: 100%;
  text-align: center;
  overflow-wrap: anywhere;
}

.btn-order-item .item-emoji-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.05rem;
  font-size: clamp(1.15rem, 4.2vw, 1.55rem);
}

.btn-order-item:disabled {
  opacity: 0.4;
}

.feedback {
  min-height: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  padding: 0.45rem 0.75rem;
}

.feedback-correct {
  background: var(--color-success-bg);
  color: var(--color-success);
}

.feedback-wrong {
  background: var(--color-warn-bg);
  color: #d68910;
}

.final-score {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin: 0.5rem 0 1rem;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.04);
  }
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20%,
  60% {
    transform: translateX(-6px);
  }
  40%,
  80% {
    transform: translateX(6px);
  }
}

@keyframes slot-fill {
  from {
    transform: scale(0.85);
  }
  to {
    transform: scale(1);
  }
}

.pulse {
  animation: pulse 0.5s ease;
}

.shake {
  animation: shake 0.45s ease;
}

@media (prefers-reduced-motion: reduce) {
  .pulse,
  .shake,
  .order-slot.is-filled {
    animation: none;
  }
}
