.pictures-guessing-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 216, 102, 0.36), transparent 28%),
    radial-gradient(circle at 80% 8%, rgba(71, 190, 255, 0.32), transparent 30%),
    linear-gradient(135deg, #fff7ed 0%, #e0f2fe 46%, #f0fdf4 100%);
  color: #17324d;
}

.pictures-app {
  min-height: 100vh;
  padding: clamp(12px, 3vw, 24px);
}

.pictures-card {
  position: relative;
  width: min(980px, 100%);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.78);
  background:
    radial-gradient(circle at 12% 18%, rgba(254, 240, 138, 0.55), transparent 26%),
    radial-gradient(circle at 88% 16%, rgba(125, 211, 252, 0.45), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(239, 249, 255, 0.92));
  box-shadow: 0 24px 70px rgba(17, 55, 91, 0.18);
}

.pictures-stage {
  position: relative;
  display: grid;
  gap: clamp(10px, 2vw, 16px);
  padding: clamp(10px, 3vw, 24px);
}

.pictures-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.pictures-stats .stat-pill {
  min-height: 36px;
  border: 1px solid rgba(24, 79, 126, 0.14);
  background: rgba(255, 255, 255, 0.78);
  color: #1f3a5a;
  font-weight: 800;
}

.pictures-hearts span:last-child {
  color: #e11d48;
}

.pictures-prompt {
  width: fit-content;
  margin: 0 auto;
  padding: 0 8px;
  text-align: center;
  font-size: clamp(19px, 3vw, 28px);
  font-weight: 1000;
  line-height: 1.12;
  color: #f97316;
  letter-spacing: 0.01em;
  text-shadow:
    0 2px 0 rgba(255, 255, 255, 0.95),
    0 8px 18px rgba(251, 146, 60, 0.24);
}

.picture-card {
  display: grid;
  place-items: center;
  width: min(100%, 420px);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  padding: clamp(10px, 2.6vw, 18px);
  border: 3px solid rgba(30, 92, 140, 0.16);
  border-radius: 24px;
  background:
    radial-gradient(circle at 14% 18%, rgba(254, 240, 138, 0.54), transparent 28%),
    linear-gradient(135deg, #ffffff, #ecfeff);
  box-shadow: 0 18px 42px rgba(15, 50, 80, 0.16);
}

.picture-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 16px;
  filter: drop-shadow(0 12px 18px rgba(17, 45, 70, 0.16));
}

.answers-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 2vw, 14px);
  width: min(100%, 720px);
  margin: 0 auto;
}

.answer-option {
  min-height: 62px;
  border: 3px solid rgba(30, 92, 140, 0.16);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  color: #14263d;
  box-shadow: 0 14px 30px rgba(20, 55, 86, 0.14);
  cursor: pointer;
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 1000;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.answer-option:hover:not(:disabled),
.answer-option:focus-visible {
  transform: translateY(-4px) scale(1.02);
  border-color: #38bdf8;
  box-shadow: 0 18px 34px rgba(14, 116, 144, 0.22);
  outline: none;
}

.answer-option:disabled {
  cursor: default;
}

.answer-option.is-correct {
  border-color: #22c55e;
  background: linear-gradient(180deg, #dcfce7, #bbf7d0);
  animation: pictures-correct 520ms ease both;
}

.answer-option.is-wrong {
  border-color: #f43f5e;
  background: linear-gradient(180deg, #ffe4e6, #fecdd3);
  animation: pictures-wrong 360ms ease both;
}

.pictures-feedback {
  min-height: 34px;
  text-align: center;
  font-size: clamp(16px, 2.4vw, 22px);
  font-weight: 900;
  color: #31506c;
}

.pictures-feedback.is-good {
  color: #15803d;
}

.pictures-feedback.is-warn {
  color: #be123c;
}

.pictures-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(248, 250, 252, 0.82);
  backdrop-filter: blur(6px);
  z-index: 20;
}

.pictures-loading[hidden] {
  display: none;
}

.pictures-loading-card {
  display: grid;
  justify-items: center;
  gap: 14px;
  width: min(280px, 100%);
  padding: 22px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 46px rgba(15, 50, 80, 0.16);
  color: #17324d;
  font-weight: 900;
  text-align: center;
}

.pictures-loader {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 6px solid #dbeafe;
  border-top-color: #0ea5e9;
  animation: pictures-spin 820ms linear infinite;
}

body.pvp-searching .pictures-stage {
  filter: grayscale(0.8);
}

body.pvp-searching .pictures-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 12;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.52);
  backdrop-filter: blur(2px);
  pointer-events: auto;
}

#activeAvatarContainer {
  position: fixed;
  right: max(10px, calc((100vw - 980px) / 2 + 12px));
  bottom: 10px;
  z-index: 4;
  pointer-events: none;
  transform: scale(0.44);
  transform-origin: bottom right;
  opacity: 0.9;
}

#activeAvatarContainer .player-avatar-img {
  width: 118px;
  max-height: 150px;
  object-fit: contain;
  opacity: 1;
}

#activeAvatarContainer.pictures-avatar-success {
  animation: pictures-avatar-success 1.2s ease both;
}

@keyframes pictures-avatar-success {
  0% {
    transform: scale(0.44);
    opacity: 0.9;
  }

  35% {
    transform: scale(1.18) translateY(-18px);
    opacity: 1;
  }

  70% {
    transform: scale(0.74) translateY(-6px);
    opacity: 0.96;
  }

  100% {
    transform: scale(0.44);
    opacity: 0.9;
  }
}

@keyframes pictures-spin {
  to { transform: rotate(360deg); }
}

@keyframes pictures-correct {
  0% { transform: scale(1); }
  45% { transform: scale(1.07) rotate(-1deg); }
  100% { transform: scale(1); }
}

@keyframes pictures-wrong {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  50% { transform: translateX(7px); }
  75% { transform: translateX(-4px); }
}

@media (max-width: 620px) {
  .pictures-app {
    padding: 8px;
  }

  .pictures-stage {
    gap: 10px;
    padding: 10px;
  }

  .topbar-title {
    font-size: 34px;
    line-height: 1.05;
  }

  .picture-card {
    width: min(100%, 300px);
    padding: 10px;
  }

  .answers-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    width: min(100%, 340px);
  }

  .answer-option {
    min-height: 56px;
  }
}
