/* ==========================================================================
   Diwa Wow - diwawow.asia
   1:1 clone of the ALL DIWA GAME (Appyn "rounded") reference chrome.
   Palette is this site's own: leaf green principal, blue download CTA.
   ========================================================================== */

:root {
  /* Principal accent. Replaces the reference's #cc1ca8 everywhere it appears. */
  --ac:        #3A8221;   /* fills carrying white text (4.78:1), 2px borders  */
  --ac-deep:   #2F6B1A;   /* hover, and accent text on white (6.48:1)         */
  --ac-bright: #7ED957;   /* accent on the #1d222d chrome (9.06:1)            */
  --ac-soft:   #EBF6E5;   /* tint                                             */

  --dl:        #1663C7;   /* DOWNLOAD APK (white on it 5.76:1)                */
  --dl-deep:   #11509F;
  --tg:        #006FA7;   /* TELEGRAM                                         */
  --star:      #F2B01E;

  --page:      #e6e9ef;
  --card:      #ffffff;
  --tint:      #f7f8fa;
  --chrome:    #1d222d;
  --chrome-dp: #13161d;
  --ink:       #4c4c4c;
  --meta:      #767676;
  --line:      #eaeaea;
  --shadow:    2px 2px 2px 0 #e3e3e3;

  --r-card:    20px;
  --r-pill:    50px;
  --r-icon:    25px;

  --measure:   1220px;
  --side:      300px;
  --gap:       20px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 13px;
  line-height: 25px;
}

