.game-cards,
.collection-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 26px);
}
.game-card,
.game-box {
  overflow: hidden;
  border-radius: 24px;
  border: 1.5px solid #c9b9ae;
  box-shadow: 0 4px 0 #d7c6bb80;
  background: var(--paper);
}
.game-card {
  padding: 0;
  text-align: left;
}
.game-card.bubbles,
.game-box.bubbles {
  --scene: url('bubbles.svg');
  --tint: #dbece5;
}
.game-card.stars,
.game-box.stars {
  --scene: url('stars.svg');
  --tint: #ece3f2;
}
.game-art,
.play-scene {
  isolation: isolate;
  position: relative;
  display: block;
  background: var(--tint) var(--scene) center / cover no-repeat;
}
.game-art {
  aspect-ratio: 1.95;
  overflow: hidden;
}
.card-motif {
  position: absolute;
  left: 43%;
  top: 52%;
  transform: translate(-50%, -50%) rotate(-10deg);
}
.card-motif svg {
  width: clamp(54px, 9vw, 112px);
  height: auto;
  filter: drop-shadow(0 4px 2px #59445429);
}
.game-art > svg {
  position: absolute;
  left: 53%;
  top: 17%;
  width: clamp(40px, 6vw, 75px);
  height: auto;
  rotate: 12deg;
}
.game-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  border-top: 1px solid #d6c9bd;
}
.game-card-footer strong,
.round-prize h3 {
  font:
    600 clamp(1.35rem, 3.2vw, 2.05rem) / 1.15 Georgia,
    serif;
  color: var(--ink);
}
.game-card-footer small {
  display: block;
  font: 500 0.84rem/1.4 system-ui;
  color: #6a5769;
}
.play-triangle {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  background: var(--tint);
  display: grid;
  place-items: center;
  border: 1px solid #b8a7ad;
}
.play-triangle::after {
  content: '';
  width: 12px;
  height: 15px;
  background: #654765;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  margin-left: 3px;
}
.game-box {
  max-width: 790px;
  margin: auto;
}
.game-bar,
.game-instructions,
.catch-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  padding: 12px clamp(12px, 2.4vw, 24px);
}
.game-bar {
  border-bottom: 1px solid #d6c7c1;
}
.game-bar h2 {
  font-size: clamp(1.25rem, 3vw, 1.6rem);
}
.game-back,
.game-instructions button,
.game-rest button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 46px;
}
.game-back {
  background: #f3ece5;
  border: 1px solid #decec3;
  border-radius: 16px;
  padding: 6px 13px;
  font-weight: 650;
}
.game-back svg,
.game-instructions button svg {
  width: 27px;
  height: 27px;
}
.play-scene {
  height: clamp(260px, 47vw, 408px);
  overflow: hidden;
  touch-action: manipulation;
}
.target-grid {
  position: absolute;
  inset: 5% 8% 24%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  place-items: center;
  z-index: 1;
}
.touch-piece {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(60px, 12vw, 100px);
  height: clamp(60px, 12vw, 100px);
  padding: 2px;
  border: 0;
  background: transparent;
  border-radius: 50%;
  touch-action: manipulation;
}
.touch-piece.star {
  touch-action: none;
}
.touch-piece svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 3px 3px #59445430);
  animation: game-float 4.6s ease-in-out infinite alternate;
}
.touch-piece:nth-child(even) svg {
  animation-delay: -2s;
}
@keyframes game-float {
  to {
    transform: translateY(-3px) rotate(3deg);
  }
}
.catch-basket {
  position: absolute;
  bottom: 1%;
  left: 50%;
  transform: translateX(-50%);
  height: 24%;
  aspect-ratio: 1.3;
  display: grid;
  place-items: center;
}
.catch-basket svg,
.demo-target svg,
.demo-hand svg,
.prize-icon svg {
  height: 100%;
  width: 100%;
}
.demo-target,
.demo-hand {
  position: absolute;
  left: 48%;
  top: 38%;
  transform: translate(-50%, -50%);
  width: clamp(78px, 15vw, 130px);
  aspect-ratio: 1;
}
.demo-hand {
  width: clamp(44px, 8vw, 72px);
  left: 55%;
  top: 53%;
  animation: game-touch 2.1s ease-in-out infinite;
}
@keyframes game-touch {
  0%,
  100% {
    translate: 6px 7px;
  }
  55% {
    translate: -4px -6px;
  }
}
.game-instructions {
  flex-wrap: wrap;
  border-top: 1px solid #d6c7c1;
}
.game-instructions p {
  font-weight: 650;
}
.catch-progress {
  justify-content: center;
  min-height: 58px;
}
.catch-progress svg {
  width: 30px;
  height: 30px;
}
.catch-progress svg.waiting {
  opacity: 0.32;
  filter: grayscale(0.75);
}
.round-prize {
  position: absolute;
  inset: 50% auto auto 50%;
  translate: -50% -50%;
  display: grid;
  justify-items: center;
  gap: 6px;
  width: max-content;
  max-width: 88%;
  padding: 14px 22px 18px;
  border: 1px solid #d1bdd0;
  background: #fffbf4f5;
  border-radius: 26px;
  text-align: center;
  box-shadow: var(--shadow);
}
.prize-icon {
  width: clamp(55px, 9vw, 80px);
  aspect-ratio: 1;
}
.earned-star {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 650;
}
.game-rest {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 28px;
}
.game-rest > svg {
  width: 68px;
  height: 68px;
}
#game-note {
  text-align: center;
  margin-top: 9px;
}
.collection-panels .panel {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
}
.collection-panels .panel > svg {
  width: clamp(44px, 8vw, 70px);
  height: auto;
}
.treasure-coins {
  background: #fff4d8;
}
.treasure-level {
  background: #edf5e8;
}
#level-meter {
  max-width: 100%;
  height: 10px;
  accent-color: #6d9772;
}
.today-panel {
  margin-top: 18px;
  padding: 18px 22px;
}
#daily {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 14px;
  gap: 9px;
}
.task-tile {
  position: relative;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid #d7c8bd;
  border-radius: 17px;
  background: #faf5ef;
  font-weight: 650;
}
.task-tile svg {
  width: 33px;
  height: 33px;
}
.task-tile.earned {
  background: #fff3d6;
  border-color: #d9c18c;
}
.task-tile.earned > svg:last-child {
  position: absolute;
  right: 4px;
  top: 3px;
  width: 18px;
  height: 18px;
}
@media (max-width: 640px) {
  .game-cards {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .game-art {
    aspect-ratio: 2.8;
  }
  .game-card-footer {
    padding: 9px 15px;
  }
  .game-card-footer strong {
    font-size: 1.45rem;
  }
  .game-back,
  .game-instructions button {
    font-size: 0.92rem;
  }
  .game-instructions {
    gap: 7px;
  }
  .collection-panels {
    gap: 10px;
  }
  .collection-panels .panel {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px;
  }
  .collection-panels h2,
  .today-panel h2 {
    font-size: 1.2rem;
  }
  #level-meter {
    width: 100%;
  }
  #daily {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .today-panel {
    padding: 15px 12px;
  }
  .task-tile {
    font-size: 0.92rem;
    justify-content: flex-start;
  }
}
@media (max-width: 520px) {
  .nav-pick {
    flex-direction: column;
    line-height: 1.1;
    gap: 0;
    padding: 4px 7px;
  }
  .nav-pick span {
    font-size: 0.76rem;
  }
  .head-inner nav {
    gap: 1px;
  }
}
@media (max-width: 355px) {
  .head-inner .brand {
    font-size: 1.14rem;
    gap: 1px;
  }
  .brand-icon {
    width: 34px;
    height: 34px;
  }
  .nav-pick {
    padding: 4px 5px;
  }
  .game-instructions p {
    width: 100%;
  }
  .catch-progress {
    gap: 5px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .touch-piece svg,
  .demo-hand {
    animation: none;
  }
}
.paused .touch-piece svg,
.paused .demo-hand {
  animation-play-state: paused;
}
@media (max-width: 382px) {
  .head-inner .brand {
    font-size: 0;
    min-height: 46px;
    min-width: 46px;
    justify-content: center;
  }
  .head-inner .brand-icon {
    width: 38px;
    height: 38px;
  }
}
