@charset "UTF-8";
/* ==========================================================================
   SVIP Gems - svip-gems.app
   Palette extracted from the client reference (lucky555.pro) brand tokens and
   extended with WCAG-verified derivations.
   Ornament: THE FACET. One chamfer geometry at three scales. Surfaces cut the
   top-right corner, controls cut the bottom-left, chips cut the bottom-left small.
   ========================================================================== */

:root {
  /* --- reference brand tokens (verbatim from lucky555.pro) --- */
  --ground:        #e1ecef;
  --panel:         #dae4e7;
  --panel-2:       #c7d2d6;
  --accent:        #1099c6;   /* chrome, rules, glow. NEVER small text on --ground */
  --ink:           #1e2324;
  --muted:         #5c6b70;

  /* --- accessible derivations --- */
  --surface:       #ffffff;
  --tint:          #eef5f8;   /* card fill inside a white box */
  --tint-2:        #e7f1f5;
  --hair:          #cbdae0;
  --accent-ink:    #0a6b8a;   /* links + white-label fills - 6.03:1 both ways */
  --accent-hover:  #064f66;   /* 9.06:1 with white */
  --accent-wash:   #d6ecf4;
  --accent-on-dark:#58c4e6;   /* accent TEXT on the dark chrome - 7.8:1 */
  --hot:           #b03a13;   /* HOT fill, white label - 6.07:1 */
  --hot-ink:       #a83610;   /* HOT text on white - 6.56:1 */
  --hot-wash:      #fbe9e2;
  --go:            #0e7038;   /* download affordance, white label - 6.19:1 */
  --go-hover:      #0b5a2d;
  --chrome:        #0f2630;   /* header + footer */
  --chrome-deep:   #0a1c23;
  --chrome-line:   #1d414f;
  --on-chrome:     #ffffff;
  --on-chrome-mut: #8ea6af;   /* 6.14:1 on --chrome */
  --focus:         #ffb703;
  --gold:          #d99b12;

  /* --- geometry: the facet --- */
  --chamfer:       18px;
  --chamfer-sm:    11px;
  --chamfer-xs:    7px;
  --r:             3px;

  /* --- measure: ONE container for header, content, footer, disclaimer --- */
  --measure:       1200px;
  --gutter:        24px;
  --side:          320px;
  --col-gap:       28px;

  /* --- type --- */
  --display: 'Sora', 'Trebuchet MS', sans-serif;
  --body:    'Public Sans', 'Segoe UI', sans-serif;

  --t: 220ms cubic-bezier(.22,.61,.36,1);
}

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

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 17px/1.7 var(--body);
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }
button, input, select { font: inherit; color: inherit; }
button, a, summary, [role="button"], label[for] { cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.015em;
  margin: 0;
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  box-shadow: inset 0 0 0 3px var(--focus);   /* survives clip-path */
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--chrome); color: var(--on-chrome);
  padding: 10px 18px; font-weight: 600; transition: top var(--t);
}
.skip:focus { top: 12px; }
.vh {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ============================ THE MEASURE ================================
   Header, hero, every section, the footer and the disclaimer band all share
   this width and centring, so their left and right edges line up exactly.
   ========================================================================= */
.container {
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.row {                              /* content beside the sticky sidebar */
  display: flex;
  align-items: flex-start;
  gap: var(--col-gap);
}
.row__main { flex: 1 1 auto; min-width: 0; }
.row__side {
  flex: 0 0 var(--side); width: var(--side);
  position: sticky; top: 92px; align-self: flex-start;
}
.container.is-block { display: block; }   /* long blocks, full measure, no gutter */

/* ============================ FACET UTILITIES ============================ */
.cut {
  clip-path: polygon(0 0, calc(100% - var(--chamfer)) 0, 100% var(--chamfer),
                     100% 100%, 0 100%);
}
.cut-sm {
  clip-path: polygon(0 0, calc(100% - var(--chamfer-sm)) 0, 100% var(--chamfer-sm),
                     100% 100%, 0 100%);
}
.cut-bl {
  clip-path: polygon(0 0, 100% 0, 100% 100%, var(--chamfer-sm) 100%,
                     0 calc(100% - var(--chamfer-sm)));
}
.cut-xs {
  clip-path: polygon(0 0, 100% 0, 100% 100%, var(--chamfer-xs) 100%,
                     0 calc(100% - var(--chamfer-xs)));
}

/* the signature rule: three descending facets */
.facet-rule { display: flex; gap: 4px; align-items: center; margin-top: 12px; }
.facet-rule i {
  display: block; width: 26px; height: 5px; background: var(--accent);
  clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%);
}
.facet-rule i:nth-child(2) { width: 16px; opacity: .6; }
.facet-rule i:nth-child(3) { width: 8px;  opacity: .3; }

.ic { width: 24px; height: 24px; flex: 0 0 auto; }

/* ============================== BUTTONS ================================== */
.hx-btn {
  --btn-bg: var(--accent-ink); --btn-fg: #fff; --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 11px 24px;
  font: 700 15px/1.2 var(--display); letter-spacing: .01em;
  white-space: nowrap;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 2px solid var(--btn-bd); text-decoration: none;
  clip-path: polygon(0 0, 100% 0, 100% 100%, var(--chamfer-sm) 100%,
                     0 calc(100% - var(--chamfer-sm)));
  transition: background var(--t), color var(--t), transform var(--t);
}
/* out-specify `.entry a` and `.ec-sec a`, or a CTA renders accent-on-accent */
.entry .hx-btn, .ec-sec .hx-btn, .cta-band .hx-btn, a.hx-btn, a.hx-btn:hover {
  color: var(--btn-fg);
}
.hx-btn:hover  { background: var(--accent-hover); }
.hx-btn:active { transform: translateY(1px); }
.hx-btn__ic { width: 20px; height: 20px; }

.hx-btn--primary { --btn-bg: var(--accent-ink); --btn-fg: #fff; }
.hx-btn--ghost   { --btn-bg: transparent; --btn-fg: var(--accent-ink); --btn-bd: var(--accent-ink); }
.hx-btn--ghost:hover { background: var(--accent-ink); --btn-fg: #fff; }
.hx-btn--dl      { --btn-bg: var(--go); --btn-fg: #fff; }
.hx-btn--dl:hover{ background: var(--go-hover); }
.hx-btn--block   { width: 100%; }
.hx-btn--lg      { min-height: 54px; padding: 13px 30px; font-size: 16px; }

/* On dark chrome the ghost must invert. `.on-dark` is used BOTH as an ancestor
   (a button row) and directly on a button, so both forms have to match or the
   accent label lands on the dark panel at 2.6:1. */
.on-dark .hx-btn--ghost, .on-dark.hx-btn--ghost,
.wgt--dark .hx-btn--ghost {
  --btn-fg: #fff; --btn-bd: rgba(255,255,255,.45);
}
.on-dark .hx-btn--ghost:hover, .on-dark.hx-btn--ghost:hover,
.wgt--dark .hx-btn--ghost:hover {
  background: #fff; --btn-fg: var(--chrome); --btn-bd: #fff;
}

/* =============================== HEADER ================================== */
.hdr {
  position: sticky; top: 0; z-index: 90;
  background: color-mix(in srgb, var(--chrome) 92%, transparent);
  backdrop-filter: saturate(150%) blur(10px);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 2px solid var(--accent);
}
@supports not (backdrop-filter: blur(4px)) { .hdr { background: var(--chrome); } }
.hdr__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 72px; }
.hdr__logo { display: flex; align-items: center; flex: 0 0 auto; }
.hdr__logo img { height: 42px; width: auto; object-fit: contain; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav__a {
  position: relative;
  display: inline-flex; align-items: center; height: 40px; padding: 0 13px;
  font: 600 14.5px/1 var(--display); color: #dbe6ea; text-decoration: none;
  white-space: nowrap; transition: color var(--t), background var(--t);
}
.nav__a:hover { color: #fff; background: rgba(255,255,255,.07); }
.nav__a.is-active { color: #fff; }
.nav__a.is-active::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 4px; height: 3px;
  background: var(--accent);
  clip-path: polygon(3px 0, 100% 0, calc(100% - 3px) 100%, 0 100%);
}
.nav__cta { margin-left: 8px; min-height: 40px; padding: 8px 18px; font-size: 14px; }
.nav__cta.hx-btn { --btn-bg: var(--accent); --btn-fg: #06222c; }
.nav__cta.hx-btn:hover { --btn-bg: #3fb3d8; }

.burger {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; background: rgba(255,255,255,.08);
  border: 0; color: #fff;
}
.burger .ic { width: 26px; height: 26px; }

/* ================================ HERO =================================== */
.hero { position: relative; background: var(--chrome-deep); overflow: hidden; }
.hero__art {
  position: absolute; inset: 0;
}
.hero__art img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(94deg, rgba(10,28,35,.95) 0%, rgba(10,28,35,.88) 42%,
                    rgba(10,28,35,.45) 72%, rgba(10,28,35,.25) 100%),
    radial-gradient(90% 120% at 82% 20%, rgba(16,153,198,.3), transparent 62%);
}
.hero__in { position: relative; padding-block: 72px 64px; }
.hero__grid { display: grid; grid-template-columns: minmax(0,1.62fr) minmax(0,1fr); gap: 40px; align-items: center; }
.hero__kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font: 700 11.5px/1 var(--display); letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent-on-dark); background: rgba(16,153,198,.14);
  padding: 9px 14px; margin-bottom: 20px;
}
.hero__kicker .ic { width: 16px; height: 16px; }
.hero h1 {
  color: #fff; font-size: clamp(29px, 3.9vw, 46px); line-height: 1.1;
  letter-spacing: -.03em; text-wrap: balance;
}
.hero__sub {
  color: #c4d6dc; font-size: clamp(16px, 1.6vw, 18.5px); line-height: 1.62;
  margin: 18px 0 0;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero__plate { position: relative; }
.hero__plate img {
  width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover;
  clip-path: polygon(0 0, calc(100% - 34px) 0, 100% 34px, 100% 100%, 34px 100%, 0 calc(100% - 34px));
}
.hero__plate::after {
  content: ""; position: absolute; inset: -10px -10px auto auto;
  width: 64px; height: 64px; background: var(--accent); opacity: .22;
  clip-path: polygon(100% 0, 100% 100%, 0 0);
}

/* trust bar */
.trust { background: var(--chrome); border-top: 1px solid var(--chrome-line); }
.trust__in { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; list-style: none; margin: 0; padding: 0; }
.trust__i {
  display: flex; align-items: center; gap: 13px; padding: 20px 4px;
  color: #cfdee3; font-size: 14.5px; line-height: 1.4;
}
.trust__i .ic { width: 26px; height: 26px; color: var(--accent); }
.trust__i b { display: block; font-family: var(--display); font-size: 15.5px; color: #fff; }

/* =========================== SECTION HEADS =============================== */
.sec-head { margin: 0 0 22px; }
.sec-head__kicker {
  display: block; font: 700 11.5px/1 var(--display); letter-spacing: .2em;
  text-transform: uppercase; color: var(--accent-ink); margin-bottom: 9px;
}
.sec-head__t { font-size: clamp(21px, 2.3vw, 27px); }
.sec-head .facet-rule { margin-top: 13px; }

.band { padding-block: 54px; }
.band--tight { padding-block: 34px; }
.band--panel { background: var(--panel); }

/* ============================= GAME TILES ================================ */
.game-grid { display: grid; grid-template-columns: repeat(var(--gc,4), minmax(0,1fr)); gap: 18px; list-style: none; margin: 0; padding: 0; }
.game-grid--rel { --gc: 5; }

.tile {
  position: relative; height: 100%;
  display: flex; flex-direction: column;
  background: var(--surface);
  clip-path: polygon(0 0, calc(100% - var(--chamfer)) 0, 100% var(--chamfer), 100% 100%, 0 100%);
  transition: transform var(--t), filter var(--t);
}
.tile:hover { transform: translateY(-3px); filter: drop-shadow(0 8px 16px rgba(15,38,48,.16)); }
.tile__imgwrap { position: relative; display: block; background: var(--chrome-deep); }
.tile__imgwrap img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.tile__badge {
  position: absolute; top: 0; left: 0;
  font: 700 10.5px/1 var(--display); letter-spacing: .14em; text-transform: uppercase;
  color: #fff; background: var(--hot); padding: 7px 11px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 9px) 100%, 0 100%);
}
.tile__body { display: flex; flex-direction: column; gap: 7px; padding: 14px 15px 15px; flex: 1 1 auto; }
.tile__t {
  font: 700 15.5px/1.3 var(--display); letter-spacing: -.01em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 40px;
}
.tile__t a { color: var(--ink); text-decoration: none; }
.tile:hover .tile__t a { color: var(--accent-ink); }
.tile__meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.tile__ver { font-family: var(--display); font-weight: 600; font-variant-numeric: tabular-nums; }
.tile__desc {
  font-size: 13.5px; line-height: 1.55; color: var(--muted); margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
/* The label is fixed by rule C3, so the type has to fit the narrowest tile
   (181px at 1440 in the 4-up grid) rather than the label being shortened. */
.tile__go {
  margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 40px; padding: 8px 9px;
  font: 700 11.5px/1 var(--display); letter-spacing: .045em; text-transform: uppercase;
  color: #fff; background: var(--accent-ink); text-decoration: none; white-space: nowrap;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 9px 100%, 0 calc(100% - 9px));
  transition: background var(--t);
}
.tile__go:hover { background: var(--accent-hover); color: #fff; }
.tile__go .ic { width: 14px; height: 14px; }
/* narrow tiles drop the arrow so the label never clips */
@media (max-width: 1439px) and (min-width: 1024px) { .tile__go .ic { display: none; } }
.tile::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--accent); transform: scaleX(.18); transform-origin: left;
  transition: transform var(--t);
}
.tile:hover::after { transform: scaleX(1); }

.stars { display: inline-flex; gap: 1.5px; }
.star { width: 12px; height: 12px; background: var(--panel-2); clip-path: polygon(50% 0,61% 35%,98% 35%,68% 57%,79% 91%,50% 70%,21% 91%,32% 57%,2% 35%,39% 35%); }
.star.is-full { background: var(--gold); }
.star.is-half { background: linear-gradient(90deg, var(--gold) 50%, var(--panel-2) 50%); }
.rate-num { font-family: var(--display); font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); }

.view-more { display: flex; justify-content: center; margin-top: 30px; }

/* ============================ SEARCH FILTER ============================== */
.finder { display: flex; gap: 10px; margin: 0 0 22px; }
.wgt .finder { margin: 0; }
.wgt__list:empty { display: none; }
.finder__f { position: relative; flex: 1 1 auto; }
.finder__f .ic { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.finder input {
  width: 100%; min-height: 50px; padding: 12px 16px 12px 46px;
  background: var(--surface); border: 1.5px solid var(--hair); color: var(--ink);
  font-size: 16px;
  clip-path: polygon(0 0, calc(100% - 11px) 0, 100% 11px, 100% 100%, 0 100%);
}
.finder input::placeholder { color: #6e7f85; }   /* 4.9:1 on white */
.finder input:focus { border-color: var(--accent-ink); }
.finder__n { font-size: 13.5px; color: var(--muted); margin: -12px 0 18px; }

/* ============================== SIDEBAR ================================== */
.wgt { background: var(--surface); margin-bottom: 20px; padding: 20px 22px 22px;
  clip-path: polygon(0 0, calc(100% - var(--chamfer)) 0, 100% var(--chamfer), 100% 100%, 0 100%); }
.wgt--dark { background: var(--chrome); color: #cfdee3; }
.wgt__t {
  font: 700 12.5px/1 var(--display); letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 14px; display: flex; align-items: center; gap: 9px;
}
.wgt--dark .wgt__t { color: var(--on-chrome-mut); }
.wgt__t::after { content: ""; flex: 1 1 auto; height: 3px; background: var(--accent); opacity: .3;
  clip-path: polygon(3px 0, 100% 0, calc(100% - 3px) 100%, 0 100%); }
.wgt__list { list-style: none; margin: 0; padding: 0; }
.wgt__list li + li { border-top: 1px solid var(--hair); }
.wgt__row { display: flex; align-items: center; gap: 12px; padding: 10px 0; text-decoration: none; }
.wgt__row img { width: 46px; height: 46px; object-fit: cover; flex: 0 0 auto;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%); }
.wgt__row b { font: 600 14px/1.35 var(--display); color: var(--ink); display: block; }
.wgt__row span { font-size: 12.5px; color: var(--muted); }
.wgt__row:hover b { color: var(--accent-ink); }
.wgt__tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.wgt__tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; background: var(--tint); color: var(--accent-ink);
  font: 600 13px/1 var(--display); text-decoration: none;
  clip-path: polygon(0 0, 100% 0, 100% 100%, var(--chamfer-xs) 100%, 0 calc(100% - var(--chamfer-xs)));
}
.wgt__tag:hover { background: var(--accent-ink); color: #fff; }
.wgt--dark p { font-size: 14px; line-height: 1.6; margin: 0 0 14px; }
.wgt__note { display: flex; gap: 11px; align-items: flex-start; font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.wgt__note .ic { width: 22px; height: 22px; color: var(--hot-ink); }

/* ===================== EDITORIAL ENGINE (rule C11) ======================= */
/* The editorial column is a WHITE box on the grey ground. The selector must
   cover every wrapper the box can appear in, or it renders transparent. */
.entry, .sections .box, .app-s .box, .box {
  background: var(--surface);
  padding: 34px 38px 40px;
  clip-path: polygon(0 0, calc(100% - var(--chamfer)) 0, 100% var(--chamfer), 100% 100%, 0 100%);
}
.entry { font-size: 17px; }
.entry p { margin: 0 0 16px; }
.entry a { color: var(--accent-ink); }
.entry-h1 { font-size: clamp(25px, 3.1vw, 36px); margin: 0 0 20px; letter-spacing: -.025em; }

.lede { border-left: 4px solid var(--accent); padding-left: 20px; margin: 0 0 30px; }
.lede p { font-size: 18.5px; line-height: 1.66; color: #33403f; margin: 0 0 13px; }
.lede p:last-child { margin-bottom: 0; }

.ec-sec { margin: 0 0 38px; }
.ec-sec:last-child { margin-bottom: 0; }
.ec-p { margin: 0 0 16px; }

/* cards inside the white box are TINTED, never white-on-white */
.ec-grid {
  display: grid; gap: 16px; list-style: none; margin: 20px 0 6px; padding: 0;
  grid-template-columns: repeat(var(--ec, 3), minmax(0,1fr));
}
.ec-grid[data-cols="4"] { --ec: 4; }
.ec-grid[data-cols="3"] { --ec: 3; }
.ec-grid[data-cols="2"] { --ec: 2; }
.ec-grid[data-cols="1"] { --ec: 1; }
.ec-card {
  display: flex; flex-direction: column; gap: 12px;
  padding: 18px 18px 20px;
  background: var(--tint); outline: 1px solid var(--hair); outline-offset: -1px;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
}
.ec-card__badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; flex: 0 0 auto;
  background: var(--surface); color: var(--accent-ink);
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 0 100%);
}
.ec-card__ic { width: 21px; height: 21px; }
.ec-card__num { font: 700 16px/1 var(--display); font-variant-numeric: tabular-nums; }
.ec-card__t { font-size: 16.5px; margin: 0 0 7px; letter-spacing: -.01em; }
.ec-card__colon { color: var(--accent-ink); margin-left: 1px; }
.ec-card__body p { margin: 0 0 9px; font-size: 15.5px; line-height: 1.62; color: #39464a; }
.ec-card__body p:last-child { margin: 0; }
.ec-grid--step .ec-card__badge { background: var(--accent-ink); color: #fff; }
.ec-grid--feature .ec-card { gap: 10px; }
.ec-grid--feature .ec-card__badge { width: 34px; height: 34px; }
.ec-grid--feature .ec-card__ic { width: 18px; height: 18px; }

.chip-rail { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 18px 0 6px; padding: 0; }
.chip {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 10px 15px; background: var(--tint); outline: 1px solid var(--hair); outline-offset: -1px;
  font-size: 15px; line-height: 1.35; color: #33403f;
  clip-path: polygon(0 0, 100% 0, 100% 100%, var(--chamfer-xs) 100%, 0 calc(100% - var(--chamfer-xs)));
}
.chip__ic { width: 17px; height: 17px; color: var(--go); }

/* FAQ accordion - native details, answers stay in the DOM when collapsed */
.faq { margin: 0 0 38px; }
.faq__list { border-top: 1px solid var(--hair); }
.faq__item { border-bottom: 1px solid var(--hair); }
.faq__q {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 17px 0; list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::marker { content: ""; }
.faq__q h3 { font-size: 16.5px; line-height: 1.45; margin: 0; font-weight: 600; }
.faq__item[open] .faq__q h3 { color: var(--accent-ink); }
.faq__chev { width: 22px; height: 22px; flex: 0 0 auto; color: var(--accent-ink); transition: transform var(--t); }
.faq__item[open] .faq__chev { transform: rotate(180deg); }
.faq__a { padding: 0 44px 20px 0; }
.faq__a p { margin: 0 0 10px; color: #39464a; }
.faq__a p:last-child { margin: 0; }

/* CTA band */
.cta-band {
  position: relative; overflow: hidden;
  background: var(--chrome); color: #c4d6dc;
  padding: 40px 42px 44px; margin: 34px 0 0; text-align: center;
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 26px 100%, 0 calc(100% - 26px));
}
.cta-band__facet {
  position: absolute; inset: auto auto -40% -12%;
  width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(16,153,198,.4), transparent 68%);
  pointer-events: none;
}
/* `.entry h2` sets text-align:start, so the band heading needs it set directly */
.cta-band__t {
  position: relative; text-align: center; color: #fff;
  font-size: clamp(22px, 2.7vw, 30px); letter-spacing: -.025em;
}
.cta-band__p { position: relative; margin: 14px 0 0; font-size: 16.5px; line-height: 1.66; }
.cta-band__row { position: relative; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 26px; }
.cta-band .hx-btn--ghost { --btn-fg: #fff; --btn-bd: rgba(255,255,255,.5); }
.cta-band .hx-btn--ghost:hover { background: #fff; --btn-fg: var(--chrome); --btn-bd: #fff; }

/* Headings inside the editorial column keep start alignment. The CTA band sits
   INSIDE .entry, so its heading must out-specify this rule or it renders
   left-aligned beside centred body copy. */
.entry h2, .entry h3 { text-align: start; }
.entry .cta-band__t, .cta-band .cta-band__t { text-align: center; }

/* ========================== APK DETAIL PAGE ============================== */
.crumbs { padding-block: 16px 0; font-size: 13.5px; color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--panel-2); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent-ink); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }

.apk-head {
  position: relative; overflow: hidden;
  background: var(--surface); padding: 0; margin: 18px 0 20px;
  clip-path: polygon(0 0, calc(100% - var(--chamfer)) 0, 100% var(--chamfer), 100% 100%, 0 100%);
}
.apk-head__bg { position: absolute; inset: 0; }
.apk-head__bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(40px) saturate(65%); transform: scale(1.3); opacity: .16; }
.apk-head__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.72), rgba(255,255,255,.95)); }
.apk-head__in { position: relative; display: flex; gap: 26px; padding: 26px 30px 28px; align-items: flex-start; }
.apk-head__id { order: -1; flex: 0 0 168px; }   /* H1 precedes this in the DOM */
.apk-head__id img {
  width: 168px; height: 168px; object-fit: cover;
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
}
.apk-head__id .hx-btn { margin-top: 14px; }
.apk-head__main { flex: 1 1 auto; min-width: 0; }
.apk-head__cat {
  display: inline-block; font: 700 11px/1 var(--display); letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent-ink); background: var(--tint);
  padding: 8px 12px; margin-bottom: 14px;
}
.apk-head h1 { font-size: clamp(24px, 3.2vw, 34px); letter-spacing: -.028em; }
.apk-head__lead { margin: 14px 0 0; font-size: 17px; line-height: 1.62; color: #39464a; }

/* detail-page flags are STATIC, never absolute (rule C7) */
.flags { display: flex; flex-wrap: wrap; gap: 9px; margin: 16px 0 0; }
.flag {
  position: static;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 13px; font: 700 11px/1 var(--display); letter-spacing: .13em;
  text-transform: uppercase; color: #fff; background: var(--accent-ink);
  clip-path: polygon(0 0, 100% 0, 100% 100%, var(--chamfer-xs) 100%, 0 calc(100% - var(--chamfer-xs)));
}
.flag--hot { background: var(--hot); }
.flag--ver { background: var(--chrome); font-variant-numeric: tabular-nums; }
.flag .ic { width: 15px; height: 15px; }

.chips { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 0; list-style: none; padding: 0; }
.chips li {
  display: flex; align-items: center; gap: 11px; padding: 12px 16px;
  background: var(--tint); outline: 1px solid var(--hair); outline-offset: -1px;
  clip-path: polygon(0 0, calc(100% - 11px) 0, 100% 11px, 100% 100%, 0 100%);
}
.chips .ic { width: 22px; height: 22px; color: var(--accent-ink); }
.chips span { display: block; font: 700 10.5px/1 var(--display); letter-spacing: .15em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.chips b { font: 700 15px/1.2 var(--display); font-variant-numeric: tabular-nums; }

.dl-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 0; }

.info-tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.info-tbl th, .info-tbl td { text-align: start; padding: 11px 2px; border-bottom: 1px solid var(--hair); vertical-align: top; }
.info-tbl th { width: 42%; font: 600 13px/1.4 var(--display); letter-spacing: .04em; color: var(--muted); }
.info-tbl td { font-weight: 600; }
.info-tbl tr:last-child th, .info-tbl tr:last-child td { border-bottom: 0; }

/* =========================== STATIC PAGE HERO ============================ */
.page-hero { position: relative; overflow: hidden; background: var(--chrome-deep); }
.page-hero__bg { position: absolute; inset: 0; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(3px) saturate(120%); transform: scale(1.08); opacity: .42; }
.page-hero__bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(10,28,35,.94), rgba(10,28,35,.62) 70%, rgba(10,28,35,.4)); }
.page-hero__in { position: relative; padding-block: 52px 54px; }
.page-hero h1 { color: #fff; font-size: clamp(25px, 3.4vw, 38px); letter-spacing: -.028em; text-wrap: balance; }
.page-hero__k {
  display: inline-block; font: 700 11.5px/1 var(--display); letter-spacing: .2em;
  text-transform: uppercase; color: var(--accent-on-dark); background: rgba(16,153,198,.15);
  padding: 8px 13px; margin-bottom: 16px;
}

/* ======================== RESPONSIBLE GAMING ============================= */
.resp { background: var(--panel); }
.resp__in { display: flex; gap: 26px; align-items: flex-start; padding-block: 32px; }
.resp__ic { flex: 0 0 auto; width: 46px; height: 46px; display: flex; align-items: center; justify-content: center;
  background: var(--surface); color: var(--hot-ink);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%); }
.resp h2 { font-size: 19px; margin: 0 0 8px; }
.resp p { margin: 0; font-size: 15px; line-height: 1.65; color: #3a474b; }
.resp__tips { display: flex; flex-wrap: wrap; gap: 9px; list-style: none; margin: 15px 0 0; padding: 0; }
.resp__tips li {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px;
  background: var(--surface); font-size: 13.5px; color: #33403f;
  clip-path: polygon(0 0, 100% 0, 100% 100%, var(--chamfer-xs) 100%, 0 calc(100% - var(--chamfer-xs))); }
.resp__tips .ic { width: 16px; height: 16px; color: var(--accent-ink); }

/* ================================ FOOTER ================================= */
.ftr { background: var(--chrome); color: #b6c8cf; border-top: 2px solid var(--accent); margin-top: 54px; }
.ftr__in { display: grid; grid-template-columns: minmax(0,1.6fr) repeat(3, minmax(0,1fr)); gap: 34px; padding-block: 44px 38px; }
.ftr__brand img { height: 40px; width: auto; object-fit: contain; }
.ftr__brand p { font-size: 14.5px; line-height: 1.68; margin: 16px 0 0; }
.ftr h2 { font: 700 12.5px/1 var(--display); letter-spacing: .18em; text-transform: uppercase; color: #fff; margin: 0 0 15px; }
.ftr ul { list-style: none; margin: 0; padding: 0; }
.ftr li + li { margin-top: 9px; }
.ftr a { color: #b6c8cf; text-decoration: none; font-size: 14.5px; }
.ftr a:hover { color: #fff; text-decoration: underline; }
.ftr__trust { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; padding-block: 22px; border-top: 1px solid var(--chrome-line); }
.ftr__trust li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.ftr__trust .ic { width: 20px; height: 20px; color: var(--accent); }
.ftr__btm { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center;
  padding-block: 18px 22px; border-top: 1px solid var(--chrome-line); font-size: 13.5px; }

.disc { background: var(--chrome-deep); color: var(--on-chrome-mut); }
.disc__in { display: flex; gap: 14px; align-items: flex-start; padding-block: 20px; font-size: 13px; line-height: 1.65; }
.disc__in .ic { width: 20px; height: 20px; flex: 0 0 auto; color: var(--hot); }

.totop {
  position: fixed; right: 20px; bottom: 20px; z-index: 80;
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  background: var(--accent-ink); color: #fff; border: 0;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 11px 100%, 0 calc(100% - 11px));
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity var(--t), transform var(--t), visibility var(--t), background var(--t);
}
.totop.is-on { opacity: 1; visibility: visible; transform: none; }
.totop:hover { background: var(--accent-hover); }

/* ================================ 404 ==================================== */
.nf { text-align: center; padding-block: 70px 20px; }
.nf__code { font: 700 clamp(64px,12vw,140px)/1 var(--display); color: var(--accent); opacity: .22; letter-spacing: -.04em; }
.nf h1 { font-size: clamp(25px,3.4vw,36px); margin: 8px 0 14px; }
.nf p { max-width: none; color: var(--muted); font-size: 17px; }
.nf__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }

/* ============================ REVEAL MOTION ============================== */
/* Reveal is opt-in: without JS (or without IntersectionObserver) `.rv` stays
   fully visible, so no catalogue tile can ever be hidden by a script failure. */
.js .rv { opacity: 0; transform: translateY(14px); transition: opacity 420ms ease, transform 420ms cubic-bezier(.22,.61,.36,1); }
.js .rv.is-in { opacity: 1; transform: none; }

/* ================================= RTL =================================== */
[dir="rtl"] body { font-family: 'Noto Naskh Arabic', var(--body); }
[dir="rtl"] .cut { clip-path: polygon(var(--chamfer) 0, 100% 0, 100% 100%, 0 100%, 0 var(--chamfer)); }
[dir="rtl"] .facet-rule i { clip-path: polygon(0 0, calc(100% - 5px) 0, 100% 100%, 5px 100%); }
[dir="rtl"] .lede { border-left: 0; border-right: 4px solid var(--accent); padding-left: 0; padding-right: 20px; }
[dir="rtl"] .hero__scrim { background:
  linear-gradient(266deg, rgba(10,28,35,.95) 0%, rgba(10,28,35,.88) 42%, rgba(10,28,35,.45) 72%, rgba(10,28,35,.25) 100%),
  radial-gradient(90% 120% at 18% 20%, rgba(16,153,198,.3), transparent 62%); }
[dir="rtl"] .crumbs li + li::before { margin-right: 0; margin-left: 8px; }
[dir="rtl"] .totop { right: auto; left: 20px; }

/* ============================= BREAKPOINTS =============================== */
@media (max-width: 1439px) { .game-grid { --gc: 4; } }

@media (max-width: 1200px) {
  :root { --side: 290px; --col-gap: 22px; }
}

@media (max-width: 1023px) {
  :root { --gutter: 20px; }
  .row { flex-direction: column; }
  .row__side { position: static; width: 100%; flex: 1 1 auto; }   /* reset sticky when stacked */
  .hero__grid { grid-template-columns: 1fr; gap: 28px; }
  .hero__in { padding-block: 54px 48px; }
  .game-grid { --gc: 3; }
  .game-grid--rel { --gc: 3; }
  .ec-grid[data-cols="4"] { --ec: 3; }
  .trust__in { grid-template-columns: repeat(2,1fr); }
  .ftr__in { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 28px; }
  .ftr__trust { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .entry, .box { padding: 28px 26px 32px; }
}

@media (max-width: 860px) {
  .nav { position: fixed; inset: 72px 0 auto; flex-direction: column; align-items: stretch;
    gap: 0; background: var(--chrome); border-bottom: 2px solid var(--accent);
    padding: 8px 20px 20px; transform: translateY(-140%); transition: transform var(--t); }
  .nav.is-open { transform: none; }
  .nav__a { height: 50px; font-size: 16px; padding: 0 6px; }
  .nav__a.is-active::after { left: 6px; right: auto; width: 26px; }
  .nav__cta { margin: 12px 0 0; min-height: 50px; font-size: 15px; }
  .burger { display: flex; }
  .apk-head__in { flex-direction: column; gap: 20px; }
  .apk-head__id { flex: 1 1 auto; width: 100%; }
}

@media (max-width: 767px) {
  body { font-size: 16px; }
  .game-grid { --gc: 2; }
  .game-grid--rel { --gc: 2; }
  .ec-grid[data-cols="4"], .ec-grid[data-cols="3"] { --ec: 2; }
  .hero__in { padding-block: 42px 40px; }
  .band { padding-block: 40px; }
  .entry, .box { padding: 24px 20px 28px; }
  .entry-h1 { font-size: 25px; }
  .lede p { font-size: 17px; }
  .cta-band { padding: 30px 22px 34px; }
  .faq__a { padding-right: 0; }
  .resp__in { flex-direction: column; gap: 16px; }
  .ftr__in { grid-template-columns: 1fr; }
  .apk-head__id img { width: 132px; height: 132px; }
}

@media (max-width: 519px) {
  .ec-grid[data-cols="4"], .ec-grid[data-cols="3"], .ec-grid[data-cols="2"] { --ec: 1; }
  .game-grid, .game-grid--rel { --gc: 1; }
  .trust__in { grid-template-columns: 1fr; }
  .ftr__trust { grid-template-columns: 1fr; }
  .hx-btn { width: 100%; }
  .hero__cta .hx-btn, .nf__cta .hx-btn, .cta-band__row .hx-btn { width: 100%; }
}

/* ========================== REDUCED MOTION =============================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .rv { opacity: 1; transform: none; }
  .tile:hover { transform: none; }
}
