@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@600;700&family=Share+Tech+Mono&display=swap');

:root {
  --neon: #ff2d95;
  --neon-soft: rgba(255, 45, 149, 0.6);
  --bg: #0a0a12;
  --bg-panel: #1a1a24;
  --text: #ffffff;
}

html, body {
  height: 100%;
  margin: 0;
}

body {
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(255, 45, 149, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 45, 149, 0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  color: var(--text);
  font-family: 'Share Tech Mono', monospace;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100dvh;
  margin: 0;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.035) 0px,
    rgba(255, 255, 255, 0.035) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: overlay;
  z-index: 1;
}

h1 {
  font-family: 'Chakra Petch', sans-serif;
  color: var(--neon);
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-shadow:
    0 0 8px var(--neon-soft),
    2px 0 rgba(0, 255, 255, 0.4),
    -2px 0 rgba(255, 0, 128, 0.4);
  animation: flicker 4s infinite;
  position: relative;
  z-index: 2;
}

input[type="text"] {
  background-color: var(--bg-panel);
  color: var(--text);
  border: 2px solid var(--neon);
  border-radius: 2px;
  padding: 10px 14px;
  font-size: 1rem;
  font-family: 'Share Tech Mono', monospace;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 6px var(--neon-soft);
}

input[type="text"]:focus {
  outline: none;
  animation: pulse-glow 1.4s ease-in-out infinite;
}

button {
  background-color: var(--neon);
  color: var(--bg);
  border: none;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  padding: 10px 24px;
  font-size: 1rem;
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  margin-top: 12px;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 12px var(--neon-soft);
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
}

button:hover {
  background-color: #ff6bb3;
  box-shadow: 0 0 20px var(--neon), 0 0 40px var(--neon-soft);
  transform: translateY(-1px);
}

button:active {
  transform: translateY(0);
}

#result {
  margin-top: 16px;
  font-size: 1.1rem;
  font-family: 'Share Tech Mono', monospace;
  color: var(--neon);
  text-shadow: 0 0 6px var(--neon-soft);
  position: relative;
  z-index: 2;
}

@keyframes flicker {
  0%, 19%, 21%, 23%, 80%, 100% { opacity: 1; }
  20%, 22%, 24% { opacity: 0.7; }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 6px var(--neon-soft); }
  50% { box-shadow: 0 0 18px var(--neon), 0 0 30px var(--neon-soft); }
}

.triangle-decoration {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 2;
  filter: drop-shadow(0 0 6px var(--neon-soft));
}

.triangle-decoration svg {
  animation: spin 4s linear infinite;
}

.post-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 10px 20px;
  background-color: #000000;
  color: #ffffff;
  text-decoration: none;
  border-radius: 9999px;
  font-family: sans-serif;
  font-weight: bold;
  font-size: 0.95rem;
  text-transform: none;
  letter-spacing: normal;
  border: 1px solid #333333;
  clip-path: none;
  box-shadow: none;
  transition: background-color 0.2s ease;
  position: relative;
  z-index: 2;
}

.post-button:hover {
  background-color: #1a1a1a;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}