:root {
  --felt-0: #040c0a;
  --felt-1: #061a14;
  --felt-2: #0b3d2e;
  --felt-3: #0f4c3a;
  --gold-0: #8a6d2f;
  --gold-1: #c9a962;
  --gold-2: #e8d5a3;
  --gold-3: #f6edd4;
  --red-1: #a83a41;
  --ink: #f3efe4;
  --muted: #b7c4bc;
  --line: rgba(201, 169, 98, 0.28);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --radius: 22px;
  --font-serif: "Cormorant Garamond", "Songti SC", "STSong", serif;
  --font-sans: "Noto Sans TC", "Noto Sans SC", "PingFang TC", "PingFang SC", "Microsoft JhengHei", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  min-height: 100%;
  background: var(--felt-0);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
}

body {
  background:
    radial-gradient(1200px 700px at 50% -10%, rgba(201, 169, 98, 0.16), transparent 60%),
    radial-gradient(900px 500px at 100% 80%, rgba(15, 76, 58, 0.55), transparent 55%),
    radial-gradient(700px 420px at 0% 100%, rgba(11, 61, 46, 0.7), transparent 50%),
    linear-gradient(180deg, #071810 0%, #040c0a 100%);
}

/* subtle felt texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1.6px);
  background-size: 26px 26px;
}

a { color: var(--gold-2); text-decoration: none; }
a:hover { color: var(--gold-3); }
code {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.92em;
  color: var(--gold-3);
}
a.hub-card { color: inherit; display: block; }
a.hub-card:hover { color: inherit; }

.wrap {
  position: relative;
  z-index: 1;
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0 10px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gold-2);
}
.brand-name {
  font-family: var(--font-serif);
  font-size: 22px;
  letter-spacing: 0.18em;
  font-weight: 600;
}
.brand-name small {
  display: block;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--muted);
  margin-top: 2px;
}

.nav { display: flex; gap: 22px; flex-wrap: wrap; }
.nav a {
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.08em;
  transition: color 0.2s ease;
}
.nav a.active, .nav a:hover { color: var(--gold-2); }

/* ---------- entrance animation ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(6deg); }
}
@keyframes chipglow {
  0%, 100% { filter: drop-shadow(0 0 14px rgba(201, 169, 98, 0.15)); }
  50% { filter: drop-shadow(0 0 26px rgba(201, 169, 98, 0.35)); }
}

.hero {
  position: relative;
  padding: 64px 0 36px;
  text-align: center;
  overflow: hidden;
}
.hero .kicker { animation: rise 0.7s 0.05s both; }
.hero h1 { animation: rise 0.8s 0.3s both; }
.hero .lead { animation: rise 0.8s 0.42s both; }
.hero .hero-banner { animation: rise 0.8s 0.18s both; }
.hero .cta-row { animation: rise 0.8s 0.54s both; }
.hero .note { animation: rise 0.8s 0.66s both; }

/* floating suit glyphs behind the hero */
.suits {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.suits span {
  position: absolute;
  color: var(--gold-1);
  opacity: 0.08;
  animation: floaty 9s ease-in-out infinite;
  user-select: none;
}
.suits .r { color: var(--red-1); }
.suits span:nth-child(1) { left: 5%;  top: 8%;  font-size: 74px; animation-delay: 0s; }
.suits span:nth-child(2) { left: 13%; top: 56%; font-size: 44px; animation-delay: 1.4s; }
.suits span:nth-child(3) { left: 82%; top: 10%; font-size: 58px; animation-delay: 0.7s; }
.suits span:nth-child(4) { left: 90%; top: 52%; font-size: 72px; animation-delay: 2s; }
.suits span:nth-child(5) { left: 30%; top: 80%; font-size: 40px; animation-delay: 2.6s; }
.suits span:nth-child(6) { left: 66%; top: 78%; font-size: 48px; animation-delay: 3.2s; }

.kicker {
  color: var(--gold-1);
  letter-spacing: 0.42em;
  font-size: 12px;
  text-transform: uppercase;
}
.hero h1 {
  margin-top: 16px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(42px, 8vw, 86px);
  letter-spacing: 0.08em;
  line-height: 1.05;
  background: linear-gradient(180deg, #f8efd8 0%, #c9a962 55%, #8a6d2f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  max-width: 640px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: 18px;
}

.chip {
  width: 148px;
  height: 148px;
  margin: 28px auto 8px;
  filter: drop-shadow(0 18px 40px rgba(201, 169, 98, 0.18));
  animation: chipglow 5s ease-in-out infinite;
}

/* ---------- hero banner image ---------- */
.hero-banner {
  display: block;
  width: min(960px, 100%);
  height: auto;
  margin: 34px auto 6px;
  border-radius: 18px;
  border: 1px solid rgba(201, 169, 98, 0.35);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), 0 0 46px rgba(201, 169, 98, 0.12);
}

.cta-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--gold-1);
  font-size: 15px;
  letter-spacing: 0.12em;
  transition: transform 0.2s ease, filter 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn-solid {
  background: linear-gradient(180deg, #e8d5a3 0%, #c9a962 55%, #8a6d2f 100%);
  color: #1a1408;
  font-weight: 600;
  box-shadow: 0 10px 28px rgba(201, 169, 98, 0.28);
}
.btn-solid:hover { transform: translateY(-2px); filter: brightness(1.08); color: #1a1408; }
.btn-ghost { color: var(--gold-2); background: rgba(201, 169, 98, 0.06); }
.btn-ghost:hover { transform: translateY(-2px); background: rgba(201, 169, 98, 0.14); color: var(--gold-3); }
.btn[aria-disabled="true"] {
  opacity: 0.55;
  pointer-events: none;
}

.note {
  margin-top: 14px;
  color: #8fa098;
  font-size: 13px;
}

/* suit-glyph divider */
.suit-divider {
  text-align: center;
  letter-spacing: 1.6em;
  text-indent: 1.6em;
  color: var(--gold-1);
  opacity: 0.45;
  font-size: 15px;
  padding: 10px 0 4px;
  user-select: none;
}

.download-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: 18px 0 40px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(15, 76, 58, 0.55), rgba(6, 26, 20, 0.88));
  box-shadow: var(--shadow);
}
.download-panel h2 {
  margin: 6px 0 8px;
  color: var(--gold-2);
  font-family: var(--font-serif);
  font-size: 30px;
}
.download-panel p { color: var(--muted); max-width: 620px; }
.download-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.download-actions .btn { min-width: 190px; }

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 20px 0 64px;
}
.card {
  background: linear-gradient(180deg, rgba(15, 76, 58, 0.35), rgba(6, 26, 20, 0.75));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 28px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 169, 98, 0.55);
}
.card h3 {
  font-family: var(--font-serif);
  font-size: 26px;
  color: var(--gold-2);
  margin-bottom: 10px;
}
.card p { color: var(--muted); font-size: 15px; }

