/* Styles for <newberry-vial> (vial-viewer.js). Self-contained: tokens are scoped to the element, so it drops into any page. */
@font-face { font-family: "Inter Tight"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/inter-tight-latin-400-normal.woff") format("woff"); }
@font-face { font-family: "Inter Tight"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/inter-tight-latin-600-normal.woff") format("woff"); }
@font-face { font-family: "Inter Tight"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/inter-tight-latin-700-normal.woff") format("woff"); }

newberry-vial {
  --nv-obsidian: #0E0F11; --nv-pumice: #ECEAE4; --nv-violet: #6A4FC2; --nv-violet-light: #8B6FD8;
  --nv-line: rgba(236, 234, 228, .22); --nv-dim: rgba(236, 234, 228, .74);
  display: block; max-width: 520px; margin-inline: auto; color: var(--nv-pumice);
  font-family: "Inter Tight", system-ui, sans-serif; -webkit-font-smoothing: antialiased;
}
newberry-vial .nv-stage {
  position: relative; aspect-ratio: 4 / 5; width: 100%; background: var(--nv-obsidian);
  touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  border-radius: 6px; overflow: hidden;
}
newberry-vial .nv-stage.nv-grabbing { cursor: grabbing; }
newberry-vial .nv-canvas, newberry-vial .nv-poster { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* the floor reflection runs to the bottom edge of every frame: fade it into the obsidian stage so no edge shows */
newberry-vial .nv-canvas, newberry-vial .nv-poster { -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 80%, transparent 100%); mask-image: linear-gradient(to bottom, #000 0, #000 80%, transparent 100%); }
newberry-vial .nv-poster { object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
newberry-vial .nv-poster[hidden] { display: none; }
newberry-vial :focus-visible { outline: 3px solid var(--nv-violet-light); outline-offset: 3px; }
newberry-vial .nv-stage:focus-visible { outline-offset: -3px; }
newberry-vial .nv-hint { margin: 12px 0 0; font-size: 14px; line-height: 1.45; color: var(--nv-dim); }
newberry-vial .nv-controls { display: flex; align-items: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
newberry-vial .nv-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; min-height: 44px; padding: 0 12px;
  background: transparent; color: var(--nv-pumice); border: 1px solid var(--nv-line); border-radius: 6px;
  font: 600 14px/1 "Inter Tight", system-ui, sans-serif; cursor: pointer;
}
newberry-vial .nv-btn:hover { border-color: var(--nv-violet-light); }
newberry-vial .nv-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
newberry-vial .nv-play { flex: 1 0 100%; justify-content: center; }
newberry-vial .nv-play .nv-i-play, newberry-vial .nv-play.nv-is-paused .nv-i-pause { display: none; }
newberry-vial .nv-play.nv-is-paused .nv-i-play { display: block; fill: currentColor; stroke: none; }
newberry-vial .nv-range { flex: 1 1 140px; min-width: 120px; height: 44px; accent-color: var(--nv-violet-light); background: transparent; cursor: pointer; }
newberry-vial .nv-row { margin-top: 14px; }
newberry-vial .nv-toggle { display: inline-flex; border: 1px solid var(--nv-line); border-radius: 6px; padding: 3px; gap: 3px; }
newberry-vial .nv-opt {
  min-height: 44px; padding: 0 16px; background: transparent; color: var(--nv-dim); border: 0; border-radius: 4px;
  font: 600 14px/1 "Inter Tight", system-ui, sans-serif; cursor: pointer;
}
newberry-vial .nv-opt[aria-checked="true"] { background: var(--nv-pumice); color: var(--nv-obsidian); }
newberry-vial .nv-status { margin: 8px 0 0; min-height: 1.2em; font-size: 13px; color: var(--nv-dim); }
@media (min-width: 701px) { newberry-vial .nv-play { flex: 0 0 auto; } }
