:root {
  --bg: #07080a;
  --fg: #e9edf2;
  --muted: rgba(233, 237, 242, 0.68);

  --cyan: #49d7ff;
  --amber: #ffb84a;
  --green: #84ff63;

  --accent: var(--cyan);
  --line: rgba(233, 237, 242, 0.14);
  --line2: rgba(233, 237, 242, 0.08);

  --radius: 14px;
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.55);

  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  --script: "Snell Roundhand", "Brush Script MT", "Segoe Script", "Lucida Handwriting", cursive;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

body.preboot {
  overflow: hidden;
}

body.preboot #app {
  display: none !important;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(1100px 800px at 16% 12%, rgba(73, 215, 255, 0.10), transparent 55%),
    radial-gradient(900px 640px at 84% 18%, rgba(255, 184, 74, 0.09), transparent 60%),
    radial-gradient(1200px 900px at 60% 92%, rgba(132, 255, 99, 0.06), transparent 55%),
    var(--bg);
  color: var(--fg);
  font-family: var(--mono);
  letter-spacing: 0.2px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 10px;
  z-index: 999;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(7, 8, 10, 0.94);
  color: var(--fg);
  text-decoration: none;
}

.skip:focus { left: 10px; }

/* VHS overlay (subtle, not loud) */
.vhs {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.22;
  mix-blend-mode: screen;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255,255,255,0.03) 0px,
      rgba(255,255,255,0.03) 1px,
      transparent 2px,
      transparent 4px
    );
}

@media (prefers-reduced-motion: reduce) {
  .vhs { display: none; }
}

/* Boot gate */
.boot {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 16px;
  background:
    radial-gradient(700px 420px at 50% 35%, rgba(255, 255, 0, 0.06), transparent 62%),
    linear-gradient(180deg, #000c2a, #000515 70%, #000208);
}

.boot__frame {
  width: min(880px, 100%);
  border-radius: var(--radius);
  border: 1px solid rgba(102, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.62);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.boot__frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(0, 255, 255, 0.06) 0px, rgba(0, 255, 255, 0.06) 1px, transparent 2px, transparent 6px),
    repeating-linear-gradient(0deg, rgba(255, 255, 0, 0.045) 0px, rgba(255, 255, 0, 0.045) 1px, transparent 2px, transparent 7px),
    radial-gradient(600px 420px at 18% 18%, rgba(255, 0, 255, 0.10), transparent 55%),
    radial-gradient(520px 380px at 72% 44%, rgba(0, 255, 255, 0.08), transparent 58%);
  opacity: 0.55;
  mix-blend-mode: screen;
  pointer-events: none;
  animation: gifDrift 4.8s linear infinite;
}

.boot__frame::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: var(--radius);
  pointer-events: none;
  box-shadow:
    0 0 0 2px rgba(255, 255, 0, 0.10),
    0 0 0 6px rgba(0, 255, 255, 0.06),
    0 0 0 10px rgba(255, 0, 255, 0.04);
}

@keyframes gifDrift {
  0% { transform: translate3d(0, 0, 0); filter: hue-rotate(0deg); }
  50% { transform: translate3d(10px, -6px, 0); filter: hue-rotate(8deg); }
  100% { transform: translate3d(0, 0, 0); filter: hue-rotate(0deg); }
}

@keyframes staticDrift {
  0% { transform: translate3d(0, 0, 0); filter: hue-rotate(0deg); }
  50% { transform: translate3d(-6px, 4px, 0); filter: hue-rotate(10deg); }
  100% { transform: translate3d(0, 0, 0); filter: hue-rotate(0deg); }
}

.boot__topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line2);
  background: rgba(233, 237, 242, 0.03);
  position: relative;
  z-index: 1;
}

.boot__title {
  margin-left: 8px;
  color: var(--muted);
  font-size: 12px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  opacity: 0.9;
}

.dot--cyan { background: var(--cyan); }
.dot--amber { background: var(--amber); }
.dot--green { background: var(--green); }

