body {
  margin: 0;
  overflow-x: hidden;
  background: rgba(10, 10, 10, 0.12);
  backdrop-filter: blur(4px);
  color: #2c2420;
  font-family: Inter;
  padding: 40px 20px;
  min-height: 100vh;
}

#background-video {
  position: fixed;
  right: 0;
  bottom: 0;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  z-index: -2;
  opacity: 0.72;
  filter: brightness(0.95) contrast(1.15) saturate(1) blur(1.2px);
}

a {
  color: rgba(245, 238, 230, 0.82);
  font-size: 22px;
  font-family: "Patrick Hand SC", cursive;
  font-weight: 400;
  position: relative;
  text-decoration: none;
  text-shadow:
    0 3px 0 rgba(0, 0, 0, 0.85),
    0 3px 10px rgba(0, 0, 0, 0.65),
    0 10px 25px rgba(0, 0, 0, 0.55),
    0 0 40px rgba(0, 0, 0, 0.4);
}
a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0px;
  width: 100%;
  height: 1.2px;
  background: rgba(245, 238, 230, 0.72);
  box-shadow:
    0 0 8px rgba(255, 255, 255, 0.08),
    0 0 12px rgba(0, 0, 0, 0.35);

  opacity: 0.85;
}
.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 34px 42px;
  border-radius: 30px;
  position: relative;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.015)
  );

  background-color: rgba(99, 98, 98, 0.42);
  background-image: url("https://www.transparenttextures.com/patterns/clean-gray-paper.png");
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.5),
    0 8px 20px rgba(0, 0, 0, 0.25),
    0 0 40px rgba(212, 169, 95, 0.06),
    inset 0 1px 1px rgba(255, 255, 255, 0.08),
    inset 0 -1px 1px rgba(0, 0, 0, 0.18);
  transition:
    transform 0.45s ease,
    box-shadow 0.45s ease;
}
.container:hover {
  transform: translateY(-3px);
  box-shadow:
    0 18px 60px rgba(0, 0, 0, 0.55),
    0 0 40px rgba(212, 169, 95, 0.12);
}

header {
  margin-bottom: 24px;
}

h1 {
  font-family: "Schoolbell", cursive;
  font-size: 95px;
  font-weight: 600;
  text-align: center;
  color: rgba(20, 20, 20, 0.88);
  letter-spacing: 4px;
  margin-top: -10px;
  margin-bottom: 18px;
  position: relative;
  text-shadow:
    0 -1px 1px rgba(255, 255, 255, 0.8),
    0 1px 0 rgba(255, 255, 255, 0.8),
    0 2px 4px rgba(255, 255, 255, 0.22),
    0 4px 8px rgba(0, 0, 0, 0.4),
    0 10px 22px rgba(0, 0, 0, 0.28),
    0 0 22px rgba(242, 232, 214, 0.35),
    0 0 60px rgba(242, 232, 214, 0.32);

  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.14))
    drop-shadow(0 0 24px rgba(242, 232, 214, 0.22));

  animation:
    handwrittenReveal 1.4s ease-out forwards,
    glassPulse 5s ease-in-out infinite;
}

@keyframes handwrittenReveal {
  0% {
    opacity: 0;
    transform: translateY(10px);
    filter: blur(8px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}
h2 {
  font-family: "Cormorant Garamond", serif;
  letter-spacing: 5px;
  text-align: center;
  font-size: 17px;
  font-weight: 900;
  color: rgba(248, 245, 241, 0.72);
  margin-top: -22px;
  text-shadow:
    0 -1px 1px rgba(255, 255, 255, 0.18),
    0 1px 2px rgba(255, 255, 255, 0.08),
    0 3px 6px rgba(0, 0, 0, 0.75),
    0 10px 18px rgba(0, 0, 0, 0.85),
    0 0 28px rgba(0, 0, 0, 0.85),
    0 0 42px rgba(242, 232, 214, 0.15);
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.08))
    drop-shadow(0 0 22px rgba(0, 0, 0, 0.75));
}

h2 {
  animation: subtitleReveal 1s ease-out forwards;
  animation-delay: 0.6s;
  opacity: 0;
}

@keyframes subtitleReveal {
  from {
    opacity: 0;
    transform: translateY(4px);
    letter-spacing: 12px;
  }

  to {
    opacity: 0.85;
    transform: translateY(0);
    letter-spacing: 6px;
  }
}
.symbol-divider {
  text-align: center;
  margin-top: 2px;
  margin-bottom: 18px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 28px;
  letter-spacing: 12px;
  color: rgba(247, 243, 239, 0.75);
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.75),
    0 0 12px rgba(0, 0, 0, 0.45),
    0 0 22px rgba(242, 232, 214, 0.08);
  opacity: 0.92;
  transition: all 0.3s ease;
}

