@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,opsz,wght@0,6..96,400;0,6..96,700;0,6..96,900;1,6..96,400&family=Rajdhani:wght@300;400;500;600;700&display=swap');

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

:root {
  --crystal: #b44aff;
  --crystal-dim: #7a2abf;
  --ember: #ff4a6a;
  --gold: #ffd700;
  --bone: #e8dcc8;
  --void: #000000;
  --deep: #12111a;
  --shadow: #1a1925;
}

html,
body {
  height: 100%;
  overflow-x: hidden;
}

body {
  background: var(--void);
  color: var(--bone);
  font-family: 'Rajdhani', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  position: relative;
  padding-top: 56px;
  padding-bottom: 4rem;
}

/* --- Scanlines --- */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.08) 2px,
    rgba(0, 0, 0, 0.08) 4px
  );
  pointer-events: none;
  z-index: 11;
}

/* --- Flag bar --- */
.flag-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.15rem;
  padding: 0.4rem 1rem;
  z-index: 20;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.95) 0%,
    rgba(0, 0, 0, 0.85) 70%,
    transparent 100%
  );
}

.flag-btn {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem 0.4rem;
  border-radius: 2px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(232, 220, 200, 0.4);
  transition: all 0.2s ease;
}

.flag-btn:hover {
  color: var(--bone);
  border-color: rgba(180, 74, 255, 0.3);
  transform: scale(1.1);
}

.flag-btn.active {
  color: var(--crystal);
  border-color: var(--crystal);
  box-shadow: 0 0 8px rgba(180, 74, 255, 0.4);
}

/* --- Main content --- */
.content {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem;
  max-width: 900px;
  width: 100%;
  margin: auto 0;
}

/* --- Rune circle behind title --- */
.rune-circle {
  position: absolute;
  top: -40px;
  width: 340px;
  height: 340px;
  border: 1px solid rgba(180, 74, 255, 0.12);
  border-radius: 50%;
  animation: runeRotate 60s linear infinite;
  pointer-events: none;
}

.rune-circle::before {
  content: '';
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(180, 74, 255, 0.08);
  border-radius: 50%;
  animation: runeRotate 45s linear infinite reverse;
}

.rune-circle::after {
  content: '';
  position: absolute;
  inset: 45px;
  border: 1px dashed rgba(180, 74, 255, 0.06);
  border-radius: 50%;
  animation: runeRotate 30s linear infinite;
}

@keyframes runeRotate {
  to {
    transform: rotate(360deg);
  }
}

/* --- Title canvas --- */
#title-canvas {
  display: block;
  width: 100%;
  max-width: 860px;
  margin-bottom: 0.5rem;
}

/* --- Subtitle line --- */
.subtitle-line {
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--crystal), transparent);
  margin-bottom: 2rem;
  position: relative;
}

.subtitle-line::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: var(--crystal);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  box-shadow: 0 0 10px var(--crystal);
}

/* --- Description --- */
.description {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 300;
  line-height: 1.8;
  color: rgba(232, 220, 200, 0.75);
  max-width: 600px;
  margin-bottom: 3rem;
}

.description p {
  margin-bottom: 1rem;
}

.description p:last-child {
  margin-bottom: 0;
}

.description strong {
  color: var(--bone);
  font-weight: 600;
}

.description .crystal-text {
  color: var(--crystal);
  font-weight: 500;
}

.description .ember-text {
  color: var(--ember);
  font-weight: 500;
}

.description .tagline {
  font-size: clamp(1.05rem, 2.8vw, 1.35rem);
  color: var(--bone);
  font-weight: 400;
  margin-bottom: 1.5rem;
}

.section-header {
  font-family: 'Bodoni Moda', serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--crystal);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  text-align: center;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin-bottom: 1rem;
  text-align: left;
  display: inline-block;
}

.feature-list li {
  position: relative;
  padding-left: 1.4em;
  margin-bottom: 0.4rem;
  color: rgba(232, 220, 200, 0.75);
}

.feature-list li::before {
  content: '\25C6';
  position: absolute;
  left: 0;
  color: var(--crystal-dim);
  font-size: 0.65em;
  top: 0.35em;
}

.about-text {
  font-size: clamp(0.85rem, 2vw, 0.95rem);
  color: rgba(232, 220, 200, 0.5);
  line-height: 1.7;
}