.term {
  margin: 0;
  padding: 18px 16px 8px;
  min-height: 128px;
  line-height: 1.35;
  font-size: 14px;
  color: rgba(233, 237, 242, 0.92);
  text-shadow:
    0 0 22px rgba(73, 215, 255, 0.10),
    -0.6px 0 rgba(255, 0, 255, 0.22),
    0.6px 0 rgba(0, 255, 255, 0.18);
  white-space: pre-wrap;
  position: relative;
  z-index: 1;
}

.gate-question {
  padding: 0 16px 10px;
  min-height: 42px;
  font-size: clamp(14px, 2.2vw, 22px);
  color: rgba(132, 255, 99, 0.95);
  text-shadow:
    0 0 18px rgba(132, 255, 99, 0.25),
    -0.6px 0 rgba(255, 0, 255, 0.25),
    0.6px 0 rgba(0, 255, 255, 0.22);
  line-height: 1.25;
  white-space: nowrap;
}

.cursor {
  color: var(--accent);
  animation: blink 1.05s steps(1) infinite;
}

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

.gate {
  padding: 12px 16px 16px;
  border-top: 1px solid var(--line2);
  background: rgba(0,0,0,0.12);
  position: relative;
  z-index: 1;
}

.gate__label {
  display: block;
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 8px;
}

.gate__row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.prompt {
  color: var(--accent);
}

.gate__input {
  flex: 1;
  background: rgba(233, 237, 242, 0.03);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--fg);
  font-family: var(--mono);
  outline: none;
}

.gate__input:focus {
  border-color: rgba(233, 237, 242, 0.28);
  box-shadow: 0 0 0 4px rgba(73, 215, 255, 0.12);
}

.gate__hint {
  margin-top: 8px;
  font-size: 12px;
  color: rgba(233, 237, 242, 0.55);
}

.gate__error {
  margin-top: 10px;
  font-size: 12px;
  color: rgba(255, 54, 54, 0.95);
  min-height: 16px;
}


.kbd {
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-bottom-color: rgba(233, 237, 242, 0.22);
  border-radius: 8px;
  background: rgba(233, 237, 242, 0.03);
  color: var(--fg);
}

/* App */
.app {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background:
    linear-gradient(180deg, #000c2a, #000515 70%, #000208);
  position: relative;
  isolation: isolate;
}

.app::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.28;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.03) 0px, rgba(255,255,255,0.03) 1px, transparent 2px, transparent 4px),
    repeating-linear-gradient(90deg, rgba(0,255,255,0.06) 0px, rgba(0,255,255,0.06) 1px, transparent 2px, transparent 10px),
    radial-gradient(800px 520px at 18% 12%, rgba(255, 0, 255, 0.12), transparent 55%),
    radial-gradient(900px 600px at 80% 20%, rgba(0, 255, 255, 0.10), transparent 60%);
  mix-blend-mode: screen;
  animation: staticDrift 6.2s linear infinite;
}

.hud {
  position: static;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 10px;
  border-bottom: 1px solid rgba(102, 255, 255, 0.12);
  background: rgba(0, 10, 26, 0.45);
  backdrop-filter: blur(10px);
}

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

.mark {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1px solid rgba(233, 237, 242, 0.22);
  box-shadow: 0 0 0 3px rgba(73, 215, 255, 0.10);
}

.id { min-width: 0; }
.id__name { font-size: 12px; }
.id__meta { display: none; }

.tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  justify-content: flex-end;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 3px 2px;
}

