:root {
  --eng-panel-bg: rgba(6, 12, 24, 0.84);
  --eng-panel-line: rgba(135, 183, 255, 0.38);
  --eng-ink: #e8f2ff;
  --eng-muted: #a5bbdd;
  --eng-like: #8be5b8;
  --eng-dislike: #ff9b9b;
}

.game-engagement-dock {
  margin-top: 0.64rem;
  margin-bottom: 0.64rem;
}

.portal-game-footer {
  margin: 0.74rem auto 0.82rem;
  width: min(74rem, calc(100vw - 1rem));
  border: 1px solid rgba(135, 183, 255, 0.32);
  border-radius: 0.9rem;
  background: rgba(7, 14, 28, 0.84);
  color: #e8f2ff;
  padding: 0.56rem 0.72rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.48rem;
  flex-wrap: wrap;
  box-shadow: 0 10px 28px rgba(2, 8, 18, 0.4);
}

.portal-game-footer .footer-copy {
  font: 700 0.8rem/1.2 "Space Grotesk", "Trebuchet MS", sans-serif;
  color: #dfeeff;
}

.portal-game-footer .footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.46rem;
}

.portal-game-footer .footer-links a {
  color: #bddbff;
  text-decoration: none;
  font: 600 0.75rem/1.2 "Space Grotesk", "Trebuchet MS", sans-serif;
  border: 1px solid rgba(135, 183, 255, 0.28);
  border-radius: 999px;
  padding: 0.2rem 0.52rem;
  background: rgba(8, 15, 31, 0.76);
  transition: border-color 140ms ease, transform 140ms ease;
}

.portal-game-footer .footer-links a:hover {
  border-color: rgba(160, 203, 255, 0.64);
  transform: translateY(-1px);
}

.game-title-dot {
  width: 0.44rem;
  height: 0.44rem;
  border-radius: 50%;
  background: linear-gradient(130deg, #73bcff, #93f0c5);
}

.game-reaction-panel {
  width: 100%;
  border: 1px solid var(--eng-panel-line);
  border-radius: 0.88rem;
  background: var(--eng-panel-bg);
  color: var(--eng-ink);
  padding: 0.54rem;
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 28px rgba(2, 8, 18, 0.48);
}

.game-reaction-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.56rem;
  flex-wrap: wrap;
}

.game-reaction-title {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  font: 800 0.9rem/1.2 "Space Grotesk", "Trebuchet MS", sans-serif;
  color: #e3f0ff;
}

.game-reaction-head-actions {
  display: flex;
  gap: 0.38rem;
  align-items: center;
  flex-wrap: wrap;
}

.game-reaction-btn {
  border: 1px solid rgba(135, 183, 255, 0.34);
  border-radius: 0.64rem;
  background: rgba(8, 15, 31, 0.84);
  color: var(--eng-ink);
  font: 700 0.73rem/1 "Space Grotesk", "Trebuchet MS", sans-serif;
  padding: 0.38rem 0.52rem;
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  cursor: pointer;
  transition: border-color 140ms ease, transform 140ms ease, background 140ms ease;
}

.game-reaction-btn:hover {
  border-color: rgba(160, 203, 255, 0.64);
  transform: translateY(-1px);
}

.game-reaction-btn.is-active.like {
  border-color: rgba(139, 229, 184, 0.84);
  background: rgba(16, 51, 42, 0.88);
  color: #dbffe9;
}

.game-reaction-btn.is-active.dislike {
  border-color: rgba(255, 155, 155, 0.84);
  background: rgba(58, 22, 28, 0.9);
  color: #ffe6e6;
}

.game-reaction-like-count {
  color: var(--eng-like);
  font-weight: 800;
}

.game-reaction-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 1px solid rgba(135, 183, 255, 0.34);
  border-radius: 0.64rem;
  color: #d9ecff;
  background: rgba(8, 15, 31, 0.84);
  font: 700 0.73rem/1 "Space Grotesk", "Trebuchet MS", sans-serif;
  padding: 0.38rem 0.56rem;
  transition: border-color 140ms ease, transform 140ms ease, background 140ms ease;
}

.game-reaction-link:hover {
  border-color: rgba(160, 203, 255, 0.64);
  transform: translateY(-1px);
}

.game-reaction-link.donate {
  background: linear-gradient(130deg, #ffcf7d, #ffad73);
  border-color: rgba(255, 221, 174, 0.74);
  color: #311303;
}

.game-reaction-note {
  margin: 0.38rem 0 0;
  min-height: 1.1rem;
  color: var(--eng-muted);
  font: 600 0.68rem/1.3 "Space Grotesk", "Trebuchet MS", sans-serif;
}

.orientation-overlay {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: none;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(4, 10, 21, 0.9), rgba(2, 6, 14, 0.92));
  padding: 1rem;
}

.orientation-overlay.is-visible {
  display: flex;
}

.orientation-card {
  width: min(92vw, 360px);
  border: 1px solid rgba(139, 188, 255, 0.5);
  border-radius: 0.9rem;
  background: rgba(8, 15, 30, 0.96);
  color: #edf5ff;
  padding: 0.9rem;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.48);
  text-align: center;
}

.orientation-card h2 {
  margin: 0;
  font: 700 1.08rem/1.2 "Space Grotesk", "Trebuchet MS", sans-serif;
}

.orientation-card p {
  margin: 0.48rem 0 0;
  color: #bfd3ef;
  font: 500 0.86rem/1.4 "Space Grotesk", "Trebuchet MS", sans-serif;
}

.orientation-card button {
  margin-top: 0.74rem;
  border: 1px solid rgba(140, 191, 255, 0.5);
  border-radius: 0.7rem;
  background: linear-gradient(125deg, #2d7dc6, #55a8f2);
  color: #f2f9ff;
  padding: 0.48rem 0.82rem;
  font: 700 0.8rem/1 "Space Grotesk", "Trebuchet MS", sans-serif;
  cursor: pointer;
}

@media (max-width: 860px) {
  .game-reaction-panel {
    padding: 0.48rem;
  }

  .game-reaction-btn {
    font-size: 0.7rem;
    padding: 0.34rem 0.48rem;
  }

  .game-reaction-link {
    font-size: 0.7rem;
    padding: 0.34rem 0.48rem;
  }

  .portal-game-footer {
    width: calc(100vw - 1rem);
    padding: 0.5rem 0.56rem;
  }

  .portal-game-footer .footer-links a {
    font-size: 0.7rem;
    padding: 0.18rem 0.44rem;
  }
}
