﻿/* ===== RSG雷神之鎚 全站樣式 ===== */
:root {
  --gold: #FFA301;
  --gold2: #FFC401;
  --bg: #000036;
  --bg2: #000b3b;
  --bg3: #00061f;
  --white: #ffffff;
  --text: #ffffff;
  --text-muted: rgba(255,255,255,0.65);
  --border: rgba(255,163,1,0.2);
  --radius: 8px;
  --max-w: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'PingFang TC', 'Microsoft JhengHei', 'Noto Sans TC', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
}
a { color: var(--white); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { color: var(--gold); font-family: 'Roboto', sans-serif; font-weight: 700; line-height: 1.35; }
h1 { font-size: clamp(24px, 4vw, 36px); }
h2 { font-size: clamp(20px, 3vw, 28px); }
h3 { font-size: clamp(17px, 2.5vw, 22px); }
p { margin-bottom: 1.2em; color: rgba(255,255,255,0.85); }
ul { list-style: none; }

/* ===== HEADER ===== */
#site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid #e8e8e8;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
  height: 72px;
}
.header-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 16px;
}
.header-logo a { display: flex; align-items: center; }
.header-logo img { height: 52px; width: auto; max-width: 140px; object-fit: contain; }
.header-nav { display: flex; align-items: center; gap: 4px; }
.header-nav .nav-item {
  color: #333; font-size: 14px; font-weight: 500;
  padding: 8px 12px; border-radius: 4px;
  white-space: nowrap; transition: color .2s;
  border-bottom: 2px solid transparent;
}
.header-nav .nav-item:hover, .header-nav .nav-item.active { color: #FFA301; border-bottom-color: #FFA301; }
.header-right { display: flex; align-items: center; gap: 8px; }
.btn-play {
  background: linear-gradient(135deg, #8B6914, #FFA301);
  color: #fff !important; font-size: 13px; font-weight: 700;
  padding: 8px 16px; border-radius: 4px;
  display: flex; align-items: center; gap: 6px;
  white-space: nowrap; transition: opacity .2s;
}
.btn-play:hover { opacity: .9; color: #fff !important; }
.btn-search {
  background: none; border: 1px solid #ddd; width: 34px; height: 34px;
  border-radius: 6px; cursor: pointer; color: #555;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.btn-search:hover { border-color: #FFA301; color: #FFA301; }
.nav-burger {
  display: none; background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 4px;
}
.nav-burger span { display: block; width: 22px; height: 2px; background: #333; border-radius: 2px; }

/* Search Overlay */
.header-search-overlay {
  display: none; position: fixed; top: 72px; left: 0; right: 0;
  background: #fff; border-bottom: 2px solid #FFA301;
  padding: 14px 24px; z-index: 999;
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
}
.header-search-overlay.open { display: block; }
.header-search-overlay input {
  width: 100%; max-width: 600px; padding: 9px 14px;
  border: 1px solid #ddd; border-radius: 6px; font-size: 15px;
  outline: none; display: block; margin: 0 auto;
}

/* Mobile Nav */
.mobile-nav-menu {
  display: none; position: fixed; top: 72px; left: 0; right: 0; bottom: 0;
  background: #fff; z-index: 998; padding: 20px 24px;
  flex-direction: column; gap: 0; overflow-y: auto;
}
.mobile-nav-menu.open { display: flex; }
.mobile-nav-menu a {
  color: #1a1a1a; font-size: 16px; font-weight: 600;
  padding: 13px 0; border-bottom: 1px solid #f0f0f0;
  text-decoration: none;
}
.mobile-nav-menu a:hover { color: #FFA301; }

/* ===== LAYOUT ===== */
.page-wrap { padding-top: 72px; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
section { padding: clamp(40px, 7vw, 72px) 0; }

/* ===== SECTION TAGS / TITLES ===== */
.section-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,163,1,0.12); border: 1px solid rgba(255,163,1,0.4);
  color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: 1px;
  padding: 5px 14px; border-radius: 20px; margin-bottom: 14px;
}
.section-title { font-size: clamp(26px, 4vw, 38px); font-weight: 900; margin-bottom: 8px; }
.section-sub { font-size: 15px; color: var(--text-muted); margin-bottom: clamp(20px, 3.5vw, 40px); }
.text-center { text-align: center; }

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, #8B6914, #FFA301, #FFC401, #FFA301);
  background-size: 200% 200%; animation: shimmer 3s ease infinite;
  color: #000036 !important; font-weight: 700; font-size: 16px;
  padding: 14px 32px; border-radius: var(--radius);
  transition: transform .2s; box-shadow: 0 4px 20px rgba(255,163,1,0.3);
}
.btn-primary:hover { transform: translateY(-2px); color: #000036 !important; }
@keyframes shimmer { 0%,100%{background-position:0% 50%} 50%{background-position:100% 50%} }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  border: 2px solid var(--gold); color: var(--gold) !important;
  font-weight: 700; font-size: 15px; padding: 12px 28px;
  border-radius: var(--radius); transition: all .2s;
}
.btn-outline:hover { background: var(--gold); color: #000036 !important; }

/* ===== CARDS ===== */
.card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
  transition: transform .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(255,163,1,0.4); }

/* ===== NEWS GRID ===== */
.news-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.news-card {
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden; text-decoration: none;
  transition: all .2s; display: block;
}
.news-card:hover { border-color: rgba(255,163,1,0.4); transform: translateY(-4px); }
.news-card img { width: 100%; height: 160px; object-fit: cover; }
.news-card-body { padding: 18px; }
.news-card-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.news-tag {
  font-size: 11px; color: var(--gold); font-weight: 700; letter-spacing: 1px;
  background: rgba(255,163,1,0.1); padding: 3px 10px; border-radius: 20px;
}
.news-date { font-size: 12px; color: var(--text-muted); }
.news-title { font-size: 14px; font-weight: 700; color: var(--white); line-height: 1.5; }

/* ===== FEATURED GRID ===== */
.featured-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 48px; }
.featured-card {
  border-radius: 14px; overflow: hidden; text-decoration: none;
  display: block; transition: all .2s; border: 1px solid var(--border);
}
.featured-card:hover { border-color: rgba(255,163,1,0.4); transform: translateY(-4px); }
.featured-card img { width: 100%; height: 220px; object-fit: cover; }
.featured-card-body { padding: 24px; background: rgba(255,255,255,0.04); }
.featured-card-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.featured-card h3 { font-size: 18px; font-weight: 800; color: #fff; margin-bottom: 10px; }
.featured-card p { font-size: 13px; color: var(--text-muted); }

/* ===== HIGHLIGHT BOX ===== */
.highlight-box {
  background: linear-gradient(135deg, rgba(255,163,1,.08), rgba(255,163,1,.03));
  border: 1px solid rgba(255,163,1,.5); border-radius: var(--radius);
  padding: 24px 28px; margin: 28px 0;
}
.highlight-box h3 { font-size: 17px; color: var(--gold); margin-bottom: 10px; }
.highlight-box p { font-size: 14px; margin: 0; }

/* ===== CTA SECTION ===== */
.cta-section {
  background: linear-gradient(135deg, var(--bg2), var(--bg));
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  text-align: center; padding: 80px 0;
}

/* ===== FOOTER ===== */
.site-footer {
  background: rgba(0,0,30,.97); border-top: 1px solid var(--border);
  padding: 48px 0 0;
}
.site-footer .footer-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.site-footer .footer-top {
  display: flex; gap: 48px; flex-wrap: wrap;
  padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.07);
}
.site-footer .footer-brand { flex: 0 0 220px; min-width: 160px; }
.site-footer .footer-brand img { height: 60px; width: auto; display: block; margin-bottom: 14px; }
.site-footer .footer-desc { font-size: 13px; color: rgba(255,255,255,.55); line-height: 1.7; }
.site-footer .footer-col { flex: 1; min-width: 120px; }
.site-footer .footer-col-title {
  font-size: 11px; color: var(--gold); font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 16px;
}
.site-footer .footer-col-links { display: flex; flex-direction: column; gap: 10px; }
.site-footer .footer-col-links a { font-size: 14px; color: rgba(255,255,255,.55); transition: color .2s; }
.site-footer .footer-col-links a:hover { color: var(--gold); }
.site-footer .footer-social-row { display: flex; gap: 10px; }
.site-footer .footer-social-row a {
  width: 38px; height: 38px; border-radius: 8px;
  background: rgba(255,255,255,.05); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.55); transition: all .2s;
}
.site-footer .footer-social-row a:hover { background: rgba(255,163,1,.15); border-color: var(--gold); color: var(--gold); }
.site-footer .footer-bottom {
  padding: 16px 0; display: flex; align-items: center;
}
.site-footer .footer-copy { font-size: 12px; color: rgba(255,255,255,.4); }

/* ===== FLOAT CTA ===== */
.float-cta {
  position: fixed; bottom: 20px; right: 16px; z-index: 500;
  animation: floatBounce 2.2s ease-in-out infinite;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,.5));
}
.float-cta img { width: clamp(90px,10vw,120px); }
@keyframes floatBounce {
  0%,100% { transform: scale(1) rotate(-2deg); }
  50% { transform: scale(1.07) rotate(2deg); }
}