.tab {
  text-decoration: none;
  color: var(--muted);
  border: 1px solid rgba(0, 255, 255, 0.18);
  border-radius: 999px;
  padding: 8px 10px;
  font-size: 12px;
  background: rgba(0, 255, 255, 0.04);
  transition: border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.tab:hover {
  color: var(--fg);
  border-color: rgba(255, 255, 0, 0.45);
  transform: translateY(-1px);
}

.tab[aria-current="page"] {
  color: var(--fg);
  border-color: rgba(255, 255, 0, 0.65);
  box-shadow: 0 0 0 2px rgba(255, 255, 0, 0.22);
}

.main {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 8px 16px 40px;
}

.panel {
  border: 1px solid rgba(0, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(0, 10, 26, 0.68);
  box-shadow: 0 18px 46px rgba(0,0,0,0.45);
  overflow: hidden;
}

.panel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid rgba(102, 255, 255, 0.12);
  background:
    linear-gradient(90deg, rgba(0, 255, 255, 0.14), transparent 52%);
}

.panel__title {
  margin: 0;
  font-size: 14px;
  letter-spacing: 2.2px;
  color: rgba(255, 255, 0, 0.95);
  text-shadow: 0 0 12px rgba(255, 255, 0, 0.28);
}

.panel__meta {
  font-size: 12px;
  color: var(--muted);
}

.panel a {
  color: rgba(0, 255, 255, 0.95);
}

.panel a:hover {
  color: rgba(255, 255, 0, 0.95);
  background: rgba(255, 0, 255, 0.18);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
  padding: 16px;
}

.card {
  grid-column: span 12;
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 12px;
  padding: 12px;
  text-decoration: none;
  border-radius: 12px;
  border: 1px solid rgba(0, 255, 255, 0.16);
  background: rgba(0, 255, 255, 0.04);
  color: var(--fg);
  transition: border-color 150ms ease, transform 150ms ease, background 150ms ease;
}

.card:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 0, 0.6);
  background: rgba(255, 0, 255, 0.12);
}

.thumb {
  border-radius: 10px;
  border: 1px solid rgba(0, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
  min-height: 64px;
}

.thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60px 80px at 20% 20%, color-mix(in oklab, var(--accent), transparent 68%), transparent 55%),
    radial-gradient(70px 90px at 80% 70%, rgba(255,255,255,0.06), transparent 60%);
}

.thumb--noise::after {
  content: "";
  position: absolute;
  inset: -40px;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.03) 0px, rgba(255,255,255,0.03) 1px, transparent 2px, transparent 4px),
    linear-gradient(120deg, rgba(0, 255, 255, 0.18), rgba(255, 0, 255, 0.16), rgba(255, 255, 0, 0.12));
  opacity: 0.55;
  transform: rotate(8deg);
}

.thumb--grid::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(233,237,242,0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(233,237,242,0.07) 1px, transparent 1px);
  background-size: 10px 10px;
  opacity: 0.28;
}

.card__title { font-size: 13px; }
.card__sub { font-size: 12px; color: var(--muted); }

.stack { padding: 16px; display: grid; gap: 14px; }

.embed {
  border: 1px solid rgba(0, 255, 255, 0.18);
  border-radius: 12px;
  background: rgba(0, 255, 255, 0.03);
  overflow: hidden;
}

.embed__head {
  padding: 12px;
  border-bottom: 1px solid rgba(0, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.embed__title { font-size: 12px; }
.embed__hint { font-size: 11px; color: var(--muted); }

.embed__frame {
  aspect-ratio: 16 / 9;
  background: rgba(0,0,0,0.22);
  min-height: 180px;
}

.embed__frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.bc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 18px;
  padding: 14px;
}

.bc-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
  color: var(--fg);
  padding: 8px;
  border-radius: 12px;
  border: 1px solid rgba(0, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.16);
}

.bc-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(0, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.2);
}

.bc-card span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 4px 2px;
  text-align: center;
}

.bc-card:hover img {
  border-color: rgba(255, 255, 0, 0.62);
  box-shadow: 0 0 0 2px rgba(255, 255, 0, 0.15);
}

.bc-card:hover span {
  color: var(--fg);
}

.bc-card:hover {
  background: rgba(0, 255, 255, 0.06);
  border-color: rgba(255, 255, 0, 0.34);
}

