/* ==========================================================================
   宝石圣域：三消与魔法 - 官方网站样式表
   ========================================================================== */

/* --- 1. 设计系统 (Design Tokens) --- */
:root {
  /* Colors */
  --bg-darker: #050508;
  --bg-dark: #0b0c10;
  --bg-card: rgba(10, 11, 15, 0.88);
  --border-light: rgba(212, 175, 55, 0.18);
  --border-glow: rgba(212, 175, 55, 0.4);

  --color-primary: #d4af37; /* Royal Burnished Gold */
  --color-primary-glow: rgba(212, 175, 55, 0.25);
  --color-gold: #ffd700;
  --color-gold-glow: rgba(255, 215, 0, 0.35);
  --color-text-main: #f5f4ef;
  --color-text-muted: #a5a39a;

  /* Gem Elements */
  --gem-red: #ff3b30;
  --gem-yellow: #ffcc00;
  --gem-blue: #007aff;
  --gem-green: #34c759;
  --gem-purple: #af52de;

  /* Gem Glows */
  --glow-red: 0 0 20px rgba(255, 59, 48, 0.5);
  --glow-yellow: 0 0 20px rgba(255, 204, 0, 0.5);
  --glow-blue: 0 0 20px rgba(0, 122, 255, 0.5);
  --glow-green: 0 0 20px rgba(52, 199, 89, 0.5);
  --glow-purple: 0 0 20px rgba(175, 82, 222, 0.5);

  /* Fonts — all three resolve to the same face; aliases kept for semantic clarity */
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --font-display: var(--font-family);
  --font-serif: var(--font-family);

  /* Carousel spacing; card widths follow the available container width. */
  --card-gap: 24px;
}

/* --- 2. 基础重置 (Base & General) --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  /* Navigation requests one smooth scroll explicitly in main.js. */
  scroll-behavior: auto;
  font-size: 16px;
  background-color: var(--bg-darker);
  color: var(--color-text-main);
  font-family: var(--font-family);
  overflow-x: hidden;
  -ms-overflow-style: none;
  scrollbar-width: none;
  overscroll-behavior: none;
}

html::-webkit-scrollbar {
  display: none;
}

body {
  overflow-x: hidden;
  background: radial-gradient(circle at 50% 0%, #1a0b0b 0%, var(--bg-darker) 70%);
  -ms-overflow-style: none;
  scrollbar-width: none;
}

body::-webkit-scrollbar {
  display: none;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

li {
  list-style: none;
}

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

button, input, select {
  font-family: inherit;
  color: inherit;
  background: none;
  border: none;
}

/* Common Layout Components */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 100px 0;
  position: relative;
  box-sizing: border-box;
}

@media (min-width: 1200px) {
  #gameplay-sec, #expedition-sec, #heroes-sec, #features-sec, #footer-wrapper {
    min-height: 850px;
    height: auto;
    display: flex;
    align-items: center;
    overflow: hidden;
    box-sizing: border-box;
  }

  #footer-wrapper {
    flex-direction: column;
    justify-content: space-between;
  }
}

.dark-bg {
  background: linear-gradient(180deg, #050508 0%, #0d0d12 100%);
}

#gameplay-sec {
  background:
    linear-gradient(to bottom, #000000 0%, transparent 12%, transparent 88%, #050508 100%),
    linear-gradient(rgba(45, 15, 20, 0.88), rgba(45, 15, 20, 0.88)),
    url('assets/gameplay_bg.png') no-repeat center center / cover;
}

#heroes-sec {
  background:
    linear-gradient(to bottom, #050508 0%, transparent 12%, transparent 88%, #050508 100%),
    linear-gradient(rgba(10, 20, 35, 0.85), rgba(10, 20, 35, 0.85)),
    url('assets/heroes_bg.png') no-repeat center center / cover;
}

#features-sec {
  background:
    linear-gradient(to bottom, #050508 0%, transparent 12%, transparent 88%, #050508 100%),
    linear-gradient(rgba(35, 30, 15, 0.88), rgba(35, 30, 15, 0.88)),
    url('assets/features_bg.png') no-repeat center center / cover;
}

#cta-sec {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: 100%;
  flex: 1;
  background:
    linear-gradient(to bottom, #050508 0%, transparent 15%, transparent 85%, #050508 100%),
    linear-gradient(rgba(40, 20, 10, 0.88), rgba(40, 20, 10, 0.88)),
    url('assets/cta_bg.png') no-repeat center center / cover;
}

#main-footer {
  width: 100%;
}

