@font-face {
  font-family: FieldSC;
  src: url("../shared/fonts/NotoSansSC.ttf") format("truetype");
  font-display: swap;
}
* {
  box-sizing: border-box;
}
html {
  color-scheme: dark;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: #111211;
  color: #eeefeb;
  font-family: Arial, FieldSC, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button,
input,
a {
  -webkit-tap-highlight-color: transparent;
}
button,
input {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  color: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid #dbfc8a;
  outline-offset: 5px;
}
button {
  border: 0;
}
button:disabled {
  cursor: default;
  opacity: 0.4;
}
::selection {
  background: #d8fa85;
  color: #151612;
}
.site-header,
.library,
.playground,
.site-footer {
  width: min(1500px, calc(100% - 96px));
  margin: auto;
}
.site-header {
  height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #ffffff16;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.6px;
}
.brand > span:last-child {
  align-self: flex-start;
  font-size: 10px;
  margin-left: -7px;
}
.brand-mark {
  display: flex;
  align-items: center;
  gap: 3px;
  transform: rotate(-20deg);
  margin-right: 4px;
}
.brand-mark i {
  width: 5px;
  height: 24px;
  border-radius: 4px;
  background: #d8fa85;
}
.brand-mark i:nth-child(2) {
  height: 33px;
}
.back {
  font-size: 12px;
  color: #a8aaa2;
}
.back:hover {
  color: #d8fa85;
}
.intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 72px 0 60px;
  gap: 30px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.9px;
  color: #969b91;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 27px;
}
.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 100%;
  background: #d8fa85;
  flex-shrink: 0;
}
.intro h1 {
  font-size: clamp(56px, 6.4vw, 94px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -5px;
  margin: 0;
  position: relative;
}
.intro h1 > span {
  color: #a5aa9c;
}
.intro sup {
  font-size: 16px;
  letter-spacing: 0;
  color: #d8fa85;
  position: absolute;
  top: 13px;
  margin-left: 20px;
  font-weight: 400;
}
.intro-note {
  padding-bottom: 10px;
  max-width: 330px;
}
.intro-note p {
  font-size: 14px;
  line-height: 1.9;
  color: #a5a89f;
  margin-bottom: 32px;
}
.intro-note a {
  font-size: 9px;
  letter-spacing: 1.5px;
  color: #d8fa85;
}
.toolbar {
  border-top: 1px solid #ffffff20;
  border-bottom: 1px solid #ffffff20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.filters button {
  background: transparent;
  color: #9a9f94;
  font-size: 12px;
  padding: 10px 12px;
  border-radius: 5px;
}
.filters button[aria-pressed="true"] {
  background: #d8fa85;
  color: #171b11;
}
.filters small {
  font-size: 9px;
  opacity: 0.5;
  margin-left: 8px;
}
.search {
  display: flex;
  align-items: center;
  border: 1px solid #ffffff20;
  border-radius: 5px;
  padding: 0 10px;
  min-width: 170px;
  gap: 8px;
}
.search span {
  font-size: 25px;
  color: #83897e;
}
.search input {
  color: #eee;
  width: 150px;
  height: 36px;
  font-size: 12px;
  background: none;
  border: 0;
  outline-offset: 0;
}
.results-line {
  display: flex;
  justify-content: space-between;
  color: #858c7e;
  font-size: 9px;
  letter-spacing: 1.1px;
  margin: 23px 0 18px;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 37px 20px;
}
.preview-link {
  display: block;
  position: relative;
  border: 1px solid #ffffff14;
  border-radius: 9px;
  overflow: hidden;
  background: #080909;
}
.stage {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #090a0b;
  --motion: running;
  --duration: 1s;
}
.mini-stage {
  width: 100%;
  aspect-ratio: 1.52;
  pointer-events: none;
}
.world {
  position: absolute;
  width: 1000px;
  height: 600px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(var(--scale, 1));
  transform-style: preserve-3d;
}
.card-number {
  position: absolute;
  top: 14px;
  left: 16px;
  font-size: 9px;
  color: #babfb3;
  letter-spacing: 1px;
}
.open-label {
  position: absolute;
  bottom: 15px;
  right: 15px;
  border: 1px solid #ffffff30;
  padding: 8px 10px;
  font-size: 10px;
  background: #171b16cc;
  opacity: 0;
  transform: translateY(5px);
  transition: 0.2s;
}
.preview-link:hover .open-label,
.preview-link:focus-visible .open-label {
  opacity: 1;
  transform: translateY(0);
}
.preview-link:hover {
  border-color: #d8fa8570;
}
.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 1px 0;
}
.card-meta a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.2px;
}
.card-meta p {
  font-size: 10px;
  color: #737a6d;
  margin: 7px 0 0;
}
.tag {
  font-size: 9px;
  border: 1px solid #ffffff20;
  border-radius: 4px;
  padding: 5px 7px;
  color: #9fa594;
}
.empty {
  text-align: center;
  padding: 80px 20px;
}
.empty h2 {
  font-size: 21px;
  font-weight: 400;
}
.empty button {
  background: #d8fa85;
  color: #141710;
  border-radius: 4px;
  padding: 12px 18px;
}
.end-note {
  border-top: 1px solid #ffffff20;
  margin-top: 64px;
  padding: 45px 0;
  display: flex;
  align-items: center;
  gap: 24px;
}
.asterisk {
  font-size: 50px;
  color: #d8fa85;
}
.end-note p {
  font-size: 20px;
  margin: 0;
}
.end-note small {
  display: block;
  font-size: 11px;
  color: #8a9081;
  margin-top: 12px;
}
.end-note a {
  font-size: 11px;
  color: #b5baa9;
  margin-left: auto;
}
.site-footer {
  border-top: 1px solid #ffffff16;
  padding: 24px 0 32px;
  display: flex;
  justify-content: space-between;
  color: #737b68;
  font-size: 9px;
  letter-spacing: 0.7px;
}
.demo-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 36px 0 26px;
}
.demo-heading .eyebrow {
  margin-bottom: 10px;
  font-size: 9px;
}
.demo-heading h1 {
  font-size: 30px;
  letter-spacing: -1px;
  font-weight: 500;
  margin: 0;
}
.demo-heading h1 span {
  display: inline-block;
  font-size: 12px;
  color: #929a86;
  margin-left: 15px;
  letter-spacing: 0;
}
.pager {
  display: flex;
  gap: 8px;
}
.pager a {
  border: 1px solid #ffffff28;
  border-radius: 5px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
}
.pager a:hover {
  color: #d8fa85;
  border-color: #d8fa85;
}
.full-stage {
  height: min(65vh, 680px);
  min-height: 360px;
  border: 1px solid #ffffff20;
  border-radius: 10px;
}
.demo-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 18px 0;
}
.hint {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  color: #a0a792;
  line-height: 1.7;
  margin: 0;
}
.reference-link {
  white-space: nowrap;
  font-size: 10px;
  color: #8a927b;
}
.control-bar {
  display: flex;
  align-items: center;
  gap: 32px;
  background: #1b1e18;
  border: 1px solid #ffffff10;
  border-radius: 8px;
  padding: 16px 20px;
  margin: 0 0 32px;
}
.control-actions {
  display: flex;
  gap: 9px;
  margin-right: auto;
}
.control-bar button {
  background: #2a2f24;
  border: 1px solid #ffffff12;
  padding: 9px 14px;
  border-radius: 5px;
  font-size: 11px;
  min-width: 82px;
}
.control-bar button:hover {
  background: #39422e;
}
.control-bar label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  color: #b4bba8;
}
.control-bar input {
  accent-color: #d8fa85;
  width: 110px;
  height: 3px;
}
.control-bar output {
  width: 28px;
  color: #849375;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}
.not-found {
  min-height: 80vh;
  display: grid;
  place-content: center;
  gap: 30px;
}
.stage canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.canvas-caption {
  position: absolute;
  bottom: 30px;
  left: 34px;
  color: #a7b6b5;
  font-size: 9px;
  letter-spacing: 3px;
  pointer-events: none;
}
.stage button {
  font-family: inherit;
}
.scene-nav {
  position: absolute;
  bottom: 45px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 100;
}
.scene-nav button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #ffffff30;
  background: #1d201ce6;
  font-size: 18px;
}
.scene-nav button:hover {
  background: #d8fa85;
  color: #151811;
}
.scene-counter {
  color: #8d9586;
  font-size: 10px;
  min-width: 45px;
  text-align: center;
}
.photo-card {
  border: 0;
  position: absolute;
  left: 50%;
  top: 50%;
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #232722;
  color: white;
  box-shadow: 0 14px 35px #0006;
  transition: filter 0.3s;
  will-change: transform;
}
.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
}
.photo-card:after {
  content: "";
  position: absolute;
  inset: 40% 0 0;
  background: linear-gradient(transparent, #000a);
  pointer-events: none;
}
.photo-card .photo-label {
  position: absolute;
  bottom: 18px;
  left: 18px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  text-align: left;
  font-size: 18px;
  letter-spacing: -0.5px;
}
.photo-label small {
  font-size: 7px;
  letter-spacing: 2px;
  opacity: 0.65;
}
.scene-title {
  position: absolute;
  bottom: 98px;
  left: 0;
  width: 100%;
  text-align: center;
  letter-spacing: 3px;
  font-size: 11px;
  color: #aeb6a2;
}
.focus-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 35px;
}
.focus-words {
  display: flex;
  gap: 22px;
  position: relative;
}
.focus-word {
  border: 0;
  background: none;
  color: #ededdf;
  padding: 10px 0;
  font-size: 69px;
  font-weight: 600;
  letter-spacing: -4px;
  filter: blur(5px);
  transition: filter 0.3s;
  outline: none !important;
}
.focus-word.active {
  filter: blur(0);
}
.focus-sub {
  font-size: 13px;
  letter-spacing: 2px;
  color: #636b5b;
  filter: blur(0.7px);
}
.focus-bracket {
  position: absolute;
  pointer-events: none;
  inset: 0 auto auto 0;
  border: 1px solid transparent;
  transition:
    transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
    width 0.4s,
    height 0.4s;
  background:
    linear-gradient(#d8fa85, #d8fa85) left top/16px 2px no-repeat,
    linear-gradient(#d8fa85, #d8fa85) left top/2px 16px no-repeat,
    linear-gradient(#d8fa85, #d8fa85) right top/16px 2px no-repeat,
    linear-gradient(#d8fa85, #d8fa85) right top/2px 16px no-repeat,
    linear-gradient(#d8fa85, #d8fa85) left bottom/16px 2px no-repeat,
    linear-gradient(#d8fa85, #d8fa85) left bottom/2px 16px no-repeat,
    linear-gradient(#d8fa85, #d8fa85) right bottom/16px 2px no-repeat,
    linear-gradient(#d8fa85, #d8fa85) right bottom/2px 16px no-repeat;
}
.triptych {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
}
.bookmark-card {
  width: 230px;
  height: 300px;
  background: #131419;
  position: relative;
  border-radius: 12px 12px 20px 12px;
  isolation: isolate;
  box-shadow: inset 0 0 0 1px #ffffff12;
}
.bookmark-card:after {
  content: "";
  position: absolute;
  bottom: -1px;
  right: 35px;
  width: 30px;
  height: 13px;
  background: #090a0b;
  border-radius: 20px 20px 0 0;
}
.bookmark-art {
  position: absolute;
  inset: 15px 0 20px;
  overflow: hidden;
  border-radius: 12px;
}
.bookmark-art:before,
.bookmark-art:after {
  content: "";
  position: absolute;
  left: 40px;
  top: 45px;
  width: 145px;
  height: 150px;
  border-radius: 30% 70% 38% 62%;
  border: 14px solid var(--ink);
  transform: rotate(35deg);
  box-shadow:
    0 0 35px var(--ink),
    inset 0 0 30px var(--ink);
  filter: blur(2px);
  transition: 0.5s;
}
.bookmark-art:after {
  transform: rotate(-35deg) scale(0.7);
  border-width: 8px;
  filter: blur(0);
}
.bookmark-card:hover .bookmark-art:before,
.bookmark-card:focus-within .bookmark-art:before {
  transform: rotate(100deg) scale(1.1);
  filter: blur(9px);
  box-shadow:
    0 0 80px var(--ink),
    inset 0 0 50px var(--ink);
}
.bookmark-card h3 {
  position: absolute;
  bottom: 23px;
  left: 23px;
  font-size: 24px;
  font-weight: 400;
  margin: 0;
}
.bookmark-toggle {
  position: absolute;
  right: 20px;
  top: -1px;
  width: 29px;
  height: 41px;
  background: #303239;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%);
  z-index: 3;
  font-size: 15px;
  padding-bottom: 10px;
}
.bookmark-toggle[aria-pressed="true"] {
  background: var(--ink);
  color: white;
}
.folder {
  position: relative;
  width: 230px;
  height: 270px;
  background: #22242a;
  border-radius: 14px;
  border: 0;
  text-align: left;
  isolation: isolate;
}
.folder:before {
  content: "";
  position: absolute;
  inset: 5px;
  background: linear-gradient(125deg, var(--ink), #d9eaf4);
  border-radius: 10px;
}
.folder-art {
  position: absolute;
  width: 165px;
  height: 170px;
  left: 33px;
  top: 16px;
  border-radius: 9px;
  object-fit: cover;
  transform: rotate(-6deg);
  transition: 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 10px 30px #0006;
}
.folder-front {
  position: absolute;
  inset: 15px 0 -1px;
  background: var(--ink);
  color: #161221;
  border-radius: 0 16px 14px 14px;
  transition: 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px 24px;
}
.folder-front:before {
  content: "";
  position: absolute;
  top: -15px;
  left: 0;
  width: 102px;
  height: 18px;
  border-radius: 12px 18px 0 0;
  background: var(--ink);
}
.folder-front strong {
  font-size: 70px;
  letter-spacing: -6px;
  font-weight: 400;
}
.folder-front span {
  font-size: 13px;
}
.folder-front small {
  font-size: 8px;
  letter-spacing: 2px;
  margin-top: 5px;
  display: block;
  opacity: 0.6;
}
.folder:hover .folder-front,
.folder:focus-visible .folder-front,
.folder.open .folder-front {
  transform: translateY(65px);
}
.folder:hover .folder-art,
.folder:focus-visible .folder-art,
.folder.open .folder-art {
  transform: translateY(-62px) rotate(7deg);
}
.expand-rail {
  position: absolute;
  inset: 90px 90px;
  display: flex;
  gap: 13px;
  align-items: stretch;
}
.expand-card {
  position: relative;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  border-radius: 18px;
  padding: 0;
  background: #1a1b1e;
  transition: flex 0.65s cubic-bezier(0.2, 0.8, 0.2, 1);
  isolation: isolate;
}
.expand-card.active {
  flex: 5;
}
.expand-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6);
  transition: filter 0.5s;
}
.expand-card.active img {
  filter: brightness(0.9);
}
.expand-card:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 45%, #000b);
}
.expand-card b {
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 12px;
  font-weight: 400;
  z-index: 1;
}
.expand-caption {
  position: absolute;
  bottom: 25px;
  left: 25px;
  width: 300px;
  text-align: left;
  z-index: 1;
  opacity: 0;
  transform: translateY(15px);
  transition: 0.4s;
}
.active .expand-caption {
  opacity: 1;
  transform: none;
}
.expand-caption strong {
  font-size: 26px;
  font-weight: 400;
  display: block;
}
.expand-caption small {
  font-size: 10px;
  color: #ccc;
  display: block;
  margin-top: 10px;
}
.deck-plate {
  position: absolute;
  left: 395px;
  top: 375px;
  width: 210px;
  height: 56px;
  background: #d9fa76;
  color: #101608;
  z-index: 70;
  border-radius: 0 0 10px 10px;
  padding: 18px 20px;
  text-align: left;
  font-size: 13px;
}
.composer-wrap {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 30px;
  text-align: center;
}
.composer-eyebrow {
  font-size: 11px;
  letter-spacing: 4px;
  color: #81877f;
}
.composer {
  width: 720px;
  padding: 15px 18px 15px 26px;
  display: flex;
  align-items: center;
  gap: 20px;
  background: #151716;
  border: 1px solid #ffffff22;
  border-radius: 45px;
  box-shadow: 0 10px 60px #000;
}
.composer > span {
  font-size: 26px;
  color: #6b7766;
}
.composer input {
  background: none;
  border: 0;
  outline: none;
  flex: 1;
  min-width: 0;
  font-size: 16px;
  color: #eaf1e6;
  padding: 15px 0;
}
.send-button {
  position: relative;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #1e2720;
  border: 1px solid #657464;
  color: #b3c4b4;
  font-size: 26px;
  box-shadow: 0 0 calc(var(--charge, 0) * 25px) #c1f8b777;
  transition: 0.3s;
}
.send-button:not(:disabled) {
  background: #dcf5d4;
  color: #172513;
  border-color: white;
}
.send-button:after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid #b5f7a8;
  border-radius: 50%;
  opacity: var(--charge, 0);
  box-shadow: 0 0 12px #c9ffb6;
}
.send-status {
  height: 20px;
  font-size: 12px;
  color: #8a9d84;
}
.glow-navigation {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}
.glow-pill {
  display: flex;
  align-items: center;
  gap: 18px;
  border: 1px solid #ffffff1a;
  border-radius: 100px;
  padding: 11px 27px 11px 11px;
  background: #151719;
  font-size: 18px;
  color: #7f888c;
  transition: 0.3s;
}
.glow-disc {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: #171b20;
  position: relative;
  isolation: isolate;
  font-size: 24px;
}
.glow-disc:before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  z-index: -2;
  background: conic-gradient(
    from var(--angle, 0deg),
    #254573,
    #e2edff,
    #9ed4fd,
    #58327f,
    #0e1524,
    #89bcff,
    #254573
  );
  filter: blur(1px);
}
.glow-disc:after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: #161b21;
  z-index: -1;
}
.glow-pill[aria-pressed="true"] {
  color: white;
  background: #1c2027;
  border-color: #7394b080;
}
.glow-pill:hover .glow-disc:before {
  filter: blur(3px);
}
.glow-destination {
  position: absolute;
  top: 395px;
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 11px;
  letter-spacing: 3px;
  color: #7c8793;
}
.key-scene {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  perspective: 1000px;
  background: radial-gradient(ellipse at 50% 80%, #24203966, transparent 45%);
}
.glass-key {
  width: 240px;
  height: 240px;
  background: linear-gradient(
    130deg,
    #ddd4f577,
    #7277e699 30%,
    #20252b 50%,
    #b3b9f955
  );
  border: 1px solid #b5b7e899;
  border-radius: 47px;
  padding: 15px 14px 35px;
  box-shadow:
    0 30px 50px #000c,
    0 0 25px #8b81ee22,
    inset 0 -5px 8px #b0a9fd88;
  transform-style: preserve-3d;
  transform: rotateX(24deg) rotateY(-18deg);
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.glass-face {
  width: 100%;
  height: 100%;
  border-radius: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 25px;
  background:
    radial-gradient(ellipse at 0 0, #939db855, transparent 65%),
    linear-gradient(125deg, #323344, #0b0c13 70%);
  border: 1px solid #ffffff44;
  box-shadow:
    inset 0 1px 3px #fff6,
    0 6px 0 #2c2944,
    0 8px 8px #101018;
}
.glass-face span {
  font-size: 35px;
  color: #aaa4c6;
  text-shadow: 0 2px 1px #000;
}
.glass-face b {
  font-size: 17px;
  letter-spacing: 5px;
  color: #8e8b9d;
  font-weight: 500;
  text-shadow: 0 2px 2px #000;
}
.key-status {
  position: absolute;
  bottom: 55px;
  color: #666780;
  font-size: 10px;
  letter-spacing: 3px;
}
.reduced-notice {
  position: absolute;
  top: 20px;
  left: 20px;
  background: #1c2420c9;
  padding: 8px 12px;
  font-size: 11px;
}
.stage.is-paused * {
  animation-play-state: paused !important;
}
.drag-surface {
  cursor: grab;
  touch-action: pan-y;
  outline: none;
}
.drag-surface:active {
  cursor: grabbing;
}
.drag-surface:focus-visible {
  outline: 1px solid #d8fa85;
  outline-offset: -5px;
}
@media (min-width: 1700px) {
  .gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 1000px) {
  .site-header,
  .library,
  .playground,
  .site-footer {
    width: calc(100% - 48px);
  }
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }
  .search {
    width: 100%;
  }
  .search input {
    width: 100%;
  }
  .control-bar {
    gap: 18px;
    flex-wrap: wrap;
  }
  .control-actions {
    width: 100%;
  }
  .control-bar label {
    flex: 1;
  }
  .control-bar input {
    width: 100%;
  }
  .intro h1 {
    letter-spacing: -3px;
  }
  .intro-note {
    max-width: 245px;
  }
}
@media (max-width: 600px) {
  .site-header,
  .library,
  .playground,
  .site-footer {
    width: calc(100% - 32px);
  }
  .site-header {
    height: 78px;
  }
  .brand {
    font-size: 14px;
  }
  .back {
    font-size: 10px;
  }
  .intro {
    padding: 42px 0 34px;
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
  }
  .intro h1 {
    font-size: 59px;
  }
  .intro .eyebrow {
    font-size: 8px;
    letter-spacing: 1px;
    margin-bottom: 22px;
  }
  .intro-note {
    max-width: none;
  }
  .intro-note p {
    font-size: 12px;
    margin: 0 0 14px;
  }
  .intro-note a {
    font-size: 8px;
  }
  .gallery {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .filters {
    gap: 3px;
  }
  .filters button {
    padding: 9px 10px;
    font-size: 11px;
  }
  .results-line span:last-child {
    font-size: 7px;
    letter-spacing: 0;
  }
  .end-note {
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 40px;
  }
  .end-note p {
    font-size: 16px;
  }
  .end-note small {
    font-size: 9px;
  }
  .end-note a {
    margin-left: 63px;
  }
  .site-footer {
    font-size: 7px;
    gap: 20px;
    line-height: 1.8;
  }
  .demo-heading {
    margin-top: 28px;
  }
  .demo-heading h1 {
    font-size: 25px;
  }
  .demo-heading h1 span {
    display: block;
    margin: 7px 0 0;
    font-size: 11px;
  }
  .demo-heading .eyebrow {
    font-size: 7px;
    letter-spacing: 1px;
  }
  .pager a {
    width: 33px;
    height: 33px;
  }
  .full-stage {
    min-height: 300px;
    height: 54vh;
    max-height: 470px;
  }
  .demo-bottom {
    align-items: flex-start;
  }
  .hint {
    font-size: 10px;
  }
  .reference-link {
    font-size: 8px;
    padding-top: 3px;
  }
  .control-bar {
    padding: 12px;
    gap: 16px;
  }
  .control-bar label {
    font-size: 10px;
    gap: 8px;
  }
  .control-bar output {
    font-size: 9px;
  }
  .control-actions {
    gap: 8px;
  }
  .canvas-caption {
    left: 18px;
    bottom: 18px;
    font-size: 7px;
    letter-spacing: 2px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    transition-duration: 0.01ms !important;
  }
}
[hidden] {
  display: none !important;
}
@media (max-width: 600px) {
  .full-stage .scene-nav {
    bottom: 20px;
    gap: 24px;
  }
  .full-stage .scene-nav button {
    width: 115px;
    height: 115px;
    font-size: 42px;
  }
  .full-stage .scene-counter {
    font-size: 24px;
    min-width: 100px;
  }
  .full-stage .scene-title {
    bottom: 150px;
    font-size: 18px;
  }
  .full-stage[data-effect="focus-reveal"] .world,
  .full-stage[data-effect="send-halo"] .world,
  .full-stage[data-effect="glow-ring-button"] .world,
  .full-stage[data-effect="scroll-key"] .world {
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
  }
  .full-stage .focus-words {
    gap: 12px;
  }
  .full-stage .focus-word {
    font-size: 33px;
    letter-spacing: -1.5px;
  }
  .full-stage .focus-sub {
    font-size: 7px;
    letter-spacing: 1px;
  }
  .full-stage .composer-wrap {
    width: 100%;
    padding: 18px;
    gap: 24px;
  }
  .full-stage .composer-eyebrow {
    font-size: 8px;
    letter-spacing: 2px;
  }
  .full-stage .composer {
    width: 100%;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 22px;
  }
  .full-stage .composer > span {
    font-size: 20px;
  }
  .full-stage .composer input {
    font-size: 12px;
  }
  .full-stage .send-button {
    width: 42px;
    height: 42px;
    font-size: 23px;
  }
  .full-stage .send-status {
    font-size: 10px;
    max-width: 290px;
    overflow-wrap: anywhere;
  }
  .full-stage .glow-navigation {
    flex-direction: column;
    gap: 15px;
  }
  .full-stage .glow-pill {
    font-size: 15px;
    padding: 8px 20px 8px 8px;
    gap: 15px;
    width: 170px;
  }
  .full-stage .glow-disc {
    width: 43px;
    height: 43px;
    font-size: 21px;
  }
  .full-stage .glow-destination {
    top: auto;
    bottom: 24px;
    font-size: 7px;
    letter-spacing: 1px;
  }
  .full-stage .glass-key {
    width: 180px;
    height: 180px;
    border-radius: 35px;
    padding: 12px 12px 25px;
  }
  .full-stage .glass-face {
    border-radius: 25px;
  }
  .full-stage .glass-face b {
    font-size: 12px;
    letter-spacing: 3px;
  }
  .full-stage .key-status {
    bottom: 30px;
    font-size: 8px;
  }
  .full-stage .glass-face span {
    font-size: 30px;
  }
}
.control-bar label {
  white-space: nowrap;
  min-width: 0;
}
.control-bar input {
  min-width: 0;
}
.control-bar output {
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .full-stage .scene-nav button {
    width: 135px;
    height: 135px;
  }
  .full-stage .scene-title {
    bottom: 170px;
  }
  .full-stage .composer-wrap {
    grid-template-columns: minmax(0, 1fr);
  }
}
