/* Meta Ads Readiness Lab — full-viewport arcade, Vice tokens. */

html.focus-mode .navbar,
html.focus-mode .navbar.w-nav {
  display: none !important;
}

html.focus-mode,
html.focus-mode body,
html.focus-mode .page-wrapper {
  min-height: 100svh;
  background: #151130;
}

.lab-page {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  padding: 0;
  box-sizing: border-box;
  background:
    linear-gradient(180deg, #151130 0%, #1c1644 62%, #2a1750 100%);
  overflow: hidden;
}

.lab-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(200, 190, 250, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 190, 250, 0.07) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 78%);
  pointer-events: none;
  z-index: 0;
}

.lab-page::after {
  content: "";
  position: absolute;
  left: -14%;
  right: -14%;
  bottom: -32%;
  height: 48%;
  background:
    repeating-linear-gradient(to right, transparent 0 56px, rgba(94, 234, 212, 0.18) 56px 57px),
    repeating-linear-gradient(to bottom, transparent 0 34px, rgba(255, 126, 182, 0.14) 34px 35px);
  transform: perspective(480px) rotateX(62deg);
  transform-origin: center top;
  pointer-events: none;
  z-index: 0;
}

.lab {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  grid-template-columns: 1fr;
  padding: 10px 28px 8px;
  box-sizing: border-box;
}

.lab-sun {
  position: absolute;
  right: 4%;
  top: 8px;
  width: 96px;
  height: 96px;
  z-index: 0;
  pointer-events: none;
  opacity: 0.85;
}

.lab-palms {
  position: absolute;
  left: -24px;
  bottom: -8px;
  width: 240px;
  height: auto;
  z-index: 0;
  pointer-events: none;
  opacity: 0.16;
}

.lab-top {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 44px;
  z-index: 5;
}

.lab-back {
  flex-shrink: 0;
  margin: 0;
  padding: 8px 4px;
  border: 0;
  background: none;
  font-family: Unbounded, sans-serif;
  font-size: 13px;
  color: #5eead4;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.lab-back[hidden] {
  display: none;
}

.lab-brand {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-size: 22px;
  color: #c8befa;
}

.lab-room {
  font-family: Unbounded, sans-serif;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #5eead4;
}

.lab-manual {
  margin-left: auto;
  font-family: Unbounded, sans-serif;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #5eead4;
  text-decoration: none;
}

.lab-manual:hover,
.lab-manual:focus-visible {
  color: #f6f3ee;
}

.lab-hud-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  justify-content: flex-end;
}

.lab-page:has(.manual-page) {
  overflow: auto;
}

.manual-page {
  height: auto;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.manual-wrap {
  display: grid;
  place-items: center;
  padding: 12px 16px 40px;
  z-index: 1;
}

.manual-book {
  width: min(440px, 100%);
  padding: 28px 28px 32px;
  background: rgba(21, 17, 48, 0.82);
  box-shadow: 0 0 0 2px rgba(94, 234, 212, 0.45);
}

.manual-title {
  margin: 0 0 16px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(32px, 5vw, 44px);
  line-height: 1.08;
  color: #c8befa;
}

.manual-who,
.manual-do,
.manual-next {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.4;
  color: #e8e0ff;
  max-width: none;
}

.manual-list {
  margin: 0 0 16px;
  padding: 0 0 0 1.15em;
  color: #ffc4a3;
  font-family: Unbounded, sans-serif;
  font-size: 13px;
  line-height: 1.45;
}

.manual-list li {
  margin: 0 0 8px;
}

a.lab-back {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.lab-cards:has(.lab-card:nth-child(3):last-child) {
  grid-template-columns: 1fr 1fr 1fr;
}

.lab-cards:has(.lab-card:nth-child(3):last-child) .lab-card:last-child:nth-child(odd) {
  grid-column: auto;
}

.lab-hud-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 42px;
  font-family: Unbounded, sans-serif;
  color: #c8befa;
}

.lab-hud-stat span {
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.7;
}

.lab-hud-stat b {
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #5eead4;
}

.lab-crt {
  position: relative;
  min-height: 0;
  background: transparent;
  overflow: hidden;
}

.lab.has-biz .lab-crt {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(268px, 330px);
  column-gap: 18px;
  align-items: stretch;
}

.lab.has-biz .lab-panel {
  grid-template-columns: minmax(132px, 18vw) minmax(0, 1fr);
}

.lab.has-biz .lab-sun {
  display: none;
}

.lab-biz {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  padding: 14px 16px 12px;
  background: rgba(21, 17, 48, 0.78);
  box-shadow: inset 0 0 0 1px rgba(200, 190, 250, 0.22);
}

.lab-biz[hidden] {
  display: none;
}

.lab-biz-k {
  margin: 0 0 8px;
  font-family: Unbounded, sans-serif;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #5eead4;
}

.lab-biz-wait {
  margin: 0 0 10px;
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-size: 15px;
  color: #ffc4a3;
}

.lab-biz-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(200, 190, 250, 0.12);
  font-size: 13px;
  color: #c8befa;
}