.section-bg-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, rgba(180, 40, 40, 0.03) 50%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

/* --- 4. 头部视频与下载 (Hero Section) --- */
#hero-fold {
  position: relative;
  width: 100%;
  min-height: 560px;
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  overflow: hidden;
}

.video-container {
  background: url('assets/hero-poster.webp') center / cover no-repeat;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

#bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg,
    rgba(5, 5, 8, 0) 0%,
    rgba(5, 5, 8, 0.3) 40%,
    rgba(5, 5, 8, 0.7) 75%,
    rgba(5, 5, 8, 0.98) 100%);
  z-index: 2;
}

/* Floating Navigation Bar */
#main-nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1000px;
  height: 64px;
  z-index: 100;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 11, 15, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

#main-nav.sticky {
  top: 8px;
  height: 48px;
  background: rgba(6, 6, 8, 0.82);
  border-color: rgba(212, 175, 55, 0.25);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.6);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  height: 100%;
}

.nav-links {
  display: flex;
  width: 100%;
}

.nav-links-left {
  flex: 1;
  justify-content: space-around;
}

.nav-links-right {
  flex: 1;
  justify-content: space-around;
}

.nav-logo-center {
  flex: 0 0 200px;
  height: 100%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-logo-img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 95px;
  width: auto;
  filter: drop-shadow(0 6px 15px rgba(0, 0, 0, 0.6));
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 105;
}

#main-nav.sticky .nav-logo-img {
  height: 40px;
}

.nav-logo-img:hover {
  transform: translate(-50%, -50%) scale(1.08);
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-primary);
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
}

.mobile-nav-toggle {
  display: none;
  font-size: 1.5rem;
  color: white;
  cursor: pointer;
  background: none;
  border: none;
}

.mobile-nav-links {
  display: none;
}

/* Hero Content Area */
.hero-content {
  z-index: 10;
  width: 100%;
  max-width: 900px;
  text-align: center;
  padding: 0 24px;
  margin-bottom: clamp(32px, 5svh, 64px);
}

.hero-art-slogan-container {
  display: block;
  margin: 0 auto 30px auto;
  max-width: 900px;
  width: 100%;
}

.hero-slogan-img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 15px rgba(212, 175, 55, 0.65)) drop-shadow(0 0 45px rgba(212, 175, 55, 0.5));
  animation: sloganFloatPulse 4s ease-in-out infinite alternate;
}

@keyframes sloganFloatPulse {
  0% {
    transform: translateY(0);
    filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.35));
  }
  100% {
    transform: translateY(-8px);
    filter: drop-shadow(0 0 25px rgba(212, 175, 55, 0.6));
  }
}

.hero-actions-badges {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}

.badge-link {
  display: inline-block;
  transition: transform 0.2s, filter 0.2s;
}

.custom-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(10, 11, 15, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 10px;
  padding: 8px 16px;
  text-decoration: none;
  width: 185px;
  height: 56px;
  box-sizing: border-box;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.custom-badge:hover {
  background: rgba(10, 11, 15, 0.85);
  border-color: rgba(212, 175, 55, 0.8);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.25);
  filter: brightness(1.15);
}

.custom-badge .badge-icon {
  font-size: 28px;
  color: #ffffff;
  width: 26px;
  display: flex;
  justify-content: center;
}

