:root {
  --bg: #090706;
  --bg-soft: #14100e;
  --panel: #1d1511;
  --panel-light: #281b15;
  --gold: #f5c15a;
  --gold-dark: #a87519;
  --red: #b90f22;
  --red-bright: #ea2137;
  --text: #fff8ea;
  --muted: #c8b8a0;
  --line: rgba(245, 193, 90, 0.24);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --radius: 22px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: "Noto Sans TC", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(185, 15, 34, 0.25), transparent 32rem),
    radial-gradient(circle at top right, rgba(245, 193, 90, 0.15), transparent 30rem),
    linear-gradient(180deg, #0f0807 0%, var(--bg) 44%, #050403 100%);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }

.topbar {
  background: rgba(0, 0, 0, 0.45);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(9, 7, 6, 0.78);
  border-bottom: 1px solid rgba(245, 193, 90, 0.16);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #1b0e06;
  background: linear-gradient(135deg, #fff0a8, var(--gold), var(--gold-dark));
  box-shadow: 0 0 32px rgba(245, 193, 90, 0.38);
  font-family: "Playfair Display", serif;
  font-size: 26px;
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.nav-links a { transition: color 0.2s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--gold); }

.language-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  white-space: nowrap;
}

.language-control span {
  font-size: 13px;
  color: var(--gold);
}

.language-control select {
  min-width: 132px;
  min-height: 40px;
  padding: 8px 34px 8px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  background-color: rgba(0, 0, 0, 0.32);
}

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--gold);
  font-size: 24px;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, #ffe28d, var(--gold) 45%, var(--gold-dark));
  color: #211007;
  box-shadow: 0 12px 28px rgba(245, 193, 90, 0.26);
}

.btn-secondary {
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.hero {
  position: relative;
  padding: 92px 0 78px;
  min-height: 700px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 7, 6, 0.96) 0%, rgba(9, 7, 6, 0.75) 45%, rgba(9, 7, 6, 0.35) 100%),
    url("https://images.unsplash.com/photo-1596838132731-3301c3fd4317?auto=format&fit=crop&w=1800&q=80") center/cover;
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -30% -10%;
  height: 340px;
  background: radial-gradient(circle, rgba(185, 15, 34, 0.45), transparent 68%);
  filter: blur(16px);
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  border: 1px solid var(--line);
  background: rgba(245, 193, 90, 0.08);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 900;
  margin-bottom: 20px;
}

.hero h1 {
  font-family: "Playfair Display", "Noto Sans TC", serif;
  font-size: clamp(46px, 7vw, 86px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
  max-width: 760px;
}

.hero h1 .accent {
  color: var(--gold);
  text-shadow: 0 0 30px rgba(245, 193, 90, 0.34);
}

.hero p {
  color: var(--muted);
  max-width: 620px;
  font-size: 18px;
  margin-bottom: 34px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-card {
  background: linear-gradient(145deg, rgba(40, 27, 21, 0.92), rgba(17, 11, 9, 0.92));
  border: 1px solid var(--line);
  border-radius: 34px;
  padding: 28px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -90px;
  top: -80px;
  background: radial-gradient(circle, rgba(245, 193, 90, 0.32), transparent 70%);
}

.jackpot {
  text-align: center;
  padding: 32px 20px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.jackpot small {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.jackpot strong {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: clamp(38px, 5vw, 62px);
  color: var(--gold);
  margin: 10px 0;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.mini-card {
  min-height: 112px;
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(185, 15, 34, 0.24), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(245, 193, 90, 0.16);
  color: var(--gold);
  font-weight: 900;
}

section { padding: 88px 0; }

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.section-head h2 {
  font-family: "Playfair Display", "Noto Sans TC", serif;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.05;
}

.section-head p {
  color: var(--muted);
  max-width: 520px;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card, .game-card, .news-card, .contact-card {
  background: linear-gradient(145deg, rgba(40, 27, 21, 0.82), rgba(18, 12, 10, 0.9));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.feature-card { padding: 28px; }

.icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(245, 193, 90, 0.2), rgba(185, 15, 34, 0.22));
  border: 1px solid var(--line);
  color: var(--gold);
  font-size: 25px;
}

.feature-card h3, .game-card h3, .news-card h3 {
  margin-bottom: 10px;
  font-size: 22px;
}

.feature-card p, .game-card p, .news-card p { color: var(--muted); }

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

.game-card {
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.game-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 193, 90, 0.55);
}

.game-art {
  height: 190px;
  display: grid;
  place-items: center;
  font-size: 58px;
  background:
    radial-gradient(circle at 30% 20%, rgba(245, 193, 90, 0.28), transparent 36%),
    linear-gradient(145deg, rgba(185, 15, 34, 0.68), rgba(30, 14, 10, 0.96));
}

.game-card .content { padding: 20px; }

.promo {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(185, 15, 34, 0.92), rgba(40, 18, 12, 0.96)),
    url("https://images.unsplash.com/photo-1606167668584-78701c57f13d?auto=format&fit=crop&w=1600&q=80") center/cover;
  border-block: 1px solid var(--line);
}

.promo-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 34px;
  align-items: center;
  padding: 56px;
  border: 1px solid rgba(245, 193, 90, 0.28);
  border-radius: 34px;
  background: rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(8px);
}

.promo h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(36px, 5vw, 66px);
  line-height: 1;
  margin-bottom: 12px;
}

.promo p {
  color: #ffe1bf;
  max-width: 660px;
}

.news-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
}

