@charset "utf-8";
/* ==========================================================================
   Yono Games — design system
   Layout language modelled on the Diwa Games reference: light neutral page,
   white 20px-radius boxes with a soft grey drop shadow, app cards with an
   accent bottom rule, uppercase box titles underlined by a short accent bar,
   pill buttons and tags, dark centred footer.
   Palette is our own (violet), not the reference's magenta / yellow.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --page: #eceef4;
  --card: #ffffff;
  --card-2: #f5f6fa;

  --ink: #3e3e52;          /* 10.4:1 on white */
  --muted: #63637a;        /*  5.8:1 on white */
  --label: #6e6e82;        /*  5.0:1 on white — box titles */

  --accent: #6d28d9;       /*  7.1:1 on white; white on it 7.1:1 */
  --accent-dk: #5b21b6;
  --accent-lt: #a78bfa;
  --accent-wash: #f1ebfe;

  --gold: #d97706;
  --line: #e4e5ee;
  --line-2: #eef0f6;

  --foot: #141428;
  --foot-ink: #d6d3ea;
  --foot-muted: #9e9ab8;

  --r: 20px;
  --r-sm: 12px;
  --pill: 999px;
  --sh: 2px 2px 2px #e3e3e3;
  --sh-lift: 0 8px 22px rgba(62, 62, 82, .14);

  --ease: cubic-bezier(.22, .78, .35, 1);
  --t: 180ms var(--ease);

  --wrap: 1180px;
  --nav-h: 66px;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--accent-dk); }
button { font: inherit; }
h1, h2, h3, h4 { margin: 0 0 .55em; color: var(--ink); font-weight: 700; line-height: 1.25; }
h1 { font-size: clamp(1.7rem, 3.6vw, 2.35rem); }
h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
h3 { font-size: 1.15rem; }
h4 { font-size: 1.02rem; }
p { margin: 0 0 1.05em; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 18px; border-radius: var(--pill);
  background: var(--accent); color: #fff; transition: top var(--t);
}
.skip-link:focus { top: 12px; color: #fff; }
.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;
}
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 16px; }

/* ---------- 3. Box (the core surface) ---------- */
.box {
  background: var(--card);
  border-radius: var(--r);
  box-shadow: var(--sh);
  padding: 20px 25px;
  margin-bottom: 18px;
}
.box--flush { padding: 20px 25px 8px; }
.box__title {
  position: relative;
  margin: 0 0 1.1rem;
  padding: 4px 0 15px;
  font-size: 1.06rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--label);
  border-bottom: 1px solid var(--line-2);
}
.box__title::after {
  content: ""; position: absolute; left: 0; bottom: -1px;
  width: 45px; height: 4px; border-radius: 2px; background: var(--accent);
}
.box__title a { float: right; font-size: .76rem; font-weight: 700; letter-spacing: .02em; text-transform: none; }