/* feature / hub icon badge */
.ico {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  letter-spacing: 0;
  background: linear-gradient(180deg, #e8d5a3 0%, #b8934a 100%);
  color: #2a1e08;
  box-shadow: 0 8px 20px rgba(201, 169, 98, 0.3);
  margin-bottom: 14px;
}
.ico.t { font-size: 15px; font-weight: 700; letter-spacing: 0.04em; }
.ico.r {
  background: linear-gradient(180deg, #f2ddc2 0%, #cf9455 100%);
  color: var(--red-1);
}

.legal {
  padding: 48px 0 80px;
  max-width: 800px;
  animation: rise 0.6s both;
}
.legal h1 {
  font-family: var(--font-serif);
  font-size: 48px;
  color: var(--gold-2);
  letter-spacing: 0.06em;
}
.legal .meta { color: #8fa098; margin: 8px 0 28px; font-size: 13px; }
.legal h2 {
  margin: 28px 0 10px;
  font-size: 20px;
  color: var(--gold-3);
  font-weight: 600;
}
.legal p, .legal li { color: var(--muted); margin-bottom: 10px; }
.legal ul, .legal ol { padding-left: 1.2em; margin-bottom: 12px; }
.legal h3 {
  margin: 18px 0 8px;
  font-size: 16px;
  color: var(--gold-1);
  font-weight: 600;
}
.legal .callout {
  margin: 18px 0 22px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(201, 169, 98, 0.08);
  color: var(--gold-3);
  font-size: 14.5px;
}
.legal .callout strong { color: var(--gold-2); }
.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 20px;
  font-size: 14.5px;
}
.legal th, .legal td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  vertical-align: top;
}
.legal th { color: var(--gold-2); font-weight: 600; }
.lang-split {
  margin: 36px 0 18px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--gold-1);
  letter-spacing: 0.28em;
  font-size: 12px;
  text-transform: uppercase;
}
.kv {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 8px 16px;
  margin: 12px 0 22px;
  font-size: 15px;
}
.kv dt { color: var(--gold-1); }
.kv dd { color: var(--muted); }
.hub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 20px 0 36px;
}
.hub-card {
  background: linear-gradient(180deg, rgba(15, 76, 58, 0.35), rgba(6, 26, 20, 0.75));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 24px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.hub-card:hover {
  transform: translateY(-3px);
  border-color: rgba(201, 169, 98, 0.55);
}
.hub-card h2 {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--gold-2);
  margin-bottom: 8px;
}
.hub-card p, .hub-card li { color: var(--muted); font-size: 14.5px; }
.hub-card ul { padding-left: 1.15em; margin-top: 8px; }
.en-block {
  max-width: 720px;
  margin: 0 auto 28px;
  text-align: left;
  color: var(--muted);
  font-size: 15px;
}
.en-block h2 {
  font-family: var(--font-serif);
  font-size: 28px;
  color: var(--gold-2);
  margin: 28px 0 10px;
  text-align: center;
}
.price-box {
  margin: 8px auto 0;
  max-width: 720px;
  overflow-x: auto;
}
.price-box table { width: 100%; border-collapse: collapse; }
.price-box th, .price-box td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14.5px;
}
.price-box th { color: var(--gold-2); }

