[hidden] {
  display: none !important;
}

.play {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 88px 20px 14px;
  gap: 8px;
}

.guide {
  align-items: center;
  width: 100%;
  max-width: 900px;
}

.guide img {
  width: clamp(64px, 10vh, 84px);
}

.guide .bubble {
  margin-bottom: 0;
  max-width: none;
}

.board {
  --f: clamp(38px, 7.5vh, 62px);
  position: relative;
  flex: 1;
  min-height: 0;
  width: 100%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.62);
  border-radius: 40px;
  box-shadow: var(--shadow);
}

.board.many {
  --f: clamp(28px, 5vh, 42px);
}

.equation {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
  font-size: clamp(54px, min(11vh, 12vw), 92px);
  font-weight: 800;
  line-height: 1.05;
}

.equation.enter-in {
  animation: pop-in 0.4s cubic-bezier(0.2, 1.4, 0.4, 1);
}

.equation .op {
  color: var(--lav-deep);
}

.slot {
  min-width: 1.5em;
  padding: 0 0.18em;
  text-align: center;
  border-radius: 28px;
  background: #fff;
  border: 6px dashed var(--lav-deep);
  color: var(--ink-soft);
}

.slot.right {
  border: 6px solid var(--mint-deep);
  color: var(--mint-deep);
  animation: pop-in 0.35s ease;
}

.aid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2vw, 22px);
}

.sign {
  font-size: clamp(34px, 6vh, 52px);
  font-weight: 800;
  color: var(--lav-deep);
}

.group {
  display: grid;
  grid-template-columns: repeat(var(--cols, 5), var(--f, 48px));
  gap: 4px;
  padding: 8px;
  border-radius: 22px;
  background: var(--butter);
}

.group:nth-of-type(2) {
  background: var(--sky);
}

.pic {
  position: relative;
  width: var(--f, 48px);
  height: var(--f, 48px);
  border-radius: 50%;
  animation: pop-in 0.35s cubic-bezier(0.2, 1.4, 0.4, 1) backwards;
  transition: transform 0.2s ease, background-color 0.2s ease, opacity 0.3s ease;
}

.pic img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 3px 3px rgba(61, 58, 92, 0.18));
}

.pic.gone img {
  opacity: 0.4;
  filter: grayscale(0.5);
}

.pic.gone::before,
.pic.gone::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: calc(50% - 3px);
  height: 6px;
  border-radius: 3px;
  background: var(--peach-deep);
  transform: rotate(45deg);
  z-index: 1;
}

.pic.gone::after {
  transform: rotate(-45deg);
}

.aid.taking .pic.gone {
  opacity: 0.35;
}

.pic.lit {
  background: #fff;
  box-shadow: 0 0 0 3px var(--mint-deep);
  transform: scale(1.08);
}

.count-chip {
  position: absolute;
  right: 18px;
  top: 14px;
  min-width: 76px;
  height: 76px;
  padding: 0 14px;
  border-radius: 38px;
  display: grid;
  place-items: center;
  background: var(--mint-deep);
  color: #fff;
  font-size: 44px;
  font-weight: 800;
  box-shadow: 0 5px 0 #3fa572;
}

.count-chip.tick {
  animation: pop-in 0.25s ease;
}

.choices {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 3vw, 34px);
}

.choice {
  position: relative;
  --s: clamp(84px, min(12.5vh, 17vw), 120px);
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  font-size: calc(var(--s) * 0.5);
  font-weight: 800;
  background: var(--tint);
  box-shadow: 0 7px 0 var(--edge), 0 14px 24px rgba(61, 58, 92, 0.16);
  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.2s ease;
}

.choice.c-sky {
  --tint: var(--sky);
  --edge: var(--sky-deep);
}

.choice.c-mint {
  --tint: var(--mint);
  --edge: var(--mint-deep);
}

.choice.c-pink {
  --tint: var(--pink);
  --edge: var(--pink-deep);
}

.choice.c-lav {
  --tint: var(--lav);
  --edge: var(--lav-deep);
}

@media (hover: hover) {
  .choice:hover {
    transform: translateY(-3px);
  }
}

.choice:active {
  transform: translateY(5px);
  box-shadow: 0 2px 0 var(--edge);
}

.choice kbd {
  display: none;
  position: absolute;
  left: -6px;
  top: -6px;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  place-items: center;
  background: #fff;
  color: var(--ink-soft);
  font: inherit;
  font-size: 20px;
  box-shadow: 0 3px 0 #d4d2e6;
}

.choices.by-pos .choice kbd {
  display: grid;
}

.choice.nope {
  opacity: 0.4;
  cursor: default;
  animation: shake 0.45s ease;
  transform: none;
}

.choice.hint {
  background: var(--butter);
  animation: glow 1.1s ease-in-out infinite;
}

.choice.right {
  background: var(--mint-deep);
  color: #fff;
  transform: scale(1.12);
}

.key-tip {
  margin: 0;
  font-size: clamp(15px, 2vh, 18px);
  font-weight: 700;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.7);
  border-radius: 18px;
  padding: 2px 16px;
  text-align: center;
}

.round-dots {
  display: flex;
  gap: 10px;
}

.round-dots i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
}

.round-dots i.now {
  box-shadow: 0 0 0 4px var(--butter-deep);
}

.round-dots i.ok {
  background: var(--butter-deep);
}

@media (orientation: portrait) {
  .play {
    gap: 14px;
    padding-bottom: 22px;
  }

  .board {
    --f: clamp(44px, 9vw, 72px);
    gap: 18px;
  }

  .board.many {
    --f: clamp(34px, 6.4vw, 54px);
  }

  .aid.pair {
    flex-direction: column;
    gap: 6px;
  }

  .aid.pair .sign {
    line-height: 1;
  }
}
