/*
 * All Yono Games List - public interface
 * Original, framework-free visual system.
 */

:root {
  --brand: var(--primary, #1265e8);
  --brand-strong: var(--primary-dark, #064dc4);
  --brand-deep: var(--primary-dark, #073b91);
  --navy: var(--primary-dark, #062b66);
  --navy-2: var(--primary-deep, #041f50);
  --cyan: #08b8e9;
  --teal: #10bfa6;
  --teal-soft: #ddfaf5;
  --orange: #ff7b22;
  --orange-soft: #fff0e3;
  --red: #ef4760;
  --yellow: #ffbc2e;
  --ink: #0a2e68;
  --text: #38557c;
  --muted: #7288a6;
  --line: #d6e6f7;
  --line-strong: #bdd8f2;
  --surface: #ffffff;
  --surface-blue: #f4faff;
  --surface-2: #eaf5ff;
  --page: #f8fbff;
  --shadow-xs: 0 1px 3px rgb(14 65 127 / 8%);
  --shadow-sm: 0 6px 18px rgb(13 69 139 / 10%);
  --shadow-md: 0 14px 38px rgb(7 54 121 / 14%);
  --shadow-lg: 0 24px 60px rgb(2 39 94 / 19%);
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 22px;
  --container: 1180px;
  --header-height: 70px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 118px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--page);
  font: 400 15px/1.6 var(--font);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.nav-open,
body.lightbox-open {
  overflow: hidden;
}

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

img {
  height: auto;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button,
select {
  cursor: pointer;
}

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

a:hover {
  color: var(--brand-strong);
}

p,
h1,
h2,
h3,
h4,
h5,
ul,
ol,
dl,
figure {
  margin-top: 0;
}

h1,
h2,
h3,
h4,
h5 {
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.18;
}

h1 { font-size: clamp(2rem, 4vw, 3.55rem); }
h2 { font-size: clamp(1.55rem, 2.6vw, 2.25rem); }
h3 { font-size: clamp(1.13rem, 1.7vw, 1.4rem); }
h4 { font-size: 1rem; }

::selection {
  color: #fff;
  background: var(--brand);
}

:focus-visible {
  outline: 3px solid rgb(18 101 232 / 28%);
  outline-offset: 2px;
}

.skip-link {
  position: fixed;
  z-index: 2000;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  color: #fff;
  border-radius: var(--radius-xs);
  background: var(--navy);
  transform: translateY(-150%);
}

.skip-link:focus { transform: none; }

.container,
.site-container,
.wrap {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: clamp(38px, 5vw, 72px);
}

.section-sm { padding-block: 30px; }
.section-blue { background: var(--surface-blue); }
.section-white { background: #fff; }

.section-heading,
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.section-heading > :last-child,
.section-head > :last-child { flex: 0 0 auto; }
.section-heading h2,
.section-head h2 { margin-bottom: 5px; }
.section-heading p,
.section-head p { margin-bottom: 0; color: var(--muted); }

.eyebrow,
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 12px;
  padding: 6px 10px;
  color: var(--brand);
  border: 1px solid #cde3ff;
  border-radius: 999px;
  background: #eff7ff;
  font-size: .73rem;
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1;
  text-transform: uppercase;
}

.eyebrow::before,
.kicker::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  content: "";
}

.muted { color: var(--muted); }
.text-center { text-align: center; }
.visually-hidden,
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.card,
.content-card,
.sidebar-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-xs);
}

.card,
.content-card { padding: 22px; }
.sidebar-card { padding: 18px; }

.btn,
.button,
button.btn,
input[type="submit"] {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 18px;
  color: #fff;
  border: 1px solid var(--brand);
  border-radius: 8px;
  background: var(--brand);
  box-shadow: 0 5px 14px rgb(18 101 232 / 18%);
  font-size: .88rem;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.btn:hover,
.button:hover,
button.btn:hover,
input[type="submit"]:hover {
  color: #fff;
  background: var(--brand-strong);
  box-shadow: 0 8px 20px rgb(18 101 232 / 24%);
  transform: translateY(-1px);
}

.btn:active,
.button:active { transform: translateY(0); }

.btn-outline,
.button-outline,
.btn.secondary {
  color: var(--brand);
  background: #fff;
  box-shadow: none;
}

.btn-outline:hover,
.button-outline:hover,
.btn.secondary:hover {
  color: #fff;
  background: var(--brand);
}

.btn-orange { border-color: var(--orange); background: var(--orange); }
.btn-teal { border-color: var(--teal); background: var(--teal); }
.btn-sm { min-height: 35px; padding: 7px 13px; font-size: .78rem; }
.btn-lg { min-height: 50px; padding: 13px 24px; font-size: .96rem; }
.btn-block { width: 100%; }

.icon-btn {
  display: inline-grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  color: var(--brand);
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
}

.icon-btn svg,
.btn svg,
.button svg { width: 18px; height: 18px; }

/* Header */
.site-header,
.public-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  border-bottom: 1px solid rgb(181 215 247 / 85%);
  background: rgb(255 255 255 / 94%);
  box-shadow: 0 3px 16px rgb(8 56 119 / 6%);
  backdrop-filter: saturate(145%) blur(14px);
}

.header-inner,
.site-header__inner {
  display: flex;
  min-height: var(--header-height);
  align-items: center;
  gap: 28px;
}

.site-brand,
.brand {
  display: inline-flex;
  min-width: max-content;
  align-items: center;
  gap: 10px;
  color: var(--navy);
}

.brand-mark,
.site-logo {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  color: #fff;
  border-radius: 11px;
  background: linear-gradient(145deg, #129cf1, #1257d9 55%, #6c35d6);
  box-shadow: 0 6px 16px rgb(18 101 232 / 25%);
}

.brand-mark img,
.site-logo img { width: 100%; height: 100%; object-fit: cover; }
.brand-copy { display: grid; line-height: 1.15; }
.brand-copy strong { color: var(--navy); font-size: .94rem; font-weight: 850; }
.brand-copy small { margin-top: 4px; color: var(--muted); font-size: .61rem; }

.site-nav,
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.site-nav a,
.main-nav a {
  position: relative;
  padding: 11px 10px;
  color: var(--ink);
  border-radius: 7px;
  font-size: .78rem;
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a[aria-current="page"],
.main-nav a:hover,
.main-nav a.active {
  color: var(--brand);
  background: #f0f7ff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.nav-toggle,
.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.nav-toggle span,
.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 4px 0;
  border-radius: 2px;
  background: var(--navy);
  transition: transform .2s, opacity .2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1),
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2),
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3),
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.header-note,
.site-tagline {
  padding: 6px 20px;
  color: #6783a5;
  border-top: 1px solid #e8f1fb;
  background: #f5faff;
  font-size: .68rem;
  text-align: center;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-block: 14px;
  color: var(--muted);
  font-size: .73rem;
}

.breadcrumbs a { color: var(--brand); font-weight: 650; }
.breadcrumbs > * + *::before { margin-right: 8px; color: #9db2ca; content: "/"; }

/* Directory and game heroes */
.hero,
.directory-hero,
.game-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 8% 18%, rgb(15 192 219 / 12%), transparent 17%),
    radial-gradient(circle at 86% 30%, rgb(18 101 232 / 15%), transparent 25%),
    linear-gradient(118deg, #f6fbff 0%, #eef9ff 50%, #dff2ff 100%);
}

.hero::before,
.directory-hero::before,
.game-hero::before {
  position: absolute;
  width: 340px;
  height: 340px;
  top: -210px;
  right: -90px;
  border: 46px solid rgb(18 101 232 / 7%);
  border-radius: 50%;
  content: "";
}

.hero-inner,
.directory-hero__inner,
.game-hero__inner {
  position: relative;
  display: grid;
  min-height: 365px;
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, .92fr);
  align-items: center;
  gap: clamp(26px, 5vw, 72px);
  padding-block: 38px 46px;
}

.hero-copy { position: relative; z-index: 2; }
.hero-copy h1 { max-width: 720px; margin-bottom: 15px; }
.hero-copy > p { max-width: 680px; margin-bottom: 22px; color: #53749b; font-size: 1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; }

.hero-art,
.game-hero-art {
  position: relative;
  min-height: 285px;
  align-self: end;
}

.hero-art > img,
.hero-art > svg,
.game-hero-art > img,
.game-hero-art > svg {
  width: 100%;
  height: min(350px, 32vw);
  object-fit: contain;
  object-position: bottom center;
}

.trust-points,
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 25px;
  margin: 23px 0 0;
  padding: 0;
  list-style: none;
}

.trust-points li,
.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #587596;
  font-size: .78rem;
  font-weight: 650;
}

.trust-points li::before,
.hero-points li::before {
  width: 18px;
  height: 18px;
  border: 5px solid #c7f8ee;
  border-radius: 50%;
  background: var(--teal);
  content: "";
}

.game-hero__inner { min-height: 320px; grid-template-columns: 1.08fr .92fr; }
.game-identity { display: flex; align-items: flex-start; gap: 18px; }
.game-logo-lg {
  width: 118px;
  height: 118px;
  flex: 0 0 auto;
  padding: 4px;
  overflow: hidden;
  border: 1px solid #b9d8f6;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-md);
}
.game-logo-lg img { width: 100%; height: 100%; border-radius: 19px; object-fit: cover; }
.game-title h1 { margin-bottom: 12px; font-size: clamp(1.75rem, 3.3vw, 2.75rem); }
.game-title p { max-width: 610px; margin-bottom: 16px; }

.game-meta,
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-block: 17px;
}