/* ===== MOBILE BAR ===== */
.mobile-bar {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 600;
  background: #fff; border-top: 1px solid #eee;
  padding: 3px 8px; justify-content: space-around; align-items: center;
}
.mobile-bar a { display: flex; flex-direction: column; align-items: center; font-size: 11px; color: #666; text-decoration: none; gap: 4px; flex: 1; min-height: 48px; justify-content: center; }
.mobile-bar a svg { width: 20px; height: 20px; }
.mobile-bar a.active { color: var(--gold); }
.mobile-bar .m-play { background: linear-gradient(135deg,#8B6914,#FFA301); color: #fff !important; padding: 8px 20px; border-radius: 6px; font-weight: 700; font-size: 13px; }

/* ===== PAGE HERO ===== */
.page-hero {
  min-height: 480px; display: flex; align-items: center;
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #000036 0%, #000b3b 60%, #00061f 100%);
  border-bottom: 1px solid var(--border);
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(0,0,30,.35);
}
.page-hero-inner {
  max-width: var(--max-w); margin: 0 auto; padding: clamp(36px, 5vw, 60px) 24px;
  display: flex; align-items: center; justify-content: space-between;
  position: relative; z-index: 1; width: 100%; gap: clamp(24px, 3.5vw, 40px);
}
.page-hero-text { flex: 1; max-width: 580px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,163,1,.15); border: 1px solid var(--gold);
  color: var(--gold); font-size: 13px; font-weight: 600;
  padding: 6px 14px; border-radius: 20px; margin-bottom: 16px;
}
.page-hero h1 { font-size: clamp(28px,5vw,52px); font-weight: 900; color: #fff; margin-bottom: 14px; }
.page-hero h1 span { color: var(--gold); }
.page-hero p { font-size: 16px; line-height: 1.8; color: rgba(255,255,255,.75); margin-bottom: 28px; }
.page-hero-image { flex: 0 0 auto; }
.page-hero-image img { max-height: 380px; object-fit: contain; filter: drop-shadow(0 20px 60px rgba(255,163,1,.2)); }

/* ===== ARTICLE STYLES ===== */
.art-hero { background: var(--bg2); border-bottom: 1px solid var(--border); padding: 48px 24px 0; }
.art-hero-inner { max-width: 800px; margin: 0 auto; }
.art-cat {
  display: inline-block; background: rgba(255,163,1,.12);
  border: 1px solid rgba(255,163,1,.5); color: #FFC401;
  font-size: 11px; letter-spacing: 2px; font-weight: 700;
  padding: 4px 12px; border-radius: 2px; margin-bottom: 16px;
  text-decoration: none; text-transform: uppercase;
}
.art-hero h1 { font-family: 'Noto Serif TC', serif; font-size: clamp(22px,3.5vw,36px); font-weight: 900; color: #fff; margin-bottom: 20px; }
.art-hero h1 span { color: #FFC401; }
.art-meta { display: flex; gap: 20px; align-items: center; padding-bottom: 32px; flex-wrap: wrap; }
.art-meta-item { font-size: 13px; color: rgba(255,255,255,.45); }
.art-hero-img { margin-top: 32px; border-radius: 8px 8px 0 0; overflow: hidden; border: 1px solid var(--border); border-bottom: none; }
.art-hero-img img { width: 100%; display: block; max-height: 480px; object-fit: cover; }
.art-wrap { max-width: 800px; margin: 0 auto; padding: clamp(28px, 4vw, 40px) 24px clamp(48px, 7vw, 80px); }
.art-body h2 { font-family: 'Noto Serif TC', serif; font-size: clamp(17px,2.5vw,24px); font-weight: 700; color: #FFC401; margin: 40px 0 16px; padding-left: 14px; border-left: 4px solid var(--gold); line-height: 1.4; }
.art-body h3 { font-family: 'Noto Serif TC', serif; font-size: 18px; font-weight: 700; color: #fff; margin: 28px 0 12px; }
.art-body p { font-size: 15px; color: rgba(255,255,255,.8); line-height: 1.9; margin-bottom: 18px; }
.art-body strong { color: #fff; font-weight: 700; }
.art-body ul { list-style: none; padding: 0; margin-bottom: 18px; display: flex; flex-direction: column; gap: 10px; }
.art-body ul li { font-size: 15px; color: rgba(255,255,255,.8); padding-left: 22px; position: relative; line-height: 1.8; }
.art-body ul li::before { content: '✦'; position: absolute; left: 0; color: var(--gold); font-size: 10px; top: 5px; }
.art-cta { text-align: center; background: linear-gradient(135deg,rgba(255,163,1,.08),rgba(255,163,1,.03)); border: 1px solid rgba(255,163,1,.5); border-radius: 8px; padding: 32px; margin: 40px 0; }
.art-cta p { color: rgba(255,255,255,.8); margin-bottom: 20px; font-size: 15px; }
.btn-gold { display: inline-block; background: linear-gradient(135deg,#6B4F0D,#FFA301,#FFC401,#FFA301); background-size: 200% 200%; animation: shimmer 3s ease infinite; color: #000036 !important; font-weight: 700; font-size: 15px; padding: 14px 36px; border-radius: 4px; text-decoration: none; box-shadow: 0 4px 24px rgba(255,163,1,.3); transition: transform .2s; }
.btn-gold:hover { transform: translateY(-2px); color: #000036 !important; }
.related { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--border); }
.related h2 { font-size: 20px; color: #FFC401; margin-bottom: 20px; padding-left: 14px; border-left: 4px solid var(--gold); }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 16px; }
.related-card { background: rgba(0,0,50,.6); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; text-decoration: none; transition: border-color .3s, transform .2s; }
.related-card:hover { border-color: rgba(255,163,1,.5); transform: translateY(-2px); }
.related-card img { width: 100%; height: 130px; object-fit: cover; }
.related-card-body { padding: 14px; }
.related-card h3 { font-size: 14px; font-weight: 700; color: var(--white); line-height: 1.5; }

/* ===== LEGAL PAGES ===== */
.legal-section { padding: 64px 0 80px; }
.legal-wrap { background: rgba(0,0,50,.7); border: 1px solid var(--border); border-radius: 16px; padding: 48px; max-width: 900px; margin: 0 auto; }
.legal-wrap h2 { font-size: 20px; color: var(--gold); margin: 32px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.legal-wrap h2:first-child { margin-top: 0; }
.legal-wrap p { font-size: 15px; line-height: 1.85; color: rgba(255,255,255,.82); margin-bottom: 14px; }
.legal-wrap ul { list-style: none; padding: 0; margin-bottom: 14px; }
.legal-wrap ul li { font-size: 14px; color: rgba(255,255,255,.75); padding: 4px 0 4px 20px; position: relative; line-height: 1.8; }
.legal-wrap ul li::before { content: '·'; position: absolute; left: 6px; color: var(--gold); font-size: 18px; line-height: 1.4; }
.legal-wrap .updated { font-size: 13px; color: rgba(255,255,255,.4); margin-bottom: 28px; }
.legal-cta { background: rgba(255,163,1,.08); border: 1px solid rgba(255,163,1,.25); border-radius: 12px; padding: 32px; text-align: center; margin-top: 48px; }
.legal-cta p { font-size: 15px; color: rgba(255,255,255,.8); margin-bottom: 20px; }

/* ===== PERFORMANCE ===== */
.rsg-freegame, .rsg-bg-section, .rsg-faq, .rsg-symbols-payout,
.news-section, .rsg-section, .news-archive-hero {
  content-visibility: auto;
  contain-intrinsic-size: auto 500px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .header-nav { display: none; }
  .nav-burger { display: flex; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .featured-grid { grid-template-columns: 1fr; }
  .page-hero-inner { flex-direction: column; text-align: center; }
  .page-hero-image img { max-height: 240px; }
  .mobile-bar { display: flex; }
  body { padding-bottom: 60px; }
  .float-cta { bottom: 70px; }
  .legal-wrap { padding: 28px 20px; }
}
@media (max-width: 600px) {
  .news-grid { grid-template-columns: 1fr; }
  .site-footer .footer-top { flex-direction: column; gap: 28px; text-align: center; }
  .site-footer .footer-brand { flex-basis: auto; }
  .site-footer .footer-brand img { margin-left: auto !important; margin-right: auto !important; }
  .site-footer .footer-social-row { justify-content: center; }
  .site-footer .footer-bottom { justify-content: center; text-align: center; }
  .related-grid { grid-template-columns: 1fr; }
}

/* ===== HOME PAGE ===== */
.home-hero {
  min-height: 640px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 22%, rgba(255,196,1,.18), transparent 28%),
    linear-gradient(135deg, #000036 0%, #000b3b 58%, #020018 100%);
  border-bottom: 1px solid var(--border);
}
.home-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,54,.92), rgba(0,0,54,.55), rgba(0,0,54,.85));
}
.home-hero-inner {
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 76px) 24px clamp(36px, 5vw, 64px);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, .98fr);
  align-items: center;
  gap: clamp(28px, 4vw, 48px);
  position: relative;
  z-index: 1;
}
.home-hero h1 {
  color: #fff;
  font-size: clamp(32px, 5vw, 58px);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 18px;
}
.home-hero h1 span {
  display: block;
  color: var(--gold);
}
.home-hero p {
  max-width: 620px;
  font-size: 17px;
  line-height: 1.9;
  color: rgba(255,255,255,.78);
  margin-bottom: 28px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.home-hero-media {
  position: relative;
}
.home-hero-media img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(255,163,1,.35);
  box-shadow: 0 24px 70px rgba(0,0,0,.42), 0 0 46px rgba(255,163,1,.12);
  object-fit: cover;
}
.home-stats {
  padding: 0;
  background: rgba(0,0,28,.9);
  border-bottom: 1px solid var(--border);
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.stat-item {
  padding: 28px 24px;
  border-right: 1px solid rgba(255,163,1,.18);
}
.stat-item:last-child { border-right: 0; }
.stat-item strong {
  display: block;
  color: var(--gold);
  font-size: 34px;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-item span {
  color: rgba(255,255,255,.72);
  font-size: 14px;
}
.intro-section {
  background: linear-gradient(180deg, var(--bg), #000026);
}
.intro-grid {
  display: grid;
  grid-template-columns: minmax(280px, .86fr) minmax(0, 1.14fr);
  gap: 48px;
  align-items: center;
}
.intro-media img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border);
  box-shadow: 0 18px 46px rgba(0,0,0,.38);
}
.feature-list {
  display: grid;
  gap: 14px;
  margin: 26px 0 28px;
}
.feature-list div {
  padding: 18px 20px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,163,1,.18);
  border-radius: 8px;
}
.feature-list h3 {
  color: #fff;
  font-size: 17px;
  margin-bottom: 4px;
}
.feature-list p {
  margin: 0;
  font-size: 14px;
  color: rgba(255,255,255,.68);
}
.signal-section {
  background:
    linear-gradient(rgba(0,0,54,.88), rgba(0,0,54,.92)),
    url('images/lightning-bg.webp') center/cover no-repeat;
}
.signal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.signal-card {
  padding: 24px;
  background: rgba(0,0,34,.72);
  border: 1px solid rgba(255,163,1,.28);
  border-radius: 8px;
}
.signal-card span {
  display: inline-flex;
  color: #000036;
  background: var(--gold);
  font-weight: 900;
  font-size: 12px;
  padding: 4px 9px;
  border-radius: 4px;
  margin-bottom: 18px;
}
.signal-card h3 {
  color: #fff;
  font-size: 19px;
  margin-bottom: 10px;
}
.signal-card p {
  margin: 0;
  color: rgba(255,255,255,.72);
  font-size: 14px;
}
.news-section {
  background: #000026;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 30px;
}

.compact-hero {
  min-height: 420px;
}
.compact-hero .page-hero-image img {
  max-width: 460px;
  border-radius: 8px;
  border: 1px solid rgba(255,163,1,.28);
}
.guide-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.guide-card {
  padding: 24px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.guide-card strong {
  display: inline-flex;
  color: #000036;
  background: var(--gold);
  font-weight: 900;
  font-size: 12px;
  padding: 4px 9px;
  border-radius: 4px;
  margin-bottom: 18px;
}
.guide-card h3 {
  color: #fff;
  font-size: 17px;
  margin-bottom: 10px;
}
.guide-card p {
  font-size: 14px;
  color: rgba(255,255,255,.7);
  margin: 0;
}
.news-archive-hero {
  min-height: 360px;
  background:
    linear-gradient(rgba(0,0,54,.82), rgba(0,0,54,.92)),
    url('images/lightning-bg.webp') center/cover no-repeat;
}
.archive-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.archive-side {
  position: sticky;
  top: 88px;
  padding: 22px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.archive-side h2 {
  color: #fff;
  font-size: 18px;
  margin-bottom: 14px;
}
.archive-side a {
  display: block;
  padding: 10px 0;
  color: rgba(255,255,255,.68);
  border-bottom: 1px solid rgba(255,255,255,.07);
  font-size: 14px;
}
.archive-side a.active,
.archive-side a:hover {
  color: var(--gold);
}
.archive-grid {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 900px) {
  .home-hero-inner,
  .intro-grid {
    grid-template-columns: 1fr;
  }
  .home-hero {
    min-height: auto;
  }
  .home-hero-inner {
    padding-top: 52px;
  }
  .home-hero-media {
    max-width: 620px;
    margin: 0 auto;
  }
  .signal-grid,
  .stat-grid,
  .guide-grid,
  .archive-layout,
  .archive-grid {
    grid-template-columns: 1fr;
  }
  .archive-side {
    position: static;
  }
  .stat-item {
    border-right: 0;
    border-bottom: 1px solid rgba(255,163,1,.18);
  }
  .stat-item:last-child { border-bottom: 0; }
}

@media (max-width: 600px) {
  .hero-actions,
  .section-head {
    align-items: stretch;
    flex-direction: column;
  }
  .hero-actions a,
  .section-head a {
    justify-content: center;
  }
  .home-hero p {
    font-size: 15px;
  }
}

/* ===== RSG REFERENCE-LIKE HOME ===== */
.rsg-home {
  background: #000036;
}
.rsg-hero {
  min-height: 760px;
  background:
    linear-gradient(180deg, rgba(0,0,54,.05), rgba(0,0,54,.78) 72%, #000036),
    url('images/rsg-hero-bg.webp') center top/cover no-repeat;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.rsg-hero-inner {
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 54px 24px 70px;
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  gap: 42px;
  align-items: center;
}
/* sub-pages: copy(large) left, game screenshot(smaller) right */
.rsg-hero-inner.has-game-img {
  grid-template-columns: 1fr 1fr;
}
.rsg-hero-art {
  display: flex;
  justify-content: center;
}
.rsg-thor {
  width: min(420px, 100%);
  filter: drop-shadow(0 22px 45px rgba(0,0,0,.35));
}
.rsg-hero-copy {
  background: rgba(0,0,54,.55);
  border: 1px solid rgba(255,163,1,.22);
  border-radius: 8px;
  padding: 30px;
  backdrop-filter: blur(2px);
}
.rsg-hero h1,
.rsg-home h2 {
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 0;
}
.rsg-hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  margin-bottom: 12px;
}
.rsg-hero h2 {
  color: #fff;
  font-size: clamp(22px, 3vw, 32px);
  margin-bottom: 18px;
}
.rsg-hero p,
.rsg-copy p,
.rsg-bg-section p,
.rsg-section-head p,
.rsg-feature-grid p,
.rsg-faq p {
  color: rgba(255,255,255,.82);
  line-height: 1.9;
}
.rsg-info-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 24px 0;
}
.rsg-info-row div,
.rsg-pay-grid div {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,163,1,.25);
  border-radius: 8px;
  padding: 14px 12px;
  text-align: center;
}
.rsg-info-row span,
.rsg-pay-grid span {
  display: block;
  color: rgba(255,255,255,.6);
  font-size: 12px;
  margin-bottom: 4px;
}
.rsg-info-row strong,
.rsg-pay-grid strong {
  color: var(--gold2);
  font-size: 18px;
}
.rsg-img-btn {
  display: inline-block;
}
.rsg-img-btn img {
  width: 220px;
  transition: transform .2s;
}
.rsg-img-btn:hover img {
  transform: translateY(-2px);
}
.rsg-hero-cta {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}
.pulse {
  animation: rsgPulse 1.8s ease-in-out infinite;
}
@keyframes rsgPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(255,163,1,0)); }
  50% { transform: scale(1.06); filter: drop-shadow(0 0 18px rgba(255,163,1,.48)); }
}
.rsg-section {
  padding: 0px 0;padding-bottom: 76px;
}
.rsg-two-col {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .82fr);
  gap: 44px;
  align-items: center;
}
.rsg-two-col.reverse {
  grid-template-columns: minmax(280px, .95fr) minmax(0, 1fr);
}
.rsg-copy h2,
.rsg-bg-section h2,
.rsg-section-head h2,
.rsg-faq h2 {
  font-size: clamp(26px, 4vw, 38px);
  margin-bottom: 18px;
}
.rsg-list {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
}
.rsg-list li {
  color: rgba(255,255,255,.78);
  padding-left: 22px;
  position: relative;
}
.rsg-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}
.rsg-note {
  font-size: 13px;
  color: rgba(255,255,255,.58) !important;
  margin-top: 18px;
}
.rsg-demo-panel {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,163,1,.28);
  border-radius: 8px;
  padding: 14px;
}
.rsg-demo-screen {
  min-height: 420px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 6px;
  background:
    linear-gradient(rgba(0,0,54,.12), rgba(0,0,54,.65)),
    url('images/rsg-thunder-bg.webp') center/cover no-repeat;
}
.rsg-demo-screen img {
  width: min(270px, 72%);
  filter: drop-shadow(0 16px 30px rgba(0,0,0,.36));
}
.rsg-demo-play {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  white-space: nowrap;
  background: linear-gradient(135deg, #8B6914, #FFA301, #FFC401);
  color: #000036 !important;
  font-weight: 900;
  padding: 13px 34px;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(255,163,1,.28);
}
.rsg-demo-play.pulse {
  animation-name: rsgPulseCentered;
}
@keyframes rsgPulseCentered {
  0%, 100% { transform: translateX(-50%) scale(1); filter: drop-shadow(0 0 0 rgba(255,163,1,0)); }
  50% { transform: translateX(-50%) scale(1.06); filter: drop-shadow(0 0 18px rgba(255,163,1,.48)); }
}
.rsg-demo-caption {
  text-align: center;
  color: rgba(255,255,255,.58);
  font-size: 13px;
  margin-top: 10px;
}
.rsg-demo-section {
  background: #000036;
}
.rsg-embed-box {
  min-height: 620px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,163,1,.28);
  border-radius: 8px;
  overflow: hidden;
}
.rsg-embed-box iframe {
  width: 100%;
  height: 620px;
  display: block;
  border: 0;
  background: #000026;
}
.rsg-embed-fallback {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 16px 18px;
  text-align: center;
  background: rgba(0,0,30,.92);
  border-top: 1px solid rgba(255,163,1,.22);
}
.rsg-embed-fallback img {
  width: 82px;
  filter: drop-shadow(0 18px 35px rgba(0,0,0,.4));
}
.rsg-embed-fallback p {
  color: rgba(255,255,255,.8);
  margin: 0;
  text-align: left;
}
.rsg-freegame {
  padding: 76px 0 88px;
  background:
    linear-gradient(rgba(0,0,54,.72), rgba(0,0,54,.94)),
    url('images/rsg-thunder-bg.webp') center/cover no-repeat;
  border-top: 1px solid rgba(255,163,1,.22);
  border-bottom: 1px solid rgba(255,163,1,.22);
}
.rsg-freegame h2 {
  text-align: center;
  color: var(--gold);
  font-size: clamp(26px, 4vw, 38px);
  margin-bottom: 46px;
}
.rsg-free-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px 58px;
  align-items: center;
}
.rsg-free-copy h3 {
  color: var(--gold);
  font-size: 22px;
  margin-bottom: 14px;
}
.rsg-free-copy p {
  color: #fff;
  font-weight: 700;
  line-height: 1.85;
  margin-bottom: 24px;
}
.rsg-free-image img {
  width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 18px 35px rgba(0,0,0,.38));
}
.rsg-free-image.bonus img {
  max-height: 280px;
}
.rsg-free-image.board img {
  max-height: 330px;
}
.rsg-image-button {
  display: inline-flex;
}
.rsg-image-button img {
  width: 170px;
}
.rsg-image-frame {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,163,1,.28);
  border-radius: 8px;
  padding: 14px;
}
.rsg-image-frame img {
  width: 100%;
  border-radius: 6px;
}
.rsg-image-frame.wide img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.rsg-bg-section {
  padding: 92px 0;
  text-align: center;
  background:
    linear-gradient(rgba(0,0,54,.72), rgba(0,0,54,.84)),
    url('images/rsg-about-bg.webp') center/cover no-repeat;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.rsg-bg-section .container {
  max-width: 880px;
}
.rsg-section-head {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}
.rsg-symbol-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 14px;
}
.rsg-symbol-grid div {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  background: radial-gradient(circle at 50% 30%, rgba(255,163,1,.15), rgba(255,255,255,.04));
  border: 1px solid rgba(255,163,1,.24);
  border-radius: 8px;
  padding: 14px;
}
.rsg-symbol-grid img {
  height: 82px;
  object-fit: contain;
}
.rsg-symbol-grid span {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.rsg-pay-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 22px;
}
.rsg-pay-grid.compact strong {
  font-size: 16px;
}
.rsg-paytable-section {
  background: #00002b;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.rsg-paytable {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.rsg-pay-row {
  display: grid;
  grid-template-columns: 64px minmax(90px, 1fr) repeat(3, minmax(72px, auto));
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,163,1,.22);
  border-radius: 8px;
  padding: 12px 14px;
}
.rsg-pay-row.bonus {
  grid-column: 1 / -1;
}
.rsg-pay-row img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}
.rsg-pay-row strong {
  color: #fff;
  font-size: 15px;
}
.rsg-pay-row span {
  color: var(--gold2);
  font-weight: 700;
  font-size: 13px;
  text-align: right;
}
.rsg-play {
  background: #00002b;
}
.rsg-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.rsg-feature-grid article {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,163,1,.22);
  border-radius: 8px;
  overflow: hidden;
}
.rsg-feature-grid img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}
.rsg-feature-grid h3 {
  color: #fff;
  font-size: 18px;
  padding: 18px 18px 4px;
}
.rsg-feature-grid p {
  font-size: 14px;
  padding: 0 18px 20px;
  margin: 0;
}
.rsg-thunder {
  padding: 88px 0;
  background:
    linear-gradient(rgba(0,0,54,.86), rgba(0,0,54,.92)),
    url('images/rsg-thunder-bg.webp') center/cover no-repeat;
}
.rsg-faq {
  padding: 72px 0 88px;
  background: #000036;
}
.rsg-faq .container {
  max-width: 900px;
}
.rsg-faq details {
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,163,1,.22);
  border-radius: 8px;
  padding: 18px 20px;
  margin-top: 14px;
}
.rsg-faq summary {
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.rsg-faq p {
  margin: 12px 0 0;
}

/* ===== HERO GAME IMAGE ===== */
.rsg-hero-game-img {
  border: 1px solid rgba(255,163,1,.28);
  border-radius: 8px;
  overflow: hidden;
  align-self: center;
  box-shadow: 0 16px 48px rgba(0,0,0,.45), 0 0 28px rgba(255,163,1,.1);
}
.rsg-hero-game-img img {
  width: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

@media (max-width: 980px) {
  .rsg-hero { min-height: auto; }
  .rsg-hero-game-img { order: -1; }
  .rsg-hero-game-img img { max-height: 220px; aspect-ratio: auto; height: 220px; }
  .rsg-hero-inner,
  .rsg-hero-inner.has-game-img,
  .rsg-two-col,
  .rsg-two-col.reverse {
    grid-template-columns: 1fr;
  }
  .rsg-hero-copy {
    padding: 24px;
  }
  .rsg-symbol-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .rsg-feature-grid {
    grid-template-columns: 1fr;
  }
  .rsg-free-grid {
    grid-template-columns: 1fr;
  }
  .rsg-free-image.bonus {
    order: -1;
  }
  .rsg-paytable {
    grid-template-columns: 1fr;
  }
  .rsg-pay-row {
    grid-template-columns: 52px 1fr;
  }
  .rsg-pay-row span {
    grid-column: 2;
    text-align: left;
  }
  .site-footer .footer-top {
    text-align: center;
  }
  .site-footer .footer-brand {
    flex-basis: auto;
  }
  .site-footer .footer-brand img {
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .site-footer .footer-social-row,
  .site-footer .footer-bottom {
    justify-content: center;
  }
}

/* ===== COMBINED SYMBOLS + PAYOUT ===== */
.rsg-symbols-payout {
  background: #00002b;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.sym-bonus-row {
  display: flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(135deg, rgba(255,163,1,.13), rgba(255,163,1,.04));
  border: 1px solid rgba(255,163,1,.45);
  border-radius: 10px;
  padding: 18px 24px;
  margin-bottom: 20px;
}
.sym-bonus-row > img { height: 68px; object-fit: contain; flex-shrink: 0; }
.sym-bonus-info { flex: 1; min-width: 0; }
.sym-bonus-info strong { display: block; color: var(--gold); font-size: 18px; font-weight: 900; margin-bottom: 4px; }
.sym-bonus-info p { color: rgba(255,255,255,.62); font-size: 13px; margin: 0; }
.sym-bonus-pays { display: flex; gap: 10px; flex-shrink: 0; }
.sym-bonus-pays div { display: flex; flex-direction: column; align-items: center; gap: 3px; background: rgba(255,255,255,.07); border-radius: 8px; padding: 8px 14px; }
.sym-bonus-pays span { color: rgba(255,255,255,.5); font-size: 11px; }
.sym-bonus-pays b { color: var(--gold2); font-size: 17px; font-weight: 900; }
.sym-pay-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.sym-pay-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,163,1,.18);
  border-radius: 10px;
  padding: 14px 16px;
  transition: border-color .2s;
}
.sym-pay-card:hover { border-color: rgba(255,163,1,.4); }
.sym-pay-head { display: flex; flex-direction: column; align-items: center; gap: 5px; flex-shrink: 0; width: 62px; }
.sym-pay-head img { height: 54px; object-fit: contain; }
.sym-pay-head strong { color: #fff; font-size: 11px; font-weight: 700; text-align: center; line-height: 1.3; }
.sym-pay-rows { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.sym-pay-rows div { display: flex; justify-content: space-between; align-items: center; padding: 3px 7px; background: rgba(255,255,255,.04); border-radius: 4px; }
.sym-pay-rows span { color: rgba(255,255,255,.48); font-size: 11px; }
.sym-pay-rows b { color: var(--gold2); font-size: 12px; font-weight: 700; }
@media (max-width: 980px) {
  .sym-pay-grid { grid-template-columns: repeat(2, 1fr); }
  .sym-bonus-row { flex-wrap: wrap; gap: 14px; }
  .sym-bonus-pays { width: 100%; justify-content: flex-start; }
}
@media (max-width: 600px) {
  .sym-bonus-row { padding: 14px 16px; }
  .sym-bonus-pays { gap: 8px; }
  .sym-bonus-pays div { padding: 6px 10px; flex: 1; }
  .sym-pay-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .sym-pay-card { padding: 10px 10px; gap: 8px; }
  .sym-pay-head { width: 50px; }
  .sym-pay-head img { height: 44px; }
}

/* ===== RSG112 試玩預覽 & Modal ===== */
.rsg112-preview {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255,163,1,.32);
  border-radius: 8px;
  overflow: hidden;
  background: #000018;
  cursor: pointer;
}
.rsg112-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.rsg112-hit {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.22);
  transition: background .2s;
}
.rsg112-hit::after {
  content: '▶  點擊試玩';
  background: linear-gradient(135deg, #8B6914, #FFA301, #FFC401);
  color: #000036;
  font-weight: 900;
  font-size: 18px;
  padding: 14px 38px;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(255,163,1,.38);
  transition: transform .2s;
  animation: rsgPulse 1.8s ease-in-out infinite;
}
.rsg112-hit:hover { background: rgba(0,0,0,.08); }
.rsg112-hit:hover::after { animation: none; transform: scale(1.06); }

.rsg112-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: #000;
}
.rsg112-modal.open { display: block; }
.rsg112-modal-inner {
  position: relative;
  width: 100vw;
  height: 100vh;
  background: #000;
  border-radius: 0;
  overflow: hidden;
  border: none;
}
.rsg112-modal-inner iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.rsg112-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  background: rgba(0,0,0,.72);
  border: 1px solid rgba(255,163,1,.4);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.rsg112-modal-close:hover { background: rgba(255,163,1,.22); }

@media (max-width: 600px) {
  .rsg-hero {
    min-height: auto;
  }
  .rsg-hero-inner {
    padding-top: 36px;padding-bottom: 0px;
  }
  .rsg-info-row,
  .rsg-pay-grid {
    grid-template-columns: 1fr;
  }
  .rsg-symbol-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .rsg-symbol-grid div {
    min-height: 130px;
  }
  #site-header {
    height: 60px;
  }
  .header-inner {
    height: 60px;
    padding: 0 16px;
  }
  .header-logo img {
    height: 42px;
    max-width: 120px;
  }
  .page-wrap {
    padding-top: 60px;
  }
  .header-search-overlay,
  .mobile-nav-menu {
    top: 60px;
  }
  .btn-play {
    padding: 7px 10px;
    font-size: 12px;
  }
  .btn-search {
    width: 32px;
    height: 32px;
  }
  .rsg-embed-box,
  .rsg-embed-box iframe {
    min-height: 480px;
    height: 480px;
  }
  .rsg-embed-box {
    height: auto;
  }
  .rsg-embed-fallback {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .rsg-embed-fallback p {
    text-align: center;
  }
  .rsg-freegame {
    padding: 58px 0 68px;
  }
  .rsg-free-grid {
    gap: 28px;
  }
  .rsg-free-copy p {
    font-size: 15px;
  }
  .rsg-image-button img {
    width: 150px;
  }
}


/* Disable non-composited animations on mobile for better performance */
@media (max-width: 900px) {
  .btn-primary, .btn-gold, .btn-play, .pulse { animation: none !important; background-position: 0% 50% !important; }
}
