:root {
  color-scheme: dark;
  font-family: Arial, Helvetica, sans-serif;
  color: #f1f8fa;
  background: #000000;
  font-synthesis: none;
  --cyan: #79d7f4;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100svh;
  background: #000000;
}
button, a { -webkit-tap-highlight-color: transparent; }
::selection { background: var(--cyan); color: #03080a; }
.masthead {
  height: 96px;
  margin: 0 clamp(24px, 4vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid #c5e8f012;
}
.brand {
  color: #f1f8fa;
  text-decoration: none;
  font-size: clamp(14px, 1.2vw, 18px);
  font-weight: 800;
  letter-spacing: -.035em;
  white-space: nowrap;
}
.brand-eyes { color: var(--cyan); margin: 0 .06em; }
.page-label {
  font-family: "Lucida Console", "Courier New", monospace;
  font-size: 12px;
  letter-spacing: .16em;
  color: #89a0a9;
}
main {
  min-height: calc(100svh - 96px);
  display: grid;
  place-items: center;
  padding: 36px 24px 72px;
}
.pfp { width: min(440px, 100%, max(260px, calc(100svh - 290px))); position: relative; }
.portrait {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  background: #000000;
  border: 1px solid #acd9e530;
  border-radius: 3px;
  box-shadow: 0 28px 90px #0008, 0 0 64px #79d7f407;
}
.portrait::before, .portrait::after {
  content: "";
  position: absolute;
  width: 19px;
  height: 19px;
  z-index: 1;
  pointer-events: none;
}
.portrait::before { top: -1px; left: -1px; border-top: 1px solid var(--cyan); border-left: 1px solid var(--cyan); }
.portrait::after { bottom: -1px; right: -1px; border-bottom: 1px solid var(--cyan); border-right: 1px solid var(--cyan); }
.portrait img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 2px; transition: opacity 140ms ease; }


.actions { display: grid; grid-template-columns: 1.15fr 1fr; gap: 12px; margin-top: 24px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  min-height: 56px;
  padding: 15px 12px;
  border: 1px solid transparent;
  border-radius: 2px;
  font: 600 14px/1.4 Arial, Helvetica, sans-serif;
  cursor: pointer;
  touch-action: manipulation;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease, opacity 160ms ease;
}
.button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.button-primary { background: var(--cyan); color: #041015; }
.button-secondary { background: #091216; border-color: #b9d9e02e; color: #e1eef2; }
@media (hover: hover) {
  .button-primary:hover:not(:disabled) { background: #a2e7ff; }
  .button-secondary:hover:not(:disabled) { background: #11232c; border-color: #b9d9e080; }
}
.button:active:not(:disabled) { transform: translateY(1px); }
.button:disabled { opacity: .5; cursor: wait; }
:focus-visible { outline: 2px solid #f1f8fa; outline-offset: 5px; }
.status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); }
.status.is-error, .no-script { position: static; width: auto; height: auto; margin: 16px 0 0; overflow: visible; clip-path: none; color: #f6baa6; font-size: 14px; line-height: 1.5; text-align: center; }
@keyframes reveal { from { opacity: .65; transform: scale(.991); } to { opacity: 1; transform: scale(1); } }
@media (max-width: 540px) {
  .masthead { height: 76px; margin-inline: 24px; }
  main { min-height: calc(100svh - 76px); padding: 32px 24px 64px; }
  .pfp { width: min(440px, 100%); }
  .actions { gap: 10px; margin-top: 20px; }
}
#randomize[aria-busy="true"] svg { animation: loading-spin .8s linear infinite; }
@keyframes loading-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

