/* DEGEN SIMULATOR — 1-Viewport Mysterious Coming Soon
   Dark closed-floor broadcast poster + live phantom market oscilloscope */

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./assets/fonts/ibm-plex-mono-400.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./assets/fonts/ibm-plex-mono-500.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./assets/fonts/ibm-plex-mono-600.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("./assets/fonts/ibm-plex-mono-700.woff2") format("woff2");
}
@font-face {
  font-family: "Schibsted Grotesk Variable";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("./assets/fonts/schibsted-grotesk.woff2") format("woff2");
}

:root {
  --bg: #09090a;
  --bg-2: #101012;
  --line: rgb(233 230 223 / 0.09);
  --line-strong: rgb(233 230 223 / 0.2);
  --fg: #e9e6df;
  --dim: #8b8881;
  --faint: #575550;
  --signal: #ff5a1f;
  --signal-glow: rgb(255 90 31 / 0.14);
  --long: #5aa37f;
  --short: #d0625a;

  --coin-slug: #9bd45a;
  --coin-toast: #f2a541;
  --coin-grndma: #e58fb8;
  --coin-goose: #f5f1e6;
  --coin-mold: #5fd3c3;

  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --font-head: "Schibsted Grotesk Variable", "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.45;
  color-scheme: dark;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--signal);
  color: var(--bg);
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 1px solid var(--signal);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

/* ───────────────────────── living phantom market backdrop ───────────────────────── */

.bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 0;
}

.bg-vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(62% 52% at 50% 48%, rgb(255 90 31 / 0.055), transparent 72%),
    radial-gradient(100% 100% at 50% 50%, transparent 45%, rgb(4 4 5 / 0.72) 100%);
}

/* ───────────────────────── 1-viewport architectural frame ───────────────────────── */

.viewport-shell {
  position: relative;
  z-index: 2;
  height: 100dvh;
  padding: clamp(10px, 2vw, 22px);
  display: flex;
}

.frame {
  position: relative;
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  overflow: hidden;
}

/* registration corners */
.corner {
  position: absolute;
  width: 12px;
  height: 12px;
  pointer-events: none;
  z-index: 5;
}

.corner--tl {
  top: -1px;
  left: -1px;
  border-top: 2px solid var(--signal);
  border-left: 2px solid var(--signal);
}

.corner--tr {
  top: -1px;
  right: -1px;
  border-top: 2px solid var(--line-strong);
  border-right: 2px solid var(--line-strong);
}

.corner--bl {
  bottom: -1px;
  left: -1px;
  border-bottom: 2px solid var(--line-strong);
  border-left: 2px solid var(--line-strong);
}

.corner--br {
  bottom: -1px;
  right: -1px;
  border-bottom: 2px solid var(--signal);
  border-right: 2px solid var(--signal);
}

@keyframes glass-recoil {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  20% {
    transform: translate3d(-4px, 2px, 0);
  }
  45% {
    transform: translate3d(4px, -2px, 0);
  }
  70% {
    transform: translate3d(-2px, 1px, 0);
  }
}

.frame.is-knocked {
  animation: glass-recoil 0.28s cubic-bezier(0.2, 0.9, 0.3, 1);
  border-color: rgb(255 90 31 / 0.45);
}

/* ───────────────────────── top & bottom rails ───────────────────────── */

.rail {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 clamp(14px, 2.2vw, 26px);
  background: rgb(9 9 10 / 0.65);
  backdrop-filter: blur(4px);
}

.rail--top {
  height: 48px;
  border-bottom: 1px solid var(--line);
}

