/* ═══════════════════════════════════════════════════════════════
   ЧЕТЫРЕ Квадрата — Main Stylesheet
   ═══════════════════════════════════════════════════════════════ */

/* ─── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:          #FFFFFF;
  --surface:     #F7F9FC;
  --card:        #FFFFFF;
  --card-hover:  #EEF3FF;
  --border:      rgba(53, 60, 77, 0.1);
  --border-hover:rgba(0, 87, 255, 0.35);

  --accent:      #0057FF;
  --accent-dim:  rgba(0, 87, 255, 0.07);
  --accent-light:#0057FF;
  --accent-glow: rgba(0, 87, 255, 0.2);

  --text-primary:   #0E131C;
  --text-secondary: #353C4D;
  --text-muted:     rgba(53, 60, 77, 0.45);

  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   22px;
  --radius-xl:   32px;

  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-card: 0 4px 24px rgba(14, 19, 28, 0.07);
  --shadow-btn:  0 4px 18px rgba(0, 87, 255, 0.3);

  --header-h: 72px;
  --container: 1160px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, textarea { font: inherit; }

/* ─── Utility ────────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.section__head {
  text-align: center;
  margin-bottom: 56px;
}

.section__title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.section__sub {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto;
}

/* ─── Burger (hidden — kept for other pages that may reference it) ─── */
.burger { display: none !important; }

/* ─── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent);
  color: #FFFFFF;
  box-shadow: var(--shadow-btn);
}
.btn--primary:hover {
  filter: brightness(1.12);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 87, 255, 0.4);
}
.btn--primary:active { transform: translateY(0); filter: none; }

.btn--ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid rgba(53, 60, 77, 0.2);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

.btn--full { width: 100%; }

/* ─── Logo ───────────────────────────────────────────────────── */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  transition: opacity var(--transition);
}
.logo:hover { opacity: 0.75; }

.logo__icon {
  flex-shrink: 0;
  line-height: 0;
}

.logo__text {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--text-primary);
}
.logo__text span {
  color: var(--text-primary);
  font-weight: 400;
  text-transform: none;
}

/* ─── Social Button ──────────────────────────────────────────── */
.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: color var(--transition);
}
.social-btn:hover {
  color: var(--accent);
}

/* ═══════════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════════ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.header--scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 4px 20px rgba(14, 19, 28, 0.07);
}

.header__inner {
  display: flex;
  align-items: center;
  height: var(--header-h);
  gap: 32px;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
}
.nav__link:hover,
.nav__link--active {
  color: var(--text-primary);
  background: rgba(53, 60, 77, 0.06);
}

.nav__socials {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 20px;
  border-left: 1px solid var(--border);
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  margin-left: auto;
}
.burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
  transform-origin: center;
  pointer-events: none;
}
.burger--open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger--open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger--open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
  background: var(--bg);
}


.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 100px 0 80px;
  max-width: 720px;
  margin: 0 auto;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--accent-dim);
  border: 1px solid rgba(0, 87, 255, 0.2);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 24px;
  width: fit-content;
}

.hero__title {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
  color: #0E131C;
}

.hero__desc {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 36px;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.hero__stats {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  width: fit-content;
}

.hero__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.hero__stat-num {
  font-size: 22px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.hero__stat-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero__stat-divider {
  width: 1px;
  height: 32px;
  background: var(--border);
}


/* ═══════════════════════════════════════════════════════════════
   GAMES
   ═══════════════════════════════════════════════════════════════ */
.games {
  background: var(--surface);
}

