.game-card {
  position: relative;
}

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

.start-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  width: min(100%, 168px);
  aspect-ratio: 1;
  gap: 0.28rem;
  margin: 0.35rem auto 0.15rem;
  padding: 0.4rem;
  background: linear-gradient(160deg, #e2a35c, #c9894a);
  border: 4px solid #8a5a2b;
  border-radius: 18px;
  box-shadow: 0 6px 0 #6d431d;
  pointer-events: none;
}

.start-preview .puzzle-cell {
  font-size: 1.7rem;
}

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

.question-text {
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.puzzle-board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0.28rem;
  width: min(100%, 268px);
  aspect-ratio: 1;
  margin: 0.1rem auto;
  padding: 0.55rem;
  background:
    linear-gradient(160deg, #e2a35c 0%, #c9894a 55%, #b57438 100%);
  border: 5px solid #8a5a2b;
  border-radius: 22px;
  box-shadow:
    0 8px 0 #6d431d,
    inset 0 0 0 3px rgba(255, 230, 180, 0.35);
}

.puzzle-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #fffdf6;
  border: 2px solid #f0d7a4;
  font-size: clamp(2.3rem, 11vw, 3.1rem);
  line-height: 1;
  user-select: none;
  min-height: 0;
  position: relative;
}

.puzzle-cell:nth-child(1) {
  border-radius: 14px 18px 8px 18px;
}

.puzzle-cell:nth-child(2) {
  border-radius: 18px 14px 18px 8px;
}

.puzzle-cell:nth-child(3) {
  border-radius: 18px 8px 14px 18px;
}

.puzzle-cell:nth-child(4) {
  border-radius: 8px 18px 18px 14px;
}

.puzzle-cell.is-empty {
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.12), transparent 55%),
    repeating-linear-gradient(-45deg, #3d5c4a 0 8px, #2f4a3c 8px 16px);
  border: 3px dashed #ffe29a;
  color: #ffe29a;
  font-size: clamp(1.9rem, 9vw, 2.5rem);
  font-weight: 800;
  animation: slot-glow 1.4s ease-in-out infinite;
}

.puzzle-cell.is-filled-now {
  border-color: var(--color-success);
  background: var(--color-success-bg);
  animation: piece-pop 0.45s ease;
  z-index: 1;
}

.puzzle-board.is-complete {
  border-color: var(--color-grove-deep);
  filter: saturate(1.08);
}

.choices {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.5rem;
}

.btn-part-choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
  min-height: 5.8rem;
  padding: 0.5rem 0.3rem;
  border-radius: 18px 14px 20px 16px;
}

.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 piece-pop {
  0% {
    transform: scale(0.4);
    opacity: 0.4;
  }
  70% {
    transform: scale(1.12);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes slot-glow {
  0%,
  100% {
    box-shadow: inset 0 0 0 0 rgba(255, 226, 154, 0.2);
  }
  50% {
    box-shadow: inset 0 0 16px 2px rgba(255, 226, 154, 0.45);
  }
}

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

.pulse {
  animation: pulse 0.5s ease;
}

.shake {
  animation: shake 0.45s ease;
}

@media (prefers-reduced-motion: reduce) {
  .puzzle-cell.is-empty,
  .puzzle-cell.is-filled-now,
  .pulse,
  .shake {
    animation: none;
  }
}
