/* Raja328 — casino info theme (dark / red / gold) */
:root {
  --bg: #0b0d11;
  --bg-2: #11141b;
  --bg-3: #171b24;
  --line: #242b39;
  --line-2: #313a4d;
  --red: #e0242e;
  --red-2: #b3161f;
  --gold: #f7c548;
  --gold-2: #d9a419;
  --green: #2ec27e;
  --text: #eef1f6;
  --muted: #a4adbc;
  --radius: 14px;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 0.6em; }
h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
.sr-only, .skip-link {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link:focus {
  position: fixed; top: 8px; left: 8px; width: auto; height: auto; clip: auto;
  background: var(--gold); color: #141414; padding: 8px 14px; border-radius: 8px; z-index: 300;
}
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.ico { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* Buttons */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 10px; border: 1px solid transparent;
  font-weight: 700; font-size: 0.98rem; cursor: pointer; text-align: center; line-height: 1.2;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-gold { background: linear-gradient(180deg, #ffd977, var(--gold) 45%, var(--gold-2)); color: #241a02; box-shadow: 0 6px 18px rgba(247, 197, 72, 0.25); }
.btn-red { background: linear-gradient(180deg, #f04750, var(--red) 45%, var(--red-2)); color: #fff; }
.btn-ghost { background: rgba(255, 255, 255, 0.04); border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-sm { padding: 8px 16px; font-size: 0.9rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 120;
  background: rgba(11, 13, 17, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.header-inner { display: flex; align-items: center; gap: 18px; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-crown { width: 34px; height: 26px; flex: none; }
.brand-name { font-weight: 800; font-size: 1.22rem; letter-spacing: 0.02em; }
.brand-name small { color: var(--muted); font-weight: 600; }
.nav-list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.nav-list a {
  display: block; padding: 9px 12px; border-radius: 8px; color: var(--muted); font-weight: 600; font-size: 0.95rem;
}
.nav-list a:hover { color: var(--text); background: var(--bg-3); text-decoration: none; }
.nav-list a.active { color: var(--gold); background: rgba(247, 197, 72, 0.08); }
.main-nav { margin-left: auto; }
.nav-search { display: flex; gap: 6px; padding: 6px 0; }
.nav-search input {
  width: 170px; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line-2);
  background: var(--bg-2); color: var(--text); font-size: 0.9rem;
}
.nav-search input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.nav-search button {
  padding: 8px 14px; border-radius: 8px; border: 0; background: var(--bg-3); color: var(--gold);
  font-weight: 700; cursor: pointer; font-size: 0.9rem;
}
.header-cta { display: flex; gap: 8px; align-items: center; }
.search-icon { display: none; color: var(--muted); padding: 6px; }
.hamburger { display: none; background: none; border: 0; cursor: pointer; padding: 10px 6px; }
.hamburger span { display: block; width: 24px; height: 2.6px; background: var(--text); margin: 5px 0; border-radius: 2px; }

/* Breadcrumbs */
.crumbs { font-size: 0.86rem; color: var(--muted); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; padding: 0; }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--line-2); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--gold); }
.crumbs [aria-current] { color: var(--text); }

/* Sections */
.section { padding: 54px 0; }
.section--alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 760px; margin: 0 auto 34px; text-align: center; }
.section-tag {
  display: inline-block; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); font-weight: 800; margin-bottom: 8px;
}
.section-sub { color: var(--muted); }
.text-center { text-align: center; }

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.38; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,13,17,0.55) 0%, rgba(11,13,17,0.82) 60%, var(--bg) 100%);
}
.hero__inner { position: relative; padding: 84px 0 70px; max-width: 840px; }
.hero h1 { margin-bottom: 14px; }
.hero .lead { font-size: clamp(1rem, 2.4vw, 1.15rem); color: #cfd6e2; max-width: 700px; }
.hero-badges { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0 26px; }
.badge {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(17, 20, 27, 0.75); font-size: 0.84rem; color: var(--muted);
}
.badge b { color: var(--text); font-weight: 700; }
.badge-18 {
  display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px;
  border-radius: 50%; border: 2px solid var(--gold); color: var(--gold); font-weight: 800; flex: none;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* Grids & cards */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.card {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); height: 100%;
}
.card__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 20px 22px 24px; }
.card__tag { font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); font-weight: 800; margin: 0 0 8px; }
.card--post h3, .card--promo h3 { font-size: 1.05rem; }
.card--post h3 a, .card--promo h3 a { color: var(--text); }
.card--post h3 a:hover, .card--promo h3 a:hover { color: var(--gold); }
.card__text { color: var(--muted); font-size: 0.94rem; }
.card__more { font-weight: 700; font-size: 0.92rem; white-space: nowrap; }
.feature { padding: 24px 22px; }
.feature__icon { color: var(--gold); margin-bottom: 10px; }
.feature__icon .ico { width: 30px; height: 30px; }
.feature p { color: var(--muted); font-size: 0.94rem; margin: 0; }

