/* Royal Elm House - Premium Social Gaming Style System */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700;900&family=Lato:wght@400;700&display=swap');

:root {
  /* Royal Elm Palette */
  --primary: #064E3B; /* Deep Emerald Green */
  --primary-hover: #022C22;
  --secondary: #451A03; /* Mahogany Wood */
  --secondary-hover: #290F02;
  --accent: #D97706; /* Royal Gold */
  --accent-hover: #B45309;
  
  --bg-main: #F4F6F8; 
  --bg-alt: #E2E8F0; 
  --card-bg: #FFFFFF;
  
  --text-main: #1E293B; 
  --text-muted: #64748B; 
  
  --white: #ffffff;
  --black: #000000;
  
  --border-color: #CBD5E1;
  --border-radius-sm: 4px;
  --border-radius-md: 12px;
  --border-radius-lg: 20px;
  
  --shadow-sm: 0 4px 6px rgba(6, 78, 59, 0.05);
  --shadow-md: 0 10px 20px rgba(6, 78, 59, 0.1);
  --shadow-lg: 0 20px 40px rgba(6, 78, 59, 0.15);
  
  --transition-fast: 0.2s ease-in-out;
  --transition-normal: 0.3s ease-in-out;
  
  --font-headings: 'Cinzel', serif;
  --font-body: 'Lato', sans-serif;
  --max-width: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  font-weight: 700;
  color: var(--secondary);
  line-height: 1.2;
}

