:root {
  --bg: #0b1020;
  --bg-2: #12182c;
  --card: #171e36;
  --line: rgba(148, 163, 255, .16);
  --text: #e8edf8;
  --muted: #9aa6c4;
  --accent: #7aa2ff;
  --gold: #e7c37a;
  --ok: #5ee0b5;
  --danger: #ff8b8b;
  --shadow: 0 20px 50px rgba(0,0,0,.35);
  --radius: 18px;
  --max: 1180px;
  --font: "Noto Sans TC", "PingFang HK", "Microsoft JhengHei", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}
a { color: var(--accent); text-decoration: none; }
img { max-width: 100%; }
.wrap { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }

.top {
  position: sticky; top: 0; z-index: 20;
  background: #0b1020;
  border-bottom: 1px solid var(--line);
}
.top-inner {
  display: flex; align-items: center; gap: 22px;
  min-height: 72px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; letter-spacing: .04em; }
.mark {
  width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, #2a3d7a, #11182d);
  border: 1px solid var(--line);
  font-size: 26px; line-height: 1;
}
nav { display: flex; gap: 16px; flex-wrap: wrap; }
nav a { color: var(--muted); font-size: 14px; }
nav a:hover, nav a.active { color: var(--text); }
.top-tools { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang button {
  background: transparent; color: var(--muted); border: 0; padding: 7px 10px;
  cursor: pointer; font: 12px/1 var(--font);
}
.lang button.on { background: #243056; color: var(--text); }

.hero {
  padding: 72px 0 56px;
  background:
    radial-gradient(900px 420px at 10% -10%, rgba(122,162,255,.18), transparent 60%),
    radial-gradient(700px 380px at 90% 0%, rgba(231,195,122,.08), transparent 55%),
    var(--bg);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: center; }
.eyebrow {
  display: inline-flex; gap: 8px; align-items: center;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 4px 10px; color: var(--gold); font-size: 12px;
}
h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.15; margin: 12px 0 16px; }
.hero p { color: var(--muted); max-width: 560px; }
.btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(180deg, #9bb8ff, #7aa2ff 42%, #5b86ea);
  color: #0b1020; font-weight: 800;
  border-radius: 999px; padding: 11px 18px; border: 0; cursor: pointer;
  box-shadow: 0 7px 0 #3557b0, 0 12px 22px rgba(0,0,0,.32);
  transform: translateY(-1px);
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}
.btn:hover { transform: translateY(-3px); filter: brightness(1.06); box-shadow: 0 9px 0 #3557b0, 0 16px 28px rgba(0,0,0,.38); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 #3557b0, 0 6px 12px rgba(0,0,0,.25); }
.btn.ghost {
  background: linear-gradient(180deg, #243056, #1a2344);
  color: var(--text);
  box-shadow: 0 6px 0 #0d1328, 0 10px 18px rgba(0,0,0,.28);
  border: 1px solid var(--line);
}
.btn.sm {
  padding: 8px 13px; font-size: 13px;
  background: linear-gradient(180deg, #2f3b63, #1c2442);
  color: #e8edf8;
  box-shadow: 0 5px 0 #0c1224, 0 8px 14px rgba(0,0,0,.25);
}
a.btn[data-i18n="guide_cta"],
#partner-cta,
.game-article a[data-i18n="guide_cta"] {
  background: linear-gradient(180deg, #ffe7a8, #f0c45a 46%, #d4a22e);
  color: #2a1c06;
  font-size: 15px;
  padding: 12px 18px;
  letter-spacing: .02em;
  border: 0;
  box-shadow: 0 8px 0 #8a6a1c, 0 16px 30px rgba(240,196,90,.32);
  animation: ctaPulse 2.6s ease-in-out infinite;
}
a.btn[data-i18n="guide_cta"]:hover,
#partner-cta:hover,
.game-article a[data-i18n="guide_cta"]:hover {
  filter: brightness(1.08);
  color: #2a1c06;
  box-shadow: 0 10px 0 #8a6a1c, 0 20px 34px rgba(240,196,90,.42);
}
a.btn.sm[data-i18n="guide_cta"] {
  font-size: 13px;
  padding: 8px 12px;
  box-shadow: 0 5px 0 #8a6a1c, 0 10px 16px rgba(240,196,90,.28);
}

.panel {
  background: linear-gradient(180deg, #1a2344, #141b33);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.panel h3 { margin: 0 0 14px; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.tile {
  background: #101735; border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 10px; text-align: center; color: var(--text);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.tile:hover { transform: translateY(-3px); border-color: rgba(122,162,255,.4); box-shadow: 0 10px 24px rgba(0,0,0,.28); }
.tile b { display: block; font-size: 16px; }
.tile span { color: var(--muted); font-size: 12px; }
.links { margin-top: 12px; display: grid; gap: 8px; }
.links a {
  display: flex; justify-content: space-between;
  background: #101735; border: 1px solid var(--line);
  border-radius: 12px; padding: 10px 12px; color: var(--text); font-size: 14px;
}

section { padding: 64px 0; }
.white { background: #f4f6fb; color: #172033; }
.white h2, .white h3 { color: #12182c; }
.white p, .white li { color: #3b4764; }
h2 { font-size: 30px; margin: 0 0 10px; }
.lead { color: var(--muted); margin-bottom: 28px; }
.white .lead { color: #5b6785; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(122,162,255,.35); box-shadow: 0 16px 32px rgba(0,0,0,.28); }
.white .card { background: #fff; border-color: #e4e8f2; }
.num { color: var(--gold); font-weight: 800; font-size: 13px; letter-spacing: .08em; }
.card h3 { margin: 6px 0 8px; font-size: 18px; }

.table-wrap { overflow: auto; border-radius: 16px; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
th { background: #101735; color: var(--muted); font-weight: 600; }
.white th { background: #eef1f8; color: #5b6785; }
.white td, .white th { border-color: #e6eaf3; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; background: #243056; color: var(--gold); }
.white .tag { background: #eef2ff; color: #3b5bcc; }

.prov-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.prov {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 10px;
  color: var(--text);
}
.white .prov { background: #fff; border-color: #e4e8f2; color: #172033; }
.logo-box {
  height: 72px; border-radius: 12px; display: grid; place-items: center;
  background: #0e1430; border: 1px solid var(--line); overflow: hidden;
}
.white .logo-box { background: #f3f5fb; }
.logo-box img { max-height: 56px; max-width: 86%; object-fit: contain; }
.mono { font-weight: 800; letter-spacing: .06em; color: var(--gold); font-size: 20px; }
.prov h3 { margin: 0; font-size: 17px; }
.prov p { margin: 0; color: var(--muted); font-size: 13px; flex: 1; }
.white .prov p { color: #5b6785; }
.row-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.btn.sm { padding: 8px 12px; font-size: 13px; }
.btn.out {
  background: linear-gradient(180deg, #3b4d7c, #243056);
  color: #e8edf8;
  box-shadow: 0 5px 0 #10182e, 0 8px 14px rgba(0,0,0,.25);
  border: 1px solid rgba(148,163,255,.28);
}
.hot { outline: 1px solid rgba(231,195,122,.45); }
.detail {
  scroll-margin-top: 90px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 20px; padding: 22px; margin: 14px 0;
}
.detail header { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.detail .logo-box { width: 140px; height: 80px; flex: 0 0 140px; }

.slot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.slot {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px;
}
.slot header { display: flex; justify-content: space-between; gap: 8px; align-items: start; }
.meta { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0; }
.chip { font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; }

.faq details {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 12px 16px; margin-bottom: 10px;
}
.faq summary { cursor: pointer; font-weight: 700; }
.notice {
  margin-top: 28px;
  border: 1px solid rgba(255,139,139,.35);
  background: rgba(255,139,139,.08);
  border-radius: 16px; padding: 16px 18px; color: #ffd3d3; font-size: 14px;
}
.white .notice { background: #fff4f4; color: #7a2e2e; border-color: #f3c7c7; }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 13px; }
.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .hero-grid, .cards, .slot-grid, .tiles, .prov-grid { grid-template-columns: 1fr 1fr; }
  .top-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 8px 10px;
    min-height: 0;
    padding: 10px 0 12px;
  }
  .brand { grid-column: 1; }
  .top-tools { grid-column: 2; margin-left: 0; }
  nav {
    grid-column: 1 / -1;
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
    padding-bottom: 2px;
  }
  nav a {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 13px;
    padding: 6px 8px;
    background: transparent;
  }
  nav a.active { color: var(--text); }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 22px); }
  .hero { padding: 28px 0 36px; }
  .hero-grid { grid-template-columns: 1fr; gap: 18px; }
  .cards, .slot-grid { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .prov-grid { grid-template-columns: 1fr; }
  .btns .btn { justify-content: center; }
  .btn { padding: 11px 14px; }
  .panel { padding: 16px; }
  .tile { min-height: 72px; }
  .row-btns { flex-direction: column; }
  .row-btns .btn { width: 100%; justify-content: center; }
  .prov { padding: 14px; }
}

.game-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; color: #fff; display: flex; flex-direction: column; }
.game-card img { width: 100%; height: 190px; object-fit: cover; background: #0e1430; }
.game-card .pad { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; color: #fff; }
.white .game-card,
.white .game-card h3,
.white .game-card span,
.white .game-card a { color: #fff; }
.white .game-card .chip { color: #d5ddf3; border-color: rgba(255,255,255,.22); }
.game-article { display: grid; grid-template-columns: 1.05fr .95fr; gap: 22px; align-items: start; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 18px; margin: 18px 0; }
.game-article img { width: 100%; border-radius: 14px; max-height: 360px; object-fit: cover; background: #0e1430; }
.game-article h2,
.game-article h3,
.game-article p,
.white .game-article h2,
.white .game-article h3,
.white .game-article p { color: #e8edf8; margin: 0 0 10px; }
.game-article h2 { font-size: 22px; }
@media (max-width: 800px) { .game-article { grid-template-columns: 1fr; } }

.game-card, .prov {
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.game-card:hover, .prov:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 30px rgba(0,0,0,.32);
  border-color: rgba(122,162,255,.4);
}

@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 8px 0 #8a6a1c, 0 16px 30px rgba(240,196,90,.28); }
  50% { box-shadow: 0 8px 0 #8a6a1c, 0 18px 36px rgba(240,196,90,.5); }
}
@keyframes floatGlow {
  0%, 100% { opacity: .55; }
  50% { opacity: 1; }
}
.hero { position: relative; overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
.white a.card { color: inherit; display: block; }

.spec {
  width: 100%; border-collapse: collapse; margin: 0 0 18px;
  background: #fff; color: #172033; border-radius: 14px; overflow: hidden;
}
.spec caption {
  text-align: left; font-weight: 800; padding: 0 0 8px; color: #12182c;
}
.spec th, .spec td { padding: 10px 14px; border-bottom: 1px solid #e4e8f2; font-size: 14px; }
.spec th { width: 34%; color: #5b6785; font-weight: 600; background: #f7f8fc; }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }

.game-fallback {
  height: 190px; display: flex; flex-direction: column; justify-content: flex-end;
  gap: 6px; padding: 18px; background:
    radial-gradient(800px 240px at 80% -20%, rgba(122,162,255,.18), transparent 50%),
    linear-gradient(180deg, #1a2344, #0e1430);
}
.game-fallback span { color: #c9a44a; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.game-fallback strong { color: #fff; font-size: 18px; line-height: 1.25; }
.game-fallback.tall { height: 260px; border-radius: 14px; }
