.game-fx {
  position: absolute;
  z-index: 80;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.game-fx .prof-window {
  position: absolute;
  right: 2%;
  top: 28%;
  display: grid;
  grid-template-columns: 58px 1fr;
  grid-template-rows: auto auto auto;
  gap: .08rem .7rem;
  min-width: 245px;
  padding: .7rem .85rem;
  border: 2px solid #fff;
  border-radius: 38px 38px 3px 3px;
  background: linear-gradient(90deg, #17131c, #090a12);
  color: #fff;
  font: 900 .72rem Garamond, Georgia, serif;
  letter-spacing: .08em;
  box-shadow: 7px 7px 0 var(--rose), inset 0 0 0 5px #806a4a;
  animation: prof-window-pass 1.45s ease-in-out forwards;
}

.game-fx .prof-face {
  position: relative;
  grid-row: 1 / 4;
  align-self: center;
  width: 52px;
  height: 64px;
  border: 3px double #b99b70;
  border-radius: 28px 28px 3px 3px;
  background:
    radial-gradient(circle at 50% 27%, #d7c6ad 0 10px, transparent 11px),
    linear-gradient(155deg, transparent 0 42%, #d8d0c5 43% 51%, #302633 52%);
  box-shadow: inset 0 0 14px #000;
}

.game-fx .prof-face::before,
.game-fx .prof-face::after {
  content: "";
  position: absolute;
  top: 18px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #211b20;
}

.game-fx .prof-face::before { left: 18px; }
.game-fx .prof-face::after { right: 18px; }
.game-fx .prof-window > span { align-self: end; color: #f4e9d7; font-size: .69rem; }
.game-fx .prof-window > b { color: var(--rose); font: 1000 1.45rem Arial Black, Arial, sans-serif; }
.game-fx .prof-window > small { color: #c1b8cb; font-size: .67rem; }
.game-shell.wrong-jolt { animation: wrong-jolt-house .38s linear; }

@keyframes wrong-jolt-house {
  25% { transform: translateX(-4px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-2px); }
}

@keyframes prof-window-pass {
  0% { transform: translateX(150%) rotate(4deg); }
  20%, 72% { transform: translateX(0) rotate(-2deg); }
  100% { transform: translateX(150%) rotate(8deg); }
}

@media (max-width: 520px) {
  .game-fx .prof-window {
    right: 4%;
    top: 20%;
    min-width: 0;
    width: min(270px, 88%);
    grid-template-columns: 52px 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .game-fx .prof-window { animation: none; }
}
