/* Streamline site - homepage.
 *
 * Every colour is a token from shell.css so a style switch repaints the
 * whole page, the tour's window included. The two mock windows (the hero
 * wall and the tour stage) are laid out at a fixed logical size and scaled
 * to fit by home.js, so they look the same at every width. */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.caret {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 2px;
  vertical-align: -.15em;
  background: var(--accent);
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* Entry animation for the hero copy. */
.reveal-up {
  opacity: 0;
  transform: translateY(18px);
  animation: rise .9s var(--ease-out) forwards;
  animation-delay: calc(var(--d, 0) * 110ms + 150ms);
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

/* Scroll reveal, set up by home.js. Without the script nothing is hidden. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: calc(var(--rd, 0) * 90ms);
}

.js [data-reveal].in {
  opacity: 1;
  transform: none;
}

/* ============ HERO ============ */
.hero {
  padding-bottom: clamp(40px, 6vw, 90px);
  position: relative;
  isolation: isolate;
  margin-top: -72px;
  padding-top: calc(72px + clamp(56px, 10vh, 120px));
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .55;
  will-change: transform;
}

.b1 {
  width: 56vw;
  height: 56vw;
  max-width: 820px;
  max-height: 820px;
  left: -12vw;
  top: -18vw;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 70%, transparent), transparent 65%);
  animation: drift1 22s ease-in-out infinite alternate;
}

.b2 {
  width: 46vw;
  height: 46vw;
  max-width: 700px;
  max-height: 700px;
  right: -14vw;
  top: 4vw;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent-hover) 55%, transparent), transparent 65%);
  animation: drift2 26s ease-in-out infinite alternate;
}

.b3 {
  width: 60vw;
  height: 40vw;
  left: 20vw;
  top: 38vw;
  background: radial-gradient(circle, color-mix(in srgb, #A855F7 38%, transparent), transparent 65%);
  opacity: .35;
  animation: drift3 30s ease-in-out infinite alternate;
}

[data-mode="light"] .blob {
  opacity: .32;
}

@keyframes drift1 {
  to {
    transform: translate(8vw, 6vw) scale(1.1);
  }
}

@keyframes drift2 {
  to {
    transform: translate(-6vw, 8vw) scale(.9);
  }
}

@keyframes drift3 {
  to {
    transform: translate(-10vw, -4vw) scale(1.15);
  }
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(60% 50% at 50% 20%, #000 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(60% 50% at 50% 20%, #000 20%, transparent 80%);
}

.hero-noise {
  position: absolute;
  inset: 0;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero-copy {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pill-note {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.hero-h {
  margin-top: 28px;
  font-size: clamp(46px, 8.4vw, 116px);
  line-height: .98;
  letter-spacing: -.055em;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hh-line {
  display: block;
  overflow: hidden;
  padding-bottom: .06em;
}

.hh-word {
  display: inline-block;
  transform: translateY(105%);
  animation: word-up 1s var(--ease-out) .15s forwards;
}

@keyframes word-up {
  to {
    transform: none;
  }
}

.hh-rot {
  position: relative;
  display: grid;
  overflow: hidden;
  padding-bottom: .1em;
}

.hh-rot-item {
  grid-area: 1 / 1;
  white-space: nowrap;
  color: transparent;
  background: linear-gradient(100deg, var(--accent-text) 10%, var(--accent-hover) 45%, var(--text-hi) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  transform: translateY(105%);
  opacity: 0;
  transition: transform .8s var(--ease-out), opacity .5s ease;
}

.hh-rot-item.is-on {
  transform: none;
  opacity: 1;
  transition-delay: .12s;
}

.hh-rot-item.is-out {
  transform: translateY(-105%);
  opacity: 0;
}

.hero-lede {
  margin-top: 28px;
  max-width: 44ch;
}

.hero-cta {
  margin-top: 36px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-hint {
  margin-top: 22px;
  font-size: 13.5px;
  color: var(--text-md);
}

/* The wall: a live multiview grid, tilted back and flattening as the
   page scrolls. --hp (0..1) is set by home.js. */
.wall-wrap {
  --hp: 0;
  position: relative;
  width: min(1180px, calc(100% - 2 * var(--gutter)));
  margin: clamp(56px, 8vw, 96px) auto 0;
  perspective: 2000px;
  perspective-origin: 50% 0%;
}

.wall-tilt {
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(calc((1 - var(--hp)) * 24deg)) rotateY(calc(var(--ry, 0) * 1deg)) translateY(calc((1 - var(--hp)) * -20px)) scale(calc(.92 + var(--hp) * .08));
  transform-origin: 50% 0%;
  will-change: transform;
  opacity: 0;
  animation: wall-in 1.4s var(--ease-out) .55s forwards;
}

@keyframes wall-in {
  from {
    opacity: 0;
    translate: 0 80px;
  }

  to {
    opacity: 1;
    translate: 0 0;
  }
}

.wall-fit {
  position: relative;
  aspect-ratio: 1200 / 660;
}

.wall {
  position: absolute;
  left: 0;
  top: 0;
  width: 1200px;
  height: 660px;
  transform: scale(var(--s, 1));
  transform-origin: 0 0;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  background: var(--bg1);
  border: 1px solid var(--line-hi);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent), 0 60px 140px -40px color-mix(in srgb, var(--accent) 45%, transparent), var(--shadow-lg);
  overflow: hidden;
  font-size: 13px;
}

.wall-bar {
  height: 46px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border-bottom: 1px solid var(--border);
  background: var(--bg0);
}

.wb-layouts,
.stg-layouts {
  display: flex;
  gap: 4px;
}

.wb-layouts span,
.stg-layouts span {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-md);
  padding: 4px 7px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg1);
  transition: all .35s ease;
}

.wb-layouts span.on,
.stg-layouts span.on {
  color: var(--accent-text);
  border-color: var(--accent);
  background: var(--accent-soft);
}

.wb-end {
  margin-left: auto;
  display: flex;
  gap: 6px;
}

.wb-btn,
.stg-btn {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-md);
  padding: 5px 10px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--bg1);
  white-space: nowrap;
}

.wb-danger,
.stg-btn.danger {
  color: var(--red);
  border-color: color-mix(in srgb, var(--red) 40%, transparent);
}

.wall-body {
  flex: 1;
  display: flex;
  gap: 8px;
  padding: 8px;
  min-height: 0;
  background: var(--bg0);
}

.wall-cells,
.stg-cells {
  position: relative;
  flex: 1;
  display: grid;
  gap: 8px;
  min-width: 0;
}

.tile {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg2);
  border: 1px solid var(--border);
  min-width: 0;
  min-height: 0;
  transition: box-shadow .4s ease, border-color .4s ease;
}

.tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tile.gone {
  display: none;
}

.tile.audio {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent), 0 0 40px -6px color-mix(in srgb, var(--accent) 70%, transparent);
}

.tile-tag {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px 4px 5px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg0) 82%, transparent);
  backdrop-filter: blur(8px);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-hi);
  white-space: nowrap;
}