.copy { padding: 16px; max-width: 72ch; }
.copy p { margin: 0 0 10px; line-height: 1.6; }
.copy__heading {
  margin: 14px 0 8px;
  font-size: 12px;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: rgba(132, 255, 99, 0.9);
}

.copy__list {
  margin: 0 0 12px 18px;
  padding: 0;
  display: grid;
  gap: 7px;
}

.copy__list li {
  line-height: 1.5;
}

.copy__list a {
  color: rgba(73, 215, 255, 0.98);
  text-decoration-thickness: 1px;
}

.copy__list a:hover {
  color: rgba(159, 233, 255, 1);
}

.about-intro {
  display: grid;
  gap: 12px;
  align-items: start;
}

.about-profile {
  margin: 0;
  justify-self: center;
  width: min(250px, 100%);
  border: 1px solid rgba(73, 215, 255, 0.35);
  border-radius: 12px;
  padding: 6px;
  background: rgba(0, 18, 32, 0.55);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.about-profile img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.about-social-links {
  margin: 10px 0 0;
  font-family: var(--mono);
  font-size: 13px;
  color: rgba(173, 223, 236, 0.9);
}

.about-social-links a {
  color: rgba(73, 215, 255, 0.98);
  text-decoration-thickness: 1px;
}

.about-social-links span {
  display: inline-block;
  margin: 0 7px;
  color: rgba(173, 223, 236, 0.64);
}

@media (min-width: 860px) {
  .about-intro {
    grid-template-columns: 1fr minmax(180px, 250px);
    gap: 16px;
  }

  .about-profile {
    justify-self: end;
  }
}

.about-ig-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.ig-embed {
  border: 1px solid rgba(255, 98, 155, 0.5);
  border-radius: 12px;
  background: rgba(12, 16, 24, 0.9);
  overflow: hidden;
  min-height: 420px;
}

.ig-embed iframe {
  display: block;
  width: 100%;
  min-height: 420px;
  border: 0;
  background: rgba(12, 16, 24, 0.9);
}

.ig-card {
  text-decoration: none;
  color: var(--fg);
  border: 1px solid rgba(255, 98, 155, 0.5);
  border-radius: 12px;
  padding: 10px;
  background:
    linear-gradient(160deg, rgba(64, 22, 56, 0.85), rgba(17, 17, 38, 0.9)),
    radial-gradient(circle at 18% 10%, rgba(255, 164, 52, 0.26), transparent 52%);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  transition: transform 120ms ease, border-color 120ms ease;
}

.ig-card__media {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 9px;
  border: 1px solid rgba(255, 156, 186, 0.46);
  margin-bottom: 8px;
  background: rgba(0, 0, 0, 0.28);
}

.ig-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 169, 194, 0.82);
}

.ig-card__chip {
  display: inline-block;
  margin-bottom: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-family: var(--mono);
  background: rgba(255, 98, 155, 0.22);
  color: rgba(255, 210, 227, 0.96);
}

.ig-card__title {
  font-size: 13px;
  font-weight: 700;
}

.ig-card__sub {
  margin-top: 3px;
  font-size: 12px;
  color: var(--muted);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 8px;
}

.about-stat {
  border: 1px solid rgba(73, 215, 255, 0.24);
  border-radius: 10px;
  padding: 9px 10px;
  background: rgba(0, 24, 34, 0.5);
}

.about-stat__k {
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(173, 223, 236, 0.85);
  margin-bottom: 4px;
}

.about-stat__v {
  font-size: 14px;
  color: rgba(227, 245, 250, 0.98);
}

.about-stat__v a {
  color: rgba(73, 215, 255, 0.98);
}

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

.home-hero {
  padding: 18px 16px 8px;
}

.home-hero__kicker {
  margin: 0;
  font-size: 11px;
  letter-spacing: 2px;
  color: rgba(132, 255, 99, 0.92);
}

.home-hero__title {
  margin: 8px 0 0;
  font-size: clamp(22px, 4vw, 38px);
  line-height: 1.05;
  letter-spacing: 1.6px;
  color: rgba(233, 237, 242, 0.98);
  text-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
}

