/* Easter egg: Tic-tac-toe */
.easter-game {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(3, 12, 20, 0.58);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.28s,
    visibility 0.28s;
}
.easter-game.is-open {
  opacity: 1;
  visibility: visible;
}
.game-panel {
  position: relative;
  width: min(390px, 100%);
  padding: 36px;
  border-radius: 30px;
  text-align: center;
  transform: translateY(18px) scale(0.96);
  transition: transform 0.3s;
}
.easter-game.is-open .game-panel {
  transform: translateY(0) scale(1);
}
.game-panel h2 {
  font-size: 56px;
  letter-spacing: -0.1em;
  line-height: 1;
  margin: 9px 0;
}
.game-panel p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 14px;
}
.game-close {
  position: absolute;
  top: 15px;
  right: 16px;
  width: 31px;
  height: 31px;
  border: 0;
  background: rgba(100, 125, 145, 0.12);
  border-radius: 50%;
  font-size: 23px;
  line-height: 1;
  color: var(--ink);
  cursor: pointer;
}
.tic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: auto;
  max-width: 290px;
}
.tic-cell {
  aspect-ratio: 1;
  border: 1px solid rgba(104, 146, 181, 0.25);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.36);
  color: var(--ink);
  font:
    700 clamp(34px, 8vw, 52px)/1 Inter,
    -apple-system,
    sans-serif;
  cursor: pointer;
  transition:
    transform 0.16s,
    background 0.16s;
}
.tic-cell:hover:not(:disabled) {
  background: rgba(106, 188, 255, 0.25);
  transform: scale(1.04);
}
.tic-cell.o {
  color: #7665e9;
}
.tic-cell.x {
  color: #1389f2;
}
.game-reset {
  border: 0;
  border-radius: 99px;
  background: var(--ink);
  color: #fff;
  padding: 12px 17px;
  margin-top: 22px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.dark .game-panel {
  background: rgba(17, 32, 45, 0.8);
}
.dark .game-close,
.dark .tic-cell {
  color: #eef7ff;
  background: rgba(255, 255, 255, 0.08);
}
.dark .game-reset {
  background: #eaf5ff;
  color: #0c1720;
}
