/* 96FGG HK premium casino guide — original CSS, no external fonts or JS */
:root {
  --bg: #000000;
  --bg-elev: #111111;
  --surface: #171f2b;
  --surface-alt: #202a39;
  --border: rgba(217, 156, 145, 0.28);
  --border-strong: #d99c91;
  --text: #ffffff;
  --muted: #b79c93;
  --gold: #d99c91;
  --gold-bright: #feac90;
  --gold-deep: #943c20;
  --rose: #d99c91;
  --rose-light: #feac90;
  --terra: #943c20;
  --crimson: #d9353d;
  --warn-bg: rgba(217, 156, 145, 0.10);
  --max-w: 1120px;
  --radius: 16px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  --btn-grad: linear-gradient(to bottom, #d99c91 0%, #943c20 100%);
  --btn-dark: linear-gradient(to bottom, #222222 0%, #000000 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(148, 60, 32, 0.18), transparent 55%),
    radial-gradient(800px 400px at 0% 20%, rgba(217, 156, 145, 0.08), transparent 50%),
    var(--bg);
  color: var(--text);
  font-family: "PingFang HK", "Noto Sans TC", "Microsoft JhengHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.72;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold-bright); text-decoration: none; }
a:hover { color: #fff; text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 22px; }

/* Top legal strip */
.top-strip {
  background: #000000;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
  padding: 8px 0;
}
.top-strip .container {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; align-items: center;
}
.badge-18 {
  display: inline-block; background: var(--crimson); color: #fff;
  font-weight: 800; font-size: 11px; letter-spacing: 0.04em;
  padding: 2px 8px; border-radius: 999px; margin-right: 8px;
  border: 1px solid var(--gold);
}

/* Header */
.site-header {
  background: rgba(17, 17, 17, 0.94);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 30;
  backdrop-filter: blur(14px);
}
.nav-wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px 0;
}
.brand-link {
  display: inline-flex; align-items: center; gap: 10px;
  color: #fff; font-weight: 800; font-size: 18px; letter-spacing: 0.03em;
}
.brand-link:hover { text-decoration: none; color: var(--gold-bright); }
.nav-links {
  display: flex; flex-wrap: wrap; gap: 4px 4px; align-items: center;
  list-style: none; margin: 0; padding: 0; flex: 1; justify-content: flex-end;
}
.nav-links a {
  color: var(--text); font-size: 13px; padding: 6px 8px; border-radius: 999px; white-space: nowrap;
}
.nav-links a[aria-current="page"],
.nav-links a:hover {
  background: rgba(217, 156, 145, 0.12);
  color: var(--gold-bright);
  text-decoration: none;
}
.nav-cta { margin-left: 6px; }

/* Gold CTA */
.btn-gold, .btn-primary {
  display: inline-block;
  background: var(--btn-grad);
  color: #ffffff !important;
  font-weight: 700;
  padding: 13px 22px;
  border-radius: 10px;
  border: 1px solid #ffffff;
  font-size: 15px;
  text-align: center;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 18px rgba(148, 60, 32, 0.35);
  position: relative;
  overflow: hidden;
}
.btn-gold:hover, .btn-primary:hover {
  filter: brightness(1.08);
  text-decoration: none !important;
  color: #ffffff !important;
}
.btn-gold-lg { font-size: 17px; padding: 16px 32px; }

.btn-ghost, .btn-secondary {
  display: inline-block;
  background: var(--btn-dark);
  color: #ffffff !important;
  font-weight: 700;
  padding: 13px 22px;
  border-radius: 10px;
  border: 1px solid #d99c91;
  font-size: 15px;
  text-align: center;
}
.btn-ghost:hover, .btn-secondary:hover {
  background: #222222;
  text-decoration: none !important;
  color: #ffffff !important;
}

/* Heroes */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  padding: 36px 0 40px;
}
.hero-home {
  padding: 56px 0 64px;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(217, 156, 145, 0.16), transparent 50%),
    radial-gradient(ellipse at 10% 80%, rgba(148, 60, 32, 0.16), transparent 45%),
    linear-gradient(180deg, #111111 0%, #000000 100%);
}
.hero-home::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("/assets/img/hero-pattern.svg");
  background-size: 420px;
  opacity: 0.18;
  pointer-events: none;
  animation: drift 40s linear infinite;
}
.hero-glow {
  position: absolute; width: 520px; height: 520px; right: -40px; top: -80px;
  background: radial-gradient(circle, rgba(217, 156, 145, 0.22), transparent 68%);
  filter: blur(8px);
  pointer-events: none;
  animation: pulse 6s ease-in-out infinite;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 12px;
  background: rgba(217, 156, 145, 0.08);
}
h1 {
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.18;
  margin: 0 0 16px;
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-shadow: none;
}
.hero-home h1 {
  color: #ffffff;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  text-shadow: none;
}

h2 {
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.3;
  margin: 42px 0 16px;
  color: var(--gold-bright);
  font-weight: 800;
}
h2 .h-accent {
  display: inline-block;
  width: 8px; height: 1em;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold-deep));
  border-radius: 4px;
  margin-right: 10px;
  vertical-align: -0.12em;
}
h3 { font-size: 18px; margin: 22px 0 8px; color: #fff; }
.lead {
  font-size: 18px; color: var(--muted); max-width: 640px; margin: 0 0 26px;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-note { margin: 16px 0 0; color: var(--muted); font-size: 13px; }
.hero-visual {
  display: flex; justify-content: center;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.45));
  animation: floaty 7s ease-in-out infinite;
}
.hero-inner { padding: 32px 0 28px; }
.hero-inner .lead { margin-bottom: 18px; }

