span.wpcf7-list-item { display: block; }

/*--- 2 Column Form Styles Start ---*/

#left { width: 47%; float: left; margin-right:6%; }
#right { width: 47%; float: left; }
.clearfix:after { content:"\0020"; display:block; height:0; clear:both; visibility:hidden; overflow:hidden; margin-bottom:10px; }
.clearfix { display:block; }

/*--- 2 Column Form Styles End ---*/

/* ------------------ Nuottipeli ---------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  background: radial-gradient(circle at top, #1f2a44, #0e121a);
  color: #f5f7ff;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.app {
  width: min(720px, 95vw);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
}

.header {
  text-align: center;
  margin-bottom: 24px;
}

.header h1 {
  margin: 0 0 8px;
  font-size: 2.2rem;
}

.subtitle {
  margin: 0;
  opacity: 0.8;
}

.game {
  display: grid;
  gap: 20px;
  justify-items: center;
}

.image-frame {
  width: min(420px, 85vw);
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(10, 12, 20, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  isolation: isolate;
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 0;
}

.image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}

.image-frame.anim-correct {
  animation: correct-pop 480ms ease;
}

.image-frame.anim-correct::after {
  animation: correct-wash 480ms ease;
  background: radial-gradient(
    circle at 50% 40%,
    rgba(120, 255, 180, 0.35),
    rgba(120, 255, 180, 0) 65%
  );
}

.image-frame.anim-wrong {
  animation: wrong-shake 420ms ease;
}

.image-frame.anim-wrong::after {
  animation: wrong-wash 420ms ease;
  background: rgba(255, 90, 90, 0.28);
}

@keyframes correct-pop {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(120, 255, 180, 0);
  }
  45% {
    transform: scale(1.03);
    box-shadow: 0 0 24px rgba(120, 255, 180, 0.35);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(120, 255, 180, 0);
  }
}

@keyframes correct-wash {
  0%,
  100% {
    opacity: 0;
  }
  45% {
    opacity: 1;
  }
}

@keyframes wrong-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-8px);
  }
  40% {
    transform: translateX(8px);
  }
  60% {
    transform: translateX(-6px);
  }
  80% {
    transform: translateX(6px);
  }
}

@keyframes wrong-wash {
  0%,
  100% {
    opacity: 0;
  }
  35% {
    opacity: 1;
  }
}

.status {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  width: 100%;
}

.status-row {
  background: rgba(255, 255, 255, 0.08);
  padding: 12px 16px;
  border-radius: 12px;
  text-align: center;
  display: grid;
  gap: 6px;
  font-size: 0.95rem;
}

.message {
  font-size: 1.1rem;
  font-weight: 600;
  min-height: 1.4em;
}

.hint {
  font-size: 0.85rem;
  opacity: 0.7;
}

.button {
  background: #4b7cff;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(75, 124, 255, 0.35);
}

.button:active {
  transform: translateY(0);
  box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
  .image-frame.anim-correct,
  .image-frame.anim-wrong,
  .image-frame.anim-correct::after,
  .image-frame.anim-wrong::after {
    animation: none;
  }
}

@media (max-width: 600px) {
  .status {
    grid-template-columns: 1fr;
  }
}