img { max-width: 100%; height: auto; border: 0; }
figure { margin: 0; }
a { color: var(--ac-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 10px; font-weight: 600; color: var(--ink); line-height: 1.35; }
p { margin: 0 0 15px; }
ul { margin: 0 0 15px; padding-left: 20px; }

a, button, summary, input[type="submit"], .card-cta, .rlat-item, label[for] { cursor: pointer; }

/* Base size for every inline SVG from icons.php. Declared early so the
   component-specific rules further down (.cat-ic svg, .btn-dl svg, .faq-chev,
   .trust-item svg) still override it. Without this the bare `.ic` icons --
   the mobile nav toggle among them -- compute to 0x0 and vanish. */
.ic { width: 24px; height: 24px; flex: 0 0 auto; display: block; }

:focus-visible {
  outline: 3px solid var(--ac-deep);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ac); color: #fff; padding: 10px 18px; border-radius: 0 0 var(--r-card) 0;
}
.skip-link:focus { left: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- shared measure: header, content, footer, disclaimer ---------- */
.container {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 10px;
  display: flex;
  align-items: flex-start;
  gap: var(--gap);
}
.container.is-block { display: block; }

/* ---------- header ---------- */
.site-header {
  background: var(--chrome);
  border-bottom: 2px solid var(--ac);
  position: sticky; top: 0; z-index: 90;
}
.header-inner {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 10px;
  height: 60px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; }
.brand img { height: 42px; width: auto; object-fit: contain; display: block; }

.nav-toggle {
  display: none; background: none; border: 0; color: #fff; padding: 6px;
  border-radius: 8px;
}
.main-nav ul { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.main-nav a {
  display: block; padding: 8px 12px; color: #d7dbe3; font-size: 13px;
  border-radius: var(--r-pill); transition: color .2s ease, background-color .2s ease;
}
.main-nav a:hover { color: #fff; background: rgba(255,255,255,.08); text-decoration: none; }
.main-nav a.is-active { color: var(--ac-bright); }
.main-nav .nav-cta {
  background: var(--ac); color: #fff; padding: 8px 18px;
}
.main-nav .nav-cta:hover { background: var(--ac-deep); color: #fff; }
.main-nav .nav-cta.is-active { color: #fff; }

/* ---------- hero ---------- */
.hero {
  position: relative; background: #000; overflow: hidden;
  padding: 90px 0 40px; text-align: center;
}
.hero .imgbg { position: absolute; inset: 0; overflow: hidden; }
.hero .imgbg img {
  width: 120%; height: 100%; object-fit: cover;
  opacity: .3; position: absolute; left: -10%; top: 0;
}
.hero .scrim {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 38%, rgba(0,0,0,.55), rgba(0,0,0,.2) 55%),
    linear-gradient(180deg, rgba(0,0,0,.65), rgba(0,0,0,.25) 45%, rgba(0,0,0,.75));
}
.subcontainer {
  position: relative; z-index: 2;
  max-width: 730px; margin: 0 auto; padding: 0 10px;
}
.hero h1 {
  font-size: 40px; line-height: 46px; font-weight: 300; color: #fff; margin: 0 0 6px;
}
.hero h2 {
  font-size: 16px; line-height: 30px; font-weight: 300; color: #e3e6ec; margin: 0 0 22px;
}

/* search */
.search-box { max-width: 600px; margin: 0 auto; display: flex; gap: 8px; }
.search-box input[type="search"] {
  flex: 1 1 auto; height: 44px; border: 0; border-radius: var(--r-pill);
  background: #f2f2f2; color: #222; font-size: 16px; padding: 0 20px;
  font-family: inherit;
}
.search-box input[type="search"]::placeholder { color: #6c7078; }
.search-box button {
  width: 70px; height: 44px; border: 0; border-radius: var(--r-pill);
  background: var(--ac); color: #fff; display: inline-flex; align-items: center; justify-content: center;
  transition: background-color .2s ease;
}
.search-box button:hover { background: var(--ac-deep); }

/* category icon row */
.cat-row {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 18px;
  margin: 26px 0 0; padding: 0; list-style: none;
}
.cat-row a { display: flex; flex-direction: column; align-items: center; gap: 6px; color: #e3e6ec; }
.cat-row a:hover { text-decoration: none; }
.cat-ic {
  width: 40px; height: 40px; border-radius: 50%; opacity: .5;
  display: inline-flex; align-items: center; justify-content: center; color: #fff;
  transition: opacity .2s ease, transform .2s ease;
}
.cat-row a:hover .cat-ic { opacity: 1; transform: translateY(-2px); }
.cat-row span.cat-label { font-size: 11px; line-height: 14px; }
.cat-ic svg { width: 20px; height: 20px; }

/* search results panel */
.search-results { display: none; margin: 18px auto 0; max-width: 600px; text-align: left; }
.search-results.is-open { display: block; }
.search-results ul { list-style: none; margin: 0; padding: 0; background: #fff; border-radius: var(--r-card); overflow: hidden; }
.search-results li + li { border-top: 1px solid var(--line); }
.search-results a { display: flex; align-items: center; gap: 10px; padding: 8px 14px; color: var(--ink); }
.search-results a:hover { background: var(--ac-soft); text-decoration: none; }
.search-results img { width: 32px; height: 32px; border-radius: 8px; }
.search-empty { padding: 12px 14px; background: #fff; border-radius: var(--r-card); color: var(--meta); }

/* ---------- main layout ---------- */
#main-site { padding: 20px 0 30px; }
.main-col { flex: 1 1 auto; min-width: 0; }
.side-col {
  flex: 0 0 var(--side); width: var(--side);
  position: sticky; top: 80px; align-self: flex-start;
}

/* ---------- section head ---------- */
.title-section {
  font-size: 22px; font-weight: 400; color: var(--ink);
  margin: 3px 10px 10px; padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.title-section .more-link { font-size: 12px; color: var(--ac-deep); }

/* ---------- card grids ---------- */
.baps { display: flex; flex-wrap: wrap; margin: 0 0 20px; }
.baps > .card { padding: 10px; }
.baps[data-cols="6"] > .card { width: 16.6666%; }
.baps[data-cols="3"] > .card { width: 33.3333%; }

.card { display: block; }
.card .card-inner,
.card.bav1, .card.bav2 { height: 100%; }

.bav1 {
  background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow);
  border-bottom: 2px solid var(--ac);
  display: flex; flex-direction: column; overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.bav1:hover { transform: translateY(-3px); box-shadow: 2px 6px 10px 0 #d8dbe1; }
.card-thumb { position: relative; display: block; padding: 15px 15px 8px; }
.card-thumb img { display: block; width: 100%; height: auto; border-radius: 14px; }
.card-body { padding: 0 15px 10px; flex: 1 1 auto; }
.card-title { font-size: 14px; font-weight: 600; color: #444; margin: 0 0 2px; line-height: 20px; }
.card-title a { color: #444; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-title a:hover { color: var(--ac-deep); text-decoration: none; }
.card-meta {
  font-size: 12px; line-height: 18px; color: #a7a7a7; margin: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.card-rating { display: flex; align-items: center; gap: 6px; margin: 2px 0 0; }
.rate-num { font-size: 12px; color: #a7a7a7; }
.card-cta {
  display: block; text-align: center; background: var(--tint); color: var(--ac-deep);
  font-size: 12px; font-weight: 600; padding: 9px 6px; border-top: 1px solid var(--line);
  border-radius: 0 0 var(--r-card) var(--r-card);
  transition: background-color .2s ease, color .2s ease;
}
.card-cta:hover { background: var(--ac); color: #fff; text-decoration: none; }

.badge {
  position: absolute; top: 20px; left: 20px; z-index: 2;
  font-size: 10px; line-height: 1; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; color: #fff; padding: 5px 9px; border-radius: var(--r-pill);
}
.badge--hot { background: #b3340f; }
.badge--new { background: var(--ac); }

/* wide tile (top rated) */
.bav2 {
  background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow);
  border-bottom: 2px solid var(--ac);
  display: flex; flex-direction: column; overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.bav2:hover { transform: translateY(-3px); box-shadow: 2px 6px 10px 0 #d8dbe1; }
.bav2 .tile-thumb { padding: 15px 0 0 15px; float: left; }
.bav2 .tile-thumb img { width: 90px; height: 90px; border-radius: 16px; display: block; }
.bav2 .tile-body { padding: 15px; overflow: hidden; flex: 1 1 auto; }
.tile-desc {
  font-size: 12px; line-height: 19px; color: var(--meta); margin: 6px 0 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* stars */
.stars { display: inline-flex; gap: 1px; }
.star { width: 12px; height: 12px; display: inline-block; background: #d7dade;
  -webkit-mask: var(--star-mask) center/contain no-repeat; mask: var(--star-mask) center/contain no-repeat;
}
:root { --star-mask: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 2 3.1 6.3 6.9 1-5 4.9 1.2 6.8L12 17.8 5.8 21l1.2-6.8-5-4.9 6.9-1L12 2Z'/%3E%3C/svg%3E"); }
.star.is-full { background: var(--star); }
.star.is-half { background: linear-gradient(90deg, var(--star) 50%, #d7dade 50%); }

/* VIEW MORE */
.view-more { text-align: center; margin: 6px 0 24px; }
.view-more a {
  display: inline-block; width: 225px; line-height: 40px; border-radius: var(--r-pill);
  background: var(--ac); color: #fff; text-transform: uppercase; font-size: 12px;
  font-weight: 700; letter-spacing: .06em; transition: background-color .2s ease;
}
.view-more a:hover { background: var(--ac-deep); text-decoration: none; }

/* ---------- sidebar widgets ---------- */
.widget {
  background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow);
  border-top: 2px solid var(--ac); padding: 15px; margin: 0 0 20px;
}
.widget-title {
  font-size: 17px; text-transform: uppercase; color: #ababab; font-weight: 700;
  margin: 0 0 14px; padding-bottom: 10px; position: relative;
}
.widget-title::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 3px; background: var(--ac);
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li + li { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.w-app { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.w-app:hover { text-decoration: none; color: var(--ac-deep); }
.w-app img { width: 44px; height: 44px; border-radius: 12px; flex: 0 0 44px; }
.w-app-name { font-size: 13px; font-weight: 600; display: block; line-height: 18px; }
.w-app-meta { font-size: 12px; color: #a7a7a7; }
.w-cat { display: flex; align-items: center; justify-content: space-between; color: var(--ink); gap: 8px; }
.w-cat:hover { color: var(--ac-deep); text-decoration: none; }
.w-cat .count { font-size: 11px; color: #a7a7a7; background: var(--tint); border-radius: var(--r-pill); padding: 1px 9px; }

/* ---------- single APK page ---------- */
.box {
  background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow);
  padding: 20px 25px; margin: 0 0 20px;
}
.search-band {
  background: var(--chrome); border-radius: 0 0 var(--r-card) var(--r-card);
  padding: 18px 10px 20px; margin-bottom: 20px;
}
.search-band .search-box { max-width: 600px; }
/* The reference's single-page band uses a 20px-radius, 37px-tall field, not the
   hero's 50px pill. Font stays 16px below 767px so iOS does not zoom the page. */
.search-band .search-box input[type="search"] { height: 37px; border-radius: 20px; font-size: 13px; }
.search-band .search-box button { height: 37px; border-radius: 20px; }

.crumb { font-size: 12px; color: var(--meta); margin: 0 0 10px; }
.crumb a { color: var(--ac-deep); }
.crumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumb li::after { content: "/"; margin-left: 6px; color: #b9bdc4; }
.crumb li:last-child::after { content: ""; }

.app-head { display: flex; gap: 25px; align-items: flex-start; }
.app-head .s1 { order: -1; flex: 0 0 150px; width: 150px; }
.app-head .s2 { flex: 1 1 auto; min-width: 0; }
.app-icon { width: 150px; height: 150px; border-radius: var(--r-icon); display: block; }

.cat-label { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ac-deep); margin: 0 0 4px; }
h1.main-box-title { font-size: 38px; line-height: 48px; font-weight: 700; color: var(--ink); margin: 0 0 6px; }
.src-tag { font-size: 12px; color: #a7a7a7; margin: 0 0 12px; }
.app-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.app-badges .badge { position: static; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; }
.chip {
  font-size: 11px; background: var(--tint); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: 4px 12px; color: var(--meta);
}
.app-desc { margin: 0 0 16px; }

/* info table */
.da-s { display: flex; flex-wrap: wrap; border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--line); }
.da-s .cell { width: 33.3333%; padding: 10px 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.da-s .cell:nth-child(3n) { border-right: 0; }
.da-s .cell:last-child { flex: 1 1 auto; border-right: 0; }
.da-s .cell .k { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: #a7a7a7; }
.da-s .cell .v { display: block; font-size: 13px; font-weight: 600; color: var(--ink); }

/* share row */
.share-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
.share-row a {
  width: 104px; min-height: 31px; border-radius: var(--r-card); color: #fff; font-size: 11px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: filter .2s ease;
}
.share-row a:hover { filter: brightness(1.12); text-decoration: none; }
.share-row svg { width: 14px; height: 14px; }
.sh-fb { background: #1877f2; } .sh-tw { background: #111827; } .sh-pi { background: #bd081c; }
.sh-tg { background: var(--tg); } .sh-wa { background: #25d366; }

/* download buttons */
.dl-stack { display: flex; flex-direction: column; gap: 10px; margin: 14px 0 0; }
.btn-dl, .btn-tg {
  position: relative; display: flex; align-items: center;
  min-height: 33px; border-radius: var(--r-card); color: #fff; font-size: 12px; font-weight: 700;
  padding: 8px 5px 8px 38px; text-transform: uppercase; letter-spacing: .04em;
  transition: background-color .2s ease;
}
.btn-dl { background: var(--dl); } .btn-dl:hover { background: var(--dl-deep); color: #fff; text-decoration: none; }
.btn-tg { background: var(--tg); } .btn-tg:hover { background: #005b89; color: #fff; text-decoration: none; }
.btn-dl .bic, .btn-tg .bic {
  position: absolute; left: 0; top: 0; bottom: 0; width: 30px;
  background: rgba(0,0,0,.1); display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-card) 0 0 var(--r-card);
}
.btn-dl svg, .btn-tg svg { width: 16px; height: 16px; }

.rate-block { margin: 14px 0 0; text-align: center; }
.rate-block .stars { justify-content: center; }
.rate-big { font-size: 20px; font-weight: 700; color: var(--ink); }
.report-link { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: #a7a7a7; margin-top: 8px; }
.report-link svg { width: 13px; height: 13px; }

/* box title */
.box-title {
  font-size: 17px; text-transform: uppercase; color: #ababab; font-weight: 700;
  margin: 0 0 16px; padding-bottom: 10px; position: relative;
}
.box-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 3px; background: var(--ac); }

/* ---------- article / entry ---------- */
.entry h2 { font-size: 21px; text-align: start; font-weight: 700; margin: 26px 0 10px; }
.entry h3 { font-size: 17px; margin: 20px 0 8px; }
.entry h4 { font-size: 15px; margin: 16px 0 8px; }
.entry p { margin: 0 0 15px; }
.entry a { color: var(--ac-deep); text-decoration: underline; }
.entry-list { margin: 0 0 15px; padding-left: 20px; }
.entry-list li { margin-bottom: 6px; }

/* ---------- C11 editorial engine ---------- */
.lede p { font-size: 15px; line-height: 27px; }
.lede p:first-child { font-size: 16px; }

.ed-sec { margin: 0 0 28px; }
.sec-head {
  font-size: 21px; font-weight: 700; text-align: start; margin: 0 0 12px; padding-bottom: 10px;
  position: relative;
}
.sec-head::after { content: ""; position: absolute; left: 0; bottom: 0; width: 44px; height: 3px; background: var(--ac); }
.sec-intro { margin: 0 0 16px; }

.ed-grid { display: grid; gap: 16px; }
.ed-grid[data-cols="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ed-grid[data-cols="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ed-grid[data-cols="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ed-grid[data-cols="1"] { grid-template-columns: minmax(0, 1fr); }
.ed-card {
  background: var(--tint); border: 1px solid var(--line); border-radius: var(--r-card);
  border-bottom: 2px solid var(--ac); padding: 18px; box-shadow: var(--shadow);
}
.ed-badge {
  width: 38px; height: 38px; border-radius: 12px; background: var(--ac-soft); color: var(--ac-deep);
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 10px;
}
.ed-badge svg { width: 20px; height: 20px; }
.ed-card-title { font-size: 15px; font-weight: 600; margin: 0 0 8px; }
.ed-card-body p { margin: 0 0 10px; }
.ed-card-body p:last-child { margin-bottom: 0; }

/* CTA band */
.cta-band {
  background: var(--chrome); border-radius: var(--r-card); padding: 34px 28px; margin: 0 0 28px;
  text-align: center; position: relative; overflow: hidden;
  border-bottom: 2px solid var(--ac);
}
.cta-band::before {
  content: ""; position: absolute; left: 50%; top: -60%; width: 420px; height: 420px;
  transform: translateX(-50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(126,217,87,.22), transparent 65%);
}
.cta-band > * { position: relative; z-index: 1; }
h2.cta-head { color: #fff; font-size: 24px; text-align: center; margin: 0 0 12px; font-weight: 600; }
.cta-copy p { color: #ced3dc; margin: 0 auto 12px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 18px; }
.entry .cta-copy a { color: var(--ac-bright); }

/* Scoped so .entry a cannot win and paint the label accent-on-accent. */
.entry a.hx-btn, a.hx-btn {
  display: inline-block; border-radius: var(--r-pill); font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; padding: 0 28px; line-height: 40px;
  text-decoration: none; transition: background-color .2s ease, color .2s ease;
}
.entry a.hx-btn--primary, a.hx-btn--primary { background: var(--ac); color: #fff; }
.entry a.hx-btn--primary:hover, a.hx-btn--primary:hover { background: var(--ac-deep); color: #fff; }
.entry a.hx-btn--ghost, a.hx-btn--ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.5); }
.entry a.hx-btn--ghost:hover, a.hx-btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; }

/* FAQ accordion */
.faq-block { margin: 0 0 28px; }
.faq-item {
  background: var(--tint); border: 1px solid var(--line); border-radius: var(--r-card);
  margin: 0 0 10px; overflow: hidden;
}
.faq-item summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; font-weight: 600;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font-size: 15px; margin: 0; font-weight: 600; }
.faq-chev { width: 20px; height: 20px; flex: 0 0 20px; color: var(--ac-deep); transition: transform .25s ease; }
.faq-item[open] .faq-chev { transform: rotate(180deg); }
.faq-item[open] summary { border-bottom: 1px solid var(--line); }
.faq-answer { padding: 14px 18px 2px; }
.faq-intro { margin: 0 0 12px; }

/* ---------- related ---------- */
.rlat { display: flex; flex-wrap: wrap; margin: 0 -10px; }
.rlat-item { width: 20%; padding: 10px; display: block; text-align: center; color: var(--ink); }
.rlat-item:hover { text-decoration: none; color: var(--ac-deep); }
.rlat-item img { width: 100%; height: auto; border-radius: 16px; box-shadow: var(--shadow); display: block; }
.rlat-name {
  display: block; font-size: 13px; font-weight: 600; margin-top: 8px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ---------- footer ---------- */
.promo-panel {
  background: var(--chrome); border-radius: var(--r-card); padding: 26px; margin: 10px 0 20px;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  border-bottom: 2px solid var(--ac);
}
.promo-panel img { width: 86px; height: 86px; border-radius: 18px; }
.promo-copy { flex: 1 1 260px; min-width: 0; }
.promo-copy h2 { color: #fff; font-size: 20px; margin: 0 0 6px; }
.promo-copy p { color: #ced3dc; margin: 0; }
.policy-links { display: flex; flex-wrap: wrap; gap: 10px; }
.policy-links a {
  border-radius: var(--r-pill); padding: 0 20px; line-height: 36px; font-size: 12px;
  background: rgba(255,255,255,.1); color: #fff; transition: background-color .2s ease;
}
.policy-links a:hover { background: var(--ac); text-decoration: none; }

.site-footer { background: var(--chrome); border-top: 2px solid var(--ac); color: #aeb4bf; margin-top: 10px; }
.footer-inner {
  max-width: var(--measure); margin: 0 auto; padding: 34px 10px 10px;
  display: flex; flex-wrap: wrap; gap: 28px;
}
.footer-col { flex: 1 1 200px; min-width: 0; }
.footer-col h2 { color: #fff; font-size: 15px; margin: 0 0 12px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 7px; }
.footer-col a { color: #aeb4bf; font-size: 13px; }
.footer-col a:hover { color: var(--ac-bright); text-decoration: none; }
.trust-row { display: flex; flex-wrap: wrap; gap: 14px; }
.trust-item { display: flex; align-items: center; gap: 7px; font-size: 12px; }
.trust-item svg { width: 16px; height: 16px; color: var(--ac-bright); flex: 0 0 16px; }

.disclaimer-band { background: var(--chrome-dp); color: #8d939e; }
.disclaimer-inner {
  max-width: var(--measure); margin: 0 auto; padding: 16px 10px;
  font-size: 12px; line-height: 20px;
}
.copyright {
  max-width: var(--measure); margin: 0 auto; padding: 12px 10px 18px;
  font-size: 12px; color: #8d939e; border-top: 1px solid rgba(255,255,255,.08);
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between;
}

/* scroll top */
.to-top {
  position: fixed; right: 16px; bottom: 86px; z-index: 80;
  width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--chrome); color: #fff;
  display: none; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.25); transition: background-color .2s ease;
}
.to-top.is-on { display: inline-flex; }
.to-top:hover { background: var(--ac); }

/* floating CTA pill */
.float-cta {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 85;
  border-radius: var(--r-pill); padding: 0 26px; line-height: 42px; color: #fff;
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  background: linear-gradient(135deg, #00c6ff, #0072ff, #3ea01c, #7ED957);
  background-size: 300% 300%; animation: floatShift 9s ease infinite;
  box-shadow: 0 6px 20px rgba(0,0,0,.3); max-width: calc(100vw - 32px);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.float-cta:hover { color: #fff; text-decoration: none; }
@keyframes floatShift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* responsible gaming */
.rg-note {
  background: var(--ac-soft); border: 1px solid #cfe6c4; border-radius: var(--r-card);
  padding: 16px 18px; margin: 0 0 20px;
}
.rg-note h2 { font-size: 15px; margin: 0 0 6px; }
.rg-note p { margin: 0; font-size: 12px; line-height: 20px; }
.rg-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.rg-chips li { font-size: 11px; background: #fff; border: 1px solid #cfe6c4; border-radius: var(--r-card); padding: 4px 12px; }

/* 404 */
.err-wrap { text-align: center; padding: 50px 10px; }
.err-wrap h1 { font-size: 54px; margin: 0 0 8px; }

/* ---------- breakpoints ---------- */
@media (max-width: 1240px) {
  .rlat-item { width: 20%; }
}
@media (max-width: 1023px) {
  .container { flex-direction: column; }
  .side-col { position: static; flex: 1 1 auto; width: 100%; }
  .baps[data-cols="6"] > .card { width: 25%; }
  .baps[data-cols="3"] > .card { width: 50%; }
  .ed-grid[data-cols="4"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rlat-item { width: 33.3333%; }
  .hero h1 { font-size: 32px; line-height: 40px; }
}
@media (max-width: 767px) {
  body { font-size: 16px; line-height: 27px; }
  .card-meta, .rate-num, .tile-desc { font-size: 13px; }
  .nav-toggle { display: inline-flex; }
  .main-nav {
    display: none; position: absolute; left: 0; right: 0; top: 60px;
    background: var(--chrome); border-bottom: 2px solid var(--ac); padding: 8px 10px 14px;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav a { padding: 11px 12px; font-size: 16px; border-radius: 12px; }
  .main-nav .nav-cta { text-align: center; margin-top: 6px; }
  .baps[data-cols="6"] > .card { width: 50%; }
  .baps[data-cols="3"] > .card { width: 100%; }
  .ed-grid[data-cols="4"], .ed-grid[data-cols="3"], .ed-grid[data-cols="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rlat-item { width: 50%; }
  .hero { padding: 54px 0 30px; }
  .hero h1 { font-size: 27px; line-height: 35px; }
  .hero h2 { font-size: 15px; line-height: 25px; }
  .app-head { flex-direction: column; align-items: center; text-align: center; }
  .app-head .s1 { flex: 0 0 auto; }
  h1.main-box-title { font-size: 26px; line-height: 34px; }
  .da-s .cell { width: 50%; }
  .da-s .cell:nth-child(3n) { border-right: 1px solid var(--line); }
  .da-s .cell:nth-child(2n) { border-right: 0; }
  .box { padding: 18px 16px; }
  .share-row a { flex: 1 1 calc(50% - 8px); width: auto; }
  .entry h2, .sec-head { font-size: 19px; }
  .float-cta { font-size: 12px; padding: 0 18px; }
  .search-band .search-box input[type="search"] { font-size: 16px; height: 44px; }
  .search-band .search-box button { height: 44px; }
}
@media (max-width: 519px) {
  .ed-grid[data-cols="4"], .ed-grid[data-cols="3"], .ed-grid[data-cols="2"] { grid-template-columns: minmax(0, 1fr); }
  .baps[data-cols="6"] > .card { width: 100%; }
  .rlat-item { width: 50%; }
  .search-box input[type="search"], .search-band .search-box input[type="search"] { font-size: 16px; }
  .hero h1 { font-size: 24px; line-height: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  .bav1:hover, .bav2:hover { transform: none; }
}
