/* Liquid glass lab — page scaffolding only; the buttons live in assets/css/glass.css */

.stage {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
}

.stage__media {
  position: absolute;
  inset: 0;
}

.stage__media img,
.stage__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stage__ui {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(28px, 5svh, 48px);
  min-height: 100svh;
  padding: max(28px, env(safe-area-inset-top)) 16px calc(225px + env(safe-area-inset-bottom));
}

.lab__logo {
  width: clamp(120px, 22vw, 180px);
  margin-bottom: auto;
}

.lab__row {
  display: grid;
  justify-items: center;
  gap: 12px;
}

.stage__ui > :last-child {
  margin-bottom: auto;
}

/* Single finish: card + buttons, like a real start page block */
.lab__compo {
  display: grid;
  gap: 12px;
  width: min(420px, 100%);
}

.lab__compo .lab__label {
  margin-bottom: 4px;
}

.lab__compo .lab__buttons {
  flex-wrap: nowrap;
}

.lab__compo .glass-btn:not(.glass-btn--round) {
  flex: 1;
}

.lab__kicker {
  margin: 0 0 10px;
  color: color-mix(in srgb, currentColor 80%, transparent);
}

.lab__lead {
  margin: 0;
  font-size: clamp(1.25rem, 5vw, 1.625rem);
  line-height: 1.25;
}

/* Text view: one draggable card per finish, real copy at real sizes */
.lab__cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.lab__card {
  width: min(330px, 100%);
}

.lab__tag {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin: 0 0 12px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lab__tag .lab__status {
  letter-spacing: 0;
  text-transform: none;
}

.lab__title {
  margin: 0 0 6px;
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.15;
}

.lab__body {
  margin: 0 0 12px;
}

.lab__small {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: color-mix(in srgb, currentColor 85%, transparent);
}

@media (max-width: 480px) {
  .lab__cards {
    gap: 12px;
  }

  .lab__card {
    padding: 18px 20px 20px;
  }

  .lab__title {
    font-size: 1.25rem;
  }
}

.lab__label {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 4px 10px;
  margin: 0;
  font-size: 0.8125rem;
  text-align: center;
  text-shadow: 0 1px 6px rgb(0 0 0 / 0.6);
}

.lab__label strong {
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lab__status:not(:empty) {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgb(17 17 16 / 0.72);
  color: var(--monki-offwhite);
  font-size: 0.75rem;
  text-shadow: none;
}

.lab__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

[data-drag] {
  touch-action: none;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
}

[data-drag].is-dragging {
  cursor: grabbing;
}

/* Controls: deliberately plain (no glass), so they never compete with the samples */
.lab__bar {
  position: fixed;
  inset: auto 0 0;
  z-index: 50;
  display: grid;
  gap: 6px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgb(17 17 16 / 0.82);
  font-size: 0.8125rem;
}

/* Hide the controls for a clean look when showing the client */
.lab__hide {
  position: absolute;
  right: 12px;
  bottom: calc(100% + 8px);
  padding: 6px 12px;
  border: 0;
  border-radius: 999px;
  background: rgb(17 17 16 / 0.82);
  color: inherit;
  font: inherit;
  font-size: 0.75rem;
  cursor: pointer;
}

.lab__bar.is-collapsed {
  padding-block: 0 env(safe-area-inset-bottom);
  background: none;
}

.lab__bar.is-collapsed .lab__group {
  display: none;
}

.lab__group {
  display: flex;
  justify-content: safe center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.lab__group-label {
  flex: none;
  align-self: center;
  padding-left: 4px;
  opacity: 0.5;
}

.lab__slider {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
}

.lab__slider input {
  width: 96px;
  accent-color: var(--monki-offwhite);
}

.lab__slider output {
  width: 2ch;
  font-variant-numeric: tabular-nums;
}

.lab__slider .lab__tint-value {
  width: 9ch;
}

.lab__slider-end {
  opacity: 0.5;
}

/* Text colour + tint: one line on wide screens, two on phones */
.lab__group--wrap {
  flex-wrap: wrap;
  row-gap: 2px;
}

.lab__group a {
  flex: none;
  padding: 6px 12px;
  border-radius: 999px;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  opacity: 0.7;
}

.lab__group a:hover {
  opacity: 1;
}

.lab__group a[aria-current] {
  background: var(--monki-offwhite);
  color: var(--monki-ink);
  font-weight: 500;
  opacity: 1;
}
