:root {
  color-scheme: light dark;
}
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  margin: 0;
}
body {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr;
  background: #0b0c10;
  color: #eaeaea;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial,
    sans-serif;
}
header {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 1;
}
header a {
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: inherit;
}
header a:hover {
  background: rgba(255, 255, 255, 0.08);
}
.terminal-cta {
  border: 1px solid rgba(64, 242, 255, 0.35);
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  background: linear-gradient(
    135deg,
    rgba(64, 242, 255, 0.12),
    rgba(155, 139, 255, 0.18)
  );
  color: rgba(243, 251, 255, 0.82);
  box-shadow: 0 0 0 0 rgba(64, 242, 255, 0.4);
  text-shadow: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease,
    transform 0.2s ease;
  position: relative;
  animation: terminalCtaPulse 2.8s ease-in-out infinite;
}
.terminal-cta:hover,
.terminal-cta:focus-visible {
  background: linear-gradient(
    135deg,
    rgba(64, 242, 255, 0.18),
    rgba(155, 139, 255, 0.24)
  );
  border-color: rgba(155, 139, 255, 0.45);
  color: #f7fbff;
  transform: translateY(-1px) scale(1.02);
}
.terminal-cta:focus-visible {
  outline: 2px solid rgba(64, 242, 255, 0.5);
  outline-offset: 2px;
}
@keyframes terminalCtaPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(64, 242, 255, 0.32);
    filter: brightness(1);
  }
  50% {
    box-shadow: 0 0 24px 8px rgba(64, 242, 255, 0.22);
    filter: brightness(1.05);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(64, 242, 255, 0.32);
    filter: brightness(1);
  }
}
main {
  height: 100%;
  overflow: auto;
}
#viewer {
  margin: 0 auto;
  width: min(100%, 1100px);
  padding: 16px;
  display: grid;
  gap: 16px;
  align-items: start;
  justify-items: center;
}
@media (max-width: 768px) {
  #viewer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-left: 8px;
    padding-right: 8px;
  }
}
.page {
  width: 100%;
  background: #111318;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
canvas {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}
.fallback {
  max-width: 820px;
  margin: 10vh auto;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 24px;
  border-radius: 16px;
  text-align: center;
}
.fallback a {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: inherit;
}
.fallback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 18px;
}
.sr-only {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
  border: 0;
  padding: 0;
  margin: -1px;
}
.email-wrapper {
  position: relative;
  display: inline-block;
}
.toast {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translate(-50%, -12px) scale(0.98);
  background: rgba(32, 33, 36, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  color: #eaeaea;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.92rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 999;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}
.toast .icon {
  margin-right: 8px;
  font-size: 1rem;
  vertical-align: -1px;
}
@media (prefers-reduced-motion: reduce) {
  .toast {
    transition: none;
  }
  .terminal-cta {
    animation: none;
    filter: none;
  }
}
