/* ============================================================
   Dewakoin99 — Tema Kasino Hitam-Emas
   Palet: hitam #0d0d14 / #16161f, emas #f5b301→#ffd75e,
   merah #e63946, hijau #22c55e, biru info #3b82f6
   ============================================================ */
:root {
  --bg: #0d0d14;
  --bg2: #16161f;
  --bg3: #1e1e2a;
  --gold: #f5b301;
  --gold2: #ffd75e;
  --red: #e63946;
  --green: #22c55e;
  --blue: #3b82f6;
  --txt: #f2f2f5;
  --muted: #a3a3b3;
  --line: rgba(245, 179, 1, .18);
  --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(--txt);
  line-height: 1.75;
  font-size: 16px;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold2); text-decoration: none; }
a:hover { color: var(--gold); }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- 顶部公告条 ---------- */
.topbar {
  background: linear-gradient(90deg, #7a1010, var(--red), #7a1010);
  color: #fff; font-size: 13px; padding: 6px 0; text-align: center;
}
.topbar strong { color: var(--gold2); }

/* ---------- 头部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 900;
  background: rgba(13, 13, 20, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 18px; padding: 12px 20px; max-width: var(--maxw); margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { width: 44px; height: 44px; }
.brand-name { font-size: 22px; font-weight: 800; letter-spacing: .5px; color: var(--gold); }
.brand-name span { color: #fff; }
.main-nav { display: flex; gap: 4px; flex: 1; justify-content: center; flex-wrap: wrap; }
.main-nav a {
  color: var(--txt); font-size: 14px; font-weight: 600;
  padding: 8px 12px; border-radius: 8px; white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active { background: var(--bg3); color: var(--gold2); }
.header-cta { display: flex; gap: 10px; flex-shrink: 0; }
.btn {
  display: inline-block; font-weight: 700; font-size: 15px;
  padding: 10px 22px; border-radius: 10px; border: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease; text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: #1a1200; box-shadow: 0 4px 18px rgba(245, 179, 1, .35);
}
.btn-red {
  background: linear-gradient(135deg, #c1121f, var(--red));
  color: #fff; box-shadow: 0 4px 18px rgba(230, 57, 70, .35);
}
.btn-outline { background: transparent; color: var(--gold2); border: 1.5px solid var(--gold); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--gold); font-size: 22px; border-radius: 8px; padding: 4px 12px; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(ellipse at 70% 30%, rgba(245,179,1,.14), transparent 55%), var(--bg);
}
.hero-inner {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px;
  align-items: center; padding: 64px 20px 56px;
  max-width: var(--maxw); margin: 0 auto;
}
.hero h1 { font-size: clamp(28px, 4.2vw, 46px); line-height: 1.25; font-weight: 800; margin-bottom: 18px; }
.hero h1 .gold { color: var(--gold); }
.hero p.lead { color: var(--muted); font-size: 17px; margin-bottom: 26px; max-width: 560px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.hero-img { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.55); border: 1px solid var(--line); }
.hero-img img { width: 100%; }
.age-badge {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px solid var(--red); color: #fff; border-radius: 999px;
  padding: 5px 16px; font-size: 13px; font-weight: 700; background: rgba(230,57,70,.12);
}
.age-badge b { color: var(--red); }

/* ---------- 跑马灯 ---------- */
.marquee {
  background: var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden; white-space: nowrap; padding: 10px 0;
}
.marquee-track { display: inline-block; animation: mq 28s linear infinite; font-size: 14px; color: var(--muted); }
.marquee-track b { color: var(--gold); margin: 0 6px; }
@keyframes mq { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- 板块通用 ---------- */
.section { padding: 56px 0; }
.section.alt { background: var(--bg2); }
.section-title { text-align: center; margin-bottom: 12px; font-size: clamp(24px, 3vw, 34px); font-weight: 800; }
.section-title .gold { color: var(--gold); }
.section-sub { text-align: center; color: var(--muted); max-width: 720px; margin: 0 auto 40px; font-size: 15.5px; }

.grid { display: grid; gap: 20px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--bg3); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 22px;
  transition: transform .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--gold); }
