:root {
  --void: #07080c;
  --ice: #d7fff2;
  --mercury: #9bd7ff;
  --gold: #e6c07a;
  --blood: #6a2a22;
  --phosphor: #7cff9a;
}

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

html, body {
  min-height: 100%;
  background: var(--void);
  color: var(--ice);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

body {
  overflow-x: hidden;
  background:
    radial-gradient(1200px 700px at 50% -10%, #163328 0%, transparent 55%),
    radial-gradient(800px 500px at 110% 80%, #2a1010 0%, transparent 50%),
    var(--void);
}

#ash {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.scan {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0 3px,
    rgba(0, 0, 0, 0.18) 3px 4px
  );
  opacity: 0.35;
}

.plate {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.4rem;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid rgba(230, 192, 122, 0.25);
}

.plate i { font-style: normal; color: var(--mercury); letter-spacing: 0.12em; }

.scope {
  position: relative;
  z-index: 3;
  max-width: 42rem;
  margin: 12vh auto 8rem;
  padding: 0 1.25rem;
  text-align: center;
}

.kicker {
  color: var(--phosphor);
  font-size: 0.72rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
}

h1 em {
  display: block;
  font-style: normal;
  font-size: clamp(4.2rem, 18vw, 9rem);
  line-height: 0.8;
  letter-spacing: -0.06em;
  font-weight: 800;
  background: linear-gradient(180deg, #fff 0%, var(--ice) 40%, var(--mercury) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-transform: lowercase;
  filter: drop-shadow(0 0 18px rgba(155, 215, 255, 0.35));
}

h1 small {
  display: block;
  margin-top: 1rem;
  font-size: 0.82rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

.laws {
  list-style: none;
  margin: 2.5rem 0 2rem;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: clamp(0.95rem, 2.4vw, 1.15rem);
  color: var(--phosphor);
  line-height: 1.9;
}

.lab {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid rgba(155, 215, 255, 0.22);
  text-align: left;
  background: rgba(7, 8, 12, 0.92);
  position: relative;
  z-index: 4;
}

.lab div {
  padding: 0.9rem 1rem;
  border-right: 1px solid rgba(155, 215, 255, 0.12);
  border-bottom: 1px solid rgba(155, 215, 255, 0.12);
}

.lab div:nth-child(2n) { border-right: 0; }
.lab dt {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.35rem;
}
.lab dd { font-size: 0.92rem; color: var(--ice); }

.oracle {
  min-height: 4.5rem;
  margin-top: 2rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: #f4e7c8;
}

.gaze {
  position: relative;
  z-index: 5;
  width: min(70vw, 280px);
  margin: 0.4rem auto 1.4rem;
}

.ball {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  transform: rotate(-8deg);
  background:
    repeating-linear-gradient(90deg, transparent 0 14px, rgba(7, 8, 12, 0.07) 14px 15px),
    repeating-linear-gradient(0deg, transparent 0 14px, rgba(7, 8, 12, 0.05) 14px 15px),
    radial-gradient(circle at 50% 50%, #e7f2ea 0%, #b7c7bc 72%, #6d7c72 100%);
  box-shadow:
    inset 0 0 0 10px rgba(7, 8, 12, 0.18),
    0 18px 40px rgba(0, 0, 0, 0.45);
}

.stamp {
  position: absolute;
  z-index: 6;
  top: 16%;
  left: 12%;
  padding: 0.15rem 0.35rem;
  border: 2px solid #8d2a22;
  color: #8d2a22;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  transform: rotate(-18deg);
  background: rgba(231, 242, 234, 0.72);
}

.iris {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 62%;
  height: 62%;
  margin: -31% 0 0 -31%;
  border-radius: 50%;
  overflow: hidden;
  background:
    repeating-conic-gradient(from 4deg, #10241c 0deg 7deg, #d7fff2 7deg 8deg, #16382c 8deg 16deg);
  box-shadow: inset 0 0 0 6px rgba(7, 8, 12, 0.55);
  will-change: transform;
}

.ring {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18% 8% 42%;
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(7, 8, 12, 0.72);
  animation: spin 22s linear infinite;
  pointer-events: none;
}

.pupil {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 38%;
  height: 38%;
  margin: -19% 0 0 -19%;
  border-radius: 50%;
  overflow: hidden;
  background: #050608;
  box-shadow: 0 0 0 3px rgba(230, 192, 122, 0.35);
}

.pupil::before {
  content: "";
  position: absolute;
  left: 16%;
  right: 16%;
  bottom: 10%;
  height: 68%;
  background:
    repeating-linear-gradient(90deg, #10140f 0 3px, #e6c07a 3px 4px, #10140f 4px 8px),
    repeating-linear-gradient(#10140f 0 4px, transparent 4px 7px);
  opacity: 0.9;
}

.cross {
  position: absolute;
  inset: 14%;
  z-index: 4;
  border-radius: 50%;
  pointer-events: none;
  background:
    linear-gradient(#e6c07a, #e6c07a) center / 1px 100% no-repeat,
    linear-gradient(#e6c07a, #e6c07a) center / 100% 1px no-repeat;
  opacity: 0.7;
}

.not {
  position: absolute;
  z-index: 6;
  right: -4%;
  bottom: 22%;
  padding: 0.12rem 0.35rem;
  background: var(--phosphor);
  color: #07080c;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transform: rotate(14deg);
}

.gaze-cap {
  margin-top: 0.85rem;
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

h1 s {
  display: block;
  margin-top: -0.35rem;
  font-size: 0.95rem;
  letter-spacing: 0.55em;
  text-decoration: line-through;
  color: rgba(230, 192, 122, 0.45);
}

@keyframes spin { to { transform: rotate(1turn); } }

.spine {
  position: fixed;
  z-index: 2;
  top: 0;
  left: 0.4rem;
  height: 100%;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  letter-spacing: 0.8em;
  font-size: 0.7rem;
  color: rgba(215, 255, 242, 0.18);
  pointer-events: none;
}

.spine-r { left: auto; right: 0.4rem; transform: none; color: rgba(230, 192, 122, 0.2); }

footer {
  position: relative;
  z-index: 3;
  padding: 0 1.4rem 3rem;
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: rgba(215, 255, 242, 0.55);
}

.back { margin-top: 2rem; }
.back a { color: var(--gold); letter-spacing: 0.2em; text-transform: uppercase; font-size: 0.8rem; }

@media (max-width: 640px) {
  .lab { grid-template-columns: 1fr; }
  .lab div { border-right: 0; }
  .plate { flex-direction: column; }
  .spine { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ring { animation: none; }
}
