:root {
  --pb: #01a4ef;
  --sp: #c412c4;
  --bg: #0b1217;
  --glass: rgba(28, 31, 36, 0.86);
  --line: rgba(255, 255, 255, 0.12);
  --brand: linear-gradient(90deg, #01a4ef, #c412c4);
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
.glass {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.row {
  display: flex;
  align-items: center;
}
.between {
  justify-content: space-between;
}
.muted {
  color: rgba(255, 255, 255, 0.5);
}
.bar {
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--brand);
  border-radius: 2px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px 6px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  font-weight: 500;
  font-size: 11px;
  padding: 6px 12px;
  background: #2f7cf6;
  color: #fff;
}
.spark {
  display: inline-block;
  width: 11px;
  height: 11px;
}
/* card1 */
.c1 .panel {
  width: 420px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.c1 .sd {
  padding: 12px;
  border-radius: 12px;
  background: rgba(1, 164, 239, 0.12);
  border: 1px solid rgba(1, 164, 239, 0.8);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tile {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #01a4ef, #c412c4);
  flex: none;
}
.new {
  font-weight: 700;
  font-size: 9.5px;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--brand);
}
.v5 {
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 0.08em;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.75);
}
/* card2 */
.c2 .panel {
  width: 290px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.lbl {
  font-weight: 600;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.9);
}
.ai {
  font-weight: 500;
  font-size: 10.5px;
  color: #4c9bff;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: opacity 0.12s;
}
.ai.press {
  opacity: 0.5;
}
.input {
  background: rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 11px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.85);
  min-height: 31px;
}
.input.desc {
  min-height: 48px;
}
.tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  min-height: 22px;
}
.atag {
  font-weight: 500;
  font-size: 10px;
  color: #a9cfff;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(76, 155, 255, 0.14);
  border: 1px solid rgba(76, 155, 255, 0.35);
  opacity: 0;
  transform: scale(0.6);
  transition:
    opacity 0.3s,
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.atag.on {
  opacity: 1;
  transform: none;
}
.cursor {
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 24px;
  transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
  z-index: 5;
  pointer-events: none;
}
.cursor svg {
  transition: transform 0.12s;
  transform-origin: 3px 3px;
}
.cursor.click svg {
  transform: scale(0.8);
}
.caret {
  display: inline-block;
  width: 1px;
  height: 12px;
  background: #7fd3ff;
  vertical-align: -2px;
  margin-left: 1px;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
/* card3 */
.c3 .panel {
  width: 296px;
  padding: 14px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faces {
  display: flex;
  justify-content: space-between;
}
.person {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.av {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background-size: 300% 300%;
  animation: flow 6s ease-in-out infinite;
}
.av svg {
  position: absolute;
  inset: 0;
}
@keyframes flow {
  0% {
    background-position: 0% 0%;
  }
  50% {
    background-position: 100% 100%;
  }
  100% {
    background-position: 0% 0%;
  }
}
.person b {
  font-weight: 600;
  font-size: 11px;
  margin-top: 6px;
}
.person span {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
}
/* card4 */
.c4 .wrap {
  width: 300px;
  position: relative;
  height: 192px;
}
.strip {
  position: absolute;
  left: 0;
  top: 24px;
  width: 300px;
  height: 44px;
  border-radius: 10px;
  background: rgba(20, 23, 31, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.strip img {
  position: absolute;
  top: 6px;
  height: 32px;
  width: 25.5px;
  object-fit: cover;
  border-radius: 4px;
}
.strip img.dim {
  opacity: 0.35;
}
@property --a {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
.hl {
  position: absolute;
  top: 2px;
  height: 40px;
  border-radius: 7px;
  padding: 2px;
  background: conic-gradient(from var(--a), #01a4ef, #c412c4, #7fd3ff, #01a4ef);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: spin 2.4s linear infinite;
}
@keyframes spin {
  to {
    --a: 360deg;
  }
}
.badge {
  position: absolute;
  top: -8px;
  width: 16px;
  height: 16px;
}
.scan {
  position: absolute;
  top: -4px;
  width: 2px;
  height: 52px;
  border-radius: 1px;
  background: linear-gradient(#7fd3ff00, #7fd3ff, #7fd3ff00);
  animation: scan 3.2s linear infinite;
}
@keyframes scan {
  from {
    left: 6px;
  }
  to {
    left: 292px;
  }
}
.conv {
  position: absolute;
  left: 0;
  top: 0;
}
.conv path {
  stroke-dasharray: 3 4;
  animation: march 0.7s linear infinite;
}
@keyframes march {
  to {
    stroke-dashoffset: -7;
  }
}
.reel {
  position: absolute;
  top: 108px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  width: max-content;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 12px 10px 10px;
  border-radius: 14px;
}
.reel .thumb {
  width: 92px;
  height: 54px;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  position: relative;
}
.reel .thumb img {
  width: 33.34%;
  height: 100%;
  object-fit: cover;
}
.play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 22px;
  height: 22px;
}
/* card5 */
.c5 .wrap {
  width: 296px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 12px;
  border-radius: 12px;
  position: relative;
}
.search::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 12px;
  padding: 1.2px;
  background: var(--brand);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
.search {
}
.q {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  white-space: nowrap;
}
.q.ph {
  color: rgba(255, 255, 255, 0.4);
}
.results {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.4s,
    transform 0.4s;
}
.results.on {
  opacity: 1;
  transform: none;
}
.res {
  display: flex;
  justify-content: space-between;
}
.r {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 84px;
}
.r .th {
  width: 84px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  outline: 2px solid rgba(46, 230, 197, 0);
  outline-offset: -2px;
  transition: outline-color 0.35s;
}
.r .th img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.r .th.best {
  outline-color: #2ee6c5;
}
.bm {
  position: absolute;
  left: 5px;
  top: 5px;
  font-weight: 600;
  font-size: 8.5px;
  color: #8ff3df;
  background: rgba(11, 31, 28, 0.8);
  padding: 2px 5px;
  border-radius: 999px;
  opacity: 0;
  transition: opacity 0.35s;
}
.th.best .bm {
  opacity: 1;
}
.r span {
  font-size: 10.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}
/* card6 */
.c6 .panel {
  width: 440px;
  padding: 12px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.preview {
  height: 150px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}
.preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tc {
  position: absolute;
  left: 10px;
  top: 10px;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 6px;
  padding: 3px 7px;
  font-size: 10px;
  font-weight: 500;
}
.tools {
  display: flex;
  justify-content: space-between;
}
.tool {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px 6px 9px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid transparent;
  transition:
    background 0.3s,
    border-color 0.3s,
    color 0.3s;
}
.tool.on {
  background: rgba(1, 164, 239, 0.18);
  border-color: rgba(1, 164, 239, 0.7);
  color: #fff;
}
.tl {
  position: relative;
  height: 46px;
}
.tl img {
  position: absolute;
  top: 6px;
  height: 34px;
  object-fit: cover;
  border-radius: 4px;
}
.trimmed {
  position: absolute;
  top: 6px;
  height: 34px;
  background: rgba(13, 15, 20, 0.65);
  border-radius: 4px;
}
.sel {
  position: absolute;
  top: 3px;
  height: 40px;
  border: 2.5px solid #ffc83d;
  border-radius: 6px;
}
.handle {
  position: absolute;
  top: 3px;
  width: 10px;
  height: 40px;
  background: #ffc83d;
  border-radius: 4px;
}
.ph {
  position: absolute;
  top: -2px;
  width: 2px;
  height: 50px;
  background: #fff;
  border-radius: 1px;
  transition: left 1.1s linear;
}
body {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  display: grid;
  grid-template: 100% / 100%;
  place-items: center;
  color: white;
  font-family: Inter, system-ui, sans-serif;
}
main {
  grid-area: 1/1;
  width: max-content;
  transform: scale(0);
}
body:not(.playing) * {
  animation-play-state: paused !important;
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
  .cursor,
  .caret,
  .scan {
    display: none !important;
  }
}