.tile-tag .av {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--c, var(--accent));
}

.tile-tag .live {
  font-size: 9.5px;
  letter-spacing: .04em;
  color: var(--red);
  border: 1px solid color-mix(in srgb, var(--red) 50%, transparent);
  border-radius: 4px;
  padding: 0 4px;
}

.tile-tag .vw {
  color: var(--text-md);
  font-weight: 500;
}

.tile-icons {
  position: absolute;
  right: 8px;
  top: 8px;
  display: flex;
  gap: 4px;
}

.tile-icons i {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--bg0) 75%, transparent);
  display: grid;
  place-items: center;
}

.tile-icons i::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 2px;
  border: 1.5px solid var(--text-md);
}

.tile-audio {
  position: absolute;
  left: 10px;
  top: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 7px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 10.5px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .3s ease, transform .3s ease;
}

.tile.audio .tile-audio {
  opacity: 1;
  transform: none;
}

.eq {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 10px;
}

.eq i {
  width: 2px;
  background: currentColor;
  animation: eq .9s ease-in-out infinite alternate;
}

.eq i:nth-child(2) {
  animation-delay: -.3s;
}

.eq i:nth-child(3) {
  animation-delay: -.6s;
}

@keyframes eq {
  from {
    height: 2px;
  }

  to {
    height: 10px;
  }
}

.tile.empty {
  border: 1.5px dashed var(--border-hi);
  background: color-mix(in srgb, var(--bg1) 60%, transparent);
  display: grid;
  place-items: center;
  text-align: center;
}

.tile.empty .add {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--text-hi);
}

.tile.empty .add i {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  border: 1px solid var(--accent-border);
  background: var(--accent-soft);
}

.tile.empty .add span {
  font-weight: 500;
  letter-spacing: 0;
  color: var(--text-md);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 10px;
  background: var(--bg1);
}

/* chat column in the wall */
.wall-chat {
  width: 290px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg1);
  overflow: hidden;
}

.wc-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--text-hi);
  border-bottom: 1px solid var(--border);
}

.wc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.wc-sp {
  flex: 1;
}

.wc-btn {
  font-weight: 500;
  font-size: 11px;
  color: var(--text-md);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 7px;
}

.wc-chips {
  display: flex;
  gap: 5px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.wc-chip {
  font-size: 10.5px;
  font-weight: 500;
  color: var(--text);
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--border-hi);
  background: var(--bg2);
}

.wc-chip.wc-add {
  border-style: dashed;
  color: var(--text-md);
  background: none;
}

.wc-feed,
.stch-feed {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 6px 0;
  -webkit-mask-image: linear-gradient(transparent, #000 22%);
  mask-image: linear-gradient(transparent, #000 22%);
}

.ln {
  position: relative;
  padding: 3px 12px 3px 14px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text);
  animation: ln-in .45s var(--ease-out);
}

@keyframes ln-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

.ln .ch {
  font-size: 10px;
  color: var(--text-md);
  margin-right: 5px;
}

.ln .nm {
  font-weight: 700;
  color: var(--n, var(--text-hi));
}

.ln .bd {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  vertical-align: -2px;
  margin-right: 4px;
  background: var(--b);
}

.ln.yt::before,
.ln.kk::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 4px;
  bottom: 4px;
  width: 3px;
  border-radius: 2px;
  background: var(--yt);
}

.ln.kk::before {
  background: var(--kick);
}

.ln .pt {
  font-size: 9px;
  font-weight: 800;
  padding: 0 4px;
  margin-right: 4px;
  border-radius: 3px;
  color: #fff;
  background: var(--yt);
  vertical-align: 1px;
}

.ln.kk .pt {
  color: #0B0E14;
  background: var(--kick);
}

.ln.hl {
  background: var(--accent-soft);
  box-shadow: inset 2px 0 0 var(--accent);
}

.ln.ev {
  margin: 4px 8px;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, #A855F7 45%, transparent);
  background: color-mix(in srgb, #A855F7 12%, transparent);
  font-size: 11.5px;
}

.ln.ev b {
  color: var(--text-hi);
}

.ln.del .msg {
  text-decoration: line-through;
  color: var(--text-md);
}

.ln .rep {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  padding: 0 5px;
  margin-left: 5px;
  border-radius: 999px;
  color: var(--accent-text);
  border: 1px solid var(--accent-border);
  background: var(--accent-soft);
}

.ln .emo-i {
  display: inline-block;
  width: 18px;
  height: 18px;
  vertical-align: -4px;
  border-radius: 5px;
  background: var(--e);
  margin: 0 1px;
}

.wc-send {
  margin: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg0);
  font-size: 11.5px;
  color: var(--text-md);
}

/* floating glass cards around the wall */
.float {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--bg1) 80%, transparent);
  border: 1px solid var(--line-hi);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: var(--shadow-lg);
  font-size: 13px;
  color: var(--text-hi);
  white-space: nowrap;
  animation: bob 6s ease-in-out infinite alternate;
}