.meta-chip,
.hero-stat {
  min-width: 82px;
  padding: 9px 12px;
  border: 1px solid #cfe3f7;
  border-radius: 9px;
  background: rgb(255 255 255 / 84%);
  box-shadow: var(--shadow-xs);
  text-align: center;
}

.meta-chip span,
.hero-stat span { display: block; color: var(--muted); font-size: .62rem; line-height: 1.1; }
.meta-chip strong,
.hero-stat strong { display: block; margin-top: 4px; color: var(--ink); font-size: .83rem; }

/* Search panel */
.directory-search,
.hero-search {
  position: relative;
  z-index: 4;
  margin-top: -24px;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(320px, 2.3fr) minmax(160px, .75fr) auto;
  align-items: center;
  gap: 10px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-md);
}

.search-panel h2,
.search-panel h3 { margin: 0; font-size: 1.15rem; }

.search-field,
.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-field > svg,
.input-wrap > svg {
  position: absolute;
  left: 13px;
  width: 18px;
  height: 18px;
  color: #7794b6;
  pointer-events: none;
}

.search-field input,
.input-wrap input { padding-left: 40px; }

input[type="text"],
input[type="search"],
input[type="email"],
input[type="url"],
input[type="number"],
input[type="password"],
select,
textarea {
  width: 100%;
  min-height: 43px;
  padding: 9px 12px;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  outline: 0;
  background: #fff;
  box-shadow: inset 0 1px 2px rgb(12 57 110 / 3%);
}

textarea { min-height: 130px; resize: vertical; }
select { padding-right: 34px; }
input::placeholder,
textarea::placeholder { color: #90a5bd; }
input:focus,
select:focus,
textarea:focus {
  border-color: #74aef4;
  box-shadow: 0 0 0 3px rgb(18 101 232 / 10%);
}

.popular-links {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  grid-column: 2 / -1;
  color: var(--muted);
  font-size: .7rem;
}
.popular-links strong { color: var(--ink); }

/* Main directory */
.content-layout,
.directory-layout,
.game-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 285px;
  align-items: start;
  gap: 24px;
}

.main-content { min-width: 0; }
.sidebar { display: grid; gap: 16px; }
.sidebar-card h3 { margin-bottom: 15px; font-size: 1.05rem; }

.filter-toolbar,
.directory-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
}

.filter-toolbar .search-field,
.directory-toolbar .search-field { min-width: 210px; flex: 1 1 230px; }
.filter-toolbar select,
.directory-toolbar select { width: auto; min-width: 145px; }

.view-switcher {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef6ff;
}

.view-switcher button,
[data-view-toggle] {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  color: #6380a4;
  border: 0;
  border-radius: 6px;
  background: transparent;
  font-size: .75rem;
  font-weight: 750;
}

.view-switcher button.active,
.view-switcher button[aria-pressed="true"],
[data-view-toggle].active,
[data-view-toggle][aria-pressed="true"] { color: #fff; background: var(--brand); }

.table-wrap,
.games-table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  scrollbar-color: #a9c8e7 #edf6ff;
}

.games-table,
.directory-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .79rem;
}