.custom-badge .badge-icon-svg {
  width: 26px;
  height: 26px;
  display: block;
}

.custom-badge .badge-texts {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.custom-badge .badge-sub {
  font-family: var(--font-family);
  font-size: 8.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 400;
  letter-spacing: 0.8px;
}

.custom-badge .badge-title {
  font-family: var(--font-family);
  font-size: 16px;
  color: #ffffff;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* --- 5. 通用区块头部 (Section Headers) --- */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px auto;
  position: relative;
  z-index: 10;
}

.section-subtitle {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 4px;
  color: var(--color-primary);
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
}

.title-bar {
  width: 140px;
  height: 3px;
  background: linear-gradient(90deg, rgba(212, 175, 55, 0) 0%, rgba(255, 215, 0, 1) 50%, rgba(212, 175, 55, 0) 100%);
  margin: 0 auto 20px auto;
  filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.75));
}

.section-desc {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* --- 6. 特色玩法展示 (Game Features - 3 Vertical Cards) --- */
.modes-grid-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  position: relative;
  z-index: 10;
}

.mode-vertical-card {
  background: var(--bg-card);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  width: min(350px, 100%);
  margin: 0 auto;

  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.mode-vertical-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.mode-vertical-card:hover {
  transform: none;
}

.mode-img-placeholder {
  width: 100%;
  height: 420px;
  border-bottom: none;
  background: radial-gradient(circle at 50% 50%, rgba(128, 14, 19, 0.1) 0%, rgba(10, 11, 15, 0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  position: relative;
  box-sizing: border-box;
  padding: 20px;
}

.mode-img-placeholder::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 150px;
  background: linear-gradient(to bottom, rgba(14, 15, 19, 0) 0%, var(--bg-card) 95%);
  pointer-events: none;
  z-index: 2;
}

.mode-img-placeholder.has-real-image {
  padding: 0;
  border-bottom: none;
}

.mode-real-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mode-card-body {
  padding: 20px 24px 30px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 3;
  margin-top: -50px;
  background: transparent;
}

.mode-card-body h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  margin: 0;
}

.mode-card-body p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin: 0;
}

@media (max-width: 992px) {
.modes-grid-layout {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .modes-grid-layout .mode-vertical-card:nth-child(3) {
    grid-column: 1 / span 2;
    justify-self: center;
  }
}

@media (max-width: 768px) {
  .modes-grid-layout {
    grid-template-columns: 1fr;
    max-width: 450px;
    margin: 0 auto;
  }
  .modes-grid-layout .mode-vertical-card:nth-child(3) {
    grid-column: auto;
    justify-self: auto;
  }
}

/* --- 7. 宏大世界观 (Lore Parallax Section) --- */
#lore-sec {
  position: relative;
  z-index: 1;
  height: 75vh;
  min-height: 630px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #000000;
}

.lore-parallax-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('assets/lore_bg.png');
  background-size: cover;
  background-position: center;
  z-index: -2;
  transform: scale(1.1);
}

.lore-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(to bottom, #050508 0%, rgba(5, 5, 8, 0.6) 15%, rgba(5, 5, 8, 0.6) 85%, #000000 100%),
    radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.9) 100%);
  z-index: -1;
}

.relative-content {
  position: relative;
  z-index: 10;
  width: 100%;
}

.lore-box {
  max-width: 800px;
  text-align: center;
  margin: 0 auto;
}

.lore-subtitle {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 4px;
  color: var(--color-primary);
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

.lore-box h2 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: white;
  margin-bottom: 24px;
}

.lore-p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}

.lore-quote {
  border-left: none;
  padding-left: 0;
  margin-top: 24px;
  color: var(--color-text-main);
  font-size: 1rem;
  margin-bottom: 6px;
  width: 50%;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  .lore-quote {
    width: 90%;
  }
}

.lore-quote span {
  font-size: 0.8rem;
  color: var(--color-primary);
}