.f1 {
  left: -3%;
  top: 22%;
  transform: translateZ(80px);
}

.f2 {
  right: -4%;
  top: -5%;
  animation-delay: -2s;
  transform: translateZ(120px);
}

.f3 {
  left: 8%;
  bottom: -5%;
  animation-delay: -4s;
  transform: translateZ(60px);
}

@keyframes bob {
  to {
    translate: 0 -12px;
  }
}

.fl-k {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .08em;
  color: #F59E0B;
  border: 1px solid color-mix(in srgb, #F59E0B 45%, transparent);
  border-radius: 5px;
  padding: 2px 6px;
}

.fl-note {
  font-size: 12px;
  color: var(--text-md);
}

.fl-ico {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--accent);
  color: var(--on-accent);
  display: grid;
  place-items: center;
}

.fl-ico svg {
  width: 16px;
  height: 16px;
}

.fl-t {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.fl-t b {
  font-weight: 600;
}

.fl-t span {
  font-size: 11.5px;
  color: var(--text-md);
}

.fl-name {
  font-weight: 700;
  color: #F97316;
}

.fl-more {
  color: var(--text-md);
}

.fl-x {
  font-size: 11px;
  font-weight: 800;
  color: var(--accent-text);
  border: 1px solid var(--accent-border);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 1px 8px;
}

/* ============ NUMBERS ============ */
.numbers {
  padding-block: clamp(72px, 10vw, 130px) clamp(40px, 6vw, 72px);
}

.nums {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.num {
  padding: clamp(20px, 3vw, 34px);
  background: var(--bg0);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.num b {
  font-family: var(--display);
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.05em;
  color: var(--text-hi);
  font-variant-numeric: tabular-nums;
}

.num span {
  font-size: 14px;
  color: var(--text-md);
  line-height: 1.4;
}

/* ============ TOUR ============ */
.tour {
  position: relative;
  padding-top: clamp(56px, 8vw, 110px);
}

.tour-head {
  max-width: 1480px;
}

.tour-head h2 {
  margin-top: 16px;
  max-width: 16ch;
}

.tour-head .lede {
  margin-top: 18px;
}

.tour-body {
  max-width: 1480px;
  display: grid;
  grid-template-columns: minmax(300px, .72fr) minmax(0, 1.6fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}

.step {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 40px;
  opacity: .28;
  transition: opacity .5s ease;
}

.step.on {
  opacity: 1;
}

.step-n {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.step h3 {
  margin-top: 14px;
  font-size: clamp(26px, 2.8vw, 38px);
  line-height: 1.08;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.step p {
  margin-top: 16px;
  color: var(--text-md);
  font-size: 16.5px;
  text-wrap: pretty;
}

.step code {
  font-family: var(--mono);
  font-size: .88em;
  color: var(--accent-text);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-radius: 5px;
  padding: 1px 6px;
}

.step .step-cta {
  margin-top: 24px;
}

.tags {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tags {
  gap: 6px 22px;
}

.tags li {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-md);
}

.tour-stage-col {
  height: 100%;
}

.tour-sticky {
  position: sticky;
  top: calc(50vh - min(26vw, 330px) + 20px);
  padding-block: 0 40px;
}

.stage-dots {
  display: flex;
  gap: 10px;
  padding-left: 3px;
  margin-bottom: 14px;
}

.sd {
  height: 8px;
  width: 8px;
  border-radius: 50%;
  background: var(--line-hi);
  overflow: hidden;
  position: relative;
  transition: width .4s var(--ease-out), background .3s ease;
}

.sd.on {
  background: var(--accent);
}

.stage {
  position: relative;
  aspect-ratio: 1200 / 740;
  border-radius: 18px;
}

.st-scale {
  position: absolute;
  left: 0;
  top: 0;
  width: 1200px;
  height: 740px;
  transform: scale(var(--s, .5));
  transform-origin: 0 0;
}

.st-win {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  background: var(--bg1);
  border: 1px solid var(--line-hi);
  box-shadow: 0 50px 120px -40px color-mix(in srgb, var(--accent) 50%, transparent), var(--shadow-lg);
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  line-height: 1.4;
}

.st-win.shift *,
.st-win.shift {
  transition: background-color .7s ease, border-color .7s ease, color .7s ease, box-shadow .7s ease !important;
}

.st-chrome {
  flex-shrink: 0;
  background: var(--bg0);
  border-bottom: 1px solid var(--border);
  padding: 8px 12px 10px;
}

.stc-tabs {
  display: flex;
  gap: 6px;
}

.stc-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  width: 210px;
  border-radius: 9px 9px 0 0;
  background: var(--bg2);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-hi);
}

.stc-tab.off {
  background: none;
  color: var(--text-md);
}

.stc-tab i {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--bg4);
}

.stc-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}

.stc-nav {
  width: 60px;
  height: 10px;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--bg4) 0 12px, transparent 12px 24px, var(--bg4) 24px 36px, transparent 36px 48px, var(--bg4) 48px);
  opacity: .8;
}

.stc-url {
  flex: 1;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--bg2);
  font-size: 12.5px;
  color: var(--text);
}

.stc-ext {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  border: 1px solid var(--accent-border);
  background: var(--accent-soft);
}

.st-app {
  position: relative;
  flex: 1;
  display: grid;
  grid-template-columns: 210px 1fr;
  grid-template-rows: 48px 1fr;
  min-height: 0;
  background: var(--bg0);
}

.st-top {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 16px;
  background: var(--bg1);
  border-bottom: 1px solid var(--border);
}

.stt-logo {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--bg4);
}

.stt-link {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-md);
}

.stt-link.on {
  color: var(--text-hi);
}

.stt-search {
  margin-left: 90px;
  width: 300px;
  padding: 6px 14px;
  border-radius: 8px;
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--text-md);
  font-size: 12.5px;
}

.stt-av {
  margin-left: auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg4);
}

.st-side {
  background: var(--bg1);
  border-right: 1px solid var(--border);
  padding: 14px 12px;
  overflow: hidden;
}

