/* ============ Игры ============ */
.games-page { background: var(--bg); }

.games-hero {
  padding: clamp(34px, 5vw, 70px) 0 clamp(24px, 4vw, 44px);
  background:
    radial-gradient(620px 380px at 92% -10%, rgba(246, 197, 107, .3), transparent 70%),
    var(--bg);
}
.games-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 4vw, 50px); align-items: center; }
.games-hero h1 { margin-bottom: 16px; }
.games-hero .lead { max-width: 42em; margin-bottom: 20px; }

.games-access {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 18px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  border: 1px solid #CFE3D8;
  color: var(--brand);
  font-size: .78rem;
  font-weight: 700;
}
.games-access.is-active { background: #DDF0E4; color: #1F5C46; border-color: #B9DCC8; }

.games-picker { max-width: 380px; margin-bottom: 18px; }
.games-picker select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--line-strong);
  background: #fff;
  font: inherit;
  font-size: .98rem;
  color: var(--ink);
  box-shadow: var(--shadow);
}
.games-picker select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(31, 92, 70, .12); }

.games-hero-art { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }
.games-hero-art span {
  width: 84px; height: 84px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  font-size: 2.4rem;
  box-shadow: var(--shadow);
  transform: rotate(-6deg);
}
.games-hero-art span:nth-child(2) { transform: rotate(4deg) translateY(18px); }
.games-hero-art span:nth-child(3) { transform: rotate(-3deg) translateY(-8px); }
.games-hero-art span:nth-child(4) { transform: rotate(7deg) translateY(10px); }

.games-picks { padding: clamp(24px, 3vw, 40px) 0; background: var(--bg-soft); }

.games-all { padding: clamp(30px, 4vw, 50px) 0; }

.games-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }

.game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: start; }

