/* Background Lab — a gallery for the five Sub2Api background directions. */

:root {
  color-scheme: dark;
  --bg: #090d16;
  --ink: #f2f5fc;
  --muted: #a7b2c8;
  --muted-2: #8d99b0;
  --accent: #a5b4fc;
  --accent-strong: #5457e8;
  --line: rgba(255, 255, 255, 0.08);
  --radius: 16px;
  --margin: clamp(1rem, 2.4vw, 2rem);
  --max: 1480px;
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { display: block; max-width: 100%; }
code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.82em;
  color: var(--accent);
}

.lab-wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--margin);
}

.lab-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 22px;
}

.lab-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}
.lab-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--accent-strong);
  color: #fff;
  font-family: "Manrope", sans-serif;
  font-size: 12px;
  font-weight: 800;
}
.lab-slash { color: var(--muted-2); font-weight: 400; }
.lab-dim { color: var(--muted); font-weight: 500; }
.lab-back {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.18s ease;
}
.lab-back:hover { color: var(--ink); }

.lab-intro {
  padding-block: clamp(3rem, 7vw, 6rem) clamp(2rem, 4vw, 3.5rem);
  max-width: 60ch;
}
.lab-intro h1 {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 700;
  text-wrap: balance;
}
.lab-intro p {
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.7;
  max-width: 46ch;
}

.lab-grid {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: 4rem;
}

.lab-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.lab-shots {
  position: relative;
  background: #070b14;
}
.lab-desktop {
  width: 100%;
  height: auto;
}
.lab-mobile {
  position: absolute;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  width: clamp(96px, 12vw, 172px);
  height: auto;
  border: 5px solid #0a1120;
  border-radius: 16px;
  background: #0a1120;
}

.lab-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 22px clamp(1.1rem, 2.4vw, 1.9rem) 26px;
}
.lab-copy { min-width: 0; }
.lab-copy h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.lab-copy p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  max-width: 64ch;
}

.lab-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  padding-top: 2px;
}
.lab-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 6px;
  background: rgba(99, 102, 241, 0.16);
  color: var(--accent);
  font-size: 13px;
  white-space: nowrap;
}
.lab-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  background: var(--accent-strong);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.18s ease;
}
.lab-link:hover { background: #4b4edb; }

.lab-note {
  margin: 0 0 2.5rem;
  padding: 16px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.lab-foot {
  padding-block: 1.25rem 2.5rem;
  color: var(--muted-2);
  font-size: 13px;
}

@media (max-width: 760px) {
  .lab-top { padding-block: 16px; }
  .lab-dim, .lab-slash { display: none; }
  .lab-intro { padding-top: 2.5rem; }
  .lab-meta { flex-direction: column; gap: 16px; }
  .lab-actions { width: 100%; justify-content: space-between; }
  .lab-mobile { width: 92px; border-width: 4px; border-radius: 12px; }
  .lab-copy h2 { font-size: 18px; }
  .lab-copy p { font-size: 14px; }
  .lab-note { font-size: 13px; }
}