.sts-h {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-md);
  margin-bottom: 10px;
}

.fo {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 4px;
  border-radius: 8px;
  transition: background .3s ease, box-shadow .3s ease;
}

.fo .av {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--c);
  flex-shrink: 0;
}

.fo b {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-hi);
}

.fo span {
  font-size: 11px;
  color: var(--text-md);
}

.fo .vw {
  margin-left: auto;
  font-size: 11px;
  color: var(--text-md);
  display: flex;
  align-items: center;
  gap: 5px;
}

.fo .vw::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
}

.st-main {
  position: relative;
  padding: 16px 18px;
  overflow: hidden;
}

.stm-h {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.stm-h b {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-hi);
  letter-spacing: -.02em;
}

.stm-hidden {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-text);
  transition: transform .3s var(--ease-spring);
}

.stm-hidden.bump {
  transform: scale(1.12);
}

.st-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px 12px;
}

/* The side panel takes its own width, as the real one does. */
.st-app.with-panel .st-main {
  padding-right: 372px;
}

.st-app.with-panel .st-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-s {
  position: relative;
  min-width: 0;
  border-radius: 10px;
  transition: box-shadow .3s ease;
}

.card-s .th {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 9px;
  overflow: hidden;
  background: var(--bg2);
  transition: box-shadow .3s ease, transform .3s var(--ease-spring);
}

.card-s .th img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-s .th .lv {
  position: absolute;
  left: 7px;
  top: 7px;
  font-size: 9.5px;
  font-weight: 800;
  color: #fff;
  background: #E91916;
  border-radius: 4px;
  padding: 1px 5px;
}

.card-s .th .lv.rr {
  background: #6B7280;
}

.card-s .th .vc {
  position: absolute;
  left: 7px;
  bottom: 7px;
  font-size: 10px;
  color: #fff;
  background: rgba(0, 0, 0, .65);
  border-radius: 4px;
  padding: 1px 5px;
}

.card-s .meta {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.card-s .meta .av {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--c);
  flex-shrink: 0;
}

.card-s .meta div {
  min-width: 0;
}

.card-s .t {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-hi);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-s .t mark {
  background: color-mix(in srgb, var(--red) 30%, transparent);
  color: var(--text-hi);
  border-radius: 3px;
  padding: 0 2px;
}

.card-s .n,
.card-s .c {
  font-size: 11.5px;
  color: var(--text-md);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-s .n mark,
.card-s .c mark {
  background: color-mix(in srgb, var(--red) 30%, transparent);
  color: var(--text-hi);
  border-radius: 3px;
  padding: 0 2px;
}

.card-s.hit .th {
  box-shadow: 0 0 0 2px var(--red);
}

.card-s.hit::after {
  content: 'Hidden';
  position: absolute;
  left: 50%;
  top: 28%;
  transform: translate(-50%, -50%) rotate(-6deg);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--red);
  border-radius: 6px;
  padding: 4px 12px;
  animation: stamp .35s var(--ease-spring);
}

@keyframes stamp {
  from {
    transform: translate(-50%, -50%) rotate(-6deg) scale(1.8);
    opacity: 0;
  }
}

.card-s.pick .th {
  box-shadow: 0 0 0 3px var(--accent);
  transform: scale(.96);
}

.card-s .pickn {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 800;
  font-size: 13px;
  animation: stamp-n .35s var(--ease-spring);
}

@keyframes stamp-n {
  from {
    transform: scale(0);
  }
}

.slot-th {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: radial-gradient(circle at 50% 120%, #F59E0B, transparent 60%), linear-gradient(135deg, #3B0764, #831843);
}

.slot-th span {
  width: 34px;
  height: 46px;
  border-radius: 6px;
  background: #FFF7ED;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 22px;
  color: #DC2626;
  box-shadow: inset 0 -6px 10px rgba(0, 0, 0, .15);
}

/* stage: filter panel */
.st-panel {
  position: absolute;
  right: 14px;
  top: 62px;
  bottom: 14px;
  width: 340px;
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  background: var(--bg1);
  border: 1px solid var(--border-hi);
  box-shadow: var(--shadow-lg);
  transform: translateX(380px);
  opacity: 0;
  transition: transform .7s var(--ease-out), opacity .5s ease;
  overflow: hidden;
}

.st-panel.show {
  transform: none;
  opacity: 1;
}

.stp-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.stp-head img {
  border-radius: 7px;
}

.stp-head b {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-hi);
}

.stp-ver {
  font-size: 10.5px;
  color: var(--text-md);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 6px;
}

.stp-tabs {
  display: flex;
  gap: 2px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
}

.stp-tabs span {
  font-size: 12px;
  color: var(--text-md);
  padding: 5px 8px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.stp-tabs span.on {
  color: var(--accent-text);
  background: var(--accent-soft);
}

.stp-tabs i {
  font-style: normal;
  font-size: 10px;
  min-width: 16px;
  text-align: center;
  border-radius: 999px;
  padding: 0 4px;
  color: var(--on-accent);
  background: var(--accent);
}

.stp-add {
  display: flex;
  gap: 6px;
  padding: 14px 14px 6px;
}

.stp-type {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .06em;
  padding: 0 8px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  border: 1px solid var(--tc, var(--border-hi));
  color: var(--tc, var(--text-md));
}

.stp-input {
  flex: 1;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--bg0);
  border: 1px solid var(--accent-border);
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-hi);
  min-height: 34px;
  white-space: nowrap;
}

.stp-btn {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--on-accent);
  background: var(--accent);
  transition: transform .15s ease;
}

.stp-btn.press {
  transform: scale(.9);
}

.stp-sub {
  padding: 12px 16px 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-md);
}

.stp-rules {
  display: flex;
  flex-direction: column;
}

.rule {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-top: 1px solid var(--border);
  animation: rule-in .5s var(--ease-out);
}

@keyframes rule-in {
  from {
    opacity: 0;
    transform: translateX(-16px);
    background: var(--accent-soft);
  }
}

.rule .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

