/* elite 官網（elite.ewin-soft.com/）— 沿用 eLite「Modern Private Club」品牌色：暖炭灰底、奶油色字、克制的金。 */

:root {
  --bg: #111315;
  --bg-deep: #0c0d0f;
  --surface: #181b1f;
  --surface-2: #1f2328;
  --surface-3: #262b31;
  --line: #2c3138;
  --line-strong: #3a4047;
  --fg: #f5f2ea;
  --fg-muted: #b8b2a7;
  --fg-subtle: #837e75;
  --gold: #c9a86a;
  --gold-hover: #e0c28c;
  --gold-press: #b0915a;
  --gold-soft: rgba(201, 168, 106, 0.12);
  --gold-line: rgba(201, 168, 106, 0.32);
  --banker: #d0665b;
  --player: #5e8fd8;
  --tie: #5fae8b;
  --focus: rgba(201, 168, 106, 0.5);

  --font-display: 'Playfair Display', 'Noto Serif TC', 'Songti TC', 'PMingLiU', Georgia, serif;
  --font-body: 'Inter', 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', 'Cascadia Code', Menlo, Consolas, monospace;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
  --shadow-gold: 0 14px 40px rgba(201, 168, 106, 0.16);
  --inset-line: inset 0 0 0 1px rgba(255, 255, 255, 0.045);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --container: 1200px;
  --gutter: 24px;
  --nav-h: 72px;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--fg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 8px);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 160ms var(--ease);
}
a:hover {
  color: var(--gold-hover);
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--gold-soft);
  color: var(--fg);
}

h1,
h2,
h3,
p {
  margin: 0;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--gold);
  color: #16171b;
  font-weight: 600;
}
.skip:focus {
  top: 12px;
  color: #16171b;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ── 共用排版 ─────────────────────────────────────── */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--gold-line);
}

.h2 {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.h2 em {
  font-style: normal;
  color: var(--gold);
}
.h2,
.hero-title {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.lead {
  margin-top: 18px;
  max-width: 640px;
  font-size: 17px;
  line-height: 1.8;
  color: var(--fg-muted);
  text-wrap: pretty;
}

.section {
  position: relative;
  padding: 120px 0;
}
.section--alt {
  background: linear-gradient(180deg, var(--bg-deep), var(--bg) 70%);
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}
.section-head {
  max-width: 720px;
  margin-bottom: 56px;
}
.section-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-head--center .eyebrow::after {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--gold-line);
}
.section-head--center .lead {
  margin-left: auto;
  margin-right: auto;
}

/* ── 按鈕 ─────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 600 15px/1 var(--font-body);
  letter-spacing: 0.02em;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 200ms var(--ease),
    border-color 200ms var(--ease),
    color 200ms var(--ease),
    transform 200ms var(--ease),
    box-shadow 200ms var(--ease);
}
.btn svg {
  width: 16px;
  height: 16px;
  transition: transform 200ms var(--ease);
}
.btn:hover svg {
  transform: translateX(3px);
}
.btn--primary {
  background: var(--gold);
  color: #16171b;
  box-shadow: var(--shadow-gold);
}
.btn--primary:hover {
  background: var(--gold-hover);
  color: #16171b;
  transform: translateY(-1px);
}
.btn--primary:active {
  background: var(--gold-press);
  transform: none;
}
.btn--ghost {
  border-color: var(--line-strong);
  color: var(--fg);
}
.btn--ghost:hover {
  border-color: var(--gold-line);
  background: var(--gold-soft);
  color: var(--fg);
}
.btn--sm {
  min-height: 38px;
  padding: 0 18px;
  font-size: 14px;
}
.btn--block {
  width: 100%;
}
.btn[aria-disabled='true'] {
  pointer-events: none;
  opacity: 0.45;
  box-shadow: none;
}

/* ── 導覽列 ───────────────────────────────────────── */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--nav-h);
  transition:
    background-color 240ms var(--ease),
    border-color 240ms var(--ease),
    backdrop-filter 240ms var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled,
