/* UI direction: Bet852 adopts a premium dark gaming lobby with high-contrast gold actions,
   horizontal game-entry navigation, promotion panels, and editorial service modules. */
:root {
  --bg: #080b16;
  --bg-deep: #050711;
  --surface: #12182a;
  --surface-2: #171f35;
  --surface-soft: rgba(24, 32, 55, 0.72);
  --text: #f5f7ff;
  --text-soft: #b4bed1;
  --muted: #7f8aa2;
  --gold: #f0c663;
  --gold-light: #ffe4a1;
  --gold-deep: #c8932e;
  --cyan: #4ddcff;
  --blue: #4678ff;
  --pink: #fd5f9f;
  --green: #47db9a;
  --border: rgba(164, 183, 225, 0.16);
  --border-gold: rgba(240, 198, 99, 0.42);
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
  --radius: 18px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% -4%, rgba(70, 120, 255, 0.15), transparent 31rem),
    radial-gradient(circle at 88% 4%, rgba(240, 198, 99, 0.12), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: 'Noto Sans TC', system-ui, sans-serif;
  line-height: 1.65;
}
body::before {
  content: '';
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.19;
  z-index: -1;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, #000, transparent 75%);
}
a { color: var(--text); text-decoration: none; transition: color .2s ease, transform .2s ease, border-color .2s ease, background .2s ease; }
a:hover { color: var(--gold-light); }
button { font: inherit; }
img { display: block; max-width: 100%; }
.container { width: min(1240px, calc(100% - 40px)); margin: 0 auto; }
.text-center { text-align: center; }
.gold-text {
  background: linear-gradient(100deg, #eebc50 0%, #fff0b8 48%, #c88d2d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Shared header and navigation */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(6, 9, 20, .88);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
}
.header-top {
  width: min(1240px, calc(100% - 40px));
  min-height: 30px;
  margin: 0 auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 17px;
  color: var(--muted);
  font-size: .75rem;
}
.header-top span:first-child { margin-right: auto; }
.btn-register-sm {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 0 10px;
  border: 1px solid rgba(240, 198, 99, .35);
  border-radius: 999px;
  color: var(--gold-light);
}
.nav-main {
  width: min(1240px, calc(100% - 40px));
  min-height: 70px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}
.logo { flex: 0 0 auto; display: inline-flex; align-items: center; }
.logo img { width: auto; height: 44px; object-fit: contain; }
.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  gap: clamp(12px, 1.35vw, 23px);
  list-style: none;
  white-space: nowrap;
}
.nav-links a {
  position: relative;
  display: inline-flex;
  padding: 10px 0;
  font-size: .82rem;
  font-weight: 500;
  color: var(--text-soft);
}
.nav-links a::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 2px;
  border-radius: 99px;
  transform: scaleX(0);
  transform-origin: center;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transition: transform .2s ease;
}
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.btn-cta, .btn-gold, .btn-crimson {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #171006;
  font-weight: 800;
  letter-spacing: .02em;
  cursor: pointer;
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 48%, var(--gold-deep));
  box-shadow: 0 8px 24px rgba(240, 198, 99, .18);
}
.btn-cta { min-height: 39px; padding: 0 18px; border-radius: 9px; font-size: .84rem; }
.btn-gold { min-height: 50px; padding: 0 29px; border-radius: 10px; }
.btn-crimson { min-height: 50px; padding: 0 29px; border-radius: 10px; background: linear-gradient(135deg, #5d72ff, #3a43c5); color: #fff; box-shadow: 0 8px 24px rgba(70, 120, 255, .2); }
.btn-cta:hover, .btn-gold:hover, .btn-crimson:hover { transform: translateY(-2px); color: #15100a; filter: brightness(1.07); }
.btn-crimson:hover { color: #fff; }
.btn-gold.btn-lg { min-height: 57px; padding: 0 42px; font-size: 1.05rem; }
.mobile-menu-btn { display: none; margin-left: auto; border: 1px solid var(--border); border-radius: 8px; padding: 5px 9px; background: var(--surface); color: var(--text); cursor: pointer; font-size: 1.3rem; }

/* Homepage hero */
.hero {
  position: relative;
  isolation: isolate;
  min-height: min(700px, calc(100vh - 100px));
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: #080c1a;
  background-size: cover;
  background-position: center;
}
.hero::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6,9,20,.98) 0%, rgba(6,9,20,.86) 34%, rgba(6,9,20,.3) 72%, rgba(6,9,20,.25) 100%),
    linear-gradient(0deg, rgba(6,9,20,.78), transparent 40%);
}
.hero::after {
  content: '';
  position: absolute;
  z-index: -1;
  width: 56vw;
  height: 56vw;
  top: -28vw;
  left: -17vw;
  border: 1px solid rgba(240,198,99,.18);
  border-radius: 50%;
  box-shadow: 0 0 0 50px rgba(240,198,99,.04), 0 0 0 100px rgba(240,198,99,.025);
}
.hero-overlay { display: none; }
.hero-content { width: min(1240px, calc(100% - 40px)); margin: 0 auto; padding: 100px 0 122px; }
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 28px;
  margin-bottom: 16px;
  padding: 0 12px;
  border: 1px solid rgba(240,198,99,.35);
  border-radius: 999px;
  color: var(--gold-light);
  background: rgba(240,198,99,.08);
  font-size: .76rem;
  letter-spacing: .08em;
}
.hero-kicker::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px var(--gold); }
.hero-title { max-width: 730px; margin-bottom: 14px; font-family: 'Playfair Display', 'Noto Sans TC', serif; font-size: clamp(3rem, 6vw, 5.6rem); line-height: 1.1; letter-spacing: -.045em; }
.hero-subtitle { max-width: 540px; margin-bottom: 16px; color: var(--gold-light); font-size: clamp(1.15rem, 2.1vw, 1.55rem); font-weight: 700; }
.hero-desc { max-width: 560px; margin-bottom: 31px; color: var(--text-soft); font-size: 1rem; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 43px; color: var(--text-soft); font-size: .82rem; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta b { color: var(--gold-light); font-size: 1.12rem; }

/* Generic sections */
.section { padding: 86px 0; position: relative; }
.section-dark { background: linear-gradient(180deg, rgba(18,24,42,.65), rgba(11,15,28,.32)); border-top: 1px solid rgba(164,183,225,.07); border-bottom: 1px solid rgba(164,183,225,.07); }
.section-title { margin-bottom: 12px; text-align: center; font-size: clamp(1.7rem, 3vw, 2.45rem); font-family: 'Playfair Display', 'Noto Sans TC', serif; letter-spacing: -.03em; }
.section-title::after { content: ''; display: block; width: 44px; height: 2px; margin: 17px auto 0; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.section-desc { max-width: 680px; margin: 0 auto 38px; color: var(--text-soft); text-align: center; }
.cta-section { overflow: hidden; background: linear-gradient(120deg, rgba(70,120,255,.12), rgba(240,198,99,.12)); }
.cta-section::before { content: ''; position: absolute; inset: 10px; pointer-events: none; border: 1px solid rgba(240,198,99,.2); border-radius: var(--radius); }

/* homepage content bands */
.home-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.home-section-head h2 { font-family: 'Playfair Display','Noto Sans TC',serif; font-size: clamp(1.7rem,3vw,2.3rem); line-height: 1.2; }
.home-section-head p { max-width: 490px; color: var(--text-soft); font-size: .9rem; }
.text-link { display: inline-flex; align-items: center; gap: 7px; color: var(--gold-light); font-size: .84rem; font-weight: 700; }
.text-link::after { content: '→'; transition: transform .2s ease; }
.text-link:hover::after { transform: translateX(4px); }

.notice-bar { border-bottom: 1px solid var(--border); background: rgba(10,14,27,.86); }
.notice-inner { display: flex; align-items: center; min-height: 43px; gap: 15px; width: min(1240px, calc(100% - 40px)); margin: 0 auto; font-size: .8rem; }
.notice-label { display: inline-flex; align-items: center; gap: 7px; color: var(--gold-light); font-weight: 800; white-space: nowrap; }
.notice-label::before { content:'◆'; font-size:.55rem; }
.notice-copy { overflow: hidden; color: var(--text-soft); white-space: nowrap; text-overflow: ellipsis; }

.promo-section { margin-top: -64px; z-index: 3; }
.promo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.promo-card {
  min-height: 185px;
  padding: 21px 19px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(41,55,92,.98), rgba(16,21,37,.98));
  box-shadow: var(--shadow);
}
.promo-card::after { content:''; position:absolute; width:180px; height:180px; right:-65px; top:-68px; border-radius:50%; background:radial-gradient(circle, rgba(255,255,255,.24), transparent 65%); }
.promo-card:nth-child(2) { background: linear-gradient(145deg,#693b93,#192047); }
.promo-card:nth-child(3) { background: linear-gradient(145deg,#8b3d53,#241a3b); }
.promo-card:nth-child(4) { background: linear-gradient(145deg,#245b73,#151f41); }
.promo-card:hover { border-color: rgba(240,198,99,.62); transform: translateY(-4px); }
.promo-tag { z-index: 1; display: inline-flex; width: fit-content; margin-bottom: auto; padding: 4px 8px; border-radius: 5px; color:#fff6d3; background: rgba(255,255,255,.14); font-size:.68rem; font-weight:700; }
.promo-card h3 { z-index:1; font-size:1rem; line-height:1.35; }
.promo-card p { z-index:1; margin-top:5px; color:rgba(255,255,255,.72); font-size:.76rem; }

.grid-4 { display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:16px; }
.grid-3 { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:18px; }

.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.service-card { position:relative; min-height:177px; padding:25px 20px; border:1px solid var(--border); border-radius:14px; background:linear-gradient(165deg,rgba(27,37,64,.85),rgba(16,21,37,.85)); overflow:hidden; }
.service-card::after { content:''; position:absolute; right:-15px; bottom:-38px; color:rgba(240,198,99,.12); font-size:6.5rem; font-weight:900; }
.service-card:nth-child(1)::after { content:'01'; }
.service-card:nth-child(2)::after { content:'02'; }
.service-card:nth-child(3)::after { content:'03'; }
.service-card:nth-child(4)::after { content:'04'; }
.service-card .card-icon { margin-bottom:11px; font-size:1.9rem; }
.service-card h3 { position:relative; z-index:1; margin-bottom:5px; font-size:1rem; }
.service-card p { position:relative; z-index:1; color:var(--text-soft); font-size:.78rem; }

/* general cards and game entries */
.card { padding:28px 21px; border: 1px solid var(--border); border-radius:14px; background:linear-gradient(160deg,rgba(24,32,55,.9),rgba(13,18,33,.9)); transition: transform .25s ease,border-color .25s ease,box-shadow .25s ease; }
.card:hover { transform:translateY(-5px); border-color:var(--border-gold); box-shadow:var(--shadow); }
.card-icon { font-size:2.35rem; margin-bottom:14px; }
.card h3 { margin-bottom:7px; font-size:1.05rem; }
.card p { color:var(--text-soft); font-size:.86rem; }

.game-card { position: relative; isolation: isolate; display:block; min-height:298px; overflow:hidden; border-radius:16px; border:1px solid var(--border); background:#11192b; box-shadow:0 9px 25px rgba(0,0,0,.2); }
.game-card::before { content:''; position:absolute; inset:0; z-index:1; background:linear-gradient(0deg,rgba(5,7,17,.94) 2%,rgba(5,7,17,.08) 70%); }
.game-card::after { content:'探索遊戲  →'; position:absolute; z-index:2; right:19px; bottom:18px; color:var(--gold-light); font-size:.76rem; font-weight:800; opacity:0; transform:translateX(-8px); transition:all .25s ease; }
.game-card img { width:100%; height:298px; object-fit:cover; transition: transform .5s ease, filter .5s ease; }
.game-card:hover { border-color:var(--border-gold); color:var(--text); }
.game-card:hover img { transform:scale(1.07); filter:saturate(1.15); }
.game-card:hover::after { opacity:1; transform:translateX(0); }
.game-card-info { position:absolute; z-index:2; right:19px; bottom:18px; left:19px; transition: transform .25s ease; }
.game-card:hover .game-card-info { transform:translateY(-18px); }
.game-card-info h3 { margin-bottom:5px; color:#fff; font-size:1.35rem; }
.game-card-info p { color:rgba(255,255,255,.71); font-size:.8rem; }

.demo-card { display:block; min-height:195px; padding:28px 23px; border:1px solid var(--border); border-radius:14px; background:linear-gradient(145deg,rgba(24,32,55,.92),rgba(12,17,32,.92)); transition:all .25s ease; }
.demo-card:nth-child(1) { background:linear-gradient(145deg,rgba(93,53,138,.9),rgba(15,19,45,.96)); }
.demo-card:nth-child(2) { background:linear-gradient(145deg,rgba(101,79,28,.8),rgba(16,23,36,.96)); }
.demo-card:nth-child(3) { background:linear-gradient(145deg,rgba(19,81,117,.8),rgba(15,19,45,.96)); }
.demo-card:hover { transform: translateY(-5px); border-color:var(--border-gold); box-shadow:var(--shadow); color:var(--text); }
.demo-icon { margin-bottom:15px; font-size:2.45rem; }
.demo-card h3 { margin-bottom:7px; font-size:1.13rem; color:#fff; }
.demo-card p { color:rgba(255,255,255,.72); font-size:.82rem; }
.demo-card::after { content:'立即體驗 →'; display:block; margin-top:20px; color:var(--gold-light); font-size:.78rem; font-weight:800; }

.info-table { overflow: hidden; display:grid; grid-template-columns:1.35fr repeat(4,1fr); border:1px solid var(--border); border-radius:14px; background:rgba(14,19,34,.8); }
.info-table > div { padding:16px; border-right:1px solid var(--border); border-bottom:1px solid var(--border); font-size:.83rem; }
.info-table > div:nth-child(-n+5) { color:var(--gold-light); background:rgba(240,198,99,.06); font-weight:800; }
.info-table > div:nth-child(5n) { border-right:0; }
.info-table > div:nth-last-child(-n+5) { border-bottom:0; }
.info-table .method { color:#fff; font-weight:700; }
.seo-content { max-width:880px; margin:0 auto; padding:30px; border:1px solid var(--border); border-radius:14px; background:rgba(16,22,39,.62); }
.seo-content p { margin-bottom:14px; color:var(--text-soft); font-size:.9rem; line-height:1.9; }
.seo-content p:last-child { margin-bottom:0; }

/* Editorial article hub and learning pages */
.article-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; }
.article-card { position:relative; display:flex; min-height:272px; padding:23px 21px; overflow:hidden; flex-direction:column; border:1px solid var(--border); border-radius:16px; background:linear-gradient(145deg,rgba(31,42,73,.96),rgba(12,17,32,.96)); transition:transform .25s ease,border-color .25s ease,box-shadow .25s ease; }
.article-card::after { content:''; position:absolute; width:185px; height:185px; right:-73px; top:-75px; border:1px solid rgba(255,255,255,.18); border-radius:50%; box-shadow:0 0 0 21px rgba(255,255,255,.035),0 0 0 42px rgba(255,255,255,.018); }
.article-card:hover { color:var(--text); transform:translateY(-5px); border-color:var(--border-gold); box-shadow:var(--shadow); }
.article-card.tone-gold { background:linear-gradient(145deg,rgba(111,80,28,.94),rgba(18,22,36,.98)); }
.article-card.tone-blue { background:linear-gradient(145deg,rgba(40,77,151,.92),rgba(16,21,42,.98)); }
.article-card.tone-pink { background:linear-gradient(145deg,rgba(125,47,96,.92),rgba(27,19,47,.98)); }
.article-card.tone-cyan { background:linear-gradient(145deg,rgba(25,103,125,.92),rgba(15,22,40,.98)); }
.article-card > * { position:relative; z-index:1; }
.article-category { display:inline-flex; width:fit-content; margin-bottom:34px; padding:4px 8px; border-radius:5px; color:#fff6d3; background:rgba(255,255,255,.14); font-size:.68rem; font-weight:800; letter-spacing:.06em; }
.article-card h3 { margin-bottom:9px; font-size:1.16rem; line-height:1.42; }
.article-card p { color:rgba(255,255,255,.75); font-size:.82rem; line-height:1.7; }
.article-read { margin-top:auto; padding-top:20px; color:var(--gold-light); font-size:.79rem; font-weight:800; }
.article-hero { min-height:330px; }
.article-hero .lead { max-width:720px; }
.article-page { width:min(900px,calc(100% - 40px)); margin:0 auto; padding:66px 0 88px; }
.article-meta { display:flex; flex-wrap:wrap; gap:10px 18px; margin-bottom:25px; color:var(--muted); font-size:.78rem; }
.article-meta span { display:inline-flex; align-items:center; gap:6px; }
.article-content { padding:clamp(24px,4vw,48px); border:1px solid var(--border); border-radius:18px; background:rgba(16,22,39,.72); }
.article-content h2 { margin:38px 0 14px; color:var(--gold-light); font-family:'Playfair Display','Noto Sans TC',serif; font-size:clamp(1.4rem,2.5vw,1.85rem); }
.article-content h2:first-child { margin-top:0; }
.article-content h3 { margin:22px 0 8px; font-size:1.06rem; }
.article-content p { margin:0 0 16px; color:var(--text-soft); font-size:.94rem; line-height:1.95; }
.article-content ul, .article-content ol { margin:0 0 18px 22px; color:var(--text-soft); }
.article-content li { margin:8px 0; padding-left:3px; line-height:1.82; }
.article-note { margin:26px 0; padding:18px 20px; border-left:3px solid var(--gold); border-radius:0 12px 12px 0; background:rgba(240,198,99,.08); }
.article-note strong { display:block; margin-bottom:5px; color:var(--gold-light); font-size:.9rem; }
.article-note p { margin:0; font-size:.86rem; }
.article-related { margin-top:25px; display:flex; flex-wrap:wrap; gap:10px; }
.article-related a { padding:8px 11px; border:1px solid var(--border); border-radius:999px; color:var(--text-soft); background:rgba(255,255,255,.025); font-size:.78rem; }
.article-related a:hover { border-color:var(--border-gold); color:var(--gold-light); }

/* Content-page pattern: compact campaign hero, data panels and reading modules */
.content-hero { position:relative; isolation:isolate; min-height:370px; display:flex; align-items:flex-end; overflow:hidden; background:#0c1020; background-position:center; background-size:cover; }
.content-hero::before { content:''; position:absolute; z-index:-1; inset:0; background:linear-gradient(90deg,rgba(5,7,17,.97) 0%,rgba(5,7,17,.87) 43%,rgba(5,7,17,.33) 100%),linear-gradient(0deg,rgba(5,7,17,.9),transparent 64%); }
.content-hero::after { content:''; position:absolute; z-index:-1; width:440px; height:440px; right:-110px; bottom:-280px; border:1px solid rgba(240,198,99,.23); border-radius:50%; box-shadow:0 0 0 42px rgba(240,198,99,.04),0 0 0 84px rgba(240,198,99,.025); }
.content-hero-inner { width:min(1240px,calc(100% - 40px)); margin:0 auto; padding:82px 0 55px; }
.breadcrumb { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:17px; color:var(--muted); font-size:.76rem; }
.breadcrumb a { color:var(--text-soft); }
.breadcrumb span:last-child { color:var(--gold-light); }
.eyebrow { display:inline-flex; align-items:center; gap:8px; margin-bottom:11px; color:var(--gold-light); font-size:.75rem; font-weight:800; letter-spacing:.1em; }
.eyebrow::before { content:'◆'; color:var(--gold); font-size:.55rem; }
.content-hero h1 { max-width:700px; margin-bottom:11px; font-family:'Playfair Display','Noto Sans TC',serif; font-size:clamp(2.3rem,5vw,4.25rem); line-height:1.08; letter-spacing:-.04em; }
.content-hero .lead { max-width:605px; color:var(--text-soft); font-size:1rem; }
.content-hero .hero-actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:24px; }
.anchor-nav { position:relative; z-index:4; margin-top:-1px; border-top:1px solid var(--border); border-bottom:1px solid var(--border); background:rgba(11,15,28,.93); }
.anchor-nav-inner { display:flex; align-items:center; gap:24px; overflow-x:auto; width:min(1240px,calc(100% - 40px)); min-height:55px; margin:0 auto; white-space:nowrap; scrollbar-width:none; }
.anchor-nav-inner::-webkit-scrollbar { display:none; }
.anchor-nav a { color:var(--text-soft); font-size:.82rem; }
.anchor-nav a:hover { color:var(--gold-light); }
.pill-row { display:flex; flex-wrap:wrap; justify-content:center; gap:9px; margin:22px 0 0; }
.pill { display:inline-flex; align-items:center; min-height:29px; padding:0 11px; border:1px solid var(--border); border-radius:999px; color:var(--text-soft); background:rgba(255,255,255,.025); font-size:.74rem; }
.icon-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:15px; }
.icon-card { min-height:164px; padding:22px 19px; border:1px solid var(--border); border-radius:14px; background:linear-gradient(155deg,rgba(27,37,64,.85),rgba(13,18,33,.8)); transition:transform .25s ease,border-color .25s ease; }
.icon-card:hover { transform:translateY(-4px); border-color:var(--border-gold); }
.icon-card .icon { display:block; margin-bottom:13px; font-size:1.85rem; }
.icon-card h3 { margin-bottom:6px; font-size:1rem; }
.icon-card p { color:var(--text-soft); font-size:.8rem; line-height:1.65; }
.stack-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:17px; }
.stack-card { position:relative; min-height:187px; padding:23px; overflow:hidden; border:1px solid var(--border); border-radius:14px; background:linear-gradient(140deg,rgba(22,31,55,.96),rgba(11,16,30,.96)); }
.stack-card::after { content:''; position:absolute; right:-44px; bottom:-69px; width:170px; height:170px; border:1px solid rgba(240,198,99,.16); border-radius:50%; box-shadow:0 0 0 20px rgba(240,198,99,.028),0 0 0 40px rgba(240,198,99,.018); }
.stack-card .stack-index { position:relative; z-index:1; display:block; color:var(--gold); font-size:.72rem; font-weight:900; letter-spacing:.12em; }
.stack-card h3 { position:relative; z-index:1; margin:13px 0 7px; font-size:1.12rem; }
.stack-card p { position:relative; z-index:1; color:var(--text-soft); font-size:.82rem; line-height:1.65; }
.list-panel { padding:28px; border:1px solid var(--border); border-radius:16px; background:rgba(16,22,39,.7); }
.list-panel h3 { margin-bottom:15px; color:var(--gold-light); font-size:1.08rem; }
.rule-list { list-style:none; }
.rule-list li { position:relative; padding:11px 0 11px 24px; border-bottom:1px solid rgba(164,183,225,.09); color:var(--text-soft); font-size:.86rem; }
.rule-list li:last-child { border-bottom:0; }
.rule-list li::before { content:'✓'; position:absolute; left:0; top:11px; color:var(--gold); font-weight:900; }
.offer-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:17px; }
.offer-card { position:relative; min-height:240px; padding:24px; overflow:hidden; border:1px solid var(--border); border-radius:16px; background:linear-gradient(145deg,rgba(39,54,96,.95),rgba(13,18,34,.95)); }
.offer-card::before { content:''; position:absolute; right:-78px; top:-88px; width:205px; height:205px; border-radius:50%; background:radial-gradient(circle,rgba(255,255,255,.23),transparent 66%); }
.offer-card:nth-child(2n) { background:linear-gradient(145deg,rgba(105,55,117,.92),rgba(22,19,47,.95)); }
.offer-card:nth-child(3n) { background:linear-gradient(145deg,rgba(35,91,112,.92),rgba(13,21,39,.95)); }
.offer-card > * { position:relative; z-index:1; }
.offer-type { display:inline-flex; padding:4px 8px; border-radius:5px; color:#fff6d3; background:rgba(255,255,255,.14); font-size:.68rem; font-weight:800; }
.offer-card h2 { margin:15px 0 8px; font-size:1.26rem; line-height:1.3; }
.offer-card p { min-height:51px; color:rgba(255,255,255,.75); font-size:.81rem; }
.offer-card .text-link { margin-top:18px; }
.faq-wrap { max-width:900px; margin:0 auto; }
.faq-item { overflow:hidden; margin-bottom:11px; border:1px solid var(--border); border-radius:12px; background:rgba(16,22,39,.72); transition:border-color .2s ease; }
.faq-item.open { border-color:rgba(240,198,99,.42); }
.faq-q { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:18px 20px; color:#fff; cursor:pointer; font-size:.94rem; font-weight:700; }
.faq-q span { flex:0 0 auto; color:var(--gold); transition:transform .2s ease; }
.faq-item.open .faq-q span { transform:rotate(180deg); }
.faq-a { display:none; padding:0 20px 19px; color:var(--text-soft); font-size:.86rem; line-height:1.85; }
.faq-item.open .faq-a { display:block; }
.score-shell { overflow:hidden; border:1px solid var(--border); border-radius:16px; background:rgba(15,21,37,.92); box-shadow:var(--shadow); }
.score-head { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:14px 18px; border-bottom:1px solid var(--border); }
.score-head p { color:var(--text-soft); font-size:.81rem; }
.score-head b { color:var(--gold-light); font-size:.84rem; }
.score-shell iframe { display:block; width:100%; min-height:580px; border:0; }

/* footer */
.footer { padding:60px 0 28px; border-top:1px solid var(--border); background:#050711; }
.footer-grid { display:grid; grid-template-columns:1.8fr 1fr 1fr 1fr; gap:34px; margin-bottom:40px; }
.footer-logo { width:auto; height:42px; margin-bottom:16px; }
.footer-col p, .footer-col li { color:var(--muted); font-size:.82rem; }
.footer-col h4 { margin-bottom:15px; color:var(--gold-light); font-size:.9rem; }
.footer-col ul { list-style:none; }
.footer-col li { margin-bottom:8px; }
.footer-col a { color:var(--text-soft); }
.footer-col a:hover { color:var(--gold-light); }
.footer-bottom { padding-top:20px; border-top:1px solid var(--border); color:var(--muted); text-align:center; font-size:.75rem; }
.footer-bottom p + p { margin-top:5px; }

/* iframe and content pages */
.iframe-page { min-height:100vh; padding:105px 0 70px; }
.iframe-page h1 { margin-bottom:12px; font-family:'Playfair Display','Noto Sans TC',serif; text-align:center; }
.iframe-page .iframe-container { width:min(1240px,calc(100% - 40px)); margin:0 auto; overflow:hidden; border:1px solid var(--border); border-radius:14px; background:var(--surface); }
.iframe-page iframe { width:100%; min-height:78vh; border:0; }

@media (max-width:1120px) {
  .nav-links { gap: 12px; }
  .nav-links a { font-size:.75rem; }
  .promo-grid { grid-template-columns:repeat(2,1fr); }
  .service-grid, .grid-4, .article-grid { grid-template-columns:repeat(2,1fr); }
  .icon-grid { grid-template-columns:repeat(2,1fr); }
  .stack-grid, .offer-grid { grid-template-columns:repeat(2,1fr); }
}
@media (max-width:820px) {
  .header-top { display:none; }
  .nav-main { min-height:63px; }
  .nav-links { display:none; position:absolute; top:63px; right:0; left:0; padding:16px 20px 21px; border-bottom:1px solid var(--border); background:rgba(6,9,20,.98); flex-direction:column; align-items:stretch; gap:0; box-shadow:var(--shadow); }
  .nav-links.active { display:flex; }
  .nav-links a { justify-content:center; padding:12px; font-size:.9rem; }
  .nav-links a::after { bottom:5px; left:35%; right:35%; }
  .nav-main > .btn-cta { display:none; }
  .mobile-menu-btn { display:block; }
  .hero { min-height:610px; background-position:62% center; }
  .hero::before { background:linear-gradient(90deg,rgba(6,9,20,.95),rgba(6,9,20,.74)),linear-gradient(0deg,rgba(6,9,20,.8),transparent); }
  .hero-content { padding:90px 0 116px; }
  .promo-section { margin-top:-40px; }
  .info-table { grid-template-columns:1fr 1fr; }
  .info-table > div { border-right:1px solid var(--border) !important; }
  .info-table > div:nth-child(2n) { border-right:0 !important; }
  .info-table > div:nth-last-child(-n+5) { border-bottom:1px solid var(--border); }
  .info-table > div:nth-last-child(-n+2) { border-bottom:0; }
  .content-hero { min-height:340px; background-position:60% center; }
  .content-hero-inner { padding:66px 0 45px; }
}
@media (max-width:560px) {
  .container, .nav-main { width:min(100% - 30px,1240px); }
  .notice-inner { width:calc(100% - 30px); }
  .logo img { height:38px; }
  .hero { min-height:580px; background-position:66% center; }
  .hero-content { padding:80px 0 95px; }
  .hero-title { font-size:clamp(2.7rem,14vw,4rem); }
  .hero-meta { gap:12px 16px; }
  .promo-grid, .service-grid, .grid-4, .grid-3, .article-grid, .footer-grid { grid-template-columns:1fr; }
  .icon-grid, .stack-grid, .offer-grid { grid-template-columns:1fr; }
  .promo-card { min-height:144px; }
  .section { padding:63px 0; }
  .home-section-head { display:block; }
  .home-section-head p { margin-top:11px; }
  .home-section-head .text-link { margin-top:14px; }
  .game-card { min-height:235px; }
  .game-card img { height:235px; }
  .seo-content { padding:22px; }
  .footer-grid { gap:25px; }
  .footer { padding-top:45px; }
}