.rule .k {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .06em;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid color-mix(in srgb, var(--tc) 50%, transparent);
  color: var(--tc);
  background: color-mix(in srgb, var(--tc) 12%, transparent);
}

.rule b {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-hi);
}

.rule .x {
  margin-left: auto;
  font-size: 11px;
  color: var(--text-md);
}

/* stage: grid */
.st-grid {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg0);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}

.st-grid.show {
  opacity: 1;
}

.stg-bar {
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border-bottom: 1px solid var(--border);
  background: var(--bg1);
}

.stg-sp {
  flex: 1;
}

.stg-cells {
  padding: 8px;
  min-height: 0;
}

.st-grid .tile .tile-tag {
  font-size: 12px;
}

/* stage: overlay chat */
.st-chat {
  position: absolute;
  right: 22px;
  top: 66px;
  bottom: 22px;
  width: 330px;
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  border: 1px solid var(--border-hi);
  background: color-mix(in srgb, var(--bg1) calc(var(--op, 1) * 100%), transparent);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: translateX(380px);
  opacity: 0;
  transition: transform .8s var(--ease-out), opacity .5s ease, background-color .6s ease, border-color .6s ease, box-shadow .6s ease;
}

.st-chat.show {
  transform: none;
  opacity: 1;
}

.st-chat.faded {
  border-color: transparent;
  box-shadow: none;
}

.stch-head,
.stch-chips,
.stch-send {
  transition: opacity .45s ease, max-height .6s var(--ease-out), padding .6s var(--ease-out), margin .6s var(--ease-out);
  max-height: 90px;
  overflow: hidden;
}

.st-chat.faded .stch-head,
.st-chat.faded .stch-chips,
.st-chat.faded .stch-send {
  opacity: 0;
  max-height: 0;
  padding-block: 0;
  margin-block: 0;
  border-width: 0;
}

.st-chat.faded .ln {
  text-shadow: 0 1px 2px #000, 0 0 6px rgba(0, 0, 0, .8);
  color: #fff;
}

.st-chat.faded .ln .ch {
  color: rgba(255, 255, 255, .7);
}

.stch-head {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}

.stch-head>b {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-hi);
}

.stch-sp {
  flex: 1;
}

.stch-btn {
  font-size: 11px;
  color: var(--text-md);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 7px;
  background: var(--bg2);
  min-width: 26px;
  text-align: center;
  transition: color .3s ease, border-color .3s ease;
}

.stch-btn.hot {
  color: var(--accent-text);
  border-color: var(--accent);
}

.stch-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
}

.stch-chip {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text);
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--border-hi);
  background: var(--bg2);
}

.stch-chip.on {
  border-color: var(--accent-border);
  background: var(--accent-soft);
  color: var(--accent-text);
}

.stch-chip.add {
  border-style: dashed;
  background: none;
  color: var(--text-md);
}

.stch-chip.ghost {
  background: none;
  color: var(--text-md);
  border-color: var(--border);
}

.pm {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--yt);
}

.pm.kk {
  background: var(--kick);
}

.stch-send {
  display: flex;
  gap: 6px;
  margin: 8px;
  font-size: 11.5px;
}

.stch-send span {
  flex: 1;
  padding: 7px 10px;
  border-radius: 8px;
  background: var(--bg0);
  border: 1px solid var(--border);
  color: var(--text-md);
}

.stch-send b {
  padding: 7px 14px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--on-accent);
}

/* stage: style picker */
.st-look {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 470px;
  padding: 16px;
  border-radius: 16px;
  background: var(--bg1);
  border: 1px solid var(--border-hi);
  box-shadow: var(--shadow-lg);
  transform: translate(-50%, -44%) scale(.94);
  opacity: 0;
  transition: transform .6s var(--ease-out), opacity .4s ease;
  z-index: 5;
}

.st-look.show {
  transform: translate(-50%, -50%);
  opacity: 1;
}

.stl-h {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-md);
  margin-bottom: 10px;
}

.stl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.stl-opt {
  padding: 8px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text);
  transition: border-color .3s ease, background .3s ease, transform .2s ease;
}

.stl-opt.on {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.stl-opt.press {
  transform: scale(.94);
}

.stl-opt .sp-chip {
  margin-bottom: 7px;
}

/* stage: keys + cursor */
.st-keys {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 8;
  pointer-events: none;
}

.skey {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 8px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--bg1) 88%, transparent);
  border: 1px solid var(--border-hi);
  box-shadow: var(--shadow-lg);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-hi);
  animation: key-in .4s var(--ease-spring);
}

.skey.out {
  opacity: 0;
  transform: translateY(10px);
  transition: all .3s ease;
}

@keyframes key-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(.9);
  }
}

.skey kbd {
  font-size: 15px;
  padding: 8px 12px;
  border-bottom-width: 4px;
  transition: transform .1s ease, border-bottom-width .1s ease;
}

.skey kbd.down {
  transform: translateY(2px);
  border-bottom-width: 2px;
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}

.st-cursor {
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  z-index: 9;
  pointer-events: none;
  fill: #fff;
  stroke: #0B0E14;
  stroke-width: 1.4;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .45));
  opacity: 0;
  transition: transform .75s cubic-bezier(.45, 0, .2, 1), opacity .3s ease;
}

.st-cursor.show {
  opacity: 1;
}

.st-cursor.click {
  animation: click .25s ease;
}

@keyframes click {
  50% {
    scale: .8;
  }
}

/* ============ MORE / BENTO ============ */
.more {
  padding-block: clamp(80px, 10vw, 150px) clamp(40px, 6vw, 80px);
}

.sec-head {
  max-width: 760px;
  margin-bottom: clamp(36px, 5vw, 64px);
}

.sec-head.center {
  margin-inline: auto;
  text-align: center;
}

.sec-head h2 {
  margin-top: 16px;
}

.sec-head .lede {
  margin-top: 18px;
}