@media (max-width: 800px) {
  .hub-grid, .kv { grid-template-columns: 1fr; }
}

.invite-panel {
  max-width: 640px;
  margin: 40px auto 80px;
  text-align: center;
  padding: 36px 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(15, 76, 58, 0.4), rgba(6, 26, 20, 0.82));
  box-shadow: var(--shadow);
  animation: rise 0.6s both;
}
.invite-panel h1 {
  font-family: var(--font-serif);
  font-size: clamp(32px, 6vw, 52px);
  color: var(--gold-2);
}
.invite-panel .room {
  margin: 18px 0 8px;
  padding: 12px 16px;
  border: 1px dashed rgba(201, 169, 98, 0.35);
  border-radius: 14px;
  color: var(--gold-3);
  display: none;
}
.invite-panel .room.show { display: block; }

.foot {
  border-top: 1px solid var(--line);
  padding: 22px 0 36px;
  color: #7f8d86;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.foot a { color: #a7b6ae; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 800px) {
  .download-panel { flex-direction: column; align-items: flex-start; }
  .download-actions { justify-content: flex-start; }
  .grid { grid-template-columns: 1fr; }
  .hero { padding-top: 42px; }
  .cardfan { margin: 18px auto 0; }
  .pc { transform-origin: 50% 150%; }
  .pc-l { transform: translateX(-72px) rotate(-13deg); }
  .pc-r { transform: translateX(72px) rotate(13deg); }
  .suits span:nth-child(5), .suits span:nth-child(6) { display: none; }
  .nav { gap: 14px; }
  .brand-name { letter-spacing: 0.12em; font-size: 18px; }
}
