/* UsePlayFlock - Mystical Fantasy Theme */
:root {
  --primary: #6b2d5c;       /* Royal purple */
  --accent: #d4af37;        /* Ancient gold */
  --secondary: #2d5016;     /* Forest jade */
  --dark: #1a0d1a;          /* Deep mystical */
  --light: #fdfcf8;         /* Parchment white */
  --muted: #8b7d77;         /* Stone gray */
  --warning: #c54c3f;       /* Ruby red */
  --success: #4a7c59;       /* Emerald green */
  --border: #d4c5b9;        /* Aged border */
  --shadow: rgba(107, 45, 92, 0.15);
  --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

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

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

body {
  font-family: 'Merriweather', Georgia, serif;
  line-height: 1.7;
  color: var(--dark);
  background: var(--light);
  overflow-x: hidden;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.grid {
  display: grid;
  gap: 2.5rem;
}

.two-col { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.three-col { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* Typography */
h1, h2, h3, h4 { 
  font-family: 'Cinzel', serif;
  color: var(--primary); 
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

h1 { font-size: 3rem; margin-bottom: 1.25rem; }
h2 { font-size: 2.25rem; margin-bottom: 1rem; }
h3 { font-size: 1.75rem; margin-bottom: 0.875rem; }
h4 { font-size: 1.25rem; margin-bottom: 0.75rem; }

p { margin-bottom: 1rem; }

.lead { 
  font-size: 1.2rem; 
  color: var(--muted);
  font-style: italic;
}

.text-center { text-align: center; }
.muted { color: var(--muted); font-size: 0.95rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 1.75rem;
  border: 2px solid transparent;
  border-radius: 4px;
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn.primary {
  background: var(--accent);
  color: var(--dark);
  border-color: var(--accent);
}

.btn.primary:hover {
  background: transparent;
  color: var(--accent);
  transform: translateY(-2px);
}

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

.btn.outline:hover {
  background: var(--light);
  color: var(--primary);
}

.btn.secondary {
  background: var(--primary);
  color: var(--light);
  border-color: var(--primary);
}

/* Header */
.header {
  background: linear-gradient(180deg, rgba(26, 13, 26, 0.98) 0%, rgba(26, 13, 26, 0.95) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  border-bottom: 2px solid var(--accent);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 75px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: 'Cinzel', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.03em;
}

.logo {
  width: 45px;
  height: 45px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--accent);
  position: relative;
}

.logo::before {
  content: '⚜';
  font-size: 24px;
  color: var(--accent);
}

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

.nav a {
  font-family: 'Cinzel', serif;
  color: rgba(212, 175, 55, 0.85);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav a:hover,
.nav a.active {
  color: var(--accent);
  background: rgba(212, 175, 55, 0.1);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
}

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

.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* Hero */
.hero {
  background: var(--gradient);
  color: var(--light);
  padding: 150px 0 90px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid var(--accent);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(74, 124, 89, 0.1) 0%, transparent 50%);
  opacity: 0.6;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  color: var(--accent);
  font-size: 3.75rem;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.hero .lead {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.3rem;
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Sections */
.section {
  padding: 90px 0;
}

.section.alt {
  background: linear-gradient(180deg, #f8f6f1 0%, #fdfcf8 100%);
}

/* Cards */
.card {
  background: white;
  border-radius: 8px;
  padding: 2.25rem;
  box-shadow: 0 6px 20px var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border);
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient);
  border-radius: 8px 8px 0 0;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px var(--shadow);
}

.card-icon {
  width: 70px;
  height: 70px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 32px;
  color: var(--accent);
  border: 3px solid var(--accent);
}

/* Game Container */
.game-container {
  background: white;
  border-radius: 8px;
  padding: 2.5rem;
  box-shadow: 0 8px 28px var(--shadow);
  border: 2px solid var(--border);
  margin: 2rem 0;
}

.game-selector {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.game-btn {
  padding: 0.875rem 1.75rem;
  background: var(--primary);
  color: var(--accent);
  border: 2px solid var(--accent);
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.game-btn:hover,
.game-btn.active {
  background: var(--accent);
  color: var(--dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(212, 175, 55, 0.3);
}

.game-frame {
  width: 100%;
  max-width: 900px;
  aspect-ratio: 16/9;
  height: auto;
  max-height: 600px;
  border-radius: 6px;
  border: 3px solid var(--border);
  margin: 0 auto;
  display: block;
  background: #f5f0e8;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Disclaimer */
.disclaimer-banner {
  background: linear-gradient(135deg, var(--warning), #a83d32);
  color: white;
  padding: 1.75rem;
  border-radius: 8px;
  margin: 2rem 0;
  border: 3px solid #8b2e24;
  box-shadow: 0 6px 18px rgba(197, 76, 63, 0.3);
}

.disclaimer-banner h3 {
  color: white;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 1.5rem;
}

.disclaimer-banner h3::before {
  content: '⚠';
  font-size: 28px;
}

/* Popup */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 13, 26, 0.85);
  display: none;
  z-index: 10000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.popup-overlay.show {
  display: flex;
}

.popup {
  background: white;
  border-radius: 10px;
  padding: 3rem;
  max-width: 540px;
  width: 90%;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  border: 4px solid var(--accent);
  position: relative;
}

.popup::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: var(--gradient);
  border-radius: 10px 10px 0 0;
}

.popup h3 {
  color: var(--primary);
  margin-bottom: 1.25rem;
  font-size: 1.75rem;
}

.popup p {
  margin-bottom: 2rem;
  color: var(--dark);
  line-height: 1.6;
}

.popup-actions {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Forms */
.form {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.form label {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  font-family: 'Cinzel', serif;
  font-weight: 600;
  color: var(--primary);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.input {
  padding: 0.875rem 1.125rem;
  border: 2px solid var(--border);
  border-radius: 6px;
  font-size: 1rem;
  font-family: 'Merriweather', serif;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background: white;
}

.input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.textarea {
  min-height: 140px;
  resize: vertical;
}

/* Footer */
.footer {
  background: linear-gradient(180deg, var(--dark) 0%, #0d0609 100%);
  color: var(--light);
  padding: 4rem 0 2rem;
  border-top: 3px solid var(--accent);
}

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

.footer .brand {
  margin-bottom: 1.25rem;
}

.footer-desc {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer h4 {
  color: var(--accent);
  margin-bottom: 1.25rem;
  font-size: 1.125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.3s ease, padding-left 0.3s ease;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 6px;
}

.footer-bottom {
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  padding-top: 2rem;
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.disclaimer-footer {
  background: var(--warning);
  color: white;
  padding: 1.125rem;
  text-align: center;
  font-weight: 600;
  border-top: 2px solid #8b2e24;
  font-size: 0.95rem;
}

/* Scroll to Top */
.scroll-top {
  position: fixed;
  bottom: 2.5rem;
  right: 2.5rem;
  width: 55px;
  height: 55px;
  background: var(--accent);
  color: var(--dark);
  border: 3px solid var(--primary);
  border-radius: 50%;
  font-size: 1.75rem;
  cursor: pointer;
  opacity: 0;
  transform: translateY(100px);
  transition: all 0.3s ease;
  z-index: 999;
  font-family: 'Cinzel', serif;
  font-weight: 700;
}

.scroll-top.show {
  opacity: 1;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--primary);
  color: var(--accent);
  transform: translateY(-6px) scale(1.05);
}

/* Utilities */
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 2rem; }

/* Responsive */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  
  .nav {
    position: absolute;
    top: 75px;
    left: 0;
    width: 100%;
    background: linear-gradient(180deg, rgba(26, 13, 26, 0.98) 0%, rgba(26, 13, 26, 0.95) 100%);
    flex-direction: column;
    padding: 1.5rem 0;
    transform: translateY(-100vh);
    transition: transform 0.3s ease;
    border-bottom: 2px solid var(--accent);
  }
  
  .nav.open {
    transform: translateY(0);
  }
  
  .hero h1 {
    font-size: 2.75rem;
  }
  
  .hero .lead {
    font-size: 1.15rem;
  }
  
  .footer-columns {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .popup {
    padding: 2rem 1.5rem;
  }
  
  .popup-actions {
    flex-direction: column;
  }
  
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.875rem; }
  h3 { font-size: 1.5rem; }
  
  .section {
    padding: 70px 0;
  }
  
  .hero {
    padding: 130px 0 70px;
  }
}
