:root {
  --bg: #08224a;
  --panel: #0c2d5f;
  --panel-2: #09254f;
  --brand: #0b47a9;
  --brand-2: #16a1ff;
  --text: #e8eefc;
  --muted: #b7c3de;
  --border: #15315d;
  --shadow: rgba(0,0,0,.35);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", sans-serif;
  color: var(--text);
  background: var(--bg);
}

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: #061a3a; border-bottom: 1px solid rgba(255,255,255,0.06); box-shadow: 0 6px 20px var(--shadow); }
.header-inner { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 16px; padding: 12px 0; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-img { height: 22px; width: auto; display: block; }
.nav { display: none; gap: 8px; background: #072351; padding: 6px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.06); }
.nav .tab { color: #c9d6ef; text-decoration: none; font-weight: 700; padding: 8px 12px; border-radius: 10px; border: 1px solid transparent; }
.nav .tab:hover { background: rgba(255,255,255,.06); }
.auth { display: flex; gap: 8px; }

@media (min-width: 720px) { .nav { display: flex; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 10px; text-decoration: none; font-weight: 800; border: 1px solid transparent; transition: .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: white; }
.btn-secondary { background: #10356e; color: #d7e4ff; border-color: rgba(255,255,255,0.08); }
.btn-ghost { background: transparent; color: var(--muted); border-color: var(--border); }
.btn-text { background: transparent; color: var(--muted); }
.btn-accent { background: linear-gradient(135deg, #00bfa5, #00e5ff); color: #002126; }
.btn-lg { padding: 14px 18px; font-size: 16px; border-radius: 12px; }
.btn-sm { padding: 8px 10px; font-size: 12px; border-radius: 8px; }
.btn-primary, .btn-ghost { filter: drop-shadow(0 2px 6px rgba(0,0,0,.25)); }
.card:hover .btn-primary, .card:hover .btn-ghost { box-shadow: 0 0 0 2px rgba(255,255,255,.12) inset; }
.card:hover .btn-primary { filter: brightness(1.05); }
.card:hover .btn-ghost { background: rgba(0,0,0,.35); color: #e7efff; border-color: rgba(255,255,255,.25); }

/* (hero удалён как на референсе) */

/* Games */
.games { padding: 24px 0 48px; }
.games-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.games h2 { margin: 0; font-size: 22px; }
.search input { width: min(320px, 100%); padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--panel); color: var(--text); outline: none; }

.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .grid { grid-template-columns: repeat(4, 1fr); } }

.card { position: relative; overflow: hidden; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--border); aspect-ratio: 1 / 1; }
.card:hover { box-shadow: 0 10px 30px var(--shadow); }
.card-cover { position: absolute; inset: 0; display: block; background: linear-gradient(180deg, #123a7a, #0a285d); background-size: cover; background-position: center; }
.card-body { position: absolute; inset: 0; z-index: 2; }
.card .card-actions { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; gap: 8px; opacity: 0; transition: .2s ease; }
.card:hover .card-actions { opacity: 1; }
.card h3, .card .card-title { position: absolute; left: 8px; right: 8px; bottom: 8px; margin: 0; font-size: 13px; letter-spacing: .2px; color: #d9e7ff; background: rgba(8,19,43,.8); border: 1px solid rgba(255,255,255,.06); padding: 8px 10px; border-radius: 10px; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; }
.card:hover h3, .card:hover .card-title { filter: brightness(1.05); }

.cta-bottom { margin-top: 20px; text-align: center; }

/* Footer */
.site-footer { border-top: 1px solid rgba(255,255,255,0.06); background: #061a3a; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0; }
.footer-nav { display: flex; gap: 12px; }
.footer-nav a { color: var(--muted); text-decoration: none; }
.promo { background: #072351; border-bottom: 1px solid rgba(255,255,255,.06); }
.promo-inner { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.promo-pill { display: inline-block; background: linear-gradient(135deg, #00bfa5, #00e5ff); color: #002126; font-weight: 900; padding: 8px 12px; border-radius: 999px; }
.about { padding: 28px 0 40px; background: #061f45; border-top: 1px solid rgba(255,255,255,.06); }
.about h2 { margin: 0 0 10px; font-size: 20px; }
.about h3 { margin: 18px 0 8px; font-size: 18px; }
.about p { color: #c8d6f0; line-height: 1.6; }
.about .benefits { margin: 8px 0 0; padding-left: 18px; color: #c8d6f0; line-height: 1.6; }

/* Touch-friendly overlay: на мобильных кнопки всегда видимы */
@media (hover: none) {
  .card .card-actions { opacity: 1; }
}

/* Utils */
.hidden { display: none !important; }


