
body {
  background-color: #000;
  color: #e60026;
  font-family: 'Courier New', Courier, monospace;
  margin: 0;
  padding: 0 12px;
  font-size: 1.2em;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
#logo-container {
  margin-bottom: 20px;
}
#logo {
  max-width: 100px;
  height: auto;
  position: relative;
  animation: glitch 1s infinite, flicker-glitch 4s infinite;
}
@keyframes glitch {
  0% { transform: translate(0); }
  20% { transform: translate(-2px, 2px); }
  40% { transform: translate(2px, -2px); }
  60% { transform: translate(-1px, 1px); }
  80% { transform: translate(1px, -1px); }
  100% { transform: translate(0); }
}
@keyframes flicker-glitch {
  0%, 96%, 100% {
    filter: grayscale(0%);
    transform: scale(1);
  }
  97% {
    filter: grayscale(100%);
    transform: scale(1.05) rotate(1deg);
  }
  98% {
    filter: grayscale(100%);
    transform: scale(0.97) rotate(-1deg);
  }
  99% {
    filter: grayscale(0%);
    transform: scale(1) rotate(0);
  }
}
#terminal-wrapper {
  width: min(92vw, 820px);
  text-align: left;
  position: relative;
  padding-top: 46px;
}
#sound-toggle {
  position: absolute;
  top: 6px;
  right: 0;
  margin: 0;
  width: 38px;
  height: 38px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #111;
  color: #e60026;
  border: 1px solid #e60026;
  font-family: 'Courier New', Courier, monospace;
  cursor: pointer;
  z-index: 10;
}
#sound-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#sound-toggle .icon-speaker {
  fill: currentColor;
  stroke: none;
}
#sound-toggle .icon-wave {
  opacity: 1;
}
#sound-toggle .icon-mute {
  opacity: 0;
}
#sound-toggle[aria-pressed="false"] {
  color: #8a8a8a;
  border-color: #555;
}
#sound-toggle[aria-pressed="false"] .icon-wave {
  opacity: 0;
}
#sound-toggle[aria-pressed="false"] .icon-mute {
  opacity: 1;
}
.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;
}
#terminal {
  white-space: pre-wrap;
  line-height: 1.4;
}
.cursor {
  display: inline-block;
  width: 10px;
  animation: blink 1s infinite;
}
@keyframes blink {
  0%, 50% { background-color: #e60026; }
  51%, 100% { background-color: transparent; }
}
#continue {
  display: block;
  margin-top: 20px;
  font-style: italic;
  color: #ff3344;
  opacity: 0.88;
}

#continue.is-ready {
  opacity: 1;
}

.prompt-action {
  display: inline-block;
  padding: 0 4px;
  border-radius: 4px;
  color: #ffd1d8;
  font-style: normal;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.prompt-action:focus-visible {
  outline: 1px solid #ff415c;
  outline-offset: 2px;
}

#profile-panel,
#patent-panel {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  z-index: 50;
  padding: 20px;
}

#profile-panel.open,
#patent-panel.open {
  display: block;
}

#profile-card,
#patent-card {
  max-width: 900px;
  margin: 0 auto;
  border: 1px solid #e60026;
  background: #070707;
  color: #ffb7c0;
  padding: 18px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  font-size: 0.9rem;
}

#profile-card h2,
#profile-card h3,
#patent-card h2,
#patent-card h3 {
  color: #ff415c;
  margin-top: 14px;
}

#profile-card h2,
#patent-card h2 {
  margin-top: 0;
}

#profile-card ul,
#patent-card ul {
  margin: 6px 0 10px;
}

#patent-card p a {
  color: #ffd1d8;
}

#close-profile,
#close-patent {
  float: right;
  background: #e60026;
  color: #fff;
  border: none;
  padding: 7px 10px;
  font-family: 'Courier New', Courier, monospace;
  cursor: pointer;
}
@media (max-width: 1024px) {
  body {
    font-size: 1.05em;
  }
  #logo {
    max-width: 90px;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 0.95em;
    justify-content: flex-start;
    padding-top: 28px;
    padding-bottom: 28px;
  }
  #terminal-wrapper {
    width: 100%;
    padding-top: 50px;
  }
  #sound-toggle {
    width: 42px;
    height: 42px;
    top: 4px;
    right: 0;
  }
  #profile-panel {
    padding: 12px;
  }
  #patent-panel {
    padding: 12px;
  }
  #profile-card,
  #patent-card {
    max-height: calc(100vh - 24px);
    max-height: calc(100svh - 24px);
    padding: 14px;
    font-size: 0.84rem;
  }
  .prompt-action {
    padding: 2px 6px;
  }
}