.nav.is-open {
  background: rgba(17, 19, 21, 0.86);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 100%;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--fg);
  flex: none;
}
.brand:hover {
  color: var(--fg);
}
.brand-mark {
  width: 32px;
  height: 28px;
  color: var(--gold);
}
.brand-lockup {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand-name {
  font-family: var(--font-body);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.brand-sub {
  margin-top: 5px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-subtle);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 12px;
}
.nav-links a {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--fg-muted);
}
.nav-links a:hover {
  color: var(--fg);
  background: rgba(255, 255, 255, 0.04);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.nav-link {
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-muted);
}
.nav-link:hover {
  color: var(--fg);
}
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--fg-muted);
  font: 500 13px/1 var(--font-body);
  cursor: pointer;
}
.lang-btn:hover {
  color: var(--fg);
  border-color: var(--line-strong);
}
.lang-btn svg {
  width: 14px;
  height: 14px;
}
.nav-burger {
  display: none;
  width: 42px;
  height: 42px;
  margin-right: -8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--fg);
  cursor: pointer;
}
.nav-burger svg {
  width: 22px;
  height: 22px;
  margin: 0 auto;
}
.nav-burger .i-close {
  display: none;
}
.nav.is-open .nav-burger .i-open {
  display: none;
}
.nav.is-open .nav-burger .i-close {
  display: block;
}
.nav-drawer {
  display: none;
}