.card .icon { font-size: 34px; margin-bottom: 14px; }
.card h3 { font-size: 18px; margin-bottom: 8px; color: var(--gold2); }
.card p { color: var(--muted); font-size: 14.5px; }

/* 支付方式 */
.pay-card { text-align: center; padding: 22px 14px; }
.pay-card .pay-logo {
  width: 54px; height: 54px; margin: 0 auto 12px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px; color: #fff;
}
.pay-card h3 { font-size: 15px; margin-bottom: 4px; }
.pay-card p { font-size: 13px; }

/* 比较表 */
.compare-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); }
table.compare { width: 100%; border-collapse: collapse; min-width: 640px; background: var(--bg3); }
table.compare th, table.compare td { padding: 14px 18px; text-align: left; font-size: 14.5px; border-bottom: 1px solid rgba(255,255,255,.06); }
table.compare th { background: linear-gradient(135deg, rgba(245,179,1,.16), rgba(245,179,1,.05)); color: var(--gold2); font-size: 15px; }
table.compare td.yes { color: var(--green); font-weight: 600; }
table.compare td.no { color: var(--red); }

/* 快速入门步骤 */
.steps { counter-reset: step; }
.step { display: flex; gap: 18px; align-items: flex-start; background: var(--bg3); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.step::before {
  counter-increment: step; content: counter(step);
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: #1a1200; font-weight: 800; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { font-size: 17px; margin-bottom: 4px; color: var(--gold2); }
.step p { color: var(--muted); font-size: 14.5px; }

/* 信任带 */
.trust-band { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.trust-item {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg3); border: 1px solid var(--line);
  padding: 12px 20px; border-radius: 999px; font-size: 14px; font-weight: 600;
}
.trust-item .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }

/* 促销卡 */
.promo-card { display: flex; flex-direction: column; }
.promo-card .promo-tag {
  align-self: flex-start; background: var(--red); color: #fff;
  font-size: 12px; font-weight: 700; padding: 3px 12px; border-radius: 999px; margin-bottom: 12px;
}
.promo-card .promo-value { font-size: 30px; font-weight: 800; color: var(--gold); margin-bottom: 6px; }
.promo-card ul { margin: 10px 0 16px 18px; color: var(--muted); font-size: 13.5px; }
.promo-card .btn { margin-top: auto; }

/* 文章正文 */
.article-hero { position: relative; border-radius: var(--radius); overflow: hidden; margin-bottom: 34px; border: 1px solid var(--line); }
.article-hero img { width: 100%; max-height: 420px; object-fit: cover; }
.article-body { max-width: 820px; margin: 0 auto; }
.article-body h1 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.3; margin-bottom: 18px; }
.article-body h2 { font-size: 23px; color: var(--gold2); margin: 36px 0 12px; }
.article-body p { margin-bottom: 16px; color: #d9d9e0; }
.article-body strong { color: var(--txt); }
.article-meta { color: var(--muted); font-size: 13.5px; margin-bottom: 26px; display: flex; gap: 16px; flex-wrap: wrap; }
.article-meta b { color: var(--gold); }

/* FAQ */
.faq-item { background: var(--bg3); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: none; color: var(--txt); font-family: var(--font); font-size: 16.5px; font-weight: 700; padding: 18px 22px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-q::after { content: "+"; color: var(--gold); font-size: 24px; flex-shrink: 0; transition: transform .2s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding: 0 22px 18px; color: var(--muted); font-size: 15px; }
.faq-item.open .faq-a { max-height: 400px; }

/* 面包屑 */
.breadcrumb { font-size: 13.5px; color: var(--muted); padding: 16px 0 0; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--gold2); }
.breadcrumb .sep { margin: 0 8px; color: var(--gold); }

/* 游戏大厅 */
.game-filters { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 30px; }
.game-filters button {
  background: var(--bg3); color: var(--txt); border: 1px solid var(--line);
  padding: 8px 20px; border-radius: 999px; font-family: var(--font); font-weight: 600; font-size: 14px; cursor: pointer;
}
.game-filters button.active, .game-filters button:hover { background: linear-gradient(135deg, var(--gold), var(--gold2)); color: #1a1200; border-color: transparent; }
.game-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.game-card {
  background: var(--bg3); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .2s, border-color .2s;
}
.game-card:hover { transform: translateY(-4px); border-color: var(--gold); }
.game-thumb { aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; font-size: 44px; position: relative; }
.game-thumb .rtp {
  position: absolute; top: 8px; right: 8px; background: rgba(13,13,20,.85);
  color: var(--green); font-size: 11.5px; font-weight: 700; padding: 2px 9px; border-radius: 999px;
}
.game-info { padding: 14px; }
.game-info h3 { font-size: 15px; margin-bottom: 2px; }
.game-info .provider { color: var(--muted); font-size: 12.5px; margin-bottom: 10px; }
.game-info .btn { width: 100%; padding: 8px; font-size: 13.5px; }

/* 标签云 */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.tag-cloud a {
  background: var(--bg3); border: 1px solid var(--line); color: var(--muted);
  padding: 6px 16px; border-radius: 999px; font-size: 13.5px;
}
.tag-cloud a:hover { color: #1a1200; background: linear-gradient(135deg, var(--gold), var(--gold2)); border-color: transparent; }

/* 搜索 */
.search-box { display: flex; max-width: 560px; margin: 0 auto 14px; gap: 10px; }
.search-box input {
  flex: 1; background: var(--bg3); border: 1px solid var(--line); border-radius: 10px;
  color: var(--txt); font-family: var(--font); font-size: 15px; padding: 12px 16px; outline: none;
}
.search-box input:focus { border-color: var(--gold); }
.search-results { max-width: 720px; margin: 18px auto 0; text-align: left; }
.search-results a { display: block; background: var(--bg3); border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; margin-bottom: 10px; color: var(--txt); }
.search-results a:hover { border-color: var(--gold); }
.search-results a small { display: block; color: var(--muted); margin-top: 4px; }

/* 表单页 */
.auth-wrap { max-width: 460px; margin: 0 auto; }
.auth-card { background: var(--bg3); border: 1px solid var(--line); border-radius: 18px; padding: 36px 30px; }
.auth-card h1 { font-size: 26px; text-align: center; margin-bottom: 6px; }
.auth-card .sub { text-align: center; color: var(--muted); font-size: 14px; margin-bottom: 26px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--gold2); }
.form-group input, .form-group select {
  width: 100%; background: var(--bg2); border: 1px solid var(--line); border-radius: 10px;
  color: var(--txt); font-family: var(--font); font-size: 15px; padding: 12px 14px; outline: none;
}
.form-group input:focus { border-color: var(--gold); }
.auth-card .btn { width: 100%; font-size: 16px; padding: 13px; }
.auth-alt { text-align: center; margin-top: 18px; font-size: 14px; color: var(--muted); }
.form-note { font-size: 12.5px; color: var(--muted); margin-top: 14px; text-align: center; }

/* CTA 大横幅 */
.cta-band {
  background: linear-gradient(135deg, rgba(245,179,1,.14), rgba(230,57,70,.10));
  border: 1px solid var(--line); border-radius: 20px;
  text-align: center; padding: 48px 24px;
}
.cta-band h2 { font-size: clamp(22px, 3vw, 32px); margin-bottom: 10px; }
.cta-band p { color: var(--muted); max-width: 620px; margin: 0 auto 24px; }

/* ---------- 页脚 ---------- */
.site-footer { background: #0a0a10; border-top: 1px solid var(--line); margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; padding: 48px 0 30px; }
.footer-grid h4 { color: var(--gold2); font-size: 15px; margin-bottom: 14px; }
.footer-grid a { display: block; color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.footer-grid a:hover { color: var(--gold2); }
.footer-brand p { color: var(--muted); font-size: 13.5px; margin-top: 10px; }
.footer-pay { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.footer-pay span { background: var(--bg3); border: 1px solid var(--line); border-radius: 8px; font-size: 12px; padding: 4px 12px; color: var(--muted); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06); padding: 18px 0 90px;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center;
  color: var(--muted); font-size: 13px;
}
.footer-badges { display: flex; gap: 10px; align-items: center; }
.badge-18 {
  width: 40px; height: 40px; border-radius: 50%; border: 2.5px solid var(--red);
  color: var(--red); font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.badge-rg { border: 1.5px solid var(--green); color: var(--green); border-radius: 999px; padding: 6px 14px; font-size: 12px; font-weight: 700; }

/* ---------- 底部悬浮老虎机按钮 ---------- */
.float-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
  pointer-events: none; overflow: hidden; max-width: 100vw;
}
.float-cta-inner {
  pointer-events: auto;
  max-width: 560px; margin: 0 auto; padding: 10px 14px 14px;
  position: relative;
}
@media (min-width: 821px) {
  .float-cta-inner { max-width: 460px; margin-left: auto; margin-right: 24px; }
}
.slot-machine {
  position: relative;
  background: linear-gradient(180deg, #2a1a00, #17100a);
  border: 2px solid var(--gold);
  border-radius: 18px;
  box-shadow: 0 -6px 40px rgba(245, 179, 1, .35), 0 0 0 4px rgba(13,13,20,.6);
  padding: 12px 14px 14px;
  overflow: hidden;
}
.slot-reels { display: flex; justify-content: center; gap: 8px; margin-bottom: 10px; }
.reel {
  width: 52px; height: 40px; background: linear-gradient(180deg, #fffdf5, #ffe9a8); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800; color: #c1121f;
  text-shadow: 0 1px 0 #fff;
  box-shadow: inset 0 -6px 10px rgba(0,0,0,.18), 0 0 12px rgba(245,179,1,.45);
  animation: reelGlow 1.6s ease-in-out infinite;
}
.reel:nth-child(2) { animation-delay: .2s; }
.reel:nth-child(3) { animation-delay: .4s; }
@keyframes reelGlow { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.float-btns { display: flex; gap: 10px; }
.float-btns a {
  flex: 1; text-align: center; font-weight: 800; font-size: 17px; letter-spacing: 1px;
  padding: 12px 0; border-radius: 12px; position: relative; overflow: hidden;
}
.float-btns .f-daftar {
  background: linear-gradient(135deg, var(--gold), var(--gold2)); color: #1a1200;
  animation: pulseGold 1.8s ease-in-out infinite;
}
.float-btns .f-masuk {
  background: linear-gradient(135deg, #c1121f, var(--red)); color: #fff;
  animation: pulseRed 1.8s ease-in-out infinite .4s;
}
@keyframes pulseGold {
  0%,100% { box-shadow: 0 0 0 0 rgba(245,179,1,.55); }
  50% { box-shadow: 0 0 0 9px rgba(245,179,1,0); }
}
@keyframes pulseRed {
  0%,100% { box-shadow: 0 0 0 0 rgba(230,57,70,.55); }
  50% { box-shadow: 0 0 0 9px rgba(230,57,70,0); }
}
/* 金币雨 */
.coin {
  position: absolute; top: 0; left: 0; font-size: 17px; line-height: 1;
  pointer-events: none; z-index: 3; width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  animation: coinFall linear infinite;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.6));
}
@keyframes coinFall {
  0% { transform: translateY(-26px) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  85% { opacity: 1; }
  100% { transform: translateY(150px) rotate(320deg); opacity: 0; }
}
.slot-machine > *:not(.coin) { position: relative; z-index: 2; }

/* 页面主体底部留白，避免被悬浮条遮挡 */
body { padding-bottom: 96px; }
@media (min-width: 821px) { body { padding-bottom: 0; } .footer-bottom { padding-bottom: 18px; } }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .game-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; padding: 40px 20px; }
  .hero-img { order: -1; }
  .header-inner { flex-wrap: wrap; }
  .header-cta { margin-left: auto; }
  .main-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bg2); flex-direction: column; padding: 12px;
    border-bottom: 1px solid var(--line);
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .header-cta .btn { padding: 8px 14px; font-size: 13.5px; }
  .grid-3 { grid-template-columns: 1fr; }
  .game-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  body { font-size: 15px; }
  .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .game-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .brand-name { font-size: 18px; }
  .brand img { width: 36px; height: 36px; }
  .header-inner { gap: 10px; padding: 10px 14px; }
  .float-btns a { font-size: 15px; }
  .reel { width: 44px; height: 34px; font-size: 18px; }
  .cta-band { padding: 34px 18px; }
  table.compare th, table.compare td { padding: 10px 12px; font-size: 13.5px; }
}