/* CTA section specific overrides */
#cta-sec .lore-quote {
  margin-bottom: 63px;
}

/* --- 8. 页脚 Footer Bar --- */
#main-footer {
  background-color: var(--bg-darker);
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.footer-top-bar {
  padding: 22px 0;
}

.footer-bar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom-bar .footer-bar-inner {
  display: block;
}

.footer-social-group {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-follow-label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  white-space: nowrap;
  font-family: var(--font-display);
  letter-spacing: 0.03em;
}

.footer-social-icons {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-social-icons a {
  font-size: 1.8rem;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s ease;
}

.footer-social-icons a:hover {
  color: #ffffff;
}

.footer-download-badges {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-divider {
  width: 100%;
  height: 1px;
  background-color: rgba(255,255,255,0.12);
  margin-bottom: 20px;
}

.footer-bottom-bar {
  padding: 0 0 28px 0;
}

.footer-copyright {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-privacy-link {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-privacy-link:hover {
  color: #ffffff;
}

/* --- 9. 响应式布局 (Responsive) --- */
@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
  #main-nav {
    top: 0;
    left: 0;
    transform: none;
    width: 100%;
    height: 50px;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
    background: rgba(10, 11, 15, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  }
  #main-nav.sticky {
    top: 0;
    height: 50px;
    background: rgba(6, 6, 8, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }
  .nav-container {
    position: relative;
  }
  .nav-links {
    display: none;
  }
  .nav-logo-center {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 120px;
    height: 100%;
    margin: 0;
    flex: 0 0 auto;
  }
  .nav-logo-img {
    height: 36px;
  }
  #main-nav.sticky .nav-logo-img {
    height: 36px;
  }
  .mobile-nav-toggle {
    display: block;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3rem;
  }
  .section-padding {
    padding: 60px 0;
  }
}

/* Navigation Drawer for mobile menu */
.mobile-nav-links {
  display: none;
}
.mobile-nav-links.mobile-active {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: rgba(10, 11, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-left: none;
  border-right: none;
  border-radius: 0;
  margin-top: 0;
  gap: 16px;
  padding: 20px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
  list-style: none;
  z-index: 99;
}
.mobile-nav-links li {
  text-align: center;
  width: 100%;
}
.mobile-nav-links a {
  font-size: 1.1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  display: block;
  padding: 8px 0;
  transition: all 0.3s ease;
  text-decoration: none;
}
.mobile-nav-links a:hover,
.mobile-nav-links a.active {
  color: var(--color-primary);
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
}

/* --- 10. Keyframes Animations --- */
@keyframes rotateCircle {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulseGem {
  0% { transform: rotate(45deg) scale(0.8); filter: brightness(0.8); }
  100% { transform: rotate(45deg) scale(1.2); filter: brightness(1.2); }
}

@keyframes textFlash {
  0% { opacity: 0.4; }
  100% { opacity: 1; }
}

/* ==========================================
   Purple Theme Section — Gameplay
   ========================================== */
.purple-theme {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 10% 20%, rgba(26, 11, 11, 0.45) 0%, var(--bg-darker) 70%);
}

.purple-grid-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(135deg, rgba(212, 175, 55, 0.015) 25%, transparent 25%),
    linear-gradient(225deg, rgba(212, 175, 55, 0.015) 25%, transparent 25%),
    linear-gradient(45deg, rgba(212, 175, 55, 0.015) 25%, transparent 25%),
    linear-gradient(315deg, rgba(212, 175, 55, 0.015) 25%, transparent 25%);
  background-size: 40px 40px;
  background-position: 0 0, 0 20px, 20px -20px, -20px 0px;
  z-index: 1;
  pointer-events: none;
}

.gameplay-split-layout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 50px;
  position: relative;
  z-index: 2;
}

.gameplay-left-content {
  flex: 1.2;
}

.gameplay-right-content {
  flex: 0.8;
  display: flex;
  justify-content: center;
  align-items: center;
}

.gameplay-paragraphs {
  margin-bottom: 40px;
}

.gameplay-paragraphs p {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 12px;
  letter-spacing: 0.8px;
}

.gameplay-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 13px;
  max-width: 572px;
}