/* ── Hero ─────────────────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-h) + 84px) 0 112px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 78% 28%, rgba(201, 168, 106, 0.1), transparent 62%),
    radial-gradient(700px 480px at 8% 0%, rgba(94, 143, 216, 0.06), transparent 60%);
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(245, 242, 234, 0.07) 1px, transparent 1.2px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 75%);
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 64px;
}
.hero-title {
  margin-top: 22px;
  font-family: var(--font-display);
  font-size: clamp(38px, 4.2vw, 58px);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.hero-title em {
  display: inline-block;
  margin-top: 6px;
  font-style: normal;
  color: var(--gold);
}
.hero .lead {
  margin-top: 26px;
  max-width: 560px;
  font-size: 18px;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--fg-muted);
}
.hero-meta li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-meta svg {
  width: 16px;
  height: 16px;
  color: var(--gold);
  flex: none;
}
.notice {
  display: none;
  margin-top: 22px;
  padding: 12px 16px;
  border: 1px solid rgba(212, 162, 74, 0.35);
  border-radius: var(--radius);
  background: rgba(212, 162, 74, 0.08);
  color: #e6c37e;
  font-size: 14px;
}
.is-signup-closed .notice {
  display: block;
}

/* 右側的產品示意（純 HTML／CSS，不用圖片） */
.mock {
  position: relative;
  padding: 26px 0 64px 0;
}
.mock-game {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #1c2024, #15181b);
  box-shadow: var(--shadow-lg), var(--inset-line);
  overflow: hidden;
}
.mock-games {
  display: flex;
  gap: 6px;
  padding: 12px 14px 0;
}
.mock-games span {
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--fg-subtle);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.mock-games span.is-on {
  background: var(--gold-soft);
  color: var(--gold-hover);
  box-shadow: inset 0 0 0 1px var(--gold-line);
}
.mock-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.mock-table {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
}
.mock-variant {
  font-size: 12px;
  color: var(--fg-subtle);
}
.mock-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
  background: rgba(95, 174, 139, 0.12);
  color: #8fd2b1;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.mock-state i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 0 currentColor;
  animation: pulse 1.6s var(--ease) infinite;
}
.mock-state.is-dealing {
  background: rgba(201, 168, 106, 0.14);
  color: var(--gold-hover);
}
.mock-stage {
  position: relative;
  aspect-ratio: 16 / 8.4;
  background:
    radial-gradient(120% 90% at 50% 105%, #1f5a45 0%, #133d30 45%, #0b231c 80%),
    #0b231c;
  overflow: hidden;
}
.mock-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(255, 233, 190, 0.18), transparent 70%),
    repeating-radial-gradient(circle at 50% 120%, rgba(255, 255, 255, 0.025) 0 2px, transparent 2px 5px);
}
.mock-stage svg.felt {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.mock-live {
  position: absolute;
  left: 12px;
  top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.mock-live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff5b4f;
  animation: blink 1.2s steps(2, jump-none) infinite;
}
.mock-hd {
  position: absolute;
  right: 12px;
  top: 12px;
  padding: 3px 7px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.hands {
  position: absolute;
  left: 50%;
  bottom: 13%;
  display: flex;
  gap: 18%;
  width: 78%;
  transform: translateX(-50%);
  justify-content: center;
}
.hand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.hand-cards {
  display: flex;
  gap: 6px;
}
.card {
  position: relative;
  width: clamp(30px, 4.2vw, 46px);
  aspect-ratio: 5 / 7;
  border-radius: 4px;
  background: linear-gradient(160deg, #fffdf8, #ece6d8);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
  color: #1b1c1f;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1;
}
.card b {
  position: absolute;
  left: 12%;
  top: 9%;
  font-size: clamp(11px, 1.4vw, 15px);
}
.card span {
  position: absolute;
  right: 10%;
  bottom: 8%;
  font-size: clamp(13px, 1.7vw, 19px);
}
.card.red {
  color: #b8342b;
}
.hand-label {
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
}
.hand--p .hand-label {
  background: rgba(94, 143, 216, 0.85);
}
.hand--b .hand-label {
  background: rgba(208, 102, 91, 0.9);
}
.hand-win .hand-label {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.7);
}
.mock-bets {
  display: grid;
  grid-template-columns: 1fr 0.8fr 1fr;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}
.bet {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 6px;
  border: 1px solid;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.bet small {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  opacity: 0.75;
  font-variant-numeric: tabular-nums;
}
.bet--p {
  border-color: rgba(94, 143, 216, 0.45);
  background: rgba(94, 143, 216, 0.1);
  color: #9fbdf0;
}
.bet--t {
  border-color: rgba(95, 174, 139, 0.45);
  background: rgba(95, 174, 139, 0.1);
  color: #95d4b6;
}
.bet--b {
  border-color: rgba(208, 102, 91, 0.5);
  background: rgba(208, 102, 91, 0.12);
  color: #f0a39a;
}
.mock-road {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(6, 13px);
  grid-auto-columns: 13px;
  gap: 3px;
  justify-content: unsafe end;
  height: calc(6 * 13px + 5 * 3px + 24px);
  padding: 12px;
  overflow: hidden;
  background: var(--surface);
}
.mock-road i {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
}
.mock-road i.b {
  background: var(--banker);
}
.mock-road i.p {
  background: var(--player);
}
.mock-road i.t {
  background: var(--tie);
}
.mock-road i.new {
  animation: pop 600ms var(--ease-out);
}

.mock-float {
  position: absolute;
  z-index: 2;
  border-radius: var(--radius);
  background: rgba(31, 35, 40, 0.92);
  box-shadow: var(--shadow-lg), var(--inset-line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.mock-console {
  left: -42px;
  bottom: 0;
  width: 230px;
  padding: 14px 16px 12px;
}
.mock-console .k {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-subtle);
}
.mock-console .v {
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.mock-console .d {
  margin-left: 6px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: #8fd2b1;
}
.spark {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 38px;
  margin-top: 10px;
}
.spark i {
  flex: 1;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(180deg, var(--gold), rgba(201, 168, 106, 0.25));
}
.mock-console .foot {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--fg-muted);
}
.mock-console .foot b {
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}
.mock-api {
  right: -18px;
  top: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  font: 500 12px/1 var(--font-mono);
  color: var(--fg-muted);
}
.mock-api b {
  padding: 3px 6px;
  border-radius: 4px;
  background: rgba(95, 174, 139, 0.16);
  color: #8fd2b1;
  font-weight: 600;
}

/* ── 數字列 ───────────────────────────────────────── */

.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-deep);
}
.strip-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.stat {
  padding: 34px 24px;
  text-align: center;
}
.stat + .stat {
  border-left: 1px solid var(--line);
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 500;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.stat-label {
  margin-top: 8px;
  font-size: 14px;
  color: var(--fg-muted);
}

/* ── 流程 ─────────────────────────────────────────── */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 28px 24px 30px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--inset-line);
}
.step::after {
  content: '';
  position: absolute;
  top: 46px;
  right: -20px;
  width: 20px;
  height: 1px;
  background: var(--gold-line);
}
.step:last-child::after {
  display: none;
}
.step-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--gold-line);
  border-radius: 50%;
  color: var(--gold);
  font: 600 14px/1 var(--font-display);
  font-variant-numeric: tabular-nums;
}
.step h3 {
  margin-top: 22px;
  font-size: 19px;
  font-weight: 600;
}
.step p {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--fg-muted);
}
.steps-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 36px;
  font-size: 15px;
  color: var(--fg-muted);
}
.steps-note svg {
  width: 18px;
  height: 18px;
  color: var(--gold);
  flex: none;
}
.steps-note {
  flex-wrap: wrap;
  text-align: center;
}
.steps-note a {
  flex: none;
  white-space: nowrap;
  font-weight: 600;
}

