/* Royal Casino Pak — royal maroon & gold theme */
:root {
  --bg: #0d0606;
  --bg-2: #160909;
  --surface: #1d0d0c;
  --surface-2: #26110f;
  --maroon: #5a1414;
  --maroon-2: #7a1c18;
  --gold: #f2c45a;
  --gold-2: #ffe29a;
  --gold-3: #b9862b;
  --text: #f6ecdc;
  --muted: #c5b49b;
  --line: rgba(242, 196, 90, 0.18);
  --gold-grad: linear-gradient(180deg, #fff1c2 0%, #f6cf6a 38%, #c8902f 70%, #f1c55c 100%);
  --btn-grad: linear-gradient(180deg, #ffe08a 0%, #f2b93b 45%, #c98a1c 100%);
  --radius: 18px;
  --shadow-gold: 0 10px 40px -10px rgba(242, 185, 59, 0.55);
  --font-display: "Cinzel", Georgia, serif;
  --font-body: "Manrope", system-ui, -apple-system, Segoe UI, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 17px;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); }
.container { width: min(1140px, 100% - 32px); margin-inline: auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 6, 6, 0.86);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 16px; }
.brand img { height: 52px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 22px; }
.main-nav ul { display: flex; list-style: none; gap: 6px; }
.main-nav ul a {
  display: block; padding: 8px 14px; border-radius: 999px;
  color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px;
  transition: color .2s, background .2s;
}
.main-nav ul a:hover { color: var(--gold-2); background: rgba(242,196,90,.08); }
.main-nav ul a.active { color: #1b0c05; background: var(--btn-grad); }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.menu-toggle span { width: 20px; height: 2px; background: var(--gold); border-radius: 2px; transition: transform .25s, opacity .25s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn-download {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px;
  background: var(--btn-grad); color: #2a1404; text-decoration: none;
  font-weight: 800; letter-spacing: .02em;
  box-shadow: var(--shadow-gold), inset 0 1px 0 rgba(255,255,255,.6), inset 0 -2px 0 rgba(120,70,0,.35);
  transition: transform .2s, box-shadow .2s; overflow: hidden;
}
.btn-download svg { width: 20px; height: 20px; }
.btn-download::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(110deg, transparent, rgba(255,255,255,.65), transparent);
  transform: skewX(-20deg); animation: shine 3.2s ease-in-out infinite;
}
.btn-download:hover { transform: translateY(-2px); box-shadow: 0 16px 50px -10px rgba(242,185,59,.75); }
.btn-nav { padding: 10px 20px; font-size: 14px; }
.btn-hero { padding: 18px 40px; font-size: 19px; margin-top: 8px; animation: pulse 2.4s ease-in-out infinite; }
.btn-hero svg { width: 24px; height: 24px; }
@keyframes shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }
@keyframes pulse { 0%, 100% { box-shadow: var(--shadow-gold), 0 0 0 0 rgba(242,196,90,.45); } 50% { box-shadow: var(--shadow-gold), 0 0 0 14px rgba(242,196,90,0); } }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; text-align: center;
  padding: 56px 0 64px;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(122, 28, 24, 0.85), transparent 70%),
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(242,196,90,.08), transparent 70%),
    linear-gradient(180deg, #1a0808 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; }
.orb-1 { width: 340px; height: 340px; background: #c8902f; top: 10%; left: -120px; opacity: .22; animation: float 9s ease-in-out infinite; }
.orb-2 { width: 300px; height: 300px; background: #9b1d18; bottom: -80px; right: -90px; opacity: .45; animation: float 11s ease-in-out infinite reverse; }
.suit { position: absolute; font-size: 54px; color: var(--gold); opacity: .09; animation: float 8s ease-in-out infinite; }
.s1 { top: 14%; left: 8%; } .s2 { top: 22%; right: 9%; animation-delay: -2s; }
.s3 { bottom: 18%; left: 14%; animation-delay: -4s; } .s4 { bottom: 26%; right: 16%; animation-delay: -6s; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-18px) rotate(6deg); } }

.hero-inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.breadcrumb { font-size: 14px; color: var(--muted); display: flex; gap: 8px; }
.breadcrumb a { color: var(--gold); text-decoration: none; }
.hero-logo { position: relative; width: 190px; height: 190px; display: grid; place-items: center; margin-bottom: 6px; }
.hero-logo img { width: 168px; height: 168px; border-radius: 38px; position: relative; z-index: 1; box-shadow: 0 20px 60px -10px rgba(0,0,0,.8), 0 0 0 2px rgba(242,196,90,.5); animation: bob 5s ease-in-out infinite; }
.hero-logo .ring {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent, rgba(242,196,90,.9), transparent 35%, transparent 55%, rgba(242,196,90,.7), transparent 90%);
  animation: spin 7s linear infinite; filter: blur(2px);
  -webkit-mask: radial-gradient(circle, transparent 60%, #000 61%); mask: radial-gradient(circle, transparent 60%, #000 61%);
}
.hero-logo::before { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: radial-gradient(circle, rgba(242,196,90,.35), transparent 65%); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

.hero h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(30px, 6vw, 58px); line-height: 1.12; letter-spacing: .01em;
  max-width: 900px;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 18px rgba(242,185,59,.25));
}
.hero-lead { max-width: 720px; color: var(--muted); font-size: clamp(16px, 2.2vw, 19px); }

