:root {
  --bg: #0e0d0c;
  --gold: #d4a64a;
  --gold-hi: #f0cf7a;
  --muted: #c2b8a2;
  --text: #ece4d2;
}

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

html, body { margin: 0; min-height: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Alegreya Sans", system-ui, sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: hidden;
}

/* Menu art, darkened toward the edges so the title and cards read. */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(14, 13, 12, 0.1) 0%, rgba(14, 13, 12, 0.75) 80%),
    linear-gradient(to bottom, rgba(14, 13, 12, 0.45), rgba(14, 13, 12, 0.05) 35%, rgba(14, 13, 12, 0.9)),
    url("../assets/background.webp") center 30% / cover no-repeat;
  animation: drift 40s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: scale(1.04) translateY(0); }
  to   { transform: scale(1.1) translateY(-1.5%); }
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6vh 16px 2rem;
}

/* Gold metal title, close to the in-game hero logo. */
.logo {
  margin: 0;
  font-family: "Cinzel", serif;
  font-weight: 800;
  font-size: clamp(3.5rem, 13vw, 8.5rem);
  line-height: 1;
  letter-spacing: 0.02em;
  background: linear-gradient(180deg, #fff3c4 0%, var(--gold-hi) 30%, var(--gold) 55%, #8a6420 80%, #c99a3e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.9)) drop-shadow(0 0 24px rgba(212, 166, 74, 0.35));
}

.subtitle {
  margin: 0.4rem 0 0;
  font-family: "Cinzel", serif;
  font-weight: 600;
  font-size: clamp(0.95rem, 2.6vw, 1.5rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}

/* The house divider: a thin gold line with a diamond in the middle. */
.rule {
  position: relative;
  width: min(360px, 70vw);
  height: 1px;
  margin: 1.6rem 0 2.4rem;
  background: linear-gradient(90deg, transparent, rgba(212, 166, 74, 0.7), transparent);
}
.rule span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 9px;
  border: 1px solid var(--gold);
  background: var(--bg);
  transform: translate(-50%, -50%) rotate(45deg);
}

/* A fanned hand of the four gods. */
.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
}
.cards li {
  --w: clamp(96px, 19vw, 200px);
  width: var(--w);
  margin: 0 calc(var(--w) * -0.12);
  transform-origin: 50% 120%;
  transition: transform 0.35s cubic-bezier(.2, .8, .2, 1), filter 0.35s;
}
.cards li:nth-child(1) { transform: rotate(-12deg) translateY(18px); }
.cards li:nth-child(2) { transform: rotate(-4deg); }
.cards li:nth-child(3) { transform: rotate(4deg); }
.cards li:nth-child(4) { transform: rotate(12deg) translateY(18px); }
.cards li:hover {
  transform: translateY(-22px) scale(1.06);
  z-index: 1;
  filter: drop-shadow(0 0 18px rgba(240, 207, 122, 0.45));
}
.cards img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.8), 0 14px 30px rgba(0, 0, 0, 0.7);
}

.status {
  margin: 3rem 0 0;
  font-family: "Cinzel", serif;
  font-weight: 600;
  font-size: clamp(1rem, 2.4vw, 1.3rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-hi);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}

.cta {
  display: inline-block;
  margin-top: 3rem;
  padding: 0.9rem 2.2rem;
  font-family: "Cinzel", serif;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: #1a1208;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold));
  border-radius: 4px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}
.cta:hover { filter: brightness(1.1); }

footer {
  padding: 1.5rem 16px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(194, 184, 162, 0.6);
}

@media (prefers-reduced-motion: reduce) {
  .bg { animation: none; }
  .cards li { transition: none; }
}

footer a { color: inherit; text-decoration: none; }
footer a:hover { color: var(--gold-hi); }
