/* ИгроВыгода — пилот хаба скидок */
:root {
  --bg: #0f1218;
  --bg-card: #171b24;
  --bg-elevated: #1e2430;
  --border: #2a3344;
  --text: #e8ecf4;
  --muted: #9aa6b8;
  --accent: #3dd68c;
  --accent-dim: #1f8f5a;
  --warn: #f0b429;
  --wait: #8b95a8;
  --danger: #e85d5d;
  --link: #7ec8ff;
  --radius: 12px;
  --max: 1080px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(15, 18, 24, 0.92);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  flex-wrap: wrap;
}

.logo {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text);
  letter-spacing: -0.02em;
  text-decoration: none;
}

.logo span {
  color: var(--accent);
}

.nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
}

/* Hero */
.hero {
  padding: 2.2rem 0 1.2rem;
}

.hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.03em;
}

.hero p {
  margin: 0;
  color: var(--muted);
  max-width: 40rem;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.8rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--muted);
}

/* Sections */
.section {
  padding: 1.25rem 0 2rem;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.section-head h2 {
  margin: 0;
  font-size: 1.25rem;
}

.section-head .more {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Cards grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.card:hover {
  border-color: var(--accent-dim);
  transform: translateY(-1px);
}

.card a.title {
  color: var(--text);
  font-weight: 700;
  font-size: 1.02rem;
  text-decoration: none;
  line-height: 1.3;
}

.card a.title:hover {
  color: var(--accent);
}

.meta {
  color: var(--muted);
  font-size: 0.85rem;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.price-now {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent);
}

.price-old {
  color: var(--muted);
  text-decoration: line-through;
  font-size: 0.9rem;
}

.discount {
  background: rgba(61, 214, 140, 0.15);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
}

.verdict {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
}

.verdict-brat {
  background: rgba(61, 214, 140, 0.18);
  color: var(--accent);
}

.verdict-smotret {
  background: rgba(240, 180, 41, 0.15);
  color: var(--warn);
}

.verdict-zhdat {
  background: rgba(139, 149, 168, 0.18);
  color: var(--wait);
}

.card-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.9rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.92rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
  filter: brightness(1.06);
}

.btn-primary {
  background: var(--accent);
  color: #062416;
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--muted);
}

/* Collection teaser */
.collections {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.collection-tile {
  background: linear-gradient(145deg, var(--bg-elevated), var(--bg-card));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
  text-decoration: none;
  color: inherit;
  display: block;
}

.collection-tile:hover {
  border-color: var(--accent-dim);
  text-decoration: none;
}

.collection-tile h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.collection-tile p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Game page */
.game-layout {
  display: grid;
  gap: 1.5rem;
  padding: 1.75rem 0 2.5rem;
}

@media (min-width: 800px) {
  .game-layout {
    grid-template-columns: 1fr 300px;
    align-items: start;
  }
}

.game-main h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
}

.lead {
  color: var(--muted);
  font-size: 1.02rem;
}

.buy-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem;
  position: sticky;
  top: 4.5rem;
}

.buy-box .price-now {
  font-size: 1.6rem;
}

.buy-box .btn {
  width: 100%;
  margin-top: 0.75rem;
}

.note {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.75rem;
}

.facts {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.facts li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}

.facts li span:first-child {
  color: var(--muted);
}

/* Ad placeholder */
.ad-slot {
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.02);
  margin: 1.25rem 0;
}

/* Prose */
.prose {
  max-width: 42rem;
}

.prose h2 {
  margin-top: 1.75rem;
  font-size: 1.15rem;
}

.prose p,
.prose li {
  color: var(--text);
}

.prose .muted,
.muted {
  color: var(--muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 2rem;
  padding: 1.5rem 0 2rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer .wrap {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.site-footer nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.crumbs {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.crumbs a {
  color: var(--muted);
}

.list-plain {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.list-plain li {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
}

.list-plain li strong a {
  color: var(--text);
}

.tag {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--muted);
  background: var(--bg-elevated);
  border-radius: 4px;
  padding: 0.1rem 0.4rem;
  margin-right: 0.25rem;
}

/* Sticky buy bar (mobile conversion) */
.sticky-buy {
  display: none;
}
@media (max-width: 799px) {
  .sticky-buy {
    display: flex;
    gap: 0.5rem;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 30;
    padding: 0.65rem 0.85rem;
    background: rgba(15, 18, 24, 0.96);
    border-top: 1px solid var(--border);
    backdrop-filter: blur(8px);
  }
  .sticky-buy .btn {
    flex: 1;
  }
  body {
    padding-bottom: 4.5rem;
  }
}

/* Alphabet */
.alpha-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 1rem 0 1.5rem;
}
.alpha-nav a {
  display: inline-flex;
  min-width: 2rem;
  justify-content: center;
  padding: 0.3rem 0.45rem;
  border-radius: 6px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}
.alpha-nav a:hover {
  color: var(--text);
  border-color: var(--accent-dim);
}
.alpha-block {
  margin-bottom: 1.5rem;
}
.alpha-block h2 {
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
  color: var(--accent);
}
.alpha-block ul {
  list-style: none;
  padding: 0;
  margin: 0;
  columns: 2;
  gap: 1.5rem;
}
@media (max-width: 600px) {
  .alpha-block ul {
    columns: 1;
  }
}
.alpha-block li {
  padding: 0.25rem 0;
  break-inside: avoid;
}
.alpha-block a {
  color: var(--text);
  text-decoration: none;
}
.alpha-block a:hover {
  color: var(--accent);
}
.alpha-block .price {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.88rem;
  margin-left: 0.35rem;
}

/* Guide list */
.guide-list {
  display: grid;
  gap: 0.85rem;
}
.guide-list a {
  display: block;
  padding: 1rem 1.1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: inherit;
  text-decoration: none;
}
.guide-list a:hover {
  border-color: var(--accent-dim);
}
.guide-list h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}
.guide-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}