form {
  padding: 28px;
  background-color: #e6e6e6;
  background-image: url("https://www.transparenttextures.com/patterns/asfalt-dark.png");
  border-radius: 16px;
  display: flex;
  box-shadow: 0px 20px 60px #2c2420;
  margin-bottom: 30px;
}
.description {
  text-align: center;
  letter-spacing: 5px;
  margin-bottom: -15px;
  margin-top: -10px;
  padding: 8px 5px 1px;
  display: block;
  font-family: "Patrick Hand SC", cursive;
  font-size: 28px;
  font-weight: 900;
  text-transform: uppercase;
  color: rgba(249, 249, 249, 0.85);
  opacity: 0;
  animation: emotionalSignal 1.8s ease-out forwards;
  text-shadow:
    0 3px 0 rgba(0, 0, 0, 0.9),
    0 3px 10px rgba(0, 0, 0, 0.75),
    0 10px 25px rgba(0, 0, 0, 0.65),
    0 0 40px rgba(0, 0, 0, 0.5),
    0 0 150px rgba(0, 0, 0, 0.95);
}
@keyframes emotionalSignal {
  0% {
    opacity: 0;
    filter: blur(10px);
    letter-spacing: 12px;
    transform: translateY(8px);
  }

  60% {
    opacity: 0.6;
    filter: blur(2px);
  }

  100% {
    opacity: 1;
    filter: blur(0);
    letter-spacing: 12px;
    transform: translateY(0);
  }
}
.feeling {
  padding: 16px;
  border: 1px solid rgb(6, 6, 6);
  width: 80%;
  font-family: Gowun Batang;
  font-size: 17px;
  border-radius: 18px;
  line-height: 20px;
  color: rgb(6, 6, 6);
}
.new-word-button {
  margin-left: 10px;
  background: linear-gradient(145deg, #2a2a2a, #161616);
  color: #f5eee6;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  font-family: IBM Plex Mono;
  font-size: 16px;
  font-weight: 500;
  padding: 12px 22px;
  width: 185px;
  backdrop-filter: blur(6px);
}
.new-word-button:hover {
  transform: translateY(-2px);
  letter-spacing: 1.5px;
  box-shadow: 0 0 25px rgba(212, 169, 95, 0.28);
  cursor: pointer;
  filter: brightness(1.05);
}

.new-word-definition {
  font-family: Cormorant Garamond;
  background-color: #e6e6e6;
  background-image: url("https://www.transparenttextures.com/patterns/asfalt-dark.png");
  padding: 26px;
  line-height: 25px;
  box-shadow: 0px 20px 60px #2c2420;
  border-radius: 18px;
}

.hidden {
  display: none !important;
}
.ink-bleed {
  display: inline-block;
  animation: inkSpread 1.1s ease-out forwards;
  color: #2c2420;
}

@keyframes inkSpread {
  0% {
    opacity: 0;
    transform: translateY(3px) scale(1.02);
    filter: blur(3px);
    text-shadow:
      0 0 10px rgba(44, 36, 32, 0.35),
      0 0 20px rgba(44, 36, 32, 0.15);
  }

  35% {
    opacity: 0.4;
    filter: blur(1.5px);
    text-shadow:
      0 0 6px rgba(44, 36, 32, 0.25),
      0 0 12px rgba(44, 36, 32, 0.12);
  }

  70% {
    opacity: 0.8;
    filter: blur(0.5px);
    text-shadow: 0 0 3px rgba(44, 36, 32, 0.15);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
    text-shadow: none;
  }
}
.loading-message {
  font-family: "IBM Plex Mono", monospace;
  display: block;
  width: 100%;
  text-align: center;
  font-weight: 500;
  font-size: 20px;
  line-height: 38px;
  letter-spacing: 1.8px;
  color: rgba(24, 24, 24, 0.88);
  position: relative;
  opacity: 0.92;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18),
    0 1px 2px rgba(0, 0, 0, 0.22),
    0 4px 12px rgba(0, 0, 0, 0.18),
    0 0 18px rgba(255, 255, 255, 0.06);

  animation: archivePulse 1s ease-in-out infinite;
}
@keyframes archivePulse {
  0%,
  100% {
    opacity: 0.82;

    text-shadow:
      0 2px 4px rgba(0, 0, 0, 0.65),
      0 0 18px rgba(0, 0, 0, 0.55);
  }

  50% {
    opacity: 1;

    text-shadow:
      0 2px 6px rgba(0, 0, 0, 0.72),
      0 0 28px rgba(242, 232, 214, 0.12);
  }
}

.new-word {
  font-size: 42px;
  font-weight: 900;
  line-height: 42px;
  letter-spacing: 3px;
  color: rgba(18, 18, 18, 0.92);
  position: relative;
  text-shadow:
    0 -1px 1px rgba(255, 255, 255, 0.22),
    0 1px 0 rgba(255, 255, 255, 0.14),
    0 4px 8px rgba(0, 0, 0, 0.28),
    0 10px 24px rgba(0, 0, 0, 0.38),
    0 0 18px rgba(242, 232, 214, 0.14),
    0 0 40px rgba(242, 232, 214, 0.1);

  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.06))
    drop-shadow(0 0 22px rgba(242, 232, 214, 0.08));
}
.definition {
  font-size: 22px;
  font-weight: 500;
}
.example {
  font-size: 20px;
  font-weight: 400;
  font-style: italic;
}
.glyph {
  font-size: 14px;
}

footer {
  text-align: center;
  font-family: "Patrick Hand SC";
  color: rgba(245, 238, 230, 0.72);
  text-shadow:
    0 3px 0 rgba(0, 0, 0, 0.85),
    0 3px 10px rgba(0, 0, 0, 0.75),
    0 10px 25px rgba(0, 0, 0, 0.55),
    0 0 50px rgba(0, 0, 0, 0.6),
    0 0 150px rgba(0, 0, 0, 0.85);
  font-size: 20px;
  margin-top: 30px;
}
