:root {
  --primary-bg: #0F1218;
  --secondary-bg: #181D27;
  --surface: #232B3A;
  --imperial-red: #A32222;
  --royal-gold: #D4A84E;
  --bright-gold: #F1D182;
  --jade-green: #3D7D6A;
  --ivory: #F6F0E5;
  --primary-text: #F7F3EA;
  --secondary-text: #D8D0C0;
  --muted-text: #9F988A;
  --footer-strip: #A32222;
  --footer-main: #131821;
  --footer-bottom: #0A0D14;
  --font-heading: 'Cinzel', serif;
  --font-body: 'Lato', sans-serif;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--bright-gold);
  font-weight: 600;
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--primary-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--royal-gold);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--bright-gold);
}

/* Reusable Components */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section-padding {
  padding: 6rem 0;
}

.text-center {
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--bright-gold);
}

.section-subtitle {
  color: var(--secondary-text);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  text-align: center;
}

.btn-primary {
  background-color: var(--imperial-red);
  color: var(--ivory);
  border-color: var(--imperial-red);
}

.btn-primary:hover {
  background-color: #8c1d1d;
  box-shadow: 0 0 15px rgba(163, 34, 34, 0.6);
}

.btn-outline {
  background-color: transparent;
  color: var(--royal-gold);
  border-color: var(--royal-gold);
}

