/* ===========================================================
   Logan Gameroom — styles.css
   Zero-dependency, mobile-first, fast (great for Core Web Vitals).
   =========================================================== */

:root {
  --bg: #0b0b16;
  --bg-2: #11111f;
  --card: #16162a;
  --card-2: #1c1c34;
  --line: rgba(255, 255, 255, 0.08);
  --text: #eef0f7;
  --muted: #a6a8bd;
  --violet: #8b5cf6;
  --cyan: #22d3ee;
  --gold: #fbbf24;
  --radius: 16px;
  --maxw: 1080px;
  --grad: linear-gradient(100deg, #8b5cf6, #22d3ee 55%, #fbbf24);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--grad);
  color: #0b0b16;
  box-shadow: 0 8px 24px rgba(139, 92, 246, .35);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(34, 211, 238, .4); }
.btn--ghost {
  background: rgba(255, 255, 255, .04);
  border-color: var(--line);
  color: var(--text);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .09); transform: translateY(-2px); }
.btn--sm { padding: 9px 16px; font-size: 14px; }
.btn--full { width: 100%; }
.btn--pay {
  background: linear-gradient(100deg, #fbbf24, #f59e0b);
  color: #231a05;
  box-shadow: 0 8px 24px rgba(251, 191, 36, .35);
}
.btn--pay:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(245, 158, 11, .45); }
.btn--account {
  background: linear-gradient(100deg, #22c55e, #16a34a);
  color: #06230f;
  box-shadow: 0 8px 24px rgba(34, 197, 94, .3);
}
.btn--account:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(22, 163, 74, .4); }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 11, 22, .72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; }
.brand__name { font-size: 18px; letter-spacing: .2px; }
.nav__links { display: flex; align-items: center; gap: 22px; }
.nav__links a { color: var(--muted); font-weight: 600; font-size: 15px; transition: color .15s; }
.nav__links a:hover { color: var(--text); }
.nav__links .btn { color: #0b0b16; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 84px 16px 64px; overflow: hidden; }
.hero__glow {
  position: absolute;
  inset: -40% 0 auto 0;
  height: 520px;
  background:
    radial-gradient(60% 60% at 25% 20%, rgba(139, 92, 246, .35), transparent 60%),
    radial-gradient(50% 50% at 80% 10%, rgba(34, 211, 238, .28), transparent 60%);
  filter: blur(10px);
  pointer-events: none;
}
.hero__inner { position: relative; max-width: 820px; margin: 0 auto; text-align: center; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 13px;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 14px;
}
.hero__title { font-size: clamp(34px, 7vw, 62px); line-height: 1.08; font-weight: 800; letter-spacing: -1px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__sub { color: var(--muted); font-size: clamp(16px, 2.3vw, 19px); margin: 20px auto 30px; max-width: 620px; }
.hero__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  justify-content: center;
  margin-top: 36px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

/* ---------- Sections ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: 72px 16px; }
.section--alt { max-width: none; background: var(--bg-2); border-block: 1px solid var(--line); }
.section--alt .section__head,
.section--alt .steps { max-width: var(--maxw); margin-inline: auto; }
.section__head { text-align: center; margin-bottom: 42px; }
.section__title { font-size: clamp(26px, 4vw, 38px); font-weight: 800; letter-spacing: -.5px; }
.section__desc { color: var(--muted); margin-top: 12px; max-width: 560px; margin-inline: auto; }
.section__desc a { color: var(--cyan); font-weight: 600; }

/* ---------- Games grid ---------- */
.games {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 16px;
}
.game-card {
  position: relative;
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 18px;
  text-align: center;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.game-card__media {
  height: 96px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}
.game-card__img {
  max-height: 88px;
  max-width: 88px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .5));
}
.game-card__badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 3px 10px;
  border-radius: 999px;
}
.game-card__badge--hot { background: linear-gradient(90deg, #f43f5e, #fb923c); color: #230707; }
.game-card__badge--new { background: linear-gradient(90deg, #22d3ee, #34d399); color: #052019; }
.game-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, .5);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .4);
}
.game-card__name { font-size: 19px; font-weight: 800; }
.game-card__tag { color: var(--muted); font-size: 13px; margin: 4px 0 16px; }

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  padding: 0 16px;
}
.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
}
.step__num {
  display: inline-grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--grad);
  color: #0b0b16;
  font-weight: 800;
  font-size: 20px;
  margin-bottom: 14px;
}
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.contact-card {
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  transition: transform .18s ease, border-color .18s ease;
}
.contact-card:hover { transform: translateY(-4px); border-color: rgba(34, 211, 238, .5); }
.contact-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.contact-card__icon svg { width: 30px; height: 30px; fill: #fff; display: block; }
.brand-telegram  { background: #229ED9; }
.brand-whatsapp  { background: #25D366; }
.brand-facebook  { background: #1877F2; }
.brand-instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.brand-default   { background: linear-gradient(100deg, var(--violet), var(--cyan)); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.contact-card__label { font-weight: 800; font-size: 17px; }
.contact-card__val { color: var(--muted); font-size: 14px; }

.notice {
  margin-top: 28px;
  background: rgba(251, 191, 36, .08);
  border: 1px solid rgba(251, 191, 36, .3);
  border-radius: var(--radius);
  padding: 18px 20px;
  color: var(--text);
  font-size: 15px;
}
.notice strong { color: var(--gold); margin-right: 6px; }
.notice a { color: var(--cyan); font-weight: 600; }

/* ---------- Cashout rules ---------- */
.rules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}
.rule {
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 18px;
  text-align: center;
}
.rule__k { display: block; color: var(--muted); font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.rule__v { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.5px; }
.notes { max-width: 760px; margin: 38px auto 0; }
.notes h3 { font-size: 18px; font-weight: 800; margin-bottom: 16px; text-align: center; }
.note-list { list-style: none; counter-reset: n; display: grid; gap: 12px; padding: 0; }
.note-list li { position: relative; padding-left: 42px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.note-list li::before {
  counter-increment: n;
  content: counter(n);
  position: absolute;
  left: 0; top: 0;
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--grad);
  color: #0b0b16;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
}
.referral {
  max-width: 760px;
  margin: 30px auto 0;
  background: rgba(139, 92, 246, .1);
  border: 1px solid rgba(139, 92, 246, .35);
  border-radius: var(--radius);
  padding: 20px 24px;
  text-align: center;
  font-size: 16px;
  line-height: 1.6;
}
.referral strong { color: var(--gold); }

/* ---------- Messenger popup ---------- */
.msgr { position: fixed; right: 18px; bottom: 18px; z-index: 200; }
.msgr__btn {
  width: 60px; height: 60px; border-radius: 50%; border: none; cursor: pointer;
  display: grid; place-items: center;
  background: linear-gradient(45deg, #0a7cff, #9d36f6);
  box-shadow: 0 8px 24px rgba(10, 124, 255, .45);
  transition: transform .15s ease;
}
.msgr__btn:hover { transform: scale(1.06); }
.msgr__btn svg { fill: #fff; }
.msgr__panel {
  position: absolute; right: 0; bottom: 74px; width: 300px; max-width: 78vw;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .5); overflow: hidden;
  transform: translateY(10px) scale(.96); opacity: 0; pointer-events: none;
  transition: transform .18s ease, opacity .18s ease;
}
.msgr--open .msgr__panel { transform: translateY(0) scale(1); opacity: 1; pointer-events: auto; }
.msgr__head {
  position: relative; display: flex; align-items: center; gap: 10px;
  padding: 16px 18px; color: #fff;
  background: linear-gradient(45deg, #0a7cff, #9d36f6);
}
.msgr__head svg { fill: #fff; flex: none; }
.msgr__meta { display: flex; flex-direction: column; line-height: 1.2; }
.msgr__title { font-weight: 800; font-size: 16px; }
.msgr__sub { font-size: 12px; opacity: .85; }
.msgr__close { position: absolute; top: 8px; right: 12px; background: none; border: none; color: #fff; font-size: 22px; cursor: pointer; opacity: .85; line-height: 1; }
.msgr__body { padding: 16px 18px; color: var(--text); font-size: 14px; }
.msgr__greet { margin: 0 0 14px; color: var(--muted); line-height: 1.5; }
.msgr__cta {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 11px; border-radius: 999px; font-weight: 700; color: #fff;
  background: linear-gradient(45deg, #0a7cff, #9d36f6);
}
.msgr__cta svg { fill: #fff; }
.msgr__cta:hover { opacity: .92; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--bg-2); }
.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 32px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer__note { color: var(--muted); font-size: 13px; flex: 1 1 260px; }
.footer__links { display: flex; gap: 20px; }
.footer__links a { color: var(--muted); font-size: 14px; font-weight: 600; }
.footer__links a:hover { color: var(--text); }

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  .nav__links { gap: 14px; }
  .nav__links a:not(.btn) { display: none; }   /* keep nav clean on phones */
  .nav-hide-sm { display: none; }               /* drop "Get Started" on phones; keep the pay button */
  .hero { padding: 60px 16px 48px; }
  .section { padding: 56px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

/* ===========================================================
   Article / blog pages (generated by tools/build.mjs)
   =========================================================== */
.article { max-width: 820px; margin: 0 auto; padding: 36px 16px 72px; }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.crumbs__sep { opacity: .4; }
.crumbs [aria-current="page"] { color: var(--text); }

.article__head { margin-bottom: 6px; }
.article__title { font-size: clamp(28px, 5vw, 44px); font-weight: 800; line-height: 1.14; letter-spacing: -.5px; margin-top: 10px; }
.article__meta { color: var(--muted); font-size: 14px; margin-top: 12px; }
.article__hero { margin: 30px 0 6px; display: grid; place-items: center; }
.article__intro { font-size: 18px; line-height: 1.6; margin-top: 22px; }
.article__intro p { margin: 0; }
.article__intro a { color: var(--cyan); font-weight: 600; }

/* hero art */
.art-badge { position: relative; width: 150px; height: 150px; display: grid; place-items: center; }
.art-badge__glow { position: absolute; inset: 0; background: radial-gradient(circle at 50% 42%, rgba(139, 92, 246, .55), transparent 66%); filter: blur(14px); }
.art-badge__img { position: relative; width: 118px; height: 118px; object-fit: contain; border-radius: 26px; filter: drop-shadow(0 12px 28px rgba(0, 0, 0, .55)); }
.art-phone { width: 176px; height: auto; filter: drop-shadow(0 18px 42px rgba(0, 0, 0, .5)); }
.art-stack { position: relative; width: 150px; margin: 0 auto; display: grid; place-items: center; }
.art-spot { position: absolute; bottom: -6px; right: -6px; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #0b0b16; box-shadow: 0 10px 22px rgba(0, 0, 0, .45); }
.art-spot svg { width: 26px; height: 26px; }
.pagehero-art { width: 84px; height: 84px; border-radius: 20px; display: grid; place-items: center; margin: 28px auto 0; background: var(--grad); color: #0b0b16; box-shadow: 0 12px 30px rgba(139, 92, 246, .35); }
.pagehero-art svg { width: 40px; height: 40px; }

/* prose */
.prose { font-size: 16.5px; }
.prose h2 { font-size: clamp(22px, 3.4vw, 28px); font-weight: 800; letter-spacing: -.3px; margin: 40px 0 14px; }
.prose h3 { font-size: 19px; font-weight: 700; margin: 26px 0 10px; }
.prose p { margin: 0 0 16px; color: #d9dbe8; }
.prose a { color: var(--cyan); font-weight: 600; }
.prose a:hover { text-decoration: underline; }
.prose strong { color: var(--text); }
.prose em { color: var(--muted); }
.prose ul, .prose ol { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 11px; }
.prose li { position: relative; padding-left: 34px; color: #d9dbe8; line-height: 1.55; }
.prose ul > li::before { content: ""; position: absolute; left: 9px; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }
.prose ol { counter-reset: n; }
.prose ol > li { counter-increment: n; }
.prose ol > li::before { content: counter(n); position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 7px; background: var(--grad); color: #0b0b16; font-weight: 800; font-size: 13px; display: grid; place-items: center; }
.prose__also { font-weight: 600; color: var(--muted); margin-top: 6px; }
.prose__also a { color: var(--cyan); }

/* callouts */
.callout { border: 1px solid var(--line); background: var(--card); border-radius: 14px; padding: 16px 18px; margin: 22px 0; font-size: 15.5px; line-height: 1.55; }
.callout strong { color: var(--text); }
.callout a { color: var(--cyan); font-weight: 600; }
.callout--tip { border-color: rgba(34, 211, 238, .35); background: rgba(34, 211, 238, .08); }
.callout--warn { border-color: rgba(251, 191, 36, .35); background: rgba(251, 191, 36, .08); }

/* tables */
.ptable { width: 100%; border-collapse: collapse; margin: 18px 0 22px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.ptable th, .ptable td { text-align: left; padding: 12px 15px; font-size: 15px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ptable th { background: rgba(255, 255, 255, .03); color: var(--muted); font-weight: 700; width: 46%; }
.ptable td { color: #d9dbe8; }
.ptable tr:last-child th, .ptable tr:last-child td { border-bottom: none; }

/* link lists (hubs) */
.linklist { display: grid; gap: 10px; margin: 8px 0 18px; }
.linklist a { display: block; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--text); font-weight: 600; font-size: 15px; transition: border-color .15s, transform .15s, background .15s; }
.linklist a:hover { border-color: rgba(139, 92, 246, .5); background: var(--card-2); transform: translateX(3px); }

/* conversion band */
.cta-band { margin: 42px 0 6px; padding: 30px 26px; border-radius: 20px; text-align: center; border: 1px solid rgba(139, 92, 246, .3); background: linear-gradient(135deg, rgba(139, 92, 246, .16), rgba(34, 211, 238, .1) 58%, rgba(251, 191, 36, .13)); }
.cta-band__title { font-size: clamp(22px, 3.6vw, 30px); font-weight: 800; letter-spacing: -.4px; }
.cta-band__text { color: #e6e8f2; max-width: 560px; margin: 12px auto 20px; font-size: 15.5px; }
.cta-band__btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-band__fine { margin-top: 18px; font-size: 14px; color: var(--muted); }
.cta-band__fine a { color: var(--cyan); font-weight: 700; }

/* related */
.related { margin-top: 44px; }
.related__title { font-size: 20px; font-weight: 800; margin-bottom: 16px; }
.related__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.rel-card { display: flex; flex-direction: column; gap: 4px; padding: 15px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); transition: border-color .15s, transform .15s; }
.rel-card:hover { border-color: rgba(34, 211, 238, .5); transform: translateY(-3px); }
.rel-card__g { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); font-weight: 700; }
.rel-card__t { font-weight: 700; font-size: 15px; }

/* faq */
.faq { margin-top: 44px; }
.faq__title { font-size: 22px; font-weight: 800; margin-bottom: 14px; }
.faq__item { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; background: var(--card); overflow: hidden; }
.faq__q { cursor: pointer; padding: 15px 44px 15px 18px; font-weight: 700; font-size: 16px; list-style: none; position: relative; }
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after { content: "+"; position: absolute; right: 18px; top: 12px; font-size: 22px; font-weight: 400; color: var(--cyan); transition: transform .2s; }
.faq__item[open] .faq__q::after { transform: rotate(45deg); }
.faq__a { padding: 0 18px 16px; color: #d9dbe8; font-size: 15px; }
.faq__a p { margin: 0 0 10px; }
.faq__a p:last-child { margin: 0; }
.faq__a a { color: var(--cyan); font-weight: 600; }

/* guides hub */
.guidegrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin-top: 12px; }
.guidecol__h { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 800; margin-bottom: 12px; }
.guidecol__h img { border-radius: 8px; flex: none; }

/* games hub extras */
.games--hub { margin-top: 10px; }
.gc-dl { display: block; margin-top: 10px; font-size: 13px; color: var(--muted); font-weight: 600; }
.gc-dl:hover { color: var(--cyan); }