.home-hero__title-row {
  margin-top: 8px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.home-hero__title-row .home-hero__title {
  margin: 0;
}

.home-hero__sigil {
  width: clamp(72px, 12vw, 150px);
  height: auto;
  transform: scaleX(-1);
  flex: 0 0 auto;
  border-radius: 8px;
  border: 1px solid rgba(255, 225, 96, 0.4);
}

.home-hero__text {
  margin: 10px 0 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: 13px;
}

.home-status {
  margin-top: 12px;
  border: 1px dashed rgba(0, 255, 255, 0.24);
  border-radius: 999px;
  padding: 8px 12px;
  width: fit-content;
  max-width: 100%;
  font-size: 12px;
  color: rgba(132, 255, 99, 0.95);
  background: rgba(132, 255, 99, 0.07);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-portals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 12px 16px 18px;
}

.home-portal {
  text-decoration: none;
  border: 1px solid rgba(0, 255, 255, 0.18);
  border-radius: 12px;
  background: rgba(0, 255, 255, 0.03);
  overflow: hidden;
  color: var(--fg);
}

.home-portal:hover {
  border-color: rgba(255, 255, 0, 0.55);
  background: rgba(255, 0, 255, 0.09);
}

.home-portal__visual {
  height: 110px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(0, 255, 255, 0.16);
  background:
    radial-gradient(120px 70px at 20% 30%, rgba(0, 255, 255, 0.25), transparent 70%),
    radial-gradient(120px 70px at 80% 70%, rgba(255, 255, 0, 0.2), transparent 75%),
    linear-gradient(135deg, rgba(0, 255, 255, 0.12), rgba(255, 0, 255, 0.08));
}

.home-portal__gif {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.86;
  filter: saturate(1.12) brightness(1.08);
  pointer-events: none;
}

.home-portal--art .home-portal__visual.has-art-preview {
  background-image:
    linear-gradient(180deg, rgba(0, 6, 24, 0.08), rgba(0, 6, 24, 0.4)),
    var(--art-preview-image);
  background-size: cover;
  background-position: center;
}

.home-portal--ambient .home-portal__visual {
  background:
    linear-gradient(180deg, rgba(0, 6, 24, 0.1), rgba(0, 6, 24, 0.45)),
    url("./assets/gifs/motifs/ambient%20gif.gif");
  background-size: cover;
  background-position: center;
}

.home-portal--ambient .home-portal__visual::before {
  content: none;
}

.home-portal--ambient .home-portal__visual::after {
  content: none;
}

.home-portal--beats .home-portal__visual {
  background:
    linear-gradient(180deg, rgba(0, 6, 24, 0.08), rgba(0, 6, 24, 0.42)),
    url("./assets/gifs/motifs/beats%20gif.gif");
  background-size: cover;
  background-position: center;
}

.home-portal--beats .home-portal__visual::before {
  content: none;
}

.home-portal--beats .home-portal__visual::after {
  content: none;
}

@keyframes breathPulse {
  0%, 100% { transform: scale(0.9); opacity: 0.55; }
  50% { transform: scale(1); opacity: 0.95; }
}

@keyframes breathPulseInner {
  0%, 100% { transform: scale(0.95); opacity: 0.35; }
  50% { transform: scale(1.04); opacity: 0.7; }
}

@keyframes drumScan {
  0% { background-position: -40px 0; }
  100% { background-position: 40px 0; }
}

.home-portal__meta {
  padding: 10px;
}

.home-portal__title {
  font-size: 13px;
}

.home-portal__sub {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

.home-quote {
  margin: 4px 16px 18px;
  padding: 12px 14px;
  border-left: 2px solid rgba(255, 225, 96, 0.55);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 225, 96, 0.07), rgba(255, 225, 96, 0.03));
  color: rgba(255, 236, 176, 0.97);
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(16px, 1.7vw, 21px);
  line-height: 1.45;
  letter-spacing: 0.1px;
  text-shadow: 0 0 10px rgba(255, 220, 120, 0.2);
}

