@font-face {
  font-family: "CormorantGaramondLocal";
  src:
    url("../../../assets/fonts/CormorantGaramond-VariableFont_wght.ttf") format("truetype-variations"),
    url("../../../assets/fonts/CormorantGaramond-VariableFont_wght.ttf") format("truetype");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IMFellEnglishLocal";
  src: url("../../../assets/fonts/IMFellEnglish-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #070b10;
  --text: #ece9df;
  --teal: #84bcb4;
  --line: rgba(132, 188, 180, 0.32);
  --font-title: "CormorantGaramondLocal", "Palatino Linotype", "Book Antiqua", serif;
  --font-body: "IMFellEnglishLocal", Georgia, "Times New Roman", serif;
  --font-ui: "IMFellEnglishLocal", Georgia, "Times New Roman", serif;
  --footer-dynamic: 52px;
}

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

html {
  font-size: 17px;
  scroll-behavior: smooth;
  background: #05080c;
  overflow-x: hidden;
  overflow-y: hidden;
  height: 100%;
}

body {
  margin: 0;
  background: linear-gradient(180deg, var(--bg) 0%, #05080c 100%);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
  overflow-y: hidden;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  height: 100%;
  position: relative;
  isolation: isolate;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

body::before {
  background:
    radial-gradient(120% 95% at 50% 60%, rgba(8, 16, 22, 0.06) 0%, rgba(4, 9, 14, 0.5) 100%),
    linear-gradient(180deg, rgba(5, 10, 14, 0.32) 0%, rgba(5, 10, 14, 0.6) 100%),
    url("../../Screenshots/screenshot_for_background.png") center center / cover no-repeat;
  filter: saturate(0.9) brightness(0.88) contrast(0.98);
}

body::after {
  background:
    linear-gradient(180deg, rgba(4, 8, 12, 0.1) 0%, rgba(4, 8, 12, 0.24) 70%, rgba(4, 8, 12, 0.45) 100%);
}

img,
video,
canvas,
svg {
  max-width: 100%;
  display: block;
  height: auto;
}

a { color: var(--teal); }
a:hover { color: #a7ddd5; }

.skip-link {
  position: absolute;
  left: 0;
  top: 0;
  transform: translateY(-120%);
  background: #000;
  color: #fff;
  padding: 0.5rem 0.75rem;
  z-index: 999;
}

.skip-link:focus {
  transform: translateY(0);
  left: calc(0.5rem + env(safe-area-inset-left));
  top: calc(0.5rem + env(safe-area-inset-top));
}

main {
  width: 100%;
  height: 100dvh;
  overflow: hidden;
  padding-bottom: calc(var(--footer-dynamic) + env(safe-area-inset-bottom));
}

.hero-deck-section,
.hero-deck-pin,
.deck-wrap {
  width: 100%;
  height: 100%;
  min-height: 100%;
}

.hero-deck-pin,
.deck-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-deck-pin {
  padding: 0.14rem 0;
}

.deck-stage {
  position: relative;
  width: calc(100vw - 0.3rem);
  max-width: calc(100vw - 0.3rem);
  height: calc(100dvh - var(--footer-dynamic) - env(safe-area-inset-bottom) - 0.3rem);
  max-height: calc(100dvh - var(--footer-dynamic) - env(safe-area-inset-bottom) - 0.3rem);
  border-radius: 16px;
  isolation: isolate;
  overflow: hidden;
}

.deck-card {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(142, 203, 193, 0.28);
  background: #0a1116;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.55);
  will-change: transform;
  transform-origin: center center;
}

.deck-card::before,
.deck-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.deck-card::before {
  background:
    linear-gradient(180deg, rgba(4, 8, 12, 0.12) 0%, rgba(4, 7, 10, 0.76) 100%),
    radial-gradient(95% 90% at 50% 42%, rgba(100, 168, 160, 0.14), transparent 62%),
    radial-gradient(130% 120% at 50% 56%, transparent 58%, rgba(1, 3, 6, 0.75) 100%);
}

.deck-card::after {
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.028) 0,
    rgba(255, 255, 255, 0.028) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: soft-light;
  opacity: 0.42;
}

.card-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.14) contrast(1.1) brightness(0.89);
}

.card-copy {
  position: absolute;
  left: clamp(0.9rem, 3.2vw, 2.4rem);
  right: clamp(0.8rem, 2.2vw, 2rem);
  top: clamp(0.8rem, 2.6vw, 1.9rem);
  z-index: 3;
  max-width: min(820px, 92%);
}

.card-hero {
  margin: 0;
  font-family: var(--font-title);
  font-size: clamp(1.4rem, 4.7vw, 4.2rem);
  line-height: 1.02;
  color: #f0f8f6;
  text-shadow: 0 9px 28px rgba(0, 0, 0, 0.58);
}

.card-sub {
  margin: 0.4rem 0 0;
  font-size: clamp(0.88rem, 2.1vw, 1.26rem);
  line-height: 1.3;
  color: rgba(232, 242, 239, 0.86);
}

.intro-card .card-image {
  filter: blur(0.3px) saturate(1.12) contrast(1.08) brightness(0.82);
  transform: scale(1.05);
}

.intro-content {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(0.7rem, 2.2vw, 1.2rem);
  padding: 0.9rem;
}

.intro-logo {
  width: min(76vw, 520px);
  max-width: 80%;
  max-height: 50%;
  object-fit: contain;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.45));
}

.intro-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.intro-btn {
  border: 1px solid rgba(132, 188, 180, 0.45);
  border-radius: 999px;
  background: rgba(8, 12, 16, 0.72);
  color: #e6f5f1;
  text-decoration: none;
  font-family: var(--font-ui);
  font-size: clamp(0.76rem, 2.4vw, 0.98rem);
  letter-spacing: 0.04em;
  padding: 0.44rem 0.88rem;
}

.logo-card {
  background: #000;
}

.logo-card::before,
.logo-card::after {
  display: none;
}

.logo-mark {
  position: absolute;
  left: 50%;
  top: 45%;
  transform: translate(-50%, -50%);
  width: min(44%, 360px);
  max-height: 42%;
  object-fit: contain;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.45));
  z-index: 1;
}

.logo-copy {
  left: 0;
  right: 0;
  bottom: clamp(1rem, 3vw, 2rem);
  max-width: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: clamp(2.6rem, 5vw, 3.6rem);
}

.logo-discord-btn {
  position: absolute;
  left: 50%;
  bottom: clamp(0.9rem, 2.6vw, 1.5rem);
  transform: translateX(-50%);
  margin-top: 0;
  white-space: nowrap;
}

.site-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  min-height: 42px;
  padding-bottom: env(safe-area-inset-bottom);
  display: flex;
  align-items: center;
}

.footer-inner {
  width: min(1100px, 96vw);
  margin-inline: auto;
  font-family: "IMFellEnglishLocal", Georgia, "Times New Roman", serif;
  text-align: center;
  color: rgba(230, 237, 233, 0.92);
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.5);
}

.footer-inner p {
  margin: 0;
  line-height: 1;
  font-size: clamp(0.56rem, 1.2vw, 0.68rem);
}

.footer-inner p + p {
  margin-top: 0.08rem;
  color: rgba(197, 213, 208, 0.94);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

:focus-visible {
  outline: 2px solid #b3f1e7;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (min-width: 1024px) {
  .deck-card:not(.logo-card) .card-image {
    object-fit: contain;
    object-position: center center;
    background: #05080c;
  }
}