.lab-biz-row b {
  font-family: Unbounded, sans-serif;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #5eead4;
  text-align: right;
}

.lab-biz-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 12px;
}

.lab-biz-spend {
  display: block;
  margin: 10px 0 8px;
  font-size: 13px;
  color: #c8befa;
}

.lab-biz-spend > span {
  font-family: Unbounded, sans-serif;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5eead4;
}

.lab-biz-spend-row {
  display: grid;
  grid-template-columns: 1fr 92px;
  gap: 8px;
  margin-top: 8px;
}

.lab-biz-spend input[type="range"] {
  width: 100%;
  accent-color: #ff7eb6;
}

.lab-biz-spend input[type="number"] {
  width: 100%;
  box-sizing: border-box;
  padding: 7px 8px;
  border: 0;
  background: rgba(21, 17, 48, 0.85);
  box-shadow: inset 0 0 0 1px #c8befa;
  color: #f6f3ee;
  font-family: Unbounded, sans-serif;
  font-variant-numeric: tabular-nums;
  font-size: 13px;
}

.lab-biz-spend input[type="number"]:focus {
  outline: 3px solid #c8befa;
}

.lab-biz-hero {
  margin: 10px 0 6px;
  padding: 12px 12px 10px;
  background: rgba(94, 234, 212, 0.1);
}

.lab-biz-hero span {
  display: block;
  font-family: Unbounded, sans-serif;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5eead4;
}

.lab-biz-hero b {
  display: block;
  margin-top: 4px;
  font-family: Unbounded, sans-serif;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
  color: #f6f3ee;
}

.lab-biz-hero em {
  display: block;
  margin-top: 4px;
  font-family: Unbounded, sans-serif;
  font-style: normal;
  font-size: 11px;
  color: #ffc4a3;
}

.lab-biz-flag {
  margin: 8px 0 0;
  font-size: 12px;
  color: #ffc4a3;
}

.lab-biz-flag b {
  font-family: Unbounded, sans-serif;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.lab-biz-flag.is-ok {
  color: #5eead4;
}

.lab-biz-flag.is-low {
  color: #ff7eb6;
}

.lab-biz-hint {
  margin: 8px 0 0;
  font-size: 12px;
  color: rgba(200, 190, 250, 0.7);
}

.lab-biz-route {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(200, 190, 250, 0.18);
}

.lab-biz-route-name {
  margin: 0 0 4px;
  font-family: Unbounded, sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #f6f3ee;
}

.lab-biz-route-fit {
  margin: 0 0 8px;
  font-size: 12px;
  color: #5eead4;
}

.lab-biz-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 8px 0;
  font-family: Unbounded, sans-serif;
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #c8befa;
}

.lab-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.lab-chip {
  margin: 0;
  padding: 6px 8px;
  border: 0;
  background: rgba(21, 17, 48, 0.8);
  box-shadow: inset 0 0 0 1px rgba(200, 190, 250, 0.28);
  color: #c8befa;
  font-family: Unbounded, sans-serif;
  font-size: 11px;
  cursor: pointer;
}

