/* ============================================================
   fm-style.css — 非凡娱乐 · 机关密室蒸汽朋克主题样式
   CSS前缀: fm-
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --fm-primary: #6B4F3A;
  --fm-secondary: #C89B6D;
  --fm-accent: #E84A27;
  --fm-teal: #00A2B1;
  --fm-bg: #2A231F;
  --fm-text: #EAE0D5;
  --fm-text-muted: #A49586;
  --fm-shadow: 2px 2px 8px rgba(0,0,0,0.5);
  --fm-radius: 4px;
  --fm-font-title: 'Alfa Slab One', serif;
  --fm-font-body: 'Noto Serif SC', 'Georgia', serif;
  --fm-brass-gradient: linear-gradient(135deg, #C89B6D 0%, #A67C52 50%, #C89B6D 100%);
  --fm-dark-metal: linear-gradient(180deg, #3A322D 0%, #2A231F 100%);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--fm-font-body);
  background-color: var(--fm-bg);
  color: var(--fm-text);
  line-height: 1.8;
  overflow-x: hidden;
}

a { color: var(--fm-secondary); text-decoration: none; transition: color .3s; }
a:hover { color: var(--fm-accent); }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--fm-font-title);
  color: var(--fm-secondary);
  line-height: 1.3;
}

h1 { font-size: 2.4rem; margin-bottom: 1rem; }
h2 { font-size: 1.8rem; margin-bottom: .8rem; }
h3 { font-size: 1.4rem; margin-bottom: .6rem; }

p { margin-bottom: 1rem; }

/* ---------- Utility ---------- */
.fm-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.fm-section {
  padding: 60px 0;
  position: relative;
}

.fm-section-title {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.fm-section-title h2 {
  display: inline-block;
  padding: 0 30px;
  position: relative;
}

.fm-section-title h2::before,
.fm-section-title h2::after {
  content: '\u2699';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: var(--fm-secondary);
}
.fm-section-title h2::before { left: 0; }
.fm-section-title h2::after { right: 0; }

.fm-divider {
  width: 80px;
  height: 3px;
  background: var(--fm-brass-gradient);
  margin: 15px auto;
  border-radius: 2px;
}

/* ---------- Buttons ---------- */
.fm-btn-primary {
  display: inline-block;
  padding: 14px 32px;
  background: var(--fm-accent);
  color: #fff;
  border: none;
  border-radius: var(--fm-radius);
  font-family: var(--fm-font-body);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .3s;
  box-shadow: var(--fm-shadow);
  text-align: center;
}
.fm-btn-primary:hover {
  background: #d03e1e;
  transform: translateY(-2px);
  box-shadow: 2px 4px 12px rgba(0,0,0,0.6);
  color: #fff;
}

.fm-btn-brass {
  display: inline-block;
  padding: 14px 32px;
  background: transparent;
  color: var(--fm-secondary);
  border: 2px solid var(--fm-secondary);
  border-radius: var(--fm-radius);
  font-family: var(--fm-font-body);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .3s;
}
.fm-btn-brass:hover {
  background: var(--fm-brass-gradient);
  color: var(--fm-bg);
  border-color: transparent;
  box-shadow: 0 0 15px rgba(200,155,109,0.4);
}

.fm-btn-cta {
  display: inline-block;
  padding: 14px 28px;
  background: var(--fm-brass-gradient);
  color: var(--fm-bg);
  border: none;
  border-radius: var(--fm-radius);
  font-family: var(--fm-font-body);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .3s;
  box-shadow: var(--fm-shadow);
}
.fm-btn-cta:hover {
  box-shadow: 0 0 20px rgba(200,155,109,0.5), 0 0 40px rgba(200,155,109,0.2);
  transform: translateY(-2px);
  color: var(--fm-bg);
}

/* ---------- Navigation ---------- */
.fm-navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(42,35,31,0.95);
  border-bottom: 2px solid var(--fm-primary);
  backdrop-filter: blur(10px);
  transition: background .3s;
}

.fm-navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 70px;
}

