/* Złote Tokary — landing only · gold #c9a227 · Discord #5865f2 */
:root {
  --discord: #5865f2;
  --gold: #c9a227;
  --gold-light: #f5e6b8;
  --bg: #1e1f22;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, sans-serif;
  --enter-y: 22px;
  --enter-scale: 0.97;
  --enter-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  height: 100%;
}
html.js .zt-enter:not(.is-in) {
  opacity: 0;
  transform: translate3d(0, var(--enter-y), 0) scale(var(--enter-scale));
}

body.zt-landing {
  margin: 0;
  min-height: 100dvh;
  min-height: 100vh;
  font-family: var(--font);
  color: #f2f3f5;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* tło — statyczne gradienty + opcjonalne orbity */
.zt-landing__bg {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  contain: strict;
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, rgba(201, 162, 39, 0.18), transparent 62%),
    radial-gradient(ellipse 100% 80% at 50% 100%, rgba(30, 31, 34, 0.92), transparent 55%),
    linear-gradient(165deg, #2b2d31 0%, var(--bg) 45%, #232428 100%);
}

.zt-orb {
  position: absolute;
  border-radius: 50%;
  opacity: 0.55;
  will-change: transform;
}
.zt-orb--gold {
  width: min(55vw, 420px);
  height: min(55vw, 420px);
  left: 50%;
  top: 38%;
  margin: calc(min(55vw, 420px) / -2) 0 0 calc(min(55vw, 420px) / -2);
  background: radial-gradient(circle, rgba(201, 162, 39, 0.35) 0%, transparent 68%);
}
.zt-orb--discord {
  width: min(45vw, 340px);
  height: min(45vw, 340px);
  left: 12%;
  top: 58%;
  background: radial-gradient(circle, rgba(88, 101, 242, 0.28) 0%, transparent 70%);
}
.zt-orb--mix {
  width: min(40vw, 300px);
  height: min(40vw, 300px);
  right: 8%;
  top: 22%;
  background: radial-gradient(circle, rgba(245, 230, 184, 0.12) 0%, rgba(88, 101, 242, 0.2) 45%, transparent 72%);
}

html.motion-lite .zt-orb {
  opacity: 0.4;
  will-change: auto;
}

.zt-landing__main {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  min-height: 100vh;
  padding: 24px;
  text-align: center;
}

.zt-landing__halo {
  pointer-events: none;
  position: absolute;
  width: min(92vw, 520px);
  height: min(92vw, 520px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.14) 0%, rgba(88, 101, 242, 0.08) 42%, transparent 68%);
  opacity: 0;
  transform: scale(0.92);
}
html.js .zt-landing__halo {
  transition: opacity 1s var(--enter-ease) 0.05s, transform 1.2s var(--enter-ease) 0.05s;
}
html.js .zt-landing__main.is-ready .zt-landing__halo {
  opacity: 1;
  transform: scale(1);
}

.zt-landing__title {
  position: relative;
  z-index: 1;
  margin: 0 0 20px;
  max-width: min(100%, 20em);
  padding: 0.12em 0.2em 0.18em;
  overflow: visible;
  font-size: clamp(2rem, 10vw, 4rem);
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: 0.02em;
  text-wrap: balance;
  background: linear-gradient(
    118deg,
    var(--gold-light) 0%,
    var(--gold) 40%,
    #e8d48a 50%,
    #9ea7ff 75%,
    var(--discord) 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 4px 28px rgba(201, 162, 39, 0.3));
}

.zt-landing__start {
  position: relative;
  z-index: 1;
  margin: 0 0 18px;
  font-size: clamp(1.15rem, 4.5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #b8beff;
  text-shadow: 0 0 40px rgba(88, 101, 242, 0.4);
}

.zt-landing__rule {
  display: block;
  width: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--discord));
  box-shadow: 0 0 20px rgba(201, 162, 39, 0.35);
  opacity: 0.85;
}
html.js .zt-landing__rule.zt-enter.is-in {
  width: min(200px, 52vw);
  transition:
    opacity 0.55s var(--enter-ease),
    transform 0.55s var(--enter-ease),
    width 0.85s var(--enter-ease) 0.2s;
}

.zt-enter {
  transition: opacity 0.65s var(--enter-ease), transform 0.65s var(--enter-ease);
}
.zt-enter.is-in {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}
.zt-enter--d1.is-in { transition-delay: 0.14s; }
.zt-enter--d2.is-in { transition-delay: 0.28s; }
html:not(.js) .zt-enter { opacity: 1; transform: none; }
html:not(.js) .zt-landing__rule { width: min(200px, 52vw); }
html:not(.js) .zt-landing__halo { opacity: 1; transform: none; }

