:root {
  --background: oklch(0.9763 0.0026 165.1);
  --foreground: oklch(0.1998 0.0142 160.5);
  --primary: oklch(0.6364 0.1453 157.6);
  --primary-foreground: oklch(0.9763 0.0026 165.1);
  --secondary: oklch(0.9152 0.0204 157.2);
  --muted-foreground: oklch(0.482 0.017 161);
  --card: oklch(1 0 0);
  --border: color-mix(in oklab, var(--foreground) 10%, transparent);
  --font-sans: "Figtree", sans-serif;
  --font-heading: "Outfit", sans-serif;
  --frost-background: linear-gradient(160deg, color-mix(in oklab, var(--card) 69%, transparent), color-mix(in oklab, var(--background) 63%, transparent));
  --frost-shadow: 0 1px 0 var(--card), 0 24px 48px -28px color-mix(in oklab, var(--foreground) 30%, transparent);
}

* { border-color: var(--border); letter-spacing: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { background: var(--background); color: var(--foreground); font-family: var(--font-sans); margin: 0; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
.mobile-search, .nav-telegram { display: none; }
.page-updated { margin: 14px 0 0; font-size: 12px; color: var(--muted-foreground); }
.page-updated time { font-weight: 600; color: var(--foreground); }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; }
a, button { transition: background-color .18s, color .18s, border-color .18s; }
input, select, button { font: inherit; }
a { text-decoration: none; color: inherit; }
::selection { background: var(--secondary); }
.ico { display: block; flex-shrink: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  line-height: 1;
}
.btn .ico { width: 16px; height: 16px; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 12px; border-radius: 8px; }
.btn-md { height: 36px; padding: 8px 16px; font-size: 14px; border-radius: 999px; }
.btn-editorial { background: var(--primary); color: var(--primary-foreground); border-color: var(--primary); }
.btn-editorial:hover { background: color-mix(in oklab, var(--primary) 90%, black); }
.btn-paper { background: var(--card); color: var(--primary); border-color: var(--border); }
.btn-paper:hover { background: var(--secondary); }
.btn-filter { background: var(--secondary); color: var(--muted-foreground); border-color: var(--border); }
.btn-filter:hover { color: var(--primary); }
.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 8px;
  background: transparent;
  border: 0;
  color: var(--foreground);
}
.btn-icon:hover { background: var(--secondary); }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-menu { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

.site-wrap { max-width: 1440px; margin: auto; padding: 0 48px; }
.site-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; border-bottom: 1px solid var(--border); padding: 20px 0; }
.brand { display: flex; align-items: center; gap: 10px; white-space: nowrap; font-family: var(--font-heading); font-size: 17px; font-weight: 600; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--primary); color: var(--primary-foreground); font-size: 17px; }
.brand-label { font-family: var(--font-sans); font-size: 10px; text-transform: uppercase; color: var(--muted-foreground); font-weight: 500; margin-left: 2px; }
.header-nav { display: flex; align-items: center; gap: 21px; font-size: 12px; font-weight: 500; }
.header-nav a { white-space: nowrap; color: var(--muted-foreground); }
.header-nav a:hover, .header-nav a.active { color: var(--primary); }
.header-tools { display: flex; gap: 10px; align-items: center; }
.search-box { display: flex; align-items: center; gap: 8px; border: 1px solid var(--border); border-radius: 50px; background: color-mix(in oklab, var(--card) 70%, transparent); padding: 8px 12px; color: var(--muted-foreground); }
.search-box input { border: 0; outline: 0; background: transparent; width: 116px; font-size: 12px; color: var(--foreground); }
.search-box:focus-within { border-color: var(--primary); }
.search-box.mobile-search { display: none; }
.menu-toggle { display: none; }
.masthead { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; align-items: end; padding: 55px 0; border-bottom: 1px solid var(--border); }
.eyebrow { font-size: 11px; text-transform: uppercase; font-weight: 600; color: var(--primary); }
.masthead h1 { font-size: 54px; line-height: 1.05; margin: 14px 0 18px; max-width: 24ch; text-wrap: balance; }
.masthead .intro { font-size: 15px; line-height: 1.55; color: var(--muted-foreground); max-width: 52ch; }
.category-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 21px; }
.frost { background: var(--frost-background); border: 1px solid var(--card); box-shadow: var(--frost-shadow); border-radius: 14px; padding: 22px; }
.frost .eyebrow { color: var(--muted-foreground); font-size: 10px; }
.frost h3 { font-size: 19px; line-height: 1.25; margin: 10px 0; }
.frost p { font-size: 13px; line-height: 1.6; color: var(--muted-foreground); }
.content-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; padding: 48px 0 64px; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 15px; padding-bottom: 10px; border-bottom: 2px solid var(--foreground); }
.section-heading h2 { font-size: 20px; margin: 0; }
.section-heading span { font-size: 10px; text-transform: uppercase; color: var(--muted-foreground); }
.game-list { padding: 0; margin: 4px 0 0; list-style: none; }
.game-row { display: flex; align-items: center; gap: 16px; border-bottom: 1px solid var(--border); padding: 20px 0; min-height: 94px; }
.game-row[hidden] { display: none; }
.game-row:hover { background: color-mix(in oklab, var(--secondary) 40%, transparent); }
.row-number { font-family: var(--font-heading); font-size: 15px; color: var(--primary); width: 28px; flex-shrink: 0; }
.row-category { width: 75px; flex-shrink: 0; font-size: 10px; text-transform: uppercase; color: var(--muted-foreground); display: flex; align-items: center; gap: 6px; }
.row-copy { min-width: 0; flex: 1; }
.row-copy h3 { font-size: 17px; margin: 0 0 5px; }
.row-copy p { font-size: 13px; color: var(--muted-foreground); line-height: 1.4; margin: 0; }
.row-action { flex-shrink: 0; }
.directory-actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px; }
.side-divider { border-top: 1px solid var(--border); margin-top: 23px; padding-top: 18px; }
.aside-art { color: var(--primary); display: flex; gap: 12px; margin: 22px 0 16px; }
.aside-art .ico { width: 32px; height: 32px; stroke-width: 1.2; }
.site-footer { border-top: 1px solid var(--border); padding: 30px 0; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 25px; }
.footer-brand { font-size: 14px; }
.footer-brand .brand-mark { width: 28px; height: 28px; font-size: 13px; border-radius: 8px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 18px; font-size: 11px; color: var(--muted-foreground); }
.footer-nav a:hover { color: var(--primary); }
.footer-note { font-size: 11px; color: var(--muted-foreground); line-height: 1.6; margin-top: 19px; }
.list-controls { display: flex; gap: 12px; margin: 22px 0; align-items: center; flex-wrap: wrap; }
.list-controls .search-box { flex: 1; min-width: 160px; }
.list-controls .search-box input { width: 100%; font-size: 13px; }
.filter-select { border: 1px solid var(--border); border-radius: 50px; padding: 9px 13px; background: var(--card); font-size: 12px; max-width: 100%; color: var(--foreground); }
.empty-state { padding: 50px 10px; text-align: center; color: var(--muted-foreground); }
.empty-state .ico { width: 24px; height: 24px; margin: 0 auto 12px; }
.empty-state h3 { color: var(--foreground); margin: 0 0 8px; }
.empty-state p { margin: 0; }
.empty-state .btn { margin-top: 16px; }
.article-body h2 { font-size: 24px; margin: 28px 0 14px; }
.article-body p, .article-body li { font-size: 15px; line-height: 1.8; color: var(--muted-foreground); }
.article-body ul, .article-body ol { padding-left: 20px; }
.article-body details { border-bottom: 1px solid var(--border); padding: 17px 0; }
.article-body summary { cursor: pointer; font-size: 15px; font-weight: 600; color: var(--foreground); }
.article-body details p { font-size: 14px; }
.breadcrumb { display: flex; gap: 7px; align-items: center; font-size: 12px; color: var(--muted-foreground); margin-bottom: 23px; }
.breadcrumb a:hover { color: var(--primary); }
.notice { border-left: 3px solid var(--primary); background: color-mix(in oklab, var(--secondary) 45%, transparent); padding: 16px 20px; margin: 24px 0; font-size: 13px; line-height: 1.7; color: var(--muted-foreground); }
.contact-topics { margin-top: 26px; }
.contact-topics a { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; border-bottom: 1px solid var(--border); font-size: 15px; color: var(--foreground); }
.contact-topics a:hover { color: var(--primary); }
.topic-main { display: flex; align-items: center; gap: 12px; }
.not-found { display: flex; min-height: 100vh; align-items: center; justify-content: center; padding: 16px; text-align: center; }
.not-found h1 { font-size: 72px; margin: 0; }
.not-found h2 { margin: 16px 0 0; font-size: 20px; }
.not-found p { margin: 8px 0 0; font-size: 14px; color: var(--muted-foreground); }
.not-found .btn { margin-top: 24px; }