.home-quote__author {
  display: block;
  margin-top: 8px;
  font-family: var(--mono);
  font-style: normal;
  font-size: 12px;
  color: rgba(233, 237, 242, 0.9);
}

.home-app-cta {
  margin: 0 16px 18px;
  padding: 12px;
  border: 1px solid rgba(73, 215, 255, 0.22);
  border-radius: 10px;
  background: rgba(0, 16, 28, 0.56);
}

.home-app-cta__banner {
  display: block;
  border-radius: 9px;
  overflow: hidden;
  border: 1px solid rgba(73, 215, 255, 0.32);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.home-app-cta__banner img {
  width: 100%;
  display: block;
  height: auto;
  max-height: none;
  object-fit: contain;
}

.home-app-cta__button {
  margin-top: 10px;
  display: inline-block;
  text-decoration: none;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: rgba(226, 248, 255, 0.98);
  border: 1px solid rgba(73, 215, 255, 0.6);
  border-radius: 999px;
  padding: 9px 14px;
  background: rgba(73, 215, 255, 0.14);
}

.home-app-cta__button:hover {
  background: rgba(73, 215, 255, 0.24);
  border-color: rgba(132, 230, 255, 0.9);
}

.home-app-cta__android {
  margin: 14px 0 0;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255, 210, 110, 0.98);
  letter-spacing: 0.5px;
}

.home-app-cta__android span {
  display: inline-block;
  text-transform: lowercase;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.9px;
  animation: androidWave 1.4s steps(2, end) infinite;
}

.home-app-cta__android a {
  display: block;
  margin-top: 10px;
  color: rgba(233, 237, 242, 0.9);
  text-decoration-thickness: 1px;
}

@keyframes androidWave {
  0% { opacity: 0.72; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-1px); }
  100% { opacity: 0.72; transform: translateY(0); }
}

.art-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  padding: 14px;
}

.art-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px 0;
}

.art-tools__label {
  font-size: 12px;
  color: var(--muted);
}

.art-tools__select {
  background: rgba(0, 255, 255, 0.03);
  border: 1px solid rgba(0, 255, 255, 0.22);
  color: var(--fg);
  font-family: var(--mono);
  border-radius: 8px;
  padding: 6px 8px;
}

.art-tile {
  appearance: none;
  text-align: left;
  width: 100%;
  cursor: pointer;
  display: grid;
  gap: 8px;
  text-decoration: none;
  color: var(--fg);
  border: 1px solid rgba(0, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(0, 255, 255, 0.04);
  padding: 8px;
}

.art-tile:hover {
  border-color: rgba(255, 255, 0, 0.6);
  background: rgba(255, 0, 255, 0.08);
}

.art-tile__image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  display: block;
  border-radius: 9px;
  border: 1px solid rgba(0, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.25);
}

.art-tile__meta {
  padding: 0 2px 2px;
}

.art-tile__title { font-size: 13px; }
.art-tile__sub { font-size: 12px; color: var(--muted); }

.art-empty {
  padding: 16px;
  color: rgba(233, 237, 242, 0.88);
  font-size: 13px;
}

.art-terms {
  margin: 0 14px 14px;
  padding: 10px 12px;
  border: 1px dashed rgba(255, 225, 96, 0.34);
  border-radius: 10px;
  color: rgba(233, 237, 242, 0.74);
  font-size: 11px;
  line-height: 1.45;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(0, 0, 0, 0.84);
  display: grid;
  place-items: center;
  padding: 18px;
}

.lightbox__figure {
  margin: 0;
  max-width: min(92vw, 1200px);
  max-height: calc(100dvh - 90px);
  position: relative;
}

