.juicy-page .game-panel {
  display: grid;
  gap: 1rem;
}

.juicy-ui {
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 1.1rem;
  padding: 1rem;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 126, 189, 0.24), transparent 34%),
    radial-gradient(circle at 85% 15%, rgba(255, 190, 62, 0.22), transparent 30%),
    linear-gradient(160deg, rgba(71, 16, 81, 0.92), rgba(33, 22, 85, 0.9));
}

.juicy-topbar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
  align-items: center;
}

.juicy-stat {
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.55rem 0.7rem;
  display: grid;
  gap: 0.25rem;
}

.juicy-stat span {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffe8f6;
}

.juicy-stat strong {
  font-family: "Sora", system-ui, sans-serif;
  font-size: 1.05rem;
}

.juicy-hint {
  margin: 0.8rem 0 0;
  color: #f7def3;
  font-size: 0.9rem;
}

.juicy-board {
  --candy-size: 54px;
  margin-top: 0.9rem;
  padding: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 0.95rem;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04)),
    linear-gradient(150deg, rgba(90, 14, 94, 0.7), rgba(37, 24, 82, 0.76));
  display: grid;
  gap: 6px;
  justify-content: center;
  overflow: auto;
}

.candy-cell {
  width: var(--candy-size);
  height: var(--candy-size);
  border: none;
  border-radius: 0.9rem;
  cursor: pointer;
  position: relative;
  transform: scale(1);
  transition: transform 140ms ease;
  box-shadow:
    0 10px 14px rgba(7, 8, 24, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.16) inset;
}

.candy-cell::before {
  content: "";
  position: absolute;
  left: 18%;
  top: 11%;
  width: 62%;
  height: 28%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  filter: blur(0.4px);
}

.candy-cell:hover {
  transform: scale(1.05);
}

.candy-cell--selected {
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.9),
    0 10px 14px rgba(7, 8, 24, 0.35);
}

.candy-cell--clearing {
  animation: pop-out 170ms ease forwards;
}

.candy-cell--berry {
  background: linear-gradient(160deg, #ff5f9e, #db2f7f);
}

.candy-cell--orange {
  background: linear-gradient(160deg, #ffbe4c, #ff7d2a);
}

.candy-cell--melon {
  background: linear-gradient(160deg, #5de47c, #29b65c);
}

.candy-cell--grape {
  background: linear-gradient(160deg, #ae7cff, #7440f4);
}

.candy-cell--lemon {
  background: linear-gradient(160deg, #ffe66d, #f6b93f);
}

.candy-cell--mint {
  background: linear-gradient(160deg, #66f1e7, #1ec4cf);
}

.juicy-message {
  margin: 0.85rem 0 0;
  min-height: 1.35rem;
  color: #ffe9fb;
  font-size: 0.95rem;
}

@keyframes pop-out {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(0.72);
    opacity: 0.2;
  }
}

@media (max-width: 980px) {
  .juicy-page .game-panel {
    padding: 0.8rem;
  }
}

@media (max-width: 720px) {
  .juicy-topbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .juicy-board {
    --candy-size: 42px;
    gap: 5px;
    padding: 0.55rem;
  }

  .juicy-hint {
    font-size: 0.84rem;
  }
}