@keyframes zt-title-shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@keyframes zt-start-glow {
  0%, 100% { opacity: 1; text-shadow: 0 0 40px rgba(88, 101, 242, 0.4); }
  50% { opacity: 0.92; text-shadow: 0 0 52px rgba(88, 101, 242, 0.55); }
}
@keyframes zt-orb-drift-a {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(12px, -18px, 0) scale(1.04); }
}
@keyframes zt-orb-drift-b {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(-16px, 10px, 0); }
}
@keyframes zt-orb-drift-c {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(10px, 14px, 0) scale(1.03); }
}
@keyframes zt-halo-breathe {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.04); opacity: 0.88; }
}
@keyframes zt-rule-pulse {
  0%, 100% { opacity: 0.85; box-shadow: 0 0 20px rgba(201, 162, 39, 0.35); }
  50% { opacity: 1; box-shadow: 0 0 28px rgba(88, 101, 242, 0.45); }
}

html.motion-fx .zt-landing__title {
  animation: zt-title-shimmer 10s ease-in-out infinite;
}
html.motion-fx .zt-landing__start {
  animation: zt-start-glow 5s ease-in-out infinite;
}
html.motion-fx .zt-orb--gold {
  animation: zt-orb-drift-a 14s ease-in-out infinite;
}
html.motion-fx .zt-orb--discord {
  animation: zt-orb-drift-b 18s ease-in-out infinite;
}
html.motion-fx .zt-orb--mix {
  animation: zt-orb-drift-c 16s ease-in-out infinite;
}
html.motion-fx .zt-landing__main.is-ready .zt-landing__halo {
  animation: zt-halo-breathe 7s ease-in-out infinite;
}
html.motion-fx .zt-landing__rule.is-in {
  animation: zt-rule-pulse 4s ease-in-out infinite;
}

html.motion-lite .zt-landing__title,
html.motion-lite .zt-landing__start,
html.motion-lite .zt-orb,
html.motion-lite .zt-landing__halo,
html.motion-lite .zt-landing__rule,
html.motion-off .zt-landing__title,
html.motion-off .zt-landing__start,
html.motion-off .zt-orb,
html.motion-off .zt-landing__halo,
html.motion-off .zt-landing__rule { animation: none; }

html.motion-off .zt-enter,
html.motion-off .zt-enter.is-in {
  opacity: 1;
  transform: none;
  transition: none;
}
html.motion-off .zt-landing__rule { width: min(200px, 52vw); }

/* kursor — tylko html.motion-fx (zt-cursor.js) */
html.motion-fx body.zt-landing.zt-cursor-active {
  cursor: none;
}

.zt-cursor,
.zt-cursor__aura,
.zt-spark {
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
}

.zt-cursor {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(88, 101, 242, 0.75);
  box-shadow:
    0 0 14px rgba(88, 101, 242, 0.45),
    0 0 24px rgba(201, 162, 39, 0.25);
  opacity: 0;
  transition: opacity 0.25s ease;
  will-change: transform;
}
.zt-cursor.is-on { opacity: 1; }
.zt-cursor__core {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff6dc, var(--gold) 55%, #a88418);
}

.zt-cursor__aura {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.35s ease;
  background: radial-gradient(
    circle,
    rgba(201, 162, 39, 0.22) 0%,
    rgba(88, 101, 242, 0.14) 42%,
    transparent 68%
  );
  will-change: transform;
}
.zt-cursor__aura.is-on { opacity: 1; }

.zt-spark {
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: var(--gold-light);
  box-shadow: 0 0 10px rgba(201, 162, 39, 0.85);
  animation: zt-spark-pop 0.65s ease-out forwards;
}
.zt-spark--discord {
  background: #aeb4ff;
  box-shadow: 0 0 10px rgba(88, 101, 242, 0.85);
}

@keyframes zt-spark-pop {
  0% {
    opacity: 0.95;
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--zt-spark-x, 8px), var(--zt-spark-y, -12px), 0) scale(0.2);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .zt-enter, .zt-enter.is-in { opacity: 1; transform: none; }
  .zt-landing__title, .zt-landing__start, .zt-orb,
  .zt-landing__halo, .zt-landing__rule { animation: none; }
  .zt-landing__rule { width: min(200px, 52vw); }
  .zt-landing__halo { opacity: 1; transform: none; }
}