/* --- Links --- */
.links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.link-btn {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 2rem;
  border: 1px solid rgba(180, 74, 255, 0.25);
  border-radius: 2px;
  background: rgba(180, 74, 255, 0.05);
  color: var(--bone);
  text-decoration: none;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.link-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(180, 74, 255, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.link-btn:hover {
  border-color: var(--crystal);
  box-shadow:
    0 0 25px rgba(180, 74, 255, 0.2),
    inset 0 0 25px rgba(180, 74, 255, 0.05);
  color: #fff;
  transform: translateY(-2px);
}

.link-btn:hover::before {
  opacity: 1;
}

.link-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.link-btn span {
  position: relative;
  z-index: 1;
}

/* Disabled / coming soon */
.link-btn.disabled {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
  border-color: rgba(232, 220, 200, 0.1);
  background: transparent;
}

.link-btn .coming-soon {
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  color: rgba(232, 220, 200, 0.4);
  position: relative;
  z-index: 1;
}

/* Discord */
.link-btn.discord:hover {
  border-color: #5865f2;
  box-shadow:
    0 0 25px rgba(88, 101, 242, 0.25),
    inset 0 0 25px rgba(88, 101, 242, 0.05);
}
.link-btn.discord svg {
  fill: #5865f2;
}

/* Steam */
.link-btn.steam:hover {
  border-color: #66c0f4;
  box-shadow:
    0 0 25px rgba(102, 192, 244, 0.25),
    inset 0 0 25px rgba(102, 192, 244, 0.05);
}
.link-btn.steam svg {
  fill: #66c0f4;
}

/* itch.io */
.link-btn.itch:hover {
  border-color: #fa5c5c;
  box-shadow:
    0 0 25px rgba(250, 92, 92, 0.25),
    inset 0 0 25px rgba(250, 92, 92, 0.05);
}
.link-btn.itch svg {
  fill: #fa5c5c;
}

/* Scoreboards */
.link-btn.scoreboards:hover {
  border-color: #ffd700;
  box-shadow:
    0 0 25px rgba(255, 215, 0, 0.25),
    inset 0 0 25px rgba(255, 215, 0, 0.05);
}
.link-btn.scoreboards svg {
  fill: #ffd700;
}

/* --- Mailing List --- */
.mailing-list {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  text-align: center;
}

.mailing-list-label {
  /* font-family: 'Bodoni Moda', serif; */
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--crystal);
  margin-bottom: 0.75rem;
}

.mailing-list-form {
  display: flex;
  gap: 0;
  justify-content: center;
  max-width: 400px;
  margin: 0 auto;
}

.mailing-list-form input[type='email'] {
  flex: 1;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(180, 74, 255, 0.25);
  border-right: none;
  border-radius: 2px 0 0 2px;
  background: rgba(180, 74, 255, 0.05);
  color: var(--bone);
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.3s ease;
}

.mailing-list-form input[type='email']::placeholder {
  color: rgba(232, 220, 200, 0.35);
}

.mailing-list-form input[type='email']:focus {
  border-color: var(--crystal);
}

.mailing-list-form button {
  padding: 0.7rem 1.5rem;
  border: 1px solid rgba(180, 74, 255, 0.25);
  border-radius: 0 2px 2px 0;
  background: rgba(180, 74, 255, 0.15);
  color: var(--bone);
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}

.mailing-list-form button:hover {
  background: rgba(180, 74, 255, 0.3);
  border-color: var(--crystal);
  color: #fff;
}

.mailing-list-form button:disabled {
  opacity: 0.5;
  cursor: default;
}

.mailing-list-msg {
  font-size: 0.8rem;
  margin-top: 0.5rem;
  min-height: 1.2em;
  letter-spacing: 0.05em;
}

.mailing-list-msg.success {
  color: var(--gold);
}

.mailing-list-msg.error {
  color: var(--ember);
}

/* --- Footer --- */
.footer {
  margin-top: 2rem;
  padding-bottom: 1.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(232, 220, 200, 0.2);
  z-index: 5;
}

/* --- Responsive --- */
@media (max-width: 600px) {
  body {
    padding-top: 60px;
  }
  .flag-bar {
    gap: 0.1rem;
    padding: 0.3rem 0.5rem;
  }
  .flag-btn {
    font-size: 0.6rem;
    padding: 0.15rem 0.3rem;
  }
  .links {
    flex-direction: column;
    align-items: center;
  }
  .link-btn {
    width: 240px;
    justify-content: center;
  }
  .rune-circle {
    width: 240px;
    height: 240px;
    top: -10px;
  }
}

/* --- Screen-reader only (visually hidden) --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Semantic header wrapper --- */
main > header {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