.btn-outline:hover {
  background-color: var(--royal-gold);
  color: var(--primary-bg);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(15, 18, 24, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(212, 168, 78, 0.2);
  transition: var(--transition);
}

.header.scrolled {
  background-color: rgba(15, 18, 24, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--bright-gold);
  letter-spacing: 2px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo::before {
  content: '🏮';
  font-size: 1.5rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-heading);
  color: var(--primary-text);
  font-size: 1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.nav-links a:hover {
  color: var(--royal-gold);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--bright-gold);
  font-size: 2rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
  background: linear-gradient(to bottom, rgba(15, 18, 24, 0.3), rgba(15, 18, 24, 1)),
              url('images/photo-1599423689456-11f81ce5b210.png') center/cover no-repeat;
  text-align: center;
}

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

.hero h1 {
  font-size: 4rem;
  line-height: 1.2;
  text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.2rem;
  color: var(--ivory);
  margin-bottom: 2.5rem;
  text-shadow: 1px 1px 5px rgba(0,0,0,0.8);
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

/* Game Section */
.game-section {
  background-color: var(--primary-bg);
  position: relative;
}

.game-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(163, 34, 34, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.game-wrapper {
  width: 75%;
  max-width: 1200px;
  margin: 0 auto;
  border: 2px solid var(--royal-gold);
  border-radius: 8px;
  padding: 10px;
  background-color: var(--surface);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(212, 168, 78, 0.2);
}

.game-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 4px;
}

.game-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Treasures Section */
.treasures-section {
  background-color: var(--secondary-bg);
  border-top: 1px solid rgba(212, 168, 78, 0.1);
  border-bottom: 1px solid rgba(212, 168, 78, 0.1);
}

.treasures-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.treasure-card {
  background-color: var(--surface);
  border: 1px solid rgba(212, 168, 78, 0.2);
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}

.treasure-card:hover {
  transform: translateY(-10px);
  border-color: var(--jade-green);
  box-shadow: 0 10px 20px rgba(61, 125, 106, 0.2);
}

.treasure-card-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-bottom: 2px solid var(--royal-gold);
}

.treasure-card-content {
  padding: 2rem;
  text-align: center;
}

.treasure-card-content h3 {
  color: var(--bright-gold);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.treasure-card-content p {
  color: var(--secondary-text);
  font-size: 1rem;
}

/* Cultural Highlights Section */
.highlights-section {
  background: linear-gradient(rgba(15, 18, 24, 0.8), rgba(15, 18, 24, 0.9)),
              url('images/photo-1548050720-63ceba51e041.png') center/cover fixed;
  padding: 4rem 0;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.highlight-item {
  padding: 2rem;
  background-color: rgba(35, 43, 58, 0.7);
  border: 1px solid var(--royal-gold);
  border-radius: 8px;
  backdrop-filter: blur(5px);
}

.highlight-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--bright-gold);
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.highlight-text {
  font-size: 1.1rem;
  color: var(--primary-text);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* About Section (Homepage preview) */
.about-preview {
  background-color: var(--primary-bg);
}

.about-preview .container {
  max-width: 800px;
  text-align: center;
}

.about-preview p {
  font-size: 1.2rem;
  color: var(--secondary-text);
  margin-bottom: 2rem;
}

/* FAQ Section */
.faq-section {
  background-color: var(--secondary-bg);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1rem;
  border: 1px solid rgba(212, 168, 78, 0.2);
  border-radius: 4px;
  background-color: var(--surface);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.5rem;
  background: none;
  border: none;
  color: var(--bright-gold);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.faq-question:hover {
  background-color: rgba(212, 168, 78, 0.05);
}

.faq-icon {
  color: var(--imperial-red);
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 1.5rem;
  color: var(--secondary-text);
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding-bottom: 1.5rem;
}

/* Contact Section */
.contact-section {
  background-color: var(--primary-bg);
  position: relative;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background-color: var(--surface);
  padding: 3rem;
  border-radius: 8px;
  border: 1px solid rgba(212, 168, 78, 0.2);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--secondary-text);
}

.form-control {
  width: 100%;
  padding: 1rem;
  background-color: var(--primary-bg);
  border: 1px solid rgba(212, 168, 78, 0.3);
  color: var(--primary-text);
  border-radius: 4px;
  font-family: var(--font-body);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--bright-gold);
  box-shadow: 0 0 8px rgba(212, 168, 78, 0.3);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.form-status {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 4px;
  text-align: center;
  display: none;
}

.status-loading { display: none; color: var(--royal-gold); }
.status-success { display: none; background-color: rgba(61, 125, 106, 0.2); border: 1px solid var(--jade-green); color: #8ef0d3; }
.status-error { display: none; background-color: rgba(163, 34, 34, 0.2); border: 1px solid var(--imperial-red); color: #ff9999; }

/* Custom Luxury Footer */
.footer {
  width: 100%;
}

.footer-top-strip {
  background-color: var(--footer-strip);
  padding: 1.5rem 0;
  text-align: center;
  border-top: 2px solid var(--royal-gold);
  border-bottom: 2px solid var(--royal-gold);
}

.footer-top-strip h2 {
  color: var(--ivory);
  font-size: 2rem;
  margin-bottom: 0.5rem;
  letter-spacing: 2px;
}

.footer-top-strip p {
  color: #ffcccc;
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 1px;
}

.footer-main {
  background-color: var(--footer-main);
  padding: 5rem 0;
  position: relative;
}

/* Subtle Chinese Border Pattern using gradients */
.footer-main::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    var(--royal-gold) 0,
    var(--royal-gold) 10px,
    transparent 10px,
    transparent 20px
  );
  opacity: 0.5;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}

.footer-col h3 {
  color: var(--bright-gold);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--imperial-red);
}

.footer-col p {
  color: var(--muted-text);
  margin-bottom: 1rem;
}

.footer-col ul li {
  margin-bottom: 0.8rem;
}

.footer-col ul li a {
  color: var(--muted-text);
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--jade-green);
  padding-left: 5px;
}

.footer-support-email {
  color: var(--royal-gold);
  font-weight: bold;
  word-break: break-all;
}

.footer-bottom {
  background-color: var(--footer-bottom);
  padding: 1.5rem 0;
  text-align: center;
  border-top: 1px solid rgba(212, 168, 78, 0.1);
}

.footer-bottom p {
  color: var(--muted-text);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.footer-bottom-disclaimer {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.footer-bottom-disclaimer span {
  color: var(--jade-green);
  font-size: 0.85rem;
  border: 1px solid var(--jade-green);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--surface);
  border: 1px solid var(--royal-gold);
  padding: 1.5rem 2rem;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.8);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  max-width: 900px;
  width: 90%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.cookie-banner.show {
  opacity: 1;
  visibility: visible;
}

.cookie-text {
  color: var(--primary-text);
  font-size: 0.95rem;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
}

.cookie-btn {
  padding: 0.5rem 1.5rem;
  font-family: var(--font-heading);
  cursor: pointer;
  border-radius: 4px;
  font-weight: bold;
  border: none;
  transition: var(--transition);
}

.btn-accept {
  background-color: var(--imperial-red);
  color: var(--ivory);
}

.btn-accept:hover {
  background-color: #8c1d1d;
}

.btn-reject {
  background-color: transparent;
  color: var(--muted-text);
  border: 1px solid var(--muted-text);
}

.btn-reject:hover {
  background-color: rgba(255,255,255,0.1);
  color: var(--primary-text);
}

/* Internal Pages specific */
.page-header {
  padding: 150px 0 80px;
  background: linear-gradient(rgba(15, 18, 24, 0.8), rgba(15, 18, 24, 0.95)),
              url('images/photo-1563251410-d09f6e3c0429.png') center/cover no-repeat;
  text-align: center;
  border-bottom: 2px solid var(--imperial-red);
}

.page-header h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.content-section {
  padding: 5rem 0;
  background-color: var(--primary-bg);
}

.content-box {
  background-color: var(--surface);
  padding: 3rem;
  border-radius: 8px;
  border: 1px solid rgba(212, 168, 78, 0.1);
  max-width: 900px;
  margin: 0 auto;
}

.content-box h2 {
  color: var(--bright-gold);
  margin-top: 2rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(212, 168, 78, 0.2);
  padding-bottom: 0.5rem;
}

.content-box h3 {
  color: var(--royal-gold);
  font-size: 1.2rem;
  margin-top: 1.5rem;
}

.content-box p {
  color: var(--secondary-text);
  margin-bottom: 1.5rem;
}

.content-box ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.content-box ul li {
  color: var(--secondary-text);
  margin-bottom: 0.5rem;
  list-style-type: disc;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .game-wrapper {
    width: 90%;
  }
  .highlights-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: rgba(15, 18, 24, 0.98);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    transition: var(--transition);
  }
  
  .nav-links.active {
    left: 0;
  }
  
  .mobile-menu-btn {
    display: block;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .game-wrapper {
    width: 100%;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .treasures-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-col h3::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .cookie-banner {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.2rem;
  }
  .highlights-grid {
    grid-template-columns: 1fr;
  }
  .hero-buttons {
    flex-direction: column;
  }
  .content-box {
    padding: 1.5rem;
  }
}