/* ---------- 4. Buttons + tags ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: .72rem 1.5rem; min-height: 46px;
  font-size: .92rem; font-weight: 700; color: #fff;
  background: var(--accent); border: 0; border-radius: var(--pill); cursor: pointer;
  transition: background var(--t), transform var(--t), box-shadow var(--t);
  text-align: center;
}
.btn:hover { color: #fff; background: var(--accent-dk); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(109, 40, 217, .28); }
.btn:active { transform: translateY(0); }
.btn--ghost { background: transparent; color: var(--accent); border: 2px solid var(--accent); }
.btn--ghost:hover { background: var(--accent); color: #fff; }
.btn--block { display: flex; width: 100%; }
.btn--lg { padding: .95rem 2rem; min-height: 52px; font-size: 1rem; }
.btn--sm { padding: .5rem 1rem; min-height: 38px; font-size: .82rem; }
.btn svg { flex: none; }

.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 .9rem; padding: 0; list-style: none; }
.tag {
  display: inline-flex; align-items: center; padding: .26rem .8rem;
  background: var(--accent); border-radius: var(--pill);
  color: #fff; font-size: .76rem; font-weight: 700;
}
a.tag:hover { background: var(--accent-dk); color: #fff; }
.tag--soft { background: var(--accent-wash); color: var(--accent-dk); }

/* ---------- 5. Header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 50;
  background: var(--card);
  border-radius: 0 0 var(--r) var(--r);
  box-shadow: var(--sh);
}
.hdr__in { display: flex; align-items: center; gap: 16px; min-height: var(--nav-h); padding-block: 8px; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand img { width: 42px; height: 42px; border-radius: 10px; }
.brand__name { font-size: 1.06rem; font-weight: 700; line-height: 1.15; }
.brand__name span {
  display: block; font-size: .62rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
}
.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__link {
  display: block; padding: .5rem .8rem; border-radius: var(--pill);
  color: var(--ink); font-size: .88rem; font-weight: 700;
  transition: color var(--t), background var(--t);
}
.nav__link:hover { color: var(--accent); background: var(--accent-wash); }
.nav__link.is-active { color: #fff; background: var(--accent); }
.nav__cta { margin-left: 6px; padding: .5rem 1.1rem; min-height: 40px; font-size: .86rem; }

.burger {
  display: none; margin-left: auto; width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: var(--card-2); border: 1px solid var(--line);
  border-radius: var(--r-sm); color: var(--ink); cursor: pointer; transition: background var(--t);
}
.burger:hover { background: var(--accent-wash); }
.burger__x { display: none; }
.burger[aria-expanded="true"] .burger__x { display: block; }
.burger[aria-expanded="true"] .burger__bars { display: none; }

/* ---------- 6. Search ---------- */
.search { display: flex; align-items: center; gap: 8px; width: 100%; }
.search__field {
  flex: 1 1 auto; min-width: 0; height: 48px; padding: 0 1.1rem;
  background: var(--card-2); border: 1px solid var(--line);
  border-radius: var(--pill); color: var(--ink); font-size: .95rem;
}
.search__field::placeholder { color: var(--muted); }
.search__btn {
  flex: none; width: 48px; height: 48px; display: grid; place-items: center;
  background: var(--accent); border: 0; border-radius: 50%; color: #fff; cursor: pointer;
  transition: background var(--t);
}
.search__btn:hover { background: var(--accent-dk); }
.searchbar { display: flex; align-items: center; gap: 16px; padding: 13px 18px; }
.searchbar .search { max-width: 760px; }

/* ---------- 7. Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  margin-bottom: 18px; padding: 3.4rem 0;
  border-radius: 0 0 var(--r) var(--r);
  text-align: center; color: #fff;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__veil {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(16, 14, 34, .74), rgba(16, 14, 34, .86));
}
.hero h1 { margin-bottom: .5rem; color: #fff; font-size: clamp(1.9rem, 4.4vw, 2.75rem); font-weight: 700; }
.hero__sub { max-width: 60ch; margin: 0 auto 1.6rem; color: rgba(255, 255, 255, .9); font-size: 1.02rem; }
.hero .search { max-width: 620px; margin: 0 auto 1.4rem; }
.hero .search__field { background: rgba(255, 255, 255, .96); border-color: transparent; }
.hero__stats { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin: 0; padding: 0; list-style: none; }
.hero__stats li {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .38rem .9rem; border-radius: var(--pill);
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22);
  color: #fff; font-size: .82rem; font-weight: 700;
}

/* ---------- 8. App cards ---------- */
.grid { display: grid; gap: 14px; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.acard {
  display: flex; flex-direction: column; text-align: center;
  padding: 15px; background: var(--card);
  border-radius: var(--r); border-bottom: 2px solid var(--accent);
  box-shadow: var(--sh); color: var(--ink); cursor: pointer;
  transition: transform var(--t), box-shadow var(--t);
}
.acard:hover { color: var(--ink); transform: translateY(-3px); box-shadow: var(--sh-lift); }
.acard__media { position: relative; margin-bottom: .8rem; }
.acard__media img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-sm); }
.acard__badge {
  position: absolute; top: 6px; left: 6px;
  padding: .16rem .5rem; border-radius: var(--pill);
  font-size: .62rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff;
}
.badge--new { background: #047857; }
.badge--hot { background: #be123c; }
.acard__name { margin: 0 0 .3rem; font-size: .92rem; font-weight: 700; line-height: 1.3; }
.acard__meta { margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: .78rem; line-height: 1.65; }
.acard__meta li { display: block; }
.acard__rate { display: inline-flex; align-items: center; gap: .25rem; color: var(--gold); font-weight: 700; }

/* Compact row used in sidebars ("recent posts" in the reference). */
.rlist { display: grid; gap: .8rem; margin: 0; padding: 0; list-style: none; }
.rrow { display: flex; align-items: center; gap: .75rem; color: var(--ink); }
.rrow:hover { color: var(--accent); }
.rrow img { width: 56px; height: 56px; flex: none; border-radius: var(--r-sm); object-fit: cover; }
.rrow__name { display: block; font-size: .88rem; font-weight: 700; line-height: 1.3; }
.rrow__meta { display: block; color: var(--muted); font-size: .74rem; line-height: 1.5; }

/* ---------- 9. App header (detail page) ---------- */
.apphead { display: grid; grid-template-columns: 180px 1fr; gap: 26px; }
.apphead__left { text-align: center; }
.apphead__icon {
  width: 180px; aspect-ratio: 1; margin-bottom: 1rem;
  border-radius: var(--r); overflow: hidden; box-shadow: var(--sh);
}
.apphead__icon img { width: 100%; height: 100%; object-fit: cover; }
.apphead__score { margin-top: .9rem; color: var(--muted); font-size: .82rem; }
.apphead__score b { display: block; color: var(--ink); font-size: 1.6rem; font-weight: 700; line-height: 1.1; }
.apphead__score b span { color: var(--muted); font-size: .9rem; font-weight: 600; }
.crumb { margin-bottom: .5rem; color: var(--muted); font-size: .84rem; }
.crumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.crumb li { display: flex; align-items: center; gap: .4rem; }
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--accent); }
.crumb [aria-current] { color: var(--accent); font-weight: 700; }
.apphead h1 { margin-bottom: .55rem; font-size: clamp(1.55rem, 3.2vw, 2.2rem); }
.apphead h1 small { margin-left: .4rem; color: var(--muted); font-size: .55em; font-weight: 600; }
.apphead__lede { margin-bottom: 1.1rem; color: var(--muted); }
.meta {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem 1.4rem; margin: 0 0 1.1rem; padding: 1.1rem 0 0;
  border-top: 1px solid var(--line-2);
}
.meta div { min-width: 0; }
.meta dt { color: var(--ink); font-size: .84rem; font-weight: 700; }
.meta dd { margin: .1rem 0 0; color: var(--muted); font-size: .88rem; }
.stars { display: inline-flex; gap: 1px; vertical-align: -3px; }
.star { fill: currentColor; }
.star--full, .star--half { color: var(--gold); }
.star--empty { color: var(--gold); opacity: .3; }

