.games-hero {
  padding: 36px 0 10px;
}
.mode-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 22px 0 40px;
}
.mode-card {
  text-align: left;
  cursor: pointer;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  color: #f6f1ff;
  background: rgba(18, 14, 32, 0.92);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.mode-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(168,85,247,.45), transparent 70%);
  opacity: 0;
  transition: opacity .22s ease;
  pointer-events: none;
}
.mode-card:hover {
  transform: translateY(-8px) scale(1.015);
  border-color: #c084fc;
  box-shadow: 0 22px 44px rgba(145, 70, 255, .35);
}
.mode-card:hover::after { opacity: 1; }
.mode-card:active { transform: translateY(-2px) scale(.995); }
.mode-card h3 { font-size: 22px; margin-bottom: 8px; color: #fff; }
.mode-card p { color: #c9bddf; flex: 1; }

.game-shell { display: none; padding-bottom: 70px; }
.game-shell.active { display: block; animation: fadeUp .35s ease; }
.stage-img-wrap, .q-big, .choices {
  animation: fadeUp .35s ease;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
.stage-img-wrap.pop {
  animation: fadeUp .32s ease;
}

.scorebar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
  background: rgba(145,70,255,0.12);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  font-weight: 700;
  font-size: 13px;
}
.pill.hot { background: rgba(255,77,154,0.16); color: #ffd0e6; }
.pill.ok { background: rgba(77,226,255,0.12); color: #bff6ff; }

.stage {
  background: #0a0714;
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  min-height: 420px;
}
.stage-img-wrap {
  position: relative;
  height: min(62vh, 620px);
  background: #000;
  overflow: hidden;
}
.stage-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.6s ease, transform 1.2s ease;
}
.stage-img-wrap.cover-mode {
  display: grid;
  place-items: center;
  background: radial-gradient(#1a1230, #05040a);
}
.stage-img-wrap.cover-mode img {
  width: auto;
  height: 100%;
  max-width: 42%;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,.55);
}
.stage-img-wrap.quiz-mode {
  display: grid;
  place-items: center;
  padding: 40px;
  height: auto;
  min-height: 280px;
}
.actor-faces {
  display: none;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  width: min(920px, 100%);
  margin-top: 18px;
}
.actor-card {
  margin: 0;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.actor-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.actor-card figcaption {
  padding: 8px 8px 10px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  color: #efe7ff;
}
@media (max-width: 800px) {
  .actor-faces { grid-template-columns: repeat(2, 1fr); }
}
.q-big {
  font-family: "Unbounded", sans-serif;
  font-size: clamp(26px, 4vw, 44px);
  text-align: center;
  max-width: 900px;
  line-height: 1.25;
}

.reveal-banner {
  position: absolute;
  inset: auto 0 0 0;
  padding: 22px 24px;
  background: linear-gradient(transparent, rgba(0,0,0,.88));
  transform: translateY(110%);
  transition: 0.35s;
}
.reveal-banner.show { transform: translateY(0); }
.reveal-banner b {
  font-family: "Unbounded", sans-serif;
  font-size: clamp(22px, 3vw, 36px);
}

.choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 16px;
}
.choice {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  color: white;
  border-radius: 14px;
  padding: 14px 16px;
  text-align: left;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}
.choice:hover { border-color: var(--purple-2); }
.choice.correct { border-color: #3ee0a0; background: rgba(62,224,160,.12); }
.choice.wrong { border-color: #ff4d6d; background: rgba(255,77,109,.12); }
.choice:disabled { cursor: default; }

.controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.guess-box { display: flex; gap: 10px; flex: 1; min-width: 240px; }

.timer {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 3px solid var(--purple);
  display: grid;
  place-items: center;
  font-family: "Unbounded", sans-serif;
  font-size: 22px;
}
.timer.warn { border-color: #ff4d9a; color: #ff4d9a; }

.host-help {
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
kbd {
  background: #1b1530;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
  color: white;
}

.vs {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  margin: 8px 0 16px;
}
.vs-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  text-align: center;
}
.vs-card b { font-family: "Unbounded", sans-serif; font-size: 28px; display: block; }
.vs-mid { color: var(--purple-2); font-weight: 800; }

.lobby { display: none; }
.lobby.show { display: block; }

.next-modal {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(5, 3, 12, 0.72);
  backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease;
}
.next-modal.show {
  opacity: 1;
  pointer-events: auto;
}
.next-modal-box {
  width: min(520px, 100%);
  text-align: center;
  padding: 28px 24px;
  transform: translateY(18px) scale(.96);
  transition: transform .32s cubic-bezier(.2, .9, .2, 1);
}
.next-modal.show .next-modal-box {
  transform: translateY(0) scale(1);
}
.next-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.next-actions .btn { min-width: 200px; }

@media (max-width: 900px) {
  .mode-grid, .choices { grid-template-columns: 1fr; }
  .stage-img-wrap.cover-mode img { max-width: 70%; }
}
