/* GoPoker v2 — night Ulaanbaatar theme. Class names kept from v1 so content packs and widgets render unchanged. */
:root {
  --bg: #0a0e1f;
  --bg-2: #0e1328;
  --surface: #121834;
  --surface-2: #0f1430;
  --line: #1f2850;
  --line-2: #2a3360;
  --gold: #f2b25c;
  --gold-hi: #ffc877;
  --gold-dim: #b98439;
  --blue: #7cb8f2;
  --green: #5fe0a0;
  --text: #f4f1ea;
  --body: #dcd8e6;
  --muted: #a9a6b8;
  --faint: #8e89a8;
  --accent: #2a3360;
  --paper: #f4f1ea;
  --felt: #1d5b4f;
  --radius: 22px;
  --radius-s: 14px;
  --font: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: Unbounded, Manrope, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --rise: 0;
  --tilt: 0;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { max-width: 100%; height: auto; }
a { color: var(--text); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--gold); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px;
}
::selection { background: var(--gold); color: #1a1206; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 24px); }
.wrap--wide { max-width: 1280px; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--gold); color: #1a1206; padding: 10px 16px; border-radius: 999px; font-weight: 700; }
.skip-link:focus { left: 16px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 14, 31, 0.84);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid #1c2342;
}
.site-header .wrap { display: flex; align-items: center; gap: 12px; min-height: 56px; padding-top: 6px; padding-bottom: 6px; }
.site-header--overlay { position: fixed; left: 0; right: 0; background: transparent; border-bottom-color: transparent; transition: background 0.3s var(--ease), border-color 0.3s var(--ease); }
.site-header--overlay.is-scrolled { background: rgba(10, 14, 31, 0.84); border-bottom-color: #1c2342; }
.logo { display: inline-flex; align-items: center; flex-shrink: 0; text-decoration: none; color: var(--gold); font-family: var(--display); font-weight: 800; }
.logo:hover { opacity: 0.9; }
.logo span { color: var(--text); font-weight: 500; font-size: 0.8rem; margin-left: 0.3rem; }
.logo-mark { display: block; height: 26px; width: auto; max-width: 120px; object-fit: contain; }
.nav { display: flex; align-items: center; gap: 2px; font-size: 14px; margin-left: 8px; }
.nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 10px; color: #c9c4d8; text-decoration: none; border-radius: 999px; }
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--gold); }
.header-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.online-pill { position: relative; display: inline-flex; flex-flow: row nowrap; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); color: var(--text); font: 600 12px var(--font); line-height: 1; white-space: nowrap; cursor: default; }
.online-pill::before { content: ""; flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(95, 224, 160, 0.6); animation: gp-pulse 2.6s infinite; }
.online-pill b, .online-pill small { display: inline; line-height: 1; white-space: nowrap; }
.online-pill b { font-variant-numeric: tabular-nums; font-weight: 700; transition: color 0.4s var(--ease); }
.online-pill b.up { color: var(--green); }
.online-pill small { font-size: 12px; color: var(--muted); }
.online-pop { position: absolute; top: calc(100% + 8px); right: 0; z-index: 5; width: max-content; max-width: min(92vw, 640px); padding: 8px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: 0 16px 32px rgba(0, 0, 0, 0.45); display: flex; flex-flow: row nowrap; align-items: center; gap: 12px; opacity: 0; transform: translateY(-4px); pointer-events: none; transition: opacity 0.2s var(--ease), transform 0.2s var(--ease); }
.online-pill:hover .online-pop, .online-pill:focus-within .online-pop { opacity: 1; transform: none; }
.online-pop__t { font: 600 11px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); white-space: nowrap; }
.online-pop__row { display: inline-flex; align-items: baseline; gap: 4px; font-size: 12px; white-space: nowrap; }
.online-pop__row span { display: inline-flex; align-items: baseline; gap: 4px; }
.online-pop__row i { display: none; }
@keyframes gp-pulse { 0% { box-shadow: 0 0 0 0 rgba(95, 224, 160, 0.55); } 70% { box-shadow: 0 0 0 8px rgba(95, 224, 160, 0); } 100% { box-shadow: 0 0 0 0 rgba(95, 224, 160, 0); } }
.lang-switch { display: flex; gap: 2px; padding: 2px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); }
.lang-switch button { min-width: 34px; min-height: 30px; padding: 0 6px; border: 0; border-radius: 999px; background: transparent; color: #c9c6d6; font: 600 12px var(--mono); cursor: pointer; }
.lang-switch button.active { background: var(--text); color: var(--bg); }
.header-cta { display: inline-flex; align-items: center; min-height: 38px; padding: 0 18px; border-radius: 999px; background: var(--gold); color: #1a1206; font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap; }
.header-cta:hover { background: var(--gold-hi); color: #1a1206; }
@media (max-width: 1099px) { .nav { display: none; } }
@media (max-width: 640px) {
  .online-pill small, .lang-switch { display: none; }
  .header-tools { gap: 8px; }
  .header-cta { padding: 0 16px; }
}
.mobile-nav { display: none; }
@media (max-width: 1099px) {
  .mobile-nav { display: flex; gap: 6px; overflow-x: auto; padding: 0 clamp(16px, 3vw, 24px) 10px; scrollbar-width: none; }
  .mobile-nav::-webkit-scrollbar { display: none; }
  .mobile-nav a { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); color: #c9c4d8; font-size: 13px; text-decoration: none; }
  .mobile-nav a[aria-current="page"] { border-color: var(--gold); color: var(--gold); }
  .mobile-nav a { min-height: 32px; padding: 0 12px; }
  .site-header--overlay .mobile-nav { max-height: 0; padding-bottom: 0; opacity: 0; overflow: hidden; transition: max-height 0.3s var(--ease), opacity 0.3s var(--ease), padding 0.3s var(--ease); }
  .site-header--overlay.is-scrolled .mobile-nav { max-height: 48px; padding-bottom: 8px; opacity: 1; overflow-x: auto; }
}
@media (max-width: 640px) {
  .site-header .wrap { min-height: 52px; gap: 8px; }
  .online-pill { min-height: 32px; padding: 0 10px; }
  .header-cta { min-height: 36px; }
}

/* Buttons */
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 999px; font: 700 15px var(--font); border: 1px solid var(--gold); background: var(--gold); color: #1a1206; text-decoration: none; transition: background 0.2s var(--ease), transform 0.2s var(--ease); }
.btn:hover { background: var(--gold-hi); border-color: var(--gold-hi); color: #1a1206; }
.btn.secondary { background: transparent; border-color: var(--line-2); color: var(--text); }
.btn.secondary:hover { border-color: var(--gold); color: var(--gold); background: transparent; }
.btn--tg { background: #2aabee; border-color: #2aabee; color: #fff; }
.btn--tg:hover { background: #4dbaf2; border-color: #4dbaf2; color: #fff; }
.btn--lottie { gap: 10px; }
.lottie-icon { width: 24px; height: 24px; flex-shrink: 0; pointer-events: none; }
.lottie-icon svg { display: block; }
.cta-for-narrow, a.btn.cta-for-narrow { display: none; }

/* Breadcrumb row under the header. No city crop: that slice read as a broken second header. */
.page-band { position: relative; background: transparent; border-bottom: 0; }
.page-band::before, .page-band::after { content: none; }
.page-band .wrap { position: relative; z-index: 1; padding-top: 14px; padding-bottom: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--faint); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--gold); }

/* Prose — content pages, learn, games, legal, FAQ, blog articles */
.prose { padding: clamp(24px, 4vw, 48px) clamp(16px, 3vw, 24px) 96px; max-width: 880px; }
.prose--long { max-width: 880px; }
.prose h1, .legal-title {
  font-family: var(--display); font-weight: 800; font-size: clamp(30px, 4.6vw, 56px);
  line-height: 1.04; letter-spacing: -0.02em; margin: 0 0 18px; color: var(--text); text-wrap: balance;
}
.prose h2 { font-family: var(--display); font-weight: 800; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.15; margin: 48px 0 16px; color: var(--text); text-wrap: balance; scroll-margin-top: 96px; }
.prose h3 { font-family: var(--display); font-weight: 600; font-size: 20px; line-height: 1.25; margin: 32px 0 12px; color: var(--text); }
.prose p, .prose li { color: var(--body); font-size: 18px; line-height: 1.72; text-wrap: pretty; }
.prose p { margin: 0 0 22px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 22px; display: grid; gap: 8px; }
.prose strong { color: var(--text); font-weight: 700; }
.prose a:not(.btn):not(.read-card):not(.header-cta) { color: var(--gold); text-decoration: underline; text-decoration-color: rgba(242, 178, 92, 0.45); }
.prose a:not(.btn):not(.read-card):not(.header-cta):hover { color: var(--gold-hi); text-decoration-color: var(--gold-hi); }
.prose blockquote { margin: 8px 0 22px; padding: 4px 0 4px 22px; border-left: 3px solid var(--blue); font-family: var(--display); font-weight: 600; font-size: 21px; line-height: 1.4; color: var(--text); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.read-lead { font-size: 21px !important; line-height: 1.6 !important; color: var(--text) !important; margin-bottom: 28px !important; }
.read-meta { display: inline-flex; margin: 0 0 20px; font: 600 12px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); }
.byline { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; margin: -8px 0 24px; font-size: 14px; color: var(--muted); }
.byline a { color: var(--text) !important; font-weight: 600; text-decoration: none !important; }
.page-hero-img { margin: 0 0 32px; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); }
.page-hero-img img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.author-portrait { margin: 0 0 28px; max-width: 280px; }
.author-portrait img { display: block; width: 100%; height: auto; border-radius: 22px; }
.read-toc { margin: 0 0 32px; padding: 20px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.read-toc h2 { margin: 0 0 10px; font: 600 11px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.read-toc ol { margin: 0; padding-left: 20px; gap: 4px; }
.read-toc li { font-size: 15px; }
.prose .read-toc a:not(.btn) { color: var(--muted); text-decoration: none; }
.prose .read-toc a:not(.btn):hover { color: var(--gold); }
.page-load-hint { padding: 16px 18px; border-radius: var(--radius-s); border: 1px solid var(--line-2); background: var(--surface); }
.page-cta { margin: 40px 0 0; }
.page-cta .btn:not(.secondary) { order: 2; }
.page-cta .btn.secondary { background: #2aabee; border-color: #2aabee; color: #fff; }
.page-cta .btn.secondary:hover { background: #4dbaf2; border-color: #4dbaf2; color: #fff; }

/* Cards & grids */
.read-card-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin: 24px 0 40px; }
.read-card { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 18px; border-radius: 18px; background: var(--surface-2); border: 1px solid #1a2148; color: var(--text) !important; text-decoration: none !important; transition: transform 0.25s var(--ease), border-color 0.25s var(--ease); }
.read-card:hover { transform: translateY(-3px); border-color: #3a4580; }
.read-card > span:not(.read-card__body) { font: 500 12px var(--mono); color: var(--faint); white-space: nowrap; }
.read-card-grid--preview { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.read-card--preview { flex-direction: column; align-items: stretch; padding: 10px 10px 18px; border-radius: var(--radius); }
.read-card--preview img { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; border-radius: var(--radius-s); background: #0d1330; }
.read-card__body { display: grid; gap: 10px; padding: 14px 10px 0; font-size: 16px; color: var(--text); }
.read-card__body strong { font-family: var(--display); font-weight: 600; font-size: 18px; line-height: 1.25; text-wrap: balance; }
.read-card__time { font: 500 11px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.read-card__cat { font: 600 11px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); padding: 16px 0 40px; }
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.card h2 { font: 600 18px var(--display); margin: 0 0 8px; color: var(--text); }
.card p { margin: 0; font-size: 15px; color: var(--muted); }
.card-lottie { width: 56px; height: 56px; margin: 0 0 12px; }
.gallery { padding: 8px 0 40px; }
.gallery h2 { font: 800 24px var(--display); color: var(--text); margin: 0 0 18px; }
.gallery-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.gallery figure { margin: 0; background: var(--surface-2); border: 1px solid #1a2148; border-radius: var(--radius); overflow: hidden; }
.gallery img { display: block; width: 100%; height: 220px; object-fit: cover; }
.gallery a { display: block; text-decoration: none; }
.gallery figcaption { padding: 12px 16px; font-size: 14px; color: var(--muted); }

/* Infographics */
.infographic { margin: 32px 0; padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.infographic figcaption { font: 600 18px var(--display); color: var(--text); margin-bottom: 18px; }
.info-steps, .info-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.info-steps { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.info-steps li, .info-bars li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; color: #c9c4d8; font-size: 15px; line-height: 1.5; }
.info-steps li strong, .info-bars li strong { color: var(--text); }
.info-num { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--gold); color: #1a1206; font: 800 15px var(--display); }
.info-bar { height: 8px; border-radius: 999px; background: var(--line); margin-top: 6px; overflow: hidden; }
.info-bar span { display: block; height: 100%; background: var(--gold); border-radius: 999px; }
.info-bar .w-sm { width: 12%; } .info-bar .w-md { width: 42%; } .info-bar .w-lg { width: 100%; }
.info-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.info-stats li { padding: 16px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.info-stats strong { display: block; color: var(--gold); font: 800 22px var(--display); margin-bottom: 4px; }

/* FAQ */
.article-faq { margin-top: 48px; }
.article-faq details, .prose details { border-top: 1px solid var(--line); padding: 4px 0; }
.article-faq summary, .prose summary { cursor: pointer; padding: 16px 0; color: var(--text); font-weight: 700; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.article-faq summary::-webkit-details-marker, .prose summary::-webkit-details-marker { display: none; }
.article-faq summary::after, .prose summary::after { content: "+"; font: 400 22px var(--display); color: var(--gold); line-height: 1; transition: transform 0.2s var(--ease); }
details[open] > summary::after { transform: rotate(45deg); }
.prose details > :not(summary) { color: var(--muted); font-size: 16px; }

/* Tables, glossary */
.compare-table, .prose table { width: 100%; border-collapse: collapse; margin: 16px 0 28px; font-size: 15px; display: block; overflow-x: auto; }
.compare-table th, .compare-table td, .prose th, .prose td { border-bottom: 1px solid #1a2148; padding: 12px 14px; color: #c9c4d8; text-align: left; vertical-align: top; }
.compare-table th, .prose th { color: var(--text); font-weight: 700; border-bottom-color: var(--line-2); background: transparent; }
dl.glossary dt { color: var(--text); font: 600 17px var(--display); margin-top: 22px; }
dl.glossary dd { margin: 6px 0 0; color: var(--muted); font-size: 16px; }

/* Card widgets */
.pcards { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pcard { width: 2.4rem; height: 3.3rem; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; flex: 0 0 auto; background: #fbf7ee; color: #1c1915; border-radius: 7px; line-height: 1; box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(0, 0, 0, 0.06); }
.pcard b { font: 800 0.8rem var(--display); }
.pcard i { font-style: normal; font-size: 1rem; }
.pcard--h, .pcard--d { color: #d23a3a; }
.pcard--s, .pcard--c { color: #1c1915; }
.pcard--off { opacity: 0.35; }
.deal, .compare { display: grid; gap: 14px; margin: 16px 0 24px; }
.compare { grid-template-columns: 1fr; }
@media (min-width: 721px) { .compare { grid-template-columns: 1fr 1fr; } }
.deal__label, .compare__col > strong { display: block; margin-bottom: 8px; color: var(--text); font: 600 11px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; }
.compare__col { padding: 18px; border-radius: var(--radius-s); background: var(--surface); border: 1px solid var(--line); }
.compare__col p { margin: 10px 0 0; font-size: 15px; }
.hand-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 0; border-top: 1px solid #1a2148; }
.hand-line strong { min-width: 7.5rem; color: var(--text); font-size: 14px; }
.street-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.street-row span { color: var(--faint); font: 500 12px var(--mono); }
.seat-ring { position: relative; height: 380px; max-width: 580px; margin: 24px auto; }
.seat-ring__felt { position: absolute; inset: 23% 18%; border-radius: 50%; background: radial-gradient(ellipse at 50% 40%, #2a7a68, var(--felt) 70%); box-shadow: 0 0 0 10px #4a2f1c, 0 0 0 12px #6b4428, 0 30px 60px rgba(0, 0, 0, 0.5); }
.seat-ring__list { list-style: none; margin: 0; padding: 0; }
.seat { position: absolute; width: 6.6rem; margin: 0; text-align: center; background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; padding: 8px 6px; }
.seat b { display: block; color: var(--text); font: 700 13px var(--display); }
.seat span { color: var(--muted); font-size: 11px; }
.seat--utg { left: 50%; top: 0; transform: translateX(-50%); }
.seat--hj { right: 0; top: 18%; } .seat--co { right: 0; bottom: 18%; }
.seat--btn { left: 50%; bottom: 0; transform: translateX(-50%); border-color: var(--gold); }
.seat--sb { left: 0; bottom: 18%; } .seat--bb { left: 0; top: 18%; }
.seat--early { border-color: #3d465c; } .seat--late { border-color: var(--blue); }
.seat--btn.seat--late { border-color: var(--gold); } .seat--blind { border-color: #3d8b6f; }
@media (max-width: 640px) {
  .seat-ring { height: auto; } .seat-ring__felt { display: none; }
  .seat-ring__list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .seat { position: static; width: auto; transform: none; }
}
.about-map { margin: 16px 0 28px; }
.about-map iframe { display: block; width: 100%; height: 340px; border: 0; border-radius: var(--radius); filter: invert(0.9) hue-rotate(180deg) saturate(0.6); }
.about-map figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); }

/* Footer */
.site-footer { position: relative; margin-top: 0; background: #070a17; border-top: 1px solid #1c2342; padding: 56px 0 40px; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: grid; gap: 28px; }
.footer-top { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.footer-logo img { display: block; width: 140px; height: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: #c9c4d8; text-decoration: none; font-weight: 500; }
.footer-links a:hover { color: var(--gold); }
.site-footer .legal-block { font-size: 13px; line-height: 1.6; color: var(--faint); max-width: 820px; }
.site-footer .legal-block p { margin: 0 0 8px; }
.site-footer .legal-block a { color: var(--muted); }
.site-footer > .wrap > p { margin: 0; padding-top: 20px; border-top: 1px solid #1c2342; font-size: 13px; color: var(--faint); }

/* Lucky chip easter egg (footer, all pages) */
.chip-egg { display: flex; align-items: center; gap: 14px; }
.chip-egg__btn { width: 64px; height: 64px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; perspective: 600px; }
.chip-egg__face { width: 100%; height: 100%; border-radius: 50%; background: repeating-conic-gradient(var(--gold) 0 22.5deg, #0a0e1f 22.5deg 45deg); box-shadow: inset 0 0 0 6px var(--gold), 0 10px 24px rgba(0, 0, 0, 0.5); display: flex; align-items: center; justify-content: center; transition: transform 0.9s var(--ease); }
.chip-egg__face span { width: 62%; height: 62%; border-radius: 50%; background: #0a0e1f; border: 2px solid var(--gold); display: flex; align-items: center; justify-content: center; font: 800 13px var(--display); color: var(--gold); }
.chip-egg__hint { font-size: 13px; color: var(--muted); min-height: 20px; }
.chip-egg__t { font: 600 11px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.chip-rain { position: fixed; inset: 0; z-index: 90; pointer-events: none; overflow: hidden; }
.chip-rain i { position: absolute; top: -60px; border-radius: 50%; box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.35); transition: transform var(--d, 2s) cubic-bezier(0.4, 0, 0.8, 1); }
.chip-win { position: fixed; left: 50%; top: 50%; z-index: 95; transform: translate(-50%, -50%); padding: 28px 32px; border-radius: 24px; background: var(--surface); border: 1px solid var(--gold); text-align: center; display: grid; gap: 8px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); }
.chip-win b { font: 800 22px var(--display); color: var(--gold); }
.chip-win code { font: 600 15px var(--mono); color: var(--text); }

/* Sticky mobile Telegram bar */
.mobile-bar { display: none; }
@media (max-width: 720px) {
  .mobile-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(rgba(10, 14, 31, 0), rgba(10, 14, 31, 0.94) 40%); transform: translateY(120%); transition: transform 0.35s var(--ease); }
  .mobile-bar.is-on { transform: none; }
  .mobile-bar .btn { flex: 1; }
  body:has(.mobile-bar) .site-footer { padding-bottom: 96px; }
}

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

/* Blog index */
.blog-band { position: relative; min-height: clamp(380px, 56vh, 600px); display: flex; align-items: flex-end; overflow: hidden; background: var(--bg); }
.blog-band picture, .blog-band picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.blog-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,14,31,.35) 0%, rgba(10,14,31,.1) 35%, rgba(10,14,31,.8) 74%, var(--bg) 100%); }
.blog-band .wrap { position: relative; z-index: 1; width: 100%; padding-bottom: 32px; display: grid; gap: 16px; }
.blog-band .eyebrow { font: 600 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
.blog-band h1, .blog-band .blog-band__h { margin: 0; max-width: 16em; font: 800 clamp(32px, 5vw, 64px)/1.02 var(--display); letter-spacing: -.02em; text-wrap: balance; }
.blog-band p { margin: 0; max-width: 40em; font-size: 17px; color: #e4e0ee; text-shadow: 0 1px 12px rgba(10,14,31,.8); }
body[data-content-page="blogIndex"] main.prose { max-width: 1280px; padding-top: 24px; }
body[data-content-page="blogIndex"] #page-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
body[data-content-page="blogIndex"] #page-body > .read-lead { max-width: 760px; font-size: 17px !important; color: var(--muted) !important; }
.blog-tools { display: grid; gap: 16px; margin: 0 0 28px; }
.blog-search { display: flex; align-items: center; gap: 10px; min-height: 52px; max-width: 520px; padding: 0 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); color: var(--faint); }
.blog-search input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--text); font: 400 16px var(--font); }
.blog-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.blog-chips button { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: #c9c4d8; font: 600 14px var(--font); cursor: pointer; }
.blog-chips button small { font: 500 11px var(--mono); opacity: .6; }
.blog-chips button[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }
.read-card__meta { display: flex; justify-content: space-between; gap: 10px; }
.read-card--preview[hidden] { display: none; }
@media (min-width: 900px) {
  .read-card--preview.is-featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 0; padding: 0; overflow: hidden; background: var(--surface); border-color: var(--line); }
  .read-card--preview.is-featured img { border-radius: 0; height: 100%; aspect-ratio: 16 / 10; }
  .read-card--preview.is-featured .read-card__body { padding: clamp(24px, 4vw, 48px); gap: 16px; }
  .read-card--preview.is-featured .read-card__body strong { font-size: clamp(24px, 3vw, 38px); font-weight: 800; line-height: 1.08; }
}
.blog-more { display: flex; margin: 8px auto 0; }
.blog-more[hidden], #blog-empty[hidden] { display: none; }

/* Blog CTA band — rounded card, as in the mockup */
body[data-content-page="blogIndex"] .page-cta, body[data-blog="1"] .page-cta { display: none; }
.cta-band { margin: 8px 0 clamp(40px, 6vw, 72px); }
.cta-band__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 28px clamp(20px, 4vw, 40px); border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.cta-band__txt { display: grid; gap: 6px; max-width: 560px; }
.cta-band h2 { margin: 0; font: 800 22px/1.2 var(--display); letter-spacing: -.01em; text-wrap: balance; }
.cta-band p { margin: 0; font-size: 15px; color: var(--muted); }
.cta-band .btn--tg { background: var(--gold); border-color: var(--gold); color: #1a1206; }
.cta-band .btn--tg:hover { background: var(--gold-hi); border-color: var(--gold-hi); color: #1a1206; }
@media (max-width: 640px) { .cta-band .cta-row { width: 100%; } .cta-band .btn { flex: 1 1 100%; } }
/* Author card */
.author-card { margin: 8px 0 0; }
.author-card .wrap { max-width: 760px; }
.author-card__in { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 18px; align-items: start; padding: 24px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); scroll-margin-top: 90px; }
.author-card__ava { width: 64px; height: 64px; border-radius: 50%; background: #2a2046; border: 1px solid #3a2d5a; display: flex; align-items: center; justify-content: center; font: 800 20px var(--display); color: var(--gold); }
.author-card__txt { display: grid; gap: 8px; }
.author-card__label { font: 600 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.author-card__name { font: 600 18px var(--display); color: var(--text); text-decoration: none; }
.author-card__name:hover { color: var(--gold); }
.author-card p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.author-card__mail { font-size: 14px; color: var(--blue); text-decoration: none; }
.read-next { padding: clamp(40px, 6vw, 72px) 0 clamp(32px, 5vw, 56px); border-top: 1px solid var(--line); }
.read-next .wrap { display: grid; gap: 24px; }
.read-next h2 { margin: 0; font: 800 clamp(24px, 3vw, 34px)/1.1 var(--display); letter-spacing: -.02em; }
.read-next .read-card-grid { margin: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .read-next .read-card-grid { grid-template-columns: minmax(0, 1fr); } }
.read-next__all { justify-self: start; color: var(--gold); font-weight: 600; text-decoration: none; }
.read-next__all:hover { color: var(--gold-hi); }