/* ── 功能 ─────────────────────────────────────────── */

.features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--line);
  overflow: hidden;
}
.feature {
  padding: 30px 26px 32px;
  background: var(--bg);
  transition: background-color 240ms var(--ease);
}
.feature:hover {
  background: var(--surface);
}
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--gold-soft);
  color: var(--gold);
}
.feature-icon svg {
  width: 22px;
  height: 22px;
}
.feature h3 {
  margin-top: 20px;
  font-size: 18px;
  font-weight: 600;
}
.feature p {
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--fg-muted);
}

/* ── 遊戲 ─────────────────────────────────────────── */

.games {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.game {
  padding: 16px 16px 28px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--inset-line);
  transition: background-color 240ms var(--ease), box-shadow 240ms var(--ease);
}
.game:hover {
  background: var(--surface-2);
  box-shadow: var(--inset-line), 0 0 0 1px var(--gold-line);
}
.game-art {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  height: 124px;
  border-radius: var(--radius);
  background: radial-gradient(ellipse 85% 95% at 50% 0%, rgba(201, 168, 106, 0.13), rgba(201, 168, 106, 0) 70%), var(--bg-deep);
  box-shadow: var(--inset-line);
}
.game-art .card {
  width: 34px;
}
.game-art .card b {
  font-size: 12px;
}
.game-art .card span {
  font-size: 14px;
}
.game-hand {
  position: relative;
  display: flex;
  gap: 4px;
  padding-bottom: 12px;
}
.game-hand .tag {
  position: absolute;
  left: 50%;
  bottom: -9px;
  transform: translateX(-50%);
  padding: 1px 10px;
  border-radius: 999px;
  color: #fff;
  font: normal 700 11px/1.6 var(--font-body);
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.tag--p {
  background: rgba(94, 143, 216, 0.85);
}
.tag--b {
  background: rgba(208, 102, 91, 0.9);
}
.tag--win {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.7);
}
.game-cards {
  display: flex;
  gap: 4px;
}
.game-cards--hole .card {
  transform: translateY(-6px);
  box-shadow: 0 0 0 1.5px var(--gold), 0 6px 14px rgba(0, 0, 0, 0.45);
}
/* 牛牛：五張牌疊成扇形，下面標「牛牛」 */
.game-hand--fan {
  gap: 0;
}
.game-hand--fan .card + .card {
  margin-left: -10px;
}
.game-hand--fan .card:nth-child(1) {
  transform: rotate(-10deg) translateY(4px);
}
.game-hand--fan .card:nth-child(2) {
  transform: rotate(-5deg) translateY(1px);
}
.game-hand--fan .card:nth-child(4) {
  transform: rotate(5deg) translateY(1px);
}
.game-hand--fan .card:nth-child(5) {
  transform: rotate(10deg) translateY(4px);
}
.tag--nn {
  background: rgba(201, 168, 106, 0.95);
  color: #16171b !important;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.7);
}
.game h3 {
  margin-top: 22px;
  padding: 0 6px;
  font-size: 18px;
  font-weight: 600;
}
.game p {
  margin-top: 8px;
  padding: 0 6px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--fg-muted);
}

/* ── 價格 ─────────────────────────────────────────── */

