:root {
  color-scheme: dark;
  --ink: #f3ebd1;
  --ink-muted: #c9c0a5;
  --forest: #0b2919;
  --forest-deep: #050d08;
  --leaf: #70a83b;
  --gold: #d8a542;
  --gold-bright: #ffd778;
  --rust: #a64a28;
  --mx: 0;
  --my: 0;
  --page-pad: clamp(24px, 3.2vw, 64px);
  font-family: Inter, "Arial Narrow", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--forest-deep);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background: var(--forest-deep);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.site-shell {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: 100%;
  min-height: 100svh;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: #08130c;
}

.site-shell::after {
  content: "";
  position: absolute;
  inset: 14px;
  z-index: 20;
  border: 1px solid rgba(255, 215, 120, 0.26);
  clip-path: polygon(0 0, 92% 0, 100% 9%, 100% 100%, 7% 100%, 0 91%);
  pointer-events: none;
}

.world,
.world > * {
  position: absolute;
  inset: 0;
}

.world {
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.world__image {
  inset: -3.5%;
  background: url("assets/forest-background.jpg") center center / cover no-repeat;
  transform: translate3d(calc(var(--mx) * -10px), calc(var(--my) * -7px), 0) scale(1.06);
  animation: forest-breathe 18s ease-in-out infinite alternate;
  will-change: transform;
}

.world__shade {
  background:
    radial-gradient(circle at 72% 44%, transparent 0 15%, rgba(6, 14, 9, 0.16) 41%, transparent 55%),
    linear-gradient(90deg, rgba(3, 10, 6, 0.96) 0%, rgba(4, 13, 8, 0.78) 31%, rgba(6, 14, 9, 0.14) 66%, rgba(3, 8, 5, 0.44) 100%),
    linear-gradient(180deg, rgba(4, 11, 7, 0.34), transparent 33%, rgba(3, 8, 5, 0.72));
}

.world__grain {
  z-index: 8;
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.88' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.56'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.world__mist {
  width: 72%;
  height: 24%;
  top: auto;
  bottom: 8%;
  filter: blur(28px);
  background: radial-gradient(ellipse, rgba(205, 216, 178, 0.14), transparent 70%);
  animation: mist-drift 16s ease-in-out infinite alternate;
}

.world__mist--two {
  left: 38%;
  bottom: 27%;
  width: 55%;
  opacity: 0.46;
  animation-duration: 22s;
  animation-direction: alternate-reverse;
}

.particles {
  z-index: 9;
  overflow: hidden;
}

.particle {
  position: absolute;
  top: -4vh;
  left: var(--x);
  width: var(--size);
  height: calc(var(--size) * 0.55);
  border-radius: 90% 10% 90% 10%;
  background: linear-gradient(135deg, #d4a942, #5e7d23);
  box-shadow: 0 0 10px rgba(255, 196, 83, 0.34);
  opacity: 0;
  animation: leaf-fall var(--duration) var(--delay) linear infinite;
}

.topbar {
  position: relative;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(20px, 2.5vh, 34px) var(--page-pad) 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand__crest {
  position: relative;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 215, 120, 0.66);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(12, 41, 25, 0.62), 0 0 28px rgba(216, 165, 66, 0.2);
  overflow: hidden;
}

.brand__crest img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  line-height: 1;
}

.brand small {
  margin-top: 6px;
  color: var(--gold-bright);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-link,
.ca-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid rgba(243, 235, 209, 0.24);
  background: rgba(5, 15, 9, 0.66);
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  backdrop-filter: blur(12px);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.social-link {
  gap: 8px;
  padding: 0 18px;
}

.social-link__icon {
  font-size: 1rem;
  line-height: 1;
}

.social-link__icon--pump {
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 0.7rem;
}

.social-link:hover,
.social-link:focus-visible {
  border-color: var(--gold-bright);
  background: var(--gold-bright);
  color: #102116;
  transform: translateY(-2px);
  outline: none;
}

.ca-button {
  isolation: isolate;
  gap: 12px;
  min-width: 162px;
  padding: 0 19px;
  border-color: var(--gold);
  color: #172013;
  background: linear-gradient(135deg, var(--gold-bright), #b87922);
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
  cursor: pointer;
  overflow: hidden;
}

.ca-button__shine {
  position: absolute;
  inset: -30% auto -30% -55%;
  z-index: -1;
  width: 36%;
  background: rgba(255, 255, 255, 0.42);
  transform: skewX(-24deg);
  animation: button-shine 4.8s ease-in-out infinite;
}

.ca-button svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.ca-button:hover,
.ca-button:focus-visible {
  transform: translateY(-2px) rotate(-1deg);
  filter: brightness(1.08);
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 3px;
}

.ca-button.is-copied {
  animation: copied-pop 450ms ease;
}

.hero {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(510px, 0.88fr) minmax(560px, 1.12fr);
  align-items: center;
  min-height: 0;
  padding: 0 var(--page-pad);
}

.hero-copy {
  position: relative;
  z-index: 8;
  align-self: center;
  padding: 1vh 0 8vh;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--gold-bright);
  font-size: clamp(0.78rem, 0.76vw, 0.94rem);
  font-weight: 900;
  letter-spacing: 0.28em;
}

.eyebrow__line {
  display: inline-block;
  width: 62px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-bright));
}

.hero-title {
  margin: 1.6vh 0 1vh;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(6.2rem, 11vw, 12.7rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 0.7;
  text-transform: uppercase;
}

.hero-title span {
  display: block;
}

.hero-title__mike {
  position: relative;
  z-index: 2;
  color: var(--ink);
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

.hero-title__hood {
  position: relative;
  z-index: 1;
  margin-top: 0.18em;
  color: var(--gold-bright);
  transform: translateX(0.06em);
  -webkit-text-stroke: 1px rgba(20, 16, 8, 0.5);
  text-shadow: 5px 6px 0 #422814, 10px 12px 28px rgba(0, 0, 0, 0.62);
}

.hero-title__hood::before {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  z-index: -1;
  color: transparent;
  -webkit-text-stroke: 10px rgba(55, 86, 38, 0.48);
  filter: blur(1px);
}

.hero-tagline {
  margin: 4vh 0 0;
  max-width: 580px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.15rem, 1.35vw, 1.65rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.32;
}

.hero-tagline em {
  color: var(--gold-bright);
  font-style: italic;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 3vh;
}

.lore-button {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid rgba(255, 215, 120, 0.52);
  background: rgba(7, 24, 14, 0.72);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  backdrop-filter: blur(10px);
  transition: gap 180ms ease, background 180ms ease, color 180ms ease;
}

.lore-button svg {
  width: 38px;
  fill: none;
  stroke: var(--gold-bright);
  stroke-width: 1.5;
}

.lore-button:hover,
.lore-button:focus-visible {
  gap: 28px;
  color: #10190f;
  background: var(--gold-bright);
  outline: none;
}

.lore-button:hover svg,
.lore-button:focus-visible svg {
  stroke: currentColor;
}

.battle-note {
  color: rgba(243, 235, 209, 0.62);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.17em;
}

.character-stage {
  --rx: 0deg;
  --ry: 0deg;
  position: relative;
  align-self: stretch;
  min-height: 0;
  perspective: 1400px;
  transform: translateX(2vw);
}

.character-card {
  position: absolute;
  top: 1.5%;
  right: 5%;
  width: min(38vw, 700px);
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(255, 217, 128, 0.56);
  border-radius: 46% 46% 42% 42% / 45% 45% 38% 38%;
  box-shadow:
    0 0 0 9px rgba(9, 33, 19, 0.62),
    0 0 0 11px rgba(216, 165, 66, 0.24),
    0 35px 90px rgba(0, 0, 0, 0.58);
  transform: rotateX(var(--rx)) rotateY(var(--ry)) translate3d(calc(var(--mx) * 7px), calc(var(--my) * 5px), 0);
  transform-style: preserve-3d;
  transition: transform 180ms ease-out;
  will-change: transform;
}

.character-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  transform: scale(1.04);
  filter: saturate(0.98) contrast(1.04);
  animation: character-breathe 6s ease-in-out infinite;
  will-change: transform;
}

.character-card__light {
  position: absolute;
  inset: -30%;
  background: linear-gradient(112deg, transparent 35%, rgba(255, 223, 139, 0.18) 48%, transparent 60%);
  transform: translateX(-35%);
  animation: portrait-glint 6.8s ease-in-out infinite;
  mix-blend-mode: screen;
}

.character-card__edge {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 70px rgba(0, 0, 0, 0.46), inset 12px 6px 26px rgba(255, 202, 98, 0.08);
}

.character-glow {
  position: absolute;
  top: 6%;
  right: 0;
  width: 72%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 179, 69, 0.35), rgba(80, 122, 45, 0.14) 38%, transparent 70%);
  filter: blur(16px);
  animation: glow-pulse 5s ease-in-out infinite;
}

