:root {
  color-scheme: dark;
  --bg: #050505;
  --panel: #10110f;
  --panel-2: #171914;
  --text: #f2f2e8;
  --muted: #a7aa9a;
  --lime: #b6ff00;
  --orange: #ff5a1f;
  --line: rgba(242, 242, 232, 0.14);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at 20% 0%, rgba(182, 255, 0, 0.12), transparent 28rem),
    radial-gradient(circle at 90% 20%, rgba(255, 90, 31, 0.14), transparent 24rem),
    linear-gradient(135deg, var(--bg) 0%, #0b0c09 55%, var(--bg) 100%);
  color: var(--text);
}

a {
  color: var(--lime);
  text-decoration: none;
}

a:hover {
  color: var(--orange);
}

.chat-shell {
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  width: min(100%, 860px);
  min-height: 100dvh;
  margin: 0 auto;
  background: rgba(5, 5, 5, 0.72);
  border-inline: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.chat-hero {
  padding: 1.2rem 1rem 0.8rem;
  text-align: center;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 5, 5, 0.82);
  backdrop-filter: blur(18px);
}

.sammy-big {
  width: 7.5rem;
  margin: 0 auto 0.7rem;
  filter: drop-shadow(0 0 28px rgba(182, 255, 0, 0.24));
}

.sammy-big svg,
.sammy-avatar svg {
  display: block;
  width: 100%;
  height: auto;
}

.body {
  fill: var(--lime);
  stroke: var(--text);
  stroke-width: 5;
}

.horn {
  fill: var(--orange);
  stroke: var(--text);
  stroke-width: 4;
}

.eye-white,
.tooth {
  fill: var(--text);
}

.pupil {
  fill: var(--bg);
}

.mouth {
  fill: none;
  stroke: var(--bg);
  stroke-width: 8;
  stroke-linecap: round;
}

.eyebrow {
  margin: 0 0 0.45rem;
  color: var(--lime);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 10vw, 4.8rem);
  line-height: 0.9;
  letter-spacing: -0.08em;
  text-transform: uppercase;
}

.intro {
  margin: 0.7rem auto 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.chat-log {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-height: 0;
  padding: 1rem 1rem 7.2rem;
  overflow-y: auto;
  scroll-behavior: smooth;
}

.message-row {
  display: flex;
  align-items: flex-end;
  gap: 0.55rem;
  animation: message-in 260ms ease both;
}

.message-row.user {
  justify-content: flex-end;
}

.sammy-avatar {
  flex: 0 0 auto;
  width: 2.35rem;
  height: 2.35rem;
  padding: 0.12rem;
  border-radius: 999px;
  background: var(--lime);
  border: 2px solid var(--text);
  box-shadow: 4px 4px 0 rgba(255, 90, 31, 0.8);
}

.bubble {
  max-width: min(78%, 34rem);
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 1.15rem 1.15rem 1.15rem 0.25rem;
  background: var(--panel-2);
  color: var(--text);
  line-height: 1.45;
}

.sammy .bubble {
  border-color: rgba(182, 255, 0, 0.72);
}

.user .bubble {
  border-color: rgba(182, 255, 0, 0.95);
  border-radius: 1.15rem 1.15rem 0.25rem 1.15rem;
  background: linear-gradient(135deg, var(--lime), #8fd000);
  color: var(--bg);
  font-weight: 800;
}

.domain-available {
  color: var(--lime);
  font-weight: 900;
}

.domain-taken {
  color: #ff4b4b;
  font-weight: 900;
}

.typing {
  display: inline-flex;
  gap: 0.28rem;
  align-items: center;
}

.typing span {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--lime);
  animation: typing-dot 900ms ease-in-out infinite;
}

.typing span:nth-child(2) {
  animation-delay: 140ms;
}

.typing span:nth-child(3) {
  animation-delay: 280ms;
}

.chat-form {
  position: fixed;
  right: max(0px, calc((100vw - 860px) / 2));
  bottom: 2.1rem;
  left: max(0px, calc((100vw - 860px) / 2));
  display: flex;
  gap: 0.55rem;
  padding: 0.8rem 1rem;
  border-top: 1px solid var(--line);
  background: rgba(5, 5, 5, 0.9);
  backdrop-filter: blur(18px);
}

.chat-form input {
  width: 100%;
  min-height: 3.25rem;
  padding: 0 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: none;
  background: var(--panel);
  color: var(--text);
  font: inherit;
}

.chat-form input:focus {
  border-color: var(--lime);
  box-shadow: 0 0 0 4px rgba(182, 255, 0, 0.12);
}

.chat-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 3.25rem;
  padding: 0 1rem;
  border: 2px solid var(--text);
  border-radius: 999px;
  background: var(--lime);
  color: var(--bg);
  font: inherit;
  font-weight: 950;
  text-transform: uppercase;
  box-shadow: 5px 5px 0 var(--orange);
  cursor: pointer;
}

.chat-form button:active {
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 var(--orange);
}

.button-face {
  color: var(--orange);
  font-size: 1.1rem;
}

.chat-footer {
  position: fixed;
  right: max(0px, calc((100vw - 860px) / 2));
  bottom: 0;
  left: max(0px, calc((100vw - 860px) / 2));
  padding: 0.45rem 1rem 0.65rem;
  text-align: center;
  background: rgba(5, 5, 5, 0.92);
  font-size: 0.86rem;
}

.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;
}

@keyframes message-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes typing-dot {
  0%,
  80%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-0.25rem);
  }
}

@media (min-width: 720px) {
  .chat-hero {
    padding-top: 1.6rem;
  }

  .chat-log {
    padding-inline: 1.4rem;
  }

  .chat-form {
    padding-inline: 1.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}