/* ============================================================
   JOKZZ — Zoro-inspired bottom overlay
   Transparan, 1920x1080, aman untuk browser source StreamChamp
   ============================================================ */

:root {
  --green: #3ee07f;
  --green-strong: #57f09a;
  --ink: #eef8f1;

  --name-size: clamp(50px, 7vw, 136px);
  --bottom-gap: clamp(20px, 2.4vw, 46px);

  --ease-out: cubic-bezier(0.19, 1, 0.22, 1);
}

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

html,
body {
  width: 100%;
  height: 100%;
  background: transparent;
}

body {
  overflow: hidden;
  font-family: "Bebas Neue", "Oswald", Impact, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  user-select: none;
  cursor: default;
}

/* ------------------------------------------------------------
   Panggung: nempel di bawah, tengah
   ------------------------------------------------------------ */
.overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: var(--bottom-gap);
  overflow: hidden;
  pointer-events: none;
}

.stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 clamp(16px, 4vw, 80px);
}

/* ------------------------------------------------------------
   Cahaya latar
   ------------------------------------------------------------ */
.bed {
  position: absolute;
  inset: -60% -24% -40%;
  z-index: 0;
  /* Hanya glow hijau tipis — tanpa bidang gelap, biar tidak jadi smudge di scene terang */
  background: radial-gradient(
    ellipse 42% 46% at 50% 60%,
    rgba(62, 224, 127, 0.16),
    rgba(62, 224, 127, 0) 70%
  );
  opacity: 0;
  animation: fade-in 1.2s ease-out 0.1s forwards;
}

/* ------------------------------------------------------------
   Slash Santoryu
   ------------------------------------------------------------ */
.slashes {
  position: absolute;
  inset: -70% -22%;
  z-index: 1;
  pointer-events: none;
}

.slash {
  --o: 0.5;
  position: absolute;
  left: 50%;
  height: 1.5px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(62, 224, 127, 0.9) 28%,
    rgba(87, 240, 154, 0.95) 46%,
    rgba(62, 224, 127, 0.45) 68%,
    transparent 100%
  );
  box-shadow:
    0 0 8px rgba(62, 224, 127, 0.5),
    0 0 22px rgba(62, 224, 127, 0.25);
  opacity: 0;
  transform: translate(-50%, -50%) rotate(-14deg) scaleX(0);
  animation: slash-in 1.25s var(--ease-out) forwards;
}

.slash--1 {
  top: 30%;
  width: min(760px, 62vw);
  --o: 0.3;
  animation-delay: 0.05s;
}

.slash--2 {
  top: 52%;
  width: min(640px, 54vw);
  --o: 0.55;
  animation-delay: 0.16s;
}

.slash--3 {
  top: 74%;
  width: min(700px, 58vw);
  --o: 0.34;
  animation-delay: 0.27s;
}

/* ------------------------------------------------------------
   Wordmark
   ------------------------------------------------------------ */
.wordmark {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Aksen kanji 三刀流 */
.eyebrow {
  display: flex;
  align-items: center;
  gap: clamp(8px, 0.9vw, 16px);
  margin-bottom: clamp(2px, 0.5vw, 10px);
  opacity: 0;
  animation: rise-in 0.9s var(--ease-out) 0.35s forwards;
}

.eyebrow .line {
  display: block;
  width: clamp(24px, 3vw, 58px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(62, 224, 127, 0.75));
}

.eyebrow .line:last-child {
  background: linear-gradient(90deg, rgba(62, 224, 127, 0.75), transparent);
}

.kanji {
  font-family: "Noto Sans JP", sans-serif;
  font-size: clamp(10px, 0.8vw, 15px);
  font-weight: 500;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  white-space: nowrap;
  color: rgba(160, 252, 198, 0.98);
  text-shadow:
    0 0 14px rgba(62, 224, 127, 0.55),
    0 1px 2px rgba(0, 0, 0, 0.6);
  -webkit-text-stroke: 0.5px rgba(3, 20, 12, 0.45);
}

/* Teks utama */
.name {
  position: relative;
  font-family: "Bebas Neue", "Oswald", Impact, sans-serif;
  font-size: var(--name-size);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0.16em;
  text-indent: 0.16em;

  background: linear-gradient(180deg, #ffffff 0%, #eafff3 35%, #b7f2cf 70%, #62d69a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;

  /* Outline tegas + bayangan pendek: kunci agar tetap kebaca di scene terang */
  -webkit-text-stroke: clamp(1.4px, 0.13vw, 2.4px) rgba(2, 14, 8, 0.78);
  filter:
    drop-shadow(0 0 0.5px rgba(0, 0, 0, 0.7))
    drop-shadow(0 2px 4px rgba(0, 0, 0, 0.45));

  opacity: 0;
  transform: skewX(-7deg) translateY(14px) scale(0.96);
  animation: name-in 0.95s var(--ease-out) 0.12s forwards;
}

/* Halo hijau di belakang teks (pulse halus) */
.name::before {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  z-index: -1;
  color: var(--green);
  -webkit-text-fill-color: var(--green);
  filter: blur(clamp(8px, 0.9vw, 16px));
  opacity: 0.34;
  animation: glow-pulse 4.8s ease-in-out 1.8s infinite;
}

/* Garis bawah + diamond */
.rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 0.7vw, 12px);
  width: clamp(180px, 26vw, 460px);
  margin-top: clamp(6px, 1vw, 16px);
}

.rule i {
  display: block;
  flex: 1;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, rgba(62, 224, 127, 0.8));
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);
  transform: scaleX(0);
  transform-origin: right center;
  animation: rule-in 0.85s var(--ease-out) 0.5s forwards;
}

.rule i:last-child {
  background: linear-gradient(90deg, rgba(62, 224, 127, 0.8), transparent);
  transform-origin: left center;
}

.rule b {
  display: block;
  width: clamp(5px, 0.5vw, 8px);
  aspect-ratio: 1;
  background: var(--green);
  box-shadow: 0 0 10px rgba(62, 224, 127, 0.8);
  transform: rotate(45deg) scale(0);
  animation: dot-in 0.6s var(--ease-out) 0.85s forwards;
}

/* ------------------------------------------------------------
   Keyframes
   ------------------------------------------------------------ */
@keyframes slash-in {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-14deg) scaleX(0);
  }
  22% {
    opacity: calc(var(--o) * 1.25);
  }
  100% {
    opacity: var(--o);
    transform: translate(-50%, -50%) rotate(-14deg) scaleX(1);
  }
}

@keyframes name-in {
  to {
    opacity: 1;
    transform: skewX(-7deg) translateY(0) scale(1);
  }
}

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

@keyframes rule-in {
  to {
    transform: scaleX(1);
  }
}

@keyframes dot-in {
  to {
    transform: rotate(45deg) scale(1);
  }
}

@keyframes fade-in {
  to {
    opacity: 1;
  }
}

@keyframes glow-pulse {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.68;
  }
}

/* ------------------------------------------------------------
   Aksesibilitas: hormati preferensi reduce motion
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
  }
}