.target-rings {
  position: absolute;
  top: -2%;
  right: 2%;
  width: min(44vw, 810px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 215, 120, 0.22);
  border-radius: 50%;
  animation: ring-spin 36s linear infinite;
}

.target-rings::before,
.target-rings::after,
.target-rings span {
  content: "";
  position: absolute;
  inset: 9%;
  border: 1px dashed rgba(255, 215, 120, 0.15);
  border-radius: 50%;
}

.target-rings::after {
  inset: 18%;
}

.target-rings span:nth-child(1) {
  inset: -3%;
  border-style: solid;
  border-color: transparent var(--gold) transparent rgba(255, 215, 120, 0.12);
}

.target-rings span:nth-child(2) {
  inset: 28%;
}

.target-rings span:nth-child(3) {
  inset: 39%;
  border-style: solid;
  border-color: rgba(166, 74, 40, 0.38);
}

.hero-stamp {
  position: absolute;
  right: -0.5%;
  bottom: 5%;
  z-index: 7;
  display: grid;
  place-items: center;
  width: clamp(112px, 8.4vw, 160px);
  aspect-ratio: 1;
  border: 2px solid var(--gold-bright);
  border-radius: 50%;
  color: var(--gold-bright);
  background: rgba(5, 19, 11, 0.8);
  box-shadow: 0 0 0 5px rgba(5, 19, 11, 0.64), 0 0 0 6px rgba(255, 215, 120, 0.32);
  text-align: center;
  transform: rotate(8deg);
  animation: stamp-hover 4.4s ease-in-out infinite;
  backdrop-filter: blur(8px);
}