/* ---------- 10. Layout with sidebar ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; padding-top: 18px; }
.side { position: sticky; top: calc(var(--nav-h) + 14px); }
.side .box { padding: 18px 20px; }

/* ---------- 11. Article ---------- */
.prose { color: var(--ink); font-size: 1rem; line-height: 1.8; }
.prose h2 { margin-top: 1.7em; font-size: 1.4rem; }
.prose h3 { margin-top: 1.5em; color: var(--accent-dk); font-size: 1.15rem; }
.prose h4 { margin-top: 1.3em; }
.prose strong { color: var(--ink); font-weight: 700; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose-list { margin: 0 0 1.2em; padding: 0; list-style: none; }
.prose-list li { position: relative; padding-left: 1.45rem; margin-bottom: .5em; }
.prose-list li::before {
  content: ""; position: absolute; left: 0; top: .66em;
  width: 7px; height: 7px; border-radius: 2px; background: var(--accent);
}
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }

/* ---------- 12. Promo panel ---------- */
.promo {
  margin-bottom: 18px; padding: 2.2rem 1.5rem; text-align: center;
  background: linear-gradient(160deg, #1d1b3a, var(--foot));
  border-radius: var(--r); box-shadow: var(--sh);
}
.promo__art {
  width: 150px; height: 150px; margin: 0 auto 1.2rem;
  border-radius: var(--r); overflow: hidden;
  box-shadow: 0 0 0 3px rgba(167, 139, 250, .5), 0 12px 34px rgba(0, 0, 0, .45);
}
.promo h2 { margin-bottom: .4rem; color: var(--accent-lt); font-size: 1.5rem; letter-spacing: .02em; }
.promo p { max-width: 54ch; margin: 0 auto 1.4rem; color: var(--foot-ink); }

/* ---------- 13. Notice ---------- */
.notice {
  display: flex; gap: .8rem; padding: 1rem 1.1rem;
  background: #fff5f7; border: 1px solid #f6cfd8; border-left: 4px solid #be123c;
  border-radius: var(--r-sm);
}
.notice svg { flex: none; color: #be123c; }
.notice p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.6; }
.notice strong { display: block; margin-bottom: .15rem; color: var(--ink); }

/* ---------- 14. Responsible gambling ---------- */
.rg__lead { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1rem; }
.rg__ico {
  flex: none; width: 46px; height: 46px; display: grid; place-items: center;
  background: #fff5f7; border: 1px solid #f6cfd8; border-radius: var(--r-sm); color: #be123c;
}
.rg p { color: var(--muted); }
.rg p:last-of-type { margin-bottom: 0; }
.tips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.tips li {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .34rem .8rem; border-radius: var(--pill);
  background: var(--card-2); border: 1px solid var(--line);
  color: var(--muted); font-size: .8rem; font-weight: 600;
}
.tips svg { color: var(--accent); }

/* ---------- 15. Footer ---------- */
.ftr {
  margin-top: 18px; padding: 2.8rem 0 1.6rem;
  background: var(--foot); border-radius: var(--r) var(--r) 0 0;
  color: var(--foot-ink); text-align: center;
}
.ftr__brand { display: inline-flex; align-items: center; gap: 10px; margin-bottom: .9rem; color: #fff; }
.ftr__brand:hover { color: #fff; }
.ftr__brand img { width: 44px; height: 44px; border-radius: 11px; }
.ftr h2 { margin-bottom: .6rem; color: var(--accent-lt); font-size: 1.35rem; letter-spacing: .02em; }
.ftr__lede { max-width: 62ch; margin: 0 auto 1.5rem; color: var(--foot-ink); font-size: .94rem; }
.ftr__links { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin: 0 0 1.6rem; padding: 0; list-style: none; }
.ftr__links a {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .5rem 1.2rem; border-radius: var(--pill);
  border: 1px solid rgba(167, 139, 250, .45); color: var(--accent-lt);
  font-size: .88rem; font-weight: 700;
}
.ftr__links a:hover { background: rgba(167, 139, 250, .14); color: #fff; }
.ftr__note {
  max-width: 76ch; margin: 0 auto; padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
  color: var(--foot-muted); font-size: .84rem;
}
.ftr__base { margin-top: 1.2rem; color: var(--foot-muted); font-size: .85rem; }
.age {
  display: inline-grid; place-items: center; width: 30px; height: 30px; margin-left: .5rem;
  vertical-align: -9px; border: 2px solid var(--accent-lt); border-radius: 50%;
  color: var(--accent-lt); font-size: .7rem; font-weight: 700;
}

/* ---------- 16. Back to top ---------- */
.top {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 30;
  width: 46px; height: 46px; display: grid; place-items: center;
  background: var(--accent); border: 0; border-radius: 50%; color: #fff; cursor: pointer;
  box-shadow: 0 6px 18px rgba(62, 62, 82, .3);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity var(--t), transform var(--t), visibility var(--t), background var(--t);
}
.top.is-on { opacity: 1; visibility: visible; transform: none; }
.top:hover { background: var(--accent-dk); }

/* ---------- 17. Reveal ---------- */
.reveal { opacity: 0; transform: translateY(12px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity 380ms var(--ease), transform 380ms var(--ease); }

/* ---------- 18. Responsive ---------- */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid--5 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .layout { grid-template-columns: 1fr; }
  .side { position: static; }
}
@media (max-width: 900px) {
  .burger { display: flex; }
  .nav {
    position: absolute; inset: var(--nav-h) 8px auto; z-index: 45;
    margin: 0; padding: .7rem; background: var(--card);
    border-radius: var(--r-sm); box-shadow: var(--sh-lift);
    transform: translateY(-10px); opacity: 0; visibility: hidden;
    transition: opacity var(--t), transform var(--t), visibility var(--t);
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav__link { padding: .75rem 1rem; font-size: 1rem; border-radius: var(--r-sm); }
  .nav__cta { margin: .4rem 0 0; }
  .apphead { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 1.2rem; }
  .apphead__icon { width: 140px; }
  .crumb ol, .tags, .meta { justify-content: center; }
  .meta { grid-template-columns: repeat(2, minmax(0, 1fr)); text-align: left; }
  .searchbar { flex-direction: column; align-items: stretch; }
}
@media (max-width: 768px) {
  .grid, .grid--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .box { padding: 18px 16px; }
  .hero { padding: 2.4rem 0; }
}
@media (max-width: 560px) {
  .grid, .grid--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .meta { grid-template-columns: 1fr; }
  .acard { padding: 11px; }
  .hero .search { max-width: none; }
}

/* ---------- 19. Motion / print ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
@media print {
  .hdr, .top, .side, .hero, .promo, .ftr { display: none !important; }
  body { background: #fff; }
  .box { box-shadow: none; border: 1px solid #ddd; }
}

/* Keep every tile in a row the same height: reserve two lines for the name. */
.acard__name {
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.6em;
}
.acard__meta { margin-top: auto; }
