@import url("https://fonts.googleapis.com/css2?family=ZCOOL+XiaoWei&family=Outfit:wght@300;400;600;700&display=swap");

:root {
  --bg-color: #f4e0d5;
  --surface-accent: #fdf0e9;
  --primary-mystic: #9b2226;
  --secondary-mystic: #ae2012;
  --deep-mauve: #590d22;
  --text-color: #331010;
  --text-muted: #6b4e4e;
  --gold: #bb9457;
  --transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --asian-font: "ZCOOL XiaoWei", serif;
  --main-font: "Outfit", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--main-font);
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.8;
  overflow-x: hidden;
}

.temple-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
}

/* Header */
header {
  padding: 3rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.nav-temple {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-temple a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  font-family: var(--main-font);
}

.nav-temple a:hover {
  color: var(--primary-mystic);
}

.lang-switcher {
  display: flex;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold);
}

.lang-switcher a {
  color: inherit;
  text-decoration: none;
  opacity: 0.5;
  transition: var(--transition);
}

.lang-switcher a.active {
  opacity: 1;
  border-bottom: 2px solid var(--gold);
}

.lang-switcher a:hover {
  opacity: 1;
}

.dragon-logo {
  width: 60px;
  height: 60px;
  margin-bottom: 1rem;
  filter: drop-shadow(0 4px 8px rgba(155, 34, 38, 0.2));
}

.temple-title {
  font-family: var(--asian-font);
  font-size: 2.8rem;
  color: var(--primary-mystic);
  letter-spacing: 1px;
}

/* Hero Section */
.hero-mystic {
  padding: 3rem 0;
  text-align: center;
  position: relative;
}

.dragon-mascot {
  width: 280px;
  height: auto;
  border-radius: 50%;
  border: 8px solid var(--surface-accent);
  box-shadow: 0 20px 40px rgba(89, 13, 34, 0.15);
  margin-bottom: 3rem;
  animation: float 6s ease-in-out infinite;
}

.hero-mystic h1 {
  font-family: var(--asian-font);
  font-size: 4rem;
  color: var(--deep-mauve);
  margin-bottom: 1.5rem;
  text-shadow: 1px 1px 0px white;
}

.hero-mystic p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 3rem;
  font-style: italic;
}

/* CTA */
.temple-cta {
  display: inline-block;
  background-color: var(--primary-mystic);
  color: white;
  padding: 1.2rem 3rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  border: 2px solid var(--gold);
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.temple-cta:hover {
  background-color: var(--deep-mauve);
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(155, 34, 38, 0.3);
}

/* Screenshots Gallery */
.scroll-gallery {
  padding: 6rem 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  padding-bottom: 2rem;
}

.scroll-gallery::-webkit-scrollbar {
  display: none;
}

.app-screenshot {
  flex: 0 0 auto;
  width: 250px;
  border-radius: 24px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  border: 5px solid white;
  transition: var(--transition);
}

.app-screenshot:hover {
  transform: translateY(-15px) rotate(2deg);
}

/* Roleplay Cards */
.manifesto {
  background: var(--surface-accent);
  padding: 4rem;
  border-radius: 20px;
  border: 1px solid var(--gold);
  margin-bottom: 6rem;
  text-align: center;
}

.manifesto h3 {
  font-family: var(--asian-font);
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--primary-mystic);
}

/* Footer */
footer {
  padding: 4rem 0;
  text-align: center;
  border-top: 1px solid var(--gold);
}

footer p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* 404 */
.error-mystic {
  height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.error-mystic h2 {
  font-family: var(--asian-font);
  font-size: 8rem;
  color: var(--primary-mystic);
}