.games__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.game-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  min-height: 320px;
  justify-content: center;
  transition: var(--transition);
}
.game-card:hover {
  background: var(--card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.game-card__icon {
  width: 125px;
  height: 125px;
  border-radius: 28px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(14, 19, 28, 0.12);
}

.game-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.game-card__name {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
}

.game-card__desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.game-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.game-card__downloads {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.game-card__badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(0, 87, 255, 0.2);
}
.game-card__badge--new {
  background: rgba(53, 60, 77, 0.07);
  color: var(--text-secondary);
  border-color: rgba(53, 60, 77, 0.15);
}

a.game-card {
  display: flex;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

/* ═══════════════════════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════════════════════ */
.contact {
  background: var(--bg);
}

.contact__cards {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 16px;
  justify-content: center;
}

.contact__card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}
.contact__card:hover {
  border-color: var(--border-hover);
  background: var(--card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.contact__card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--accent-dim);
  border: 1px solid rgba(0, 87, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.contact__card-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
}

.contact__card-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 64px 0 0;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 64px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 280px;
}

.footer__tagline {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

.footer__socials {
  display: flex;
  gap: 8px;
}

.footer__nav {
  display: flex;
  gap: 48px;
}

.footer__nav-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__nav-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
}

.footer__nav-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__nav-link {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color var(--transition);
}
.footer__nav-link:hover { color: var(--text-primary); }

.footer__bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer__copy {
  font-size: 13px;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — TABLET (≤ 900px)
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {

  .hero__inner {
    padding: 72px 0 60px;
  }

  .contact__cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer__nav { flex-wrap: wrap; gap: 32px; }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE (≤ 640px)
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {

  .container { padding: 0 16px; }
  .section   { padding: 64px 0; }

  /* Header — mobile: скрываем текст логотипа, навигация по центру */
  .logo__text { display: none; }

  .header__inner {
    justify-content: center;
  }

  .logo {
    display: none;
  }

  .nav {
    margin-left: 0;
  }

  .nav__list {
    gap: 0;
  }

  .nav__socials {
    display: none;
  }

  /* Hero */
  .hero__title { letter-spacing: -1.5px; }

  .hero__stats {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    width: 100%;
  }

  .hero__stat-divider { display: none; }


  /* Games */
  .games__grid { grid-template-columns: 1fr; }

  .game-card { flex-direction: column; }

  .contact__cards {
    grid-template-columns: 1fr 1fr;
  }

  /* Footer */
  .footer__brand { max-width: 100%; }
  .footer__nav   { flex-direction: column; gap: 24px; }
}

@media (max-width: 400px) {
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { text-align: center; }
}

/* ═══════════════════════════════════════════════════════════════
   PRIVACY POLICY PAGE
   ═══════════════════════════════════════════════════════════════ */
.policy-hero {
  padding-top: calc(var(--header-h) + 64px);
  padding-bottom: 48px;
  text-align: center;
}
.policy-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--accent-dim);
  border: 1px solid rgba(0, 87, 255, 0.2);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 20px;
}
.policy-hero__title {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 900;
  letter-spacing: -1px;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.policy-hero__date {
  font-size: 14px;
  color: var(--text-muted);
}

.policy-body {
  background: var(--surface);
  padding: 64px 0 96px;
}
.policy-content {
  max-width: 760px;
  margin: 0 auto;
}
.policy-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  margin-bottom: 16px;
}
.policy-section__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.policy-section__title-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--accent-dim);
  border: 1px solid rgba(0, 87, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.policy-section p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 12px;
}
.policy-section p:last-child { margin-bottom: 0; }
.policy-section ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}
.policy-section ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
}
.policy-section ul li::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 9px;
  flex-shrink: 0;
}
.policy-contact-link {
  color: var(--accent);
  font-weight: 600;
  transition: opacity var(--transition);
}
.policy-contact-link:hover { opacity: 0.75; }

@media (max-width: 640px) {
  .policy-section { padding: 24px 20px; }
  .policy-body { padding: 48px 0 72px; }
}

/* ═══════════════════════════════════════════════════════════════
   GAME PAGE
   ═══════════════════════════════════════════════════════════════ */
.game-hero {
  padding-top: calc(var(--header-h) + 80px);
  padding-bottom: 96px;
}

.game-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
  max-width: 560px;
  margin: 0 auto;
}

.game-hero__icon {
  width: 200px;
  height: 200px;
  border-radius: 44px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 20px 56px rgba(14, 19, 28, 0.15);
}

