/* The Lab on one phone screen (14/11, app.js viewLab): the chamber, the scan line, the mini-game cards, the Mix button
   and compact strips (eggs, pair of the day, weekly quests); the creature sheet; the extra bits of the mini-games
   (reactor.js, splice.js, pour.js: the VIP retry choice). Dark look first, the light look (html.light) after. */

.lab2 { --lg-gap: 6px; display: flex; flex-direction: column; gap: var(--lg-gap); max-width: 640px; margin: 0 auto; }
.lab2-main, .lab2-side { display: flex; flex-direction: column; gap: var(--lg-gap); min-width: 0; }
.lab2-head { display: flex; align-items: center; gap: 8px; min-height: 34px; }
.lab2-head h1 { margin: 0; flex: 1; font-size: 24px; line-height: 1.1; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* 14/11 (owner): the top of the Lab is your Fusionist identity: level badge, rank, XP bar (app.js fusionistHTML) */
.lab2-me { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.lab2-lv { position: relative; flex: none; width: 48px; height: 48px; border-radius: 15px; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 0; color: #fff; background: linear-gradient(135deg, #a470ff, #ff4fa3 60%, #ff8a3d);
  box-shadow: 0 6px 16px rgba(164, 112, 255, .45), inset 0 1px 0 rgba(255, 255, 255, .45); }
.lab2-lv i { display: grid; line-height: 0; }
.lab2-lv i svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.lab2-lv b { font: 700 19px/1 Fredoka, sans-serif; }
.lab2-lv.up { animation: lab2-up 1.2s cubic-bezier(.2, 1.5, .4, 1); }
@keyframes lab2-up { 0% { transform: scale(1); } 25% { transform: scale(1.35) rotate(-6deg); } 50% { transform: scale(1.1) rotate(4deg); } 100% { transform: scale(1); } }
.lab2-who { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.lab2-who small { font: 800 9.5px/1 Nunito, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.lab2-who b { font: 700 18px/1.1 Fredoka, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: linear-gradient(90deg, #ff8a3d, #ff4fa3, #a470ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lab2-xp { position: relative; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.lab2-xp i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; background: linear-gradient(90deg, #a470ff, #ff4fa3); }
.lab2-who em { font: 700 10.5px/1.2 Nunito, sans-serif; font-style: normal; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lab2-step { margin-left: 6px; font: 800 9.5px/1 Nunito, sans-serif; font-style: normal; letter-spacing: .06em; text-transform: none; color: #ff4fa3; }
html.light .lab2-xp { background: #efe8ff; }.lab2-head .coins { flex: none; }
.lab2-i { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); color: var(--text);
  font: 700 15px/1 Fredoka, sans-serif; cursor: pointer; display: grid; place-items: center; }
.lab2-i:active { transform: scale(.94); }
.lab2 .lab-banner { margin: 0; }
/* 14/11: the "Guide" pill (glows until opened once) and the guided tour it starts (app.js guideTour) */
.lab2-guide { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px 0 4px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--panel); color: var(--text); font: 700 13px/1 Fredoka, sans-serif; cursor: pointer; }
.lab2-guide i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; color: #fff;
  background: linear-gradient(135deg, #ff8a3d, #ff4fa3 55%, #3dd6ff); }
.lab2-guide:active { transform: scale(.95); }
.lab2-guide.new { animation: guide-glow 1.6s ease-in-out infinite; }
@keyframes guide-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 79, 163, .55); } 50% { box-shadow: 0 0 0 7px rgba(255, 79, 163, 0); } }
.gtour { position: fixed; inset: 0; z-index: 140; }
.gt-dim { position: fixed; inset: 0; width: 100%; height: 100%; animation: fadein .2s; }
.gt-veil { fill: rgba(10, 6, 30, .68); }
.gt-hole { position: fixed; border-radius: 16px; box-shadow: 0 0 0 3px #fff, 0 0 26px 6px rgba(255, 120, 196, .75); pointer-events: none; }
.gt-tip { position: fixed; padding: 14px 14px 12px; border-radius: 18px; background: var(--panel); color: var(--text); border: 1px solid var(--line);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .45); animation: fadein .2s; }
.gt-tip h3 { margin: 2px 30px 6px 0; font: 700 18px/1.15 Fredoka, sans-serif; }
.gt-tip p { margin: 0 0 12px; font-size: 14px; line-height: 1.4; }
.gt-n { font: 800 11px/1 Nunito, sans-serif; letter-spacing: .08em; color: var(--muted); }
.gt-x { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: var(--muted);
  font-size: 15px; cursor: pointer; }
.gt-nav { display: flex; align-items: center; gap: 8px; }
.gt-nav .grow { flex: 1; }
@media (prefers-reduced-motion: reduce) { .lab2-guide.new { animation: none; } }

/* the chamber, smaller: two circles and the orb in about 165 px */
.sl-lab.lab2-hero { --S: clamp(80px, 22vw, 124px); --C: clamp(64px, 17vw, 96px); --B: clamp(8px, 2.5vw, 30px);
  margin: 0; padding: 29px 6px 6px; border-radius: 22px; }
.lab2-hero .sl-hud { top: 5px; padding: 3px 12px; font-size: 9.5px; }
.lab2-hero .slot { gap: 4px; }
.lab2-hero .sl-plate { padding: 2px 8px 3px; border-radius: 10px; margin-top: -10px; position: relative; z-index: 2; }
.lab2-hero .sl-plate .tube-label { font-size: 7.5px; letter-spacing: 1.2px; }
.lab2-hero .sl-plate .tube-name { font-size: 13px; }
.lab2-hero .sl-plate .tube-sub { font-size: 10px; }
.lab2-hero .sl-plate .tube-sub:empty { display: none; }
.lab2-hero .sl-ring .tube-plus { font-size: 30px; }
.lab2-hero .sl-face .q { font-size: 30px; }
.lab2-hero .sl-chip { display: none; }   /* the scan line says it */
.lab2-hero .slot:focus-visible .sl-r1 { outline: 3px solid #fff; outline-offset: 3px; }

/* the scan line under the chamber: the fusion (or ???), its rarity, what it costs; one note or problem below */
.lab2-scan, .lab2 #result { display: flex; flex-direction: column; gap: 3px; min-height: 58px; width: 100%; max-width: none; margin: 0; }
.lab2-sum { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 42px; padding: 4px 10px 4px 5px; border-radius: 14px; text-align: left;
  border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; cursor: pointer; }
.lab2-sum:disabled { cursor: default; opacity: 1; }
.lab2-sum.empty { padding: 8px 12px; cursor: default; color: var(--muted); }
.lab2-sum.empty .chip { margin: 0; flex: none; }
.lab2-th { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle at 35% 30%, #fff, #eadfff 50%, #b98fff); }
.lab2-th img { width: 100%; height: 100%; object-fit: contain; }
.lab2-th.secret { background: radial-gradient(circle at 35% 30%, #fff6fd, #ffc6ea 40%, #a470ff); color: #fff; font: 700 22px Fredoka, sans-serif;
  text-shadow: 0 0 8px #ff78c4; }
.lab2-tx { display: flex; flex-direction: column; min-width: 0; }
.lab2-nm { font: 700 15px/1.15 Fredoka, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lab2-sub { font-size: 11.5px; font-weight: 700; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lab2-cost { flex: none; padding: 4px 9px; border-radius: 99px; font: 800 12px Nunito, sans-serif; white-space: nowrap;
  background: linear-gradient(180deg, #fff3c4, #ffd76a); color: #6a4300; box-shadow: 0 2px 0 rgba(120, 70, 0, .25); }
.lab2-warn, .lab2-note { margin: 0; padding: 0 6px; font-size: 11.5px; font-weight: 700; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lab2-warn { color: var(--bad, #ff6f91); }
.lab2-note { color: var(--muted); white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.lab2-note.remake { color: var(--cyan); }
.lab2-up { color: var(--good, #4fe3b0); font-weight: 800; }/* 14/11 (owner): the curtain under the three-game sequence: the page stays hidden and a stage card plays between games */
#lab-curtain { position: fixed; inset: 0; z-index: 127; display: grid; place-items: center; padding: 20px; opacity: 0; transition: opacity .35s; color: #fff;
  background: radial-gradient(120% 90% at 50% 42%, #2b1d6e, #140d3a 60%, #05040e); pointer-events: none; overflow: hidden; }
#lab-curtain.on { opacity: 1; pointer-events: auto; }
#lab-curtain.pastel { background: radial-gradient(120% 90% at 50% 42%, #8a7cf0, #5b4bc4 55%, #2a2070); }
body.lab-seq > :is(#top, #view, #tabs, #modal, #side, #chat, #chat-fab) { visibility: hidden; }/* 14/11 (owner): one Fuse button holds the three mini-games, played in a row (their icons in that order) */
.lab2-go { margin: 0; min-height: 52px; font-size: 17px; display: flex; align-items: center; justify-content: center; gap: 12px; }
.lab2-go small { font-size: 12px; opacity: .85; font-weight: 700; }
/* compact strips */
.lab2-row { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 36px; padding: 3px 10px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; text-align: left; }
.lab2-k { flex: none; font: 400 9px var(--lcd); letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); max-width: 40%; line-height: 1.25; }
.lab2-pair { display: inline-flex; align-items: center; gap: 1px; font: 700 12px Fredoka, sans-serif; color: var(--muted); }
.lab2-pair img { width: 26px; height: 26px; object-fit: contain; }
.lab2-rw { font: 800 12px Nunito, sans-serif; color: var(--cyan); white-space: nowrap; }
.lab2-ok { font: 800 12px Nunito, sans-serif; color: var(--good, #4fe3b0); white-space: nowrap; }
.lab2-row .btn.sm { margin: 0; padding: 4px 11px; min-height: 0; }
.lab2-daily.done { opacity: .8; }

.lab2-eggs.eggs { display: flex; align-items: center; gap: 8px; margin: 0; padding: 2px 8px 2px 10px; border-radius: 14px; }
.lab2-eggs .egg-row { flex: 1; min-width: 0; gap: 6px; padding: 0; scrollbar-width: none; }
.lab2-eggs .egg-row::-webkit-scrollbar { display: none; }
.lab2-eggs .egg-slot { flex-direction: row; width: auto; gap: 5px; padding: 3px 4px 3px 2px; border-radius: 12px; }
.lab2-eggs .egg.sm { width: 24px; height: 30px; }
.lab2-eggs .egg-slot .btn[disabled] { display: none; }   /* the countdown says it; wireEggs shows the button when it is ready */
.lab2-eggs .egg-par { gap: 0; }
.lab2-eggs .egg-par img { width: 20px; height: 20px; }
.lab2-eggs .egg-t { font-size: 10.5px; min-height: 0; }
.lab2-eggs .egg-t:empty { display: none; }
.lab2-eggs .btn.sm { margin: 0; padding: 4px 9px; min-height: 0; font-size: 12px; }

.lab2-q { border-radius: 14px; }
.lab2-qh { cursor: pointer; }
.lab2-qh:active { transform: scale(.99); }
.lab2-pips { display: inline-flex; gap: 4px; }
.lab2-pips i { position: relative; width: 26px; height: 8px; border-radius: 99px; overflow: hidden; background: rgba(164, 112, 255, .2); }
.lab2-pips i b { position: absolute; left: 0; top: 0; bottom: 0; border-radius: inherit; background: linear-gradient(90deg, #3dd6ff, #a470ff); }
.lab2-pips i.ready b { background: linear-gradient(90deg, #ffd23d, #ff8a3d); }
.lab2-pips i.on b { background: #4fe3b0; }
.lab2-t { font: 700 11px Nunito, sans-serif; color: var(--muted); white-space: nowrap; }
.lab2-claim { padding: 2px 9px; border-radius: 99px; font: 800 11.5px Nunito, sans-serif; color: #5a3a00; background: linear-gradient(180deg, #ffe27a, #ffb43d);
  animation: lqpulse 1.4s ease-in-out infinite; white-space: nowrap; }
@keyframes lqpulse { 50% { transform: scale(1.07); box-shadow: 0 0 12px rgba(255, 190, 60, .7); } }
.lab2-badge { font-size: 16px; }
.lab2-chev { font-style: normal; font: 700 18px/1 Fredoka, sans-serif; color: var(--muted); transition: transform .2s; }
.lab2-q.open .lab2-chev { transform: rotate(90deg); }
.lab2-q.open .lab2-qh { border-bottom-left-radius: 6px; border-bottom-right-radius: 6px; }
.lab2-ql { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; padding: 8px 10px 6px; border-radius: 6px 6px 14px 14px; border: 1px solid var(--line); background: var(--panel); }
.lq { display: grid; grid-template-columns: 1fr auto auto; grid-template-areas: "t t act" "bar n act"; align-items: center; gap: 2px 8px; }
.lq-txt { grid-area: t; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; min-width: 0; }
.lq-txt b { font: 700 13px/1.2 Fredoka, sans-serif; }
.lq-txt small { display: inline-flex; align-items: center; gap: 3px; font: 800 11px Nunito, sans-serif; color: var(--muted); }
.lq-bar { grid-area: bar; height: 7px; border-radius: 99px; overflow: hidden; background: rgba(164, 112, 255, .18); }
.lq-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #3dd6ff, #a470ff); }
.lq.done .lq-bar i { background: linear-gradient(90deg, #ffd23d, #ff8a3d); }
.lq.claimed { opacity: .6; }
.lq.claimed .lq-bar i { background: #4fe3b0; }
.lq-n { grid-area: n; font: 800 11px Nunito, sans-serif; color: var(--muted); }
.lq > .btn, .lq-ok { grid-area: act; margin: 0; }
.lq-ok { font: 800 16px Nunito, sans-serif; color: var(--good, #4fe3b0); }
.lq-foot { margin: 2px 0 0; font-size: 11.5px; font-weight: 700; color: var(--muted); line-height: 1.35; }

/* the info sheet behind "?" */
.lab2-info h3 { margin: 12px 0 4px; font: 700 15px Fredoka, sans-serif; }
/* the creature sheet: whose capsule is filling, Remake tab, search, kinds, a grid of small tiles */
.lsheet-box { padding-top: 0; }
.lsheet { display: flex; flex-direction: column; gap: 8px; padding-top: 14px; }
.lsheet > .label { margin: 0; }
.ls-slots { display: flex; align-items: center; gap: 6px; padding-right: 34px; }
.ls-slot { flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 6px; height: 44px; padding: 0 10px 0 6px; border-radius: 14px; border: 2px solid var(--line);
  background: var(--panel); color: var(--text); font: inherit; cursor: pointer; }
.ls-slot i { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 800 12px/1 Nunito, sans-serif; font-style: normal;
  background: rgba(164, 112, 255, .2); color: #a470ff; }
.ls-slot img { width: 32px; height: 32px; object-fit: contain; flex: none; }
.ls-slot b { font: 700 13px Fredoka, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ls-slot.on { border-color: #a470ff; box-shadow: 0 0 0 3px rgba(164, 112, 255, .22); }
.ls-slot.on i { background: #a470ff; color: #fff; }
.ls-slot[data-var] { border-color: var(--vc); }
.ls-plus { flex: none; font: 700 16px Fredoka, sans-serif; color: var(--muted); }
.ls-tabs { display: flex; gap: 6px; }
.ls-tabs .chip { margin: 0; }
.ls-tabs .chip b { margin-left: 3px; opacity: .7; }
.ls-q { display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border-radius: 99px; border: 2px solid var(--line); background: var(--panel); }
.ls-q[hidden] { display: none; }
.ls-q:focus-within { border-color: #a470ff; box-shadow: 0 0 0 3px rgba(164, 112, 255, .2); }
.ls-q input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font: 700 14px Nunito, sans-serif; color: var(--text); }
.ls-kinds { margin: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.ls-kinds:empty { display: none; }
.ls-kinds .chip { flex: none; margin: 0; }
.ls-hint { margin: 0; font-size: 12px; font-weight: 700; color: var(--muted); }
.ls-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; max-height: min(52vh, 420px); overflow-y: auto; padding: 2px 2px 6px; }
.ls-t { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; height: 100px; padding: 6px 4px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; cursor: pointer; transition: transform .1s; }
.ls-t:active { transform: scale(.95); }
.ls-t img { width: 54px; height: 54px; object-fit: contain; }
.ls-t b { max-width: 100%; font: 700 12px Fredoka, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ls-t small { display: inline-flex; align-items: center; gap: 3px; font: 800 10.5px Nunito, sans-serif; color: var(--muted); }
.ls-el { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .5); }
.ls-t.in { border: 2px solid #a470ff; background: rgba(164, 112, 255, .14); }
.ls-t.dim { opacity: .42; filter: grayscale(.5); }
.ls-t.clear { color: var(--bad, #e5435d); } .ls-t.clear span { font: 700 26px Fredoka, sans-serif; }
.ls-role { position: absolute; top: 4px; left: 4px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font: 800 11px/1 Nunito, sans-serif;
  font-style: normal; background: #a470ff; color: #fff; }
.ls-t[data-var] { border: 2px solid var(--vc); box-shadow: inset 0 0 14px color-mix(in srgb, var(--vc) 30%, transparent); }
.ls-t[data-var] img { filter: drop-shadow(0 0 5px var(--vc)); }
.ls-var { position: absolute; top: 4px; right: 4px; max-width: calc(100% - 30px); padding: 0 5px; border-radius: 99px; font: 800 9px/15px Nunito, sans-serif; font-style: normal;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: var(--vc, #ffe27a); color: #2a1d50; }
.ls-need { position: absolute; top: 4px; right: 4px; padding: 0 5px; border-radius: 99px; font: 800 9px/15px Nunito, sans-serif; font-style: normal; background: rgba(229, 67, 93, .9); color: #fff; }
.ls-none { grid-column: 1 / -1; }

/* the mini-games' VIP retry: on the grade card, before the fusion is confirmed */
/* desktop: chamber column and strips column */
@media (min-width: 980px) {
  .lab2 { max-width: 1000px; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, 1fr); align-items: start; column-gap: 16px; }
  .lab2-head, .lab2 > .lab-banner { grid-column: 1 / -1; }
}
/* short phones: a little tighter */
@media (max-height: 700px) and (max-width: 600px) {
  .lab2 { --lg-gap: 6px; }
  .sl-lab.lab2-hero { --S: clamp(72px, 20vw, 110px); --C: clamp(58px, 15vw, 86px); padding-top: 30px; }
}

/* light look: the panels go white, the chamber keeps its dusk */
html.light .lab2-sum, html.light .lab2-row, html.light .lab2-ql, html.light .ls-slot, html.light .ls-t, html.light .ls-q, html.light .lab2-i, html.light .lab2-guide { background: #fff; box-shadow: var(--soft, 0 4px 14px rgba(140, 90, 220, .12)); }
html.light .lab2-eggs.eggs { background: #fff; }
html.light .lab2-eggs .egg-slot { background: var(--tint, #f3eeff); }
html.light .lab2-warn { color: #d23a55; }
html.light .lab2-note.remake { color: #0b6f7d; }
html.light .ls-t.in { background: #f3eeff; }
html.light .lab2-up { color: #1faa68; }
html.light .gt-tip { background: #fff; box-shadow: 0 18px 44px rgba(60, 30, 120, .35); }

/* 15/11 (owner): the "How to play" card over a Lab mini-game the first time (labintro.js); the game waits under it *//* the little looping picture *//* ==== 15/11 (owner: "make the Lab layout look like a genetics lab without losing the game's essence") ============
   The chamber keeps its shape, rings and pastel frame, and becomes a gene lab: a deep bio-teal to violet glass tank,
   a faint lab grid, a DNA double helix turning across it, a sequencer line scanning down, monitor corner brackets,
   DNA·A / DNA·B labels, and the two capsules as incubation tubes with glowing liquid and bubbles. */
.sl-lab.lab2-hero { --bio: #2ee6c0; --bio2: #5ef0ff; background:
    radial-gradient(90% 70% at 50% 18%, rgba(94, 240, 255, .28), transparent 60%),
    radial-gradient(70% 60% at 50% 110%, rgba(46, 230, 192, .35), transparent 70%),
    linear-gradient(160deg, #10354f 0%, #22195e 48%, #3b1468 100%); }
html.light .sl-lab.lab2-hero { background:
    radial-gradient(90% 70% at 50% 18%, rgba(160, 250, 255, .5), transparent 60%),
    radial-gradient(70% 60% at 50% 110%, rgba(80, 240, 205, .55), transparent 70%),
    linear-gradient(160deg, #2a8fb0 0%, #5a49d6 50%, #a24fd8 100%); }
.sl-lab.lab2-hero::before { background: repeating-conic-gradient(rgba(94, 240, 255, .07) 0 6deg, transparent 6deg 16deg); }
.gl-grid { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(94, 240, 255, .14) 1px, transparent 1px), linear-gradient(90deg, rgba(94, 240, 255, .14) 1px, transparent 1px);
  background-size: 18px 18px; -webkit-mask: radial-gradient(120% 90% at 50% 50%, #000 40%, transparent 85%); mask: radial-gradient(120% 90% at 50% 50%, #000 40%, transparent 85%); }
.gl-scan { position: absolute; left: 0; right: 0; top: 0; height: 34px; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(94, 240, 255, .22) 70%, rgba(190, 255, 250, .75) 96%, transparent);
  animation: gl-scan 4.2s cubic-bezier(.45, 0, .55, 1) infinite; mix-blend-mode: screen; }
@keyframes gl-scan { 0% { transform: translateY(-40px); opacity: 0; } 10% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateY(260px); opacity: 0; } }
.gl-corners, .gl-corners::before, .gl-corners::after { position: absolute; pointer-events: none; }
.gl-corners { inset: 9px; z-index: 0;
  background: linear-gradient(var(--bio2), var(--bio2)) top left / 16px 2px no-repeat, linear-gradient(var(--bio2), var(--bio2)) top left / 2px 16px no-repeat,
    linear-gradient(var(--bio2), var(--bio2)) top right / 16px 2px no-repeat, linear-gradient(var(--bio2), var(--bio2)) top right / 2px 16px no-repeat,
    linear-gradient(var(--bio2), var(--bio2)) bottom left / 16px 2px no-repeat, linear-gradient(var(--bio2), var(--bio2)) bottom left / 2px 16px no-repeat,
    linear-gradient(var(--bio2), var(--bio2)) bottom right / 16px 2px no-repeat, linear-gradient(var(--bio2), var(--bio2)) bottom right / 2px 16px no-repeat;
  opacity: .8; filter: drop-shadow(0 0 4px var(--bio2)); }
html.light .gl-corners { inset: 14px; }
/* the double helix: rungs whose two ends swing around (scaleX), drawn behind the capsules at their height */
.gl-helix { position: absolute; z-index: -1; left: 4%; right: 4%; top: calc(29px + var(--S) / 2 - 22px); height: 44px; display: flex; justify-content: space-between;
  pointer-events: none; opacity: .55; }
.gl-helix b { position: relative; width: 2px; height: 100%; animation: gl-rung 2.6s ease-in-out infinite; animation-delay: calc(var(--i) * -0.12s); }
.gl-helix b::before, .gl-helix b::after { content: ""; position: absolute; left: -3px; width: 8px; height: 8px; border-radius: 50%; }
.gl-helix b::before { top: -2px; background: #ff7ad1; box-shadow: 0 0 8px #ff7ad1; animation: gl-dot 2.6s ease-in-out infinite; animation-delay: calc(var(--i) * -0.12s); }
.gl-helix b::after { bottom: -2px; background: var(--bio); box-shadow: 0 0 8px var(--bio); animation: gl-dot 2.6s ease-in-out infinite reverse; animation-delay: calc(var(--i) * -0.12s); }
.gl-helix b { background: linear-gradient(180deg, rgba(255, 122, 209, .7), rgba(46, 230, 192, .7)); }
@keyframes gl-rung { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(-1); } }
@keyframes gl-dot { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.55); opacity: .55; } }
.sl-lab.ready .gl-helix { opacity: .9; }
.sl-lab.ready .gl-helix b, .sl-lab.ready .gl-helix b::before, .sl-lab.ready .gl-helix b::after { animation-duration: 1.3s; }
.sl-lab.fusing .gl-helix b, .sl-lab.fusing .gl-helix b::before, .sl-lab.fusing .gl-helix b::after { animation-duration: .45s; }
.gl-tag { position: absolute; z-index: 1; top: 31px; font: 700 8.5px/1 "Press Start 2P", ui-monospace, monospace; letter-spacing: .08em; color: var(--bio2);
  text-shadow: 0 0 6px rgba(94, 240, 255, .8); opacity: .85; pointer-events: none; }
.gl-tag.l { left: 16px; } .gl-tag.r { right: 16px; }
/* the capsules: incubation tubes, a glass ring with bio liquid and bubbles under the creature */
.lab2-hero .sl-r1 { border-color: rgba(190, 255, 250, .8); box-shadow: 0 0 16px rgba(94, 240, 255, .55), inset 0 0 18px rgba(46, 230, 192, .35); }
.lab2-hero .sl-r3 { border-color: rgba(160, 255, 235, .7); }
.lab2-hero .sl-ring { overflow: hidden; background: radial-gradient(circle at 35% 28%, rgba(255, 255, 255, .35), rgba(255, 255, 255, .06) 45%, rgba(10, 40, 60, .25));
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .35), inset 0 -8px 16px rgba(46, 230, 192, .3); }
.gl-liquid { position: absolute; left: 0; right: 0; bottom: 0; height: 38%; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(94, 240, 255, .55), rgba(46, 230, 192, .85)); box-shadow: 0 -2px 8px rgba(94, 240, 255, .7); animation: gl-wave 3s ease-in-out infinite; }
.slot.empty .gl-liquid { height: 22%; opacity: .7; }
@keyframes gl-wave { 50% { height: 44%; } }
.gl-liquid b { position: absolute; bottom: 10%; width: 5px; height: 5px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .85); animation: gl-bub 2.4s ease-in infinite; }
.gl-liquid b:nth-child(1) { left: 22%; } .gl-liquid b:nth-child(2) { left: 46%; animation-delay: .8s; width: 4px; height: 4px; }
.gl-liquid b:nth-child(3) { left: 64%; animation-delay: 1.5s; } .gl-liquid b:nth-child(4) { left: 80%; animation-delay: .4s; width: 3px; height: 3px; }
@keyframes gl-bub { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(-260%); opacity: 0; } }
.lab2-hero .sl-ring .sl-spec, .lab2-hero .sl-ring .tube-plus { position: relative; z-index: 1; }
.lab2-hero .sl-beam { background: rgba(94, 240, 255, .22); }
.lab2-hero .sl-beam i { background: linear-gradient(90deg, transparent, var(--bio2), transparent); }
.lab2-hero .sl-orbit { border-top-color: var(--bio2); }
.lab2-hero .sl-orbit.b { border-bottom-color: #ff9ee0; }
.lab2-hero .sl-halo { background: radial-gradient(circle, rgba(220, 255, 250, .6), rgba(94, 240, 255, .25) 40%, transparent 70%); }
.lab2-hero .sl-hud { background: rgba(4, 30, 44, .55); border-color: rgba(94, 240, 255, .55); color: #c8fff6; }
.lab2-hero .sl-hud .ch-dot { background: var(--bio); box-shadow: 0 0 8px var(--bio); }
html.light .lab2-hero .sl-hud, html.light .lab2-hero .sl-plate { background: rgba(6, 40, 60, .4); border-color: rgba(190, 255, 250, .6); }
/* the readout under the chamber: a sequencer screen edge */
.gl-readout > .lab2-sum { border-left: 4px solid #2ee6c0; }
.gl-readout > .lab2-sum.empty { border-left-color: rgba(46, 230, 192, .4); }
@media (prefers-reduced-motion: reduce) { .gl-scan, .gl-helix b, .gl-helix b::before, .gl-helix b::after, .gl-liquid, .gl-liquid b { animation: none !important; } .gl-scan { display: none; } }
body.reduce .gl-scan { display: none; }
/* 15/11 (owner: "the monsters got cut inside the fusion circle"): the glass ring no longer clips; only the bio liquid
   is kept inside the circle (its own round mask), so the creature shows whole and can stand out of the glass */
.lab2-hero .sl-ring { overflow: visible; }
.lab2-hero .gl-liquid { inset: 0; height: auto; border-radius: 50%; overflow: hidden; background: none; box-shadow: none; animation: none; }
.lab2-hero .gl-liquid::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 38%;
  background: linear-gradient(180deg, rgba(94, 240, 255, .55), rgba(46, 230, 192, .85)); box-shadow: 0 -2px 8px rgba(94, 240, 255, .7); animation: gl-wave 3s ease-in-out infinite; }
.lab2-hero .slot.empty .gl-liquid { height: auto; opacity: .7; }
.lab2-hero .slot.empty .gl-liquid::before { height: 22%; }
.lab2-hero .sl-ring .sl-spec { width: 118%; }
/* 15/11 (owner: "put a way to choose the genes, show on the ? how it will come, and a separate tab for the results and
   the buffs"): the genes on a pill under the centre orb, the two tabs of the genes box and the parents' gene options */
.sl-genes { position: absolute; z-index: 4; left: 50%; bottom: -12px; transform: translateX(-50%); display: flex; align-items: center; gap: 3px;
  padding: 3px 6px; border-radius: 99px; white-space: nowrap; background: rgba(20, 12, 60, .88);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .75), 0 0 14px rgba(94, 240, 255, .6); }
.sl-genes i { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; font-style: normal; font-size: 13px; background: var(--gc);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .2); }
.sl-genes b { font: 800 12px/1 Nunito, sans-serif; color: #fff; opacity: .8; }
.sl-genes em { padding: 1px 5px; border-radius: 99px; font: 800 8.5px/1.4 Nunito, sans-serif; font-style: normal; letter-spacing: .06em; color: #4a2a00; background: #ffd23d; }
.sl-genes.pop { animation: slg-pop .45s cubic-bezier(.2, 1.5, .4, 1); }
@keyframes slg-pop { from { transform: translateX(-50%) scale(.4); opacity: 0; } }
.sl-lab.fusing .sl-genes { opacity: 0; transition: opacity .2s; }
.lgt-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 0 0 10px; padding: 4px; border-radius: 14px; background: rgba(35, 214, 176, .13); }
.lgt-tabs button { border: 0; padding: 8px 4px; border-radius: 11px; font: 800 12.5px/1.2 Nunito, sans-serif; color: var(--muted); background: none; cursor: pointer; }
.lgt-tabs button.on { color: #13896f; background: #fff; box-shadow: 0 2px 6px rgba(20, 80, 70, .16); }
html:not(.light) .lgt-tabs button.on { color: #6ff5d6; background: rgba(255, 255, 255, .12); }
.lgp-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.lgp { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 8px; border-radius: 14px; background: rgba(120, 100, 200, .08); }
.lgp-h { display: flex; align-items: center; gap: 5px; min-width: 0; font: 800 12.5px/1.2 Nunito, sans-serif; }
.lgp-h img { flex: none; width: 26px; height: 26px; object-fit: contain; }
.lgp-h b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lgp-k { font: 800 10.5px/1.2 Nunito, sans-serif; color: var(--muted); }
.lgp-opt { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: center; gap: 7px; padding: 6px 8px; border-radius: 12px; text-align: left;
  color: inherit; font: inherit; border: 2px solid color-mix(in srgb, var(--gc) 30%, transparent); background: color-mix(in srgb, var(--gc) 7%, transparent); cursor: pointer; }
.lgp-opt > i { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; font-style: normal; font-size: 17px; background: var(--gc);
  box-shadow: 0 2px 0 color-mix(in srgb, var(--gc) 60%, #000); }
.lgp-opt b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 800 13px/1.2 Nunito, sans-serif; color: var(--gc); }
html:not(.light) .lgp-opt b { color: color-mix(in srgb, var(--gc) 55%, #fff); }
.lgp-opt small { display: block; font: 700 10.5px/1.25 Nunito, sans-serif; opacity: .8; }
.lgp-opt.off { opacity: .62; filter: saturate(.7); }
.lgp-opt.on { border-color: var(--gc); background: color-mix(in srgb, var(--gc) 16%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gc) 20%, transparent); }
.lgp-opt.on::after { content: "✓"; position: absolute; top: -8px; right: -7px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%;
  font: 900 12px/1 Nunito, sans-serif; color: #fff; background: var(--gc); box-shadow: 0 0 0 2px #fff; }
.lgp-opt.fixed { cursor: default; }
.lgp-opt.fixed::after { content: ""; background: #fff var(--gi-lock) center / 13px no-repeat; box-shadow: 0 0 0 2px var(--gc); }   /* 20/11: icons.js */
.lgp-one { font: 700 10.5px/1.3 Nunito, sans-serif; color: var(--muted); }
.lgp-res { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; padding: 8px 10px; border-radius: 14px;
  font: 800 12.5px/1.2 Nunito, sans-serif; background: rgba(35, 214, 176, .1); border: 1.5px dashed rgba(35, 214, 176, .55); }
.lab-genes.pure .lgp-res { border-color: #ffd23d; background: rgba(255, 210, 61, .12); }
.lgp-more { display: block; margin: 8px 0 0 auto; padding: 6px 12px; border: 0; border-radius: 99px; font: 800 12.5px Nunito, sans-serif; color: #fff;
  background: linear-gradient(90deg, #19a88a, #8a55f0); box-shadow: 0 2px 0 rgba(20, 60, 80, .35); cursor: pointer; }
/* 15/11 (owner: "make the Lab's mini-games clear enough for a child"): the how-to card's big sentence and why it
   matters, a bigger demo, "Don't show this again"; stars on the result card and on the stage card between games *//* 15/11 (owner: "people don't understand what they have to do"): the practice inside the how-to card (labintro.js) *//* splice: the two halves of the box, the light line, the piece with its arrows *//* pour: the flask, the line, the hand holding *//* reactor (15/11, "make this tutorial look more like the game"): the game's oval ring seen from above, the glass core
   with the ∞, the golden lit arc at the front with bright ends, the parents' orbs with their pictures */
/* 15/11 (owner: "remove that circle around the line, and show better which side to tap"): Gene Splice lights the side
   the next piece's arrows point to, stronger as it nears the line (splice3d.js renderSides) *//* 15/11 (owner: "make 3 more games for the fusions", then "bring more of a rhythm-game style, about genetics"): DNA Beat
   and Gene Guard (helix3d.js, guard3d.js): their icons, the how-to list with icons, the short
   card's moving pictures and the practices (labintro.js) *//* the short card's pictures *//* the practices *//* 15/11 (owner: "make it Touhou style"): Gene Guard's short-card picture and practice (guard3d.js, labintro.js) *//* 16/11 (owner: "the Lab's layout is too small on the PC, spread everything better"): on a big screen the Lab takes the
   room: a wider page (it was held to 880 px), a bigger chamber, everything scaled up a step, the strips beside it */
@media (min-width: 1100px) {
  main:has(> .lab2) { max-width: min(1440px, 100%); }
  .lab2 { max-width: none; grid-template-columns: minmax(0, 1.7fr) minmax(330px, 1fr); column-gap: 24px; row-gap: 10px; zoom: 1.12; }
  .sl-lab.lab2-hero { --S: clamp(124px, 9.5vw, 170px); --C: clamp(98px, 7.4vw, 134px); --B: clamp(26px, 3.4vw, 64px); padding: 42px 16px 18px; }
  .lab2-side { position: sticky; top: 84px; }
}
@media (min-width: 1500px) { .lab2 { zoom: 1.22; } }

/* 16/11 (owner: commissions moved to the Fusionist): the Lab's two tabs, Mix and Commissions */
.lab2-tabs { display: flex; gap: 6px; padding: 4px; border-radius: 99px; border: 1px solid var(--line); background: var(--panel); align-self: flex-start; }
.lab2 > .lab2-tabs { grid-column: 1 / -1; }
.lab2-tabs a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 16px; border-radius: 99px; color: var(--muted); text-decoration: none;
  font: 800 14px/1 Nunito, sans-serif; }
.lab2-tabs a.on { color: #fff; background: linear-gradient(135deg, #a470ff, #ff4fa3 60%, #ff8a3d); box-shadow: 0 4px 12px rgba(164, 112, 255, .35); }
.lab2-tabs .n { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; display: inline-grid; place-items: center; font-size: 11px; color: #fff; background: #ff4f6d; }
.lab-com .lab2-tabs { margin-bottom: 12px; display: inline-flex; }

/* 16/11 (owner: choose body, face and colours between the mini-games): the new species' choice, over everything */
.lch { position: fixed; inset: 0; z-index: 210; display: grid; place-items: center; padding: 16px; background: rgba(10, 6, 30, .72);
  backdrop-filter: blur(4px); opacity: 0; transition: opacity .25s; }
.lch.on { opacity: 1; }.lch h2 { margin: 10px 0 2px; font: 700 26px/1.1 Fredoka, sans-serif; }
.lch p { margin: 0 0 14px; color: rgba(255, 255, 255, .75); font-size: 14px; }@media (max-width: 420px) { .lch h2 { font-size: 22px; } }
/* 17/11 (owner: "don't stack: each one separately, and better search filters"): the parent pickers (Lab, Workshop) */
.pk-tools { display: flex; flex-direction: column; gap: 6px; }
.pk-tools[hidden] { display: none; }
.pk-bar { display: flex; gap: 6px; align-items: center; }
.pk-bar .pk-q { flex: 1; min-width: 0; }
.pk-sort { position: relative; display: flex; align-items: center; gap: 4px; height: 38px; padding: 0 6px 0 10px; border-radius: 99px; border: 2px solid var(--line); background: var(--panel); flex: none; }
.pk-sort span { font: 800 14px Nunito, sans-serif; color: var(--muted); }
html .pk-bar .pk-sort select, html .pk-bar .pk-q input { height: 100%; padding: 0; border: 0; outline: 0; border-radius: 0; background: none; box-shadow: none; width: auto; }
html .pk-bar .pk-q input { flex: 1; min-width: 0; font: 700 14px Nunito, sans-serif; color: var(--text); }
html .pk-bar .pk-sort select { max-width: 104px; font: 800 12.5px Nunito, sans-serif; color: var(--text); cursor: pointer; }
.pk-sort:focus-within { border-color: #a470ff; }
.pk-chips { display: flex; flex-direction: column; gap: 5px; }
.pk-row { margin: 0; display: flex; flex-wrap: nowrap; align-items: center; gap: 5px; overflow-x: auto; scrollbar-width: none; padding: 1px 0; }
.pk-row::-webkit-scrollbar { display: none; }
.pk-row .chip { flex: none; margin: 0; display: inline-flex; align-items: center; gap: 4px; }
.pk-k { flex: none; font: 800 11.5px Nunito, sans-serif; color: var(--muted); max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-sep { flex: none; width: 1px; height: 18px; background: var(--line); margin: 0 2px; }
.pk-el svg { width: 14px; height: 14px; fill: none; stroke: var(--c); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pk-el.on { background: color-mix(in srgb, var(--c) 22%, transparent); border-color: var(--c); }
.pk-mate .chip.on { background: rgba(164, 112, 255, .2); border-color: #a470ff; }
.pk-new.on { background: rgba(255, 196, 61, .22) !important; border-color: #ffb800 !important; }
.ls-hint b { color: var(--text); }
.ls-slot b small { display: block; font: 800 10px Nunito, sans-serif; color: var(--muted); }
.ls-t.pk-t { height: 112px; justify-content: flex-start; padding-top: 8px; }
.pk-t img { width: 50px; height: 50px; }
.pk-pw { font: 800 12px/1.1 Nunito, sans-serif; color: var(--text); }
.pk-t small { min-height: 12px; }
.pk-g { font-style: normal; font-size: 10px; line-height: 1; }
.pk-lv { font-style: normal; font-size: 9px; color: #ffb800; letter-spacing: -1px; }
.pk-show { font-style: normal; font-size: 9px; }
.pk-pair { position: absolute; top: 4px; left: 4px; padding: 0 5px; border-radius: 99px; font: 800 9px/15px Nunito, sans-serif; font-style: normal; white-space: nowrap; }
.pk-pair.new { background: linear-gradient(90deg, #ffcf3d, #ff8fd0); color: #3a2400; box-shadow: 0 0 8px rgba(255, 200, 60, .55); }
.pk-pair.lack { background: rgba(92, 168, 255, .9); color: #fff; }
.pk-pair.have { background: rgba(120, 200, 140, .85); color: #fff; padding: 0 4px; }
.ls-t[data-var] .pk-pair { top: 20px; }
.wk-pkgrid { max-height: min(56vh, 460px); }
html.light .pk-sort { background: #fff; box-shadow: var(--soft, 0 4px 14px rgba(140, 90, 220, .12)); }
/* 17/11 (owner: the Potencial, and free play with incubators) */
.pot-mini { display: inline-block; margin-left: 4px; padding: 0 4px; border-radius: 99px; font: 800 9.5px/14px Nunito, sans-serif; font-style: normal; color: #fff; vertical-align: 1px; background: #9aa3b5; }
.pot-mini.g-average { background: #5ca8ff; } .pot-mini.g-good { background: #2fbf6a; }
.pot-mini.g-perfect { background: linear-gradient(90deg, #ffcf3d, #ff8fd0, #8fd3ff); color: #3a2400; box-shadow: 0 0 8px rgba(255, 200, 60, .6); }
.pot-mini.born { outline: 1.5px solid #fff; }
.pot-box { margin: 8px 0 2px; padding: 10px 12px; border-radius: 14px; border: 2px solid var(--line); background: var(--panel); }
.pot-box.g-perfect { border-color: #ffb800; box-shadow: 0 0 0 3px rgba(255, 184, 0, .18), inset 0 0 18px rgba(255, 184, 0, .12); }
.pot-h { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pot-l { font: 800 12px Nunito, sans-serif; color: var(--muted); }
.pot-pct { font: 700 20px/1 Fredoka, sans-serif; }
.pot-g { padding: 1px 8px; border-radius: 99px; font: 800 11px/18px Nunito, sans-serif; color: #fff; background: #9aa3b5; }
.pot-box.g-average .pot-g { background: #5ca8ff; } .pot-box.g-good .pot-g { background: #2fbf6a; }
.pot-box.g-perfect .pot-g { background: linear-gradient(90deg, #ffcf3d, #ff8fd0); color: #3a2400; }
.pot-born { padding: 1px 8px; border-radius: 99px; font: 800 10.5px/18px Nunito, sans-serif; background: linear-gradient(90deg, #8fd3ff, #ff8fd0, #ffcf3d); color: #2a1a40; }
.pot-stats { display: grid; gap: 4px; margin: 8px 0 6px; }
.pot-s { display: grid; grid-template-columns: 18px 70px 1fr 44px; align-items: center; gap: 6px; }
.pot-s i { font-style: normal; font-size: 13px; }
.pot-s small { font: 800 11px Nunito, sans-serif; color: var(--muted); }
.pot-bar { height: 8px; border-radius: 99px; background: rgba(140, 120, 200, .18); overflow: hidden; }
.pot-bar b { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #a470ff, #5ca8ff); }
.pot-s.top .pot-bar b { background: linear-gradient(90deg, #ffcf3d, #ff8fd0); }
.pot-s em { font: 800 13px Nunito, sans-serif; font-style: normal; text-align: right; }
.pot-s em small { font-size: 10px; }
.pot-tx { display: block; font: 700 11px/1.35 Nunito, sans-serif; color: var(--muted); }
.lab-pot { margin-top: 8px; padding: 8px 10px; border-radius: 12px; border: 2px dashed rgba(164, 112, 255, .45); }
.lab-pot .lp-h { display: block; font: 800 12px Nunito, sans-serif; margin-bottom: 4px; }
.lab-pot .lp-st { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.lab-pot .lp-st span { display: inline-flex; align-items: center; gap: 3px; font: 800 13px Nunito, sans-serif; }
.lab-pot .lp-st i { font-style: normal; } .lab-pot .lp-st small { font: 700 10px Nunito, sans-serif; color: var(--muted); }
.lab-pot > small { display: block; font: 700 11px/1.35 Nunito, sans-serif; color: var(--muted); }
.pk-pg.on.g-perfect { background: rgba(255, 184, 0, .22); border-color: #ffb800; }
.pk-pg.on.g-good { background: rgba(47, 191, 106, .18); border-color: #2fbf6a; }
.pk-pg.on.g-average { background: rgba(92, 168, 255, .18); border-color: #5ca8ff; }
.lab2-inc { margin-left: 2px; }
.egg-slot.free { justify-content: center; border: 2px dashed rgba(164, 112, 255, .4); background: none; opacity: .8; min-height: 120px; }
.egg-slot.free .egg-free { font-size: 26px; filter: grayscale(.6); opacity: .55; }
.egg-slot.free small { font: 800 11px Nunito, sans-serif; color: var(--muted); text-align: center; }
a.wact { text-decoration: none; color: inherit; }
/* 17/11 (owner: DNA, generations, moves and passives) */
.mv-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px 3px 6px; border-radius: 99px; border: 2px solid color-mix(in srgb, var(--c) 45%, transparent);
  background: color-mix(in srgb, var(--c) 12%, var(--panel)); font: 800 12px Nunito, sans-serif; color: var(--text); text-align: left; }
.mv-chip .mv-el { width: 9px; height: 9px; border-radius: 50%; background: var(--c); flex: none; font-style: normal; }
.mv-chip.sig { border-color: #ffb800; box-shadow: 0 0 0 2px rgba(255, 184, 0, .2); }
/* 20/11: the generation moves and the Lab's generation bonus */
.mv-chip.genmv { border-color: #a470ff; box-shadow: 0 0 0 2px rgba(164, 112, 255, .22); }
.gm-tag { font: 900 9px Nunito, sans-serif; font-style: normal; padding: 0 5px; border-radius: 99px; line-height: 14px; color: #2a1550; background: #e9a26b; }
.gm-tag.g3 { background: #dfe4f2; }
.gm-tag.g4 { background: linear-gradient(90deg, #ffe6a3, #ffc93d); }
.li2-gen { display: flex; flex-direction: column; gap: 8px; }
.li2-gen .lg-row { display: flex; flex-direction: column; gap: 4px; }
.li2-gen .lg-row > b { font: 800 12.5px Nunito, sans-serif; text-align: left; align-self: flex-start; }
.li2-gen .lg-row small { font: 700 11px Nunito, sans-serif; color: var(--muted); }
.li2-gen .lg-row .mv-list { display: flex; flex-wrap: wrap; gap: 6px; }
.li2-gen .lg-perks { display: flex; flex-wrap: wrap; gap: 5px; }
.li2-gen .lg-perks span { font: 800 11px Nunito, sans-serif; padding: 3px 8px; border-radius: 99px; background: rgba(164, 112, 255, .12); }
.li2-gen .lg-req { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font: 800 11px Nunito, sans-serif; }
.li2-gen .lg-req .ok { color: #22a95a; }
.li2-gen .lg-req .no { color: #e2445c; }
.mv-chip small { display: block; font: 700 10.5px Nunito, sans-serif; color: var(--muted); }
button.mv-chip { cursor: pointer; opacity: .55; }
button.mv-chip.on { opacity: 1; border-color: var(--c); background: color-mix(in srgb, var(--c) 22%, var(--panel)); box-shadow: 0 0 0 2px color-mix(in srgb, var(--c) 30%, transparent); }
.cm-moves { margin: 8px 0 2px; }
.cm-moves .mv-list { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-top: 4px; }
.cm-moves .mv-chip { border-radius: 12px; align-items: flex-start; padding: 5px 8px; }
.cm-moves .mv-chip .mv-el { margin-top: 4px; }
.cm-gen { display: flex; align-items: center; gap: 8px; margin: 8px 0 2px; flex-wrap: wrap; }
.gen-badge { display: inline-block; padding: 1px 9px; border-radius: 99px; font: 800 11px/20px Nunito, sans-serif; color: #fff;
  background: linear-gradient(90deg, #a470ff, #5ca8ff); white-space: nowrap; }
.lab-inherit { margin-top: 8px; padding: 8px 10px; border-radius: 12px; border: 2px dashed rgba(92, 168, 255, .45); }
.lab-inherit .lp-h { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font: 800 12px Nunito, sans-serif; margin-bottom: 4px; }
.lab-inherit .lgp-more { margin-left: auto; }
.li-row { margin-top: 6px; }
.li-k { display: block; font: 800 11.5px Nunito, sans-serif; margin-bottom: 4px; }
.li-k small { color: var(--muted); font-weight: 700; }
.li-mv, .li-tyg { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-bottom: 4px; }
.li-mv > i, .li-tyg > i { font: 800 11px Nunito, sans-serif; font-style: normal; color: var(--muted); width: 14px; }
.li-ty { display: flex; flex-direction: column; gap: 2px; }
.chip.ty-pick { display: inline-flex; align-items: center; gap: 4px; margin: 0; }
.chip.ty-pick svg { width: 14px; height: 14px; fill: none; stroke: var(--c); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.chip.ty-pick.on { background: color-mix(in srgb, var(--c) 22%, transparent); border-color: var(--c); }
.li-tx { display: block; font: 700 11px/1.35 Nunito, sans-serif; color: var(--muted); }
/* 20/11: a copy of a past era (Era 1 once Aurora turned into Nocturna) */
.pk-era { font: 900 8px Nunito, sans-serif; font-style: normal; color: #ffe6a3; background: #3a1f6e; border-radius: 99px; padding: 0 5px; line-height: 13px; box-shadow: inset 0 0 0 1px rgba(255, 214, 120, .55); }
.pk-gen { position: absolute; bottom: 4px; right: 5px; font: 800 9px Nunito, sans-serif; font-style: normal; color: #fff; background: #a470ff; border-radius: 99px; padding: 0 5px; line-height: 14px; }
.pk-pair.lock { background: rgba(120, 120, 140, .85); color: #fff; padding: 0 4px; }
.pk-k em { font-style: normal; color: #a470ff; }
.lab2-guide.dna-b i { font-style: normal; }
.dna h3 { margin: 12px 0 4px; }
.dna-p { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0; }
.dna-p > i { font-style: normal; font-size: 22px; line-height: 1; }
.dna-p b { display: block; font: 700 14px Fredoka, sans-serif; }
.dna-p small { display: block; font: 700 12px/1.4 Nunito, sans-serif; color: var(--muted); }
.lin-hero { padding: 14px; border-radius: 16px; background: var(--panel); border: 2px solid var(--line); margin: 10px 0; }
.lin-hero h1 { margin: 0 0 6px; }
.lin-firsts { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.lin-f { flex: none; display: flex; flex-direction: column; align-items: center; padding: 8px; border-radius: 14px; background: var(--panel); border: 2px solid #ffb800; width: 120px; text-align: center; }
.lin-f img { width: 64px; height: 64px; object-fit: contain; }
.lin-f b { font: 800 11px Nunito, sans-serif; } .lin-f small { font: 700 10.5px Nunito, sans-serif; color: var(--muted); }
.lin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.lin-c { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; border-radius: 14px; border: 2px solid var(--line); background: var(--panel); cursor: pointer; }
.lin-c.mine { border-color: #2fbf6a; }
.lin-c .gen-badge { position: absolute; top: 6px; left: 6px; }
.lin-c img { width: 84px; height: 84px; object-fit: contain; }
.lin-c b { font: 700 13px Fredoka, sans-serif; } .lin-c small { font: 700 10.5px Nunito, sans-serif; color: var(--muted); text-align: center; }
.lin-c em { font: 700 10px Nunito, sans-serif; font-style: normal; color: var(--muted); }
html.light .mv-chip, html.light .lin-hero, html.light .lin-f, html.light .lin-c { background: #fff; }

/* 17/11 (owner: "improve the family tree") */
.tree-box { max-width: 560px; }
.tree2 { --tl: rgba(164, 112, 255, .55); }
.tg { display: inline-block; padding: 0 7px; border-radius: 99px; font: 800 10px/17px Nunito, sans-serif; color: #fff; background: #8a93a8; white-space: nowrap; }
.tg.g1 { background: #4f8ef7; } .tg.g2 { background: #8a55f0; } .tg.g3 { background: #e0529c; }
.tg.g4 { background: #f28a2e; } .tg.g5 { background: #e8b400; } .tg.g6 { background: linear-gradient(90deg, #ff5fa2, #ffb800, #3fd0ff); }
.tr-hero { display: flex; gap: 12px; align-items: center; padding: 12px; margin: 8px 0 12px; border-radius: 18px; border: 2px solid var(--line);
  background: radial-gradient(circle at 18% 50%, rgba(164, 112, 255, .22), transparent 60%), var(--panel); }
.tr-hero img { width: 104px; height: 104px; object-fit: contain; flex: none; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .25)); }
.tr-hero h2 { margin: 0 0 4px; }
.tr-hero p { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 4px; }
.tr-hero small { font: 700 12px Nunito, sans-serif; color: var(--muted); }
.tr-ty { padding: 0 8px; border-radius: 99px; font: 800 10px/17px Nunito, sans-serif; color: #fff; background: var(--c); }
.tr-k { display: block; margin: 10px 0 4px; font: 800 12px Nunito, sans-serif; }
.tr-k small { font-weight: 700; color: var(--muted); }
.tr-list, .tr-list ul { list-style: none; margin: 0; padding: 0; }
.tr-list ul { margin-left: 26px; }
.tn { position: relative; padding-left: 20px; }
.tn::before { content: ""; position: absolute; left: 6px; top: -4px; bottom: 0; border-left: 2px solid var(--tl); }
.tn:last-child::before { bottom: auto; height: 36px; }
.tn::after { content: ""; position: absolute; left: 6px; top: 32px; width: 14px; border-top: 2px solid var(--tl); }
.tn > ul { display: none; }
.tn.open > ul { display: block; }
.tn-row { position: relative; display: flex; align-items: center; gap: 8px; margin: 5px 0; padding: 6px 10px 6px 6px; border-radius: 14px;
  border: 2px solid var(--line); background: var(--panel); min-height: 56px; }
.tn.leaf > .tn-row { border-style: dashed; }
.tn-row.g1 { border-color: rgba(79, 142, 247, .55); } .tn-row.g2 { border-color: rgba(138, 85, 240, .6); }
.tn-row.g3 { border-color: rgba(224, 82, 156, .6); } .tn-row.g4 { border-color: rgba(242, 138, 46, .6); }
.tn-row img { width: 44px; height: 44px; object-fit: contain; flex: none; }
.tn-row, .tr-b { cursor: pointer; transition: transform .12s, box-shadow .12s; }
.tn-row:hover, .tr-b:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(164, 112, 255, .25); }
.tn-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tn-t b { font: 700 13.5px Fredoka, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tn-t small { display: flex; align-items: center; gap: 4px; }
.tn-el { width: 9px; height: 9px; border-radius: 50%; background: var(--c); display: inline-block; font-style: normal; }
.tn-ab { flex: none; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font: 800 10px/1 Nunito, sans-serif;
  font-style: normal; color: #fff; background: #a470ff; }
.tn-tog { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(164, 112, 255, .18); color: var(--text);
  font: 800 12px/1 Nunito, sans-serif; cursor: pointer; transform: rotate(-90deg); transition: transform .15s; }
.tn.open > .tn-row .tn-tog { transform: none; }
.tn-dot { flex: none; width: 22px; text-align: center; font-style: normal; }
.tn-dot::before { content: ""; display: inline-block; width: 14px; height: 14px; vertical-align: -2px; background: var(--gi-paw) center / contain no-repeat; }
.tr-bases { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 6px; }
.tr-b { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px; border-radius: 12px; border: 2px dashed var(--line); background: var(--panel); }
.tr-b img { width: 46px; height: 46px; object-fit: contain; }
.tr-pct { display: flex; align-items: center; gap: 3px; font: 800 10px Nunito, sans-serif; font-style: normal; color: var(--muted); }
.tr-b small { font: 800 10.5px Nunito, sans-serif; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.light .tr-hero, html.light .tn-row, html.light .tr-b { background: #fff; }
@media (max-width: 480px) {     /* a deep family still fits on a phone */
  .tr-list ul { margin-left: 10px; }
  .tn { padding-left: 16px; }
  .tn::after { width: 10px; }
  .tn-row { gap: 6px; padding-right: 6px; }
  .tn-row img { width: 38px; height: 38px; }
  .tr-hero img { width: 84px; height: 84px; }
}

/* 17/11 (owner: "the % of each creature in the game"): the family DNA bar */
.blood { margin: 8px 0 2px; }
.blood-k { display: block; font: 800 11.5px Nunito, sans-serif; margin-bottom: 5px; }
.blood-k small { color: var(--muted); font-weight: 700; }
.blood-bar { display: flex; gap: 2px; height: 12px; border-radius: 99px; overflow: hidden; background: var(--line); }
.blood-bar i { display: block; min-width: 4px; background: var(--c); }
.blood-leg { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 6px; }
.blood-leg span { display: inline-flex; align-items: center; gap: 4px; font: 700 11.5px Nunito, sans-serif; color: var(--muted); }
.blood-leg span i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; }
.blood-leg img { width: 22px; height: 22px; object-fit: contain; }
.blood-leg b { color: var(--text); font-weight: 800; }

/* 17/11 (owner: dominant and recessive genes) */
.li-dom { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.dom-pick { font: 800 12px Nunito, sans-serif; }
.dom-pick.on { background: linear-gradient(90deg, #8a55f0, #e0529c); color: #fff; border-color: transparent; }

/* 17/11 (owner: "the Potential on the Lab's display") */
.lab2-hero .sl-plate .tube-pot { margin-top: 2px; padding: 0 7px; border-radius: 99px; font: 800 10px/16px Nunito, sans-serif; color: #fff;
  background: #8a93a8; white-space: nowrap; }
.tube-pot.g-average { background: #3f8ff0; } .tube-pot.g-good { background: #22a95a; }
.tube-pot.g-perfect { background: linear-gradient(90deg, #ffcf3d, #ff8fd0, #8fd3ff); color: #3a2400; box-shadow: 0 0 8px rgba(255, 200, 60, .6); }
.sl-pot { position: relative; z-index: 4; margin-top: 20px; padding: 2px 10px; border-radius: 99px; white-space: nowrap;
  font: 800 11px/18px Nunito, sans-serif; color: #fff; background: rgba(20, 12, 60, .88);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .55), 0 0 12px rgba(255, 143, 208, .5); }
.sl-pot b { color: #ffd23d; }
.sl-lab.fusing .sl-pot { opacity: 0; transition: opacity .2s; }
@media (max-width: 480px) {     /* a phone: the chip fits between the two plates */
  .sl-pot { margin-top: 16px; padding: 1px 7px; font-size: 10px; line-height: 16px; }
  .sl-pot .slp-k { display: none; }
  .lab2-hero .sl-plate .tube-pot { font-size: 9px; padding: 0 5px; }
}

/* 17/11 (owner: "the child's Potential stats on the display too") */
.sl-potbar { position: relative; z-index: 3; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 12px;
  width: fit-content; max-width: calc(100% - 24px); margin: 10px auto 2px; padding: 4px 14px; border-radius: 99px;
  background: rgba(20, 12, 60, .82); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .45), 0 0 14px rgba(94, 240, 255, .35); color: #fff; }
.sl-potbar[hidden] { display: none; }
.spb-k { font: 800 11px Nunito, sans-serif; letter-spacing: .02em; opacity: .9; }
.spb-s { display: inline-flex; align-items: baseline; gap: 3px; font: 800 13px Nunito, sans-serif; }
.spb-s i { font-style: normal; font-size: 12px; }
.spb-s small { font: 700 10px Nunito, sans-serif; opacity: .7; }
.spb-t { font: 700 10px Nunito, sans-serif; opacity: .7; }
.sl-lab.fusing .sl-potbar { opacity: 0; transition: opacity .2s; }
@media (max-width: 480px) {
  .sl-potbar { gap: 2px 9px; padding: 3px 10px; border-radius: 14px; }
  .spb-k { flex-basis: 100%; text-align: center; font-size: 10px; }
  .spb-s { font-size: 12px; }
}
html.light .sl-potbar { background: rgba(6, 40, 60, .55); }

/* 17/11 (owner: "each creature's Potential beside it"; then "badly framed"): Life, Strength and Defense of the copy in
   each capsule, a slim column (the icon above the number) hugging the capsule, so it fits the display at any width */
.lab2-hero .slot { position: relative; }
.tube-stats { position: absolute; z-index: 3; top: calc(var(--S) / 2); transform: translateY(-50%); display: flex; flex-direction: column; gap: 3px; }
.tube-stats.head { right: 100%; margin-right: 3px; }
.tube-stats.body { left: 100%; margin-left: 3px; }
.ts { display: flex; flex-direction: column; align-items: center; min-width: 26px; padding: 2px 3px; border-radius: 9px;
  background: rgba(20, 12, 60, .85); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .4); color: #fff; }
.ts i { font-style: normal; font-size: 10px; line-height: 12px; }
.ts b { font: 800 12px/14px Nunito, sans-serif; }
.ts.hi b { color: #7dffb0; } .ts.lo b { color: #ffb0b0; }
.ts.top { box-shadow: 0 0 0 1.5px #ffd23d, 0 0 10px rgba(255, 210, 61, .6); } .ts.top b { color: #ffd23d; }
.tube-stats.under { position: static; transform: none; flex-direction: row; justify-content: center; margin: 0; }
.tube-stats.under .ts { flex-direction: row; gap: 2px; padding: 1px 6px 1px 4px; border-radius: 99px; }
.sl-lab.fusing .tube-stats { opacity: 0; transition: opacity .2s; }
html.light .ts { background: rgba(6, 40, 60, .6); }
@media (max-width: 480px) {
  .tube-stats.head { margin-right: 2px; } .tube-stats.body { margin-left: 2px; }
  .ts { min-width: 24px; padding: 2px; border-radius: 8px; }
  .ts i { font-size: 9px; line-height: 11px; }
  .ts b { font-size: 11px; line-height: 13px; }
}

/* 17/11 (owner: "badly framed"): the capsules and the orb are sized by the display's own width (not the screen's), so
   in the two-column Lab (1100-1300 px) they no longer run past its edges; the stat columns still fit beside them */
.lab2-main { container-type: inline-size; }
@supports (width: 1cqi) {
  .sl-lab.lab2-hero { --S: clamp(66px, 21cqi, 160px); --C: clamp(52px, 16cqi, 124px); --B: clamp(6px, 3.5cqi, 48px); }
}

/* 17/11 (owner: "improve this interface; choosing the attacks got confusing"): the inheritance box in sections */
.lab-inherit.li2 { padding: 10px 12px 12px; }
.li2-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.li2-head .lp-h { margin: 0; font-size: 13px; }
.li2-head .lgp-more { margin-left: auto; }
.li2-sec { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.li2-sec h4 { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 6px; margin: 0 0 7px; font: 800 13px Nunito, sans-serif; }
.li2-sec h4 i { font-style: normal; }
.li2-sec h4 small { font-weight: 700; font-size: 11px; color: var(--muted); }
.li2-sec .blood { margin: 0; }
.li2-segs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.li2-seg { padding: 6px 14px; border-radius: 99px; border: 2px solid var(--line); background: var(--panel); color: var(--text);
  font: 800 12.5px Nunito, sans-serif; cursor: pointer; }
.li2-seg.on { border-color: transparent; background: linear-gradient(90deg, #8a55f0, #e0529c); color: #fff; }
.li2-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.li2-col { padding: 7px 8px; border-radius: 12px; background: color-mix(in srgb, var(--panel) 70%, transparent); border: 1px solid var(--line); }
.li2-from { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; font: 800 12px Nunito, sans-serif; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li2-from b, .li2-mv .tags em { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; flex: none;
  font: 800 10px/1 Nunito, sans-serif; font-style: normal; color: #fff; background: #a470ff; }
.li2-row { display: flex; flex-wrap: wrap; gap: 6px; }
.li2-ty { padding: 5px 12px; border-radius: 99px; border: 2px solid var(--c); background: transparent; color: var(--text);
  font: 800 12.5px Nunito, sans-serif; cursor: pointer; }
.li2-ty.on { background: var(--c); color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .45); box-shadow: 0 0 10px color-mix(in srgb, var(--c) 55%, transparent); }
.li2-slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.li2-slot { position: relative; display: flex; align-items: center; justify-content: center; gap: 5px; min-height: 40px; padding: 4px 18px 4px 8px;
  border-radius: 12px; font: 800 12.5px Nunito, sans-serif; color: var(--text); }
.li2-slot.on { border: 2px solid var(--c); background: color-mix(in srgb, var(--c) 22%, var(--panel)); cursor: pointer; }
.li2-slot.on b { line-height: 1.15; text-align: center; overflow-wrap: anywhere; }   /* long names wrap instead of being cut */
.li2-slot .x { position: absolute; top: 3px; right: 6px; font-size: 10px; opacity: .6; }
.li2-slot.empty { border: 2px dashed var(--line); color: var(--muted); font-weight: 700; font-size: 11.5px; padding-right: 8px; }
.li2-slot .mv-el, .li2-mv .mv-el { width: 9px; height: 9px; border-radius: 50%; background: var(--c); flex: none; font-style: normal; }
.li2-sub { display: block; margin: 9px 0 5px; font: 700 11.5px Nunito, sans-serif; color: var(--muted); }
.li2-pool { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 6px; }
.li2-mv { display: flex; align-items: center; gap: 7px; padding: 6px 8px; border-radius: 12px; border: 2px solid var(--line);
  background: var(--panel); color: var(--text); text-align: left; cursor: pointer; }
.li2-mv .ck { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; flex: none; font: 800 12px/1 Nunito, sans-serif;
  border: 2px solid var(--line); color: var(--muted); }
.li2-mv .nm { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.li2-mv .nm b { font: 800 13px Nunito, sans-serif; }
.li2-mv .nm small { font: 700 10.5px Nunito, sans-serif; color: var(--muted); }
.li2-mv .tags { display: flex; gap: 3px; flex: none; }
.li2-mv .tags em.own, .li2-slot em.own { background: #ffb800; color: #3a2400; font-style: normal; }
.li2-slot em.own { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; font-size: 10px; }
.li2-mv.on { border-color: var(--c); background: color-mix(in srgb, var(--c) 16%, var(--panel)); }
.li2-mv.on .ck { background: var(--c); border-color: var(--c); color: #fff; }
html.light .li2-col { background: #fff; }
@media (max-width: 520px) {
  .li2-cols { grid-template-columns: 1fr; }
  .li2-slots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .li2-pool { grid-template-columns: 1fr; }
}

/* 17/11 (owner: "a really beautiful animation when I press Fuse"): the full-screen fusion show (fuse3d.js) */
.fz3d { position: fixed; inset: 0; z-index: 400; background: #07041a; opacity: 0; transition: opacity .35s; touch-action: none; cursor: pointer; }
.fz3d.in { opacity: 1; }
.fz3d.out { opacity: 0; transition-duration: .38s; }
.fz3d-cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.fz3d-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.fz3d-flash.on { animation: fz3d-flash 1.2s ease-out; }
@keyframes fz3d-flash { 0% { opacity: 0; } 10% { opacity: .38; } 100% { opacity: 0; } }   /* 18/11: softer */
.fz3d-cap { position: absolute; left: 0; right: 0; bottom: 13%; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center;
  color: #fff; opacity: 0; transform: translateY(14px) scale(.96); transition: opacity .5s, transform .6s cubic-bezier(.2, 1.4, .4, 1); pointer-events: none; padding: 0 20px; }
.fz3d-cap.on { opacity: 1; transform: none; }
.fz3d-cap b { font: 700 clamp(28px, 6vw, 46px)/1.1 Fredoka, sans-serif; letter-spacing: .01em;
  background: linear-gradient(90deg, #ffe9a6, #ffffff 40%, #ffb3e6); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 14px rgba(255, 210, 120, .55)); }
.fz3d-cap small { font: 700 14px Nunito, sans-serif; opacity: .85; }
.fz3d-skip { position: absolute; right: 16px; top: calc(14px + env(safe-area-inset-top)); padding: 5px 12px; border-radius: 99px;
  font: 700 12px Nunito, sans-serif; color: rgba(255, 255, 255, .8); background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .25); pointer-events: none; }

/* 17/11 (owner: "the incubators in another tab"): Lab > Incubators */
.lab2-tabs a .n.ready { background: #22a95a; color: #fff; animation: inc-pulse 1.4s ease-in-out infinite; }
@keyframes inc-pulse { 50% { box-shadow: 0 0 0 5px rgba(34, 169, 90, .25); } }
.inc-head { display: flex; align-items: center; gap: 10px; margin: 6px 0 2px; }
.inc-head h1 { margin: 0; font-size: 24px; }
.inc-head .lab2-inc { padding: 2px 10px; border-radius: 99px; font: 800 14px Nunito, sans-serif; color: #fff; background: linear-gradient(90deg, #8a55f0, #e0529c); }
.inc-tip { margin: 0 0 12px; }
.lab2.inc-page { display: block; max-width: 1100px; }
.inc-page .lab2-tabs { margin-bottom: 8px; }
.inc-eggs.eggs, html.light .inc-eggs.eggs { margin: 0; padding: 0; background: none; border: 0; box-shadow: none; }
.inc-eggs .egg-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; overflow: visible; }
.inc-eggs .egg-slot { width: auto; gap: 8px; padding: 18px 12px 14px; border-radius: 20px; border: 2px solid var(--line); background: var(--panel); text-decoration: none; color: var(--text); }
/* 20/11: the Fusionist's incubator: an egg a Fusionist made for you, gold and violet, with their name (bronze, silver,
   gold ring by their level: 1-9, 10-19, 20+) */
.egg-slot.gift { position: relative; border: 2px solid transparent !important; padding-top: 26px !important;
  background: linear-gradient(var(--panel), var(--panel)) padding-box, linear-gradient(135deg, #ffd36e, #a470ff 55%, #ff7ad9) border-box !important;
  box-shadow: 0 0 0 3px rgba(164, 112, 255, .14), 0 10px 26px rgba(164, 112, 255, .28); }
.egg-slot.gift.t-silver { background: linear-gradient(var(--panel), var(--panel)) padding-box, linear-gradient(135deg, #f4f6fb, #a470ff 55%, #9db8ff) border-box !important; }
.egg-slot.gift.t-bronze { background: linear-gradient(var(--panel), var(--panel)) padding-box, linear-gradient(135deg, #e9a26b, #a470ff 55%, #ffb38a) border-box !important; }
.egg-gift-rib { position: absolute; top: -1px; left: 50%; transform: translateX(-50%); white-space: nowrap; font: 900 10px Nunito, sans-serif;
  letter-spacing: .04em; color: #2a1550; background: linear-gradient(90deg, #ffe6a3, #ffd36e); padding: 3px 10px; border-radius: 0 0 10px 10px; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }
.egg-slot.gift.t-silver .egg-gift-rib { background: linear-gradient(90deg, #ffffff, #d8def0); }
.egg-slot.gift.t-bronze .egg-gift-rib { background: linear-gradient(90deg, #ffd2ad, #e9a26b); }
.egg-gift-by { display: flex; flex-direction: column; align-items: center; gap: 0; text-decoration: none; color: var(--text); line-height: 1.15; }
.egg-gift-by small { font: 800 10px Nunito, sans-serif; color: var(--muted); }
.egg-gift-by b { font: 700 14px Fredoka, sans-serif; color: #a470ff; }
.egg-gift-by em { font: 800 10px Nunito, sans-serif; font-style: normal; color: #b8860b; }
html:not(.light) .egg-gift-by em { color: #ffd36e; }
.inc-eggs .egg-slot.is-ready { border-color: #22a95a; box-shadow: 0 0 0 3px rgba(34, 169, 90, .2), 0 8px 22px rgba(34, 169, 90, .25); }
.inc-eggs .egg-par { display: flex; align-items: center; gap: 4px; }
.inc-eggs .egg-par img { width: 38px; height: 38px; object-fit: contain; }
.inc-eggs .egg-par b { color: var(--muted); }
.inc-eggs .egg-pn { font: 700 12px Nunito, sans-serif; color: var(--muted); text-align: center; }
.inc-eggs .egg-t { font: 800 15px Nunito, sans-serif; }
.inc-eggs .egg-slot.free { justify-content: center; min-height: 230px; border-style: dashed; opacity: .85; }
.inc-eggs .egg-free { font-size: 44px; filter: grayscale(.6); opacity: .6; }
.inc-eggs .egg-go { font: 800 12px Nunito, sans-serif; color: #8a55f0; }
.inc-empty { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
@media (max-width: 520px) { .inc-eggs .egg-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .inc-eggs .egg-slot.free { min-height: 190px; } }
/* 17/11: four Lab tabs: on a phone they slide sideways instead of being cut */
@media (max-width: 560px) {
  .lab2-tabs { max-width: 100%; overflow-x: auto; scrollbar-width: none; gap: 2px; }
  .lab2-tabs::-webkit-scrollbar { display: none; }
  .lab2-tabs a { flex: none; padding: 7px 11px; gap: 4px; }
  .lab2-tabs a:not(.on) .t { display: none; }      /* the others show their icon only */
  .lab2-tabs a:not(.on) { padding: 7px 13px; font-size: 17px; }
}

/* 18/11 (owner: "the filters more organised and compact"): one row of drop-downs; the open one's options under it */
.pk-dds { display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 6px; padding: 1px 0; }
.pk-dd { min-width: 0; display: flex; align-items: center; gap: 5px; height: 34px; padding: 0 9px 0 8px; border-radius: 99px;
  border: 2px solid var(--line); background: var(--panel); color: var(--text); font: 800 12.5px Nunito, sans-serif; cursor: pointer;
  transition: border-color .15s, background .15s; }
.pk-dd .pk-ico { flex: none; display: inline-grid; place-items: center; font-size: 13px; line-height: 1; }
.pk-dd .pk-el { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: color-mix(in srgb, var(--c) 22%, transparent); }
.pk-dd .pk-el svg { width: 12px; height: 12px; }
.pk-dd .pk-dl { flex: 1; min-width: 0; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-dd .pk-caret { flex: none; font-style: normal; font-size: 10px; color: var(--muted); transition: transform .2s; }
.pk-dd.open { border-color: #a470ff; }
.pk-dd.open .pk-caret { transform: rotate(180deg); }
.pk-dd.set { border-color: #3fe0d0; background: rgba(63, 224, 208, .14); }
.pk-dd.set.open { border-color: #a470ff; }
.pk-clear { height: 34px; padding: 0 8px; border-radius: 99px; border: 2px dashed var(--line); background: none; color: var(--muted);
  font: 800 12px Nunito, sans-serif; cursor: pointer; white-space: nowrap; }
.pk-clear:hover { color: var(--text); }
.pk-pop { display: flex; flex-wrap: wrap; gap: 5px; padding: 8px; border-radius: 14px; border: 2px solid rgba(164, 112, 255, .45);
  background: color-mix(in srgb, var(--panel) 92%, #a470ff); animation: pk-pop .16s ease-out; }
.pk-pop[hidden] { display: none; }
.pk-pop .chip { flex: none; margin: 0; display: inline-flex; align-items: center; gap: 4px; }
@keyframes pk-pop { from { opacity: 0; transform: translateY(-4px); } }
html.light .pk-dd { background: #fff; }
html.light .pk-dd.set { background: rgba(63, 224, 208, .16); }
html.light .pk-pop { background: #fbf9ff; }
@media (prefers-reduced-motion: reduce) { .pk-pop { animation: none; } }

/* 18/11 (owner: "the genes' result right under the selection"): the bonuses' heading inside the genes box */
.lab-genes .lg-sub { display: block; margin: 12px 0 6px; font: 800 13px Nunito, sans-serif; color: var(--text); }

/* 18/11 (owner: "the attacks empty for the player to pick; no fusion without the 4"): an empty slot invites a pick */
.li2-slot.empty { border-style: dashed; color: var(--muted); font-weight: 800; }
.li2-need { margin-left: 4px; padding: 1px 8px; border-radius: 99px; font: 800 11px Nunito, sans-serif; color: #fff; background: #e0529c; }

/* 18/11 (owner: "more stats"): six stats: the species' bonus beside each, and the capsules' columns in two */
.pot-s { grid-template-columns: 18px 70px 1fr 44px 24px; }
.pot-sp { font: 800 11px Nunito, sans-serif; font-style: normal; text-align: center; border-radius: 99px; padding: 0 3px; }
.pot-sp.up { color: #1f9d55; background: rgba(34, 169, 90, .14); } .pot-sp.dn { color: #d0475d; background: rgba(224, 82, 92, .12); }
.pot-help { display: block; margin: 0 0 6px; font: 700 11px Nunito, sans-serif; color: var(--muted); line-height: 1.35; }
.tube-stats:not(.under) { display: grid; grid-template-columns: repeat(2, auto); }
.tube-stats.under { flex-wrap: wrap; }

/* 18/11: seven stats; the level points sit beside the species' bonus */
.pot-s { grid-template-columns: 18px 70px 1fr 44px 24px 26px; }
.pot-lp { font: 800 10.5px Nunito, sans-serif; font-style: normal; text-align: center; border-radius: 99px; padding: 0 2px; color: #7a5300; background: rgba(255, 196, 40, .2); }
/* 18/11: the All genes tab */
.lab-genes .ag-h { display: flex; align-items: center; gap: 6px; }
.lab-genes .ag-h .ty { font-style: normal; }

/* 18/11 (owner: every species its own stats 1..100, the Potencial how close to the ceiling): the bar is the stat, the
   line its species' ceiling, the small round number the copy's Potencial in it */
.pot-stats.st2 .pot-s { grid-template-columns: 18px 66px 1fr 50px 22px 26px; }
.pot-stats.st2 .pot-bar { position: relative; overflow: visible; }
.pot-stats.st2 .pot-bar b { max-width: 100%; }
/* 19/11 (owner: "the ceiling line is too faint, make it stand out"): a gold tick with a dark rim, a glow and a small arrow on top */
.pot-stats.st2 .pot-bar u { position: absolute; top: -4px; bottom: -4px; width: 3px; margin-left: -1.5px; border-radius: 2px; opacity: 1; text-decoration: none;
  background: #ffd23d; box-shadow: 0 0 0 1px rgba(60, 30, 0, .6), 0 0 7px rgba(255, 200, 60, .95); z-index: 1; }
.pot-stats.st2 .pot-bar u::before { content: ""; position: absolute; top: -6px; left: 50%; transform: translateX(-50%);
  border: 4px solid transparent; border-top: 5px solid #ffd23d; border-bottom: 0; filter: drop-shadow(0 0 1px rgba(60, 30, 0, .7)); }
/* 19/11 (owner: "highlight the Potential up to 15 in another colour, and the 15 in gold"): the Potential (0..15) is a teal
   pill, apart from the bar's violet; a 15 is gold with a glow */
.pot-iv { font: 800 10.5px/18px Nunito, sans-serif; font-style: normal; text-align: center; border-radius: 99px;
  color: #06433d; background: linear-gradient(180deg, #7ff0e0, #2fc9b4); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 1px 2px rgba(0, 0, 0, .25); }
.pot-s.top .pot-iv { color: #5a3300; background: linear-gradient(180deg, #fff3a8, #ffcf3d 55%, #f0a020);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 0 8px rgba(255, 200, 60, .85), 0 1px 2px rgba(0, 0, 0, .3); }

/* 19/11 (polish): an empty capsule's "Toque aqui" was cut to "Toque ..." on a phone */
.lab2-hero .slot.empty .sl-plate .tube-name { font-size: 10.5px; letter-spacing: -.2px; }

/* 19/11 (owner: "make the family tree like the classic ones"): a classic pedigree chart on parchment (app.js treeModal).
   Light theme: cream parchment and sepia ink; dark theme: old leather with gilt lines. */
.tree-box:has(.ftree) { max-width: min(940px, 96vw); }
.ftree { --pa: #f7eed6; --pa2: #e9d6a8; --ink: #4e3a20; --ln: #8a6a3d; --gilt: #c9a24a; --bronze: #a8743e; --plate: #fffaf0; --plate2: #f3e6c4; }
html:not(.light) .ftree { --pa: #2e2418; --pa2: #1c150d; --ink: #f1e2c0; --ln: #c39b62; --gilt: #dcb75e; --bronze: #b98552; --plate: #3d2f1e; --plate2: #2e2416; }
.ft-title { margin: 6px 0 0; text-align: center; font: 700 26px/1.15 Georgia, "Times New Roman", serif; letter-spacing: .02em; }
.ft-sub { margin: 2px 0 10px; text-align: center; font: italic 600 13px Georgia, serif; color: var(--muted); }
.ft-wrap { position: relative; overflow-x: auto; overflow-y: hidden; border-radius: 16px; padding: 6px 0 10px;
  background: radial-gradient(ellipse at 50% 35%, var(--pa) 0%, var(--pa) 45%, var(--pa2) 100%);
  border: 4px double var(--gilt); box-shadow: inset 0 0 0 3px var(--pa), inset 0 0 46px rgba(110, 72, 24, .28), 0 6px 18px rgba(60, 40, 10, .18);
  -webkit-overflow-scrolling: touch; }
.ft-size { position: relative; margin: 0 auto; }
.ft-canvas { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.ft-lines { position: absolute; left: 0; top: 0; pointer-events: none; }
.ft-lines path { fill: none; stroke: var(--ln); stroke-linecap: round; stroke-linejoin: round; }
.ft-knot circle { fill: var(--plate); stroke: var(--gilt); stroke-width: 1.6; }
.ft-knot text { fill: var(--ink); font: 700 12px Georgia, serif; }
.ft-row { position: absolute; left: 10px; text-align: left; font: italic 700 11px Georgia, serif; letter-spacing: .14em; text-transform: uppercase; color: var(--ln); opacity: .85; }
.ft-n { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 0 3px; border: 0; background: none; color: var(--ink);
  font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ft-frame { position: relative; width: var(--fr); height: var(--fr); border-radius: 50%; display: grid; place-items: center; flex: none;
  background: radial-gradient(circle at 50% 38%, var(--plate) 0%, var(--plate2) 100%); border: 3px solid var(--gilt);
  box-shadow: 0 0 0 2px var(--pa), 0 0 0 3.5px var(--ln), 0 5px 12px rgba(60, 40, 10, .3); transition: transform .15s; }
.ft-n.base .ft-frame { border-color: var(--bronze); border-width: 2.5px; }
.ft-n.root .ft-frame { border-width: 4px; box-shadow: 0 0 0 3px var(--pa), 0 0 0 5px var(--gilt), 0 0 22px rgba(201, 162, 74, .55), 0 6px 14px rgba(60, 40, 10, .3); }
.ft-frame img { width: 86%; height: 86%; object-fit: contain; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .25)); }
.ft-n:hover .ft-frame, .ft-n:focus-visible .ft-frame { transform: scale(1.06); }
.ft-plate { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1px; max-width: 100%; padding: 3px 9px 4px; border-radius: 5px;
  background: linear-gradient(var(--plate), var(--plate2)); border: 1px solid var(--ln); box-shadow: 0 2px 4px rgba(60, 40, 10, .18); }
.ft-plate b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 12.5px/1.2 Georgia, "Times New Roman", serif; }
.ft-plate small { font: 600 10px/1.2 Nunito, sans-serif; color: color-mix(in srgb, var(--ink) 72%, transparent); white-space: nowrap; }
.ft-plate i { display: flex; gap: 3px; margin-top: 1px; }
.ft-n.root .ft-plate { padding: 4px 14px 5px; border-color: var(--gilt); border-width: 1.5px; }
.ft-n.root .ft-plate b { font-size: 15px; }
.ft-help { margin: 8px 2px 0; }
.ft-n.root .ft-plate { max-width: none; }
@media (max-width: 560px) {
  .ft-plate { padding: 3px 5px 4px; }
  .ft-plate b { font-size: 11px; }
  .ft-n.root .ft-plate b { font-size: 14px; }
}

/* 19/11 (owner: a short tutorial for new accounts, tapping each tab): app.js firstTour. The tour sits over everything but
   lets taps reach the lit tab (the four blocks around it take the rest). */
.ftour { pointer-events: none; z-index: 150; }
.ftour .gt-dim, .ftour .gt-hole { pointer-events: none; }
.ftour .ft-blk { position: fixed; pointer-events: auto; }
.ftour .gt-tip { pointer-events: auto; animation: ft-in .25s ease-out; }
.ftour .gt-hole { border-radius: 18px; animation: ft-glow 1.4s ease-in-out infinite; }
@keyframes ft-glow { 50% { box-shadow: 0 0 0 4px #fff, 0 0 34px 12px rgba(255, 120, 196, .95); } }
@keyframes ft-in { from { opacity: 0; transform: translateY(6px); } }
.ft-tap { margin: -4px 0 10px; font-weight: 800; color: var(--red-l, #c7a8ff); }
html.light .ft-tap { color: #8a55f0; }
.ftour .gt-nav .linkbtn { font-size: 13px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .ftour .gt-hole, .ftour .gt-tip { animation: none; } }

/* 19/11: an egg's auto-hatch time on the incubators */
.egg-slot .egg-auto { display: block; font-size: 11px; font-weight: 700; color: var(--muted); text-align: center; line-height: 1.25; }

/* 19/11 (owner: "in a single table"): the level points in the Potential table (app.js potRow) and the Level panel's way to it */
.pot-stats.st2 .pot-s, .pot-s.pot-cols { grid-template-columns: 18px 62px 1fr 46px 24px 58px; }
.pot-s.pot-cols { margin: 8px 0 -4px; }
.pot-s.pot-cols small { font: 800 9.5px/1.1 Nunito, sans-serif; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); text-align: center; }
.pot-s.pot-cols small:nth-of-type(2) { text-align: left; }
.pot-s.pot-cols small:first-of-type { text-align: left; }
.pot-pt { position: relative; display: flex; align-items: center; justify-content: center; gap: 4px; min-height: 22px; }
.pot-pt .pp { display: flex; gap: 3px; }
.pot-pt .pp em { width: 7px; height: 7px; border-radius: 50%; background: color-mix(in srgb, var(--text) 18%, transparent); }
.pot-pt .pp em.on { background: #f2a50c; box-shadow: 0 0 0 1px #c97f00 inset; }
.pot-add { flex: none; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; color: #fff; font: 800 16px/22px Nunito, sans-serif;
  background: linear-gradient(135deg, #7b5cff, #ff4fa3); box-shadow: 0 2px 6px rgba(120, 60, 220, .45); animation: pot-add-pulse 1.6s ease-in-out infinite; }
.pot-add:hover { filter: brightness(1.1); }
@keyframes pot-add-pulse { 50% { box-shadow: 0 0 0 4px rgba(164, 112, 255, .3), 0 2px 6px rgba(120, 60, 220, .45); } }
.pot-box.assign { border-color: #f2cd6e; box-shadow: 0 0 0 3px rgba(242, 205, 110, .22); }
.pot-assign { margin: 8px 0 0; padding: 8px 10px; border-radius: 12px; background: linear-gradient(135deg, #fff6d6, #ffe9a8); color: #6b4400;
  font: 700 12.5px/1.4 Nunito, sans-serif; border: 1px solid #f2cd6e; }
.pot-box .lv-reset { display: block; margin: 0 0 6px; }
.lv-go { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; width: 100%; margin: 0 0 8px; padding: 9px 12px; border-radius: 14px; cursor: pointer; text-align: left;
  background: linear-gradient(135deg, #fff6d6, #ffe9a8); color: #6b4400; border: 1.5px solid #f2cd6e; font: 700 12.5px Nunito, sans-serif; }
.lv-go b { font: 800 14px Nunito, sans-serif; }
.lv-go span { color: #8a6420; }
.lv-go:hover { filter: brightness(1.03); }
@media (prefers-reduced-motion: reduce) { .pot-add { animation: none; } }

/* 20/11 (owner: "leave one slot taken with 'generation move slot'"): the 4th attack slot of a generation 2+ fusion */
.li2-slot.gen { flex-direction: column; gap: 2px; padding: 5px 6px; border: 2px solid #a470ff; color: #7c4dff; cursor: default; text-align: center;
  background: repeating-linear-gradient(135deg, rgba(164, 112, 255, .16) 0 8px, rgba(164, 112, 255, .06) 8px 16px); }
html:not(.light) .li2-slot.gen { color: #d9c6ff; }
.li2-slot.gen > .gi { width: 16px; height: 16px; }
.li2-slot.gen b { font: 800 10.5px/1.15 Nunito, sans-serif; }
.li2-slot.gen .gm-tag { position: absolute; top: -7px; right: -5px; }

/* 20/11: the Lab's column is narrow on PC too: four attack slots in a row cut the names in half ("Mart elo"); two a row
   unless the column is really wide */
.li2-slots { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }

/* 21/11 (owner: "put the level in the creature's little square"): the copy's Nível in the tile's top-left corner; the
   pair tag and the A/B mark step down under it */
.pk-nv { position: absolute; z-index: 1; top: 4px; left: 4px; padding: 0 5px; border-radius: 99px; font: 900 9.5px/15px Nunito, sans-serif; font-style: normal;
  color: #fff; background: linear-gradient(90deg, #2a86ff, #8b5cff); box-shadow: 0 1px 4px rgba(40, 60, 160, .35); white-space: nowrap; }
.ls-t .pk-nv ~ .pk-pair, .ls-t .pk-nv ~ .ls-role { top: 22px; }

/* 21/11 (owner: "put a level filter"): the "20+: a new generation" option stands out */
.chip.pk-lvgen { border-color: rgba(164, 112, 255, .55); }
.chip.pk-lvgen.on { background: linear-gradient(90deg, #2a86ff, #8b5cff); color: #fff; }

/* 21/11 (owner: "the generation moves optional, a choice at fusion time"): the generation moves it may learn, apart */
.li2-sub.li2-gensub { display: flex; align-items: center; gap: 6px; color: #c9a8ff; }
.li2-genpool { margin-bottom: 4px; }
.li2-genpool .li2-mv { border-color: rgba(164, 112, 255, .45); background: linear-gradient(90deg, rgba(139, 92, 255, .14), rgba(42, 134, 255, .08)); }
.wk-mv.genmv { border-color: rgba(164, 112, 255, .5); }

/* 21/11 (owner: "fixed Infusion prices by phase"): the price box on the Infusion sheet */
.mut-price { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 8px 0 10px; padding: 10px 12px; border-radius: 14px;
  background: rgba(164, 112, 255, .1); border: 1px solid rgba(164, 112, 255, .35); }
.mut-price b { flex-basis: 100%; font-size: 13.5px; }
.mut-price span { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; font-size: 13px; }
.mut-price .mp-g { color: var(--muted); }
.mut-price small { flex-basis: 100%; color: var(--muted); font-size: 11.5px; }

/* 21/11 (owner: "a result simulator"): the Lab's button and its sheet */
.li2-simb { margin: 8px 0 2px; }
.lsim h2 { margin: 4px 0 2px; }
.lsim-par { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.lsim-par span { display: flex; flex-direction: column; padding: 6px 10px; border-radius: 12px; background: rgba(164, 112, 255, .1); border: 1px solid var(--line); }
.lsim-par small { color: var(--muted); font-size: 11.5px; }
.lsim-par i { font-style: normal; color: var(--muted); font-weight: 800; }
.lsim-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 10px; }
.lsim-chip { padding: 3px 10px; border-radius: 99px; background: rgba(255, 255, 255, .07); border: 1px solid var(--line); font-weight: 800; font-size: 12px; }
.lsim-pw, .lsim-pot { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; margin-bottom: 8px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.lsim-pw b, .lsim-ph b { font: 800 24px Fredoka, sans-serif; }
.lsim-pw em, .lsim-ph em { font-style: normal; color: var(--muted); font-weight: 700; font-size: 12.5px; }
.lsim-pw small, .lsim-ph small { color: var(--muted); font-weight: 800; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; }
.lsim-pw .lsim-why { text-transform: none; letter-spacing: 0; font-weight: 700; }
.lsim-ph { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.lsim-bar { display: flex; height: 12px; border-radius: 99px; overflow: hidden; background: rgba(255, 255, 255, .08); }
.lsim-bar i { display: block; height: 100%; }
.lsim-leg { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; font-weight: 800; }
.lsim-leg span { display: inline-flex; align-items: center; gap: 5px; } .lsim-leg span.zero { opacity: .45; }
.lsim-leg b { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.lsim-leg em { font-style: normal; color: var(--muted); }
.lsim-t { width: 100%; border-collapse: collapse; margin: 4px 0 8px; font-size: 13px; }
.lsim-t th { text-align: left; font-size: 11px; text-transform: uppercase; color: var(--muted); padding: 4px 6px; border-bottom: 1px solid var(--line); }
.lsim-t td { padding: 5px 6px; border-bottom: 1px solid var(--line); }
.lsim-t td small { color: var(--muted); font-size: 11px; }

/* 21/11 (owner: "a card simulator with the final stats"): the most likely card on top of the simulator */
.lsim-card { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 6px 0 10px; }
.lsim-card .card { width: min(220px, 62vw); }
.lsim-card small { color: var(--muted); font-size: 11.5px; text-align: center; }
.lsim-noc { padding: 8px 10px; border-radius: 12px; background: rgba(164, 112, 255, .1); }

/* 21/11 (owner: "simplify the elements choice and show the strengths and weaknesses") */
.li2-tyline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.li2-tyg { display: inline-flex; align-items: center; gap: 4px; padding: 3px; border-radius: 99px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.li2-tyg em { font-style: normal; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #8b5cff; color: #fff; font-weight: 800; font-size: 11px; }
.li2-tyg .li2-ty { margin: 0; padding: 5px 12px; min-height: 30px; }
.li2-plus { color: var(--muted); font-size: 16px; }
.li2-fw { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; padding: 9px 11px; border-radius: 14px; background: rgba(0, 0, 0, .14); border: 1px solid var(--line); }
html.light .li2-fw { background: rgba(124, 92, 255, .06); }
.fw-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 12.5px; }
.fw-row > b { min-width: 150px; font-weight: 800; }
.fw-row.up > b { color: #2fbf6a; } .fw-row.down > b { color: #ff5d73; } .fw-row.res > b { color: #5ca8ff; }
.fw-row > span { display: flex; flex-wrap: wrap; gap: 4px; }
.li2-elc { font-style: normal; padding: 2px 9px; border-radius: 99px; font-weight: 800; font-size: 11.5px; color: #fff;
  background: color-mix(in srgb, var(--c) 75%, #1b1240); border: 1px solid color-mix(in srgb, var(--c) 80%, #fff); }
@media (max-width: 520px) { .fw-row > b { min-width: 0; flex-basis: 100%; } }

/* 21/11 (owner: "improve the layout, remove the useless information, put it in bars"): the simulator, compact */
.lsim .lsim-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 2px 0 8px; color: var(--muted); font-weight: 700; font-size: 13px; }
.lsim .lsim-card { margin: 4px 0 10px; }
.lsim-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-bottom: 8px; }
.lsim-tile { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 8px 6px; border-radius: 14px; background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line); text-align: center; min-width: 0; }
.lsim-tile small { font: 800 10.5px Nunito, sans-serif; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.lsim-tile b { font: 800 21px/1.15 Fredoka, sans-serif; white-space: nowrap; }
.lsim-tile em { font-style: normal; font-weight: 800; font-size: 11.5px; color: var(--muted); }
.lsim-gs { margin: 0 0 8px; }
.lsim-gbar { display: flex; height: 8px; border-radius: 99px; overflow: hidden; background: rgba(255, 255, 255, .08); }
.lsim-gbar i { display: block; height: 100%; }
.lsim-gleg { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; font-size: 11.5px; font-weight: 800; color: var(--muted); }
.lsim-gleg span { display: inline-flex; align-items: center; gap: 5px; }
.lsim-gleg b { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.lsim-stats { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.lsim-sh { display: flex; justify-content: space-between; gap: 8px; }
.lsim-sh small { font-size: 10.5px; font-weight: 800; color: var(--muted); }
.lsim-sh small:first-child { text-transform: uppercase; letter-spacing: .05em; }
.lsim-s { display: grid; grid-template-columns: 96px 1fr 58px; align-items: center; gap: 8px; }
.ls-n { display: flex; align-items: center; gap: 5px; font-weight: 800; font-size: 12.5px; white-space: nowrap; overflow: hidden; }
.ls-n i { font-style: normal; }
.ls-bar { position: relative; height: 10px; border-radius: 99px; background: rgba(255, 255, 255, .09); }
.ls-bar b { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; background: linear-gradient(90deg, #7b5cff, #3dd6ff); }
.ls-bar .ls-rng { position: absolute; top: -2px; bottom: -2px; border-radius: 99px; background: rgba(61, 214, 255, .28); }
.ls-bar u { position: absolute; top: -4px; bottom: -4px; width: 3px; margin-left: -1.5px; border-radius: 2px; background: #ffd23d; box-shadow: 0 0 6px rgba(255, 210, 61, .7); text-decoration: none; }
.ls-v { text-align: right; white-space: nowrap; }
.ls-v b { font: 800 15px Fredoka, sans-serif; }
.ls-v small { color: var(--muted); font-size: 11px; }
html.light .lsim-tile, html.light .lsim-stats { background: #fff; }
html.light .ls-bar { background: rgba(80, 50, 150, .1); }
.lsim-foot { margin: 8px 0; }
@media (max-width: 380px) { .lsim-s { grid-template-columns: 82px 1fr 52px; } .lsim-tile b { font-size: 18px; } }

/* 21/11 (owner: "on the PC expand this screen to fill it and see better"): the creature picker (Lab capsules, Workshop
   orders) takes most of a computer's screen: wide, as tall as the window, the grid filling what is left, bigger tiles */
@media (min-width: 900px) and (min-height: 560px) {
  .modal-box.lsheet-box { max-width: min(1240px, 94vw); height: 92vh; max-height: 92vh; display: flex; flex-direction: column; overflow: hidden; }
  .modal-box.lsheet-box > .lsheet { flex: 1; min-height: 0; }
  .modal-box.lsheet-box > .ls-grid, .lsheet-box .wk-pkgrid { flex: 1; min-height: 0; max-height: none; }
  .lsheet-box .lsheet { display: flex; flex-direction: column; min-height: 0; }
  .lsheet-box .ls-grid { flex: 1; min-height: 0; max-height: none; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; align-content: start; }
  .lsheet-box .ls-t { height: 122px; }
  .lsheet-box .ls-t.pk-t { height: 128px; }
  .lsheet-box .ls-t img, .lsheet-box .pk-t img { width: 66px; height: 66px; }
  .lsheet-box .ls-slots { max-width: 760px; }
  .lsheet-box .pk-dds { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}

/* 21/11 (owner: "filter by stat"): the stat sorted by, in the tile's bottom-right corner */
.pk-t .st-chip { position: absolute; top: 30px; left: auto; right: 4px; bottom: auto; z-index: 3; }

/* 21/11 (owner: "the question mark with the shadow"): the shadow sits behind the "?" on a simulated card with no art */
.lsim-card .card:not(.mystery) .art .silhouette { position: absolute; inset: 8% 6% 30%; width: 88%; height: 62%; object-fit: contain; opacity: .9; z-index: 1;
  filter: drop-shadow(0 0 6px rgba(120, 220, 255, .35)); }
/* 21/11 (owner: "the possible Potentials, and the Power with its average"): ranges in the tiles, each stat's Potential */
.lsim-tile b.lsim-rng { font-size: 17px; }
.lsim-s { grid-template-columns: 96px 1fr 76px; }
.ls-v .ls-pot { display: block; font-style: normal; font-size: 10.5px; font-weight: 800; color: var(--muted); line-height: 1.1; }
@media (max-width: 380px) { .lsim-s { grid-template-columns: 80px 1fr 70px; } .lsim-tile b.lsim-rng { font-size: 15px; } }

/* 21/11 (owner: "put the damage % on each"): the multiplier next to each row of the element chart */
.fw-row .fw-x { font-style: normal; margin-left: 4px; padding: 0 6px; border-radius: 99px; font-size: 11px; background: rgba(255, 255, 255, .1); }
.fw-note { color: var(--muted); font-size: 11px; font-weight: 700; }

/* 21/11 (owner: "show the attack's element on the generation moves") */
.li2-mv .li2-mvel { align-self: flex-start; margin: 2px 0 1px; font-size: 10.5px; padding: 1px 8px; }

/* 21/11 (owner: "improve the recommendation star symbol"): a gold seal with the game's star, a soft glow */
.li2-mv .tags em.own-seal, .li2-slot em.own-seal, .li2-ownleg em.own-seal { display: inline-grid; place-items: center; width: 22px; height: 22px; padding: 0;
  border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff3b0, #ffc93d 45%, #e08a00 100%); border: 1.5px solid #fff6cf;
  box-shadow: 0 0 0 1px rgba(150, 80, 0, .45), 0 0 8px rgba(255, 200, 61, .6); font-style: normal; }
.li2-slot em.own-seal { width: 18px; height: 18px; }
em.own-seal .gi { width: 15px; height: 15px; vertical-align: 0; filter: drop-shadow(0 1px 0 rgba(120, 60, 0, .5)); }
.li2-slot em.own-seal .gi { width: 12px; height: 12px; }
.li2-ownleg { display: flex; align-items: center; gap: 6px; }
.li2-ownleg em.own-seal { flex: none; width: 18px; height: 18px; }
.li2-ownleg em.own-seal .gi { width: 12px; height: 12px; }
/* the seal: a deep violet coin with a gold rim, so the game's gold star stands out */
.li2-mv .tags em.own-seal, .li2-slot em.own-seal, .li2-ownleg em.own-seal { background: radial-gradient(circle at 35% 30%, #7a4cf0, #3a1a8f 60%, #24105e);
  border: 1.5px solid #ffd23d; box-shadow: 0 0 0 1px rgba(40, 10, 90, .5), 0 0 9px rgba(255, 200, 61, .55); }
em.own-seal .gi { filter: drop-shadow(0 0 2px rgba(255, 220, 120, .8)); }

.fw-row.down2 > b { color: #ff2d55; } .fw-row.res2 > b { color: #3d8bff; }

/* 21/11 (owner): the card's Attacks as the Lab shows them: the element by name, the own-element seal, the generation band */
.cm-moves .mv-chip { flex-wrap: wrap; row-gap: 3px; }
.cm-moves .mv-chip > b { flex: 0 1 auto; }
.cm-moves .mv-chip .mv-elc { font-size: 10.5px; padding: 1px 7px; }
.cm-moves .mv-chip small { flex-basis: 100%; }
.cm-moves em.own-seal, .cm-ownleg em.own-seal { display: inline-grid; place-items: center; width: 18px; height: 18px; padding: 0; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #d9c2ff, #8b5cff 50%, #4b22b8 100%); border: 1.5px solid #ffd23d;
  box-shadow: 0 0 0 1px rgba(80, 30, 160, .45), 0 0 8px rgba(164, 112, 255, .55); font-style: normal; flex: none; }
.cm-moves em.own-seal .gi, .cm-ownleg em.own-seal .gi { width: 12px; height: 12px; }
.cm-ownleg { display: flex; align-items: center; gap: 6px; margin-top: 6px; font: 700 11px Nunito, sans-serif; color: var(--muted); }
.cm-genmv { margin: 6px 0; padding: 8px; border-radius: 14px; border: 1.5px dashed rgba(164, 112, 255, .55);
  background: linear-gradient(120deg, rgba(164, 112, 255, .12), rgba(255, 79, 163, .08)); }
.cm-genmv.none { padding: 6px 10px; opacity: .85; }
.cm-genmv .mv-list { margin-top: 6px; grid-template-columns: 1fr; }
.cm-gsub { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font: 800 12px Nunito, sans-serif; color: #8b5cff; }
html:not(.light) .cm-gsub { color: #c9a6ff; }
.cm-gsub .gi { width: 16px; height: 16px; }
.cm-gsub small { flex-basis: 100%; font: 700 11px Nunito, sans-serif; color: var(--muted); }

/* 22/11 (owner: "when they can't be fused, make it clear what is missing"): every reason, in full, in a box */
.lab2-block { margin: 6px 4px 2px; padding: 8px 10px; border-radius: 12px; background: rgba(255, 79, 111, .12); border: 1px solid rgba(255, 111, 145, .55); }
.lab2-bt { display: block; font-size: 12.5px; color: #ff8aa6; margin-bottom: 4px; }
.lab2-block ul { margin: 0; padding-left: 18px; display: grid; gap: 3px; }
.lab2-block li { font-size: 12px; font-weight: 700; line-height: 1.35; white-space: normal; }
html.light .lab2-block { background: #fff0f3; } html.light .lab2-bt { color: #d23a55; }

/* 22/11 (owner): the competitive filter's stat priorities */
.pk-phint { margin: 2px 2px 8px; font-size: 12px; opacity: .8; }
.pk-prow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 4px 0; border-top: 1px dashed rgba(127, 127, 127, .22); }
.pk-prow:first-of-type { border-top: 0; }
.pk-pst { flex: 0 0 138px; justify-content: flex-start; white-space: nowrap; overflow: hidden; padding-inline: 8px !important; }
.pk-prow { flex-wrap: nowrap; }
@media (max-width: 420px) { .pk-pst { flex-basis: 124px; font-size: 12.5px !important; } .pk-min { padding: 4px 7px !important; } }
.pk-pn { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: 4px; border-radius: 50%; font: 800 11px Nunito, sans-serif; font-style: normal;
  background: linear-gradient(135deg, #b46cff, #ff6fb5); color: #fff; }
.pk-pn.add { background: rgba(127, 127, 127, .25); color: inherit; }
.pk-mins { display: flex; gap: 4px; flex-wrap: wrap; }
.pk-min { padding: 4px 9px !important; font-size: 12px !important; min-height: 0 !important; }
.pk-prow:not(.on) .pk-min { opacity: .55; }
.pk-picos { letter-spacing: 1px; }
.pk-pclr { margin-top: 6px; }
.pk-prchips { position: absolute; left: 4px; right: 22px; bottom: 4px; display: flex; flex-wrap: wrap; gap: 2px; justify-content: center; pointer-events: none; }
.pk-prchips .st-chip { position: static; padding: 1px 4px; font-size: 10px; }
.pk-prchips .st-chip.top { background: linear-gradient(135deg, #ffcf5a, #ff9a3c); color: #3a1d00; }

.pk-pby { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 0 0 6px; }
.pk-pby > span { font: 800 12px Nunito, sans-serif; opacity: .75; margin-right: 2px; }

/* 22/11: Potencial and Status, two drop-downs */
.pk-sub { display: block; margin: 8px 2px 6px; font: 800 11px Nunito, sans-serif; letter-spacing: .6px; text-transform: uppercase; opacity: .7; }
.pk-sub:first-child { margin-top: 0; }
.pk-grades, .pk-raws { display: flex; flex-wrap: wrap; gap: 6px; }
.pk-prchips .st-chip.raw { background: linear-gradient(135deg, #5ca8ff, #8b5cff); color: #fff; }

/* 22/11 (owner: "all the stats on the right of the card, with the symbol, inside the card, one colour each") */
.pk-t .pk-prchips { position: absolute; left: auto; right: 3px; top: 22px; bottom: auto; flex-direction: column; flex-wrap: nowrap; align-items: flex-end;
  justify-content: flex-start; gap: 2px; max-height: calc(100% - 26px); overflow: hidden; z-index: 2; }
.pk-t .pk-prchips .st-chip { position: static; display: inline-flex; align-items: center; gap: 2px; padding: 1px 5px 1px 3px; border-radius: 999px;
  font: 800 10px/1.25 Nunito, sans-serif; color: #fff; background: var(--sk, #6b5bd6); box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.pk-t .pk-prchips .st-chip b { font-weight: 900; }
.pk-t .pk-prchips .sk-hp { --sk: #e5484d; }
.pk-t .pk-prchips .sk-atk { --sk: #f08c2e; }
.pk-t .pk-prchips .sk-def { --sk: #3b82f6; }
.pk-t .pk-prchips .sk-spd { --sk: #14b8a6; }
.pk-t .pk-prchips .sk-eva { --sk: #8b5cf6; }
.pk-t .pk-prchips .sk-luck { --sk: #22a34a; }
.pk-t .pk-prchips .sk-elm { --sk: #d946ef; }
.pk-t .pk-prchips .st-chip.top { box-shadow: 0 0 0 1.5px #ffcf5a, 0 1px 3px rgba(0, 0, 0, .3); }
@media (max-width: 420px) { .pk-t .pk-prchips .st-chip { font-size: 9px; padding: 0 4px 0 2px; } }

/* the tile makes room on its right for the stats column */
.pk-t.has-st { padding-right: 40px !important; }
.pk-t.has-st .pk-prchips { top: 4px; right: 3px; width: 38px; max-height: calc(100% - 8px); gap: 1px; align-items: stretch; }
.pk-t.has-st .pk-prchips .st-chip { justify-content: space-between; padding: 1px 4px 1px 2px; font-size: 9.5px; line-height: 1.2; }
.pk-t.has-st .pk-nv { left: 3px; }
@media (max-width: 420px) { .pk-t.has-st { padding-right: 34px !important; } .pk-t.has-st .pk-prchips { width: 32px; }
  .pk-t.has-st .pk-prchips .st-chip { font-size: 8.5px; padding: 0 3px 0 1px; } }

.pk-t > b, .pk-t > .pk-pw, .pk-t > small { flex-shrink: 0; }
.pk-t > img { flex-shrink: 1; min-height: 38px; object-fit: contain; }

/* 23/11: the specialty a fusion keeps */
.lsim-s.spec .ls-n { color: #b8860b; }
.ls-spec { font-style: normal; margin-left: 5px; font-size: 15px; line-height: 1; color: #ffb800; text-shadow: 0 0 6px rgba(255, 184, 0, .6); }
.ls-tw { font-style: normal; margin-left: 4px; font-size: 10px; }
.ls-tw.up { color: #2fbf6a; } .ls-tw.dn { color: #e5484d; }
.lsim-spec { margin: 10px 0 4px; padding: 10px 12px; border-radius: 14px; background: linear-gradient(135deg, rgba(255, 207, 90, .16), rgba(255, 140, 60, .1));
  box-shadow: inset 0 0 0 1px rgba(255, 184, 0, .45); }
.lsim-spec b { display: block; font: 800 14px Nunito, sans-serif; color: #c98a00; margin-bottom: 4px; }
.lsim-spec p { margin: 4px 0 0; font-size: 12.5px; line-height: 1.45; }
html:not(.light) .lsim-spec b { color: #ffcf5a; }
.lsim-s .ls-n .ls-spec { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; font: 800 9.5px/1.4 Nunito, sans-serif; letter-spacing: .4px;
  text-transform: uppercase; color: #3a2400; background: linear-gradient(135deg, #ffd27a, #ffb000); box-shadow: 0 0 8px rgba(255, 184, 0, .55); text-shadow: none; vertical-align: middle; }
/* the specialty row: a gold highlight (the name column has no room for a badge) */
.lsim-s .ls-n .ls-spec { display: none; }
.lsim-s.spec { margin: 2px -6px; padding: 4px 6px; border-radius: 10px; background: linear-gradient(90deg, rgba(255, 196, 60, .22), rgba(255, 196, 60, .06));
  box-shadow: inset 3px 0 0 #ffb000; }
.lsim-s.spec .ls-v b { color: #c98a00; }
html:not(.light) .lsim-s.spec .ls-v b { color: #ffcf5a; }
