: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;
}

.game-progress-note {
  margin: 0 0 0.44rem;
  padding: 0.44rem 0.58rem;
  border: 1px solid rgba(255, 196, 122, 0.5);
  border-radius: 0.74rem;
  background: linear-gradient(125deg, rgba(55, 33, 12, 0.66), rgba(10, 18, 33, 0.9));
  color: #ffe2bb;
  font: 600 0.72rem/1.34 "Space Grotesk", "Trebuchet MS", sans-serif;
}

.game-progress-note strong {
  color: #ffd391;
}

.game-seo-shell {
  width: min(74rem, calc(100vw - 1rem));
  margin: 0.74rem auto 0;
  display: grid;
  gap: 0.72rem;
}

.game-summary-card {
  border: 1px solid rgba(135, 183, 255, 0.28);
  border-radius: 1rem;
  background: rgba(7, 14, 28, 0.84);
  color: #e8f2ff;
  padding: 0.86rem 0.94rem;
  box-shadow: 0 10px 28px rgba(2, 8, 18, 0.34);
}

.game-summary-kicker {
  margin: 0;
  color: #8dccff;
  font: 800 0.72rem/1.2 "Space Grotesk", "Trebuchet MS", sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.game-summary-card h2 {
  margin: 0.36rem 0 0;
  font: 800 clamp(1.2rem, 2vw, 1.6rem)/1.15 "Space Grotesk", "Trebuchet MS", sans-serif;
}

.game-summary-card p {
  margin: 0.56rem 0 0;
  color: #c5d8ee;
  font: 500 0.92rem/1.6 "Space Grotesk", "Trebuchet MS", sans-serif;
}

.game-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.34rem 0.48rem;
  color: #a5c0dd;
  font: 700 0.75rem/1.3 "Space Grotesk", "Trebuchet MS", sans-serif;
}

.game-breadcrumbs a {
  color: #bedeff;
  text-decoration: none;
}

.game-breadcrumbs a:hover {
  text-decoration: underline;
}

.game-breadcrumb-separator {
  color: #6c8daf;
}

.game-feature-grid,
.related-games-grid {
  margin-top: 0.78rem;
  display: grid;
  gap: 0.68rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.game-feature-card,
.related-game-card {
  border: 1px solid rgba(135, 183, 255, 0.18);
  border-radius: 0.92rem;
  background: rgba(9, 17, 31, 0.78);
  padding: 0.78rem;
}

.game-feature-card h3,
.related-game-copy h3 {
  margin: 0;
  color: #eef6ff;
  font: 800 0.96rem/1.25 "Space Grotesk", "Trebuchet MS", sans-serif;
}

.game-feature-card p,
.related-game-copy p {
  margin: 0.36rem 0 0;
  color: #b9d1ea;
  font: 500 0.84rem/1.5 "Space Grotesk", "Trebuchet MS", sans-serif;
}

.related-games-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.related-game-card {
  display: grid;
  gap: 0.68rem;
  text-decoration: none;
  color: inherit;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 180ms ease;
}

.related-game-card:hover {
  transform: translateY(-2px);
  border-color: rgba(160, 203, 255, 0.46);
  box-shadow: 0 12px 28px rgba(2, 8, 18, 0.34);
}

.related-game-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 0.8rem;
  border: 1px solid rgba(135, 183, 255, 0.18);
}

.related-game-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  flex-wrap: wrap;
}

.related-game-chip {
  border: 1px solid rgba(135, 183, 255, 0.28);
  border-radius: 999px;
  padding: 0.18rem 0.46rem;
  color: #dcecff;
  font: 700 0.7rem/1.1 "Space Grotesk", "Trebuchet MS", sans-serif;
}

.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-btn.share {
  border-color: rgba(120, 217, 177, 0.42);
  background: rgba(14, 42, 38, 0.84);
  color: #dcfff2;
}

.game-reaction-btn.share:hover {
  border-color: rgba(143, 237, 202, 0.72);
}

.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;
}

.share-btn {
  background: linear-gradient(130deg, rgba(66, 172, 214, 0.22), rgba(120, 217, 177, 0.18));
  border-color: rgba(132, 214, 239, 0.34);
}

.share-btn:hover {
  border-color: rgba(163, 226, 245, 0.68);
}

