* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0a0f;
  --fg: #e8e6d9;
  --dim: #6b6858;
  --accent: #d4a657;
  --rare: #8a7ec4;
}

html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
}

body {
  background-image:
    radial-gradient(circle at 20% 10%, rgba(212, 166, 87, 0.06), transparent 50%),
    radial-gradient(circle at 80% 90%, rgba(138, 126, 196, 0.06), transparent 50%);
}

main {
  max-width: 640px;
  margin: 0 auto;
  padding: 12vh 24px 6vh;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

header { display: flex; flex-direction: column; gap: 16px; }

.year {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
}

h1 {
  font-size: clamp(32px, 6vw, 52px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.tagline {
  color: var(--fg);
  opacity: 0.85;
  max-width: 48ch;
}

.status { padding: 16px 0; border-top: 1px solid #1c1b18; border-bottom: 1px solid #1c1b18; }

.badge {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}

.cursor {
  display: inline-block;
  margin-left: 2px;
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.figures {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 36px;
  padding: 8px 0 4px;
}

.pix-fig {
  width: 44px;
  height: auto;
  color: var(--dim);
  filter: drop-shadow(0 0 10px rgba(212, 166, 87, 0.08));
  animation: breathe 3.6s ease-in-out infinite;
}

.pix-fig.fig-b { width: 52px; color: #8a8272; }
.pix-fig.fig-c { width: 36px; }

.pix-fig.fig-a { animation-delay: 0s; }
.pix-fig.fig-b { animation-delay: 0.8s; }
.pix-fig.fig-c { animation-delay: 1.6s; }

.pix-fig .eyes { animation: flicker 4.2s steps(1) infinite; }
.pix-fig.fig-b .eyes { animation-delay: 1.1s; }
.pix-fig.fig-c .eyes { animation-delay: 2.3s; }

@keyframes breathe {
  0%, 100% { opacity: 0.5; transform: translateY(0); }
  50%      { opacity: 0.85; transform: translateY(-1px); }
}

@keyframes flicker {
  0%, 92%, 100% { opacity: 1; }
  93%, 95%      { opacity: 0.1; }
  94%           { opacity: 1; }
}

.souls {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.souls-header {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--dim);
  text-transform: lowercase;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px dashed #1c1b18;
}

.soul-row {
  display: grid;
  grid-template-columns: 14px 82px 1fr 80px;
  align-items: center;
  gap: 14px;
  padding: 6px 0;
  color: var(--dim);
  font-size: 12px;
  border-bottom: 1px solid rgba(28, 27, 24, 0.5);
  transition: color 0.2s, background 0.2s;
}

.soul-row:last-child { border-bottom: none; }
.soul-row:hover { color: var(--fg); background: rgba(212, 166, 87, 0.02); }

.soul-marker {
  font-size: 11px;
  text-align: center;
  color: var(--accent);
  line-height: 1;
}

.state-dormant .soul-marker { color: #4d4a3c; }
.state-sealed  .soul-marker { color: #7a6a4a; }
.state-binding .soul-marker { color: var(--accent); animation: marker-pulse 1.8s ease-in-out infinite; }
.state-rare    .soul-marker { color: var(--rare); animation: marker-pulse 2.6s ease-in-out infinite; }

.soul-id {
  color: var(--fg);
  opacity: 0.55;
  letter-spacing: 0.05em;
  font-size: 11px;
  white-space: nowrap;
}

.state-rare .soul-id { color: var(--rare); opacity: 0.85; }

.soul-bar {
  display: block;
  height: 10px;
  position: relative;
}

.redacted-bar {
  display: inline-block;
  height: 100%;
  background: #1c1b18;
  border-left: 2px solid #2a2824;
  border-radius: 1px;
  vertical-align: middle;
  user-select: none;
}

.state-rare .redacted-bar.rare-bar {
  background: #1d1929;
  border-left-color: #3a2f52;
}

.redacted-bar.sweep {
  background: linear-gradient(90deg, #1c1b18 0%, #3a3420 50%, #1c1b18 100%);
  background-size: 200% 100%;
  animation: bar-sweep 2.4s linear infinite;
  border-left-color: var(--accent);
}

.soul-state {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  text-align: right;
  white-space: nowrap;
}

.state-bound   .soul-state { color: var(--accent); }
.state-dormant .soul-state { color: #4d4a3c; }
.state-sealed  .soul-state { color: #7a6a4a; }
.state-binding .soul-state { color: var(--accent); animation: text-pulse 1.8s ease-in-out infinite; }
.state-rare    .soul-state { color: var(--rare); }

.soul-ellipsis { display: inline-block; width: 1.5ch; text-align: left; }

@keyframes marker-pulse {
  0%, 100% { opacity: 0.25; }
  50%      { opacity: 1; }
}

@keyframes text-pulse {
  0%, 100% { opacity: 0.5; }
  50%      { opacity: 1; }
}

@keyframes bar-sweep {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* legacy redacted span — kept generic for any inline use */
.redacted {
  background: #1c1b18;
  color: transparent;
  padding: 0 6px;
  border-radius: 2px;
  user-select: none;
}

@media (max-width: 520px) {
  .soul-row {
    grid-template-columns: 12px 72px 1fr 64px;
    gap: 10px;
    font-size: 11px;
  }
  .soul-id { font-size: 10px; }
  .soul-state { font-size: 9px; }
}

.signup { display: flex; flex-direction: column; gap: 14px; }

.signup-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--dim);
  text-transform: lowercase;
}

#signup-form {
  display: flex;
  align-items: stretch;
  background: #0e0d0a;
  border: 1px solid #2a2824;
  border-radius: 3px;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

#signup-form::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, transparent 40%);
}

#signup-form:focus-within {
  border-color: var(--accent);
  box-shadow:
    0 0 0 1px var(--accent),
    0 0 32px -4px rgba(212, 166, 87, 0.25),
    inset 0 0 24px -12px rgba(212, 166, 87, 0.2);
}

.signup-prompt {
  display: flex;
  align-items: center;
  padding: 0 14px;
  color: var(--accent);
  background: #161410;
  border-right: 1px solid #2a2824;
  font-weight: 700;
  font-size: 15px;
  user-select: none;
  letter-spacing: 0;
}

#signup-form input[type="email"] {
  flex: 1 1 auto;
  min-width: 0;
  background: transparent;
  border: none;
  color: var(--fg);
  font: inherit;
  font-size: 13px;
  padding: 13px 14px;
  outline: none;
  letter-spacing: 0.03em;
  caret-color: var(--accent);
}

#signup-form input[type="email"]::placeholder {
  color: #45422f;
  font-style: italic;
  letter-spacing: 0.02em;
}

#signup-form input[type="email"]::selection {
  background: rgba(212, 166, 87, 0.35);
  color: var(--fg);
}

#signup-form button {
  background: transparent;
  border: none;
  border-left: 1px solid #2a2824;
  color: var(--accent);
  font: inherit;
  font-size: 12px;
  padding: 0 20px;
  cursor: pointer;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, letter-spacing 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

#signup-form button .btn-arrow {
  transition: transform 0.25s ease;
  display: inline-block;
}

#signup-form button:hover {
  background: var(--accent);
  color: var(--bg);
  letter-spacing: 0.18em;
}

#signup-form button:hover .btn-arrow {
  transform: translateX(3px);
}

#signup-form button:active {
  transform: translateY(1px);
}

.signup-msg {
  font-size: 11px;
  min-height: 14px;
  color: var(--dim);
  letter-spacing: 0.08em;
  padding-left: 2px;
  font-family: inherit;
}

.signup-msg.ok { color: var(--accent); text-shadow: 0 0 12px rgba(212, 166, 87, 0.4); }
.signup-msg.err { color: #c76a5a; }

@media (max-width: 520px) {
  #signup-form { flex-wrap: wrap; }
  #signup-form input[type="email"] { flex: 1 1 100%; border-bottom: 1px solid #2a2824; }
  #signup-form button { flex: 1 1 100%; padding: 12px 20px; border-left: none; justify-content: center; }
  .signup-prompt { display: none; }
}

footer {
  margin-top: auto;
  font-size: 11px;
  color: var(--dim);
  letter-spacing: 0.1em;
}
