:root {
  /* Colors */
  --kingdom-navy: rgba(15,20,35,0.55);
  --secondary-overlay: rgba(20,25,45,0.60);
  --card-bg: rgba(30,40,60,0.65);
  --card-hover: rgba(40,50,75,0.75);
  
  --royal-gold: #D4AF37;
  --ancient-gold: #C9A227;
  --silver-steel: #B8C0C8;
  --royal-crimson: #8B2635;
  
  --text-primary: #F8F6F0;
  --text-secondary: #D8D2C2;
  --text-muted: #B6B0A1;

  /* Fonts */
  --font-heading: 'Cinzel', 'Playfair Display', serif;
  --font-body: 'Lora', 'Georgia', serif;
  --font-ui: 'Open Sans', 'Helvetica', sans-serif;
}

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

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background-color: #0A0D14;
  background-image: url('images/majestic-castle-kingdom-wallpaper.jpg');
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  background-repeat: no-repeat;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

a {
  color: var(--royal-gold);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--text-primary);
}

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

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

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

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

.gold-text {
  color: var(--royal-gold);
}

.bg-panel {
  background: var(--card-bg);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.bg-panel:hover {
  background: var(--card-hover);
  border-color: rgba(212, 175, 55, 0.5);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-family: var(--font-heading);
  font-weight: bold;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--ancient-gold), var(--royal-gold));
  color: #1a1a1a;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
  border: 1px solid rgba(255,255,255,0.2);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #E6C24A, var(--royal-gold));
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

/* Header & Nav */
.header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: var(--secondary-overlay);
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1rem 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 95%;
  max-width: 1400px;
  margin: 0 auto;
}

.logo h2 {
  margin: 0;
  color: var(--royal-gold);
  font-size: 1.5rem;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

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

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

.nav-cta .btn {
  padding: 0.6rem 1.5rem;
  font-size: 0.9rem;
}

/* Hero Section */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  background: transparent;
}

.hero-content {
  max-width: 800px;
  padding: 3rem;
  z-index: 2;
}

.hero-content h1 {
  font-size: 4rem;
  color: var(--royal-gold);
  text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.5rem;
  color: var(--text-primary);
  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 {
  padding: 4rem 0;
  background: transparent;
}

.game-wrapper {
  width: 90%;
  max-width: 1300px;
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.5);
  border: 4px solid var(--royal-gold);
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.game-wrapper iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
  display: block;
}

/* Kingdom Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  padding: 2.5rem;
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  color: var(--royal-gold);
  font-size: 1.4rem;
}

/* Royal Showcase */
.gallery-section {
  background: transparent;
}

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

.showcase-item {
  padding: 1.5rem;
  text-align: center;
}

.showcase-item img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.gallery-caption {
  margin-top: 1rem;
  font-family: var(--font-heading);
  color: var(--royal-gold);
  font-size: 1.4rem;
}

/* Story Section */
.story-section {
  position: relative;
  padding: 6rem 0;
  background: transparent;
}

.story-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem;
}

.story-content p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

.story-content p:first-of-type::first-letter {
  font-size: 3.5rem;
  color: var(--royal-gold);
  float: left;
  line-height: 1;
  padding-right: 0.5rem;
  font-family: var(--font-heading);
}

/* Statistics */
.stats-section {
  background: transparent;
}

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

.stat-item {
  padding: 2rem;
}

.stat-item h4 {
  font-size: 3rem;
  color: var(--royal-gold);
  margin-bottom: 0.5rem;
}

.stat-item p {
  font-family: var(--font-heading);
  color: var(--silver-steel);
  font-size: 1.1rem;
}

/* CTA Section */
.cta-section {
  text-align: center;
  padding: 6rem 0;
  background: transparent;
}

.cta-section h2 {
  font-size: 3rem;
  margin-bottom: 2rem;
}

/* Content Pages (About, Contact, Terms, etc.) */
.page-header {
  padding: 6rem 0 3rem;
  text-align: center;
  background: transparent;
}

.page-header h1 {
  font-size: 3.5rem;
  color: var(--royal-gold);
}

.content-section {
  padding: 0 0 4rem 0;
  min-height: 60vh;
}

.content-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem;
}

.content-wrapper h2 {
  color: var(--royal-gold);
  margin-top: 2rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
  padding-bottom: 0.5rem;
}

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

.content-wrapper ul {
  padding-left: 2rem;
}

.content-wrapper li {
  margin-bottom: 0.5rem;
}

/* Form Styles */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-family: var(--font-heading);
  color: var(--royal-gold);
}

.form-group input, .form-group textarea {
  padding: 1rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--text-primary);
  font-family: var(--font-ui);
  border-radius: 4px;
}

.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--royal-gold);
  background: rgba(0, 0, 0, 0.6);
}

/* Footer */
footer {
  background: var(--secondary-overlay);
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(212, 175, 55, 0.3);
  font-family: var(--font-ui);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

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

.footer-brand h3 {
  font-family: var(--font-heading);
  color: var(--royal-gold);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.footer-legal-notice {
  text-align: center;
  padding: 1.5rem;
}

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

.eighteen-plus {
  display: inline-block;
  border: 2px solid var(--royal-crimson);
  color: var(--royal-crimson);
  font-weight: bold;
  padding: 0.3rem 0.6rem;
  border-radius: 50%;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

.copyright {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
}

/* Media Queries */
@media (max-width: 992px) {
  .hero-content h1 { font-size: 3rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-content { grid-template-columns: 1fr; text-align: center; }
  .footer-links { align-items: center; }
  .game-wrapper { width: 95%; }
  .showcase-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero-buttons { flex-direction: column; }
  .game-wrapper { width: 100%; border-radius: 0; border-left: none; border-right: none; border-width: 2px; }
  .page-header h1 { font-size: 2.5rem; }
  .showcase-item img { height: 250px; }
}