.hero-stamp strong {
  margin: -12px 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(1.75rem, 2.2vw, 2.6rem);
  letter-spacing: 0.04em;
}

.hero-stamp span {
  font-size: 0.57rem;
  font-weight: 900;
  letter-spacing: 0.2em;
}

.arrow-trail {
  position: absolute;
  top: 42%;
  left: -70vw;
  z-index: 11;
  display: flex;
  align-items: center;
  width: 360px;
  opacity: 0;
  pointer-events: none;
}

.arrow-trail__line {
  width: 330px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-bright));
  box-shadow: 0 0 14px var(--gold-bright);
}

.arrow-trail__head {
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 16px solid var(--gold-bright);
}

.arrow-trail.is-fired {
  animation: arrow-fire 900ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.legend {
  position: relative;
  z-index: 12;
  display: grid;
  grid-template-columns: 1.1fr repeat(3, 1fr);
  min-height: 164px;
  margin: 0 var(--page-pad) clamp(22px, 3vh, 36px);
  border: 1px solid rgba(255, 215, 120, 0.26);
  background: linear-gradient(105deg, rgba(5, 20, 11, 0.94), rgba(12, 35, 20, 0.85));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(16px);
  clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px);
}

.legend::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 28%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-bright), transparent);
}

.legend__intro,
.legend__chapter {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 24px clamp(18px, 1.7vw, 32px);
}