.fm-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fm-logo img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.fm-logo-text {
  font-family: var(--fm-font-title);
  font-size: 1.3rem;
  color: var(--fm-secondary);
}

.fm-nav-links {
  display: flex;
  list-style: none;
  gap: 6px;
  align-items: center;
}

.fm-nav-links li a {
  display: block;
  padding: 8px 14px;
  color: var(--fm-text);
  font-size: .9rem;
  transition: color .3s;
  position: relative;
}

.fm-nav-links li a::after {
  content: '\u2699';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scale(0);
  font-size: .7rem;
  color: var(--fm-accent);
  transition: transform .3s;
}

.fm-nav-links li a:hover {
  color: var(--fm-accent);
}

.fm-nav-links li a:hover::after {
  transform: translateX(-50%) scale(1) rotate(360deg);
}

.fm-nav-links li a.fm-active {
  color: var(--fm-accent);
}

.fm-nav-cta {
  padding: 10px 20px !important;
  background: var(--fm-brass-gradient) !important;
  color: var(--fm-bg) !important;
  border-radius: var(--fm-radius);
  font-weight: 700;
}

.fm-nav-cta:hover {
  box-shadow: 0 0 15px rgba(200,155,109,0.5);
  color: var(--fm-bg) !important;
}

/* Hamburger */
.fm-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}

.fm-hamburger span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--fm-secondary);
  border-radius: 2px;
  transition: all .3s;
}

/* ---------- Hero ---------- */
.fm-hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.fm-hero-video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}

.fm-hero-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.fm-hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(180deg, rgba(42,35,31,0.7) 0%, rgba(42,35,31,0.85) 100%);
  z-index: 1;
}

.fm-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 20px;
}

.fm-hero-badge {
  display: inline-block;
  padding: 8px 24px;
  background: var(--fm-brass-gradient);
  color: var(--fm-bg);
  font-size: .85rem;
  font-weight: 700;
  border-radius: var(--fm-radius);
  margin-bottom: 20px;
  box-shadow: var(--fm-shadow);
  letter-spacing: 1px;
}

.fm-hero h1 {
  font-size: 2.8rem;
  color: var(--fm-text);
  text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
  margin-bottom: 16px;
}

.fm-hero h1 span {
  color: var(--fm-secondary);
}

.fm-hero-subtitle {
  font-size: 1.05rem;
  color: var(--fm-text-muted);
  margin-bottom: 30px;
  line-height: 1.8;
}

.fm-hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.fm-hero-jackpot {
  margin-top: 20px;
}

.fm-hero-jackpot-label {
  font-size: .85rem;
  color: var(--fm-text-muted);
  margin-bottom: 8px;
}

.fm-hero-jackpot-amount {
  font-family: var(--fm-font-title);
  font-size: 2.6rem;
  color: var(--fm-accent);
  text-shadow: 0 0 20px rgba(232,74,39,0.4);
}

/* ---------- Game Cards ---------- */
.fm-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

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

.fm-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.fm-game-card {
  background: linear-gradient(180deg, #3A322D 0%, #2A231F 100%);
  border: 2px solid var(--fm-primary);
  border-radius: var(--fm-radius);
  overflow: hidden;
  transition: all .3s;
  box-shadow: var(--fm-shadow);
}

.fm-game-card:hover {
  transform: translateY(-6px);
  border-color: var(--fm-secondary);
  box-shadow: 0 8px 24px rgba(0,0,0,0.6);
}

.fm-game-card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
}

.fm-game-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}

.fm-game-card:hover .fm-game-card-img img {
  transform: scale(1.05);
}

.fm-game-card-difficulty {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(42,35,31,0.85);
  padding: 4px 10px;
  border-radius: var(--fm-radius);
  font-size: .75rem;
  color: var(--fm-secondary);
}

.fm-game-card-body {
  padding: 16px;
}

.fm-game-card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.fm-game-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.fm-game-card-multiplier {
  font-family: var(--fm-font-title);
  color: var(--fm-accent);
  font-size: 1rem;
}