.game-hero__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.game-hero__title {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1.05;
  color: var(--text-primary);
}

.game-hero__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 25px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  transition: var(--transition);
  white-space: nowrap;
}
.store-btn svg { flex-shrink: 0; width: 25px; height: 25px; color: var(--text-muted); transition: color var(--transition); }
.store-btn:hover {
  border-color: var(--border-hover);
  background: var(--card-hover);
  color: var(--accent);
}
.store-btn:hover svg { color: var(--accent); }

.game-hero__desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.75;
}

@media (max-width: 640px) {
  .game-hero { padding-top: calc(var(--header-h) + 48px); padding-bottom: 64px; }
  .game-hero__icon { width: 150px; height: 150px; border-radius: 34px; }
}

/* ═══════════════════════════════════════════════════════════════
   GAMES PAGE
   ═══════════════════════════════════════════════════════════════ */
.games-page-hero {
  padding-top: calc(var(--header-h) + 64px);
  padding-bottom: 64px;
  text-align: center;
}
.games-page-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--accent-dim);
  border: 1px solid rgba(0, 87, 255, 0.2);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 20px;
}
.games-page-hero__title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 900;
  letter-spacing: -1px;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.games-page-hero__sub {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Games List ── */
.games-list-section {
  background: var(--surface);
  padding: 80px 0 96px;
}

.games-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.game-row {
  display: grid;
  grid-template-columns: 32px 100px 1fr auto;
  align-items: center;
  gap: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
  position: relative;
}
.game-row:hover {
  background: var(--card-hover);
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}
.game-row:hover .game-row__arrow {
  color: var(--accent);
  transform: translateX(4px);
}

.game-row__num {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-muted);
  text-align: center;
  line-height: 1;
}

.game-row__icon {
  width: 100px;
  height: 100px;
  border-radius: 22px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(14, 19, 28, 0.12);
}
.game-row__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.game-row__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.game-row__name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}
.game-row__desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 560px;
}
.game-row__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.game-row__badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(0, 87, 255, 0.2);
}
.game-row__downloads {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.game-row__side {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.game-row__arrow {
  color: var(--text-muted);
  transition: color var(--transition), transform var(--transition);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .game-row {
    grid-template-columns: 28px 80px 1fr auto;
    gap: 16px;
    padding: 20px;
  }
  .game-row__icon {
    width: 80px;
    height: 80px;
    border-radius: 18px;
  }
  .game-row__name { font-size: 17px; }
  .game-row__desc { display: none; }
}

@media (max-width: 480px) {
  .game-row {
    grid-template-columns: 24px 68px 1fr 24px;
    gap: 12px;
    padding: 16px;
  }
  .game-row__icon {
    width: 68px;
    height: 68px;
    border-radius: 14px;
  }
  .game-row__num { font-size: 15px; }
}

/* ═══════════════════════════════════════════════════════════════
   LOGIN
   ═══════════════════════════════════════════════════════════════ */
.login-wrap {
  min-height: calc(100vh - var(--header-h));
  margin-top: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
}

.login-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 48px 40px;
  width: 100%;
  max-width: 400px;
}

.login-card__title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 32px;
  text-align: center;
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.login-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.login-field input {
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--text-primary);
  background: var(--bg);
  outline: none;
  transition: border-color var(--transition);
}

.login-field input:focus {
  border-color: var(--accent);
}

.login-card .btn--primary {
  margin-top: 8px;
}

/* ═══════════════════════════════════════════════════════════════
   ADMIN PANEL
   ═══════════════════════════════════════════════════════════════ */
.admin-wrap {
  padding-top: var(--header-h);
  min-height: 100vh;
  background: var(--surface);
}

/* ── Admin bar (horizontal nav) ── */
.admin-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.admin-bar__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 56px;
}

.admin-bar__nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.admin-bar__btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
  white-space: nowrap;
}

.admin-bar__btn:hover {
  color: var(--text-primary);
  background: rgba(53, 60, 77, 0.06);
}