.feature-yellow-card {
  background: rgba(10, 11, 15, 0.8);
  border-radius: 8px;
  padding: 9px 16px;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.25);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
  width: 100%;

}

.feature-yellow-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.combat-showcase-container {
  max-width: 380px;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7), 0 0 25px rgba(212, 175, 55, 0.25);

  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.combat-showcase-container.visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-yellow-card:hover {
  transform: translateY(-3px);
  border-color: rgba(212, 175, 55, 0.85);
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.25);
}

.feature-yellow-card .card-icon-box {
  background-color: rgba(128, 14, 19, 0.2);
  border: 1px solid rgba(212, 175, 55, 0.3);
  width: 36px;
  height: 36px;
  border-radius: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--color-primary);
  font-size: 17px;
  flex-shrink: 0;
}

.feature-yellow-card .card-icon-box svg {
  display: block;
  width: 16px;
  height: 16px;
}

.feature-yellow-card .card-text-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.feature-yellow-card .card-text-box h3 {
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 1.05rem;
  color: #ffffff;
  margin: 0;
}

.feature-yellow-card .card-text-box p {
  font-family: var(--font-family);
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin: 0;
  font-weight: 500;
}

@media (max-width: 992px) {
  .gameplay-split-layout {
    flex-direction: column;
    text-align: center;
  }
  .gameplay-features-grid {
    margin: 0 auto;
  }
}

@media (max-width: 576px) {
  .gameplay-features-grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .feature-yellow-card {
    max-width: 300px;
  }
}

/* ==========================================
   Hero Gallery Section
   ========================================== */
.hero-gallery-header {
  text-align: center;
  margin-bottom: 30px;
}

.hero-quality-tabs-container {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.hero-quality-tabs {
  width: min(100%, 650px);
  position: relative;
  display: inline-flex;
  background: rgba(5, 5, 8, 0.85);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 30px;
  padding: 4px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6), inset 0 2px 8px rgba(0, 0, 0, 0.8);
  z-index: 1;
}

.hero-quality-tabs-slider {
  position: absolute;
  top: 4px;
  left: 4px;
  height: calc(100% - 8px);
  width: 160px;
  background: linear-gradient(180deg, rgba(140, 15, 20, 0.45) 0%, rgba(10, 11, 15, 0.95) 100%);
  border: 1px solid var(--color-primary);
  border-radius: 26px;
  z-index: 1;
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), width 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.25), inset 0 0 10px rgba(212, 175, 55, 0.15);
  pointer-events: none;
}

.quality-tab-btn {
  position: relative;
  z-index: 2;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 3px;
  padding: 12px 0;
  flex: 1;
  min-width: 0;
  text-align: center;
  cursor: pointer;
  transition: color 0.3s ease;
}

.quality-tab-btn.active {
  color: var(--color-primary);
  text-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
}

.quality-tab-btn:hover:not(.active) {
  color: #ffffff;
}

.hero-slider-container {
  display: grid;
  grid-template-columns: 44px minmax(0, 948px) 44px;
  align-items: center;
  justify-content: center;
  gap: 15px;
  background-color: #08090d;
  border-radius: 16px;
  padding: 20px 15px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.65), 0 0 30px rgba(212, 175, 55, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.25);
}

.slider-arrow-btn {
  width: 44px;
  min-height: 44px;
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 3.2rem;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
  opacity: 0.8;
}

.slider-arrow-btn:hover {
  transform: scale(1.2);
  opacity: 1;
}

.hero-carousel-viewport {
  grid-column: 2;
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  position: relative;
}

.hero-carousel-track {
  display: flex;
  gap: var(--card-gap);
  --visible-cards: 1;
  width: 100%;
}

