@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700&family=Libre+Baskerville:wght@400;700&display=swap');

:root {
  --ink: #080a0e;
  --silver: #c8c9c5;
  --muted: #777b80;
  --line: rgba(200, 201, 197, 0.22);
  --glow: rgba(215, 220, 214, 0.13);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--ink);
}

body {
  min-height: 100vh;
  color: var(--silver);
  font-family: "Libre Baskerville", Georgia, serif;
  overflow: hidden;
}

.menu {
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 35%, rgba(80, 88, 95, .14), transparent 36%),
    linear-gradient(180deg, #0b0e13 0%, #07090d 70%, #050608 100%);
}

.menu::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 50% 78%, rgba(180, 184, 178, .07), transparent 38%),
    linear-gradient(90deg, transparent, rgba(255,255,255,.018), transparent);
  pointer-events: none;
}

.chapel {
  position: absolute;
  inset: auto 0 0;
  height: 42vh;
  z-index: -2;
  opacity: .24;
  background:
    linear-gradient(180deg, transparent, #020304 76%),
    polygon(50% 5%, 66% 38%, 82% 100%, 18% 100%, 34% 38%);
  clip-path: polygon(50% 0%, 64% 35%, 83% 100%, 17% 100%, 36% 35%);
  filter: blur(.2px);
}

.rain {
  position: absolute;
  inset: -20%;
  z-index: -1;
  opacity: .18;
  background-image:
    repeating-linear-gradient(102deg, transparent 0 42px, rgba(205,210,214,.12) 43px, transparent 44px 78px);
  animation: rain 1.7s linear infinite;
  pointer-events: none;
}

@keyframes rain {
  from { transform: translateY(-50px); }
  to { transform: translateY(80px); }
}

.title {
  text-align: center;
  animation: reveal 1.2s ease both;
}

.sigil {
  width: 42px;
  height: 42px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: #bfc4c0;
  font-size: 16px;
  box-shadow: 0 0 35px var(--glow);
}

h1 {
  margin: 0;
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(2.3rem, 7vw, 5.8rem);
  line-height: .95;
  letter-spacing: .11em;
  font-weight: 600;
  color: #d4d5d0;
  text-shadow: 0 0 28px rgba(220,220,215,.09);
}

.title p {
  margin: 18px 0 0;
  font-family: "Cinzel", Georgia, serif;
  font-size: .72rem;
  letter-spacing: .42em;
  color: #777c80;
}

.buttons {
  width: min(360px, 78vw);
  margin-top: 58px;
  display: grid;
  gap: 12px;
  animation: rise 1s .25s ease both;
}

.menu-btn {
  appearance: none;
  width: 100%;
  padding: 15px 20px;
  border: 1px solid var(--line);
  background: rgba(10, 12, 16, .62);
  color: #bfc1bd;
  font-family: "Cinzel", Georgia, serif;
  font-size: .76rem;
  letter-spacing: .22em;
  cursor: pointer;
  transition: .2s ease;
  backdrop-filter: blur(5px);
}

.menu-btn:hover:not(:disabled),
.menu-btn:focus-visible {
  color: #f0f0eb;
  border-color: rgba(220,220,215,.55);
  background: rgba(210,210,205,.07);
  transform: translateY(-1px);
}

.menu-btn.primary {
  border-color: rgba(205, 209, 204, .38);
}

.menu-btn.small {
  width: 72%;
  justify-self: center;
  margin-top: 8px;
  color: #777b80;
}

.menu-btn:disabled {
  opacity: .28;
  cursor: not-allowed;
}

.coin {
  position: absolute;
  right: 6vw;
  bottom: 8vh;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(190,193,188,.25);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #afb1ac, #555a5b 58%, #24272a);
  color: #17191b;
  cursor: pointer;
  box-shadow: 0 0 25px rgba(190,195,190,.08);
  animation: coinFloat 4s ease-in-out infinite;
}

.coin span {
  font-size: 19px;
}

.coin:hover,
.coin:focus-visible {
  box-shadow: 0 0 30px rgba(220,225,220,.18);
}

@keyframes coinFloat {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-8px) rotate(4deg); }
}

.whisper {
  position: absolute;
  right: 6vw;
  bottom: 5vh;
  margin: 0;
  max-width: 220px;
  color: #5e6367;
  font-size: .65rem;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(5px);
  transition: .25s ease;
  pointer-events: none;
}

.whisper.show {
  opacity: 1;
  transform: translateY(0);
}

.version {
  position: absolute;
  left: 24px;
  bottom: 20px;
  color: #3f4347;
  font-family: "Cinzel", Georgia, serif;
  font-size: .58rem;
  letter-spacing: .16em;
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
  .menu { padding: 24px; }
  .title p { letter-spacing: .25em; }
  .buttons { margin-top: 48px; width: min(330px, 86vw); }
  .coin { right: 22px; bottom: 58px; }
  .whisper { right: 22px; bottom: 26px; text-align: right; }
  .version { left: 18px; bottom: 20px; }
}
