@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Lato:wght@300;400;700&display=swap');

:root {
  --gold: #d4a853;
  --gold-light: #f5d89a;
  --burgundy: #7a2846;
  --sand: #f5e6c8;
  --dark-brown: #1a0f0a;
  --cream: #fef9f3;
}

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

body {
  font-family: 'Lato', sans-serif;
  background: var(--dark-brown);
  color: var(--cream);
  line-height: 1.8;
}

.top-bar {
  background: linear-gradient(90deg, var(--burgundy) 0%, #4a1527 100%);
  padding: 0.5rem 1rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--gold-light);
  border-bottom: 2px solid var(--gold);
}

header {
  background: rgba(26, 15, 10, 0.95);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(212, 168, 83, 0.3);
}

.header-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand svg {
  width: 44px;
  height: 44px;
  margin-right: 12px;
}

.brand-name {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 3px;
}

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

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

nav ul {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

nav a {
  font-family: 'Cinzel', serif;
  color: var(--cream);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1px;
  transition: color 0.3s;
}

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

.welcome-banner {
  background: linear-gradient(135deg, #2d1810 0%, #1a0f0a 50%, #2d1810 100%);
  padding: 5rem 1.5rem;
  text-align: center;
  border-bottom: 3px solid var(--gold);
  position: relative;
  overflow: hidden;
}

.welcome-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 5L35 25H55L39 37L45 57L30 45L15 57L21 37L5 25H25L30 5Z' fill='none' stroke='%23d4a853' stroke-width='0.5' opacity='0.1'/%3E%3C/svg%3E");
  opacity: 0.5;
}

.welcome-content {
  position: relative;
  max-width: 850px;
  margin: 0 auto;
}

.welcome-content h1 {
  font-family: 'Cinzel', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--gold);
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.welcome-content p {
  font-size: 1.15rem;
  color: var(--sand);
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.notice-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.notice-item {
  background: rgba(212, 168, 83, 0.15);
  border: 1px solid var(--gold);
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  color: var(--gold-light);
}

.primary-btn {
  display: inline-block;
  background: linear-gradient(180deg, var(--gold) 0%, #b8923d 100%);
  color: var(--dark-brown);
  font-family: 'Cinzel', serif;
  font-weight: 700;
  padding: 1rem 3rem;
  text-decoration: none;
  border-radius: 3px;
  font-size: 1rem;
  letter-spacing: 2px;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(212, 168, 83, 0.3);
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 168, 83, 0.4);
}

.game-section {
  padding: 4rem 1.5rem;
  background: #241811;
}

.section-heading {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  text-align: center;
  color: var(--gold);
  margin-bottom: 2rem;
  position: relative;
}

.section-heading::after {
  content: '';
  display: block;
  width: 80px;
  height: 2px;
  background: var(--gold);
  margin: 1rem auto 0;
}

.game-frame {
  max-width: 1100px;
  margin: 0 auto;
  background: #0a0605;
  border: 3px solid var(--gold);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(212, 168, 83, 0.2);
}

.game-frame iframe {
  display: block;
  width: 100%;
  height: 620px;
  border: none;
}

.features-grid {
  padding: 4rem 1.5rem;
  background: var(--dark-brown);
}

.grid-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-box {
  background: linear-gradient(180deg, #2d1810 0%, #1a0f0a 100%);
  padding: 2rem;
  border: 1px solid rgba(212, 168, 83, 0.3);
  border-radius: 5px;
  text-align: center;
  transition: transform 0.3s, border-color 0.3s;
}

.feature-box:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
}

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

.feature-box h3 {
  font-family: 'Cinzel', serif;
  color: var(--gold);
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.feature-box p {
  color: var(--sand);
  font-size: 0.9rem;
  opacity: 0.85;
}

.about-area {
  padding: 4rem 1.5rem;
  background: #241811;
}

.about-container {
  max-width: 900px;
  margin: 0 auto;
}

.about-container p {
  color: var(--sand);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.highlight-list {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: rgba(212, 168, 83, 0.08);
  border-left: 3px solid var(--gold);
}

.highlight-item span {
  font-size: 1.3rem;
}

.highlight-item div h4 {
  font-family: 'Cinzel', serif;
  color: var(--gold);
  margin-bottom: 0.3rem;
}

.highlight-item div p {
  color: var(--sand);
  font-size: 0.9rem;
  margin: 0;
  text-align: left;
}

footer {
  background: #0f0806;
  padding: 3rem 1.5rem;
  border-top: 2px solid var(--gold);
  text-align: center;
}

footer p {
  color: var(--sand);
  opacity: 0.7;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.footer-links a {
  color: var(--gold);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s;
}

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

.copyright {
  color: var(--sand);
  opacity: 0.5;
  font-size: 0.8rem;
}

/* Age Modal */
.age-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 6, 5, 0.97);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.age-overlay.hidden {
  display: none;
}

.age-box {
  background: linear-gradient(180deg, #2d1810 0%, #1a0f0a 100%);
  padding: 3rem;
  border: 2px solid var(--gold);
  border-radius: 8px;
  text-align: center;
  max-width: 420px;
}

.age-box h2 {
  font-family: 'Cinzel', serif;
  color: var(--gold);
  margin-bottom: 1rem;
}

.age-box p {
  color: var(--sand);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.age-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.age-yes, .age-no {
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 3px;
  font-family: 'Cinzel', serif;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.age-yes {
  background: var(--gold);
  color: var(--dark-brown);
}

.age-no {
  background: transparent;
  border: 1px solid var(--sand);
  color: var(--sand);
}

.age-yes:hover, .age-no:hover {
  transform: scale(1.05);
}

.blocked-screen {
  text-align: center;
  padding: 4rem 1.5rem;
}

.blocked-screen h2 {
  font-family: 'Cinzel', serif;
  color: var(--burgundy);
}

/* Page styles */
.page-banner {
  padding: 7rem 1.5rem 3rem;
  background: linear-gradient(180deg, #2d1810 0%, var(--dark-brown) 100%);
  text-align: center;
  border-bottom: 2px solid var(--gold);
}

.page-banner h1 {
  font-family: 'Cinzel', serif;
  color: var(--gold);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.page-content {
  max-width: 850px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.page-content h2 {
  font-family: 'Cinzel', serif;
  color: var(--gold);
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.page-content p {
  color: var(--sand);
  margin-bottom: 1rem;
}

.page-content ul {
  color: var(--sand);
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

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

.play-area {
  padding: 2rem 1.5rem 4rem;
}

.play-note {
  max-width: 900px;
  margin: 0 auto 2rem;
  padding: 1.25rem;
  background: rgba(212, 168, 83, 0.1);
  border: 1px solid var(--gold);
  border-radius: 5px;
  color: var(--sand);
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .grid-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(26, 15, 10, 0.98);
    padding: 1.5rem;
    transform: translateX(-100%);
    transition: transform 0.3s;
  }

  nav.open {
    transform: translateX(0);
  }

  nav ul {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .game-frame iframe {
    height: 420px;
  }

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

  .notice-row {
    flex-direction: column;
    align-items: center;
  }

  .age-actions {
    flex-direction: column;
  }
}