/* Split media rows */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 36px; align-items: center; }
.split img { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding-left: 36px; margin-bottom: 12px; color: var(--muted); }
.check-list li b { color: var(--text); }
.check-list .ico {
  position: absolute; left: 0; top: 2px; width: 24px; height: 24px; color: var(--green);
  background: rgba(46, 194, 126, 0.1); border-radius: 50%; padding: 3px;
}

/* Reviews */
.review { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.stars { color: var(--gold); letter-spacing: 3px; font-size: 0.95rem; }
.review blockquote { margin: 0; color: var(--muted); font-size: 0.95rem; flex: 1; }
.review figcaption { font-size: 0.85rem; color: var(--text); font-weight: 700; }
.review figcaption small { display: block; color: var(--muted); font-weight: 500; }

/* Glossary */
.glossary { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 14px 26px; }
.glossary dt { color: var(--gold); font-weight: 800; margin-top: 10px; }
.glossary dd { margin: 2px 0 0; color: var(--muted); font-size: 0.93rem; }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 860px; margin: 0 auto; }
.faq__item { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.faq__item summary {
  cursor: pointer; padding: 16px 20px; font-weight: 700; list-style: none; position: relative; padding-right: 44px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  color: var(--gold); font-size: 1.3rem; font-weight: 700;
}
.faq__item[open] summary::after { content: "–"; }
.faq__answer { padding: 0 20px 18px; color: var(--muted); font-size: 0.96rem; }
.faq__answer a { color: var(--gold); }

/* Notes */
.note {
  display: flex; gap: 14px; align-items: flex-start; border-radius: 12px; padding: 16px 18px;
  border: 1px solid var(--line-2); background: var(--bg-3); margin: 22px 0;
}
.note .ico { flex: none; margin-top: 3px; color: var(--gold); }
.note--warn { border-color: rgba(224, 36, 46, 0.45); background: rgba(224, 36, 46, 0.07); }
.note--warn .ico { color: var(--red); }
.note__title { font-weight: 800; margin: 0 0 4px; }
.note p:last-child { margin-bottom: 0; }

/* Article pages */
.page-head { max-width: 840px; margin: 0 auto 26px; }
.page-head h1 { margin-bottom: 12px; }
.page-head .card__tag { margin-bottom: 10px; }
.meta-line { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 0.88rem; margin: 0; }
.meta-line span { display: inline-flex; align-items: center; gap: 6px; }
.article-body { max-width: 800px; margin: 0 auto; font-size: 1.02rem; }
.article-body h2 { margin-top: 1.8em; }
.article-body h3 { margin-top: 1.4em; }
.article-body p { color: #d6dce6; }
.article-body ul li, .article-body ol li { color: #d6dce6; margin-bottom: 6px; }
.article-body figure { margin: 26px 0; }
.article-body figure img { border-radius: var(--radius); border: 1px solid var(--line); }
.article-body figcaption { font-size: 0.84rem; color: var(--muted); margin-top: 8px; text-align: center; }
.lead { font-size: 1.1rem; color: #d6dce6; }
.related { margin-top: 46px; }
.related h2 { font-size: 1.3rem; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 22px 0; border: 1px solid var(--line); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 0.94rem; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--bg-3); color: var(--gold); font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }
td { color: #d6dce6; }

/* Term definition lists (promo) */
.terms { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin: 22px 0; }
.terms div { display: grid; grid-template-columns: 220px 1fr; border-bottom: 1px solid var(--line); }
.terms div:last-child { border-bottom: 0; }
.terms dt { background: var(--bg-3); padding: 13px 16px; font-weight: 800; color: var(--gold); font-size: 0.9rem; }
.terms dd { margin: 0; padding: 13px 16px; color: #d6dce6; font-size: 0.96rem; }

/* Auth pages */
.auth-wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 34px; align-items: stretch; max-width: 1020px; margin: 0 auto; }
.auth-side { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); position: relative; min-height: 300px; }
.auth-side img { width: 100%; height: 100%; object-fit: cover; }
.auth-side figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 20px;
  background: linear-gradient(180deg, transparent, rgba(11, 13, 17, 0.92)); font-size: 0.9rem; color: #d6dce6;
}
.auth-form { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; }
.auth-form h1 { font-size: 1.6rem; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; font-size: 0.92rem; margin-bottom: 6px; }
.field input {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line-2);
  background: var(--bg); color: var(--text); font-size: 1rem;
}
.field input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.auth-note { font-size: 0.85rem; color: var(--muted); }
.auth-alt { text-align: center; margin-top: 18px; font-size: 0.92rem; color: var(--muted); }

/* Search page */
.search-hero { max-width: 760px; margin: 0 auto; }
.search-big { display: flex; gap: 8px; margin: 18px 0 22px; }
.search-big input {
  flex: 1; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-2);
  background: var(--bg-2); color: var(--text); font-size: 1rem;
}
.search-big input:focus { outline: 2px solid var(--gold); }
.search-big button { border: 0; border-radius: 12px; padding: 14px 24px; background: linear-gradient(180deg, #ffd977, var(--gold) 45%, var(--gold-2)); color: #241a02; font-weight: 800; cursor: pointer; }
.hot-tags { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.hot-tags a {
  padding: 7px 15px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); font-size: 0.88rem; background: var(--bg-2);
}
.hot-tags a:hover { color: var(--gold); border-color: var(--gold); text-decoration: none; }
.result-list { display: grid; gap: 14px; }
.result { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.result h3 { margin-bottom: 6px; }
.result h3 a { color: var(--text); }
.result h3 a:hover { color: var(--gold); }
.result p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.result .card__tag { margin: 0 0 6px; }

/* Footer */
.site-footer { background: #080a0d; border-top: 1px solid var(--line); margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 0.8fr 1fr 0.8fr; gap: 34px; padding: 48px 20px 30px; }
.footer-col h3 { font-size: 0.92rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul a { color: var(--muted); font-size: 0.93rem; }
.footer-col ul a:hover { color: var(--gold); }
.footer-brand p { color: var(--muted); font-size: 0.9rem; }
.footer-brand .brand { margin-bottom: 14px; }
.footer-legal { display: flex; gap: 12px; align-items: center; }
.footer-bottom { border-top: 1px solid var(--line); padding: 18px 20px; padding-bottom: 108px; }
.footer-bottom p { color: #77818f; font-size: 0.82rem; margin: 4px 0; }

/* Floating CTA (slot machine + coins) */
.float-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 150; pointer-events: none;
  padding: 0 14px calc(10px + env(safe-area-inset-bottom));
}
.float-cta__inner {
  pointer-events: auto; max-width: 880px; margin: 0 auto; display: flex; align-items: center; gap: 14px;
  background: linear-gradient(180deg, #171b24, #0e1118);
  border: 1px solid var(--line-2); border-radius: 16px; padding: 10px 16px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55);
}
.float-cta__machine { display: flex; gap: 4px; background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px; padding: 6px 8px; }
.reel { font-size: 1.15rem; line-height: 1; display: inline-block; animation: reelBob 2.6s ease-in-out infinite; }
.reel.r2 { animation-delay: 0.4s; }
.reel.r3 { animation-delay: 0.8s; }
@keyframes reelBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.float-cta__coins { display: flex; gap: 2px; }
.coin { font-size: 0.95rem; animation: coinFlip 3.2s ease-in-out infinite; }
.coin.c2 { animation-delay: 0.7s; }
.coin.c3 { animation-delay: 1.4s; }
@keyframes coinFlip { 0%, 100% { transform: rotateY(0); opacity: 0.75; } 50% { transform: rotateY(180deg); opacity: 1; } }
.float-cta__text { margin: 0 auto 0 4px; font-size: 0.82rem; color: var(--muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.float-cta .btn { padding: 10px 20px; font-size: 0.92rem; flex: none; }

/* Responsive */
@media (max-width: 1024px) {
  .split { grid-template-columns: 1fr; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 880px) {
  .search-icon { display: inline-flex; margin-left: auto; }
  .header-cta .btn-ghost { display: none; }
  .hamburger { display: block; }
  .main-nav {
    position: fixed; top: 66px; left: 0; right: 0; z-index: 119;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    padding: 10px 20px 18px; display: none; box-shadow: var(--shadow);
    max-height: calc(100vh - 66px); overflow-y: auto;
  }
  .main-nav.open { display: block; }
  .nav-list { flex-direction: column; gap: 2px; }
  .nav-list a { padding: 12px 10px; font-size: 1rem; }
  .nav-search { margin-top: 8px; }
  .nav-search input { flex: 1; width: auto; }
  .header-cta { order: 2; }
}
@media (max-width: 640px) {
  .section { padding: 40px 0; }
  .hero__inner { padding: 56px 0 48px; }
  .hero-cta .btn { flex: 1 1 auto; }
  .header-inner { gap: 10px; }
  .brand-crown { width: 27px; height: 20px; }
  .brand-name { font-size: 1.02rem; }
  .brand { gap: 7px; }
  .search-icon { display: none; }
  .header-cta .btn-gold { padding: 8px 12px; font-size: 0.85rem; }
  .float-cta { padding: 0 8px calc(8px + env(safe-area-inset-bottom)); }
  .float-cta__inner { gap: 8px; padding: 8px 10px; border-radius: 14px; }
  .float-cta__text, .float-cta__coins { display: none; }
  .float-cta .btn { flex: 1; padding: 10px 12px; }
  .reel { font-size: 1rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-bottom { padding-bottom: 96px; }
  .terms div { grid-template-columns: 1fr; }
  .terms dt { border-bottom: 0; padding-bottom: 0; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { min-height: 180px; }
  table { min-width: 480px; }
}