.breadcrumbs { font-size: 13px; color: var(--muted); padding: 16px 0 0; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs span { margin: 0 6px; }

main { padding-bottom: 72px; }

/* Trust badges */
.trust-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin: -28px auto 8px;
  position: relative;
  z-index: 2;
}
.trust-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 10px 12px;
  text-align: center;
  box-shadow: var(--shadow);
}
.trust-item img { margin: 0 auto 8px; }
.trust-item strong { display: block; font-size: 13px; color: var(--gold-bright); }
.trust-item span { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }

/* Game cards */
.game-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin: 8px 0 10px;
}
.game-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  color: inherit;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.game-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 16px 36px rgba(148, 60, 32, 0.22);
  text-decoration: none;
  color: inherit;
}
.game-art {
  aspect-ratio: 8 / 5;
  background: #111111;
  overflow: hidden;
}
.game-art img { width: 100%; height: 100%; object-fit: cover; }
.game-card h3 { margin: 12px 14px 4px; color: var(--gold-bright); font-size: 16px; }
.game-card p { margin: 0 14px 16px; color: var(--muted); font-size: 13px; line-height: 1.5; }

/* Promo strip */
.promo-strip {
  margin: 36px 0;
  padding: 28px 32px;
  border-radius: 18px;
  background: linear-gradient(110deg, #202a39 0%, #171f2b 50%, #111111 100%);
  border: 1px solid var(--border-strong);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 18px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 28px rgba(148, 60, 32, 0.18);
}
.promo-strip::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(217,156,145,0.14) 50%, transparent 70%);
  animation: shine 5.5s ease-in-out infinite;
  pointer-events: none;
}
.promo-strip h2 { margin: 0 0 8px; color: var(--gold-bright); }
.promo-strip p { margin: 0; color: var(--muted); max-width: 640px; font-size: 15px; }

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 12px 0 20px;
  counter-reset: step;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 18px 18px;
  position: relative;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(to bottom, #d99c91 0%, #943c20 100%);
  color: #ffffff; font-weight: 800; margin-bottom: 10px;
}
.step h3 { margin: 0 0 8px; color: var(--gold-bright); }
.step p { margin: 0; color: var(--muted); font-size: 14px; }

/* Generic cards / tables */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin: 18px 0;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.card h3 { margin-top: 0; color: var(--gold-bright); }
.card p { margin: 0 0 12px; color: var(--muted); font-size: 15px; }