.sec-head.center .lede {
  margin-inline: auto;
}

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.card {
  --mx: 50%;
  --my: 50%;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: clamp(22px, 2.6vw, 32px);
  border-radius: var(--radius-xl);
  background: var(--bg1);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color .3s ease, transform .5s var(--ease-out);
}

/* A spotlight that follows the pointer, set by home.js. */
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(420px circle at var(--mx) var(--my), color-mix(in srgb, var(--accent) 14%, transparent), transparent 60%);
  opacity: 0;
  transition: opacity .4s ease;
}

.card:hover::before {
  opacity: 1;
}

.card:hover {
  border-color: var(--line-hi);
}

.card-copy h3 {
  font-size: clamp(20px, 1.9vw, 25px);
  letter-spacing: -.03em;
  line-height: 1.15;
}

.card-copy h3 kbd {
  font-size: .62em;
  vertical-align: .2em;
}

.card-copy p {
  margin-top: 10px;
  color: var(--text-md);
  font-size: 15px;
  text-wrap: pretty;
}

.card-copy .btn {
  margin-top: 18px;
}

.c-pal {
  grid-column: span 4;
  flex-direction: row;
  align-items: center;
}

.c-pal .card-copy {
  flex: 1;
}

.c-trim {
  grid-column: span 2;
  grid-row: span 2;
}

.c-emote {
  grid-column: span 2;
}

.c-stats {
  grid-column: span 2;
}

.c-keys {
  grid-column: span 3;
}

.c-lang {
  grid-column: span 3;
}

/* palette card */
.mini-pal {
  flex: 1.1;
  min-width: 0;
  border-radius: 14px;
  border: 1px solid var(--border-hi);
  background: var(--bg0);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.mp-in {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-hi);
  min-height: 46px;
}

.mp-in svg {
  width: 16px;
  height: 16px;
  color: var(--text-md);
}

.mp-g {
  padding: 10px 14px 4px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-md);
}

.mp-list {
  padding-bottom: 6px;
  min-height: 150px;
}

.mp-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 14px;
  border-left: 2px solid transparent;
  animation: ln-in .35s var(--ease-out);
}

.mp-item.on {
  background: var(--accent-soft);
  border-left-color: var(--accent);
}

.mp-item .pal-ico {
  width: 26px;
  height: 26px;
}

.mp-item.on .pal-ico {
  background: var(--accent);
  color: var(--on-accent);
}

.mp-item b {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-hi);
}

.mp-item span {
  font-size: 11.5px;
  color: var(--text-md);
}

/* trim card */
.trim {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.trim-prof {
  display: flex;
  padding: 4px;
  border-radius: 999px;
  background: var(--bg0);
  border: 1px solid var(--border);
}

.trim-prof button {
  flex: 1;
  padding: 7px 0;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-md);
  transition: background .25s ease, color .25s ease;
}

.trim-prof button[aria-pressed="true"] {
  background: var(--accent);
  color: var(--on-accent);
}

.trim-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.trim-sw {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.trim-sw label {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  font-size: 13.5px;
  color: var(--text);
  cursor: pointer;
}

.trim-sw label+label {
  border-top: 1px solid var(--border);
}

.trim-sw input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}

.trim-sw i {
  position: relative;
  width: 36px;
  height: 21px;
  border-radius: 999px;
  background: var(--bg4);
  flex-shrink: 0;
  transition: background .25s ease;
}

.trim-sw i::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #fff;
  transition: transform .3s var(--ease-spring);
}

.trim-sw input:checked+i {
  background: var(--accent);
}

.trim-sw input:checked+i::after {
  transform: translateX(15px);
}

.trim-sw input:focus-visible+i {
  box-shadow: var(--focus-ring);
}

.trim-view {
  flex: 1;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg0);
  padding: 8px;
  gap: 8px;
}

.tv-top {
  display: flex;
  gap: 8px;
  height: 22px;
  padding: 5px;
  border-radius: 7px;
  background: var(--bg2);
  transition: all .45s var(--ease-out);
  overflow: hidden;
}

.tv-top i {
  width: 30px;
  border-radius: 4px;
  background: var(--bg4);
}

.tv-top i:first-child {
  width: 12px;
  background: var(--accent);
}

.tv-top i:last-child {
  margin-left: auto;
  width: 60px;
}

.tv-row {
  flex: 1;
  display: flex;
  gap: 8px;
}

.tv-side {
  width: 22%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px;
  border-radius: 7px;
  background: var(--bg2);
  transition: all .45s var(--ease-out);
  overflow: hidden;
}

.tv-side i {
  height: 10px;
  border-radius: 5px;
  background: var(--bg4);
}

.tv-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tv-car {
  height: 58px;
  border-radius: 7px;
  background: linear-gradient(120deg, var(--accent-soft), color-mix(in srgb, #A855F7 18%, transparent));
  border: 1px solid var(--accent-border);
  transition: all .45s var(--ease-out);
  overflow: hidden;
}

.tv-cards {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.tv-cards i {
  border-radius: 6px;
  background: var(--bg3);
  min-height: 24px;
}

.trim-view.no-top .tv-top {
  height: 0;
  padding-block: 0;
  margin-bottom: -8px;
  opacity: 0;
}

.trim-view.no-side .tv-side {
  width: 0;
  padding-inline: 0;
  margin-right: -8px;
  opacity: 0;
}

.trim-view.no-car .tv-car {
  height: 0;
  margin-bottom: -8px;
  opacity: 0;
  border-width: 0;
}

/* emote card */
.emo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.emo-p {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--line-hi);
  background: var(--bg2);
  color: var(--text-hi);
}

.emo-stack {
  position: relative;
  width: 64px;
  height: 64px;
  margin-left: auto;
}

.emo-base {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 64px;
}

.emo-zw {
  position: absolute;
  left: 8px;
  top: -14px;
  width: 48px;
  height: 30px;
  animation: hat 3.2s var(--ease-spring) infinite;
}

@keyframes hat {

  0%,
  20% {
    transform: translateY(-40px) rotate(-12deg);
    opacity: 0;
  }

  40%,
  85% {
    transform: none;
    opacity: 1;
  }

  100% {
    transform: translateY(-40px) rotate(12deg);
    opacity: 0;
  }
}

/* stats card */
.stats {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 90px;
}

.bars i {
  flex: 1;
  height: var(--h);
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 40%, transparent));
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .9s var(--ease-out);
  transition-delay: calc(var(--i) * 45ms);
}