.fm-game-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.fm-game-card-tags span {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(107,79,58,0.5);
  border: 1px solid var(--fm-primary);
  border-radius: var(--fm-radius);
  font-size: .75rem;
  color: var(--fm-text-muted);
}

/* ---------- Video Section ---------- */
.fm-video-card {
  background: var(--fm-dark-metal);
  border: 3px solid var(--fm-primary);
  border-radius: var(--fm-radius);
  overflow: hidden;
  box-shadow: var(--fm-shadow);
}

.fm-video-card video {
  width: 100%;
  display: block;
  background: #000;
}

.fm-video-card-title {
  padding: 12px 16px;
  font-size: .95rem;
  color: var(--fm-secondary);
  border-top: 2px solid var(--fm-primary);
  text-align: center;
}

/* ---------- Ranking ---------- */
.fm-ranking {
  background: linear-gradient(180deg, rgba(58,50,45,0.6) 0%, rgba(42,35,31,0.8) 100%);
  border: 2px solid var(--fm-primary);
  border-radius: var(--fm-radius);
  overflow: hidden;
}

.fm-ranking-item {
  display: flex;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(107,79,58,0.3);
  transition: background .3s;
}

.fm-ranking-item:last-child { border-bottom: none; }

.fm-ranking-item:hover {
  background: rgba(107,79,58,0.15);
}

.fm-ranking-rank {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-family: var(--fm-font-title);
  font-size: 1.1rem;
  margin-right: 16px;
  flex-shrink: 0;
}