.hero-showcase-card {
  transition: transform 0.3s ease;
  scroll-snap-align: start;
  width: calc((100% - (var(--visible-cards) - 1) * var(--card-gap)) / var(--visible-cards));
  flex-shrink: 0;
}

.hero-card-placeholder {
  width: 100%;
  aspect-ratio: 300 / 440;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 24px 16px 20px 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  background: rgba(12, 13, 18, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero-card-placeholder.has-image {
  padding: 0;
  border: none;
  box-shadow: none;
  background: transparent;
}

.hero-card-placeholder.has-image::before {
  display: none;
}

.hero-card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.hero-card-placeholder::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  border: 1px solid rgba(212, 175, 55, 0.15);
  pointer-events: none;
  border-radius: 10px;
}

/* Quality-specific card themes */
.placeholder-ssr {
  border: 2px solid var(--color-primary);
  background: radial-gradient(circle at 50% 50%, rgba(128, 14, 19, 0.2) 0%, rgba(10, 11, 15, 0.95) 100%), rgba(10, 11, 15, 0.9);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.8), inset 0 0 25px rgba(212, 175, 55, 0.2), 0 0 15px rgba(212, 175, 55, 0.15);
}

.placeholder-sr {
  border: 2px solid #8ba3c7;
  background: radial-gradient(circle at 50% 50%, rgba(20, 35, 60, 0.25) 0%, rgba(10, 11, 15, 0.95) 100%), rgba(10, 11, 15, 0.9);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.8), inset 0 0 20px rgba(139, 163, 199, 0.15), 0 0 15px rgba(139, 163, 199, 0.1);
}

.placeholder-r {
  border: 2px solid #8c6747;
  background: rgba(10, 11, 15, 0.9);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.8), inset 0 0 20px rgba(140, 103, 71, 0.1), 0 0 15px rgba(140, 103, 71, 0.05);
}

@media (max-width: 576px) {
  .quality-tab-btn {
    padding: 12px 0;
    font-size: 0.9rem;
    letter-spacing: 1px;
  }
  .hero-slider-container {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 12px;
    padding: 16px 12px;
  }
  .hero-carousel-viewport { grid-column: 1 / -1; grid-row: 1; }
  .arrow-left { grid-column: 1; grid-row: 2; }
  .arrow-right { grid-column: 3; grid-row: 2; }
}

/* ==========================================
   Expedition Section
   ========================================== */
#expedition-sec {
  position: relative;
  background-image:
    linear-gradient(to bottom, #050508 0%, transparent 15%, transparent 85%, #050508 100%),
    linear-gradient(90deg, rgba(5, 5, 8, 0.05) 0%, rgba(5, 5, 8, 0.15) 35%, rgba(5, 5, 8, 0.55) 70%, rgba(5, 5, 8, 0.82) 100%),
    url('assets/expedition_bg.webp');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: 5;
  padding-top: 140px;
  padding-bottom: 140px;
}

.expedition-top-split {
  display: flex;
  gap: 50px;
  align-items: center;
  margin-bottom: 60px;
}

.expedition-left-media {
  flex: 1.1;
  display: flex;
  justify-content: center;
}

.expedition-left-placeholder {
  width: 100%;
  max-width: 380px;
  height: 560px;
}

.expedition-right-desc {
  flex: 0.9;
}

.gameplay-main-title,
.expedition-main-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: #ffffff;
  margin-top: 8px;
  margin-bottom: 20px;
}

.title-bar-left {
  width: 140px;
  height: 3px;
  background: linear-gradient(90deg, rgba(255, 215, 0, 1) 0%, rgba(212, 175, 55, 0) 100%);
  margin-bottom: 24px;
  filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.75));
}

.expedition-lead-p {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 30px;
}

/* Expedition inline rules → proper classes */
.expedition-small-rules {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 20px;
}

.expedition-rule-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.expedition-rule-num {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--color-primary);
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.25);
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}

.expedition-rule-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