.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;
}

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

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

.share-card {
  position: relative;
  width: min(92vw, 30rem);
  border-radius: 1.5rem;
  border: 1px solid rgba(135, 183, 255, 0.28);
  background: linear-gradient(180deg, rgba(34, 36, 57, 0.98), rgba(24, 24, 38, 0.98));
  color: #f3f7ff;
  padding: 1.35rem 1.2rem 1.15rem;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
}

.share-card h2 {
  margin: 0;
  text-align: center;
  font: 800 clamp(1.5rem, 4vw, 2.25rem)/1.1 "Space Grotesk", "Trebuchet MS", sans-serif;
}

.share-copy {
  margin: 0.5rem 0 0;
  text-align: center;
  color: #c5d4ef;
  font: 500 0.9rem/1.45 "Space Grotesk", "Trebuchet MS", sans-serif;
}

.share-preview-box {
  margin-top: 1rem;
  display: grid;
  gap: 0.34rem;
}

.share-preview-box label {
  color: #bcd0ea;
  font: 700 0.76rem/1.2 "Space Grotesk", "Trebuchet MS", sans-serif;
}

.share-preview-box textarea {
  min-height: 5.8rem;
  resize: none;
  border: 1px solid rgba(135, 183, 255, 0.28);
  border-radius: 0.82rem;
  background: rgba(8, 15, 31, 0.92);
  color: #eef5ff;
  padding: 0.72rem 0.8rem;
  font: 600 0.84rem/1.45 "Space Grotesk", "Trebuchet MS", sans-serif;
}

.share-note {
  margin: 0.52rem 0 0;
  color: #9eb6d8;
  font: 600 0.74rem/1.45 "Space Grotesk", "Trebuchet MS", sans-serif;
}

.share-close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  border: 0;
  background: transparent;
  color: #eef4ff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.share-actions {
  margin-top: 1.1rem;
  display: flex;
  justify-content: center;
  gap: 0.85rem;
}

.share-channel {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  border: 0;
  background: transparent;
  color: #eef4ff;
  font: 700 0.82rem/1 "Space Grotesk", "Trebuchet MS", sans-serif;
  cursor: pointer;
}

.share-channel-mark {
  width: 5rem;
  height: 5rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(130deg, #2d63e2, #4f7ef1);
  box-shadow: 0 14px 32px rgba(45, 99, 226, 0.32);
}

.share-link-box {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.7rem;
  padding: 0.75rem;
  border: 1px solid rgba(135, 183, 255, 0.2);
  border-radius: 1rem;
  background: rgba(14, 16, 29, 0.94);
}

.share-link-box input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #f4f8ff;
  font: 600 0.94rem/1.2 "Space Grotesk", "Trebuchet MS", sans-serif;
}

.share-link-box button {
  border: 0;
  border-radius: 999px;
  padding: 0.82rem 1.3rem;
  color: #fff6ff;
  background: linear-gradient(130deg, #6e58f2, #8a63ff);
  font: 800 0.94rem/1 "Space Grotesk", "Trebuchet MS", sans-serif;
  cursor: pointer;
}

.share-copy-text {
  margin-top: 0.7rem;
  border: 1px solid rgba(135, 183, 255, 0.24);
  border-radius: 999px;
  padding: 0.48rem 0.72rem;
  color: #dbeaff;
  background: rgba(10, 18, 33, 0.86);
  font: 700 0.78rem/1 "Space Grotesk", "Trebuchet MS", sans-serif;
  cursor: pointer;
}

@media (max-width: 860px) {
  .game-seo-shell {
    width: calc(100vw - 1rem);
  }

  .game-progress-note {
    font-size: 0.68rem;
    padding: 0.4rem 0.5rem;
  }

  .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;
  }

  .share-card {
    width: min(94vw, 28rem);
    padding: 1.2rem 1rem 1rem;
  }

  .game-feature-grid,
  .related-games-grid {
    grid-template-columns: 1fr;
  }

  .share-channel-mark {
    width: 4.4rem;
    height: 4.4rem;
    font-size: 2.2rem;
  }

  .share-link-box {
    grid-template-columns: 1fr;
  }

  .share-link-box button {
    width: 100%;
  }
}
