html {
  scroll-behavior: smooth;
}

:root {
  --red-glow: #8e0000;
  --white-glow: #e0e0e0;
  --silver: #c0c0c0;
  --black-bg: #0b0b0b;
  --black-bg-s: rgb(22, 22, 22);
  --card-bg: rgba(18, 18, 18, 0.9);
}

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

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: url('/images/grain.png') repeat;
  opacity: 0.15;
  /* Adjust for strength */
  pointer-events: none;
  z-index: 1;
}

body {
  font-family: 'Segoe UI', Tahoma, sans-serif;
  background-size: cover;
  color: var(--silver);
  background-color: var(--black-bg-s);
  scroll-behavior: smooth;
}

header {
  position: sticky;
  top: 0;
  background: rgba(0, 0, 0, 0.85);
  border-bottom: 2px solid var(--red-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  padding: 20px 40px;
  z-index: 10;
  height: 100px;

}

.nav-left,
.nav-right {
  display: flex;
  gap: 50px;
}

.logo-center {
  margin-top: 50px;
  height: 190px;
  flex-shrink: 0;
}

nav a {
  color: var(--silver);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.3s;
}

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

@media (max-width: 768px) {
  header {
    flex-direction: column;
  }

  .nav-left,
  .nav-right {
    justify-content: center;
    margin-top: 10px;
  }
}


.background-section {
  background: url('/images/bg.png') center center no-repeat;
  background-size: cover;
  position: relative;
  clip-path: ellipse(100% 100% at 50% 0%);
  padding-bottom: 120px;
  padding-top: 40px;
  z-index: 1;
}

.background-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: url('/images/gem-border.png') center bottom no-repeat;
  background-size: cover;
  z-index: 2;
}


@media (max-width: 768px) {
  .background-section {
    clip-path: ellipse(140% 100% at 50% 0%);
  }
}

.button-section {
  display: flex;
  gap: 30px;
  align-self: center;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero h1 {
  font-size: 4em;
  margin-bottom: 20px;
  color: white;
  text-shadow: 0 0 20px var(--red-glow);
  text-align: center;
}

.hero p {
  font-size: 1.3em;
  margin-bottom: 40px;
  text-align: center;
  text-shadow: 0 0 20px var(--red-glow);
}

.cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: linear-gradient(180deg, var(--red-glow), #500);
  color: white;
  font-weight: 700;
  border-radius: 6px;
  text-decoration: none;
  margin-top: 20px;
  margin-left: 10px;
  transition: transform 0.3s, box-shadow 0.5s;
}

.cta-button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px var(--white-glow);
}

container {
  padding: 0;
}

section {
  padding: 50px 40px;
}

section h2 {
  color: white;
  margin-bottom: 20px;
  text-shadow: 0 0 10px var(--red-glow);
}

ul {
  list-style: none;
  padding-left: 0;
}

ul li {
  margin-bottom: 15px;
  font-size: 1.1em;
  position: relative;
}

ul li::before {
  content: '■';
  color: var(--red-glow);
  display: inline-block;
  width: 20px;
  margin-left: -20px;
}

footer {
  position: relative;
  background: var(--black-bg);
  text-align: center;
  padding: 30px 20px;
  border-top: 2px solid var(--red-glow);
  color: #666;
}

footer .tos-link {
  position: absolute;
  right: 20px;
  bottom: 20px;
  color: var(--silver);
  text-decoration: none;
  font-size: 0.9em;
  transition: color 0.3s;
}

footer .tos-link:hover {
  color: var(--red-glow);
}

.action-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 10px auto 60px auto;

  flex-wrap: wrap;
}

.action-card {
  background: linear-gradient(to bottom, rgb(12, 12, 12), #111);
  border: 1px solid var(--red-glow);
  padding: 30px 20px;
  width: 280px;
  text-align: center;
  border-radius: 10px;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.1);
}

.action-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 30px rgba(255, 0, 0, 0.4);
}

.action-card img {
  width: 60px;
  margin-bottom: 15px;
  filter: drop-shadow(0 0 3px #000);
}

.action-card h3 {
  color: white;
  font-size: 1.2em;
  margin-bottom: 10px;
  text-shadow: 0 0 5px var(--red-glow);
}

.action-card p {
  color: #aaa;
  font-size: 0.95em;
}

/* -------------------------------------------------------------
   Additional styles to recreate the layout of the reference site
   These classes provide custom styling for the hero, download options,
   introduction, gameplay features, Discord invite and guide sections.
-------------------------------------------------------------- */

/* Typography for the hero tagline and headline */
.hero-tagline {
  font-family: 'Cinzel Decorative', serif;
  font-size: 2.2em;
  letter-spacing: 2px;
  color: var(--silver);
  margin-bottom: 10px;
  text-transform: uppercase;
  text-shadow: 0 0 15px var(--red-glow);
}

.hero-headline {
  font-family: 'Cinzel Decorative', serif;
  font-size: 3.2em;
  font-weight: 700;
  color: white;
  text-shadow: 0 0 25px var(--red-glow);
  margin-bottom: 30px;
  text-transform: uppercase;
}

/* Download options section */
.download-options {
  margin: 20px auto 0 auto;
  padding: 60px 20px;
  text-align: center;
}

.download-options h2 {
  font-size: 2.5em;
  color: white;
  margin-bottom: 10px;
  text-shadow: 0 0 15px var(--red-glow);
}

.download-subtitle {
  margin-bottom: 40px;
  color: var(--silver);
  font-size: 1.1em;
}

.download-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;

  margin: 0 auto;
}

