/* =========================================================
   8XBET — style.css
   Hand-authored stylesheet for the 8XBET static homepage.
   Sections: 1 Tokens · 2 Reset · 3 Layout · 4 Buttons
             5 Header · 6 Mobile menu · 7 Banner & games
             8 Section titles · 9 Article
             9b Breadcrumb · 9c Download card · 9d TOC
             9e Steps · 9f Callouts · 9g Feature grid · 9h Tables
             9i Byline · 9j Author box · 9k Inline code
             10 Accordion · 11 News slider · 12 Footer
             13 Back to top · 14-16 Responsive
   ========================================================= */

/* ---------- 1. Design tokens ---------- */
:root{
  --font-body: "Bai Jamjuree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --color-primary: #446084;
  --color-primary-dark: #3a5273;
  --color-success: #7a9c59;
  --color-success-dark: #6b894e;

  /* header CTA gradient */
  --cta-blue: #1056bc;
  --cta-cyan: #57ebfc;
  --cta-blue-hover: #0d4aa3;
  --cta-cyan-hover: #3fe4f9;
  --cta-frame: #0d7de7;
  --color-link: #334862;
  --color-link-hover: #111111;

  --color-text: #000000;
  --color-muted: rgba(102, 102, 102, .85);
  --color-nav-active: rgba(18, 18, 18, .85);

  --bg-body: #ffffff;
  --bg-nav: #f1f1f1;
  --bg-soft: #f3f5f7;
  --bg-bar: #5b5b5b;

  --border: #dddddd;
  --border-soft: #ececec;

  --container: 1080px;
  --gutter: 15px;

  --header-main-h: 90px;
  --header-nav-h: 55px;

  --radius: 4px;
  --radius-pill: 99px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .08);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, .10);

  --ease: cubic-bezier(.4, 0, .2, 1);
}

/* ---------- 2. Reset & base ---------- */
*,
*::before,
*::after{ box-sizing: border-box; }

html{
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-nav-h) + 10px);
}

body{
  margin: 0;
  background: var(--bg-body);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img{
  max-width: 100%;
  height: auto;
  display: block;
  border: 0;
}

a{
  color: var(--color-link);
  text-decoration: none;
  transition: color .2s var(--ease);
}
a:hover{ color: var(--color-link-hover); }

ul, ol{ margin: 0 0 1.3em; padding-left: 1.3em; }
p{ margin: 0 0 1.3em; }

h1, h2, h3, h4, h5, h6{
  margin: 0 0 .8rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-text);
}
h1{ font-size: 1.7rem; }
h2{ font-size: 1.6rem; }
h3{ font-size: 1.25rem; }
h4{ font-size: 1.05rem; }

