/* Define That! Beta — concise first-match rules card */
.beta-title-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 0.38rem;
  padding: 0.18rem 0.42rem;
  border: 1px solid rgba(232, 247, 94, 0.58);
  border-radius: 999px;
  background: rgba(232, 247, 94, 0.13);
  color: #e8f75e;
  font-size: 0.34em;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1;
  vertical-align: middle;
}

.game-intro-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(5, 8, 7, 0.76);
  backdrop-filter: blur(5px);
}

.game-intro-modal.hidden {
  display: none;
}

.game-intro-card {
  position: relative;
  width: min(520px, 100%);
  max-height: calc(100dvh - 36px);
  overflow: auto;
  border: 1px solid #454b43;
  border-radius: 22px;
  background: #1a1d1a;
  color: #f4f4ec;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.42);
  padding: 22px;
}

.game-intro-close {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 0 0 -40px auto;
  padding: 0;
  border: 1px solid #4a514a;
  border-radius: 12px;
  background: rgba(28, 32, 29, 0.96);
  color: #eef1e9;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1;
}

.game-intro-close:hover,
.game-intro-close:focus-visible {
  border-color: #788276;
  background: #262b27;
  outline: none;
}

.game-intro-kicker {
  margin: 0 0 5px;
  padding-right: 48px;
  color: #e8f75e;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.game-intro-card h2 {
  margin: 0;
  padding-right: 44px;
  font-size: clamp(1.6rem, 7vw, 2.15rem);
}

.game-intro-subtitle {
  margin: 6px 0 18px;
  color: #b8beb5;
  font-size: 0.98rem;
}

.game-intro-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 18px;
}

.game-intro-flow div {
  min-width: 0;
  border: 1px solid #343a34;
  border-radius: 13px;
  background: #222622;
  padding: 11px 8px;
  text-align: center;
}

.game-intro-flow strong {
  display: block;
  margin-bottom: 3px;
  font-size: 0.92rem;
}

.game-intro-flow span {
  color: #aeb4ac;
  font-size: 0.76rem;
  line-height: 1.25;
}

.game-intro-section + .game-intro-section {
  margin-top: 16px;
}

.game-intro-section h3 {
  margin: 0 0 8px;
  color: #dfe3da;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.game-intro-section ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 1.15rem;
  color: #d5d9d1;
  font-size: 0.9rem;
  line-height: 1.35;
}

.game-intro-section strong {
  color: #f5f6ef;
}

.game-intro-bonuses {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin: 9px 0;
}

.game-intro-bonus {
  border-radius: 10px;
  padding: 9px 4px;
  text-align: center;
  font-weight: 800;
  font-size: 0.82rem;
}

.game-intro-bonus.letter { background: #176395; color: #eaf6ff; }
.game-intro-bonus.word { background: #a75316; color: #fff3e8; }
.game-intro-bonus.define { background: #7042a5; color: #f5ecff; }
.game-intro-bonus.start { background: #568645; color: #f2ffe9; }

.game-intro-gate {
  margin: 16px 0;
  border-left: 4px solid #e8f75e;
  border-radius: 8px;
  background: rgba(232, 247, 94, 0.08);
  padding: 10px 12px;
  color: #eef0e8;
  font-size: 0.9rem;
  line-height: 1.35;
}

.game-intro-begin,
.game-intro-back {
  width: 100%;
  min-height: 52px;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 900;
  cursor: pointer;
}

.game-intro-begin {
  margin-top: 4px;
  border: 0;
  background: #e8f75e;
  color: #1a1d1a;
}

.game-intro-back {
  margin-top: 10px;
  border: 1px solid #474e47;
  background: #242824;
  color: #d9ddd6;
}

.game-intro-back:hover,
.game-intro-back:focus-visible {
  border-color: #697268;
  background: #2d322d;
  outline: none;
}

.game-intro-begin:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

@media (max-width: 430px) {
  .game-intro-modal { padding: 10px; }
  .game-intro-card {
    max-height: calc(100dvh - 20px);
    border-radius: 18px;
    padding: 17px;
  }
  .game-intro-close {
    width: 38px;
    height: 38px;
    margin-bottom: -38px;
  }
  .game-intro-flow { gap: 5px; }
  .game-intro-flow div { padding: 9px 5px; }
  .game-intro-flow span { font-size: 0.7rem; }
  .game-intro-section ul { font-size: 0.84rem; }
  .game-intro-bonus { font-size: 0.76rem; }
}