.download-card {
  background: linear-gradient(to bottom, rgb(12, 12, 12), #111);
  border: 1px solid var(--red-glow);
  border-radius: 10px;
  padding: 30px 20px;
  width: 280px;
  text-align: center;
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.download-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 30px rgba(255, 0, 0, 0.4);
}

.download-card h3 {
  color: white;
  margin-bottom: 10px;
  font-size: 1.4em;
  text-shadow: 0 0 10px var(--red-glow);
}

.download-tag {
  color: var(--silver);
  font-size: 0.95em;
  margin-bottom: 20px;
}

.download-button {
  display: inline-block;
  padding: 15px 40px;
  background: linear-gradient(180deg, var(--red-glow), #500);
  color: white;
  font-weight: 700;
  border-radius: 6px;
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.5s;
}

.download-button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px var(--white-glow);
}

.file-info {
  display: block;
  margin-top: 10px;
  font-size: 0.8em;
  color: var(--silver);
}

/* Introduction section */
.introduction {
  background: var(--black-bg);
  border-top: 2px solid var(--red-glow);
  padding: 40px 30px;
}

.intro-text-container {
  margin-left: 100px;
  max-width: 900px;
}

.introduction h2 {
  font-size: 2.2em;
  margin-bottom: 20px;
  color: white;
  text-shadow: 0 0 15px var(--red-glow);
}

.introduction p {
  font-size: 1.1em;
  color: var(--silver);
  margin-bottom: 20px;
  line-height: 1.6;
}

/* Gameplay features */
.gameplay-features {
  border-top: 2px solid var(--red-glow);
  padding: 40px 20px;
  text-align: center;
}

.features-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 100px;
  text-align: center;
}


.gameplay-features h2 {
  font-size: 2.4em;
  margin-bottom: 30px;
  color: white;
  text-shadow: 0 0 15px var(--red-glow);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 800px;
  margin: 0 auto;
}


.feature-card {
  background: linear-gradient(to bottom, rgb(12, 12, 12), #111);
  border: 1px solid var(--red-glow);
  border-radius: 10px;
  padding: 25px 20px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.1);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 30px rgba(255, 0, 0, 0.4);
}

.feature-card h3 {
  color: white;
  margin-bottom: 10px;
  font-size: 1.3em;
  text-shadow: 0 0 10px var(--red-glow);
}

.feature-card p {
  color: var(--silver);
  font-size: 0.95em;
  line-height: 1.4;
}

/* Discord section */
.discord-section {
  display: flex;
  flex-direction: row;
  justify-content: center;
  /* Horizontal center */
  align-items: center;
  /* Vertical center */
  gap: 60px;
  background: #121b3f;
  padding: 60px 20px;
  text-align: center;
  color: white;
  border-top: 2px solid var(--red-glow);
  border-bottom: 2px solid var(--red-glow);
}


.discord-section h2 {
  font-size: 2.4em;
  margin-bottom: 20px;
  text-shadow: 0 0 15px var(--red-glow);
}

.discord-section p {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: var(--silver);
}

.discord-widget {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.discord-widget iframe {
  width: 100%;
  max-width: 350px;
  height: 400px;
  border: none;
}

/* Guide section */
.guide-section {
  background: var(--black-bg);
  padding: 60px 20px;
  text-align: center;
  color: white;
  border-bottom: 2px solid var(--red-glow);
}

.guide-section h2 {
  font-size: 2.4em;
  margin-bottom: 20px;
  text-shadow: 0 0 15px var(--red-glow);
}

.guide-section p {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: var(--silver);
}

.guide-video-container {
  position: relative;
  width: 100%;
  max-width: 700px;
  aspect-ratio: 16 / 9;
  margin: 0 auto 30px auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.2);
}


.guide-video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.guide-button {
  display: inline-block;
  padding: 15px 40px;
  background: linear-gradient(180deg, var(--red-glow), #500);
  color: white;
  font-weight: 700;
  border-radius: 6px;
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.5s;
}

.guide-button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px var(--white-glow);
}

.features-slideshow {
  margin-left: 50px;
  position: relative;
  width: 700px;
  height: 440px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--red-glow);
}

.slideshow-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slideshow-img.active {
  opacity: 1;
  z-index: 2;
}

.store-section {
  padding: 40px 20px;
  text-align: center;
}

.store-iframe-wrapper {
  max-width: 1100px;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.store-iframe-wrapper iframe {
  width: 100%;
  height: 1400px;
  /* or however tall your store page is */
  border: none;
  display: block;
}

.discord-button {
  display: inline-block;
  padding: 15px 40px;
  background: linear-gradient(180deg, #5865F2, #3a45c5);
  color: white;
  font-weight: 700;
  border-radius: 6px;
  text-decoration: none;
  margin-top: 20px;
  margin-left: 10px;
  transition: transform 0.3s, box-shadow 0.5s;
}

.discord-button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(88, 101, 242, 0.7);
}