.games-table th,
.directory-table th {
  padding: 12px 10px;
  color: #627e9f;
  border-bottom: 1px solid var(--line);
  background: #f0f7ff;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .015em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.games-table td,
.directory-table td {
  padding: 10px;
  color: #4b678a;
  border-bottom: 1px solid #e4eef8;
  vertical-align: middle;
}

.games-table tr:last-child td,
.directory-table tr:last-child td { border-bottom: 0; }
.games-table tbody tr:nth-child(even),
.directory-table tbody tr:nth-child(even) { background: #f8fbff; }
.games-table tbody tr:hover,
.directory-table tbody tr:hover { background: #edf7ff; }

.row-number {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  color: #6f87a6;
  border-radius: 50%;
  background: #edf5fc;
  font-size: .67rem;
}

.game-cell {
  display: flex;
  min-width: 150px;
  align-items: center;
  gap: 10px;
}

.game-thumb,
.game-logo {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid #c9def2;
  border-radius: 10px;
  background: #eaf4ff;
  box-shadow: var(--shadow-xs);
}

.game-thumb img,
.game-logo img { width: 100%; height: 100%; object-fit: cover; }
.game-cell strong { display: block; color: var(--ink); font-size: .8rem; }
.game-cell small { color: var(--muted); font-size: .66rem; }
.game-summary { max-width: 270px; line-height: 1.4; }

.badge,
.category-badge,
.status-badge {
  display: inline-flex;
  min-height: 23px;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  color: var(--brand);
  border-radius: 999px;
  background: #e5f1ff;
  font-size: .66rem;
  font-weight: 750;
  line-height: 1.15;
  white-space: nowrap;
}

.badge.orange,
.category-rummy { color: #dc6319; background: #fff0df; }
.badge.teal,
.category-card { color: #008e7a; background: #dbf8f2; }
.badge.purple,
.category-slots { color: #7046c9; background: #efe8ff; }
.badge.blue,
.category-arcade { color: #0961d2; background: #e1efff; }

.game-grid,
[data-game-list][data-view="grid"] {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

[data-game-list][data-view="grid"] .table-wrap { display: contents; }
[data-game-list][data-view="grid"] table,
[data-game-list][data-view="grid"] thead,
[data-game-list][data-view="grid"] tbody { display: contents; }
[data-game-list][data-view="grid"] thead { display: none; }
[data-game-list][data-view="grid"] tr {
  display: grid;
  min-width: 0;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-xs);
}
[data-game-list][data-view="grid"] td { display: block; padding: 5px 0; border: 0; }
[data-game-list][data-view="grid"] td:first-child { display: none; }
[data-game-list][data-view="grid"] .game-thumb,
[data-game-list][data-view="grid"] .game-logo { width: 58px; height: 58px; }

.game-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-xs);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.game-card:hover { border-color: #a9cef5; box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.game-card__head { display: flex; align-items: center; gap: 12px; }
.game-card__head .game-logo { width: 58px; height: 58px; }
.game-card h3 { margin: 0 0 4px; font-size: .98rem; }
.game-card p { margin: 13px 0; color: #69809d; font-size: .78rem; }
.game-card__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.game-card__actions { display: flex; gap: 8px; margin-top: 14px; }

.alphabet-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 14px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f5faff;
}
.alphabet-filter a,
.alphabet-filter button {
  display: grid;
  min-width: 25px;
  height: 25px;
  padding: 0 5px;
  place-items: center;
  color: var(--brand);
  border: 0;
  border-radius: 5px;
  background: transparent;
  font-size: .7rem;
  font-weight: 750;
}
.alphabet-filter a:hover,
.alphabet-filter button:hover,
.alphabet-filter .active { color: #fff; background: var(--brand); }

.category-list,
.sidebar-links,
.check-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.category-list a,
.sidebar-links a {
  display: flex;
  min-height: 43px;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  color: var(--ink);
  border: 1px solid #e4effa;
  border-radius: 8px;
  background: #f8fbff;
  font-size: .78rem;
  font-weight: 700;
}
.category-list a::after,
.sidebar-links a::after { margin-left: auto; color: #8aa5c4; content: "›"; font-size: 1.2em; }
.category-list a:hover,
.sidebar-links a:hover { color: var(--brand); border-color: #b9d8f7; background: #eef7ff; }

.check-list li {
  position: relative;
  padding-left: 25px;
  color: #55708f;
  font-size: .78rem;
}
.check-list li::before {
  position: absolute;
  top: .12em;
  left: 0;
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: var(--teal);
  content: "✓";
  font-size: 10px;
  font-weight: 900;
}

.promo-card {
  position: relative;
  overflow: hidden;
  color: #fff;
  border: 0;
  background: linear-gradient(135deg, #11c4b0, #1bbce6 52%, #15dfcb);
}
.promo-card::after {
  position: absolute;
  width: 110px;
  height: 110px;
  right: -45px;
  bottom: -45px;
  border: 19px solid rgb(255 255 255 / 17%);
  border-radius: 50%;
  content: "";
}
.promo-card h3,
.promo-card p { position: relative; z-index: 1; color: #fff; }

.empty-results,
[data-empty-results] {
  display: none;
  padding: 32px 20px;
  color: var(--muted);
  border: 1px dashed #b9d6f0;
  border-radius: var(--radius);
  background: #f7fbff;
  text-align: center;
}
.empty-results.is-visible,
[data-empty-results].is-visible { display: block; }

/* Feature paths / colorful navigation blocks */
.path-grid,
.feature-navigation {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.path-card {
  position: relative;
  min-height: 185px;
  padding: 20px 16px;
  overflow: hidden;
  color: #fff;
  border-radius: var(--radius);
  background: linear-gradient(145deg, #0870ef, #0348b7);
  box-shadow: var(--shadow-sm);
}
.path-card:nth-child(2n) { background: linear-gradient(145deg, #15c7b1, #08a5be); }
.path-card:nth-child(3n) { background: linear-gradient(145deg, #ff8c27, #ff5b0b); }
.path-card:nth-child(4n) { color: var(--ink); background: linear-gradient(145deg, #dff4ff, #bce4ff); }
.path-card h3 { position: relative; z-index: 1; margin-bottom: 8px; color: inherit; font-size: 1.05rem; }
.path-card p { position: relative; z-index: 1; margin: 0; opacity: .88; font-size: .75rem; }
.path-card img,
.path-card svg { position: absolute; right: -5px; bottom: -5px; width: 95px; height: 95px; object-fit: contain; }

/* Story strip */
.story-section,
.visual-guides {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 90% 40%, rgb(33 217 228 / 30%), transparent 20%),
    linear-gradient(115deg, #0755c9, #003a98 72%, #0059cf);
}
.story-section::before,
.visual-guides::before {
  position: absolute;
  width: 230px;
  height: 230px;
  bottom: -145px;
  left: -70px;
  border-radius: 50%;
  background: var(--orange);
  content: "";
}
.story-section h2,
.story-section h3,
.story-section p,
.visual-guides h2,
.visual-guides h3,
.visual-guides p { color: #fff; }

.story-grid,
.story-strip {
  position: relative;
  z-index: 1;
  display: grid;
  grid-auto-columns: minmax(142px, 1fr);
  grid-auto-flow: column;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.story-card {
  position: relative;
  min-height: 210px;
  padding: 15px;
  overflow: hidden;
  color: #fff;
  border: 2px solid rgb(255 255 255 / 72%);
  border-radius: 12px;
  background: linear-gradient(160deg, #0878ee, #34c7e7);
  box-shadow: 0 10px 24px rgb(0 28 90 / 22%);
  scroll-snap-align: start;
}
.story-card:nth-child(2n) { background: linear-gradient(160deg, #10bfa6, #0168d8); }
.story-card:nth-child(3n) { background: linear-gradient(160deg, #ff821e, #ffba2c); }
.story-card:nth-child(4n) { background: linear-gradient(160deg, #6b37d8, #1689ed); }
.story-card h3 { position: relative; z-index: 2; color: #fff; font-size: .88rem; text-align: center; }
.story-card img { position: absolute; width: 84%; max-height: 135px; right: 8%; bottom: 0; object-fit: contain; }

/* Guide / info cards */
.guide-grid,
.info-grid,
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.guide-card,
.info-card,
.feature-card {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 13px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.guide-icon,
.info-icon,
.feature-icon {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--brand);
  border-radius: 9px;
  background: #eaf5ff;
}
.guide-icon svg,
.info-icon svg,
.feature-icon svg { width: 22px; height: 22px; }
.guide-card h3,
.info-card h3,
.feature-card h3 { margin: 0 0 5px; font-size: .88rem; }
.guide-card p,
.info-card p,
.feature-card p { margin: 0; color: var(--muted); font-size: .72rem; line-height: 1.45; }

.split-panel,
.info-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.illustrated-panel {
  position: relative;
  min-height: 310px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, #fff, #eaf7ff);
}
.illustrated-panel > img,
.illustrated-panel > svg { width: min(220px, 48%); margin: 20px auto 0; }

.details-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .78rem;
}
.details-table th,
.details-table td { padding: 8px 10px; border-bottom: 1px solid #dfebf7; text-align: left; }
.details-table th { width: 42%; color: #5e7b9f; background: #f0f7ff; font-weight: 700; }
.details-table td { color: var(--ink); background: #fff; }

/* Sticky section navigation */
.sticky-tabs,
.page-tabs {
  position: sticky;
  z-index: 900;
  top: var(--header-height);
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  background: rgb(255 255 255 / 96%);
  box-shadow: 0 5px 16px rgb(8 55 120 / 7%);
  backdrop-filter: blur(12px);
  scrollbar-width: none;
}
.sticky-tabs::-webkit-scrollbar,
.page-tabs::-webkit-scrollbar { display: none; }
.sticky-tabs__inner,
.page-tabs__inner { display: flex; min-width: max-content; align-items: center; }
.sticky-tabs a,
.page-tabs a,
.sticky-tabs button,
.page-tabs button {
  display: inline-flex;
  min-height: 53px;
  align-items: center;
  gap: 7px;
  padding: 10px 15px;
  color: #54718f;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  font-size: .75rem;
  font-weight: 750;
  white-space: nowrap;
}
.sticky-tabs a:hover,
.sticky-tabs a.active,
.sticky-tabs a[aria-current="true"],
.page-tabs a:hover,
.page-tabs a.active,
.page-tabs button[aria-selected="true"] { color: var(--brand); border-bottom-color: var(--brand); }
.sticky-tabs .download-tab { margin-left: auto; color: #fff; border: 0; background: var(--brand); }

/* Screenshots */
.screenshot-grid,
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.screenshot-card {
  margin: 0;
  text-align: center;
}
.screenshot-card button,
.screenshot-card a {
  display: block;
  width: 100%;
  padding: 5px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 15px;
  background: #f2f8ff;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.screenshot-card button:hover,
.screenshot-card a:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.screenshot-card img { width: 100%; aspect-ratio: 9/17; border-radius: 11px; object-fit: cover; }
.screenshot-card figcaption { margin-top: 9px; color: var(--ink); font-size: .7rem; font-weight: 700; }

.lightbox {
  position: fixed;
  z-index: 3000;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 38px;
  background: rgb(2 20 51 / 90%);
  backdrop-filter: blur(8px);
}
.lightbox.is-open { display: flex; animation: fade-in .18s ease both; }
.lightbox__image { max-width: min(92vw, 900px); max-height: 88vh; border-radius: 12px; box-shadow: 0 20px 80px #000; }
.lightbox__close {
  position: fixed;
  top: 18px;
  right: 18px;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: #fff;
  border: 1px solid rgb(255 255 255 / 35%);
  border-radius: 50%;
  background: rgb(255 255 255 / 12%);
  font-size: 1.7rem;
}

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* Install steps and notices */
.notice,
.callout {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  color: #895000;
  border: 1px solid #ffd287;
  border-radius: 9px;
  background: linear-gradient(90deg, #fff0c9, #ffe09f);
}
.notice.info,
.callout.info { color: #0755a8; border-color: #b9dcfb; background: #eaf7ff; }
.notice.success,
.callout.success { color: #087667; border-color: #a7eadf; background: #e2fbf7; }
.notice strong,
.callout strong { color: inherit; }

.steps,
.install-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
  counter-reset: install-step;
}
.step,
.install-step {
  position: relative;
  min-height: 130px;
  padding: 18px 14px 15px;
  border: 1px solid #bcdafa;
  border-radius: 10px;
  background: #fff;
  counter-increment: install-step;
}
.step::before,
.install-step::before {
  display: grid;
  width: 32px;
  height: 32px;
  margin-bottom: 11px;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: var(--brand);
  content: counter(install-step, decimal-leading-zero);
  font-size: .7rem;
  font-weight: 800;
}
.step:not(:last-child)::after,
.install-step:not(:last-child)::after {
  position: absolute;
  z-index: 2;
  top: 28px;
  right: -14px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px #fff;
  content: "";
}
.step h3,
.install-step h3 { margin: 0 0 5px; font-size: .82rem; }
.step p,
.install-step p { margin: 0; color: var(--muted); font-size: .69rem; line-height: 1.45; }

/* Content typography */
.prose,
.article-content {
  color: #486785;
  font-size: .94rem;
}
.prose > * + *,
.article-content > * + * { margin-top: 1.1em; }
.prose h2,
.article-content h2 { margin-top: 1.55em; margin-bottom: .6em; }
.prose h3,
.article-content h3 { margin-top: 1.45em; margin-bottom: .55em; }
.prose ul,
.prose ol,
.article-content ul,
.article-content ol { padding-left: 1.3em; }
.prose li + li,
.article-content li + li { margin-top: .35em; }
.prose img,
.article-content img { border: 1px solid var(--line); border-radius: var(--radius); }

.tab-buttons,
[role="tablist"] {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  margin-bottom: 16px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f1f7fd;
}
.tab-buttons button,
[role="tablist"] [role="tab"],
[data-tab] {
  min-height: 36px;
  padding: 7px 13px;
  color: #5e7c9f;
  border: 0;
  border-radius: 6px;
  background: transparent;
  font-size: .74rem;
  font-weight: 750;
  white-space: nowrap;
}
.tab-buttons button.active,
[role="tablist"] [role="tab"][aria-selected="true"],
[data-tab].active { color: #fff; background: var(--brand); box-shadow: var(--shadow-xs); }
[data-tab-panel][hidden] { display: none !important; }

/* FAQ */
.faq-list { display: grid; gap: 9px; }
.faq-item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.faq-question,
[data-faq-trigger] {
  display: flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 16px;
  color: var(--ink);
  border: 0;
  background: #fff;
  font-size: .88rem;
  font-weight: 750;
  text-align: left;
}
.faq-question::after,
[data-faq-trigger]::after {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  color: var(--brand);
  content: "+";
  font-size: 1.25rem;
  line-height: 20px;
  text-align: center;
  transition: transform .2s;
}
.faq-question[aria-expanded="true"]::after,
[data-faq-trigger][aria-expanded="true"]::after { content: "−"; transform: rotate(180deg); }
.faq-answer,
[data-faq-panel] { padding: 0 16px 16px; color: var(--muted); font-size: .82rem; }
.faq-answer[hidden],
[data-faq-panel][hidden] { display: none; }

/* Download reveal */
.download-box {
  padding: clamp(22px, 4vw, 40px);
  border: 1px solid #bcdcf9;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #f3fbff, #e5f4ff);
  text-align: center;
}
.countdown-ring {
  display: grid;
  width: 74px;
  height: 74px;
  margin: 0 auto 16px;
  place-items: center;
  color: var(--brand);
  border: 7px solid #c9e4ff;
  border-top-color: var(--brand);
  border-radius: 50%;
  font-size: 1.35rem;
  font-weight: 850;
}
[data-countdown][data-running="true"] .countdown-ring { animation: spin 1s linear infinite; }
[data-countdown][data-running="true"] .countdown-ring > * { animation: spin 1s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Telegram and sticky advertisement */
.telegram-banner {
  position: relative;
  display: flex;
  min-height: 88px;
  align-items: center;
  gap: 20px;
  padding: 18px 28px;
  overflow: hidden;
  color: #fff;
  border-radius: 11px;
  background: linear-gradient(115deg, #0c83ef, #06b8e8 55%, #14dcc2);
  box-shadow: var(--shadow-sm);
}
.telegram-banner::after {
  position: absolute;
  width: 160px;
  height: 160px;
  right: -70px;
  bottom: -105px;
  border: 24px solid rgb(255 255 255 / 18%);
  border-radius: 50%;
  content: "";
}
.telegram-banner h3,
.telegram-banner p { margin: 0; color: #fff; }
.telegram-banner p { opacity: .9; font-size: .76rem; }
.telegram-banner .btn { z-index: 1; margin-left: auto; color: var(--brand); border-color: #fff; background: #fff; }

.telegram-float,
[data-telegram-float] {
  position: fixed;
  z-index: 1050;
  right: 20px;
  bottom: 22px;
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  gap: 9px;
  padding: 10px 16px 10px 11px;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 999px;
  background: linear-gradient(145deg, #27bce8, #0787df);
  box-shadow: 0 12px 32px rgb(0 75 157 / 30%);
  font-size: .78rem;
  font-weight: 800;
}
.telegram-float:hover,
[data-telegram-float]:hover { color: #fff; transform: translateY(-2px); }
.telegram-float svg,
[data-telegram-float] svg { width: 26px; height: 26px; }

.sticky-ad,
[data-sticky-ad] {
  position: fixed;
  z-index: 1100;
  right: 18px;
  bottom: 84px;
  display: none;
  width: min(330px, calc(100vw - 32px));
  padding: 17px;
  border: 1px solid #abd6f8;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-lg);
}
.sticky-ad.is-active,
[data-sticky-ad][data-enabled="true"] { display: block; animation: ad-enter .3s ease both; }
.sticky-ad.is-closed,
[data-sticky-ad].is-closed { display: none !important; }
@keyframes ad-enter { from { opacity: 0; transform: translateY(16px); } }
.sticky-ad__close,
[data-sticky-ad-close] {
  position: absolute;
  top: 7px;
  right: 7px;
  display: grid;
  width: 29px;
  height: 29px;
  padding: 0;
  place-items: center;
  color: #607b9b;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
}

/* Footer */
.site-footer {
  position: relative;
  overflow: hidden;
  color: #b8ceea;
  background: linear-gradient(130deg, #063d91, #032d70 65%, #06245a);
}
.site-footer::after {
  position: absolute;
  width: 270px;
  height: 270px;
  right: -120px;
  bottom: -170px;
  border: 2px solid rgb(255 255 255 / 14%);
  border-radius: 50%;
  box-shadow: 0 0 0 38px rgb(255 255 255 / 2%);
  content: "";
}

/* Template compatibility and page-specific compositions */
.brand > img {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 11px;
  box-shadow: 0 6px 16px rgb(18 101 232 / 22%);
}
.brand > span { display: grid; line-height: 1.15; }
.brand > span strong { color: var(--navy); font-size: .94rem; font-weight: 850; }
.brand > span small { margin-top: 4px; color: var(--muted); font-size: .61rem; }
.primary-nav {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-left: auto;
}
.primary-nav a {
  padding: 10px 9px;
  color: var(--ink);
  border-radius: 7px;
  font-size: .75rem;
  font-weight: 700;
}
.primary-nav a:hover,
.primary-nav a[aria-current="page"] { color: var(--brand); background: #eff7ff; }
.icon-button {
  display: inline-grid;
  width: 39px;
  height: 39px;
  padding: 0;
  place-items: center;
  color: var(--brand);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.icon-button svg { width: 18px; height: 18px; }
.button-primary { color: #fff; background: var(--brand); }
.button-light { color: var(--brand); border-color: #fff; background: #fff; }
.button-light:hover { color: #fff; border-color: var(--navy); background: var(--navy); }
.button-large { min-height: 49px; padding: 12px 22px; font-size: .91rem; }
.button-small { min-height: 32px; padding: 7px 11px; font-size: .7rem; }
.info-strip {
  padding: 5px 20px;
  color: #6884a5;
  border-top: 1px solid #e7f0fa;
  background: #f2f8fe;
  font-size: .64rem;
  text-align: center;
}
.site-notice { padding: 10px 20px; color: #087c6d; border-bottom: 1px solid #b5eadf; background: #e6faf6; text-align: center; }
.site-notice.notice-error { color: #c62e44; border-color: #f2bec7; background: #fff0f2; }

.hero-grid,
.game-hero-grid {
  position: relative;
  display: grid;
  min-height: 365px;
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, .92fr);
  align-items: center;
  gap: clamp(26px, 5vw, 72px);
  padding-block: 38px 46px;
}
.game-hero-grid { min-height: 320px; }
.section-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 19px;
}
.section-heading-row h2 { margin-bottom: 5px; }
.section-heading-row p { margin: 0; color: var(--muted); }
.section-heading-row.light h2,
.section-heading-row.light p,
.light h2,
.light p { color: #fff; }
.section-kicker { display: block; margin-bottom: 4px; color: var(--brand); font-size: .67rem; font-weight: 800; letter-spacing: .055em; text-transform: uppercase; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 750; white-space: nowrap; }
.text-link svg { width: 15px; height: 15px; }

.search-panel-wrap { position: relative; z-index: 6; margin-top: -26px; }
.search-panel-wrap .search-panel { grid-template-columns: minmax(170px, 1fr) minmax(300px, 2.2fr) minmax(150px, .75fr) auto; }
.select-field { display: block; }
.popular-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  grid-column: 2 / -1;
  margin: 0;
  color: var(--muted);
  font-size: .67rem;
}
.popular-inline strong { color: var(--ink); }

.content-sidebar-grid,
.game-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 282px;
  align-items: start;
  gap: 22px;
}
.directory-sidebar,
.game-sidebar { display: grid; gap: 14px; }
.directory-toolbar.card { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 11px; padding: 10px; }
.directory-toolbar > label:first-child { position: relative; min-width: 190px; flex: 1; }
.directory-toolbar > label:first-child > svg { position: absolute; top: 50%; left: 11px; width: 16px; height: 16px; color: #7994b2; transform: translateY(-50%); }
.directory-toolbar > label:first-child input { min-height: 37px; padding-left: 35px; }
.directory-toolbar select { width: auto; min-width: 136px; min-height: 37px; font-size: .7rem; }
.view-buttons { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 7px; background: #edf6ff; }
.view-buttons button { display: inline-flex; min-height: 31px; align-items: center; gap: 5px; padding: 6px 9px; color: #6580a0; border: 0; border-radius: 5px; background: transparent; font-size: .67rem; font-weight: 750; }
.view-buttons button svg { width: 14px; height: 14px; }
.view-buttons button.active,
.view-buttons button[aria-pressed="true"] { color: #fff; background: var(--brand); }

.game-list-wrap { overflow: visible; }
.game-list-wrap .games-table { min-width: 660px; }
.game-list-wrap > .games-table { display: table; border: 1px solid var(--line); border-radius: 9px; background: #fff; border-collapse: separate; border-spacing: 0; overflow: hidden; }
.game-list-wrap .game-row p { max-width: 290px; margin: 0; color: #647c99; font-size: .7rem; line-height: 1.4; }
.serial-badge { display: grid; width: 25px; height: 25px; place-items: center; color: #7088a6; border-radius: 50%; background: #edf4fb; font-size: .62rem; }
.game-name-cell { display: flex; min-width: 155px; align-items: center; gap: 9px; color: var(--ink); }
.game-name-cell img { width: 40px; height: 40px; flex: 0 0 auto; border: 1px solid #c7ddf2; border-radius: 9px; object-fit: cover; }
.game-name-cell strong { font-size: .76rem; }
.category-pill { display: inline-flex; padding: 4px 8px; color: #db6617; border-radius: 999px; background: #fff0df; font-size: .61rem; font-weight: 750; white-space: nowrap; }
.game-card-grid { display: none; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.game-card-grid .game-card { position: relative; display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 10px; }
.game-card-grid .game-card > img { width: 58px; height: 58px; border-radius: 12px; object-fit: cover; }
.game-card-grid .game-card > .serial-badge { position: absolute; top: 8px; right: 8px; }
.game-card-grid .game-card > .button { grid-column: 1 / -1; }
.game-list-wrap[data-view="grid"] { display: block; }
.game-list-wrap[data-view="grid"] > .games-table { display: none !important; }
.game-list-wrap[data-view="grid"] > .game-card-grid { display: grid; }
.game-list-wrap[data-view="list"] > .games-table { display: table; }
.game-list-wrap[data-view="list"] > .game-card-grid { display: none; }
.center-action { display: flex; justify-content: center; padding-top: 14px; }
.alphabet-filter > strong { width: 100%; margin-bottom: 3px; color: var(--ink); font-size: .68rem; }

.featured-guide-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 13px; }
.featured-guide-row img { width: 76px; height: 76px; flex: 0 0 auto; border-radius: 15px; object-fit: cover; }
.featured-guide-row h3 { margin: 0 0 5px; font-size: .86rem; }
.featured-guide-row p { margin: 0; color: var(--muted); font-size: .66rem; line-height: 1.45; }
.sidebar-links { display: grid; gap: 6px; }
.sidebar-links > a > span { display: flex; align-items: center; gap: 7px; }
.sidebar-links svg { width: 15px; height: 15px; }
.check-list.two-col { grid-template-columns: 1fr 1fr; }
.check-list a { display: flex; align-items: center; gap: 6px; color: var(--brand); font-size: .68rem; font-weight: 650; }
.check-list svg { width: 15px; height: 15px; flex: 0 0 auto; color: var(--teal); }
.check-list li:has(> svg) { display: flex; gap: 7px; padding-left: 0; }
.check-list li:has(> svg)::before { display: none; }
.telegram-card { color: #fff; border: 0; background: linear-gradient(140deg, #0e8fec, #10c9d1 62%, #14d9bd); }
.telegram-card h2,
.telegram-card p { color: #fff; }
.telegram-card > svg { width: 45px; height: 45px; margin-bottom: 8px; }

.explore-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 9px; }
.explore-card { position: relative; min-height: 172px; padding: 17px 14px; overflow: hidden; color: #fff; border-radius: 12px; background: linear-gradient(145deg, #0873ed, #0649b6); box-shadow: var(--shadow-sm); }
.explore-card:nth-child(2) { background: linear-gradient(145deg, #1bd0bb, #089ba2); }
.explore-card:nth-child(3) { background: linear-gradient(145deg, #ff9a26, #ff6518); }
.explore-card:nth-child(4) { color: var(--ink); background: linear-gradient(145deg, #dff3ff, #c5e7ff); }
.explore-card:nth-child(5) { background: linear-gradient(145deg, #0757c2, #043680); }
.explore-card:nth-child(6) { color: var(--ink); background: linear-gradient(145deg, #eaf7ff, #d4edff); }
.explore-card h3 { margin: 8px 0 5px; color: inherit; font-size: .96rem; }
.explore-card p { margin: 0; opacity: .87; font-size: .68rem; line-height: 1.4; }
.explore-icon { display: grid; width: 43px; height: 43px; place-items: center; color: var(--brand); border-radius: 10px; background: rgb(255 255 255 / 92%); }
.explore-icon svg { width: 25px; height: 25px; }

.featured-game { padding-block: 34px; overflow: hidden; background: linear-gradient(105deg, #effaff, #dff2ff); }
.featured-game-inner { display: grid; grid-template-columns: 275px minmax(0, 1fr); align-items: center; gap: 35px; }
.featured-phone { position: relative; display: grid; min-height: 210px; place-items: center; }
.featured-phone::before { position: absolute; width: 130px; height: 230px; border: 10px solid var(--navy); border-radius: 28px; background: #fff; box-shadow: var(--shadow-md); content: ""; transform: rotate(-8deg); }
.featured-phone img { position: relative; z-index: 1; width: 105px; height: 105px; border-radius: 22px; object-fit: cover; transform: rotate(-8deg); }
.feature-inline { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 16px 0; padding: 0; list-style: none; }
.feature-inline li { display: inline-flex; align-items: center; gap: 5px; color: var(--ink); font-size: .68rem; font-weight: 650; }
.feature-inline svg { width: 15px; height: 15px; color: var(--brand); }

.guide-card.card { padding: 14px; }
.guide-card > span { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; color: var(--brand); border-radius: 9px; background: #e8f4ff; }
.guide-card > span svg { width: 21px; height: 21px; }
.guide-card a { display: inline-flex; margin-top: 8px; font-size: .67rem; font-weight: 750; }
.two-panel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.info-panel { min-width: 0; }
.requirement-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 15px 0; }
.requirement-grid > div { display: grid; grid-template-columns: 32px 1fr; gap: 2px 8px; align-items: center; padding: 9px; border: 1px solid #dcebf8; border-radius: 8px; background: #f7fbff; }
.requirement-grid > div > span { display: grid; width: 32px; height: 32px; grid-row: 1 / 3; place-items: center; color: var(--teal); border-radius: 8px; background: #dcf8f3; }
.requirement-grid svg { width: 18px; height: 18px; }
.requirement-grid strong { color: var(--ink); font-size: .68rem; }
.requirement-grid small { color: var(--muted); font-size: .58rem; }
.tabs[data-tabs] { display: block; margin: 14px 0; padding: 0; overflow: visible; border: 0; background: transparent; }
.tabs[data-tabs] > .tab-list { display: flex; gap: 4px; overflow-x: auto; margin-bottom: 11px; padding: 4px; border: 1px solid var(--line); border-radius: 8px; background: #eef6fd; }
.tabs[data-tabs] > [data-tab-panel] { min-height: 70px; padding: 11px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: .74rem; }
.mini-specs { margin: 0; }
.mini-specs > div { display: grid; grid-template-columns: 1fr 1.4fr; border-bottom: 1px solid #e2edf8; }
.mini-specs dt,
.mini-specs dd { margin: 0; padding: 6px 8px; font-size: .63rem; }
.mini-specs dt { color: #617d9c; background: #f0f7fd; }
.mini-specs dd { color: var(--ink); }

.telegram-banner { display: block; min-height: 0; padding: 0; border-radius: 0; }
.telegram-banner-inner { position: relative; z-index: 1; display: flex; min-height: 88px; align-items: center; gap: 18px; padding-block: 16px; }
.telegram-mark { display: grid; width: 52px; height: 52px; flex: 0 0 auto; place-items: center; color: #fff; }
.telegram-mark svg { width: 48px; height: 48px; }
.telegram-banner-inner > div:nth-child(2) { flex: 1; }
.telegram-banner-inner h2 { margin: 0 0 3px; color: #fff; font-size: 1.04rem; }
.telegram-banner-inner p { margin: 0; color: #fff; opacity: .9; font-size: .71rem; }
.telegram-banner-inner .button { margin-left: auto; }
.footer-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.7fr repeat(4, 1fr); gap: 30px; padding-block: 38px 27px; }
.footer-grid > div:not(.footer-brand) { display: grid; align-content: start; gap: 6px; }
.footer-grid h2 { margin-bottom: 7px; color: #fff; font-size: .8rem; }
.footer-grid a { color: #bad0ea; font-size: .7rem; }
.footer-grid a:hover { color: #fff; }
.brand-footer > span strong { color: #fff; }
.brand-footer > span small { color: #afc8e5; }
.footer-telegram { display: inline-flex; align-items: center; gap: 7px; }
.footer-telegram svg { width: 17px; height: 17px; }

/* Game detail page */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 7px; padding-block: 11px; color: var(--muted); font-size: .66rem; }
.breadcrumb a { color: var(--brand); font-weight: 650; }
.game-title-row { display: flex; align-items: center; gap: 17px; }
.game-hero-logo { width: 114px; height: 114px; flex: 0 0 auto; border: 4px solid #fff; border-radius: 23px; object-fit: cover; box-shadow: var(--shadow-md); }
.game-hero-copy h1 { margin-bottom: 9px; font-size: clamp(1.65rem, 3vw, 2.55rem); }
.game-hero-copy > p { margin: 14px 0; }
.hero-specs { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 16px; }
.hero-specs > div { min-width: 76px; padding: 8px 10px; border: 1px solid #cce2f6; border-radius: 8px; background: rgb(255 255 255 / 85%); text-align: center; }
.hero-specs dt { color: var(--muted); font-size: .56rem; }
.hero-specs dd { margin: 2px 0 0; color: var(--ink); font-size: .75rem; font-weight: 800; }
.verification-note { display: flex; align-items: center; gap: 6px; color: #647e9d; font-size: .65rem; }
.verification-note svg { width: 15px; height: 15px; color: var(--brand); }
.game-hero-art { display: flex; align-items: end; justify-content: center; gap: 0; }
.phone-preview { position: relative; z-index: 2; display: flex; width: 188px; min-height: 300px; flex-direction: column; align-items: center; justify-content: center; padding: 28px 18px; color: #fff; border: 10px solid var(--navy-2); border-radius: 35px; background: linear-gradient(160deg, #0879ee, #073b91); box-shadow: var(--shadow-lg); transform: rotate(7deg); }
.phone-speaker { position: absolute; top: 9px; width: 52px; height: 6px; border-radius: 99px; background: #011940; }
.phone-preview img { width: 92px; height: 92px; margin-bottom: 10px; border-radius: 20px; object-fit: cover; }
.phone-preview strong { color: #fff; font-size: .89rem; }
.phone-preview small { margin-top: 3px; color: #cbe4ff; }
.phone-button { margin-top: 17px; padding: 7px 14px; color: var(--brand); border-radius: 7px; background: #fff; font-size: .64rem; font-weight: 800; }
.game-hero-art .apk-folder-art { z-index: 3; width: 145px; margin: 0 0 17px -28px; filter: drop-shadow(0 12px 14px rgb(4 43 99 / 22%)); }
.game-anchor-nav { position: sticky; z-index: 900; top: var(--header-height); overflow-x: auto; border-bottom: 1px solid var(--line); background: rgb(255 255 255 / 96%); box-shadow: 0 5px 15px rgb(6 52 111 / 7%); backdrop-filter: blur(12px); scrollbar-width: none; }
.game-anchor-nav .container { display: flex; min-width: max-content; align-items: center; }
.game-anchor-nav a { display: inline-flex; min-height: 49px; align-items: center; gap: 5px; padding: 9px 12px; color: #557390; border-bottom: 3px solid transparent; font-size: .66rem; font-weight: 700; }
.game-anchor-nav a:hover { color: var(--brand); border-color: var(--brand); }
.game-anchor-nav svg { width: 14px; height: 14px; }
.game-anchor-nav .anchor-download { margin-left: auto; color: #fff; border: 0; background: var(--brand); }
.game-main { min-width: 0; }
.anchor-section { margin-bottom: 28px; scroll-margin-top: 125px; }
.game-sidebar .sticky-card { position: sticky; top: 125px; }
.game-sidebar h2 { margin-bottom: 13px; font-size: .95rem; }
.quick-details { margin: 0 0 13px; }
.quick-details > div { display: grid; grid-template-columns: 1fr 1.25fr; padding: 6px 0; border-bottom: 1px solid #e4eef8; font-size: .65rem; }
.quick-details dt { color: var(--muted); }
.quick-details dd { margin: 0; color: var(--ink); font-weight: 650; }
.sticky-card > small { display: block; margin-top: 9px; color: var(--muted); font-size: .58rem; }
.on-this-page a { display: block; padding: 6px 0; border-bottom: 1px solid #e8f0f8; font-size: .68rem; font-weight: 650; }
.related-story { display: flex; align-items: center; gap: 10px; }
.related-story img { width: 70px; aspect-ratio: 9/16; border-radius: 8px; object-fit: cover; }
.related-story strong,
.related-story small { display: block; }
.related-story strong { color: var(--ink); font-size: .69rem; }
.related-story small { margin-top: 7px; color: var(--brand); font-size: .61rem; }

.screenshot-gallery { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.screenshot-gallery figure { min-width: 0; margin: 0; text-align: center; }
.screenshot-gallery figure > button,
.screenshot-gallery figure > .phone-shot { width: 100%; padding: 5px; overflow: hidden; border: 1px solid #bed8f2; border-radius: 15px; background: #f0f7ff; box-shadow: var(--shadow-sm); }
.screenshot-gallery figure > button { display: block; }
.screenshot-gallery figure > button img { width: 100%; aspect-ratio: 9/17; border-radius: 11px; object-fit: cover; }
.screenshot-gallery figcaption { margin-top: 7px; color: var(--ink); font-size: .62rem; font-weight: 700; }
.phone-shot { position: relative; display: flex; aspect-ratio: 9/17; flex-direction: column; align-items: center; padding: 18px 9px 10px !important; color: #fff; background: linear-gradient(160deg, #0874e9, #073887) !important; }
.phone-shot > img { width: 58px; height: 58px; margin: 17px 0 8px; border-radius: 12px; object-fit: cover; }
.phone-shot > strong { color: #fff; font-size: .66rem; }
.shot-top { position: absolute; top: 8px; width: 36px; height: 4px; border-radius: 9px; background: #062653; }
.shot-list { display: grid; width: 100%; gap: 5px; margin-top: 14px; }
.shot-list span { display: flex; align-items: center; gap: 4px; padding: 6px; color: #174472; border-radius: 5px; background: #fff; font-size: .5rem; text-align: left; }
.shot-list svg { width: 10px; height: 10px; color: var(--brand); }
.shot-nav { width: 65%; height: 6px; margin-top: auto; border-radius: 8px; background: rgb(255 255 255 / 42%); }

.lead-copy { color: #4f6b8a; }
.overview-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 14px 0; }
.mini-info-card { display: flex; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #f9fcff; }
.mini-info-card > span { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; color: var(--brand); border-radius: 8px; background: #e4f2ff; }
.mini-info-card svg { width: 18px; height: 18px; }
.mini-info-card h3 { margin: 0 0 3px; font-size: .73rem; }
.mini-info-card p { margin: 0; color: var(--muted); font-size: .61rem; }
.review-quote { margin: 12px 0; padding: 12px 14px; color: var(--brand); border-left: 4px solid var(--brand); border-radius: 7px; background: #eaf6ff; font-size: .7rem; font-weight: 700; }
.review-quote svg { display: inline; width: 15px; height: 15px; vertical-align: middle; }
.warning-bar { display: flex; align-items: center; gap: 11px; padding: 11px 14px; color: #a85a0a; border: 1px solid #ffd08c; border-radius: 8px; background: linear-gradient(90deg, #fff0c8, #ffdf9c); }
.warning-bar > svg { width: 26px; height: 26px; flex: 0 0 auto; }
.warning-bar strong { color: #d75d12; font-size: .72rem; }
.warning-bar p { margin: 1px 0 0; font-size: .61rem; }
.game-story-band { margin: 28px -20px; padding: 24px 20px; color: #fff; border-radius: 12px; background: linear-gradient(120deg, #065ecf, #063590); }

.detail-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.detail-panel { min-width: 0; }
.app-info-table { margin: 12px 0; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.app-info-table > div { display: grid; grid-template-columns: .9fr 1.2fr; border-bottom: 1px solid #e1ecf7; }
.app-info-table > div:last-child { border-bottom: 0; }
.app-info-table dt,
.app-info-table dd { margin: 0; padding: 6px 8px; font-size: .62rem; }
.app-info-table dt { color: #5d7a9c; background: #eef6fd; }
.app-info-table dd { color: var(--ink); background: #fff; }
.apk-visual { display: grid; justify-items: center; color: var(--muted); font-size: .6rem; text-align: center; }
.apk-visual img { width: 125px; }
.requirement-badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin: 12px 0; }
.requirement-badges > div { display: grid; justify-items: center; padding: 9px 4px; border: 1px solid #cfe4f7; border-radius: 8px; background: #f4faff; text-align: center; }
.requirement-badges span { color: var(--teal); }
.requirement-badges svg { width: 20px; height: 20px; }
.requirement-badges strong { margin-top: 3px; color: var(--ink); font-size: .63rem; }
.requirement-badges small { color: var(--muted); font-size: .52rem; }
.feature-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.feature-card-grid article { padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.feature-card-grid article > span { color: var(--teal); }
.feature-card-grid svg { width: 20px; height: 20px; }
.feature-card-grid h3 { margin: 6px 0 3px; font-size: .7rem; }
.feature-card-grid p { margin: 0; color: var(--muted); font-size: .59rem; }
.version-grid,
.account-grid,
.apk-check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.version-values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 8px; }
.version-values > div { display: grid; grid-template-columns: 35px 1fr; padding: 10px; border-radius: 8px; background: #eaf5ff; }
.version-values span { display: grid; width: 31px; height: 31px; grid-row: 1 / 3; place-items: center; color: var(--brand); border-radius: 8px; background: #fff; }
.version-values svg { width: 18px; height: 18px; }
.version-values small { color: var(--muted); font-size: .56rem; }
.version-values strong { color: var(--ink); font-size: .78rem; }
.install-section { padding: 21px; color: #fff; border-radius: 12px; background: linear-gradient(120deg, #086ee9, #0345a5); }
.install-section h2,
.install-section > p { color: #fff; }
.install-steps { margin: 15px 0 0; padding: 0; list-style: none; }
.install-steps > li { position: relative; display: flex; min-height: 116px; align-items: flex-start; gap: 9px; padding: 14px 10px; color: var(--text); border-radius: 8px; background: #fff; }
.install-steps > li > span { display: grid; width: 29px; height: 29px; flex: 0 0 auto; place-items: center; color: #fff; border-radius: 50%; background: var(--brand); font-size: .61rem; font-weight: 800; }
.install-steps > li strong { color: var(--ink); font-size: .65rem; }
.install-steps > li p { margin: 3px 0 0; color: var(--muted); font-size: .57rem; line-height: 1.4; }
.number-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.number-list li { display: flex; align-items: flex-start; gap: 8px; padding: 8px; border: 1px solid #e0ebf6; border-radius: 7px; background: #f8fbff; }
.number-list li > span { display: grid; width: 24px; height: 24px; flex: 0 0 auto; place-items: center; color: #fff; border-radius: 50%; background: var(--brand); font-size: .6rem; font-weight: 800; }
.number-list strong { display: block; color: var(--ink); font-size: .66rem; }
.number-list p { margin: 2px 0 0; color: var(--muted); font-size: .58rem; }
.login-help { color: #fff; background: linear-gradient(135deg, #0666da, #073182); }
.login-help h2,
.login-help p,
.login-help li { color: #fff; }
.credential-warning { display: flex; align-items: center; gap: 8px; margin: 12px 0; padding: 9px; color: #183f70; border-radius: 7px; background: #fff; font-size: .61rem; }
.credential-warning svg { width: 19px; height: 19px; color: var(--brand); }
.problem-list { display: grid; gap: 6px; }
.problem-list details,
.faq-list details { border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.problem-list summary,
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 13px; color: var(--ink); font-size: .7rem; font-weight: 750; cursor: pointer; list-style: none; }
.problem-list summary::-webkit-details-marker,
.faq-list summary::-webkit-details-marker { display: none; }
.problem-list summary::after,
.faq-list summary::after { color: var(--brand); content: "+"; font-size: 1rem; }
.problem-list details[open] summary::after,
.faq-list details[open] summary::after { content: "−"; }
.problem-list details p,
.faq-list details p { margin: 0; padding: 0 13px 12px; color: var(--muted); font-size: .66rem; }
.problem-list summary svg { display: none; }
.guide-columns { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.guide-columns article { padding-right: 13px; border-right: 1px solid var(--line); }
.guide-columns article:last-child { border-right: 0; }
.guide-columns h3 { font-size: .72rem; }
.guide-columns p { color: var(--muted); font-size: .62rem; }
.factual-financial { margin-bottom: 28px; border-color: #f0cf9d; background: #fffaf2; }

/* Archives, utility pages and download flow */
.archive-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(42px, 7vw, 82px);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 85% 28%, rgb(18 101 232 / 15%), transparent 24%),
    radial-gradient(circle at 12% 80%, rgb(16 191 166 / 12%), transparent 20%),
    linear-gradient(120deg, #f6fbff, #e6f5ff);
}
.archive-hero::after { position: absolute; width: 230px; height: 230px; top: -150px; right: 8%; border: 34px solid rgb(18 101 232 / 7%); border-radius: 50%; content: ""; }
.archive-hero .container { position: relative; z-index: 1; }
.archive-hero h1 { max-width: 850px; margin-bottom: 10px; }
.archive-hero p { max-width: 760px; margin: 0; color: #587696; }
.archive-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-bottom: 24px; padding: 12px; }
.archive-filters > label { position: relative; min-width: 220px; flex: 1; }
.archive-filters > label svg { position: absolute; top: 50%; left: 11px; width: 17px; height: 17px; color: #7692b0; transform: translateY(-50%); }
.archive-filters > label input { padding-left: 36px; }
.archive-filters select { width: auto; min-width: 150px; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 20px; }
.pagination > span { color: var(--muted); font-size: .72rem; }
.pagination .disabled { opacity: .5; pointer-events: none; }
.category-cloud { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.category-cloud a { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; color: var(--ink); border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: .69rem; font-weight: 650; }
.category-cloud a:hover { color: var(--brand); border-color: #9fc8f2; }
.category-cloud span { display: grid; min-width: 18px; height: 18px; padding-inline: 4px; place-items: center; color: var(--brand); border-radius: 99px; background: #e8f3ff; font-size: .55rem; }
.hero-search { display: flex; max-width: 690px; gap: 8px; margin-top: 19px; }
.hero-search label { position: relative; flex: 1; }
.hero-search label svg { position: absolute; top: 50%; left: 12px; width: 18px; height: 18px; color: #7792ae; transform: translateY(-50%); }
.hero-search input { padding-left: 39px; }

.story-archive-hero { color: #fff; background: linear-gradient(125deg, #075bcf, #073686 68%, #0c68d6); }
.story-archive-hero h1,
.story-archive-hero p { color: #fff; }
.story-archive-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.story-archive-card { overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: var(--shadow-sm); }
.story-archive-card > a { position: relative; display: block; overflow: hidden; background: #dceeff; }
.story-archive-card > a img { width: 100%; aspect-ratio: 9/13; object-fit: cover; transition: transform .3s; }
.story-archive-card:hover > a img { transform: scale(1.035); }
.story-play { position: absolute; right: 10px; bottom: 10px; display: grid; width: 38px; height: 38px; place-items: center; color: #fff; border: 2px solid #fff; border-radius: 50%; background: var(--brand); box-shadow: var(--shadow-sm); }
.story-play svg { width: 19px; height: 19px; }
.story-archive-card > div { padding: 13px; }
.story-archive-card > div > span { color: var(--teal); font-size: .59rem; font-weight: 800; text-transform: uppercase; }
.story-archive-card h2 { margin: 5px 0; font-size: .92rem; }
.story-archive-card p { margin: 0; color: var(--muted); font-size: .67rem; }

.narrow-container { max-width: 860px; }
.static-page > .container { padding: clamp(22px, 5vw, 50px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-sm); }
.static-page h1 { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, .6fr); align-items: start; gap: 18px; }
.contact-form { display: grid; gap: 13px; }
.contact-form label { color: var(--ink); font-size: .72rem; font-weight: 700; }
.contact-form label input,
.contact-form label textarea { margin-top: 5px; }
.honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.contact-info { position: sticky; top: 100px; }
.contact-info .button { margin-top: 17px; }
.button-telegram { color: #fff; border-color: #159bdc; background: linear-gradient(135deg, #23bce8, #0787dc); }

.download-grid { display: grid; grid-template-columns: minmax(0, 1fr) 285px; align-items: start; gap: 18px; }
.download-main { display: grid; min-width: 0; gap: 16px; }
.download-sidebar .sticky-card { position: sticky; top: 105px; }
.download-sidebar .button + .button { margin-top: 8px; }
.download-hero-card { display: flex; align-items: center; gap: 18px; background: linear-gradient(120deg, #fff, #edf8ff); }
.download-hero-card > img { width: 96px; height: 96px; flex: 0 0 auto; border-radius: 19px; object-fit: cover; box-shadow: var(--shadow-sm); }
.download-hero-card h1 { margin-bottom: 7px; font-size: clamp(1.55rem, 3vw, 2.25rem); }
.download-hero-card p { margin: 0; }
.safety-note { display: flex; align-items: flex-start; gap: 11px; padding: 13px 15px; color: #087766; border: 1px solid #aee8dc; border-radius: 9px; background: #e5faf6; }
.safety-note > svg { width: 24px; height: 24px; flex: 0 0 auto; }
.safety-note strong { color: inherit; font-size: .74rem; }
.safety-note p { margin: 2px 0 0; font-size: .65rem; }
.countdown-card { text-align: center; }
.countdown-number { display: grid; width: 76px; height: 76px; margin: 16px auto; place-items: center; color: var(--brand); border: 7px solid #cce5ff; border-top-color: var(--brand); border-radius: 50%; font-size: 1.6rem; font-weight: 850; }
.countdown-card[data-running="true"] .countdown-number { animation: countdown-pulse 1s ease-in-out infinite; }
@keyframes countdown-pulse { 50% { transform: scale(1.05); } }
.countdown-card .progress-track { height: 7px; overflow: hidden; border-radius: 99px; background: #e0edf9; }
.countdown-card .progress-track span { display: block; width: 100%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--teal)); transform-origin: left; }
.countdown-status { margin: 10px 0 0; color: var(--muted); font-size: .67rem; }
.countdown-ready { margin-top: 14px; }
.countdown-ready p { color: #087a68; }
.download-disclaimer { padding: 11px 13px; color: #8a6119; border: 1px solid #f0d5a5; border-radius: 8px; background: #fff8e9; font-size: .65rem; }

.promo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.promo-grid .promo-card { color: var(--text); border: 1px solid var(--line); background: linear-gradient(145deg, #fff, #eef9ff); }
.promo-grid .promo-card h2,
.promo-grid .promo-card h3,
.promo-grid .promo-card p { color: inherit; }
.promo-grid .promo-card h2 { color: var(--ink); }
.promo-code { display: flex; align-items: center; gap: 7px; margin: 12px 0; padding: 8px; border: 1px dashed #94bee9; border-radius: 7px; background: #e9f5ff; }
.promo-code code { flex: 1; color: var(--navy); font-size: .88rem; font-weight: 850; letter-spacing: .04em; }
.promo-code button { padding: 6px 9px; color: #fff; border: 0; border-radius: 5px; background: var(--brand); font-size: .63rem; font-weight: 750; }
.status-pill.success { color: #078d79; background: #dcf8f1; }

.installer-card { width: min(540px, calc(100% - 28px)); margin: 8vh auto; padding: 32px; text-align: center; }
.installer-card > img { margin: 0 auto 13px; }
.error-page { min-height: 62vh; display: grid; place-items: center; }
.error-page > .card { padding: clamp(32px, 7vw, 70px); text-align: center; }
.error-code { display: block; color: var(--brand); font-size: clamp(4rem, 15vw, 8rem); font-weight: 900; letter-spacing: -.07em; line-height: .85; opacity: .18; }
.error-page .hero-actions { justify-content: center; }

.footer-main {
  display: grid;
  grid-template-columns: 1.7fr repeat(4, 1fr);
  gap: 35px;
  padding-block: 42px 30px;
}
.footer-brand p { max-width: 330px; margin: 15px 0; color: #adc5e2; font-size: .77rem; }
.footer-column h3 { margin-bottom: 14px; color: #fff; font-size: .84rem; }
.footer-column ul { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.footer-column a { color: #b8ceea; font-size: .74rem; }
.footer-column a:hover { color: #fff; }
.footer-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 14px;
  border-top: 1px solid rgb(255 255 255 / 12%);
  font-size: .68rem;
}

/* Utility layouts */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stack { display: grid; gap: 16px; }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.hidden { display: none !important; }

@media (max-width: 1060px) {
  :root { --container: 960px; }
  .header-inner,
  .site-header__inner { gap: 14px; }
  .site-nav a,
  .main-nav a { padding-inline: 7px; font-size: .72rem; }
  .header-actions .btn:first-child { display: none; }
  .hero-inner,
  .directory-hero__inner { grid-template-columns: 1.12fr .88fr; }
  .path-grid,
  .feature-navigation { grid-template-columns: repeat(3, 1fr); }
  .footer-main { grid-template-columns: 1.5fr repeat(2, 1fr); }
  .footer-column:nth-child(n+4) { margin-top: -5px; }
}

@media (max-width: 860px) {
  :root { --header-height: 64px; }
  .container,
  .site-container,
  .wrap { width: min(calc(100% - 28px), var(--container)); }
  .nav-toggle,
  .menu-toggle { display: block; margin-left: auto; }
  .site-nav,
  .main-nav {
    position: fixed;
    z-index: 999;
    top: var(--header-height);
    right: 0;
    bottom: 0;
    display: grid;
    width: min(320px, 86vw);
    align-content: start;
    gap: 3px;
    padding: 18px;
    overflow-y: auto;
    background: #fff;
    box-shadow: -16px 20px 40px rgb(4 40 90 / 18%);
    transform: translateX(105%);
    transition: transform .24s ease;
  }
  .site-nav.is-open,
  .main-nav.is-open,
  .nav-open .site-nav,
  .nav-open .main-nav { transform: none; }
  .site-nav a,
  .main-nav a { padding: 12px; font-size: .86rem; }
  .header-actions { display: none; }
  .nav-backdrop {
    position: fixed;
    z-index: 998;
    inset: var(--header-height) 0 0;
    display: none;
    background: rgb(3 27 63 / 48%);
  }
  .nav-open .nav-backdrop { display: block; }
  .hero-inner,
  .directory-hero__inner,
  .game-hero__inner { grid-template-columns: 1fr; padding-top: 45px; }
  .hero-art,
  .game-hero-art { display: none; }
  .hero-copy { max-width: 720px; }
  .search-panel { grid-template-columns: 1fr 1.7fr 1fr auto; }
  .search-panel h2,
  .search-panel h3 { grid-column: 1 / -1; }
  .popular-links { grid-column: 1 / -1; }
  .content-layout,
  .directory-layout,
  .game-layout { grid-template-columns: 1fr; }
  .sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .game-grid,
  [data-game-list][data-view="grid"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .screenshot-grid,
  .screenshots-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .guide-grid,
  .info-grid,
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps,
  .install-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .step:nth-child(3)::after,
  .install-step:nth-child(3)::after { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 14px; }
  .container,
  .site-container,
  .wrap { width: min(calc(100% - 22px), var(--container)); }
  .brand-copy small { display: none; }
  .brand-mark,
  .site-logo { width: 38px; height: 38px; }
  .header-note,
  .site-tagline { display: none; }
  .section { padding-block: 34px; }
  .section-heading,
  .section-head { display: block; }
  .section-heading > :last-child,
  .section-head > :last-child { margin-top: 12px; }
  .hero-inner,
  .directory-hero__inner,
  .game-hero__inner { min-height: 0; padding-block: 36px 48px; }
  .hero-copy h1 { font-size: clamp(1.9rem, 10vw, 2.7rem); }
  .game-identity { display: block; }
  .game-logo-lg { width: 86px; height: 86px; margin-bottom: 16px; border-radius: 18px; }
  .game-logo-lg img { border-radius: 14px; }
  .search-panel { grid-template-columns: 1fr; }
  .search-panel > * { width: 100%; }
  .search-panel h2,
  .search-panel h3,
  .popular-links { grid-column: auto; }
  .search-panel .btn { width: 100%; }
  .directory-search,
  .hero-search { margin-top: -20px; }
  .filter-toolbar select,
  .directory-toolbar select { min-width: calc(50% - 5px); flex: 1 1 130px; }
  .view-switcher { margin-left: auto; }
  .games-table th:nth-child(1),
  .games-table td:nth-child(1),
  .games-table th:nth-child(3),
  .games-table td:nth-child(3),
  .directory-table th:nth-child(1),
  .directory-table td:nth-child(1),
  .directory-table th:nth-child(3),
  .directory-table td:nth-child(3) { display: none; }
  .games-table th,
  .games-table td,
  .directory-table th,
  .directory-table td { padding: 9px 7px; }
  .game-summary { min-width: 150px; }
  .game-grid,
  [data-game-list][data-view="grid"],
  .grid-3,
  .grid-4 { grid-template-columns: 1fr; }
  .path-grid,
  .feature-navigation { grid-template-columns: repeat(2, 1fr); }
  .path-card { min-height: 160px; }
  .screenshot-grid,
  .screenshots-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-grid,
  .info-grid,
  .feature-grid,
  .split-panel,
  .info-split,
  .grid-2 { grid-template-columns: 1fr; }
  .steps,
  .install-steps { grid-template-columns: 1fr; }
  .step:not(:last-child)::after,
  .install-step:not(:last-child)::after { top: auto; right: 50%; bottom: -14px; }
  .sidebar { grid-template-columns: 1fr; }
  .telegram-banner { display: grid; justify-items: start; padding: 20px; }
  .telegram-banner .btn { margin-left: 0; }
  .telegram-float,
  [data-telegram-float] { right: 12px; bottom: 12px; width: 50px; padding: 10px; overflow: hidden; white-space: nowrap; }
  .telegram-float span,
  [data-telegram-float] span { display: none; }
  .sticky-ad,
  [data-sticky-ad] { right: 10px; bottom: 74px; }
  .footer-main { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { display: block; text-align: center; }
}

@media (max-width: 420px) {
  .path-grid,
  .feature-navigation { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .game-meta,
  .hero-stats { display: grid; grid-template-columns: repeat(2, 1fr); }
  .meta-chip,
  .hero-stat { min-width: 0; }
}

@media (max-width: 640px) {
  .game-list-wrap > .games-table { display: none !important; }
  .game-list-wrap > .game-card-grid { display: grid !important; grid-template-columns: 1fr; }
  .game-card-grid .game-card { position: relative; grid-template-columns: auto 64px 1fr; align-items: start; padding: 14px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
  .game-card-grid .game-card > .serial-badge { position: static; }
  .game-card-grid .game-card > .button { grid-column: 2 / -1; width: 100%; }
  .section-heading-row { align-items: flex-start; flex-direction: column; }
  .telegram-banner-inner { align-items: flex-start; flex-wrap: wrap; }
  .telegram-banner-inner .button { width: 100%; margin-left: 0; }
}

/* Responsive rules for the concrete public templates. */
@media (max-width: 1060px) {
  .primary-nav a { padding-inline: 6px; font-size: .69rem; }
  .header-submit { display: none; }
  .explore-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.6fr repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .primary-nav {
    position: fixed;
    z-index: 999;
    top: var(--header-height);
    right: 0;
    bottom: 0;
    display: grid;
    width: min(320px, 86vw);
    align-content: start;
    gap: 3px;
    padding: 18px;
    overflow-y: auto;
    background: #fff;
    box-shadow: -16px 20px 40px rgb(4 40 90 / 18%);
    transform: translateX(105%);
    transition: transform .24s ease;
  }
  .primary-nav.is-open,
  .nav-open .primary-nav { transform: none; }
  .primary-nav a { padding: 12px; font-size: .86rem; }
  .header-actions { display: flex; margin-left: auto; }
  .header-actions > .icon-button,
  .header-actions > .button { display: none; }
  .header-actions > .menu-toggle { display: block; }
  .hero-grid,
  .game-hero-grid { min-height: 0; grid-template-columns: 1fr; }
  .hero-grid > .hero-art { display: none; }
  .game-hero-art { display: none; }
  .search-panel-wrap .search-panel { grid-template-columns: 1fr 1.6fr 1fr auto; }
  .search-panel-wrap .search-panel > h2 { grid-column: 1 / -1; }
  .search-panel-wrap .popular-inline { grid-column: 1 / -1; }
  .content-sidebar-grid,
  .game-content-grid { grid-template-columns: 1fr; }
  .directory-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .game-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .game-sidebar .sticky-card { position: static; }
  .game-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .featured-game-inner { grid-template-columns: 210px 1fr; gap: 20px; }
  .screenshot-gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .guide-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-columns article:nth-child(2) { border-right: 0; }
  .story-archive-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .download-grid { grid-template-columns: 1fr; }
  .download-sidebar .sticky-card { position: static; }
  .promo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .brand > span small { display: none; }
  .info-strip { display: none; }
  .hero-grid,
  .game-hero-grid { padding-block: 34px 45px; }
  .search-panel-wrap .search-panel { grid-template-columns: 1fr; }
  .search-panel-wrap .search-panel > h2,
  .search-panel-wrap .popular-inline { grid-column: auto; }
  .search-panel-wrap .button { width: 100%; }
  .section-heading-row { display: block; }
  .section-heading-row > :last-child { margin-top: 10px; }
  .directory-toolbar > label:first-child { min-width: 100%; }
  .directory-toolbar select { min-width: calc(50% - 5px); flex: 1; }
  .view-buttons { margin-left: auto; }
  .game-list-wrap { overflow-x: auto; }
  .game-card-grid { grid-template-columns: 1fr; }
  .games-table th:nth-child(1),
  .games-table td:nth-child(1),
  .games-table th:nth-child(3),
  .games-table td:nth-child(3) { display: none; }
  .directory-sidebar,
  .game-sidebar { grid-template-columns: 1fr; }
  .explore-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-game-inner { grid-template-columns: 1fr; }
  .featured-phone { display: none; }
  .two-panel-grid,
  .detail-pair,
  .version-grid,
  .account-grid,
  .apk-check-grid { grid-template-columns: 1fr; }
  .screenshot-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .overview-cards,
  .feature-card-grid { grid-template-columns: 1fr; }
  .guide-columns { grid-template-columns: 1fr; }
  .guide-columns article { padding-right: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .game-title-row { align-items: flex-start; }
  .game-hero-logo { width: 78px; height: 78px; border-radius: 17px; }
  .game-hero-copy h1 { font-size: 1.65rem; }
  .hero-specs { display: grid; grid-template-columns: repeat(2, 1fr); }
  .game-story-band { margin-inline: 0; }
  .install-steps { grid-template-columns: 1fr; }
  .install-steps > li { min-height: 0; }
  .telegram-banner-inner { display: grid; justify-items: start; }
  .telegram-banner-inner .button { margin-left: 0; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid .footer-brand { grid-column: 1 / -1; }
  .archive-filters { display: grid; grid-template-columns: 1fr 1fr; }
  .archive-filters > label { min-width: 0; grid-column: 1 / -1; }
  .archive-filters select { width: 100%; min-width: 0; }
  .archive-filters .button { grid-column: 1 / -1; }
  .story-archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-info { position: static; }
  .download-hero-card { align-items: flex-start; }
  .promo-grid { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .explore-grid { grid-template-columns: 1fr; }
  .game-title-row { display: block; }
  .game-hero-logo { margin-bottom: 14px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid .footer-brand { grid-column: auto; }
  .story-archive-grid { grid-template-columns: 1fr; }
  .hero-search { display: grid; }
  .download-hero-card { display: block; }
  .download-hero-card > img { margin-bottom: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media print {
  .site-header,
  .sticky-tabs,
  .page-tabs,
  .telegram-float,
  [data-telegram-float],
  .sticky-ad,
  [data-sticky-ad],
  .site-footer,
  .hero-actions,
  .filter-toolbar { display: none !important; }
  body { color: #000; background: #fff; }
  .card,
  .content-card,
  .sidebar-card { break-inside: avoid; box-shadow: none; }
}
