:root {
  --bg: #000;
  --text: #fff;
  --muted: rgba(255, 255, 255, 0.7);
  --stroke: rgba(255, 255, 255, 0.22);
  --radius: 18px;
}

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

html,
body {
  height: 100%;
  overflow: hidden;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background-color: var(--bg);
  color: var(--text);
  overscroll-behavior: none;
}

.topbar {
  position: fixed;
  top: 18px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  pointer-events: none;
  z-index: 10;
}

.top-logo {
  width: 54px;
  height: auto;
  display: block;
  pointer-events: auto;
}

.page {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 120px 18px 120px;
  gap: 22px;
}

.card {
  width: min(680px, 100%);
  background: transparent;
  border: 0;
  border-radius: var(--radius);
  padding: 0 8px;
  box-shadow: none;
  text-align: center;
  position: relative;
}

.card::before {
  content: "";
  position: absolute;
  inset: -80px -24px -80px -24px;
  background-image: url("./3dgifmaker95164.gif");
  background-position: center 45%;
  background-repeat: no-repeat;
  background-size: min(440px, 84vw) auto;
  opacity: 0.38;
  pointer-events: none;
  z-index: 0;
}

.card > * {
  position: relative;
  z-index: 1;
}

.title {
  margin: 0 0 10px;
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: transparent;
  background-image:
    linear-gradient(
      110deg,
      #3a3a3a 0%,
      #f6f6f6 12%,
      #a7a7a7 24%,
      #ffffff 36%,
      #6a6a6a 48%,
      #f5f5f5 60%,
      #9a9a9a 72%,
      #ffffff 84%,
      #4b4b4b 100%
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0)),
    radial-gradient(120% 140% at 20% 10%, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 60%),
    radial-gradient(120% 140% at 80% 90%, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0) 55%),
    radial-gradient(circle, rgba(255, 255, 255, 0.18) 0px, rgba(255, 255, 255, 0.18) 1px, rgba(255, 255, 255, 0) 2px),
    radial-gradient(circle, rgba(255, 255, 255, 0.12) 0px, rgba(255, 255, 255, 0.12) 1px, rgba(255, 255, 255, 0) 2px);
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, repeat, repeat;
  background-size: 220% 100%, 240% 100%, 100% 100%, 100% 100%, 18px 18px, 22px 22px;
  background-position: 0% 50%, -60% 50%, 0 0, 0 0, 0 0, 10px 14px;
  background-blend-mode: normal, screen, normal, normal, screen, screen;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.12), 0 12px 26px rgba(0, 0, 0, 0.45);
  filter: saturate(0.9) contrast(1.05);
  animation: metallic-shine 3.2s linear infinite;
}

@keyframes metallic-shine {
  0% {
    background-position: 0% 50%, -60% 50%, 0 0, 0 0, 0 0, 10px 14px;
  }
  100% {
    background-position: 100% 50%, 160% 50%, 0 0, 0 0, 18px 10px, 0 18px;
  }
}

