.tp-hero .gk-stagerow + .marquee { margin-top: -1px; }

.tp-stage { padding: 32px; }
.tp-rack {
  --dw: 256px;
  --fh: 404px;
  --bar: 22px;
  --vh: calc(var(--fh) - var(--bar));
  --gap: 20px;
}

.tp-shelf {
  overflow: hidden;
  padding: 24px 0 12px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
  scrollbar-width: none;
}
.tp-shelf::-webkit-scrollbar { display: none; }
.tp-belt { display: flex; width: max-content; animation: tp-belt 110s linear infinite; }
.tp-shelf:hover .tp-belt, .tp-rack.is-held .tp-belt { animation-play-state: paused; }
.tp-shelf:has(:focus-visible) { overflow-x: auto; }
.tp-shelf:has(:focus-visible) .tp-belt { animation: none; }
@keyframes tp-belt { to { transform: translateX(-50%); } }
.tp-run {
  list-style: none; margin: 0;
  display: flex; align-items: flex-start; gap: var(--gap);
  padding: 0 var(--gap) 0 0;
}
.tp-card { flex: none; width: var(--dw); }

.tp-frame {
  position: relative; isolation: isolate;
  height: var(--fh);
  border-radius: 10px; background: #fff;
  border: 1px solid var(--gk-line);
  overflow: hidden;
}
.tp-chrome {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 4px;
  height: var(--bar); padding: 0 9px;
  border-bottom: 1px solid #f0f1f3; background: #fff;
}
.tp-chrome > i { flex: none; width: 6px; height: 6px; border-radius: 50%; background: #e3e5ea; }
.tp-chrome > span {
  flex: 1; min-width: 0;
  display: flex; align-items: center; justify-content: center; gap: 4px;
  margin-right: 22px;
  font: 400 9.5px/1 var(--font-ui); color: #9ca0a9;
  white-space: nowrap; overflow: hidden;
}
.tp-chrome svg { flex: none; width: 9px; height: 9px; fill: none; stroke: #9ca0a9; stroke-width: 1.2; stroke-linejoin: round; }

.tp-view { position: relative; height: var(--vh); overflow: hidden; background: #f6f7f9; }
.tp-scroll { display: block; width: 100%; height: auto; transition: transform .8s cubic-bezier(.3, .7, .2, 1); }

.tp-hit {
  position: absolute; inset: 0; z-index: 3;
  width: 100%; margin: 0; padding: 0;
  border: 0; border-radius: inherit; background: transparent;
  cursor: default;
}
.tp-hit:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }

.tp-over {
  position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 4;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 5px 5px 5px 10px;
  border-radius: 9px; background: #fff; border: 1px solid var(--gk-line);
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease;
}
.tp-cat { font: 500 11.5px/1 var(--font-ui); color: var(--gk-soft); white-space: nowrap; }
.tp-use {
  display: inline-flex; align-items: center;
  height: 28px; padding: 0 10px;
  border-radius: 7px; background: var(--brand); color: #fff;
  font: 500 12.5px/1 var(--font-ui); white-space: nowrap;
  transition: background-color .15s ease;
}
.tp-use:hover { background: var(--brand-hi); }
.tp-use:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.tp-card:is(:hover, :focus-within, .is-on) .tp-over { opacity: 1; pointer-events: auto; }

.tp-name { margin: 12px 2px 0; font: 500 14px/1.3 var(--font-ui); letter-spacing: -.006em; color: var(--ink-nav); }
.tp-name a { color: inherit; text-decoration: none; }
.tp-name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.tp-name a:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 3px; }
.tp-blurb { margin: 4px 2px 0; font: 400 12.5px/1.45 var(--font-ui); color: var(--gk-soft); text-wrap: pretty; }

.tp-foot {
  display: flex; justify-content: space-between; gap: 6px 24px;
  margin: 0; padding: 6px 24px 22px;
  font: 400 12.5px/1.5 var(--font-ui); color: var(--gk-grey);
}
.tp-hint { flex: none; }
.tp-hint--touch { display: none; }

.tp-card:is(:hover, :focus-within, .is-on) .tp-scroll {
  transform: translateY(calc(var(--vh) - 100%));
  transition: transform var(--dur, 8s) cubic-bezier(.45, .05, .55, .95) .12s;
}
@keyframes tp-jump {
  from { transform: translateY(0); }
  to   { transform: translateY(calc(var(--vh) - 100%)); }
}

@media (hover: none) {
  .tp-over { opacity: 1; pointer-events: auto; }
  .tp-hint--hover { display: none; }
  .tp-hint--touch { display: inline; }
}


.tp-swap .tp-offer {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  padding: 26px 32px 28px;
  border: 0; border-radius: 0; background: transparent;
  font: inherit; color: inherit; text-align: left;
  cursor: pointer;
  transition: background-color .15s ease;
}
.tp-swap .tp-offer + .tp-offer { border-left: 1px solid var(--rail); }
.tp-offer:hover { background: var(--gk-tint); }
.tp-offer:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.tp-offer[aria-pressed="true"] { background: var(--gk-tint); }
.tp-offer[aria-pressed="true"]::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--brand); }
.tp-offer__label { display: flex; align-items: center; gap: 10px; font: 500 16px/1.2 var(--font-ui); letter-spacing: -.01em; color: var(--ink-nav); }
.tp-offer__label i { flex: none; width: 9px; height: 9px; border-radius: 50%; background: #d4d7de; transition: background-color .15s ease; }
.tp-offer[aria-pressed="true"] .tp-offer__label i { background: var(--brand); }
.tp-offer__note { padding-left: 19px; font: 400 14px/1.4 var(--font-ui); color: var(--gk-soft); }

.tp-swap__stage { padding: 32px; }
.tp-sk {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent 99%);
  mask-image: linear-gradient(to bottom, #000 80%, transparent 99%);
}
.tp-sk > .sk-frame { height: 600px; margin-bottom: -24px; }
.tp-sk .sk-frame__in { display: flex; }
.tp-sk__body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 300px; }