.lightbox__figure img {
  display: block;
  max-width: 100%;
  max-height: calc(100dvh - 140px);
  width: auto;
  height: auto;
  margin: 0 auto;
  border-radius: 12px;
  border: 1px solid rgba(0, 255, 255, 0.26);
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox__watermark {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-20deg);
  font-size: clamp(20px, 6vw, 54px);
  letter-spacing: 3px;
  color: rgba(255, 225, 96, 0.24);
  text-shadow: 0 0 18px rgba(255, 225, 96, 0.2);
  pointer-events: none;
  white-space: nowrap;
}

.lightbox__caption {
  margin-top: 8px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

.lightbox__rights {
  margin: 6px auto 0;
  max-width: min(92vw, 820px);
  text-align: center;
  color: rgba(233, 237, 242, 0.78);
  font-size: 11px;
  line-height: 1.4;
}

.lightbox__purchase {
  position: fixed;
  right: 18px;
  bottom: 28px;
  z-index: 33;
  width: min(320px, 34vw);
  padding: 14px;
  border: 1px solid rgba(132, 255, 99, 0.56);
  border-radius: 14px;
  background: rgba(5, 20, 24, 0.96);
  backdrop-filter: blur(4px);
  display: grid;
  justify-items: center;
  gap: 8px;
  box-shadow:
    0 0 0 1px rgba(132, 255, 99, 0.2) inset,
    0 0 24px rgba(132, 255, 99, 0.22),
    0 12px 26px rgba(0, 0, 0, 0.44);
}

.lightbox__purchase-title {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.6px;
  color: rgba(210, 255, 176, 0.96);
  text-shadow: 0 0 10px rgba(132, 255, 99, 0.35);
}

.lightbox__design-row {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
}

.lightbox__design-label {
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(188, 214, 191, 0.92);
}

.lightbox__design-id {
  display: block;
  width: 100%;
  padding: 5px 8px;
  border: 1px solid rgba(132, 255, 99, 0.26);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
  color: rgba(231, 252, 222, 0.95);
  font-family: var(--mono);
  font-size: 11px;
  text-align: center;
}

.lightbox__copy {
  width: 100%;
  border: 1px solid rgba(255, 120, 120, 0.75);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(164, 40, 40, 0.55), rgba(124, 26, 26, 0.58));
  color: rgba(255, 236, 236, 0.98);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 8px 10px;
  cursor: pointer;
  box-shadow: 0 0 14px rgba(255, 90, 90, 0.24);
}

.lightbox__copy:hover {
  border-color: rgba(255, 170, 170, 0.95);
  background: linear-gradient(180deg, rgba(184, 48, 48, 0.64), rgba(144, 32, 32, 0.68));
}

.lightbox__buy {
  border: 1px solid rgba(175, 255, 132, 0.95);
  border-radius: 999px;
  width: 100%;
  text-align: center;
  padding: 11px 16px;
  background: linear-gradient(180deg, rgba(132, 255, 99, 0.28), rgba(132, 255, 99, 0.14));
  color: rgba(236, 255, 226, 0.99);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none;
  box-shadow:
    0 0 0 1px rgba(132, 255, 99, 0.24) inset,
    0 0 18px rgba(132, 255, 99, 0.24);
  transition: transform 140ms ease, box-shadow 180ms ease, background 180ms ease;
}

.lightbox__buy:hover {
  border-color: rgba(196, 255, 160, 1);
  background: linear-gradient(180deg, rgba(132, 255, 99, 0.36), rgba(132, 255, 99, 0.2));
  box-shadow:
    0 0 0 1px rgba(132, 255, 99, 0.3) inset,
    0 0 24px rgba(132, 255, 99, 0.32);
  transform: translateY(-1px);
}

.lightbox__purchase-note {
  margin: 0;
  text-align: center;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(226, 234, 240, 0.92);
}

@media (max-width: 900px) {
  .lightbox__purchase {
    left: 50%;
    right: auto;
    bottom: 12px;
    transform: translateX(-50%);
    width: min(92vw, 560px);
    padding: 10px;
  }
}