.news-card { padding: 28px; }

.news-card.large {
  min-height: 320px;
  background:
    linear-gradient(145deg, rgba(22, 13, 10, 0.65), rgba(22, 13, 10, 0.98)),
    url("https://images.unsplash.com/photo-1511193311914-0346f16efe90?auto=format&fit=crop&w=1200&q=80") center/cover;
  display: flex;
  flex-direction: column;
  justify-content: end;
}

.news-stack {
  display: grid;
  gap: 20px;
}

.tag {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 14px;
  color: #220e05;
  background: var(--gold);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 900;
}

.contact-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  align-items: stretch;
}

.contact-card { padding: 30px; }

.contact-list {
  list-style: none;
  display: grid;
  gap: 16px;
  margin-top: 22px;
  color: var(--muted);
}

form { display: grid; gap: 14px; }

input, textarea, select {
  width: 100%;
  border: 1px solid rgba(245, 193, 90, 0.24);
  background: rgba(0, 0, 0, 0.32);
  color: var(--text);
  border-radius: 16px;
  padding: 14px 16px;
  font: inherit;
  outline: none;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(245, 193, 90, 0.1);
}

footer {
  padding: 36px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: rgba(0, 0, 0, 0.24);
}

footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(20, 16, 14, 0.88);
  color: var(--gold);
  cursor: pointer;
  display: none;
  place-items: center;
  box-shadow: var(--shadow);
}

.to-top.show { display: grid; }

@media (max-width: 940px) {
  .hero-grid, .promo-box, .news-grid, .contact-wrap { grid-template-columns: 1fr; }
  .features, .games { grid-template-columns: repeat(2, 1fr); }

  .nav-links {
    position: fixed;
    inset: 86px 20px auto 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: rgba(20, 16, 14, 0.98);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 18px;
    box-shadow: var(--shadow);
  }

  .nav-links.open { display: flex; }
  .nav-links a, .nav-links .btn, .language-control { width: 100%; }
  .language-control {
    justify-content: space-between;
    padding: 4px 0;
  }
  .language-control select { width: min(100%, 220px); }
  .menu-btn { display: block; }
  .hero { min-height: auto; padding: 70px 0 56px; }
}

@media (max-width: 620px) {
  .container { width: min(100% - 28px, 1160px); }

  .topbar .container, .section-head, footer .container {
    align-items: flex-start;
    flex-direction: column;
  }

  .features, .games, .mini-grid { grid-template-columns: 1fr; }
  .promo-box { padding: 30px; }
  section { padding: 64px 0; }
}