.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 36px 34px 34px;
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--inset-line);
}
.plan--pro {
  background:
    linear-gradient(180deg, rgba(201, 168, 106, 0.1), rgba(201, 168, 106, 0) 45%),
    var(--surface);
  box-shadow:
    inset 0 0 0 1px var(--gold-line),
    var(--shadow-gold);
}
.plan-badge {
  position: absolute;
  top: 22px;
  right: 22px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--gold);
  color: #16171b;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.plan-name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--fg-muted);
}
.plan-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 14px;
}
.plan-price strong {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.plan-price span {
  font-size: 15px;
  color: var(--fg-muted);
}
.plan-extra {
  margin-top: 8px;
  font-size: 15px;
  color: var(--gold);
}
.plan-desc {
  margin-top: 16px;
  font-size: 15px;
  color: var(--fg-muted);
}
.plan-list {
  display: grid;
  gap: 12px;
  margin: 26px 0 32px;
  padding: 26px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  font-size: 15px;
}
.plan-list li {
  display: flex;
  gap: 12px;
  line-height: 1.55;
}
.plan-list svg {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--gold);
  flex: none;
}
.plan .btn {
  margin-top: auto;
}
.plans-note {
  max-width: 960px;
  margin: 26px auto 0;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--fg-subtle);
  text-align: center;
}

/* ── 開發者 ───────────────────────────────────────── */

.dev {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 64px;
}
.dev-links {
  display: grid;
  gap: 2px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}
.dev-links a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
  color: var(--fg);
  font-weight: 500;
}
.dev-links a:hover {
  color: var(--gold-hover);
}
.dev-links a span:not(.t) {
  margin-left: auto;
  font-size: 13px;
  font-weight: 400;
  color: var(--fg-subtle);
}
.dev-links svg {
  width: 18px;
  height: 18px;
  color: var(--gold);
  flex: none;
}
.code {
  border-radius: var(--radius-lg);
  background: #0d0f11;
  box-shadow: var(--shadow-lg), var(--inset-line);
  overflow: hidden;
}
.code-head {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}
.code-head i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line-strong);
}
.code-head span {
  margin-left: 10px;
  font: 500 12px/1 var(--font-mono);
  color: var(--fg-subtle);
}
.code pre {
  margin: 0;
  padding: 22px 22px 24px;
  overflow-x: auto;
  font: 13.5px/1.75 var(--font-mono);
  color: #d8d3c8;
  tab-size: 2;
}
.code .c {
  color: #6f7a70;
}
.code .s {
  color: #e0c28c;
}
.code .k {
  color: #9fbdf0;
}
.code .f {
  color: #95d4b6;
}
.code-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 16px 16px;
  border-top: 1px solid var(--line);
}
.code-foot span {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font: 500 12px/1.2 var(--font-mono);
  color: var(--fg-muted);
}

/* ── 穩定與安全 ───────────────────────────────────── */

.trust {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.trust-item {
  padding: 26px 24px;
  border-top: 1px solid var(--gold-line);
}
.trust-item h3 {
  font-size: 17px;
  font-weight: 600;
}
.trust-item p {
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--fg-muted);
}

/* ── 常見問題 ─────────────────────────────────────── */

.faq {
  max-width: 860px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 4px;
  font-size: 17px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '';
  flex: none;
  width: 11px;
  height: 11px;
  margin-left: auto;
  border-right: 1.5px solid var(--gold);
  border-bottom: 1.5px solid var(--gold);
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform 240ms var(--ease);
}
.faq details[open] summary::after {
  transform: rotate(225deg) translate(-3px, -3px);
}
.faq summary:hover {
  color: var(--gold-hover);
}
.faq details p {
  padding: 0 44px 24px 4px;
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--fg-muted);
}

/* ── 結尾 CTA ─────────────────────────────────────── */

.final {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
  text-align: center;
}
.final::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(640px 320px at 50% 100%, rgba(201, 168, 106, 0.14), transparent 70%);
  pointer-events: none;
}
.final .h2 {
  font-size: clamp(32px, 4.2vw, 54px);
}
.final .lead {
  margin: 18px auto 0;
}
.final .hero-ctas {
  justify-content: center;
}

/* ── 頁尾 ─────────────────────────────────────────── */

.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr));
  gap: 40px;
  padding: 64px 0 48px;
}
.footer-about {
  max-width: 340px;
  margin-top: 18px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--fg-muted);
}
.footer h3 {
  margin: 4px 0 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-subtle);
}
.footer ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer ul a {
  font-size: 14px;
  color: var(--fg-muted);
}
.footer ul a:hover {
  color: var(--fg);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 22px 0 30px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--fg-subtle);
}
.footer-bottom p {
  max-width: 720px;
  line-height: 1.7;
}