.rating { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 6px; }
.stars { display: flex; gap: 4px; }
.star { width: 26px; height: 26px; fill: rgba(242,196,90,.2); }
.star.on { fill: var(--gold); filter: drop-shadow(0 0 6px rgba(242,196,90,.6)); }
.star.half { fill: var(--gold); opacity: .55; }
.rating-text { font-size: 15px; color: var(--muted); }
.rating-text strong { color: var(--gold-2); font-size: 20px; }

.hero-chips { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 10px; }
.hero-chips li { font-size: 14px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.04); border: 1px solid var(--line); color: var(--text); }
.hero-chips b { color: var(--gold); font-weight: 700; margin-right: 4px; }

/* ---------- Article ---------- */
.article-wrap { padding: 56px 0 40px; }
.article { max-width: 820px; margin-inline: auto; }
.article .meta-line { font-size: 14px; color: var(--muted); margin-bottom: 26px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.article h2 {
  font-family: var(--font-display); color: var(--gold-2); font-size: clamp(23px, 3.4vw, 31px);
  line-height: 1.25; margin: 44px 0 14px; position: relative; padding-left: 18px;
}
.article h2::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 4px; border-radius: 4px; background: var(--btn-grad); }
.article h3 { font-size: 20px; color: var(--gold); margin: 28px 0 10px; }
.article p { margin-bottom: 16px; color: #eadfcd; }
.article ul, .article ol { margin: 0 0 18px 22px; color: #eadfcd; }
.article li { margin-bottom: 8px; }
.article li::marker { color: var(--gold); }
.article strong { color: var(--text); }

.toc { background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin: 8px 0 30px; }
.toc p { font-family: var(--font-display); color: var(--gold); font-weight: 700; margin-bottom: 8px; }
.toc ol { margin-bottom: 0; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--gold-2); }

.info-table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 10px 0 24px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 16px; }
.info-table th, .info-table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: 0; }
.info-table th { width: 42%; color: var(--gold); background: rgba(242,196,90,.06); font-weight: 700; }
.info-table td { background: var(--surface); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 14px 0 26px; }
.card { background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; transition: transform .25s, border-color .25s; }
.card:hover { transform: translateY(-4px); border-color: rgba(242,196,90,.45); }
.card .ico { font-size: 28px; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: rgba(242,196,90,.1); margin-bottom: 12px; }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; font-size: 15px; color: var(--muted); }