a { text-decoration: none; color: inherit; transition: color var(--transition-fast); }
img { max-width: 100%; display: block; border-radius: var(--border-radius-md); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2.5rem;
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: none;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.btn-primary { background-color: var(--primary); color: var(--white); box-shadow: 0 4px 10px rgba(6, 78, 59, 0.3); }
.btn-primary:hover { background-color: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 6px 15px rgba(6, 78, 59, 0.4); }
.btn-secondary { background-color: transparent; color: var(--secondary); border: 2px solid var(--secondary); }
.btn-secondary:hover { background-color: var(--secondary); color: var(--white); transform: translateY(-2px); }
.btn-accent { background-color: var(--accent); color: var(--white); box-shadow: 0 4px 10px rgba(217, 119, 6, 0.3); }
.btn-accent:hover { background-color: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 6px 15px rgba(217, 119, 6, 0.4); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* Layout */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 2rem; }
.section-padding { padding: 5rem 0; }
.text-center { text-align: center; }

/* Header */
.header {
  background-color: var(--card-bg);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 3px solid var(--accent);
  padding: 1rem 0;
  box-shadow: var(--shadow-sm);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; }
.header__logo { font-family: var(--font-headings); font-size: 1.6rem; font-weight: 900; color: var(--secondary); display: flex; align-items: center; gap: 0.5rem; text-transform: uppercase; letter-spacing: 1px; }
.header__logo i { color: var(--primary); font-style: normal; }
.header__nav { display: flex; gap: 2rem; list-style: none; }
.header__nav-link { font-weight: 700; color: var(--text-muted); position: relative; font-family: var(--font-headings); font-size: 1rem; text-transform: uppercase; }
.header__nav-link:hover, .header__nav-link.active { color: var(--primary); }
.balance-badge {
  background-color: var(--bg-alt);
  border: 2px solid var(--accent);
  padding: 0.5rem 1.5rem;
  border-radius: 4px;
  font-weight: 700;
  color: var(--secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-headings);
  font-size: 1.1rem;
}

/* Modals & Overlays */
.overlay {
  position: fixed; inset: 0;
  background: rgba(6, 78, 59, 0.85);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.modal {
  background: var(--card-bg);
  border-radius: var(--border-radius-sm);
  padding: 3rem; max-width: 500px; width: 100%;
  text-align: center; box-shadow: var(--shadow-lg);
  border: 4px solid var(--accent);
}
.modal__title { font-size: 2.2rem; margin-bottom: 1rem; color: var(--secondary); }
.modal__text { color: var(--text-muted); margin-bottom: 2rem; font-size: 1.05rem; }
.modal__checkbox-group {
  display: flex; align-items: flex-start; gap: 1rem; text-align: left;
  background: var(--bg-alt); padding: 1.5rem; border-radius: var(--border-radius-sm);
  margin-bottom: 2rem; border: 1px solid var(--border-color);
}
.modal__checkbox { width: 24px; height: 24px; accent-color: var(--primary); margin-top: 2px; cursor: pointer; flex-shrink: 0; }
.modal__checkbox-label { font-size: 1rem; color: var(--text-main); cursor: pointer; font-weight: 700; }
.modal__btn { width: 100%; padding: 1.1rem; }

/* Cookie Banner */
.cookie-banner {
  position: fixed; bottom: 2rem; left: 2rem; max-width: 400px;
  background: var(--primary); color: white; padding: 2rem;
  border-radius: var(--border-radius-sm); box-shadow: var(--shadow-lg);
  z-index: 1500; transform: translateY(150%); transition: transform var(--transition-normal);
  border-top: 4px solid var(--accent);
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner p { font-size: 0.95rem; margin-bottom: 1.5rem; color: #E2E8F0; }
.cookie-banner a { color: var(--accent); text-decoration: underline; }

/* Hero Section */
.hero {
  padding: 8rem 0;
  background: linear-gradient(to right, rgba(244, 246, 248, 0.95), rgba(244, 246, 248, 0.8)),
              url('https://images.unsplash.com/photo-1542314831-c6a4d27ce66b?auto=format&fit=crop&q=80') center/cover;
  position: relative;
  border-bottom: 5px solid var(--primary);
}
.hero__title { font-size: 4rem; margin-bottom: 1.5rem; color: var(--secondary); letter-spacing: 1px; }
.hero__text { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 3rem; line-height: 1.8; max-width: 600px; }

/* Section Headers */
.section-header { margin-bottom: 4rem; }
.section-subtitle { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 3px; font-size: 0.9rem; display: block; margin-bottom: 1rem; font-family: var(--font-headings); }
.section-title { font-size: 2.8rem; }

/* Games Grid */
.games-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2.5rem; }
.game-card { background: var(--card-bg); border-radius: var(--border-radius-md); border: 1px solid var(--border-color); overflow: hidden; transition: all var(--transition-normal); display: flex; flex-direction: column; box-shadow: var(--shadow-sm); }
.game-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.game-card__img-wrap { height: 220px; overflow: hidden; border-bottom: 4px solid var(--primary); }
.game-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; border-radius: 0; }
.game-card:hover .game-card__img { transform: scale(1.05); }
.game-card__body { padding: 2.5rem; display: flex; flex-direction: column; flex: 1; text-align: center; }
.game-card__title { font-size: 1.6rem; margin-bottom: 1rem; }
.game-card__desc { color: var(--text-muted); font-size: 1rem; margin-bottom: 2.5rem; flex: 1; }

/* Features */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.feature-card { background: var(--card-bg); padding: 3rem 2rem; border-radius: var(--border-radius-md); border: 1px solid var(--border-color); text-align: center; transition: all var(--transition-normal); border-top: 4px solid var(--accent); }
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.feature-icon { font-size: 2.5rem; margin-bottom: 1.5rem; color: var(--primary); }
.feature-title { font-size: 1.4rem; margin-bottom: 1rem; }

/* Footer */
.footer { background-color: var(--secondary); color: var(--white); padding: 5rem 0 2rem; margin-top: 4rem; border-top: 5px solid var(--accent); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 4rem; }
.footer-col__title { font-size: 1.2rem; color: var(--accent); margin-bottom: 1.5rem; text-transform: uppercase; letter-spacing: 1px; font-family: var(--font-headings); }
.footer-menu { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.footer-menu a { color: #CBD5E1; font-size: 0.95rem; }
.footer-menu a:hover { color: var(--white); }

/* COMPLIANCE BLOCK - STRICT MATCH */
.compliance-block {
  text-align: center;
  padding: 3rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 3rem;
}
.compliance-badge {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  color: var(--primary);
  font-weight: 700; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem;
  font-family: var(--font-headings);
  background: var(--white);
}
.compliance-text { color: #CBD5E1; font-size: 0.95rem; max-width: 800px; margin: 0 auto 2.5rem; line-height: 1.8; }
.compliance-text strong { color: var(--accent); font-weight: 700; }
.compliance-logos { display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 56px; flex-wrap: wrap; }
.compliance-logos img { height: 36px; opacity: 0.8; transition: opacity var(--transition-fast); filter: grayscale(100%) brightness(2); }
.compliance-logos img:hover { opacity: 1; filter: none; }

.footer__bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 1rem; color: #94A3B8; font-size: 0.85rem; }

/* Info Pages */
.page-hero { padding: 5rem 0; background-color: var(--primary); color: white; text-align: center; border-bottom: 5px solid var(--accent); }
.page-hero .section-title { color: white; }
.page-content { padding: 5rem 0; max-width: 800px; margin: 0 auto; }
.prose h2 { font-size: 2rem; margin: 3rem 0 1.5rem; color: var(--primary); }
.prose p { margin-bottom: 1.5rem; color: var(--text-muted); font-size: 1.1rem; line-height: 1.8; }
.prose ul { margin-bottom: 1.5rem; padding-left: 1.5rem; color: var(--text-muted); font-size: 1.1rem; }