.stats.in .bars i {
  transform: none;
}

.bars i:last-child {
  background: var(--accent-hover);
}

.lb {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
}

.lb li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
}

.lb i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--c);
}

.lb b {
  margin-left: auto;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text-hi);
}

/* keys card */
.keys {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.kr {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg0);
  font-size: 13.5px;
  color: var(--text-md);
  transition: border-color .2s ease, background .2s ease, color .2s ease, transform .2s var(--ease-spring);
}

.kr span {
  display: flex;
  gap: 4px;
  min-width: 78px;
}

.kr.hot {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--text-hi);
  transform: scale(1.03);
}

.kr.hot kbd {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}

/* lang card */
.lang {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lang-cmd {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--border-hi);
  background: var(--bg0);
  min-height: 62px;
}

.lang-tag {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--on-accent);
  background: var(--accent);
  border-radius: 6px;
  padding: 3px 7px;
}

.lang-say {
  font-size: clamp(16px, 1.6vw, 20px);
  font-weight: 600;
  color: var(--text-hi);
  transition: opacity .3s ease, transform .3s ease, filter .3s ease;
}

.lang-say.swap {
  opacity: 0;
  transform: translateY(8px);
  filter: blur(4px);
}

.lang-row {
  display: flex;
  gap: 6px;
}

.lang-row span {
  flex: 1;
  text-align: center;
  font-family: var(--mono);
  font-size: 12px;
  padding: 6px 0;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--text-md);
  transition: all .3s ease;
}

.lang-row span.on {
  color: var(--accent-text);
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* ============ STYLES ============ */
.styles {
  padding-block: clamp(80px, 10vw, 150px) clamp(40px, 6vw, 80px);
}

.style-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.sc {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
  border-radius: var(--radius-lg);
  text-align: left;
  background: var(--c-bg0);
  border: 1px solid var(--c-border);
  color: var(--c-text);
  transition: transform .45s var(--ease-out), box-shadow .45s ease, border-color .3s ease;
}

.sc:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px -24px color-mix(in srgb, var(--c-accent) 70%, transparent);
}

.sc[aria-pressed="true"] {
  border-color: var(--c-accent);
  box-shadow: 0 0 0 2px var(--c-accent), 0 24px 50px -24px color-mix(in srgb, var(--c-accent) 70%, transparent);
}

.sc-prev {
  display: flex;
  gap: 8px;
  height: 128px;
}

.sc-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 9px;
  border-radius: 10px;
  background: var(--c-bg1);
  border: 1px solid var(--c-border);
  overflow: hidden;
}

.sc-panel .h {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  font-weight: 800;
  color: var(--c-hi);
  margin-bottom: 2px;
}

.sc-panel .h::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-accent);
}

.sc-panel p {
  font-size: 10px;
  line-height: 1.35;
  color: var(--c-text);
  white-space: nowrap;
  overflow: hidden;
}

.sc-panel p b {
  font-weight: 700;
}

.sc-panel .send {
  margin-top: auto;
  display: flex;
  gap: 4px;
}

.sc-panel .send i {
  flex: 1;
  height: 16px;
  border-radius: 4px;
  background: var(--c-bg0);
  border: 1px solid var(--c-border);
}

.sc-panel .send u {
  width: 30px;
  height: 16px;
  border-radius: 4px;
  background: var(--c-accent);
}

.sc-side {
  width: 34%;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.sc-side i {
  flex: 1;
  border-radius: 8px;
  background: var(--c-bg2);
  border: 1px solid var(--c-border);
}

.sc-side i:first-child {
  background: var(--c-accent);
  border-color: transparent;
  opacity: .9;
}

.sc-name {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.sc-name b {
  font-family: var(--c-font);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--c-hi);
}

.sc-name span {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-md);
}

.sc-tag {
  margin-top: -10px;
  font-size: 13px;
  color: var(--c-md);
}

.styles-now {
  margin-top: 26px;
  text-align: center;
  color: var(--text-md);
  font-size: 14px;
}

.styles-now b {
  color: var(--accent-text);
}

/* ============ PRIVACY ============ */
.privacy {
  padding-block: clamp(80px, 10vw, 150px);
}

.priv {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.priv-copy h2 {
  margin-top: 16px;
}

.priv-copy .lede {
  margin-top: 18px;
}

.priv-list-note {
  margin-top: 26px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-hi);
}

.hosts {
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg1);
}

.hosts li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 16px;
  font-size: 14px;
  transition: background .25s ease;
}

.hosts li+li {
  border-top: 1px solid var(--border);
}

.hosts li b {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-hi);
  white-space: nowrap;
}

.hosts li span {
  color: var(--text-md);
  text-align: right;
  font-size: 13.5px;
}

.hosts li.opt b::after {
  content: 'optional';
  margin-left: 8px;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent-text);
  vertical-align: 1px;
}

.hosts li.hot {
  background: var(--accent-soft);
}

.fine {
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--text-md);
}

.net {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
}

.net-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.net-lines .ring {
  fill: none;
  stroke: var(--line);
  stroke-dasharray: 2 6;
}

.net-lines .wire {
  fill: none;
  stroke: var(--line-hi);
  stroke-width: 1.2;
}

.net-lines .wire.opt {
  stroke-dasharray: 4 5;
}

.net-lines .pk {
  fill: var(--accent);
}

.net-lines .wire.void {
  stroke: color-mix(in srgb, var(--red) 50%, transparent);
  stroke-dasharray: 3 6;
}

.net-core {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 36%;
  aspect-ratio: 1;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
  background: radial-gradient(circle, var(--bg2), var(--bg1));
  border: 1px solid var(--accent-border);
}