.legend__chapter {
  position: relative;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.legend__number {
  margin-right: 18px;
  color: transparent;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(3.3rem, 4vw, 5rem);
  -webkit-text-stroke: 1px rgba(255, 215, 120, 0.48);
}

.legend__kicker,
.legend__chapter span {
  margin: 0 0 8px;
  color: var(--gold-bright);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.19em;
}

.legend h2 {
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(1.2rem, 1.45vw, 1.7rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.02;
}

.legend__chapter p {
  margin: 0;
  color: var(--ink-muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.85rem, 0.82vw, 1rem);
  line-height: 1.45;
}

.copy-toast {
  position: fixed;
  right: var(--page-pad);
  bottom: 34px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 20px;
  border: 1px solid var(--gold-bright);
  background: #0b2415;
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease;
}

.copy-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.copy-toast__check {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #102116;
  background: var(--gold-bright);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  animation: reveal-in 800ms var(--delay, 0s) cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

noscript {
  position: fixed;
  inset: auto 16px 16px;
  z-index: 100;
  padding: 12px;
  color: #111;
  background: var(--gold-bright);
  text-align: center;
}

@keyframes forest-breathe {
  from { transform: translate3d(calc(var(--mx) * -10px), calc(var(--my) * -7px), 0) scale(1.06); }
  to { transform: translate3d(calc(var(--mx) * -10px - 14px), calc(var(--my) * -7px - 7px), 0) scale(1.095); }
}

@keyframes mist-drift {
  from { transform: translate3d(-10%, 0, 0) scaleX(0.9); opacity: 0.3; }
  to { transform: translate3d(28%, -4%, 0) scaleX(1.08); opacity: 0.62; }
}

@keyframes leaf-fall {
  0% { opacity: 0; transform: translate3d(0, -8vh, 0) rotate(0deg); }
  10% { opacity: 0.8; }
  70% { opacity: 0.7; }
  100% { opacity: 0; transform: translate3d(var(--drift), 112vh, 0) rotate(var(--spin)); }
}

@keyframes button-shine {
  0%, 55% { left: -55%; }
  78%, 100% { left: 125%; }
}

@keyframes copied-pop {
  0%, 100% { transform: translateY(0) scale(1); }
  45% { transform: translateY(-3px) scale(1.045); }
}

@keyframes character-breathe {
  0%, 100% { transform: scale(1.04) translateY(0); }
  50% { transform: scale(1.055) translateY(-8px); }
}

@keyframes portrait-glint {
  0%, 54% { transform: translateX(-45%); opacity: 0; }
  65% { opacity: 1; }
  86%, 100% { transform: translateX(55%); opacity: 0; }
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.68; transform: scale(0.96); }
  50% { opacity: 1; transform: scale(1.06); }
}

@keyframes ring-spin {
  to { transform: rotate(360deg); }
}

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

@keyframes arrow-fire {
  0% { left: -70vw; opacity: 0; }
  12% { opacity: 1; }
  76% { opacity: 1; }
  100% { left: 100vw; opacity: 0; }
}

@keyframes reveal-in {
  to { opacity: 1; transform: translateY(0); }
}

@media (max-height: 850px) and (min-width: 901px) {
  .topbar { padding-top: 16px; }
  .hero-copy { padding-bottom: 3vh; }
  .hero-title { font-size: clamp(5.8rem, 9.4vw, 10.3rem); }
  .hero-tagline { margin-top: 2.4vh; }
  .hero-actions { margin-top: 2.2vh; }
  .character-card { width: min(34vw, 570px); top: 0; }
  .target-rings { width: min(39vw, 650px); }
  .legend { min-height: 138px; margin-bottom: 18px; }
  .legend__intro, .legend__chapter { padding-top: 18px; padding-bottom: 18px; }
}

@media (max-width: 1180px) {
  .hero { grid-template-columns: minmax(430px, 0.9fr) minmax(480px, 1.1fr); }
  .social-link span:last-child { display: none; }
  .social-link { width: 48px; padding: 0; }
  .legend { grid-template-columns: 1fr 1fr 1fr; }
  .legend__intro { display: none; }
}

@media (max-width: 900px) {
  .site-shell {
    display: block;
    height: auto;
    min-height: 100svh;
    overflow: hidden visible;
  }

  .site-shell::after { inset: 8px; }
  .topbar { padding: 18px 22px; }
  .brand small { display: none; }
  .brand strong { font-size: 1.08rem; }
  .brand__crest { width: 44px; height: 44px; }
  .nav-actions { gap: 6px; }
  .social-link { min-height: 44px; width: 42px; }
  .ca-button { min-height: 44px; min-width: 132px; padding: 0 13px; }

  .hero {
    grid-template-columns: 1fr;
    min-height: 880px;
    padding: 34px 24px 0;
  }

  .hero-copy { align-self: start; padding: 10px 0 0; }
  .hero-title { font-size: clamp(5.8rem, 24vw, 9rem); }
  .hero-tagline { margin-top: 30px; }
  .battle-note { display: none; }
  .character-stage { min-height: 500px; transform: none; }
  .character-card { top: 24px; right: 3%; width: min(82vw, 520px); }
  .target-rings { top: 4px; right: -5%; width: min(92vw, 590px); }
  .hero-stamp { right: 2%; bottom: 4%; }

  .legend {
    grid-template-columns: 1fr;
    margin: 0 24px 24px;
  }

  .legend__intro { display: flex; }
  .legend__chapter { border-top: 1px solid rgba(255,255,255,.1); border-left: 0; }
  .copy-toast { right: 24px; bottom: 24px; }
}

@media (max-width: 580px) {
  .topbar { align-items: flex-start; }
  .brand span:last-child { display: none; }
  .social-link:nth-child(2) { display: none; }
  .hero { min-height: 790px; }
  .eyebrow { letter-spacing: 0.16em; }
  .eyebrow__line { width: 34px; }
  .hero-title { font-size: clamp(5.4rem, 29vw, 8rem); }
  .hero-actions { align-items: flex-start; }
  .character-stage { min-height: 420px; }
  .character-card { width: 92vw; right: -7%; }
  .target-rings { width: 105vw; right: -14%; }
  .hero-stamp { width: 108px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
  .particle { display: none; }
  .character-card { transition: none; transform: none; }
}