.notice-box, .disclosure-box {
  background: var(--warn-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 22px 0;
  font-size: 14px;
}
.disclosure-box { background: var(--surface-alt); }
.notice-box strong, .disclosure-box strong { color: var(--gold-bright); }


.table-scroll { overflow-x: auto; margin: 18px 0; }
table {
  width: 100%; border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 14px;
  border-radius: 12px;
  overflow: hidden;
}
th, td { padding: 12px 14px; border: 1px solid var(--border); text-align: left; vertical-align: top; }
th { background: #111111; color: var(--gold-bright); font-weight: 700; }

ul.clean-list, ol.clean-list { padding-left: 22px; margin: 12px 0 18px; }
ul.clean-list li, ol.clean-list li { margin-bottom: 8px; }

details.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 10px;
}
details.faq-item summary {
  cursor: pointer; font-weight: 700; color: #fff; list-style: none;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::before { content: "＋ "; color: var(--gold); }
details.faq-item[open] summary::before { content: "－ "; }
details.faq-item p { margin: 10px 0 0; color: var(--muted); font-size: 15px; }

.cta-banner {
  background: linear-gradient(135deg, #171f2b 0%, #111111 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 40px 0 12px;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px;
  box-shadow: none;
}
.cta-banner h3 { margin: 0 0 6px; color: var(--gold-bright); }
.cta-banner p { margin: 0; color: var(--muted); font-size: 14px; max-width: 640px; }

/* Footer */
.site-footer {
  background: #110d0c;
  border-top: 1px solid var(--border);
  padding: 40px 0 28px;
  font-size: 14px;
  color: var(--muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}
.footer-grid h4 { color: var(--gold-bright); margin: 0 0 10px; font-size: 15px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 6px; }
.footer-legal {
  border-top: 1px solid var(--border);
  padding-top: 18px;
  font-size: 13px;
  line-height: 1.65;
}

/* Sticky mobile CTA */
.sticky-cta {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(17,17,17,0.85), #000000 45%);
  border-top: 1px solid var(--border-strong);
  backdrop-filter: blur(16px);
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.sticky-cta p { margin: 0; font-size: 12px; color: var(--muted); }
.sticky-cta .btn-gold { flex: 1; padding: 12px 16px; }

@keyframes pulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes shine {
  0% { transform: translateX(-40%); }
  100% { transform: translateX(40%); }
}
@keyframes drift {
  from { background-position: 0 0; }
  to { background-position: 420px 420px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 360px; margin: 0 auto; }
  .game-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-row { grid-template-columns: repeat(3, 1fr); margin-top: 18px; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 800px) {
  .sticky-cta { display: flex; }
  body { padding-bottom: 84px; }
  .nav-cta { display: none; }
}
@media (max-width: 640px) {
  .hero-home { padding: 32px 0 36px; }
  .trust-row { grid-template-columns: repeat(2, 1fr); }
  .game-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .btn-gold, .btn-ghost, .btn-primary, .btn-secondary { width: 100%; }
  .cta-row { width: 100%; }
}

h2 { padding-left: 14px; border-left: 4px solid var(--gold); }

.hero-inner .hero-visual img { width: min(100%, 420px); margin-left: auto; }
.hero-inner .hero-visual img[src*="icon-"],
.hero-inner .hero-visual img[src*="brand-mark"] { width: 160px; height: 160px; }

.nav-cta .btn-gold {
  padding: 8px 14px;
  font-size: 13px;
  border-radius: 8px;
}

/* Articles index & article layout */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 16px 0 28px;
}
.article-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  color: inherit;
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, border-color 0.22s ease;
}
.article-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  text-decoration: none;
  color: inherit;
}
.article-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--gold-bright);
  background: rgba(217, 156, 145, 0.12);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 10px;
  margin-bottom: 10px;
}
.article-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.38;
  color: #ffffff;
}
.article-card:hover h3 { color: var(--gold-bright); }
.article-card p {
  margin: 0 0 14px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.58;
}
.article-meta {
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 10px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.cat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 22px;
}
.cat-pill {
  display: inline-block;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
}
.cat-pill:hover {
  border-color: var(--border-strong);
  color: var(--gold-bright);
  text-decoration: none;
}
.article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 13px;
  color: var(--muted);
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin: 22px 0 18px;
}
.inline-cta {
  background: linear-gradient(120deg, #202a39 0%, #171f2b 65%, #111111 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 26px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.inline-cta strong { display: block; color: var(--gold-bright); font-size: 16px; margin-bottom: 4px; }
.inline-cta p { margin: 0; font-size: 13.5px; color: var(--muted); max-width: 620px; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 14px 0 24px;
}
@media (max-width: 960px) {
  .article-grid, .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .article-grid, .related-grid { grid-template-columns: 1fr; }
}