.lightbox__close {
  position: fixed;
  top: 14px;
  right: 14px;
  border: 1px solid rgba(0, 255, 255, 0.26);
  border-radius: 999px;
  background: rgba(0, 10, 26, 0.86);
  color: var(--fg);
  padding: 8px 10px;
  cursor: pointer;
  font-family: var(--mono);
}

.lightbox__nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 225, 96, 0.9);
  border-radius: 999px;
  background: rgba(92, 35, 140, 0.72);
  color: rgba(245, 232, 255, 0.98);
  padding: 8px 12px;
  cursor: pointer;
  font-family: var(--mono);
  box-shadow:
    0 0 0 2px rgba(207, 122, 255, 0.18),
    0 0 14px rgba(255, 225, 96, 0.12);
  transition: transform 120ms ease, box-shadow 160ms ease, background 160ms ease;
}

.lightbox__nav--prev { left: 14px; }
.lightbox__nav--next { right: 14px; }

.lightbox__nav:hover {
  background: rgba(124, 45, 196, 0.82);
  border-color: rgba(255, 233, 128, 0.98);
}

.lightbox__nav:active {
  transform: translateY(-50%) scale(0.96);
  box-shadow:
    0 0 0 2px rgba(207, 122, 255, 0.24),
    0 0 18px rgba(255, 225, 96, 0.24);
}

.contact { padding: 16px; display: grid; gap: 12px; max-width: 720px; }

.field {
  display: grid;
  gap: 6px;
}

.field__label {
  font-size: 12px;
  color: var(--muted);
}

.field__input {
  background: rgba(0, 255, 255, 0.03);
  border: 1px solid rgba(0, 255, 255, 0.18);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--fg);
  font-family: var(--mono);
  outline: none;
}

.field__input:focus {
  border-color: rgba(233, 237, 242, 0.28);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent), transparent 86%);
}

.field__input--area { resize: vertical; min-height: 140px; }

.hp { position: absolute; left: -9999px; }

.actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  border: 1px solid rgba(0, 255, 255, 0.22);
  border-radius: 999px;
  padding: 10px 12px;
  background: rgba(0, 255, 255, 0.14);
  color: var(--fg);
  font-family: var(--mono);
  font-size: 12px;
  cursor: pointer;
  text-decoration: none;
}

.btn:hover { border-color: rgba(233, 237, 242, 0.22); }

.btn--ghost {
  background: rgba(255, 0, 255, 0.10);
  color: var(--muted);
}

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

.status { font-size: 12px; color: var(--muted); }

.foot {
  padding: 14px 16px;
  border-top: 1px solid rgba(0, 255, 255, 0.22);
  background: rgba(0, 10, 26, 0.88);
}

.foot__line { font-size: 12px; }

@media (min-width: 760px) {
  .card { grid-column: span 6; }
  .thumb { min-height: 0; }
}

@media (min-width: 1020px) {
  .card { grid-column: span 4; }
}

@media (max-width: 680px) {
  .hud {
    position: static;
    flex-direction: column;
    align-items: stretch;
  }

  .tabs {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }

  .tab { flex: 0 0 auto; }

  .card {
    grid-template-columns: 1fr;
  }

  .thumb { min-height: 140px; }

  .embed__frame {
    aspect-ratio: auto;
    min-height: 240px;
  }

  .art-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .home-portals {
    grid-template-columns: 1fr;
  }

  .home-hero__title-row {
    align-items: center;
  }

  .home-hero__sigil {
    width: 84px;
  }

  .bc-grid { grid-template-columns: 1fr; gap: 14px; }

}

@media (prefers-reduced-motion: reduce) {
  .tab, .card { transition: none; }
  .cursor { animation: none; }
  .boot__frame::before { animation: none; }
  .app::before { animation: none; }
  .home-quote { animation: none; }
  .home-portal--ambient .home-portal__visual::before { animation: none; }
  .home-portal--ambient .home-portal__visual::after { animation: none; }
  .home-portal--beats .home-portal__visual::before { animation: none; }
  .home-portal--beats .home-portal__visual::after { animation: none; }
}