.fm-rank-gold { background: linear-gradient(135deg, #FFD700, #B8860B); color: #2A231F; }
.fm-rank-silver { background: linear-gradient(135deg, #C0C0C0, #808080); color: #2A231F; }
.fm-rank-bronze { background: linear-gradient(135deg, #CD7F32, #8B4513); color: #2A231F; }
.fm-rank-default { background: rgba(107,79,58,0.4); color: var(--fm-text-muted); }

.fm-ranking-info {
  flex: 1;
}

.fm-ranking-name {
  font-weight: 700;
  color: var(--fm-text);
  font-size: 1rem;
}

.fm-ranking-game {
  font-size: .85rem;
  color: var(--fm-text-muted);
}

.fm-ranking-amount {
  font-family: var(--fm-font-title);
  font-size: 1.1rem;
  text-align: right;
}

.fm-amount-gold { color: #FFD700; }
.fm-amount-silver { color: #C0C0C0; }
.fm-amount-bronze { color: #CD7F32; }
.fm-amount-default { color: var(--fm-secondary); }

/* ---------- Recruit / Register ---------- */
.fm-recruit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.fm-recruit-perks h3 {
  margin-bottom: 16px;
}

.fm-recruit-perks ul {
  list-style: none;
  padding: 0;
}

.fm-recruit-perks li {
  padding: 8px 0;
  padding-left: 28px;
  position: relative;
  color: var(--fm-text-muted);
}

.fm-recruit-perks li::before {
  content: '\u2699';
  position: absolute;
  left: 0;
  color: var(--fm-secondary);
}

.fm-form-group {
  margin-bottom: 16px;
}

.fm-form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: .9rem;
  color: var(--fm-text-muted);
}

.fm-form-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(42,35,31,0.8);
  border: 2px solid var(--fm-primary);
  border-radius: var(--fm-radius);
  color: var(--fm-text);
  font-family: var(--fm-font-body);
  font-size: .95rem;
  transition: border-color .3s;
}

.fm-form-input:focus {
  outline: none;
  border-color: var(--fm-secondary);
  box-shadow: 0 0 8px rgba(200,155,109,0.3);
}

.fm-form-input::placeholder {
  color: var(--fm-text-muted);
  opacity: .6;
}

/* ---------- Jackpot ---------- */
.fm-jackpot-display {
  text-align: center;
  padding: 40px;
  background: linear-gradient(180deg, rgba(58,50,45,0.5) 0%, rgba(42,35,31,0.7) 100%);
  border: 2px solid var(--fm-primary);
  border-radius: var(--fm-radius);
  box-shadow: var(--fm-shadow);
}

.fm-jackpot-amount {
  font-family: var(--fm-font-title);
  font-size: 3.5rem;
  color: var(--fm-accent);
  text-shadow: 0 0 30px rgba(232,74,39,0.4);
  animation: fm-pulse-light 2s ease-in-out infinite;
}

@keyframes fm-pulse-light {
  0%, 100% { text-shadow: 0 0 20px rgba(232,74,39,0.3); }
  50% { text-shadow: 0 0 40px rgba(232,74,39,0.6), 0 0 60px rgba(232,74,39,0.2); }
}

/* ---------- Article Cards ---------- */
.fm-article-card {
  background: var(--fm-dark-metal);
  border: 2px solid var(--fm-primary);
  border-radius: var(--fm-radius);
  overflow: hidden;
  transition: all .3s;
  box-shadow: var(--fm-shadow);
}

.fm-article-card:hover {
  transform: translateY(-4px);
  border-color: var(--fm-secondary);
}

.fm-article-card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.fm-article-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}

.fm-article-card:hover .fm-article-card-img img {
  transform: scale(1.05);
}

.fm-article-card-body {
  padding: 20px;
}

.fm-article-card-body h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.fm-article-card-body p {
  font-size: .9rem;
  color: var(--fm-text-muted);
  margin-bottom: 12px;
}

.fm-article-card-meta {
  display: flex;
  justify-content: space-between;
  font-size: .8rem;
  color: var(--fm-text-muted);
}

/* ---------- Gallery ---------- */
.fm-gallery-grid {
  columns: 3;
  column-gap: 20px;
}

.fm-gallery-item {
  break-inside: avoid;
  margin-bottom: 20px;
  border: 2px solid var(--fm-primary);
  border-radius: var(--fm-radius);
  overflow: hidden;
  transition: all .3s;
}

.fm-gallery-item:hover {
  border-color: var(--fm-secondary);
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}

.fm-gallery-item img {
  width: 100%;
  display: block;
  transition: transform .5s;
}

.fm-gallery-item:hover img {
  transform: scale(1.03);
}

/* ---------- Trust / Certification ---------- */
.fm-trust-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.fm-trust-item {
  text-align: center;
  max-width: 200px;
}

.fm-trust-item img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin: 0 auto 12px;
}

.fm-trust-item p {
  font-size: .85rem;
  color: var(--fm-text-muted);
}

/* ---------- Footer ---------- */
.fm-footer {
  background: linear-gradient(180deg, #1E1A17 0%, #151210 100%);
  border-top: 3px solid var(--fm-primary);
  padding-top: 50px;
}

.fm-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 30px;
  padding-bottom: 30px;
}

.fm-footer-brand img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-bottom: 12px;
}

.fm-footer-brand p {
  font-size: .85rem;
  color: var(--fm-text-muted);
  margin-bottom: 16px;
}

.fm-footer-social {
  display: flex;
  gap: 12px;
}

.fm-footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--fm-primary);
  border-radius: 50%;
  color: var(--fm-text-muted);
  font-size: .8rem;
  transition: all .3s;
}

.fm-footer-social a:hover {
  border-color: var(--fm-secondary);
  color: var(--fm-secondary);
  background: rgba(200,155,109,0.1);
}

.fm-footer h4 {
  font-family: var(--fm-font-title);
  font-size: 1rem;
  color: var(--fm-secondary);
  margin-bottom: 16px;
}

.fm-footer-links {
  list-style: none;
}

.fm-footer-links li {
  margin-bottom: 8px;
}

.fm-footer-links a {
  font-size: .85rem;
  color: var(--fm-text-muted);
  transition: color .3s;
}

.fm-footer-links a:hover {
  color: var(--fm-accent);
}

.fm-footer-contact p {
  font-size: .85rem;
  color: var(--fm-text-muted);
  margin-bottom: 6px;
}

.fm-footer-seo {
  padding: 20px 0;
  border-top: 1px solid rgba(107,79,58,0.3);
  text-align: center;
}

.fm-footer-seo p {
  font-size: .75rem;
  color: var(--fm-text-muted);
  opacity: .7;
  max-width: 800px;
  margin: 0 auto;
}

.fm-footer-bottom {
  padding: 20px 0;
  border-top: 1px solid rgba(107,79,58,0.3);
  text-align: center;
}

.fm-footer-bottom p {
  font-size: .8rem;
  color: var(--fm-text-muted);
  margin-bottom: 4px;
}

/* ---------- Breadcrumb ---------- */
.fm-breadcrumb {
  padding: 15px 0;
  font-size: .85rem;
}

.fm-breadcrumb a {
  color: var(--fm-text-muted);
}

.fm-breadcrumb a:hover {
  color: var(--fm-accent);
}

.fm-breadcrumb span {
  color: var(--fm-text-muted);
  margin: 0 8px;
}

.fm-breadcrumb .fm-breadcrumb-current {
  color: var(--fm-secondary);
}

/* ---------- Page Banner ---------- */
.fm-page-banner {
  position: relative;
  height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 70px;
}

.fm-page-banner-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.fm-page-banner-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(180deg, rgba(42,35,31,0.6) 0%, rgba(42,35,31,0.9) 100%);
  z-index: 1;
}

.fm-page-banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.fm-page-banner h1 {
  color: var(--fm-text);
  text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
}

/* ---------- Content Page ---------- */
.fm-content-page {
  padding: 40px 0 60px;
}

.fm-content-page p {
  font-size: 1rem;
  line-height: 2;
  color: var(--fm-text);
  margin-bottom: 1.2rem;
}

.fm-content-page h2 {
  margin-top: 30px;
  margin-bottom: 16px;
}

.fm-content-page h3 {
  margin-top: 24px;
  margin-bottom: 12px;
}

.fm-content-img {
  margin: 24px 0;
  border: 2px solid var(--fm-primary);
  border-radius: var(--fm-radius);
  overflow: hidden;
}

.fm-content-img img {
  width: 100%;
}

/* ---------- Trial Page ---------- */
.fm-trial-filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.fm-filter-btn {
  padding: 8px 20px;
  background: rgba(107,79,58,0.3);
  border: 1px solid var(--fm-primary);
  border-radius: var(--fm-radius);
  color: var(--fm-text-muted);
  cursor: pointer;
  transition: all .3s;
  font-family: var(--fm-font-body);
  font-size: .9rem;
}

.fm-filter-btn:hover,
.fm-filter-btn.fm-filter-active {
  background: var(--fm-brass-gradient);
  color: var(--fm-bg);
  border-color: transparent;
}

/* ---------- Modal ---------- */
.fm-modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.fm-modal-overlay.fm-modal-active {
  display: flex;
}

.fm-modal {
  background: var(--fm-bg);
  border: 3px solid var(--fm-secondary);
  border-radius: var(--fm-radius);
  max-width: 700px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 30px;
  position: relative;
}

.fm-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 1.5rem;
  color: var(--fm-text-muted);
  cursor: pointer;
  background: none;
  border: none;
  transition: color .3s;
}

