/* ============================================================
   MARRIAGE.OS — 01_Boot
   Faithful static export of the Wonder artboard "Marriage Os
   Boot Sequence" + reproduced CRT effects (shader glow,
   scanlines, vignette, phosphor text-glow, boot reveal, cursor).

   Exact values carried over from the Wonder source:
     bg        #0a0805      amber      #ffb000
     green     #33ff99      warn/red   #ff5e3a
     dim amber #8a6414      footer     #ffb00066 (amber @ 40%)
     frame     1440 x 900   padding    30px top / 80px sides
   ============================================================ */

:root {
  --bg:        #0a0805;
  --amber:     #ffb000;
  --amber-dim: #8a6414;
  --green:     #33ff99;
  --warn:      #ff5e3a;
  --footer:    rgba(255, 176, 0, 0.40);
  --pad-x:     80px;   /* Tailwind px-20  */
  --pad-top:   30px;   /* Tailwind pt-[30px] */
}

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

html, body { height: 100%; }

body {
  background: var(--bg);
  font-family: 'JetBrains Mono', ui-monospace, 'Courier New', monospace;
  overflow: hidden;
}

/* ---- Screen frame ---------------------------------------- */
.screen {
  position: relative;
  width: 100vw;
  min-height: 100vh;
  padding: var(--pad-top) var(--pad-x) 0;
  background: var(--bg);
  overflow: hidden;
}

/* Ambient glow now comes from the shared oil-slick shader
   (shader.css → .shader-bg). The old .screen::before stand-in
   is removed to avoid a double wash. */

/* Diegetic forward link: the "system ready" line -> dashboard */
a.system-ready { text-decoration: none; cursor: pointer; }
a.system-ready:hover .msg,
a.system-ready:focus-visible .msg {
  text-shadow: 0 0 12px rgba(255, 176, 0, 0.65);
  outline: none;
}

/* ---- Boot content block (z-10) --------------------------- */
.boot {
  position: relative;
  z-index: 10;
  width: fit-content;
  font-size: 18px;      /* text-lg  */
  line-height: 1.9;
}

.boot-title {
  color: var(--amber);
  font-size: 30px;      /* text-3xl */
  font-weight: 700;
  line-height: 1.25;
  text-shadow: 0 0 10px rgba(255, 176, 0, 0.45);
}

.boot-subtitle {
  margin-bottom: 28px;  /* mb-7 */
  color: var(--amber-dim);
  font-size: 16px;      /* text-base */
  letter-spacing: 1.5px;
}

.boot-line {
  display: flex;
  gap: 16px;            /* gap-4 */
  font-size: 16px;
}

.tag {
  width: 64px;          /* w-16 */
  flex: none;
}
.tag.ok   { color: var(--green); text-shadow: 0 0 6px rgba(51, 255, 153, 0.35); }
.tag.warn { color: var(--warn);  text-shadow: 0 0 6px rgba(255, 94, 58, 0.40); }

.msg {
  color: var(--amber);
  text-shadow: 0 0 5px rgba(255, 176, 0, 0.30);
}

/* System ready line */
.system-ready {
  align-items: center;
  gap: 10px;            /* gap-2.5 */
  margin-top: 28px;     /* mt-7 */
}

.cursor {
  width: 11px;
  height: 20px;         /* h-5 */
  background: var(--amber);
  box-shadow: 0 0 8px rgba(255, 176, 0, 0.55);
  animation: blink 1.1s steps(1, end) infinite;
  animation-delay: 3.8s;
}

/* ---- Footer --------------------------------------------- */
.footer {
  position: absolute;
  left: var(--pad-x);   /* left-20 */
  bottom: 28px;         /* bottom-7 */
  z-index: 10;
  color: var(--footer);
  font-size: 11px;
  letter-spacing: 0.5px;
}

/* ---- Overlays ------------------------------------------- */
.overlay { position: fixed; inset: 0; pointer-events: none; }

/* Vignette Overlay (z-20) — exact radial gradient from source */
.vignette {
  z-index: 20;
  background: radial-gradient(circle,
              rgba(10, 8, 5, 0) 55%,
              rgba(0, 0, 0, 0.55) 100%);
}

/* Scanline Overlay (z-30) — CRT scanlines + slow sweep */
.scanlines {
  z-index: 30;
  background: repeating-linear-gradient(
              to bottom,
              rgba(0, 0, 0, 0)    0px,
              rgba(0, 0, 0, 0)    2px,
              rgba(0, 0, 0, 0.22) 3px);
  overflow: hidden;
}
.scanlines::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 45%;
  background: linear-gradient(
              rgba(255, 176, 0, 0),
              rgba(255, 176, 0, 0.035),
              rgba(255, 176, 0, 0));
  animation: sweep 7s linear infinite;
}

/* ---- Keyframes ------------------------------------------ */
.boot-title,
.boot-subtitle,
.boot-line {
  opacity: 0;
  animation: reveal 0.4s ease-out forwards;
  animation-delay: var(--d, 0s);
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes blink {
  0%, 49%   { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@keyframes sweep {
  from { transform: translateY(-60%); }
  to   { transform: translateY(260%); }
}

@keyframes flicker {
  0%, 96%, 100% { opacity: 1; }
  97%           { opacity: 0.82; }
  98%           { opacity: 1; }
  99%           { opacity: 0.88; }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  .boot-title, .boot-subtitle, .boot-line { opacity: 1; animation: none; }
  .cursor { animation: none; }
  .scanlines::after, .screen::before { animation: none; }
}