.net-core img {
  width: 26%;
  height: auto;
  border-radius: 22%;
  margin-bottom: 4px;
}

.net-core b {
  font-family: var(--display);
  font-size: clamp(13px, 1.4vw, 17px);
  color: var(--text-hi);
}

.net-core span {
  font-size: clamp(10px, 1vw, 12px);
  color: var(--text-md);
  max-width: 80%;
  line-height: 1.3;
}

.nn {
  position: absolute;
  transform: translate(-50%, -50%);
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--line-hi);
  background: var(--bg1);
  font-family: var(--mono);
  font-size: clamp(9.5px, 1vw, 12px);
  font-weight: 600;
  color: var(--text-hi);
  white-space: nowrap;
  transition: border-color .25s ease, background .25s ease, transform .3s var(--ease-spring);
}

.nn.opt {
  border-style: dashed;
  color: var(--text-md);
}

.nn.hot {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translate(-50%, -50%) scale(1.08);
}

.net-void {
  position: absolute;
  right: 0;
  bottom: 2%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px dashed color-mix(in srgb, var(--red) 55%, transparent);
  background: color-mix(in srgb, var(--red) 7%, var(--bg0));
  text-align: right;
}

.net-void b {
  font-size: 13px;
  color: var(--text-hi);
  text-decoration: line-through;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
}

.net-void span {
  font-size: 12px;
  color: var(--text-md);
}

/* ============ INSTALL ============ */
.install {
  padding-block: clamp(60px, 8vw, 120px);
}

.stores {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  max-width: 1000px;
  margin-inline: auto;
}

.store {
  --mx: 50%;
  --my: 50%;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius-xl);
  background: var(--bg1);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform .5s var(--ease-out), border-color .3s ease;
}

.store::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(420px circle at var(--mx) var(--my), color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%);
  opacity: 0;
  transition: opacity .4s ease;
}

.store:hover {
  transform: translateY(-4px);
  border-color: var(--accent-border);
}

.store:hover::before {
  opacity: 1;
}

.store-k {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.store b {
  font-family: var(--display);
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: -.03em;
  line-height: 1.15;
  color: var(--text-hi);
}

.store p {
  color: var(--text-md);
  font-size: 15px;
}

.store-go {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text-hi);
}

.store-go svg {
  width: 18px;
  height: 18px;
  transition: transform .3s var(--ease-spring);
}

.store:hover .store-go svg {
  transform: translateX(5px);
}

/* ============ FINAL ============ */
.final {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(90px, 12vw, 180px);
  text-align: center;
}

.final-glow {
  position: absolute;
  left: 50%;
  top: 55%;
  width: 900px;
  height: 900px;
  transform: translate(-50%, -50%);
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 30%, transparent), transparent 62%);
  filter: blur(40px);
  animation: breathe 7s ease-in-out infinite alternate;
}

@keyframes breathe {
  to {
    transform: translate(-50%, -50%) scale(1.15);
  }
}

.final-icon {
  margin: 0 auto 28px;
  border-radius: 22px;
  box-shadow: 0 20px 60px -10px color-mix(in srgb, var(--accent) 70%, transparent);
  animation: bob 5s ease-in-out infinite alternate;
}

.final h2 {
  font-size: clamp(38px, 6vw, 80px);
  max-width: 14ch;
  margin-inline: auto;
}

.final .lede {
  margin: 22px auto 0;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }

  .c-pal {
    grid-column: span 2;
  }

  .c-trim {
    grid-column: span 1;
    grid-row: span 2;
  }

  .c-emote,
  .c-stats {
    grid-column: span 1;
  }

  .c-keys,
  .c-lang {
    grid-column: span 1;
  }

  .nums {
    grid-template-columns: repeat(3, 1fr);
  }

  .num:nth-child(4),
  .num:nth-child(5) {
    grid-column: span 1;
  }
}

@media (max-width: 960px) {
  .tour-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .tour-stage-col {
    order: -1;
    position: sticky;
    top: 66px;
    z-index: 5;
    height: auto;
    padding-block: 10px 12px;
    background: linear-gradient(var(--bg0) 85%, transparent);
  }

  .tour-sticky {
    position: static;
    padding: 0;
  }

  .stage-dots {
    margin-bottom: 8px;
  }

  .step {
    min-height: 75vh;
    justify-content: flex-start;
    padding-top: 30px;
  }

  .priv {
    grid-template-columns: minmax(0, 1fr);
  }

  .style-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .float {
    display: none;
  }
}

@media (max-width: 720px) {
  .bento {
    grid-template-columns: minmax(0, 1fr);
  }

  .c-pal,
  .c-trim,
  .c-emote,
  .c-stats,
  .c-keys,
  .c-lang {
    grid-column: auto;
    grid-row: auto;
  }

  .c-pal {
    flex-direction: column;
    align-items: stretch;
  }

  .keys {
    grid-template-columns: 1fr;
  }

  .stores {
    grid-template-columns: minmax(0, 1fr);
  }

  .nums {
    grid-template-columns: repeat(2, 1fr);
  }

  .num:last-child {
    grid-column: span 2;
  }

  .style-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .hosts li {
    flex-direction: column;
    gap: 2px;
  }

  .hosts li span {
    text-align: left;
  }
}

@media (max-width: 520px) {
  .hero-h {
    font-size: clamp(38px, 11.5vw, 60px);
  }

  .hh-rot-item {
    white-space: normal;
  }
}

/* home.js sets a chapter's starting state with every transition off. */
.st-app.inst,
.st-app.inst * {
  transition: none !important;
  animation: none !important;
}

@media (max-width: 720px) {
  .net {
    margin-bottom: 70px;
  }

  .net-void {
    right: auto !important;
    left: 50%;
    bottom: -64px;
    transform: translateX(-50%);
    align-items: center;
    text-align: center;
  }
}

.fl-t kbd,
.mp-item kbd {
  font-size: 10px;
  padding: 2px 5px;
  margin-right: 4px;
  border-bottom-width: 1px;
  vertical-align: 1px;
}