button{
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

[hidden]{ display: none !important; }

::selection{
  background: var(--color-primary);
  color: #fff;
}

:focus-visible{
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.skip-link{
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: 10px 18px;
  background: #fff;
  box-shadow: var(--shadow-md);
}
.skip-link:focus{ left: 10px; top: 10px; }

/* ---------- 3. Layout ---------- */
.container{
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section{ padding: 30px 0; }
.section--news{ background: var(--bg-soft); }

/* ---------- 4. Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  font-size: .825rem;
  font-weight: 700;
  letter-spacing: .025em;
  color: #fff;
  white-space: nowrap;
  transition: background-color .2s var(--ease), transform .12s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover{
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.btn:active{ transform: translateY(0); }

/* Header / off-canvas CTA pair. Both share one gradient treatment.
   Uppercase is set here rather than on .btn so the brand word stays
   lowercase in the download card and inline CTA band. */
.btn--primary,
.btn--success{
  min-width: 170px;
  min-height: 33px;
  background-color: transparent;
  background-image: linear-gradient(180deg, var(--cta-blue) 50%, var(--cta-cyan));
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .03em;
  border: 0;
}
.btn--primary:hover,
.btn--success:hover{
  background-image: linear-gradient(180deg, var(--cta-blue-hover) 50%, var(--cta-cyan-hover));
  color: #fff;
}

/* ---------- 5. Header ---------- */
.site-header{
  position: relative;
  z-index: 30;
  background: #fff;
}

.header-main__inner{
  display: flex;
  align-items: center;
  min-height: var(--header-main-h);
}

.header-main__left,
.header-main__right{
  flex: 1 1 0;
  display: flex;
  align-items: center;
}
.header-main__right{
  justify-content: flex-end;
  gap: 10px;
}

.logo{
  flex: 0 0 auto;
  display: block;
  line-height: 0;
}
.logo img{
  width: 200px;
  height: auto;
}

/* hamburger */
.nav-toggle{
  display: none;
  width: 40px;
  height: 40px;
  padding: 9px 8px;
  flex-direction: column;
  justify-content: space-between;
}
.nav-toggle span{
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}

/* sticky nav bar */
.header-bottom{
  background: var(--bg-nav);
  transition: box-shadow .25s var(--ease);
}
.header-bottom.is-stuck{
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .10);
}

.main-nav ul{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0 26px;
  margin: 0;
  padding: 0;
  list-style: none;
  min-height: var(--header-nav-h);
}
.main-nav a{
  display: block;
  padding: 10px 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-muted);
  position: relative;
}
.main-nav a::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 2px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .25s var(--ease);
}
.main-nav a:hover{ color: var(--color-nav-active); }
.main-nav a:hover::after,
.main-nav .is-active a::after{ transform: scaleX(1); }
.main-nav .is-active a{ color: var(--color-nav-active); }

