@import url('tokens/fonts.css');
@import url('tokens/colors.css');

/* ==========================================================================
   InitiumMU — Coming Soon
   Full-viewport immersive layout. Game login screen aesthetic.
   ========================================================================== */

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

html {
  min-height: 100%;
  background: #080705;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--mu-parchment);
  font: 13px/1.6 var(--font-body, Tahoma, Geneva, sans-serif);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
button { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible {
  outline: 2px solid var(--mu-game-gold);
  outline-offset: 3px;
}

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── Language toggle ────────────────────────────────────────────────────── */

.lang {
  position: fixed;
  top: 16px;
  right: 20px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
  font: 700 11px/1 var(--font-label, Tahoma, Geneva, sans-serif);
  letter-spacing: .06em;
}

.lang__btn {
  border: 0;
  background: none;
  padding: 6px 4px;
  color: rgba(169, 154, 123, 0.6);
  font: inherit;
  cursor: pointer;
  text-shadow: 0 1px 3px rgba(0,0,0,.9);
  transition: color .15s ease;
}

.lang__btn[aria-pressed='true'] { color: var(--mu-game-gold); }
.lang__btn:hover { color: var(--mu-parchment); }
.lang__sep { color: rgba(90, 66, 39, 0.5); user-select: none; }

/* ── Hero: full viewport with character art ─────────────────────────────── */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;

  background:
    /* top: subtle warm vignette */
    radial-gradient(ellipse 120% 60% at 50% 20%, rgba(201, 171, 108, 0.06) 0%, transparent 70%),
    /* centre spotlight to make the logo pop */
    radial-gradient(ellipse 80% 50% at 50% 45%, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.65) 100%),
    /* the art — let it breathe */
    url('assets/art/hero-season5-login.png') center center / cover no-repeat;
  background-color: #080705;
}

/* Dark edges so text reads well, but don't bury the art */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(8,7,5,0.35) 0%, transparent 30%, transparent 60%, rgba(8,7,5,0.92) 100%),
    linear-gradient(to right, rgba(8,7,5,0.4) 0%, transparent 25%, transparent 75%, rgba(8,7,5,0.4) 100%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 24px;
  /* push it slightly above true-center so it sits over the negative space between characters */
  margin-bottom: 6vh;
}

.hero__logo {
  display: block;
  margin: 0 auto;
  width: min(90vw, 480px);
  height: auto;
  filter:
    drop-shadow(0 4px 24px rgba(0,0,0,0.9))
    drop-shadow(0 0 80px rgba(185,152,89,0.15));
}

.hero__tagline {
  margin: 20px 0 0;
  font: 700 12px/1 var(--font-label, Tahoma, Geneva, sans-serif);
  letter-spacing: .22em;
  color: var(--mu-gold-300);
  text-shadow: 0 1px 6px rgba(0,0,0,.9), 0 0 20px rgba(0,0,0,.7);
  text-transform: uppercase;
}

.hero__edition {
  margin: 10px 0 0;
  font: 700 10px/1 var(--font-label, Tahoma, Geneva, sans-serif);
  letter-spacing: .3em;
  color: var(--mu-parchment-dim);
  text-shadow: 0 1px 4px rgba(0,0,0,.9);
  text-transform: uppercase;
}

/* ── Announce section ────────────────────────────────────────────────────── */

.announce {
  position: relative;
  background:
    /* subtle stone texture through a dark tint */
    linear-gradient(180deg, #080705 0%, #0e0c09 40px, #0e0c09 100%),
    url('assets/art/deep_wall04.jpg') center / 400px auto;
  padding: 0 24px;
}

.announce__inner {
  max-width: 560px;
  margin: 0 auto;
  padding: 48px 0 40px;
  text-align: center;
}

.announce__rule {
  width: 100%;
  max-width: 320px;
  height: 2px;
  margin: 0 auto;
  background: url('assets/ui/newui_separate_Line.jpg') center / 100% 2px no-repeat;
  opacity: 0.7;
}

.announce__title {
  margin: 32px 0 0;
  font: 700 22px/1.3 var(--font-display, Tahoma, Geneva, sans-serif);
  color: var(--mu-gold-100);
  text-shadow: 0 1px 0 #000;
  text-wrap: balance;
}

.announce__body {
  margin: 10px 0 0;
  color: var(--mu-parchment);
  line-height: 1.65;
}

/* Feature pillars — simple inline list, not a grid */
.pillars {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pillars__item {
  font: 400 12px/1.5 var(--font-body, Tahoma, Geneva, sans-serif);
  color: var(--mu-parchment-dim);
  letter-spacing: .01em;
}

.pillars__item::before {
  content: '·';
  margin-right: 8px;
  color: var(--mu-gold-500);
  font-weight: 700;
}

/* ── Discord CTA ─────────────────────────────────────────────────────────── */

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
  padding: 0 32px;
  height: 48px;
  min-width: 240px;

  background: linear-gradient(180deg, #8d242d 0%, #6b1a21 50%, #481116 100%);
  border: 1px solid var(--mu-crimson-300);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.18),
    inset 0 -2px 0 rgba(0,0,0,.45),
    0 4px 0 #1e0609,
    0 8px 24px rgba(0,0,0,.7),
    0 0 16px rgba(138,36,44,.2);

  color: #fff4d9;
  font: 700 12px/1 var(--font-label, Tahoma, Geneva, sans-serif);
  letter-spacing: .12em;
  text-transform: uppercase;
  text-shadow: 0 1px 0 #000, 0 0 6px rgba(0,0,0,.7);
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  transition: all .15s ease;
}

.cta:hover {
  background: linear-gradient(180deg, #a52d37 0%, #7d1f27 50%, #54141a 100%);
  border-color: #e27278;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.3),
    inset 0 -2px 0 rgba(0,0,0,.45),
    0 4px 0 #1e0609,
    0 12px 28px rgba(0,0,0,.8),
    0 0 20px rgba(184,65,74,.45);
}

.cta:active {
  transform: translateY(2px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.12),
    inset 0 -1px 0 rgba(0,0,0,.5),
    0 2px 0 #1e0609;
}

.cta__icon { flex: none; }

.announce__hint {
  margin: 14px 0 28px;
  font: 400 11px/1.4 var(--font-label, Tahoma, Geneva, sans-serif);
  color: var(--mu-parchment-mute);
}

/* ── Footer ──────────────────────────────────────────────────────────────── */

.foot {
  padding: 20px 24px 28px;
  text-align: center;
  font: 11px/1.65 var(--font-label, Tahoma, Geneva, sans-serif);
  color: var(--mu-parchment-mute);
  background: #080705;
}

.foot__line {
  margin: 0 0 4px;
}

.foot__line b {
  color: var(--mu-parchment-dim);
}

.foot__legal {
  font-size: 10px;
  color: rgba(125, 114, 96, 0.7);
}

.foot__legal a {
  color: var(--mu-gold-400);
  text-decoration: none;
}

.foot__legal a:hover {
  color: var(--mu-game-prompt);
  text-decoration: underline;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 640px) {
  .hero__logo {
    width: min(85vw, 320px);
  }
  .hero__tagline {
    font-size: 10px;
    letter-spacing: .14em;
  }
  .hero__edition {
    font-size: 9px;
  }
  .announce__title {
    font-size: 19px;
  }
  .cta {
    width: 100%;
    max-width: 280px;
    min-width: 0;
  }
}

@media (max-height: 600px) {
  .hero {
    min-height: 480px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cta, .lang__btn { transition: none; }
}