.game-icon { flex-shrink: 0; border-radius: 12px; object-fit: cover; border: 1px solid var(--border); background: var(--secondary); }
.game-icon-sm { width: 52px; height: 52px; }
.game-icon-empty { display: inline-flex; align-items: center; justify-content: center; color: var(--primary); }
.game-icon-empty .ico { width: 22px; height: 22px; }
.row-actions { display: flex; gap: 8px; flex-shrink: 0; margin-left: auto; }
.guide-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.call-link { font-variant-numeric: tabular-nums; }
.enquiry { margin-bottom: 36px; }
.enquiry > p, .faq-block > p { font-size: 15px; line-height: 1.7; color: var(--muted-foreground); max-width: 68ch; }
.lead-form { display: grid; gap: 12px; max-width: 460px; margin-top: 16px; }
.lead-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; }
.lead-form input, .lead-form textarea { width: 100%; border: 1px solid var(--border); border-radius: 10px; background: var(--card); color: var(--foreground); padding: 10px 12px; font: inherit; font-weight: 400; }
.lead-form input:focus, .lead-form textarea:focus { outline: 2px solid var(--primary); border-color: var(--primary); }
.lead-form button { justify-self: start; }
.faq-block { grid-column: 1 / -1; margin: 36px 0 8px; }
.faq-block h2 { font-size: 24px; margin: 0 0 12px; }
.faq-block h3 { font-size: 18px; margin: 22px 0 8px; }
.guide-index { grid-column: 1 / -1; margin-top: 8px; background: #f3f6fb; border-radius: 18px; padding: 22px 18px 18px; }
.game-cards { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; list-style: none; padding: 16px 0 0; margin: 0; }
.game-card { display: flex; flex-direction: column; min-width: 0; background: #fff; border: 1px solid #e7edf5; border-radius: 12px; padding: 14px 14px 12px; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05); }
.game-card-icon { width: 68px; height: 68px; border-radius: 16px; object-fit: cover; display: block; background: #eef2f7; }
.game-card-icon.game-icon-empty { display: inline-flex; align-items: center; justify-content: center; color: var(--primary); }
.game-card-icon.game-icon-empty .ico { width: 28px; height: 28px; }
.game-card h3 { margin: 12px 0 6px; font-size: 15px; line-height: 1.25; font-weight: 700; color: #1c2430; }
.game-card h3 a:hover { color: #2f6fed; }
.game-card-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin: 0 0 14px; color: #8b95a5; font-size: 12px; line-height: 1; }
.game-card-meta span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.game-card-meta .ico { width: 13px; height: 13px; }
.game-card-rating { color: #2f6fed; font-weight: 600; }
.game-card-rating .ico { fill: #2f6fed; stroke: none; width: 13px; height: 13px; }
.game-card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.game-card-bonus { margin: 0; }
.game-card-bonus strong { display: block; font-size: 16px; line-height: 1.1; color: #1c2430; font-weight: 700; }
.game-card-bonus small { display: block; margin-top: 3px; color: #9aa3b2; font-size: 11px; font-weight: 500; line-height: 1.2; white-space: nowrap; }
.btn-download { height: 32px; padding: 0 10px; border-radius: 8px; background: #2f6fed; color: #fff; font-size: 13px; font-weight: 600; gap: 4px; flex-shrink: 0; }
.btn-download:hover { background: #1d5af5; color: #fff; }
.btn-download .ico { width: 14px; height: 14px; }
.masthead > *, .content-grid > *, .masthead-banner, .hero-banner, .article-body { min-width: 0; }
.masthead-banner { grid-column: 1 / -1; max-width: 100%; }
.hero-banner, .banner-rows { max-width: 100%; }
.hero-banner { position: relative; overflow: hidden; border-radius: 18px; border: 1px solid var(--border); background: var(--secondary); height: 230px; }
.banner-rows { display: flex; flex-direction: column; gap: 12px; padding: 12px 0; transform: rotate(-4deg) scale(1.12); }
.banner-track { display: flex; gap: 12px; width: max-content; animation: banner-scroll 60s linear infinite; }
.banner-track.reverse { animation-direction: reverse; }
.banner-track img { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; border: 1px solid var(--card); box-shadow: var(--frost-shadow); }
@keyframes banner-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.banner-label { position: absolute; left: 20px; bottom: 20px; background: var(--frost-background); backdrop-filter: blur(14px); border: 1px solid var(--card); border-radius: 12px; padding: 12px 16px; box-shadow: var(--frost-shadow); }
.banner-label strong { display: block; font-size: 20px; line-height: 1.2; margin-top: 4px; font-weight: 700; }
.game-banner { display: flex; align-items: center; }
.banner-backdrop { position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); object-fit: cover; filter: blur(36px) saturate(1.3); opacity: .55; }
.game-banner-inner { position: relative; display: flex; align-items: center; gap: 26px; padding: 28px; }
.game-banner-logo { width: 140px; height: 140px; border-radius: 28px; object-fit: cover; border: 3px solid var(--card); box-shadow: var(--frost-shadow); flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; background: var(--card); }
.game-banner-logo.game-icon-empty .ico { width: 48px; height: 48px; }
.game-banner-inner strong { display: block; font-family: var(--font-heading); font-size: 34px; line-height: 1.1; margin: 6px 0 4px; font-weight: 600; }

@media (max-width: 1250px) {
  .game-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .brand-label { display: none; }
  .header-nav { gap: 16px; font-size: 11px; }
  .header-tools > .search-box { display: none; }
}
@media (max-width: 1000px) {
  .site-wrap { padding: 0 max(20px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left)); }
  .site-header { position: sticky; top: 0; z-index: 30; flex-wrap: wrap; background: color-mix(in oklab, var(--background) 92%, transparent); backdrop-filter: blur(16px); padding-top: max(14px, env(safe-area-inset-top)); }
  .header-nav { display: none; }
  .menu-toggle { display: inline-flex; width: 44px; height: 44px; }
  .tg-header { display: none; }
  .search-box.mobile-search { display: flex; flex: 1 1 100%; margin-top: 8px; }
  .mobile-search input { width: 100%; font-size: 16px; }
  .header-nav.is-open { display: flex; position: absolute; top: calc(100% - 8px); left: 16px; right: 16px; z-index: 40; flex-direction: column; align-items: stretch; gap: 0; background: var(--background); border: 1px solid var(--border); border-radius: 14px; padding: 8px; box-shadow: var(--frost-shadow); font-size: 16px; }
  .header-nav.is-open a { padding: 14px 12px; border-radius: 10px; }
  .header-nav.is-open .nav-telegram { display: flex; }
  .masthead h1 { font-size: clamp(34px, 8vw, 46px); }
  .row-category { display: none; }
  .content-grid, .masthead { gap: 30px; }
  .game-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .search-box input, .filter-select { font-size: 16px; }
}
@media (max-width: 700px) {
  .site-wrap { padding: 0 max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left)); }
  .site-header { padding-bottom: 12px; }
  .masthead { grid-template-columns: 1fr; padding: 28px 0 32px; gap: 22px; }
  .masthead h1 { font-size: clamp(32px, 10vw, 40px); max-width: none; }
  .content-grid { grid-template-columns: 1fr; gap: 28px; padding: 28px 0 max(36px, env(safe-area-inset-bottom)); }
  .game-row { flex-wrap: wrap; align-items: center; gap: 12px; padding: 16px 0; }
  .row-copy { flex: 1 1 calc(100% - 86px); }
  .row-copy p { font-size: 13px; }
  .row-number { width: 22px; }
  .row-actions { flex: 1 1 100%; margin-left: 34px; }
  .row-action { width: 100%; min-height: 44px; font-size: 14px; padding: 0 14px; }
  .footer-top { align-items: start; flex-direction: column; }
  .footer-nav { gap: 4px 16px; }
  .footer-nav a { padding: 8px 0; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
  .section-heading span { font-size: 10px; }
  .masthead .intro { font-size: 15px; max-width: none; }
  .brand { font-size: 16px; }
  .game-icon-sm { width: 48px; height: 48px; }
  .list-controls { flex-direction: column; align-items: stretch; }
  .filter-select, .list-controls .search-box { width: 100%; }
  .directory-actions { flex-direction: column; }
  .directory-actions .btn, .guide-cta .btn, .category-links .btn, .hero-actions .btn, .lead-form button { min-height: 44px; }
  .hero-actions .btn, .lead-form button { width: 100%; }
  .guide-index { padding: 16px 12px 12px; }
  .game-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .game-card { padding: 12px; }
  .game-card-icon { width: 56px; height: 56px; border-radius: 14px; }
  .game-card h3 { font-size: 14px; }
  .game-card-foot { flex-direction: column; align-items: stretch; gap: 8px; }
  .btn-download { height: 32px; width: 100%; padding: 0 8px; font-size: 12px; }
  .guide-cta .btn { flex: 1 1 100%; }
  .hero-banner { height: 168px; }
  .banner-label { left: 12px; right: 12px; bottom: 12px; }
  .banner-label strong { font-size: 16px; }
  .game-banner { height: auto; }
  .game-banner-inner { flex-direction: column; align-items: flex-start; gap: 14px; padding: 16px; }
  .game-banner-logo { width: 84px; height: 84px; border-radius: 20px; }
  .game-banner-inner strong { font-size: 26px; }
  .banner-track img { width: 48px; height: 48px; }
  .article-body h2 { font-size: 22px; }
  .contact-topics a { gap: 12px; align-items: flex-start; }
  .btn { touch-action: manipulation; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
  .banner-track { animation: none; }
}