/* ---------- 6. Mobile menu ---------- */
.mobile-menu{
  position: fixed;
  inset: 0;
  z-index: 90;
}
.mobile-menu__overlay{
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.mobile-menu.is-open .mobile-menu__overlay{ opacity: 1; }

.mobile-menu__panel{
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 1;
  width: min(300px, 84vw);
  display: flex;
  flex-direction: column;
  background: #fff;
  padding: 18px;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform .3s var(--ease);
}
.mobile-menu.is-open .mobile-menu__panel{ transform: translateX(0); }

.mobile-menu__head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.mobile-menu__head img{ width: 150px; }
.mobile-menu__close{
  font-size: 30px;
  line-height: 1;
  width: 34px;
  height: 34px;
  color: var(--color-muted);
}

.mobile-menu__list{
  list-style: none;
  margin: 0;
  padding: 6px 0;
}
.mobile-menu__list a{
  display: block;
  padding: 12px 2px;
  font-weight: 700;
  font-size: .95rem;
  color: var(--color-muted);
  border-bottom: 1px solid var(--border-soft);
}
.mobile-menu__list a:hover{ color: var(--color-primary); }

.mobile-menu__cta{
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 18px;
}

/* ---------- 7. Banner & game categories ---------- */
.banner img{
  width: 100%;
  height: auto;
}

.games{ padding: 20px 0 10px; }
.games__grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.games__grid a{
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
}
.games__grid img{
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform .35s var(--ease);
}
.games__grid a:hover img{ transform: scale(1.05); }

/* ---------- 8. Section titles ---------- */
.section-title{
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 24px;
  text-align: center;
}
.section-title b{
  flex: 1 1 auto;
  height: 0;
  border-top: 2px solid var(--color-text);
  opacity: .85;
}
.section-title span{
  flex: 0 1 auto;
  font-weight: 700;
  line-height: 1.3;
}
h1.section-title span{ font-size: 1.7rem; }
h2.section-title span{ font-size: 1.6rem; }
h3.section-title span{ font-size: 1.25rem; }

/* ---------- 9. Article ---------- */
.entry h2{
  margin-top: 1.6rem;
  font-size: 1.6rem;
}
.entry h3{
  margin-top: 1.3rem;
  font-size: 1.25rem;
}
.entry p{ margin-bottom: 1.3rem; }
.entry ul{ margin-bottom: 1.3rem; }
.entry li{ margin-bottom: .4rem; }
/* Body links get the underlined link treatment - but never buttons, whose own
   colour/background must win. Without :not(.btn) this rule outranks .btn--*
   and renders the outline button dark-on-dark. */
.entry a:not(.btn){ color: var(--color-link); text-decoration: underline; text-underline-offset: 2px; }
.entry a:not(.btn):hover{ color: var(--color-link-hover); }

.entry-figure{
  margin: 0 0 1.6rem;
  text-align: center;
}
.entry-figure img{
  margin-inline: auto;
  border-radius: var(--radius);
}
.entry-figure figcaption{
  margin-top: .6rem;
  font-size: .9rem;
  font-style: italic;
  color: var(--color-text);
}

/* ---------- 9b. Breadcrumb ---------- */
.breadcrumb{
  margin: 0 0 14px;
  font-size: .85rem;
  color: var(--color-muted);
}
.breadcrumb ol{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.breadcrumb li + li::before{
  content: "/";
  margin-right: 6px;
  opacity: .5;
}
.breadcrumb a{ color: var(--color-link); }
.breadcrumb a:hover{ text-decoration: underline; }

/* ---------- 9c. Download card ---------- */
.download{ padding: 26px 0 6px; }

.download-card{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 26px;
  align-items: center;
  padding: 26px 30px;
  border-radius: 10px;
  background: linear-gradient(135deg, #4b6a92 0%, #35496a 100%);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.download-card__eyebrow{
  margin: 0 0 6px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .72);
}
.download-card__title{
  margin: 0 0 18px;
  font-size: 1.6rem;
  color: #fff;
}

.download-card__meta{
  display: flex;
  flex-wrap: wrap;
  gap: 12px 34px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.download-card__meta li{
  display: flex;
  flex-direction: column;
}
.download-card__meta strong{
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.2;
}
.download-card__meta span{
  font-size: .78rem;
  color: rgba(255, 255, 255, .7);
}

.download-card__actions{
  display: grid;
  gap: 10px;
  min-width: 252px;
}

.btn--download{
  justify-content: flex-start;
  gap: 12px;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 8px;
  background: #fff;
  color: var(--color-primary);
  font-size: .95rem;
  text-transform: none;
  letter-spacing: 0;
}
.btn--download:hover{
  background: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .22);
}
.btn--download svg{
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  fill: currentColor;
}
.btn--download span{
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  font-weight: 700;
}
.btn--download small{
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  opacity: .62;
}
.btn--android,
.btn--android:hover{ color: #2f7d32; }
.btn--ios,
.btn--ios:hover{ color: #1d1d1f; }
.btn--pc,
.btn--pc:hover{ color: var(--color-primary); }

/* ---------- 9d. Table of contents ---------- */
.toc{
  margin: 0 0 1.8rem;
  padding: 20px 24px;
  background: var(--bg-soft);
  border-left: 3px solid var(--color-primary);
  border-radius: 0 6px 6px 0;
}
.toc__title{
  margin: 0 0 .7rem;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.toc ol{
  margin: 0;
  padding-left: 1.2em;
  columns: 2;
  column-gap: 30px;
}
.toc li{
  margin-bottom: .35rem;
  break-inside: avoid;
}
.toc a{ color: var(--color-link); }
.toc a:hover{
  color: var(--color-primary);
  text-decoration: underline;
}

/* ---------- 9e. Numbered steps ---------- */
.steps{
  counter-reset: step;
  list-style: none;
  margin: 0 0 1.6rem;
  padding: 0;
}
.steps > li{
  position: relative;
  padding: 0 0 20px 52px;
}
.steps > li::before{
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: .95rem;
  font-weight: 700;
}
.steps > li::after{
  content: "";
  position: absolute;
  left: 17px;
  top: 40px;
  bottom: 4px;
  width: 2px;
  background: var(--border);
}
.steps > li:last-child{ padding-bottom: 0; }
.steps > li:last-child::after{ display: none; }
.steps h3{
  margin: 5px 0 .4rem;
  font-size: 1.1rem;
}
.steps p{ margin: 0; }
.steps--compact > li{ padding-bottom: 14px; }

/* ---------- 9f. Callouts ---------- */
.callout{
  margin: 0 0 1.6rem;
  padding: 14px 18px;
  border-left: 4px solid var(--color-primary);
  border-radius: 0 6px 6px 0;
  background: var(--bg-soft);
}
.callout p{ margin: 0; }
.callout--info{
  border-left-color: var(--color-success);
  background: #f2f6ed;
}
.callout--warn{
  border-left-color: #d08a2c;
  background: #fdf6e9;
}

/* ---------- 9g. Feature grid ---------- */
.feature-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  list-style: none;
  margin: 0 0 1.6rem;
  padding: 0;
}
.feature-grid li{
  padding: 20px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: #fff;
  transition: box-shadow .25s var(--ease), transform .25s var(--ease);
}
.feature-grid li:hover{
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.feature-grid h3{
  margin: 0 0 .5rem;
  font-size: 1.05rem;
  color: var(--color-primary);
}
.feature-grid p{
  margin: 0;
  font-size: .94rem;
}

/* ---------- 9h. Data tables ---------- */
.table-wrap{
  margin: 0 0 1.6rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.data-table{
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  background: #fff;
  font-size: .95rem;
}
.data-table caption{
  caption-side: top;
  padding: 0 0 .6rem;
  text-align: left;
  font-size: .88rem;
  font-style: italic;
  color: var(--color-muted);
}
.data-table th,
.data-table td{
  padding: 11px 14px;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.data-table thead th{
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  font-weight: 700;
}
.data-table tbody th{
  width: 34%;
  background: var(--bg-soft);
  font-weight: 600;
}
.data-table tbody tr:nth-child(even) td{ background: #fafbfc; }

/* ---------- 9i. Article byline & dates ---------- */
.article-meta{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin: 0 0 1.7rem;
  padding: 16px 20px;
  border: 1px solid var(--border-soft);
  border-left: 3px solid var(--color-primary);
  border-radius: 0 6px 6px 0;
  background: #fff;
}

.article-meta__author{
  display: flex;
  align-items: center;
  gap: 12px;
}
.article-meta__avatar{
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.article-meta__by{
  margin: 0;
  font-size: .95rem;
}
.article-meta__by a{ color: var(--color-link); }
.article-meta__by a:hover{ text-decoration: underline; }
.article-meta__role{
  margin: 2px 0 0;
  font-size: .82rem;
  color: var(--color-muted);
}

.article-meta__dates{
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 0;
}
.article-meta__dates > div{
  display: flex;
  flex-direction: column;
}
.article-meta__dates dt{
  font-size: .72rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.article-meta__dates dd{
  margin: 0;
  font-size: .92rem;
  font-weight: 600;
}

/* ---------- 9j. Editorial / author box ---------- */
.author-box{
  margin: 2.2rem 0 0;
  padding: 24px 26px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: var(--bg-soft);
}
.author-box__head{
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.author-box__avatar{
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
}
.author-box__head h2{
  margin: 0;
  font-size: 1.25rem;
}
.author-box__role{
  margin: 3px 0 0;
  font-size: .85rem;
  color: var(--color-muted);
}
.author-box h3{
  margin: 1.3rem 0 .6rem;
  font-size: 1.05rem;
}
.author-box p:last-child{ margin-bottom: 0; }
.author-box__contact{
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
  font-size: .93rem;
}

/* ---------- 9k. Inline code (verification commands) ---------- */
.entry code{
  padding: 2px 6px;
  border-radius: 4px;
  background: #eaeef2;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .9em;
}

/* ---------- 9l. Inline CTA band ---------- */
.cta-band{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 26px;
  margin: 2rem 0;
  padding: 22px 26px;
  border-radius: 10px;
  background: linear-gradient(135deg, #4b6a92 0%, #35496a 100%);
  color: #fff;
}
.cta-band__text{ flex: 1 1 300px; }
.cta-band__text h2{
  margin: 0 0 6px;
  font-size: 1.2rem;
  color: #fff;
}
.cta-band__text p{
  margin: 0;
  font-size: .94rem;
  color: rgba(255, 255, 255, .8);
}
.cta-band__actions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn--light{
  background: #fff;
  color: var(--color-primary);
}
.btn--light:hover{
  background: #fff;
  color: var(--color-primary-dark);
}
.btn--outline{
  background: transparent;
  border: 2px solid rgba(255, 255, 255, .65);
  color: #fff;
}
.btn--outline:hover{
  background: rgba(255, 255, 255, .12);
  border-color: #fff;
  color: #fff;
}

/* ---------- 10. Accordion (FAQ) ---------- */
.accordion{ border-bottom: 1px solid var(--border); }

.accordion__item{ border-top: 1px solid var(--border); }

.accordion__title{
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 4px;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--color-text);
  transition: color .2s var(--ease);
}
.accordion__title:hover{ color: var(--color-primary); }

.accordion__icon{
  position: relative;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}
.accordion__icon::before,
.accordion__icon::after{
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.accordion__icon::before{ width: 14px; height: 2px; }
.accordion__icon::after{ width: 2px; height: 14px; }

.accordion__title[aria-expanded="true"]{
  color: var(--color-primary);
  font-weight: 600;
}
.accordion__title[aria-expanded="true"] .accordion__icon::after{
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.accordion__panel{
  padding: 0 4px 14px 34px;
  animation: acc-in .28s var(--ease);
}
.accordion__panel p{ margin: 0; }

@keyframes acc-in{
  from{ opacity: 0; transform: translateY(-6px); }
  to  { opacity: 1; transform: translateY(0); }
}

/* ---------- 11. News slider ---------- */
.slider{ position: relative; }

.slider__viewport{
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.slider__viewport::-webkit-scrollbar{ display: none; }

.slider__track{
  --slides: 4;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--slides) - 1) * 30px) / var(--slides));
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.post-card{
  scroll-snap-align: start;
  text-align: center;
}
.post-card__thumb{
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: #e9edf1;
}
.post-card__thumb img{
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform .35s var(--ease);
}
.post-card__thumb:hover img{ transform: scale(1.06); }

.post-card__title{
  margin: .8rem 0 .4rem;
  font-size: 1.035rem;
  font-weight: 700;
  line-height: 1.35;
}
.post-card__title a{ color: var(--color-text); }
.post-card__title a:hover{ color: var(--color-primary); }

.post-card__excerpt{
  margin: 0;
  font-size: .9rem;
  color: var(--color-text);
}

.slider__nav{
  position: absolute;
  top: 27%;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--shadow-md);
  color: var(--color-text);
  opacity: 0;
  transition: opacity .25s var(--ease), background-color .2s var(--ease);
}
.slider:hover .slider__nav,
.slider__nav:focus-visible{ opacity: 1; }
.slider__nav:hover{ background: #fff; color: var(--color-primary); }
.slider__nav[disabled]{ opacity: 0 !important; pointer-events: none; }
.slider__nav--prev{ left: -14px; }
.slider__nav--next{ right: -14px; }
.slider__nav svg{
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.slider__dots{
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.slider__dots button{
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .2);
  transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.slider__dots button:hover{ background: rgba(0, 0, 0, .38); }
.slider__dots button.is-active{
  background: var(--color-primary);
  transform: scale(1.25);
}

/* ---------- 12. Footer ---------- */
.site-footer{ background: #fff; }

.footer-top{ padding: 40px 0 30px; }

.footer-intro{
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 30px;
  align-items: center;
  padding-bottom: 30px;
}
.footer-intro__logo img{
  width: 100%;
  max-width: 252px;
}
.footer-intro__text p{ margin-bottom: 1rem; }
.footer-intro__text p:last-child{ margin-bottom: 0; }
.footer-intro__keywords{
  font-size: .95rem;
  color: var(--color-muted);
}

.footer-cols{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.footer-col__title{
  margin-bottom: 1rem;
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-text);
}

.footer-col__list{
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-col__list li{ margin-bottom: .5rem; }
.footer-col__list a{ color: var(--color-link); }
.footer-col__list a:hover{ color: var(--color-link-hover); text-decoration: underline; }
.footer-col__list--info li{ line-height: 1.55; }

.socials{
  display: flex;
  gap: 14px;
  align-items: center;
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
}
.socials a{
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  color: #999;
  transition: color .2s var(--ease), transform .2s var(--ease);
}
.socials a:hover{
  color: var(--color-primary);
  transform: translateY(-2px);
}
.socials svg{
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.footer-bar{
  background: var(--bg-bar);
  color: rgba(255, 255, 255, .5);
  padding: 10px 0 15px;
  text-align: center;
  font-size: .9rem;
}
.footer-bar p{ margin: 0; }
.footer-bar__disclosure{
  max-width: 760px;
  margin: 0 auto 10px !important;
  font-size: .8rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, .42);
}
.footer-bar__disclosure a{
  color: rgba(255, 255, 255, .62);
  text-decoration: underline;
}
.footer-bar__disclosure a:hover{ color: #fff; }
.footer-bar strong{ font-weight: 700; }

/* ---------- 13. Back to top ---------- */
.back-to-top{
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, .18);
  background: rgba(255, 255, 255, .9);
  color: var(--color-text);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.back-to-top.is-visible{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover{
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}
.back-to-top svg{
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- 14. Responsive ---------- */
@media (max-width: 1120px){
  .slider__nav--prev{ left: 4px; }
  .slider__nav--next{ right: 4px; }
  .slider__nav{ opacity: 1; }
}

@media (max-width: 849px){
  :root{ --header-main-h: 70px; }

  .header-bottom{ display: none; }

  /* Hamburger left, logo centred — the CTAs move into the off-canvas menu. */
  .header-main__inner{
    position: relative;
    justify-content: center;
  }
  .nav-toggle{
    display: flex;
    position: absolute;
    left: var(--gutter);
    top: 50%;
    transform: translateY(-50%);
  }
  .header-main__left,
  .header-main__right{ display: none; }
  .logo{ flex: 0 0 auto; }
  .logo img{ width: 170px; }

  .games{ padding: 16px 0 6px; }
  .games__grid{
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .slider__track{ --slides: 2; gap: 20px; }

  .footer-intro{
    grid-template-columns: 1fr;
    text-align: center;
    gap: 20px;
  }
  .footer-intro__logo img{ margin-inline: auto; }
  .footer-intro__text{ text-align: left; }

  .footer-cols{ grid-template-columns: 1fr; gap: 26px; }
}

@media (max-width: 549px){
  h1.section-title span{ font-size: 1.4rem; }
  h2.section-title span{ font-size: 1.3rem; }
  h3.section-title span{ font-size: 1.15rem; }
  .section-title{ gap: 10px; }

  .entry h2{ font-size: 1.3rem; }
  .entry h3{ font-size: 1.12rem; }

  .logo img{ width: 150px; }

  .games__grid{ gap: 12px; }

  .slider__track{ --slides: 1; gap: 16px; }

  .accordion__title{ font-size: 1rem; }
  .accordion__panel{ padding-left: 30px; }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *,
  *::before,
  *::after{
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .slider__viewport{ scroll-behavior: auto; }
}

/* ---------- 15. Responsive — content components ---------- */
@media (max-width: 849px){
  .download-card{
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 22px 20px;
  }
  .download-card__actions{ min-width: 0; }
  .toc ol{ columns: 1; }
  .feature-grid{ grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 549px){
  .download{ padding: 18px 0 4px; }
  .download-card__title{ font-size: 1.35rem; }
  .download-card__meta{ gap: 10px 22px; }
  .download-card__meta strong{ font-size: 1.05rem; }

  .feature-grid{ grid-template-columns: 1fr; }

  .toc{ padding: 16px 18px; }

  .steps > li{ padding-left: 44px; }
  .steps > li::before{
    width: 30px;
    height: 30px;
    font-size: .88rem;
  }
  .steps > li::after{
    left: 15px;
    top: 36px;
  }
  .steps h3{ font-size: 1.02rem; }
}

/* ---------- 12b. Footer bar badges ---------- */
.footer-bar__badges{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 14px;
  margin-bottom: 8px;
}
.badge-18{
  display: inline-grid;
  place-items: center;
  padding: 1px 9px;
  border: 2px solid rgba(255, 255, 255, .55);
  border-radius: var(--radius-pill);
  font-size: .76rem;
  font-weight: 700;
  color: rgba(255, 255, 255, .88);
}
.footer-bar__badges a{
  font-size: .85rem;
  color: rgba(255, 255, 255, .6);
  text-decoration: underline;
}
.footer-bar__badges a:hover{ color: #fff; }

/* ---------- 16. Responsive — trust blocks ---------- */
@media (max-width: 849px){
  .article-meta{ gap: 14px; }
  .article-meta__dates{ gap: 10px 18px; }
}

@media (max-width: 549px){
  .article-meta{ padding: 14px 16px; }
  .article-meta__dates{
    width: 100%;
    gap: 8px 16px;
  }
  .article-meta__dates dd{ font-size: .86rem; }
  .author-box{ padding: 20px 18px; }
  .author-box__head{ gap: 12px; }
  .author-box__head h2{ font-size: 1.12rem; }
}

@media (max-width: 549px){
  .cta-band{
    padding: 20px 18px;
    gap: 16px;
  }
  .cta-band__text h2{ font-size: 1.08rem; }
  .cta-band__actions{ width: 100%; }
  .cta-band__actions .btn{ flex: 1 1 auto; }
}

/* ---------- 17. Cookie consent bar ---------- */
.consent{
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: 95;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  width: min(960px, calc(100% - 32px));
  padding: 16px 20px;
  border-radius: 10px;
  background: #2b3a52;
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .28);
  transform: translate(-50%, 130%);
  transition: transform .32s var(--ease);
}
.consent.is-visible{ transform: translate(-50%, 0); }

.consent__text{
  flex: 1 1 320px;
  margin: 0;
  font-size: .9rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, .82);
}
.consent__text a{
  color: #fff;
  text-decoration: underline;
}

.consent__actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.btn--ghost{
  background: transparent;
  border: 2px solid rgba(255, 255, 255, .5);
  color: #fff;
}
.btn--ghost:hover{
  background: rgba(255, 255, 255, .12);
  border-color: #fff;
  color: #fff;
}

@media (max-width: 549px){
  .consent{
    bottom: 10px;
    padding: 14px 16px;
  }
  .consent__actions{ width: 100%; }
  .consent__actions .btn{ flex: 1 1 auto; }
}

/* ---------- 18. Revolving frame around the CTA buttons ----------
   Two bordered boxes sit behind each button. Each is clipped to a single
   corner, and animating the clip-path walks that corner around the
   perimeter. The second box runs half a cycle behind, so the two brackets
   are always diagonally opposite. */
.cta-frame{
  position: relative;
  display: inline-flex;
}
.cta-frame::before,
.cta-frame::after{
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(100% + 20px);
  height: calc(100% + 10px);
  transform: translate(-50%, -50%);
  border: 3px solid var(--cta-frame);
  border-radius: 4px;
  pointer-events: none;
  animation: cta-frame-run 3s linear infinite;
}
.cta-frame::after{ animation-delay: -1.5s; }

@keyframes cta-frame-run{
  0%,
  100% { clip-path: inset(0 55% 55% 0); }   /* top-left     */
  25%  { clip-path: inset(0 0 55% 55%); }   /* top-right    */
  50%  { clip-path: inset(55% 0 0 55%); }   /* bottom-right */
  75%  { clip-path: inset(55% 55% 0 0); }   /* bottom-left  */
}

/* room so neighbouring frames never touch */
.header-main__right{ gap: 26px; }
.mobile-menu__cta{ gap: 20px; }

@media (prefers-reduced-motion: reduce){
  .cta-frame::before,
  .cta-frame::after{ display: none; }
}

/* ---------- 19. Sticky mobile CTA bar ----------
   Below 849px the two header buttons leave the header and become a fixed
   bar pinned to the bottom of the viewport, so they stay reachable while
   scrolling. Body padding and the two other fixed elements are offset so
   nothing sits underneath it. */
@media (max-width: 849px){
  .header-main__right{
    display: flex;
    position: fixed;
    inset: auto 0 0 0;
    z-index: 80;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin: 0;
    padding: 11px 14px calc(11px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 -2px 14px rgba(0, 0, 0, .14);
  }
  .header-main__right .cta-frame{
    flex: 1 1 0;
    max-width: 190px;
  }
  .header-main__right .btn{
    width: 100%;
    min-width: 0;
  }

  /* keep the bar from covering page content or the other fixed widgets */
  body{ padding-bottom: 66px; }
  .back-to-top{ bottom: 78px; }
  .consent{ bottom: 74px; }
}

@media (max-width: 380px){
  .header-main__right{ gap: 22px; }
  .header-main__right .btn{
    padding: 0 10px;
    font-size: .74rem;
  }
}

/* ---------- 20. Promo banner ----------
   z-index 70 sits above back-to-top (60) but below the sticky mobile CTA
   bar (80), the off-canvas menu (90) and the consent bar (95). */
.promo{
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 70;
  /* An explicit width is required: a fixed element with left:50% and no
     right shrink-to-fits into the space remaining to the right edge only,
     which caps the artwork at half the viewport. */
  width: 728px;
  max-width: calc(100% - 24px);
  background: transparent;
  line-height: 0;
  transform: translateX(-50%);
}
.promo__link{
  display: block;
  animation: promo-in .35s var(--ease);
}
.promo img{
  width: 728px;
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}
.promo__close{
  position: absolute;
  top: -10px;
  right: -10px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  color: #333;
  font-size: 19px;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .32);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.promo__close:hover{
  background: var(--color-primary);
  color: #fff;
}

.promo__reopen{
  position: fixed;
  left: 16px;
  bottom: 20px;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background-image: linear-gradient(180deg, var(--cta-blue) 50%, var(--cta-cyan));
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  transition: transform .2s var(--ease);
}
.promo__reopen:hover{ transform: translateY(-2px); }
.promo__reopen svg{
  width: 16px;
  height: 16px;
  fill: currentColor;
}

@keyframes promo-in{
  from{ opacity: 0; transform: translateY(22px); }
  to  { opacity: 1; transform: translateY(0); }
}

@media (max-width: 849px){
  .promo,
  .promo__reopen{ bottom: 72px; }   /* clear the sticky CTA bar */
}
@media (max-width: 549px){
  .promo__close{
    top: -8px;
    right: -6px;
  }
  .promo__reopen{
    left: 12px;
    padding: 7px 12px;
    font-size: .74rem;
  }
}