.fm-modal-close:hover {
  color: var(--fm-accent);
}

/* ---------- APP Download ---------- */
.fm-app-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 30px 0;
}

.fm-app-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--fm-dark-metal);
  border: 2px solid var(--fm-primary);
  border-radius: var(--fm-radius);
  color: var(--fm-text);
  font-size: .95rem;
  font-weight: 700;
  transition: all .3s;
  cursor: pointer;
}

.fm-app-btn:hover {
  border-color: var(--fm-secondary);
  background: var(--fm-brass-gradient);
  color: var(--fm-bg);
}

.fm-app-btn svg {
  width: 24px;
  height: 24px;
}

/* ---------- FAQ ---------- */
.fm-faq-item {
  border: 1px solid var(--fm-primary);
  border-radius: var(--fm-radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.fm-faq-question {
  padding: 16px 20px;
  background: rgba(58,50,45,0.5);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  color: var(--fm-text);
  transition: background .3s;
}

.fm-faq-question:hover {
  background: rgba(107,79,58,0.3);
}

.fm-faq-question::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--fm-secondary);
  transition: transform .3s;
}

.fm-faq-item.fm-faq-open .fm-faq-question::after {
  content: '-';
}

.fm-faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s, padding .3s;
}

.fm-faq-item.fm-faq-open .fm-faq-answer {
  padding: 16px 20px;
  max-height: 500px;
}