/* ── 動態 ─────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 700ms var(--ease-out),
    transform 700ms var(--ease-out);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
.no-js .reveal {
  opacity: 1;
  transform: none;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(143, 210, 177, 0.55);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(143, 210, 177, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(143, 210, 177, 0);
  }
}
@keyframes blink {
  50% {
    opacity: 0.2;
  }
}
@keyframes pop {
  0% {
    transform: scale(0.3);
    opacity: 0;
  }
  100% {
    transform: none;
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ── 響應式 ───────────────────────────────────────── */

@media (max-width: 1080px) {
  .nav-links {
    display: none;
  }
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 56px;
  }
  .hero-copy {
    max-width: 680px;
  }
  .mock {
    max-width: 620px;
    margin: 0 auto;
    width: 100%;
    min-width: 0;
  }
  .mock-console {
    left: -12px;
  }
  .mock-api {
    right: -8px;
  }
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .games {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .step::after {
    display: none;
  }
  .dev {
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
  }
  .trust {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  :root {
    --nav-h: 64px;
  }
  .nav-actions .nav-link,
  .nav-actions .btn {
    display: none;
  }
  .nav-burger {
    display: block;
  }
  .nav-drawer {
    position: fixed;
    inset: var(--nav-h) 0 auto;
    display: none;
    padding: 12px var(--gutter) 24px;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
  }
  .nav.is-open {
    background: var(--bg);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .nav.is-open .nav-drawer {
    display: block;
  }
  .nav-drawer a:not(.btn) {
    display: block;
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
    color: var(--fg);
    font-size: 16px;
  }
  .nav-drawer .btn {
    margin-top: 18px;
  }
  .plans {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 16px;
  }
  .section,
  .final {
    padding: 84px 0;
  }
  .section-head {
    margin-bottom: 40px;
  }
  .hero {
    padding: calc(var(--nav-h) + 48px) 0 72px;
  }
  .hero .lead {
    font-size: 16.5px;
  }
  .hero-ctas .btn {
    flex: 1 1 100%;
  }
  .mock {
    padding: 34px 0 110px;
  }
  .mock-console {
    left: 8px;
    width: 200px;
  }
  .mock-api {
    right: 6px;
    font-size: 11px;
  }
  .mock-variant {
    display: none;
  }
  .mock-table {
    white-space: nowrap;
  }
  .strip-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stat {
    padding: 26px 12px;
  }
  /* 手機：第一格（0% 抽成）佔滿一列，其餘兩兩一列 */
  .stat:first-child {
    grid-column: 1 / -1;
  }
  .stat:nth-child(2),
  .stat:nth-child(4) {
    border-left: 0;
  }
  .stat:nth-child(n + 2) {
    border-top: 1px solid var(--line);
  }
  .features,
  .games,
  .steps,
  .trust {
    grid-template-columns: minmax(0, 1fr);
  }
  .plan {
    padding: 30px 22px 26px;
  }
  .plan-price strong {
    font-size: 48px;
  }
  .faq details p {
    padding-right: 4px;
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }
}

/* ── 推廣價（/api/pub/signup-config 的 tablePriceRegularUsd 高於目前桌費時顯示）── */
.promo-only { display: none; }
.has-promo .promo-only { display: revert; }
.has-promo .hero-promo { display: inline-flex; }
.hero-promo {
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  padding: 6px 14px;
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold-hover);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.hero-promo:hover { border-color: var(--gold); color: var(--gold); }
.hero-promo b { color: var(--gold); }
.plan-ribbon {
  position: absolute;
  top: 14px;
  left: -34px;
  padding: 4px 40px;
  transform: rotate(-35deg);
  background: var(--gold);
  color: #1a1408;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.plan--pro { overflow: hidden; }
.plan-was {
  margin-right: 8px;
  color: var(--fg-subtle);
  font-size: 0.55em;
  font-weight: 500;
  align-self: center;
}
.plan-promo { margin-top: 4px; color: var(--gold); font-size: 13px; }
.plan-promo b { font-weight: 700; }

/* ── 語言選單 ── */
.lang-menu { position: relative; }
.lang-list {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  min-width: 160px;
  margin: 0;
  padding: 6px;
  list-style: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface-2);
  box-shadow: var(--shadow-lg);
}
.lang-list[hidden] { display: none; }
.lang-list button {
  display: block;
  width: 100%;
  padding: 8px 12px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}
.lang-list button:hover, .lang-list button:focus-visible { background: var(--gold-soft); outline: none; }
.lang-list button[aria-checked="true"] { color: var(--gold); font-weight: 600; }

/* ── 各語言的字型（Playfair／Inter 沒有的字由系統字型補上）── */
:root:lang(zh-Hans) { --font-display: 'Playfair Display', 'Noto Serif SC', 'Songti SC', 'SimSun', Georgia, serif; --font-body: 'Inter', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', system-ui, -apple-system, sans-serif; }
:root:lang(ja) { --font-display: 'Playfair Display', 'Noto Serif JP', 'Hiragino Mincho ProN', 'Yu Mincho', Georgia, serif; --font-body: 'Inter', 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', 'Meiryo', system-ui, sans-serif; }
:root:lang(ko) { --font-display: 'Playfair Display', 'Noto Serif KR', 'AppleMyungjo', 'Batang', Georgia, serif; --font-body: 'Inter', 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif; }
:root:lang(th) { --font-display: 'Playfair Display', 'Noto Serif Thai', 'Leelawadee UI', 'Thonburi', Georgia, serif; --font-body: 'Inter', 'Noto Sans Thai', 'Leelawadee UI', 'Thonburi', Tahoma, system-ui, sans-serif; }

/* ── 自有桌檯（荷官平板、AI 視覺辨識、API 推送、WebRTC 直播）── */
.studio {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.studio-item {
  padding: 28px 24px 30px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--inset-line);
  transition: background-color 240ms var(--ease), box-shadow 240ms var(--ease);
}
.studio-item:hover {
  background: var(--surface-2);
  box-shadow: var(--inset-line), 0 0 0 1px var(--gold-line);
}
.studio-item h3 {
  margin-top: 20px;
  font-size: 18px;
  font-weight: 600;
}
.studio-item p {
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--fg-muted);
}

/* ── 串流費用試算（價格區；單價讀 /api/pub/signup-config）── */
.calc {
  max-width: 960px;
  margin: 28px auto 0;
  padding: 30px 34px 26px;
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--inset-line);
}
.calc-head h3 {
  font-size: 20px;
  font-weight: 600;
}
.calc-head p {
  margin-top: 6px;
  font-size: 14.5px;
  color: var(--fg-muted);
}
.calc-body {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 28px;
  margin-top: 22px;
}
.calc-inputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
  align-content: start;
}
.calc-field {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--fg-muted);
}
.calc-field input,
.calc-field select {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg-deep);
  color: var(--fg);
  font: 500 16px/1 var(--font-body);
  font-variant-numeric: tabular-nums;
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}
.calc-field input:focus,
.calc-field select:focus {
  outline: none;
  border-color: var(--gold-line);
  box-shadow: 0 0 0 3px var(--gold-soft);
}
.calc-out {
  display: grid;
  gap: 12px;
  align-content: start;
  margin: 0;
  padding: 2px 0 0 28px;
  border-left: 1px solid var(--line);
}
.calc-out div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 14.5px;
}
.calc-out dt {
  color: var(--fg-muted);
}
.calc-out dd {
  margin: 0;
  color: var(--fg);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.calc-out dd b {
  font-weight: 600;
}
.calc-total {
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.calc-total dt {
  color: var(--fg);
  font-weight: 600;
}
.calc-out .calc-total dd b {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  color: var(--gold);
}
.calc-note {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--fg-subtle);
}
.calc-note b {
  color: var(--gold);
  font-weight: 600;
}

@media (max-width: 1080px) {
  .studio {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 860px) {
  .calc-body {
    grid-template-columns: minmax(0, 1fr);
  }
  .calc-out {
    padding: 18px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}
@media (max-width: 640px) {
  .studio {
    grid-template-columns: minmax(0, 1fr);
  }
  .calc {
    padding: 26px 20px 22px;
  }
  .calc-inputs {
    grid-template-columns: minmax(0, 1fr);
  }
}