.admin-bar__btn--active {
  color: var(--accent);
  background: var(--accent-dim);
  font-weight: 600;
}

.admin-bar__btn--active:hover {
  color: var(--accent);
  background: var(--accent-dim);
}

.admin-bar__btn svg {
  flex-shrink: 0;
  opacity: 0.7;
}

.admin-bar__btn--active svg {
  opacity: 1;
}

.admin-bar__logout {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
  margin-left: auto;
  flex-shrink: 0;
}

.admin-bar__logout:hover {
  color: #e53e3e;
  background: rgba(229, 62, 62, 0.06);
}

/* ── Content ── */
.admin-content {
  padding: 32px 0 64px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ── Stats ── */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.admin-stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
}

.admin-stat-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.admin-stat-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--accent-dim);
  border: 1px solid rgba(0, 87, 255, 0.15);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.admin-stat-card__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-stat-card__label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.admin-stat-card__value {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

/* ── Section ── */
.admin-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.admin-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}

.admin-section__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.admin-section__body {
  padding: 24px;
}

/* ── Placeholder ── */
.admin-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 60px 24px;
  color: var(--text-muted);
  text-align: center;
}

.admin-placeholder p {
  font-size: 14px;
  font-weight: 500;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .admin-bar__inner {
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .admin-bar__inner::-webkit-scrollbar { display: none; }
  .admin-bar__logout span { display: none; }
  .admin-content { padding: 16px 0 48px; }
}

/* ═══════════════════════════════════════════════════════════════
   ADMIN GAME PAGE  (#games / #admin-content)
   ═══════════════════════════════════════════════════════════════ */

#games {
  min-height: calc(100vh - 56px);
  background: var(--surface);
  padding: calc(var(--header-h) + 40px) 0 80px;
}

#min {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

#place {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

#admin-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* ── Add-game form card ── */
#admin-content form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

#admin-content form h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.3px;
  margin-bottom: 24px;
}

/* hide the raw <br/> spacing — layout handled by gap/margin */
#admin-content form br { display: none; }

#admin-content form b {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  margin-top: 16px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

#admin-content form b:first-of-type {
  margin-top: 0;
}

#admin-content form input[type='text'],
#admin-content form textarea,
#admin-content form input[type='file'] {
  width: 100%;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 14px;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

#admin-content form input[type='text'] {
  padding: 11px 14px;
}

#admin-content form textarea {
  padding: 11px 14px;
  min-height: 100px;
  resize: vertical;
  line-height: 1.6;
}

#admin-content form input[type='file'] {
  padding: 10px 14px;
  cursor: pointer;
}

#admin-content form input[type='text']:focus,
#admin-content form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

#admin-content form button[type='submit'],
#admin-content form > button {
  margin-top: 24px;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-btn);
  transition: var(--transition);
}

#admin-content form button[type='submit']:hover,
#admin-content form > button:hover {
  filter: brightness(1.12);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 87, 255, 0.4);
}

#admin-content form button[type='submit']:active,
#admin-content form > button:active {
  transform: translateY(0);
  filter: none;
}

/* ── Delete-game card ── */
#admin-content > h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

#admin-content > br { display: none; }

#selected-game {
  display: block;
  width: 100%;
  max-width: 400px;
  padding: 11px 14px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  margin-top: 12px;
  margin-bottom: 16px;
}

#selected-game:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

#delete-game {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  background: transparent;
  color: #e53e3e;
  font-size: 14px;
  font-weight: 600;
  border: 1.5px solid #e53e3e;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

#delete-game:hover {
  background: rgba(229, 62, 62, 0.07);
  transform: translateY(-1px);
}

#delete-game:active {
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 640px) {
  #min { padding: 0 16px; }
  #games { padding: 24px 0 60px; }
  #admin-content form { padding: 20px; }
  #admin-content form button[type='submit'],
  #admin-content form > button { width: 100%; justify-content: center; }
  #delete-game { width: 100%; justify-content: center; }
  #selected-game { max-width: 100%; }
}