.fm-faq-answer p {
  font-size: .9rem;
  color: var(--fm-text-muted);
}

/* ---------- Animations ---------- */
@keyframes fm-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.fm-gear-spin {
  animation: fm-rotate 10s linear infinite;
}

@keyframes fm-steam-burst {
  0% { opacity: 0; transform: translateY(0) scale(1); }
  50% { opacity: .6; }
  100% { opacity: 0; transform: translateY(-30px) scale(1.5); }
}

/* ---------- Gear SVG Background ---------- */
.fm-gear-bg {
  position: relative;
}

.fm-gear-bg::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 10 L55 25 L70 20 L65 35 L80 40 L68 48 L78 60 L63 55 L60 70 L50 60 L40 70 L37 55 L22 60 L32 48 L20 40 L35 35 L30 20 L45 25 Z' fill='none' stroke='%236B4F3A' stroke-width='1' opacity='0.15'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
  animation: fm-rotate 20s linear infinite;
  z-index: 0;
  pointer-events: none;
}

/* ---------- Pipe Border ---------- */
.fm-pipe-border {
  border-image: linear-gradient(90deg, var(--fm-primary), var(--fm-secondary), var(--fm-primary)) 1;
  border-width: 2px;
  border-style: solid;
}

/* ---------- Lightbox ---------- */
.fm-lightbox {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.92);
  z-index: 3000;
  align-items: center;
  justify-content: center;
}

.fm-lightbox.fm-lightbox-active {
  display: flex;
}

.fm-lightbox img {
  max-width: 90%;
  max-height: 85vh;
  border: 3px solid var(--fm-secondary);
  border-radius: var(--fm-radius);
  box-shadow: 0 0 40px rgba(200,155,109,0.3);
}

.fm-lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2.5rem;
  color: var(--fm-text);
  cursor: pointer;
  transition: color .3s;
  z-index: 3001;
}

.fm-lightbox-close:hover {
  color: var(--fm-accent);
}

/* ---------- Back to Top ---------- */
.fm-back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: var(--fm-brass-gradient);
  color: var(--fm-bg);
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all .3s;
  z-index: 999;
  box-shadow: var(--fm-shadow);
}

.fm-back-to-top.fm-back-to-top-visible {
  opacity: 1;
  visibility: visible;
}

.fm-back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(200,155,109,0.5);
}

/* ---------- Scroll Animations ---------- */
.fm-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}

.fm-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Navbar Scrolled ---------- */
.fm-navbar-scrolled {
  background: rgba(30,26,23,0.98) !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

/* ---------- Hamburger Active ---------- */
.fm-hamburger-active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.fm-hamburger-active span:nth-child(2) {
  opacity: 0;
}
.fm-hamburger-active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ---------- Legal Page ---------- */
.fm-legal-page h2 {
  font-size: 1.4rem;
  margin-top: 36px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(107,79,58,0.3);
}

.fm-legal-page p {
  font-size: .95rem;
  line-height: 1.9;
}

/* ---------- Ranking Show More ---------- */
.fm-ranking-show-more {
  display: none;
  text-align: center;
  padding: 12px;
  color: var(--fm-secondary);
  cursor: pointer;
  font-size: .9rem;
  border-top: 1px solid rgba(107,79,58,0.3);
  transition: background .3s;
}

.fm-ranking-show-more:hover {
  background: rgba(107,79,58,0.15);
}

/* ---------- Selection ---------- */
::selection {
  background: var(--fm-secondary);
  color: var(--fm-bg);
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--fm-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--fm-primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--fm-secondary);
}