.tp-sk__canvas { min-width: 0; overflow: hidden; padding: 24px 28px 0; background: var(--sk-ground); }
.tp-sk__page { min-height: 100%; border-radius: 10px 10px 0 0; border: 1px solid var(--sk-edge); background: #fff; }
.tp-sk__strip { display: flex; align-items: center; justify-content: center; height: 24px; border-bottom: 1px solid #f3f3f5; }
.tp-sk__nav { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 22px; border-bottom: 1px solid #f3f3f5; }
.tp-sk__links { display: flex; gap: 12px; margin-left: auto; }
.tp-sk__btn { flex: none; width: 70px; height: 22px; border-radius: 6px; background: var(--sk-bone); }
.tp-sk__hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 28px; padding: 30px 22px 28px; }
.tp-sk__copy { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.tp-sk .tp-sk__h {
  position: relative; margin: 2px -11px 6px; padding: 8px 10px 10px;
  border-radius: 8px; border: 1px solid var(--sk-brand-edge);
  font: 600 24px/1.2 var(--font-ui); letter-spacing: -.022em; color: var(--sk-ink); text-wrap: balance;
}
.tp-sk__form { display: grid; gap: 8px; margin-top: 10px; padding: 12px; border-radius: 9px; border: 1px solid #f1f1f4; }
.tp-sk__field { display: flex; align-items: center; height: 30px; padding: 0 10px; border-radius: 6px; border: 1px solid var(--sk-edge); }
.tp-sk__cta { height: 32px; border-radius: 6px; background: #d9defe; }
.tp-sk__photo { min-height: 250px; border-radius: 10px; background: var(--sk-bone-lo); }
.tp-sk__trust { display: flex; justify-content: center; gap: 28px; padding: 16px 22px; border-top: 1px solid #f3f3f5; }

.tp-sk__panel { min-width: 0; display: flex; flex-direction: column; padding: 18px 18px 0; border-left: 1px solid var(--sk-edge); }
.tp-sk__ph { display: flex; align-items: center; height: 14px; margin-bottom: 4px !important; }
.tp-qa { display: flex; flex-direction: column; gap: 9px; padding: 16px 0; border-bottom: 1px solid #f3f3f5; }
.tp-qa:last-child { border-bottom: 0; }
.tp-qa__t { display: flex; align-items: center; gap: 8px; font: 500 12px/1 var(--font-ui); color: var(--sk-mute); white-space: nowrap; }
.tp-qa svg { flex: none; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.tp-qa__swap { display: grid; grid-template-columns: minmax(0, 1fr) 14px minmax(0, 1fr); align-items: center; gap: 6px; color: var(--sk-faint); }
.tp-qa__in {
  display: block; height: 32px; padding: 0 10px;
  border-radius: 7px; border: 1px solid var(--sk-edge); background: #fff;
  font: 500 12.5px/30px var(--font-ui); color: var(--sk-ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tp-qa__in.is-empty { font-weight: 400; color: var(--sk-faint); }
.tp-qa__in--url { font: 400 11.5px/30px var(--sk-mono); }
.tp-qa__toggle { position: relative; flex: none; width: 26px; height: 15px; margin-left: auto; border-radius: 999px; background: var(--brand); }
.tp-qa__toggle::after { content: ""; position: absolute; top: 2px; right: 2px; width: 11px; height: 11px; border-radius: 50%; background: #fff; }
.tp-qa__code {
  display: block; padding: 8px 10px;
  border-radius: 7px; border: 1px solid #f1f1f4; background: var(--sk-ground);
  font: 400 11.5px/1.5 var(--sk-mono); color: var(--sk-ink);
  overflow-wrap: anywhere;
}
.tp-qa__code b { font-weight: 500; color: var(--brand); }

.tp-sk [data-k] { border-radius: 3px; outline: 1.5px dashed transparent; outline-offset: 2px; }
.tp-sk [data-k].is-swapped { animation: tp-select 1.4s ease-out both; }
.tp-qa .is-swapped { animation: tp-tint 1.4s ease-out both; }
@keyframes tp-select {
  0%, 55% { outline-color: var(--brand); }
  100%    { outline-color: transparent; }
}
@keyframes tp-tint {
  0%, 55% { border-color: var(--sk-brand-edge); }
  100%    { border-color: var(--sk-edge); }
}
.tp-qa__code.is-swapped { animation-name: tp-tint-code; }
@keyframes tp-tint-code {
  0%, 55% { border-color: var(--sk-brand-edge); }
  100%    { border-color: #f1f1f4; }
}

@media (prefers-reduced-motion: no-preference) {
  .tp-sk [data-k].is-swapped { animation: tp-select 1.4s ease-out both, tp-in .35s ease-out both; }
  @keyframes tp-in { from { opacity: .15; } }
}

@media (prefers-reduced-motion: reduce) {
  .tp-scroll, .tp-over { transition: none !important; }
  .tp-card:is(:hover, :focus-within, .is-on) .tp-scroll { animation: tp-jump var(--dur, 8s) steps(4, jump-none) .12s both; }
  .tp-use, .tp-offer { transition: none; }
  .tp-belt { animation: none; }
  .tp-shelf { overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scroll-padding-inline: 24px; }
  .tp-run { padding-left: 24px; }
  .tp-card { scroll-snap-align: start; }
  .tp-run[aria-hidden="true"] { display: none; }
}

@media (max-width: 1100px) {
  .tp-sk__body { grid-template-columns: minmax(0, 1fr) 264px; }
  .tp-sk__hero { gap: 22px; }
}

@media (max-width: 900px) {
  .tp-stage, .tp-swap__stage { padding: 20px; }
  .tp-swap .tp-offers { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .tp-swap .tp-offers > .tp-offer { border-top: 0; border-left: 0; }
  .tp-swap .tp-offers > .tp-offer:nth-child(2n) { border-left: 1px solid var(--rail); }
  .tp-swap .tp-offers > .tp-offer:nth-child(n + 3) { border-top: 1px solid var(--rail); }
  .tp-swap .tp-offer { padding: 20px 24px 22px; }
  .tp-sk__canvas { padding: 20px 20px 0; }
  .tp-sk__hero { grid-template-columns: minmax(0, 1fr) 32%; }
  .tp-sk .tp-sk__h { font-size: 20px; }
}

@media (max-width: 760px) {
  .tp-rack { --dw: 232px; --fh: 372px; --gap: 14px; }
  .tp-shelf { padding-top: 16px; }
  .tp-foot { flex-direction: column; padding: 4px 16px 18px; }
  .tp-sk { -webkit-mask-image: none; mask-image: none; }
  .tp-sk > .sk-frame { height: auto; margin-bottom: 0; }
  .tp-sk .sk-win__rail { display: none; }
  .tp-sk__body { grid-template-columns: minmax(0, 1fr); }
  .tp-sk__canvas {
    height: 340px;
    -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 98%);
    mask-image: linear-gradient(to bottom, #000 70%, transparent 98%);
  }
  .tp-sk__panel { padding: 14px 18px 4px; border-left: 0; border-top: 1px solid var(--sk-edge); }
}

@media (max-width: 640px) {
  .tp-stage, .tp-swap__stage { padding: 16px; }
  .tp-sk__canvas { height: 300px; padding: 16px 16px 0; }
  .tp-sk__nav { padding: 0 16px; }
  .tp-sk__links { display: none; }
  .tp-sk__btn { margin-left: auto; }
  .tp-sk__hero { grid-template-columns: minmax(0, 1fr); padding: 24px 16px; }
  .tp-sk__photo { display: none; }
  .tp-sk__panel { padding: 12px 14px 2px; }
  .tp-swap .tp-offer { padding: 16px 16px 18px; gap: 6px; }
  .tp-offer__label { font-size: 15px; }
  .tp-offer__note { padding-left: 0; font-size: 13px; }
}