.rail--bottom {
  height: 44px;
  border-top: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand-sq {
  width: 10px;
  height: 10px;
  background: var(--signal);
  flex-shrink: 0;
}

.brand-name {
  color: var(--fg);
}

.brand-sub {
  margin-left: -3px;
  color: var(--dim);
  font-weight: 500;
}

.clock {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.14em;
  font-variant-numeric: tabular-nums;
  color: var(--dim);
  white-space: nowrap;
}

.clock-label {
  color: var(--faint);
}

.clock-time {
  color: var(--fg);
  font-weight: 500;
}

.audio-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
  white-space: nowrap;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.audio-btn:hover {
  border-color: var(--fg);
  color: var(--fg);
}

.audio-btn[aria-pressed="true"] {
  border-color: var(--signal);
  color: var(--fg);
}

.audio-dot {
  width: 5px;
  height: 5px;
  background: var(--faint);
}

.audio-btn[aria-pressed="true"] .audio-dot {
  background: var(--signal);
}

/* ───────────────────────── center poster stage ───────────────────────── */

.center-stage {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: clamp(16px, 3vh, 36px) clamp(16px, 4vw, 48px);
}

.poster {
  width: 100%;
  max-width: 1040px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.eyebrow {
  margin: 0;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}

.live-dot {
  width: 6px;
  height: 6px;
  background: var(--signal);
  box-shadow: 0 0 10px var(--signal);
  animation: pulse 2s ease-in-out infinite;
}

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

.sep {
  color: var(--faint);
}

.eyebrow-muted {
  color: var(--dim);
}

.redact-chip {
  display: inline-block;
  padding: 0 5px;
  background: var(--fg);
  color: var(--bg);
  font-weight: 700;
  letter-spacing: 0.1em;
}

.display-title {
  margin: clamp(16px, 2.8vh, 28px) 0 0;
  font-family: var(--font-head);
  font-size: clamp(50px, 9.6vw, 136px);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  color: var(--fg);
  text-shadow: 0 10px 40px rgb(0 0 0 / 0.6);
}

.title-row {
  display: block;
}

.title-signal {
  color: var(--signal);
}

.cryptic-sub {
  margin: clamp(16px, 2.6vh, 26px) 0 0;
  max-width: 64ch;
  font-size: clamp(12.5px, 1.25vw, 15px);
  letter-spacing: 0.02em;
  color: var(--dim);
}

/* live intercepted wire strip */
.wire-box {
  margin-top: clamp(20px, 3.6vh, 36px);
  width: 100%;
  max-width: 580px;
  min-height: 40px;
  padding: 9px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  background: rgb(16 16 18 / 0.88);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(8px);
  transition: border-color 0.2s ease;
}

.wire-box.is-alert {
  border-color: var(--signal);
}

.wire-tag {
  flex: 0 0 auto;
  padding: 1px 6px;
  background: rgb(255 90 31 / 0.14);
  border: 1px solid rgb(255 90 31 / 0.45);
  color: var(--signal);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.wire-text {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 12px;
  color: var(--fg);
  letter-spacing: 0.01em;
}

.wire-cursor {
  flex: 0 0 auto;
  width: 6px;
  height: 13px;
  background: var(--signal);
  animation: blink 1s steps(2, start) infinite;
}

@keyframes blink {
  to {
    opacity: 0;
  }
}

/* cryptic knock button */
.action-row {
  margin-top: clamp(16px, 2.4vh, 24px);
}

.knock-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  background: rgb(9 9 10 / 0.72);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg);
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.08s ease;
}

.knock-btn:hover {
  border-color: var(--signal);
  background: rgb(255 90 31 / 0.1);
}

.knock-btn:active {
  transform: scale(0.98);
}

.knock-kbd {
  padding: 1px 5px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: var(--dim);
}

/* ───────────────────────── bottom instruments rail ───────────────────────── */

.instruments {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.inst-status {
  padding: 1px 6px;
  border: 1px solid var(--line-strong);
  color: var(--dim);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.inst-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 16px;
  overflow-x: auto;
  scrollbar-width: none;
}

.inst-list::-webkit-scrollbar {
  display: none;
}

.inst-list li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--dim);
  white-space: nowrap;
}

.dot {
  width: 5px;
  height: 5px;
  flex-shrink: 0;
}
.dot--slug {
  background: var(--coin-slug);
}
.dot--toast {
  background: var(--coin-toast);
}
.dot--grndma {
  background: var(--coin-grndma);
}
.dot--goose {
  background: var(--coin-goose);
}
.dot--mold {
  background: var(--coin-mold);
}

.footer-whisper {
  margin: 0;
  font-size: 11px;
  color: var(--faint);
  white-space: nowrap;
}

.footer-whisper span {
  color: var(--dim);
}

/* ───────────────────────── goose wake easter egg ───────────────────────── */

@keyframes goose-intrude {
  0% {
    transform: translate(35%, 100%) rotate(12deg) scaleX(-1);
    opacity: 0;
  }
  18% {
    transform: translate(0, 6%) rotate(-5deg) scaleX(-1);
    opacity: 1;
  }
  78% {
    transform: translate(0, 10%) rotate(-2deg) scaleX(-1);
    opacity: 1;
  }
  100% {
    transform: translate(20%, 105%) rotate(8deg) scaleX(-1);
    opacity: 0;
  }
}

.goose-peek {
  position: absolute;
  right: 14px;
  bottom: 44px;
  width: clamp(130px, 16vw, 210px);
  pointer-events: none;
  z-index: 6;
  filter: drop-shadow(0 8px 24px rgb(0 0 0 / 0.8));
  animation: goose-intrude 2.1s cubic-bezier(0.22, 1.25, 0.36, 1) both;
}

/* ───────────────────────── responsive ───────────────────────── */

@media (max-width: 820px) {
  .footer-whisper,
  .knock-kbd {
    display: none;
  }
}

@media (max-width: 560px) {
  .brand-sub,
  .clock-label {
    display: none;
  }

  .rail--top {
    height: 44px;
  }

  .rail--bottom {
    height: 40px;
  }

  .eyebrow {
    font-size: 10px;
    gap: 6px;
    letter-spacing: 0.12em;
  }

  .display-title {
    font-size: clamp(44px, 14vw, 62px);
    line-height: 0.9;
  }

  .cryptic-sub {
    font-size: 12.5px;
  }

  .wire-box {
    padding: 8px 10px;
    gap: 8px;
  }

  .wire-text {
    font-size: 11px;
  }

  .instruments {
    width: 100%;
    justify-content: center;
    gap: 10px;
  }

  .inst-status {
    display: none;
  }

  .inst-list {
    gap: 11px;
  }

  .inst-list li {
    font-size: 10px;
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .live-dot,
  .wire-cursor,
  .frame.is-knocked,
  .goose-peek {
    animation: none !important;
  }
}
