/* ============================================================
   Nusabet88 — Tema Kasino (WordPress-style static build)
   Palet: ungu gelap, emas, merah, hijau, biru, putih
   ============================================================ */
:root {
  --bg: #12081f;
  --bg-2: #1b0f2e;
  --bg-3: #241340;
  --card: #1e1136;
  --line: rgba(255, 255, 255, 0.09);
  --gold: #f5b301;
  --gold-2: #ffd75e;
  --red: #e63946;
  --pink: #ff5d8f;
  --green: #2fbf71;
  --blue: #3d8bfd;
  --purple: #8b5cf6;
  --text: #f3eefc;
  --muted: #b9a8d9;
  --radius: 14px;
  --maxw: 1180px;
  --font: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-2); text-decoration: none; }
a:hover { color: var(--gold); }
h1, h2, h3, h4 { line-height: 1.3; font-weight: 700; }
h1 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); }
h2 { font-size: clamp(1.3rem, 2.6vw, 1.9rem); margin-bottom: 1rem; }
h3 { font-size: 1.15rem; }
p { margin-bottom: 1rem; color: #e6ddf5; }
ul, ol { margin: 0 0 1rem 1.25rem; color: #e6ddf5; }
li { margin-bottom: 0.4rem; }
table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: 0.95rem; display: block; overflow-x: auto; }
table thead, table tbody { display: table; width: 100%; min-width: 560px; }
th, td { padding: 0.7rem 0.9rem; border: 1px solid var(--line); text-align: left; }
th { background: var(--bg-3); color: var(--gold-2); }
tr:nth-child(even) td { background: rgba(255, 255, 255, 0.02); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 18px; }
.section { padding: 56px 0; }
.section-alt { background: var(--bg-2); }
.kicker { color: var(--gold); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.78rem; margin-bottom: 0.5rem; }
.lead { font-size: 1.06rem; color: var(--muted); }
.text-center { text-align: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 900;
  background: rgba(18, 8, 31, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-in { display: flex; align-items: center; gap: 16px; padding: 10px 18px; max-width: var(--maxw); margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { height: 44px; width: auto; }
.brand span { font-weight: 800; font-size: 1.15rem; color: #fff; letter-spacing: 0.02em; }
.brand span b { color: var(--gold); }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; }
.main-nav a {
  display: block; padding: 8px 13px; border-radius: 8px;
  color: var(--text); font-size: 0.92rem; font-weight: 500;
}
.main-nav a:hover, .main-nav a.active { background: rgba(245, 179, 1, 0.14); color: var(--gold-2); }
.nav-toggle {
  display: none; margin-left: auto; background: var(--bg-3); color: var(--gold-2);
  border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font-size: 1.1rem; cursor: pointer;
}
.header-cta { display: flex; gap: 8px; flex-shrink: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 11px 22px; border-radius: 10px;
  font-weight: 700; font-size: 0.95rem; cursor: pointer; border: 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: linear-gradient(135deg, #ffd75e, #f5b301 55%, #d99300); color: #2b1a00 !important; box-shadow: 0 4px 18px rgba(245, 179, 1, 0.35); }
.btn-outline { background: transparent; border: 1.5px solid var(--gold); color: var(--gold-2) !important; }
.btn-green { background: linear-gradient(135deg, #43e08a, #2fbf71); color: #062b17 !important; }
.btn-red { background: linear-gradient(135deg, #ff6b77, #e63946); color: #fff !important; }
.btn-sm { padding: 8px 16px; font-size: 0.86rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 500px at 70% -10%, rgba(139, 92, 246, 0.35), transparent 60%),
              radial-gradient(900px 420px at 10% 110%, rgba(230, 57, 70, 0.22), transparent 60%), var(--bg);
}
.hero-in { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 36px; align-items: center; padding: 64px 0 56px; }
.hero h1 { margin-bottom: 1rem; }
.hero h1 .hl { color: var(--gold); }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 1.2rem 0 1.6rem; }
.hero-badges span {
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.05);
  padding: 6px 14px; border-radius: 999px; font-size: 0.82rem; color: var(--muted);
}
.hero-badges span b { color: var(--gold-2); }
.hero-img { border-radius: 18px; overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5); border: 1px solid var(--line); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Marquee ---------- */
.marquee { background: linear-gradient(90deg, #2a1550, #3a1030); border-block: 1px solid var(--line); overflow: hidden; max-width: 100vw; }
.marquee-in { display: inline-flex; gap: 48px; white-space: nowrap; padding: 10px 0; animation: mq 30s linear infinite; font-size: 0.88rem; color: var(--gold-2); will-change: transform; }
@keyframes mq { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(245, 179, 1, 0.45); }
.card .ico { font-size: 1.9rem; margin-bottom: 0.7rem; display: inline-block; }
.card h3 { margin-bottom: 0.5rem; color: #fff; }
.card p { color: var(--muted); font-size: 0.93rem; margin: 0; }
.card-img { padding: 0; overflow: hidden; }
.card-img img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.card-img .card-body { padding: 20px 22px 24px; }
.tag { display: inline-block; font-size: 0.72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; letter-spacing: 0.06em; text-transform: uppercase; }
.tag-red { background: rgba(230, 57, 70, 0.18); color: #ff8a94; }
.tag-green { background: rgba(47, 191, 113, 0.16); color: #6fe3a5; }
.tag-blue { background: rgba(61, 139, 253, 0.16); color: #8ab8ff; }
.tag-purple { background: rgba(139, 92, 246, 0.2); color: #c4a8ff; }
.tag-gold { background: rgba(245, 179, 1, 0.16); color: var(--gold-2); }
.tag-pink { background: rgba(255, 93, 143, 0.16); color: #ff9ebb; }

/* ---------- Game lobby ---------- */
.lobby-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.game-tile {
  position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background: var(--bg-3); display: block;
}
.game-tile img { aspect-ratio: 4/3; object-fit: cover; width: 100%; transition: transform 0.3s ease; }
.game-tile:hover img { transform: scale(1.06); }
.game-tile .gt-label {
  position: absolute; inset-inline: 0; bottom: 0; padding: 26px 14px 12px;
  background: linear-gradient(transparent, rgba(10, 4, 20, 0.92));
  font-weight: 700; color: #fff; font-size: 0.95rem;
}
.game-tile .gt-label small { display: block; font-weight: 400; color: var(--muted); font-size: 0.78rem; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 16px; }
.step { display: flex; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.step::before {
  counter-increment: step; content: counter(step);
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #2b1a00;
  display: grid; place-items: center; font-weight: 800; font-size: 1.1rem;
}
.step h3 { margin-bottom: 0.25rem; }
.step p { margin: 0; font-size: 0.92rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-item { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; background: var(--card); overflow: hidden; }
.faq-item summary {
  cursor: pointer; padding: 16px 20px; font-weight: 600; color: #fff; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--gold); font-size: 1.3rem; font-weight: 700; flex-shrink: 0; }
.faq-item[open] summary::after { content: "−"; }
.faq-item .faq-a { padding: 0 20px 18px; color: var(--muted); font-size: 0.94rem; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { padding: 14px 0; font-size: 0.85rem; color: var(--muted); border-bottom: 1px solid var(--line); }
.breadcrumb ol { list-style: none; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--gold-2); }
.breadcrumb [aria-current] { color: var(--gold-2); }

/* ---------- Article ---------- */
.article-hero { border-radius: 18px; overflow: hidden; margin: 26px 0; border: 1px solid var(--line); }
.article-body { max-width: 820px; margin: 0 auto; }
.article-body h2 { margin-top: 2.2rem; color: var(--gold-2); }
.article-body h3 { margin-top: 1.6rem; color: #fff; }
.article-meta { color: var(--muted); font-size: 0.85rem; margin-bottom: 1.4rem; display: flex; gap: 16px; flex-wrap: wrap; }
.callout {
  border-left: 4px solid var(--gold); background: rgba(245, 179, 1, 0.07);
  padding: 14px 18px; border-radius: 0 10px 10px 0; margin: 1.4rem 0; font-size: 0.94rem;
}
.callout-green { border-color: var(--green); background: rgba(47, 191, 113, 0.07); }
.callout-red { border-color: var(--red); background: rgba(230, 57, 70, 0.07); }

/* ---------- Promo ---------- */
.promo-card { display: grid; grid-template-columns: 0.9fr 1.1fr; overflow: hidden; padding: 0; }
.promo-card img { width: 100%; height: 100%; object-fit: cover; min-height: 220px; }
.promo-card .card-body { padding: 26px; }
.promo-terms { font-size: 0.85rem; color: var(--muted); background: rgba(255, 255, 255, 0.03); border-radius: 10px; padding: 12px 16px; margin-top: 12px; }
.promo-terms li { margin-bottom: 0.25rem; }

/* ---------- Tag cloud ---------- */
.tagcloud { display: flex; flex-wrap: wrap; gap: 10px; }
.tagcloud a {
  border: 1px solid var(--line); background: var(--card); color: var(--muted);
  padding: 6px 14px; border-radius: 999px; font-size: 0.84rem;
}
.tagcloud a:hover { border-color: var(--gold); color: var(--gold-2); }

/* ---------- Search ---------- */
.search-box { display: flex; gap: 10px; max-width: 560px; margin: 0 auto; }
.search-box input {
  flex: 1; min-width: 0; background: var(--bg-3); border: 1px solid var(--line); color: var(--text);
  border-radius: 10px; padding: 12px 16px; font-size: 0.95rem; font-family: inherit;
}
.search-box input:focus { outline: 2px solid rgba(245, 179, 1, 0.5); border-color: var(--gold); }
.search-results { margin-top: 26px; text-align: left; }
.search-hit { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin-bottom: 12px; }
.search-hit:hover { border-color: rgba(245, 179, 1, 0.45); }
.search-hit h3 { color: var(--gold-2); margin-bottom: 4px; }
.search-hit p { font-size: 0.88rem; margin: 0; color: var(--muted); }

/* ---------- Auth forms ---------- */
.auth-wrap { max-width: 460px; margin: 0 auto; }
.auth-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 34px 30px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.form-group input, .form-group select {
  width: 100%; background: var(--bg-3); border: 1px solid var(--line); color: var(--text);
  border-radius: 10px; padding: 12px 14px; font-size: 0.95rem; font-family: inherit;
}
.form-group input:focus { outline: 2px solid rgba(245, 179, 1, 0.5); border-color: var(--gold); }
.form-note { font-size: 0.82rem; color: var(--muted); margin-top: 6px; }
.form-check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.86rem; color: var(--muted); }
.form-check input { margin-top: 5px; }

/* ---------- Floating CTA (slot machine style) ---------- */
.float-cta {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: 14px; z-index: 950;
  display: flex; gap: 10px; align-items: center;
  background: rgba(20, 10, 36, 0.94); border: 1px solid rgba(245, 179, 1, 0.4);
  border-radius: 999px; padding: 8px 10px 8px 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), 0 0 24px rgba(245, 179, 1, 0.18);
  backdrop-filter: blur(10px);
}
.float-reels { display: flex; gap: 4px; }
.float-reels .reel {
  width: 34px; height: 40px; border-radius: 8px; overflow: hidden; position: relative;
  background: linear-gradient(#fff8e6, #ffe9b0); border: 2px solid var(--gold);
  display: grid; place-items: center; font-size: 1.15rem; font-weight: 800; color: #c22;
}
.reel-strip { display: flex; flex-direction: column; animation: spin 1.6s cubic-bezier(.2,.6,.3,1) infinite; }
.reel:nth-child(2) .reel-strip { animation-duration: 2.1s; }
.reel:nth-child(3) .reel-strip { animation-duration: 2.6s; }
.reel-strip span { height: 40px; display: grid; place-items: center; }
@keyframes spin { 0% { transform: translateY(0); } 70% { transform: translateY(-240px); } 100% { transform: translateY(-240px); } }
.float-btns { display: flex; gap: 8px; }
.float-btn {
  position: relative; overflow: visible;
  padding: 12px 22px; border-radius: 999px; font-weight: 800; font-size: 0.95rem;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(245,179,1,.45);} 50% { box-shadow: 0 0 0 9px rgba(245,179,1,0);} }
.coin {
  position: fixed; bottom: 70px; width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe89a, #f5b301 60%, #a86e00);
  border: 2px solid #ffdf7e; z-index: 949; pointer-events: none;
  animation: coinfly 1.4s ease-in forwards;
}
@keyframes coinfly {
  0% { opacity: 0; transform: translateY(0) scale(0.4) rotateY(0); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-160px) scale(1) rotateY(720deg); }
}

/* ---------- Footer ---------- */
.site-footer { background: #0d0618; border-top: 1px solid var(--line); margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; padding: 48px 0 30px; }
.site-footer h4 { color: var(--gold-2); margin-bottom: 12px; font-size: 0.98rem; }
.site-footer ul { list-style: none; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--muted); font-size: 0.9rem; }
.site-footer a:hover { color: var(--gold-2); }
.site-footer p { font-size: 0.88rem; color: var(--muted); }
.footer-bottom { border-top: 1px solid var(--line); padding: 18px 0 90px; font-size: 0.8rem; color: #8d7cab; }
.age-badge {
  display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  border: 3px solid var(--red); color: var(--red); font-weight: 800; font-size: 0.95rem; margin-right: 12px;
}
.footer-legal { display: flex; gap: 14px; align-items: flex-start; margin-top: 16px; }

/* ---------- Misc ---------- */
.notice-18 { background: rgba(230, 57, 70, 0.1); border: 1px solid rgba(230, 57, 70, 0.35); border-radius: 12px; padding: 14px 18px; font-size: 0.88rem; color: #ffc9ce; margin: 18px 0; }
.divider-coins { height: 4px; background: repeating-linear-gradient(90deg, var(--gold) 0 14px, transparent 14px 26px); opacity: 0.35; border-radius: 2px; margin: 8px 0 0; }
.page-head { padding: 40px 0 10px; }
.page-head p { max-width: 760px; }
.list-check { list-style: none; margin-left: 0; }
.list-check li { padding-left: 28px; position: relative; }
.list-check li::before { content: "✔"; position: absolute; left: 0; color: var(--green); font-weight: 700; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-in { grid-template-columns: 1fr; padding: 44px 0; }
  .header-in { flex-wrap: wrap; }
  .header-cta { margin-left: auto; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .lobby-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .promo-card { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .header-in { flex-wrap: nowrap; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 10px 18px 16px;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav a { padding: 11px 12px; }
  .header-cta .btn-outline { display: none; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .float-cta { width: calc(100% - 20px); justify-content: space-between; padding: 8px 10px; }
  .float-reels .reel { width: 28px; height: 34px; font-size: 0.95rem; }
  .reel-strip span { height: 34px; }
  @keyframes spin { 0% { transform: translateY(0); } 70% { transform: translateY(-204px); } 100% { transform: translateY(-204px); } }
  .float-btn { padding: 10px 14px; font-size: 0.85rem; }
  .section { padding: 40px 0; }
}
@media (max-width: 460px) {
  .grid-4, .lobby-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .search-box { flex-direction: column; }
}