.steps { counter-reset: step; list-style: none; margin-left: 0 !important; }
.steps li { counter-increment: step; position: relative; padding: 14px 16px 14px 64px; margin-bottom: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.steps li::before { content: counter(step); position: absolute; left: 14px; top: 14px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--btn-grad); color: #2a1404; font-weight: 800; }

.notice { border-left: 4px solid var(--gold); background: rgba(242,196,90,.07); padding: 16px 20px; border-radius: 0 14px 14px 0; margin: 20px 0; }
.notice p { margin: 0; }
.inline-cta { text-align: center; margin: 34px 0; padding: 28px 20px; border-radius: var(--radius); background: radial-gradient(ellipse at top, rgba(122,28,24,.8), var(--surface)); border: 1px solid var(--line); }
.inline-cta p { color: var(--muted); margin-bottom: 14px; }

.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; overflow: hidden; }
.faq summary { cursor: pointer; padding: 16px 48px 16px 18px; font-weight: 700; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--gold); font-size: 24px; transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 18px 16px; margin: 0; color: var(--muted); }

.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 14px; }
.related a { display: block; padding: 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--text); font-weight: 700; transition: border-color .2s; }
.related a span { display: block; font-weight: 500; font-size: 14px; color: var(--muted); margin-top: 4px; }
.related a:hover { border-color: var(--gold); }

/* ---------- CTA band + footer ---------- */
.cta-band { padding: 40px 0; background: linear-gradient(90deg, #3d0e0d, #6a1915, #3d0e0d); border-block: 1px solid var(--line); }
.cta-inner { display: flex; align-items: center; gap: 24px; justify-content: space-between; }
.cta-inner img { width: 84px; height: 84px; border-radius: 20px; flex-shrink: 0; }
.cta-inner > div { flex: 1; }
.cta-inner h2 { font-family: var(--font-display); color: var(--gold-2); font-size: 24px; line-height: 1.3; }
.cta-inner p { color: var(--muted); font-size: 15px; }

.site-footer { padding: 48px 0 110px; background: #090404; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.4fr; gap: 32px; }
.site-footer .brand img { height: 60px; margin-bottom: 12px; }
.site-footer h3 { font-family: var(--font-display); color: var(--gold); font-size: 17px; margin-bottom: 10px; }
.site-footer p, .site-footer li { color: var(--muted); font-size: 15px; }
.site-footer ul { list-style: none; }
.site-footer ul a { color: var(--text); text-decoration: none; line-height: 2.1; }
.site-footer ul a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 18px; }
.footer-bottom p { font-size: 13px; color: #8f7f69; }

.sticky-download {
  position: fixed; left: 50%; bottom: 14px; transform: translate(-50%, 140%); z-index: 60;
  display: flex; align-items: center; gap: 10px; padding: 8px 22px 8px 8px; border-radius: 999px;
  background: var(--btn-grad); color: #2a1404; text-decoration: none; font-weight: 800; white-space: nowrap;
  box-shadow: 0 12px 40px -6px rgba(0,0,0,.7), var(--shadow-gold); transition: transform .35s ease;
}
.sticky-download img { width: 36px; height: 36px; border-radius: 50%; }
.sticky-download.show { transform: translate(-50%, 0); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 404 ---------- */
.notfound { min-height: 50vh; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .menu-toggle { display: flex; }
  .main-nav {
    position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 14px;
    padding: 16px; background: rgba(13,6,6,.98); border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
  }
  .main-nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .main-nav ul { flex-direction: column; gap: 4px; }
  .main-nav ul a { padding: 12px 16px; border-radius: 12px; font-size: 16px; }
  .btn-nav { padding: 14px; font-size: 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .cta-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .brand img { height: 44px; }
  .hero { padding: 36px 0 48px; }
  .hero-logo { width: 156px; height: 156px; }
  .hero-logo img { width: 136px; height: 136px; border-radius: 30px; }
  .btn-hero { width: 100%; max-width: 340px; padding: 17px 24px; font-size: 18px; }
  .info-table th, .info-table td { padding: 11px 12px; font-size: 15px; }
  .steps li { padding-left: 58px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
