@import url("../playful-games/base.css?v=1");
:root {
  --paper: #edf3fa;
  --ink: #26354b;
  --muted: #627187;
  --accent: #4665a1;
  --tint: #e5ebf6;
  --line: #d7e0ec;
}
.intro-image {
  object-position: center;
}
.room-wrap {
  position: relative;
  overflow: hidden;
}
.room {
  position: relative;
  aspect-ratio: 4/3;
  width: 100%;
  background: #cbd6df url("../playful-games/assets/room-scene.webp")
    center/cover;
}
.room-slot {
  position: absolute;
  padding: 0;
  border: 0;
  border-radius: 6px;
  aspect-ratio: 1;
  min-height: 0;
  background: transparent;
  transition: filter 0.12s;
  touch-action: manipulation;
}
.room-slot .asset {
  width: 100%;
  background-image: url("../playful-games/assets/room-items.webp");
  pointer-events: none;
}
.room-slot:hover:not(:disabled) {
  background: transparent;
  filter: brightness(1.1);
}
.room-slot:disabled {
  opacity: 1;
}
.room-slot.found::after,
.room-slot.wrong::after,
.room-slot.answer::after {
  position: absolute;
  right: -2px;
  top: 0;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 700;
  background: #2e7565;
  color: white;
  box-shadow: 0 2px 5px #152b3840;
  content: "✓";
}
.room-slot.wrong::after {
  content: "×";
  background: #b94c47;
}
.room-slot.answer:not(.found) {
  outline: 3px solid #da8f26;
  outline-offset: -3px;
  background: #ffd58325;
}
.room-slot.answer:not(.found)::after {
  content: "!";
  background: #b6791b;
}
.room-slot.hinted {
  outline: 3px dashed #d89530;
  outline-offset: 2px;
}
.room-slot .gone {
  opacity: 0;
}
.room-instruction {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
  background: #f9fbff;
}
.room-instruction p {
  margin: 0;
  font-size: 14px;
}
.room-instruction strong {
  display: block;
}
.room-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
}
.room-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.memory-board {
  max-width: 820px;
  margin: auto;
}
.memory-board .hud strong {
  font-variant-numeric: tabular-nums;
}
.room-result {
  padding: 20px;
  background: white;
}
.room-result p {
  font-size: 14px;
  margin-bottom: 12px;
}
.review-tabs {
  display: flex;
  gap: 8px;
  margin: 12px 0;
}
.review-tabs button {
  font-size: 14px;
  flex: 1;
}
.review-list {
  margin: 10px 0 15px;
  padding-left: 20px;
  font-size: 14px;
  color: var(--muted);
}
.review-list li {
  margin: 7px 0;
}
.curtain {
  position: absolute;
  inset: 0;
  background: #203248;
  z-index: 5;
  animation: lights 0.55s ease forwards;
  pointer-events: none;
}
.progress i {
  background: #617baf;
}
.room-slot:hover .asset {
  transform: none;
}
@keyframes lights {
  0% {
    opacity: 0;
  }
  35% {
    opacity: 1;
  }
  65% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
.mode-options {
  display: flex;
  gap: 8px;
  margin: 3px 0 18px;
}
.mode-options button {
  font-size: 13px;
}
.result-rounds {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 22px 0;
}
.result-rounds div {
  padding: 15px 10px;
  text-align: center;
  background: var(--tint);
  border-radius: 10px;
}
.result-rounds small {
  display: block;
}
.result-rounds strong {
  font-size: 22px;
}
@media (max-width: 700px) {
  .room-instruction,
  .room-footer {
    padding: 12px;
  }
  .room-instruction p {
    font-size: 12px;
  }
  .room-footer p {
    font-size: 11px;
  }
  .room-footer button {
    font-size: 13px;
    padding: 8px 12px;
  }
  .room-slot::after {
    width: 20px !important;
    height: 20px !important;
    font-size: 12px !important;
  }
  .room-result {
    padding: 16px;
  }
  .room {
    aspect-ratio: 4/3;
  }
  .memory-board .hud {
    padding: 12px;
  }
  .memory-board .hud strong {
    font-size: 17px;
  }
  .room-instruction button {
    font-size: 12px;
    padding: 7px 10px;
    min-height: 44px;
  }
  .result-rounds {
    gap: 7px;
  }
}

.room-slot {
  min-width: 44px;
  min-height: 44px;
}