.lab-chip.is-on {
  background: #5eead4;
  color: #151130;
  box-shadow: none;
}

.lab-chip:focus-visible {
  outline: 3px solid #c8befa;
}

.lab-route-card {
  margin: 0 0 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(200, 190, 250, 0.14);
}

.lab-table-wrap {
  overflow: auto;
  margin: 8px 0 16px;
}

.lab-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.lab-table th,
.lab-table td {
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(200, 190, 250, 0.16);
  color: #e8e0ff;
}

.lab-table th {
  font-family: Unbounded, sans-serif;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5eead4;
  font-weight: 500;
}

.lab-know-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.lab-npc-text.is-green { color: #5eead4; }
.lab-npc-text.is-orange { color: #ffc4a3; }
.lab-npc-text.is-red { color: #ff7eb6; }

.lab-flags {
  list-style: none;
  margin: 8px 0 10px;
  padding: 0;
}

.lab-flag {
  margin: 0 0 6px;
  padding: 8px 10px 8px 12px;
  font-size: 12px;
  color: #e8e0ff;
  border-left: 3px solid #c8befa;
  background: rgba(21, 17, 48, 0.55);
}

.lab-flag b {
  display: block;
  font-family: Unbounded, sans-serif;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.lab-flag.is-green { border-left-color: #5eead4; }
.lab-flag.is-orange { border-left-color: #ffc4a3; }
.lab-flag.is-red { border-left-color: #ff7eb6; }

.lab-flag-action {
  display: block;
  margin-top: 4px;
  color: #ffc4a3;
}

.lab-stage {
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: 0;
  padding: 8px 8px 4px;
  outline: none;
  box-sizing: border-box;
}

.lab-stage:focus,
.lab-stage:focus-visible {
  outline: none;
}

.lab.is-title {
  grid-template-rows: auto 1fr auto;
}

.lab.is-title .lab-dock,
.lab.is-title .lab-keys,
.lab.is-title .lab-room,
.lab.is-title .lab-hud-stats,
.lab.is-title .lab-brand {
  display: none;
}

.lab.is-title .lab-crt,
.lab.is-title .lab-stage {
  overflow: visible;
}

.lab.is-title .lab-stage {
  padding: 0;
}

.lab-title {
  position: relative;
  display: block;
  height: 100%;
  min-height: 0;
}

.lab-title-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(12px, 2vh, 28px);
  width: 100%;
  height: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 2vh 34% 6vh 0;
}

.lab-dott {
  margin: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 0.82;
  font-family: Unbounded, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.06em;
  color: #f6f3ee;
}

.lab-dott-line {
  display: block;
  width: max-content;
  white-space: nowrap;
  overflow: visible;
  -webkit-text-stroke: 0.016em #151130;
  paint-order: stroke fill;
}

.lab-dott-line.is-meta {
  font-size: clamp(72px, 18vw, 240px);
  color: #ff7eb6;
  text-shadow:
    -0.045em 0 0 #5eead4,
    0.05em 0 0 #c8befa,
    0.07em 0.08em 0 #0a0818;
}

.lab-dott-line.is-ads {
  font-size: clamp(88px, 22vw, 280px);
  color: #5eead4;
  text-shadow:
    -0.045em 0 0 #ff7eb6,
    0.05em 0 0 #c8befa,
    0.07em 0.08em 0 #0a0818;
}

.lab-dott-line.is-sim {
  font-size: clamp(40px, 9.5vw, 128px);
  letter-spacing: -0.04em;
  color: #c8befa;
  text-shadow:
    -0.035em 0 0 #5eead4,
    0.04em 0 0 #ff7eb6,
    0.055em 0.06em 0 #0a0818;
}

.lab-title-tag {
  margin: 0;
  font-family: Unbounded, sans-serif;
  font-size: clamp(12px, 1.3vw, 16px);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #5eead4;
}

.lab-title-cta {
  align-self: start;
  margin: 4px 0 0;
  padding: 20px 32px;
  font-family: Unbounded, sans-serif;
  font-size: clamp(16px, 2.2vw, 28px);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lab-title-hero {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  width: min(42vw, 460px);
  height: 92%;
  pointer-events: none;
}

.lab-title-hero img {
  display: block;
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: bottom right;
  image-rendering: pixelated;
}

.lab-panel {
  display: grid;
  grid-template-columns: minmax(200px, 24vw) minmax(0, 1fr);
  column-gap: 48px;
  height: 100%;
  max-width: none;
  min-height: 0;
}

.lab-board {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  min-height: 0;
  height: 100%;
}

.lab-panel > *:not(.lab-npc):not(.lab-board) {
  grid-column: 2;
}

.lab-panel:not(:has(.lab-npc)) {
  grid-template-columns: 1fr;
  width: min(1100px, 100%);
  margin: 0 auto;
}

.lab-panel:not(:has(.lab-npc)) > * {
  grid-column: 1;
}

.lab-npc {
  position: relative;
  z-index: 2;
  grid-column: 1;
  grid-row: 1 / -1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 16px;
  margin: 0;
  min-height: 0;
}

.lab-sprite,
.lab-fox {
  width: min(240px, 100%);
  overflow: visible;
  background: transparent;
}

.lab-sprite img,
.lab-fox img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  image-rendering: pixelated;
}

.lab-npc-text {
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  color: #ffc4a3;
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-size: clamp(16px, 1.6vw, 22px);
  line-height: 1.35;
  min-width: 0;
  overflow-wrap: anywhere;
}

.lab-kicker,
.lab-verdict-tag,
.lab-boot-k,
.lab-quiz-flag {
  font-family: Unbounded, sans-serif;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5eead4;
  margin: 0;
}

.lab-h1 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  font-size: clamp(32px, 4.4vw, 58px);
  line-height: 1.08;
  color: #c8befa;
  text-shadow: 3px 0 0 rgba(255, 126, 182, 0.28);
  max-width: 18ch;
  min-width: 0;
  overflow-wrap: anywhere;
}

.lab-h2 {
  margin: 18px 0 6px;
  font-family: Unbounded, sans-serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffc4a3;
}

.lab-support {
  margin: 0;
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.4;
  color: #e8e0ff;
  max-width: 46ch;
}

.lab-formula {
  margin: 0;
  padding: 18px 20px;
  font-family: Unbounded, sans-serif;
  font-size: clamp(14px, 1.4vw, 18px);
  color: #151130;
  background: #5eead4;
}

.lab-statline {
  margin: 0;
  padding: 14px 0;
  font-family: Unbounded, sans-serif;
  font-size: clamp(16px, 1.5vw, 20px);
  color: #f6f3ee;
  border-bottom: 1px solid rgba(200, 190, 250, 0.18);
}

.lab-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: minmax(100px, auto);
  gap: 14px;
  min-height: 0;
  flex: 1 1 auto;
  align-content: start;
}

.lab-cards:has(.lab-card:nth-child(3)) {
  grid-auto-rows: 1fr;
  align-content: stretch;
}

.lab-cards .lab-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.lab-card {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  margin: 0;
  padding: 18px 20px;
  min-height: 92px;
  background: rgba(21, 17, 48, 0.55);
  color: #c8befa;
  border: 0;
  box-shadow: inset 0 0 0 1px rgba(200, 190, 250, 0.16);
  cursor: pointer;
  font-family: Unbounded, sans-serif;
}

.lab-card:hover,
.lab-card:focus-visible {
  color: #f6f3ee;
  box-shadow: inset 0 0 0 2px #5eead4;
  background: rgba(94, 234, 212, 0.1);
}

.lab-card:focus-visible {
  outline: 3px solid #c8befa;
  outline-offset: 3px;
}

.lab-card.is-on {
  background: #5eead4;
  color: #151130;
  box-shadow: none;
}

.lab-card.is-on .lab-card-hint {
  color: #151130;
}

.lab-card-key {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  font-size: 13px;
  background: #c8befa;
  color: #151130;
}

.lab-card.is-on .lab-card-key {
  background: #151130;
  color: #5eead4;
}

.lab-card-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.lab-card-label {
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 500;
}

.lab-card-hint {
  font-size: 13px;
  font-weight: 400;
  color: #ffc4a3;
  letter-spacing: 0;
  text-transform: none;
}

.lab-continue {
  margin-top: 4px;
  justify-self: start;
}

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

.lab-actions .button {
  margin: 0;
}

.lab-label {
  display: block;
  margin: 10px 0 6px;
  font-family: Unbounded, sans-serif;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5eead4;
}

.lab-input {
  width: min(520px, 100%);
  box-sizing: border-box;
  padding: 14px 16px;
  border: 0;
  box-shadow: inset 0 0 0 2px #c8befa;
  background: rgba(21, 17, 48, 0.65);
  color: #f6f3ee;
  font-size: 16px;
  font-family: Unbounded, sans-serif;
}

.lab-input:focus {
  outline: 3px solid #c8befa;
  box-shadow: inset 0 0 0 2px #5eead4;
}

.lab-legal,
.lab-field-error {
  margin: 12px 0 0;
  font-size: 13px;
  color: #c8befa;
}

.lab-field-error {
  color: #ff7eb6;
}

.lab-boot {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
}

.lab-boot-k {
  font-size: 14px;
  color: #5eead4;
}

.lab-boot-sub,
.lab-boot-load {
  font-family: Unbounded, sans-serif;
  color: #c8befa;
}

.lab-boot-load {
  margin-top: 24px;
  color: #ff7eb6;
}

.lab-quiz-flag.is-yes {
  color: #5eead4;
}

.lab-quiz-flag.is-no {
  color: #ff7eb6;
}

.lab-sim {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.lab-sim-row {
  display: grid;
  grid-template-columns: 120px 1fr 36px;
  gap: 10px;
  align-items: center;
  font-family: Unbounded, sans-serif;
  font-size: 12px;
  color: #c8befa;
}

.lab-sim-n,
.lab-bar-n {
  font-variant-numeric: tabular-nums;
  text-align: right;
  color: #5eead4;
}

.lab-sim-track,
.lab-bar-track {
  height: 10px;
  background: rgba(21, 17, 48, 0.7);
}

.lab-sim-track i,
.lab-bar-track i {
  display: block;
  height: 100%;
  width: 0;
  background: #5eead4;
}

.lab-bar {
  margin: 0 0 12px;
}

.lab-bar-meta {
  display: flex;
  justify-content: space-between;
  font-family: Unbounded, sans-serif;
  font-size: 12px;
  color: #c8befa;
  margin-bottom: 4px;
}

.lab-bar.is-ok .lab-bar-track i {
  background: #5eead4;
}

.lab-bar.is-mid .lab-bar-track i {
  background: #ffc4a3;
}

.lab-bar.is-low .lab-bar-track i {
  background: #ff7eb6;
}

.lab-sheet {
  margin: 8px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 32px;
}

.lab-dock {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 0;
  margin: 0;
  z-index: 2;
}

.lab-dock-item {
  flex: 1 1 0;
  max-width: 140px;
  min-width: 0;
  padding: 10px 8px 6px;
  border: 0;
  background: transparent;
  color: rgba(200, 190, 250, 0.7);
  font-family: Unbounded, sans-serif;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
}

.lab-dock-item::before {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: rgba(200, 190, 250, 0.28);
}

.lab-dock-item.is-done {
  color: #5eead4;
}

.lab-dock-item.is-done::before {
  background: #5eead4;
}

.lab-dock-item.is-on {
  color: #f6f3ee;
}

.lab-dock-item.is-on::before {
  background: #ff7eb6;
  box-shadow: 0 0 0 5px rgba(255, 126, 182, 0.28);
}

.lab-dock-item:focus-visible {
  outline: 3px solid #c8befa;
  outline-offset: 2px;
}

.lab-map {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 8px 0 0;
  min-height: 0;
  flex: 1;
}

.lab-map-cell {
  display: grid;
  grid-template-columns: 28px 1fr;
  grid-template-rows: auto auto;
  column-gap: 10px;
  row-gap: 4px;
  margin: 0;
  padding: 18px 16px;
  min-height: 110px;
  text-align: left;
  background: rgba(21, 17, 48, 0.55);
  color: #c8befa;
  border: 0;
  box-shadow: inset 0 0 0 1px rgba(200, 190, 250, 0.16);
  font-family: Unbounded, sans-serif;
  cursor: pointer;
}

.lab-map-cell:hover:not(:disabled),
.lab-map-cell:focus-visible:not(:disabled) {
  color: #f6f3ee;
  box-shadow: inset 0 0 0 2px #5eead4;
}

.lab-map-cell:focus-visible {
  outline: 3px solid #c8befa;
  outline-offset: 3px;
}

.lab-map-cell.is-on {
  background: #5eead4;
  color: #151130;
  box-shadow: none;
}

.lab-map-cell.is-on .lab-map-blurb {
  color: #151130;
}

.lab-map-cell.is-done:not(.is-on) {
  box-shadow: inset 0 0 0 2px #5eead4;
}

.lab-map-cell.is-locked,
.lab-map-cell:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.lab-map-n {
  grid-row: 1 / span 2;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: #c8befa;
  color: #151130;
  font-size: 12px;
  align-self: start;
}

.lab-map-name {
  font-size: 14px;
  font-weight: 500;
}

.lab-map-blurb {
  grid-column: 2;
  font-size: 12px;
  font-weight: 400;
  color: #ffc4a3;
  letter-spacing: 0;
  text-transform: none;
}

.lab-meters {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin: 0;
}

.lab-meter {
  padding: 16px 14px;
  background: rgba(21, 17, 48, 0.55);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: Unbounded, sans-serif;
}

.lab-meter span {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c8befa;
}

.lab-meter b {
  font-size: clamp(18px, 2vw, 26px);
  font-variant-numeric: tabular-nums;
  color: #f6f3ee;
  font-weight: 600;
}

.lab-meter.is-low b {
  color: #ff7eb6;
}

.lab-meter.is-ok b {
  color: #5eead4;
}

.lab-log {
  margin: 0;
  padding: 0;
  list-style: none;
  min-height: 0;
  overflow: auto;
  flex: 1;
  background: rgba(21, 17, 48, 0.45);
}

.lab-log li {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(200, 190, 250, 0.1);
  font-size: 16px;
  line-height: 1.4;
  color: #e8e0ff;
}

.lab-log li:last-child {
  border-bottom: 0;
  color: #f6f3ee;
}

.lab-log-w {
  font-family: Unbounded, sans-serif;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: #5eead4;
  margin-right: 8px;
}

.lab-quests {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: quest;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.lab-quests li {
  position: relative;
  padding: 16px 16px 16px 56px;
  margin: 0;
  background: rgba(21, 17, 48, 0.55);
  counter-increment: quest;
}

.lab-quests li::before {
  content: "Q" counter(quest);
  position: absolute;
  left: 12px;
  top: 16px;
  font-family: Unbounded, sans-serif;
  font-size: 11px;
  color: #151130;
  background: #ffc4a3;
  padding: 3px 6px;
}

.lab-quests strong {
  display: block;
  font-family: Unbounded, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #f6f3ee;
  margin-bottom: 4px;
}

.lab-quests span {
  display: block;
  font-size: 13px;
  color: #ffc4a3;
}

.lab-keys {
  margin: 0;
  font-family: Unbounded, sans-serif;
  font-size: 11px;
  color: rgba(200, 190, 250, 0.55);
  text-align: center;
}

.lab-foot {
  position: absolute;
  right: 28px;
  bottom: 10px;
  margin: 0;
  font-size: 11px;
  color: rgba(200, 190, 250, 0.55);
  z-index: 3;
}

.lab-foot a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lab-print {
  overflow: auto;
}

@media (max-width: 900px) {
  .lab {
    height: auto;
    min-height: 100svh;
    padding: 12px 16px 56px;
    overflow: auto;
  }

  .lab-page {
    overflow: auto;
  }

  .lab-panel,
  .lab-board {
    display: flex;
    flex-direction: column;
    height: auto;
    gap: 12px;
  }

  .lab-panel > *:not(.lab-npc) {
    grid-column: auto;
  }

  .lab-npc {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
  }

  .lab-sprite,
  .lab-fox {
    width: 88px;
    min-width: 88px;
    height: auto;
    aspect-ratio: auto;
  }

  .lab-title {
    min-height: calc(100svh - 88px);
  }

  .lab-title-copy {
    padding: 12px 0 120px;
    justify-content: flex-start;
  }

  .lab-title-hero {
    right: 0;
    width: 168px;
    height: 260px;
    z-index: 1;
  }

  .lab-dott-line.is-meta {
    font-size: clamp(56px, 22vw, 104px);
  }

  .lab-dott-line.is-ads {
    font-size: clamp(68px, 28vw, 128px);
  }

  .lab-dott-line.is-sim {
    font-size: clamp(28px, 11vw, 52px);
  }

  .lab-title-cta {
    padding: 16px 22px;
  }

  .lab.has-biz .lab-crt {
    display: flex;
    flex-direction: column;
    overflow: auto;
  }

  .lab.has-biz .lab-stage {
    flex: 1 1 auto;
  }

  .lab-biz {
    flex: 0 0 auto;
    max-height: 46vh;
    order: 2;
  }

  .lab-h1 {
    max-width: 100%;
    font-size: clamp(24px, 6.6vw, 32px);
  }

  .lab-support {
    max-width: none;
  }

  .lab-keys {
    display: none;
  }

  .lab-dock-item {
    font-size: 0;
    padding: 10px 4px 4px;
  }

  .lab-dock-item::before {
    margin-bottom: 0;
  }

  .lab-cards,
  .lab-cards:has(.lab-card:nth-child(3):last-child),
  .lab-map,
  .lab-meters,
  .lab-sheet,
  .lab-quests {
    grid-template-columns: 1fr;
  }

  .lab-hud-stats {
    display: none;
  }

  .lab-sun,
  .lab-palms {
    display: none;
  }

  .lab-dock {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .lab-foot {
    position: static;
    text-align: center;
    margin-top: 8px;
  }
}

@media (max-width: 720px) {
  .lab-cards {
    grid-template-columns: 1fr;
  }

  .lab-sim-row {
    grid-template-columns: 1fr 40px;
  }

  .lab-sim-row span:first-child {
    grid-column: 1 / -1;
  }
}

html.motion .lab-stage .lab-h1,
html.motion .lab-stage .lab-card,
html.motion .lab-stage .lab-support,
html.motion .lab-stage .lab-npc,
html.motion .lab-stage .lab-dott-line,
html.motion .lab-stage .lab-title-tag,
html.motion .lab-stage .lab-title-cta,
html.motion .lab-stage .lab-title-hero {
  opacity: 1;
}

@media print {
  .navbar,
  .lab-top,
  .lab-dock,
  .lab-keys,
  .lab-actions,
  .lab-npc,
  .lab-sun,
  .lab-palms,
  .lab-foot,
  .lab-title-hero,
  .lab-title-cta,
  .lab-biz {
    display: none !important;
  }

  .lab-page,
  .lab-crt,
  .page-wrapper,
  body,
  html.focus-mode,
  html.focus-mode body {
    background: #fff !important;
    color: #111 !important;
    height: auto !important;
    overflow: visible !important;
  }

  .lab {
    height: auto;
    display: block;
  }

  .lab-h1,
  .lab-support,
  .lab-h2 {
    color: #111 !important;
    text-shadow: none !important;
  }
}