.subtitle {
  margin: 0 auto 18px;
  max-width: 44ch;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.form {
  margin: 0 auto;
  width: min(560px, 100%);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.input {
  height: 52px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  padding: 0 16px;
  font-size: 14px;
  outline: none;
  background: rgba(11, 11, 11, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text);
}

.input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.input:focus {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(11, 11, 11, 0.74);
}

.button {
  height: 52px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  padding: 0 18px;
  font-size: 14px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: transform 120ms ease, opacity 120ms ease, background 120ms ease,
    color 120ms ease;
}

.button:hover {
  background: #fff;
  color: #000;
}

.button:active {
  transform: translateY(1px);
}

.hint {
  margin: 10px 0 0;
  min-height: 20px;
  font-size: 12px;
  color: var(--muted);
}

.social {
  margin: 14px auto 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
}

.social:hover {
  color: rgba(255, 255, 255, 1);
}

.footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 18px;
  text-align: center;
  color: rgba(255, 255, 255, 0.65);
  font-size: 11px;
  line-height: 1.6;
  padding: 0 18px;
  z-index: 10;
}

.footer-link {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.footer-link:hover {
  text-decoration: underline;
}

.footer-copy,
.footer-credit {
  margin: 4px 0 0;
}

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

@media (max-width: 520px) {
  .form {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }
}

#stickers {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.sticker-peel {
  --sticker-rotate: 0deg;
  --sticker-p: 10px;
  --sticker-peelback-hover: 30%;
  --sticker-peelback-active: 40%;
  --sticker-start: calc(-1 * var(--sticker-p));
  --sticker-end: calc(100% + var(--sticker-p));
  --sticker-width: 200px;
  --sticker-shadow-opacity: 0.6;
  --peel-direction: 0deg;
  position: absolute;
  left: 0;
  top: 0;
  transform: translate3d(var(--x, 0px), var(--y, 0px), 0);
  cursor: grab;
  pointer-events: auto;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: none;
}

.sticker-peel:active {
  cursor: grabbing;
}

.sticker-container {
  position: relative;
  transform: rotate(var(--peel-direction));
  transform-origin: center;
}

.sticker-main {
  position: relative;
  z-index: 1;
  clip-path: polygon(
    var(--sticker-start) var(--sticker-start),
    var(--sticker-end) var(--sticker-start),
    var(--sticker-end) var(--sticker-end),
    var(--sticker-start) var(--sticker-end)
  );
  transition: clip-path 0.35s ease-out;
  filter: drop-shadow(
    2px 4px calc(10px * var(--sticker-shadow-opacity)) rgba(0, 0, 0, var(--sticker-shadow-opacity))
  );
}

.sticker-main > * {
  transform: rotate(calc(-1 * var(--peel-direction)));
}

.sticker-container:hover .sticker-main,
.sticker-container.touch-active .sticker-main {
  clip-path: polygon(
    var(--sticker-start) var(--sticker-peelback-hover),
    var(--sticker-end) var(--sticker-peelback-hover),
    var(--sticker-end) var(--sticker-end),
    var(--sticker-start) var(--sticker-end)
  );
}

.sticker-container:active .sticker-main {
  clip-path: polygon(
    var(--sticker-start) var(--sticker-peelback-active),
    var(--sticker-end) var(--sticker-peelback-active),
    var(--sticker-end) var(--sticker-end),
    var(--sticker-start) var(--sticker-end)
  );
}

.sticker-image {
  width: var(--sticker-width);
  height: auto;
  display: block;
  transform: rotate(var(--sticker-rotate));
}

.sticker-flap {
  position: absolute;
  left: 0;
  width: 100%;
  height: 100%;
  top: calc(-100% - var(--sticker-p) - var(--sticker-p));
  z-index: 2;
  transform: scaleY(-1);
  clip-path: polygon(
    var(--sticker-start) var(--sticker-start),
    var(--sticker-end) var(--sticker-start),
    var(--sticker-end) var(--sticker-start),
    var(--sticker-start) var(--sticker-start)
  );
  transition: clip-path 0.35s ease-out, top 0.35s ease-out;
}

.sticker-flap > * {
  transform: rotate(calc(-1 * var(--peel-direction)));
}

.sticker-container:hover .sticker-flap,
.sticker-container.touch-active .sticker-flap {
  clip-path: polygon(
    var(--sticker-start) var(--sticker-start),
    var(--sticker-end) var(--sticker-start),
    var(--sticker-end) var(--sticker-peelback-hover),
    var(--sticker-start) var(--sticker-peelback-hover)
  );
  top: calc(-100% + 2 * var(--sticker-peelback-hover) - 1px);
}

.sticker-container:active .sticker-flap {
  clip-path: polygon(
    var(--sticker-start) var(--sticker-start),
    var(--sticker-end) var(--sticker-start),
    var(--sticker-end) var(--sticker-peelback-active),
    var(--sticker-start) var(--sticker-peelback-active)
  );
  top: calc(-100% + 2 * var(--sticker-peelback-active) - 1px);
}

.sticker-flap-image {
  width: var(--sticker-width);
  height: auto;
  display: block;
  transform: rotate(var(--sticker-rotate));
  filter: grayscale(1) contrast(1.05) brightness(0.82);
}
