/* Glowing E. coli: only what's specific to this lab. Shared chrome (and the zoom circles) is in ../lab.css. */

/* ---------- UV: the room goes dark behind the bench (opacity set from the bench state) ---------- */
.uv-bg { position: absolute; inset: 0; background: radial-gradient(1400px 800px at 55% 0%, #1a1440, #0b0920 75%); opacity: 0; pointer-events: none; }
body.uv .brand h1 { color: #eef0ff; }
body.uv .brand .mark img { filter: invert(1); }
body.uv .brand .lmenu { color: #eef0ff; }
body.uv .brand-title { border-left-color: rgba(238, 240, 255, 0.25); }

/* ---------- the cell level's background ---------- */
.bg-cell, .zoom-lens.bg-cell { background: radial-gradient(1400px 900px at 58% 35%, #fbfcfe 0%, #eef1f8 50%, #dfe4f0 100%); }
body[data-scale='cell'] .bg-cell { opacity: 1; }
body.uv .zoom-lens.bg-cell { background: radial-gradient(1400px 900px at 58% 35%, #14123a 0%, #0a0820 70%); } /* the lens matches the cell's UV background */

/* ---------- + / − arabinose, in the cell view after the UV step ---------- */
.ara-seg {
  position: absolute; left: 50%; top: 22px; transform: translateX(-50%); z-index: 6;
  display: flex; gap: 2px; padding: 4px; border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.92); box-shadow: var(--shadow-ctl);
}
.ara-seg[hidden] { display: none; }
.ara-seg button {
  border: 0; background: transparent; padding: 8px 16px; border-radius: var(--pill); cursor: pointer;
  font: var(--font-btn); letter-spacing: .02em; color: var(--ink-2);
}
.ara-seg button.on { background: var(--accent); color: #fff; }

/* ---------- results on the complete card: the four plates in bench order ---------- */
.res-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.results { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 10px 0 2px; }
.res {
  display: flex; flex-direction: column; gap: 3px; padding: 10px 10px 11px; border-radius: 12px;
  background: rgba(23, 24, 26, 0.035); box-shadow: inset 0 0 0 1px var(--line);
}
.res.hit { background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent); }
.res .dish {
  width: 38px; height: 38px; border-radius: 50%; margin-bottom: 4px;
  background: #f2dfaa; box-shadow: inset 0 0 0 2px rgba(23, 24, 26, 0.12);
}
.res .dish.col { background: radial-gradient(circle at 32% 38%, #fffaf0 3px, transparent 3.5px), radial-gradient(circle at 66% 52%, #fffaf0 3px, transparent 3.5px), radial-gradient(circle at 44% 72%, #fffaf0 3px, transparent 3.5px), radial-gradient(circle at 62% 26%, #fffaf0 2px, transparent 2.5px), #f2dfaa; }
.res .dish.lawn { background: radial-gradient(#fffaf0 1.2px, transparent 1.7px) 0 0 / 5px 5px, #f6e6bb; }
.res .dish.glow { background: radial-gradient(circle at 32% 38%, #4ade80 3px, transparent 4px), radial-gradient(circle at 66% 52%, #4ade80 3px, transparent 4px), radial-gradient(circle at 44% 72%, #4ade80 3px, transparent 4px), radial-gradient(circle at 62% 26%, #4ade80 2px, transparent 3px), #1b1638; box-shadow: 0 0 10px rgba(74, 222, 128, 0.55); }
.res-plate { display: flex; flex-direction: column; font-size: 12px; font-weight: 700; color: var(--ink); line-height: 1.25; }
.res-plate em { font-style: normal; font-weight: 600; color: var(--muted); }
.res-plate em.plus { color: var(--accent-ink); }
.res-out { margin-top: 4px; font-size: 13.5px; font-weight: 700; color: var(--ink); }
.res-text { font-size: 12px; line-height: 1.4; color: var(--ink-2); }
.uv-toggle {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  border: 0; padding: 6px 13px; border-radius: var(--pill); cursor: pointer;
  background: var(--ink); color: #fff; font: 500 13px/1 var(--display); letter-spacing: .02em;
}
.uv-toggle:hover { background: #000; }

/* ---------- intro art: the spinning plasmid (intro.js); the card itself is in lab.css ---------- */
.intro-card { --intro-em: linear-gradient(90deg, #16a34a, #22c55e); }
.plasmid3d { position: relative; width: 100%; aspect-ratio: 1 / 1; }
#plasmidCanvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pcenter { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; pointer-events: none; }
.pcenter b { display: block; font-size: 16px; font-weight: 800; color: #0f172a; letter-spacing: -0.01em; }
.pcenter span { font-size: 11.5px; color: #64748b; font-weight: 500; }
.plab {
  position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); font-size: 12px; font-weight: 700; color: var(--c);
  background: rgba(255, 255, 255, 0.88); padding: 2px 8px; border-radius: 99px; box-shadow: 0 1px 4px rgba(23, 24, 26, 0.08);
  white-space: nowrap; pointer-events: none; transition: opacity .2s;
}
.plab sup { font-size: 8px; }

/* the results need a wider complete card (the card's position is lab.css's body.has-zoom) */
@media (min-width: 821px) {
  body.has-zoom .lab-card.complete { width: min(760px, calc(100% - 300px - 200px - var(--gutter) * 2)); }
}
@media (max-width: 1100px) { .results { grid-template-columns: repeat(2, 1fr); } }
/* the four plates deal in after the card arrives (lab.css's .arrive) */
.lab-card.arrive .res { animation: res-in .42s ease backwards; }
.lab-card.arrive .res:nth-child(1) { animation-delay: .28s; }
.lab-card.arrive .res:nth-child(2) { animation-delay: .36s; }
.lab-card.arrive .res:nth-child(3) { animation-delay: .44s; }
.lab-card.arrive .res:nth-child(4) { animation-delay: .52s; }
@keyframes res-in { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { .lab-card.arrive .res { animation: none; } }
@media (max-width: 820px) {
  .ara-seg { top: 60px; }
}