.game-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
}
.game-top { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.game-emoji {
  width: 46px; height: 46px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--yellow-soft);
  border-radius: 14px;
  color: var(--brand);
  font-size: 1.5rem;
}
.game-emoji svg { display: block; }
.game-type { font-size: .66rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted-2); }
.game-card h3 { font-size: 1.05rem; margin: 2px 0 0; }
.game-verdict {
  margin-left: auto;
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.gv-great { background: #DDF0E4; color: #1F5C46; }
.gv-ok { background: #E9F5EE; color: #26704F; }
.gv-maybe { background: var(--yellow-soft); color: #8A6118; }
.gv-no { background: #F7DADA; color: #8A1F1F; }

.game-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: .8rem;
  color: var(--muted-2);
  margin: 0 0 8px;
}
.game-meta-sep { color: var(--muted); }
.game-access {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 999px;
  white-space: nowrap;
}
.game-access.is-free { background: #DDF0E4; color: #1F5C46; }
.game-access.is-sub { background: var(--yellow-soft); color: #8A6118; }
.game-access.is-locked { background: #F3F0EA; color: var(--muted); }
.game-access.is-locked svg { flex: none; }
.game-desc { font-size: .9rem; color: var(--muted); margin: 0 0 10px; line-height: 1.5; }
.game-card.is-locked { background: #FCFBF8; cursor: pointer; }
.game-card.is-locked .game-emoji { filter: grayscale(.2); opacity: .85; }

.game-how { border-top: 1px dashed var(--line); padding-top: 8px; margin-top: auto; }
.game-how summary {
  cursor: pointer;
  list-style: none;
  font-size: .82rem;
  font-weight: 700;
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.game-how summary::-webkit-details-marker { display: none; }
.game-how summary::after { content: "+"; font-size: 1rem; }
.game-how[open] summary::after { transform: rotate(45deg); }
.game-how-hint {
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.game-how > ol { margin: 8px 0; padding-left: 18px; display: grid; gap: 4px; font-size: .82rem; color: var(--muted); }
.game-stages { display: grid; gap: 8px; margin: 10px 0 0; }
.game-stage {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
}
.game-stage-head { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 8px; }
.game-stage-num {
  width: 24px; height: 24px;
  flex: none;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.game-stage-title b { display: block; font-size: .86rem; }
.game-stage-title small { display: block; font-size: .7rem; color: var(--muted); line-height: 1.35; }
.game-stage-steps { margin: 0 0 8px; padding-left: 18px; display: grid; gap: 4px; font-size: .84rem; color: var(--muted); }
.game-stage-success { margin: 0; font-size: .8rem; color: var(--brand); }
.game-stage-success b { color: var(--brand-deep); }
.game-locked { border-top: 1px dashed var(--line); padding-top: 10px; margin-top: auto; }
.game-locked-title { display: flex; align-items: center; gap: 6px; color: var(--muted-2); font-size: .78rem; margin-bottom: 4px; }
.game-locked-title b { color: var(--ink); }
.game-locked p { margin: 0 0 8px; font-size: .8rem; color: var(--muted); line-height: 1.45; }
.game-caution {
  margin: 8px 0 0;
  background: #FFF3EF;
  border-radius: 9px;
  padding: 8px 10px;
  font-size: .78rem;
  color: #8A3A18;
}
.game-caution b { color: #6E2C12; }
.game-dev { margin: 10px 0 0; font-size: .82rem; color: var(--muted-2); }
.game-dev b { color: var(--ink); }

/* ---------- Подписка ---------- */
.games-paywall { padding: 0 0 clamp(28px, 4vw, 44px); }
.games-paywall-card {
  display: grid;
  grid-template-columns: 1.4fr .6fr;
  gap: clamp(20px, 3vw, 34px);
  align-items: center;
  background: var(--brand-deep);
  color: #F2ECE2;
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3.5vw, 40px);
}
.games-paywall-copy h2 { color: #fff; margin-bottom: 10px; }
.games-paywall-copy p { color: rgba(242, 236, 226, .82); margin: 0 0 14px; font-size: .94rem; line-height: 1.55; }
.games-paywall-list { margin: 0; padding-left: 18px; display: grid; gap: 7px; font-size: .9rem; color: rgba(242, 236, 226, .88); }
.games-paywall-list b { color: var(--yellow); }
.games-paywall-price {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
}
.games-paywall-price > span {
  display: block;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(242, 236, 226, .7);
  margin-bottom: 4px;
}
.games-paywall-price > b {
  display: block;
  font-family: var(--font-head);
  font-size: 2rem;
  color: #fff;
  margin-bottom: 14px;
}
.games-paywall-price > b small { font-family: var(--font-body); font-size: .9rem; color: rgba(242, 236, 226, .7); }
.games-paywall-price > small { display: block; margin-top: 10px; font-size: .72rem; color: rgba(242, 236, 226, .82); line-height: 1.4; }
.games-active {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  background: #DDF0E4;
  border: 1px solid #B9DCC8;
  border-radius: 14px;
  padding: 14px 18px;
  font-size: .9rem;
  color: #1F5C46;
}
.games-active-dot { width: 9px; height: 9px; border-radius: 50%; background: #2E8B57; flex: none; }
.games-active a { margin-left: auto; color: var(--brand); font-weight: 700; }

.games-pay-dialog {
  border: 0;
  border-radius: var(--radius-lg);
  padding: 0;
  width: min(520px, calc(100% - 28px));
  background: #FFFDF9;
  color: var(--ink);
  box-shadow: var(--shadow-lg);
}
.games-pay-dialog::backdrop { background: rgba(20, 16, 12, .58); backdrop-filter: blur(3px); }
.pay-inner { padding: clamp(22px, 3.5vw, 32px); position: relative; }
.pay-inner .bd-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 0;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}
.pay-inner .bd-close:hover { background: var(--line); color: var(--ink); }
.pay-inner h2 { margin-bottom: 8px; padding-right: 40px; }
.pay-inner p { margin: 0 0 12px; font-size: .9rem; color: var(--muted); }
.pay-inner ul { margin: 14px 0 18px; padding-left: 18px; display: grid; gap: 5px; font-size: .9rem; color: var(--muted); }
.pay-note { margin: 12px 0 0 !important; font-size: .78rem !important; color: var(--muted-2) !important; }
.locked-tag {
  display: inline-block;
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--yellow-soft);
  color: #8A6118;
  margin-bottom: 8px;
}
.games-pay-price { display: flex; align-items: baseline; gap: 6px; margin: 12px 0; }
.games-pay-price b { font-family: var(--font-head); font-size: 2rem; }
.games-pay-price span { font-size: .84rem; color: var(--muted); }
body.no-scroll { overflow: hidden; }

.games-safety { padding: 0 0 clamp(50px, 6vw, 76px); }
.games-safety-card {
  background: var(--brand-deep);
  color: #F2ECE2;
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3.4vw, 38px);
}
.games-safety-card h2 { color: #fff; margin-bottom: 14px; }
.games-safety-card ul { margin: 0 0 16px; padding-left: 20px; display: grid; gap: 7px; font-size: .92rem; color: rgba(242, 236, 226, .85); }
.games-safety-card p { margin: 0; font-size: .86rem; }
.games-safety-card a { color: var(--yellow); }

@media (max-width: 960px) {
  .games-hero-grid { grid-template-columns: 1fr; }
  .games-hero-art { order: -1; }
  .game-grid { grid-template-columns: repeat(2, 1fr); }
  .games-paywall-card { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .game-grid { grid-template-columns: 1fr; }
  .games-hero-art span { width: 64px; height: 64px; font-size: 1.8rem; }
  .games-active a { margin-left: 0; }
}