@media (max-width: 992px) {
  .expedition-top-split {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }
  .expedition-left-media {
    display: none;
  }
  .title-bar-left {
    margin: 0 auto 24px auto;
    background: linear-gradient(90deg, rgba(212, 175, 55, 0) 0%, rgba(255, 215, 0, 1) 50%, rgba(212, 175, 55, 0) 100%);
  }
  #expedition-sec {
    padding-top: 96px;
    padding-bottom: 96px;
    background-image:
      linear-gradient(to bottom, #050508 0%, transparent 15%, transparent 85%, #050508 100%),
      linear-gradient(rgba(5, 5, 8, 0.76), rgba(5, 5, 8, 0.76)),
      url('assets/expedition_bg.webp');
    background-position: 17% center;
  }
  .expedition-small-rules {
    justify-content: center;
  }
}

/* ==========================================
   CTA QR Code block
   ========================================== */
.cta-qr-wrapper {
  display: inline-block;
  padding: 6px;
  background: rgba(10, 11, 15, 0.65);
  border: 1.5px solid rgba(212, 175, 55, 0.4);
  border-radius: 8px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.cta-qr-inner {
  color: #111;
  font-size: 14px;
  width: 110px;
  height: 110px;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
}

/* ==========================================
   CTA Download badges row
   ========================================== */
.cta-download-badges {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 25px;
}

/* ==========================================
   Responsive overrides
   ========================================== */
@media (max-width: 1199px) {
  #cta-sec {
    padding: 110px 0;
  }
}

@media (max-width: 768px) {
  #cta-sec {
    padding: 80px 0;
  }
}

/* Accessible controls and resilient small-screen layout. */
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--color-gold); outline-offset: 4px; }
section, header { scroll-margin-top: 80px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 12px 18px;
  background: #050508;
  color: #ffd700;
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }
.hero-actions-badges { margin-bottom: 0; flex-wrap: wrap; }
.custom-badge { flex-shrink: 0; }
.badge-texts { white-space: nowrap; }
.hero-carousel-viewport::-webkit-scrollbar { display: none; }
.mobile-nav-toggle { min-width: 44px; min-height: 44px; }
.mobile-nav-toggle i { display: none; }
.mobile-nav-toggle::before { content: '☰'; font-size: 24px; }
.mobile-nav-toggle[aria-expanded="true"]::before { content: '×'; font-size: 30px; }
.motion-ready .feature-yellow-card:not(.visible),
.motion-ready .combat-showcase-container:not(.visible),
.motion-ready .mode-vertical-card:not(.visible) { opacity: 0; transform: translateY(32px); }

@media (max-width: 768px) {
  .hero-content { padding: 0 16px; margin-bottom: 64px; }
  .hero-actions-badges, .cta-download-badges { gap: 10px; flex-wrap: wrap; }
  .custom-badge { width: 152px; padding: 8px 10px; gap: 8px; }
  .custom-badge .badge-title { font-size: 15px; }
  .custom-badge .badge-icon { font-size: 25px; }
  .custom-badge .badge-icon-svg { width: 25px; height: 25px; }
  .hero-art-slogan-container { margin-bottom: 24px; }
  .footer-bar-inner { padding: 0 24px; gap: 20px; flex-wrap: wrap; }
  .expedition-top-split { margin-bottom: 0; }
  #expedition-sec { padding: 80px 0; }
}
@media (max-width: 359px) {
  .custom-badge { width: 136px; padding: 8px; gap: 6px; }
  .custom-badge .badge-title { font-size: 14px; }
  .custom-badge .badge-sub { font-size: 7px; }
  .footer-social-group { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-carousel-viewport { scroll-snap-type: none; scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .motion-ready .feature-yellow-card:not(.visible),
  .motion-ready .combat-showcase-container:not(.visible),
  .motion-ready .mode-vertical-card:not(.visible) { opacity: 1; transform: none; }
  #ember-canvas { display: none; }
}
